コード例 #1
0
ファイル: execSetResults.php プロジェクト: mokal/DCN_TestLink
/**
 *
 *
 */
function initWebEditors(&$guiObj, $cfgObj, $baseHREF)
{
    if ($guiObj->can_use_bulk_op) {
        //$guiObj->execStatusValues=createResultsMenu();
        //if( isset($guiObj->execStatusValues[$cfgObj->tc_status['all']]) )
        //{
        //    unset($guiObj->execStatusValues[$cfgObj->tc_status['all']]);
        //}
        $of = web_editor("bulk_exec_notes", $baseHREF, $cfgObj->editorCfg);
        $of->Value = getItemTemplateContents('execution_template', $of->InstanceName, null);
        // Magic numbers that can be determined by trial and error
        $guiObj->bulk_exec_notes_editor = $of->CreateHTML(10, 60);
        unset($of);
    } else {
        $guiObj->exec_notes_editors = createExecNotesWebEditor($guiObj->map_last_exec, $baseHREF, $cfgObj->editorCfg);
    }
}
コード例 #2
0
ファイル: execSetResults.php プロジェクト: viglesiasce/tl_RC1
    $gui->map_last_exec = array_values($gui->map_last_exec);
}
// $gui->can_use_bulk_op=$args->level == 'testsuite' && (!is_null($gui->map_last_exec) && count($gui->map_last_exec) > 1) ? 1 : 0;
$gui->can_use_bulk_op = $args->level == 'testsuite' && count($gui->map_last_exec) > 1 ? 1 : 0;
if ($gui->can_use_bulk_op) {
    $gui->execStatusValues = createResultsMenu();
    if (isset($gui->execStatusValues[$cfg->tc_status['all']])) {
        unset($gui->execStatusValues[$cfg->tc_status['all']]);
    }
    $of = web_editor("bulk_exec_notes", $_SESSION['basehref'], $cfg->editorCfg);
    $of->Value = getItemTemplateContents('execution_template', $of->InstanceName, null);
    // Magic numbers that can be determined by trial and error
    $gui->bulk_exec_notes_editor = $of->CreateHTML(10, 60);
    unset($of);
} else {
    $gui->exec_notes_editors = createExecNotesWebEditor($gui->map_last_exec, $_SESSION['basehref'], $cfg->editorCfg);
}
// To silence smarty errors
//  future must be initialized in a right way
$smarty->assign('test_automation_enabled', 0);
$smarty->assign('cfg', $cfg);
$smarty->assign('users', tlUser::getByIDs($db, $userSet, 'id'));
$smarty->assign('gui', $gui);
$smarty->assign('g_bugInterface', $g_bugInterface);
$smarty->display($templateCfg->template_dir . $templateCfg->default_template);
/*
  function: 

  args:
  
  returns: 
コード例 #3
0
/**
 *
 *
 */
function initWebEditors(&$guiObj, $cfgObj, $baseHREF)
{
    if ($guiObj->can_use_bulk_op) {
        $of = web_editor("bulk_exec_notes", $baseHREF, $cfgObj->editorCfg);
        $of->Value = getItemTemplateContents('execution_template', $of->InstanceName, null);
        // Magic numbers that can be determined by trial and error
        $cols = intval(isset($editorCfg['cols']) ? $cfgObj->editorCfg['cols'] : 60);
        $rows = intval(isset($editorCfg['rows']) ? $cfgObj->editorCfg['rows'] : 10);
        $guiObj->bulk_exec_notes_editor = $of->CreateHTML($rows, $cols);
        unset($of);
    } else {
        $guiObj->exec_notes_editors = createExecNotesWebEditor($guiObj->map_last_exec, $baseHREF, $cfgObj->editorCfg);
    }
}