function toStringEdit ($post_vars = "", $faulty_values = "",
         $edit_form = "", $anker = "") {
     $out = "";
     $table = "";
     if ($edit_form == "")
         $edit_form = new ExternEditModule($this->config, $post_vars, $faulty_values, $anker);
     
     $edit_form->setElementName($this->getName());
     $element_headline = $edit_form->editElementHeadline($this->real_name,
             $this->config->getName(), $this->config->getId(), TRUE, $anker);
     
     $attributes = array("fonttopic_size", "fonttopic_face", "fonttopic_color",
         "fonttopic_class", "fonttopic_style","divtopic_align", "divtopic_class",
         "divtopic_style", "fontbody_size", "fontbody_face", "fontbody_color",
         "fontbody_class", "fontbody_style", "divbody_align", "divbody_class", "divbody_style");
     $headlines = array("fonttopic" => _("Schriftformatierung News-Titel (HTML-Tag <font>)"),
             "divtopic" => _("Ausrichtung News-Titel (HTML-Tag <div>)"),
             "fontbody" => _("Schriftformatierung News-Beschreibung (HTML-Tag <font>)"),
             "divbody" => _("Ausrichtung News-Beschreibung (HTML-Tag <div>)"));
     $content_table = $edit_form->getEditFormContent($attributes, $headlines);
     $content_table .= $edit_form->editBlankContent();
     
     $headline = $edit_form->editHeadline(_("Weitere Angaben"));
     
     $submit = $edit_form->editSubmit($this->config->getName(),
             $this->config->getId(), $this->getName());
     $out = $edit_form->editContent($content_table, $submit);
     $out .= $edit_form->editBlank();
     
     return $element_headline . $out;
     
     return $out;
 }
 /**
 * 
 */
 function toStringEdit ($post_vars = "", $faulty_values = "",
         $edit_form = "", $anker = "") {
     
     $out = "";
     $table = "";
     if ($edit_form == "")
         $edit_form = new ExternEditModule($this->config, $post_vars, $faulty_values, $anker);
     
     $edit_form->setElementName($this->getName());
     $element_headline = $edit_form->editElementHeadline($this->real_name,
             $this->config->getName(), $this->config->getId(), TRUE, $anker);
     
     $attributes = array("font_size", "font_face", "font_color", "font_class", "font_style",
         "a_class", "a_style");
     $headlines = array("font" => _("Schriftformatierung"),
             "a" => _("Linkformatierung"));
     $content_table = $edit_form->getEditFormContent($attributes, $headlines);
     $content_table .= $edit_form->editBlankContent();
     
     $this->toStringConfigSelector($edit_form, $content_table);
             
     $submit = $edit_form->editSubmit($this->config->getName(),
             $this->config->getId(), $this->getName());
     $out = $edit_form->editContent($content_table, $submit);
     $out .= $edit_form->editBlank();
     
     return $element_headline . $out;
 }
 /**
 * 
 */
 function toStringEdit ($post_vars = "", $faulty_values = "",
         $edit_form = "", $anker = "") {
     $out = "";
     $table = "";
     if ($edit_form == "")
         $edit_form = new ExternEditModule($this->config, $post_vars, $faulty_values, $anker);
     
     $edit_form->setElementName($this->getName());
     $element_headline = $edit_form->editElementHeadline($this->real_name,
             $this->config->getName(), $this->config->getId(), TRUE, $anker);
     
     $attributes = array("tr_height", "tr_class", "tr_style");
     $headline = array("tr" => $this->headlines[0]);
     $content_table = $edit_form->getEditFormContent($attributes, $headline);
     $content_table .= $edit_form->editBlankContent();
     
     $headline = $edit_form->editHeadline($this->headlines[1]);
     
     $title = _("Spaltenbreite:");
     $info = _("Breite der Spalte in Prozent.");
     $table = $edit_form->editTextfieldGeneric("td1width", $title, $info, 2, 2);
     
     $table .= $edit_form->editAlign("td1_align");
     $table .= $edit_form->editValign("td1_valign");
     $table .= $edit_form->editBgcolor("td1_bgcolor");
     $table .= $edit_form->editClass("td1_class");
     $table .= $edit_form->editStyle("td1_style");
     
     $content_table .= $edit_form->editContentTable($headline, $table);
     $content_table .= $edit_form->editBlankContent();
     
     $attributes = array("font1_face",   "font1_size","font1_color", "font1_class",
             "font1_style", "td2_align", "td2_valign", "td2_bgcolor", "td2_class",
             "td2_style", "font2_face", "font2_size", "font2_color", "font2_class", "font2_style");
     $headline = array("font1" => $this->headlines[2], "td2" => $this->headlines[3],
             "font2" => $this->headlines[4]);
     $content_table .= $edit_form->getEditFormContent($attributes, $headline);
     
     $submit = $edit_form->editSubmit($this->config->getName(),
             $this->config->getId(), $this->getName());
     $out = $edit_form->editContent($content_table, $submit);
     $out .= $edit_form->editBlank();
     
     return $element_headline . $out;
     
     return $out;
 }
 /**
 * 
 */
 function toStringEdit ($post_vars = "", $faulty_values = "",
         $edit_form = "", $anker = "") {
     
     $out = "";
     $table = "";
     if ($edit_form == "")
         $edit_form = new ExternEditModule($this->config, $post_vars, $faulty_values, $anker);
     
     $edit_form->setElementName($this->getName());
     $element_headline = $edit_form->editElementHeadline($this->real_name,
             $this->config->getName(), $this->config->getId(), TRUE, $anker);
     
     $headline = $edit_form->editHeadline(_("Allgemeine Angaben zum Element Seitenkopf/Bild"));
     
     $title = _("Überschrift (Name) ausblenden:");
     $info = _("Unterdrückt die Anzeige des Namens als Überschrift.");
     $table .= $edit_form->editCheckboxGeneric("hidename", $title, $info, '1', '');
     
     $content_table = $edit_form->editContentTable($headline, $table);
     $content_table .= $edit_form->editBlankContent();
     
     $attributes = array("table_width", "table_align", "table_border", "table_bgcolor",
             "table_bordercolor", "table_cellpadding", "table_cellspacing", "table_class",
             "table_style", "tr_class", "tr_style", "headlinetd_height", "headlinetd_align",
             "headlinetd_valign", "headlinetd_bgcolor", "headlinetd_class", "headlinetd_style",
             "font_face", "font_size", "font_color", "font_class", "font_style",
             "picturetd_width", "picturetd_align", "picturetd_valign", "picturetd_bgcolor",
             "picturetd_class", "picturetd_style", "contacttd_width", "contacttd_align",
             "contacttd_valign", "contacttd_bgcolor", "contacttd_class", "contacttd_style",);
     $headlines = array("table" => _("Tabelle Seitenkopf/Bild (HTML-Tag <table>)"),
             "tr" => _("Tabellenzeile Name (HTML-Tag <tr>)"),
             "headlinetd" => _("Tabellenzelle Name (HTML-Tag <td>)"),
             "font" => _("Schriftformatierung Name (HTML-Tag <font>)"),
             "picturetd" => _("Tabellenzelle Bild (HTML-Tag <td>)"),
             "contacttd" => _("Tabellenzelle Kontakt (HTML-Tag <td>)"));
     $content_table .= $edit_form->getEditFormContent($attributes, $headlines);
     $content_table .= $edit_form->editBlankContent();
     
     $headline = $edit_form->editHeadline(_("Bild"));
     
     $title = _("Ausrichtung:");
     $info = _("Ausrichtung des Bildes.");
     $names = array(_("zentriert"), _("linksbündig"), _("rechtsbündig"),
             _("obenbündig"), _("untenbündig"));
     $values = array("center", "left", "right", "top", "bottom");
     $table = $edit_form->editOptionGeneric("img_align", $title, $info, $values, $names);
     
     $title = _("Rahmenbreite:");
     $info = _("Breite des Bildrahmens.");
     $table .= $edit_form->editTextfieldGeneric("img_border", $title, $info, 3, 3);
     
     $title = _("Breite:");
     $info = _("Breite des Bildes.");
     $table .= $edit_form->editTextfieldGeneric("img_width", $title, $info, 3, 3);
     
     $title = _("Höhe:");
     $info = _("Breite des Bildes.");
     $table .= $edit_form->editTextfieldGeneric("img_height", $title, $info, 3, 3);
     
     $content_table .= $edit_form->editContentTable($headline, $table);
     $content_table .= $edit_form->editBlankContent();
     
     $submit = $edit_form->editSubmit($this->config->getName(),
             $this->config->getId(), $this->getName());
     $out = $edit_form->editContent($content_table, $submit);
     $out .= $edit_form->editBlank();
     
     return $element_headline . $out;
 }
 /**
 * 
 */
 function toStringEdit ($post_vars = "", $faulty_values = "",
         $edit_form = "", $anker = "") {
     global $EXTERN_MODULE_TYPES;
     $out = "";
     $table = "";
     if ($edit_form == "") {
         $edit_form = new ExternEditModule($this->config, $post_vars, $faulty_values, $anker);
     }
     
     $edit_form->setElementName($this->getName());
     $element_headline = $edit_form->editElementHeadline($this->real_name,
             $this->config->getName(), $this->config->getId(), TRUE, $anker);
     
     $attributes = array("font_size", "font_face", "font_color", "font_class", "font_style",
         "a_class", "a_style");
     $headlines = array("font" => $this->headlines[0],
             "a" => $this->headlines[1]);
     $content_table = $edit_form->getEditFormContent($attributes, $headlines);
     $content_table .= $edit_form->editBlankContent();
     
     $headline = $edit_form->editHeadline($this->headlines[2]);
     
     $title = _("Konfiguration:");
     $info = _("Der Link ruft das Modul mit der gewählten Konfiguration auf. Wählen Sie \"Standard\", um die von Ihnen gesetzte Standardkonfiguration zu benutzen. Ist für das aufgerufene Modul noch keine Konfiguration erstellt worden, wird die Stud.IP-Default-Konfiguration verwendet.");
     $configs = ExternConfig::GetAllConfigurations($this->config->range_id, $this->link_module_type);
     if (sizeof($configs)) {
         $module_name = $EXTERN_MODULE_TYPES[$this->link_module_type]["module"];
         $values = array_keys($configs[$module_name]);
         unset($names);
         foreach ($configs[$module_name] as $config)
             $names[] = $config["name"];
     }
     else {
         $values = array();
         $names = array();
     }
     array_unshift($values, "");
     array_unshift($names, _("Standardkonfiguration"));
     $table = $edit_form->editOptionGeneric("config", $title, $info, $values, $names);
     
     $title = _("SRI-Link:");
     $info = _("Wenn Sie die SRI-Schnittstelle benutzen, müssen Sie hier die vollständige URL (mit http://) der Seite angeben, in der das Modul, das durch den Link aufgerufen wird, eingebunden ist. Lassen Sie dieses Feld unbedingt leer, falls Sie die SRI-Schnittstelle nicht nutzen.");
     $table .= $edit_form->editTextfieldGeneric("srilink", $title, $info, 50, 250);
     
     $title = _("Extern-Link:");
     $info = _("Wenn Sie die SRI-Schnittstelle nicht benutzen, können Sie hier die vollständige URL (mit http://) der Seite angeben, in der das Modul, das durch den Link aufgerufen wird, eingebunden wird. Lassen Sie dieses Feld unbedingt leer, falls Sie die SRI-Schnittstelle nutzen.");
     $table .= $edit_form->editTextfieldGeneric("externlink", $title, $info, 50, 250);
     
     $content_table .= $edit_form->editContentTable($headline, $table);
     $content_table .= $edit_form->editBlankContent();
             
     $submit = $edit_form->editSubmit($this->config->getName(),
             $this->config->getId(), $this->getName());
     $out = $edit_form->editContent($content_table, $submit);
     $out .= $edit_form->editBlank();
     
     return $element_headline . $out;
 }
Exemplo n.º 6
0
 /**
 * 
 */
 function toStringEdit ($post_vars = "", $faulty_values = "",
         $edit_form = "", $anker = "") {
     
     $out = "";
     $table = "";
     if ($edit_form == "")
         $edit_form = new ExternEditModule($this->config, $post_vars, $faulty_values, $anker);
     
     $edit_form->setElementName($this->getName());
     $element_headline = $edit_form->editElementHeadline($this->real_name,
             $this->config->getName(), $this->config->getId(), TRUE, $anker);
     
     $headline = $edit_form->editHeadline(_("Aufbau der Adress- und Kontakt-Tabelle"));
     $field_names = array(_("Raum"), _("Telefon"), _("Fax"), _("Email"), _("Homepage"), _("Sprechzeiten"));
     $table = $edit_form->editMainSettings($field_names, "", array("width", "sort", "widthpp"));
     
     $title = _("Überschrift:");
     $info = _("Überschrift der Kontakt-Daten");
     $table .= $edit_form->editTextfieldGeneric("headline", $title, $info, 35, 100);
     
     $title = _("Standard-Adresse:");
     $info = _("Wenn Sie diese Option wählen, wird die Standard-Adresse ausgegeben, die jede(r) Mitarbeiter(in) bei seinen universitären Daten auswählen kann. Wählen Sie diese Option nicht, wenn immer die Adresse der Einrichtung ausgegeben werden soll.");
     $table .= $edit_form->editCheckboxGeneric('defaultadr', $title, $info, '1', '0');
     
     $title = _("Personenname ausblenden:");
     $info = _("Unterdrückt die Anzeige des Namens im Adressfeld.");
     $table .= $edit_form->editCheckboxGeneric('hidepersname', $title, $info, '1', '0');
     
     $title = _("Funktionen anzeigen:");
     $info = _("Ausgabe der Funktionen der Mitarbeiterin/des Mitarbeiters in der Einrichtung.");
     $table .= $edit_form->editCheckboxGeneric('showinstgroup', $title, $info, '1', '0');
     
     $title = _("Einrichtungsname:");
     $info = _("Anzeige des Einrichtungsnamens. Der Name kann auch als Link auf die in Stud.IP angegebene URL (unter Grunddaten der Einrichtung) angezeigt werden.");
     $values = array('1', '0', 'link');
     $names = array(_("nicht anzeigen"), _("anzeigen"), _("als Link anzeigen"));
     $table .= $edit_form->editRadioGeneric('hideinstname', $title, $info, $values, $names);
     
     $title = _("Email und Hompage getrennt:");
     $info = _("Sinnvoll ist diese Option bei sehr langen E-Mail-Adressen und Homepage-Links der Mitarbeiter. Diese werden dann unterhalb des Adressfeldes ausgegeben.");
     $table .= $edit_form->editCheckboxGeneric('separatelinks', $title, $info, '1', '0');
     
     $title = _("Adresszusatz:");
     $info = _("Zusatz zur Adresse der Einrichtung, z.B. Universitätsname.");
     $table .= $edit_form->editTextfieldGeneric("adradd", $title, $info, 35, 100);
     
     $content_table .= $edit_form->editContentTable($headline, $table);
     $content_table .= $edit_form->editBlankContent();
     
     $attributes = array("table_width", "table_align",
             "table_border", "table_bgcolor", "table_bordercolor", "table_cellpadding",
             "table_cellspacing", "table_class", "table_style", "tr_class", "tr_style",
             "td_height", "td_align", "td_valign", "td_bgcolor", "td_class", "td_style");
     $content_table .= $edit_form->getEditFormContent($attributes);
     $content_table .= $edit_form->editBlankContent();
     
     $attributes = array("fonttitle_face", "fonttitle_size", "fonttitle_color", "fonttitle_class",
             "fonttitle_style", "fontcontent_face", "fontcontent_size", "fontcontent_color",
             "fontcontent_class", "fontcontent_style");
     $headlines = array("fonttitle" => _("Schriftformatierung der Überschrift"),
             "fontcontent" => _("Schriftformatierung des Inhalts"));
     $content_table .= $edit_form->getEditFormContent($attributes, $headlines);
     $content_table .= $edit_form->editBlankContent();
             
     $submit = $edit_form->editSubmit($this->config->getName(),
             $this->config->getId(), $this->getName());
     $out = $edit_form->editContent($content_table, $submit);
     $out .= $edit_form->editBlank();
     
     return $element_headline . $out;
 }