24 require_once
"classes/class.ilObjectGUI.php";
25 require_once(
"classes/class.ilFileSystemGUI.php");
26 require_once(
"classes/class.ilTabsGUI.php");
27 require_once(
"./Modules/ScormAicc/classes/class.ilObjSCORMLearningModuleGUI.php");
28 require_once
"./Modules/ScormAicc/classes/class.ilObjAICCCourseInterchangeFiles.php";
29 require_once(
"./Modules/ScormAicc/classes/class.ilObjAICCLearningModule.php");
54 $lng->loadLanguageModule(
"content");
56 $this->
ilObjectGUI($a_data,$a_id,$a_call_by_reference,$a_prepare_output);
57 #$this->tabs_gui =& new ilTabsGUI();
69 if ($this->call_by_reference)
100 include_once
"./Services/Table/classes/class.ilTableGUI.php";
103 $this->tpl->addBlockfile(
"ADM_CONTENT",
"adm_content",
"tpl.table.html");
105 $this->tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.scorm_track_items.html",
"Modules/ScormAicc");
109 $this->tpl->setVariable(
"FORMACTION",
"adm_object.php?ref_id=".$this->ref_id.
"$obj_str&cmd=gateway");
115 $tbl->setTitle($this->lng->txt(
"cont_tracking_items"));
117 $tbl->setHeaderNames(array($this->lng->txt(
"title")));
119 $header_params = array(
"ref_id" => $this->ref_id,
"cmd" =>
$_GET[
"cmd"],
120 "cmdClass" => get_class($this));
121 $cols = array(
"title");
122 $tbl->setHeaderVars($cols, $header_params);
123 $tbl->setColumnWidth(array(
"100%"));
126 $tbl->setOrderColumn(
$_GET[
"sort_by"]);
127 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
128 $tbl->setLimit(
$_GET[
"limit"]);
129 $tbl->setOffset(
$_GET[
"offset"]);
130 $tbl->setMaxCount($this->maxcount);
136 $tbl->setFooter(
"tblfooter",$this->lng->txt(
"previous"),$this->lng->txt(
"next"));
137 #$tbl->disable("footer");
140 $items = $this->
object->getTrackedItems();
143 $tbl->setMaxCount(count($items));
144 $items = array_slice($items,
$_GET[
"offset"],
$_GET[
"limit"]);
147 if (count($items) > 0)
149 foreach ($items as $item)
151 $this->tpl->setCurrentBlock(
"tbl_content");
152 $this->tpl->setVariable(
"TXT_ITEM_TITLE", $item->getTitle());
153 $this->ctrl->setParameter($this,
"obj_id", $item->getId());
154 $this->tpl->setVariable(
"LINK_ITEM",
155 $this->ctrl->getLinkTarget($this,
"showTrackingItem"));
158 $this->tpl->setVariable(
"CSS_ROW", $css_row);
159 $this->tpl->parseCurrentBlock();
164 $this->tpl->setCurrentBlock(
"notfound");
165 $this->tpl->setVariable(
"TXT_OBJECT_NOT_FOUND", $this->lng->txt(
"obj_not_found"));
166 $this->tpl->setVariable(
"NUM_COLS", $num);
167 $this->tpl->parseCurrentBlock();