本文整理汇总了PHP中ilDateTimeInputGUI::setShowTime方法的典型用法代码示例。如果您正苦于以下问题:PHP ilDateTimeInputGUI::setShowTime方法的具体用法?PHP ilDateTimeInputGUI::setShowTime怎么用?PHP ilDateTimeInputGUI::setShowTime使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilDateTimeInputGUI
的用法示例。
在下文中一共展示了ilDateTimeInputGUI::setShowTime方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addToForm
public function addToForm()
{
global $lng;
if ($this->getForm() instanceof ilPropertyFormGUI) {
// :TODO: use DateDurationInputGUI ?!
if (!(bool) $this->text_input) {
$check = new ilCheckboxInputGUI($this->getTitle(), $this->addToElementId("tgl"));
$check->setValue(1);
$checked = false;
} else {
$check = new ilCustomInputGUI($this->getTitle());
}
$date_from = new ilDateTimeInputGUI($lng->txt('from'), $this->addToElementId("lower"));
$date_from->setShowTime(true);
$check->addSubItem($date_from);
if ($this->getLowerADT()->getDate() && !$this->getLowerADT()->isNull()) {
$date_from->setDate($this->getLowerADT()->getDate());
$checked = true;
}
$date_until = new ilDateTimeInputGUI($lng->txt('until'), $this->addToElementId("upper"));
$date_until->setShowTime(true);
$check->addSubItem($date_until);
if ($this->getUpperADT()->getDate() && !$this->getUpperADT()->isNull()) {
$date_until->setDate($this->getUpperADT()->getDate());
$checked = true;
}
if (!(bool) $this->text_input) {
$check->setChecked($checked);
} else {
$date_from->setMode(ilDateTimeInputGUI::MODE_INPUT);
$date_until->setMode(ilDateTimeInputGUI::MODE_INPUT);
}
$this->addToParentElement($check);
} else {
// see ilTable2GUI::addFilterItemByMetaType()
include_once "./Services/Form/classes/class.ilCombinationInputGUI.php";
include_once "./Services/Form/classes/class.ilDateTimeInputGUI.php";
$item = new ilCombinationInputGUI($this->getTitle(), $this->getElementId());
$lower = new ilDateTimeInputGUI("", $this->addToElementId("lower"));
$lower->setShowTime(true);
$item->addCombinationItem("lower", $lower, $lng->txt("from"));
if ($this->getLowerADT()->getDate() && !$this->getLowerADT()->isNull()) {
$lower->setDate($this->getLowerADT()->getDate());
}
$upper = new ilDateTimeInputGUI("", $this->addToElementId("upper"));
$upper->setShowTime(true);
$item->addCombinationItem("upper", $upper, $lng->txt("to"));
if ($this->getUpperADT()->getDate() && !$this->getUpperADT()->isNull()) {
$upper->setDate($this->getUpperADT()->getDate());
}
$item->setComparisonMode(ilCombinationInputGUI::COMPARISON_ASCENDING);
$item->setMode(ilDateTimeInputGUI::MODE_INPUT);
$this->addToParentElement($item);
}
}
示例2: addToForm
public function addToForm()
{
global $lng;
$adt_date = $this->getADT()->getDate();
$date = new ilDateTimeInputGUI($this->getTitle(), $this->getElementId());
$date->setShowTime(true);
if (!(bool) $this->text_input) {
$checked = !(!$adt_date || $adt_date->isNull());
$date->enableDateActivation($lng->txt("enabled"), $this->addToElementId("tgl"), $checked);
} else {
$date->setMode(ilDateTimeInputGUI::MODE_INPUT);
}
$date->setDate($adt_date);
$this->addToParentElement($date);
}
示例3: addToForm
public function addToForm()
{
$adt_date = $this->getADT()->getDate();
$date = new ilDateTimeInputGUI($this->getTitle(), $this->getElementId());
$date->setShowTime(false);
$this->addBasicFieldProperties($date, $this->getADT()->getCopyOfDefinition());
if ((bool) $this->text_input) {
$date->setMode(ilDateTimeInputGUI::MODE_INPUT);
} else {
if (!$this->isRequired()) {
$date->enableDateActivation("", $this->getElementId() . "_tgl", !(!$adt_date || $adt_date->isNull()));
}
}
$date->setDate($adt_date);
$this->addToParentElement($date);
}
示例4: addCustomEditForm
protected function addCustomEditForm(ilPropertyFormGUI $a_form)
{
$radio_grp = new ilRadioGroupInputGUI($this->lng->txt('grp_visibility'), 'activation_type');
$radio_grp->setValue($this->object->getAvailabilityType());
$radio_grp->setDisabled(true);
$radio_opt = new ilRadioOption($this->lng->txt('grp_visibility_unvisible'), ilObjRemoteTest::ACTIVATION_OFFLINE);
$radio_grp->addOption($radio_opt);
$radio_opt = new ilRadioOption($this->lng->txt('grp_visibility_limitless'), ilObjRemoteTest::ACTIVATION_UNLIMITED);
$radio_grp->addOption($radio_opt);
// :TODO: not supported in ECS yet
$radio_opt = new ilRadioOption($this->lng->txt('grp_visibility_until'), ilObjRemoteTest::ACTIVATION_LIMITED);
$start = new ilDateTimeInputGUI($this->lng->txt('grp_start'), 'start');
$start->setDate(new ilDateTime(time(), IL_CAL_UNIX));
$start->setDisabled(true);
$start->setShowTime(true);
$radio_opt->addSubItem($start);
$end = new ilDateTimeInputGUI($this->lng->txt('grp_end'), 'end');
$end->setDate(new ilDateTime(time(), IL_CAL_UNIX));
$end->setDisabled(true);
$end->setShowTime(true);
$radio_opt->addSubItem($end);
$radio_grp->addOption($radio_opt);
$a_form->addItem($radio_grp);
}
示例5: logsObject
/**
* display assessment folder logs form
*/
public function logsObject($p_from = null, $p_until = null, $p_test = null)
{
global $ilTabs;
$ilTabs->activateTab('logs');
$template = new ilTemplate("tpl.assessment_logs.html", TRUE, TRUE, "Modules/Test");
include_once "./Modules/Test/classes/class.ilObjTest.php";
include_once "./Modules/TestQuestionPool/classes/class.assQuestion.php";
$available_tests =& ilObjTest::_getAvailableTests(1);
if (count($available_tests) == 0) {
ilUtil::sendInfo($this->lng->txt('assessment_log_no_data'));
return;
}
include_once "./Services/Form/classes/class.ilPropertyFormGUI.php";
$form = new ilPropertyFormGUI();
$form->setFormAction($this->ctrl->getFormAction($this));
$form->setTableWidth("100%");
$form->setId("logs");
$header = new ilFormSectionHeaderGUI();
$header->setTitle($this->lng->txt("assessment_log"));
$form->addItem($header);
// from
$from = new ilDateTimeInputGUI($this->lng->txt('cal_from'), "log_from");
$from->setShowTime(true);
$now = getdate();
$fromdate = $p_from ? $p_from : ($_GET['log_from'] ? $_GET['log_from'] : mktime(0, 0, 0, 1, 1, $now['year']));
$from->setDate(new ilDateTime($fromdate, IL_CAL_UNIX));
$form->addItem($from);
// until
$until = new ilDateTimeInputGUI($this->lng->txt('cal_until'), "log_until");
$until->setShowTime(true);
$untildate = $p_until ? $p_until : ($_GET['log_until'] ? $_GET['log_until'] : time());
$until->setDate(new ilDateTime($untildate, IL_CAL_UNIX));
$form->addItem($until);
// tests
$fortest = new ilSelectInputGUI($this->lng->txt('assessment_log_for_test'), "sel_test");
$sorted_options = array();
foreach ($available_tests as $key => $value) {
$sorted_options[] = array('title' => ilUtil::prepareFormOutput($value) . " [" . $this->object->getNrOfLogEntries($key) . " " . $this->lng->txt("assessment_log_log_entries") . "]", 'key' => $key);
}
$sorted_options = ilUtil::sortArray($sorted_options, 'title', 'asc');
$options = array();
foreach ($sorted_options as $option) {
$options[$option['key']] = $option['title'];
}
$fortest->setOptions($options);
$p_test = $p_test ? $p_test : $_GET['sel_test'];
if ($p_test) {
$fortest->setValue($p_test);
}
$form->addItem($fortest);
$this->ctrl->setParameter($this, 'sel_test', $p_test);
$this->ctrl->setParameter($this, 'log_until', $untildate);
$this->ctrl->setParameter($this, 'log_from', $fromdate);
$form->addCommandButton("showLog", $this->lng->txt("show"));
$form->addCommandButton("exportLog", $this->lng->txt("export"));
$template->setVariable("FORM", $form->getHTML());
if ($p_test) {
include_once "./Modules/Test/classes/tables/class.ilAssessmentFolderLogTableGUI.php";
$table_gui = new ilAssessmentFolderLogTableGUI($this, 'logs');
$log_output =& $this->object->getLog($fromdate, $untildate, $p_test);
$table_gui->setData($log_output);
$template->setVariable('LOG', $table_gui->getHTML());
}
$this->tpl->setVariable("ADM_CONTENT", $template->get());
}
示例6: initForm
//.........这里部分代码省略.........
} else {
if ($_GET['category_id']) {
$calendar->setValue((int) $_GET['category_id']);
$selected_calendar = (int) $_GET['category_id'];
} elseif ($a_mode == 'edit') {
$ass = new ilCalendarCategoryAssignments($this->app->getEntryId());
$cat = $ass->getFirstAssignment();
$calendar->setValue($cat);
$selected_calendar = $cat;
} elseif (isset($_GET['ref_id'])) {
include_once './Services/Calendar/classes/class.ilCalendarCategories.php';
$obj_cal = ilObject::_lookupObjId($_GET['ref_id']);
$calendar->setValue(ilCalendarCategories::_lookupCategoryIdByObjId($obj_cal));
$selected_calendar = ilCalendarCategories::_lookupCategoryIdByObjId($obj_cal);
}
}
$calendar->setRequired(true);
$cats = ilCalendarCategories::_getInstance($ilUser->getId());
$calendar->setOptions($cats->prepareCategoriesOfUserForSelection());
include_once './Services/Calendar/classes/class.ilCalendarSettings.php';
if (ilCalendarSettings::_getInstance()->isNotificationEnabled()) {
$notification_cals = $cats->getNotificationCalendars();
$notification_cals = count($notification_cals) ? implode(',', $notification_cals) : '';
$calendar->addCustomAttribute("onchange=\"ilToggleNotification(new Array(" . $notification_cals . "));\"");
}
$this->form->addItem($calendar);
if (!$a_as_milestone) {
include_once './Services/Form/classes/class.ilDateDurationInputGUI.php';
$tpl->addJavaScript('./Services/Form/js/date_duration.js');
$dur = new ilDateDurationInputGUI($this->lng->txt('cal_fullday'), 'event');
$dur->setStartText($this->lng->txt('cal_start'));
$dur->setEndText($this->lng->txt('cal_end'));
$dur->enableToggleFullTime($this->lng->txt('cal_fullday_title'), $this->app->isFullday() ? true : false);
$dur->setShowTime(true);
$dur->setStart($this->app->getStart());
$dur->setEnd($this->app->getEnd());
$this->form->addItem($dur);
// recurrence
include_once './Services/Calendar/classes/Form/class.ilRecurrenceInputGUI.php';
$rec = new ilRecurrenceInputGUI($this->lng->txt('cal_recurrences'), 'frequence');
$rec->setRecurrence($this->rec);
$this->form->addItem($rec);
// location
$where = new ilTextInputGUI($this->lng->txt('cal_where'), 'location');
$where->setValue($this->app->getLocation());
$where->setMaxLength(128);
$where->setSize(32);
$this->form->addItem($where);
} else {
$deadline = new ilDateTimeInputGUI($this->lng->txt('cal_deadline'), 'event[start]');
$deadline->setDate($this->app->getStart());
$deadline->setShowTime(false);
$deadline->setMinuteStepSize(5);
$this->form->addItem($deadline);
// completion
$completion_vals = array();
for ($i = 0; $i <= 100; $i += 5) {
$completion_vals[$i] = $i . " %";
}
$compl = new ilSelectInputGUI($this->lng->txt('cal_task_completion'), 'completion');
$compl->setOptions($completion_vals);
$compl->setValue($this->app->getCompletion());
$this->form->addItem($compl);
}
$desc = new ilTextAreaInputGUI($this->lng->txt('description'), 'description');
$desc->setValue($this->app->getDescription());
示例7: addTestAccessProperties
/**
* @param ilPropertyFormGUI $form
*/
private function addTestAccessProperties(ilPropertyFormGUI $form)
{
$header = new ilFormSectionHeaderGUI();
$header->setTitle($this->lng->txt("tst_settings_header_execution"));
$form->addItem($header);
// enable starting time
$enablestartingtime = new ilCheckboxInputGUI($this->lng->txt("tst_starting_time"), "chb_starting_time");
$enablestartingtime->setInfo($this->lng->txt("tst_starting_time_desc"));
$enablestartingtime->setChecked($this->testOBJ->isStartingTimeEnabled());
// starting time
$startingtime = new ilDateTimeInputGUI('', 'starting_time');
$startingtime->setShowTime(true);
if (strlen($this->testOBJ->getStartingTime())) {
$startingtime->setDate(new ilDateTime($this->testOBJ->getStartingTime(), IL_CAL_TIMESTAMP));
} else {
$startingtime->setDate(new ilDateTime(time(), IL_CAL_UNIX));
}
$enablestartingtime->addSubItem($startingtime);
$form->addItem($enablestartingtime);
if ($this->testOBJ->participantDataExist()) {
$enablestartingtime->setDisabled(true);
$startingtime->setDisabled(true);
}
// enable ending time
$enableendingtime = new ilCheckboxInputGUI($this->lng->txt("tst_ending_time"), "chb_ending_time");
$enableendingtime->setInfo($this->lng->txt("tst_ending_time_desc"));
$enableendingtime->setChecked($this->testOBJ->isEndingTimeEnabled());
// ending time
$endingtime = new ilDateTimeInputGUI('', 'ending_time');
$endingtime->setShowTime(true);
if (strlen($this->testOBJ->getEndingTime())) {
$endingtime->setDate(new ilDateTime($this->testOBJ->getEndingTime(), IL_CAL_TIMESTAMP));
} else {
$endingtime->setDate(new ilDateTime(time(), IL_CAL_UNIX));
}
$enableendingtime->addSubItem($endingtime);
$form->addItem($enableendingtime);
// test password
$pwEnabled = new ilCheckboxInputGUI($this->lng->txt('tst_password'), 'password_enabled');
$pwEnabled->setChecked($this->testOBJ->isPasswordEnabled());
$pwEnabled->setInfo($this->lng->txt("tst_password_details"));
$password = new ilTextInputGUI($this->lng->txt("tst_password_enter"), "password");
$password->setRequired(true);
$password->setSize(20);
$password->setValue($this->testOBJ->getPassword());
$pwEnabled->addSubItem($password);
$form->addItem($pwEnabled);
// fixed participants
$fixedparticipants = new ilCheckboxInputGUI($this->lng->txt('participants_invitation'), "fixedparticipants");
$fixedparticipants->setValue(1);
$fixedparticipants->setChecked($this->testOBJ->getFixedParticipants());
$fixedparticipants->setInfo($this->lng->txt("participants_invitation_description"));
$invited_users = $this->testOBJ->getInvitedUsers();
if ($this->testOBJ->participantDataExist() && count($invited_users) == 0) {
$fixedparticipants->setDisabled(true);
}
$form->addItem($fixedparticipants);
// simultaneous users
$simulLimited = new ilCheckboxInputGUI($this->lng->txt("tst_allowed_users"), 'limitUsers');
$simulLimited->setInfo($this->lng->txt("tst_allowed_users_desc"));
$simulLimited->setChecked($this->testOBJ->isLimitUsersEnabled());
// allowed simultaneous users
$simul = new ilNumberInputGUI($this->lng->txt("tst_allowed_users_max"), "allowedUsers");
$simul->setRequired(true);
$simul->allowDecimals(false);
$simul->setMinValue(1);
$simul->setMinvalueShouldBeGreater(false);
$simul->setSize(4);
$simul->setValue($this->testOBJ->getAllowedUsers() ? $this->testOBJ->getAllowedUsers() : '');
$simulLimited->addSubItem($simul);
// idle time
$idle = new ilNumberInputGUI($this->lng->txt("tst_allowed_users_time_gap"), "allowedUsersTimeGap");
$idle->setInfo($this->lng->txt("tst_allowed_users_time_gap_desc"));
$idle->setSize(4);
$idle->setSuffix($this->lng->txt("seconds"));
$idle->setValue($this->testOBJ->getAllowedUsersTimeGap() ? $this->testOBJ->getAllowedUsersTimeGap() : 300);
$simulLimited->addSubItem($idle);
$form->addItem($simulLimited);
return $header;
}
示例8: initFormEdit
/**
* init form edit
*
* @access protected
* @return
*/
protected function initFormEdit()
{
global $tree;
include_once "Services/Object/classes/class.ilObjectActivation.php";
include_once './Services/Form/classes/class.ilPropertyFormGUI.php';
$this->form = new ilPropertyFormGUI();
$this->form->setFormAction($this->ctrl->getFormAction($this));
$title = ilObject::_lookupTitle(ilObject::_lookupObjId($this->getItemId()));
$this->form->setTitle($title . ': ' . $this->lng->txt('crs_edit_timings'));
$timings = new ilRadioGroupInputGUI($this->lng->txt('timings'), 'timing_type');
// opt deactivated
$dea = new ilRadioOption($this->lng->txt('crs_timings_disabled'), ilObjectActivation::TIMINGS_DEACTIVATED);
$dea->setInfo($this->lng->txt('crs_timings_disabled_info'));
$timings->addOption($dea);
// Visiblity
$vis = new ilRadioOption($this->lng->txt('crs_timings_availability_enabled'), ilObjectActivation::TIMINGS_ACTIVATION);
#$vis->setInfo($this->lng->txt('crs_timings_visibility'));
$start = new ilDateTimeInputGUI($this->lng->txt('crs_timings_start'), 'timing_start');
$start->setShowTime(true);
#$start->setMinuteStepSize(5);
$vis->addSubItem($start);
$end = new ilDateTimeInputGUI($this->lng->txt('crs_timings_end'), 'timing_end');
$end->setShowTime(true);
#$end->setMinuteStepSize(5);
$vis->addSubItem($end);
$isv = new ilCheckboxInputGUI($this->lng->txt('crs_timings_visibility_short'), 'visible');
$isv->setInfo($this->lng->txt('crs_timings_visibility'));
$isv->setValue(1);
$vis->addSubItem($isv);
$timings->addOption($vis);
// Timings
$tim = new ilRadioOption($this->lng->txt('crs_timings_presetting'), ilObjectActivation::TIMINGS_PRESETTING);
$tim->setInfo($this->lng->txt('crs_item_presetting_info'));
$start = new ilDateTimeInputGUI($this->lng->txt('crs_timings_sug_begin'), 'sug_start');
$tim->addSubItem($start);
$end = new ilDateTimeInputGUI($this->lng->txt('crs_timings_sug_end'), 'sug_end');
$tim->addSubItem($end);
if ($tree->checkForParentType($this->parent_ref_id, 'crs')) {
$cha = new ilCheckboxInputGUI($this->lng->txt('crs_timings_changeable'), 'changeable');
$tim->addSubItem($cha);
$start = new ilDateTimeInputGUI($this->lng->txt('crs_timings_early_begin'), 'early_start');
$tim->addSubItem($start);
$late = new ilDateTimeInputGUI($this->lng->txt('crs_timings_short_limit_start_end'), 'late_end');
$tim->addSubItem($late);
}
$timings->addOption($tim);
$this->form->addItem($timings);
$this->form->addCommandButton('update', $this->lng->txt('save'));
$this->form->addCommandButton('cancel', $this->lng->txt('cancel'));
}
示例9: buildForm
private function buildForm()
{
require_once 'Services/Form/classes/class.ilPropertyFormGUI.php';
$form = new ilPropertyFormGUI();
$form->setFormAction($this->ctrl->getFormAction($this));
$form->addCommandButton(self::CMD_SAVE_FORM, $this->lng->txt("save"));
$form->setTableWidth("100%");
$form->setId("test_properties");
if (!$this->settingsTemplate || $this->formShowGeneralSection($this->settingsTemplate->getSettings())) {
// general properties
$header = new ilFormSectionHeaderGUI();
$header->setTitle($this->lng->txt("tst_general_properties"));
$form->addItem($header);
}
// title & description (meta data)
include_once 'Services/MetaData/classes/class.ilMD.php';
$md_obj = new ilMD($this->testOBJ->getId(), 0, "tst");
$md_section = $md_obj->getGeneral();
$title = new ilTextInputGUI($this->lng->txt("title"), "title");
$title->setRequired(true);
$title->setValue($md_section->getTitle());
$form->addItem($title);
$ids = $md_section->getDescriptionIds();
if ($ids) {
$desc_obj = $md_section->getDescription(array_pop($ids));
$desc = new ilTextAreaInputGUI($this->lng->txt("description"), "description");
$desc->setCols(50);
$desc->setRows(4);
$desc->setValue($desc_obj->getDescription());
$form->addItem($desc);
}
// anonymity
$anonymity = new ilRadioGroupInputGUI($this->lng->txt('tst_anonymity'), 'anonymity');
if ($this->testOBJ->participantDataExist()) {
$anonymity->setDisabled(true);
}
$rb = new ilRadioOption($this->lng->txt('tst_anonymity_no_anonymization'), 0);
$anonymity->addOption($rb);
$rb = new ilRadioOption($this->lng->txt('tst_anonymity_anonymous_test'), 1);
$anonymity->addOption($rb);
$anonymity->setValue((int) $this->testOBJ->getAnonymity());
$form->addItem($anonymity);
// test mode (question set type)
$questSetType = new ilRadioGroupInputGUI($this->lng->txt("tst_question_set_type"), 'question_set_type');
$questSetTypeFixed = new ilRadioOption($this->lng->txt("tst_question_set_type_fixed"), ilObjTest::QUESTION_SET_TYPE_FIXED, $this->lng->txt("tst_question_set_type_fixed_desc"));
$questSetType->addOption($questSetTypeFixed);
$questSetTypeRandom = new ilRadioOption($this->lng->txt("tst_question_set_type_random"), ilObjTest::QUESTION_SET_TYPE_RANDOM, $this->lng->txt("tst_question_set_type_random_desc"));
$questSetType->addOption($questSetTypeRandom);
$questSetTypeContinues = new ilRadioOption($this->lng->txt("tst_question_set_type_dynamic"), ilObjTest::QUESTION_SET_TYPE_DYNAMIC, $this->lng->txt("tst_question_set_type_dynamic_desc"));
$questSetType->addOption($questSetTypeContinues);
$questSetType->setValue($this->testOBJ->getQuestionSetType());
if ($this->testOBJ->participantDataExist()) {
$questSetType->setDisabled(true);
}
$form->addItem($questSetType);
// pool usage
$pool_usage = new ilCheckboxInputGUI($this->lng->txt("test_question_pool_usage"), "use_pool");
$pool_usage->setValue(1);
$pool_usage->setChecked($this->testOBJ->getPoolUsage());
$form->addItem($pool_usage);
// enable_archiving
$enable_archiving = new ilCheckboxInputGUI($this->lng->txt('test_enable_archiving'), 'enable_archiving');
$enable_archiving->setValue(1);
$enable_archiving->setChecked($this->testOBJ->getEnableArchiving());
$form->addItem($enable_archiving);
// activation/availability (no template support yet)
include_once "Services/Object/classes/class.ilObjectActivation.php";
$this->lng->loadLanguageModule('rep');
$section = new ilFormSectionHeaderGUI();
$section->setTitle($this->lng->txt('rep_activation_availability'));
$form->addItem($section);
// additional info only with multiple references
$act_obj_info = $act_ref_info = "";
if (sizeof(ilObject::_getAllReferences($this->testOBJ->getId())) > 1) {
$act_obj_info = ' ' . $this->lng->txt('rep_activation_online_object_info');
$act_ref_info = $this->lng->txt('rep_activation_access_ref_info');
}
$online = new ilCheckboxInputGUI($this->lng->txt('rep_activation_online'), 'online');
$online->setChecked($this->testOBJ->isOnline());
$online->setInfo($this->lng->txt('tst_activation_online_info') . $act_obj_info);
$form->addItem($online);
$act_type = new ilRadioGroupInputGUI($this->lng->txt('rep_activation_access'), 'activation_type');
$act_type->setInfo($act_ref_info);
$act_type->setValue($this->testOBJ->isActivationLimited() ? ilObjectActivation::TIMINGS_ACTIVATION : ilObjectActivation::TIMINGS_DEACTIVATED);
$opt = new ilRadioOption($this->lng->txt('rep_visibility_limitless'), ilObjectActivation::TIMINGS_DEACTIVATED);
$opt->setInfo($this->lng->txt('tst_availability_limitless_info'));
$act_type->addOption($opt);
$opt = new ilRadioOption($this->lng->txt('rep_visibility_until'), ilObjectActivation::TIMINGS_ACTIVATION);
$opt->setInfo($this->lng->txt('tst_availability_until_info'));
$this->tpl->addJavaScript('./Services/Form/js/date_duration.js');
include_once "Services/Form/classes/class.ilDateDurationInputGUI.php";
$dur = new ilDateDurationInputGUI("", "access_period");
$dur->setShowTime(true);
$date = $this->testOBJ->getActivationStartingTime();
$dur->setStart(new ilDateTime($date ? $date : time(), IL_CAL_UNIX));
$dur->setStartText($this->lng->txt('rep_activation_limited_start'));
$date = $this->testOBJ->getActivationEndingTime();
$dur->setEnd(new ilDateTime($date ? $date : time(), IL_CAL_UNIX));
$dur->setEndText($this->lng->txt('rep_activation_limited_end'));
$opt->addSubItem($dur);
//.........这里部分代码省略.........
示例10: initSettingsForm
/**
* Init setting form
*/
function initSettingsForm()
{
global $ilUser, $lng, $ilCtrl, $ilSetting, $ilTabs;
$ilTabs->clearTargets();
$news_set = new ilSetting("news");
$enable_internal_rss = $news_set->get("enable_rss_for_internal");
$public = ilBlockSetting::_lookup($this->getBlockType(), "public_notifications", 0, $this->block_id);
$public_feed = ilBlockSetting::_lookup($this->getBlockType(), "public_feed", 0, $this->block_id);
$hide_block = ilBlockSetting::_lookup($this->getBlockType(), "hide_news_block", 0, $this->block_id);
$hide_news_per_date = ilBlockSetting::_lookup($this->getBlockType(), "hide_news_per_date", 0, $this->block_id);
$hide_news_date = ilBlockSetting::_lookup($this->getBlockType(), "hide_news_date", 0, $this->block_id);
if ($hide_news_date != "") {
$hide_news_date = explode(" ", $hide_news_date);
}
include_once "./Services/Form/classes/class.ilPropertyFormGUI.php";
$this->settings_form = new ilPropertyFormGUI();
$this->settings_form->setTitle($lng->txt("news_settings"));
$this->settings_form->setTitleIcon(ilUtil::getImagePath("icon_news.png"));
// hide news block for learners
if ($this->getProperty("hide_news_block_option")) {
$ch = new ilCheckboxInputGUI($lng->txt("news_hide_news_block"), "hide_news_block");
$ch->setInfo($lng->txt("news_hide_news_block_info"));
$ch->setChecked($hide_block);
$this->settings_form->addItem($ch);
$hnpd = new ilCheckboxInputGUI($lng->txt("news_hide_news_per_date"), "hide_news_per_date");
$hnpd->setInfo($lng->txt("news_hide_news_per_date_info"));
$hnpd->setChecked($hide_news_per_date);
$dt_prop = new ilDateTimeInputGUI($lng->txt("news_hide_news_date"), "hide_news_date");
if ($hide_news_date != "") {
$dt_prop->setDate(new ilDateTime($hide_news_date[0] . ' ' . $hide_news_date[1], IL_CAL_DATETIME));
}
#$dt_prop->setDate($hide_news_date[0]);
#$dt_prop->setTime($hide_news_date[1]);
$dt_prop->setShowTime(true);
//$dt_prop->setInfo($lng->txt("news_hide_news_date_info"));
$hnpd->addSubItem($dt_prop);
$this->settings_form->addItem($hnpd);
}
// default visibility
if ($this->getProperty("default_visibility_option") && $enable_internal_rss) {
$default_visibility = ilBlockSetting::_lookup($this->getBlockType(), "default_visibility", 0, $this->block_id);
if ($default_visibility == "") {
$default_visibility = ilNewsItem::_getDefaultVisibilityForRefId($_GET["ref_id"]);
}
// Default Visibility
$radio_group = new ilRadioGroupInputGUI($lng->txt("news_default_visibility"), "default_visibility");
$radio_option = new ilRadioOption($lng->txt("news_visibility_users"), "users");
$radio_group->addOption($radio_option);
$radio_option = new ilRadioOption($lng->txt("news_visibility_public"), "public");
$radio_group->addOption($radio_option);
$radio_group->setInfo($lng->txt("news_news_item_visibility_info"));
$radio_group->setRequired(false);
$radio_group->setValue($default_visibility);
$this->settings_form->addItem($radio_group);
}
// public notifications
if ($this->getProperty("public_notifications_option") && $enable_internal_rss) {
$ch = new ilCheckboxInputGUI($lng->txt("news_notifications_public"), "notifications_public");
$ch->setInfo($lng->txt("news_notifications_public_info"));
$ch->setChecked($public);
$this->settings_form->addItem($ch);
}
// extra rss feed
if ($enable_internal_rss) {
$ch = new ilCheckboxInputGUI($lng->txt("news_public_feed"), "notifications_public_feed");
$ch->setInfo($lng->txt("news_public_feed_info"));
$ch->setChecked($public_feed);
$this->settings_form->addItem($ch);
}
//$this->settings_form->addCheckboxProperty($lng->txt("news_public_feed"), "notifications_public_feed",
// "1", $public_feed, $lng->txt("news_public_feed_info"));
//if ($this->getProperty("public_notifications_option"))
//{
// $this->settings_form->addCheckboxProperty($lng->txt("news_notifications_public"), "notifications_public",
// "1", $public, $lng->txt("news_notifications_public_info"));
//}
$this->settings_form->addCommandButton("saveSettings", $lng->txt("save"));
$this->settings_form->addCommandButton("cancelSettings", $lng->txt("cancel"));
$this->settings_form->setFormAction($ilCtrl->getFormaction($this));
}
示例11: addFilterItemByMetaType
/**
* Add filter by standard type
*
* @param string $id
* @param int $type
* @param bool $a_optional
* @param string $caption
* @return object
*/
function addFilterItemByMetaType($id, $type = self::FILTER_TEXT, $a_optional = false, $caption = NULL)
{
global $lng;
if (!$caption) {
$caption = $lng->txt($id);
}
include_once "./Services/Form/classes/class.ilPropertyFormGUI.php";
switch ($type) {
case self::FILTER_SELECT:
include_once "./Services/Form/classes/class.ilSelectInputGUI.php";
$item = new ilSelectInputGUI($caption, $id);
break;
case self::FILTER_DATE:
include_once "./Services/Form/classes/class.ilDateTimeInputGUI.php";
$item = new ilDateTimeInputGUI($caption, $id);
$item->setMode(ilDateTimeInputGUI::MODE_INPUT);
break;
case self::FILTER_TEXT:
include_once "./Services/Form/classes/class.ilTextInputGUI.php";
$item = new ilTextInputGUI($caption, $id);
$item->setMaxLength(64);
$item->setSize(20);
// $item->setSubmitFormOnEnter(true);
break;
case self::FILTER_LANGUAGE:
$lng->loadLanguageModule("meta");
include_once "./Services/Form/classes/class.ilSelectInputGUI.php";
$item = new ilSelectInputGUI($caption, $id);
$options = array("" => $lng->txt("trac_all"));
foreach ($lng->getInstalledLanguages() as $lang_key) {
$options[$lang_key] = $lng->txt("meta_l_" . $lang_key);
}
$item->setOptions($options);
break;
case self::FILTER_NUMBER_RANGE:
include_once "./Services/Form/classes/class.ilCombinationInputGUI.php";
include_once "./Services/Form/classes/class.ilNumberInputGUI.php";
$item = new ilCombinationInputGUI($caption, $id);
$combi_item = new ilNumberInputGUI("", $id . "_from");
$item->addCombinationItem("from", $combi_item, $lng->txt("from"));
$combi_item = new ilNumberInputGUI("", $id . "_to");
$item->addCombinationItem("to", $combi_item, $lng->txt("to"));
$item->setComparisonMode(ilCombinationInputGUI::COMPARISON_ASCENDING);
$item->setMaxLength(7);
$item->setSize(20);
break;
case self::FILTER_DATE_RANGE:
include_once "./Services/Form/classes/class.ilCombinationInputGUI.php";
include_once "./Services/Form/classes/class.ilDateTimeInputGUI.php";
$item = new ilCombinationInputGUI($caption, $id);
$combi_item = new ilDateTimeInputGUI("", $id . "_from");
$item->addCombinationItem("from", $combi_item, $lng->txt("from"));
$combi_item = new ilDateTimeInputGUI("", $id . "_to");
$item->addCombinationItem("to", $combi_item, $lng->txt("to"));
$item->setComparisonMode(ilCombinationInputGUI::COMPARISON_ASCENDING);
$item->setMode(ilDateTimeInputGUI::MODE_INPUT);
break;
case self::FILTER_DATETIME_RANGE:
include_once "./Services/Form/classes/class.ilCombinationInputGUI.php";
include_once "./Services/Form/classes/class.ilDateTimeInputGUI.php";
$item = new ilCombinationInputGUI($caption, $id);
$combi_item = new ilDateTimeInputGUI("", $id . "_from");
$combi_item->setShowTime(true);
$item->addCombinationItem("from", $combi_item, $lng->txt("from"));
$combi_item = new ilDateTimeInputGUI("", $id . "_to");
$combi_item->setShowTime(true);
$item->addCombinationItem("to", $combi_item, $lng->txt("to"));
$item->setComparisonMode(ilCombinationInputGUI::COMPARISON_ASCENDING);
$item->setMode(ilDateTimeInputGUI::MODE_INPUT);
break;
case self::FILTER_DURATION_RANGE:
$lng->loadLanguageModule("form");
include_once "./Services/Form/classes/class.ilCombinationInputGUI.php";
include_once "./Services/Form/classes/class.ilDurationInputGUI.php";
$item = new ilCombinationInputGUI($caption, $id);
$combi_item = new ilDurationInputGUI("", $id . "_from");
$combi_item->setShowMonths(false);
$combi_item->setShowDays(true);
$combi_item->setShowSeconds(true);
$item->addCombinationItem("from", $combi_item, $lng->txt("from"));
$combi_item = new ilDurationInputGUI("", $id . "_to");
$combi_item->setShowMonths(false);
$combi_item->setShowDays(true);
$combi_item->setShowSeconds(true);
$item->addCombinationItem("to", $combi_item, $lng->txt("to"));
$item->setComparisonMode(ilCombinationInputGUI::COMPARISON_ASCENDING);
break;
default:
return false;
}
$this->addFilterItem($item, $a_optional);
//.........这里部分代码省略.........
示例12: initEditCustomForm
protected function initEditCustomForm(ilPropertyFormGUI $a_form)
{
global $lng;
// activation
include_once "Services/Object/classes/class.ilObjectActivation.php";
$this->lng->loadLanguageModule('rep');
$section = new ilFormSectionHeaderGUI();
$section->setTitle($this->lng->txt('rep_activation_availability'));
$a_form->addItem($section);
// additional info only with multiple references
$act_obj_info = $act_ref_info = "";
if (sizeof(ilObject::_getAllReferences($this->object->getId())) > 1) {
$act_obj_info = ' ' . $this->lng->txt('rep_activation_online_object_info');
$act_ref_info = $this->lng->txt('rep_activation_access_ref_info');
}
$online = new ilCheckboxInputGUI($this->lng->txt('rep_activation_online'), 'online');
$online->setInfo($this->lng->txt('poll_activation_online_info') . $act_obj_info);
$a_form->addItem($online);
$act_type = new ilRadioGroupInputGUI($this->lng->txt('rep_activation_access'), 'access_type');
$act_type->setInfo($act_ref_info);
$opt = new ilRadioOption($this->lng->txt('rep_visibility_limitless'), ilObjectActivation::TIMINGS_DEACTIVATED);
$opt->setInfo($this->lng->txt('poll_availability_limitless_info'));
$act_type->addOption($opt);
$opt = new ilRadioOption($this->lng->txt('rep_visibility_until'), ilObjectActivation::TIMINGS_ACTIVATION);
$opt->setInfo($this->lng->txt('poll_availability_until_info'));
$date = $this->object->getAccessBegin();
$start = new ilDateTimeInputGUI($this->lng->txt('rep_activation_limited_start'), 'access_begin');
$start->setShowTime(true);
$start->setDate(new ilDateTime($date ? $date : time(), IL_CAL_UNIX));
$opt->addSubItem($start);
$date = $this->object->getAccessEnd();
$end = new ilDateTimeInputGUI($this->lng->txt('rep_activation_limited_end'), 'access_end');
$end->setShowTime(true);
$end->setDate(new ilDateTime($date ? $date : time(), IL_CAL_UNIX));
$opt->addSubItem($end);
/*
$visible = new ilCheckboxInputGUI($this->lng->txt('rep_activation_limited_visibility'), 'access_visiblity');
$visible->setInfo($this->lng->txt('poll_activation_limited_visibility_info'));
$opt->addSubItem($visible);
*/
$act_type->addOption($opt);
$a_form->addItem($act_type);
// period/results
$section = new ilFormSectionHeaderGUI();
$section->setTitle($this->lng->txt('poll_voting_period_and_results'));
$a_form->addItem($section);
$prd = new ilRadioGroupInputGUI($this->lng->txt('poll_voting_period'), 'period');
$opt = new ilRadioOption($this->lng->txt('poll_voting_period_unlimited'), 0);
$prd->addOption($opt);
$opt = new ilRadioOption($this->lng->txt('poll_voting_period_limited'), 1);
$prd->addOption($opt);
$date = $this->object->getVotingPeriodBegin();
$start = new ilDateTimeInputGUI($this->lng->txt('poll_voting_period_start'), 'period_begin');
$start->setShowTime(true);
$start->setDate(new ilDateTime($date ? $date : time(), IL_CAL_UNIX));
$opt->addSubItem($start);
$date = $this->object->getVotingPeriodEnd();
$end = new ilDateTimeInputGUI($this->lng->txt('poll_voting_period_end'), 'period_end');
$end->setShowTime(true);
$end->setDate(new ilDateTime($date ? $date : time(), IL_CAL_UNIX));
$opt->addSubItem($end);
$a_form->addItem($prd);
$results = new ilRadioGroupInputGUI($lng->txt("poll_view_results"), "results");
$results->setRequired(true);
$results->addOption(new ilRadioOption($lng->txt("poll_view_results_always"), ilObjPoll::VIEW_RESULTS_ALWAYS));
$results->addOption(new ilRadioOption($lng->txt("poll_view_results_never"), ilObjPoll::VIEW_RESULTS_NEVER));
$results->addOption(new ilRadioOption($lng->txt("poll_view_results_after_vote"), ilObjPoll::VIEW_RESULTS_AFTER_VOTE));
$results->addOption(new ilRadioOption($lng->txt("poll_view_results_after_period"), ilObjPoll::VIEW_RESULTS_AFTER_PERIOD));
$a_form->addItem($results);
}
示例13: initUpdateBookingForm
protected function initUpdateBookingForm($booking)
{
global $lng;
$lng->loadLanguageModule('dateplaner');
$lng->loadLanguageModule('crs');
include_once './Services/Form/classes/class.ilPropertyFormGUI.php';
$form = new ilPropertyFormGUI();
$form->setFormAction($this->ctrl->getFormAction($this, 'showContent'));
$form->setTitle(ilViteroPlugin::getInstance()->txt('tbl_update_appointment'));
$form->addCommandButton('updateBooking', $GLOBALS['lng']->txt('save'));
$form->addCommandButton('showContent', $GLOBALS['lng']->txt('cancel'));
// Show only start if type is "cafe"
if ($booking->booking->cafe) {
$start = new ilDateTimeInputGUI($lng->txt('event_start_date'), 'cstart');
$start->setShowTime(false);
$start->setDate(ilViteroUtils::parseSoapDate($booking->booking->start));
$form->addItem($start);
} else {
include_once './Services/Form/classes/class.ilDateDurationInputGUI.php';
$dt = new ilDateDurationInputGUI($lng->txt('cal_fullday'), 'roomduration');
$dt->setMinuteStepSize(15);
$dt->setStartText($lng->txt('event_start_date'));
$dt->setEndText($lng->txt('event_end_date'));
$dt->setShowTime(true);
$dt->setStart(ilViteroUtils::parseSoapDate($booking->booking->start));
$dt->setEnd(ilViteroUtils::parseSoapDate($booking->booking->end));
$form->addItem($dt);
$this->initFormTimeBuffer($form);
$form->getItemByPostVar('buffer_before')->setValue($booking->booking->startbuffer);
$form->getItemByPostVar('buffer_after')->setValue($booking->booking->endbuffer);
}
return $form;
}
示例14: addResultSettingsFormSection
private function addResultSettingsFormSection(ilPropertyFormGUI $form)
{
// HEADER: result settings
$header_tr = new ilFormSectionHeaderGUI();
$header_tr->setTitle($this->lng->txt('test_results'));
$form->addItem($header_tr);
// access to test results
$resultsAccessEnabled = new ilCheckboxInputGUI($this->lng->txt('tst_results_access_enabled'), 'results_access_enabled');
$resultsAccessEnabled->setInfo($this->lng->txt('tst_results_access_enabled_desc'));
$resultsAccessEnabled->setChecked($this->testOBJ->isScoreReportingEnabled());
$resultsAccessSetting = new ilRadioGroupInputGUI($this->lng->txt('tst_results_access_setting'), 'results_access_setting');
$resultsAccessSetting->setRequired(true);
$optAlways = new ilRadioOption($this->lng->txt('tst_results_access_always'), 2, '');
$optAlways->setInfo($this->lng->txt('tst_results_access_always_desc'));
$resultsAccessSetting->addOption($optAlways);
$optFinished = $opt = new ilRadioOption($this->lng->txt('tst_results_access_finished'), 1, '');
$optFinished->setInfo($this->lng->txt('tst_results_access_finished_desc'));
$resultsAccessSetting->addOption($optFinished);
$optionDate = new ilRadioOption($this->lng->txt('tst_results_access_date'), 3, '');
$optionDate->setInfo($this->lng->txt('tst_results_access_date_desc'));
// access date
$reportingDate = new ilDateTimeInputGUI($this->lng->txt('tst_reporting_date'), 'reporting_date');
$reportingDate->setShowTime(true);
if (strlen($this->testOBJ->getReportingDate())) {
$reportingDate->setDate(new ilDateTime($this->testOBJ->getReportingDate(), IL_CAL_TIMESTAMP));
} else {
$reportingDate->setDate(new ilDateTime(time(), IL_CAL_UNIX));
}
$optionDate->addSubItem($reportingDate);
$resultsAccessSetting->addOption($optionDate);
$resultsAccessValue = $this->testOBJ->getScoreReporting();
$resultsAccessSetting->setValue($resultsAccessValue > 0 && $resultsAccessValue < 4 ? $resultsAccessValue : 2);
$resultsAccessEnabled->addSubItem($resultsAccessSetting);
// show pass details
$showPassDetails = new ilCheckboxInputGUI($this->lng->txt('tst_show_pass_details'), 'pass_details');
$showPassDetails->setInfo($this->lng->txt('tst_show_pass_details_desc'));
$showPassDetails->setChecked($this->testOBJ->getShowPassDetails());
$resultsAccessEnabled->addSubItem($showPassDetails);
$form->addItem($resultsAccessEnabled);
// grading
$chb_only_passed_failed = new ilCheckboxInputGUI($this->lng->txt('tst_results_grading_opt_show_status'), 'grading_status');
$chb_only_passed_failed->setInfo($this->lng->txt('tst_results_grading_opt_show_status_desc'));
$chb_only_passed_failed->setValue(1);
$chb_only_passed_failed->setChecked($this->testOBJ->isShowGradingStatusEnabled());
$form->addItem($chb_only_passed_failed);
$chb_resulting_mark_only = new ilCheckboxInputGUI($this->lng->txt('tst_results_grading_opt_show_mark'), 'grading_mark');
$chb_resulting_mark_only->setInfo($this->lng->txt('tst_results_grading_opt_show_mark_desc'));
$chb_resulting_mark_only->setValue(1);
$chb_resulting_mark_only->setChecked($this->testOBJ->isShowGradingMarkEnabled());
$form->addItem($chb_resulting_mark_only);
}
示例15: initForm
/**
* initEditCustomForm
*
* @param string $a_mode
*/
public function initForm($a_mode = "create")
{
include_once "./Services/Form/classes/class.ilPropertyFormGUI.php";
$this->form = new ilPropertyFormGUI();
$item = new ilTextInputGUI($this->lng->txt('title'), 'title');
$item->setRequired(true);
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($this->lng->txt('dcl_visible'), 'is_visible');
$this->form->addItem($item);
// Show default order field and direction only in edit mode, because table id is not yet given and there are no fields to select
if ($a_mode != 'create') {
$item = new ilSelectInputGUI($this->lng->txt('dcl_default_sort_field'), 'default_sort_field');
$fields = $this->table->getVisibleFields();
$options = array(0 => $this->lng->txt('dcl_please_select'));
foreach ($fields as $field) {
$options[$field->getId()] = $field->getTitle();
}
$item->setOptions($options);
$this->form->addItem($item);
$item = new ilSelectInputGUI($this->lng->txt('dcl_default_sort_field_order'), 'default_sort_field_order');
$options = array('asc' => $this->lng->txt('dcl_asc'), 'desc' => $this->lng->txt('dcl_desc'));
$item->setOptions($options);
$this->form->addItem($item);
}
$item = new ilTextAreaInputGUI($this->lng->txt('additional_info'), 'description');
$item->setUseRte(true);
// $item->setRTESupport($this->table->getId(), 'dcl', 'table_settings');
$item->setRteTagSet('mini');
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($this->lng->txt('dcl_public_comments'), 'public_comments');
$this->form->addItem($item);
$section = new ilFormSectionHeaderGUI();
$section->setTitle($this->lng->txt('dcl_permissions_form'));
$this->form->addItem($section);
$item = new ilCustomInputGUI();
$item->setHtml($this->lng->txt('dcl_table_info'));
$item->setTitle($this->lng->txt('dcl_table_info_title'));
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($this->lng->txt('dcl_add_perm'), 'add_perm');
// $item->setInfo($this->lng->txt("dcl_add_perm_info"));
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($this->lng->txt('dcl_edit_perm'), 'edit_perm');
// $item->setInfo($this->lng->txt("dcl_edit_perm_info"));
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($this->lng->txt('dcl_delete_perm'), 'delete_perm');
// $item->setInfo($this->lng->txt("dcl_delete_perm_info"));
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($this->lng->txt('dcl_edit_by_owner'), 'edit_by_owner');
// $item->setInfo($this->lng->txt("dcl_edit_by_owner_info"));
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($this->lng->txt('dcl_view_own_records_perm'), 'view_own_records_perm');
// $item->setInfo($this->lng->txt("dcl_edit_by_owner_info"));
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($this->lng->txt('dcl_export_enabled'), 'export_enabled');
$this->form->addItem($item);
$item = new ilCheckboxInputGUI($this->lng->txt('dcl_limited'), 'limited');
$sitem1 = new ilDateTimeInputGUI($this->lng->txt('dcl_limit_start'), 'limit_start');
$sitem1->setShowTime(true);
$sitem2 = new ilDateTimeInputGUI($this->lng->txt('dcl_limit_end'), 'limit_end');
$sitem2->setShowTime(true);
// $item->setInfo($this->lng->txt("dcl_limited_info"));
$item->addSubItem($sitem1);
$item->addSubItem($sitem2);
$this->form->addItem($item);
if ($a_mode == "edit") {
$this->form->addCommandButton('update', $this->lng->txt('dcl_table_' . $a_mode));
} else {
$this->form->addCommandButton('save', $this->lng->txt('dcl_table_' . $a_mode));
}
$this->form->addCommandButton('cancel', $this->lng->txt('cancel'));
$this->form->setFormAction($this->ctrl->getFormAction($this, $a_mode));
if ($a_mode == "edit") {
$this->form->setTitle($this->lng->txt('dcl_edit_table'));
} else {
$this->form->setTitle($this->lng->txt('dcl_new_table'));
}
}