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");
53 $lng->loadLanguageModule(
"content");
55 $this->
ilObjectGUI($a_data,$a_id,$a_call_by_reference,$a_prepare_output);
56 #$this->tabs_gui =& new ilTabsGUI();
68 if ($this->call_by_reference)
99 include_once
"./Services/Table/classes/class.ilTableGUI.php";
102 $this->tpl->addBlockfile(
"ADM_CONTENT",
"adm_content",
"tpl.table.html");
104 $this->tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.scorm_track_items.html",
"Modules/ScormAicc");
108 $this->tpl->setVariable(
"FORMACTION",
"adm_object.php?ref_id=".$this->ref_id.
"$obj_str&cmd=gateway");
114 $tbl->setTitle($this->lng->txt(
"cont_tracking_items"));
116 $tbl->setHeaderNames(array($this->lng->txt(
"title")));
118 $header_params = array(
"ref_id" => $this->ref_id,
"cmd" =>
$_GET[
"cmd"],
119 "cmdClass" => get_class($this));
120 $cols = array(
"title");
121 $tbl->setHeaderVars($cols, $header_params);
122 $tbl->setColumnWidth(array(
"100%"));
125 $tbl->setOrderColumn(
$_GET[
"sort_by"]);
126 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
127 $tbl->setLimit(
$_GET[
"limit"]);
128 $tbl->setOffset(
$_GET[
"offset"]);
129 $tbl->setMaxCount($this->maxcount);
135 $tbl->setFooter(
"tblfooter",$this->lng->txt(
"previous"),$this->lng->txt(
"next"));
136 #$tbl->disable("footer");
139 $items = $this->
object->getTrackedItems();
142 $tbl->setMaxCount(count($items));
143 $items = array_slice($items,
$_GET[
"offset"],
$_GET[
"limit"]);
146 if (count($items) > 0)
148 foreach ($items as $item)
150 $this->tpl->setCurrentBlock(
"tbl_content");
151 $this->tpl->setVariable(
"TXT_ITEM_TITLE", $item->getTitle());
152 $this->ctrl->setParameter($this,
"obj_id", $item->getId());
153 $this->tpl->setVariable(
"LINK_ITEM",
154 $this->ctrl->getLinkTarget($this,
"showTrackingItem"));
157 $this->tpl->setVariable(
"CSS_ROW", $css_row);
158 $this->tpl->parseCurrentBlock();
163 $this->tpl->setCurrentBlock(
"notfound");
164 $this->tpl->setVariable(
"TXT_OBJECT_NOT_FOUND", $this->lng->txt(
"obj_not_found"));
165 $this->tpl->setVariable(
"NUM_COLS", $num);
166 $this->tpl->parseCurrentBlock();