/** * Edit cell styles */ function editCellStyle() { global $ilCtrl, $tpl, $lng, $ilTabs; $this->displayValidationError(); $this->setTabs(); $this->setCellPropertiesSubTabs(); $ilTabs->setSubTabActive("cont_style"); // edit form include_once "./Services/Form/classes/class.ilPropertyFormGUI.php"; $form = new ilPropertyFormGUI(); $form->setFormAction($ilCtrl->getFormAction($this)); $form->setTitle($this->lng->txt("cont_table_cell_properties")); // first row style require_once "./Services/Form/classes/class.ilAdvSelectInputGUI.php"; $style = new ilAdvSelectInputGUI($this->lng->txt("cont_style"), "style"); $this->setBasicTableCellStyles(); $this->getCharacteristicsOfCurrentStyle("table_cell"); // scorm-2004 $chars = $this->getCharacteristics(); // scorm-2004 $options = array_merge(array("" => $this->lng->txt("none")), $chars); // scorm-2004 foreach ($options as $k => $option) { $html = '<table border="0" cellspacing="0" cellpadding="0"><tr><td class="ilc_table_cell_' . $k . '">' . $option . '</td></tr></table>'; $style->addOption($k, $option, $html); } $style->setValue(""); $style->setInfo($lng->txt("cont_set_tab_style_info")); $form->addItem($style); $form->setKeepOpen(true); $form->addCommandButton("setStyles", $lng->txt("cont_set_styles")); $html = $form->getHTML(); $html .= "<br />" . $this->renderTable("table_edit", "style") . "</form>"; $tpl->setContent($html); }