本文整理匯總了PHP中testplan::html_table_of_custom_field_inputs方法的典型用法代碼示例。如果您正苦於以下問題:PHP testplan::html_table_of_custom_field_inputs方法的具體用法?PHP testplan::html_table_of_custom_field_inputs怎麽用?PHP testplan::html_table_of_custom_field_inputs使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類testplan
的用法示例。
在下文中一共展示了testplan::html_table_of_custom_field_inputs方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: initializeGui
$smarty->assign('title', lang_get('fatal_page_title'));
$smarty->assign('content', lang_get('error_no_testprojects_present'));
$smarty->display('workAreaSimple.tpl');
exit;
}
$gui = initializeGui($db, $args, $editorCfg, $tproject_mgr);
$of = web_editor('notes', $_SESSION['basehref'], $editorCfg);
$of->Value = getItemTemplateContents('testplan_template', $of->InstanceName, $args->notes);
// Checks on testplan name, and testplan name<=>testplan id
if ($args->do_action == "do_create" || $args->do_action == "do_update") {
$gui->testplan_name = $args->testplan_name;
$name_exists = $tproject_mgr->check_tplan_name_existence($args->tproject_id, $args->testplan_name);
$name_id_rel_ok = isset($gui->tplans[$args->tplan_id]) && $gui->tplans[$args->tplan_id]['name'] == $args->testplan_name;
}
// interface changes to be able to do not loose CF values if some problem arise on User Interface
$gui->cfields = $tplan_mgr->html_table_of_custom_field_inputs($args->tplan_id, $args->tproject_id, 'design', '', $_REQUEST);
switch ($args->do_action) {
case 'fileUpload':
fileUploadManagement($db, $args->tplan_id, $args->fileTitle, $tplan_mgr->getAttachmentTableName());
getItemData($tplan_mgr, $gui, $of, $args->tplan_id, true);
break;
case 'deleteFile':
deleteAttachment($db, $args->file_id);
getItemData($tplan_mgr, $gui, $of, $args->tplan_id, true);
break;
case 'edit':
getItemData($tplan_mgr, $gui, $of, $args->tplan_id);
break;
case 'do_delete':
$tplanInfo = $tplan_mgr->get_by_id($args->tplan_id);
if ($tplanInfo) {
示例2: initializeGui
if (!$args->tproject_id) {
$smarty->assign('title', lang_get('fatal_page_title'));
$smarty->assign('content', lang_get('error_no_testprojects_present'));
$smarty->display('workAreaSimple.tpl');
exit;
}
$gui = initializeGui($db, $args, $editorCfg, $tproject_mgr);
$of = web_editor('notes', $_SESSION['basehref'], $editorCfg);
$of->Value = getItemTemplateContents('testplan_template', $of->InstanceName, $args->notes);
// Checks on testplan name, and testplan name<=>testplan id
if ($args->do_action == "do_create" || $args->do_action == "do_update") {
$gui->testplan_name = $args->testplan_name;
$name_exists = $tproject_mgr->check_tplan_name_existence($args->tproject_id, $args->testplan_name);
$name_id_rel_ok = isset($gui->tplans[$args->tplan_id]) && $gui->tplans[$args->tplan_id]['name'] == $args->testplan_name;
}
$gui->cfields = $tplan_mgr->html_table_of_custom_field_inputs($args->tplan_id, $args->tproject_id);
switch ($args->do_action) {
case 'edit':
$tplanInfo = $tplan_mgr->get_by_id($args->tplan_id);
if (sizeof($tplanInfo)) {
$of->Value = $tplanInfo['notes'];
$gui->testplan_name = $tplanInfo['name'];
$gui->is_active = $tplanInfo['active'];
$gui->is_public = $tplanInfo['is_public'];
$gui->tplan_id = $args->tplan_id;
}
break;
case 'do_delete':
$tplanInfo = $tplan_mgr->get_by_id($args->tplan_id);
if ($tplanInfo) {
$tplan_mgr->delete($args->tplan_id);