52 include_once
'./Modules/Course/classes/class.ilCourseObjective.php';
57 $this->ctrl->saveParameter($this,array(
"ref_id"));
61 $this->lng->loadLanguageModule(
'crs');
64 $this->tabs_gui =& $ilTabs;
66 $this->course_id = $a_course_id;
77 $ilTabs->setTabActive(
'crs_objectives');
79 $cmd = $this->ctrl->getCmd();
82 if (!
$cmd = $this->ctrl->getCmd())
100 global $ilAccess,
$ilErr,$ilObjDataCache;
103 if(!$ilAccess->checkAccess(
"write",
'',$this->course_obj->getRefId()))
105 $this->ilErr->raiseError($this->lng->txt(
"msg_no_perm_write"),$this->ilErr->MESSAGE);
108 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.crs_objectives.html',
'Modules/Course');
110 include_once(
'./Modules/Course/classes/class.ilCourseObjectivesTableGUI.php');
112 $table->setTitle($this->lng->txt(
'crs_objectives'),
'icon_lobj.gif',$this->lng->txt(
'crs_objectives'));
115 $this->tpl->setVariable(
'OBJECTIVES_TABLE',$table->getHTML());
126 global $ilAccess,
$ilErr,$ilObjDataCache;
128 if(!$ilAccess->checkAccess(
"write",
'',$this->course_obj->getRefId()))
130 $this->ilErr->raiseError($this->lng->txt(
"msg_no_perm_write"),$this->ilErr->MESSAGE);
133 asort(
$_POST[
'position'],SORT_NUMERIC);
136 foreach(
$_POST[
'position'] as $objective_id => $position)
139 $objective->writePosition($counter++);
150 if(!$rbacsystem->checkAccess(
"write", $this->course_obj->getRefId()))
152 $this->ilias->raiseError($this->lng->txt(
"msg_no_perm_write"),$this->ilErr->MESSAGE);
154 if(!count(
$_POST[
'objective']))
162 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.crs_objectives.html",
'Modules/Course');
167 $tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.crs_objectives_delete_row.html",
'Modules/Course');
170 foreach(
$_POST[
'objective'] as $objective_id)
174 $tpl->setCurrentBlock(
"tbl_content");
176 $tpl->setVariable(
"TITLE",$objective_obj->getTitle());
177 $tpl->setVariable(
"DESCRIPTION",$objective_obj->getDescription());
178 $tpl->parseCurrentBlock();
181 $tpl->setVariable(
"FORMACTION",$this->ctrl->getFormAction($this));
184 $tpl->setCurrentBlock(
"tbl_action_btn");
185 $tpl->setVariable(
"BTN_NAME",
'deleteObjectives');
186 $tpl->setVariable(
"BTN_VALUE",$this->lng->txt(
'delete'));
187 $tpl->parseCurrentBlock();
189 $tpl->setCurrentBlock(
"tbl_action_btn");
190 $tpl->setVariable(
"BTN_NAME",
'listObjectives');
191 $tpl->setVariable(
"BTN_VALUE",$this->lng->txt(
'cancel'));
192 $tpl->parseCurrentBlock();
194 $tpl->setCurrentBlock(
"tbl_action_row");
195 $tpl->setVariable(
"COLUMN_COUNTS",1);
197 $tpl->parseCurrentBlock();
202 $tbl->setStyle(
'table',
'std');
205 $tbl->setTitle($this->lng->txt(
"crs_objectives"),
"icon_lobj.gif",$this->lng->txt(
"crs_objectives"));
207 $tbl->setHeaderNames(array($this->lng->txt(
"title")));
208 $tbl->setHeaderVars(array(
"title"),
209 array(
"ref_id" => $this->course_obj->getRefId(),
210 "cmdClass" =>
"ilcourseobjectivesgui",
211 "cmdNode" =>
$_GET[
"cmdNode"]));
212 $tbl->setColumnWidth(array(
"50%"));
214 $tbl->setLimit(
$_GET[
"limit"]);
215 $tbl->setOffset(
$_GET[
"offset"]);
216 $tbl->setMaxCount(count(
$_POST[
'objective']));
219 $tbl->disable(
"footer");
220 $tbl->disable(
'sort');
223 $tbl->setTemplate($tpl);
226 $this->tpl->setVariable(
"OBJECTIVES_TABLE", $tpl->get());
240 if(!$rbacsystem->checkAccess(
"write", $this->course_obj->getRefId()))
242 $this->ilias->raiseError($this->lng->txt(
"msg_no_perm_write"),$this->ilErr->MESSAGE);
244 if(!count(
$_SESSION[
'crs_delete_objectives']))
252 foreach(
$_SESSION[
'crs_delete_objectives'] as $objective_id)
255 $objective_obj->delete();
272 global $ilAccess,
$ilErr,$ilTabs;
274 $ilTabs->setSubTabActive(
'crs_objective_overview_question_assignment');
276 if(!$ilAccess->checkAccess(
'write',
'',$this->course_obj->getRefId()))
278 $ilErr->raiseError($this->lng->txt(
'permission_denied'),$ilErr->WARNING);
281 include_once(
'./Modules/Course/classes/class.ilCourseObjectiveQuestionsTableGUI.php');
283 $table->setTitle($this->lng->txt(
'crs_objectives_edit_question_assignments'),
'icon_lobj.gif',$this->lng->txt(
'crs_objectives'));
286 $this->tpl->setContent($table->getHTML());
297 include_once(
'./Modules/Course/classes/class.ilCourseObjectiveQuestion.php');
301 if(!$ilAccess->checkAccess(
'write',
'',$this->course_obj->getRefId()))
303 $ilErr->raiseError($this->lng->txt(
'permission_denied'),$ilErr->WARNING);
310 foreach(
$_POST[
'self'] as $objective_id => $limit)
313 $max_points = $qst->getSelfAssessmentPoints();
315 if($limit < 0 or $limit > $max_points)
322 foreach(
$_POST[
'final'] as $objective_id => $limit)
325 $max_points = $qst->getFinalTestPoints();
327 if($limit < 0 or $limit > $max_points)
335 foreach(
$_POST[
'self'] as $objective_id => $limit)
340 foreach(
$_POST[
'final'] as $objective_id => $limit)
355 $this->ilErr->raiseError(
"ilCourseObjectivesGUI: cannot create course object",$this->ilErr->MESSAGE);
359 $this->course_obj->initCourseMemberObject();
371 include_once
'./Modules/Course/classes/class.ilCourseObjectiveMaterials.php';
379 include_once
'./Modules/Course/classes/class.ilCourseObjectiveQuestion.php';
392 $ilTabs->addSubTabTarget(
"crs_objective_overview_objectives",
393 $this->ctrl->getLinkTarget($this,
"listObjectives"),
394 array(
"listObjectives",
"moveObjectiveUp",
"moveObjectiveDown",
"listAssignedLM"),
398 include_once(
'./Modules/Course/classes/class.ilCourseObjectiveQuestion.php');
402 $ilTabs->addSubTabTarget(
"crs_objective_overview_question_assignment",
403 $this->ctrl->getLinkTarget($this,
"questionOverview"),
404 "editQuestionAssignment",
425 $this->ctrl->saveParameter($this,
'objective_id');
427 if(!is_object($this->objective))
435 $w_tpl->setVariable(
'WIZ_CONTENT',$this->form->getHtml());
436 $tpl->setContent($w_tpl->get());
451 $this->ctrl->saveParameter($this,
'objective_id');
453 if(!
$_GET[
'objective_id'])
456 $this->ctrl->redirect($this,
'listObjectives');
459 if(!is_object($this->objective))
467 $w_tpl->setVariable(
'WIZ_CONTENT',$this->form->getHtml());
468 $tpl->setContent($w_tpl->get());
481 if(!$ilAccess->checkAccess(
'write',
'',$this->course_obj->getRefId()))
483 $ilErr->raiseError($this->lng->txt(
'permission_denied'),$ilErr->WARNING);
490 if(!$this->objective->validate())
497 if(!$_GET[
'objective_id'])
499 $objective_id = $this->objective->add();
504 $this->objective->update();
506 $objective_id = $_GET[
'objective_id'];
509 $this->ctrl->saveParameter($this,
'objective_id');
510 $this->ctrl->setParameter($this,
'objective_id',$objective_id);
511 $this->ctrl->redirect($this,
'materialAssignment');
525 if(!$ilAccess->checkAccess(
'write',
'',$this->course_obj->getRefId()))
527 $ilErr->raiseError($this->lng->txt(
'permission_denied'),$ilErr->WARNING);
529 if(!
$_GET[
'objective_id'])
532 $this->ctrl->redirect($this,
'listObjectives');
535 $this->ctrl->saveParameter($this,
'objective_id');
539 include_once(
'./Modules/Course/classes/class.ilCourseObjectiveMaterialAssignmentTableGUI.php');
541 $table->setTitle($this->lng->txt(
'crs_objective_wiz_materials'),
542 'icon_lobj.gif',$this->lng->txt(
'crs_objectives'));
544 include_once(
'Modules/Course/classes/class.ilCourseObjectiveMaterials.php');
549 $w_tpl->setVariable(
'WIZ_CONTENT',$table->getHTML());
550 $tpl->setContent($w_tpl->get());
562 global $ilAccess,
$ilErr,$ilObjDataCache;
564 if(!$ilAccess->checkAccess(
'write',
'',$this->course_obj->getRefId()))
566 $ilErr->raiseError($this->lng->txt(
'permission_denied'),$ilErr->WARNING);
568 if(!
$_GET[
'objective_id'])
571 $this->ctrl->redirect($this,
'listObjectives');
575 $this->objectives_lm_obj->deleteAll();
577 if(is_array(
$_POST[
'materials']))
579 foreach(
$_POST[
'materials'] as $node_id)
581 $obj_id = $ilObjDataCache->lookupObjId($node_id);
582 $type = $ilObjDataCache->lookupType($obj_id);
584 $this->objectives_lm_obj->setLMRefId($node_id);
585 $this->objectives_lm_obj->setLMObjId($obj_id);
586 $this->objectives_lm_obj->setType(
$type);
587 $this->objectives_lm_obj->add();
590 if(is_array(
$_POST[
'chapters']))
592 foreach(
$_POST[
'chapters'] as $chapter)
594 include_once(
'./Modules/LearningModule/classes/class.ilLMObject.php');
596 list(
$ref_id,$chapter_id) = explode(
'_',$chapter);
598 $this->objectives_lm_obj->setLMRefId(
$ref_id);
599 $this->objectives_lm_obj->setLMObjId($chapter_id);
601 $this->objectives_lm_obj->add();
619 if(!$ilAccess->checkAccess(
'write',
'',$this->course_obj->getRefId()))
621 $ilErr->raiseError($this->lng->txt(
'permission_denied'),$ilErr->WARNING);
623 if(!
$_GET[
'objective_id'])
626 $this->ctrl->redirect($this,
'listObjectives');
629 $this->ctrl->saveParameter($this,
'objective_id');
633 include_once(
'./Modules/Course/classes/class.ilCourseObjectiveQuestionAssignmentTableGUI.php');
636 (
int) $_GET[
'objective_id'],
638 $table->setTitle($this->lng->txt(
'crs_objective_wiz_self'),
639 'icon_lobj.gif',$this->lng->txt(
'crs_objective'));
644 $w_tpl->setVariable(
'WIZ_CONTENT',$table->getHTML());
645 $tpl->setContent($w_tpl->get());
657 global $ilAccess,
$ilErr,$ilObjDataCache;
659 $checked_questions =
$_POST[
'questions'] ?
$_POST[
'questions'] : array();
662 if(!$ilAccess->checkAccess(
'write',
'',$this->course_obj->getRefId()))
664 $ilErr->raiseError($this->lng->txt(
'permission_denied'),$ilErr->WARNING);
666 if(!
$_GET[
'objective_id'])
669 $this->ctrl->redirect($this,
'listObjectives');
675 foreach($this->objectives_qst_obj->getSelfAssessmentQuestions() as $question)
677 $id = $question[
'ref_id'].
'_'.$question[
'question_id'];
678 if(!in_array($id,$checked_questions))
680 $this->objectives_qst_obj->delete($question[
'qst_ass_id']);
684 foreach($checked_questions as $question_id)
686 list($test_ref_id,$qst_id) = explode(
'_',$question_id);
687 $test_obj_id = $ilObjDataCache->lookupObjId($test_ref_id);
689 if($this->objectives_qst_obj->isSelfAssessmentQuestion($qst_id))
694 $this->objectives_qst_obj->setTestRefId($test_ref_id);
695 $this->objectives_qst_obj->setTestObjId($test_obj_id);
696 $this->objectives_qst_obj->setQuestionId($qst_id);
697 $this->objectives_qst_obj->add();
701 include_once
'./Modules/Course/classes/class.ilCourseObjectiveQuestion.php';
703 $this->questions->updateLimits();
705 if($checked_questions)
715 case self::MODE_CREATE:
719 case self::MODE_UPDATE:
738 if(!$ilAccess->checkAccess(
'write',
'',$this->course_obj->getRefId()))
740 $ilErr->raiseError($this->lng->txt(
'permission_denied'),$ilErr->WARNING);
742 if(!
$_GET[
'objective_id'])
745 $this->ctrl->redirect($this,
'listObjectives');
748 $this->ctrl->saveParameter($this,
'objective_id');
755 $w_tpl->setVariable(
'WIZ_CONTENT',$this->form->getHtml());
756 $tpl->setContent($w_tpl->get());
768 global $ilAccess,
$ilErr,$ilObjDataCache;
770 if(!$ilAccess->checkAccess(
'write',
'',$this->course_obj->getRefId()))
772 $ilErr->raiseError($this->lng->txt(
'permission_denied'),$ilErr->WARNING);
774 if(!
$_GET[
'objective_id'])
777 $this->ctrl->redirect($this,
'listObjectives');
782 if((
int)
$_POST[
'limit'] < 0 or (
int)
$_POST[
'limit'] > $this->objectives_qst_obj->getSelfAssessmentPoints())
784 ilUtil::sendFailure(sprintf($this->lng->txt(
'crs_objective_err_limit'),0,$this->objectives_qst_obj->getSelfAssessmentPoints()));
789 foreach($this->objectives_qst_obj->getSelfAssessmentTests() as
$test)
792 $this->objectives_qst_obj->setTestSuggestedLimit((
int)
$_POST[
'limit']);
793 $this->objectives_qst_obj->updateTest(
$test[
'test_objective_id']);
813 if(!$ilAccess->checkAccess(
'write',
'',$this->course_obj->getRefId()))
815 $ilErr->raiseError($this->lng->txt(
'permission_denied'),$ilErr->WARNING);
817 if(!
$_GET[
'objective_id'])
820 $this->ctrl->redirect($this,
'listObjectives');
823 $this->ctrl->saveParameter($this,
'objective_id');
827 include_once(
'./Modules/Course/classes/class.ilCourseObjectiveQuestionAssignmentTableGUI.php');
830 (
int) $_GET[
'objective_id'],
833 $table->setTitle($this->lng->txt(
'crs_objective_wiz_final'),
834 'icon_lobj.gif',$this->lng->txt(
'crs_objective'));
839 $w_tpl->setVariable(
'WIZ_CONTENT',$table->getHTML());
840 $tpl->setContent($w_tpl->get());
853 global $ilAccess,
$ilErr,$ilObjDataCache;
855 $checked_questions =
$_POST[
'questions'] ?
$_POST[
'questions'] : array();
858 if(!$ilAccess->checkAccess(
'write',
'',$this->course_obj->getRefId()))
860 $ilErr->raiseError($this->lng->txt(
'permission_denied'),$ilErr->WARNING);
862 if(!
$_GET[
'objective_id'])
865 $this->ctrl->redirect($this,
'listObjectives');
871 foreach($this->objectives_qst_obj->getFinalTestQuestions() as $question)
873 $id = $question[
'ref_id'].
'_'.$question[
'question_id'];
874 if(!in_array($id,$checked_questions))
876 $this->objectives_qst_obj->delete($question[
'qst_ass_id']);
880 foreach($checked_questions as $question_id)
882 list($test_ref_id,$qst_id) = explode(
'_',$question_id);
883 $test_obj_id = $ilObjDataCache->lookupObjId($test_ref_id);
885 if($this->objectives_qst_obj->isFinalTestQuestion($qst_id))
891 $this->objectives_qst_obj->setTestRefId($test_ref_id);
892 $this->objectives_qst_obj->setTestObjId($test_obj_id);
893 $this->objectives_qst_obj->setQuestionId($qst_id);
894 $this->objectives_qst_obj->add();
898 include_once
'./Modules/Course/classes/class.ilCourseObjectiveQuestion.php';
900 $this->questions->updateLimits();
917 if(!$ilAccess->checkAccess(
'write',
'',$this->course_obj->getRefId()))
919 $ilErr->raiseError($this->lng->txt(
'permission_denied'),$ilErr->WARNING);
921 if(!
$_GET[
'objective_id'])
924 $this->ctrl->redirect($this,
'listObjectives');
927 $this->ctrl->saveParameter($this,
'objective_id');
934 $w_tpl->setVariable(
'WIZ_CONTENT',$this->form->getHtml());
935 $tpl->setContent($w_tpl->get());
947 global $ilAccess,
$ilErr,$ilObjDataCache;
949 if(!$ilAccess->checkAccess(
'write',
'',$this->course_obj->getRefId()))
951 $ilErr->raiseError($this->lng->txt(
'permission_denied'),$ilErr->WARNING);
953 if(!
$_GET[
'objective_id'])
956 $this->ctrl->redirect($this,
'listObjectives');
961 if((
int)
$_POST[
'limit'] < 0 or (
int)
$_POST[
'limit'] > $this->objectives_qst_obj->getFinalTestPoints())
963 ilUtil::sendFailure(sprintf($this->lng->txt(
'crs_objective_err_limit'),0,$this->objectives_qst_obj->getFinalTestPoints()));
968 foreach($this->objectives_qst_obj->getFinalTests() as
$test)
971 $this->objectives_qst_obj->setTestSuggestedLimit((
int)
$_POST[
'limit']);
972 $this->objectives_qst_obj->updateTest(
$test[
'test_objective_id']);
988 if(!is_object($this->form))
990 include_once(
'./Services/Form/classes/class.ilPropertyFormGUI.php');
993 $this->form->setFormAction($this->ctrl->getFormAction($this));
994 $this->form->setTableWidth(
'100%');
995 $this->form->setTitleIcon(
ilUtil::getImagePath(
'icon_lobj.gif'),$this->lng->txt(
'crs_objective'));
999 case 'selfAssessment':
1000 $this->form->setTitle($this->lng->txt(
'crs_objective_wiz_self_limit'));
1001 $this->form->addCommandButton(
'updateSelfAssessmentLimits',$this->lng->txt(
'crs_wiz_next'));
1002 $this->form->addCommandButton(
'selfAssessmentAssignment',$this->lng->txt(
'crs_wiz_back'));
1004 $tests = $this->objectives_qst_obj->getSelfAssessmentTests();
1005 $max_points = $this->objectives_qst_obj->getSelfAssessmentPoints();
1010 $this->form->setTitle($this->lng->txt(
'crs_objective_wiz_final_limit'));
1011 $this->form->addCommandButton(
'updateFinalTestLimits',$this->lng->txt(
'crs_wiz_next'));
1012 $this->form->addCommandButton(
'finalTestAssignment',$this->lng->txt(
'crs_wiz_back'));
1014 $tests = $this->objectives_qst_obj->getFinalTests();
1015 $max_points = $this->objectives_qst_obj->getFinalTestPoints();
1020 $over =
new ilCustomInputGUI($this->lng->txt(
'crs_objective_qst_summary'),
'');
1022 $tpl =
new ilTemplate(
'tpl.crs_objective_qst_summary.html',
true,
true,
'Modules/Course');
1029 $limit = $test[
'limit'];
1031 foreach($this->objectives_qst_obj->getQuestionsOfTest($test[
'obj_id']) as $question)
1033 $tpl->setCurrentBlock(
'qst');
1034 $tpl->setVariable(
'QST_TITLE',$question[
'title']);
1035 if(strlen($question[
'description']))
1037 $tpl->setVariable(
'QST_DESCRIPTION',$question[
'description']);
1039 $tpl->setVariable(
'QST_POINTS',$question[
'points'].
' '.
1040 $this->lng->txt(
'crs_objective_points'));
1041 $tpl->parseCurrentBlock();
1043 $tpl->setCurrentBlock(
'tst');
1047 $tpl->setVariable(
'TST_DESC',
$desc);
1050 $tpl->setVariable(
'TST_ALT_IMG',$this->lng->txt(
'obj_tst'));
1051 $tpl->parseCurrentBlock();
1054 $tpl->setVariable(
'TXT_ALL_POINTS',$this->lng->txt(
'crs_objective_all_points'));
1055 $tpl->setVariable(
'TXT_POINTS',$this->lng->txt(
'crs_objective_points'));
1056 $tpl->setVariable(
'POINTS',$max_points);
1059 $this->form->addItem($over);
1061 $req =
new ilTextInputGUI($this->lng->txt(
'crs_obj_required_points'),
'limit');
1063 $req->setMaxLength(5);
1065 $req->setRequired(
true);
1068 case 'selfAssessment':
1069 $req->setInfo($this->lng->txt(
'crs_obj_initial_req_info'));
1073 $req->setInfo($this->lng->txt(
'crs_obj_final_req_info'));
1078 $this->form->addItem($req);
1091 if(!is_object($this->form))
1093 include_once(
'./Services/Form/classes/class.ilPropertyFormGUI.php');
1096 $this->form->setFormAction($this->ctrl->getFormAction($this));
1097 $this->form->setTitleIcon(
ilUtil::getImagePath(
'icon_lobj.gif'),$this->lng->txt(
'crs_objective'));
1102 $this->form->setTitle($this->lng->txt(
'crs_objective_wiz_title'));
1103 $this->form->addCommandButton(
'save',$this->lng->txt(
'crs_wiz_next'));
1104 $this->form->addCommandButton(
'listObjectives',$this->lng->txt(
'cancel'));
1112 $title->setValue($this->objective->getTitle());
1113 $title->setRequired(
true);
1115 $title->setMaxLength(70);
1116 $this->form->addItem(
$title);
1119 $desc->setValue($this->objective->getDescription());
1122 $this->form->addItem(
$desc);
1138 1 => $this->lng->txt(
'crs_objective_wiz_title'),
1139 2 => $this->lng->txt(
'crs_objective_wiz_materials'),
1140 3 => $this->lng->txt(
'crs_objective_wiz_self'),
1141 4 => $this->lng->txt(
'crs_objective_wiz_self_limit'),
1142 5 => $this->lng->txt(
'crs_objective_wiz_final'),
1143 6 => $this->lng->txt(
'crs_objective_wiz_final_limit'));
1146 1 => $this->lng->txt(
'crs_objective_wiz_title_info'),
1147 2 => $this->lng->txt(
'crs_objective_wiz_materials_info'),
1148 3 => $this->lng->txt(
'crs_objective_wiz_self_info'),
1149 4 => $this->lng->txt(
'crs_objective_wiz_self_limit_info'),
1150 5 => $this->lng->txt(
'crs_objective_wiz_final_info'),
1151 6 => $this->lng->txt(
'crs_objective_wiz_final_limit_info'));
1154 1 => $this->ctrl->getLinkTarget($this,
'edit'),
1155 2 => $this->ctrl->getLinkTarget($this,
'materialAssignment'),
1156 3 => $this->ctrl->getLinkTarget($this,
'selfAssessmentAssignment'),
1157 4 => $this->ctrl->getLinkTarget($this,
'selfAssessmentLimits'),
1158 5 => $this->ctrl->getLinkTarget($this,
'finalTestAssignment'),
1159 6 => $this->ctrl->getLinkTarget($this,
'finalTestLimits'));
1162 $tpl =
new ilTemplate(
'tpl.objective_wizard.html',
true,
true,
'Modules/Course');
1164 if(
$_SESSION[
'objective_mode'] == self::MODE_CREATE or 1)
1166 $tpl->setCurrentBlock(
'step_info');
1168 if(is_object($this->objective) and strlen($this->objective->getTitle()))
1170 $tpl->setVariable(
'STEP_SEPARATOR',
'-');
1171 $tpl->setVariable(
'STEP_TITLE',$this->objective->getTitle());
1174 $tpl->setVariable(
'STEP_INFO_STEP',$this->lng->txt(
'crs_objective_step'));
1175 $tpl->setVariable(
'STEP_INFO_NUM',$a_step_number);
1176 $tpl->setVariable(
'STEP_INFO_INFO',$info[$a_step_number]);
1177 $tpl->parseCurrentBlock();
1182 $tpl->setVariable(
'WIZ_IMG_ALT',$this->lng->txt(
'crs_objectives'));
1184 if(
$_SESSION[
'objective_mode'] == self::MODE_CREATE)
1186 $tpl->setVariable(
'WIZ_NAV_TITLE',$this->lng->txt(
'crs_add_objective'));
1190 $tpl->setVariable(
'WIZ_NAV_TITLE',$this->lng->txt(
'crs_update_objective'));
1193 foreach($options as $step =>
$title)
1195 if(
$_SESSION[
'objective_mode'] == self::MODE_UPDATE)
1198 if($step == 4 and !count($this->objectives_qst_obj->getSelfAssessmentQuestions()))
1202 if($step == 6 and !count($this->objectives_qst_obj->getFinalTestQuestions()))
1208 $tpl->setCurrentBlock(
'begin_link_option');
1209 $tpl->setVariable(
'WIZ_OPTION_LINK',$links[$step]);
1210 $tpl->parseCurrentBlock();
1212 $tpl->touchBlock(
'end_link_option');
1217 $tpl->setCurrentBlock(
'nav_option');
1218 $tpl->setVariable(
'OPTION_CLASS',$step == $a_step_number ?
'option_value_details' :
'std');
1219 $tpl->setVariable(
'WIZ_NUM',$step.
'.');
1220 $tpl->setVariable(
'WIZ_OPTION',
$title);
1221 $tpl->parseCurrentBlock();