Mip-forms
Aus DeDi-Help
| Version vom 18:02, 2. Aug. 2004 (bearbeiten) Bjoern (Diskussion | Beiträge) ← Zum vorherigen Versionsunterschied |
Aktuelle Version (10:25, 16. Mär. 2011) (bearbeiten) (Entfernen) Eppi (Diskussion | Beiträge) (→Kategorien (Ordner unter Redaktion-> Seiten)) |
||
| (Der Versionsvergleich bezieht 43 dazwischen liegende Versionen mit ein.) | |||
| Zeile 1: | Zeile 1: | ||
| - | ---------------------------------- | + | Die mip-forms (Modul Input Forms) stellen Funktionen zur einfachen Erstellung von Formularen bereit und sind dazu gedacht, die Modulentwicklung im Bereich der Konfiguration zu beschleunigen. Dadurch kann die Modulkonfiguration sehr schnell und flexibel entwickelt werden, komplexe Konfigurationsmöglichkeiten werden ohne große Mühe möglich. |
| - | Einfhrung | + | |
| - | ---------------------------------- | + | |
| - | + | ==Einleitendes Beispiel== | |
| - | Die mip-forms (Modul Input Forms) sind dazu gedacht, die Modulentwicklung | + | |
| - | des Inputbereichs zu beschleunigen, indem sie sich oft wiederholende | + | Ein einfaches Beispiel: |
| - | Formularkonstrukte als leicht anzusprechende Befehlsstze bereithalten. | + | |
| - | + | ||
| - | Dadurch kann der Modulimputbereich sehr schnell und flexibel entwickelt | + | Es wird ein Modul entwickelt, welches einen Text aus dem Seitenkonfigurationsdialog übernimmt und auf der Seite mit CSS- Styles formatiert ausgibt. |
| - | werden, komplexe Konfigurationsmglichkeiten werden ohne groe Mhe mglich. | + | |
| - | + | ||
| - | Das Highlight der mip-forms ist momentan der css-parser, welcher es ermglicht, | + | Programmcode für das Konfigurationfeld: |
| - | direkt auf die Werte einer css- Datei zuzugreifen. | + | |
| - | + | <?php | |
| - | + | ||
| - | Ein einfaches Beispiel: | + | |
| - | + | ||
| - | Es wird ein Modul entwickelt, welches einen Text aus dem Seitenkonfigurationsdialog | + | |
| - | bernimmt und auf der Seite mit CSS- Styles formatiert ausgibt. | + | |
| - | + | ||
| - | Input: | + | |
| - | + | ||
| - | -|START|- | + | |
| - | + | ||
| - | require_once ($ContenidoPath ."inc/fnc_mip_forms.inc.php"); | + | |
| - | + | ||
| $mip_form['0']['cat'] = 'txt'; | $mip_form['0']['cat'] = 'txt'; | ||
| - | $mip_form['0']['type'] = ''; | + | $mip_form['0']['type'] = <nowiki>''</nowiki>; |
| $mip_form['0']['desc'] = 'Beschreibung'; | $mip_form['0']['desc'] = 'Beschreibung'; | ||
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[1]'; | + | $mip_form['0']['cms_var'] = "MOD_VAR[1]"; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[1]'; | + | $mip_form['0']['cms_val'] = $dedi_mod['value']['1']; |
| $mip_form['0']['cms_val_default'] = 'Hallo Welt'; | $mip_form['0']['cms_val_default'] = 'Hallo Welt'; | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| $mip_form['1']['desc'] = "Stylesheet"; | $mip_form['1']['desc'] = "Stylesheet"; | ||
| - | $mip_form['1']['cat'] = 'app_css'; | + | $mip_form['1']['cat'] = 'app_css'; |
| $mip_form['1']['output_cat'] = 'option'; | $mip_form['1']['output_cat'] = 'option'; | ||
| - | $mip_form['1']['type'] = 'long'; | + | $mip_form['1']['type'] = <nowiki>''</nowiki>; |
| - | $mip_form['1']['MOD_VAR'] = "MOD_VAR[2]"; | + | $mip_form['1']['cms_var'] = "MOD_VAR[2]"; |
| - | $mip_form['1']['cms_val'] = "MOD_VALUE[2]"; | + | $mip_form['1']['cms_val'] = $dedi_mod['value']['2']; |
| - | $mip_form['1']['file'] = ""; | + | |
| $mip_form['1']['flag'] = "id_only"; | $mip_form['1']['flag'] = "id_only"; | ||
| - | |||
| mip_formsp($mip_form['0']); | mip_formsp($mip_form['0']); | ||
| Zeile 47: | Zeile 33: | ||
| unset($mip_form); | unset($mip_form); | ||
| - | + | ?> | |
| - | -|STOP|- | + | |
| - | + | Die oben getätigte Eingabe führt dann im Konfigurationsdialog zu folgendem Ergebnis: | |
| - | Output: | + | |
| - | + | ||
| - | -|START|- | + | Programmcode für die Frontendausgabe (das Ergebnis grafisch, siehe Abbildung rechts): |
| - | + | ||
| - | echo "<span id='MOD_VALUE[2]'>MOD_VALUE[1]</span>"; | + | <span id='MOD_VALUE[2]'>MOD_VALUE[1]</span> |
| - | + | ||
| - | -|STOP|- | + | |
| - | + | Erklärung: | |
| - | Erklrung: | + | |
| - | + | '''$mip_form['0']['cat'] = 'txt''''<br> | |
| - | >> require_once ($ContenidoPath ."inc/fnc_mip_forms.inc.php"); | + | Die erste Zeile des ersten Blocks. In diesem Block wird das Textfeld definiert. Die Kategorie 'cat' hat die Bezeichnung "txt" und damit ein Textfeld (Zur Zeit stehen die Kategorien txtarea, option, chk, radio und app_x zur Verfügung). |
| - | Mit dieser Zeile werden die mip-forms eingebunden. | + | |
| - | + | ||
| - | >> $mip_form['0']['cat'] = 'txt' | + | '''$mip_form['0']['type'] = <nowiki>''</nowiki>''';<br> |
| - | Die erste Zeile des ersten Blocks. In diesem Block wird das Textfeld definiert. | + | 'type' bestimmt das Aussehen des Textfeldes. Mögliche Werte sind '', 'chk', 'radio', 'long', 'chk_long', 'radio_long'. Wird kein Wert angegeben (wie in diesem Beispiel), wird der Defaultwert '[Beschreibung] [Textbox]' genommen. Im "default"- Fall kann die Variable auch weggelassen werden. Die einzelenen type- Werte für Textfelder im Überblick: |
| - | Die Kategorie 'cat' ist txt und damit ein Textfeld (in der Referenz werdet ihr | + | |
| - | noch die Kategorien txtarea, option, chk, radio und app_x kennenlernen). | + | |
| - | + | '''[LEER]''':<br> | |
| - | >> $mip_form['0']['type'] = ''; | + | [Beschreibung][Textbox]<br> |
| - | 'type' bestimmt das aussehen des Textfeldes. Mgliche Werte sind '', 'chk', | + | |
| - | 'radio', 'long', 'chk_long', 'radio_long'. Wird kein Wert angegeben (wie in | + | ''''chk'''':<br> |
| - | diesem Beispiel), wird der Defaultwert '[Beschreibung] [Textbox]' genommen. | + | [Checkbox] [Beschreibung] [Textbox]<br> |
| - | Im "default"- Fall kann die Variable auch weggelassen werden. Die einzelenen | + | |
| - | type- Werte fr Textfelder im berblick: | + | ''''radio'''':<br> |
| - | + | [Radiobutton] [Beschreibung] [Textbox]<br> | |
| - | '': [Beschreibung] [Textbox] | + | |
| - | + | ''''long'''':<br> | |
| - | 'chk': [Checkbox] [Beschreibung] [Textbox] | + | [Beschreibung] [große Textbox]<br> |
| - | + | ||
| - | 'radio': [Radiobutton] [Beschreibung] [Textbox] | + | ''''chk_long'''':<br> |
| - | + | [Checkbox] [Beschreibung] [große Textbox]<br> | |
| - | 'long': [Beschreibung] | + | |
| - | [Textbox] | + | ''''radio_long'''':<br> |
| - | + | [Radiobutton] [Beschreibung] [große Textbox]<br> | |
| - | 'chk_long': [Checkbox] [Beschreibung] | + | |
| - | [Textbox] | + | |
| - | + | ||
| - | 'radio_long': [Radiobutton] [Beschreibung] | + | '''$mip_form['0']['desc']='Beschreibung';'''<br> |
| - | [Textbox] | + | Die Beschriftung des Textfeldes (Label) |
| - | + | ||
| - | + | ||
| - | >> $mip_form['0']['desc'] = 'Beschreibung'; | + | '''$mip_form['0']['cms_var']=$dedi_mod['value']['1'];'''<br> |
| - | Die Beschriftung des Textfeldes | + | '''$mip_form['0']['cms_val']='MOD_VALUE[1]';<br>''' |
| - | + | Die Variable, in denen DeDi den Wert speichern wird. | |
| - | >> $mip_form['0']['MOD_VAR'] = 'MOD_VAR[1]'; | + | |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[1]'; | + | |
| - | Die Variable, in denen Contenido den Wert speichern wird. | + | '''$mip_form['0']['cms_val_default'] = 'Hallo Welt';''' <br> |
| - | + | Ist die betreffende MOD_VAR[x] noch leer, wird ein defaultwert eingetragen. | |
| - | >> $mip_form['0']['cms_val_default'] = 'Hallo Welt'; | + | |
| - | Ist die betreffende MOD_VAR[x] noch leer, wird ein defaultwert | + | |
| - | eingetragen. | + | '''$mip_form['0']['tab'] = '0';''' <br> |
| - | + | Hiermit können Konfigurationsfelder eingerückt werden. Erleichtert die Übersicht bei komplexen Konfigurationen. | |
| - | >> $mip_form['0']['tab'] = '0'; | + | |
| - | Hiermit knnen Konfigurationsfelder eingerckt werden. Erleichtert die bersicht | + | |
| - | bei komplexen Konfigurationen. | + | |
| - | + | Es folgt der zweite Block. Hier wird der CSS- Parser konfiguriert. | |
| - | + | ||
| - | Es folgt der zweite Block. Hier wird der CSS- Parser konfiguriert. | + | |
| - | + | '''$mip_form['1']['cat']='app_css';''' <br> | |
| - | >> $mip_form['1']['cat'] = 'app_css'; | + | Der CSS-Parser wird aufgerufen. Kleine Applikationen gehören bei den mip-forms immer in die Kategorie app_xxx |
| - | Der CSS-Parser wird aufgerufen. Kleine Applikationen gehren bei den mip-forms | + | |
| - | immer in die Kategorie app_xxx | + | |
| - | + | '''$mip_form['1']['output_cat']='option';'''<br> | |
| - | >> $mip_form['1']['output_cat'] = 'option'; | + | 'output_cat' gibt die Kategorie an, wie das Formularfeld später beschaffen sein soll und entspricht im Endeffekt 'cat', 'option' oder 'radio' sind sinnvoll. Empfehlung: 'option' |
| - | 'output_cat' gibt die Kategorie an, wie das Formularfeld spter beschaffen sein | + | |
| - | soll und entspricht im Endeffekt 'cat'. 'option' oder 'radio' sind sinnvoll. | + | |
| - | Empfehlung: 'option' | + | '''$mip_form['1']['flag'] = 'id_only';''' <br> |
| - | + | 'flag' ist ein optionaler Parameter. 'id_only' parst nur css-Id's, 'class_only' parst nur css-Klassen. Es wird dringend empfohlen, diesen Parameter zu setzen, da hinterher keine Rückschlüsse mehr auf die Herkunft gezogen werden können (z.B. wird die Klasse ".class_or_id" später zu der Variablen 'class_or_id', ebenso wird die CSS- ID '#class_or_id' zur Variablen 'class_or_id'. Die Meisten Module benutzen die Option 'class_only' | |
| - | >> $mip_form['1']['file'] = ""; | + | |
| - | Mit $mip_form['file'] kann optional manuell eine zu parsende CSS- Datei angegeben | + | |
| - | werden. Wird dies nicht gemacht, wird automatisch die Standard- CSS- Datei | + | '''mip_formsp($mip_form['0']);'''<br> |
| - | aus dem Frontend geparst ("css/styles.css") | + | '''mip_formsp($mip_form['1']);<br>''' |
| - | + | Die Formulare werden ausgegeben. Das 'p' bei 'mip_formsp' steht für print, also für die direkte | |
| - | >> $mip_form['1']['flag'] = "id_only"; | + | Ausgabe im Browser. Alternativ können die einzelnen Formularbausteine auch in Variablen abgespeichert werden. Dies geschieht dann in der Art von $meine_variable = mip_forms($mip_form['0']); |
| - | 'flag' ist ein optionaler Parameter. 'id_only' parst nur css-Id's, 'class_only' | + | |
| - | parst nur css-Klassen. Es wird dringend empfohlen, diesen Parameter zu setzen, da | + | |
| - | hinterher keine Rckschlsse mehr auf die Herkunft gezogen werden knnen (z.B. | + | '''unset($mip_form);'''<br> |
| - | wird die Klasse ".class_or_id" spter zu der Variablen 'class_or_id', ebenso wird | + | Hier wird der Array mip_form[][] zerstört und der genutzte Speicher wieder freigegeben. Dies solltet ihr auf keinen Fall vergessen. Ich gehe einfach mal davon aus, dass bei der Modulentwicklung viele der hier angegebenen Beispiele per copy/ paste übernehmen werden. Daher wird in vielen Modulen der Array mip_form[][] vorkommen. Nicht zerstörte Arrays werden dann früher oder später dazu führen, dass einzelne Werte in verschiedenen Modulen miteinander kollidieren. Gerade die Typen 'option' und 'radio' werden davon betroffen sein. Im Konfigurationsbereich der Module gibt es bei nicht zurückgesetzten mip_form- Arrays noch ein zusätzliches Hindernis. Da auf Dehler bei der Modulbearbeitung hingewiesen wird, muß das Modul zwei mal ausgeführt werden. Einmal um das Modu zu testen und auf eventuelle Fehler aufmerksam zu machen und zum Anderen um die Ausgabe auf dem Bildschirm auszugeben. Wird hier das "unset" vergessen, sind Einträge in den Dropdownboxen zumeist doppelt vorhanden. |
| - | die CSS- ID '#class_or_id' zur Variablen 'class_or_id'. | + | |
| - | Kompatibilittsempfehlung zu Contenido 4.4: 'class_only' | + | ==Referenz== |
| - | + | ||
| - | >> mip_formsp($mip_form['0']); | + | |
| - | mip_formsp($mip_form['1']); | + | ===Beschreibungsfelder=== |
| - | Die Formulare werden ausgegeben. Das 'p' bei 'mip_formsp' steht fr print, also fr | + | |
| - | die dierekte Ausgabe im Browser. Alternativ knnen die einzelnen Formularbausteine | + | [Beschreibung] |
| - | auch in Variablen abgespeichert werden. Dies geschieht dann in der Art von | + | |
| - | $meine_variable = mip_forms($mip_form['0']); | + | |
| - | + | Beispiel: | |
| - | >> unset($mip_form); | + | |
| - | Hier wird der Array mip_form[][] zerstrt und der genutzte Speicher wieder freigegeben. | + | <nowiki>$mip_form['0']['cat'] = 'desc'; |
| - | Dies solltet ihr auf keinen Fall vergessen. Ich gehe einfach mal davon aus, dass | + | $mip_form['0']['type'] = ''; |
| - | ihr bei eurer Modulentwicklung viele der hier angegebenden Beispiele per copy/ paste | + | |
| - | bernehmen werdet. Daher wird in vielen Modulen der Array mip_form[][] vorkommen. | + | |
| - | Nicht zerstrte Arrays werden dann frher oder spter dazu fhren, dass einzelne Werte | + | |
| - | in verschiedenen Modulen miteinander kollidieren. Gerade die Typen 'option' und | + | |
| - | 'radio' werden davon betroffen sein. | + | |
| - | + | ||
| - | ---------------------------------- | + | |
| - | Referenz | + | |
| - | ---------------------------------- | + | |
| - | ------------------- | + | |
| - | |Beschreibungsfelder| | + | |
| - | ------------------- | + | |
| - | + | ||
| - | [Beschreibung] | + | |
| - | + | ||
| - | Beispiel: | + | |
| - | + | ||
| - | $mip_form['0']['cat'] = 'desc'; | + | |
| - | $mip_form['0']['type'] = ''; | + | |
| $mip_form['0']['desc'] = 'Beschreibung'; | $mip_form['0']['desc'] = 'Beschreibung'; | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | [Checkbox][Beschreibung] | |
| - | [Checkbox] [Beschreibung] | + | |
| - | + | ||
| - | Beispiel: | + | Beispiel: |
| - | + | ||
| - | $mip_form['0']['cat'] = 'desc'; | + | <nowiki>$mip_form['0']['cat'] = 'desc'; |
| - | $mip_form['0']['type'] = 'chk'; | + | $mip_form['0']['type'] = 'chk'; |
| $mip_form['0']['desc'] = 'Beschreibung'; | $mip_form['0']['desc'] = 'Beschreibung'; | ||
| $mip_form['0']['chk_var'] = 'MOD_VAR[0]'; | $mip_form['0']['chk_var'] = 'MOD_VAR[0]'; | ||
| - | $mip_form['0']['chk_val'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['chk_val'] = $dedi_mod['value']['0']; |
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | [Radiobutton][Beschreibung] | |
| - | [Radiobutton] [Beschreibung] | + | |
| - | + | ||
| - | Beispiel: | + | Beispiel: |
| - | + | ||
| - | $mip_form['33']['cat'] = 'desc'; | + | <nowiki>$mip_form['33']['cat'] = 'desc'; |
| - | $mip_form['33']['type'] = 'radio'; | + | $mip_form['33']['type'] = 'radio'; |
| $mip_form['33']['desc'] = 'Beschreibung'; | $mip_form['33']['desc'] = 'Beschreibung'; | ||
| $mip_form['33']['radio_var'] = 'MOD_VAR[34]'; | $mip_form['33']['radio_var'] = 'MOD_VAR[34]'; | ||
| - | $mip_form['33']['radio_val'] = 'MOD_VALUE[34]'; | + | $mip_form['33']['radio_val'] = $dedi_mod['value']['34']; |
| $mip_form['33']['radio_val_default'] = ''; | $mip_form['33']['radio_val_default'] = ''; | ||
| $mip_form['33']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; | $mip_form['33']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; | ||
| $mip_form['33']['tab'] = '0'; | $mip_form['33']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['33']); | + | mip_formsp($mip_form['33']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | ===Textfelder=== |
| - | + | ||
| - | + | [Beschreibung][Textbox] | |
| - | + | ||
| - | + | Beispiel: | |
| - | ---------- | + | |
| - | |Textfelder| | + | <nowiki>$mip_form['0']['cat'] = 'txt'; |
| - | ---------- | + | $mip_form['0']['type'] = ''; |
| - | + | ||
| - | [Beschreibung] [Textbox] | + | |
| - | + | ||
| - | Beispiel: | + | |
| - | + | ||
| - | $mip_form['0']['cat'] = 'txt'; | + | |
| - | $mip_form['0']['type'] = ''; | + | |
| $mip_form['0']['desc'] = 'Beschreibung'; | $mip_form['0']['desc'] = 'Beschreibung'; | ||
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[1]'; | + | $mip_form['0']['cms_var'] = 'MOD_VAR[1]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[1]'; | + | $mip_form['0']['cms_val'] = $dedi_mod['value']['1']; |
| $mip_form['0']['cms_val_default'] = ''; | $mip_form['0']['cms_val_default'] = ''; | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | [Checkbox][Beschreibung][Textbox] | |
| - | [Checkbox] [Beschreibung] [Textbox] | + | |
| - | + | ||
| - | Beispiel: | + | Beispiel: |
| - | + | ||
| - | $mip_form['0']['cat'] = 'txt'; | + | |
| - | $mip_form['0']['type'] = 'chk'; | + | <nowiki>$mip_form['0']['cat'] = 'txt'; |
| + | $mip_form['0']['type'] = 'chk'; | ||
| $mip_form['0']['desc'] = 'Beschreibung'; | $mip_form['0']['desc'] = 'Beschreibung'; | ||
| $mip_form['0']['chk_var'] = 'MOD_VAR[0]'; | $mip_form['0']['chk_var'] = 'MOD_VAR[0]'; | ||
| - | $mip_form['0']['chk_val'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['chk_val'] = $dedi_mod['value']['0']; |
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[1]'; | + | $mip_form['0']['cms_var'] = 'MOD_VAR[1]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[1]'; | + | $mip_form['0']['cms_val'] = $dedi_mod['value']['1']; |
| - | $mip_form['0']['cms_val_default'] = ''; | + | $mip_form['0']['cms_val_default'] = ''; |
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | ||
| - | [Radiobutton] [Beschreibung] [Textbox] | + | |
| - | + | [Radiobutton][Beschreibung][Textbox] | |
| - | Beispiel: | + | |
| - | + | Beispiel: | |
| - | $mip_form['0']['cat'] = 'txt'; | + | |
| - | $mip_form['0']['type'] = 'radio'; | + | <nowiki>$mip_form['0']['cat'] = 'txt'; |
| + | $mip_form['0']['type'] = 'radio'; | ||
| $mip_form['0']['desc'] = 'Beschreibung Radiotext'; | $mip_form['0']['desc'] = 'Beschreibung Radiotext'; | ||
| $mip_form['0']['radio_var'] = 'MOD_VAR[0]'; | $mip_form['0']['radio_var'] = 'MOD_VAR[0]'; | ||
| - | $mip_form['0']['radio_val'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['radio_val'] = $dedi_mod['value']['0']; |
| - | $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; | + | $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; |
| $mip_form['0']['radio_val_default'] = ''; | $mip_form['0']['radio_val_default'] = ''; | ||
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[1]'; | + | $mip_form['0']['cms_var'] = 'MOD_VAR[1]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[1]'; | + | $mip_form['0']['cms_val'] = $dedi_mod['value']['1']; |
| $mip_form['0']['cms_val_default'] = ''; | $mip_form['0']['cms_val_default'] = ''; | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | [Textbox] | |
| - | [Beschreibung] | + | |
| - | [Textbox] | + | |
| - | + | Beispiel: | |
| - | Beispiel: | + | |
| - | + | ||
| - | $mip_form['0']['cat'] = 'txt'; | + | <nowiki>$mip_form['0']['cat'] = 'txt'; |
| - | $mip_form['0']['type'] = 'long'; | + | $mip_form['0']['type'] = 'long'; |
| $mip_form['0']['desc'] = 'Beschreibung'; | $mip_form['0']['desc'] = 'Beschreibung'; | ||
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[1]'; | + | $mip_form['0']['cms_var'] = 'MOD_VAR[1]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[1]'; | + | $mip_form['0']['cms_val'] =$dedi_mod['value']['1']; |
| $mip_form['0']['cms_val_default'] = ''; | $mip_form['0']['cms_val_default'] = ''; | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | [Checkbox][Beschreibung][Textbox] | |
| - | [Checkbox] [Beschreibung] | + | |
| - | [Textbox] | + | |
| - | + | Beispiel: | |
| - | Beispiel: | + | |
| - | + | ||
| - | $mip_form['0']['cat'] = 'txt'; | + | <nowiki>$mip_form['0']['cat'] = 'txt'; |
| - | $mip_form['0']['type'] = 'chk_long'; | + | $mip_form['0']['type'] = 'chk_long'; |
| $mip_form['0']['desc'] = 'Beschreibung'; | $mip_form['0']['desc'] = 'Beschreibung'; | ||
| $mip_form['0']['chk_var'] = 'MOD_VAR[0]'; | $mip_form['0']['chk_var'] = 'MOD_VAR[0]'; | ||
| - | $mip_form['0']['chk_val'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['chk_val'] =$dedi_mod['value']['0']; |
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[1]'; | + | $mip_form['0']['cms_var'] = 'MOD_VAR[1]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[1]'; | + | $mip_form['0']['cms_val'] = $dedi_mod['value']['1']; |
| - | $mip_form['0']['cms_val_default'] = ''; | + | $mip_form['0']['cms_val_default'] = ''; |
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | + | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | ||
| - | [Radiobutton] [Beschreibung] | + | [Radiobutton][Beschreibung][Textbox] |
| - | [Textbox] | + | |
| - | + | ||
| - | Beispiel: | + | Beispiel: |
| - | + | ||
| - | $mip_form['0']['cat'] = 'txt'; | + | |
| - | $mip_form['0']['type'] = 'radio_long'; | + | <nowiki>$mip_form['0']['cat'] = 'txt'; |
| + | $mip_form['0']['type'] = 'radio_long'; | ||
| $mip_form['0']['desc'] = 'Beschreibung Radiotext'; | $mip_form['0']['desc'] = 'Beschreibung Radiotext'; | ||
| $mip_form['0']['radio_var'] = 'MOD_VAR[0]'; | $mip_form['0']['radio_var'] = 'MOD_VAR[0]'; | ||
| - | $mip_form['0']['radio_val'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['radio_val'] = $dedi_mod['value']['0']; |
| $mip_form['0']['radio_val_default'] = ''; | $mip_form['0']['radio_val_default'] = ''; | ||
| $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; | $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; | ||
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[1]'; | + | $mip_form['0']['cms_var'] = 'MOD_VAR[1]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[1]'; | + | $mip_form['0']['cms_val'] = $dedi_mod['value']['1']; |
| $mip_form['0']['cms_val_default'] = ''; | $mip_form['0']['cms_val_default'] = ''; | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | ===Textareas=== |
| - | + | ||
| - | + | [Beschreibung][Textarea] | |
| - | + | ||
| - | + | ||
| - | --------- | + | Beispiel: |
| - | |Textareas| | + | |
| - | --------- | + | |
| - | + | <nowiki>$mip_form['0']['cat'] = 'txtarea'; | |
| - | [Beschreibung] [Textarea] | + | |
| - | + | ||
| - | Beispiel: | + | |
| - | + | ||
| - | $mip_form['0']['cat'] = 'txtarea'; | + | |
| $mip_form['0']['rows'] = '3'; | $mip_form['0']['rows'] = '3'; | ||
| $mip_form['0']['type'] = ''; | $mip_form['0']['type'] = ''; | ||
| $mip_form['0']['desc'] = 'Beschreibung'; | $mip_form['0']['desc'] = 'Beschreibung'; | ||
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[1]'; | + | $mip_form['0']['cms_var'] = 'MOD_VAR[1]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[1]'; | + | $mip_form['0']['cms_val'] = $dedi_mod['value']['1']; |
| $mip_form['0']['cms_val_default'] = ''; | $mip_form['0']['cms_val_default'] = ''; | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | [Checkbox][Beschreibung][Textarea] | |
| - | [Checkbox] [Beschreibung] [Textarea] | + | |
| - | + | ||
| - | Beispiel: | + | Beispiel: |
| - | + | ||
| - | $mip_form['0']['cat'] = 'txtarea'; | + | |
| + | <nowiki>$mip_form['0']['cat'] = 'txtarea'; | ||
| $mip_form['0']['rows'] = ''; | $mip_form['0']['rows'] = ''; | ||
| $mip_form['0']['type'] = 'chk'; | $mip_form['0']['type'] = 'chk'; | ||
| $mip_form['0']['desc'] = 'Beschreibung'; | $mip_form['0']['desc'] = 'Beschreibung'; | ||
| - | $mip_form['0']['chk_var'] = 'MOD_VAR[0]'; | + | $mip_form['0']['chk_var'] = MOD_VAR[0]'; |
| - | $mip_form['0']['chk_val'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['chk_val'] = '$dedi_mod['value']['0']; |
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[1]'; | + | $mip_form['0']['cms_var'] ='MOD_VAR[1]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[1]'; | + | $mip_form['0']['cms_val'] = $dedi_mod['value']['1']; |
| $mip_form['0']['cms_val_default'] = ''; | $mip_form['0']['cms_val_default'] = ''; | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | [Radiobutton] [Beschreibung] [Textarea] | |
| - | [Radiobutton] [Beschreibung] [Textarea] | + | |
| - | + | ||
| - | Beispiel: | + | Beispiel: |
| - | + | ||
| - | $mip_form['0']['cat'] = 'txtarea'; | + | |
| + | <nowiki>$mip_form['0']['cat'] = 'txtarea'; | ||
| $mip_form['0']['rows'] = '3'; | $mip_form['0']['rows'] = '3'; | ||
| $mip_form['0']['type'] = 'radio'; | $mip_form['0']['type'] = 'radio'; | ||
| $mip_form['0']['desc'] = 'Beschreibung Radiotext'; | $mip_form['0']['desc'] = 'Beschreibung Radiotext'; | ||
| $mip_form['0']['radio_var'] = 'MOD_VAR[0]'; | $mip_form['0']['radio_var'] = 'MOD_VAR[0]'; | ||
| - | $mip_form['0']['radio_val'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['radio_val'] = $dedi_mod['value']['0']; |
| $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; | $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; | ||
| $mip_form['0']['radio_val_default'] = ''; | $mip_form['0']['radio_val_default'] = ''; | ||
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[1]'; | + | $mip_form['0']['cms_var'] = 'MOD_VAR[1]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[1]'; | + | $mip_form['0']['cms_val'] = $dedi_mod['value']['1']; |
| $mip_form['0']['cms_val_default'] = ''; | $mip_form['0']['cms_val_default'] = ''; | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | [Beschreibung]<br> | |
| - | [Beschreibung] | + | [Textarea] |
| - | [Textarea] | + | |
| - | + | ||
| - | Beispiel: | + | Beispiel: |
| - | + | ||
| - | $mip_form['0']['cat'] = 'txtarea'; | + | |
| + | <nowiki>$mip_form['0']['cat'] = 'txtarea'; | ||
| $mip_form['0']['rows'] = '3'; | $mip_form['0']['rows'] = '3'; | ||
| $mip_form['0']['type'] = 'long'; | $mip_form['0']['type'] = 'long'; | ||
| $mip_form['0']['desc'] = 'Beschreibung'; | $mip_form['0']['desc'] = 'Beschreibung'; | ||
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[1]'; | + | $mip_form['0']['cms_var'] = 'MOD_VAR[1]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[1]'; | + | $mip_form['0']['cms_val'] = $dedi_mod['value']['1']; |
| $mip_form['0']['cms_val_default'] = ''; | $mip_form['0']['cms_val_default'] = ''; | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | [Checkbox] [Beschreibung] | |
| - | [Checkbox] [Beschreibung] | + | [Textarea] |
| - | [Textarea] | + | |
| - | + | ||
| - | Beispiel: | + | Beispiel: |
| - | + | ||
| - | $mip_form['0']['cat'] = 'txtarea'; | + | |
| + | <nowiki>$mip_form['0']['cat'] = 'txtarea'; | ||
| $mip_form['0']['rows'] = '3'; | $mip_form['0']['rows'] = '3'; | ||
| $mip_form['0']['type'] = 'chk_long'; | $mip_form['0']['type'] = 'chk_long'; | ||
| $mip_form['0']['desc'] = 'Beschreibung'; | $mip_form['0']['desc'] = 'Beschreibung'; | ||
| $mip_form['0']['chk_var'] = 'MOD_VAR[0]'; | $mip_form['0']['chk_var'] = 'MOD_VAR[0]'; | ||
| - | $mip_form['0']['chk_val'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['chk_val'] = $dedi_mod['value']['0']; |
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[1]'; | + | $mip_form['0']['cms_var'] = 'MOD_VAR[1]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[1]'; | + | $mip_form['0']['cms_val'] = $dedi_mod['value']['1']; |
| $mip_form['0']['cms_val_default'] = ''; | $mip_form['0']['cms_val_default'] = ''; | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | [Radiobutton] [Beschreibung]<br> | |
| - | [Radiobutton] [Beschreibung] | + | [Textarea] |
| - | [Textarea] | + | |
| - | + | ||
| Beispiel: | Beispiel: | ||
| - | + | ||
| - | $mip_form['0']['cat'] = 'txtarea'; | + | |
| + | <nowiki>$mip_form['0']['cat'] = 'txtarea'; | ||
| $mip_form['0']['rows'] = '3'; | $mip_form['0']['rows'] = '3'; | ||
| $mip_form['0']['type'] = 'radio_long'; | $mip_form['0']['type'] = 'radio_long'; | ||
| $mip_form['0']['desc'] = 'Beschreibung Radiotext'; | $mip_form['0']['desc'] = 'Beschreibung Radiotext'; | ||
| $mip_form['0']['radio_var'] = 'MOD_VAR[0]'; | $mip_form['0']['radio_var'] = 'MOD_VAR[0]'; | ||
| - | $mip_form['0']['radio_val'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['radio_val'] = $dedi_mod['value']['0']; |
| $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; | $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; | ||
| $mip_form['0']['radio_val_default'] = ''; | $mip_form['0']['radio_val_default'] = ''; | ||
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[1]'; | + | $mip_form['0']['cms_var'] = 'MOD_VAR[1]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[1]'; | + | $mip_form['0']['cms_val'] = $dedi_mod['value']['1']; |
| $mip_form['0']['cms_val_default'] = ''; | $mip_form['0']['cms_val_default'] = ''; | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | + | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | ===Optionsfelder=== |
| - | + | ||
| - | + | ||
| - | + | [Beschreibung] [Option x1] [Optionbeschreibung x1]<br> | |
| - | + | [Option x2] [Optionbeschreibung x2]<br> | |
| - | + | [Option x3] [Optionbeschreibung x3]<br> | |
| - | ------------- | + | ... ...<br> |
| - | |Optionsfelder| | + | |
| - | ------------- | + | |
| - | + | Beispiel: | |
| - | + | ||
| - | [Beschreibung] [Option x1] [Optionbeschreibung x1] | + | |
| - | [Option x2] [Optionbeschreibung x2] | + | <nowiki>$mip_form['0']['cat'] = 'option'; |
| - | [Option x3] [Optionbeschreibung x3] | + | |
| - | ... ... | + | |
| - | + | ||
| - | Beispiel: | + | |
| - | + | ||
| - | $mip_form['0']['cat'] = 'option'; | + | |
| $mip_form['0']['type'] = ''; | $mip_form['0']['type'] = ''; | ||
| $mip_form['0']['desc'] = 'Auswahl:'; | $mip_form['0']['desc'] = 'Auswahl:'; | ||
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[0]'; | + | $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['cms_val'] = $dedi_mod['value']['0']; |
| $mip_form['0']['cms_val_default'] = ''; | $mip_form['0']['cms_val_default'] = ''; | ||
| $mip_form['0']['option_desc']['0'] = 'Option 1'; | $mip_form['0']['option_desc']['0'] = 'Option 1'; | ||
| Zeile 469: | Zeile 426: | ||
| $mip_form['0']['option_desc']['2'] = ''; | $mip_form['0']['option_desc']['2'] = ''; | ||
| $mip_form['0']['option_val']['2'] = 'wenn_desc_leer_value_wird_angezeigt'; | $mip_form['0']['option_val']['2'] = 'wenn_desc_leer_value_wird_angezeigt'; | ||
| + | $mip_form['0']['size'] = 1; | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | + | ||
| - | + | oder für ein mehrzeiliges Optionsfeld (hier ist der Parameter "size" > 1 zu setzen): | |
| - | oder fr ein mehrzeiliges Optionsfeld: | + | |
| - | + | ||
| - | $mip_form['0']['cat'] = 'option'; | + | <nowiki>$mip_form['0']['cat'] = 'option'; |
| $mip_form['0']['type'] = 'long'; | $mip_form['0']['type'] = 'long'; | ||
| $mip_form['0']['desc'] = 'Auswahl:'; | $mip_form['0']['desc'] = 'Auswahl:'; | ||
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[0]'; | + | $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['cms_val'] = $dedi_mod['value']['0']; |
| $mip_form['0']['cms_val_default'] = ''; | $mip_form['0']['cms_val_default'] = ''; | ||
| $mip_form['0']['option_desc']['0'] = 'Option 1'; | $mip_form['0']['option_desc']['0'] = 'Option 1'; | ||
| Zeile 493: | Zeile 451: | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | [Checkbox] [Beschreibung] [Option x1] [Optionbeschreibung x1]<br> | |
| - | [Checkbox] [Beschreibung] [Option x1] [Optionbeschreibung x1] | + | [Option x2] [Optionbeschreibung x2] |
| - | [Option x2] [Optionbeschreibung x2] | + | |
| - | ... ... | + | |
| - | + | Beispiel: | |
| - | Beispiel: | + | |
| - | + | ||
| - | $mip_form['0']['cat'] = 'option'; | + | <nowiki>$mip_form['0']['cat'] = 'option'; |
| $mip_form['0']['type'] = 'chk'; | $mip_form['0']['type'] = 'chk'; | ||
| $mip_form['0']['desc'] = 'Auswahl:'; | $mip_form['0']['desc'] = 'Auswahl:'; | ||
| $mip_form['0']['chk_var'] = 'MOD_VAR[4]'; | $mip_form['0']['chk_var'] = 'MOD_VAR[4]'; | ||
| - | $mip_form['0']['chk_val'] = 'MOD_VALUE[4]'; | + | $mip_form['0']['chk_val'] = $dedi_mod['value']['4']; |
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[0]'; | + | $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['cms_val'] =$dedi_mod['value']['0']; |
| $mip_form['0']['cms_val_default'] = ''; | $mip_form['0']['cms_val_default'] = ''; | ||
| $mip_form['0']['option_desc']['0'] = 'Option 1'; | $mip_form['0']['option_desc']['0'] = 'Option 1'; | ||
| Zeile 519: | Zeile 477: | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | [Radiobutton] [Beschreibung] [Option x1] [Optionbeschreibung x1] | |
| - | [Radiobutton] [Beschreibung] [Option x1] [Optionbeschreibung x1] | + | [Option x2] [Optionbeschreibung x2] |
| - | [Option x2] [Optionbeschreibung x2] | + | |
| - | ... ... | + | |
| - | + | Beispiel: | |
| - | Beispiel: | + | |
| - | + | ||
| - | $mip_form['0']['cat'] = 'option'; | + | <nowiki>$mip_form['0']['cat'] = 'option'; |
| $mip_form['0']['type'] = 'radio'; | $mip_form['0']['type'] = 'radio'; | ||
| $mip_form['0']['desc'] = 'Beschreibung'; | $mip_form['0']['desc'] = 'Beschreibung'; | ||
| $mip_form['0']['radio_var'] = 'MOD_VAR[4]'; | $mip_form['0']['radio_var'] = 'MOD_VAR[4]'; | ||
| - | $mip_form['0']['radio_val'] = 'MOD_VALUE[4]'; | + | $mip_form['0']['radio_val'] = $dedi_mod['value']['4']; |
| $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; | $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; | ||
| $mip_form['0']['radio_val_default'] = ''; | $mip_form['0']['radio_val_default'] = ''; | ||
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[0]'; | + | $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['cms_val'] =$dedi_mod['value']['0']; |
| $mip_form['0']['cms_val_default'] = ''; | $mip_form['0']['cms_val_default'] = ''; | ||
| $mip_form['0']['option_desc']['0'] = 'Option 1'; | $mip_form['0']['option_desc']['0'] = 'Option 1'; | ||
| Zeile 547: | Zeile 505: | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | ||
| - | [Beschreibung] | + | |
| - | [Option x1] [Optionbeschreibung x1] | + | |
| - | [Option x2] [Optionbeschreibung x2] | + | |
| - | [Option x3] [Optionbeschreibung x3] | + | |
| - | ... ... | + | |
| - | + | ||
| - | + | ||
| - | Beispiel: | + | |
| - | $mip_form['0']['cat'] = 'option'; | + | |
| + | [Beschreibung]<br> | ||
| + | [Option x1] [Optionbeschreibung x1]<br> | ||
| + | [Option x2] [Optionbeschreibung x2]<br> | ||
| + | [Option x3] [Optionbeschreibung x3]<br> | ||
| + | ...<br> | ||
| + | |||
| + | |||
| + | Beispiel: | ||
| + | |||
| + | |||
| + | <nowiki>$mip_form['0']['cat'] = 'option'; | ||
| $mip_form['0']['type'] = 'long'; | $mip_form['0']['type'] = 'long'; | ||
| $mip_form['0']['desc'] = 'Auswahl:'; | $mip_form['0']['desc'] = 'Auswahl:'; | ||
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[0]'; | + | $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['cms_val'] =$dedi_mod['value']['0']; |
| $mip_form['0']['cms_val_default'] = ''; | $mip_form['0']['cms_val_default'] = ''; | ||
| $mip_form['0']['option_desc']['0'] = 'Option 1'; | $mip_form['0']['option_desc']['0'] = 'Option 1'; | ||
| Zeile 574: | Zeile 532: | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | [Checkbox]<br> |
| - | + | [Beschreibung] [Option x1] [Optionbeschreibung x1]<br> | |
| - | [Option] | + | [Option x2] [Optionbeschreibung x2]<br> |
| - | [Beschreibung] [Option x1] [Optionbeschreibung x1] | + | ...<br> |
| - | [Option x2] [Optionbeschreibung x2] | + | |
| - | ... ... | + | |
| - | + | Beispiel: | |
| - | Beispiel: | + | |
| - | + | ||
| - | $mip_form['0']['cat'] = 'option'; | + | <nowiki>$mip_form['0']['cat'] = 'option'; |
| $mip_form['0']['type'] = 'chk_long'; | $mip_form['0']['type'] = 'chk_long'; | ||
| $mip_form['0']['desc'] = 'Auswahl:'; | $mip_form['0']['desc'] = 'Auswahl:'; | ||
| $mip_form['0']['chk_var'] = 'MOD_VAR[4]'; | $mip_form['0']['chk_var'] = 'MOD_VAR[4]'; | ||
| - | $mip_form['0']['chk_val'] = 'MOD_VALUE[4]'; | + | $mip_form['0']['chk_val'] = $dedi_mod['value']['4']; |
| $mip_form['0']['chk_val_default'] = ''; | $mip_form['0']['chk_val_default'] = ''; | ||
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[0]'; | + | $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['cms_val'] = $dedi_mod['value']['0']; |
| $mip_form['0']['cms_val_default'] = ''; | $mip_form['0']['cms_val_default'] = ''; | ||
| $mip_form['0']['option_desc']['0'] = 'Option 1'; | $mip_form['0']['option_desc']['0'] = 'Option 1'; | ||
| Zeile 602: | Zeile 560: | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | [Radiobutton]<br> | |
| - | [Radiobutton] | + | [Beschreibung] [Option x1] [Optionbeschreibung x1]<br> |
| - | [Beschreibung] [Option x1] [Optionbeschreibung x1] | + | [Option x2] [Optionbeschreibung x2]<br> |
| - | [Option x2] [Optionbeschreibung x2] | + | |
| - | ... ... | + | |
| - | + | Beispiel: | |
| - | Beispiel: | + | |
| - | + | ||
| - | $mip_form['0']['cat'] = 'option'; | + | <nowiki>$mip_form['0']['cat'] = 'option'; |
| $mip_form['0']['type'] = 'radio_long'; | $mip_form['0']['type'] = 'radio_long'; | ||
| $mip_form['0']['desc'] = 'Beschreibung:'; | $mip_form['0']['desc'] = 'Beschreibung:'; | ||
| $mip_form['0']['radio_var'] = 'MOD_VAR[4]'; | $mip_form['0']['radio_var'] = 'MOD_VAR[4]'; | ||
| - | $mip_form['0']['radio_val'] = 'MOD_VALUE[4]'; | + | $mip_form['0']['radio_val'] = $dedi_mod['value']['4']; |
| $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; | $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; | ||
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[0]'; | + | $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['cms_val'] = $dedi_mod['value']['0']; |
| $mip_form['0']['cms_val_default'] = ''; | $mip_form['0']['cms_val_default'] = ''; | ||
| $mip_form['0']['option_desc']['0'] = 'Option 1'; | $mip_form['0']['option_desc']['0'] = 'Option 1'; | ||
| Zeile 630: | Zeile 588: | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | ===Radiobuttons=== |
| - | + | ||
| - | + | ||
| - | + | [Beschreibung] [Radiobutton x1] [Radiobuttonbeschreibung x1]<br> | |
| - | + | [Radiobutton x2] [Radiobuttonbeschreibung x2]<br> | |
| - | + | [Radiobutton x3] [Radiobuttonbeschreibung x3]<br> | |
| - | ------------- | + | |
| - | |Radiobuttons| | + | |
| - | ------------- | + | Beispiel: |
| - | + | ||
| - | + | ||
| - | [Beschreibung] [Radiobutton x1] [Radiobuttonbeschreibung x1] | + | <nowiki>$mip_form['0']['cat'] = 'radio'; |
| - | [Radiobutton x2] [Radiobuttonbeschreibung x2] | + | |
| - | [Radiobutton x3] [Radiobuttonbeschreibung x3] | + | |
| - | ... ... | + | |
| - | + | ||
| - | Beispiel: | + | |
| - | + | ||
| - | $mip_form['0']['cat'] = 'radio'; | + | |
| $mip_form['0']['type'] = ''; | $mip_form['0']['type'] = ''; | ||
| $mip_form['0']['desc'] = 'Auswahl:'; | $mip_form['0']['desc'] = 'Auswahl:'; | ||
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[0]'; | + | $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['cms_val'] = $dedi_mod['value']['0']; |
| $mip_form['0']['cms_val_default'] = ''; | $mip_form['0']['cms_val_default'] = ''; | ||
| $mip_form['0']['option_desc']['0'] = 'Option 1'; | $mip_form['0']['option_desc']['0'] = 'Option 1'; | ||
| Zeile 664: | Zeile 615: | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | [Checkbox] [Beschreibung] [Radiobutton x1] [Radiobuttonbeschreibung x1]<br> | |
| - | [Radiobutton] [Beschreibung] [Radiobutton x1] [Radiobuttonbeschreibung x1] | + | [Radiobutton x2] [Radiobuttonbeschreibung x2]<br> |
| - | [Radiobutton x2] [Radiobuttonbeschreibung x2] | + | |
| - | ... ... | + | |
| - | + | Beispiel: | |
| - | Beispiel: | + | |
| - | + | ||
| - | $mip_form['0']['cat'] = 'radio'; | + | <nowiki>$mip_form['0']['cat'] = 'radio'; |
| $mip_form['0']['type'] = 'chk'; | $mip_form['0']['type'] = 'chk'; | ||
| $mip_form['0']['desc'] = 'Auswahl:'; | $mip_form['0']['desc'] = 'Auswahl:'; | ||
| $mip_form['0']['chk_var'] = 'MOD_VAR[4]'; | $mip_form['0']['chk_var'] = 'MOD_VAR[4]'; | ||
| - | $mip_form['0']['chk_val'] = 'MOD_VALUE[4]'; | + | $mip_form['0']['chk_val'] = $dedi_mod['value']['4']; |
| $mip_form['0']['chk_val_default'] = ''; | $mip_form['0']['chk_val_default'] = ''; | ||
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[0]'; | + | $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['cms_val'] = $dedi_mod['value']['0']; |
| $mip_form['0']['cms_val_default'] = ''; | $mip_form['0']['cms_val_default'] = ''; | ||
| $mip_form['0']['option_desc']['0'] = 'Option 1'; | $mip_form['0']['option_desc']['0'] = 'Option 1'; | ||
| Zeile 690: | Zeile 641: | ||
| $mip_form['0']['option_val']['2'] = 'wenn_desc_leer_value_wird_angezeigt'; | $mip_form['0']['option_val']['2'] = 'wenn_desc_leer_value_wird_angezeigt'; | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | + | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | [Radiobutton] [Beschreibung] [Radiobutton x1] [Radiobuttonbeschreibung x1]<br> | |
| - | [Radiobutton] [Beschreibung] [Radiobutton x1] [Radiobuttonbeschreibung x1] | + | [Radiobutton x2] [Radiobuttonbeschreibung x2]<br> |
| - | [Radiobutton x2] [Radiobuttonbeschreibung x2] | + | |
| - | ... ... | + | |
| - | + | Beispiel:<br> | |
| - | Beispiel: | + | |
| - | + | ||
| - | $mip_form['0']['cat'] = 'radio'; | + | <nowiki>$mip_form['0']['cat'] = 'radio'; |
| $mip_form['0']['type'] = 'radio'; | $mip_form['0']['type'] = 'radio'; | ||
| $mip_form['0']['desc'] = 'Beschreibung'; | $mip_form['0']['desc'] = 'Beschreibung'; | ||
| $mip_form['0']['radio_var'] = 'MOD_VAR[4]'; | $mip_form['0']['radio_var'] = 'MOD_VAR[4]'; | ||
| - | $mip_form['0']['radio_val'] = 'MOD_VALUE[4]'; | + | $mip_form['0']['radio_val'] = $dedi_mod['value']['4']; |
| $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; | $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; | ||
| $mip_form['0']['radio_val_default'] = 'wenn_radio_val_leer__dieser_wert'; | $mip_form['0']['radio_val_default'] = 'wenn_radio_val_leer__dieser_wert'; | ||
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[0]'; | + | $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['cms_val'] = $dedi_mod['value']['0']; |
| $mip_form['0']['cms_val_default'] = ''; | $mip_form['0']['cms_val_default'] = ''; | ||
| $mip_form['0']['option_desc']['0'] = 'Option 1'; | $mip_form['0']['option_desc']['0'] = 'Option 1'; | ||
| Zeile 718: | Zeile 669: | ||
| $mip_form['0']['option_val']['2'] = 'wenn_desc_leer_value_wird_angezeigt'; | $mip_form['0']['option_val']['2'] = 'wenn_desc_leer_value_wird_angezeigt'; | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | + | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | [Beschreibung]<br> | |
| - | [Beschreibung] | + | [Radiobutton x1] [Radiobuttonbeschreibung x1]<br> |
| - | [Radiobutton x1] [Radiobuttonbeschreibung x1] | + | [Radiobutton x2] [Radiobuttonbeschreibung x2]<br> |
| - | [Radiobutton x2] [Radiobuttonbeschreibung x2] | + | [Radiobutton x3] [Radiobuttonbeschreibung x3]<br> |
| - | [Radiobutton x3] [Radiobuttonbeschreibung x3] | + | |
| - | ... ... | + | |
| - | + | Beispiel: | |
| - | + | ||
| - | Beispiel: | + | |
| - | + | <nowiki>$mip_form['0']['cat'] = 'radio'; | |
| - | $mip_form['0']['cat'] = 'radio'; | + | |
| $mip_form['0']['type'] = 'long'; | $mip_form['0']['type'] = 'long'; | ||
| $mip_form['0']['desc'] = 'Auswahl:'; | $mip_form['0']['desc'] = 'Auswahl:'; | ||
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[0]'; | + | $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['cms_val'] = $dedi_mod['value']['0']; |
| $mip_form['0']['cms_val_default'] = ''; | $mip_form['0']['cms_val_default'] = ''; | ||
| $mip_form['0']['option_desc']['0'] = 'Option 1'; | $mip_form['0']['option_desc']['0'] = 'Option 1'; | ||
| Zeile 746: | Zeile 696: | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | [Checkbox]<br> | |
| - | [Radiobutton] | + | [Beschreibung] [Radiobutton x1] [Radiobuttonbeschreibung x1]<br> |
| - | [Beschreibung] [Radiobutton x1] [Radiobuttonbeschreibung x1] | + | [Radiobutton x2] [Radiobuttonbeschreibung x2]<br> |
| - | [Radiobutton x2] [Radiobuttonbeschreibung x2] | + | |
| - | ... ... | + | |
| - | + | Beispiel: | |
| - | Beispiel: | + | |
| - | + | ||
| - | $mip_form['0']['cat'] = 'radio'; | + | <nowiki>$mip_form['0']['cat'] = 'radio'; |
| $mip_form['0']['type'] = 'chk_long'; | $mip_form['0']['type'] = 'chk_long'; | ||
| $mip_form['0']['desc'] = 'Auswahl:'; | $mip_form['0']['desc'] = 'Auswahl:'; | ||
| $mip_form['0']['chk_var'] = 'MOD_VAR[4]'; | $mip_form['0']['chk_var'] = 'MOD_VAR[4]'; | ||
| - | $mip_form['0']['chk_val'] = 'MOD_VALUE[4]'; | + | $mip_form['0']['chk_val'] = $dedi_mod['value']['4']; |
| $mip_form['0']['chk_val_default'] = ''; | $mip_form['0']['chk_val_default'] = ''; | ||
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[0]'; | + | $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['cms_val'] = $dedi_mod['value']['0']; |
| $mip_form['0']['cms_val_default'] = ''; | $mip_form['0']['cms_val_default'] = ''; | ||
| $mip_form['0']['option_desc']['0'] = 'Option 1'; | $mip_form['0']['option_desc']['0'] = 'Option 1'; | ||
| Zeile 774: | Zeile 724: | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | [Radiobutton]<br> | |
| - | [Radiobutton] | + | [Beschreibung] [Radiobutton x1] [Radiobuttonbeschreibung x1]<br> |
| - | [Beschreibung] [Radiobutton x1] [Radiobuttonbeschreibung x1] | + | [Radiobutton x2] [Radiobuttonbeschreibung x2]<br> |
| - | [Radiobutton x2] [Radiobuttonbeschreibung x2] | + | |
| - | ... ... | + | |
| - | + | Beispiel: | |
| - | Beispiel: | + | |
| - | + | ||
| - | $mip_form['0']['cat'] = 'radio'; | + | <nowiki>$mip_form['0']['cat'] = 'radio'; |
| $mip_form['0']['type'] = 'radio_long'; | $mip_form['0']['type'] = 'radio_long'; | ||
| $mip_form['0']['desc'] = 'Beschreibung:'; | $mip_form['0']['desc'] = 'Beschreibung:'; | ||
| $mip_form['0']['radio_var'] = 'MOD_VAR[4]'; | $mip_form['0']['radio_var'] = 'MOD_VAR[4]'; | ||
| - | $mip_form['0']['radio_val'] = 'MOD_VALUE[4]'; | + | $mip_form['0']['radio_val'] = $dedi_mod['value']['4']; |
| $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; | $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; | ||
| $mip_form['0']['radio_val_default'] = ''; | $mip_form['0']['radio_val_default'] = ''; | ||
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[0]'; | + | $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; |
| - | $mip_form['0']['cms_val'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['cms_val'] = $dedi_mod['value']['0']; |
| $mip_form['0']['cms_val_default'] = ''; | $mip_form['0']['cms_val_default'] = ''; | ||
| $mip_form['0']['option_desc']['0'] = 'Option 1'; | $mip_form['0']['option_desc']['0'] = 'Option 1'; | ||
| Zeile 803: | Zeile 753: | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | ===Checkboxen=== |
| - | + | ||
| - | + | ||
| - | + | [Beschreibung] [Checkbox x1] [Checkboxbeschreibung x1]<br> | |
| - | + | [Checkbox x2] [Checkboxbeschreibung x2]<br> | |
| - | + | [Checkbox x3] [Checkboxbeschreibung x3] | |
| - | ---------- | + | |
| - | |Checkboxen| | + | |
| - | ---------- | + | Beispiel: |
| - | + | ||
| - | + | ||
| - | [Beschreibung] [Checkbox x1] [Checkboxbeschreibung x1] | + | <nowiki>$mip_form['0']['cat'] = 'chk'; |
| - | [Checkbox x2] [Checkboxbeschreibung x2] | + | |
| - | [Checkbox x3] [Checkboxbeschreibung x3] | + | |
| - | ... ... | + | |
| - | + | ||
| - | Beispiel: | + | |
| - | + | ||
| - | $mip_form['0']['cat'] = 'chk'; | + | |
| $mip_form['0']['type'] = ''; | $mip_form['0']['type'] = ''; | ||
| $mip_form['0']['desc'] = 'Auswahl:'; | $mip_form['0']['desc'] = 'Auswahl:'; | ||
| $mip_form['0']['option_desc']['0'] = 'Checkbox 1'; | $mip_form['0']['option_desc']['0'] = 'Checkbox 1'; | ||
| $mip_form['0']['option_var']['0'] = 'MOD_VAR[0]'; | $mip_form['0']['option_var']['0'] = 'MOD_VAR[0]'; | ||
| - | $mip_form['0']['option_val']['0'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['option_val']['0'] = $dedi_mod['value']['0']; |
| $mip_form['0']['option_val_select']['0'] = 'gecheckt'; | $mip_form['0']['option_val_select']['0'] = 'gecheckt'; | ||
| $mip_form['0']['option_desc']['1'] = 'Checkbox 2'; | $mip_form['0']['option_desc']['1'] = 'Checkbox 2'; | ||
| $mip_form['0']['option_var']['1'] = 'MOD_VAR[1]'; | $mip_form['0']['option_var']['1'] = 'MOD_VAR[1]'; | ||
| - | $mip_form['0']['option_val']['1'] = 'MOD_VALUE[1]'; | + | $mip_form['0']['option_val']['1'] = $dedi_mod['value']['1']; |
| $mip_form['0']['option_val_select']['1'] = 'gecheckt'; | $mip_form['0']['option_val_select']['1'] = 'gecheckt'; | ||
| $mip_form['0']['option_desc']['2'] = 'Checkbox 3'; | $mip_form['0']['option_desc']['2'] = 'Checkbox 3'; | ||
| $mip_form['0']['option_var']['2'] = 'MOD_VAR[2]'; | $mip_form['0']['option_var']['2'] = 'MOD_VAR[2]'; | ||
| - | $mip_form['0']['option_val']['2'] = 'MOD_VALUE[2]'; | + | $mip_form['0']['option_val']['2'] = $dedi_mod['value']['2']; |
| $mip_form['0']['option_val_select']['2'] = 'gecheckt'; | $mip_form['0']['option_val_select']['2'] = 'gecheckt'; | ||
| - | $mip_form['0']['tab'] = '0'; | + | $mip_form['0']['tab'] = '0';</nowiki> |
| mip_formsp($mip_form['0']); | mip_formsp($mip_form['0']); | ||
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | [Checkbox] [Beschreibung] [Checkbox x1] [Checkboxbeschreibung x1]<br> | |
| - | [Checkbox] [Beschreibung] [Checkbox x1] [Checkboxbeschreibung x1] | + | [Checkbox x2] [Checkboxbeschreibung x2]<br> |
| - | [Checkbox x2] [Checkboxbeschreibung x2] | + | |
| - | ... ... | + | |
| - | + | Beispiel: | |
| - | Beispiel: | + | |
| - | + | ||
| - | $mip_form['0']['cat'] = 'chk'; | + | <nowiki>$mip_form['0']['cat'] = 'chk'; |
| $mip_form['0']['type'] = 'chk'; | $mip_form['0']['type'] = 'chk'; | ||
| $mip_form['0']['desc'] = 'Auswahl:'; | $mip_form['0']['desc'] = 'Auswahl:'; | ||
| $mip_form['0']['chk_var'] = 'MOD_VAR[4]'; | $mip_form['0']['chk_var'] = 'MOD_VAR[4]'; | ||
| - | $mip_form['0']['chk_val'] = 'MOD_VALUE[4]'; | + | $mip_form['0']['chk_val'] = $dedi_mod['value']['4']; |
| $mip_form['0']['chk_val_default'] = ''; | $mip_form['0']['chk_val_default'] = ''; | ||
| $mip_form['0']['option_desc']['0'] = 'Checkbox 1'; | $mip_form['0']['option_desc']['0'] = 'Checkbox 1'; | ||
| $mip_form['0']['option_var']['0'] = 'MOD_VAR[0]'; | $mip_form['0']['option_var']['0'] = 'MOD_VAR[0]'; | ||
| - | $mip_form['0']['option_val']['0'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['option_val']['0'] = $dedi_mod['value']['0']; |
| $mip_form['0']['option_val_select']['0'] = 'gecheckt'; | $mip_form['0']['option_val_select']['0'] = 'gecheckt'; | ||
| $mip_form['0']['option_desc']['1'] = 'Checkbox 2'; | $mip_form['0']['option_desc']['1'] = 'Checkbox 2'; | ||
| $mip_form['0']['option_var']['1'] = 'MOD_VAR[1]'; | $mip_form['0']['option_var']['1'] = 'MOD_VAR[1]'; | ||
| - | $mip_form['0']['option_val']['1'] = 'MOD_VALUE[1]'; | + | $mip_form['0']['option_val']['1'] = $dedi_mod['value']['1']; |
| $mip_form['0']['option_val_select']['1'] = 'gecheckt'; | $mip_form['0']['option_val_select']['1'] = 'gecheckt'; | ||
| $mip_form['0']['option_desc']['2'] = 'Checkbox 3'; | $mip_form['0']['option_desc']['2'] = 'Checkbox 3'; | ||
| $mip_form['0']['option_var']['2'] = 'MOD_VAR[2]'; | $mip_form['0']['option_var']['2'] = 'MOD_VAR[2]'; | ||
| - | $mip_form['0']['option_val']['2'] = 'MOD_VALUE[2]'; | + | $mip_form['0']['option_val']['2'] = $dedi_mod['value']['2']; |
| $mip_form['0']['option_val_select']['2'] = 'gecheckt'; | $mip_form['0']['option_val_select']['2'] = 'gecheckt'; | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | [Radiobutton] [Beschreibung] [Checkbox x1] [Checkboxbeschreibung x1]<br> | |
| - | [Radiobutton] [Beschreibung] [Checkbox x1] [Checkboxbeschreibung x1] | + | [Checkbox x2] [Checkboxbeschreibung x2] |
| - | [Checkbox x2] [Checkboxbeschreibung x2] | + | |
| - | ... ... | + | |
| - | + | Beispiel: | |
| - | Beispiel: | + | |
| - | + | ||
| - | $mip_form['0']['cat'] = 'chk'; | + | <nowiki>$mip_form['0']['cat'] = 'chk'; |
| $mip_form['0']['type'] = 'radio'; | $mip_form['0']['type'] = 'radio'; | ||
| $mip_form['0']['desc'] = 'Radiobuttonbeschreibung:'; | $mip_form['0']['desc'] = 'Radiobuttonbeschreibung:'; | ||
| $mip_form['0']['radio_var'] = 'MOD_VAR[4]'; | $mip_form['0']['radio_var'] = 'MOD_VAR[4]'; | ||
| - | $mip_form['0']['radio_val'] = 'MOD_VALUE[4]'; | + | $mip_form['0']['radio_val'] = $dedi_mod['value']['4']; |
| $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; | $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; | ||
| $mip_form['0']['radio_val_default'] = ''; | $mip_form['0']['radio_val_default'] = ''; | ||
| $mip_form['0']['option_desc']['0'] = 'Checkbox 1'; | $mip_form['0']['option_desc']['0'] = 'Checkbox 1'; | ||
| $mip_form['0']['option_var']['0'] = 'MOD_VAR[0]'; | $mip_form['0']['option_var']['0'] = 'MOD_VAR[0]'; | ||
| - | $mip_form['0']['option_val']['0'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['option_val']['0'] = $dedi_mod['value']['0']; |
| $mip_form['0']['option_val_select']['0'] = 'gecheckt'; | $mip_form['0']['option_val_select']['0'] = 'gecheckt'; | ||
| $mip_form['0']['option_desc']['1'] = 'Checkbox 2'; | $mip_form['0']['option_desc']['1'] = 'Checkbox 2'; | ||
| $mip_form['0']['option_var']['1'] = 'MOD_VAR[1]'; | $mip_form['0']['option_var']['1'] = 'MOD_VAR[1]'; | ||
| - | $mip_form['0']['option_val']['1'] = 'MOD_VALUE[1]'; | + | $mip_form['0']['option_val']['1'] = $dedi_mod['value']['1']; |
| $mip_form['0']['option_val_select']['1'] = 'gecheckt'; | $mip_form['0']['option_val_select']['1'] = 'gecheckt'; | ||
| $mip_form['0']['option_desc']['2'] = 'Checkbox 3'; | $mip_form['0']['option_desc']['2'] = 'Checkbox 3'; | ||
| $mip_form['0']['option_var']['2'] = 'MOD_VAR[2]'; | $mip_form['0']['option_var']['2'] = 'MOD_VAR[2]'; | ||
| - | $mip_form['0']['option_val']['2'] = 'MOD_VALUE[2]'; | + | $mip_form['0']['option_val']['2'] = $dedi_mod['value']['2']; |
| $mip_form['0']['option_val_select']['2'] = 'gecheckt'; | $mip_form['0']['option_val_select']['2'] = 'gecheckt'; | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | + | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | [Beschreibung] <br> | |
| - | [Beschreibung] | + | [Checkbox x1] [Checkboxbeschreibung x1]<br> |
| - | [Checkbox x1] [Checkboxbeschreibung x1] | + | [Checkbox x2] [Checkboxbeschreibung x2]<br> |
| - | [Checkbox x2] [Checkboxbeschreibung x2] | + | [Checkbox x3] [Checkboxbeschreibung x3] |
| - | [Checkbox x3] [Checkboxbeschreibung x3] | + | |
| - | ... ... | + | |
| - | + | Beispiel: | |
| - | + | ||
| - | Beispiel: | + | |
| - | + | <nowiki>$mip_form['0']['cat'] = 'chk'; | |
| - | $mip_form['0']['cat'] = 'chk'; | + | |
| $mip_form['0']['type'] = 'long'; | $mip_form['0']['type'] = 'long'; | ||
| $mip_form['0']['desc'] = 'Auswahl:'; | $mip_form['0']['desc'] = 'Auswahl:'; | ||
| $mip_form['0']['option_desc']['0'] = 'Checkbox 1'; | $mip_form['0']['option_desc']['0'] = 'Checkbox 1'; | ||
| $mip_form['0']['option_var']['0'] = 'MOD_VAR[0]'; | $mip_form['0']['option_var']['0'] = 'MOD_VAR[0]'; | ||
| - | $mip_form['0']['option_val']['0'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['option_val']['0'] = $dedi_mod['value']['0']; |
| $mip_form['0']['option_val_select']['0'] = 'gecheckt'; | $mip_form['0']['option_val_select']['0'] = 'gecheckt'; | ||
| $mip_form['0']['option_desc']['1'] = 'Checkbox 2'; | $mip_form['0']['option_desc']['1'] = 'Checkbox 2'; | ||
| $mip_form['0']['option_var']['1'] = 'MOD_VAR[1]'; | $mip_form['0']['option_var']['1'] = 'MOD_VAR[1]'; | ||
| - | $mip_form['0']['option_val']['1'] = 'MOD_VALUE[1]'; | + | $mip_form['0']['option_val']['1'] = $dedi_mod['value']['1']; |
| $mip_form['0']['option_val_select']['1'] = 'gecheckt'; | $mip_form['0']['option_val_select']['1'] = 'gecheckt'; | ||
| $mip_form['0']['option_desc']['2'] = 'Checkbox 3'; | $mip_form['0']['option_desc']['2'] = 'Checkbox 3'; | ||
| $mip_form['0']['option_var']['2'] = 'MOD_VAR[2]'; | $mip_form['0']['option_var']['2'] = 'MOD_VAR[2]'; | ||
| - | $mip_form['0']['option_val']['2'] = 'MOD_VALUE[2]'; | + | $mip_form['0']['option_val']['2'] = $dedi_mod['value']['2']; |
| $mip_form['0']['option_val_select']['2'] = 'gecheckt'; | $mip_form['0']['option_val_select']['2'] = 'gecheckt'; | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | [Checkbox] <br> | |
| - | [Checkbox] | + | [Beschreibung] [Checkbox x1] [Checkboxbeschreibung x1]<br> |
| - | [Beschreibung] [Checkbox x1] [Checkboxbeschreibung x1] | + | [Checkbox x2] [Checkboxbeschreibung x2]<br> |
| - | [Checkbox x2] [Checkboxbeschreibung x2] | + | |
| - | ... ... | + | |
| - | + | Beispiel: | |
| - | Beispiel: | + | |
| - | + | ||
| - | $mip_form['0']['cat'] = 'chk'; | + | <nowiki>$mip_form['0']['cat'] = 'chk'; |
| $mip_form['0']['type'] = 'chk_long'; | $mip_form['0']['type'] = 'chk_long'; | ||
| $mip_form['0']['desc'] = 'Auswahl:'; | $mip_form['0']['desc'] = 'Auswahl:'; | ||
| $mip_form['0']['chk_var'] = 'MOD_VAR[4]'; | $mip_form['0']['chk_var'] = 'MOD_VAR[4]'; | ||
| - | $mip_form['0']['chk_val'] = 'MOD_VALUE[4]'; | + | $mip_form['0']['chk_val'] = $dedi_mod['value']['4']; |
| $mip_form['0']['option_desc']['0'] = 'Checkbox 1'; | $mip_form['0']['option_desc']['0'] = 'Checkbox 1'; | ||
| $mip_form['0']['option_var']['0'] = 'MOD_VAR[0]'; | $mip_form['0']['option_var']['0'] = 'MOD_VAR[0]'; | ||
| - | $mip_form['0']['option_val']['0'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['option_val']['0'] = $dedi_mod['value']['0']; |
| $mip_form['0']['option_val_select']['0'] = 'gecheckt'; | $mip_form['0']['option_val_select']['0'] = 'gecheckt'; | ||
| $mip_form['0']['option_desc']['1'] = 'Checkbox 2'; | $mip_form['0']['option_desc']['1'] = 'Checkbox 2'; | ||
| $mip_form['0']['option_var']['1'] = 'MOD_VAR[1]'; | $mip_form['0']['option_var']['1'] = 'MOD_VAR[1]'; | ||
| - | $mip_form['0']['option_val']['1'] = 'MOD_VALUE[1]'; | + | $mip_form['0']['option_val']['1'] = $dedi_mod['value']['1']; |
| $mip_form['0']['option_val_select']['1'] = 'gecheckt'; | $mip_form['0']['option_val_select']['1'] = 'gecheckt'; | ||
| $mip_form['0']['option_desc']['2'] = 'Checkbox 3'; | $mip_form['0']['option_desc']['2'] = 'Checkbox 3'; | ||
| $mip_form['0']['option_var']['2'] = 'MOD_VAR[2]'; | $mip_form['0']['option_var']['2'] = 'MOD_VAR[2]'; | ||
| - | $mip_form['0']['option_val']['2'] = 'MOD_VALUE[2]'; | + | $mip_form['0']['option_val']['2'] = $dedi_mod['value']['2']; |
| $mip_form['0']['option_val_select']['2'] = 'gecheckt'; | $mip_form['0']['option_val_select']['2'] = 'gecheckt'; | ||
| $mip_form['0']['tab'] = '0'; | $mip_form['0']['tab'] = '0'; | ||
| - | mip_formsp($mip_form['0']); | + | mip_formsp($mip_form['0']);</nowiki> |
| - | + | ||
| - | ---------------------------------------------------------------- | + | |
| - | + | [Radiobutton]<br> | |
| - | [Radiobutton] | + | [Beschreibung] [Checkbox x1] [Checkboxbeschreibung x1]<br> |
| - | [Beschreibung] [Checkbox x1] [Checkboxbeschreibung x1] | + | [Checkbox x2] [Checkboxbeschreibung x2]<br> |
| - | [Checkbox x2] [Checkboxbeschreibung x2] | + | |
| - | ... ... | + | |
| - | + | Beispiel: | |
| - | Beispiel: | + | |
| - | + | ||
| - | $mip_form['0']['cat'] = 'chk'; | + | <nowiki>$mip_form['0']['cat'] = 'chk'; |
| $mip_form['0']['type'] = 'radio_long'; | $mip_form['0']['type'] = 'radio_long'; | ||
| $mip_form['0']['desc'] = 'Radiobuttonbeschreibung:'; | $mip_form['0']['desc'] = 'Radiobuttonbeschreibung:'; | ||
| $mip_form['0']['radio_var'] = 'MOD_VAR[4]'; | $mip_form['0']['radio_var'] = 'MOD_VAR[4]'; | ||
| - | $mip_form['0']['radio_val'] = 'MOD_VALUE[4]'; | + | $mip_form['0']['radio_val'] = $dedi_mod['value']['4']; |
| $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; | $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; | ||
| $mip_form['0']['radio_val_default'] = ''; | $mip_form['0']['radio_val_default'] = ''; | ||
| $mip_form['0']['option_desc']['0'] = 'Checkbox 1'; | $mip_form['0']['option_desc']['0'] = 'Checkbox 1'; | ||
| $mip_form['0']['option_var']['0'] = 'MOD_VAR[0]'; | $mip_form['0']['option_var']['0'] = 'MOD_VAR[0]'; | ||
| - | $mip_form['0']['option_val']['0'] = 'MOD_VALUE[0]'; | + | $mip_form['0']['option_val']['0'] = $dedi_mod['value']['0']; |
| $mip_form['0']['option_val_select']['0'] = 'gecheckt'; | $mip_form['0']['option_val_select']['0'] = 'gecheckt'; | ||
| $mip_form['0']['option_desc']['1'] = 'Checkbox 2'; | $mip_form['0']['option_desc']['1'] = 'Checkbox 2'; | ||
| $mip_form['0']['option_var']['1'] = 'MOD_VAR[1]'; | $mip_form['0']['option_var']['1'] = 'MOD_VAR[1]'; | ||
| - | $mip_form['0']['option_val']['1'] = 'MOD_VALUE[1]'; | + | $mip_form['0']['option_val']['1'] = $dedi_mod['value']['1']; |
| $mip_form['0']['option_val_select']['1'] = 'gecheckt'; | $mip_form['0']['option_val_select']['1'] = 'gecheckt'; | ||
| $mip_form['0']['option_desc']['2'] = 'Checkbox 3'; | $mip_form['0']['option_desc']['2'] = 'Checkbox 3'; | ||
| $mip_form['0']['option_var']['2'] = 'MOD_VAR[2]'; | $mip_form['0']['option_var']['2'] = 'MOD_VAR[2]'; | ||
| - | $mip_form['0']['option_val']['2'] = 'MOD_VALUE[2]'; | + | $mip_form['0']['option_val']['2'] = $dedi_mod['value']['2']; |
| $mip_form['0']['option_val_select']['2'] = 'gecheckt'; | $mip_form['0']['option_val_select']['2'] = 'gecheckt'; | ||
| - | $mip_form['0']['tab'] = '0'; | + | $mip_form['0']['tab'] = '0';</nowiki> |
| mip_formsp($mip_form['0']); | mip_formsp($mip_form['0']); | ||
| - | + | ||
| - | ---------------------------------------------------------------- | + | ===Hidden=== |
| - | + | ||
| - | + | Erstellt ein unsichtbares hidden- Formularfeld | |
| - | + | ||
| - | + | ||
| - | ------ | + | [hiddenformularfeld] |
| - | |Hidden| | + | |
| - | ------ | + | |
| - | + | Beispiel: | |
| - | + | ||
| - | [hiddenformularfeld] | + | |
| - | + | ||
| - | Beispiel: | + | |
| - | + | ||
| $mip_form['0']['cat'] = 'hidden'; | $mip_form['0']['cat'] = 'hidden'; | ||
| - | $mip_form['0']['MOD_VAR'] = 'MOD_VAR[0]'; | + | $mip_form['0']['cms_var'] = $dedi_mod['value']['0']; |
| $mip_form['0']['cms_val'] = 'mein_wert'; | $mip_form['0']['cms_val'] = 'mein_wert'; | ||
| mip_formsp($mip_form['0']); | mip_formsp($mip_form['0']); | ||
| - | + | ||
| - | ---------------------------------------------------------------- | + | ===Applikation=== |
| - | + | ||
| - | + | Erstellt Formularfelder, in denen schon bestimmte DeDi Funktionalitäten | |
| - | + | enthalten sind. Eine Applikation wird mit "$mip_form['X']['cat'] = 'app_XXX'" | |
| - | + | initialisiert. "$mip_form['output_cat']" gibt die Kategorie an, wie das | |
| - | ----------- | + | Formularfeld später beschaffen sein soll. 'option' oder 'radio' werden |
| - | |Applikation| | + | unterstützt. Empfehlung: 'option' |
| - | ----------- | + | |
| - | + | ||
| - | CSS- Parser | + | |
| - | + | ====CSS- Styles==== | |
| - | + | ||
| - | $mip_form['output_cat'] gibt die Kategorie an, wie das Formularfeld | + | Stellt eine Liste aller intern verfügbaren Stylesheets zur Verfügung. |
| - | spter beschaffen sein soll. 'option' oder 'radio' werden untersttzt. | + | |
| - | Empfehlung: 'option' | + | |
| - | + | $mip_form['flag'] ist ein optionaler Parameter. 'id_only' parst nur css-Id's, 'class_only' parst nur css-Klassen. Es wird dringend empfohlen, diesen Parameter zu setzen, da hinterher keine Rückschlüsse mehr auf die Herkunft gezogen werden können (z.B. wird die Klasse ".class_or_id" später zu der Variablen | |
| - | Mit $mip_form['type'] kann bestimmt werden, wie das CSS- File | + | 'class_or_id', ebenso wird die CSS- ID '#class_or_id' zur Variablen 'class_or_id'. |
| - | ausgegeben werden soll. | + | |
| - | Mgliche Optionen sind '', 'chk', 'radio', 'long', 'chk_long', 'radio_long' | + | |
| - | (siehe auch "Optionsfelder", "Radiobuttons"). | + | Beispiel: |
| - | + | ||
| - | Mit $mip_form['file'] kann optional eine zu parsende CSS- Datei angegeben | + | |
| - | werden. Wird dies nicht gemacht, wird automatisch die Standard- CSS- Datei | + | |
| - | aus dem Frontend geparst ("css/styles.css") | + | |
| - | + | ||
| - | $mip_form['flag'] ist ein optionaler Parameter. 'id_only' parst nur | + | |
| - | css-Id's, 'class_only' parst nur css-Klassen. Es wird dringend | + | |
| - | empfohlen, diesen Parameter zu setzen, da hinterher keine Rckschlsse | + | |
| - | mehr auf die Herkunft gezogen werden knnen (z.B. wird die Klasse | + | |
| - | ".class_or_id" spter zu der Variablen 'class_or_id', ebenso wird | + | |
| - | die CSS- ID '#class_or_id' zur Variablen 'class_or_id'. | + | |
| - | + | ||
| - | Kompatibilittsempfehlung zu Contenido 4.4: 'class_only' | + | |
| - | + | ||
| - | + | ||
| - | Beispiel: | + | |
| - | + | ||
| $mip_form['3']['desc'] = "Stylesheet"; | $mip_form['3']['desc'] = "Stylesheet"; | ||
| - | $mip_form['3']['cat'] = 'app_css'; | + | $mip_form['3']['cat'] = 'app_css'; |
| $mip_form['3']['output_cat'] = 'option'; | $mip_form['3']['output_cat'] = 'option'; | ||
| - | $mip_form['3']['type'] = ''; | + | $mip_form['3']['type'] = ''; |
| - | $mip_form['3']['MOD_VAR'] = "MOD_VAR[3]"; | + | $mip_form['3']['cms_var'] = "MOD_VAR[3]"; |
| - | $mip_form['3']['cms_val'] = "MOD_VALUE[3]"; | + | $mip_form['3']['cms_val'] = $dedi_mod['value']['3']; |
| - | $mip_form['3']['cms_val_default'] = ''; | + | $mip_form['3']['cms_val_default'] = ''; |
| - | $mip_form['3']['file'] = "C:/Programme/Apache Group/Apache/htdocs/project-gooseberry.de/front_single/dhtml/css.css"; | + | |
| $mip_form['3']['flag'] = "class_only"; | $mip_form['3']['flag'] = "class_only"; | ||
| mip_formsp($mip_form['3']); | mip_formsp($mip_form['3']); | ||
| + | |||
| + | ====Ordner==== | ||
| + | |||
| + | Zeigt eine Liste aller verfügbaren Ordner des Bereiches Redaktion-> Seiten an. | ||
| + | |||
| + | '''$mip_form['X']['without_root_cat'] = false/ true;'''<br> | ||
| + | Ist dieser Wert auf true gesetzt, wird die Option "root" nicht angezeigt. Standardmässig ist die Option mit "false" vorbelegt. | ||
| + | |||
| + | '''$mip_form['X']['without_this_cat'] = false/ true;'''<br> | ||
| + | Ist dieser Wert auf true gesetzt, wird die Option "Dieser Ordner" nicht angezeigt. Standardmässig ist die Option mit "false" vorbelegt. | ||
| + | |||
| + | |||
| + | Beispiel: | ||
| + | |||
| + | |||
| + | $mip_form['3']['desc'] = "Ordner"; | ||
| + | $mip_form['3']['cat'] = 'app_cat'; | ||
| + | $mip_form['3']['output_cat'] = 'option'; | ||
| + | $mip_form['3']['size'] = 3; | ||
| + | $mip_form['3']['cms_var'] = "MOD_VAR[3]"; | ||
| + | $mip_form['3']['cms_val'] = $dedi_mod['value']['3']; | ||
| - | ---------------------------------------------------------------- | + | mip_formsp($mip_form['3']); |
| + | |||
| + | ====Dateitypen==== | ||
| + | |||
| + | Zeigt alle Dateitypen an, welche im Dateimanager verfügbar sind (z.B. jpg, gif, fla, doc...). | ||
| + | |||
| + | |||
| + | Beispiel: | ||
| + | |||
| + | $mip_form['3']['desc'] = "Dateitypen"; | ||
| + | $mip_form['3']['cat'] = 'app_filetype'; | ||
| + | $mip_form['3']['output_cat'] = 'option'; | ||
| + | $mip_form['3']['size'] = 3; | ||
| + | $mip_form['3']['cms_var'] = "MOD_VAR[3]"; | ||
| + | $mip_form['3']['cms_val'] = $dedi_mod['value']['3']; | ||
| - | + | mip_formsp($mip_form['3']); | |
| - | Kategorien (Strukturbume) | + | |
| - | + | ====Verzeichnisse/ Ordner (Dateimanager)==== | |
| - | + | ||
| - | $mip_form['3']['desc'] = "Kategorie"; | + | Zeigt alle verfügbaren Ordner des Dateimanagers an. |
| - | $mip_form['3']['cat'] = 'app_cat'; | + | |
| + | |||
| + | '''$mip_form['X']['without_all_folders'] = false/ true;'''<br> | ||
| + | Ist dieser Wert auf true gesetzt, wird die Option "Alle Ordner" nicht angezeigt. Standardmässig ist die Option mit "false" vorbelegt. | ||
| + | |||
| + | |||
| + | Beispiel: | ||
| + | |||
| + | |||
| + | $mip_form['3']['desc'] = "Ordner des Dateimanagers"; | ||
| + | $mip_form['3']['cat'] = 'app_directory'; | ||
| $mip_form['3']['output_cat'] = 'option'; | $mip_form['3']['output_cat'] = 'option'; | ||
| - | $mip_form['3']['MOD_VAR'] = "MOD_VAR[3]"; | + | $mip_form['3']['size'] = 3; |
| - | $mip_form['3']['cms_val'] = "MOD_VALUE[3]"; | + | $mip_form['3']['cms_var'] = "MOD_VAR[3]"; |
| + | $mip_form['3']['cms_val'] = $dedi_mod['value']['3']; | ||
| mip_formsp($mip_form['3']); | mip_formsp($mip_form['3']); | ||
| + | |||
| + | ====Benutzergruppen==== | ||
| + | |||
| + | Zeigt alle verfügbaren Gruppen aus dem Bereich Administration-> Gruppen an. | ||
| + | |||
| + | |||
| + | '''$mip_form['X']['without_all_groups'] = false/ true;'''<br> | ||
| + | Ist dieser Wert auf true gesetzt, wird die Option "Alle Ordner" nicht angezeigt. Standardmässig ist die Option mit "false" vorbelegt. | ||
| + | |||
| + | |||
| + | Beispiel: | ||
| + | |||
| + | |||
| + | <nowiki>$mip_form['3']['desc'] = "Wählen Sie eine Gruppe"; | ||
| + | $mip_form['3']['cat'] = 'app_group'; | ||
| + | $mip_form['3']['output_cat'] = 'option'; | ||
| + | $mip_form['3']['size'] = 3; | ||
| + | $mip_form['3']['cms_var'] = "MOD_VAR[3]"; | ||
| + | $mip_form['3']['cms_val'] = $dedi_mod['value']['3']; | ||
| - | + | mip_formsp($mip_form['3']);</nowiki> | |
| - | ---------------------------------------------------------------- | + | |
| + | |||
| + | [[Category:Entwicklung]] | ||
Aktuelle Version
Die mip-forms (Modul Input Forms) stellen Funktionen zur einfachen Erstellung von Formularen bereit und sind dazu gedacht, die Modulentwicklung im Bereich der Konfiguration zu beschleunigen. Dadurch kann die Modulkonfiguration sehr schnell und flexibel entwickelt werden, komplexe Konfigurationsmöglichkeiten werden ohne große Mühe möglich.
Inhaltsverzeichnis |
[bearbeiten] Einleitendes Beispiel
Ein einfaches Beispiel:
Es wird ein Modul entwickelt, welches einen Text aus dem Seitenkonfigurationsdialog übernimmt und auf der Seite mit CSS- Styles formatiert ausgibt.
Programmcode für das Konfigurationfeld:
<?php $mip_form['0']['cat'] = 'txt'; $mip_form['0']['type'] = ''; $mip_form['0']['desc'] = 'Beschreibung'; $mip_form['0']['cms_var'] = "MOD_VAR[1]"; $mip_form['0']['cms_val'] = $dedi_mod['value']['1']; $mip_form['0']['cms_val_default'] = 'Hallo Welt'; $mip_form['0']['tab'] = '0'; $mip_form['1']['desc'] = "Stylesheet"; $mip_form['1']['cat'] = 'app_css'; $mip_form['1']['output_cat'] = 'option'; $mip_form['1']['type'] = ''; $mip_form['1']['cms_var'] = "MOD_VAR[2]"; $mip_form['1']['cms_val'] = $dedi_mod['value']['2']; $mip_form['1']['flag'] = "id_only"; mip_formsp($mip_form['0']); mip_formsp($mip_form['1']); unset($mip_form); ?>
Die oben getätigte Eingabe führt dann im Konfigurationsdialog zu folgendem Ergebnis:
Programmcode für die Frontendausgabe (das Ergebnis grafisch, siehe Abbildung rechts):
MOD_VALUE[1]
Erklärung:
$mip_form['0']['cat'] = 'txt'
Die erste Zeile des ersten Blocks. In diesem Block wird das Textfeld definiert. Die Kategorie 'cat' hat die Bezeichnung "txt" und damit ein Textfeld (Zur Zeit stehen die Kategorien txtarea, option, chk, radio und app_x zur Verfügung).
$mip_form['0']['type'] = '';
'type' bestimmt das Aussehen des Textfeldes. Mögliche Werte sind , 'chk', 'radio', 'long', 'chk_long', 'radio_long'. Wird kein Wert angegeben (wie in diesem Beispiel), wird der Defaultwert '[Beschreibung] [Textbox]' genommen. Im "default"- Fall kann die Variable auch weggelassen werden. Die einzelenen type- Werte für Textfelder im Überblick:
[LEER]:
[Beschreibung][Textbox]
'chk':
[Checkbox] [Beschreibung] [Textbox]
'radio':
[Radiobutton] [Beschreibung] [Textbox]
'long':
[Beschreibung] [große Textbox]
'chk_long':
[Checkbox] [Beschreibung] [große Textbox]
'radio_long':
[Radiobutton] [Beschreibung] [große Textbox]
$mip_form['0']['desc']='Beschreibung';
Die Beschriftung des Textfeldes (Label)
$mip_form['0']['cms_var']=$dedi_mod['value']['1'];
$mip_form['0']['cms_val']='MOD_VALUE[1]';
Die Variable, in denen DeDi den Wert speichern wird.
$mip_form['0']['cms_val_default'] = 'Hallo Welt';
Ist die betreffende MOD_VAR[x] noch leer, wird ein defaultwert eingetragen.
$mip_form['0']['tab'] = '0';
Hiermit können Konfigurationsfelder eingerückt werden. Erleichtert die Übersicht bei komplexen Konfigurationen.
Es folgt der zweite Block. Hier wird der CSS- Parser konfiguriert.
$mip_form['1']['cat']='app_css';
Der CSS-Parser wird aufgerufen. Kleine Applikationen gehören bei den mip-forms immer in die Kategorie app_xxx
$mip_form['1']['output_cat']='option';
'output_cat' gibt die Kategorie an, wie das Formularfeld später beschaffen sein soll und entspricht im Endeffekt 'cat', 'option' oder 'radio' sind sinnvoll. Empfehlung: 'option'
$mip_form['1']['flag'] = 'id_only';
'flag' ist ein optionaler Parameter. 'id_only' parst nur css-Id's, 'class_only' parst nur css-Klassen. Es wird dringend empfohlen, diesen Parameter zu setzen, da hinterher keine Rückschlüsse mehr auf die Herkunft gezogen werden können (z.B. wird die Klasse ".class_or_id" später zu der Variablen 'class_or_id', ebenso wird die CSS- ID '#class_or_id' zur Variablen 'class_or_id'. Die Meisten Module benutzen die Option 'class_only'
mip_formsp($mip_form['0']);
mip_formsp($mip_form['1']);
Die Formulare werden ausgegeben. Das 'p' bei 'mip_formsp' steht für print, also für die direkte
Ausgabe im Browser. Alternativ können die einzelnen Formularbausteine auch in Variablen abgespeichert werden. Dies geschieht dann in der Art von $meine_variable = mip_forms($mip_form['0']);
unset($mip_form);
Hier wird der Array mip_form[][] zerstört und der genutzte Speicher wieder freigegeben. Dies solltet ihr auf keinen Fall vergessen. Ich gehe einfach mal davon aus, dass bei der Modulentwicklung viele der hier angegebenen Beispiele per copy/ paste übernehmen werden. Daher wird in vielen Modulen der Array mip_form[][] vorkommen. Nicht zerstörte Arrays werden dann früher oder später dazu führen, dass einzelne Werte in verschiedenen Modulen miteinander kollidieren. Gerade die Typen 'option' und 'radio' werden davon betroffen sein. Im Konfigurationsbereich der Module gibt es bei nicht zurückgesetzten mip_form- Arrays noch ein zusätzliches Hindernis. Da auf Dehler bei der Modulbearbeitung hingewiesen wird, muß das Modul zwei mal ausgeführt werden. Einmal um das Modu zu testen und auf eventuelle Fehler aufmerksam zu machen und zum Anderen um die Ausgabe auf dem Bildschirm auszugeben. Wird hier das "unset" vergessen, sind Einträge in den Dropdownboxen zumeist doppelt vorhanden.
[bearbeiten] Referenz
[bearbeiten] Beschreibungsfelder
[Beschreibung]
Beispiel:
$mip_form['0']['cat'] = 'desc'; $mip_form['0']['type'] = ''; $mip_form['0']['desc'] = 'Beschreibung'; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Checkbox][Beschreibung]
Beispiel:
$mip_form['0']['cat'] = 'desc'; $mip_form['0']['type'] = 'chk'; $mip_form['0']['desc'] = 'Beschreibung'; $mip_form['0']['chk_var'] = 'MOD_VAR[0]'; $mip_form['0']['chk_val'] = $dedi_mod['value']['0']; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Radiobutton][Beschreibung]
Beispiel:
$mip_form['33']['cat'] = 'desc'; $mip_form['33']['type'] = 'radio'; $mip_form['33']['desc'] = 'Beschreibung'; $mip_form['33']['radio_var'] = 'MOD_VAR[34]'; $mip_form['33']['radio_val'] = $dedi_mod['value']['34']; $mip_form['33']['radio_val_default'] = ''; $mip_form['33']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; $mip_form['33']['tab'] = '0'; mip_formsp($mip_form['33']);
[bearbeiten] Textfelder
[Beschreibung][Textbox]
Beispiel:
$mip_form['0']['cat'] = 'txt'; $mip_form['0']['type'] = ''; $mip_form['0']['desc'] = 'Beschreibung'; $mip_form['0']['cms_var'] = 'MOD_VAR[1]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['1']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Checkbox][Beschreibung][Textbox]
Beispiel:
$mip_form['0']['cat'] = 'txt'; $mip_form['0']['type'] = 'chk'; $mip_form['0']['desc'] = 'Beschreibung'; $mip_form['0']['chk_var'] = 'MOD_VAR[0]'; $mip_form['0']['chk_val'] = $dedi_mod['value']['0']; $mip_form['0']['cms_var'] = 'MOD_VAR[1]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['1']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Radiobutton][Beschreibung][Textbox]
Beispiel:
$mip_form['0']['cat'] = 'txt'; $mip_form['0']['type'] = 'radio'; $mip_form['0']['desc'] = 'Beschreibung Radiotext'; $mip_form['0']['radio_var'] = 'MOD_VAR[0]'; $mip_form['0']['radio_val'] = $dedi_mod['value']['0']; $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; $mip_form['0']['radio_val_default'] = ''; $mip_form['0']['cms_var'] = 'MOD_VAR[1]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['1']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Textbox]
Beispiel:
$mip_form['0']['cat'] = 'txt'; $mip_form['0']['type'] = 'long'; $mip_form['0']['desc'] = 'Beschreibung'; $mip_form['0']['cms_var'] = 'MOD_VAR[1]'; $mip_form['0']['cms_val'] =$dedi_mod['value']['1']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Checkbox][Beschreibung][Textbox]
Beispiel:
$mip_form['0']['cat'] = 'txt'; $mip_form['0']['type'] = 'chk_long'; $mip_form['0']['desc'] = 'Beschreibung'; $mip_form['0']['chk_var'] = 'MOD_VAR[0]'; $mip_form['0']['chk_val'] =$dedi_mod['value']['0']; $mip_form['0']['cms_var'] = 'MOD_VAR[1]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['1']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Radiobutton][Beschreibung][Textbox]
Beispiel:
$mip_form['0']['cat'] = 'txt'; $mip_form['0']['type'] = 'radio_long'; $mip_form['0']['desc'] = 'Beschreibung Radiotext'; $mip_form['0']['radio_var'] = 'MOD_VAR[0]'; $mip_form['0']['radio_val'] = $dedi_mod['value']['0']; $mip_form['0']['radio_val_default'] = ''; $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; $mip_form['0']['cms_var'] = 'MOD_VAR[1]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['1']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[bearbeiten] Textareas
[Beschreibung][Textarea]
Beispiel:
$mip_form['0']['cat'] = 'txtarea'; $mip_form['0']['rows'] = '3'; $mip_form['0']['type'] = ''; $mip_form['0']['desc'] = 'Beschreibung'; $mip_form['0']['cms_var'] = 'MOD_VAR[1]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['1']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Checkbox][Beschreibung][Textarea]
Beispiel:
$mip_form['0']['cat'] = 'txtarea'; $mip_form['0']['rows'] = ''; $mip_form['0']['type'] = 'chk'; $mip_form['0']['desc'] = 'Beschreibung'; $mip_form['0']['chk_var'] = MOD_VAR[0]'; $mip_form['0']['chk_val'] = '$dedi_mod['value']['0']; $mip_form['0']['cms_var'] ='MOD_VAR[1]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['1']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Radiobutton] [Beschreibung] [Textarea]
Beispiel:
$mip_form['0']['cat'] = 'txtarea'; $mip_form['0']['rows'] = '3'; $mip_form['0']['type'] = 'radio'; $mip_form['0']['desc'] = 'Beschreibung Radiotext'; $mip_form['0']['radio_var'] = 'MOD_VAR[0]'; $mip_form['0']['radio_val'] = $dedi_mod['value']['0']; $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; $mip_form['0']['radio_val_default'] = ''; $mip_form['0']['cms_var'] = 'MOD_VAR[1]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['1']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Beschreibung]
[Textarea]
Beispiel:
$mip_form['0']['cat'] = 'txtarea'; $mip_form['0']['rows'] = '3'; $mip_form['0']['type'] = 'long'; $mip_form['0']['desc'] = 'Beschreibung'; $mip_form['0']['cms_var'] = 'MOD_VAR[1]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['1']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Checkbox] [Beschreibung]
[Textarea]
Beispiel:
$mip_form['0']['cat'] = 'txtarea'; $mip_form['0']['rows'] = '3'; $mip_form['0']['type'] = 'chk_long'; $mip_form['0']['desc'] = 'Beschreibung'; $mip_form['0']['chk_var'] = 'MOD_VAR[0]'; $mip_form['0']['chk_val'] = $dedi_mod['value']['0']; $mip_form['0']['cms_var'] = 'MOD_VAR[1]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['1']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Radiobutton] [Beschreibung]
[Textarea]
Beispiel:
$mip_form['0']['cat'] = 'txtarea'; $mip_form['0']['rows'] = '3'; $mip_form['0']['type'] = 'radio_long'; $mip_form['0']['desc'] = 'Beschreibung Radiotext'; $mip_form['0']['radio_var'] = 'MOD_VAR[0]'; $mip_form['0']['radio_val'] = $dedi_mod['value']['0']; $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; $mip_form['0']['radio_val_default'] = ''; $mip_form['0']['cms_var'] = 'MOD_VAR[1]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['1']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[bearbeiten] Optionsfelder
[Beschreibung] [Option x1] [Optionbeschreibung x1]
[Option x2] [Optionbeschreibung x2]
[Option x3] [Optionbeschreibung x3]
... ...
Beispiel:
$mip_form['0']['cat'] = 'option'; $mip_form['0']['type'] = ''; $mip_form['0']['desc'] = 'Auswahl:'; $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['0']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['option_desc']['0'] = 'Option 1'; $mip_form['0']['option_val']['0'] = 'val1'; $mip_form['0']['option_desc']['1'] = 'Option 2'; $mip_form['0']['option_val']['1'] = 'val2'; $mip_form['0']['option_desc']['2'] = ''; $mip_form['0']['option_val']['2'] = 'wenn_desc_leer_value_wird_angezeigt'; $mip_form['0']['size'] = 1; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
oder für ein mehrzeiliges Optionsfeld (hier ist der Parameter "size" > 1 zu setzen):
$mip_form['0']['cat'] = 'option'; $mip_form['0']['type'] = 'long'; $mip_form['0']['desc'] = 'Auswahl:'; $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['0']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['option_desc']['0'] = 'Option 1'; $mip_form['0']['option_val']['0'] = 'val1'; $mip_form['0']['option_desc']['1'] = 'Option 2'; $mip_form['0']['option_val']['1'] = 'val2'; $mip_form['0']['option_desc']['2'] = ''; $mip_form['0']['option_val']['2'] = 'wenn_desc_leer_value_wird_angezeigt'; $mip_form['0']['size'] = '3'; $mip_form['0']['flag'] = 'multiple'; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Checkbox] [Beschreibung] [Option x1] [Optionbeschreibung x1]
[Option x2] [Optionbeschreibung x2]
Beispiel:
$mip_form['0']['cat'] = 'option'; $mip_form['0']['type'] = 'chk'; $mip_form['0']['desc'] = 'Auswahl:'; $mip_form['0']['chk_var'] = 'MOD_VAR[4]'; $mip_form['0']['chk_val'] = $dedi_mod['value']['4']; $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; $mip_form['0']['cms_val'] =$dedi_mod['value']['0']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['option_desc']['0'] = 'Option 1'; $mip_form['0']['option_val']['0'] = 'val1'; $mip_form['0']['option_desc']['1'] = 'Option 2'; $mip_form['0']['option_val']['1'] = 'val2'; $mip_form['0']['option_desc']['2'] = ''; $mip_form['0']['option_val']['2'] = 'wenn_desc_leer_value_wird_angezeigt'; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Radiobutton] [Beschreibung] [Option x1] [Optionbeschreibung x1]
[Option x2] [Optionbeschreibung x2]
Beispiel:
$mip_form['0']['cat'] = 'option'; $mip_form['0']['type'] = 'radio'; $mip_form['0']['desc'] = 'Beschreibung'; $mip_form['0']['radio_var'] = 'MOD_VAR[4]'; $mip_form['0']['radio_val'] = $dedi_mod['value']['4']; $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; $mip_form['0']['radio_val_default'] = ''; $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; $mip_form['0']['cms_val'] =$dedi_mod['value']['0']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['option_desc']['0'] = 'Option 1'; $mip_form['0']['option_val']['0'] = 'val1'; $mip_form['0']['option_desc']['1'] = 'Option 2'; $mip_form['0']['option_val']['1'] = 'val2'; $mip_form['0']['option_desc']['2'] = ''; $mip_form['0']['option_val']['2'] = 'wenn_desc_leer_value_wird_angezeigt'; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Beschreibung]
[Option x1] [Optionbeschreibung x1]
[Option x2] [Optionbeschreibung x2]
[Option x3] [Optionbeschreibung x3]
...
Beispiel:
$mip_form['0']['cat'] = 'option'; $mip_form['0']['type'] = 'long'; $mip_form['0']['desc'] = 'Auswahl:'; $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; $mip_form['0']['cms_val'] =$dedi_mod['value']['0']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['option_desc']['0'] = 'Option 1'; $mip_form['0']['option_val']['0'] = 'val1'; $mip_form['0']['option_desc']['1'] = 'Option 2'; $mip_form['0']['option_val']['1'] = 'val2'; $mip_form['0']['option_desc']['2'] = ''; $mip_form['0']['option_val']['2'] = 'wenn_desc_leer_value_wird_angezeigt'; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Checkbox]
[Beschreibung] [Option x1] [Optionbeschreibung x1]
[Option x2] [Optionbeschreibung x2]
...
Beispiel:
$mip_form['0']['cat'] = 'option'; $mip_form['0']['type'] = 'chk_long'; $mip_form['0']['desc'] = 'Auswahl:'; $mip_form['0']['chk_var'] = 'MOD_VAR[4]'; $mip_form['0']['chk_val'] = $dedi_mod['value']['4']; $mip_form['0']['chk_val_default'] = ''; $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['0']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['option_desc']['0'] = 'Option 1'; $mip_form['0']['option_val']['0'] = 'val1'; $mip_form['0']['option_desc']['1'] = 'Option 2'; $mip_form['0']['option_val']['1'] = 'val2'; $mip_form['0']['option_desc']['2'] = ''; $mip_form['0']['option_val']['2'] = 'wenn_desc_leer_value_wird_angezeigt'; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Radiobutton]
[Beschreibung] [Option x1] [Optionbeschreibung x1]
[Option x2] [Optionbeschreibung x2]
Beispiel:
$mip_form['0']['cat'] = 'option'; $mip_form['0']['type'] = 'radio_long'; $mip_form['0']['desc'] = 'Beschreibung:'; $mip_form['0']['radio_var'] = 'MOD_VAR[4]'; $mip_form['0']['radio_val'] = $dedi_mod['value']['4']; $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['0']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['option_desc']['0'] = 'Option 1'; $mip_form['0']['option_val']['0'] = 'val1'; $mip_form['0']['option_desc']['1'] = 'Option 2'; $mip_form['0']['option_val']['1'] = 'val2'; $mip_form['0']['option_desc']['2'] = ''; $mip_form['0']['option_val']['2'] = 'wenn_desc_leer_value_wird_angezeigt'; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[bearbeiten] Radiobuttons
[Beschreibung] [Radiobutton x1] [Radiobuttonbeschreibung x1]
[Radiobutton x2] [Radiobuttonbeschreibung x2]
[Radiobutton x3] [Radiobuttonbeschreibung x3]
Beispiel:
$mip_form['0']['cat'] = 'radio'; $mip_form['0']['type'] = ''; $mip_form['0']['desc'] = 'Auswahl:'; $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['0']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['option_desc']['0'] = 'Option 1'; $mip_form['0']['option_val']['0'] = 'val1'; $mip_form['0']['option_desc']['1'] = 'Option 2'; $mip_form['0']['option_val']['1'] = 'val2'; $mip_form['0']['option_desc']['2'] = ''; $mip_form['0']['option_val']['2'] = 'wenn_desc_leer_value_wird_angezeigt'; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Checkbox] [Beschreibung] [Radiobutton x1] [Radiobuttonbeschreibung x1]
[Radiobutton x2] [Radiobuttonbeschreibung x2]
Beispiel:
$mip_form['0']['cat'] = 'radio'; $mip_form['0']['type'] = 'chk'; $mip_form['0']['desc'] = 'Auswahl:'; $mip_form['0']['chk_var'] = 'MOD_VAR[4]'; $mip_form['0']['chk_val'] = $dedi_mod['value']['4']; $mip_form['0']['chk_val_default'] = ''; $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['0']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['option_desc']['0'] = 'Option 1'; $mip_form['0']['option_val']['0'] = 'val1'; $mip_form['0']['option_desc']['1'] = 'Option 2'; $mip_form['0']['option_val']['1'] = 'val2'; $mip_form['0']['option_desc']['2'] = ''; $mip_form['0']['option_val']['2'] = 'wenn_desc_leer_value_wird_angezeigt'; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Radiobutton] [Beschreibung] [Radiobutton x1] [Radiobuttonbeschreibung x1]
[Radiobutton x2] [Radiobuttonbeschreibung x2]
Beispiel:
$mip_form['0']['cat'] = 'radio'; $mip_form['0']['type'] = 'radio'; $mip_form['0']['desc'] = 'Beschreibung'; $mip_form['0']['radio_var'] = 'MOD_VAR[4]'; $mip_form['0']['radio_val'] = $dedi_mod['value']['4']; $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; $mip_form['0']['radio_val_default'] = 'wenn_radio_val_leer__dieser_wert'; $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['0']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['option_desc']['0'] = 'Option 1'; $mip_form['0']['option_val']['0'] = 'val1'; $mip_form['0']['option_desc']['1'] = 'Option 2'; $mip_form['0']['option_val']['1'] = 'val2'; $mip_form['0']['option_desc']['2'] = ''; $mip_form['0']['option_val']['2'] = 'wenn_desc_leer_value_wird_angezeigt'; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Beschreibung]
[Radiobutton x1] [Radiobuttonbeschreibung x1]
[Radiobutton x2] [Radiobuttonbeschreibung x2]
[Radiobutton x3] [Radiobuttonbeschreibung x3]
Beispiel:
$mip_form['0']['cat'] = 'radio'; $mip_form['0']['type'] = 'long'; $mip_form['0']['desc'] = 'Auswahl:'; $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['0']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['option_desc']['0'] = 'Option 1'; $mip_form['0']['option_val']['0'] = 'val1'; $mip_form['0']['option_desc']['1'] = 'Option 2'; $mip_form['0']['option_val']['1'] = 'val2'; $mip_form['0']['option_desc']['2'] = ''; $mip_form['0']['option_val']['2'] = 'wenn_desc_leer_value_wird_angezeigt'; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Checkbox]
[Beschreibung] [Radiobutton x1] [Radiobuttonbeschreibung x1]
[Radiobutton x2] [Radiobuttonbeschreibung x2]
Beispiel:
$mip_form['0']['cat'] = 'radio'; $mip_form['0']['type'] = 'chk_long'; $mip_form['0']['desc'] = 'Auswahl:'; $mip_form['0']['chk_var'] = 'MOD_VAR[4]'; $mip_form['0']['chk_val'] = $dedi_mod['value']['4']; $mip_form['0']['chk_val_default'] = ''; $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['0']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['option_desc']['0'] = 'Option 1'; $mip_form['0']['option_val']['0'] = 'val1'; $mip_form['0']['option_desc']['1'] = 'Option 2'; $mip_form['0']['option_val']['1'] = 'val2'; $mip_form['0']['option_desc']['2'] = ''; $mip_form['0']['option_val']['2'] = 'wenn_desc_leer_value_wird_angezeigt'; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Radiobutton]
[Beschreibung] [Radiobutton x1] [Radiobuttonbeschreibung x1]
[Radiobutton x2] [Radiobuttonbeschreibung x2]
Beispiel:
$mip_form['0']['cat'] = 'radio'; $mip_form['0']['type'] = 'radio_long'; $mip_form['0']['desc'] = 'Beschreibung:'; $mip_form['0']['radio_var'] = 'MOD_VAR[4]'; $mip_form['0']['radio_val'] = $dedi_mod['value']['4']; $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; $mip_form['0']['radio_val_default'] = ''; $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['0']; $mip_form['0']['cms_val_default'] = ''; $mip_form['0']['option_desc']['0'] = 'Option 1'; $mip_form['0']['option_val']['0'] = 'val1'; $mip_form['0']['option_desc']['1'] = 'Option 2'; $mip_form['0']['option_val']['1'] = 'val2'; $mip_form['0']['option_desc']['2'] = ''; $mip_form['0']['option_val']['2'] = 'wenn_desc_leer_value_wird_angezeigt'; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[bearbeiten] Checkboxen
[Beschreibung] [Checkbox x1] [Checkboxbeschreibung x1]
[Checkbox x2] [Checkboxbeschreibung x2]
[Checkbox x3] [Checkboxbeschreibung x3]
Beispiel:
$mip_form['0']['cat'] = 'chk'; $mip_form['0']['type'] = ''; $mip_form['0']['desc'] = 'Auswahl:'; $mip_form['0']['option_desc']['0'] = 'Checkbox 1'; $mip_form['0']['option_var']['0'] = 'MOD_VAR[0]'; $mip_form['0']['option_val']['0'] = $dedi_mod['value']['0']; $mip_form['0']['option_val_select']['0'] = 'gecheckt'; $mip_form['0']['option_desc']['1'] = 'Checkbox 2'; $mip_form['0']['option_var']['1'] = 'MOD_VAR[1]'; $mip_form['0']['option_val']['1'] = $dedi_mod['value']['1']; $mip_form['0']['option_val_select']['1'] = 'gecheckt'; $mip_form['0']['option_desc']['2'] = 'Checkbox 3'; $mip_form['0']['option_var']['2'] = 'MOD_VAR[2]'; $mip_form['0']['option_val']['2'] = $dedi_mod['value']['2']; $mip_form['0']['option_val_select']['2'] = 'gecheckt'; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Checkbox] [Beschreibung] [Checkbox x1] [Checkboxbeschreibung x1]
[Checkbox x2] [Checkboxbeschreibung x2]
Beispiel:
$mip_form['0']['cat'] = 'chk'; $mip_form['0']['type'] = 'chk'; $mip_form['0']['desc'] = 'Auswahl:'; $mip_form['0']['chk_var'] = 'MOD_VAR[4]'; $mip_form['0']['chk_val'] = $dedi_mod['value']['4']; $mip_form['0']['chk_val_default'] = ''; $mip_form['0']['option_desc']['0'] = 'Checkbox 1'; $mip_form['0']['option_var']['0'] = 'MOD_VAR[0]'; $mip_form['0']['option_val']['0'] = $dedi_mod['value']['0']; $mip_form['0']['option_val_select']['0'] = 'gecheckt'; $mip_form['0']['option_desc']['1'] = 'Checkbox 2'; $mip_form['0']['option_var']['1'] = 'MOD_VAR[1]'; $mip_form['0']['option_val']['1'] = $dedi_mod['value']['1']; $mip_form['0']['option_val_select']['1'] = 'gecheckt'; $mip_form['0']['option_desc']['2'] = 'Checkbox 3'; $mip_form['0']['option_var']['2'] = 'MOD_VAR[2]'; $mip_form['0']['option_val']['2'] = $dedi_mod['value']['2']; $mip_form['0']['option_val_select']['2'] = 'gecheckt'; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Radiobutton] [Beschreibung] [Checkbox x1] [Checkboxbeschreibung x1]
[Checkbox x2] [Checkboxbeschreibung x2]
Beispiel:
$mip_form['0']['cat'] = 'chk'; $mip_form['0']['type'] = 'radio'; $mip_form['0']['desc'] = 'Radiobuttonbeschreibung:'; $mip_form['0']['radio_var'] = 'MOD_VAR[4]'; $mip_form['0']['radio_val'] = $dedi_mod['value']['4']; $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; $mip_form['0']['radio_val_default'] = ''; $mip_form['0']['option_desc']['0'] = 'Checkbox 1'; $mip_form['0']['option_var']['0'] = 'MOD_VAR[0]'; $mip_form['0']['option_val']['0'] = $dedi_mod['value']['0']; $mip_form['0']['option_val_select']['0'] = 'gecheckt'; $mip_form['0']['option_desc']['1'] = 'Checkbox 2'; $mip_form['0']['option_var']['1'] = 'MOD_VAR[1]'; $mip_form['0']['option_val']['1'] = $dedi_mod['value']['1']; $mip_form['0']['option_val_select']['1'] = 'gecheckt'; $mip_form['0']['option_desc']['2'] = 'Checkbox 3'; $mip_form['0']['option_var']['2'] = 'MOD_VAR[2]'; $mip_form['0']['option_val']['2'] = $dedi_mod['value']['2']; $mip_form['0']['option_val_select']['2'] = 'gecheckt'; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Beschreibung]
[Checkbox x1] [Checkboxbeschreibung x1]
[Checkbox x2] [Checkboxbeschreibung x2]
[Checkbox x3] [Checkboxbeschreibung x3]
Beispiel:
$mip_form['0']['cat'] = 'chk'; $mip_form['0']['type'] = 'long'; $mip_form['0']['desc'] = 'Auswahl:'; $mip_form['0']['option_desc']['0'] = 'Checkbox 1'; $mip_form['0']['option_var']['0'] = 'MOD_VAR[0]'; $mip_form['0']['option_val']['0'] = $dedi_mod['value']['0']; $mip_form['0']['option_val_select']['0'] = 'gecheckt'; $mip_form['0']['option_desc']['1'] = 'Checkbox 2'; $mip_form['0']['option_var']['1'] = 'MOD_VAR[1]'; $mip_form['0']['option_val']['1'] = $dedi_mod['value']['1']; $mip_form['0']['option_val_select']['1'] = 'gecheckt'; $mip_form['0']['option_desc']['2'] = 'Checkbox 3'; $mip_form['0']['option_var']['2'] = 'MOD_VAR[2]'; $mip_form['0']['option_val']['2'] = $dedi_mod['value']['2']; $mip_form['0']['option_val_select']['2'] = 'gecheckt'; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Checkbox]
[Beschreibung] [Checkbox x1] [Checkboxbeschreibung x1]
[Checkbox x2] [Checkboxbeschreibung x2]
Beispiel:
$mip_form['0']['cat'] = 'chk'; $mip_form['0']['type'] = 'chk_long'; $mip_form['0']['desc'] = 'Auswahl:'; $mip_form['0']['chk_var'] = 'MOD_VAR[4]'; $mip_form['0']['chk_val'] = $dedi_mod['value']['4']; $mip_form['0']['option_desc']['0'] = 'Checkbox 1'; $mip_form['0']['option_var']['0'] = 'MOD_VAR[0]'; $mip_form['0']['option_val']['0'] = $dedi_mod['value']['0']; $mip_form['0']['option_val_select']['0'] = 'gecheckt'; $mip_form['0']['option_desc']['1'] = 'Checkbox 2'; $mip_form['0']['option_var']['1'] = 'MOD_VAR[1]'; $mip_form['0']['option_val']['1'] = $dedi_mod['value']['1']; $mip_form['0']['option_val_select']['1'] = 'gecheckt'; $mip_form['0']['option_desc']['2'] = 'Checkbox 3'; $mip_form['0']['option_var']['2'] = 'MOD_VAR[2]'; $mip_form['0']['option_val']['2'] = $dedi_mod['value']['2']; $mip_form['0']['option_val_select']['2'] = 'gecheckt'; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[Radiobutton]
[Beschreibung] [Checkbox x1] [Checkboxbeschreibung x1]
[Checkbox x2] [Checkboxbeschreibung x2]
Beispiel:
$mip_form['0']['cat'] = 'chk'; $mip_form['0']['type'] = 'radio_long'; $mip_form['0']['desc'] = 'Radiobuttonbeschreibung:'; $mip_form['0']['radio_var'] = 'MOD_VAR[4]'; $mip_form['0']['radio_val'] = $dedi_mod['value']['4']; $mip_form['0']['radio_user_val'] = 'wenn_gleich_radio_val_dann_aktiviert'; $mip_form['0']['radio_val_default'] = ''; $mip_form['0']['option_desc']['0'] = 'Checkbox 1'; $mip_form['0']['option_var']['0'] = 'MOD_VAR[0]'; $mip_form['0']['option_val']['0'] = $dedi_mod['value']['0']; $mip_form['0']['option_val_select']['0'] = 'gecheckt'; $mip_form['0']['option_desc']['1'] = 'Checkbox 2'; $mip_form['0']['option_var']['1'] = 'MOD_VAR[1]'; $mip_form['0']['option_val']['1'] = $dedi_mod['value']['1']; $mip_form['0']['option_val_select']['1'] = 'gecheckt'; $mip_form['0']['option_desc']['2'] = 'Checkbox 3'; $mip_form['0']['option_var']['2'] = 'MOD_VAR[2]'; $mip_form['0']['option_val']['2'] = $dedi_mod['value']['2']; $mip_form['0']['option_val_select']['2'] = 'gecheckt'; $mip_form['0']['tab'] = '0'; mip_formsp($mip_form['0']);
[bearbeiten] Hidden
Erstellt ein unsichtbares hidden- Formularfeld
[hiddenformularfeld]
Beispiel:
$mip_form['0']['cat'] = 'hidden'; $mip_form['0']['cms_var'] = $dedi_mod['value']['0']; $mip_form['0']['cms_val'] = 'mein_wert'; mip_formsp($mip_form['0']);
[bearbeiten] Applikation
Erstellt Formularfelder, in denen schon bestimmte DeDi Funktionalitäten enthalten sind. Eine Applikation wird mit "$mip_form['X']['cat'] = 'app_XXX'" initialisiert. "$mip_form['output_cat']" gibt die Kategorie an, wie das Formularfeld später beschaffen sein soll. 'option' oder 'radio' werden unterstützt. Empfehlung: 'option'
[bearbeiten] CSS- Styles
Stellt eine Liste aller intern verfügbaren Stylesheets zur Verfügung.
$mip_form['flag'] ist ein optionaler Parameter. 'id_only' parst nur css-Id's, 'class_only' parst nur css-Klassen. Es wird dringend empfohlen, diesen Parameter zu setzen, da hinterher keine Rückschlüsse mehr auf die Herkunft gezogen werden können (z.B. wird die Klasse ".class_or_id" später zu der Variablen
'class_or_id', ebenso wird die CSS- ID '#class_or_id' zur Variablen 'class_or_id'.
Beispiel:
$mip_form['3']['desc'] = "Stylesheet"; $mip_form['3']['cat'] = 'app_css'; $mip_form['3']['output_cat'] = 'option'; $mip_form['3']['type'] = ; $mip_form['3']['cms_var'] = "MOD_VAR[3]"; $mip_form['3']['cms_val'] = $dedi_mod['value']['3']; $mip_form['3']['cms_val_default'] = ; $mip_form['3']['flag'] = "class_only"; mip_formsp($mip_form['3']);
[bearbeiten] Ordner
Zeigt eine Liste aller verfügbaren Ordner des Bereiches Redaktion-> Seiten an.
$mip_form['X']['without_root_cat'] = false/ true;
Ist dieser Wert auf true gesetzt, wird die Option "root" nicht angezeigt. Standardmässig ist die Option mit "false" vorbelegt.
$mip_form['X']['without_this_cat'] = false/ true;
Ist dieser Wert auf true gesetzt, wird die Option "Dieser Ordner" nicht angezeigt. Standardmässig ist die Option mit "false" vorbelegt.
Beispiel:
$mip_form['3']['desc'] = "Ordner"; $mip_form['3']['cat'] = 'app_cat'; $mip_form['3']['output_cat'] = 'option'; $mip_form['3']['size'] = 3; $mip_form['3']['cms_var'] = "MOD_VAR[3]"; $mip_form['3']['cms_val'] = $dedi_mod['value']['3']; mip_formsp($mip_form['3']);
[bearbeiten] Dateitypen
Zeigt alle Dateitypen an, welche im Dateimanager verfügbar sind (z.B. jpg, gif, fla, doc...).
Beispiel:
$mip_form['3']['desc'] = "Dateitypen"; $mip_form['3']['cat'] = 'app_filetype'; $mip_form['3']['output_cat'] = 'option'; $mip_form['3']['size'] = 3; $mip_form['3']['cms_var'] = "MOD_VAR[3]"; $mip_form['3']['cms_val'] = $dedi_mod['value']['3']; mip_formsp($mip_form['3']);
[bearbeiten] Verzeichnisse/ Ordner (Dateimanager)
Zeigt alle verfügbaren Ordner des Dateimanagers an.
$mip_form['X']['without_all_folders'] = false/ true;
Ist dieser Wert auf true gesetzt, wird die Option "Alle Ordner" nicht angezeigt. Standardmässig ist die Option mit "false" vorbelegt.
Beispiel:
$mip_form['3']['desc'] = "Ordner des Dateimanagers"; $mip_form['3']['cat'] = 'app_directory'; $mip_form['3']['output_cat'] = 'option'; $mip_form['3']['size'] = 3; $mip_form['3']['cms_var'] = "MOD_VAR[3]"; $mip_form['3']['cms_val'] = $dedi_mod['value']['3']; mip_formsp($mip_form['3']);
[bearbeiten] Benutzergruppen
Zeigt alle verfügbaren Gruppen aus dem Bereich Administration-> Gruppen an.
$mip_form['X']['without_all_groups'] = false/ true;
Ist dieser Wert auf true gesetzt, wird die Option "Alle Ordner" nicht angezeigt. Standardmässig ist die Option mit "false" vorbelegt.
Beispiel:
$mip_form['3']['desc'] = "Wählen Sie eine Gruppe"; $mip_form['3']['cat'] = 'app_group'; $mip_form['3']['output_cat'] = 'option'; $mip_form['3']['size'] = 3; $mip_form['3']['cms_var'] = "MOD_VAR[3]"; $mip_form['3']['cms_val'] = $dedi_mod['value']['3']; mip_formsp($mip_form['3']);

