* @package testcase * @version $Id: browse.html.php 5108 2013-07-12 01:59:04Z chencongzhi520@gmail.com $ * @link http://www.zentao.net */ ?> session->caseBrowseType == 'bysearch') ? 'all' : $this->session->caseBrowseType); js::set('moduleID' , $moduleID); js::set('confirmDelete', $lang->testcase->confirmDelete); js::set('batchDelete', $lang->testcase->confirmBatchDeleteSceneCase); js::set('productID', $productID); js::set('branch', $branch); js::set('suiteID', $suiteID); js::set('automation', !empty($automation) ? $automation->id : 0); js::set('runCaseConfirm', $lang->zanode->runCaseConfirm); js::set('confirmURL', $this->createLink('testtask', 'batchRun', "productID=$productID&orderBy=$orderBy&from=testcase&taskID=0&confirm=yes")); js::set('cancelURL', $this->createLink('testtask', 'batchRun', "productID=$productID&orderBy=$orderBy&from=testcase&taskID=0&confirm=no")); js::set('orderBy', $orderBy); js::set('differentProduct', $lang->testcase->differentProduct); js::set('langRowIndex', $lang->testcase->rowIndex); js::set('langNestTotal', $lang->testcase->nestTotal); js::set('langNormal', $lang->testcase->normal); ?> app->tab == 'project'):?>
'>

cookie->onlyScene): ?> testcase->noScene;?> createLink('testcase', 'createScene', "productID=$productID&branch=$branch&moduleID=$initModule"), " " . $lang->testcase->newScene, '', "class='btn btn-info' data-app='{$this->app->tab}'");?> testcase->noCase;?> createLink('testcase', 'create', "productID=$productID&branch=$branch&moduleID=$initModule"), " " . $lang->testcase->create, '', "class='btn btn-info' data-app='{$this->app->tab}'");?> createLink('testsuite', 'linkCase', "suiteID=$param"), " " . $lang->testsuite->linkCase, '', "class='btn btn-info' data-app='{$this->app->tab}'");?>

moduleName . ucfirst($this->methodName); $useDatatable = (isset($config->datatable->$datatableId->mode) and $config->datatable->$datatableId->mode == 'datatable'); ?>
>
recTotal}&recPerPage={$pager->recPerPage}"; if($useDatatable) include '../../common/view/datatable.html.php'; else include '../../common/view/tablesorter.html.php'; if($config->testcase->needReview or !empty($config->testcase->forceReview)) $config->testcase->datatable->fieldList['actions']['width'] = '190'; $setting = $this->datatable->getSetting('testcase'); $widths = $this->datatable->setFixedFieldWidth($setting); $columns = 0; $canBatchRun = common::hasPriv('testtask', 'batchRun'); $canBatchEdit = common::hasPriv('testcase', 'batchEdit'); $canBatchDelete = common::hasPriv('testcase', 'batchDelete'); $canBatchCaseTypeChange = common::hasPriv('testcase', 'batchCaseTypeChange'); $canBatchConfirmStoryChange = common::hasPriv('testcase', 'batchConfirmStoryChange'); $canBatchChangeModule = common::hasPriv('testcase', 'batchChangeModule'); $canImportToLib = common::hasPriv('testcase', 'importToLib'); $canBatchAction = ($canBatchRun or $canBatchEdit or $canBatchDelete or $canBatchCaseTypeChange or $canBatchConfirmStoryChange or $canBatchChangeModule or $canImportToLib); ?> ';?> ' id='caseList' data-fixed-left-width='' data-fixed-right-width='' data-checkbox-name='caseIDList[]'> $value) { if($value->show) { $this->datatable->printHead($value, $orderBy, $vars, $canBatchAction); $columns ++; } } ?> $scene):?> id' data-auto='$scene->auto' data-order='$scene->sort' data-parent='$scene->parent' data-product='$scene->product'"; if($scene->isCase == 2) { $trAttrs .= " data-nested='true'"; $trClass .= $scene->parent == '0' ? ' is-top-level table-nest-child-hide' : ' table-nest-hide'; } if($scene->parent and isset($scenes[$scene->parent])) { if($scene->isCase != 2) $trClass .= ' is-nest-child'; if(empty($scene->path)) $scene->path = $scenes[$scene->parent]->path . "$scene->id,"; $trClass .= ' table-nest-hide'; $trAttrs .= " data-nest-parent='$scene->parent' data-nest-path='$scene->path'"; } elseif($scene->isCase != 2) { $trClass .= ' no-nest'; } $trAttrs .= " class='row-case $trClass'"; $originOrders[] = $scene->id; ?> > $value) $this->testcase->printCell($value, $scene, $users, $branchOption, $modulePairs, $browseType, $useDatatable ? 'datatable' : 'table',$scene->isCase);?>
';?>