4 require_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
5 require_once(
"./Modules/DataCollection/classes/class.ilDataCollectionRecordViewViewdefinition.php");
49 $a_definition_id = $viewdef->getId();
56 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
58 $tpl->setCurrentBlock(
"SyntaxStyle");
59 $tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
61 $tpl->parseCurrentBlock();
63 $tpl->setCurrentBlock(
"ContentStyle");
64 $tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
66 $tpl->parseCurrentBlock();
96 $next_class = $ilCtrl->getNextClass($this);
97 $cmd = $ilCtrl->getCmd();
102 $ilCtrl->setParameter($this,
"dclv", $viewdef->getId());
103 $title = $lng->txt(
"dcl_view_viewdefinition");
108 case "ilpageobjectgui":
116 return $ilCtrl->forwardCommand($page_gui);
124 $ilLocator->addItem(
$title,
125 $ilCtrl->getLinkTarget($this,
"preview"));
140 $this->
setPrependingHtml(
" <form action=".$ilCtrl->getFormAction($this,
"confirmDelete").
" method='post'> <input class='submit' type='submit' value='".$lng->txt(
"dcl_empty_view").
"'></form> <span class=\"small\">".$this->lng->txt(
"dcl_legend_placeholders").
141 ": ".implode(
" ",
$legend).
"</span>");
155 include_once
'./Services/Utilities/classes/class.ilConfirmationGUI.php';
157 $conf->setFormAction($ilCtrl->getFormAction($this));
158 $conf->setHeaderText($lng->txt(
'dcl_confirm_delete_view_title'));
160 $conf->addItem(
'table', (
int) $this->table_id, $lng->txt(
'dcl_confirm_delete_view_text'));
162 $conf->setConfirm($lng->txt(
'delete'),
'deleteView');
163 $conf->setCancel($lng->txt(
'cancel'),
'cancelDelete');
165 $tpl->setContent($conf->getHTML());
175 $ilCtrl->redirect($this,
"edit");
185 $pageObject->delete();
187 $query =
"DELETE FROM il_dcl_view WHERE table_id = ".$this->table_id.
" AND type = ".$ilDB->quote(0,
"integer").
" AND formtype = ".$ilDB->quote(0,
"integer");
188 $ilDB->manipulate(
$query);
193 $ilCtrl->redirectByClass(
"ilDataCollectionFieldListGUI",
"listFields");
209 include_once
"Services/Form/classes/class.ilPropertyFormGUI.php";
213 foreach($allp as $id => $item)
215 $parsed_item =
new ilTextInputGUI(
"",
"fields[".$item->getId().
"]");
216 $parsed_item = $parsed_item->getToolbarHTML();
218 $a_output = str_replace($id, $item->getTitle().
": ".$parsed_item, $a_output);
227 foreach($allp as $item)
229 $a_output = str_replace($item,
"<span style=\"color:green\">".$item.
"</span>", $a_output);