<?xml version='1.0' encoding='ISO-8859-1'?>
<dedimod version='0.3' date='1085841119'>
   <name>Textarea</name>
   <cat>Content</cat>
   <version>1.0</version>
   <author>1</author>
   <created>1066927900</created>
   <lastmodified>1085515751</lastmodified>
   <deletable>1</deletable>
   <description>Erzeugt eine Textarea</description>
   <input>&lt;?PHP
//configmode
$mip_form['13']['desc'] = 'Konfigurationsmodus';
$mip_form['13']['cat'] = 'option';
$mip_form['13']['size'] = '1';
$mip_form['13']['option_desc'][] = 'Normal';
$mip_form['13']['option_val'][] =  '';
$mip_form['13']['option_desc'][] = 'Erweitert';
$mip_form['13']['option_val'][] =  'advanced';
$mip_form['13']['option_desc'][] = 'Ausgeblendet';
$mip_form['13']['option_val'][] =  'hidden';
$mip_form['13']['cms_var'] = 'MOD_VAR[13]';
$mip_form['13']['cms_val'] = $dedi_mod['value']['13'];
$mip_form['13']['flag'] = 'reload';
mip_formsp($mip_form['13']);//configmode
$mip_form['hide_in_standard_mode'] = array(0,2);

//hidden config
if($dedi_mod['value']['13'] == 'hidden'){
  foreach($dedi_mod['value'] AS $ke=&gt;$va){
    if($ke != '13'){
    ?&gt;
      &lt;input name=&quot;MOD_VAR[&lt;?php echo $ke; ?&gt;]&quot; type=&quot;hidden&quot; value=&quot;&lt;?php echo htmlentities($va);?&gt;&quot;&gt;
    &lt;?php
     }
  }
}
//simple and advanced config
else if($dedi_mod['value']['13'] == '' || $dedi_mod['value']['13'] == 'advanced'){


//Formularname
$mip_form['0']['cat'] = 'txt';
$mip_form['0']['type'] = '';
$mip_form['0']['desc'] = 'Formularfeldname';
$mip_form['0']['cms_var'] = 'MOD_VAR[0]';
$mip_form['0']['cms_val'] = $dedi_mod['value']['0'];
$mip_form['0']['cms_val_default'] = 'Textfeld';
$mip_form['0']['tab'] = '0';

//Style
$mip_form['1']['desc'] = $mod_lang['gen_font'];
$mip_form['1']['cat'] = 'app_css';
$mip_form['1']['output_cat'] = 'option';
$mip_form['1']['cms_var'] = 'MOD_VAR[1]';
$mip_form['1']['cms_val'] = $dedi_mod['value']['1'];
$mip_form['1']['flag'] = 'class_only';

//Erweitertes Bearbeitungsmenü
$mip_form['2']['cat'] = 'radio';
$mip_form['2']['type'] = '';
$mip_form['2']['desc'] = 'Bearbeitungsmenü&lt;br&gt;
&lt;small&gt;Ein &lt;b&gt;normales Menü&lt;/b&gt; besteht aus der Schalfläche &quot;bearbeiten&quot;, das &lt;b&gt;erweiterte Menü&lt;/b&gt; 
bietet darüberhinaus die Schaltflächen &quot;neu, löschen, nach oben, nach unten&quot;. Wird &lt;b&gt;kein Menü&lt;/b&gt; gewählt, ist der 
Content nicht editierbar.&lt;/small&gt;';
$mip_form['2']['cms_var'] = 'MOD_VAR[2]';
$mip_form['2']['cms_val'] = $dedi_mod['value']['2'];
$mip_form['2']['cms_val_default'] = 'true';
$mip_form['2']['option_desc']['0'] = 'Normales Menü';
$mip_form['2']['option_val']['0'] = 'true';
$mip_form['2']['option_desc']['1'] = 'Erweitertes Menü';
$mip_form['2']['option_val']['1'] = 'advanced';
$mip_form['2']['option_desc']['2'] = 'Kein Menü';
$mip_form['2']['option_val']['2'] = 'false';
$mip_form['2']['tab'] = '0';

// Template
$mip_form['3']['desc'] = 'Template';
$mip_form['3']['cat'] = 'txtarea';
$mip_form['3']['rows'] = '6';
$mip_form['3']['type'] = 'long';
$mip_form['3']['cms_var'] = 'MOD_VAR[3]';
$mip_form['3']['cms_val'] = $dedi_mod['value']['3'];
$mip_form['3']['cms_val_default'] = '{textarea}';

//if simple mode
if($dedi_mod['value']['13'] == ''){
   foreach ($mip_form['hide_in_standard_mode']  AS $ke=&gt;$va){
     $mip_form[$va]['cat'] = 'hidden';
   }
 }
mip_formsp($mip_form['0']);
mip_formsp($mip_form['1']);
mip_formsp($mip_form['2']);
mip_formsp($mip_form['3']);
echo ' &lt;small&gt;&lt;b&gt;Legende:&lt;/b&gt;&lt;br&gt; 
Textarea: {textarea}, Ausgewähltes Stylesheet: {style}&lt;br&gt;
Php-Code: &amp;lt;?PHP echo &quot;Ich bin gecachter phpcode! Ich werde immer nur dann neu generiert, wenn es eine&lt;br&gt;
Änderung auf der Seite gegeben hat&quot;; ?&amp;gt;&lt;br&gt;
&amp;lt;DEDIPHP&amp;gt; echo &quot;Ich bin ungecachter phpcode! Ich werde bei jedem Aufruf der Seite ausgeführt&quot;;&amp;lt;/DEDIPHP&amp;gt;&lt;br&gt;
&lt;/small&gt;';
}
unset($mip_form);

?&gt;</input>
   <output>&lt;?PHP
$myTextarea['text'] = &lt;dedi:mod type=&quot;textarea&quot; id=&quot;1&quot;  styleclass=&quot;MOD_VALUE[1]&quot; title=&quot;MOD_VALUE[0]&quot; menuoptions=&quot;MOD_VALUE[2]&quot; addslashes=&quot;true&quot; /&gt;;
$myTextarea['style'] = &quot;MOD_VALUE[1]&quot;;

$myTplVars['textarea'] = '{textarea}';
$myTplVars['style'] = '{style}';
$myTpl = &quot;MOD_VALUE[3]&quot;;
    
$myTpl = str_replace($myTplVars, $myTextarea, $myTpl);

eval('?&gt;'.$myTpl); 
unset($myTpl, $myTplVars, $myTextarea);
?&gt;
</output>
   <config></config>
   <repository_id>mod:6394d816bfb4220289a6f4b29cfb1834:ea9d48ba</repository_id>
   <install_sql></install_sql>
   <uninstall_sql></uninstall_sql>
   <update_sql></update_sql>
</dedimod>
