openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 70047384844805dcda6bb26ce6d2f47e14977aa2
parent a911a2c6d923f0c026e65f204270266fd457187e
Author: dankert <devnull@localhost>
Date:   Sun,  8 Mar 2009 02:18:26 +0100

Template-Umwandlung.

Diffstat:
themes/default/pages/html/element/name.tpl.php | 6+++---
themes/default/pages/html/element/properties.tpl.php | 90+++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------
themes/default/pages/html/element/type.tpl.php | 4++--
themes/default/pages/html/file/prop.tpl.php | 10+++++-----
themes/default/pages/html/file/size.tpl.php | 16++++++++--------
themes/default/pages/html/folder/create.tpl.php | 8++++----
themes/default/pages/html/folder/createfile.tpl.php | 10+++++-----
themes/default/pages/html/folder/prop.tpl.php | 8++++----
themes/default/pages/html/folder/select.tpl.php | 386+++++++++++++++++++++++++++++++++----------------------------------------------
themes/default/pages/html/folder/show.tpl.php | 12++++++++----
themes/default/pages/html/folder/showprop.tpl.php | 20++++++++++++++------
themes/default/pages/html/group/edit.tpl.php | 2+-
themes/default/pages/html/index/projectmenu.tpl.php | 8+++++---
themes/default/pages/html/index/showlogin.tpl.php | 32++++++++++++++++++++++----------
themes/default/pages/html/language/advanced.tpl.php | 119+++++++++++++++++++++++++++++++++++++++++++++++--------------------------------
themes/default/pages/html/language/edit.tpl.php | 4++--
themes/default/pages/html/language/listing.tpl.php | 12+++++++-----
themes/default/pages/html/link/edit.tpl.php | 2+-
themes/default/pages/html/link/prop.tpl.php | 2+-
themes/default/pages/html/link/showprop.tpl.php | 20++++++++++++++------
themes/default/pages/html/mainmenu/show.tpl.php | 8+++++---
themes/default/pages/html/object/aclform.tpl.php | 6+++---
themes/default/pages/html/page/el.tpl.php | 10++++++----
themes/default/pages/html/page/prop.tpl.php | 26+++++++++++++++++++-------
themes/default/pages/html/page/showprop.tpl.php | 26+++++++++++++++++++-------
themes/default/pages/html/pageelement/advanced.tpl.php | 64++++++++++++++++++++++++++++++++++++----------------------------
themes/default/pages/html/pageelement/archive.tpl.php | 8++++----
themes/default/pages/html/pageelement/diff.tpl.php | 4++--
themes/default/pages/html/pageelement/edit.tpl.php | 5643+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------
themes/default/pages/html/pageelement/link.tpl.php | 217+++++++++++++++++++++++++------------------------------------------------------
themes/default/pages/html/pageelement/prop.tpl.php | 2060+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/pageelement/show.tpl.php | 16+++++-----------
themes/default/pages/html/project/edit.tpl.php | 12++++++------
themes/default/pages/html/project/listing.tpl.php | 10++++++----
themes/default/pages/html/search/prop.tpl.php | 6+++---
themes/default/pages/html/template/addel.tpl.php | 18++++++++++++------
themes/default/pages/html/template/el.tpl.php | 8+++++---
themes/default/pages/html/template/listing.tpl.php | 6+++---
themes/default/pages/html/template/name.tpl.php | 12++++++------
themes/default/pages/html/template/src.tpl.php | 4++--
themes/default/pages/html/template/srcelement.tpl.php | 28++++++++++++++++++++--------
themes/default/pages/html/title/show.tpl.php | 8++++++--
themes/default/pages/html/tree/show.tpl.php | 592+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----
themes/default/pages/html/treetitle/show.tpl.php | 6++++--
44 files changed, 7825 insertions(+), 1744 deletions(-)

diff --git a/themes/default/pages/html/element/name.tpl.php b/themes/default/pages/html/element/name.tpl.php @@ -90,8 +90,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -270,7 +270,7 @@ ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:4:"name";s:4:"size";s:2:"40";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr6 = array('class'=>'','default'=>'','type'=>'text','name'=>'name','size'=>'40','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr6_class='' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='name' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; if ($attr6_readonly && empty($$attr6_name)) $$attr6_name = '- '.lang('EMPTY').' -'; if(!isset($attr6_default)) $attr6_default=''; -?><?php if (!$attr6_readonly) { +?><?php if (!$attr6_readonly || $attr6_type=='hidden') { ?><input<?php if ($attr6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" name="<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" <?php if (in_array($attr6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr6_readonly) { ?><input type="hidden" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" /><?php diff --git a/themes/default/pages/html/element/properties.tpl.php b/themes/default/pages/html/element/properties.tpl.php @@ -90,8 +90,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -390,7 +390,13 @@ { ?> <?php unset($attr7) ?><?php unset($attr7_present) ?><?php $attr8_debug_info = 'a:9:{s:4:"list";s:8:"subtypes";s:4:"name";s:7:"subtype";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr8 = array('list'=>'subtypes','name'=>'subtype','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr8_list='subtypes' ?><?php $attr8_name='subtype' ?><?php $attr8_onchange='' ?><?php $attr8_title='' ?><?php $attr8_class='' ?><?php $attr8_addempty=false ?><?php $attr8_multiple=false ?><?php $attr8_size='1' ?><?php $attr8_lang=false ?><?php -if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr8_readonly=true; +$attr8_tmp_list = $$attr8_list; +if ($this->isEditable() && $this->getRequestVar('mode')!='edit') +{ + echo empty($$attr8_name)?'- '.lang('EMPTY').' -':$attr8_tmp_list[$$attr8_name]; +} +else +{ if ( $attr8_addempty!==FALSE ) { if ($attr8_addempty===TRUE) @@ -404,7 +410,6 @@ if ($attr8_multiple) echo ' multiple="multiple"'; if (in_array($attr8_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; echo ' size="'.intval($attr8_size).'"'; ?>><?php - $attr8_tmp_list = $$attr8_list; if ( isset($$attr8_name) && isset($attr8_tmp_list[$$attr8_name]) ) $attr8_tmp_default = $$attr8_name; elseif ( isset($attr8_default) ) @@ -435,7 +440,8 @@ echo ' size="'.intval($attr8_size).'"'; } ?></select><?php if (count($$attr8_list)==0) echo '<input type="hidden" name="'.$attr8_name.'" value="" />'; -if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" value="'.$box_key.'" />' +if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" value="'.$box_key.'" />'; +} ?><?php unset($attr8) ?><?php unset($attr8_list) ?><?php unset($attr8_name) ?><?php unset($attr8_onchange) ?><?php unset($attr8_title) ?><?php unset($attr8_class) ?><?php unset($attr8_addempty) ?><?php unset($attr8_multiple) ?><?php unset($attr8_size) ?><?php unset($attr8_lang) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php } ?><?php unset($attr6) ?><?php $attr7_debug_info = 'a:2:{s:3:"not";s:4:"true";s:7:"present";s:8:"subtypes";}' ?><?php $attr7 = array('not'=>true,'present'=>'subtypes') ?><?php $attr7_not=true ?><?php $attr7_present='subtypes' ?><?php if ( isset($attr7_true) ) { @@ -500,7 +506,7 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va <?php unset($attr7) ?><?php unset($attr7_not) ?><?php unset($attr7_present) ?><?php $attr8_debug_info = 'a:8:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:7:"subtype";s:4:"size";s:2:"40";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr8 = array('class'=>'','default'=>'','type'=>'text','name'=>'subtype','size'=>'40','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr8_class='' ?><?php $attr8_default='' ?><?php $attr8_type='text' ?><?php $attr8_name='subtype' ?><?php $attr8_size='40' ?><?php $attr8_maxlength='256' ?><?php $attr8_onchange='' ?><?php $attr8_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr8_readonly=true; if ($attr8_readonly && empty($$attr8_name)) $$attr8_name = '- '.lang('EMPTY').' -'; if(!isset($attr8_default)) $attr8_default=''; -?><?php if (!$attr8_readonly) { +?><?php if (!$attr8_readonly || $attr8_type=='hidden') { ?><input<?php if ($attr8_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr8_name ?><?php if ($attr8_readonly) echo '_disabled' ?>" name="<?php echo $attr8_name ?><?php if ($attr8_readonly) echo '_disabled' ?>" type="<?php echo $attr8_type ?>" size="<?php echo $attr8_size ?>" maxlength="<?php echo $attr8_maxlength ?>" class="<?php echo $attr8_class ?>" value="<?php echo isset($$attr8_name)?$$attr8_name:$attr8_default ?>" <?php if (in_array($attr8_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr8_readonly) { ?><input type="hidden" id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name ?>" value="<?php echo isset($$attr8_name)?$$attr8_name:$attr8_default ?>" /><?php @@ -1172,7 +1178,7 @@ if ( $attr7_readonly && $checked ) ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:8:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:5:"width";s:4:"size";s:2:"10";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr7 = array('class'=>'','default'=>'','type'=>'text','name'=>'width','size'=>'10','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr7_class='' ?><?php $attr7_default='' ?><?php $attr7_type='text' ?><?php $attr7_name='width' ?><?php $attr7_size='10' ?><?php $attr7_maxlength='256' ?><?php $attr7_onchange='' ?><?php $attr7_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; if ($attr7_readonly && empty($$attr7_name)) $$attr7_name = '- '.lang('EMPTY').' -'; if(!isset($attr7_default)) $attr7_default=''; -?><?php if (!$attr7_readonly) { +?><?php if (!$attr7_readonly || $attr7_type=='hidden') { ?><input<?php if ($attr7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" name="<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" type="<?php echo $attr7_type ?>" size="<?php echo $attr7_size ?>" maxlength="<?php echo $attr7_maxlength ?>" class="<?php echo $attr7_class ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" <?php if (in_array($attr7_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr7_readonly) { ?><input type="hidden" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" /><?php @@ -1337,7 +1343,7 @@ if ($attr7_readonly) { ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:8:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:6:"height";s:4:"size";s:2:"10";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr7 = array('class'=>'','default'=>'','type'=>'text','name'=>'height','size'=>'10','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr7_class='' ?><?php $attr7_default='' ?><?php $attr7_type='text' ?><?php $attr7_name='height' ?><?php $attr7_size='10' ?><?php $attr7_maxlength='256' ?><?php $attr7_onchange='' ?><?php $attr7_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; if ($attr7_readonly && empty($$attr7_name)) $$attr7_name = '- '.lang('EMPTY').' -'; if(!isset($attr7_default)) $attr7_default=''; -?><?php if (!$attr7_readonly) { +?><?php if (!$attr7_readonly || $attr7_type=='hidden') { ?><input<?php if ($attr7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" name="<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" type="<?php echo $attr7_type ?>" size="<?php echo $attr7_size ?>" maxlength="<?php echo $attr7_maxlength ?>" class="<?php echo $attr7_class ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" <?php if (in_array($attr7_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr7_readonly) { ?><input type="hidden" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" /><?php @@ -1500,7 +1506,13 @@ if ($attr7_readonly) { if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:9:{s:4:"list";s:11:"dateformats";s:4:"name";s:10:"dateformat";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr7 = array('list'=>'dateformats','name'=>'dateformat','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr7_list='dateformats' ?><?php $attr7_name='dateformat' ?><?php $attr7_onchange='' ?><?php $attr7_title='' ?><?php $attr7_class='' ?><?php $attr7_addempty=false ?><?php $attr7_multiple=false ?><?php $attr7_size='1' ?><?php $attr7_lang=false ?><?php -if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; +$attr7_tmp_list = $$attr7_list; +if ($this->isEditable() && $this->getRequestVar('mode')!='edit') +{ + echo empty($$attr7_name)?'- '.lang('EMPTY').' -':$attr7_tmp_list[$$attr7_name]; +} +else +{ if ( $attr7_addempty!==FALSE ) { if ($attr7_addempty===TRUE) @@ -1514,7 +1526,6 @@ if ($attr7_multiple) echo ' multiple="multiple"'; if (in_array($attr7_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; echo ' size="'.intval($attr7_size).'"'; ?>><?php - $attr7_tmp_list = $$attr7_list; if ( isset($$attr7_name) && isset($attr7_tmp_list[$$attr7_name]) ) $attr7_tmp_default = $$attr7_name; elseif ( isset($attr7_default) ) @@ -1545,7 +1556,8 @@ echo ' size="'.intval($attr7_size).'"'; } ?></select><?php if (count($$attr7_list)==0) echo '<input type="hidden" name="'.$attr7_name.'" value="" />'; -if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" value="'.$box_key.'" />' +if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" value="'.$box_key.'" />'; +} ?><?php unset($attr7) ?><?php unset($attr7_list) ?><?php unset($attr7_name) ?><?php unset($attr7_onchange) ?><?php unset($attr7_title) ?><?php unset($attr7_class) ?><?php unset($attr7_addempty) ?><?php unset($attr7_multiple) ?><?php unset($attr7_size) ?><?php unset($attr7_lang) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:1:{s:7:"present";s:6:"format";}' ?><?php $attr4 = array('present'=>'format') ?><?php $attr4_present='format' ?><?php if ( isset($attr4_true) ) { @@ -1880,7 +1892,7 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:8:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:8:"decimals";s:4:"size";s:2:"10";s:9:"maxlength";s:1:"2";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr7 = array('class'=>'','default'=>'','type'=>'text','name'=>'decimals','size'=>'10','maxlength'=>'2','onchange'=>'','readonly'=>false) ?><?php $attr7_class='' ?><?php $attr7_default='' ?><?php $attr7_type='text' ?><?php $attr7_name='decimals' ?><?php $attr7_size='10' ?><?php $attr7_maxlength='2' ?><?php $attr7_onchange='' ?><?php $attr7_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; if ($attr7_readonly && empty($$attr7_name)) $$attr7_name = '- '.lang('EMPTY').' -'; if(!isset($attr7_default)) $attr7_default=''; -?><?php if (!$attr7_readonly) { +?><?php if (!$attr7_readonly || $attr7_type=='hidden') { ?><input<?php if ($attr7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" name="<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" type="<?php echo $attr7_type ?>" size="<?php echo $attr7_size ?>" maxlength="<?php echo $attr7_maxlength ?>" class="<?php echo $attr7_class ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" <?php if (in_array($attr7_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr7_readonly) { ?><input type="hidden" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" /><?php @@ -2045,7 +2057,7 @@ if ($attr7_readonly) { ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:8:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:9:"dec_point";s:4:"size";s:2:"10";s:9:"maxlength";s:1:"5";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr7 = array('class'=>'','default'=>'','type'=>'text','name'=>'dec_point','size'=>'10','maxlength'=>'5','onchange'=>'','readonly'=>false) ?><?php $attr7_class='' ?><?php $attr7_default='' ?><?php $attr7_type='text' ?><?php $attr7_name='dec_point' ?><?php $attr7_size='10' ?><?php $attr7_maxlength='5' ?><?php $attr7_onchange='' ?><?php $attr7_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; if ($attr7_readonly && empty($$attr7_name)) $$attr7_name = '- '.lang('EMPTY').' -'; if(!isset($attr7_default)) $attr7_default=''; -?><?php if (!$attr7_readonly) { +?><?php if (!$attr7_readonly || $attr7_type=='hidden') { ?><input<?php if ($attr7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" name="<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" type="<?php echo $attr7_type ?>" size="<?php echo $attr7_size ?>" maxlength="<?php echo $attr7_maxlength ?>" class="<?php echo $attr7_class ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" <?php if (in_array($attr7_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr7_readonly) { ?><input type="hidden" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" /><?php @@ -2210,7 +2222,7 @@ if ($attr7_readonly) { ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:8:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:12:"thousand_sep";s:4:"size";s:2:"10";s:9:"maxlength";s:1:"1";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr7 = array('class'=>'','default'=>'','type'=>'text','name'=>'thousand_sep','size'=>'10','maxlength'=>'1','onchange'=>'','readonly'=>false) ?><?php $attr7_class='' ?><?php $attr7_default='' ?><?php $attr7_type='text' ?><?php $attr7_name='thousand_sep' ?><?php $attr7_size='10' ?><?php $attr7_maxlength='1' ?><?php $attr7_onchange='' ?><?php $attr7_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; if ($attr7_readonly && empty($$attr7_name)) $$attr7_name = '- '.lang('EMPTY').' -'; if(!isset($attr7_default)) $attr7_default=''; -?><?php if (!$attr7_readonly) { +?><?php if (!$attr7_readonly || $attr7_type=='hidden') { ?><input<?php if ($attr7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" name="<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" type="<?php echo $attr7_type ?>" size="<?php echo $attr7_size ?>" maxlength="<?php echo $attr7_maxlength ?>" class="<?php echo $attr7_class ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" <?php if (in_array($attr7_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr7_readonly) { ?><input type="hidden" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" /><?php @@ -2375,7 +2387,7 @@ if ($attr7_readonly) { ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:8:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:12:"default_text";s:4:"size";s:2:"40";s:9:"maxlength";s:3:"255";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr7 = array('class'=>'','default'=>'','type'=>'text','name'=>'default_text','size'=>'40','maxlength'=>'255','onchange'=>'','readonly'=>false) ?><?php $attr7_class='' ?><?php $attr7_default='' ?><?php $attr7_type='text' ?><?php $attr7_name='default_text' ?><?php $attr7_size='40' ?><?php $attr7_maxlength='255' ?><?php $attr7_onchange='' ?><?php $attr7_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; if ($attr7_readonly && empty($$attr7_name)) $$attr7_name = '- '.lang('EMPTY').' -'; if(!isset($attr7_default)) $attr7_default=''; -?><?php if (!$attr7_readonly) { +?><?php if (!$attr7_readonly || $attr7_type=='hidden') { ?><input<?php if ($attr7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" name="<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" type="<?php echo $attr7_type ?>" size="<?php echo $attr7_size ?>" maxlength="<?php echo $attr7_maxlength ?>" class="<?php echo $attr7_class ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" <?php if (in_array($attr7_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr7_readonly) { ?><input type="hidden" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" /><?php @@ -3400,7 +3412,13 @@ if ($attr7_readonly) { if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:9:{s:4:"list";s:12:"linkelements";s:4:"name";s:11:"linkelement";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr7 = array('list'=>'linkelements','name'=>'linkelement','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr7_list='linkelements' ?><?php $attr7_name='linkelement' ?><?php $attr7_onchange='' ?><?php $attr7_title='' ?><?php $attr7_class='' ?><?php $attr7_addempty=false ?><?php $attr7_multiple=false ?><?php $attr7_size='1' ?><?php $attr7_lang=false ?><?php -if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; +$attr7_tmp_list = $$attr7_list; +if ($this->isEditable() && $this->getRequestVar('mode')!='edit') +{ + echo empty($$attr7_name)?'- '.lang('EMPTY').' -':$attr7_tmp_list[$$attr7_name]; +} +else +{ if ( $attr7_addempty!==FALSE ) { if ($attr7_addempty===TRUE) @@ -3414,7 +3432,6 @@ if ($attr7_multiple) echo ' multiple="multiple"'; if (in_array($attr7_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; echo ' size="'.intval($attr7_size).'"'; ?>><?php - $attr7_tmp_list = $$attr7_list; if ( isset($$attr7_name) && isset($attr7_tmp_list[$$attr7_name]) ) $attr7_tmp_default = $$attr7_name; elseif ( isset($attr7_default) ) @@ -3445,7 +3462,8 @@ echo ' size="'.intval($attr7_size).'"'; } ?></select><?php if (count($$attr7_list)==0) echo '<input type="hidden" name="'.$attr7_name.'" value="" />'; -if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" value="'.$box_key.'" />' +if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" value="'.$box_key.'" />'; +} ?><?php unset($attr7) ?><?php unset($attr7_list) ?><?php unset($attr7_name) ?><?php unset($attr7_onchange) ?><?php unset($attr7_title) ?><?php unset($attr7_class) ?><?php unset($attr7_addempty) ?><?php unset($attr7_multiple) ?><?php unset($attr7_size) ?><?php unset($attr7_lang) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:1:{s:7:"present";s:4:"name";}' ?><?php $attr4 = array('present'=>'name') ?><?php $attr4_present='name' ?><?php if ( isset($attr4_true) ) { @@ -3605,7 +3623,13 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:9:{s:4:"list";s:5:"names";s:4:"name";s:4:"name";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr7 = array('list'=>'names','name'=>'name','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr7_list='names' ?><?php $attr7_name='name' ?><?php $attr7_onchange='' ?><?php $attr7_title='' ?><?php $attr7_class='' ?><?php $attr7_addempty=false ?><?php $attr7_multiple=false ?><?php $attr7_size='1' ?><?php $attr7_lang=false ?><?php -if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; +$attr7_tmp_list = $$attr7_list; +if ($this->isEditable() && $this->getRequestVar('mode')!='edit') +{ + echo empty($$attr7_name)?'- '.lang('EMPTY').' -':$attr7_tmp_list[$$attr7_name]; +} +else +{ if ( $attr7_addempty!==FALSE ) { if ($attr7_addempty===TRUE) @@ -3619,7 +3643,6 @@ if ($attr7_multiple) echo ' multiple="multiple"'; if (in_array($attr7_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; echo ' size="'.intval($attr7_size).'"'; ?>><?php - $attr7_tmp_list = $$attr7_list; if ( isset($$attr7_name) && isset($attr7_tmp_list[$$attr7_name]) ) $attr7_tmp_default = $$attr7_name; elseif ( isset($attr7_default) ) @@ -3650,7 +3673,8 @@ echo ' size="'.intval($attr7_size).'"'; } ?></select><?php if (count($$attr7_list)==0) echo '<input type="hidden" name="'.$attr7_name.'" value="" />'; -if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" value="'.$box_key.'" />' +if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" value="'.$box_key.'" />'; +} ?><?php unset($attr7) ?><?php unset($attr7_list) ?><?php unset($attr7_name) ?><?php unset($attr7_onchange) ?><?php unset($attr7_title) ?><?php unset($attr7_class) ?><?php unset($attr7_addempty) ?><?php unset($attr7_multiple) ?><?php unset($attr7_size) ?><?php unset($attr7_lang) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:1:{s:7:"present";s:14:"folderobjectid";}' ?><?php $attr4 = array('present'=>'folderobjectid') ?><?php $attr4_present='folderobjectid' ?><?php if ( isset($attr4_true) ) { @@ -3810,7 +3834,13 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:9:{s:4:"list";s:7:"folders";s:4:"name";s:14:"folderobjectid";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr7 = array('list'=>'folders','name'=>'folderobjectid','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr7_list='folders' ?><?php $attr7_name='folderobjectid' ?><?php $attr7_onchange='' ?><?php $attr7_title='' ?><?php $attr7_class='' ?><?php $attr7_addempty=false ?><?php $attr7_multiple=false ?><?php $attr7_size='1' ?><?php $attr7_lang=false ?><?php -if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; +$attr7_tmp_list = $$attr7_list; +if ($this->isEditable() && $this->getRequestVar('mode')!='edit') +{ + echo empty($$attr7_name)?'- '.lang('EMPTY').' -':$attr7_tmp_list[$$attr7_name]; +} +else +{ if ( $attr7_addempty!==FALSE ) { if ($attr7_addempty===TRUE) @@ -3824,7 +3854,6 @@ if ($attr7_multiple) echo ' multiple="multiple"'; if (in_array($attr7_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; echo ' size="'.intval($attr7_size).'"'; ?>><?php - $attr7_tmp_list = $$attr7_list; if ( isset($$attr7_name) && isset($attr7_tmp_list[$$attr7_name]) ) $attr7_tmp_default = $$attr7_name; elseif ( isset($attr7_default) ) @@ -3855,7 +3884,8 @@ echo ' size="'.intval($attr7_size).'"'; } ?></select><?php if (count($$attr7_list)==0) echo '<input type="hidden" name="'.$attr7_name.'" value="" />'; -if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" value="'.$box_key.'" />' +if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" value="'.$box_key.'" />'; +} ?><?php unset($attr7) ?><?php unset($attr7_list) ?><?php unset($attr7_name) ?><?php unset($attr7_onchange) ?><?php unset($attr7_title) ?><?php unset($attr7_class) ?><?php unset($attr7_addempty) ?><?php unset($attr7_multiple) ?><?php unset($attr7_size) ?><?php unset($attr7_lang) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:1:{s:7:"present";s:16:"default_objectid";}' ?><?php $attr4 = array('present'=>'default_objectid') ?><?php $attr4_present='default_objectid' ?><?php if ( isset($attr4_true) ) { @@ -4015,7 +4045,13 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:9:{s:4:"list";s:7:"objects";s:4:"name";s:16:"default_objectid";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr7 = array('list'=>'objects','name'=>'default_objectid','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr7_list='objects' ?><?php $attr7_name='default_objectid' ?><?php $attr7_onchange='' ?><?php $attr7_title='' ?><?php $attr7_class='' ?><?php $attr7_addempty=false ?><?php $attr7_multiple=false ?><?php $attr7_size='1' ?><?php $attr7_lang=false ?><?php -if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; +$attr7_tmp_list = $$attr7_list; +if ($this->isEditable() && $this->getRequestVar('mode')!='edit') +{ + echo empty($$attr7_name)?'- '.lang('EMPTY').' -':$attr7_tmp_list[$$attr7_name]; +} +else +{ if ( $attr7_addempty!==FALSE ) { if ($attr7_addempty===TRUE) @@ -4029,7 +4065,6 @@ if ($attr7_multiple) echo ' multiple="multiple"'; if (in_array($attr7_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; echo ' size="'.intval($attr7_size).'"'; ?>><?php - $attr7_tmp_list = $$attr7_list; if ( isset($$attr7_name) && isset($attr7_tmp_list[$$attr7_name]) ) $attr7_tmp_default = $$attr7_name; elseif ( isset($attr7_default) ) @@ -4060,7 +4095,8 @@ echo ' size="'.intval($attr7_size).'"'; } ?></select><?php if (count($$attr7_list)==0) echo '<input type="hidden" name="'.$attr7_name.'" value="" />'; -if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" value="'.$box_key.'" />' +if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" value="'.$box_key.'" />'; +} ?><?php unset($attr7) ?><?php unset($attr7_list) ?><?php unset($attr7_name) ?><?php unset($attr7_onchange) ?><?php unset($attr7_title) ?><?php unset($attr7_class) ?><?php unset($attr7_addempty) ?><?php unset($attr7_multiple) ?><?php unset($attr7_size) ?><?php unset($attr7_lang) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:1:{s:7:"present";s:4:"code";}' ?><?php $attr4 = array('present'=>'code') ?><?php $attr4_present='code' ?><?php if ( isset($attr4_true) ) { diff --git a/themes/default/pages/html/element/type.tpl.php b/themes/default/pages/html/element/type.tpl.php @@ -90,8 +90,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) diff --git a/themes/default/pages/html/file/prop.tpl.php b/themes/default/pages/html/file/prop.tpl.php @@ -90,8 +90,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -270,7 +270,7 @@ ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:4:"name";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:4:"name";s:4:"size";s:2:"50";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr6 = array('class'=>'name','default'=>'','type'=>'text','name'=>'name','size'=>'50','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr6_class='name' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='name' ?><?php $attr6_size='50' ?><?php $attr6_maxlength='256' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; if ($attr6_readonly && empty($$attr6_name)) $$attr6_name = '- '.lang('EMPTY').' -'; if(!isset($attr6_default)) $attr6_default=''; -?><?php if (!$attr6_readonly) { +?><?php if (!$attr6_readonly || $attr6_type=='hidden') { ?><input<?php if ($attr6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" name="<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" <?php if (in_array($attr6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr6_readonly) { ?><input type="hidden" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" /><?php @@ -374,7 +374,7 @@ if ($attr6_readonly) { ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:8:"filename";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:8:"filename";s:4:"size";s:2:"40";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr6 = array('class'=>'filename','default'=>'','type'=>'text','name'=>'filename','size'=>'40','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr6_class='filename' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='filename' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; if ($attr6_readonly && empty($$attr6_name)) $$attr6_name = '- '.lang('EMPTY').' -'; if(!isset($attr6_default)) $attr6_default=''; -?><?php if (!$attr6_readonly) { +?><?php if (!$attr6_readonly || $attr6_type=='hidden') { ?><input<?php if ($attr6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" name="<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" <?php if (in_array($attr6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr6_readonly) { ?><input type="hidden" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" /><?php @@ -478,7 +478,7 @@ if ($attr6_readonly) { ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:9:"extension";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:9:"extension";s:4:"size";s:2:"10";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr6 = array('class'=>'extension','default'=>'','type'=>'text','name'=>'extension','size'=>'10','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr6_class='extension' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='extension' ?><?php $attr6_size='10' ?><?php $attr6_maxlength='256' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; if ($attr6_readonly && empty($$attr6_name)) $$attr6_name = '- '.lang('EMPTY').' -'; if(!isset($attr6_default)) $attr6_default=''; -?><?php if (!$attr6_readonly) { +?><?php if (!$attr6_readonly || $attr6_type=='hidden') { ?><input<?php if ($attr6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" name="<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" <?php if (in_array($attr6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr6_readonly) { ?><input type="hidden" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" /><?php diff --git a/themes/default/pages/html/file/size.tpl.php b/themes/default/pages/html/file/size.tpl.php @@ -267,7 +267,7 @@ $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:9:"var:width";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','text'=>$width,'escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_text=$width ?><?php $attr6_escape=true ?><?php +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:5:"width";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','var'=>'width','escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_var='width' ?><?php $attr6_escape=true ?><?php if ( isset($attr6_prefix)&& isset($attr6_key)) $attr6_key = $attr6_prefix.$attr6_key; if ( isset($attr6_suffix)&& isset($attr6_key)) @@ -332,7 +332,7 @@ } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php unset($attr6_escape) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:3:"_*_";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','raw'=>'_*_','escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_raw='_*_' ?><?php $attr6_escape=true ?><?php +?></<?php echo $tmp_tag ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_var) ?><?php unset($attr6_escape) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:3:"_*_";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','raw'=>'_*_','escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_raw='_*_' ?><?php $attr6_escape=true ?><?php if ( isset($attr6_prefix)&& isset($attr6_key)) $attr6_key = $attr6_prefix.$attr6_key; if ( isset($attr6_suffix)&& isset($attr6_key)) @@ -397,7 +397,7 @@ } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_raw) ?><?php unset($attr6_escape) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:10:"var:height";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','text'=>$height,'escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_text=$height ?><?php $attr6_escape=true ?><?php +?></<?php echo $tmp_tag ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_raw) ?><?php unset($attr6_escape) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:6:"height";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','var'=>'height','escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_var='height' ?><?php $attr6_escape=true ?><?php if ( isset($attr6_prefix)&& isset($attr6_key)) $attr6_key = $attr6_prefix.$attr6_key; if ( isset($attr6_suffix)&& isset($attr6_key)) @@ -462,7 +462,7 @@ } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php unset($attr6_escape) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:1:{s:4:"true";s:9:"mode:edit";}' ?><?php $attr4 = array('true'=>$this->getRequestVar("mode")=="edit") ?><?php $attr4_true=$this->getRequestVar("mode")=="edit" ?><?php +?></<?php echo $tmp_tag ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_var) ?><?php unset($attr6_escape) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:1:{s:4:"true";s:9:"mode:edit";}' ?><?php $attr4 = array('true'=>$this->getRequestVar("mode")=="edit") ?><?php $attr4_true=$this->getRequestVar("mode")=="edit" ?><?php if ( isset($attr4_true) ) { if (gettype($attr4_true) === '' && gettype($attr4_true) === '1') @@ -833,7 +833,7 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php $attr7_debug_info = 'a:8:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:5:"width";s:4:"size";s:2:"10";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr7 = array('class'=>'','default'=>'','type'=>'text','name'=>'width','size'=>'10','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr7_class='' ?><?php $attr7_default='' ?><?php $attr7_type='text' ?><?php $attr7_name='width' ?><?php $attr7_size='10' ?><?php $attr7_maxlength='256' ?><?php $attr7_onchange='' ?><?php $attr7_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; if ($attr7_readonly && empty($$attr7_name)) $$attr7_name = '- '.lang('EMPTY').' -'; if(!isset($attr7_default)) $attr7_default=''; -?><?php if (!$attr7_readonly) { +?><?php if (!$attr7_readonly || $attr7_type=='hidden') { ?><input<?php if ($attr7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" name="<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" type="<?php echo $attr7_type ?>" size="<?php echo $attr7_size ?>" maxlength="<?php echo $attr7_maxlength ?>" class="<?php echo $attr7_class ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" <?php if (in_array($attr7_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr7_readonly) { ?><input type="hidden" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" /><?php @@ -905,7 +905,7 @@ if ($attr7_readonly) { ?></<?php echo $tmp_tag ?>><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_raw) ?><?php unset($attr7_escape) ?><?php $attr7_debug_info = 'a:8:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:6:"height";s:4:"size";s:2:"10";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr7 = array('class'=>'','default'=>'','type'=>'text','name'=>'height','size'=>'10','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr7_class='' ?><?php $attr7_default='' ?><?php $attr7_type='text' ?><?php $attr7_name='height' ?><?php $attr7_size='10' ?><?php $attr7_maxlength='256' ?><?php $attr7_onchange='' ?><?php $attr7_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; if ($attr7_readonly && empty($$attr7_name)) $$attr7_name = '- '.lang('EMPTY').' -'; if(!isset($attr7_default)) $attr7_default=''; -?><?php if (!$attr7_readonly) { +?><?php if (!$attr7_readonly || $attr7_type=='hidden') { ?><input<?php if ($attr7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" name="<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" type="<?php echo $attr7_type ?>" size="<?php echo $attr7_size ?>" maxlength="<?php echo $attr7_maxlength ?>" class="<?php echo $attr7_class ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" <?php if (in_array($attr7_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr7_readonly) { ?><input type="hidden" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" /><?php @@ -1279,7 +1279,7 @@ if ( $attr7_readonly && $checked ) { ?><input type="hidden" name="<?php echo $attr7_name ?>" value="1" /><?php } -?><?php unset($attr7_name); unset($attr7_readonly); unset($attr7_default); ?><?php unset($attr7) ?><?php unset($attr7_default) ?><?php unset($attr7_readonly) ?><?php unset($attr7_name) ?><?php $attr7_debug_info = 'a:1:{s:3:"for";s:4:"copy";}' ?><?php $attr7 = array('for'=>'copy') ?><?php $attr7_for='copy' ?><label for="id_<?php echo $attr7_for ?><?php if (!empty($attr7_value)) echo '_'.$attr7_value ?>"><?php unset($attr7) ?><?php unset($attr7_for) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:12:"message:copy";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','text'=>lang('copy'),'escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_text=lang('copy') ?><?php $attr8_escape=true ?><?php +?><?php unset($attr7_name); unset($attr7_readonly); unset($attr7_default); ?><?php unset($attr7) ?><?php unset($attr7_default) ?><?php unset($attr7_readonly) ?><?php unset($attr7_name) ?><?php $attr7_debug_info = 'a:1:{s:3:"for";s:4:"copy";}' ?><?php $attr7 = array('for'=>'copy') ?><?php $attr7_for='copy' ?><label for="id_<?php echo $attr7_for ?><?php if (!empty($attr7_value)) echo '_'.$attr7_value ?>"><?php unset($attr7) ?><?php unset($attr7_for) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:4:"copy";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','key'=>'copy','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_key='copy' ?><?php $attr8_escape=true ?><?php if ( isset($attr8_prefix)&& isset($attr8_key)) $attr8_key = $attr8_prefix.$attr8_key; if ( isset($attr8_suffix)&& isset($attr8_key)) @@ -1344,7 +1344,7 @@ if ( $attr7_readonly && $checked ) } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_text) ?><?php unset($attr8_escape) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></label><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php +?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_key) ?><?php unset($attr8_escape) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></label><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; diff --git a/themes/default/pages/html/folder/create.tpl.php b/themes/default/pages/html/folder/create.tpl.php @@ -90,8 +90,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -310,7 +310,7 @@ ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:4:"name";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:11:"folder_name";s:4:"size";s:2:"30";s:9:"maxlength";s:3:"250";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr6 = array('class'=>'name','default'=>'','type'=>'text','name'=>'folder_name','size'=>'30','maxlength'=>'250','onchange'=>'','readonly'=>false) ?><?php $attr6_class='name' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='folder_name' ?><?php $attr6_size='30' ?><?php $attr6_maxlength='250' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; if ($attr6_readonly && empty($$attr6_name)) $$attr6_name = '- '.lang('EMPTY').' -'; if(!isset($attr6_default)) $attr6_default=''; -?><?php if (!$attr6_readonly) { +?><?php if (!$attr6_readonly || $attr6_type=='hidden') { ?><input<?php if ($attr6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" name="<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" <?php if (in_array($attr6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr6_readonly) { ?><input type="hidden" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" /><?php @@ -941,7 +941,7 @@ if (count($$attr6_list)==1) echo '<input type="hidden" name="'.$attr6_name.'" va ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:4:"name";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:9:"page_name";s:4:"size";s:2:"30";s:9:"maxlength";s:3:"250";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr6 = array('class'=>'name','default'=>'','type'=>'text','name'=>'page_name','size'=>'30','maxlength'=>'250','onchange'=>'','readonly'=>false) ?><?php $attr6_class='name' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='page_name' ?><?php $attr6_size='30' ?><?php $attr6_maxlength='250' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; if ($attr6_readonly && empty($$attr6_name)) $$attr6_name = '- '.lang('EMPTY').' -'; if(!isset($attr6_default)) $attr6_default=''; -?><?php if (!$attr6_readonly) { +?><?php if (!$attr6_readonly || $attr6_type=='hidden') { ?><input<?php if ($attr6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" name="<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" <?php if (in_array($attr6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr6_readonly) { ?><input type="hidden" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" /><?php diff --git a/themes/default/pages/html/folder/createfile.tpl.php b/themes/default/pages/html/folder/createfile.tpl.php @@ -97,8 +97,8 @@ else echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -511,7 +511,7 @@ else $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:3:"URL";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','key'=>'URL','escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_key='URL' ?><?php $attr6_escape=true ?><?php +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:8:"HTTP_URL";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','key'=>'HTTP_URL','escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_key='HTTP_URL' ?><?php $attr6_escape=true ?><?php if ( isset($attr6_prefix)&& isset($attr6_key)) $attr6_key = $attr6_prefix.$attr6_key; if ( isset($attr6_suffix)&& isset($attr6_key)) @@ -590,7 +590,7 @@ else ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:3:"url";s:4:"size";s:2:"50";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr6 = array('class'=>'','default'=>'','type'=>'text','name'=>'url','size'=>'50','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr6_class='' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='url' ?><?php $attr6_size='50' ?><?php $attr6_maxlength='256' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; if ($attr6_readonly && empty($$attr6_name)) $$attr6_name = '- '.lang('EMPTY').' -'; if(!isset($attr6_default)) $attr6_default=''; -?><?php if (!$attr6_readonly) { +?><?php if (!$attr6_readonly || $attr6_type=='hidden') { ?><input<?php if ($attr6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" name="<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" <?php if (in_array($attr6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr6_readonly) { ?><input type="hidden" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" /><?php @@ -715,7 +715,7 @@ if ($attr6_readonly) { ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:4:"name";s:4:"size";s:2:"50";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr6 = array('class'=>'','default'=>'','type'=>'text','name'=>'name','size'=>'50','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr6_class='' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='name' ?><?php $attr6_size='50' ?><?php $attr6_maxlength='256' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; if ($attr6_readonly && empty($$attr6_name)) $$attr6_name = '- '.lang('EMPTY').' -'; if(!isset($attr6_default)) $attr6_default=''; -?><?php if (!$attr6_readonly) { +?><?php if (!$attr6_readonly || $attr6_type=='hidden') { ?><input<?php if ($attr6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" name="<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" <?php if (in_array($attr6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr6_readonly) { ?><input type="hidden" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" /><?php diff --git a/themes/default/pages/html/folder/prop.tpl.php b/themes/default/pages/html/folder/prop.tpl.php @@ -90,8 +90,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -270,7 +270,7 @@ ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:4:"name";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:4:"name";s:4:"size";s:2:"50";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr6 = array('class'=>'name','default'=>'','type'=>'text','name'=>'name','size'=>'50','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr6_class='name' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='name' ?><?php $attr6_size='50' ?><?php $attr6_maxlength='256' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; if ($attr6_readonly && empty($$attr6_name)) $$attr6_name = '- '.lang('EMPTY').' -'; if(!isset($attr6_default)) $attr6_default=''; -?><?php if (!$attr6_readonly) { +?><?php if (!$attr6_readonly || $attr6_type=='hidden') { ?><input<?php if ($attr6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" name="<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" <?php if (in_array($attr6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr6_readonly) { ?><input type="hidden" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" /><?php @@ -374,7 +374,7 @@ if ($attr6_readonly) { ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:8:"filename";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:8:"filename";s:4:"size";s:2:"40";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr6 = array('class'=>'filename','default'=>'','type'=>'text','name'=>'filename','size'=>'40','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr6_class='filename' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='filename' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; if ($attr6_readonly && empty($$attr6_name)) $$attr6_name = '- '.lang('EMPTY').' -'; if(!isset($attr6_default)) $attr6_default=''; -?><?php if (!$attr6_readonly) { +?><?php if (!$attr6_readonly || $attr6_type=='hidden') { ?><input<?php if ($attr6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" name="<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" <?php if (in_array($attr6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr6_readonly) { ?><input type="hidden" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" /><?php diff --git a/themes/default/pages/html/folder/select.tpl.php b/themes/default/pages/html/folder/select.tpl.php @@ -90,19 +90,19 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo lang('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo lang('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } - echo '<span class="path">'.lang('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; + echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) $path = array(); foreach( $path as $pathElement) { extract($pathElement); - echo '<a href="'.$url.'" class="path">'.lang($name).'</a>'; + echo '<a href="'.$url.'" class="path">'.langHtml($name).'</a>'; echo '&nbsp;&raquo;&nbsp;'; } - echo '<span class="title">'.lang($windowTitle).'</span>'; + echo '<span class="title">'.langHtml($windowTitle).'</span>'; ?> </td> <?php @@ -111,7 +111,7 @@ <?php ?> <!--<td class="menu" style="align:right;"> <?php if (isset($windowIcons)) foreach( $windowIcons as $icon ) { - ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.lang($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a>&nbsp;<?php + ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.langHtml($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a>&nbsp;<?php } ?> </td>--> @@ -121,23 +121,23 @@ $windowMenu = array(); foreach( $windowMenu as $menu ) { - $tmp_text = lang($menu['text']); - $tmp_key = strtoupper(lang($menu['key' ])); + $tmp_text = langHtml($menu['text']); + $tmp_key = strtoupper(langHtml($menu['key' ])); $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); if ( $tmp_pos !== false ) $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); if ( isset($menu['url']) ) { - ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php echo $this->subActionName==$menu['subaction']?'_highlight':'' ?>"><?php echo $tmp_text ?></a>&nbsp;&nbsp;&nbsp;<?php + ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu<?php echo $this->subActionName==$menu['subaction']?'_highlight':'' ?>"><?php echo $tmp_text ?></a>&nbsp;&nbsp;&nbsp;<?php } else { - ?><span class="menu_disabled" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu_disabled"><?php echo $tmp_text ?></span>&nbsp;&nbsp;&nbsp;<?php + ?><span class="menu_disabled" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu_disabled"><?php echo $tmp_text ?></span>&nbsp;&nbsp;&nbsp;<?php } } if (@$conf['help']['enabled'] ) { - ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('MENU_HELP_DESC') ?>" class="menu" style="cursor:help;"><?php echo @$conf['help']['only_question_mark']?'?':lang('MENU_HELP') ?></a><?php + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>" class="menu" style="cursor:help;"><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php } ?></td> </tr> @@ -155,7 +155,7 @@ <?php } ?> <tr class="notice_<?php echo $notice['status'] ?>"> <td style="padding:10px;" width="30px"><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> - <td style="padding:10px;padding-right:10px;padding-bottom:10px;"><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?> + <td style="padding:10px;padding-right:10px;padding-bottom:10px;"><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo langHtml($notice['key'],$notice['vars']) ?><?php if ($notice['status']=='error') { ?></strong><?php } ?> <?php if (!empty($notice['log'])) { ?><pre><?php echo htmlentities(implode("\n",$notice['log'])) ?></pre><?php } ?> </td> </tr> @@ -197,9 +197,6 @@ if ( isset($attr6_suffix)&& isset($attr6_key)) $attr6_key = $attr6_key.$attr6_suffix; if(empty($attr6_title)) - if (!empty($attr6_key)) - $attr6_title = lang($attr6_key.'_HELP'); - else $attr6_title = ''; if (empty($attr6_type)) $tmp_tag = 'span'; @@ -223,33 +220,32 @@ } ?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if ( $attr6_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; if (!empty($attr6_array)) { $tmpArray = $$attr6_array; if (!empty($attr6_var)) $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr6_text]); + $tmp_text = $langF($tmpArray[$attr6_text]); } elseif (!empty($attr6_text)) - if ( isset($$attr6_text)) - $tmp_text = lang($$attr6_text); - else - $tmp_text = lang($attr6_text); + $tmp_text = $langF($attr6_text); elseif (!empty($attr6_textvar)) - $tmp_text = lang($$attr6_textvar); + $tmp_text = $langF($$attr6_textvar); elseif (!empty($attr6_key)) - $tmp_text = lang($attr6_key); + $tmp_text = $langF($attr6_key); elseif (!empty($attr6_var)) - $tmp_text = isset($$attr6_var)?$$attr6_var:'?'.$attr6_var.'?'; + $tmp_text = isset($$attr6_var)?$$attr6_var:'?unset:'.$attr6_var.'?'; elseif (!empty($attr6_raw)) $tmp_text = str_replace('_','&nbsp;',$attr6_raw); elseif (!empty($attr6_value)) $tmp_text = $attr6_value; else $tmp_text = '&nbsp;'; - if ( $attr6_escape && empty($attr6_raw) && $tmp_text!='&nbsp;' ) - $tmp_text = htmlentities($tmp_text); if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); if (isset($attr6_accesskey)) @@ -277,9 +273,6 @@ if ( isset($attr6_suffix)&& isset($attr6_key)) $attr6_key = $attr6_key.$attr6_suffix; if(empty($attr6_title)) - if (!empty($attr6_key)) - $attr6_title = lang($attr6_key.'_HELP'); - else $attr6_title = ''; if (empty($attr6_type)) $tmp_tag = 'span'; @@ -303,33 +296,32 @@ } ?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if ( $attr6_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; if (!empty($attr6_array)) { $tmpArray = $$attr6_array; if (!empty($attr6_var)) $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr6_text]); + $tmp_text = $langF($tmpArray[$attr6_text]); } elseif (!empty($attr6_text)) - if ( isset($$attr6_text)) - $tmp_text = lang($$attr6_text); - else - $tmp_text = lang($attr6_text); + $tmp_text = $langF($attr6_text); elseif (!empty($attr6_textvar)) - $tmp_text = lang($$attr6_textvar); + $tmp_text = $langF($$attr6_textvar); elseif (!empty($attr6_key)) - $tmp_text = lang($attr6_key); + $tmp_text = $langF($attr6_key); elseif (!empty($attr6_var)) - $tmp_text = isset($$attr6_var)?$$attr6_var:'?'.$attr6_var.'?'; + $tmp_text = isset($$attr6_var)?$$attr6_var:'?unset:'.$attr6_var.'?'; elseif (!empty($attr6_raw)) $tmp_text = str_replace('_','&nbsp;',$attr6_raw); elseif (!empty($attr6_value)) $tmp_text = $attr6_value; else $tmp_text = '&nbsp;'; - if ( $attr6_escape && empty($attr6_raw) && $tmp_text!='&nbsp;' ) - $tmp_text = htmlentities($tmp_text); if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); if (isset($attr6_accesskey)) @@ -346,9 +338,6 @@ if ( isset($attr6_suffix)&& isset($attr6_key)) $attr6_key = $attr6_key.$attr6_suffix; if(empty($attr6_title)) - if (!empty($attr6_key)) - $attr6_title = lang($attr6_key.'_HELP'); - else $attr6_title = ''; if (empty($attr6_type)) $tmp_tag = 'span'; @@ -372,33 +361,32 @@ } ?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if ( $attr6_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; if (!empty($attr6_array)) { $tmpArray = $$attr6_array; if (!empty($attr6_var)) $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr6_text]); + $tmp_text = $langF($tmpArray[$attr6_text]); } elseif (!empty($attr6_text)) - if ( isset($$attr6_text)) - $tmp_text = lang($$attr6_text); - else - $tmp_text = lang($attr6_text); + $tmp_text = $langF($attr6_text); elseif (!empty($attr6_textvar)) - $tmp_text = lang($$attr6_textvar); + $tmp_text = $langF($$attr6_textvar); elseif (!empty($attr6_key)) - $tmp_text = lang($attr6_key); + $tmp_text = $langF($attr6_key); elseif (!empty($attr6_var)) - $tmp_text = isset($$attr6_var)?$$attr6_var:'?'.$attr6_var.'?'; + $tmp_text = isset($$attr6_var)?$$attr6_var:'?unset:'.$attr6_var.'?'; elseif (!empty($attr6_raw)) $tmp_text = str_replace('_','&nbsp;',$attr6_raw); elseif (!empty($attr6_value)) $tmp_text = $attr6_value; else $tmp_text = '&nbsp;'; - if ( $attr6_escape && empty($attr6_raw) && $tmp_text!='&nbsp;' ) - $tmp_text = htmlentities($tmp_text); if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); if (isset($attr6_accesskey)) @@ -415,9 +403,6 @@ if ( isset($attr6_suffix)&& isset($attr6_key)) $attr6_key = $attr6_key.$attr6_suffix; if(empty($attr6_title)) - if (!empty($attr6_key)) - $attr6_title = lang($attr6_key.'_HELP'); - else $attr6_title = ''; if (empty($attr6_type)) $tmp_tag = 'span'; @@ -441,33 +426,32 @@ } ?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if ( $attr6_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; if (!empty($attr6_array)) { $tmpArray = $$attr6_array; if (!empty($attr6_var)) $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr6_text]); + $tmp_text = $langF($tmpArray[$attr6_text]); } elseif (!empty($attr6_text)) - if ( isset($$attr6_text)) - $tmp_text = lang($$attr6_text); - else - $tmp_text = lang($attr6_text); + $tmp_text = $langF($attr6_text); elseif (!empty($attr6_textvar)) - $tmp_text = lang($$attr6_textvar); + $tmp_text = $langF($$attr6_textvar); elseif (!empty($attr6_key)) - $tmp_text = lang($attr6_key); + $tmp_text = $langF($attr6_key); elseif (!empty($attr6_var)) - $tmp_text = isset($$attr6_var)?$$attr6_var:'?'.$attr6_var.'?'; + $tmp_text = isset($$attr6_var)?$$attr6_var:'?unset:'.$attr6_var.'?'; elseif (!empty($attr6_raw)) $tmp_text = str_replace('_','&nbsp;',$attr6_raw); elseif (!empty($attr6_value)) $tmp_text = $attr6_value; else $tmp_text = '&nbsp;'; - if ( $attr6_escape && empty($attr6_raw) && $tmp_text!='&nbsp;' ) - $tmp_text = htmlentities($tmp_text); if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); if (isset($attr6_accesskey)) @@ -657,9 +641,6 @@ if ( $attr8_readonly && $checked ) if ( isset($attr8_suffix)&& isset($attr8_key)) $attr8_key = $attr8_key.$attr8_suffix; if(empty($attr8_title)) - if (!empty($attr8_key)) - $attr8_title = lang($attr8_key.'_HELP'); - else $attr8_title = ''; if (empty($attr8_type)) $tmp_tag = 'span'; @@ -683,33 +664,32 @@ if ( $attr8_readonly && $checked ) } ?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if ( $attr8_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; if (!empty($attr8_array)) { $tmpArray = $$attr8_array; if (!empty($attr8_var)) $tmp_text = $tmpArray[$attr8_var]; else - $tmp_text = lang($tmpArray[$attr8_text]); + $tmp_text = $langF($tmpArray[$attr8_text]); } elseif (!empty($attr8_text)) - if ( isset($$attr8_text)) - $tmp_text = lang($$attr8_text); - else - $tmp_text = lang($attr8_text); + $tmp_text = $langF($attr8_text); elseif (!empty($attr8_textvar)) - $tmp_text = lang($$attr8_textvar); + $tmp_text = $langF($$attr8_textvar); elseif (!empty($attr8_key)) - $tmp_text = lang($attr8_key); + $tmp_text = $langF($attr8_key); elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?'.$attr8_var.'?'; + $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; elseif (!empty($attr8_raw)) $tmp_text = str_replace('_','&nbsp;',$attr8_raw); elseif (!empty($attr8_value)) $tmp_text = $attr8_value; else $tmp_text = '&nbsp;'; - if ( $attr8_escape && empty($attr8_raw) && $tmp_text!='&nbsp;' ) - $tmp_text = htmlentities($tmp_text); if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); if (isset($attr8_accesskey)) @@ -749,9 +729,6 @@ if (isset($attr8_elementtype)) { if ( isset($attr8_suffix)&& isset($attr8_key)) $attr8_key = $attr8_key.$attr8_suffix; if(empty($attr8_title)) - if (!empty($attr8_key)) - $attr8_title = lang($attr8_key.'_HELP'); - else $attr8_title = ''; if (empty($attr8_type)) $tmp_tag = 'span'; @@ -775,33 +752,32 @@ if (isset($attr8_elementtype)) { } ?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if ( $attr8_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; if (!empty($attr8_array)) { $tmpArray = $$attr8_array; if (!empty($attr8_var)) $tmp_text = $tmpArray[$attr8_var]; else - $tmp_text = lang($tmpArray[$attr8_text]); + $tmp_text = $langF($tmpArray[$attr8_text]); } elseif (!empty($attr8_text)) - if ( isset($$attr8_text)) - $tmp_text = lang($$attr8_text); - else - $tmp_text = lang($attr8_text); + $tmp_text = $langF($attr8_text); elseif (!empty($attr8_textvar)) - $tmp_text = lang($$attr8_textvar); + $tmp_text = $langF($$attr8_textvar); elseif (!empty($attr8_key)) - $tmp_text = lang($attr8_key); + $tmp_text = $langF($attr8_key); elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?'.$attr8_var.'?'; + $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; elseif (!empty($attr8_raw)) $tmp_text = str_replace('_','&nbsp;',$attr8_raw); elseif (!empty($attr8_value)) $tmp_text = $attr8_value; else $tmp_text = '&nbsp;'; - if ( $attr8_escape && empty($attr8_raw) && $tmp_text!='&nbsp;' ) - $tmp_text = htmlentities($tmp_text); if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); if (isset($attr8_accesskey)) @@ -818,9 +794,6 @@ if (isset($attr8_elementtype)) { if ( isset($attr8_suffix)&& isset($attr8_key)) $attr8_key = $attr8_key.$attr8_suffix; if(empty($attr8_title)) - if (!empty($attr8_key)) - $attr8_title = lang($attr8_key.'_HELP'); - else $attr8_title = ''; if (empty($attr8_type)) $tmp_tag = 'span'; @@ -844,33 +817,32 @@ if (isset($attr8_elementtype)) { } ?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if ( $attr8_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; if (!empty($attr8_array)) { $tmpArray = $$attr8_array; if (!empty($attr8_var)) $tmp_text = $tmpArray[$attr8_var]; else - $tmp_text = lang($tmpArray[$attr8_text]); + $tmp_text = $langF($tmpArray[$attr8_text]); } elseif (!empty($attr8_text)) - if ( isset($$attr8_text)) - $tmp_text = lang($$attr8_text); - else - $tmp_text = lang($attr8_text); + $tmp_text = $langF($attr8_text); elseif (!empty($attr8_textvar)) - $tmp_text = lang($$attr8_textvar); + $tmp_text = $langF($$attr8_textvar); elseif (!empty($attr8_key)) - $tmp_text = lang($attr8_key); + $tmp_text = $langF($attr8_key); elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?'.$attr8_var.'?'; + $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; elseif (!empty($attr8_raw)) $tmp_text = str_replace('_','&nbsp;',$attr8_raw); elseif (!empty($attr8_value)) $tmp_text = $attr8_value; else $tmp_text = '&nbsp;'; - if ( $attr8_escape && empty($attr8_raw) && $tmp_text!='&nbsp;' ) - $tmp_text = htmlentities($tmp_text); if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); if (isset($attr8_accesskey)) @@ -920,9 +892,6 @@ if (isset($attr6_elementtype)) { if ( isset($attr6_suffix)&& isset($attr6_key)) $attr6_key = $attr6_key.$attr6_suffix; if(empty($attr6_title)) - if (!empty($attr6_key)) - $attr6_title = lang($attr6_key.'_HELP'); - else $attr6_title = ''; if (empty($attr6_type)) $tmp_tag = 'span'; @@ -946,33 +915,32 @@ if (isset($attr6_elementtype)) { } ?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if ( $attr6_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; if (!empty($attr6_array)) { $tmpArray = $$attr6_array; if (!empty($attr6_var)) $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr6_text]); + $tmp_text = $langF($tmpArray[$attr6_text]); } elseif (!empty($attr6_text)) - if ( isset($$attr6_text)) - $tmp_text = lang($$attr6_text); - else - $tmp_text = lang($attr6_text); + $tmp_text = $langF($attr6_text); elseif (!empty($attr6_textvar)) - $tmp_text = lang($$attr6_textvar); + $tmp_text = $langF($$attr6_textvar); elseif (!empty($attr6_key)) - $tmp_text = lang($attr6_key); + $tmp_text = $langF($attr6_key); elseif (!empty($attr6_var)) - $tmp_text = isset($$attr6_var)?$$attr6_var:'?'.$attr6_var.'?'; + $tmp_text = isset($$attr6_var)?$$attr6_var:'?unset:'.$attr6_var.'?'; elseif (!empty($attr6_raw)) $tmp_text = str_replace('_','&nbsp;',$attr6_raw); elseif (!empty($attr6_value)) $tmp_text = $attr6_value; else $tmp_text = '&nbsp;'; - if ( $attr6_escape && empty($attr6_raw) && $tmp_text!='&nbsp;' ) - $tmp_text = htmlentities($tmp_text); if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); if (isset($attr6_accesskey)) @@ -1003,15 +971,12 @@ if (isset($attr6_elementtype)) { $tmp_url = $attr6_url; else $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($attr6_id)?$attr6_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo $attr6_title ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:15:"FOLDER_MARK_ALL";s:6:"escape";s:4:"true";}' ?><?php $attr7 = array('class'=>'text','key'=>'FOLDER_MARK_ALL','escape'=>true) ?><?php $attr7_class='text' ?><?php $attr7_key='FOLDER_MARK_ALL' ?><?php $attr7_escape=true ?><?php +?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:15:"FOLDER_MARK_ALL";s:6:"escape";s:4:"true";}' ?><?php $attr7 = array('class'=>'text','key'=>'FOLDER_MARK_ALL','escape'=>true) ?><?php $attr7_class='text' ?><?php $attr7_key='FOLDER_MARK_ALL' ?><?php $attr7_escape=true ?><?php if ( isset($attr7_prefix)&& isset($attr7_key)) $attr7_key = $attr7_prefix.$attr7_key; if ( isset($attr7_suffix)&& isset($attr7_key)) $attr7_key = $attr7_key.$attr7_suffix; if(empty($attr7_title)) - if (!empty($attr7_key)) - $attr7_title = lang($attr7_key.'_HELP'); - else $attr7_title = ''; if (empty($attr7_type)) $tmp_tag = 'span'; @@ -1035,33 +1000,32 @@ if (isset($attr6_elementtype)) { } ?><<?php echo $tmp_tag ?> class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if ( $attr7_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; if (!empty($attr7_array)) { $tmpArray = $$attr7_array; if (!empty($attr7_var)) $tmp_text = $tmpArray[$attr7_var]; else - $tmp_text = lang($tmpArray[$attr7_text]); + $tmp_text = $langF($tmpArray[$attr7_text]); } elseif (!empty($attr7_text)) - if ( isset($$attr7_text)) - $tmp_text = lang($$attr7_text); - else - $tmp_text = lang($attr7_text); + $tmp_text = $langF($attr7_text); elseif (!empty($attr7_textvar)) - $tmp_text = lang($$attr7_textvar); + $tmp_text = $langF($$attr7_textvar); elseif (!empty($attr7_key)) - $tmp_text = lang($attr7_key); + $tmp_text = $langF($attr7_key); elseif (!empty($attr7_var)) - $tmp_text = isset($$attr7_var)?$$attr7_var:'?'.$attr7_var.'?'; + $tmp_text = isset($$attr7_var)?$$attr7_var:'?unset:'.$attr7_var.'?'; elseif (!empty($attr7_raw)) $tmp_text = str_replace('_','&nbsp;',$attr7_raw); elseif (!empty($attr7_value)) $tmp_text = $attr7_value; else $tmp_text = '&nbsp;'; - if ( $attr7_escape && empty($attr7_raw) && $tmp_text!='&nbsp;' ) - $tmp_text = htmlentities($tmp_text); if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); if (isset($attr7_accesskey)) @@ -1078,9 +1042,6 @@ if (isset($attr6_elementtype)) { if ( isset($attr6_suffix)&& isset($attr6_key)) $attr6_key = $attr6_key.$attr6_suffix; if(empty($attr6_title)) - if (!empty($attr6_key)) - $attr6_title = lang($attr6_key.'_HELP'); - else $attr6_title = ''; if (empty($attr6_type)) $tmp_tag = 'span'; @@ -1104,33 +1065,32 @@ if (isset($attr6_elementtype)) { } ?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if ( $attr6_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; if (!empty($attr6_array)) { $tmpArray = $$attr6_array; if (!empty($attr6_var)) $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr6_text]); + $tmp_text = $langF($tmpArray[$attr6_text]); } elseif (!empty($attr6_text)) - if ( isset($$attr6_text)) - $tmp_text = lang($$attr6_text); - else - $tmp_text = lang($attr6_text); + $tmp_text = $langF($attr6_text); elseif (!empty($attr6_textvar)) - $tmp_text = lang($$attr6_textvar); + $tmp_text = $langF($$attr6_textvar); elseif (!empty($attr6_key)) - $tmp_text = lang($attr6_key); + $tmp_text = $langF($attr6_key); elseif (!empty($attr6_var)) - $tmp_text = isset($$attr6_var)?$$attr6_var:'?'.$attr6_var.'?'; + $tmp_text = isset($$attr6_var)?$$attr6_var:'?unset:'.$attr6_var.'?'; elseif (!empty($attr6_raw)) $tmp_text = str_replace('_','&nbsp;',$attr6_raw); elseif (!empty($attr6_value)) $tmp_text = $attr6_value; else $tmp_text = '&nbsp;'; - if ( $attr6_escape && empty($attr6_raw) && $tmp_text!='&nbsp;' ) - $tmp_text = htmlentities($tmp_text); if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); if (isset($attr6_accesskey)) @@ -1161,15 +1121,12 @@ if (isset($attr6_elementtype)) { $tmp_url = $attr6_url; else $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($attr6_id)?$attr6_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo $attr6_title ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:17:"FOLDER_UNMARK_ALL";s:6:"escape";s:4:"true";}' ?><?php $attr7 = array('class'=>'text','key'=>'FOLDER_UNMARK_ALL','escape'=>true) ?><?php $attr7_class='text' ?><?php $attr7_key='FOLDER_UNMARK_ALL' ?><?php $attr7_escape=true ?><?php +?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:17:"FOLDER_UNMARK_ALL";s:6:"escape";s:4:"true";}' ?><?php $attr7 = array('class'=>'text','key'=>'FOLDER_UNMARK_ALL','escape'=>true) ?><?php $attr7_class='text' ?><?php $attr7_key='FOLDER_UNMARK_ALL' ?><?php $attr7_escape=true ?><?php if ( isset($attr7_prefix)&& isset($attr7_key)) $attr7_key = $attr7_prefix.$attr7_key; if ( isset($attr7_suffix)&& isset($attr7_key)) $attr7_key = $attr7_key.$attr7_suffix; if(empty($attr7_title)) - if (!empty($attr7_key)) - $attr7_title = lang($attr7_key.'_HELP'); - else $attr7_title = ''; if (empty($attr7_type)) $tmp_tag = 'span'; @@ -1193,33 +1150,32 @@ if (isset($attr6_elementtype)) { } ?><<?php echo $tmp_tag ?> class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if ( $attr7_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; if (!empty($attr7_array)) { $tmpArray = $$attr7_array; if (!empty($attr7_var)) $tmp_text = $tmpArray[$attr7_var]; else - $tmp_text = lang($tmpArray[$attr7_text]); + $tmp_text = $langF($tmpArray[$attr7_text]); } elseif (!empty($attr7_text)) - if ( isset($$attr7_text)) - $tmp_text = lang($$attr7_text); - else - $tmp_text = lang($attr7_text); + $tmp_text = $langF($attr7_text); elseif (!empty($attr7_textvar)) - $tmp_text = lang($$attr7_textvar); + $tmp_text = $langF($$attr7_textvar); elseif (!empty($attr7_key)) - $tmp_text = lang($attr7_key); + $tmp_text = $langF($attr7_key); elseif (!empty($attr7_var)) - $tmp_text = isset($$attr7_var)?$$attr7_var:'?'.$attr7_var.'?'; + $tmp_text = isset($$attr7_var)?$$attr7_var:'?unset:'.$attr7_var.'?'; elseif (!empty($attr7_raw)) $tmp_text = str_replace('_','&nbsp;',$attr7_raw); elseif (!empty($attr7_value)) $tmp_text = $attr7_value; else $tmp_text = '&nbsp;'; - if ( $attr7_escape && empty($attr7_raw) && $tmp_text!='&nbsp;' ) - $tmp_text = htmlentities($tmp_text); if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); if (isset($attr7_accesskey)) @@ -1236,9 +1192,6 @@ if (isset($attr6_elementtype)) { if ( isset($attr6_suffix)&& isset($attr6_key)) $attr6_key = $attr6_key.$attr6_suffix; if(empty($attr6_title)) - if (!empty($attr6_key)) - $attr6_title = lang($attr6_key.'_HELP'); - else $attr6_title = ''; if (empty($attr6_type)) $tmp_tag = 'span'; @@ -1262,33 +1215,32 @@ if (isset($attr6_elementtype)) { } ?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if ( $attr6_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; if (!empty($attr6_array)) { $tmpArray = $$attr6_array; if (!empty($attr6_var)) $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr6_text]); + $tmp_text = $langF($tmpArray[$attr6_text]); } elseif (!empty($attr6_text)) - if ( isset($$attr6_text)) - $tmp_text = lang($$attr6_text); - else - $tmp_text = lang($attr6_text); + $tmp_text = $langF($attr6_text); elseif (!empty($attr6_textvar)) - $tmp_text = lang($$attr6_textvar); + $tmp_text = $langF($$attr6_textvar); elseif (!empty($attr6_key)) - $tmp_text = lang($attr6_key); + $tmp_text = $langF($attr6_key); elseif (!empty($attr6_var)) - $tmp_text = isset($$attr6_var)?$$attr6_var:'?'.$attr6_var.'?'; + $tmp_text = isset($$attr6_var)?$$attr6_var:'?unset:'.$attr6_var.'?'; elseif (!empty($attr6_raw)) $tmp_text = str_replace('_','&nbsp;',$attr6_raw); elseif (!empty($attr6_value)) $tmp_text = $attr6_value; else $tmp_text = '&nbsp;'; - if ( $attr6_escape && empty($attr6_raw) && $tmp_text!='&nbsp;' ) - $tmp_text = htmlentities($tmp_text); if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); if (isset($attr6_accesskey)) @@ -1319,15 +1271,12 @@ if (isset($attr6_elementtype)) { $tmp_url = $attr6_url; else $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($attr6_id)?$attr6_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo $attr6_title ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:16:"FOLDER_FLIP_MARK";s:6:"escape";s:4:"true";}' ?><?php $attr7 = array('class'=>'text','key'=>'FOLDER_FLIP_MARK','escape'=>true) ?><?php $attr7_class='text' ?><?php $attr7_key='FOLDER_FLIP_MARK' ?><?php $attr7_escape=true ?><?php +?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:16:"FOLDER_FLIP_MARK";s:6:"escape";s:4:"true";}' ?><?php $attr7 = array('class'=>'text','key'=>'FOLDER_FLIP_MARK','escape'=>true) ?><?php $attr7_class='text' ?><?php $attr7_key='FOLDER_FLIP_MARK' ?><?php $attr7_escape=true ?><?php if ( isset($attr7_prefix)&& isset($attr7_key)) $attr7_key = $attr7_prefix.$attr7_key; if ( isset($attr7_suffix)&& isset($attr7_key)) $attr7_key = $attr7_key.$attr7_suffix; if(empty($attr7_title)) - if (!empty($attr7_key)) - $attr7_title = lang($attr7_key.'_HELP'); - else $attr7_title = ''; if (empty($attr7_type)) $tmp_tag = 'span'; @@ -1351,33 +1300,32 @@ if (isset($attr6_elementtype)) { } ?><<?php echo $tmp_tag ?> class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if ( $attr7_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; if (!empty($attr7_array)) { $tmpArray = $$attr7_array; if (!empty($attr7_var)) $tmp_text = $tmpArray[$attr7_var]; else - $tmp_text = lang($tmpArray[$attr7_text]); + $tmp_text = $langF($tmpArray[$attr7_text]); } elseif (!empty($attr7_text)) - if ( isset($$attr7_text)) - $tmp_text = lang($$attr7_text); - else - $tmp_text = lang($attr7_text); + $tmp_text = $langF($attr7_text); elseif (!empty($attr7_textvar)) - $tmp_text = lang($$attr7_textvar); + $tmp_text = $langF($$attr7_textvar); elseif (!empty($attr7_key)) - $tmp_text = lang($attr7_key); + $tmp_text = $langF($attr7_key); elseif (!empty($attr7_var)) - $tmp_text = isset($$attr7_var)?$$attr7_var:'?'.$attr7_var.'?'; + $tmp_text = isset($$attr7_var)?$$attr7_var:'?unset:'.$attr7_var.'?'; elseif (!empty($attr7_raw)) $tmp_text = str_replace('_','&nbsp;',$attr7_raw); elseif (!empty($attr7_value)) $tmp_text = $attr7_value; else $tmp_text = '&nbsp;'; - if ( $attr7_escape && empty($attr7_raw) && $tmp_text!='&nbsp;' ) - $tmp_text = htmlentities($tmp_text); if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); if (isset($attr7_accesskey)) @@ -1442,9 +1390,6 @@ if (isset($attr6_elementtype)) { if ( isset($attr8_suffix)&& isset($attr8_key)) $attr8_key = $attr8_key.$attr8_suffix; if(empty($attr8_title)) - if (!empty($attr8_key)) - $attr8_title = lang($attr8_key.'_HELP'); - else $attr8_title = ''; if (empty($attr8_type)) $tmp_tag = 'span'; @@ -1468,33 +1413,32 @@ if (isset($attr6_elementtype)) { } ?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if ( $attr8_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; if (!empty($attr8_array)) { $tmpArray = $$attr8_array; if (!empty($attr8_var)) $tmp_text = $tmpArray[$attr8_var]; else - $tmp_text = lang($tmpArray[$attr8_text]); + $tmp_text = $langF($tmpArray[$attr8_text]); } elseif (!empty($attr8_text)) - if ( isset($$attr8_text)) - $tmp_text = lang($$attr8_text); - else - $tmp_text = lang($attr8_text); + $tmp_text = $langF($attr8_text); elseif (!empty($attr8_textvar)) - $tmp_text = lang($$attr8_textvar); + $tmp_text = $langF($$attr8_textvar); elseif (!empty($attr8_key)) - $tmp_text = lang($attr8_key); + $tmp_text = $langF($attr8_key); elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?'.$attr8_var.'?'; + $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; elseif (!empty($attr8_raw)) $tmp_text = str_replace('_','&nbsp;',$attr8_raw); elseif (!empty($attr8_value)) $tmp_text = $attr8_value; else $tmp_text = '&nbsp;'; - if ( $attr8_escape && empty($attr8_raw) && $tmp_text!='&nbsp;' ) - $tmp_text = htmlentities($tmp_text); if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); if (isset($attr8_accesskey)) @@ -1511,9 +1455,6 @@ if (isset($attr6_elementtype)) { if ( isset($attr8_suffix)&& isset($attr8_key)) $attr8_key = $attr8_key.$attr8_suffix; if(empty($attr8_title)) - if (!empty($attr8_key)) - $attr8_title = lang($attr8_key.'_HELP'); - else $attr8_title = ''; if (empty($attr8_type)) $tmp_tag = 'span'; @@ -1537,33 +1478,32 @@ if (isset($attr6_elementtype)) { } ?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if ( $attr8_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; if (!empty($attr8_array)) { $tmpArray = $$attr8_array; if (!empty($attr8_var)) $tmp_text = $tmpArray[$attr8_var]; else - $tmp_text = lang($tmpArray[$attr8_text]); + $tmp_text = $langF($tmpArray[$attr8_text]); } elseif (!empty($attr8_text)) - if ( isset($$attr8_text)) - $tmp_text = lang($$attr8_text); - else - $tmp_text = lang($attr8_text); + $tmp_text = $langF($attr8_text); elseif (!empty($attr8_textvar)) - $tmp_text = lang($$attr8_textvar); + $tmp_text = $langF($$attr8_textvar); elseif (!empty($attr8_key)) - $tmp_text = lang($attr8_key); + $tmp_text = $langF($attr8_key); elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?'.$attr8_var.'?'; + $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; elseif (!empty($attr8_raw)) $tmp_text = str_replace('_','&nbsp;',$attr8_raw); elseif (!empty($attr8_value)) $tmp_text = $attr8_value; else $tmp_text = '&nbsp;'; - if ( $attr8_escape && empty($attr8_raw) && $tmp_text!='&nbsp;' ) - $tmp_text = htmlentities($tmp_text); if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); if (isset($attr8_accesskey)) @@ -1599,7 +1539,7 @@ if (isset($attr6_elementtype)) { if ($attr6_type=='ok') { if ($this->isEditable() && !$this->isEditMode()) - $attr6_text = lang('MODE_EDIT'); + $attr6_text = 'MODE_EDIT'; } if ($attr6_type=='ok') $attr6_type = 'submit'; @@ -1607,7 +1547,7 @@ if (isset($attr6_elementtype)) { $attr6_type = 'image'; else $attr6_src = ''; -?><input type="<?php echo $attr6_type ?>"<?php if(isset($attr6_src)) { ?> src="<?php echo $image_dir.'icon_'.$attr6_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $attr6_value ?>" class="<?php echo $attr6_class ?>" title="<?php echo lang($attr6_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr6_src) ?><?php +?><input type="<?php echo $attr6_type ?>"<?php if(isset($attr6_src)) { ?> src="<?php echo $image_dir.'icon_'.$attr6_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $attr6_value ?>" class="<?php echo $attr6_class ?>" title="<?php echo lang($attr6_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($attr6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr6_src) ?><?php ?><?php unset($attr6) ?><?php unset($attr6_type) ?><?php unset($attr6_class) ?><?php unset($attr6_value) ?><?php unset($attr6_text) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:1:{s:5:"empty";s:6:"object";}' ?><?php $attr4 = array('empty'=>'object') ?><?php $attr4_empty='object' ?><?php if ( isset($attr4_true) ) { @@ -1696,9 +1636,6 @@ if (isset($attr6_elementtype)) { if ( isset($attr7_suffix)&& isset($attr7_key)) $attr7_key = $attr7_key.$attr7_suffix; if(empty($attr7_title)) - if (!empty($attr7_key)) - $attr7_title = lang($attr7_key.'_HELP'); - else $attr7_title = ''; if (empty($attr7_type)) $tmp_tag = 'span'; @@ -1722,33 +1659,32 @@ if (isset($attr6_elementtype)) { } ?><<?php echo $tmp_tag ?> class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if ( $attr7_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; if (!empty($attr7_array)) { $tmpArray = $$attr7_array; if (!empty($attr7_var)) $tmp_text = $tmpArray[$attr7_var]; else - $tmp_text = lang($tmpArray[$attr7_text]); + $tmp_text = $langF($tmpArray[$attr7_text]); } elseif (!empty($attr7_text)) - if ( isset($$attr7_text)) - $tmp_text = lang($$attr7_text); - else - $tmp_text = lang($attr7_text); + $tmp_text = $langF($attr7_text); elseif (!empty($attr7_textvar)) - $tmp_text = lang($$attr7_textvar); + $tmp_text = $langF($$attr7_textvar); elseif (!empty($attr7_key)) - $tmp_text = lang($attr7_key); + $tmp_text = $langF($attr7_key); elseif (!empty($attr7_var)) - $tmp_text = isset($$attr7_var)?$$attr7_var:'?'.$attr7_var.'?'; + $tmp_text = isset($$attr7_var)?$$attr7_var:'?unset:'.$attr7_var.'?'; elseif (!empty($attr7_raw)) $tmp_text = str_replace('_','&nbsp;',$attr7_raw); elseif (!empty($attr7_value)) $tmp_text = $attr7_value; else $tmp_text = '&nbsp;'; - if ( $attr7_escape && empty($attr7_raw) && $tmp_text!='&nbsp;' ) - $tmp_text = htmlentities($tmp_text); if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); if (isset($attr7_accesskey)) diff --git a/themes/default/pages/html/folder/show.tpl.php b/themes/default/pages/html/folder/show.tpl.php @@ -68,8 +68,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -250,13 +250,15 @@ $tmp_url = $attr6_url; else $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($attr6_id)?$attr6_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:2:{s:5:"align";s:4:"left";s:4:"type";s:6:"folder";}' ?><?php $attr7 = array('align'=>'left','type'=>'folder') ?><?php $attr7_align='left' ?><?php $attr7_type='folder' ?><?php +?><a<?php if (isset($attr6_name)) echo ' name="'.$attr6_name.'"'; else echo ' href="'.$tmp_url.($attr6_anchor?'#'.$attr6_anchor:'').'"' ?> class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:2:{s:5:"align";s:4:"left";s:4:"type";s:6:"folder";}' ?><?php $attr7 = array('align'=>'left','type'=>'folder') ?><?php $attr7_align='left' ?><?php $attr7_type='folder' ?><?php if (isset($attr7_elementtype)) { ?><img src="<?php echo $image_dir.'icon_el_'.$attr7_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_type)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr7_tree.IMG_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_url)) { ?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_fileext)) { @@ -679,13 +681,15 @@ if (isset($attr7_elementtype)) { $tmp_url = $attr6_url; else $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($attr6_id)?$attr6_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:2:{s:5:"align";s:4:"left";s:4:"type";s:8:"var:icon";}' ?><?php $attr7 = array('align'=>'left','type'=>$icon) ?><?php $attr7_align='left' ?><?php $attr7_type=$icon ?><?php +?><a<?php if (isset($attr6_name)) echo ' name="'.$attr6_name.'"'; else echo ' href="'.$tmp_url.($attr6_anchor?'#'.$attr6_anchor:'').'"' ?> class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:2:{s:5:"align";s:4:"left";s:4:"type";s:8:"var:icon";}' ?><?php $attr7 = array('align'=>'left','type'=>$icon) ?><?php $attr7_align='left' ?><?php $attr7_type=$icon ?><?php if (isset($attr7_elementtype)) { ?><img src="<?php echo $image_dir.'icon_el_'.$attr7_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_type)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr7_tree.IMG_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_url)) { ?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_fileext)) { diff --git a/themes/default/pages/html/folder/showprop.tpl.php b/themes/default/pages/html/folder/showprop.tpl.php @@ -68,8 +68,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -655,7 +655,7 @@ $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr4_rowspan) ) $attr4['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_colspan) ?><?php $attr5_debug_info = 'a:1:{s:5:"title";s:23:"message:additional_info";}' ?><?php $attr5 = array('title'=>lang('additional_info')) ?><?php $attr5_title=lang('additional_info') ?><fieldset><?php if(isset($attr5_title)) { ?><legend><?php echo $attr5_title ?></legend><?php } ?><?php unset($attr5) ?><?php unset($attr5_title) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></fieldset><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2_debug_info = 'a:0:{}' ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php +?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_colspan) ?><?php $attr5_debug_info = 'a:1:{s:5:"title";s:23:"message:additional_info";}' ?><?php $attr5 = array('title'=>lang('additional_info')) ?><?php $attr5_title=lang('additional_info') ?><fieldset><?php if(isset($attr5_title)) { ?><legend><?php echo encodeHtml($attr5_title) ?></legend><?php } ?><?php unset($attr5) ?><?php unset($attr5_title) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></fieldset><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2_debug_info = 'a:0:{}' ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; @@ -838,7 +838,7 @@ $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr4_rowspan) ) $attr4['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_colspan) ?><?php $attr5_debug_info = 'a:1:{s:5:"title";s:21:"message:PROP_USERINFO";}' ?><?php $attr5 = array('title'=>lang('PROP_USERINFO')) ?><?php $attr5_title=lang('PROP_USERINFO') ?><fieldset><?php if(isset($attr5_title)) { ?><legend><?php echo $attr5_title ?></legend><?php } ?><?php unset($attr5) ?><?php unset($attr5_title) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></fieldset><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2_debug_info = 'a:0:{}' ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php +?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_colspan) ?><?php $attr5_debug_info = 'a:1:{s:5:"title";s:21:"message:PROP_USERINFO";}' ?><?php $attr5 = array('title'=>lang('PROP_USERINFO')) ?><?php $attr5_title=lang('PROP_USERINFO') ?><fieldset><?php if(isset($attr5_title)) { ?><legend><?php echo encodeHtml($attr5_title) ?></legend><?php } ?><?php unset($attr5) ?><?php unset($attr5_title) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></fieldset><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2_debug_info = 'a:0:{}' ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; @@ -942,6 +942,8 @@ if (isset($attr5_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr5_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr5_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php +} elseif (isset($attr5_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr5_tree.IMG_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_url)) { ?><img src="<?php echo $attr5_url ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_fileext)) { @@ -1021,6 +1023,8 @@ if (isset($attr5_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr5_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr5_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php +} elseif (isset($attr5_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr5_tree.IMG_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_url)) { ?><img src="<?php echo $attr5_url ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_fileext)) { @@ -1035,7 +1039,7 @@ if (isset($attr5_elementtype)) { $user->name = lang('GLOBAL_UNKNOWN'); if ( empty($user->fullname) ) $user->fullname = lang('GLOBAL_NO_DESCRIPTION_AVAILABLE'); - if ( !empty($user->mail) ) + if ( !empty($user->mail) && $conf['security']['user']['show_mail'] ) echo '<a href="mailto:'.$user->mail.'" title="'.$user->fullname.'">'.$user->name.'</a>'; else echo '<span title="'.$user->fullname.'">'.$user->name.'</span>'; @@ -1143,6 +1147,8 @@ if (isset($attr5_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr5_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr5_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php +} elseif (isset($attr5_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr5_tree.IMG_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_url)) { ?><img src="<?php echo $attr5_url ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_fileext)) { @@ -1222,6 +1228,8 @@ if (isset($attr5_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr5_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr5_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php +} elseif (isset($attr5_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr5_tree.IMG_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_url)) { ?><img src="<?php echo $attr5_url ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_fileext)) { @@ -1236,7 +1244,7 @@ if (isset($attr5_elementtype)) { $user->name = lang('GLOBAL_UNKNOWN'); if ( empty($user->fullname) ) $user->fullname = lang('GLOBAL_NO_DESCRIPTION_AVAILABLE'); - if ( !empty($user->mail) ) + if ( !empty($user->mail) && $conf['security']['user']['show_mail'] ) echo '<a href="mailto:'.$user->mail.'" title="'.$user->fullname.'">'.$user->name.'</a>'; else echo '<span title="'.$user->fullname.'">'.$user->name.'</span>'; diff --git a/themes/default/pages/html/group/edit.tpl.php b/themes/default/pages/html/group/edit.tpl.php @@ -270,7 +270,7 @@ ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:4:"name";s:4:"size";s:2:"40";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr6 = array('class'=>'','default'=>'','type'=>'text','name'=>'name','size'=>'40','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr6_class='' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='name' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; if ($attr6_readonly && empty($$attr6_name)) $$attr6_name = '- '.lang('EMPTY').' -'; if(!isset($attr6_default)) $attr6_default=''; -?><?php if (!$attr6_readonly) { +?><?php if (!$attr6_readonly || $attr6_type=='hidden') { ?><input<?php if ($attr6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" name="<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" <?php if (in_array($attr6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr6_readonly) { ?><input type="hidden" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" /><?php diff --git a/themes/default/pages/html/index/projectmenu.tpl.php b/themes/default/pages/html/index/projectmenu.tpl.php @@ -68,8 +68,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -250,7 +250,7 @@ $tmp_url = $attr6_url; else $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($attr6_id)?$attr6_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:2:{s:3:"var";s:7:"project";s:5:"value";s:7:"project";}' ?><?php $attr7 = array('var'=>'project','value'=>'project') ?><?php $attr7_var='project' ?><?php $attr7_value='project' ?><?php +?><a<?php if (isset($attr6_name)) echo ' name="'.$attr6_name.'"'; else echo ' href="'.$tmp_url.($attr6_anchor?'#'.$attr6_anchor:'').'"' ?> class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:2:{s:3:"var";s:7:"project";s:5:"value";s:7:"project";}' ?><?php $attr7 = array('var'=>'project','value'=>'project') ?><?php $attr7_var='project' ?><?php $attr7_value='project' ?><?php if (!isset($attr7_value)) unset($$attr7_var); elseif (isset($attr7_key)) @@ -264,6 +264,8 @@ if (isset($attr7_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr7_tree.IMG_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_url)) { ?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_fileext)) { diff --git a/themes/default/pages/html/index/showlogin.tpl.php b/themes/default/pages/html/index/showlogin.tpl.php @@ -90,8 +90,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -394,13 +394,15 @@ $tmp_url = $attr9_url; else $tmp_url = Html::url($attr9_action,$attr9_subaction,!empty($attr9_id)?$attr9_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr9_class ?>" target="<?php echo $attr9_target ?>"<?php if (isset($attr9_accesskey)) echo ' accesskey="'.$attr9_accesskey.'"' ?> title="<?php echo encodeHtml($attr9_title) ?>"><?php unset($attr9) ?><?php unset($attr9_title) ?><?php unset($attr9_target) ?><?php unset($attr9_url) ?><?php unset($attr9_class) ?><?php $attr10_debug_info = 'a:2:{s:3:"url";s:22:"config:login/logo/file";s:5:"align";s:4:"left";}' ?><?php $attr10 = array('url'=>@$conf['login']['logo']['file'],'align'=>'left') ?><?php $attr10_url=@$conf['login']['logo']['file'] ?><?php $attr10_align='left' ?><?php +?><a<?php if (isset($attr9_name)) echo ' name="'.$attr9_name.'"'; else echo ' href="'.$tmp_url.($attr9_anchor?'#'.$attr9_anchor:'').'"' ?> class="<?php echo $attr9_class ?>" target="<?php echo $attr9_target ?>"<?php if (isset($attr9_accesskey)) echo ' accesskey="'.$attr9_accesskey.'"' ?> title="<?php echo encodeHtml($attr9_title) ?>"><?php unset($attr9) ?><?php unset($attr9_title) ?><?php unset($attr9_target) ?><?php unset($attr9_url) ?><?php unset($attr9_class) ?><?php $attr10_debug_info = 'a:2:{s:3:"url";s:22:"config:login/logo/file";s:5:"align";s:4:"left";}' ?><?php $attr10 = array('url'=>@$conf['login']['logo']['file'],'align'=>'left') ?><?php $attr10_url=@$conf['login']['logo']['file'] ?><?php $attr10_align='left' ?><?php if (isset($attr10_elementtype)) { ?><img src="<?php echo $image_dir.'icon_el_'.$attr10_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr10_align ?>"><?php } elseif (isset($attr10_type)) { ?><img src="<?php echo $image_dir.'icon_'.$attr10_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr10_align ?>"><?php } elseif (isset($attr10_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr10_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr10_align ?>"><?php +} elseif (isset($attr10_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr10_tree.IMG_EXT ?>" border="0" align="<?php echo $attr10_align ?>"><?php } elseif (isset($attr10_url)) { ?><img src="<?php echo $attr10_url ?>" border="0" align="<?php echo $attr10_align ?>"><?php } elseif (isset($attr10_fileext)) { @@ -474,6 +476,8 @@ if (isset($attr9_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr9_tree.IMG_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_url)) { ?><img src="<?php echo $attr9_url ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_fileext)) { @@ -1310,7 +1314,7 @@ if (isset($attr9_elementtype)) { <?php unset($attr7) ?><?php unset($attr7_not) ?><?php unset($attr7_present) ?><?php $attr8_debug_info = 'a:9:{s:5:"class";s:4:"name";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:10:"login_name";s:5:"value";s:0:"";s:4:"size";s:2:"20";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr8 = array('class'=>'name','default'=>'','type'=>'text','name'=>'login_name','value'=>'','size'=>'20','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr8_class='name' ?><?php $attr8_default='' ?><?php $attr8_type='text' ?><?php $attr8_name='login_name' ?><?php $attr8_value='' ?><?php $attr8_size='20' ?><?php $attr8_maxlength='256' ?><?php $attr8_onchange='' ?><?php $attr8_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr8_readonly=true; if ($attr8_readonly && empty($$attr8_name)) $$attr8_name = '- '.lang('EMPTY').' -'; if(!isset($attr8_default)) $attr8_default=''; -?><?php if (!$attr8_readonly) { +?><?php if (!$attr8_readonly || $attr8_type=='hidden') { ?><input<?php if ($attr8_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr8_name ?><?php if ($attr8_readonly) echo '_disabled' ?>" name="<?php echo $attr8_name ?><?php if ($attr8_readonly) echo '_disabled' ?>" type="<?php echo $attr8_type ?>" size="<?php echo $attr8_size ?>" maxlength="<?php echo $attr8_maxlength ?>" class="<?php echo $attr8_class ?>" value="<?php echo isset($$attr8_name)?$$attr8_name:$attr8_default ?>" <?php if (in_array($attr8_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr8_readonly) { ?><input type="hidden" id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name ?>" value="<?php echo isset($$attr8_name)?$$attr8_name:$attr8_default ?>" /><?php @@ -1318,7 +1322,7 @@ if ($attr8_readonly) { <?php unset($attr7) ?><?php $attr8_debug_info = 'a:9:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:6:"hidden";s:4:"name";s:10:"login_name";s:5:"value";s:18:"var:force_username";s:4:"size";s:2:"40";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr8 = array('class'=>'','default'=>'','type'=>'hidden','name'=>'login_name','value'=>$force_username,'size'=>'40','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr8_class='' ?><?php $attr8_default='' ?><?php $attr8_type='hidden' ?><?php $attr8_name='login_name' ?><?php $attr8_value=$force_username ?><?php $attr8_size='40' ?><?php $attr8_maxlength='256' ?><?php $attr8_onchange='' ?><?php $attr8_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr8_readonly=true; if ($attr8_readonly && empty($$attr8_name)) $$attr8_name = '- '.lang('EMPTY').' -'; if(!isset($attr8_default)) $attr8_default=''; -?><?php if (!$attr8_readonly) { +?><?php if (!$attr8_readonly || $attr8_type=='hidden') { ?><input<?php if ($attr8_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr8_name ?><?php if ($attr8_readonly) echo '_disabled' ?>" name="<?php echo $attr8_name ?><?php if ($attr8_readonly) echo '_disabled' ?>" type="<?php echo $attr8_type ?>" size="<?php echo $attr8_size ?>" maxlength="<?php echo $attr8_maxlength ?>" class="<?php echo $attr8_class ?>" value="<?php echo isset($$attr8_name)?$$attr8_name:$attr8_default ?>" <?php if (in_array($attr8_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr8_readonly) { ?><input type="hidden" id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name ?>" value="<?php echo isset($$attr8_name)?$$attr8_name:$attr8_default ?>" /><?php @@ -1931,6 +1935,8 @@ if (isset($attr9_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr9_tree.IMG_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_url)) { ?><img src="<?php echo $attr9_url ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_fileext)) { @@ -2015,7 +2021,7 @@ if (isset($attr9_elementtype)) { ?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php $attr8_debug_info = 'a:8:{s:5:"class";s:4:"name";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:10:"openid_url";s:4:"size";s:2:"20";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr8 = array('class'=>'name','default'=>'','type'=>'text','name'=>'openid_url','size'=>'20','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr8_class='name' ?><?php $attr8_default='' ?><?php $attr8_type='text' ?><?php $attr8_name='openid_url' ?><?php $attr8_size='20' ?><?php $attr8_maxlength='256' ?><?php $attr8_onchange='' ?><?php $attr8_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr8_readonly=true; if ($attr8_readonly && empty($$attr8_name)) $$attr8_name = '- '.lang('EMPTY').' -'; if(!isset($attr8_default)) $attr8_default=''; -?><?php if (!$attr8_readonly) { +?><?php if (!$attr8_readonly || $attr8_type=='hidden') { ?><input<?php if ($attr8_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr8_name ?><?php if ($attr8_readonly) echo '_disabled' ?>" name="<?php echo $attr8_name ?><?php if ($attr8_readonly) echo '_disabled' ?>" type="<?php echo $attr8_type ?>" size="<?php echo $attr8_size ?>" maxlength="<?php echo $attr8_maxlength ?>" class="<?php echo $attr8_class ?>" value="<?php echo isset($$attr8_name)?$$attr8_name:$attr8_default ?>" <?php if (in_array($attr8_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr8_readonly) { ?><input type="hidden" id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name ?>" value="<?php echo isset($$attr8_name)?$$attr8_name:$attr8_default ?>" /><?php @@ -2199,7 +2205,13 @@ if ($attr8_readonly) { if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) $attr7['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php $attr8_debug_info = 'a:10:{s:4:"list";s:5:"dbids";s:4:"name";s:4:"dbid";s:7:"default";s:11:"var:actdbid";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr8 = array('list'=>'dbids','name'=>'dbid','default'=>$actdbid,'onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr8_list='dbids' ?><?php $attr8_name='dbid' ?><?php $attr8_default=$actdbid ?><?php $attr8_onchange='' ?><?php $attr8_title='' ?><?php $attr8_class='' ?><?php $attr8_addempty=false ?><?php $attr8_multiple=false ?><?php $attr8_size='1' ?><?php $attr8_lang=false ?><?php -if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr8_readonly=true; +$attr8_tmp_list = $$attr8_list; +if ($this->isEditable() && $this->getRequestVar('mode')!='edit') +{ + echo empty($$attr8_name)?'- '.lang('EMPTY').' -':$attr8_tmp_list[$$attr8_name]; +} +else +{ if ( $attr8_addempty!==FALSE ) { if ($attr8_addempty===TRUE) @@ -2213,7 +2225,6 @@ if ($attr8_multiple) echo ' multiple="multiple"'; if (in_array($attr8_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; echo ' size="'.intval($attr8_size).'"'; ?>><?php - $attr8_tmp_list = $$attr8_list; if ( isset($$attr8_name) && isset($attr8_tmp_list[$$attr8_name]) ) $attr8_tmp_default = $$attr8_name; elseif ( isset($attr8_default) ) @@ -2244,7 +2255,8 @@ echo ' size="'.intval($attr8_size).'"'; } ?></select><?php if (count($$attr8_list)==0) echo '<input type="hidden" name="'.$attr8_name.'" value="" />'; -if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" value="'.$box_key.'" />' +if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" value="'.$box_key.'" />'; +} ?><?php unset($attr8) ?><?php unset($attr8_list) ?><?php unset($attr8_name) ?><?php unset($attr8_default) ?><?php unset($attr8_onchange) ?><?php unset($attr8_title) ?><?php unset($attr8_class) ?><?php unset($attr8_addempty) ?><?php unset($attr8_multiple) ?><?php unset($attr8_size) ?><?php unset($attr8_lang) ?><?php $attr8_debug_info = 'a:2:{s:4:"name";s:11:"screenwidth";s:7:"default";s:4:"9999";}' ?><?php $attr8 = array('name'=>'screenwidth','default'=>'9999') ?><?php $attr8_name='screenwidth' ?><?php $attr8_default='9999' ?><?php if (isset($$attr8_name)) $attr8_tmp_value = $$attr8_name; @@ -2420,7 +2432,7 @@ else $tmp_url = $attr2_url; else $tmp_url = Html::url($attr2_action,$attr2_subaction,!empty($attr2_id)?$attr2_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr2_class ?>" target="<?php echo $attr2_target ?>"<?php if (isset($attr2_accesskey)) echo ' accesskey="'.$attr2_accesskey.'"' ?> title="<?php echo encodeHtml($attr2_title) ?>"><?php unset($attr2) ?><?php unset($attr2_title) ?><?php unset($attr2_target) ?><?php unset($attr2_url) ?><?php unset($attr2_class) ?><?php $attr3_debug_info = 'a:3:{s:5:"class";s:4:"text";s:5:"value";s:18:"message:GLOBAL_GPL";s:6:"escape";s:4:"true";}' ?><?php $attr3 = array('class'=>'text','value'=>lang('GLOBAL_GPL'),'escape'=>true) ?><?php $attr3_class='text' ?><?php $attr3_value=lang('GLOBAL_GPL') ?><?php $attr3_escape=true ?><?php +?><a<?php if (isset($attr2_name)) echo ' name="'.$attr2_name.'"'; else echo ' href="'.$tmp_url.($attr2_anchor?'#'.$attr2_anchor:'').'"' ?> class="<?php echo $attr2_class ?>" target="<?php echo $attr2_target ?>"<?php if (isset($attr2_accesskey)) echo ' accesskey="'.$attr2_accesskey.'"' ?> title="<?php echo encodeHtml($attr2_title) ?>"><?php unset($attr2) ?><?php unset($attr2_title) ?><?php unset($attr2_target) ?><?php unset($attr2_url) ?><?php unset($attr2_class) ?><?php $attr3_debug_info = 'a:3:{s:5:"class";s:4:"text";s:5:"value";s:18:"message:GLOBAL_GPL";s:6:"escape";s:4:"true";}' ?><?php $attr3 = array('class'=>'text','value'=>lang('GLOBAL_GPL'),'escape'=>true) ?><?php $attr3_class='text' ?><?php $attr3_value=lang('GLOBAL_GPL') ?><?php $attr3_escape=true ?><?php if ( isset($attr3_prefix)&& isset($attr3_key)) $attr3_key = $attr3_prefix.$attr3_key; if ( isset($attr3_suffix)&& isset($attr3_key)) diff --git a/themes/default/pages/html/language/advanced.tpl.php b/themes/default/pages/html/language/advanced.tpl.php @@ -1,9 +1,10 @@ -<?php $attr1_debug_info = 'a:1:{s:5:"class";s:4:"main";}' ?><?php $attr1 = array('class'=>'main') ?><?php $attr1_class='main' ?><?php if (!headers_sent()) header('Content-Type: text/html; charset='.lang('CHARSET')) +<?php $attr1_debug_info = 'a:1:{s:5:"class";s:4:"main";}' ?><?php $attr1 = array('class'=>'main') ?><?php $attr1_class='main' ?><?php + if (!headers_sent()) header('Content-Type: text/html; charset='.$charset) ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title><?php echo isset($attr1_title)?$attr1_title.' - ':(isset($windowTitle)?lang($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=<?php echo lang('CHARSET') ?>" /> + <meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="robots" content="noindex,nofollow" /> <?php if (isset($windowMenu) && is_array($windowMenu)) foreach( $windowMenu as $menu ) @@ -17,7 +18,14 @@ ?> <link rel="<?php echo $meta['name'] ?>" href="<?php echo $meta['url'] ?>" title="<?php echo lang($meta['title']) ?>" /><?php } -?> +?><script type="text/javascript" src="themes/default/js/jquery.js"></script> + <script type="text/javascript" src="themes/default/js/jquery-lightbox.js"></script> + <link rel="stylesheet" type="text/css" href="themes/default/js/lightbox/css/jquery-lightbox.css" media="screen" /> + <script type="text/javascript"> + $(function() { + $('a.image').lightBox(); + }); + </script> <?php if(!empty($root_stylesheet)) { ?> <link rel="stylesheet" type="text/css" href="<?php echo $root_stylesheet ?>" /> <?php } ?> @@ -33,11 +41,16 @@ $attr2_subaction = $targetSubActionName; if (empty($attr2_id)) $attr2_id = $this->getRequestId(); + if ($this->isEditable() && $this->getRequestVar('mode')!='edit') + $attr2_subaction = $subActionName; ?><form name="<?php echo $attr2_name ?>" target="<?php echo $attr2_target ?>" action="<?php echo Html::url( $attr2_action,$attr2_subaction,$attr2_id ) ?>" method="<?php echo $attr2_method ?>" enctype="<?php echo $attr2_enctype ?>" style="margin:0px;padding:0px;"> +<?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') { ?> +<input type="hidden" name="mode" value="edit" /> +<?php } ?> <input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $attr2_action ?>" /> <input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $attr2_subaction ?>" /> <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr2_id ?>" /><?php @@ -74,17 +87,22 @@ if (!@$conf['interface']['application_mode'] ) { echo '<tr><td class="menu">'; - if ( !empty($attr3_icon) ) - echo '<img src="'.$image_dir.'icon_'.$attr3_icon.IMG_ICON_EXT.'" align="left" border="0">'; + echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; + if ($this->isEditable()) { ?> + <?php if ($this->getRequestVar('mode')=='edit') { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><?php } + echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) $path = array(); foreach( $path as $pathElement) { extract($pathElement); - echo '<a href="'.$url.'" class="path">'.lang($name).'</a>'; + echo '<a href="'.$url.'" class="path">'.langHtml($name).'</a>'; echo '&nbsp;&raquo;&nbsp;'; } - echo '<span class="title">'.lang($windowTitle).'</span>'; + echo '<span class="title">'.langHtml($windowTitle).'</span>'; ?> </td> <?php @@ -93,7 +111,7 @@ <?php ?> <!--<td class="menu" style="align:right;"> <?php if (isset($windowIcons)) foreach( $windowIcons as $icon ) { - ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.lang($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a>&nbsp;<?php + ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.langHtml($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a>&nbsp;<?php } ?> </td>--> @@ -103,32 +121,32 @@ $windowMenu = array(); foreach( $windowMenu as $menu ) { - $tmp_text = lang($menu['text']); - $tmp_key = strtoupper(lang($menu['key' ])); + $tmp_text = langHtml($menu['text']); + $tmp_key = strtoupper(langHtml($menu['key' ])); $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); if ( $tmp_pos !== false ) $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); if ( isset($menu['url']) ) { - ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php echo $this->subActionName==$menu['subaction']?'_highlight':'' ?>"><?php echo $tmp_text ?></a>&nbsp;&nbsp;&nbsp;<?php + ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu<?php echo $this->subActionName==$menu['subaction']?'_highlight':'' ?>"><?php echo $tmp_text ?></a>&nbsp;&nbsp;&nbsp;<?php } else { - ?><span class="menu_disabled" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu_disabled"><?php echo $tmp_text ?></span>&nbsp;&nbsp;&nbsp;<?php + ?><span class="menu_disabled" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu_disabled"><?php echo $tmp_text ?></span>&nbsp;&nbsp;&nbsp;<?php } } if (@$conf['help']['enabled'] ) { - ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('MENU_HELP_DESC') ?>" class="menu" style="cursor:help;"><?php echo @$conf['help']['only_question_mark']?'?':lang('MENU_HELP') ?></a><?php + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>" class="menu" style="cursor:help;"><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php } ?></td> </tr> <?php if (isset($notices) && count($notices)>0 ) { ?> <tr> - <td align="center" style="margin-top:10px; margin-bottom:10px;padding:5px; text-align:center;"> + <td align="center" class="notice"> <?php foreach( $notices as $notice_idx=>$notice ) { ?> - <br><table class="notice" width="100%"> + <br><table class="notice" width="80%"> <?php if ($notice['name']!='') { ?> <tr> <td colspan="2" class="subaction" style="padding:2px; white-space:nowrap; border-bottom:1px solid black;"><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?> @@ -137,7 +155,7 @@ <?php } ?> <tr class="notice_<?php echo $notice['status'] ?>"> <td style="padding:10px;" width="30px"><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> - <td style="padding:10px;padding-right:10px;padding-bottom:10px;"><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?> + <td style="padding:10px;padding-right:10px;padding-bottom:10px;"><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo langHtml($notice['key'],$notice['vars']) ?><?php if ($notice['status']=='error') { ?></strong><?php } ?> <?php if (!empty($notice['log'])) { ?><pre><?php echo htmlentities(implode("\n",$notice['log'])) ?></pre><?php } ?> </td> </tr> @@ -151,7 +169,8 @@ <?php } ?> <tr> <td> - <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr3) ?><?php unset($attr3_name) ?><?php unset($attr3_icon) ?><?php unset($attr3_width) ?><?php unset($attr3_rowclasses) ?><?php unset($attr3_columnclasses) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php + <table class="n" cellspacing="0" width="100%" cellpadding="4"> +<?php unset($attr3) ?><?php unset($attr3_name) ?><?php unset($attr3_icon) ?><?php unset($attr3_width) ?><?php unset($attr3_rowclasses) ?><?php unset($attr3_columnclasses) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; @@ -178,9 +197,6 @@ if ( isset($attr6_suffix)&& isset($attr6_key)) $attr6_key = $attr6_key.$attr6_suffix; if(empty($attr6_title)) - if (!empty($attr6_key)) - $attr6_title = lang($attr6_key.'_HELP'); - else $attr6_title = ''; if (empty($attr6_type)) $tmp_tag = 'span'; @@ -204,33 +220,32 @@ } ?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if ( $attr6_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; if (!empty($attr6_array)) { $tmpArray = $$attr6_array; if (!empty($attr6_var)) $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr6_text]); + $tmp_text = $langF($tmpArray[$attr6_text]); } elseif (!empty($attr6_text)) - if ( isset($$attr6_text)) - $tmp_text = lang($$attr6_text); - else - $tmp_text = lang($attr6_text); + $tmp_text = $langF($attr6_text); elseif (!empty($attr6_textvar)) - $tmp_text = lang($$attr6_textvar); + $tmp_text = $langF($$attr6_textvar); elseif (!empty($attr6_key)) - $tmp_text = lang($attr6_key); + $tmp_text = $langF($attr6_key); elseif (!empty($attr6_var)) - $tmp_text = isset($$attr6_var)?$$attr6_var:'?'.$attr6_var.'?'; + $tmp_text = isset($$attr6_var)?$$attr6_var:'?unset:'.$attr6_var.'?'; elseif (!empty($attr6_raw)) $tmp_text = str_replace('_','&nbsp;',$attr6_raw); elseif (!empty($attr6_value)) $tmp_text = $attr6_value; else $tmp_text = '&nbsp;'; - if ( $attr6_escape && empty($attr6_raw) && $tmp_text!='&nbsp;' ) - $tmp_text = htmlentities($tmp_text); if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); if (isset($attr6_accesskey)) @@ -252,11 +267,14 @@ $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:4:"name";s:4:"size";s:2:"40";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr6 = array('class'=>'','default'=>'','type'=>'text','name'=>'name','size'=>'40','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr6_class='' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='name' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=false ?><?php if(!isset($attr6_default)) $attr6_default=''; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:4:"name";s:4:"size";s:2:"40";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr6 = array('class'=>'','default'=>'','type'=>'text','name'=>'name','size'=>'40','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr6_class='' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='name' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; + if ($attr6_readonly && empty($$attr6_name)) $$attr6_name = '- '.lang('EMPTY').' -'; + if(!isset($attr6_default)) $attr6_default=''; +?><?php if (!$attr6_readonly || $attr6_type=='hidden') { ?><input<?php if ($attr6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" name="<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" <?php if (in_array($attr6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr6_readonly) { ?><input type="hidden" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" /><?php - } ?><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_default) ?><?php unset($attr6_type) ?><?php unset($attr6_name) ?><?php unset($attr6_size) ?><?php unset($attr6_maxlength) ?><?php unset($attr6_onchange) ?><?php unset($attr6_readonly) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php + } } else { ?><span class="<?php echo $attr6_class ?>"><?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?></span><?php } ?><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_default) ?><?php unset($attr6_type) ?><?php unset($attr6_name) ?><?php unset($attr6_size) ?><?php unset($attr6_maxlength) ?><?php unset($attr6_onchange) ?><?php unset($attr6_readonly) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; @@ -283,9 +301,6 @@ if ($attr6_readonly) { if ( isset($attr6_suffix)&& isset($attr6_key)) $attr6_key = $attr6_key.$attr6_suffix; if(empty($attr6_title)) - if (!empty($attr6_key)) - $attr6_title = lang($attr6_key.'_HELP'); - else $attr6_title = ''; if (empty($attr6_type)) $tmp_tag = 'span'; @@ -309,33 +324,32 @@ if ($attr6_readonly) { } ?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if ( $attr6_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; if (!empty($attr6_array)) { $tmpArray = $$attr6_array; if (!empty($attr6_var)) $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr6_text]); + $tmp_text = $langF($tmpArray[$attr6_text]); } elseif (!empty($attr6_text)) - if ( isset($$attr6_text)) - $tmp_text = lang($$attr6_text); - else - $tmp_text = lang($attr6_text); + $tmp_text = $langF($attr6_text); elseif (!empty($attr6_textvar)) - $tmp_text = lang($$attr6_textvar); + $tmp_text = $langF($$attr6_textvar); elseif (!empty($attr6_key)) - $tmp_text = lang($attr6_key); + $tmp_text = $langF($attr6_key); elseif (!empty($attr6_var)) - $tmp_text = isset($$attr6_var)?$$attr6_var:'?'.$attr6_var.'?'; + $tmp_text = isset($$attr6_var)?$$attr6_var:'?unset:'.$attr6_var.'?'; elseif (!empty($attr6_raw)) $tmp_text = str_replace('_','&nbsp;',$attr6_raw); elseif (!empty($attr6_value)) $tmp_text = $attr6_value; else $tmp_text = '&nbsp;'; - if ( $attr6_escape && empty($attr6_raw) && $tmp_text!='&nbsp;' ) - $tmp_text = htmlentities($tmp_text); if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); if (isset($attr6_accesskey)) @@ -357,11 +371,14 @@ if ($attr6_readonly) { $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:7:"isocode";s:4:"size";s:2:"40";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr6 = array('class'=>'','default'=>'','type'=>'text','name'=>'isocode','size'=>'40','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr6_class='' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='isocode' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=false ?><?php if(!isset($attr6_default)) $attr6_default=''; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:7:"isocode";s:4:"size";s:2:"40";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr6 = array('class'=>'','default'=>'','type'=>'text','name'=>'isocode','size'=>'40','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr6_class='' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='isocode' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; + if ($attr6_readonly && empty($$attr6_name)) $$attr6_name = '- '.lang('EMPTY').' -'; + if(!isset($attr6_default)) $attr6_default=''; +?><?php if (!$attr6_readonly || $attr6_type=='hidden') { ?><input<?php if ($attr6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" name="<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" <?php if (in_array($attr6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr6_readonly) { ?><input type="hidden" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" /><?php - } ?><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_default) ?><?php unset($attr6_type) ?><?php unset($attr6_name) ?><?php unset($attr6_size) ?><?php unset($attr6_maxlength) ?><?php unset($attr6_onchange) ?><?php unset($attr6_readonly) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php + } } else { ?><span class="<?php echo $attr6_class ?>"><?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?></span><?php } ?><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_default) ?><?php unset($attr6_type) ?><?php unset($attr6_name) ?><?php unset($attr6_size) ?><?php unset($attr6_maxlength) ?><?php unset($attr6_onchange) ?><?php unset($attr6_readonly) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; @@ -384,12 +401,18 @@ if ($attr6_readonly) { $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_colspan) ?><?php $attr6_debug_info = 'a:4:{s:4:"type";s:2:"ok";s:5:"class";s:2:"ok";s:5:"value";s:2:"ok";s:4:"text";s:9:"button_ok";}' ?><?php $attr6 = array('type'=>'ok','class'=>'ok','value'=>'ok','text'=>'button_ok') ?><?php $attr6_type='ok' ?><?php $attr6_class='ok' ?><?php $attr6_value='ok' ?><?php $attr6_text='button_ok' ?><?php if ($attr6_type=='ok') + { + if ($this->isEditable() && !$this->isEditMode()) + $attr6_text = 'MODE_EDIT'; + } + if ($attr6_type=='ok') $attr6_type = 'submit'; if (isset($attr6_src)) $attr6_type = 'image'; else $attr6_src = ''; -?><input type="<?php echo $attr6_type ?>"<?php if(isset($attr6_src)) { ?> src="<?php echo $image_dir.'icon_'.$attr6_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $attr6_value ?>" class="<?php echo $attr6_class ?>" title="<?php echo lang($attr6_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr6_src) ?><?php unset($attr6) ?><?php unset($attr6_type) ?><?php unset($attr6_class) ?><?php unset($attr6_value) ?><?php unset($attr6_text) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2_debug_info = 'a:0:{}' ?><?php $attr2 = array() ?> </table> +?><input type="<?php echo $attr6_type ?>"<?php if(isset($attr6_src)) { ?> src="<?php echo $image_dir.'icon_'.$attr6_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $attr6_value ?>" class="<?php echo $attr6_class ?>" title="<?php echo lang($attr6_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($attr6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr6_src) ?><?php +?><?php unset($attr6) ?><?php unset($attr6_type) ?><?php unset($attr6_class) ?><?php unset($attr6_value) ?><?php unset($attr6_text) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2_debug_info = 'a:0:{}' ?><?php $attr2 = array() ?> </table> </td> </tr> </table> diff --git a/themes/default/pages/html/language/edit.tpl.php b/themes/default/pages/html/language/edit.tpl.php @@ -90,8 +90,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) diff --git a/themes/default/pages/html/language/listing.tpl.php b/themes/default/pages/html/language/listing.tpl.php @@ -68,8 +68,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -208,13 +208,15 @@ $tmp_url = $attr6_url; else $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($attr6_id)?$attr6_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:2:{s:4:"file";s:13:"icon_language";s:5:"align";s:4:"left";}' ?><?php $attr7 = array('file'=>'icon_language','align'=>'left') ?><?php $attr7_file='icon_language' ?><?php $attr7_align='left' ?><?php +?><a<?php if (isset($attr6_name)) echo ' name="'.$attr6_name.'"'; else echo ' href="'.$tmp_url.($attr6_anchor?'#'.$attr6_anchor:'').'"' ?> class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:2:{s:4:"file";s:13:"icon_language";s:5:"align";s:4:"left";}' ?><?php $attr7 = array('file'=>'icon_language','align'=>'left') ?><?php $attr7_file='icon_language' ?><?php $attr7_align='left' ?><?php if (isset($attr7_elementtype)) { ?><img src="<?php echo $image_dir.'icon_el_'.$attr7_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_type)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr7_tree.IMG_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_url)) { ?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_fileext)) { @@ -453,7 +455,7 @@ if (isset($attr7_elementtype)) { $tmp_url = $attr7_url; else $tmp_url = Html::url($attr7_action,$attr7_subaction,!empty($attr7_id)?$attr7_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>"<?php if (isset($attr7_accesskey)) echo ' accesskey="'.$attr7_accesskey.'"' ?> title="<?php echo encodeHtml($attr7_title) ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php unset($attr7_class) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:19:"GLOBAL_make_default";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','text'=>'GLOBAL_make_default','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_text='GLOBAL_make_default' ?><?php $attr8_escape=true ?><?php +?><a<?php if (isset($attr7_name)) echo ' name="'.$attr7_name.'"'; else echo ' href="'.$tmp_url.($attr7_anchor?'#'.$attr7_anchor:'').'"' ?> class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>"<?php if (isset($attr7_accesskey)) echo ' accesskey="'.$attr7_accesskey.'"' ?> title="<?php echo encodeHtml($attr7_title) ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php unset($attr7_class) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:19:"GLOBAL_make_default";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','text'=>'GLOBAL_make_default','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_text='GLOBAL_make_default' ?><?php $attr8_escape=true ?><?php if ( isset($attr8_prefix)&& isset($attr8_key)) $attr8_key = $attr8_prefix.$attr8_key; if ( isset($attr8_suffix)&& isset($attr8_key)) @@ -676,7 +678,7 @@ if (isset($attr7_elementtype)) { $tmp_url = $attr7_url; else $tmp_url = Html::url($attr7_action,$attr7_subaction,!empty($attr7_id)?$attr7_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>"<?php if (isset($attr7_accesskey)) echo ' accesskey="'.$attr7_accesskey.'"' ?> title="<?php echo encodeHtml($attr7_title) ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php unset($attr7_class) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:13:"GLOBAL_select";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','text'=>'GLOBAL_select','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_text='GLOBAL_select' ?><?php $attr8_escape=true ?><?php +?><a<?php if (isset($attr7_name)) echo ' name="'.$attr7_name.'"'; else echo ' href="'.$tmp_url.($attr7_anchor?'#'.$attr7_anchor:'').'"' ?> class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>"<?php if (isset($attr7_accesskey)) echo ' accesskey="'.$attr7_accesskey.'"' ?> title="<?php echo encodeHtml($attr7_title) ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php unset($attr7_class) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:13:"GLOBAL_select";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','text'=>'GLOBAL_select','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_text='GLOBAL_select' ?><?php $attr8_escape=true ?><?php if ( isset($attr8_prefix)&& isset($attr8_key)) $attr8_key = $attr8_prefix.$attr8_key; if ( isset($attr8_suffix)&& isset($attr8_key)) diff --git a/themes/default/pages/html/link/edit.tpl.php b/themes/default/pages/html/link/edit.tpl.php @@ -289,7 +289,7 @@ ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:3:"url";s:4:"size";s:2:"40";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr6 = array('class'=>'','default'=>'','type'=>'text','name'=>'url','size'=>'40','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr6_class='' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='url' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; if ($attr6_readonly && empty($$attr6_name)) $$attr6_name = '- '.lang('EMPTY').' -'; if(!isset($attr6_default)) $attr6_default=''; -?><?php if (!$attr6_readonly) { +?><?php if (!$attr6_readonly || $attr6_type=='hidden') { ?><input<?php if ($attr6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" name="<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" <?php if (in_array($attr6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr6_readonly) { ?><input type="hidden" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" /><?php diff --git a/themes/default/pages/html/link/prop.tpl.php b/themes/default/pages/html/link/prop.tpl.php @@ -270,7 +270,7 @@ ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:4:"name";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:4:"name";s:4:"size";s:2:"40";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr6 = array('class'=>'name','default'=>'','type'=>'text','name'=>'name','size'=>'40','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr6_class='name' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='name' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; if ($attr6_readonly && empty($$attr6_name)) $$attr6_name = '- '.lang('EMPTY').' -'; if(!isset($attr6_default)) $attr6_default=''; -?><?php if (!$attr6_readonly) { +?><?php if (!$attr6_readonly || $attr6_type=='hidden') { ?><input<?php if ($attr6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" name="<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" <?php if (in_array($attr6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr6_readonly) { ?><input type="hidden" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" /><?php diff --git a/themes/default/pages/html/link/showprop.tpl.php b/themes/default/pages/html/link/showprop.tpl.php @@ -68,8 +68,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -493,7 +493,7 @@ $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr4_rowspan) ) $attr4['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_colspan) ?><?php $attr5_debug_info = 'a:1:{s:5:"title";s:23:"message:additional_info";}' ?><?php $attr5 = array('title'=>lang('additional_info')) ?><?php $attr5_title=lang('additional_info') ?><fieldset><?php if(isset($attr5_title)) { ?><legend><?php echo $attr5_title ?></legend><?php } ?><?php unset($attr5) ?><?php unset($attr5_title) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></fieldset><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2_debug_info = 'a:0:{}' ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php +?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_colspan) ?><?php $attr5_debug_info = 'a:1:{s:5:"title";s:23:"message:additional_info";}' ?><?php $attr5 = array('title'=>lang('additional_info')) ?><?php $attr5_title=lang('additional_info') ?><fieldset><?php if(isset($attr5_title)) { ?><legend><?php echo encodeHtml($attr5_title) ?></legend><?php } ?><?php unset($attr5) ?><?php unset($attr5_title) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></fieldset><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2_debug_info = 'a:0:{}' ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; @@ -676,7 +676,7 @@ $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr4_rowspan) ) $attr4['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_colspan) ?><?php $attr5_debug_info = 'a:1:{s:5:"title";s:21:"message:prop_userinfo";}' ?><?php $attr5 = array('title'=>lang('prop_userinfo')) ?><?php $attr5_title=lang('prop_userinfo') ?><fieldset><?php if(isset($attr5_title)) { ?><legend><?php echo $attr5_title ?></legend><?php } ?><?php unset($attr5) ?><?php unset($attr5_title) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></fieldset><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2_debug_info = 'a:0:{}' ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php +?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_colspan) ?><?php $attr5_debug_info = 'a:1:{s:5:"title";s:21:"message:prop_userinfo";}' ?><?php $attr5 = array('title'=>lang('prop_userinfo')) ?><?php $attr5_title=lang('prop_userinfo') ?><fieldset><?php if(isset($attr5_title)) { ?><legend><?php echo encodeHtml($attr5_title) ?></legend><?php } ?><?php unset($attr5) ?><?php unset($attr5_title) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></fieldset><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2_debug_info = 'a:0:{}' ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; @@ -829,6 +829,8 @@ if (isset($attr8_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr8_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr8_tree.IMG_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_url)) { ?><img src="<?php echo $attr8_url ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_fileext)) { @@ -908,6 +910,8 @@ if (isset($attr8_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr8_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr8_tree.IMG_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_url)) { ?><img src="<?php echo $attr8_url ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_fileext)) { @@ -922,7 +926,7 @@ if (isset($attr8_elementtype)) { $user->name = lang('GLOBAL_UNKNOWN'); if ( empty($user->fullname) ) $user->fullname = lang('GLOBAL_NO_DESCRIPTION_AVAILABLE'); - if ( !empty($user->mail) ) + if ( !empty($user->mail) && $conf['security']['user']['show_mail'] ) echo '<a href="mailto:'.$user->mail.'" title="'.$user->fullname.'">'.$user->name.'</a>'; else echo '<span title="'.$user->fullname.'">'.$user->name.'</span>'; @@ -1079,6 +1083,8 @@ if (isset($attr8_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr8_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr8_tree.IMG_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_url)) { ?><img src="<?php echo $attr8_url ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_fileext)) { @@ -1158,6 +1164,8 @@ if (isset($attr8_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr8_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr8_tree.IMG_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_url)) { ?><img src="<?php echo $attr8_url ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_fileext)) { @@ -1172,7 +1180,7 @@ if (isset($attr8_elementtype)) { $user->name = lang('GLOBAL_UNKNOWN'); if ( empty($user->fullname) ) $user->fullname = lang('GLOBAL_NO_DESCRIPTION_AVAILABLE'); - if ( !empty($user->mail) ) + if ( !empty($user->mail) && $conf['security']['user']['show_mail'] ) echo '<a href="mailto:'.$user->mail.'" title="'.$user->fullname.'">'.$user->name.'</a>'; else echo '<span title="'.$user->fullname.'">'.$user->name.'</span>'; diff --git a/themes/default/pages/html/mainmenu/show.tpl.php b/themes/default/pages/html/mainmenu/show.tpl.php @@ -212,6 +212,8 @@ if (isset($attr7_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr7_tree.IMG_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_url)) { ?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_fileext)) { @@ -256,7 +258,7 @@ if (isset($attr7_elementtype)) { $tmp_url = $attr7_url; else $tmp_url = Html::url($attr7_action,$attr7_subaction,!empty($attr7_id)?$attr7_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>"<?php if (isset($attr7_accesskey)) echo ' accesskey="'.$attr7_accesskey.'"' ?> title="<?php echo encodeHtml($attr7_title) ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php unset($attr7_class) ?><?php $attr8_debug_info = 'a:4:{s:5:"class";s:4:"text";s:3:"var";s:4:"name";s:9:"maxlength";s:2:"20";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','var'=>'name','maxlength'=>'20','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_var='name' ?><?php $attr8_maxlength='20' ?><?php $attr8_escape=true ?><?php +?><a<?php if (isset($attr7_name)) echo ' name="'.$attr7_name.'"'; else echo ' href="'.$tmp_url.($attr7_anchor?'#'.$attr7_anchor:'').'"' ?> class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>"<?php if (isset($attr7_accesskey)) echo ' accesskey="'.$attr7_accesskey.'"' ?> title="<?php echo encodeHtml($attr7_title) ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php unset($attr7_class) ?><?php $attr8_debug_info = 'a:4:{s:5:"class";s:4:"text";s:3:"var";s:4:"name";s:9:"maxlength";s:2:"20";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','var'=>'name','maxlength'=>'20','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_var='name' ?><?php $attr8_maxlength='20' ?><?php $attr8_escape=true ?><?php if ( isset($attr8_prefix)&& isset($attr8_key)) $attr8_key = $attr8_prefix.$attr8_key; if ( isset($attr8_suffix)&& isset($attr8_key)) @@ -488,7 +490,7 @@ if (isset($attr7_elementtype)) { ?><?php unset($attr7) ?><?php unset($attr7_action) ?><?php unset($attr7_subaction) ?><?php unset($attr7_name) ?><?php unset($attr7_target) ?><?php unset($attr7_method) ?><?php unset($attr7_enctype) ?><?php $attr8_debug_info = 'a:8:{s:5:"class";s:6:"search";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:6:"search";s:4:"size";s:2:"15";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr8 = array('class'=>'search','default'=>'','type'=>'text','name'=>'search','size'=>'15','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr8_class='search' ?><?php $attr8_default='' ?><?php $attr8_type='text' ?><?php $attr8_name='search' ?><?php $attr8_size='15' ?><?php $attr8_maxlength='256' ?><?php $attr8_onchange='' ?><?php $attr8_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr8_readonly=true; if ($attr8_readonly && empty($$attr8_name)) $$attr8_name = '- '.lang('EMPTY').' -'; if(!isset($attr8_default)) $attr8_default=''; -?><?php if (!$attr8_readonly) { +?><?php if (!$attr8_readonly || $attr8_type=='hidden') { ?><input<?php if ($attr8_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr8_name ?><?php if ($attr8_readonly) echo '_disabled' ?>" name="<?php echo $attr8_name ?><?php if ($attr8_readonly) echo '_disabled' ?>" type="<?php echo $attr8_type ?>" size="<?php echo $attr8_size ?>" maxlength="<?php echo $attr8_maxlength ?>" class="<?php echo $attr8_class ?>" value="<?php echo isset($$attr8_name)?$$attr8_name:$attr8_default ?>" <?php if (in_array($attr8_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr8_readonly) { ?><input type="hidden" id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name ?>" value="<?php echo isset($$attr8_name)?$$attr8_name:$attr8_default ?>" /><?php @@ -688,7 +690,7 @@ if ($attr8_readonly) { $tmp_url = $attr7_url; else $tmp_url = Html::url($attr7_action,$attr7_subaction,!empty($attr7_id)?$attr7_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>"<?php if (isset($attr7_accesskey)) echo ' accesskey="'.$attr7_accesskey.'"' ?> title="<?php echo encodeHtml($attr7_title) ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php unset($attr7_class) ?><?php unset($attr7_accesskey) ?><?php $attr8_debug_info = 'a:4:{s:5:"class";s:4:"text";s:7:"textvar";s:4:"text";s:9:"accesskey";s:7:"var:key";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','textvar'=>'text','accesskey'=>$key,'escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_textvar='text' ?><?php $attr8_accesskey=$key ?><?php $attr8_escape=true ?><?php +?><a<?php if (isset($attr7_name)) echo ' name="'.$attr7_name.'"'; else echo ' href="'.$tmp_url.($attr7_anchor?'#'.$attr7_anchor:'').'"' ?> class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>"<?php if (isset($attr7_accesskey)) echo ' accesskey="'.$attr7_accesskey.'"' ?> title="<?php echo encodeHtml($attr7_title) ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php unset($attr7_class) ?><?php unset($attr7_accesskey) ?><?php $attr8_debug_info = 'a:4:{s:5:"class";s:4:"text";s:7:"textvar";s:4:"text";s:9:"accesskey";s:7:"var:key";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','textvar'=>'text','accesskey'=>$key,'escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_textvar='text' ?><?php $attr8_accesskey=$key ?><?php $attr8_escape=true ?><?php if ( isset($attr8_prefix)&& isset($attr8_key)) $attr8_key = $attr8_prefix.$attr8_key; if ( isset($attr8_suffix)&& isset($attr8_key)) diff --git a/themes/default/pages/html/object/aclform.tpl.php b/themes/default/pages/html/object/aclform.tpl.php @@ -191,7 +191,7 @@ $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_colspan) ?><?php $attr6_debug_info = 'a:1:{s:5:"title";s:13:"message:users";}' ?><?php $attr6 = array('title'=>lang('users')) ?><?php $attr6_title=lang('users') ?><fieldset><?php if(isset($attr6_title)) { ?><legend><?php echo $attr6_title ?></legend><?php } ?><?php unset($attr6) ?><?php unset($attr6_title) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></fieldset><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_colspan) ?><?php $attr6_debug_info = 'a:1:{s:5:"title";s:13:"message:users";}' ?><?php $attr6 = array('title'=>lang('users')) ?><?php $attr6_title=lang('users') ?><fieldset><?php if(isset($attr6_title)) { ?><legend><?php echo encodeHtml($attr6_title) ?></legend><?php } ?><?php unset($attr6) ?><?php unset($attr6_title) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></fieldset><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; @@ -780,7 +780,7 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_colspan) ?><?php $attr6_debug_info = 'a:1:{s:5:"title";s:16:"message:language";}' ?><?php $attr6 = array('title'=>lang('language')) ?><?php $attr6_title=lang('language') ?><fieldset><?php if(isset($attr6_title)) { ?><legend><?php echo $attr6_title ?></legend><?php } ?><?php unset($attr6) ?><?php unset($attr6_title) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></fieldset><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_colspan) ?><?php $attr6_debug_info = 'a:1:{s:5:"title";s:16:"message:language";}' ?><?php $attr6 = array('title'=>lang('language')) ?><?php $attr6_title=lang('language') ?><fieldset><?php if(isset($attr6_title)) { ?><legend><?php echo encodeHtml($attr6_title) ?></legend><?php } ?><?php unset($attr6) ?><?php unset($attr6_title) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></fieldset><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; @@ -1021,7 +1021,7 @@ if (count($$attr6_list)==1) echo '<input type="hidden" name="'.$attr6_name.'" va $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_colspan) ?><?php $attr6_debug_info = 'a:1:{s:5:"title";s:11:"message:acl";}' ?><?php $attr6 = array('title'=>lang('acl')) ?><?php $attr6_title=lang('acl') ?><fieldset><?php if(isset($attr6_title)) { ?><legend><?php echo $attr6_title ?></legend><?php } ?><?php unset($attr6) ?><?php unset($attr6_title) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></fieldset><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:4:{s:4:"list";s:4:"show";s:7:"extract";s:5:"false";s:3:"key";s:1:"k";s:5:"value";s:1:"t";}' ?><?php $attr4 = array('list'=>'show','extract'=>false,'key'=>'k','value'=>'t') ?><?php $attr4_list='show' ?><?php $attr4_extract=false ?><?php $attr4_key='k' ?><?php $attr4_value='t' ?><?php +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_colspan) ?><?php $attr6_debug_info = 'a:1:{s:5:"title";s:11:"message:acl";}' ?><?php $attr6 = array('title'=>lang('acl')) ?><?php $attr6_title=lang('acl') ?><fieldset><?php if(isset($attr6_title)) { ?><legend><?php echo encodeHtml($attr6_title) ?></legend><?php } ?><?php unset($attr6) ?><?php unset($attr6_title) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></fieldset><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:4:{s:4:"list";s:4:"show";s:7:"extract";s:5:"false";s:3:"key";s:1:"k";s:5:"value";s:1:"t";}' ?><?php $attr4 = array('list'=>'show','extract'=>false,'key'=>'k','value'=>'t') ?><?php $attr4_list='show' ?><?php $attr4_extract=false ?><?php $attr4_key='k' ?><?php $attr4_value='t' ?><?php $attr4_list_tmp_key = $attr4_key; $attr4_list_tmp_value = $attr4_value; $attr4_list_extract = $attr4_extract; diff --git a/themes/default/pages/html/page/el.tpl.php b/themes/default/pages/html/page/el.tpl.php @@ -68,8 +68,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -654,13 +654,15 @@ $tmp_url = $attr6_url; else $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($attr6_id)?$attr6_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:2:{s:5:"align";s:4:"left";s:11:"elementtype";s:8:"var:type";}' ?><?php $attr7 = array('align'=>'left','elementtype'=>$type) ?><?php $attr7_align='left' ?><?php $attr7_elementtype=$type ?><?php +?><a<?php if (isset($attr6_name)) echo ' name="'.$attr6_name.'"'; else echo ' href="'.$tmp_url.($attr6_anchor?'#'.$attr6_anchor:'').'"' ?> class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:2:{s:5:"align";s:4:"left";s:11:"elementtype";s:8:"var:type";}' ?><?php $attr7 = array('align'=>'left','elementtype'=>$type) ?><?php $attr7_align='left' ?><?php $attr7_elementtype=$type ?><?php if (isset($attr7_elementtype)) { ?><img src="<?php echo $image_dir.'icon_el_'.$attr7_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_type)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr7_tree.IMG_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_url)) { ?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_fileext)) { @@ -964,7 +966,7 @@ if (isset($attr7_elementtype)) { $tmp_url = $attr7_url; else $tmp_url = Html::url($attr7_action,$attr7_subaction,!empty($attr7_id)?$attr7_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>"<?php if (isset($attr7_accesskey)) echo ' accesskey="'.$attr7_accesskey.'"' ?> title="<?php echo encodeHtml($attr7_title) ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php unset($attr7_class) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:14:"GLOBAL_ARCHIVE";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','text'=>'GLOBAL_ARCHIVE','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_text='GLOBAL_ARCHIVE' ?><?php $attr8_escape=true ?><?php +?><a<?php if (isset($attr7_name)) echo ' name="'.$attr7_name.'"'; else echo ' href="'.$tmp_url.($attr7_anchor?'#'.$attr7_anchor:'').'"' ?> class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>"<?php if (isset($attr7_accesskey)) echo ' accesskey="'.$attr7_accesskey.'"' ?> title="<?php echo encodeHtml($attr7_title) ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php unset($attr7_class) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:14:"GLOBAL_ARCHIVE";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','text'=>'GLOBAL_ARCHIVE','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_text='GLOBAL_ARCHIVE' ?><?php $attr8_escape=true ?><?php if ( isset($attr8_prefix)&& isset($attr8_key)) $attr8_key = $attr8_prefix.$attr8_key; if ( isset($attr8_suffix)&& isset($attr8_key)) diff --git a/themes/default/pages/html/page/prop.tpl.php b/themes/default/pages/html/page/prop.tpl.php @@ -90,8 +90,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -270,7 +270,7 @@ ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:4:"name";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:4:"name";s:4:"size";s:2:"50";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr6 = array('class'=>'name','default'=>'','type'=>'text','name'=>'name','size'=>'50','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr6_class='name' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='name' ?><?php $attr6_size='50' ?><?php $attr6_maxlength='256' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; if ($attr6_readonly && empty($$attr6_name)) $$attr6_name = '- '.lang('EMPTY').' -'; if(!isset($attr6_default)) $attr6_default=''; -?><?php if (!$attr6_readonly) { +?><?php if (!$attr6_readonly || $attr6_type=='hidden') { ?><input<?php if ($attr6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" name="<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" <?php if (in_array($attr6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr6_readonly) { ?><input type="hidden" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" /><?php @@ -374,7 +374,7 @@ if ($attr6_readonly) { ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:8:"filename";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:8:"filename";s:4:"size";s:2:"40";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr6 = array('class'=>'filename','default'=>'','type'=>'text','name'=>'filename','size'=>'40','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr6_class='filename' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='filename' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; if ($attr6_readonly && empty($$attr6_name)) $$attr6_name = '- '.lang('EMPTY').' -'; if(!isset($attr6_default)) $attr6_default=''; -?><?php if (!$attr6_readonly) { +?><?php if (!$attr6_readonly || $attr6_type=='hidden') { ?><input<?php if ($attr6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" name="<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" <?php if (in_array($attr6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr6_readonly) { ?><input type="hidden" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" /><?php @@ -840,13 +840,15 @@ if ($attr6_readonly) { $tmp_url = $attr7_url; else $tmp_url = Html::url($attr7_action,$attr7_subaction,!empty($attr7_id)?$attr7_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>"<?php if (isset($attr7_accesskey)) echo ' accesskey="'.$attr7_accesskey.'"' ?> title="<?php echo encodeHtml($attr7_title) ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php unset($attr7_class) ?><?php $attr8_debug_info = 'a:2:{s:4:"file";s:13:"icon_template";s:5:"align";s:4:"left";}' ?><?php $attr8 = array('file'=>'icon_template','align'=>'left') ?><?php $attr8_file='icon_template' ?><?php $attr8_align='left' ?><?php +?><a<?php if (isset($attr7_name)) echo ' name="'.$attr7_name.'"'; else echo ' href="'.$tmp_url.($attr7_anchor?'#'.$attr7_anchor:'').'"' ?> class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>"<?php if (isset($attr7_accesskey)) echo ' accesskey="'.$attr7_accesskey.'"' ?> title="<?php echo encodeHtml($attr7_title) ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php unset($attr7_class) ?><?php $attr8_debug_info = 'a:2:{s:4:"file";s:13:"icon_template";s:5:"align";s:4:"left";}' ?><?php $attr8 = array('file'=>'icon_template','align'=>'left') ?><?php $attr8_file='icon_template' ?><?php $attr8_align='left' ?><?php if (isset($attr8_elementtype)) { ?><img src="<?php echo $image_dir.'icon_el_'.$attr8_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_type)) { ?><img src="<?php echo $image_dir.'icon_'.$attr8_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr8_tree.IMG_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_url)) { ?><img src="<?php echo $attr8_url ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_fileext)) { @@ -985,6 +987,8 @@ if (isset($attr7_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr7_tree.IMG_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_url)) { ?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_fileext)) { @@ -1553,6 +1557,8 @@ if (isset($attr9_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr9_tree.IMG_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_url)) { ?><img src="<?php echo $attr9_url ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_fileext)) { @@ -1632,6 +1638,8 @@ if (isset($attr9_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr9_tree.IMG_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_url)) { ?><img src="<?php echo $attr9_url ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_fileext)) { @@ -1646,7 +1654,7 @@ if (isset($attr9_elementtype)) { $user->name = lang('GLOBAL_UNKNOWN'); if ( empty($user->fullname) ) $user->fullname = lang('GLOBAL_NO_DESCRIPTION_AVAILABLE'); - if ( !empty($user->mail) ) + if ( !empty($user->mail) && $conf['security']['user']['show_mail'] ) echo '<a href="mailto:'.$user->mail.'" title="'.$user->fullname.'">'.$user->name.'</a>'; else echo '<span title="'.$user->fullname.'">'.$user->name.'</span>'; @@ -1803,6 +1811,8 @@ if (isset($attr9_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr9_tree.IMG_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_url)) { ?><img src="<?php echo $attr9_url ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_fileext)) { @@ -1882,6 +1892,8 @@ if (isset($attr9_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr9_tree.IMG_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_url)) { ?><img src="<?php echo $attr9_url ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_fileext)) { @@ -1896,7 +1908,7 @@ if (isset($attr9_elementtype)) { $user->name = lang('GLOBAL_UNKNOWN'); if ( empty($user->fullname) ) $user->fullname = lang('GLOBAL_NO_DESCRIPTION_AVAILABLE'); - if ( !empty($user->mail) ) + if ( !empty($user->mail) && $conf['security']['user']['show_mail'] ) echo '<a href="mailto:'.$user->mail.'" title="'.$user->fullname.'">'.$user->name.'</a>'; else echo '<span title="'.$user->fullname.'">'.$user->name.'</span>'; diff --git a/themes/default/pages/html/page/showprop.tpl.php b/themes/default/pages/html/page/showprop.tpl.php @@ -68,8 +68,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -655,7 +655,7 @@ $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr4_rowspan) ) $attr4['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_colspan) ?><?php $attr5_debug_info = 'a:1:{s:5:"title";s:23:"message:additional_info";}' ?><?php $attr5 = array('title'=>lang('additional_info')) ?><?php $attr5_title=lang('additional_info') ?><fieldset><?php if(isset($attr5_title)) { ?><legend><?php echo $attr5_title ?></legend><?php } ?><?php unset($attr5) ?><?php unset($attr5_title) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></fieldset><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2_debug_info = 'a:0:{}' ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php +?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_colspan) ?><?php $attr5_debug_info = 'a:1:{s:5:"title";s:23:"message:additional_info";}' ?><?php $attr5 = array('title'=>lang('additional_info')) ?><?php $attr5_title=lang('additional_info') ?><fieldset><?php if(isset($attr5_title)) { ?><legend><?php echo encodeHtml($attr5_title) ?></legend><?php } ?><?php unset($attr5) ?><?php unset($attr5_title) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></fieldset><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2_debug_info = 'a:0:{}' ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; @@ -833,13 +833,15 @@ $tmp_url = $attr6_url; else $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($attr6_id)?$attr6_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:2:{s:4:"file";s:13:"icon_template";s:5:"align";s:4:"left";}' ?><?php $attr7 = array('file'=>'icon_template','align'=>'left') ?><?php $attr7_file='icon_template' ?><?php $attr7_align='left' ?><?php +?><a<?php if (isset($attr6_name)) echo ' name="'.$attr6_name.'"'; else echo ' href="'.$tmp_url.($attr6_anchor?'#'.$attr6_anchor:'').'"' ?> class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:2:{s:4:"file";s:13:"icon_template";s:5:"align";s:4:"left";}' ?><?php $attr7 = array('file'=>'icon_template','align'=>'left') ?><?php $attr7_file='icon_template' ?><?php $attr7_align='left' ?><?php if (isset($attr7_elementtype)) { ?><img src="<?php echo $image_dir.'icon_el_'.$attr7_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_type)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr7_tree.IMG_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_url)) { ?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_fileext)) { @@ -978,6 +980,8 @@ if (isset($attr6_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr6_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr6_align ?>"><?php } elseif (isset($attr6_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr6_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr6_align ?>"><?php +} elseif (isset($attr6_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr6_tree.IMG_EXT ?>" border="0" align="<?php echo $attr6_align ?>"><?php } elseif (isset($attr6_url)) { ?><img src="<?php echo $attr6_url ?>" border="0" align="<?php echo $attr6_align ?>"><?php } elseif (isset($attr6_fileext)) { @@ -1393,7 +1397,7 @@ if (isset($attr6_elementtype)) { $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr4_rowspan) ) $attr4['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_colspan) ?><?php $attr5_debug_info = 'a:1:{s:5:"title";s:21:"message:prop_userinfo";}' ?><?php $attr5 = array('title'=>lang('prop_userinfo')) ?><?php $attr5_title=lang('prop_userinfo') ?><fieldset><?php if(isset($attr5_title)) { ?><legend><?php echo $attr5_title ?></legend><?php } ?><?php unset($attr5) ?><?php unset($attr5_title) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></fieldset><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2_debug_info = 'a:0:{}' ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php +?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_colspan) ?><?php $attr5_debug_info = 'a:1:{s:5:"title";s:21:"message:prop_userinfo";}' ?><?php $attr5 = array('title'=>lang('prop_userinfo')) ?><?php $attr5_title=lang('prop_userinfo') ?><fieldset><?php if(isset($attr5_title)) { ?><legend><?php echo encodeHtml($attr5_title) ?></legend><?php } ?><?php unset($attr5) ?><?php unset($attr5_title) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></fieldset><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2_debug_info = 'a:0:{}' ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; @@ -1546,6 +1550,8 @@ if (isset($attr8_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr8_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr8_tree.IMG_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_url)) { ?><img src="<?php echo $attr8_url ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_fileext)) { @@ -1625,6 +1631,8 @@ if (isset($attr8_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr8_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr8_tree.IMG_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_url)) { ?><img src="<?php echo $attr8_url ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_fileext)) { @@ -1639,7 +1647,7 @@ if (isset($attr8_elementtype)) { $user->name = lang('GLOBAL_UNKNOWN'); if ( empty($user->fullname) ) $user->fullname = lang('GLOBAL_NO_DESCRIPTION_AVAILABLE'); - if ( !empty($user->mail) ) + if ( !empty($user->mail) && $conf['security']['user']['show_mail'] ) echo '<a href="mailto:'.$user->mail.'" title="'.$user->fullname.'">'.$user->name.'</a>'; else echo '<span title="'.$user->fullname.'">'.$user->name.'</span>'; @@ -1796,6 +1804,8 @@ if (isset($attr8_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr8_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr8_tree.IMG_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_url)) { ?><img src="<?php echo $attr8_url ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_fileext)) { @@ -1875,6 +1885,8 @@ if (isset($attr8_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr8_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr8_tree.IMG_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_url)) { ?><img src="<?php echo $attr8_url ?>" border="0" align="<?php echo $attr8_align ?>"><?php } elseif (isset($attr8_fileext)) { @@ -1889,7 +1901,7 @@ if (isset($attr8_elementtype)) { $user->name = lang('GLOBAL_UNKNOWN'); if ( empty($user->fullname) ) $user->fullname = lang('GLOBAL_NO_DESCRIPTION_AVAILABLE'); - if ( !empty($user->mail) ) + if ( !empty($user->mail) && $conf['security']['user']['show_mail'] ) echo '<a href="mailto:'.$user->mail.'" title="'.$user->fullname.'">'.$user->name.'</a>'; else echo '<span title="'.$user->fullname.'">'.$user->name.'</span>'; diff --git a/themes/default/pages/html/pageelement/advanced.tpl.php b/themes/default/pages/html/pageelement/advanced.tpl.php @@ -90,8 +90,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -386,13 +386,15 @@ $tmp_url = $attr8_url; else $tmp_url = Html::url($attr8_action,$attr8_subaction,!empty($attr8_id)?$attr8_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr8_class ?>" target="<?php echo $attr8_target ?>"<?php if (isset($attr8_accesskey)) echo ' accesskey="'.$attr8_accesskey.'"' ?> title="<?php echo encodeHtml($attr8_title) ?>"><?php unset($attr8) ?><?php unset($attr8_title) ?><?php unset($attr8_target) ?><?php unset($attr8_url) ?><?php unset($attr8_class) ?><?php $attr9_debug_info = 'a:2:{s:4:"file";s:4:"left";s:5:"align";s:6:"middle";}' ?><?php $attr9 = array('file'=>'left','align'=>'middle') ?><?php $attr9_file='left' ?><?php $attr9_align='middle' ?><?php +?><a<?php if (isset($attr8_name)) echo ' name="'.$attr8_name.'"'; else echo ' href="'.$tmp_url.($attr8_anchor?'#'.$attr8_anchor:'').'"' ?> class="<?php echo $attr8_class ?>" target="<?php echo $attr8_target ?>"<?php if (isset($attr8_accesskey)) echo ' accesskey="'.$attr8_accesskey.'"' ?> title="<?php echo encodeHtml($attr8_title) ?>"><?php unset($attr8) ?><?php unset($attr8_title) ?><?php unset($attr8_target) ?><?php unset($attr8_url) ?><?php unset($attr8_class) ?><?php $attr9_debug_info = 'a:2:{s:4:"file";s:4:"left";s:5:"align";s:6:"middle";}' ?><?php $attr9 = array('file'=>'left','align'=>'middle') ?><?php $attr9_file='left' ?><?php $attr9_align='middle' ?><?php if (isset($attr9_elementtype)) { ?><img src="<?php echo $image_dir.'icon_el_'.$attr9_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_type)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr9_tree.IMG_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_url)) { ?><img src="<?php echo $attr9_url ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_fileext)) { @@ -463,7 +465,7 @@ if (isset($attr9_elementtype)) { } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_raw) ?><?php unset($attr8_escape) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:13:"var:monthname";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','text'=>$monthname,'escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_text=$monthname ?><?php $attr8_escape=true ?><?php +?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_raw) ?><?php unset($attr8_escape) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:9:"monthname";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','var'=>'monthname','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_var='monthname' ?><?php $attr8_escape=true ?><?php if ( isset($attr8_prefix)&& isset($attr8_key)) $attr8_key = $attr8_prefix.$attr8_key; if ( isset($attr8_suffix)&& isset($attr8_key)) @@ -528,7 +530,7 @@ if (isset($attr9_elementtype)) { } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_text) ?><?php unset($attr8_escape) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:1:"_";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','raw'=>'_','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_raw='_' ?><?php $attr8_escape=true ?><?php +?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_var) ?><?php unset($attr8_escape) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:1:"_";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','raw'=>'_','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_raw='_' ?><?php $attr8_escape=true ?><?php if ( isset($attr8_prefix)&& isset($attr8_key)) $attr8_key = $attr8_prefix.$attr8_key; if ( isset($attr8_suffix)&& isset($attr8_key)) @@ -613,13 +615,15 @@ if (isset($attr9_elementtype)) { $tmp_url = $attr8_url; else $tmp_url = Html::url($attr8_action,$attr8_subaction,!empty($attr8_id)?$attr8_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr8_class ?>" target="<?php echo $attr8_target ?>"<?php if (isset($attr8_accesskey)) echo ' accesskey="'.$attr8_accesskey.'"' ?> title="<?php echo encodeHtml($attr8_title) ?>"><?php unset($attr8) ?><?php unset($attr8_title) ?><?php unset($attr8_target) ?><?php unset($attr8_url) ?><?php unset($attr8_class) ?><?php $attr9_debug_info = 'a:2:{s:4:"file";s:5:"right";s:5:"align";s:6:"middle";}' ?><?php $attr9 = array('file'=>'right','align'=>'middle') ?><?php $attr9_file='right' ?><?php $attr9_align='middle' ?><?php +?><a<?php if (isset($attr8_name)) echo ' name="'.$attr8_name.'"'; else echo ' href="'.$tmp_url.($attr8_anchor?'#'.$attr8_anchor:'').'"' ?> class="<?php echo $attr8_class ?>" target="<?php echo $attr8_target ?>"<?php if (isset($attr8_accesskey)) echo ' accesskey="'.$attr8_accesskey.'"' ?> title="<?php echo encodeHtml($attr8_title) ?>"><?php unset($attr8) ?><?php unset($attr8_title) ?><?php unset($attr8_target) ?><?php unset($attr8_url) ?><?php unset($attr8_class) ?><?php $attr9_debug_info = 'a:2:{s:4:"file";s:5:"right";s:5:"align";s:6:"middle";}' ?><?php $attr9 = array('file'=>'right','align'=>'middle') ?><?php $attr9_file='right' ?><?php $attr9_align='middle' ?><?php if (isset($attr9_elementtype)) { ?><img src="<?php echo $image_dir.'icon_el_'.$attr9_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_type)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr9_tree.IMG_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_url)) { ?><img src="<?php echo $attr9_url ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_fileext)) { @@ -710,13 +714,15 @@ if (isset($attr9_elementtype)) { $tmp_url = $attr8_url; else $tmp_url = Html::url($attr8_action,$attr8_subaction,!empty($attr8_id)?$attr8_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr8_class ?>" target="<?php echo $attr8_target ?>"<?php if (isset($attr8_accesskey)) echo ' accesskey="'.$attr8_accesskey.'"' ?> title="<?php echo encodeHtml($attr8_title) ?>"><?php unset($attr8) ?><?php unset($attr8_title) ?><?php unset($attr8_target) ?><?php unset($attr8_url) ?><?php unset($attr8_class) ?><?php $attr9_debug_info = 'a:2:{s:4:"file";s:4:"left";s:5:"align";s:6:"middle";}' ?><?php $attr9 = array('file'=>'left','align'=>'middle') ?><?php $attr9_file='left' ?><?php $attr9_align='middle' ?><?php +?><a<?php if (isset($attr8_name)) echo ' name="'.$attr8_name.'"'; else echo ' href="'.$tmp_url.($attr8_anchor?'#'.$attr8_anchor:'').'"' ?> class="<?php echo $attr8_class ?>" target="<?php echo $attr8_target ?>"<?php if (isset($attr8_accesskey)) echo ' accesskey="'.$attr8_accesskey.'"' ?> title="<?php echo encodeHtml($attr8_title) ?>"><?php unset($attr8) ?><?php unset($attr8_title) ?><?php unset($attr8_target) ?><?php unset($attr8_url) ?><?php unset($attr8_class) ?><?php $attr9_debug_info = 'a:2:{s:4:"file";s:4:"left";s:5:"align";s:6:"middle";}' ?><?php $attr9 = array('file'=>'left','align'=>'middle') ?><?php $attr9_file='left' ?><?php $attr9_align='middle' ?><?php if (isset($attr9_elementtype)) { ?><img src="<?php echo $image_dir.'icon_el_'.$attr9_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_type)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr9_tree.IMG_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_url)) { ?><img src="<?php echo $attr9_url ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_fileext)) { @@ -787,7 +793,7 @@ if (isset($attr9_elementtype)) { } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_raw) ?><?php unset($attr8_escape) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:12:"var:yearname";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','text'=>$yearname,'escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_text=$yearname ?><?php $attr8_escape=true ?><?php +?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_raw) ?><?php unset($attr8_escape) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:8:"yearname";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','var'=>'yearname','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_var='yearname' ?><?php $attr8_escape=true ?><?php if ( isset($attr8_prefix)&& isset($attr8_key)) $attr8_key = $attr8_prefix.$attr8_key; if ( isset($attr8_suffix)&& isset($attr8_key)) @@ -852,7 +858,7 @@ if (isset($attr9_elementtype)) { } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_text) ?><?php unset($attr8_escape) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:1:"_";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','raw'=>'_','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_raw='_' ?><?php $attr8_escape=true ?><?php +?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_var) ?><?php unset($attr8_escape) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:1:"_";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','raw'=>'_','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_raw='_' ?><?php $attr8_escape=true ?><?php if ( isset($attr8_prefix)&& isset($attr8_key)) $attr8_key = $attr8_prefix.$attr8_key; if ( isset($attr8_suffix)&& isset($attr8_key)) @@ -937,13 +943,15 @@ if (isset($attr9_elementtype)) { $tmp_url = $attr8_url; else $tmp_url = Html::url($attr8_action,$attr8_subaction,!empty($attr8_id)?$attr8_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr8_class ?>" target="<?php echo $attr8_target ?>"<?php if (isset($attr8_accesskey)) echo ' accesskey="'.$attr8_accesskey.'"' ?> title="<?php echo encodeHtml($attr8_title) ?>"><?php unset($attr8) ?><?php unset($attr8_title) ?><?php unset($attr8_target) ?><?php unset($attr8_url) ?><?php unset($attr8_class) ?><?php $attr9_debug_info = 'a:2:{s:4:"file";s:5:"right";s:5:"align";s:6:"middle";}' ?><?php $attr9 = array('file'=>'right','align'=>'middle') ?><?php $attr9_file='right' ?><?php $attr9_align='middle' ?><?php +?><a<?php if (isset($attr8_name)) echo ' name="'.$attr8_name.'"'; else echo ' href="'.$tmp_url.($attr8_anchor?'#'.$attr8_anchor:'').'"' ?> class="<?php echo $attr8_class ?>" target="<?php echo $attr8_target ?>"<?php if (isset($attr8_accesskey)) echo ' accesskey="'.$attr8_accesskey.'"' ?> title="<?php echo encodeHtml($attr8_title) ?>"><?php unset($attr8) ?><?php unset($attr8_title) ?><?php unset($attr8_target) ?><?php unset($attr8_url) ?><?php unset($attr8_class) ?><?php $attr9_debug_info = 'a:2:{s:4:"file";s:5:"right";s:5:"align";s:6:"middle";}' ?><?php $attr9 = array('file'=>'right','align'=>'middle') ?><?php $attr9_file='right' ?><?php $attr9_align='middle' ?><?php if (isset($attr9_elementtype)) { ?><img src="<?php echo $image_dir.'icon_el_'.$attr9_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_type)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr9_tree.IMG_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_url)) { ?><img src="<?php echo $attr9_url ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_fileext)) { @@ -970,7 +978,7 @@ if (isset($attr9_elementtype)) { $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) $attr7['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:17:"message:global_nr";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','text'=>lang('global_nr'),'escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_text=lang('global_nr') ?><?php $attr8_escape=true ?><?php +?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:9:"global_nr";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','key'=>'global_nr','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_key='global_nr' ?><?php $attr8_escape=true ?><?php if ( isset($attr8_prefix)&& isset($attr8_key)) $attr8_key = $attr8_prefix.$attr8_key; if ( isset($attr8_suffix)&& isset($attr8_key)) @@ -1035,7 +1043,7 @@ if (isset($attr9_elementtype)) { } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_text) ?><?php unset($attr8_escape) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr7_debug_info = 'a:4:{s:4:"list";s:8:"weekdays";s:7:"extract";s:5:"false";s:3:"key";s:8:"list_key";s:5:"value";s:7:"weekday";}' ?><?php $attr7 = array('list'=>'weekdays','extract'=>false,'key'=>'list_key','value'=>'weekday') ?><?php $attr7_list='weekdays' ?><?php $attr7_extract=false ?><?php $attr7_key='list_key' ?><?php $attr7_value='weekday' ?><?php +?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_key) ?><?php unset($attr8_escape) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr7_debug_info = 'a:4:{s:4:"list";s:8:"weekdays";s:7:"extract";s:5:"false";s:3:"key";s:8:"list_key";s:5:"value";s:7:"weekday";}' ?><?php $attr7 = array('list'=>'weekdays','extract'=>false,'key'=>'list_key','value'=>'weekday') ?><?php $attr7_list='weekdays' ?><?php $attr7_extract=false ?><?php $attr7_key='list_key' ?><?php $attr7_value='weekday' ?><?php $attr7_list_tmp_key = $attr7_key; $attr7_list_tmp_value = $attr7_value; $attr7_list_extract = $attr7_extract; @@ -1065,7 +1073,7 @@ if (isset($attr9_elementtype)) { $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr8_rowspan) ) $attr8['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr8 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr8) ?><?php $attr9_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:11:"var:weekday";s:6:"escape";s:4:"true";}' ?><?php $attr9 = array('class'=>'text','text'=>$weekday,'escape'=>true) ?><?php $attr9_class='text' ?><?php $attr9_text=$weekday ?><?php $attr9_escape=true ?><?php +?><td <?php foreach( $attr8 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr8) ?><?php $attr9_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:7:"weekday";s:6:"escape";s:4:"true";}' ?><?php $attr9 = array('class'=>'text','var'=>'weekday','escape'=>true) ?><?php $attr9_class='text' ?><?php $attr9_var='weekday' ?><?php $attr9_escape=true ?><?php if ( isset($attr9_prefix)&& isset($attr9_key)) $attr9_key = $attr9_prefix.$attr9_key; if ( isset($attr9_suffix)&& isset($attr9_key)) @@ -1130,7 +1138,7 @@ if (isset($attr9_elementtype)) { } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr9) ?><?php unset($attr9_class) ?><?php unset($attr9_text) ?><?php unset($attr9_escape) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?></td><?php unset($attr7) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php } ?><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></tr><?php unset($attr5) ?><?php $attr6_debug_info = 'a:4:{s:4:"list";s:8:"weeklist";s:7:"extract";s:5:"false";s:3:"key";s:6:"weeknr";s:5:"value";s:4:"week";}' ?><?php $attr6 = array('list'=>'weeklist','extract'=>false,'key'=>'weeknr','value'=>'week') ?><?php $attr6_list='weeklist' ?><?php $attr6_extract=false ?><?php $attr6_key='weeknr' ?><?php $attr6_value='week' ?><?php +?></<?php echo $tmp_tag ?>><?php unset($attr9) ?><?php unset($attr9_class) ?><?php unset($attr9_var) ?><?php unset($attr9_escape) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?></td><?php unset($attr7) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php } ?><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></tr><?php unset($attr5) ?><?php $attr6_debug_info = 'a:4:{s:4:"list";s:8:"weeklist";s:7:"extract";s:5:"false";s:3:"key";s:6:"weeknr";s:5:"value";s:4:"week";}' ?><?php $attr6 = array('list'=>'weeklist','extract'=>false,'key'=>'weeknr','value'=>'week') ?><?php $attr6_list='weeklist' ?><?php $attr6_extract=false ?><?php $attr6_key='weeknr' ?><?php $attr6_value='week' ?><?php $attr6_list_tmp_key = $attr6_key; $attr6_list_tmp_value = $attr6_value; $attr6_list_extract = $attr6_extract; @@ -1170,7 +1178,7 @@ if (isset($attr9_elementtype)) { $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr8_rowspan) ) $attr8['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr8 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr8) ?><?php unset($attr8_width) ?><?php $attr9_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:10:"var:weeknr";s:6:"escape";s:4:"true";}' ?><?php $attr9 = array('class'=>'text','text'=>$weeknr,'escape'=>true) ?><?php $attr9_class='text' ?><?php $attr9_text=$weeknr ?><?php $attr9_escape=true ?><?php +?><td <?php foreach( $attr8 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr8) ?><?php unset($attr8_width) ?><?php $attr9_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:6:"weeknr";s:6:"escape";s:4:"true";}' ?><?php $attr9 = array('class'=>'text','var'=>'weeknr','escape'=>true) ?><?php $attr9_class='text' ?><?php $attr9_var='weeknr' ?><?php $attr9_escape=true ?><?php if ( isset($attr9_prefix)&& isset($attr9_key)) $attr9_key = $attr9_prefix.$attr9_key; if ( isset($attr9_suffix)&& isset($attr9_key)) @@ -1235,7 +1243,7 @@ if (isset($attr9_elementtype)) { } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr9) ?><?php unset($attr9_class) ?><?php unset($attr9_text) ?><?php unset($attr9_escape) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?></td><?php unset($attr7) ?><?php $attr8_debug_info = 'a:4:{s:4:"list";s:4:"week";s:7:"extract";s:4:"true";s:3:"key";s:8:"list_key";s:5:"value";s:10:"list_value";}' ?><?php $attr8 = array('list'=>'week','extract'=>true,'key'=>'list_key','value'=>'list_value') ?><?php $attr8_list='week' ?><?php $attr8_extract=true ?><?php $attr8_key='list_key' ?><?php $attr8_value='list_value' ?><?php +?></<?php echo $tmp_tag ?>><?php unset($attr9) ?><?php unset($attr9_class) ?><?php unset($attr9_var) ?><?php unset($attr9_escape) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?></td><?php unset($attr7) ?><?php $attr8_debug_info = 'a:4:{s:4:"list";s:4:"week";s:7:"extract";s:4:"true";s:3:"key";s:8:"list_key";s:5:"value";s:10:"list_value";}' ?><?php $attr8 = array('list'=>'week','extract'=>true,'key'=>'list_key','value'=>'list_value') ?><?php $attr8_list='week' ?><?php $attr8_extract=true ?><?php $attr8_key='list_key' ?><?php $attr8_value='list_value' ?><?php $attr8_list_tmp_key = $attr8_key; $attr8_list_tmp_value = $attr8_value; $attr8_list_extract = $attr8_extract; @@ -1391,7 +1399,7 @@ if (isset($attr9_elementtype)) { } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_raw) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:6:"var:nr";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','text'=>$nr,'escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_text=$nr ?><?php $attr11_escape=true ?><?php +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_raw) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:2:"nr";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','var'=>'nr','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_var='nr' ?><?php $attr11_escape=true ?><?php if ( isset($attr11_prefix)&& isset($attr11_key)) $attr11_key = $attr11_prefix.$attr11_key; if ( isset($attr11_suffix)&& isset($attr11_key)) @@ -1456,7 +1464,7 @@ if (isset($attr9_elementtype)) { } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_text) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:2:"__";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','raw'=>'__','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_raw='__' ?><?php $attr11_escape=true ?><?php +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_var) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:2:"__";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','raw'=>'__','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_raw='__' ?><?php $attr11_escape=true ?><?php if ( isset($attr11_prefix)&& isset($attr11_key)) $attr11_key = $attr11_prefix.$attr11_key; if ( isset($attr11_suffix)&& isset($attr11_key)) @@ -1602,7 +1610,7 @@ if (isset($attr9_elementtype)) { $tmp_url = $attr11_url; else $tmp_url = Html::url($attr11_action,$attr11_subaction,!empty($attr11_id)?$attr11_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr11_class ?>" target="<?php echo $attr11_target ?>"<?php if (isset($attr11_accesskey)) echo ' accesskey="'.$attr11_accesskey.'"' ?> title="<?php echo encodeHtml($attr11_title) ?>"><?php unset($attr11) ?><?php unset($attr11_title) ?><?php unset($attr11_target) ?><?php unset($attr11_url) ?><?php unset($attr11_class) ?><?php $attr12_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:2:"__";s:6:"escape";s:4:"true";}' ?><?php $attr12 = array('class'=>'text','raw'=>'__','escape'=>true) ?><?php $attr12_class='text' ?><?php $attr12_raw='__' ?><?php $attr12_escape=true ?><?php +?><a<?php if (isset($attr11_name)) echo ' name="'.$attr11_name.'"'; else echo ' href="'.$tmp_url.($attr11_anchor?'#'.$attr11_anchor:'').'"' ?> class="<?php echo $attr11_class ?>" target="<?php echo $attr11_target ?>"<?php if (isset($attr11_accesskey)) echo ' accesskey="'.$attr11_accesskey.'"' ?> title="<?php echo encodeHtml($attr11_title) ?>"><?php unset($attr11) ?><?php unset($attr11_title) ?><?php unset($attr11_target) ?><?php unset($attr11_url) ?><?php unset($attr11_class) ?><?php $attr12_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:2:"__";s:6:"escape";s:4:"true";}' ?><?php $attr12 = array('class'=>'text','raw'=>'__','escape'=>true) ?><?php $attr12_class='text' ?><?php $attr12_raw='__' ?><?php $attr12_escape=true ?><?php if ( isset($attr12_prefix)&& isset($attr12_key)) $attr12_key = $attr12_prefix.$attr12_key; if ( isset($attr12_suffix)&& isset($attr12_key)) @@ -1667,7 +1675,7 @@ if (isset($attr9_elementtype)) { } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr12) ?><?php unset($attr12_class) ?><?php unset($attr12_raw) ?><?php unset($attr12_escape) ?><?php $attr12_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:6:"var:nr";s:6:"escape";s:4:"true";}' ?><?php $attr12 = array('class'=>'text','text'=>$nr,'escape'=>true) ?><?php $attr12_class='text' ?><?php $attr12_text=$nr ?><?php $attr12_escape=true ?><?php +?></<?php echo $tmp_tag ?>><?php unset($attr12) ?><?php unset($attr12_class) ?><?php unset($attr12_raw) ?><?php unset($attr12_escape) ?><?php $attr12_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:2:"nr";s:6:"escape";s:4:"true";}' ?><?php $attr12 = array('class'=>'text','var'=>'nr','escape'=>true) ?><?php $attr12_class='text' ?><?php $attr12_var='nr' ?><?php $attr12_escape=true ?><?php if ( isset($attr12_prefix)&& isset($attr12_key)) $attr12_key = $attr12_prefix.$attr12_key; if ( isset($attr12_suffix)&& isset($attr12_key)) @@ -1732,7 +1740,7 @@ if (isset($attr9_elementtype)) { } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr12) ?><?php unset($attr12_class) ?><?php unset($attr12_text) ?><?php unset($attr12_escape) ?><?php $attr12_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:2:"__";s:6:"escape";s:4:"true";}' ?><?php $attr12 = array('class'=>'text','raw'=>'__','escape'=>true) ?><?php $attr12_class='text' ?><?php $attr12_raw='__' ?><?php $attr12_escape=true ?><?php +?></<?php echo $tmp_tag ?>><?php unset($attr12) ?><?php unset($attr12_class) ?><?php unset($attr12_var) ?><?php unset($attr12_escape) ?><?php $attr12_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:2:"__";s:6:"escape";s:4:"true";}' ?><?php $attr12 = array('class'=>'text','raw'=>'__','escape'=>true) ?><?php $attr12_class='text' ?><?php $attr12_raw='__' ?><?php $attr12_escape=true ?><?php if ( isset($attr12_prefix)&& isset($attr12_key)) $attr12_key = $attr12_prefix.$attr12_key; if ( isset($attr12_suffix)&& isset($attr12_key)) @@ -1944,7 +1952,7 @@ if (isset($attr9_elementtype)) { $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) $attr7['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_colspan) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:12:"message:date";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','text'=>lang('date'),'escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_text=lang('date') ?><?php $attr8_escape=true ?><?php +?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_colspan) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:4:"date";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','key'=>'date','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_key='date' ?><?php $attr8_escape=true ?><?php if ( isset($attr8_prefix)&& isset($attr8_key)) $attr8_key = $attr8_prefix.$attr8_key; if ( isset($attr8_suffix)&& isset($attr8_key)) @@ -2009,7 +2017,7 @@ if (isset($attr9_elementtype)) { } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_text) ?><?php unset($attr8_escape) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr7_debug_info = 'a:2:{s:5:"class";s:2:"fx";s:7:"colspan";s:1:"5";}' ?><?php $attr7 = array('class'=>'fx','colspan'=>'5') ?><?php $attr7_class='fx' ?><?php $attr7_colspan='5' ?><?php +?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_key) ?><?php unset($attr8_escape) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr7_debug_info = 'a:2:{s:5:"class";s:2:"fx";s:7:"colspan";s:1:"5";}' ?><?php $attr7 = array('class'=>'fx','colspan'=>'5') ?><?php $attr7_class='fx' ?><?php $attr7_colspan='5' ?><?php $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; @@ -2312,7 +2320,7 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) $attr7['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_colspan) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:17:"message:date_time";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','text'=>lang('date_time'),'escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_text=lang('date_time') ?><?php $attr8_escape=true ?><?php +?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_colspan) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:9:"date_time";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','key'=>'date_time','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_key='date_time' ?><?php $attr8_escape=true ?><?php if ( isset($attr8_prefix)&& isset($attr8_key)) $attr8_key = $attr8_prefix.$attr8_key; if ( isset($attr8_suffix)&& isset($attr8_key)) @@ -2377,7 +2385,7 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_text) ?><?php unset($attr8_escape) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr7_debug_info = 'a:2:{s:5:"class";s:2:"fx";s:7:"colspan";s:1:"5";}' ?><?php $attr7 = array('class'=>'fx','colspan'=>'5') ?><?php $attr7_class='fx' ?><?php $attr7_colspan='5' ?><?php +?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_key) ?><?php unset($attr8_escape) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr7_debug_info = 'a:2:{s:5:"class";s:2:"fx";s:7:"colspan";s:1:"5";}' ?><?php $attr7 = array('class'=>'fx','colspan'=>'5') ?><?php $attr7_class='fx' ?><?php $attr7_colspan='5' ?><?php $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; @@ -2744,7 +2752,7 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7_debug_info = 'a:8:{s:5:"class";s:4:"text";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:4:"text";s:4:"size";s:2:"50";s:9:"maxlength";s:3:"255";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr7 = array('class'=>'text','default'=>'','type'=>'text','name'=>'text','size'=>'50','maxlength'=>'255','onchange'=>'','readonly'=>false) ?><?php $attr7_class='text' ?><?php $attr7_default='' ?><?php $attr7_type='text' ?><?php $attr7_name='text' ?><?php $attr7_size='50' ?><?php $attr7_maxlength='255' ?><?php $attr7_onchange='' ?><?php $attr7_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; if ($attr7_readonly && empty($$attr7_name)) $$attr7_name = '- '.lang('EMPTY').' -'; if(!isset($attr7_default)) $attr7_default=''; -?><?php if (!$attr7_readonly) { +?><?php if (!$attr7_readonly || $attr7_type=='hidden') { ?><input<?php if ($attr7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" name="<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" type="<?php echo $attr7_type ?>" size="<?php echo $attr7_size ?>" maxlength="<?php echo $attr7_maxlength ?>" class="<?php echo $attr7_class ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" <?php if (in_array($attr7_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr7_readonly) { ?><input type="hidden" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" /><?php @@ -3803,7 +3811,7 @@ else ?><input type="hidden" name="<?php echo $attr7_name ?>" value="<?php echo $attr7_tmp_value ?>" /><?php unset($attr7) ?><?php unset($attr7_name) ?><?php unset($attr7_default) ?><?php $attr7_debug_info = 'a:8:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:6:"number";s:4:"size";s:2:"15";s:9:"maxlength";s:2:"20";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr7 = array('class'=>'','default'=>'','type'=>'text','name'=>'number','size'=>'15','maxlength'=>'20','onchange'=>'','readonly'=>false) ?><?php $attr7_class='' ?><?php $attr7_default='' ?><?php $attr7_type='text' ?><?php $attr7_name='number' ?><?php $attr7_size='15' ?><?php $attr7_maxlength='20' ?><?php $attr7_onchange='' ?><?php $attr7_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; if ($attr7_readonly && empty($$attr7_name)) $$attr7_name = '- '.lang('EMPTY').' -'; if(!isset($attr7_default)) $attr7_default=''; -?><?php if (!$attr7_readonly) { +?><?php if (!$attr7_readonly || $attr7_type=='hidden') { ?><input<?php if ($attr7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" name="<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" type="<?php echo $attr7_type ?>" size="<?php echo $attr7_size ?>" maxlength="<?php echo $attr7_maxlength ?>" class="<?php echo $attr7_class ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" <?php if (in_array($attr7_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr7_readonly) { ?><input type="hidden" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" /><?php @@ -4091,7 +4099,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) $attr7['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php unset($attr7_colspan) ?><?php $attr8_debug_info = 'a:1:{s:5:"title";s:15:"message:options";}' ?><?php $attr8 = array('title'=>lang('options')) ?><?php $attr8_title=lang('options') ?><fieldset><?php if(isset($attr8_title)) { ?><legend><?php echo $attr8_title ?></legend><?php } ?><?php unset($attr8) ?><?php unset($attr8_title) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?></fieldset><?php unset($attr7) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></tr><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php } ?><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:1:{s:7:"present";s:7:"release";}' ?><?php $attr4 = array('present'=>'release') ?><?php $attr4_present='release' ?><?php +?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php unset($attr7_colspan) ?><?php $attr8_debug_info = 'a:1:{s:5:"title";s:15:"message:options";}' ?><?php $attr8 = array('title'=>lang('options')) ?><?php $attr8_title=lang('options') ?><fieldset><?php if(isset($attr8_title)) { ?><legend><?php echo encodeHtml($attr8_title) ?></legend><?php } ?><?php unset($attr8) ?><?php unset($attr8_title) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?></fieldset><?php unset($attr7) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></tr><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php } ?><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:1:{s:7:"present";s:7:"release";}' ?><?php $attr4 = array('present'=>'release') ?><?php $attr4_present='release' ?><?php if ( isset($attr4_true) ) { if (gettype($attr4_true) === '' && gettype($attr4_true) === '1') diff --git a/themes/default/pages/html/pageelement/archive.tpl.php b/themes/default/pages/html/pageelement/archive.tpl.php @@ -90,8 +90,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -1623,7 +1623,7 @@ $tmp_url = $attr9_url; else $tmp_url = Html::url($attr9_action,$attr9_subaction,!empty($attr9_id)?$attr9_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr9_class ?>" target="<?php echo $attr9_target ?>"<?php if (isset($attr9_accesskey)) echo ' accesskey="'.$attr9_accesskey.'"' ?> title="<?php echo encodeHtml($attr9_title) ?>"><?php unset($attr9) ?><?php unset($attr9_title) ?><?php unset($attr9_target) ?><?php unset($attr9_url) ?><?php unset($attr9_class) ?><?php $attr10_debug_info = 'a:4:{s:5:"class";s:4:"text";s:3:"key";s:14:"GLOBAL_RELEASE";s:6:"escape";s:4:"true";s:4:"type";s:6:"strong";}' ?><?php $attr10 = array('class'=>'text','key'=>'GLOBAL_RELEASE','escape'=>true,'type'=>'strong') ?><?php $attr10_class='text' ?><?php $attr10_key='GLOBAL_RELEASE' ?><?php $attr10_escape=true ?><?php $attr10_type='strong' ?><?php +?><a<?php if (isset($attr9_name)) echo ' name="'.$attr9_name.'"'; else echo ' href="'.$tmp_url.($attr9_anchor?'#'.$attr9_anchor:'').'"' ?> class="<?php echo $attr9_class ?>" target="<?php echo $attr9_target ?>"<?php if (isset($attr9_accesskey)) echo ' accesskey="'.$attr9_accesskey.'"' ?> title="<?php echo encodeHtml($attr9_title) ?>"><?php unset($attr9) ?><?php unset($attr9_title) ?><?php unset($attr9_target) ?><?php unset($attr9_url) ?><?php unset($attr9_class) ?><?php $attr10_debug_info = 'a:4:{s:5:"class";s:4:"text";s:3:"key";s:14:"GLOBAL_RELEASE";s:6:"escape";s:4:"true";s:4:"type";s:6:"strong";}' ?><?php $attr10 = array('class'=>'text','key'=>'GLOBAL_RELEASE','escape'=>true,'type'=>'strong') ?><?php $attr10_class='text' ?><?php $attr10_key='GLOBAL_RELEASE' ?><?php $attr10_escape=true ?><?php $attr10_type='strong' ?><?php if ( isset($attr10_prefix)&& isset($attr10_key)) $attr10_key = $attr10_prefix.$attr10_key; if ( isset($attr10_suffix)&& isset($attr10_key)) @@ -1973,7 +1973,7 @@ $tmp_url = $attr9_url; else $tmp_url = Html::url($attr9_action,$attr9_subaction,!empty($attr9_id)?$attr9_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr9_class ?>" target="<?php echo $attr9_target ?>"<?php if (isset($attr9_accesskey)) echo ' accesskey="'.$attr9_accesskey.'"' ?> title="<?php echo encodeHtml($attr9_title) ?>"><?php unset($attr9) ?><?php unset($attr9_title) ?><?php unset($attr9_target) ?><?php unset($attr9_url) ?><?php unset($attr9_class) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:10:"GLOBAL_USE";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','key'=>'GLOBAL_USE','escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_key='GLOBAL_USE' ?><?php $attr10_escape=true ?><?php +?><a<?php if (isset($attr9_name)) echo ' name="'.$attr9_name.'"'; else echo ' href="'.$tmp_url.($attr9_anchor?'#'.$attr9_anchor:'').'"' ?> class="<?php echo $attr9_class ?>" target="<?php echo $attr9_target ?>"<?php if (isset($attr9_accesskey)) echo ' accesskey="'.$attr9_accesskey.'"' ?> title="<?php echo encodeHtml($attr9_title) ?>"><?php unset($attr9) ?><?php unset($attr9_title) ?><?php unset($attr9_target) ?><?php unset($attr9_url) ?><?php unset($attr9_class) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:10:"GLOBAL_USE";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','key'=>'GLOBAL_USE','escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_key='GLOBAL_USE' ?><?php $attr10_escape=true ?><?php if ( isset($attr10_prefix)&& isset($attr10_key)) $attr10_key = $attr10_prefix.$attr10_key; if ( isset($attr10_suffix)&& isset($attr10_key)) diff --git a/themes/default/pages/html/pageelement/diff.tpl.php b/themes/default/pages/html/pageelement/diff.tpl.php @@ -90,8 +90,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) diff --git a/themes/default/pages/html/pageelement/edit.tpl.php b/themes/default/pages/html/pageelement/edit.tpl.php @@ -97,8 +97,8 @@ if ($attr3_readonly) { echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -334,7 +334,7 @@ if ($attr3_readonly) { global $cell_column_nr; $cell_column_nr=0; $column_class_idx = 999; -?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6_debug_info = 'a:2:{s:5:"class";s:2:"fx";s:7:"colspan";s:1:"2";}' ?><?php $attr6 = array('class'=>'fx','colspan'=>'2') ?><?php $attr6_class='fx' ?><?php $attr6_colspan='2' ?><?php +?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6_debug_info = 'a:1:{s:7:"colspan";s:1:"2";}' ?><?php $attr6 = array('colspan'=>'2') ?><?php $attr6_colspan='2' ?><?php $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; @@ -345,20 +345,2679 @@ if ($attr3_readonly) { $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7_debug_info = 'a:8:{s:5:"class";s:8:"ansidate";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:8:"ansidate";s:4:"size";s:2:"25";s:9:"maxlength";s:2:"25";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr7 = array('class'=>'ansidate','default'=>'','type'=>'text','name'=>'ansidate','size'=>'25','maxlength'=>'25','onchange'=>'','readonly'=>false) ?><?php $attr7_class='ansidate' ?><?php $attr7_default='' ?><?php $attr7_type='text' ?><?php $attr7_name='ansidate' ?><?php $attr7_size='25' ?><?php $attr7_maxlength='25' ?><?php $attr7_onchange='' ?><?php $attr7_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; - if ($attr7_readonly && empty($$attr7_name)) $$attr7_name = '- '.lang('EMPTY').' -'; - if(!isset($attr7_default)) $attr7_default=''; -?><?php if (!$attr7_readonly || $attr7_type=='hidden') { -?><input<?php if ($attr7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" name="<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" type="<?php echo $attr7_type ?>" size="<?php echo $attr7_size ?>" maxlength="<?php echo $attr7_maxlength ?>" class="<?php echo $attr7_class ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" <?php if (in_array($attr7_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php -if ($attr7_readonly) { -?><input type="hidden" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" /><?php - } } else { ?><span class="<?php echo $attr7_class ?>"><?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?></span><?php } ?><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_default) ?><?php unset($attr7_type) ?><?php unset($attr7_name) ?><?php unset($attr7_size) ?><?php unset($attr7_maxlength) ?><?php unset($attr7_onchange) ?><?php unset($attr7_readonly) ?><?php $attr7_debug_info = 'a:1:{s:5:"field";s:8:"ansidate";}' ?><?php $attr7 = array('field'=>'ansidate') ?><?php $attr7_field='ansidate' ?><?php -if (isset($errors[0])) $attr7_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $attr7_field ?>.focus(); -document.forms[0].<?php echo $attr7_field ?>.select(); -</script> -<?php unset($attr7) ?><?php unset($attr7_field) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:2:{s:6:"equals";s:4:"text";s:5:"value";s:8:"var:type";}' ?><?php $attr4 = array('equals'=>'text','value'=>$type) ?><?php $attr4_equals='text' ?><?php $attr4_value=$type ?><?php +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_colspan) ?><?php $attr7_debug_info = 'a:1:{s:5:"title";s:16:"message:calendar";}' ?><?php $attr7 = array('title'=>lang('calendar')) ?><?php $attr7_title=lang('calendar') ?><fieldset><?php if(isset($attr7_title)) { ?><legend><?php echo encodeHtml($attr7_title) ?></legend><?php } ?><?php unset($attr7) ?><?php unset($attr7_title) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></fieldset><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + if (empty($attr5_class)) + $attr5_class=$row_class; + global $cell_column_nr; + $cell_column_nr=0; + $column_class_idx = 999; +?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6_debug_info = 'a:1:{s:7:"colspan";s:1:"2";}' ?><?php $attr6 = array('colspan'=>'2') ?><?php $attr6_colspan='2' ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr6_class)) + $attr6['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) + $attr6['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_colspan) ?><?php $attr7_debug_info = 'a:5:{s:5:"class";s:8:"calendar";s:5:"width";s:3:"85%";s:5:"space";s:3:"0px";s:7:"padding";s:3:"0px";s:10:"rowclasses";s:8:"odd,even";}' ?><?php $attr7 = array('class'=>'calendar','width'=>'85%','space'=>'0px','padding'=>'0px','rowclasses'=>'odd,even') ?><?php $attr7_class='calendar' ?><?php $attr7_width='85%' ?><?php $attr7_space='0px' ?><?php $attr7_padding='0px' ?><?php $attr7_rowclasses='odd,even' ?><?php + $coloumn_widths=array(); + $row_classes = array(''); + $column_classes= array(''); + if(empty($attr7_class)) + $attr7_class=''; + if (!empty($attr7_widths)) + { + $column_widths = explode(',',$attr7_widths); + unset($attr7['widths']); + } + if (!empty($attr7_classes)) + { + $row_classes = explode(',',$attr7_rowclasses); + $row_class_idx = 999; + unset($attr7['rowclasses']); + } + if (!empty($attr7_rowclasses)) + { + $row_classes = explode(',',$attr7_rowclasses); + $row_class_idx = 999; + unset($attr7['rowclasses']); + } + if (!empty($attr7_columnclasses)) + { + $column_classes = explode(',',$attr7_columnclasses); + unset($attr7['columnclasses']); + } +?><table class="<?php echo $attr7_class ?>" cellspacing="<?php echo $attr7_space ?>" width="<?php echo $attr7_width ?>" cellpadding="<?php echo $attr7_padding ?>"><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_width) ?><?php unset($attr7_space) ?><?php unset($attr7_padding) ?><?php unset($attr7_rowclasses) ?><?php $attr8_debug_info = 'a:0:{}' ?><?php $attr8 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + if (empty($attr8_class)) + $attr8_class=$row_class; + global $cell_column_nr; + $cell_column_nr=0; + $column_class_idx = 999; +?><tr class="<?php echo $attr8_class ?>"><?php unset($attr8) ?><?php $attr9_debug_info = 'a:2:{s:5:"class";s:4:"help";s:7:"colspan";s:1:"8";}' ?><?php $attr9 = array('class'=>'help','colspan'=>'8') ?><?php $attr9_class='help' ?><?php $attr9_colspan='8' ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr9_class)) + $attr9['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr9_rowspan) ) + $attr9['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr9 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr9) ?><?php unset($attr9_class) ?><?php unset($attr9_colspan) ?><?php $attr10_debug_info = 'a:1:{s:4:"true";s:9:"mode:edit";}' ?><?php $attr10 = array('true'=>$this->getRequestVar("mode")=="edit") ?><?php $attr10_true=$this->getRequestVar("mode")=="edit" ?><?php + if ( isset($attr10_true) ) + { + if (gettype($attr10_true) === '' && gettype($attr10_true) === '1') + $exec = $$attr10_true == true; + else + $exec = $attr10_true == true; + } + elseif ( isset($attr10_false) ) + { + if (gettype($attr10_false) === '' && gettype($attr10_false) === '1') + $exec = $$attr10_false == false; + else + $exec = $attr10_false == false; + } + elseif( isset($attr10_contains) ) + $exec = in_array($attr10_value,explode(',',$attr10_contains)); + elseif( isset($attr10_equals)&& isset($attr10_value) ) + $exec = $attr10_equals == $attr10_value; + elseif( isset($attr10_lessthan)&& isset($attr10_value) ) + $exec = intval($attr10_lessthan) > intval($attr10_value); + elseif( isset($attr10_greaterthan)&& isset($attr10_value) ) + $exec = intval($attr10_greaterthan) < intval($attr10_value); + elseif ( isset($attr10_empty) ) + { + if ( !isset($$attr10_empty) ) + $exec = empty($attr10_empty); + elseif ( is_array($$attr10_empty) ) + $exec = (count($$attr10_empty)==0); + elseif ( is_bool($$attr10_empty) ) + $exec = true; + else + $exec = empty( $$attr10_empty ); + } + elseif ( isset($attr10_present) ) + { + $exec = isset($$attr10_present); + } + else + { + trigger_error("error in IF, assume: FALSE"); + $exec = false; + } + if ( !empty($attr10_invert) ) + $exec = !$exec; + if ( !empty($attr10_not) ) + $exec = !$exec; + unset($attr10_true); + unset($attr10_false); + unset($attr10_notempty); + unset($attr10_empty); + unset($attr10_contains); + unset($attr10_present); + unset($attr10_invert); + unset($attr10_not); + unset($attr10_value); + unset($attr10_equals); + $last_exec = $exec; + if ( $exec ) + { +?> +<?php unset($attr10) ?><?php unset($attr10_true) ?><?php $attr11_debug_info = 'a:4:{s:5:"title";s:0:"";s:6:"target";s:5:"_self";s:3:"url";s:16:"var:lastmonthurl";s:5:"class";s:0:"";}' ?><?php $attr11 = array('title'=>'','target'=>'_self','url'=>$lastmonthurl,'class'=>'') ?><?php $attr11_title='' ?><?php $attr11_target='_self' ?><?php $attr11_url=$lastmonthurl ?><?php $attr11_class='' ?><?php + $params = array(); + if (!empty($attr11_var1) && isset($attr11_value1)) + $params[$attr11_var1]=$attr11_value1; + if (!empty($attr11_var2) && isset($attr11_value2)) + $params[$attr11_var2]=$attr11_value2; + if (!empty($attr11_var3) && isset($attr11_value3)) + $params[$attr11_var3]=$attr11_value3; + if (!empty($attr11_var4) && isset($attr11_value4)) + $params[$attr11_var4]=$attr11_value4; + if (!empty($attr11_var5) && isset($attr11_value5)) + $params[$attr11_var5]=$attr11_value5; + if(empty($attr11_class)) + $attr11_class=''; + if(empty($attr11_title)) + $attr11_title = ''; + if(!empty($attr11_url)) + $tmp_url = $attr11_url; + else + $tmp_url = Html::url($attr11_action,$attr11_subaction,!empty($attr11_id)?$attr11_id:$this->getRequestId(),$params); +?><a<?php if (isset($attr11_name)) echo ' name="'.$attr11_name.'"'; else echo ' href="'.$tmp_url.($attr11_anchor?'#'.$attr11_anchor:'').'"' ?> class="<?php echo $attr11_class ?>" target="<?php echo $attr11_target ?>"<?php if (isset($attr11_accesskey)) echo ' accesskey="'.$attr11_accesskey.'"' ?> title="<?php echo encodeHtml($attr11_title) ?>"><?php unset($attr11) ?><?php unset($attr11_title) ?><?php unset($attr11_target) ?><?php unset($attr11_url) ?><?php unset($attr11_class) ?><?php $attr12_debug_info = 'a:2:{s:4:"file";s:4:"left";s:5:"align";s:6:"middle";}' ?><?php $attr12 = array('file'=>'left','align'=>'middle') ?><?php $attr12_file='left' ?><?php $attr12_align='middle' ?><?php +if (isset($attr12_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr12_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr12_align ?>"><?php +} elseif (isset($attr12_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr12_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr12_align ?>"><?php +} elseif (isset($attr12_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr12_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr12_align ?>"><?php +} elseif (isset($attr12_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr12_tree.IMG_EXT ?>" border="0" align="<?php echo $attr12_align ?>"><?php +} elseif (isset($attr12_url)) { +?><img src="<?php echo $attr12_url ?>" border="0" align="<?php echo $attr12_align ?>"><?php +} elseif (isset($attr12_fileext)) { +?><img src="<?php echo $image_dir.$attr12_fileext ?>" border="0" align="<?php echo $attr12_align ?>"><?php +} elseif (isset($attr12_file)) { +?><img src="<?php echo $image_dir.$attr12_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr12_align ?>"><?php } ?><?php unset($attr12) ?><?php unset($attr12_file) ?><?php unset($attr12_align) ?><?php $attr10_debug_info = 'a:0:{}' ?><?php $attr10 = array() ?></a><?php unset($attr10) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:1:"_";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','raw'=>'_','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_raw='_' ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) + $tmp_tag = 'span'; + else + switch( $attr11_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr11_array)) + { + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; + else + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_raw) ?><?php unset($attr11_escape) ?><?php $attr9_debug_info = 'a:0:{}' ?><?php $attr9 = array() ?><?php } ?><?php unset($attr9) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:9:"monthname";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','var'=>'monthname','escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_var='monthname' ?><?php $attr10_escape=true ?><?php + if ( isset($attr10_prefix)&& isset($attr10_key)) + $attr10_key = $attr10_prefix.$attr10_key; + if ( isset($attr10_suffix)&& isset($attr10_key)) + $attr10_key = $attr10_key.$attr10_suffix; + if(empty($attr10_title)) + $attr10_title = ''; + if (empty($attr10_type)) + $tmp_tag = 'span'; + else + switch( $attr10_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php + $attr10_title = ''; + if ( $attr10_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr10_array)) + { + $tmpArray = $$attr10_array; + if (!empty($attr10_var)) + $tmp_text = $tmpArray[$attr10_var]; + else + $tmp_text = $langF($tmpArray[$attr10_text]); + } + elseif (!empty($attr10_text)) + $tmp_text = $langF($attr10_text); + elseif (!empty($attr10_textvar)) + $tmp_text = $langF($$attr10_textvar); + elseif (!empty($attr10_key)) + $tmp_text = $langF($attr10_key); + elseif (!empty($attr10_var)) + $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; + elseif (!empty($attr10_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr10_raw); + elseif (!empty($attr10_value)) + $tmp_text = $attr10_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); + if (isset($attr10_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_var) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:1:{s:4:"true";s:9:"mode:edit";}' ?><?php $attr10 = array('true'=>$this->getRequestVar("mode")=="edit") ?><?php $attr10_true=$this->getRequestVar("mode")=="edit" ?><?php + if ( isset($attr10_true) ) + { + if (gettype($attr10_true) === '' && gettype($attr10_true) === '1') + $exec = $$attr10_true == true; + else + $exec = $attr10_true == true; + } + elseif ( isset($attr10_false) ) + { + if (gettype($attr10_false) === '' && gettype($attr10_false) === '1') + $exec = $$attr10_false == false; + else + $exec = $attr10_false == false; + } + elseif( isset($attr10_contains) ) + $exec = in_array($attr10_value,explode(',',$attr10_contains)); + elseif( isset($attr10_equals)&& isset($attr10_value) ) + $exec = $attr10_equals == $attr10_value; + elseif( isset($attr10_lessthan)&& isset($attr10_value) ) + $exec = intval($attr10_lessthan) > intval($attr10_value); + elseif( isset($attr10_greaterthan)&& isset($attr10_value) ) + $exec = intval($attr10_greaterthan) < intval($attr10_value); + elseif ( isset($attr10_empty) ) + { + if ( !isset($$attr10_empty) ) + $exec = empty($attr10_empty); + elseif ( is_array($$attr10_empty) ) + $exec = (count($$attr10_empty)==0); + elseif ( is_bool($$attr10_empty) ) + $exec = true; + else + $exec = empty( $$attr10_empty ); + } + elseif ( isset($attr10_present) ) + { + $exec = isset($$attr10_present); + } + else + { + trigger_error("error in IF, assume: FALSE"); + $exec = false; + } + if ( !empty($attr10_invert) ) + $exec = !$exec; + if ( !empty($attr10_not) ) + $exec = !$exec; + unset($attr10_true); + unset($attr10_false); + unset($attr10_notempty); + unset($attr10_empty); + unset($attr10_contains); + unset($attr10_present); + unset($attr10_invert); + unset($attr10_not); + unset($attr10_value); + unset($attr10_equals); + $last_exec = $exec; + if ( $exec ) + { +?> +<?php unset($attr10) ?><?php unset($attr10_true) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:1:"_";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','raw'=>'_','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_raw='_' ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) + $tmp_tag = 'span'; + else + switch( $attr11_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr11_array)) + { + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; + else + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_raw) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:4:{s:5:"title";s:0:"";s:6:"target";s:5:"_self";s:3:"url";s:16:"var:nextmonthurl";s:5:"class";s:0:"";}' ?><?php $attr11 = array('title'=>'','target'=>'_self','url'=>$nextmonthurl,'class'=>'') ?><?php $attr11_title='' ?><?php $attr11_target='_self' ?><?php $attr11_url=$nextmonthurl ?><?php $attr11_class='' ?><?php + $params = array(); + if (!empty($attr11_var1) && isset($attr11_value1)) + $params[$attr11_var1]=$attr11_value1; + if (!empty($attr11_var2) && isset($attr11_value2)) + $params[$attr11_var2]=$attr11_value2; + if (!empty($attr11_var3) && isset($attr11_value3)) + $params[$attr11_var3]=$attr11_value3; + if (!empty($attr11_var4) && isset($attr11_value4)) + $params[$attr11_var4]=$attr11_value4; + if (!empty($attr11_var5) && isset($attr11_value5)) + $params[$attr11_var5]=$attr11_value5; + if(empty($attr11_class)) + $attr11_class=''; + if(empty($attr11_title)) + $attr11_title = ''; + if(!empty($attr11_url)) + $tmp_url = $attr11_url; + else + $tmp_url = Html::url($attr11_action,$attr11_subaction,!empty($attr11_id)?$attr11_id:$this->getRequestId(),$params); +?><a<?php if (isset($attr11_name)) echo ' name="'.$attr11_name.'"'; else echo ' href="'.$tmp_url.($attr11_anchor?'#'.$attr11_anchor:'').'"' ?> class="<?php echo $attr11_class ?>" target="<?php echo $attr11_target ?>"<?php if (isset($attr11_accesskey)) echo ' accesskey="'.$attr11_accesskey.'"' ?> title="<?php echo encodeHtml($attr11_title) ?>"><?php unset($attr11) ?><?php unset($attr11_title) ?><?php unset($attr11_target) ?><?php unset($attr11_url) ?><?php unset($attr11_class) ?><?php $attr12_debug_info = 'a:2:{s:4:"file";s:5:"right";s:5:"align";s:6:"middle";}' ?><?php $attr12 = array('file'=>'right','align'=>'middle') ?><?php $attr12_file='right' ?><?php $attr12_align='middle' ?><?php +if (isset($attr12_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr12_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr12_align ?>"><?php +} elseif (isset($attr12_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr12_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr12_align ?>"><?php +} elseif (isset($attr12_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr12_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr12_align ?>"><?php +} elseif (isset($attr12_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr12_tree.IMG_EXT ?>" border="0" align="<?php echo $attr12_align ?>"><?php +} elseif (isset($attr12_url)) { +?><img src="<?php echo $attr12_url ?>" border="0" align="<?php echo $attr12_align ?>"><?php +} elseif (isset($attr12_fileext)) { +?><img src="<?php echo $image_dir.$attr12_fileext ?>" border="0" align="<?php echo $attr12_align ?>"><?php +} elseif (isset($attr12_file)) { +?><img src="<?php echo $image_dir.$attr12_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr12_align ?>"><?php } ?><?php unset($attr12) ?><?php unset($attr12_file) ?><?php unset($attr12_align) ?><?php $attr10_debug_info = 'a:0:{}' ?><?php $attr10 = array() ?></a><?php unset($attr10) ?><?php $attr9_debug_info = 'a:0:{}' ?><?php $attr9 = array() ?><?php } ?><?php unset($attr9) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:5:"_____";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','raw'=>'_____','escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_raw='_____' ?><?php $attr10_escape=true ?><?php + if ( isset($attr10_prefix)&& isset($attr10_key)) + $attr10_key = $attr10_prefix.$attr10_key; + if ( isset($attr10_suffix)&& isset($attr10_key)) + $attr10_key = $attr10_key.$attr10_suffix; + if(empty($attr10_title)) + $attr10_title = ''; + if (empty($attr10_type)) + $tmp_tag = 'span'; + else + switch( $attr10_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php + $attr10_title = ''; + if ( $attr10_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr10_array)) + { + $tmpArray = $$attr10_array; + if (!empty($attr10_var)) + $tmp_text = $tmpArray[$attr10_var]; + else + $tmp_text = $langF($tmpArray[$attr10_text]); + } + elseif (!empty($attr10_text)) + $tmp_text = $langF($attr10_text); + elseif (!empty($attr10_textvar)) + $tmp_text = $langF($$attr10_textvar); + elseif (!empty($attr10_key)) + $tmp_text = $langF($attr10_key); + elseif (!empty($attr10_var)) + $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; + elseif (!empty($attr10_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr10_raw); + elseif (!empty($attr10_value)) + $tmp_text = $attr10_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); + if (isset($attr10_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_raw) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:1:{s:4:"true";s:9:"mode:edit";}' ?><?php $attr10 = array('true'=>$this->getRequestVar("mode")=="edit") ?><?php $attr10_true=$this->getRequestVar("mode")=="edit" ?><?php + if ( isset($attr10_true) ) + { + if (gettype($attr10_true) === '' && gettype($attr10_true) === '1') + $exec = $$attr10_true == true; + else + $exec = $attr10_true == true; + } + elseif ( isset($attr10_false) ) + { + if (gettype($attr10_false) === '' && gettype($attr10_false) === '1') + $exec = $$attr10_false == false; + else + $exec = $attr10_false == false; + } + elseif( isset($attr10_contains) ) + $exec = in_array($attr10_value,explode(',',$attr10_contains)); + elseif( isset($attr10_equals)&& isset($attr10_value) ) + $exec = $attr10_equals == $attr10_value; + elseif( isset($attr10_lessthan)&& isset($attr10_value) ) + $exec = intval($attr10_lessthan) > intval($attr10_value); + elseif( isset($attr10_greaterthan)&& isset($attr10_value) ) + $exec = intval($attr10_greaterthan) < intval($attr10_value); + elseif ( isset($attr10_empty) ) + { + if ( !isset($$attr10_empty) ) + $exec = empty($attr10_empty); + elseif ( is_array($$attr10_empty) ) + $exec = (count($$attr10_empty)==0); + elseif ( is_bool($$attr10_empty) ) + $exec = true; + else + $exec = empty( $$attr10_empty ); + } + elseif ( isset($attr10_present) ) + { + $exec = isset($$attr10_present); + } + else + { + trigger_error("error in IF, assume: FALSE"); + $exec = false; + } + if ( !empty($attr10_invert) ) + $exec = !$exec; + if ( !empty($attr10_not) ) + $exec = !$exec; + unset($attr10_true); + unset($attr10_false); + unset($attr10_notempty); + unset($attr10_empty); + unset($attr10_contains); + unset($attr10_present); + unset($attr10_invert); + unset($attr10_not); + unset($attr10_value); + unset($attr10_equals); + $last_exec = $exec; + if ( $exec ) + { +?> +<?php unset($attr10) ?><?php unset($attr10_true) ?><?php $attr11_debug_info = 'a:4:{s:5:"title";s:0:"";s:6:"target";s:5:"_self";s:3:"url";s:15:"var:lastyearurl";s:5:"class";s:0:"";}' ?><?php $attr11 = array('title'=>'','target'=>'_self','url'=>$lastyearurl,'class'=>'') ?><?php $attr11_title='' ?><?php $attr11_target='_self' ?><?php $attr11_url=$lastyearurl ?><?php $attr11_class='' ?><?php + $params = array(); + if (!empty($attr11_var1) && isset($attr11_value1)) + $params[$attr11_var1]=$attr11_value1; + if (!empty($attr11_var2) && isset($attr11_value2)) + $params[$attr11_var2]=$attr11_value2; + if (!empty($attr11_var3) && isset($attr11_value3)) + $params[$attr11_var3]=$attr11_value3; + if (!empty($attr11_var4) && isset($attr11_value4)) + $params[$attr11_var4]=$attr11_value4; + if (!empty($attr11_var5) && isset($attr11_value5)) + $params[$attr11_var5]=$attr11_value5; + if(empty($attr11_class)) + $attr11_class=''; + if(empty($attr11_title)) + $attr11_title = ''; + if(!empty($attr11_url)) + $tmp_url = $attr11_url; + else + $tmp_url = Html::url($attr11_action,$attr11_subaction,!empty($attr11_id)?$attr11_id:$this->getRequestId(),$params); +?><a<?php if (isset($attr11_name)) echo ' name="'.$attr11_name.'"'; else echo ' href="'.$tmp_url.($attr11_anchor?'#'.$attr11_anchor:'').'"' ?> class="<?php echo $attr11_class ?>" target="<?php echo $attr11_target ?>"<?php if (isset($attr11_accesskey)) echo ' accesskey="'.$attr11_accesskey.'"' ?> title="<?php echo encodeHtml($attr11_title) ?>"><?php unset($attr11) ?><?php unset($attr11_title) ?><?php unset($attr11_target) ?><?php unset($attr11_url) ?><?php unset($attr11_class) ?><?php $attr12_debug_info = 'a:2:{s:4:"file";s:4:"left";s:5:"align";s:6:"middle";}' ?><?php $attr12 = array('file'=>'left','align'=>'middle') ?><?php $attr12_file='left' ?><?php $attr12_align='middle' ?><?php +if (isset($attr12_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr12_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr12_align ?>"><?php +} elseif (isset($attr12_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr12_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr12_align ?>"><?php +} elseif (isset($attr12_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr12_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr12_align ?>"><?php +} elseif (isset($attr12_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr12_tree.IMG_EXT ?>" border="0" align="<?php echo $attr12_align ?>"><?php +} elseif (isset($attr12_url)) { +?><img src="<?php echo $attr12_url ?>" border="0" align="<?php echo $attr12_align ?>"><?php +} elseif (isset($attr12_fileext)) { +?><img src="<?php echo $image_dir.$attr12_fileext ?>" border="0" align="<?php echo $attr12_align ?>"><?php +} elseif (isset($attr12_file)) { +?><img src="<?php echo $image_dir.$attr12_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr12_align ?>"><?php } ?><?php unset($attr12) ?><?php unset($attr12_file) ?><?php unset($attr12_align) ?><?php $attr10_debug_info = 'a:0:{}' ?><?php $attr10 = array() ?></a><?php unset($attr10) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:1:"_";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','raw'=>'_','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_raw='_' ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) + $tmp_tag = 'span'; + else + switch( $attr11_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr11_array)) + { + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; + else + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_raw) ?><?php unset($attr11_escape) ?><?php $attr9_debug_info = 'a:0:{}' ?><?php $attr9 = array() ?><?php } ?><?php unset($attr9) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:8:"yearname";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','var'=>'yearname','escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_var='yearname' ?><?php $attr10_escape=true ?><?php + if ( isset($attr10_prefix)&& isset($attr10_key)) + $attr10_key = $attr10_prefix.$attr10_key; + if ( isset($attr10_suffix)&& isset($attr10_key)) + $attr10_key = $attr10_key.$attr10_suffix; + if(empty($attr10_title)) + $attr10_title = ''; + if (empty($attr10_type)) + $tmp_tag = 'span'; + else + switch( $attr10_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php + $attr10_title = ''; + if ( $attr10_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr10_array)) + { + $tmpArray = $$attr10_array; + if (!empty($attr10_var)) + $tmp_text = $tmpArray[$attr10_var]; + else + $tmp_text = $langF($tmpArray[$attr10_text]); + } + elseif (!empty($attr10_text)) + $tmp_text = $langF($attr10_text); + elseif (!empty($attr10_textvar)) + $tmp_text = $langF($$attr10_textvar); + elseif (!empty($attr10_key)) + $tmp_text = $langF($attr10_key); + elseif (!empty($attr10_var)) + $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; + elseif (!empty($attr10_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr10_raw); + elseif (!empty($attr10_value)) + $tmp_text = $attr10_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); + if (isset($attr10_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_var) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:1:{s:4:"true";s:9:"mode:edit";}' ?><?php $attr10 = array('true'=>$this->getRequestVar("mode")=="edit") ?><?php $attr10_true=$this->getRequestVar("mode")=="edit" ?><?php + if ( isset($attr10_true) ) + { + if (gettype($attr10_true) === '' && gettype($attr10_true) === '1') + $exec = $$attr10_true == true; + else + $exec = $attr10_true == true; + } + elseif ( isset($attr10_false) ) + { + if (gettype($attr10_false) === '' && gettype($attr10_false) === '1') + $exec = $$attr10_false == false; + else + $exec = $attr10_false == false; + } + elseif( isset($attr10_contains) ) + $exec = in_array($attr10_value,explode(',',$attr10_contains)); + elseif( isset($attr10_equals)&& isset($attr10_value) ) + $exec = $attr10_equals == $attr10_value; + elseif( isset($attr10_lessthan)&& isset($attr10_value) ) + $exec = intval($attr10_lessthan) > intval($attr10_value); + elseif( isset($attr10_greaterthan)&& isset($attr10_value) ) + $exec = intval($attr10_greaterthan) < intval($attr10_value); + elseif ( isset($attr10_empty) ) + { + if ( !isset($$attr10_empty) ) + $exec = empty($attr10_empty); + elseif ( is_array($$attr10_empty) ) + $exec = (count($$attr10_empty)==0); + elseif ( is_bool($$attr10_empty) ) + $exec = true; + else + $exec = empty( $$attr10_empty ); + } + elseif ( isset($attr10_present) ) + { + $exec = isset($$attr10_present); + } + else + { + trigger_error("error in IF, assume: FALSE"); + $exec = false; + } + if ( !empty($attr10_invert) ) + $exec = !$exec; + if ( !empty($attr10_not) ) + $exec = !$exec; + unset($attr10_true); + unset($attr10_false); + unset($attr10_notempty); + unset($attr10_empty); + unset($attr10_contains); + unset($attr10_present); + unset($attr10_invert); + unset($attr10_not); + unset($attr10_value); + unset($attr10_equals); + $last_exec = $exec; + if ( $exec ) + { +?> +<?php unset($attr10) ?><?php unset($attr10_true) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:1:"_";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','raw'=>'_','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_raw='_' ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) + $tmp_tag = 'span'; + else + switch( $attr11_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr11_array)) + { + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; + else + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_raw) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:4:{s:5:"title";s:0:"";s:6:"target";s:5:"_self";s:3:"url";s:15:"var:nextyearurl";s:5:"class";s:0:"";}' ?><?php $attr11 = array('title'=>'','target'=>'_self','url'=>$nextyearurl,'class'=>'') ?><?php $attr11_title='' ?><?php $attr11_target='_self' ?><?php $attr11_url=$nextyearurl ?><?php $attr11_class='' ?><?php + $params = array(); + if (!empty($attr11_var1) && isset($attr11_value1)) + $params[$attr11_var1]=$attr11_value1; + if (!empty($attr11_var2) && isset($attr11_value2)) + $params[$attr11_var2]=$attr11_value2; + if (!empty($attr11_var3) && isset($attr11_value3)) + $params[$attr11_var3]=$attr11_value3; + if (!empty($attr11_var4) && isset($attr11_value4)) + $params[$attr11_var4]=$attr11_value4; + if (!empty($attr11_var5) && isset($attr11_value5)) + $params[$attr11_var5]=$attr11_value5; + if(empty($attr11_class)) + $attr11_class=''; + if(empty($attr11_title)) + $attr11_title = ''; + if(!empty($attr11_url)) + $tmp_url = $attr11_url; + else + $tmp_url = Html::url($attr11_action,$attr11_subaction,!empty($attr11_id)?$attr11_id:$this->getRequestId(),$params); +?><a<?php if (isset($attr11_name)) echo ' name="'.$attr11_name.'"'; else echo ' href="'.$tmp_url.($attr11_anchor?'#'.$attr11_anchor:'').'"' ?> class="<?php echo $attr11_class ?>" target="<?php echo $attr11_target ?>"<?php if (isset($attr11_accesskey)) echo ' accesskey="'.$attr11_accesskey.'"' ?> title="<?php echo encodeHtml($attr11_title) ?>"><?php unset($attr11) ?><?php unset($attr11_title) ?><?php unset($attr11_target) ?><?php unset($attr11_url) ?><?php unset($attr11_class) ?><?php $attr12_debug_info = 'a:2:{s:4:"file";s:5:"right";s:5:"align";s:6:"middle";}' ?><?php $attr12 = array('file'=>'right','align'=>'middle') ?><?php $attr12_file='right' ?><?php $attr12_align='middle' ?><?php +if (isset($attr12_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr12_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr12_align ?>"><?php +} elseif (isset($attr12_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr12_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr12_align ?>"><?php +} elseif (isset($attr12_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr12_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr12_align ?>"><?php +} elseif (isset($attr12_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr12_tree.IMG_EXT ?>" border="0" align="<?php echo $attr12_align ?>"><?php +} elseif (isset($attr12_url)) { +?><img src="<?php echo $attr12_url ?>" border="0" align="<?php echo $attr12_align ?>"><?php +} elseif (isset($attr12_fileext)) { +?><img src="<?php echo $image_dir.$attr12_fileext ?>" border="0" align="<?php echo $attr12_align ?>"><?php +} elseif (isset($attr12_file)) { +?><img src="<?php echo $image_dir.$attr12_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr12_align ?>"><?php } ?><?php unset($attr12) ?><?php unset($attr12_file) ?><?php unset($attr12_align) ?><?php $attr10_debug_info = 'a:0:{}' ?><?php $attr10 = array() ?></a><?php unset($attr10) ?><?php $attr9_debug_info = 'a:0:{}' ?><?php $attr9 = array() ?><?php } ?><?php unset($attr9) ?><?php $attr8_debug_info = 'a:0:{}' ?><?php $attr8 = array() ?></td><?php unset($attr8) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?></tr><?php unset($attr7) ?><?php $attr8_debug_info = 'a:0:{}' ?><?php $attr8 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + if (empty($attr8_class)) + $attr8_class=$row_class; + global $cell_column_nr; + $cell_column_nr=0; + $column_class_idx = 999; +?><tr class="<?php echo $attr8_class ?>"><?php unset($attr8) ?><?php $attr9_debug_info = 'a:0:{}' ?><?php $attr9 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr9_class)) + $attr9['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr9_rowspan) ) + $attr9['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr9 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr9) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:4:"week";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','key'=>'week','escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_key='week' ?><?php $attr10_escape=true ?><?php + if ( isset($attr10_prefix)&& isset($attr10_key)) + $attr10_key = $attr10_prefix.$attr10_key; + if ( isset($attr10_suffix)&& isset($attr10_key)) + $attr10_key = $attr10_key.$attr10_suffix; + if(empty($attr10_title)) + $attr10_title = ''; + if (empty($attr10_type)) + $tmp_tag = 'span'; + else + switch( $attr10_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php + $attr10_title = ''; + if ( $attr10_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr10_array)) + { + $tmpArray = $$attr10_array; + if (!empty($attr10_var)) + $tmp_text = $tmpArray[$attr10_var]; + else + $tmp_text = $langF($tmpArray[$attr10_text]); + } + elseif (!empty($attr10_text)) + $tmp_text = $langF($attr10_text); + elseif (!empty($attr10_textvar)) + $tmp_text = $langF($$attr10_textvar); + elseif (!empty($attr10_key)) + $tmp_text = $langF($attr10_key); + elseif (!empty($attr10_var)) + $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; + elseif (!empty($attr10_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr10_raw); + elseif (!empty($attr10_value)) + $tmp_text = $attr10_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); + if (isset($attr10_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_key) ?><?php unset($attr10_escape) ?><?php $attr8_debug_info = 'a:0:{}' ?><?php $attr8 = array() ?></td><?php unset($attr8) ?><?php $attr9_debug_info = 'a:4:{s:4:"list";s:8:"weekdays";s:7:"extract";s:5:"false";s:3:"key";s:8:"list_key";s:5:"value";s:7:"weekday";}' ?><?php $attr9 = array('list'=>'weekdays','extract'=>false,'key'=>'list_key','value'=>'weekday') ?><?php $attr9_list='weekdays' ?><?php $attr9_extract=false ?><?php $attr9_key='list_key' ?><?php $attr9_value='weekday' ?><?php + $attr9_list_tmp_key = $attr9_key; + $attr9_list_tmp_value = $attr9_value; + $attr9_list_extract = $attr9_extract; + unset($attr9_key); + unset($attr9_value); + if ( !isset($$attr9_list) || !is_array($$attr9_list) ) + $$attr9_list = array(); + foreach( $$attr9_list as $$attr9_list_tmp_key => $$attr9_list_tmp_value ) + { + if ( $attr9_list_extract ) + { + if ( !is_array($$attr9_list_tmp_value) ) + { + print_r($$attr9_list_tmp_value); + die( 'not an array at key: '.$$attr9_list_tmp_key ); + } + extract($$attr9_list_tmp_value); + } +?><?php unset($attr9) ?><?php unset($attr9_list) ?><?php unset($attr9_extract) ?><?php unset($attr9_key) ?><?php unset($attr9_value) ?><?php $attr10_debug_info = 'a:0:{}' ?><?php $attr10 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr10_class)) + $attr10['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr10_rowspan) ) + $attr10['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr10 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr10) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:7:"weekday";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','var'=>'weekday','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_var='weekday' ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) + $tmp_tag = 'span'; + else + switch( $attr11_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr11_array)) + { + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; + else + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_var) ?><?php unset($attr11_escape) ?><?php $attr9_debug_info = 'a:0:{}' ?><?php $attr9 = array() ?></td><?php unset($attr9) ?><?php $attr8_debug_info = 'a:0:{}' ?><?php $attr8 = array() ?><?php } ?><?php unset($attr8) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?></tr><?php unset($attr7) ?><?php $attr8_debug_info = 'a:4:{s:4:"list";s:8:"weeklist";s:7:"extract";s:5:"false";s:3:"key";s:6:"weeknr";s:5:"value";s:4:"week";}' ?><?php $attr8 = array('list'=>'weeklist','extract'=>false,'key'=>'weeknr','value'=>'week') ?><?php $attr8_list='weeklist' ?><?php $attr8_extract=false ?><?php $attr8_key='weeknr' ?><?php $attr8_value='week' ?><?php + $attr8_list_tmp_key = $attr8_key; + $attr8_list_tmp_value = $attr8_value; + $attr8_list_extract = $attr8_extract; + unset($attr8_key); + unset($attr8_value); + if ( !isset($$attr8_list) || !is_array($$attr8_list) ) + $$attr8_list = array(); + foreach( $$attr8_list as $$attr8_list_tmp_key => $$attr8_list_tmp_value ) + { + if ( $attr8_list_extract ) + { + if ( !is_array($$attr8_list_tmp_value) ) + { + print_r($$attr8_list_tmp_value); + die( 'not an array at key: '.$$attr8_list_tmp_key ); + } + extract($$attr8_list_tmp_value); + } +?><?php unset($attr8) ?><?php unset($attr8_list) ?><?php unset($attr8_extract) ?><?php unset($attr8_key) ?><?php unset($attr8_value) ?><?php $attr9_debug_info = 'a:0:{}' ?><?php $attr9 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + if (empty($attr9_class)) + $attr9_class=$row_class; + global $cell_column_nr; + $cell_column_nr=0; + $column_class_idx = 999; +?><tr class="<?php echo $attr9_class ?>"><?php unset($attr9) ?><?php $attr10_debug_info = 'a:1:{s:5:"width";s:3:"12%";}' ?><?php $attr10 = array('width'=>'12%') ?><?php $attr10_width='12%' ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr10_class)) + $attr10['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr10_rowspan) ) + $attr10['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr10 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr10) ?><?php unset($attr10_width) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:6:"weeknr";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','var'=>'weeknr','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_var='weeknr' ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) + $tmp_tag = 'span'; + else + switch( $attr11_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr11_array)) + { + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; + else + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_var) ?><?php unset($attr11_escape) ?><?php $attr9_debug_info = 'a:0:{}' ?><?php $attr9 = array() ?></td><?php unset($attr9) ?><?php $attr10_debug_info = 'a:4:{s:4:"list";s:4:"week";s:7:"extract";s:4:"true";s:3:"key";s:8:"list_key";s:5:"value";s:10:"list_value";}' ?><?php $attr10 = array('list'=>'week','extract'=>true,'key'=>'list_key','value'=>'list_value') ?><?php $attr10_list='week' ?><?php $attr10_extract=true ?><?php $attr10_key='list_key' ?><?php $attr10_value='list_value' ?><?php + $attr10_list_tmp_key = $attr10_key; + $attr10_list_tmp_value = $attr10_value; + $attr10_list_extract = $attr10_extract; + unset($attr10_key); + unset($attr10_value); + if ( !isset($$attr10_list) || !is_array($$attr10_list) ) + $$attr10_list = array(); + foreach( $$attr10_list as $$attr10_list_tmp_key => $$attr10_list_tmp_value ) + { + if ( $attr10_list_extract ) + { + if ( !is_array($$attr10_list_tmp_value) ) + { + print_r($$attr10_list_tmp_value); + die( 'not an array at key: '.$$attr10_list_tmp_key ); + } + extract($$attr10_list_tmp_value); + } +?><?php unset($attr10) ?><?php unset($attr10_list) ?><?php unset($attr10_extract) ?><?php unset($attr10_key) ?><?php unset($attr10_value) ?><?php $attr11_debug_info = 'a:1:{s:5:"width";s:3:"12%";}' ?><?php $attr11 = array('width'=>'12%') ?><?php $attr11_width='12%' ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr11_class)) + $attr11['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr11_rowspan) ) + $attr11['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr11 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr11) ?><?php unset($attr11_width) ?><?php $attr12_debug_info = 'a:1:{s:5:"empty";s:3:"url";}' ?><?php $attr12 = array('empty'=>'url') ?><?php $attr12_empty='url' ?><?php + if ( isset($attr12_true) ) + { + if (gettype($attr12_true) === '' && gettype($attr12_true) === '1') + $exec = $$attr12_true == true; + else + $exec = $attr12_true == true; + } + elseif ( isset($attr12_false) ) + { + if (gettype($attr12_false) === '' && gettype($attr12_false) === '1') + $exec = $$attr12_false == false; + else + $exec = $attr12_false == false; + } + elseif( isset($attr12_contains) ) + $exec = in_array($attr12_value,explode(',',$attr12_contains)); + elseif( isset($attr12_equals)&& isset($attr12_value) ) + $exec = $attr12_equals == $attr12_value; + elseif( isset($attr12_lessthan)&& isset($attr12_value) ) + $exec = intval($attr12_lessthan) > intval($attr12_value); + elseif( isset($attr12_greaterthan)&& isset($attr12_value) ) + $exec = intval($attr12_greaterthan) < intval($attr12_value); + elseif ( isset($attr12_empty) ) + { + if ( !isset($$attr12_empty) ) + $exec = empty($attr12_empty); + elseif ( is_array($$attr12_empty) ) + $exec = (count($$attr12_empty)==0); + elseif ( is_bool($$attr12_empty) ) + $exec = true; + else + $exec = empty( $$attr12_empty ); + } + elseif ( isset($attr12_present) ) + { + $exec = isset($$attr12_present); + } + else + { + trigger_error("error in IF, assume: FALSE"); + $exec = false; + } + if ( !empty($attr12_invert) ) + $exec = !$exec; + if ( !empty($attr12_not) ) + $exec = !$exec; + unset($attr12_true); + unset($attr12_false); + unset($attr12_notempty); + unset($attr12_empty); + unset($attr12_contains); + unset($attr12_present); + unset($attr12_invert); + unset($attr12_not); + unset($attr12_value); + unset($attr12_equals); + $last_exec = $exec; + if ( $exec ) + { +?> +<?php unset($attr12) ?><?php unset($attr12_empty) ?><?php $attr13_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:2:"__";s:6:"escape";s:4:"true";}' ?><?php $attr13 = array('class'=>'text','raw'=>'__','escape'=>true) ?><?php $attr13_class='text' ?><?php $attr13_raw='__' ?><?php $attr13_escape=true ?><?php + if ( isset($attr13_prefix)&& isset($attr13_key)) + $attr13_key = $attr13_prefix.$attr13_key; + if ( isset($attr13_suffix)&& isset($attr13_key)) + $attr13_key = $attr13_key.$attr13_suffix; + if(empty($attr13_title)) + $attr13_title = ''; + if (empty($attr13_type)) + $tmp_tag = 'span'; + else + switch( $attr13_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr13_class ?>" title="<?php echo $attr13_title ?>"><?php + $attr13_title = ''; + if ( $attr13_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr13_array)) + { + $tmpArray = $$attr13_array; + if (!empty($attr13_var)) + $tmp_text = $tmpArray[$attr13_var]; + else + $tmp_text = $langF($tmpArray[$attr13_text]); + } + elseif (!empty($attr13_text)) + $tmp_text = $langF($attr13_text); + elseif (!empty($attr13_textvar)) + $tmp_text = $langF($$attr13_textvar); + elseif (!empty($attr13_key)) + $tmp_text = $langF($attr13_key); + elseif (!empty($attr13_var)) + $tmp_text = isset($$attr13_var)?$$attr13_var:'?unset:'.$attr13_var.'?'; + elseif (!empty($attr13_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr13_raw); + elseif (!empty($attr13_value)) + $tmp_text = $attr13_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr13_maxlength) && intval($attr13_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr13_maxlength) ); + if (isset($attr13_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr13_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr13) ?><?php unset($attr13_class) ?><?php unset($attr13_raw) ?><?php unset($attr13_escape) ?><?php $attr13_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:2:"nr";s:6:"escape";s:4:"true";}' ?><?php $attr13 = array('class'=>'text','var'=>'nr','escape'=>true) ?><?php $attr13_class='text' ?><?php $attr13_var='nr' ?><?php $attr13_escape=true ?><?php + if ( isset($attr13_prefix)&& isset($attr13_key)) + $attr13_key = $attr13_prefix.$attr13_key; + if ( isset($attr13_suffix)&& isset($attr13_key)) + $attr13_key = $attr13_key.$attr13_suffix; + if(empty($attr13_title)) + $attr13_title = ''; + if (empty($attr13_type)) + $tmp_tag = 'span'; + else + switch( $attr13_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr13_class ?>" title="<?php echo $attr13_title ?>"><?php + $attr13_title = ''; + if ( $attr13_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr13_array)) + { + $tmpArray = $$attr13_array; + if (!empty($attr13_var)) + $tmp_text = $tmpArray[$attr13_var]; + else + $tmp_text = $langF($tmpArray[$attr13_text]); + } + elseif (!empty($attr13_text)) + $tmp_text = $langF($attr13_text); + elseif (!empty($attr13_textvar)) + $tmp_text = $langF($$attr13_textvar); + elseif (!empty($attr13_key)) + $tmp_text = $langF($attr13_key); + elseif (!empty($attr13_var)) + $tmp_text = isset($$attr13_var)?$$attr13_var:'?unset:'.$attr13_var.'?'; + elseif (!empty($attr13_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr13_raw); + elseif (!empty($attr13_value)) + $tmp_text = $attr13_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr13_maxlength) && intval($attr13_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr13_maxlength) ); + if (isset($attr13_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr13_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr13) ?><?php unset($attr13_class) ?><?php unset($attr13_var) ?><?php unset($attr13_escape) ?><?php $attr13_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:2:"__";s:6:"escape";s:4:"true";}' ?><?php $attr13 = array('class'=>'text','raw'=>'__','escape'=>true) ?><?php $attr13_class='text' ?><?php $attr13_raw='__' ?><?php $attr13_escape=true ?><?php + if ( isset($attr13_prefix)&& isset($attr13_key)) + $attr13_key = $attr13_prefix.$attr13_key; + if ( isset($attr13_suffix)&& isset($attr13_key)) + $attr13_key = $attr13_key.$attr13_suffix; + if(empty($attr13_title)) + $attr13_title = ''; + if (empty($attr13_type)) + $tmp_tag = 'span'; + else + switch( $attr13_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr13_class ?>" title="<?php echo $attr13_title ?>"><?php + $attr13_title = ''; + if ( $attr13_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr13_array)) + { + $tmpArray = $$attr13_array; + if (!empty($attr13_var)) + $tmp_text = $tmpArray[$attr13_var]; + else + $tmp_text = $langF($tmpArray[$attr13_text]); + } + elseif (!empty($attr13_text)) + $tmp_text = $langF($attr13_text); + elseif (!empty($attr13_textvar)) + $tmp_text = $langF($$attr13_textvar); + elseif (!empty($attr13_key)) + $tmp_text = $langF($attr13_key); + elseif (!empty($attr13_var)) + $tmp_text = isset($$attr13_var)?$$attr13_var:'?unset:'.$attr13_var.'?'; + elseif (!empty($attr13_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr13_raw); + elseif (!empty($attr13_value)) + $tmp_text = $attr13_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr13_maxlength) && intval($attr13_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr13_maxlength) ); + if (isset($attr13_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr13_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr13) ?><?php unset($attr13_class) ?><?php unset($attr13_raw) ?><?php unset($attr13_escape) ?><?php $attr11_debug_info = 'a:0:{}' ?><?php $attr11 = array() ?><?php } ?><?php unset($attr11) ?><?php $attr12_debug_info = 'a:2:{s:3:"not";s:4:"true";s:5:"empty";s:3:"url";}' ?><?php $attr12 = array('not'=>true,'empty'=>'url') ?><?php $attr12_not=true ?><?php $attr12_empty='url' ?><?php + if ( isset($attr12_true) ) + { + if (gettype($attr12_true) === '' && gettype($attr12_true) === '1') + $exec = $$attr12_true == true; + else + $exec = $attr12_true == true; + } + elseif ( isset($attr12_false) ) + { + if (gettype($attr12_false) === '' && gettype($attr12_false) === '1') + $exec = $$attr12_false == false; + else + $exec = $attr12_false == false; + } + elseif( isset($attr12_contains) ) + $exec = in_array($attr12_value,explode(',',$attr12_contains)); + elseif( isset($attr12_equals)&& isset($attr12_value) ) + $exec = $attr12_equals == $attr12_value; + elseif( isset($attr12_lessthan)&& isset($attr12_value) ) + $exec = intval($attr12_lessthan) > intval($attr12_value); + elseif( isset($attr12_greaterthan)&& isset($attr12_value) ) + $exec = intval($attr12_greaterthan) < intval($attr12_value); + elseif ( isset($attr12_empty) ) + { + if ( !isset($$attr12_empty) ) + $exec = empty($attr12_empty); + elseif ( is_array($$attr12_empty) ) + $exec = (count($$attr12_empty)==0); + elseif ( is_bool($$attr12_empty) ) + $exec = true; + else + $exec = empty( $$attr12_empty ); + } + elseif ( isset($attr12_present) ) + { + $exec = isset($$attr12_present); + } + else + { + trigger_error("error in IF, assume: FALSE"); + $exec = false; + } + if ( !empty($attr12_invert) ) + $exec = !$exec; + if ( !empty($attr12_not) ) + $exec = !$exec; + unset($attr12_true); + unset($attr12_false); + unset($attr12_notempty); + unset($attr12_empty); + unset($attr12_contains); + unset($attr12_present); + unset($attr12_invert); + unset($attr12_not); + unset($attr12_value); + unset($attr12_equals); + $last_exec = $exec; + if ( $exec ) + { +?> +<?php unset($attr12) ?><?php unset($attr12_not) ?><?php unset($attr12_empty) ?><?php $attr13_debug_info = 'a:4:{s:5:"title";s:0:"";s:6:"target";s:5:"_self";s:3:"url";s:7:"var:url";s:5:"class";s:0:"";}' ?><?php $attr13 = array('title'=>'','target'=>'_self','url'=>$url,'class'=>'') ?><?php $attr13_title='' ?><?php $attr13_target='_self' ?><?php $attr13_url=$url ?><?php $attr13_class='' ?><?php + $params = array(); + if (!empty($attr13_var1) && isset($attr13_value1)) + $params[$attr13_var1]=$attr13_value1; + if (!empty($attr13_var2) && isset($attr13_value2)) + $params[$attr13_var2]=$attr13_value2; + if (!empty($attr13_var3) && isset($attr13_value3)) + $params[$attr13_var3]=$attr13_value3; + if (!empty($attr13_var4) && isset($attr13_value4)) + $params[$attr13_var4]=$attr13_value4; + if (!empty($attr13_var5) && isset($attr13_value5)) + $params[$attr13_var5]=$attr13_value5; + if(empty($attr13_class)) + $attr13_class=''; + if(empty($attr13_title)) + $attr13_title = ''; + if(!empty($attr13_url)) + $tmp_url = $attr13_url; + else + $tmp_url = Html::url($attr13_action,$attr13_subaction,!empty($attr13_id)?$attr13_id:$this->getRequestId(),$params); +?><a<?php if (isset($attr13_name)) echo ' name="'.$attr13_name.'"'; else echo ' href="'.$tmp_url.($attr13_anchor?'#'.$attr13_anchor:'').'"' ?> class="<?php echo $attr13_class ?>" target="<?php echo $attr13_target ?>"<?php if (isset($attr13_accesskey)) echo ' accesskey="'.$attr13_accesskey.'"' ?> title="<?php echo encodeHtml($attr13_title) ?>"><?php unset($attr13) ?><?php unset($attr13_title) ?><?php unset($attr13_target) ?><?php unset($attr13_url) ?><?php unset($attr13_class) ?><?php $attr14_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:2:"__";s:6:"escape";s:4:"true";}' ?><?php $attr14 = array('class'=>'text','raw'=>'__','escape'=>true) ?><?php $attr14_class='text' ?><?php $attr14_raw='__' ?><?php $attr14_escape=true ?><?php + if ( isset($attr14_prefix)&& isset($attr14_key)) + $attr14_key = $attr14_prefix.$attr14_key; + if ( isset($attr14_suffix)&& isset($attr14_key)) + $attr14_key = $attr14_key.$attr14_suffix; + if(empty($attr14_title)) + $attr14_title = ''; + if (empty($attr14_type)) + $tmp_tag = 'span'; + else + switch( $attr14_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr14_class ?>" title="<?php echo $attr14_title ?>"><?php + $attr14_title = ''; + if ( $attr14_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr14_array)) + { + $tmpArray = $$attr14_array; + if (!empty($attr14_var)) + $tmp_text = $tmpArray[$attr14_var]; + else + $tmp_text = $langF($tmpArray[$attr14_text]); + } + elseif (!empty($attr14_text)) + $tmp_text = $langF($attr14_text); + elseif (!empty($attr14_textvar)) + $tmp_text = $langF($$attr14_textvar); + elseif (!empty($attr14_key)) + $tmp_text = $langF($attr14_key); + elseif (!empty($attr14_var)) + $tmp_text = isset($$attr14_var)?$$attr14_var:'?unset:'.$attr14_var.'?'; + elseif (!empty($attr14_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr14_raw); + elseif (!empty($attr14_value)) + $tmp_text = $attr14_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr14_maxlength) && intval($attr14_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr14_maxlength) ); + if (isset($attr14_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr14_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr14) ?><?php unset($attr14_class) ?><?php unset($attr14_raw) ?><?php unset($attr14_escape) ?><?php $attr14_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:2:"nr";s:6:"escape";s:4:"true";}' ?><?php $attr14 = array('class'=>'text','var'=>'nr','escape'=>true) ?><?php $attr14_class='text' ?><?php $attr14_var='nr' ?><?php $attr14_escape=true ?><?php + if ( isset($attr14_prefix)&& isset($attr14_key)) + $attr14_key = $attr14_prefix.$attr14_key; + if ( isset($attr14_suffix)&& isset($attr14_key)) + $attr14_key = $attr14_key.$attr14_suffix; + if(empty($attr14_title)) + $attr14_title = ''; + if (empty($attr14_type)) + $tmp_tag = 'span'; + else + switch( $attr14_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr14_class ?>" title="<?php echo $attr14_title ?>"><?php + $attr14_title = ''; + if ( $attr14_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr14_array)) + { + $tmpArray = $$attr14_array; + if (!empty($attr14_var)) + $tmp_text = $tmpArray[$attr14_var]; + else + $tmp_text = $langF($tmpArray[$attr14_text]); + } + elseif (!empty($attr14_text)) + $tmp_text = $langF($attr14_text); + elseif (!empty($attr14_textvar)) + $tmp_text = $langF($$attr14_textvar); + elseif (!empty($attr14_key)) + $tmp_text = $langF($attr14_key); + elseif (!empty($attr14_var)) + $tmp_text = isset($$attr14_var)?$$attr14_var:'?unset:'.$attr14_var.'?'; + elseif (!empty($attr14_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr14_raw); + elseif (!empty($attr14_value)) + $tmp_text = $attr14_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr14_maxlength) && intval($attr14_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr14_maxlength) ); + if (isset($attr14_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr14_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr14) ?><?php unset($attr14_class) ?><?php unset($attr14_var) ?><?php unset($attr14_escape) ?><?php $attr14_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:2:"__";s:6:"escape";s:4:"true";}' ?><?php $attr14 = array('class'=>'text','raw'=>'__','escape'=>true) ?><?php $attr14_class='text' ?><?php $attr14_raw='__' ?><?php $attr14_escape=true ?><?php + if ( isset($attr14_prefix)&& isset($attr14_key)) + $attr14_key = $attr14_prefix.$attr14_key; + if ( isset($attr14_suffix)&& isset($attr14_key)) + $attr14_key = $attr14_key.$attr14_suffix; + if(empty($attr14_title)) + $attr14_title = ''; + if (empty($attr14_type)) + $tmp_tag = 'span'; + else + switch( $attr14_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr14_class ?>" title="<?php echo $attr14_title ?>"><?php + $attr14_title = ''; + if ( $attr14_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr14_array)) + { + $tmpArray = $$attr14_array; + if (!empty($attr14_var)) + $tmp_text = $tmpArray[$attr14_var]; + else + $tmp_text = $langF($tmpArray[$attr14_text]); + } + elseif (!empty($attr14_text)) + $tmp_text = $langF($attr14_text); + elseif (!empty($attr14_textvar)) + $tmp_text = $langF($$attr14_textvar); + elseif (!empty($attr14_key)) + $tmp_text = $langF($attr14_key); + elseif (!empty($attr14_var)) + $tmp_text = isset($$attr14_var)?$$attr14_var:'?unset:'.$attr14_var.'?'; + elseif (!empty($attr14_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr14_raw); + elseif (!empty($attr14_value)) + $tmp_text = $attr14_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr14_maxlength) && intval($attr14_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr14_maxlength) ); + if (isset($attr14_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr14_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr14) ?><?php unset($attr14_class) ?><?php unset($attr14_raw) ?><?php unset($attr14_escape) ?><?php $attr12_debug_info = 'a:0:{}' ?><?php $attr12 = array() ?></a><?php unset($attr12) ?><?php $attr11_debug_info = 'a:0:{}' ?><?php $attr11 = array() ?><?php } ?><?php unset($attr11) ?><?php $attr12_debug_info = 'a:1:{s:4:"true";s:9:"var:today";}' ?><?php $attr12 = array('true'=>$today) ?><?php $attr12_true=$today ?><?php + if ( isset($attr12_true) ) + { + if (gettype($attr12_true) === '' && gettype($attr12_true) === '1') + $exec = $$attr12_true == true; + else + $exec = $attr12_true == true; + } + elseif ( isset($attr12_false) ) + { + if (gettype($attr12_false) === '' && gettype($attr12_false) === '1') + $exec = $$attr12_false == false; + else + $exec = $attr12_false == false; + } + elseif( isset($attr12_contains) ) + $exec = in_array($attr12_value,explode(',',$attr12_contains)); + elseif( isset($attr12_equals)&& isset($attr12_value) ) + $exec = $attr12_equals == $attr12_value; + elseif( isset($attr12_lessthan)&& isset($attr12_value) ) + $exec = intval($attr12_lessthan) > intval($attr12_value); + elseif( isset($attr12_greaterthan)&& isset($attr12_value) ) + $exec = intval($attr12_greaterthan) < intval($attr12_value); + elseif ( isset($attr12_empty) ) + { + if ( !isset($$attr12_empty) ) + $exec = empty($attr12_empty); + elseif ( is_array($$attr12_empty) ) + $exec = (count($$attr12_empty)==0); + elseif ( is_bool($$attr12_empty) ) + $exec = true; + else + $exec = empty( $$attr12_empty ); + } + elseif ( isset($attr12_present) ) + { + $exec = isset($$attr12_present); + } + else + { + trigger_error("error in IF, assume: FALSE"); + $exec = false; + } + if ( !empty($attr12_invert) ) + $exec = !$exec; + if ( !empty($attr12_not) ) + $exec = !$exec; + unset($attr12_true); + unset($attr12_false); + unset($attr12_notempty); + unset($attr12_empty); + unset($attr12_contains); + unset($attr12_present); + unset($attr12_invert); + unset($attr12_not); + unset($attr12_value); + unset($attr12_equals); + $last_exec = $exec; + if ( $exec ) + { +?> +<?php unset($attr12) ?><?php unset($attr12_true) ?><?php $attr13_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:1:"*";s:6:"escape";s:4:"true";}' ?><?php $attr13 = array('class'=>'text','raw'=>'*','escape'=>true) ?><?php $attr13_class='text' ?><?php $attr13_raw='*' ?><?php $attr13_escape=true ?><?php + if ( isset($attr13_prefix)&& isset($attr13_key)) + $attr13_key = $attr13_prefix.$attr13_key; + if ( isset($attr13_suffix)&& isset($attr13_key)) + $attr13_key = $attr13_key.$attr13_suffix; + if(empty($attr13_title)) + $attr13_title = ''; + if (empty($attr13_type)) + $tmp_tag = 'span'; + else + switch( $attr13_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr13_class ?>" title="<?php echo $attr13_title ?>"><?php + $attr13_title = ''; + if ( $attr13_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr13_array)) + { + $tmpArray = $$attr13_array; + if (!empty($attr13_var)) + $tmp_text = $tmpArray[$attr13_var]; + else + $tmp_text = $langF($tmpArray[$attr13_text]); + } + elseif (!empty($attr13_text)) + $tmp_text = $langF($attr13_text); + elseif (!empty($attr13_textvar)) + $tmp_text = $langF($$attr13_textvar); + elseif (!empty($attr13_key)) + $tmp_text = $langF($attr13_key); + elseif (!empty($attr13_var)) + $tmp_text = isset($$attr13_var)?$$attr13_var:'?unset:'.$attr13_var.'?'; + elseif (!empty($attr13_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr13_raw); + elseif (!empty($attr13_value)) + $tmp_text = $attr13_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr13_maxlength) && intval($attr13_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr13_maxlength) ); + if (isset($attr13_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr13_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr13) ?><?php unset($attr13_class) ?><?php unset($attr13_raw) ?><?php unset($attr13_escape) ?><?php $attr11_debug_info = 'a:0:{}' ?><?php $attr11 = array() ?><?php } ?><?php unset($attr11) ?><?php $attr10_debug_info = 'a:0:{}' ?><?php $attr10 = array() ?></td><?php unset($attr10) ?><?php $attr9_debug_info = 'a:0:{}' ?><?php $attr9 = array() ?><?php } ?><?php unset($attr9) ?><?php $attr8_debug_info = 'a:0:{}' ?><?php $attr8 = array() ?></tr><?php unset($attr8) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?><?php } ?><?php unset($attr7) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></table><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + if (empty($attr6_class)) + $attr6_class=$row_class; + global $cell_column_nr; + $cell_column_nr=0; + $column_class_idx = 999; +?><tr class="<?php echo $attr6_class ?>"><?php unset($attr6) ?><?php $attr7_debug_info = 'a:1:{s:7:"colspan";s:1:"2";}' ?><?php $attr7 = array('colspan'=>'2') ?><?php $attr7_colspan='2' ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr7_class)) + $attr7['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) + $attr7['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php unset($attr7_colspan) ?><?php $attr8_debug_info = 'a:1:{s:5:"title";s:12:"message:date";}' ?><?php $attr8 = array('title'=>lang('date')) ?><?php $attr8_title=lang('date') ?><fieldset><?php if(isset($attr8_title)) { ?><legend><?php echo encodeHtml($attr8_title) ?></legend><?php } ?><?php unset($attr8) ?><?php unset($attr8_title) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?></fieldset><?php unset($attr7) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></tr><?php unset($attr5) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + if (empty($attr6_class)) + $attr6_class=$row_class; + global $cell_column_nr; + $cell_column_nr=0; + $column_class_idx = 999; +?><tr class="<?php echo $attr6_class ?>"><?php unset($attr6) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr7_class)) + $attr7['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) + $attr7['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:4:"date";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','key'=>'date','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_key='date' ?><?php $attr8_escape=true ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) + $attr8_title = ''; + if (empty($attr8_type)) + $tmp_tag = 'span'; + else + switch( $attr8_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php + $attr8_title = ''; + if ( $attr8_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr8_array)) + { + $tmpArray = $$attr8_array; + if (!empty($attr8_var)) + $tmp_text = $tmpArray[$attr8_var]; + else + $tmp_text = $langF($tmpArray[$attr8_text]); + } + elseif (!empty($attr8_text)) + $tmp_text = $langF($attr8_text); + elseif (!empty($attr8_textvar)) + $tmp_text = $langF($$attr8_textvar); + elseif (!empty($attr8_key)) + $tmp_text = $langF($attr8_key); + elseif (!empty($attr8_var)) + $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; + elseif (!empty($attr8_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr8_raw); + elseif (!empty($attr8_value)) + $tmp_text = $attr8_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); + if (isset($attr8_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_key) ?><?php unset($attr8_escape) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr7_class)) + $attr7['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) + $attr7['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php $attr8_debug_info = 'a:9:{s:4:"list";s:9:"all_years";s:4:"name";s:4:"year";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr8 = array('list'=>'all_years','name'=>'year','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr8_list='all_years' ?><?php $attr8_name='year' ?><?php $attr8_onchange='' ?><?php $attr8_title='' ?><?php $attr8_class='' ?><?php $attr8_addempty=false ?><?php $attr8_multiple=false ?><?php $attr8_size='1' ?><?php $attr8_lang=false ?><?php +$attr8_tmp_list = $$attr8_list; +if ($this->isEditable() && $this->getRequestVar('mode')!='edit') +{ + echo empty($$attr8_name)?'- '.lang('EMPTY').' -':$attr8_tmp_list[$$attr8_name]; +} +else +{ +if ( $attr8_addempty!==FALSE ) +{ + if ($attr8_addempty===TRUE) + $$attr8_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$$attr8_list; + else + $$attr8_list = array(''=>'- '.lang($attr8_addempty).' -')+$$attr8_list; +} +?><select<?php if ($attr8_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name; if ($attr8_multiple) echo '[]'; ?>" onchange="<?php echo $attr8_onchange ?>" title="<?php echo $attr8_title ?>" class="<?php echo $attr8_class ?>"<?php +if (count($$attr8_list)<=1) echo ' disabled="disabled"'; +if ($attr8_multiple) echo ' multiple="multiple"'; +if (in_array($attr8_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($attr8_size).'"'; +?>><?php + if ( isset($$attr8_name) && isset($attr8_tmp_list[$$attr8_name]) ) + $attr8_tmp_default = $$attr8_name; + elseif ( isset($attr8_default) ) + $attr8_tmp_default = $attr8_default; + else + $attr8_tmp_default = ''; + foreach( $attr8_tmp_list as $box_key=>$box_value ) + { + if ( is_array($box_value) ) + { + $box_key = $box_value['key' ]; + $box_title = $box_value['title']; + $box_value = $box_value['value']; + } + elseif( $attr8_lang ) + { + $box_title = lang( $box_value.'_DESC'); + $box_value = lang( $box_value ); + } + else + { + $box_title = ''; + } + echo '<option class="'.$attr8_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ($box_key==$attr8_tmp_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select><?php +if (count($$attr8_list)==0) echo '<input type="hidden" name="'.$attr8_name.'" value="" />'; +if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" value="'.$box_key.'" />'; +} +?><?php unset($attr8) ?><?php unset($attr8_list) ?><?php unset($attr8_name) ?><?php unset($attr8_onchange) ?><?php unset($attr8_title) ?><?php unset($attr8_class) ?><?php unset($attr8_addempty) ?><?php unset($attr8_multiple) ?><?php unset($attr8_size) ?><?php unset($attr8_lang) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:3:"_-_";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','raw'=>'_-_','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_raw='_-_' ?><?php $attr8_escape=true ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) + $attr8_title = ''; + if (empty($attr8_type)) + $tmp_tag = 'span'; + else + switch( $attr8_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php + $attr8_title = ''; + if ( $attr8_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr8_array)) + { + $tmpArray = $$attr8_array; + if (!empty($attr8_var)) + $tmp_text = $tmpArray[$attr8_var]; + else + $tmp_text = $langF($tmpArray[$attr8_text]); + } + elseif (!empty($attr8_text)) + $tmp_text = $langF($attr8_text); + elseif (!empty($attr8_textvar)) + $tmp_text = $langF($$attr8_textvar); + elseif (!empty($attr8_key)) + $tmp_text = $langF($attr8_key); + elseif (!empty($attr8_var)) + $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; + elseif (!empty($attr8_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr8_raw); + elseif (!empty($attr8_value)) + $tmp_text = $attr8_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); + if (isset($attr8_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_raw) ?><?php unset($attr8_escape) ?><?php $attr8_debug_info = 'a:9:{s:4:"list";s:10:"all_months";s:4:"name";s:5:"month";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr8 = array('list'=>'all_months','name'=>'month','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr8_list='all_months' ?><?php $attr8_name='month' ?><?php $attr8_onchange='' ?><?php $attr8_title='' ?><?php $attr8_class='' ?><?php $attr8_addempty=false ?><?php $attr8_multiple=false ?><?php $attr8_size='1' ?><?php $attr8_lang=false ?><?php +$attr8_tmp_list = $$attr8_list; +if ($this->isEditable() && $this->getRequestVar('mode')!='edit') +{ + echo empty($$attr8_name)?'- '.lang('EMPTY').' -':$attr8_tmp_list[$$attr8_name]; +} +else +{ +if ( $attr8_addempty!==FALSE ) +{ + if ($attr8_addempty===TRUE) + $$attr8_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$$attr8_list; + else + $$attr8_list = array(''=>'- '.lang($attr8_addempty).' -')+$$attr8_list; +} +?><select<?php if ($attr8_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name; if ($attr8_multiple) echo '[]'; ?>" onchange="<?php echo $attr8_onchange ?>" title="<?php echo $attr8_title ?>" class="<?php echo $attr8_class ?>"<?php +if (count($$attr8_list)<=1) echo ' disabled="disabled"'; +if ($attr8_multiple) echo ' multiple="multiple"'; +if (in_array($attr8_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($attr8_size).'"'; +?>><?php + if ( isset($$attr8_name) && isset($attr8_tmp_list[$$attr8_name]) ) + $attr8_tmp_default = $$attr8_name; + elseif ( isset($attr8_default) ) + $attr8_tmp_default = $attr8_default; + else + $attr8_tmp_default = ''; + foreach( $attr8_tmp_list as $box_key=>$box_value ) + { + if ( is_array($box_value) ) + { + $box_key = $box_value['key' ]; + $box_title = $box_value['title']; + $box_value = $box_value['value']; + } + elseif( $attr8_lang ) + { + $box_title = lang( $box_value.'_DESC'); + $box_value = lang( $box_value ); + } + else + { + $box_title = ''; + } + echo '<option class="'.$attr8_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ($box_key==$attr8_tmp_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select><?php +if (count($$attr8_list)==0) echo '<input type="hidden" name="'.$attr8_name.'" value="" />'; +if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" value="'.$box_key.'" />'; +} +?><?php unset($attr8) ?><?php unset($attr8_list) ?><?php unset($attr8_name) ?><?php unset($attr8_onchange) ?><?php unset($attr8_title) ?><?php unset($attr8_class) ?><?php unset($attr8_addempty) ?><?php unset($attr8_multiple) ?><?php unset($attr8_size) ?><?php unset($attr8_lang) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:3:"_-_";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','raw'=>'_-_','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_raw='_-_' ?><?php $attr8_escape=true ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) + $attr8_title = ''; + if (empty($attr8_type)) + $tmp_tag = 'span'; + else + switch( $attr8_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php + $attr8_title = ''; + if ( $attr8_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr8_array)) + { + $tmpArray = $$attr8_array; + if (!empty($attr8_var)) + $tmp_text = $tmpArray[$attr8_var]; + else + $tmp_text = $langF($tmpArray[$attr8_text]); + } + elseif (!empty($attr8_text)) + $tmp_text = $langF($attr8_text); + elseif (!empty($attr8_textvar)) + $tmp_text = $langF($$attr8_textvar); + elseif (!empty($attr8_key)) + $tmp_text = $langF($attr8_key); + elseif (!empty($attr8_var)) + $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; + elseif (!empty($attr8_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr8_raw); + elseif (!empty($attr8_value)) + $tmp_text = $attr8_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); + if (isset($attr8_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_raw) ?><?php unset($attr8_escape) ?><?php $attr8_debug_info = 'a:9:{s:4:"list";s:8:"all_days";s:4:"name";s:3:"day";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr8 = array('list'=>'all_days','name'=>'day','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr8_list='all_days' ?><?php $attr8_name='day' ?><?php $attr8_onchange='' ?><?php $attr8_title='' ?><?php $attr8_class='' ?><?php $attr8_addempty=false ?><?php $attr8_multiple=false ?><?php $attr8_size='1' ?><?php $attr8_lang=false ?><?php +$attr8_tmp_list = $$attr8_list; +if ($this->isEditable() && $this->getRequestVar('mode')!='edit') +{ + echo empty($$attr8_name)?'- '.lang('EMPTY').' -':$attr8_tmp_list[$$attr8_name]; +} +else +{ +if ( $attr8_addempty!==FALSE ) +{ + if ($attr8_addempty===TRUE) + $$attr8_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$$attr8_list; + else + $$attr8_list = array(''=>'- '.lang($attr8_addempty).' -')+$$attr8_list; +} +?><select<?php if ($attr8_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name; if ($attr8_multiple) echo '[]'; ?>" onchange="<?php echo $attr8_onchange ?>" title="<?php echo $attr8_title ?>" class="<?php echo $attr8_class ?>"<?php +if (count($$attr8_list)<=1) echo ' disabled="disabled"'; +if ($attr8_multiple) echo ' multiple="multiple"'; +if (in_array($attr8_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($attr8_size).'"'; +?>><?php + if ( isset($$attr8_name) && isset($attr8_tmp_list[$$attr8_name]) ) + $attr8_tmp_default = $$attr8_name; + elseif ( isset($attr8_default) ) + $attr8_tmp_default = $attr8_default; + else + $attr8_tmp_default = ''; + foreach( $attr8_tmp_list as $box_key=>$box_value ) + { + if ( is_array($box_value) ) + { + $box_key = $box_value['key' ]; + $box_title = $box_value['title']; + $box_value = $box_value['value']; + } + elseif( $attr8_lang ) + { + $box_title = lang( $box_value.'_DESC'); + $box_value = lang( $box_value ); + } + else + { + $box_title = ''; + } + echo '<option class="'.$attr8_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ($box_key==$attr8_tmp_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select><?php +if (count($$attr8_list)==0) echo '<input type="hidden" name="'.$attr8_name.'" value="" />'; +if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" value="'.$box_key.'" />'; +} +?><?php unset($attr8) ?><?php unset($attr8_list) ?><?php unset($attr8_name) ?><?php unset($attr8_onchange) ?><?php unset($attr8_title) ?><?php unset($attr8_class) ?><?php unset($attr8_addempty) ?><?php unset($attr8_multiple) ?><?php unset($attr8_size) ?><?php unset($attr8_lang) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></tr><?php unset($attr5) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + if (empty($attr6_class)) + $attr6_class=$row_class; + global $cell_column_nr; + $cell_column_nr=0; + $column_class_idx = 999; +?><tr class="<?php echo $attr6_class ?>"><?php unset($attr6) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr7_class)) + $attr7['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) + $attr7['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:9:"date_time";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','key'=>'date_time','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_key='date_time' ?><?php $attr8_escape=true ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) + $attr8_title = ''; + if (empty($attr8_type)) + $tmp_tag = 'span'; + else + switch( $attr8_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php + $attr8_title = ''; + if ( $attr8_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr8_array)) + { + $tmpArray = $$attr8_array; + if (!empty($attr8_var)) + $tmp_text = $tmpArray[$attr8_var]; + else + $tmp_text = $langF($tmpArray[$attr8_text]); + } + elseif (!empty($attr8_text)) + $tmp_text = $langF($attr8_text); + elseif (!empty($attr8_textvar)) + $tmp_text = $langF($$attr8_textvar); + elseif (!empty($attr8_key)) + $tmp_text = $langF($attr8_key); + elseif (!empty($attr8_var)) + $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; + elseif (!empty($attr8_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr8_raw); + elseif (!empty($attr8_value)) + $tmp_text = $attr8_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); + if (isset($attr8_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_key) ?><?php unset($attr8_escape) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr7_class)) + $attr7['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) + $attr7['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php $attr8_debug_info = 'a:9:{s:4:"list";s:9:"all_hours";s:4:"name";s:4:"hour";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr8 = array('list'=>'all_hours','name'=>'hour','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr8_list='all_hours' ?><?php $attr8_name='hour' ?><?php $attr8_onchange='' ?><?php $attr8_title='' ?><?php $attr8_class='' ?><?php $attr8_addempty=false ?><?php $attr8_multiple=false ?><?php $attr8_size='1' ?><?php $attr8_lang=false ?><?php +$attr8_tmp_list = $$attr8_list; +if ($this->isEditable() && $this->getRequestVar('mode')!='edit') +{ + echo empty($$attr8_name)?'- '.lang('EMPTY').' -':$attr8_tmp_list[$$attr8_name]; +} +else +{ +if ( $attr8_addempty!==FALSE ) +{ + if ($attr8_addempty===TRUE) + $$attr8_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$$attr8_list; + else + $$attr8_list = array(''=>'- '.lang($attr8_addempty).' -')+$$attr8_list; +} +?><select<?php if ($attr8_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name; if ($attr8_multiple) echo '[]'; ?>" onchange="<?php echo $attr8_onchange ?>" title="<?php echo $attr8_title ?>" class="<?php echo $attr8_class ?>"<?php +if (count($$attr8_list)<=1) echo ' disabled="disabled"'; +if ($attr8_multiple) echo ' multiple="multiple"'; +if (in_array($attr8_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($attr8_size).'"'; +?>><?php + if ( isset($$attr8_name) && isset($attr8_tmp_list[$$attr8_name]) ) + $attr8_tmp_default = $$attr8_name; + elseif ( isset($attr8_default) ) + $attr8_tmp_default = $attr8_default; + else + $attr8_tmp_default = ''; + foreach( $attr8_tmp_list as $box_key=>$box_value ) + { + if ( is_array($box_value) ) + { + $box_key = $box_value['key' ]; + $box_title = $box_value['title']; + $box_value = $box_value['value']; + } + elseif( $attr8_lang ) + { + $box_title = lang( $box_value.'_DESC'); + $box_value = lang( $box_value ); + } + else + { + $box_title = ''; + } + echo '<option class="'.$attr8_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ($box_key==$attr8_tmp_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select><?php +if (count($$attr8_list)==0) echo '<input type="hidden" name="'.$attr8_name.'" value="" />'; +if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" value="'.$box_key.'" />'; +} +?><?php unset($attr8) ?><?php unset($attr8_list) ?><?php unset($attr8_name) ?><?php unset($attr8_onchange) ?><?php unset($attr8_title) ?><?php unset($attr8_class) ?><?php unset($attr8_addempty) ?><?php unset($attr8_multiple) ?><?php unset($attr8_size) ?><?php unset($attr8_lang) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:3:"_-_";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','raw'=>'_-_','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_raw='_-_' ?><?php $attr8_escape=true ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) + $attr8_title = ''; + if (empty($attr8_type)) + $tmp_tag = 'span'; + else + switch( $attr8_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php + $attr8_title = ''; + if ( $attr8_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr8_array)) + { + $tmpArray = $$attr8_array; + if (!empty($attr8_var)) + $tmp_text = $tmpArray[$attr8_var]; + else + $tmp_text = $langF($tmpArray[$attr8_text]); + } + elseif (!empty($attr8_text)) + $tmp_text = $langF($attr8_text); + elseif (!empty($attr8_textvar)) + $tmp_text = $langF($$attr8_textvar); + elseif (!empty($attr8_key)) + $tmp_text = $langF($attr8_key); + elseif (!empty($attr8_var)) + $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; + elseif (!empty($attr8_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr8_raw); + elseif (!empty($attr8_value)) + $tmp_text = $attr8_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); + if (isset($attr8_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_raw) ?><?php unset($attr8_escape) ?><?php $attr8_debug_info = 'a:9:{s:4:"list";s:11:"all_minutes";s:4:"name";s:6:"minute";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr8 = array('list'=>'all_minutes','name'=>'minute','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr8_list='all_minutes' ?><?php $attr8_name='minute' ?><?php $attr8_onchange='' ?><?php $attr8_title='' ?><?php $attr8_class='' ?><?php $attr8_addempty=false ?><?php $attr8_multiple=false ?><?php $attr8_size='1' ?><?php $attr8_lang=false ?><?php +$attr8_tmp_list = $$attr8_list; +if ($this->isEditable() && $this->getRequestVar('mode')!='edit') +{ + echo empty($$attr8_name)?'- '.lang('EMPTY').' -':$attr8_tmp_list[$$attr8_name]; +} +else +{ +if ( $attr8_addempty!==FALSE ) +{ + if ($attr8_addempty===TRUE) + $$attr8_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$$attr8_list; + else + $$attr8_list = array(''=>'- '.lang($attr8_addempty).' -')+$$attr8_list; +} +?><select<?php if ($attr8_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name; if ($attr8_multiple) echo '[]'; ?>" onchange="<?php echo $attr8_onchange ?>" title="<?php echo $attr8_title ?>" class="<?php echo $attr8_class ?>"<?php +if (count($$attr8_list)<=1) echo ' disabled="disabled"'; +if ($attr8_multiple) echo ' multiple="multiple"'; +if (in_array($attr8_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($attr8_size).'"'; +?>><?php + if ( isset($$attr8_name) && isset($attr8_tmp_list[$$attr8_name]) ) + $attr8_tmp_default = $$attr8_name; + elseif ( isset($attr8_default) ) + $attr8_tmp_default = $attr8_default; + else + $attr8_tmp_default = ''; + foreach( $attr8_tmp_list as $box_key=>$box_value ) + { + if ( is_array($box_value) ) + { + $box_key = $box_value['key' ]; + $box_title = $box_value['title']; + $box_value = $box_value['value']; + } + elseif( $attr8_lang ) + { + $box_title = lang( $box_value.'_DESC'); + $box_value = lang( $box_value ); + } + else + { + $box_title = ''; + } + echo '<option class="'.$attr8_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ($box_key==$attr8_tmp_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select><?php +if (count($$attr8_list)==0) echo '<input type="hidden" name="'.$attr8_name.'" value="" />'; +if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" value="'.$box_key.'" />'; +} +?><?php unset($attr8) ?><?php unset($attr8_list) ?><?php unset($attr8_name) ?><?php unset($attr8_onchange) ?><?php unset($attr8_title) ?><?php unset($attr8_class) ?><?php unset($attr8_addempty) ?><?php unset($attr8_multiple) ?><?php unset($attr8_size) ?><?php unset($attr8_lang) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:3:"_-_";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','raw'=>'_-_','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_raw='_-_' ?><?php $attr8_escape=true ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) + $attr8_title = ''; + if (empty($attr8_type)) + $tmp_tag = 'span'; + else + switch( $attr8_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php + $attr8_title = ''; + if ( $attr8_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr8_array)) + { + $tmpArray = $$attr8_array; + if (!empty($attr8_var)) + $tmp_text = $tmpArray[$attr8_var]; + else + $tmp_text = $langF($tmpArray[$attr8_text]); + } + elseif (!empty($attr8_text)) + $tmp_text = $langF($attr8_text); + elseif (!empty($attr8_textvar)) + $tmp_text = $langF($$attr8_textvar); + elseif (!empty($attr8_key)) + $tmp_text = $langF($attr8_key); + elseif (!empty($attr8_var)) + $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; + elseif (!empty($attr8_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr8_raw); + elseif (!empty($attr8_value)) + $tmp_text = $attr8_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); + if (isset($attr8_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_raw) ?><?php unset($attr8_escape) ?><?php $attr8_debug_info = 'a:9:{s:4:"list";s:11:"all_seconds";s:4:"name";s:6:"second";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr8 = array('list'=>'all_seconds','name'=>'second','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr8_list='all_seconds' ?><?php $attr8_name='second' ?><?php $attr8_onchange='' ?><?php $attr8_title='' ?><?php $attr8_class='' ?><?php $attr8_addempty=false ?><?php $attr8_multiple=false ?><?php $attr8_size='1' ?><?php $attr8_lang=false ?><?php +$attr8_tmp_list = $$attr8_list; +if ($this->isEditable() && $this->getRequestVar('mode')!='edit') +{ + echo empty($$attr8_name)?'- '.lang('EMPTY').' -':$attr8_tmp_list[$$attr8_name]; +} +else +{ +if ( $attr8_addempty!==FALSE ) +{ + if ($attr8_addempty===TRUE) + $$attr8_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$$attr8_list; + else + $$attr8_list = array(''=>'- '.lang($attr8_addempty).' -')+$$attr8_list; +} +?><select<?php if ($attr8_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name; if ($attr8_multiple) echo '[]'; ?>" onchange="<?php echo $attr8_onchange ?>" title="<?php echo $attr8_title ?>" class="<?php echo $attr8_class ?>"<?php +if (count($$attr8_list)<=1) echo ' disabled="disabled"'; +if ($attr8_multiple) echo ' multiple="multiple"'; +if (in_array($attr8_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($attr8_size).'"'; +?>><?php + if ( isset($$attr8_name) && isset($attr8_tmp_list[$$attr8_name]) ) + $attr8_tmp_default = $$attr8_name; + elseif ( isset($attr8_default) ) + $attr8_tmp_default = $attr8_default; + else + $attr8_tmp_default = ''; + foreach( $attr8_tmp_list as $box_key=>$box_value ) + { + if ( is_array($box_value) ) + { + $box_key = $box_value['key' ]; + $box_title = $box_value['title']; + $box_value = $box_value['value']; + } + elseif( $attr8_lang ) + { + $box_title = lang( $box_value.'_DESC'); + $box_value = lang( $box_value ); + } + else + { + $box_title = ''; + } + echo '<option class="'.$attr8_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ($box_key==$attr8_tmp_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select><?php +if (count($$attr8_list)==0) echo '<input type="hidden" name="'.$attr8_name.'" value="" />'; +if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" value="'.$box_key.'" />'; +} +?><?php unset($attr8) ?><?php unset($attr8_list) ?><?php unset($attr8_name) ?><?php unset($attr8_onchange) ?><?php unset($attr8_title) ?><?php unset($attr8_class) ?><?php unset($attr8_addempty) ?><?php unset($attr8_multiple) ?><?php unset($attr8_size) ?><?php unset($attr8_lang) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></tr><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:2:{s:6:"equals";s:4:"text";s:5:"value";s:8:"var:type";}' ?><?php $attr4 = array('equals'=>'text','value'=>$type) ?><?php $attr4_equals='text' ?><?php $attr4_value=$type ?><?php if ( isset($attr4_true) ) { if (gettype($attr4_true) === '' && gettype($attr4_true) === '1') @@ -535,11 +3194,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7_debug_info = 'a:5:{s:4:"name";s:4:"text";s:4:"rows";s:2:"25";s:4:"cols";s:2:"70";s:5:"class";s:8:"longtext";s:7:"default";s:0:"";}' ?><?php $attr7 = array('name'=>'text','rows'=>'25','cols'=>'70','class'=>'longtext','default'=>'') ?><?php $attr7_name='text' ?><?php $attr7_rows='25' ?><?php $attr7_cols='70' ?><?php $attr7_class='longtext' ?><?php $attr7_default='' ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; - if ( !$attr7_readonly) { -?><textarea <?php if ($attr7_readonly) echo ' disabled="true"' ?> class="<?php echo $attr7_class ?>" name="<?php echo $attr7_name ?>" rows="<?php echo $attr7_rows ?>" cols="<?php echo $attr7_cols ?>"><?php echo htmlentities(isset($$attr7_name)?$$attr7_name:$attr7_default) ?></textarea><?php - } else { -?><span class="<?php echo $attr7_class ?>"><?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?></span><?php } ?><?php unset($attr7) ?><?php unset($attr7_name) ?><?php unset($attr7_rows) ?><?php unset($attr7_cols) ?><?php unset($attr7_class) ?><?php unset($attr7_default) ?><?php $attr7_debug_info = 'a:1:{s:4:"true";s:9:"mode:edit";}' ?><?php $attr7 = array('true'=>$this->getRequestVar("mode")=="edit") ?><?php $attr7_true=$this->getRequestVar("mode")=="edit" ?><?php +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7_debug_info = 'a:2:{s:6:"equals";s:4:"html";s:5:"value";s:10:"var:editor";}' ?><?php $attr7 = array('equals'=>'html','value'=>$editor) ?><?php $attr7_equals='html' ?><?php $attr7_value=$editor ?><?php if ( isset($attr7_true) ) { if (gettype($attr7_true) === '' && gettype($attr7_true) === '1') @@ -600,121 +3255,536 @@ document.forms[0].<?php echo $attr7_field ?>.select(); if ( $exec ) { ?> -<?php unset($attr7) ?><?php unset($attr7_true) ?><?php $attr8_debug_info = 'a:1:{s:5:"title";s:12:"message:help";}' ?><?php $attr8 = array('title'=>lang('help')) ?><?php $attr8_title=lang('help') ?><fieldset><?php if(isset($attr8_title)) { ?><legend><?php echo encodeHtml($attr8_title) ?></legend><?php } ?><?php unset($attr8) ?><?php unset($attr8_title) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?></fieldset><?php unset($attr7) ?><?php $attr8_debug_info = 'a:4:{s:5:"width";s:4:"100%";s:5:"space";s:3:"0px";s:7:"padding";s:3:"0px";s:10:"rowclasses";s:8:"odd,even";}' ?><?php $attr8 = array('width'=>'100%','space'=>'0px','padding'=>'0px','rowclasses'=>'odd,even') ?><?php $attr8_width='100%' ?><?php $attr8_space='0px' ?><?php $attr8_padding='0px' ?><?php $attr8_rowclasses='odd,even' ?><?php - $coloumn_widths=array(); - $row_classes = array(''); - $column_classes= array(''); - if(empty($attr8_class)) - $attr8_class=''; - if (!empty($attr8_widths)) +<?php unset($attr7) ?><?php unset($attr7_equals) ?><?php unset($attr7_value) ?><?php $attr8_debug_info = 'a:2:{s:4:"name";s:4:"text";s:4:"type";s:4:"html";}' ?><?php $attr8 = array('name'=>'text','type'=>'html') ?><?php $attr8_name='text' ?><?php $attr8_type='html' ?><?php + function checkbox( $name,$value=false,$writable=true,$params=Array() ) + { + $src = '<input type="checkbox" name="'.$name.'"'; + foreach( $params as $name=>$val ) + $src .= " $name=\"$val\""; + if ( !$writable ) + $src .= ' disabled="disabled"'; + if ( $value ) + $src .= ' value="1" checked="checked"'; + $src .= ' />'; + return $src; + } + function selectBox( $name,$values,$default='',$params=Array() ) + { + if ( ! is_array($values) ) + $values = array($values); + $src = '<select size="1" name="'.$name.'"'; + foreach( $params as $name=>$value ) + $src .= " $name=\"$value\""; + $src .= '>'; + foreach( $values as $key=>$value ) + { + $src .= '<option value="'.$key.'"'; + if ($key == $default) + $src .= ' selected="selected"'; + $src .= '>'.$value.'</option>'; + } + $src .= '</select>'; + return $src; + } + ?><?php +switch( $attr8_type ) +{ + case 'fckeditor': + case 'html': + if ( $this->isEditMode() ) + { + include('./editor/fckeditor.php'); + $editor = new FCKeditor( $attr8_name ) ; + $editor->BasePath = defined('OR_BASE_URL')?slashify(OR_BASE_URL).'editor/':'./editor/'; + $editor->Value = $$attr8_name; + $editor->Height = '290'; + $editor->Config['CustomConfigurationsPath'] = '../openrat-fckconfig.js'; + $editor->Create(); + } + else + { + echo ($$attr8_name); + } + break; + case 'wiki': + $conf_tags = $conf['editor']['text-markup']; + if ( $this->isEditMode() ) + { + ?> +<script name="Javascript" type="text/javascript" src="<?php echo $tpl_dir ?>../../js/editor.js"></script> +<script name="JavaScript" type="text/javascript"> +function strong() +{ + insert('<?php echo $attr8_name ?>','<?php echo $conf_tags['strong-begin'] ?>','<?php echo $conf_tags['strong-end'] ?>'); +} +function emphatic() +{ + insert('<?php echo $attr8_name ?>','<?php echo $conf_tags['emphatic-begin'] ?>','<?php echo $conf_tags['emphatic-end'] ?>'); +} +function link() +{ + objectid = document.forms[0].objectid.value; + if (objectid=="" ||objectid=="0"||objectid==null) + objectid = window.prompt("Id",""); + if (objectid=="" ||objectid=="0"||objectid==null) + return; + insert('<?php echo $attr8_name ?>','"','"<?php echo $conf_tags['linkto'] ?>"'+objectid+'"'); +} +function image() +{ + objectid = document.forms[0].objectid.value; + if (objectid=="" ||objectid=="0"||objectid==null) + objectid = window.prompt("Id",""); + if (objectid=="" ||objectid=="0"||objectid==null) + return; + insert('<?php echo $attr8_name ?>','','<?php echo $conf_tags['image-begin'] ?>"'+objectid+'"<?php echo $conf_tags['image-end'] ?>'); +} +function list() +{ + insert('<?php echo $attr8_name ?>',"","\n"); + while( true ) { - $column_widths = explode(',',$attr8_widths); - unset($attr8['widths']); + t = window.prompt('<?php echo lang('EDITOR_PROMPT_LIST_ENTRY') ?>',''); + if ( t != '' && t != null ) + insert('<?php echo $attr8_name ?>',"<?php echo $conf_tags['list-unnumbered'] ?> "+t+"\n",""); + else + break; } - if (!empty($attr8_classes)) +} +function numlist() +{ + insert('<?php echo $attr8_name ?>',"\n\n<?php echo $conf_tags['list-numbered'] ?> ","\n<?php echo $conf_tags['list-numbered'] ?> \n<?php echo $conf_tags['list-numbered'] ?> \n"); +} +function table() +{ + column=1; + while( true ) { - $row_classes = explode(',',$attr8_rowclasses); - $row_class_idx = 999; - unset($attr8['rowclasses']); + if ( column==1 ) + text='<?php echo lang('EDITOR_PROMPT_TABLE_CELL_FIRST_COLUMN') ?>'; + else + text='<?php echo lang('EDITOR_PROMPT_TABLE_CELL') ?>'; + t = window.prompt(text,''); + if ( t != '' && t != null ) + { + insert('<?php echo $attr8_name ?>',"<?php echo $conf_tags['table-cell-sep'] ?>"+t,""); + column++; + } + else + { + if (column==1) + { + break; + } + else + { + insert('text',"\n",""); + column=1; + } + } } - if (!empty($attr8_rowclasses)) +} +</script> + <table> + <tr> + <noscript><input type="text" name="addtext" size="10" /></noscript> + <td><noscript><?php echo checkbox('strong') ?></noscript><a href="javascript:strong();" title="<?php echo lang('PAGE_EDITOR_ADD_STRONG') ?>"><img src="<?php echo $image_dir ?>/editor/bold.png" border"0" /></a></td> + <td><noscript><?php echo checkbox('emphatic') ?></noscript><a href="javascript:emphatic();" title="<?php echo lang('PAGE_EDITOR_ADD_EMPHATIC') ?>"><img src="<?php echo $image_dir ?>/editor/italic.png" border"0" /></a></td> + <td>&nbsp;&nbsp;&nbsp;&nbsp;</td> + <td><noscript><?php echo checkbox('table') ?></noscript><a href="javascript:table();" title="<?php echo lang('PAGE_EDITOR_ADD_TABLE') ?>"><img src="<?php echo $image_dir ?>/editor/table.png" border"0" /></a></td> + <td>&nbsp;&nbsp;&nbsp;&nbsp;</td> + <td><noscript><?php echo checkbox('list') ?></noscript><a href="javascript:list();" title="<?php echo lang('PAGE_EDITOR_ADD_LIST') ?>"><img src="<?php echo $image_dir ?>/editor/list.png" border"0" /></a></td> + <td><noscript><?php echo checkbox('numlist') ?></noscript><a href="javascript:numlist();" title="<?php echo lang('PAGE_EDITOR_ADD_NUMLIST') ?>"><img src="<?php echo $image_dir ?>/editor/numlist.png" border"0" /></a></td> + <td>&nbsp;&nbsp;&nbsp;&nbsp;</td> + <td><noscript><?php echo checkbox('image') ?></noscript><a href="javascript:image();" title="<?php echo lang('PAGE_EDITOR_ADD_IMAGE') ?>"><img src="<?php echo $image_dir ?>/editor/image.png" border"0" /></a></td> + <td><noscript><?php echo checkbox('link') ?></noscript><a href="javascript:link();" title="<?php echo lang('PAGE_EDITOR_ADD_LINK') ?>"><img src="<?php echo $image_dir ?>/editor/link.png" border"0" /></a></td> + <td><?php echo selectBox('objectid',$objects) ?><noscript>&nbsp;&nbsp;&nbsp;<input type="submit" class="submit" name="addmarkup" value="<?php echo lang('GLOBAL_ADD') ?>"/></noscript></td> + </tr> + </table> + <?php ?> +<?php + echo '<textarea name="'.$attr8_name.'" class="editor" style="width:100%;height:300px;">'.$$attr8_name.'</textarea>'; + } + else + { + $attr8_tmp_doc = new DocumentElement(); + $attr8_tmp_text = $$attr8_name; + if ( !is_array($attr8_tmp_text)) + $attr8_tmp_text = explode("\n",$attr8_tmp_text); + $attr8_tmp_doc->parse($attr8_tmp_text); + echo $attr8_tmp_doc->render('application/html'); + } + break; + case 'text': + case 'raw': + if ( $this->isEditMode() ) + echo '<textarea name="'.$attr8_name.'" class="editor" style="width:100%;height:300px;">'.$$attr8_name.'</textarea>'; + else + echo nl2br($$attr8_name); + break; + case 'dom': + case 'tree': + $attr8_tmp_doc = new DocumentElement(); + $attr8_tmp_text = $$attr8_name; + if ( !is_array($attr8_tmp_text)) + $attr8_tmp_text = explode("\n",$attr8_tmp_text); + $attr8_tmp_doc->parse($attr8_tmp_text); + echo $attr8_tmp_doc->render('application/html-dom'); + break; + default: + echo "Unknown editor type: ".$attr8_type; +} +?><?php unset($attr8) ?><?php unset($attr8_name) ?><?php unset($attr8_type) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php } ?><?php unset($attr6) ?><?php $attr7_debug_info = 'a:2:{s:6:"equals";s:4:"wiki";s:5:"value";s:10:"var:editor";}' ?><?php $attr7 = array('equals'=>'wiki','value'=>$editor) ?><?php $attr7_equals='wiki' ?><?php $attr7_value=$editor ?><?php + if ( isset($attr7_true) ) { - $row_classes = explode(',',$attr8_rowclasses); - $row_class_idx = 999; - unset($attr8['rowclasses']); + if (gettype($attr7_true) === '' && gettype($attr7_true) === '1') + $exec = $$attr7_true == true; + else + $exec = $attr7_true == true; } - if (!empty($attr8_columnclasses)) + elseif ( isset($attr7_false) ) { - $column_classes = explode(',',$attr8_columnclasses); - unset($attr8['columnclasses']); + if (gettype($attr7_false) === '' && gettype($attr7_false) === '1') + $exec = $$attr7_false == false; + else + $exec = $attr7_false == false; + } + elseif( isset($attr7_contains) ) + $exec = in_array($attr7_value,explode(',',$attr7_contains)); + elseif( isset($attr7_equals)&& isset($attr7_value) ) + $exec = $attr7_equals == $attr7_value; + elseif( isset($attr7_lessthan)&& isset($attr7_value) ) + $exec = intval($attr7_lessthan) > intval($attr7_value); + elseif( isset($attr7_greaterthan)&& isset($attr7_value) ) + $exec = intval($attr7_greaterthan) < intval($attr7_value); + elseif ( isset($attr7_empty) ) + { + if ( !isset($$attr7_empty) ) + $exec = empty($attr7_empty); + elseif ( is_array($$attr7_empty) ) + $exec = (count($$attr7_empty)==0); + elseif ( is_bool($$attr7_empty) ) + $exec = true; + else + $exec = empty( $$attr7_empty ); + } + elseif ( isset($attr7_present) ) + { + $exec = isset($$attr7_present); } -?><table class="<?php echo $attr8_class ?>" cellspacing="<?php echo $attr8_space ?>" width="<?php echo $attr8_width ?>" cellpadding="<?php echo $attr8_padding ?>"><?php unset($attr8) ?><?php unset($attr8_width) ?><?php unset($attr8_space) ?><?php unset($attr8_padding) ?><?php unset($attr8_rowclasses) ?><?php $attr9_debug_info = 'a:0:{}' ?><?php $attr9 = array() ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr9_class)) - $attr9['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr9_rowspan) ) - $attr9['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr9 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr9) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:38:"config:editor/text-markup/strong-begin";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>@$conf['editor']['text-markup']['strong-begin'],'escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text=@$conf['editor']['text-markup']['strong-begin'] ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) - $tmp_tag = 'span'; else - switch( $attr10_type ) + { + trigger_error("error in IF, assume: FALSE"); + $exec = false; + } + if ( !empty($attr7_invert) ) + $exec = !$exec; + if ( !empty($attr7_not) ) + $exec = !$exec; + unset($attr7_true); + unset($attr7_false); + unset($attr7_notempty); + unset($attr7_empty); + unset($attr7_contains); + unset($attr7_present); + unset($attr7_invert); + unset($attr7_not); + unset($attr7_value); + unset($attr7_equals); + $last_exec = $exec; + if ( $exec ) + { +?> +<?php unset($attr7) ?><?php unset($attr7_equals) ?><?php unset($attr7_value) ?><?php $attr8_debug_info = 'a:2:{s:4:"name";s:4:"text";s:4:"type";s:4:"wiki";}' ?><?php $attr8 = array('name'=>'text','type'=>'wiki') ?><?php $attr8_name='text' ?><?php $attr8_type='wiki' ?><?php + function checkbox( $name,$value=false,$writable=true,$params=Array() ) + { + $src = '<input type="checkbox" name="'.$name.'"'; + foreach( $params as $name=>$val ) + $src .= " $name=\"$val\""; + if ( !$writable ) + $src .= ' disabled="disabled"'; + if ( $value ) + $src .= ' value="1" checked="checked"'; + $src .= ' />'; + return $src; + } + function selectBox( $name,$values,$default='',$params=Array() ) + { + if ( ! is_array($values) ) + $values = array($values); + $src = '<select size="1" name="'.$name.'"'; + foreach( $params as $name=>$value ) + $src .= " $name=\"$value\""; + $src .= '>'; + foreach( $values as $key=>$value ) { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; + $src .= '<option value="'.$key.'"'; + if ($key == $default) + $src .= ' selected="selected"'; + $src .= '>'.$value.'</option>'; + } + $src .= '</select>'; + return $src; + } + ?><?php +switch( $attr8_type ) +{ + case 'fckeditor': + case 'html': + if ( $this->isEditMode() ) + { + include('./editor/fckeditor.php'); + $editor = new FCKeditor( $attr8_name ) ; + $editor->BasePath = defined('OR_BASE_URL')?slashify(OR_BASE_URL).'editor/':'./editor/'; + $editor->Value = $$attr8_name; + $editor->Height = '290'; + $editor->Config['CustomConfigurationsPath'] = '../openrat-fckconfig.js'; + $editor->Create(); + } + else + { + echo ($$attr8_name); + } + break; + case 'wiki': + $conf_tags = $conf['editor']['text-markup']; + if ( $this->isEditMode() ) + { + ?> +<script name="Javascript" type="text/javascript" src="<?php echo $tpl_dir ?>../../js/editor.js"></script> +<script name="JavaScript" type="text/javascript"> +function strong() +{ + insert('<?php echo $attr8_name ?>','<?php echo $conf_tags['strong-begin'] ?>','<?php echo $conf_tags['strong-end'] ?>'); +} +function emphatic() +{ + insert('<?php echo $attr8_name ?>','<?php echo $conf_tags['emphatic-begin'] ?>','<?php echo $conf_tags['emphatic-end'] ?>'); +} +function link() +{ + objectid = document.forms[0].objectid.value; + if (objectid=="" ||objectid=="0"||objectid==null) + objectid = window.prompt("Id",""); + if (objectid=="" ||objectid=="0"||objectid==null) + return; + insert('<?php echo $attr8_name ?>','"','"<?php echo $conf_tags['linkto'] ?>"'+objectid+'"'); +} +function image() +{ + objectid = document.forms[0].objectid.value; + if (objectid=="" ||objectid=="0"||objectid==null) + objectid = window.prompt("Id",""); + if (objectid=="" ||objectid=="0"||objectid==null) + return; + insert('<?php echo $attr8_name ?>','','<?php echo $conf_tags['image-begin'] ?>"'+objectid+'"<?php echo $conf_tags['image-end'] ?>'); +} +function list() +{ + insert('<?php echo $attr8_name ?>',"","\n"); + while( true ) + { + t = window.prompt('<?php echo lang('EDITOR_PROMPT_LIST_ENTRY') ?>',''); + if ( t != '' && t != null ) + insert('<?php echo $attr8_name ?>',"<?php echo $conf_tags['list-unnumbered'] ?> "+t+"\n",""); + else + break; + } +} +function numlist() +{ + insert('<?php echo $attr8_name ?>',"\n\n<?php echo $conf_tags['list-numbered'] ?> ","\n<?php echo $conf_tags['list-numbered'] ?> \n<?php echo $conf_tags['list-numbered'] ?> \n"); +} +function table() +{ + column=1; + while( true ) + { + if ( column==1 ) + text='<?php echo lang('EDITOR_PROMPT_TABLE_CELL_FIRST_COLUMN') ?>'; + else + text='<?php echo lang('EDITOR_PROMPT_TABLE_CELL') ?>'; + t = window.prompt(text,''); + if ( t != '' && t != null ) + { + insert('<?php echo $attr8_name ?>',"<?php echo $conf_tags['table-cell-sep'] ?>"+t,""); + column++; + } + else + { + if (column==1) + { break; - default: - $tmp_tag = 'span'; + } + else + { + insert('text',"\n",""); + column=1; + } } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) - $langF = 'langHtml'; + } +} +</script> + <table> + <tr> + <noscript><input type="text" name="addtext" size="10" /></noscript> + <td><noscript><?php echo checkbox('strong') ?></noscript><a href="javascript:strong();" title="<?php echo lang('PAGE_EDITOR_ADD_STRONG') ?>"><img src="<?php echo $image_dir ?>/editor/bold.png" border"0" /></a></td> + <td><noscript><?php echo checkbox('emphatic') ?></noscript><a href="javascript:emphatic();" title="<?php echo lang('PAGE_EDITOR_ADD_EMPHATIC') ?>"><img src="<?php echo $image_dir ?>/editor/italic.png" border"0" /></a></td> + <td>&nbsp;&nbsp;&nbsp;&nbsp;</td> + <td><noscript><?php echo checkbox('table') ?></noscript><a href="javascript:table();" title="<?php echo lang('PAGE_EDITOR_ADD_TABLE') ?>"><img src="<?php echo $image_dir ?>/editor/table.png" border"0" /></a></td> + <td>&nbsp;&nbsp;&nbsp;&nbsp;</td> + <td><noscript><?php echo checkbox('list') ?></noscript><a href="javascript:list();" title="<?php echo lang('PAGE_EDITOR_ADD_LIST') ?>"><img src="<?php echo $image_dir ?>/editor/list.png" border"0" /></a></td> + <td><noscript><?php echo checkbox('numlist') ?></noscript><a href="javascript:numlist();" title="<?php echo lang('PAGE_EDITOR_ADD_NUMLIST') ?>"><img src="<?php echo $image_dir ?>/editor/numlist.png" border"0" /></a></td> + <td>&nbsp;&nbsp;&nbsp;&nbsp;</td> + <td><noscript><?php echo checkbox('image') ?></noscript><a href="javascript:image();" title="<?php echo lang('PAGE_EDITOR_ADD_IMAGE') ?>"><img src="<?php echo $image_dir ?>/editor/image.png" border"0" /></a></td> + <td><noscript><?php echo checkbox('link') ?></noscript><a href="javascript:link();" title="<?php echo lang('PAGE_EDITOR_ADD_LINK') ?>"><img src="<?php echo $image_dir ?>/editor/link.png" border"0" /></a></td> + <td><?php echo selectBox('objectid',$objects) ?><noscript>&nbsp;&nbsp;&nbsp;<input type="submit" class="submit" name="addmarkup" value="<?php echo lang('GLOBAL_ADD') ?>"/></noscript></td> + </tr> + </table> + <?php ?> +<?php + echo '<textarea name="'.$attr8_name.'" class="editor" style="width:100%;height:300px;">'.$$attr8_name.'</textarea>'; + } + else + { + $attr8_tmp_doc = new DocumentElement(); + $attr8_tmp_text = $$attr8_name; + if ( !is_array($attr8_tmp_text)) + $attr8_tmp_text = explode("\n",$attr8_tmp_text); + $attr8_tmp_doc->parse($attr8_tmp_text); + echo $attr8_tmp_doc->render('application/html'); + } + break; + case 'text': + case 'raw': + if ( $this->isEditMode() ) + echo '<textarea name="'.$attr8_name.'" class="editor" style="width:100%;height:300px;">'.$$attr8_name.'</textarea>'; + else + echo nl2br($$attr8_name); + break; + case 'dom': + case 'tree': + $attr8_tmp_doc = new DocumentElement(); + $attr8_tmp_text = $$attr8_name; + if ( !is_array($attr8_tmp_text)) + $attr8_tmp_text = explode("\n",$attr8_tmp_text); + $attr8_tmp_doc->parse($attr8_tmp_text); + echo $attr8_tmp_doc->render('application/html-dom'); + break; + default: + echo "Unknown editor type: ".$attr8_type; +} +?><?php unset($attr8) ?><?php unset($attr8_name) ?><?php unset($attr8_type) ?><?php $attr8_debug_info = 'a:1:{s:4:"true";s:9:"mode:edit";}' ?><?php $attr8 = array('true'=>$this->getRequestVar("mode")=="edit") ?><?php $attr8_true=$this->getRequestVar("mode")=="edit" ?><?php + if ( isset($attr8_true) ) + { + if (gettype($attr8_true) === '' && gettype($attr8_true) === '1') + $exec = $$attr8_true == true; + else + $exec = $attr8_true == true; + } + elseif ( isset($attr8_false) ) + { + if (gettype($attr8_false) === '' && gettype($attr8_false) === '1') + $exec = $$attr8_false == false; + else + $exec = $attr8_false == false; + } + elseif( isset($attr8_contains) ) + $exec = in_array($attr8_value,explode(',',$attr8_contains)); + elseif( isset($attr8_equals)&& isset($attr8_value) ) + $exec = $attr8_equals == $attr8_value; + elseif( isset($attr8_lessthan)&& isset($attr8_value) ) + $exec = intval($attr8_lessthan) > intval($attr8_value); + elseif( isset($attr8_greaterthan)&& isset($attr8_value) ) + $exec = intval($attr8_greaterthan) < intval($attr8_value); + elseif ( isset($attr8_empty) ) + { + if ( !isset($$attr8_empty) ) + $exec = empty($attr8_empty); + elseif ( is_array($$attr8_empty) ) + $exec = (count($$attr8_empty)==0); + elseif ( is_bool($$attr8_empty) ) + $exec = true; + else + $exec = empty( $$attr8_empty ); + } + elseif ( isset($attr8_present) ) + { + $exec = isset($$attr8_present); + } else - $langF = 'lang'; - if (!empty($attr10_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; - else - $tmp_text = $langF($tmpArray[$attr10_text]); + trigger_error("error in IF, assume: FALSE"); + $exec = false; + } + if ( !empty($attr8_invert) ) + $exec = !$exec; + if ( !empty($attr8_not) ) + $exec = !$exec; + unset($attr8_true); + unset($attr8_false); + unset($attr8_notempty); + unset($attr8_empty); + unset($attr8_contains); + unset($attr8_present); + unset($attr8_invert); + unset($attr8_not); + unset($attr8_value); + unset($attr8_equals); + $last_exec = $exec; + if ( $exec ) + { +?> +<?php unset($attr8) ?><?php unset($attr8_true) ?><?php $attr9_debug_info = 'a:1:{s:5:"title";s:12:"message:help";}' ?><?php $attr9 = array('title'=>lang('help')) ?><?php $attr9_title=lang('help') ?><fieldset><?php if(isset($attr9_title)) { ?><legend><?php echo encodeHtml($attr9_title) ?></legend><?php } ?><?php unset($attr9) ?><?php unset($attr9_title) ?><?php $attr8_debug_info = 'a:0:{}' ?><?php $attr8 = array() ?></fieldset><?php unset($attr8) ?><?php $attr9_debug_info = 'a:4:{s:5:"width";s:4:"100%";s:5:"space";s:3:"0px";s:7:"padding";s:3:"0px";s:10:"rowclasses";s:8:"odd,even";}' ?><?php $attr9 = array('width'=>'100%','space'=>'0px','padding'=>'0px','rowclasses'=>'odd,even') ?><?php $attr9_width='100%' ?><?php $attr9_space='0px' ?><?php $attr9_padding='0px' ?><?php $attr9_rowclasses='odd,even' ?><?php + $coloumn_widths=array(); + $row_classes = array(''); + $column_classes= array(''); + if(empty($attr9_class)) + $attr9_class=''; + if (!empty($attr9_widths)) + { + $column_widths = explode(',',$attr9_widths); + unset($attr9['widths']); } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if (!empty($attr9_classes)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + $row_classes = explode(',',$attr9_rowclasses); + $row_class_idx = 999; + unset($attr9['rowclasses']); } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:26:"message:text_markup_strong";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>lang('text_markup_strong'),'escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text=lang('text_markup_strong') ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) + if (!empty($attr9_rowclasses)) + { + $row_classes = explode(',',$attr9_rowclasses); + $row_class_idx = 999; + unset($attr9['rowclasses']); + } + if (!empty($attr9_columnclasses)) + { + $column_classes = explode(',',$attr9_columnclasses); + unset($attr9['columnclasses']); + } +?><table class="<?php echo $attr9_class ?>" cellspacing="<?php echo $attr9_space ?>" width="<?php echo $attr9_width ?>" cellpadding="<?php echo $attr9_padding ?>"><?php unset($attr9) ?><?php unset($attr9_width) ?><?php unset($attr9_space) ?><?php unset($attr9_padding) ?><?php unset($attr9_rowclasses) ?><?php $attr10_debug_info = 'a:0:{}' ?><?php $attr10 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr10_class)) + $attr10['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr10_rowspan) ) + $attr10['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr10 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr10) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:5:"value";s:38:"config:editor/text-markup/strong-begin";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','value'=>@$conf['editor']['text-markup']['strong-begin'],'escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_value=@$conf['editor']['text-markup']['strong-begin'] ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -731,55 +3801,55 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:36:"config:editor/text-markup/strong-end";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>@$conf['editor']['text-markup']['strong-end'],'escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text=@$conf['editor']['text-markup']['strong-end'] ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_value) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:18:"text_markup_strong";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','key'=>'text_markup_strong','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_key='text_markup_strong' ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -796,55 +3866,55 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:0:{}' ?><?php $attr10 = array() ?><br/><?php unset($attr10) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:40:"config:editor/text-markup/emphatic-begin";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>@$conf['editor']['text-markup']['emphatic-begin'],'escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text=@$conf['editor']['text-markup']['emphatic-begin'] ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_key) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:5:"value";s:36:"config:editor/text-markup/strong-end";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','value'=>@$conf['editor']['text-markup']['strong-end'],'escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_value=@$conf['editor']['text-markup']['strong-end'] ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -861,55 +3931,55 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:28:"message:text_markup_emphatic";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>lang('text_markup_emphatic'),'escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text=lang('text_markup_emphatic') ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_value) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:0:{}' ?><?php $attr11 = array() ?><br/><?php unset($attr11) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:5:"value";s:40:"config:editor/text-markup/emphatic-begin";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','value'=>@$conf['editor']['text-markup']['emphatic-begin'],'escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_value=@$conf['editor']['text-markup']['emphatic-begin'] ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -926,55 +3996,55 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:38:"config:editor/text-markup/emphatic-end";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>@$conf['editor']['text-markup']['emphatic-end'],'escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text=@$conf['editor']['text-markup']['emphatic-end'] ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_value) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:20:"text_markup_emphatic";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','key'=>'text_markup_emphatic','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_key='text_markup_emphatic' ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -991,66 +4061,55 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr8_debug_info = 'a:0:{}' ?><?php $attr8 = array() ?></td><?php unset($attr8) ?><?php $attr9_debug_info = 'a:0:{}' ?><?php $attr9 = array() ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr9_class)) - $attr9['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr9_rowspan) ) - $attr9['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr9 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr9) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:39:"config:editor/text-markup/list-numbered";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>@$conf['editor']['text-markup']['list-numbered'],'escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text=@$conf['editor']['text-markup']['list-numbered'] ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_key) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:5:"value";s:38:"config:editor/text-markup/emphatic-end";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','value'=>@$conf['editor']['text-markup']['emphatic-end'],'escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_value=@$conf['editor']['text-markup']['emphatic-end'] ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -1067,55 +4126,66 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:33:"message:text_markup_numbered_list";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>lang('text_markup_numbered_list'),'escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text=lang('text_markup_numbered_list') ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_value) ?><?php unset($attr11_escape) ?><?php $attr9_debug_info = 'a:0:{}' ?><?php $attr9 = array() ?></td><?php unset($attr9) ?><?php $attr10_debug_info = 'a:0:{}' ?><?php $attr10 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr10_class)) + $attr10['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr10_rowspan) ) + $attr10['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr10 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr10) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:5:"value";s:39:"config:editor/text-markup/list-numbered";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','value'=>@$conf['editor']['text-markup']['list-numbered'],'escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_value=@$conf['editor']['text-markup']['list-numbered'] ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -1132,55 +4202,55 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:0:{}' ?><?php $attr10 = array() ?><br/><?php unset($attr10) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:39:"config:editor/text-markup/list-numbered";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>@$conf['editor']['text-markup']['list-numbered'],'escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text=@$conf['editor']['text-markup']['list-numbered'] ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_value) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:25:"text_markup_numbered_list";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','key'=>'text_markup_numbered_list','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_key='text_markup_numbered_list' ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -1197,55 +4267,55 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:4:":...";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>'...','escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text='...' ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_key) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:0:{}' ?><?php $attr11 = array() ?><br/><?php unset($attr11) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:5:"value";s:39:"config:editor/text-markup/list-numbered";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','value'=>@$conf['editor']['text-markup']['list-numbered'],'escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_value=@$conf['editor']['text-markup']['list-numbered'] ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -1262,66 +4332,55 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:0:{}' ?><?php $attr10 = array() ?><br/><?php unset($attr10) ?><?php $attr8_debug_info = 'a:0:{}' ?><?php $attr8 = array() ?></td><?php unset($attr8) ?><?php $attr9_debug_info = 'a:0:{}' ?><?php $attr9 = array() ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr9_class)) - $attr9['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr9_rowspan) ) - $attr9['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr9 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr9) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:41:"config:editor/text-markup/list-unnumbered";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>@$conf['editor']['text-markup']['list-unnumbered'],'escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text=@$conf['editor']['text-markup']['list-unnumbered'] ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_value) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:3:"...";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','raw'=>'...','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_raw='...' ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -1338,55 +4397,66 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:35:"message:text_markup_unnumbered_list";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>lang('text_markup_unnumbered_list'),'escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text=lang('text_markup_unnumbered_list') ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_raw) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:0:{}' ?><?php $attr11 = array() ?><br/><?php unset($attr11) ?><?php $attr9_debug_info = 'a:0:{}' ?><?php $attr9 = array() ?></td><?php unset($attr9) ?><?php $attr10_debug_info = 'a:0:{}' ?><?php $attr10 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr10_class)) + $attr10['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr10_rowspan) ) + $attr10['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr10 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr10) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:5:"value";s:41:"config:editor/text-markup/list-unnumbered";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','value'=>@$conf['editor']['text-markup']['list-unnumbered'],'escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_value=@$conf['editor']['text-markup']['list-unnumbered'] ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -1403,55 +4473,55 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:0:{}' ?><?php $attr10 = array() ?><br/><?php unset($attr10) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:41:"config:editor/text-markup/list-unnumbered";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>@$conf['editor']['text-markup']['list-unnumbered'],'escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text=@$conf['editor']['text-markup']['list-unnumbered'] ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_value) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:27:"text_markup_unnumbered_list";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','key'=>'text_markup_unnumbered_list','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_key='text_markup_unnumbered_list' ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -1468,55 +4538,55 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:4:":...";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>'...','escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text='...' ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_key) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:0:{}' ?><?php $attr11 = array() ?><br/><?php unset($attr11) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:5:"value";s:41:"config:editor/text-markup/list-unnumbered";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','value'=>@$conf['editor']['text-markup']['list-unnumbered'],'escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_value=@$conf['editor']['text-markup']['list-unnumbered'] ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -1533,66 +4603,55 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else - $langF = 'lang'; - if (!empty($attr10_array)) - { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; - else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; - else + $langF = 'lang'; + if (!empty($attr11_array)) + { + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; + else + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; + else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:0:{}' ?><?php $attr10 = array() ?><br/><?php unset($attr10) ?><?php $attr8_debug_info = 'a:0:{}' ?><?php $attr8 = array() ?></td><?php unset($attr8) ?><?php $attr9_debug_info = 'a:0:{}' ?><?php $attr9 = array() ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr9_class)) - $attr9['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr9_rowspan) ) - $attr9['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr9 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr9) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:40:"config:editor/text-markup/table-cell-sep";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>@$conf['editor']['text-markup']['table-cell-sep'],'escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text=@$conf['editor']['text-markup']['table-cell-sep'] ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_value) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:3:"...";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','raw'=>'...','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_raw='...' ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -1609,55 +4668,66 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:25:"message:text_markup_table";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>lang('text_markup_table'),'escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text=lang('text_markup_table') ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_raw) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:0:{}' ?><?php $attr11 = array() ?><br/><?php unset($attr11) ?><?php $attr9_debug_info = 'a:0:{}' ?><?php $attr9 = array() ?></td><?php unset($attr9) ?><?php $attr10_debug_info = 'a:0:{}' ?><?php $attr10 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr10_class)) + $attr10['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr10_rowspan) ) + $attr10['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr10 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr10) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:5:"value";s:40:"config:editor/text-markup/table-cell-sep";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','value'=>@$conf['editor']['text-markup']['table-cell-sep'],'escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_value=@$conf['editor']['text-markup']['table-cell-sep'] ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -1674,55 +4744,55 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:40:"config:editor/text-markup/table-cell-sep";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>@$conf['editor']['text-markup']['table-cell-sep'],'escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text=@$conf['editor']['text-markup']['table-cell-sep'] ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_value) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:17:"text_markup_table";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','key'=>'text_markup_table','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_key='text_markup_table' ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -1739,55 +4809,55 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:4:":...";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>'...','escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text='...' ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_key) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:5:"value";s:40:"config:editor/text-markup/table-cell-sep";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','value'=>@$conf['editor']['text-markup']['table-cell-sep'],'escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_value=@$conf['editor']['text-markup']['table-cell-sep'] ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -1804,55 +4874,55 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:40:"config:editor/text-markup/table-cell-sep";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>@$conf['editor']['text-markup']['table-cell-sep'],'escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text=@$conf['editor']['text-markup']['table-cell-sep'] ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_value) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:3:"...";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','raw'=>'...','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_raw='...' ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -1869,55 +4939,55 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:4:":...";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>'...','escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text='...' ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_raw) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:5:"value";s:40:"config:editor/text-markup/table-cell-sep";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','value'=>@$conf['editor']['text-markup']['table-cell-sep'],'escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_value=@$conf['editor']['text-markup']['table-cell-sep'] ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -1934,55 +5004,55 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:40:"config:editor/text-markup/table-cell-sep";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>@$conf['editor']['text-markup']['table-cell-sep'],'escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text=@$conf['editor']['text-markup']['table-cell-sep'] ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_value) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:3:"...";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','raw'=>'...','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_raw='...' ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -1999,55 +5069,55 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr10_array)) - { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; - else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr11_array)) + { + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; + else + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:0:{}' ?><?php $attr10 = array() ?><br/><?php unset($attr10) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:40:"config:editor/text-markup/table-cell-sep";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>@$conf['editor']['text-markup']['table-cell-sep'],'escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text=@$conf['editor']['text-markup']['table-cell-sep'] ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_raw) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:5:"value";s:40:"config:editor/text-markup/table-cell-sep";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','value'=>@$conf['editor']['text-markup']['table-cell-sep'],'escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_value=@$conf['editor']['text-markup']['table-cell-sep'] ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -2064,55 +5134,55 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:4:":...";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>'...','escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text='...' ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_value) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:0:{}' ?><?php $attr11 = array() ?><br/><?php unset($attr11) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:5:"value";s:40:"config:editor/text-markup/table-cell-sep";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','value'=>@$conf['editor']['text-markup']['table-cell-sep'],'escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_value=@$conf['editor']['text-markup']['table-cell-sep'] ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -2129,55 +5199,55 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:40:"config:editor/text-markup/table-cell-sep";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>@$conf['editor']['text-markup']['table-cell-sep'],'escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text=@$conf['editor']['text-markup']['table-cell-sep'] ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_value) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:3:"...";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','raw'=>'...','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_raw='...' ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -2194,55 +5264,55 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:4:":...";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>'...','escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text='...' ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_raw) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:5:"value";s:40:"config:editor/text-markup/table-cell-sep";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','value'=>@$conf['editor']['text-markup']['table-cell-sep'],'escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_value=@$conf['editor']['text-markup']['table-cell-sep'] ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -2259,55 +5329,55 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:40:"config:editor/text-markup/table-cell-sep";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>@$conf['editor']['text-markup']['table-cell-sep'],'escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text=@$conf['editor']['text-markup']['table-cell-sep'] ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_value) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:3:"...";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','raw'=>'...','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_raw='...' ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -2324,55 +5394,55 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:4:":...";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>'...','escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text='...' ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_raw) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:5:"value";s:40:"config:editor/text-markup/table-cell-sep";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','value'=>@$conf['editor']['text-markup']['table-cell-sep'],'escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_value=@$conf['editor']['text-markup']['table-cell-sep'] ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -2389,55 +5459,55 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); - } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:40:"config:editor/text-markup/table-cell-sep";s:6:"escape";s:4:"true";}' ?><?php $attr10 = array('class'=>'text','text'=>@$conf['editor']['text-markup']['table-cell-sep'],'escape'=>true) ?><?php $attr10_class='text' ?><?php $attr10_text=@$conf['editor']['text-markup']['table-cell-sep'] ?><?php $attr10_escape=true ?><?php - if ( isset($attr10_prefix)&& isset($attr10_key)) - $attr10_key = $attr10_prefix.$attr10_key; - if ( isset($attr10_suffix)&& isset($attr10_key)) - $attr10_key = $attr10_key.$attr10_suffix; - if(empty($attr10_title)) - $attr10_title = ''; - if (empty($attr10_type)) +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_value) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:3:"...";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','raw'=>'...','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_raw='...' ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) $tmp_tag = 'span'; else - switch( $attr10_type ) + switch( $attr11_type ) { case 'emphatic': case 'italic': @@ -2454,45 +5524,181 @@ document.forms[0].<?php echo $attr7_field ?>.select(); default: $tmp_tag = 'span'; } -?><<?php echo $tmp_tag ?> class="<?php echo $attr10_class ?>" title="<?php echo $attr10_title ?>"><?php - $attr10_title = ''; - if ( $attr10_escape ) +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) $langF = 'langHtml'; else $langF = 'lang'; - if (!empty($attr10_array)) + if (!empty($attr11_array)) { - $tmpArray = $$attr10_array; - if (!empty($attr10_var)) - $tmp_text = $tmpArray[$attr10_var]; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; else - $tmp_text = $langF($tmpArray[$attr10_text]); + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } - elseif (!empty($attr10_text)) - $tmp_text = $langF($attr10_text); - elseif (!empty($attr10_textvar)) - $tmp_text = $langF($$attr10_textvar); - elseif (!empty($attr10_key)) - $tmp_text = $langF($attr10_key); - elseif (!empty($attr10_var)) - $tmp_text = isset($$attr10_var)?$$attr10_var:'?unset:'.$attr10_var.'?'; - elseif (!empty($attr10_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr10_raw); - elseif (!empty($attr10_value)) - $tmp_text = $attr10_value; + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_raw) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:5:"value";s:40:"config:editor/text-markup/table-cell-sep";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','value'=>@$conf['editor']['text-markup']['table-cell-sep'],'escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_value=@$conf['editor']['text-markup']['table-cell-sep'] ?><?php $attr11_escape=true ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) + $attr11_title = ''; + if (empty($attr11_type)) + $tmp_tag = 'span'; + else + switch( $attr11_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if ( $attr11_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr11_array)) + { + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; + else + $tmp_text = $langF($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + $tmp_text = $langF($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = $langF($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = $langF($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; else $tmp_text = '&nbsp;'; - if ( !empty($attr10_maxlength) && intval($attr10_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr10_maxlength) ); - if (isset($attr10_accesskey)) + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + if (isset($attr11_accesskey)) { - $pos = strpos(strtolower($tmp_text),strtolower($attr10_accesskey)); + $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); if ( $pos !== false ) $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); } echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr10) ?><?php unset($attr10_class) ?><?php unset($attr10_text) ?><?php unset($attr10_escape) ?><?php $attr10_debug_info = 'a:0:{}' ?><?php $attr10 = array() ?><br/><?php unset($attr10) ?><?php $attr8_debug_info = 'a:0:{}' ?><?php $attr8 = array() ?></td><?php unset($attr8) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?></table><?php unset($attr7) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php } ?><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:2:{s:6:"equals";s:4:"link";s:5:"value";s:8:"var:type";}' ?><?php $attr4 = array('equals'=>'link','value'=>$type) ?><?php $attr4_equals='link' ?><?php $attr4_value=$type ?><?php +?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_value) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:0:{}' ?><?php $attr11 = array() ?><br/><?php unset($attr11) ?><?php $attr9_debug_info = 'a:0:{}' ?><?php $attr9 = array() ?></td><?php unset($attr9) ?><?php $attr8_debug_info = 'a:0:{}' ?><?php $attr8 = array() ?></table><?php unset($attr8) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?><?php } ?><?php unset($attr7) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php } ?><?php unset($attr6) ?><?php $attr7_debug_info = 'a:2:{s:6:"equals";s:4:"text";s:5:"value";s:10:"var:editor";}' ?><?php $attr7 = array('equals'=>'text','value'=>$editor) ?><?php $attr7_equals='text' ?><?php $attr7_value=$editor ?><?php + if ( isset($attr7_true) ) + { + if (gettype($attr7_true) === '' && gettype($attr7_true) === '1') + $exec = $$attr7_true == true; + else + $exec = $attr7_true == true; + } + elseif ( isset($attr7_false) ) + { + if (gettype($attr7_false) === '' && gettype($attr7_false) === '1') + $exec = $$attr7_false == false; + else + $exec = $attr7_false == false; + } + elseif( isset($attr7_contains) ) + $exec = in_array($attr7_value,explode(',',$attr7_contains)); + elseif( isset($attr7_equals)&& isset($attr7_value) ) + $exec = $attr7_equals == $attr7_value; + elseif( isset($attr7_lessthan)&& isset($attr7_value) ) + $exec = intval($attr7_lessthan) > intval($attr7_value); + elseif( isset($attr7_greaterthan)&& isset($attr7_value) ) + $exec = intval($attr7_greaterthan) < intval($attr7_value); + elseif ( isset($attr7_empty) ) + { + if ( !isset($$attr7_empty) ) + $exec = empty($attr7_empty); + elseif ( is_array($$attr7_empty) ) + $exec = (count($$attr7_empty)==0); + elseif ( is_bool($$attr7_empty) ) + $exec = true; + else + $exec = empty( $$attr7_empty ); + } + elseif ( isset($attr7_present) ) + { + $exec = isset($$attr7_present); + } + else + { + trigger_error("error in IF, assume: FALSE"); + $exec = false; + } + if ( !empty($attr7_invert) ) + $exec = !$exec; + if ( !empty($attr7_not) ) + $exec = !$exec; + unset($attr7_true); + unset($attr7_false); + unset($attr7_notempty); + unset($attr7_empty); + unset($attr7_contains); + unset($attr7_present); + unset($attr7_invert); + unset($attr7_not); + unset($attr7_value); + unset($attr7_equals); + $last_exec = $exec; + if ( $exec ) + { +?> +<?php unset($attr7) ?><?php unset($attr7_equals) ?><?php unset($attr7_value) ?><?php $attr8_debug_info = 'a:5:{s:4:"name";s:4:"text";s:4:"rows";s:2:"25";s:4:"cols";s:2:"70";s:5:"class";s:8:"longtext";s:7:"default";s:0:"";}' ?><?php $attr8 = array('name'=>'text','rows'=>'25','cols'=>'70','class'=>'longtext','default'=>'') ?><?php $attr8_name='text' ?><?php $attr8_rows='25' ?><?php $attr8_cols='70' ?><?php $attr8_class='longtext' ?><?php $attr8_default='' ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr8_readonly=true; + if ( !$attr8_readonly) { +?><textarea <?php if ($attr8_readonly) echo ' disabled="true"' ?> class="<?php echo $attr8_class ?>" name="<?php echo $attr8_name ?>" rows="<?php echo $attr8_rows ?>" cols="<?php echo $attr8_cols ?>"><?php echo htmlentities(isset($$attr8_name)?$$attr8_name:$attr8_default) ?></textarea><?php + } else { +?><span class="<?php echo $attr8_class ?>"><?php echo isset($$attr8_name)?$$attr8_name:$attr8_default ?></span><?php } ?><?php unset($attr8) ?><?php unset($attr8_name) ?><?php unset($attr8_rows) ?><?php unset($attr8_cols) ?><?php unset($attr8_class) ?><?php unset($attr8_default) ?><?php $attr8_debug_info = 'a:1:{s:5:"field";s:4:"text";}' ?><?php $attr8 = array('field'=>'text') ?><?php $attr8_field='text' ?><?php +if (isset($errors[0])) $attr8_field = $errors[0]; +?><script name="JavaScript" type="text/javascript"><!-- +document.forms[0].<?php echo $attr8_field ?>.focus(); +document.forms[0].<?php echo $attr8_field ?>.select(); +</script> +<?php unset($attr8) ?><?php unset($attr8_field) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php } ?><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:2:{s:6:"equals";s:4:"link";s:5:"value";s:8:"var:type";}' ?><?php $attr4 = array('equals'=>'link','value'=>$type) ?><?php $attr4_equals='link' ?><?php $attr4_value=$type ?><?php if ( isset($attr4_true) ) { if (gettype($attr4_true) === '' && gettype($attr4_true) === '1') @@ -2563,7 +5769,83 @@ document.forms[0].<?php echo $attr7_field ?>.select(); global $cell_column_nr; $cell_column_nr=0; $column_class_idx = 999; -?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6_debug_info = 'a:2:{s:5:"class";s:2:"fx";s:7:"colspan";s:1:"2";}' ?><?php $attr6 = array('class'=>'fx','colspan'=>'2') ?><?php $attr6_class='fx' ?><?php $attr6_colspan='2' ?><?php +?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr6_class)) + $attr6['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) + $attr6['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php $attr7_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:11:"link_target";s:6:"escape";s:4:"true";}' ?><?php $attr7 = array('class'=>'text','key'=>'link_target','escape'=>true) ?><?php $attr7_class='text' ?><?php $attr7_key='link_target' ?><?php $attr7_escape=true ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) + $attr7_title = ''; + if (empty($attr7_type)) + $tmp_tag = 'span'; + else + switch( $attr7_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; + if ( $attr7_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr7_array)) + { + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; + else + $tmp_text = $langF($tmpArray[$attr7_text]); + } + elseif (!empty($attr7_text)) + $tmp_text = $langF($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = $langF($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = $langF($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?$$attr7_var:'?unset:'.$attr7_var.'?'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); + if (isset($attr7_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr7_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_key) ?><?php unset($attr7_escape) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; @@ -2574,8 +5856,14 @@ document.forms[0].<?php echo $attr7_field ?>.select(); $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7_debug_info = 'a:9:{s:4:"list";s:7:"objects";s:4:"name";s:12:"linkobjectid";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr7 = array('list'=>'objects','name'=>'linkobjectid','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr7_list='objects' ?><?php $attr7_name='linkobjectid' ?><?php $attr7_onchange='' ?><?php $attr7_title='' ?><?php $attr7_class='' ?><?php $attr7_addempty=false ?><?php $attr7_multiple=false ?><?php $attr7_size='1' ?><?php $attr7_lang=false ?><?php -if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php $attr7_debug_info = 'a:9:{s:4:"list";s:7:"objects";s:4:"name";s:12:"linkobjectid";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr7 = array('list'=>'objects','name'=>'linkobjectid','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr7_list='objects' ?><?php $attr7_name='linkobjectid' ?><?php $attr7_onchange='' ?><?php $attr7_title='' ?><?php $attr7_class='' ?><?php $attr7_addempty=false ?><?php $attr7_multiple=false ?><?php $attr7_size='1' ?><?php $attr7_lang=false ?><?php +$attr7_tmp_list = $$attr7_list; +if ($this->isEditable() && $this->getRequestVar('mode')!='edit') +{ + echo empty($$attr7_name)?'- '.lang('EMPTY').' -':$attr7_tmp_list[$$attr7_name]; +} +else +{ if ( $attr7_addempty!==FALSE ) { if ($attr7_addempty===TRUE) @@ -2589,7 +5877,6 @@ if ($attr7_multiple) echo ' multiple="multiple"'; if (in_array($attr7_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; echo ' size="'.intval($attr7_size).'"'; ?>><?php - $attr7_tmp_list = $$attr7_list; if ( isset($$attr7_name) && isset($attr7_tmp_list[$$attr7_name]) ) $attr7_tmp_default = $$attr7_name; elseif ( isset($attr7_default) ) @@ -2620,14 +5907,180 @@ echo ' size="'.intval($attr7_size).'"'; } ?></select><?php if (count($$attr7_list)==0) echo '<input type="hidden" name="'.$attr7_name.'" value="" />'; -if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" value="'.$box_key.'" />' +if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" value="'.$box_key.'" />'; +} ?><?php unset($attr7) ?><?php unset($attr7_list) ?><?php unset($attr7_name) ?><?php unset($attr7_onchange) ?><?php unset($attr7_title) ?><?php unset($attr7_class) ?><?php unset($attr7_addempty) ?><?php unset($attr7_multiple) ?><?php unset($attr7_size) ?><?php unset($attr7_lang) ?><?php $attr7_debug_info = 'a:1:{s:5:"field";s:12:"linkobjectid";}' ?><?php $attr7 = array('field'=>'linkobjectid') ?><?php $attr7_field='linkobjectid' ?><?php if (isset($errors[0])) $attr7_field = $errors[0]; ?><script name="JavaScript" type="text/javascript"><!-- document.forms[0].<?php echo $attr7_field ?>.focus(); document.forms[0].<?php echo $attr7_field ?>.select(); </script> -<?php unset($attr7) ?><?php unset($attr7_field) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:2:{s:6:"equals";s:4:"list";s:5:"value";s:8:"var:type";}' ?><?php $attr4 = array('equals'=>'list','value'=>$type) ?><?php $attr4_equals='list' ?><?php $attr4_value=$type ?><?php +<?php unset($attr7) ?><?php unset($attr7_field) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr5_debug_info = 'a:1:{s:4:"true";s:9:"mode:edit";}' ?><?php $attr5 = array('true'=>$this->getRequestVar("mode")=="edit") ?><?php $attr5_true=$this->getRequestVar("mode")=="edit" ?><?php + if ( isset($attr5_true) ) + { + if (gettype($attr5_true) === '' && gettype($attr5_true) === '1') + $exec = $$attr5_true == true; + else + $exec = $attr5_true == true; + } + elseif ( isset($attr5_false) ) + { + if (gettype($attr5_false) === '' && gettype($attr5_false) === '1') + $exec = $$attr5_false == false; + else + $exec = $attr5_false == false; + } + elseif( isset($attr5_contains) ) + $exec = in_array($attr5_value,explode(',',$attr5_contains)); + elseif( isset($attr5_equals)&& isset($attr5_value) ) + $exec = $attr5_equals == $attr5_value; + elseif( isset($attr5_lessthan)&& isset($attr5_value) ) + $exec = intval($attr5_lessthan) > intval($attr5_value); + elseif( isset($attr5_greaterthan)&& isset($attr5_value) ) + $exec = intval($attr5_greaterthan) < intval($attr5_value); + elseif ( isset($attr5_empty) ) + { + if ( !isset($$attr5_empty) ) + $exec = empty($attr5_empty); + elseif ( is_array($$attr5_empty) ) + $exec = (count($$attr5_empty)==0); + elseif ( is_bool($$attr5_empty) ) + $exec = true; + else + $exec = empty( $$attr5_empty ); + } + elseif ( isset($attr5_present) ) + { + $exec = isset($$attr5_present); + } + else + { + trigger_error("error in IF, assume: FALSE"); + $exec = false; + } + if ( !empty($attr5_invert) ) + $exec = !$exec; + if ( !empty($attr5_not) ) + $exec = !$exec; + unset($attr5_true); + unset($attr5_false); + unset($attr5_notempty); + unset($attr5_empty); + unset($attr5_contains); + unset($attr5_present); + unset($attr5_invert); + unset($attr5_not); + unset($attr5_value); + unset($attr5_equals); + $last_exec = $exec; + if ( $exec ) + { +?> +<?php unset($attr5) ?><?php unset($attr5_true) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + if (empty($attr6_class)) + $attr6_class=$row_class; + global $cell_column_nr; + $cell_column_nr=0; + $column_class_idx = 999; +?><tr class="<?php echo $attr6_class ?>"><?php unset($attr6) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr7_class)) + $attr7['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) + $attr7['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:8:"link_url";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','key'=>'link_url','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_key='link_url' ?><?php $attr8_escape=true ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) + $attr8_title = ''; + if (empty($attr8_type)) + $tmp_tag = 'span'; + else + switch( $attr8_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php + $attr8_title = ''; + if ( $attr8_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr8_array)) + { + $tmpArray = $$attr8_array; + if (!empty($attr8_var)) + $tmp_text = $tmpArray[$attr8_var]; + else + $tmp_text = $langF($tmpArray[$attr8_text]); + } + elseif (!empty($attr8_text)) + $tmp_text = $langF($attr8_text); + elseif (!empty($attr8_textvar)) + $tmp_text = $langF($$attr8_textvar); + elseif (!empty($attr8_key)) + $tmp_text = $langF($attr8_key); + elseif (!empty($attr8_var)) + $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; + elseif (!empty($attr8_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr8_raw); + elseif (!empty($attr8_value)) + $tmp_text = $attr8_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); + if (isset($attr8_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_key) ?><?php unset($attr8_escape) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr7_class)) + $attr7['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) + $attr7['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php $attr8_debug_info = 'a:8:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:7:"linkurl";s:4:"size";s:2:"40";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr8 = array('class'=>'','default'=>'','type'=>'text','name'=>'linkurl','size'=>'40','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr8_class='' ?><?php $attr8_default='' ?><?php $attr8_type='text' ?><?php $attr8_name='linkurl' ?><?php $attr8_size='40' ?><?php $attr8_maxlength='256' ?><?php $attr8_onchange='' ?><?php $attr8_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr8_readonly=true; + if ($attr8_readonly && empty($$attr8_name)) $$attr8_name = '- '.lang('EMPTY').' -'; + if(!isset($attr8_default)) $attr8_default=''; +?><?php if (!$attr8_readonly || $attr8_type=='hidden') { +?><input<?php if ($attr8_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr8_name ?><?php if ($attr8_readonly) echo '_disabled' ?>" name="<?php echo $attr8_name ?><?php if ($attr8_readonly) echo '_disabled' ?>" type="<?php echo $attr8_type ?>" size="<?php echo $attr8_size ?>" maxlength="<?php echo $attr8_maxlength ?>" class="<?php echo $attr8_class ?>" value="<?php echo isset($$attr8_name)?$$attr8_name:$attr8_default ?>" <?php if (in_array($attr8_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php +if ($attr8_readonly) { +?><input type="hidden" id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name ?>" value="<?php echo isset($$attr8_name)?$$attr8_name:$attr8_default ?>" /><?php + } } else { ?><span class="<?php echo $attr8_class ?>"><?php echo isset($$attr8_name)?$$attr8_name:$attr8_default ?></span><?php } ?><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_default) ?><?php unset($attr8_type) ?><?php unset($attr8_name) ?><?php unset($attr8_size) ?><?php unset($attr8_maxlength) ?><?php unset($attr8_onchange) ?><?php unset($attr8_readonly) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></tr><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php } ?><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:2:{s:6:"equals";s:4:"list";s:5:"value";s:8:"var:type";}' ?><?php $attr4 = array('equals'=>'list','value'=>$type) ?><?php $attr4_equals='list' ?><?php $attr4_value=$type ?><?php if ( isset($attr4_true) ) { if (gettype($attr4_true) === '' && gettype($attr4_true) === '1') @@ -2698,7 +6151,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); global $cell_column_nr; $cell_column_nr=0; $column_class_idx = 999; -?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6_debug_info = 'a:2:{s:5:"class";s:2:"fx";s:7:"colspan";s:1:"2";}' ?><?php $attr6 = array('class'=>'fx','colspan'=>'2') ?><?php $attr6_class='fx' ?><?php $attr6_colspan='2' ?><?php +?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6_debug_info = 'a:1:{s:7:"colspan";s:1:"2";}' ?><?php $attr6 = array('colspan'=>'2') ?><?php $attr6_colspan='2' ?><?php $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; @@ -2709,8 +6162,14 @@ document.forms[0].<?php echo $attr7_field ?>.select(); $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7_debug_info = 'a:9:{s:4:"list";s:7:"objects";s:4:"name";s:12:"linkobjectid";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr7 = array('list'=>'objects','name'=>'linkobjectid','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr7_list='objects' ?><?php $attr7_name='linkobjectid' ?><?php $attr7_onchange='' ?><?php $attr7_title='' ?><?php $attr7_class='' ?><?php $attr7_addempty=false ?><?php $attr7_multiple=false ?><?php $attr7_size='1' ?><?php $attr7_lang=false ?><?php -if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_colspan) ?><?php $attr7_debug_info = 'a:9:{s:4:"list";s:7:"objects";s:4:"name";s:12:"linkobjectid";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr7 = array('list'=>'objects','name'=>'linkobjectid','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr7_list='objects' ?><?php $attr7_name='linkobjectid' ?><?php $attr7_onchange='' ?><?php $attr7_title='' ?><?php $attr7_class='' ?><?php $attr7_addempty=false ?><?php $attr7_multiple=false ?><?php $attr7_size='1' ?><?php $attr7_lang=false ?><?php +$attr7_tmp_list = $$attr7_list; +if ($this->isEditable() && $this->getRequestVar('mode')!='edit') +{ + echo empty($$attr7_name)?'- '.lang('EMPTY').' -':$attr7_tmp_list[$$attr7_name]; +} +else +{ if ( $attr7_addempty!==FALSE ) { if ($attr7_addempty===TRUE) @@ -2724,7 +6183,6 @@ if ($attr7_multiple) echo ' multiple="multiple"'; if (in_array($attr7_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; echo ' size="'.intval($attr7_size).'"'; ?>><?php - $attr7_tmp_list = $$attr7_list; if ( isset($$attr7_name) && isset($attr7_tmp_list[$$attr7_name]) ) $attr7_tmp_default = $$attr7_name; elseif ( isset($attr7_default) ) @@ -2755,7 +6213,8 @@ echo ' size="'.intval($attr7_size).'"'; } ?></select><?php if (count($$attr7_list)==0) echo '<input type="hidden" name="'.$attr7_name.'" value="" />'; -if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" value="'.$box_key.'" />' +if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" value="'.$box_key.'" />'; +} ?><?php unset($attr7) ?><?php unset($attr7_list) ?><?php unset($attr7_name) ?><?php unset($attr7_onchange) ?><?php unset($attr7_title) ?><?php unset($attr7_class) ?><?php unset($attr7_addempty) ?><?php unset($attr7_multiple) ?><?php unset($attr7_size) ?><?php unset($attr7_lang) ?><?php $attr7_debug_info = 'a:1:{s:5:"field";s:12:"linkobjectid";}' ?><?php $attr7 = array('field'=>'linkobjectid') ?><?php $attr7_field='linkobjectid' ?><?php if (isset($errors[0])) $attr7_field = $errors[0]; ?><script name="JavaScript" type="text/javascript"><!-- @@ -2833,7 +6292,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); global $cell_column_nr; $cell_column_nr=0; $column_class_idx = 999; -?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6_debug_info = 'a:2:{s:5:"class";s:2:"fx";s:7:"colspan";s:1:"2";}' ?><?php $attr6 = array('class'=>'fx','colspan'=>'2') ?><?php $attr6_class='fx' ?><?php $attr6_colspan='2' ?><?php +?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6_debug_info = 'a:1:{s:7:"colspan";s:1:"2";}' ?><?php $attr6 = array('colspan'=>'2') ?><?php $attr6_colspan='2' ?><?php $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; @@ -2844,7 +6303,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7_debug_info = 'a:2:{s:4:"name";s:8:"decimals";s:7:"default";s:8:"decimals";}' ?><?php $attr7 = array('name'=>'decimals','default'=>'decimals') ?><?php $attr7_name='decimals' ?><?php $attr7_default='decimals' ?><?php +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_colspan) ?><?php $attr7_debug_info = 'a:2:{s:4:"name";s:8:"decimals";s:7:"default";s:8:"decimals";}' ?><?php $attr7 = array('name'=>'decimals','default'=>'decimals') ?><?php $attr7_name='decimals' ?><?php $attr7_default='decimals' ?><?php if (isset($$attr7_name)) $attr7_tmp_value = $$attr7_name; elseif ( isset($attr7_default) ) @@ -2935,7 +6394,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); global $cell_column_nr; $cell_column_nr=0; $column_class_idx = 999; -?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6_debug_info = 'a:2:{s:5:"class";s:2:"fx";s:7:"colspan";s:1:"2";}' ?><?php $attr6 = array('class'=>'fx','colspan'=>'2') ?><?php $attr6_class='fx' ?><?php $attr6_colspan='2' ?><?php +?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6_debug_info = 'a:1:{s:7:"colspan";s:1:"2";}' ?><?php $attr6 = array('colspan'=>'2') ?><?php $attr6_colspan='2' ?><?php $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; @@ -2946,8 +6405,14 @@ document.forms[0].<?php echo $attr7_field ?>.select(); $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7_debug_info = 'a:9:{s:4:"list";s:5:"items";s:4:"name";s:4:"text";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr7 = array('list'=>'items','name'=>'text','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr7_list='items' ?><?php $attr7_name='text' ?><?php $attr7_onchange='' ?><?php $attr7_title='' ?><?php $attr7_class='' ?><?php $attr7_addempty=false ?><?php $attr7_multiple=false ?><?php $attr7_size='1' ?><?php $attr7_lang=false ?><?php -if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_colspan) ?><?php $attr7_debug_info = 'a:9:{s:4:"list";s:5:"items";s:4:"name";s:4:"text";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr7 = array('list'=>'items','name'=>'text','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr7_list='items' ?><?php $attr7_name='text' ?><?php $attr7_onchange='' ?><?php $attr7_title='' ?><?php $attr7_class='' ?><?php $attr7_addempty=false ?><?php $attr7_multiple=false ?><?php $attr7_size='1' ?><?php $attr7_lang=false ?><?php +$attr7_tmp_list = $$attr7_list; +if ($this->isEditable() && $this->getRequestVar('mode')!='edit') +{ + echo empty($$attr7_name)?'- '.lang('EMPTY').' -':$attr7_tmp_list[$$attr7_name]; +} +else +{ if ( $attr7_addempty!==FALSE ) { if ($attr7_addempty===TRUE) @@ -2961,7 +6426,6 @@ if ($attr7_multiple) echo ' multiple="multiple"'; if (in_array($attr7_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; echo ' size="'.intval($attr7_size).'"'; ?>><?php - $attr7_tmp_list = $$attr7_list; if ( isset($$attr7_name) && isset($attr7_tmp_list[$$attr7_name]) ) $attr7_tmp_default = $$attr7_name; elseif ( isset($attr7_default) ) @@ -2992,7 +6456,8 @@ echo ' size="'.intval($attr7_size).'"'; } ?></select><?php if (count($$attr7_list)==0) echo '<input type="hidden" name="'.$attr7_name.'" value="" />'; -if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" value="'.$box_key.'" />' +if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" value="'.$box_key.'" />'; +} ?><?php unset($attr7) ?><?php unset($attr7_list) ?><?php unset($attr7_name) ?><?php unset($attr7_onchange) ?><?php unset($attr7_title) ?><?php unset($attr7_class) ?><?php unset($attr7_addempty) ?><?php unset($attr7_multiple) ?><?php unset($attr7_size) ?><?php unset($attr7_lang) ?><?php $attr7_debug_info = 'a:1:{s:5:"field";s:4:"text";}' ?><?php $attr7 = array('field'=>'text') ?><?php $attr7_field='text' ?><?php if (isset($errors[0])) $attr7_field = $errors[0]; ?><script name="JavaScript" type="text/javascript"><!-- diff --git a/themes/default/pages/html/pageelement/link.tpl.php b/themes/default/pages/html/pageelement/link.tpl.php @@ -90,19 +90,19 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo lang('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo lang('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } - echo '<span class="path">'.lang('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; + echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) $path = array(); foreach( $path as $pathElement) { extract($pathElement); - echo '<a href="'.$url.'" class="path">'.lang($name).'</a>'; + echo '<a href="'.$url.'" class="path">'.langHtml($name).'</a>'; echo '&nbsp;&raquo;&nbsp;'; } - echo '<span class="title">'.lang($windowTitle).'</span>'; + echo '<span class="title">'.langHtml($windowTitle).'</span>'; ?> </td> <?php @@ -111,7 +111,7 @@ <?php ?> <!--<td class="menu" style="align:right;"> <?php if (isset($windowIcons)) foreach( $windowIcons as $icon ) { - ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.lang($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a>&nbsp;<?php + ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.langHtml($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a>&nbsp;<?php } ?> </td>--> @@ -121,23 +121,23 @@ $windowMenu = array(); foreach( $windowMenu as $menu ) { - $tmp_text = lang($menu['text']); - $tmp_key = strtoupper(lang($menu['key' ])); + $tmp_text = langHtml($menu['text']); + $tmp_key = strtoupper(langHtml($menu['key' ])); $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); if ( $tmp_pos !== false ) $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); if ( isset($menu['url']) ) { - ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php echo $this->subActionName==$menu['subaction']?'_highlight':'' ?>"><?php echo $tmp_text ?></a>&nbsp;&nbsp;&nbsp;<?php + ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu<?php echo $this->subActionName==$menu['subaction']?'_highlight':'' ?>"><?php echo $tmp_text ?></a>&nbsp;&nbsp;&nbsp;<?php } else { - ?><span class="menu_disabled" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu_disabled"><?php echo $tmp_text ?></span>&nbsp;&nbsp;&nbsp;<?php + ?><span class="menu_disabled" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu_disabled"><?php echo $tmp_text ?></span>&nbsp;&nbsp;&nbsp;<?php } } if (@$conf['help']['enabled'] ) { - ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('MENU_HELP_DESC') ?>" class="menu" style="cursor:help;"><?php echo @$conf['help']['only_question_mark']?'?':lang('MENU_HELP') ?></a><?php + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>" class="menu" style="cursor:help;"><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php } ?></td> </tr> @@ -155,7 +155,7 @@ <?php } ?> <tr class="notice_<?php echo $notice['status'] ?>"> <td style="padding:10px;" width="30px"><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> - <td style="padding:10px;padding-right:10px;padding-bottom:10px;"><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?> + <td style="padding:10px;padding-right:10px;padding-bottom:10px;"><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo langHtml($notice['key'],$notice['vars']) ?><?php if ($notice['status']=='error') { ?></strong><?php } ?> <?php if (!empty($notice['log'])) { ?><pre><?php echo htmlentities(implode("\n",$notice['log'])) ?></pre><?php } ?> </td> </tr> @@ -197,9 +197,6 @@ if ( isset($attr6_suffix)&& isset($attr6_key)) $attr6_key = $attr6_key.$attr6_suffix; if(empty($attr6_title)) - if (!empty($attr6_key)) - $attr6_title = lang($attr6_key.'_HELP'); - else $attr6_title = ''; if (empty($attr6_type)) $tmp_tag = 'span'; @@ -223,46 +220,32 @@ } ?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if ( $attr6_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; if (!empty($attr6_array)) { $tmpArray = $$attr6_array; if (!empty($attr6_var)) $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr6_text]); + $tmp_text = $langF($tmpArray[$attr6_text]); } elseif (!empty($attr6_text)) - if ( isset($$attr6_text)) - $tmp_text = lang($$attr6_text); - else - $tmp_text = lang($attr6_text); + $tmp_text = $langF($attr6_text); elseif (!empty($attr6_textvar)) - $tmp_text = lang($$attr6_textvar); + $tmp_text = $langF($$attr6_textvar); elseif (!empty($attr6_key)) - $tmp_text = lang($attr6_key); + $tmp_text = $langF($attr6_key); elseif (!empty($attr6_var)) - $tmp_text = isset($$attr6_var)?$$attr6_var:'?'.$attr6_var.'?'; + $tmp_text = isset($$attr6_var)?$$attr6_var:'?unset:'.$attr6_var.'?'; elseif (!empty($attr6_raw)) $tmp_text = str_replace('_','&nbsp;',$attr6_raw); elseif (!empty($attr6_value)) $tmp_text = $attr6_value; else $tmp_text = '&nbsp;'; - if ( $attr6_escape && empty($attr6_raw) && $tmp_text!='&nbsp;' ) - { - #$db = db_connection(); - $t2 = ''; - for ( $i=0;$i<strlen($tmp_text);$i++) - { - $o = ord($tmp_text[$i]); - #echo $o.','; - if ( $o <= 127 ) - $t2 .= $tmp_text[$i]; - else - $t2 .= '&#'.$o.';'; - } - $tmp_text = htmlentities($tmp_text,ENT_QUOTES,lang('CHARSET') ); - } if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); if (isset($attr6_accesskey)) @@ -295,7 +278,13 @@ if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_colspan) ?><?php $attr6_debug_info = 'a:9:{s:4:"list";s:7:"objects";s:4:"name";s:12:"linkobjectid";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr6 = array('list'=>'objects','name'=>'linkobjectid','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr6_list='objects' ?><?php $attr6_name='linkobjectid' ?><?php $attr6_onchange='' ?><?php $attr6_title='' ?><?php $attr6_class='' ?><?php $attr6_addempty=false ?><?php $attr6_multiple=false ?><?php $attr6_size='1' ?><?php $attr6_lang=false ?><?php -if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; +$attr6_tmp_list = $$attr6_list; +if ($this->isEditable() && $this->getRequestVar('mode')!='edit') +{ + echo empty($$attr6_name)?'- '.lang('EMPTY').' -':$attr6_tmp_list[$$attr6_name]; +} +else +{ if ( $attr6_addempty!==FALSE ) { if ($attr6_addempty===TRUE) @@ -309,7 +298,6 @@ if ($attr6_multiple) echo ' multiple="multiple"'; if (in_array($attr6_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; echo ' size="'.intval($attr6_size).'"'; ?>><?php - $attr6_tmp_list = $$attr6_list; if ( isset($$attr6_name) && isset($attr6_tmp_list[$$attr6_name]) ) $attr6_tmp_default = $$attr6_name; elseif ( isset($attr6_default) ) @@ -340,7 +328,8 @@ echo ' size="'.intval($attr6_size).'"'; } ?></select><?php if (count($$attr6_list)==0) echo '<input type="hidden" name="'.$attr6_name.'" value="" />'; -if (count($$attr6_list)==1) echo '<input type="hidden" name="'.$attr6_name.'" value="'.$box_key.'" />' +if (count($$attr6_list)==1) echo '<input type="hidden" name="'.$attr6_name.'" value="'.$box_key.'" />'; +} ?><?php unset($attr6) ?><?php unset($attr6_list) ?><?php unset($attr6_name) ?><?php unset($attr6_onchange) ?><?php unset($attr6_title) ?><?php unset($attr6_class) ?><?php unset($attr6_addempty) ?><?php unset($attr6_multiple) ?><?php unset($attr6_size) ?><?php unset($attr6_lang) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:1:{s:7:"present";s:7:"release";}' ?><?php $attr4 = array('present'=>'release') ?><?php $attr4_present='release' ?><?php if ( isset($attr4_true) ) { @@ -484,7 +473,7 @@ if (count($$attr6_list)==1) echo '<input type="hidden" name="'.$attr6_name.'" va $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) $attr7['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php unset($attr7_colspan) ?><?php $attr8_debug_info = 'a:1:{s:5:"title";s:7:"options";}' ?><?php $attr8 = array('title'=>'options') ?><?php $attr8_title='options' ?><fieldset><?php if(isset($attr8_title)) { ?><legend><?php echo $attr8_title ?></legend><?php } ?><?php unset($attr8) ?><?php unset($attr8_title) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?></fieldset><?php unset($attr7) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></tr><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php } ?><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:1:{s:7:"present";s:7:"release";}' ?><?php $attr4 = array('present'=>'release') ?><?php $attr4_present='release' ?><?php +?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php unset($attr7_colspan) ?><?php $attr8_debug_info = 'a:1:{s:5:"title";s:7:"options";}' ?><?php $attr8 = array('title'=>'options') ?><?php $attr8_title='options' ?><fieldset><?php if(isset($attr8_title)) { ?><legend><?php echo encodeHtml($attr8_title) ?></legend><?php } ?><?php unset($attr8) ?><?php unset($attr8_title) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?></fieldset><?php unset($attr7) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></tr><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php } ?><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:1:{s:7:"present";s:7:"release";}' ?><?php $attr4 = array('present'=>'release') ?><?php $attr4_present='release' ?><?php if ( isset($attr4_true) ) { if (gettype($attr4_true) === '' && gettype($attr4_true) === '1') @@ -583,9 +572,6 @@ if ( $attr7_readonly && $checked ) if ( isset($attr8_suffix)&& isset($attr8_key)) $attr8_key = $attr8_key.$attr8_suffix; if(empty($attr8_title)) - if (!empty($attr8_key)) - $attr8_title = lang($attr8_key.'_HELP'); - else $attr8_title = ''; if (empty($attr8_type)) $tmp_tag = 'span'; @@ -609,46 +595,32 @@ if ( $attr7_readonly && $checked ) } ?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if ( $attr8_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; if (!empty($attr8_array)) { $tmpArray = $$attr8_array; if (!empty($attr8_var)) $tmp_text = $tmpArray[$attr8_var]; else - $tmp_text = lang($tmpArray[$attr8_text]); + $tmp_text = $langF($tmpArray[$attr8_text]); } elseif (!empty($attr8_text)) - if ( isset($$attr8_text)) - $tmp_text = lang($$attr8_text); - else - $tmp_text = lang($attr8_text); + $tmp_text = $langF($attr8_text); elseif (!empty($attr8_textvar)) - $tmp_text = lang($$attr8_textvar); + $tmp_text = $langF($$attr8_textvar); elseif (!empty($attr8_key)) - $tmp_text = lang($attr8_key); + $tmp_text = $langF($attr8_key); elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?'.$attr8_var.'?'; + $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; elseif (!empty($attr8_raw)) $tmp_text = str_replace('_','&nbsp;',$attr8_raw); elseif (!empty($attr8_value)) $tmp_text = $attr8_value; else $tmp_text = '&nbsp;'; - if ( $attr8_escape && empty($attr8_raw) && $tmp_text!='&nbsp;' ) - { - #$db = db_connection(); - $t2 = ''; - for ( $i=0;$i<strlen($tmp_text);$i++) - { - $o = ord($tmp_text[$i]); - #echo $o.','; - if ( $o <= 127 ) - $t2 .= $tmp_text[$i]; - else - $t2 .= '&#'.$o.';'; - } - $tmp_text = htmlentities($tmp_text,ENT_QUOTES,lang('CHARSET') ); - } if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); if (isset($attr8_accesskey)) @@ -665,9 +637,6 @@ if ( $attr7_readonly && $checked ) if ( isset($attr8_suffix)&& isset($attr8_key)) $attr8_key = $attr8_key.$attr8_suffix; if(empty($attr8_title)) - if (!empty($attr8_key)) - $attr8_title = lang($attr8_key.'_HELP'); - else $attr8_title = ''; if (empty($attr8_type)) $tmp_tag = 'span'; @@ -691,46 +660,32 @@ if ( $attr7_readonly && $checked ) } ?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if ( $attr8_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; if (!empty($attr8_array)) { $tmpArray = $$attr8_array; if (!empty($attr8_var)) $tmp_text = $tmpArray[$attr8_var]; else - $tmp_text = lang($tmpArray[$attr8_text]); + $tmp_text = $langF($tmpArray[$attr8_text]); } elseif (!empty($attr8_text)) - if ( isset($$attr8_text)) - $tmp_text = lang($$attr8_text); - else - $tmp_text = lang($attr8_text); + $tmp_text = $langF($attr8_text); elseif (!empty($attr8_textvar)) - $tmp_text = lang($$attr8_textvar); + $tmp_text = $langF($$attr8_textvar); elseif (!empty($attr8_key)) - $tmp_text = lang($attr8_key); + $tmp_text = $langF($attr8_key); elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?'.$attr8_var.'?'; + $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; elseif (!empty($attr8_raw)) $tmp_text = str_replace('_','&nbsp;',$attr8_raw); elseif (!empty($attr8_value)) $tmp_text = $attr8_value; else $tmp_text = '&nbsp;'; - if ( $attr8_escape && empty($attr8_raw) && $tmp_text!='&nbsp;' ) - { - #$db = db_connection(); - $t2 = ''; - for ( $i=0;$i<strlen($tmp_text);$i++) - { - $o = ord($tmp_text[$i]); - #echo $o.','; - if ( $o <= 127 ) - $t2 .= $tmp_text[$i]; - else - $t2 .= '&#'.$o.';'; - } - $tmp_text = htmlentities($tmp_text,ENT_QUOTES,lang('CHARSET') ); - } if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); if (isset($attr8_accesskey)) @@ -840,9 +795,6 @@ if ( $attr7_readonly && $checked ) if ( isset($attr8_suffix)&& isset($attr8_key)) $attr8_key = $attr8_key.$attr8_suffix; if(empty($attr8_title)) - if (!empty($attr8_key)) - $attr8_title = lang($attr8_key.'_HELP'); - else $attr8_title = ''; if (empty($attr8_type)) $tmp_tag = 'span'; @@ -866,46 +818,32 @@ if ( $attr7_readonly && $checked ) } ?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if ( $attr8_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; if (!empty($attr8_array)) { $tmpArray = $$attr8_array; if (!empty($attr8_var)) $tmp_text = $tmpArray[$attr8_var]; else - $tmp_text = lang($tmpArray[$attr8_text]); + $tmp_text = $langF($tmpArray[$attr8_text]); } elseif (!empty($attr8_text)) - if ( isset($$attr8_text)) - $tmp_text = lang($$attr8_text); - else - $tmp_text = lang($attr8_text); + $tmp_text = $langF($attr8_text); elseif (!empty($attr8_textvar)) - $tmp_text = lang($$attr8_textvar); + $tmp_text = $langF($$attr8_textvar); elseif (!empty($attr8_key)) - $tmp_text = lang($attr8_key); + $tmp_text = $langF($attr8_key); elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?'.$attr8_var.'?'; + $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; elseif (!empty($attr8_raw)) $tmp_text = str_replace('_','&nbsp;',$attr8_raw); elseif (!empty($attr8_value)) $tmp_text = $attr8_value; else $tmp_text = '&nbsp;'; - if ( $attr8_escape && empty($attr8_raw) && $tmp_text!='&nbsp;' ) - { - #$db = db_connection(); - $t2 = ''; - for ( $i=0;$i<strlen($tmp_text);$i++) - { - $o = ord($tmp_text[$i]); - #echo $o.','; - if ( $o <= 127 ) - $t2 .= $tmp_text[$i]; - else - $t2 .= '&#'.$o.';'; - } - $tmp_text = htmlentities($tmp_text,ENT_QUOTES,lang('CHARSET') ); - } if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); if (isset($attr8_accesskey)) @@ -922,9 +860,6 @@ if ( $attr7_readonly && $checked ) if ( isset($attr8_suffix)&& isset($attr8_key)) $attr8_key = $attr8_key.$attr8_suffix; if(empty($attr8_title)) - if (!empty($attr8_key)) - $attr8_title = lang($attr8_key.'_HELP'); - else $attr8_title = ''; if (empty($attr8_type)) $tmp_tag = 'span'; @@ -948,46 +883,32 @@ if ( $attr7_readonly && $checked ) } ?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if ( $attr8_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; if (!empty($attr8_array)) { $tmpArray = $$attr8_array; if (!empty($attr8_var)) $tmp_text = $tmpArray[$attr8_var]; else - $tmp_text = lang($tmpArray[$attr8_text]); + $tmp_text = $langF($tmpArray[$attr8_text]); } elseif (!empty($attr8_text)) - if ( isset($$attr8_text)) - $tmp_text = lang($$attr8_text); - else - $tmp_text = lang($attr8_text); + $tmp_text = $langF($attr8_text); elseif (!empty($attr8_textvar)) - $tmp_text = lang($$attr8_textvar); + $tmp_text = $langF($$attr8_textvar); elseif (!empty($attr8_key)) - $tmp_text = lang($attr8_key); + $tmp_text = $langF($attr8_key); elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?'.$attr8_var.'?'; + $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; elseif (!empty($attr8_raw)) $tmp_text = str_replace('_','&nbsp;',$attr8_raw); elseif (!empty($attr8_value)) $tmp_text = $attr8_value; else $tmp_text = '&nbsp;'; - if ( $attr8_escape && empty($attr8_raw) && $tmp_text!='&nbsp;' ) - { - #$db = db_connection(); - $t2 = ''; - for ( $i=0;$i<strlen($tmp_text);$i++) - { - $o = ord($tmp_text[$i]); - #echo $o.','; - if ( $o <= 127 ) - $t2 .= $tmp_text[$i]; - else - $t2 .= '&#'.$o.';'; - } - $tmp_text = htmlentities($tmp_text,ENT_QUOTES,lang('CHARSET') ); - } if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); if (isset($attr8_accesskey)) @@ -1023,7 +944,7 @@ if ( $attr7_readonly && $checked ) if ($attr6_type=='ok') { if ($this->isEditable() && !$this->isEditMode()) - $attr6_text = lang('MODE_EDIT'); + $attr6_text = 'MODE_EDIT'; } if ($attr6_type=='ok') $attr6_type = 'submit'; @@ -1031,7 +952,7 @@ if ( $attr7_readonly && $checked ) $attr6_type = 'image'; else $attr6_src = ''; -?><input type="<?php echo $attr6_type ?>"<?php if(isset($attr6_src)) { ?> src="<?php echo $image_dir.'icon_'.$attr6_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $attr6_value ?>" class="<?php echo $attr6_class ?>" title="<?php echo lang($attr6_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr6_src) ?><?php +?><input type="<?php echo $attr6_type ?>"<?php if(isset($attr6_src)) { ?> src="<?php echo $image_dir.'icon_'.$attr6_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $attr6_value ?>" class="<?php echo $attr6_class ?>" title="<?php echo lang($attr6_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($attr6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr6_src) ?><?php ?><?php unset($attr6) ?><?php unset($attr6_type) ?><?php unset($attr6_class) ?><?php unset($attr6_value) ?><?php unset($attr6_text) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2_debug_info = 'a:0:{}' ?><?php $attr2 = array() ?> </table> </td> </tr> diff --git a/themes/default/pages/html/pageelement/prop.tpl.php b/themes/default/pages/html/pageelement/prop.tpl.php @@ -0,0 +1,2059 @@ +<?php $attr1_debug_info = 'a:1:{s:5:"class";s:4:"main";}' ?><?php $attr1 = array('class'=>'main') ?><?php $attr1_class='main' ?><?php + if (!headers_sent()) header('Content-Type: text/html; charset='.$charset) +?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html> +<head> + <title><?php echo isset($attr1_title)?$attr1_title.' - ':(isset($windowTitle)?lang($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> + <meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" /> + <meta name="MSSmartTagsPreventParsing" content="true" /> + <meta name="robots" content="noindex,nofollow" /> +<?php if (isset($windowMenu) && is_array($windowMenu)) foreach( $windowMenu as $menu ) + { + ?> + <link rel="section" href="<?php echo Html::url($actionName,@$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" /> +<?php + } +?><?php if (isset($metaList) && is_array($metaList)) foreach( $metaList as $meta ) + { + ?> + <link rel="<?php echo $meta['name'] ?>" href="<?php echo $meta['url'] ?>" title="<?php echo lang($meta['title']) ?>" /><?php + } +?><script type="text/javascript" src="themes/default/js/jquery.js"></script> + <script type="text/javascript" src="themes/default/js/jquery-lightbox.js"></script> + <link rel="stylesheet" type="text/css" href="themes/default/js/lightbox/css/jquery-lightbox.css" media="screen" /> + <script type="text/javascript"> + $(function() { + $('a.image').lightBox(); + }); + </script> +<?php if(!empty($root_stylesheet)) { ?> + <link rel="stylesheet" type="text/css" href="<?php echo $root_stylesheet ?>" /> +<?php } ?> +<?php if($root_stylesheet!=$user_stylesheet) { ?> + <link rel="stylesheet" type="text/css" href="<?php echo $user_stylesheet ?>" /> +<?php } ?> +</head> +<body class="<?php echo $attr1_class ?>" <?php if (@$conf['interface']['application_mode']) { ?> style="padding:0px;margin:0px;"<?php } ?> > +<?php unset($attr1) ?><?php unset($attr1_class) ?><?php $attr2_debug_info = 'a:4:{s:4:"name";s:0:"";s:6:"target";s:5:"_self";s:6:"method";s:4:"post";s:7:"enctype";s:33:"application/x-www-form-urlencoded";}' ?><?php $attr2 = array('name'=>'','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr2_name='' ?><?php $attr2_target='_self' ?><?php $attr2_method='post' ?><?php $attr2_enctype='application/x-www-form-urlencoded' ?><?php + if (empty($attr2_action)) + $attr2_action = $actionName; + if (empty($attr2_subaction)) + $attr2_subaction = $targetSubActionName; + if (empty($attr2_id)) + $attr2_id = $this->getRequestId(); + if ($this->isEditable() && $this->getRequestVar('mode')!='edit') + $attr2_subaction = $subActionName; +?><form name="<?php echo $attr2_name ?>" + target="<?php echo $attr2_target ?>" + action="<?php echo Html::url( $attr2_action,$attr2_subaction,$attr2_id ) ?>" + method="<?php echo $attr2_method ?>" + enctype="<?php echo $attr2_enctype ?>" style="margin:0px;padding:0px;"> +<?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') { ?> +<input type="hidden" name="mode" value="edit" /> +<?php } ?> +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $attr2_action ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $attr2_subaction ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr2_id ?>" /><?php + if ( $conf['interface']['url_sessionid'] ) + echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; +?><?php unset($attr2) ?><?php unset($attr2_name) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php $attr3_debug_info = 'a:5:{s:4:"icon";s:6:"folder";s:6:"widths";s:7:"40%,60%";s:5:"width";s:3:"93%";s:10:"rowclasses";s:8:"odd,even";s:13:"columnclasses";s:5:"1,2,3";}' ?><?php $attr3 = array('icon'=>'folder','widths'=>'40%,60%','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_icon='folder' ?><?php $attr3_widths='40%,60%' ?><?php $attr3_width='93%' ?><?php $attr3_rowclasses='odd,even' ?><?php $attr3_columnclasses='1,2,3' ?><?php + $coloumn_widths=array(); + if (!empty($attr3_widths)) + { + $column_widths = explode(',',$attr3_widths); + unset($attr3['widths']); + } + if (!empty($attr3_rowclasses)) + { + $row_classes = explode(',',$attr3_rowclasses); + $row_class_idx = 999; + unset($attr3['rowclasses']); + } + if (!empty($attr3_columnclasses)) + { + $column_classes = explode(',',$attr3_columnclasses); + unset($attr3['columnclasses']); + } + global $image_dir; + if (@$conf['interface']['application_mode'] ) + { + echo '<table class="main" cellspacing="0" cellpadding="4" width="100%" style="margin:0px;border:0px; padding:0px;" height_oo="100%">'; + } + else + { + echo '<br/><br/><br/><center>'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr3_width.'">'; + } + if (!@$conf['interface']['application_mode'] ) + { + echo '<tr><td class="menu">'; + echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; + if ($this->isEditable()) { ?> + <?php if ($this->getRequestVar('mode')=='edit') { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><?php } + echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; + if ( !isset($path) || is_array($path) ) + $path = array(); + foreach( $path as $pathElement) + { + extract($pathElement); + echo '<a href="'.$url.'" class="path">'.langHtml($name).'</a>'; + echo '&nbsp;&raquo;&nbsp;'; + } + echo '<span class="title">'.langHtml($windowTitle).'</span>'; + ?> + </td> + <?php + } + ?> +<?php ?> <!--<td class="menu" style="align:right;"> + <?php if (isset($windowIcons)) foreach( $windowIcons as $icon ) + { + ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.langHtml($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a>&nbsp;<?php + } + ?> + </td>--> + </tr> + <tr><td class="subaction"> + <?php if ( !isset($windowMenu) || !is_array($windowMenu) ) + $windowMenu = array(); + foreach( $windowMenu as $menu ) + { + $tmp_text = langHtml($menu['text']); + $tmp_key = strtoupper(langHtml($menu['key' ])); + $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); + if ( $tmp_pos !== false ) + $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); + if ( isset($menu['url']) ) + { + ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu<?php echo $this->subActionName==$menu['subaction']?'_highlight':'' ?>"><?php echo $tmp_text ?></a>&nbsp;&nbsp;&nbsp;<?php + } + else + { + ?><span class="menu_disabled" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu_disabled"><?php echo $tmp_text ?></span>&nbsp;&nbsp;&nbsp;<?php + } + } + if (@$conf['help']['enabled'] ) + { + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>" class="menu" style="cursor:help;"><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php + } + ?></td> + </tr> +<?php if (isset($notices) && count($notices)>0 ) + { ?> + <tr> + <td align="center" class="notice"> + <?php foreach( $notices as $notice_idx=>$notice ) { ?> + <br><table class="notice" width="80%"> + <?php if ($notice['name']!='') { ?> + <tr> + <td colspan="2" class="subaction" style="padding:2px; white-space:nowrap; border-bottom:1px solid black;"><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?> + </td> + </tr> +<?php } ?> + <tr class="notice_<?php echo $notice['status'] ?>"> + <td style="padding:10px;" width="30px"><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> + <td style="padding:10px;padding-right:10px;padding-bottom:10px;"><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo langHtml($notice['key'],$notice['vars']) ?><?php if ($notice['status']=='error') { ?></strong><?php } ?> + <?php if (!empty($notice['log'])) { ?><pre><?php echo htmlentities(implode("\n",$notice['log'])) ?></pre><?php } ?> + </td> + </tr> + </table> + <?php } ?> + </td> + </tr> + <tr> + <td colspan="2"><fieldset></fieldset></td> + </tr> +<?php } ?> + <tr> + <td> + <table class="n" cellspacing="0" width="100%" cellpadding="4"> +<?php unset($attr3) ?><?php unset($attr3_icon) ?><?php unset($attr3_widths) ?><?php unset($attr3_width) ?><?php unset($attr3_rowclasses) ?><?php unset($attr3_columnclasses) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + if (empty($attr4_class)) + $attr4_class=$row_class; + global $cell_column_nr; + $cell_column_nr=0; + $column_class_idx = 999; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:4:"name";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','text'=>'name','escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_text='name' ?><?php $attr6_escape=true ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) + $attr6_title = ''; + if (empty($attr6_type)) + $tmp_tag = 'span'; + else + switch( $attr6_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + if ( $attr6_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr6_array)) + { + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; + else + $tmp_text = $langF($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + $tmp_text = $langF($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = $langF($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = $langF($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?$$attr6_var:'?unset:'.$attr6_var.'?'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); + if (isset($attr6_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr6_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php unset($attr6_escape) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5_debug_info = 'a:1:{s:5:"class";s:4:"name";}' ?><?php $attr5 = array('class'=>'name') ?><?php $attr5_class='name' ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:4:"name";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','var'=>'name','escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_var='name' ?><?php $attr6_escape=true ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) + $attr6_title = ''; + if (empty($attr6_type)) + $tmp_tag = 'span'; + else + switch( $attr6_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + if ( $attr6_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr6_array)) + { + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; + else + $tmp_text = $langF($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + $tmp_text = $langF($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = $langF($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = $langF($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?$$attr6_var:'?unset:'.$attr6_var.'?'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); + if (isset($attr6_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr6_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_var) ?><?php unset($attr6_escape) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + if (empty($attr4_class)) + $attr4_class=$row_class; + global $cell_column_nr; + $cell_column_nr=0; + $column_class_idx = 999; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:11:"description";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','text'=>'description','escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_text='description' ?><?php $attr6_escape=true ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) + $attr6_title = ''; + if (empty($attr6_type)) + $tmp_tag = 'span'; + else + switch( $attr6_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + if ( $attr6_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr6_array)) + { + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; + else + $tmp_text = $langF($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + $tmp_text = $langF($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = $langF($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = $langF($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?$$attr6_var:'?unset:'.$attr6_var.'?'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); + if (isset($attr6_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr6_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php unset($attr6_escape) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:11:"description";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','var'=>'description','escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_var='description' ?><?php $attr6_escape=true ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) + $attr6_title = ''; + if (empty($attr6_type)) + $tmp_tag = 'span'; + else + switch( $attr6_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + if ( $attr6_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr6_array)) + { + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; + else + $tmp_text = $langF($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + $tmp_text = $langF($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = $langF($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = $langF($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?$$attr6_var:'?unset:'.$attr6_var.'?'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); + if (isset($attr6_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr6_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_var) ?><?php unset($attr6_escape) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + if (empty($attr4_class)) + $attr4_class=$row_class; + global $cell_column_nr; + $cell_column_nr=0; + $column_class_idx = 999; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:4:"type";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','text'=>'type','escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_text='type' ?><?php $attr6_escape=true ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) + $attr6_title = ''; + if (empty($attr6_type)) + $tmp_tag = 'span'; + else + switch( $attr6_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + if ( $attr6_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr6_array)) + { + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; + else + $tmp_text = $langF($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + $tmp_text = $langF($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = $langF($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = $langF($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?$$attr6_var:'?unset:'.$attr6_var.'?'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); + if (isset($attr6_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr6_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php unset($attr6_escape) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5_debug_info = 'a:1:{s:5:"class";s:8:"filename";}' ?><?php $attr5 = array('class'=>'filename') ?><?php $attr5_class='filename' ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6_debug_info = 'a:2:{s:5:"align";s:4:"left";s:11:"elementtype";s:16:"var:element_type";}' ?><?php $attr6 = array('align'=>'left','elementtype'=>$element_type) ?><?php $attr6_align='left' ?><?php $attr6_elementtype=$element_type ?><?php +if (isset($attr6_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr6_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr6_align ?>"><?php +} elseif (isset($attr6_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr6_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr6_align ?>"><?php +} elseif (isset($attr6_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr6_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr6_align ?>"><?php +} elseif (isset($attr6_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr6_tree.IMG_EXT ?>" border="0" align="<?php echo $attr6_align ?>"><?php +} elseif (isset($attr6_url)) { +?><img src="<?php echo $attr6_url ?>" border="0" align="<?php echo $attr6_align ?>"><?php +} elseif (isset($attr6_fileext)) { +?><img src="<?php echo $image_dir.$attr6_fileext ?>" border="0" align="<?php echo $attr6_align ?>"><?php +} elseif (isset($attr6_file)) { +?><img src="<?php echo $image_dir.$attr6_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr6_align ?>"><?php } ?><?php unset($attr6) ?><?php unset($attr6_align) ?><?php unset($attr6_elementtype) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:17:"el_{element_type}";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','key'=>'el_'.$element_type.'','escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_key='el_'.$element_type.'' ?><?php $attr6_escape=true ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) + $attr6_title = ''; + if (empty($attr6_type)) + $tmp_tag = 'span'; + else + switch( $attr6_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + if ( $attr6_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr6_array)) + { + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; + else + $tmp_text = $langF($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + $tmp_text = $langF($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = $langF($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = $langF($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?$$attr6_var:'?unset:'.$attr6_var.'?'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); + if (isset($attr6_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr6_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_key) ?><?php unset($attr6_escape) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + if (empty($attr4_class)) + $attr4_class=$row_class; + global $cell_column_nr; + $cell_column_nr=0; + $column_class_idx = 999; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5_debug_info = 'a:1:{s:7:"colspan";s:1:"2";}' ?><?php $attr5 = array('colspan'=>'2') ?><?php $attr5_colspan='2' ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_colspan) ?><?php $attr6_debug_info = 'a:1:{s:5:"title";s:23:"message:additional_info";}' ?><?php $attr6 = array('title'=>lang('additional_info')) ?><?php $attr6_title=lang('additional_info') ?><fieldset><?php if(isset($attr6_title)) { ?><legend><?php echo encodeHtml($attr6_title) ?></legend><?php } ?><?php unset($attr6) ?><?php unset($attr6_title) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></fieldset><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + if (empty($attr4_class)) + $attr4_class=$row_class; + global $cell_column_nr; + $cell_column_nr=0; + $column_class_idx = 999; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:8:"template";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','key'=>'template','escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_key='template' ?><?php $attr6_escape=true ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) + $attr6_title = ''; + if (empty($attr6_type)) + $tmp_tag = 'span'; + else + switch( $attr6_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + if ( $attr6_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr6_array)) + { + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; + else + $tmp_text = $langF($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + $tmp_text = $langF($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = $langF($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = $langF($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?$$attr6_var:'?unset:'.$attr6_var.'?'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); + if (isset($attr6_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr6_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_key) ?><?php unset($attr6_escape) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:1:{s:7:"present";s:12:"template_url";}' ?><?php $attr6 = array('present'=>'template_url') ?><?php $attr6_present='template_url' ?><?php + if ( isset($attr6_true) ) + { + if (gettype($attr6_true) === '' && gettype($attr6_true) === '1') + $exec = $$attr6_true == true; + else + $exec = $attr6_true == true; + } + elseif ( isset($attr6_false) ) + { + if (gettype($attr6_false) === '' && gettype($attr6_false) === '1') + $exec = $$attr6_false == false; + else + $exec = $attr6_false == false; + } + elseif( isset($attr6_contains) ) + $exec = in_array($attr6_value,explode(',',$attr6_contains)); + elseif( isset($attr6_equals)&& isset($attr6_value) ) + $exec = $attr6_equals == $attr6_value; + elseif( isset($attr6_lessthan)&& isset($attr6_value) ) + $exec = intval($attr6_lessthan) > intval($attr6_value); + elseif( isset($attr6_greaterthan)&& isset($attr6_value) ) + $exec = intval($attr6_greaterthan) < intval($attr6_value); + elseif ( isset($attr6_empty) ) + { + if ( !isset($$attr6_empty) ) + $exec = empty($attr6_empty); + elseif ( is_array($$attr6_empty) ) + $exec = (count($$attr6_empty)==0); + elseif ( is_bool($$attr6_empty) ) + $exec = true; + else + $exec = empty( $$attr6_empty ); + } + elseif ( isset($attr6_present) ) + { + $exec = isset($$attr6_present); + } + else + { + trigger_error("error in IF, assume: FALSE"); + $exec = false; + } + if ( !empty($attr6_invert) ) + $exec = !$exec; + if ( !empty($attr6_not) ) + $exec = !$exec; + unset($attr6_true); + unset($attr6_false); + unset($attr6_notempty); + unset($attr6_empty); + unset($attr6_contains); + unset($attr6_present); + unset($attr6_invert); + unset($attr6_not); + unset($attr6_value); + unset($attr6_equals); + $last_exec = $exec; + if ( $exec ) + { +?> +<?php unset($attr6) ?><?php unset($attr6_present) ?><?php $attr7_debug_info = 'a:4:{s:5:"title";s:0:"";s:6:"target";s:13:"cms_main_main";s:3:"url";s:16:"var:template_url";s:5:"class";s:0:"";}' ?><?php $attr7 = array('title'=>'','target'=>'cms_main_main','url'=>$template_url,'class'=>'') ?><?php $attr7_title='' ?><?php $attr7_target='cms_main_main' ?><?php $attr7_url=$template_url ?><?php $attr7_class='' ?><?php + $params = array(); + if (!empty($attr7_var1) && isset($attr7_value1)) + $params[$attr7_var1]=$attr7_value1; + if (!empty($attr7_var2) && isset($attr7_value2)) + $params[$attr7_var2]=$attr7_value2; + if (!empty($attr7_var3) && isset($attr7_value3)) + $params[$attr7_var3]=$attr7_value3; + if (!empty($attr7_var4) && isset($attr7_value4)) + $params[$attr7_var4]=$attr7_value4; + if (!empty($attr7_var5) && isset($attr7_value5)) + $params[$attr7_var5]=$attr7_value5; + if(empty($attr7_class)) + $attr7_class=''; + if(empty($attr7_title)) + $attr7_title = ''; + if(!empty($attr7_url)) + $tmp_url = $attr7_url; + else + $tmp_url = Html::url($attr7_action,$attr7_subaction,!empty($attr7_id)?$attr7_id:$this->getRequestId(),$params); +?><a<?php if (isset($attr7_name)) echo ' name="'.$attr7_name.'"'; else echo ' href="'.$tmp_url.($attr7_anchor?'#'.$attr7_anchor:'').'"' ?> class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>"<?php if (isset($attr7_accesskey)) echo ' accesskey="'.$attr7_accesskey.'"' ?> title="<?php echo encodeHtml($attr7_title) ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php unset($attr7_class) ?><?php $attr8_debug_info = 'a:2:{s:4:"file";s:13:"icon_template";s:5:"align";s:4:"left";}' ?><?php $attr8 = array('file'=>'icon_template','align'=>'left') ?><?php $attr8_file='icon_template' ?><?php $attr8_align='left' ?><?php +if (isset($attr8_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr8_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr8_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr8_tree.IMG_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_url)) { +?><img src="<?php echo $attr8_url ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_fileext)) { +?><img src="<?php echo $image_dir.$attr8_fileext ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_file)) { +?><img src="<?php echo $image_dir.$attr8_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } ?><?php unset($attr8) ?><?php unset($attr8_file) ?><?php unset($attr8_align) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:13:"template_name";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','var'=>'template_name','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_var='template_name' ?><?php $attr8_escape=true ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) + $attr8_title = ''; + if (empty($attr8_type)) + $tmp_tag = 'span'; + else + switch( $attr8_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php + $attr8_title = ''; + if ( $attr8_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr8_array)) + { + $tmpArray = $$attr8_array; + if (!empty($attr8_var)) + $tmp_text = $tmpArray[$attr8_var]; + else + $tmp_text = $langF($tmpArray[$attr8_text]); + } + elseif (!empty($attr8_text)) + $tmp_text = $langF($attr8_text); + elseif (!empty($attr8_textvar)) + $tmp_text = $langF($$attr8_textvar); + elseif (!empty($attr8_key)) + $tmp_text = $langF($attr8_key); + elseif (!empty($attr8_var)) + $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; + elseif (!empty($attr8_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr8_raw); + elseif (!empty($attr8_value)) + $tmp_text = $attr8_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); + if (isset($attr8_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_var) ?><?php unset($attr8_escape) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></a><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php } ?><?php unset($attr5) ?><?php $attr6_debug_info = 'a:1:{s:5:"empty";s:12:"template_url";}' ?><?php $attr6 = array('empty'=>'template_url') ?><?php $attr6_empty='template_url' ?><?php + if ( isset($attr6_true) ) + { + if (gettype($attr6_true) === '' && gettype($attr6_true) === '1') + $exec = $$attr6_true == true; + else + $exec = $attr6_true == true; + } + elseif ( isset($attr6_false) ) + { + if (gettype($attr6_false) === '' && gettype($attr6_false) === '1') + $exec = $$attr6_false == false; + else + $exec = $attr6_false == false; + } + elseif( isset($attr6_contains) ) + $exec = in_array($attr6_value,explode(',',$attr6_contains)); + elseif( isset($attr6_equals)&& isset($attr6_value) ) + $exec = $attr6_equals == $attr6_value; + elseif( isset($attr6_lessthan)&& isset($attr6_value) ) + $exec = intval($attr6_lessthan) > intval($attr6_value); + elseif( isset($attr6_greaterthan)&& isset($attr6_value) ) + $exec = intval($attr6_greaterthan) < intval($attr6_value); + elseif ( isset($attr6_empty) ) + { + if ( !isset($$attr6_empty) ) + $exec = empty($attr6_empty); + elseif ( is_array($$attr6_empty) ) + $exec = (count($$attr6_empty)==0); + elseif ( is_bool($$attr6_empty) ) + $exec = true; + else + $exec = empty( $$attr6_empty ); + } + elseif ( isset($attr6_present) ) + { + $exec = isset($$attr6_present); + } + else + { + trigger_error("error in IF, assume: FALSE"); + $exec = false; + } + if ( !empty($attr6_invert) ) + $exec = !$exec; + if ( !empty($attr6_not) ) + $exec = !$exec; + unset($attr6_true); + unset($attr6_false); + unset($attr6_notempty); + unset($attr6_empty); + unset($attr6_contains); + unset($attr6_present); + unset($attr6_invert); + unset($attr6_not); + unset($attr6_value); + unset($attr6_equals); + $last_exec = $exec; + if ( $exec ) + { +?> +<?php unset($attr6) ?><?php unset($attr6_empty) ?><?php $attr7_debug_info = 'a:2:{s:4:"file";s:13:"icon_template";s:5:"align";s:4:"left";}' ?><?php $attr7 = array('file'=>'icon_template','align'=>'left') ?><?php $attr7_file='icon_template' ?><?php $attr7_align='left' ?><?php +if (isset($attr7_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr7_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr7_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr7_tree.IMG_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_url)) { +?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_fileext)) { +?><img src="<?php echo $image_dir.$attr7_fileext ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_file)) { +?><img src="<?php echo $image_dir.$attr7_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } ?><?php unset($attr7) ?><?php unset($attr7_file) ?><?php unset($attr7_align) ?><?php $attr7_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:13:"template_name";s:6:"escape";s:4:"true";}' ?><?php $attr7 = array('class'=>'text','var'=>'template_name','escape'=>true) ?><?php $attr7_class='text' ?><?php $attr7_var='template_name' ?><?php $attr7_escape=true ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) + $attr7_title = ''; + if (empty($attr7_type)) + $tmp_tag = 'span'; + else + switch( $attr7_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; + if ( $attr7_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr7_array)) + { + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; + else + $tmp_text = $langF($tmpArray[$attr7_text]); + } + elseif (!empty($attr7_text)) + $tmp_text = $langF($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = $langF($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = $langF($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?$$attr7_var:'?unset:'.$attr7_var.'?'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); + if (isset($attr7_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr7_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_var) ?><?php unset($attr7_escape) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php } ?><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + if (empty($attr4_class)) + $attr4_class=$row_class; + global $cell_column_nr; + $cell_column_nr=0; + $column_class_idx = 999; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:7:"element";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','key'=>'element','escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_key='element' ?><?php $attr6_escape=true ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) + $attr6_title = ''; + if (empty($attr6_type)) + $tmp_tag = 'span'; + else + switch( $attr6_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + if ( $attr6_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr6_array)) + { + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; + else + $tmp_text = $langF($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + $tmp_text = $langF($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = $langF($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = $langF($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?$$attr6_var:'?unset:'.$attr6_var.'?'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); + if (isset($attr6_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr6_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_key) ?><?php unset($attr6_escape) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:1:{s:7:"present";s:11:"element_url";}' ?><?php $attr6 = array('present'=>'element_url') ?><?php $attr6_present='element_url' ?><?php + if ( isset($attr6_true) ) + { + if (gettype($attr6_true) === '' && gettype($attr6_true) === '1') + $exec = $$attr6_true == true; + else + $exec = $attr6_true == true; + } + elseif ( isset($attr6_false) ) + { + if (gettype($attr6_false) === '' && gettype($attr6_false) === '1') + $exec = $$attr6_false == false; + else + $exec = $attr6_false == false; + } + elseif( isset($attr6_contains) ) + $exec = in_array($attr6_value,explode(',',$attr6_contains)); + elseif( isset($attr6_equals)&& isset($attr6_value) ) + $exec = $attr6_equals == $attr6_value; + elseif( isset($attr6_lessthan)&& isset($attr6_value) ) + $exec = intval($attr6_lessthan) > intval($attr6_value); + elseif( isset($attr6_greaterthan)&& isset($attr6_value) ) + $exec = intval($attr6_greaterthan) < intval($attr6_value); + elseif ( isset($attr6_empty) ) + { + if ( !isset($$attr6_empty) ) + $exec = empty($attr6_empty); + elseif ( is_array($$attr6_empty) ) + $exec = (count($$attr6_empty)==0); + elseif ( is_bool($$attr6_empty) ) + $exec = true; + else + $exec = empty( $$attr6_empty ); + } + elseif ( isset($attr6_present) ) + { + $exec = isset($$attr6_present); + } + else + { + trigger_error("error in IF, assume: FALSE"); + $exec = false; + } + if ( !empty($attr6_invert) ) + $exec = !$exec; + if ( !empty($attr6_not) ) + $exec = !$exec; + unset($attr6_true); + unset($attr6_false); + unset($attr6_notempty); + unset($attr6_empty); + unset($attr6_contains); + unset($attr6_present); + unset($attr6_invert); + unset($attr6_not); + unset($attr6_value); + unset($attr6_equals); + $last_exec = $exec; + if ( $exec ) + { +?> +<?php unset($attr6) ?><?php unset($attr6_present) ?><?php $attr7_debug_info = 'a:4:{s:5:"title";s:0:"";s:6:"target";s:13:"cms_main_main";s:3:"url";s:15:"var:element_url";s:5:"class";s:0:"";}' ?><?php $attr7 = array('title'=>'','target'=>'cms_main_main','url'=>$element_url,'class'=>'') ?><?php $attr7_title='' ?><?php $attr7_target='cms_main_main' ?><?php $attr7_url=$element_url ?><?php $attr7_class='' ?><?php + $params = array(); + if (!empty($attr7_var1) && isset($attr7_value1)) + $params[$attr7_var1]=$attr7_value1; + if (!empty($attr7_var2) && isset($attr7_value2)) + $params[$attr7_var2]=$attr7_value2; + if (!empty($attr7_var3) && isset($attr7_value3)) + $params[$attr7_var3]=$attr7_value3; + if (!empty($attr7_var4) && isset($attr7_value4)) + $params[$attr7_var4]=$attr7_value4; + if (!empty($attr7_var5) && isset($attr7_value5)) + $params[$attr7_var5]=$attr7_value5; + if(empty($attr7_class)) + $attr7_class=''; + if(empty($attr7_title)) + $attr7_title = ''; + if(!empty($attr7_url)) + $tmp_url = $attr7_url; + else + $tmp_url = Html::url($attr7_action,$attr7_subaction,!empty($attr7_id)?$attr7_id:$this->getRequestId(),$params); +?><a<?php if (isset($attr7_name)) echo ' name="'.$attr7_name.'"'; else echo ' href="'.$tmp_url.($attr7_anchor?'#'.$attr7_anchor:'').'"' ?> class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>"<?php if (isset($attr7_accesskey)) echo ' accesskey="'.$attr7_accesskey.'"' ?> title="<?php echo encodeHtml($attr7_title) ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php unset($attr7_class) ?><?php $attr8_debug_info = 'a:2:{s:5:"align";s:4:"left";s:11:"elementtype";s:16:"var:element_type";}' ?><?php $attr8 = array('align'=>'left','elementtype'=>$element_type) ?><?php $attr8_align='left' ?><?php $attr8_elementtype=$element_type ?><?php +if (isset($attr8_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr8_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr8_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr8_tree.IMG_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_url)) { +?><img src="<?php echo $attr8_url ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_fileext)) { +?><img src="<?php echo $image_dir.$attr8_fileext ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_file)) { +?><img src="<?php echo $image_dir.$attr8_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } ?><?php unset($attr8) ?><?php unset($attr8_align) ?><?php unset($attr8_elementtype) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:12:"element_name";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','var'=>'element_name','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_var='element_name' ?><?php $attr8_escape=true ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) + $attr8_title = ''; + if (empty($attr8_type)) + $tmp_tag = 'span'; + else + switch( $attr8_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php + $attr8_title = ''; + if ( $attr8_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr8_array)) + { + $tmpArray = $$attr8_array; + if (!empty($attr8_var)) + $tmp_text = $tmpArray[$attr8_var]; + else + $tmp_text = $langF($tmpArray[$attr8_text]); + } + elseif (!empty($attr8_text)) + $tmp_text = $langF($attr8_text); + elseif (!empty($attr8_textvar)) + $tmp_text = $langF($$attr8_textvar); + elseif (!empty($attr8_key)) + $tmp_text = $langF($attr8_key); + elseif (!empty($attr8_var)) + $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; + elseif (!empty($attr8_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr8_raw); + elseif (!empty($attr8_value)) + $tmp_text = $attr8_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); + if (isset($attr8_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_var) ?><?php unset($attr8_escape) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></a><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php } ?><?php unset($attr5) ?><?php $attr6_debug_info = 'a:1:{s:5:"empty";s:11:"element_url";}' ?><?php $attr6 = array('empty'=>'element_url') ?><?php $attr6_empty='element_url' ?><?php + if ( isset($attr6_true) ) + { + if (gettype($attr6_true) === '' && gettype($attr6_true) === '1') + $exec = $$attr6_true == true; + else + $exec = $attr6_true == true; + } + elseif ( isset($attr6_false) ) + { + if (gettype($attr6_false) === '' && gettype($attr6_false) === '1') + $exec = $$attr6_false == false; + else + $exec = $attr6_false == false; + } + elseif( isset($attr6_contains) ) + $exec = in_array($attr6_value,explode(',',$attr6_contains)); + elseif( isset($attr6_equals)&& isset($attr6_value) ) + $exec = $attr6_equals == $attr6_value; + elseif( isset($attr6_lessthan)&& isset($attr6_value) ) + $exec = intval($attr6_lessthan) > intval($attr6_value); + elseif( isset($attr6_greaterthan)&& isset($attr6_value) ) + $exec = intval($attr6_greaterthan) < intval($attr6_value); + elseif ( isset($attr6_empty) ) + { + if ( !isset($$attr6_empty) ) + $exec = empty($attr6_empty); + elseif ( is_array($$attr6_empty) ) + $exec = (count($$attr6_empty)==0); + elseif ( is_bool($$attr6_empty) ) + $exec = true; + else + $exec = empty( $$attr6_empty ); + } + elseif ( isset($attr6_present) ) + { + $exec = isset($$attr6_present); + } + else + { + trigger_error("error in IF, assume: FALSE"); + $exec = false; + } + if ( !empty($attr6_invert) ) + $exec = !$exec; + if ( !empty($attr6_not) ) + $exec = !$exec; + unset($attr6_true); + unset($attr6_false); + unset($attr6_notempty); + unset($attr6_empty); + unset($attr6_contains); + unset($attr6_present); + unset($attr6_invert); + unset($attr6_not); + unset($attr6_value); + unset($attr6_equals); + $last_exec = $exec; + if ( $exec ) + { +?> +<?php unset($attr6) ?><?php unset($attr6_empty) ?><?php $attr7_debug_info = 'a:2:{s:4:"icon";s:7:"element";s:5:"align";s:4:"left";}' ?><?php $attr7 = array('icon'=>'element','align'=>'left') ?><?php $attr7_icon='element' ?><?php $attr7_align='left' ?><?php +if (isset($attr7_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr7_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr7_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr7_tree.IMG_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_url)) { +?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_fileext)) { +?><img src="<?php echo $image_dir.$attr7_fileext ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_file)) { +?><img src="<?php echo $image_dir.$attr7_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } ?><?php unset($attr7) ?><?php unset($attr7_icon) ?><?php unset($attr7_align) ?><?php $attr7_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:12:"element_name";s:6:"escape";s:4:"true";}' ?><?php $attr7 = array('class'=>'text','var'=>'element_name','escape'=>true) ?><?php $attr7_class='text' ?><?php $attr7_var='element_name' ?><?php $attr7_escape=true ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) + $attr7_title = ''; + if (empty($attr7_type)) + $tmp_tag = 'span'; + else + switch( $attr7_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; + if ( $attr7_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr7_array)) + { + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; + else + $tmp_text = $langF($tmpArray[$attr7_text]); + } + elseif (!empty($attr7_text)) + $tmp_text = $langF($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = $langF($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = $langF($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?$$attr7_var:'?unset:'.$attr7_var.'?'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); + if (isset($attr7_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr7_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_var) ?><?php unset($attr7_escape) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php } ?><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:1:{s:7:"present";s:4:"text";}' ?><?php $attr4 = array('present'=>'text') ?><?php $attr4_present='text' ?><?php + if ( isset($attr4_true) ) + { + if (gettype($attr4_true) === '' && gettype($attr4_true) === '1') + $exec = $$attr4_true == true; + else + $exec = $attr4_true == true; + } + elseif ( isset($attr4_false) ) + { + if (gettype($attr4_false) === '' && gettype($attr4_false) === '1') + $exec = $$attr4_false == false; + else + $exec = $attr4_false == false; + } + elseif( isset($attr4_contains) ) + $exec = in_array($attr4_value,explode(',',$attr4_contains)); + elseif( isset($attr4_equals)&& isset($attr4_value) ) + $exec = $attr4_equals == $attr4_value; + elseif( isset($attr4_lessthan)&& isset($attr4_value) ) + $exec = intval($attr4_lessthan) > intval($attr4_value); + elseif( isset($attr4_greaterthan)&& isset($attr4_value) ) + $exec = intval($attr4_greaterthan) < intval($attr4_value); + elseif ( isset($attr4_empty) ) + { + if ( !isset($$attr4_empty) ) + $exec = empty($attr4_empty); + elseif ( is_array($$attr4_empty) ) + $exec = (count($$attr4_empty)==0); + elseif ( is_bool($$attr4_empty) ) + $exec = true; + else + $exec = empty( $$attr4_empty ); + } + elseif ( isset($attr4_present) ) + { + $exec = isset($$attr4_present); + } + else + { + trigger_error("error in IF, assume: FALSE"); + $exec = false; + } + if ( !empty($attr4_invert) ) + $exec = !$exec; + if ( !empty($attr4_not) ) + $exec = !$exec; + unset($attr4_true); + unset($attr4_false); + unset($attr4_notempty); + unset($attr4_empty); + unset($attr4_contains); + unset($attr4_present); + unset($attr4_invert); + unset($attr4_not); + unset($attr4_value); + unset($attr4_equals); + $last_exec = $exec; + if ( $exec ) + { +?> +<?php unset($attr4) ?><?php unset($attr4_present) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + if (empty($attr5_class)) + $attr5_class=$row_class; + global $cell_column_nr; + $cell_column_nr=0; + $column_class_idx = 999; +?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6_debug_info = 'a:1:{s:7:"colspan";s:1:"2";}' ?><?php $attr6 = array('colspan'=>'2') ?><?php $attr6_colspan='2' ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr6_class)) + $attr6['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) + $attr6['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_colspan) ?><?php $attr7_debug_info = 'a:1:{s:5:"title";s:21:"message:DOCUMENT_TREE";}' ?><?php $attr7 = array('title'=>lang('DOCUMENT_TREE')) ?><?php $attr7_title=lang('DOCUMENT_TREE') ?><fieldset><?php if(isset($attr7_title)) { ?><legend><?php echo encodeHtml($attr7_title) ?></legend><?php } ?><?php unset($attr7) ?><?php unset($attr7_title) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></fieldset><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + if (empty($attr5_class)) + $attr5_class=$row_class; + global $cell_column_nr; + $cell_column_nr=0; + $column_class_idx = 999; +?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6_debug_info = 'a:1:{s:7:"colspan";s:1:"2";}' ?><?php $attr6 = array('colspan'=>'2') ?><?php $attr6_colspan='2' ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr6_class)) + $attr6['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) + $attr6['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_colspan) ?><?php $attr7_debug_info = 'a:2:{s:4:"name";s:4:"text";s:4:"type";s:3:"dom";}' ?><?php $attr7 = array('name'=>'text','type'=>'dom') ?><?php $attr7_name='text' ?><?php $attr7_type='dom' ?><?php + function checkbox( $name,$value=false,$writable=true,$params=Array() ) + { + $src = '<input type="checkbox" name="'.$name.'"'; + foreach( $params as $name=>$val ) + $src .= " $name=\"$val\""; + if ( !$writable ) + $src .= ' disabled="disabled"'; + if ( $value ) + $src .= ' value="1" checked="checked"'; + $src .= ' />'; + return $src; + } + function selectBox( $name,$values,$default='',$params=Array() ) + { + if ( ! is_array($values) ) + $values = array($values); + $src = '<select size="1" name="'.$name.'"'; + foreach( $params as $name=>$value ) + $src .= " $name=\"$value\""; + $src .= '>'; + foreach( $values as $key=>$value ) + { + $src .= '<option value="'.$key.'"'; + if ($key == $default) + $src .= ' selected="selected"'; + $src .= '>'.$value.'</option>'; + } + $src .= '</select>'; + return $src; + } + ?><?php +switch( $attr7_type ) +{ + case 'fckeditor': + case 'html': + if ( $this->isEditMode() ) + { + include('./editor/fckeditor.php'); + $editor = new FCKeditor( $attr7_name ) ; + $editor->BasePath = defined('OR_BASE_URL')?slashify(OR_BASE_URL).'editor/':'./editor/'; + $editor->Value = $$attr7_name; + $editor->Height = '290'; + $editor->Config['CustomConfigurationsPath'] = '../openrat-fckconfig.js'; + $editor->Create(); + } + else + { + echo ($$attr7_name); + } + break; + case 'wiki': + $conf_tags = $conf['editor']['text-markup']; + if ( $this->isEditMode() ) + { + ?> +<script name="Javascript" type="text/javascript" src="<?php echo $tpl_dir ?>../../js/editor.js"></script> +<script name="JavaScript" type="text/javascript"> +function strong() +{ + insert('<?php echo $attr7_name ?>','<?php echo $conf_tags['strong-begin'] ?>','<?php echo $conf_tags['strong-end'] ?>'); +} +function emphatic() +{ + insert('<?php echo $attr7_name ?>','<?php echo $conf_tags['emphatic-begin'] ?>','<?php echo $conf_tags['emphatic-end'] ?>'); +} +function link() +{ + objectid = document.forms[0].objectid.value; + if (objectid=="" ||objectid=="0"||objectid==null) + objectid = window.prompt("Id",""); + if (objectid=="" ||objectid=="0"||objectid==null) + return; + insert('<?php echo $attr7_name ?>','"','"<?php echo $conf_tags['linkto'] ?>"'+objectid+'"'); +} +function image() +{ + objectid = document.forms[0].objectid.value; + if (objectid=="" ||objectid=="0"||objectid==null) + objectid = window.prompt("Id",""); + if (objectid=="" ||objectid=="0"||objectid==null) + return; + insert('<?php echo $attr7_name ?>','','<?php echo $conf_tags['image-begin'] ?>"'+objectid+'"<?php echo $conf_tags['image-end'] ?>'); +} +function list() +{ + insert('<?php echo $attr7_name ?>',"","\n"); + while( true ) + { + t = window.prompt('<?php echo lang('EDITOR_PROMPT_LIST_ENTRY') ?>',''); + if ( t != '' && t != null ) + insert('<?php echo $attr7_name ?>',"<?php echo $conf_tags['list-unnumbered'] ?> "+t+"\n",""); + else + break; + } +} +function numlist() +{ + insert('<?php echo $attr7_name ?>',"\n\n<?php echo $conf_tags['list-numbered'] ?> ","\n<?php echo $conf_tags['list-numbered'] ?> \n<?php echo $conf_tags['list-numbered'] ?> \n"); +} +function table() +{ + column=1; + while( true ) + { + if ( column==1 ) + text='<?php echo lang('EDITOR_PROMPT_TABLE_CELL_FIRST_COLUMN') ?>'; + else + text='<?php echo lang('EDITOR_PROMPT_TABLE_CELL') ?>'; + t = window.prompt(text,''); + if ( t != '' && t != null ) + { + insert('<?php echo $attr7_name ?>',"<?php echo $conf_tags['table-cell-sep'] ?>"+t,""); + column++; + } + else + { + if (column==1) + { + break; + } + else + { + insert('text',"\n",""); + column=1; + } + } + } +} +</script> + <table> + <tr> + <noscript><input type="text" name="addtext" size="10" /></noscript> + <td><noscript><?php echo checkbox('strong') ?></noscript><a href="javascript:strong();" title="<?php echo lang('PAGE_EDITOR_ADD_STRONG') ?>"><img src="<?php echo $image_dir ?>/editor/bold.png" border"0" /></a></td> + <td><noscript><?php echo checkbox('emphatic') ?></noscript><a href="javascript:emphatic();" title="<?php echo lang('PAGE_EDITOR_ADD_EMPHATIC') ?>"><img src="<?php echo $image_dir ?>/editor/italic.png" border"0" /></a></td> + <td>&nbsp;&nbsp;&nbsp;&nbsp;</td> + <td><noscript><?php echo checkbox('table') ?></noscript><a href="javascript:table();" title="<?php echo lang('PAGE_EDITOR_ADD_TABLE') ?>"><img src="<?php echo $image_dir ?>/editor/table.png" border"0" /></a></td> + <td>&nbsp;&nbsp;&nbsp;&nbsp;</td> + <td><noscript><?php echo checkbox('list') ?></noscript><a href="javascript:list();" title="<?php echo lang('PAGE_EDITOR_ADD_LIST') ?>"><img src="<?php echo $image_dir ?>/editor/list.png" border"0" /></a></td> + <td><noscript><?php echo checkbox('numlist') ?></noscript><a href="javascript:numlist();" title="<?php echo lang('PAGE_EDITOR_ADD_NUMLIST') ?>"><img src="<?php echo $image_dir ?>/editor/numlist.png" border"0" /></a></td> + <td>&nbsp;&nbsp;&nbsp;&nbsp;</td> + <td><noscript><?php echo checkbox('image') ?></noscript><a href="javascript:image();" title="<?php echo lang('PAGE_EDITOR_ADD_IMAGE') ?>"><img src="<?php echo $image_dir ?>/editor/image.png" border"0" /></a></td> + <td><noscript><?php echo checkbox('link') ?></noscript><a href="javascript:link();" title="<?php echo lang('PAGE_EDITOR_ADD_LINK') ?>"><img src="<?php echo $image_dir ?>/editor/link.png" border"0" /></a></td> + <td><?php echo selectBox('objectid',$objects) ?><noscript>&nbsp;&nbsp;&nbsp;<input type="submit" class="submit" name="addmarkup" value="<?php echo lang('GLOBAL_ADD') ?>"/></noscript></td> + </tr> + </table> + <?php ?> +<?php + echo '<textarea name="'.$attr7_name.'" class="editor" style="width:100%;height:300px;">'.$$attr7_name.'</textarea>'; + } + else + { + $attr7_tmp_doc = new DocumentElement(); + $attr7_tmp_text = $$attr7_name; + if ( !is_array($attr7_tmp_text)) + $attr7_tmp_text = explode("\n",$attr7_tmp_text); + $attr7_tmp_doc->parse($attr7_tmp_text); + echo $attr7_tmp_doc->render('application/html'); + } + break; + case 'text': + case 'raw': + if ( $this->isEditMode() ) + echo '<textarea name="'.$attr7_name.'" class="editor" style="width:100%;height:300px;">'.$$attr7_name.'</textarea>'; + else + echo nl2br($$attr7_name); + break; + case 'dom': + case 'tree': + $attr7_tmp_doc = new DocumentElement(); + $attr7_tmp_text = $$attr7_name; + if ( !is_array($attr7_tmp_text)) + $attr7_tmp_text = explode("\n",$attr7_tmp_text); + $attr7_tmp_doc->parse($attr7_tmp_text); + echo $attr7_tmp_doc->render('application/html-dom'); + break; + default: + echo "Unknown editor type: ".$attr7_type; +} +?><?php unset($attr7) ?><?php unset($attr7_name) ?><?php unset($attr7_type) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + if (empty($attr4_class)) + $attr4_class=$row_class; + global $cell_column_nr; + $cell_column_nr=0; + $column_class_idx = 999; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5_debug_info = 'a:1:{s:7:"colspan";s:1:"2";}' ?><?php $attr5 = array('colspan'=>'2') ?><?php $attr5_colspan='2' ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_colspan) ?><?php $attr6_debug_info = 'a:1:{s:5:"title";s:21:"message:prop_userinfo";}' ?><?php $attr6 = array('title'=>lang('prop_userinfo')) ?><?php $attr6_title=lang('prop_userinfo') ?><fieldset><?php if(isset($attr6_title)) { ?><legend><?php echo encodeHtml($attr6_title) ?></legend><?php } ?><?php unset($attr6) ?><?php unset($attr6_title) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></fieldset><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + if (empty($attr4_class)) + $attr4_class=$row_class; + global $cell_column_nr; + $cell_column_nr=0; + $column_class_idx = 999; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:10:"lastchange";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','text'=>'lastchange','escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_text='lastchange' ?><?php $attr6_escape=true ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) + $attr6_title = ''; + if (empty($attr6_type)) + $tmp_tag = 'span'; + else + switch( $attr6_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + if ( $attr6_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr6_array)) + { + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; + else + $tmp_text = $langF($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + $tmp_text = $langF($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = $langF($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = $langF($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?$$attr6_var:'?unset:'.$attr6_var.'?'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); + if (isset($attr6_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr6_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php unset($attr6_escape) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:4:{s:5:"width";s:4:"100%";s:5:"space";s:3:"0px";s:7:"padding";s:3:"0px";s:10:"rowclasses";s:8:"odd,even";}' ?><?php $attr6 = array('width'=>'100%','space'=>'0px','padding'=>'0px','rowclasses'=>'odd,even') ?><?php $attr6_width='100%' ?><?php $attr6_space='0px' ?><?php $attr6_padding='0px' ?><?php $attr6_rowclasses='odd,even' ?><?php + $coloumn_widths=array(); + $row_classes = array(''); + $column_classes= array(''); + if(empty($attr6_class)) + $attr6_class=''; + if (!empty($attr6_widths)) + { + $column_widths = explode(',',$attr6_widths); + unset($attr6['widths']); + } + if (!empty($attr6_classes)) + { + $row_classes = explode(',',$attr6_rowclasses); + $row_class_idx = 999; + unset($attr6['rowclasses']); + } + if (!empty($attr6_rowclasses)) + { + $row_classes = explode(',',$attr6_rowclasses); + $row_class_idx = 999; + unset($attr6['rowclasses']); + } + if (!empty($attr6_columnclasses)) + { + $column_classes = explode(',',$attr6_columnclasses); + unset($attr6['columnclasses']); + } +?><table class="<?php echo $attr6_class ?>" cellspacing="<?php echo $attr6_space ?>" width="<?php echo $attr6_width ?>" cellpadding="<?php echo $attr6_padding ?>"><?php unset($attr6) ?><?php unset($attr6_width) ?><?php unset($attr6_space) ?><?php unset($attr6_padding) ?><?php unset($attr6_rowclasses) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + if (empty($attr7_class)) + $attr7_class=$row_class; + global $cell_column_nr; + $cell_column_nr=0; + $column_class_idx = 999; +?><tr class="<?php echo $attr7_class ?>"><?php unset($attr7) ?><?php $attr8_debug_info = 'a:0:{}' ?><?php $attr8 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr8_class)) + $attr8['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr8_rowspan) ) + $attr8['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr8 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr8) ?><?php $attr9_debug_info = 'a:2:{s:4:"icon";s:7:"el_date";s:5:"align";s:4:"left";}' ?><?php $attr9 = array('icon'=>'el_date','align'=>'left') ?><?php $attr9_icon='el_date' ?><?php $attr9_align='left' ?><?php +if (isset($attr9_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr9_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr9_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr9_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr9_tree.IMG_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_url)) { +?><img src="<?php echo $attr9_url ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_fileext)) { +?><img src="<?php echo $image_dir.$attr9_fileext ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_file)) { +?><img src="<?php echo $image_dir.$attr9_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } ?><?php unset($attr9) ?><?php unset($attr9_icon) ?><?php unset($attr9_align) ?><?php $attr9_debug_info = 'a:1:{s:4:"date";s:19:"var:lastchange_date";}' ?><?php $attr9 = array('date'=>$lastchange_date) ?><?php $attr9_date=$lastchange_date ?><?php + global $conf; + $time = $attr9_date; + if ( $time==0) + echo lang('GLOBAL_UNKNOWN'); + elseif ( !$conf['interface']['human_date_format'] ) + { + echo '<span title="'; + $dl = date(lang('DATE_FORMAT_LONG'),$time); + $dl = str_replace('{weekday}',lang('DATE_WEEKDAY'.strval(date('w',$time))),$dl); + $dl = str_replace('{month}' ,lang('DATE_MONTH' .strval(date('n',$time))),$dl); + echo $dl; + unset($dl); + echo '">'; + echo date(lang('DATE_FORMAT'),$time); + echo '</span>'; + } + else + { + $sekunden = time()-$time; + $minuten = intval($sekunden/60); + $stunden = intval($minuten /60); + $tage = intval($stunden /24); + $monate = intval($tage /30); + $jahre = intval($monate /12); + echo '<span title="'.date(lang('DATE_FORMAT'),$time).'"">'; + if ( $time==0) + echo lang('GLOBAL_UNKNOWN'); + elseif ( !$conf['interface']['human_date_format'] ) + echo date(lang('DATE_FORMAT'),$time); + elseif ( $sekunden == 1 ) + echo $sekunden.' '.lang('GLOBAL_SECOND'); + elseif ( $sekunden < 60 ) + echo $sekunden.' '.lang('GLOBAL_SECONDS'); + elseif ( $minuten == 1 ) + echo $minuten.' '.lang('GLOBAL_MINUTE'); + elseif ( $minuten < 60 ) + echo $minuten.' '.lang('GLOBAL_MINUTES'); + elseif ( $stunden == 1 ) + echo $stunden.' '.lang('GLOBAL_HOUR'); + elseif ( $stunden < 60 ) + echo $stunden.' '.lang('GLOBAL_HOURS'); + elseif ( $tage == 1 ) + echo $tage.' '.lang('GLOBAL_DAY'); + elseif ( $tage < 60 ) + echo $tage.' '.lang('GLOBAL_DAYS'); + elseif ( $monate == 1 ) + echo $monate.' '.lang('GLOBAL_MONTH'); + elseif ( $monate < 12 ) + echo $monate.' '.lang('GLOBAL_MONTHS'); + elseif ( $jahre == 1 ) + echo $jahre.' '.lang('GLOBAL_YEAR'); + else + echo $jahre.' '.lang('GLOBAL_YEARS'); + echo '</span>'; + } +?><?php unset($attr9) ?><?php unset($attr9_date) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?></td><?php unset($attr7) ?><?php $attr8_debug_info = 'a:0:{}' ?><?php $attr8 = array() ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr8_class)) + $attr8['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr8_rowspan) ) + $attr8['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr8 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr8) ?><?php $attr9_debug_info = 'a:2:{s:4:"icon";s:4:"user";s:5:"align";s:4:"left";}' ?><?php $attr9 = array('icon'=>'user','align'=>'left') ?><?php $attr9_icon='user' ?><?php $attr9_align='left' ?><?php +if (isset($attr9_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr9_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr9_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr9_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr9_tree.IMG_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_url)) { +?><img src="<?php echo $attr9_url ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_fileext)) { +?><img src="<?php echo $image_dir.$attr9_fileext ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_file)) { +?><img src="<?php echo $image_dir.$attr9_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } ?><?php unset($attr9) ?><?php unset($attr9_icon) ?><?php unset($attr9_align) ?><?php $attr9_debug_info = 'a:1:{s:4:"user";s:19:"var:lastchange_user";}' ?><?php $attr9 = array('user'=>$lastchange_user) ?><?php $attr9_user=$lastchange_user ?><?php + if ( is_object($attr9_user) ) + $user = $attr9_user; + else + $user = $$attr9_user; + if ( empty($user->name) ) + $user->name = lang('GLOBAL_UNKNOWN'); + if ( empty($user->fullname) ) + $user->fullname = lang('GLOBAL_NO_DESCRIPTION_AVAILABLE'); + if ( !empty($user->mail) && $conf['security']['user']['show_mail'] ) + echo '<a href="mailto:'.$user->mail.'" title="'.$user->fullname.'">'.$user->name.'</a>'; + else + echo '<span title="'.$user->fullname.'">'.$user->name.'</span>'; +?><?php unset($attr9) ?><?php unset($attr9_user) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?></td><?php unset($attr7) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></tr><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></table><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2_debug_info = 'a:0:{}' ?><?php $attr2 = array() ?> </table> + </td> + </tr> +</table> +</center> +<?php if ($showDuration) + { ?> +<br/> +<center><small>&nbsp; +<?php $dur = time()-START_TIME; + echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> +<?php } ?> +<?php unset($attr2) ?><?php $attr1_debug_info = 'a:0:{}' ?><?php $attr1 = array() ?></form> +<?php unset($attr1) ?><?php $attr0_debug_info = 'a:0:{}' ?><?php $attr0 = array() ?></body> +</html><?php unset($attr0) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/pageelement/show.tpl.php b/themes/default/pages/html/pageelement/show.tpl.php @@ -68,8 +68,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -133,7 +133,7 @@ <?php } ?> <tr class="notice_<?php echo $notice['status'] ?>"> <td style="padding:10px;" width="30px"><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> - <td style="padding:10px;padding-right:10px;padding-bottom:10px;"><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?> + <td style="padding:10px;padding-right:10px;padding-bottom:10px;"><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo langHtml($notice['key'],$notice['vars']) ?><?php if ($notice['status']=='error') { ?></strong><?php } ?> <?php if (!empty($notice['log'])) { ?><pre><?php echo htmlentities(implode("\n",$notice['log'])) ?></pre><?php } ?> </td> </tr> @@ -175,9 +175,6 @@ if ( isset($attr5_suffix)&& isset($attr5_key)) $attr5_key = $attr5_key.$attr5_suffix; if(empty($attr5_title)) - if (!empty($attr5_key)) - $attr5_title = lang($attr5_key.'_HELP'); - else $attr5_title = ''; if (empty($attr5_type)) $tmp_tag = 'span'; @@ -214,16 +211,13 @@ $tmp_text = $langF($tmpArray[$attr5_text]); } elseif (!empty($attr5_text)) - if ( isset($$attr5_text)) - $tmp_text = $langF($$attr5_text); - else - $tmp_text = $langF($attr5_text); + $tmp_text = $langF($attr5_text); elseif (!empty($attr5_textvar)) $tmp_text = $langF($$attr5_textvar); elseif (!empty($attr5_key)) $tmp_text = $langF($attr5_key); elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?'.$attr5_var.'?'; + $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$attr5_var.'?'; elseif (!empty($attr5_raw)) $tmp_text = str_replace('_','&nbsp;',$attr5_raw); elseif (!empty($attr5_value)) diff --git a/themes/default/pages/html/project/edit.tpl.php b/themes/default/pages/html/project/edit.tpl.php @@ -90,8 +90,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -270,7 +270,7 @@ ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:4:"name";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:4:"name";s:4:"size";s:2:"30";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr6 = array('class'=>'name','default'=>'','type'=>'text','name'=>'name','size'=>'30','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr6_class='name' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='name' ?><?php $attr6_size='30' ?><?php $attr6_maxlength='256' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; if ($attr6_readonly && empty($$attr6_name)) $$attr6_name = '- '.lang('EMPTY').' -'; if(!isset($attr6_default)) $attr6_default=''; -?><?php if (!$attr6_readonly) { +?><?php if (!$attr6_readonly || $attr6_type=='hidden') { ?><input<?php if ($attr6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" name="<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" <?php if (in_array($attr6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr6_readonly) { ?><input type="hidden" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" /><?php @@ -374,7 +374,7 @@ if ($attr6_readonly) { ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:8:"filename";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:10:"target_dir";s:4:"size";s:2:"50";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr6 = array('class'=>'filename','default'=>'','type'=>'text','name'=>'target_dir','size'=>'50','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr6_class='filename' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='target_dir' ?><?php $attr6_size='50' ?><?php $attr6_maxlength='256' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; if ($attr6_readonly && empty($$attr6_name)) $$attr6_name = '- '.lang('EMPTY').' -'; if(!isset($attr6_default)) $attr6_default=''; -?><?php if (!$attr6_readonly) { +?><?php if (!$attr6_readonly || $attr6_type=='hidden') { ?><input<?php if ($attr6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" name="<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" <?php if (in_array($attr6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr6_readonly) { ?><input type="hidden" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" /><?php @@ -478,7 +478,7 @@ if ($attr6_readonly) { ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:8:"filename";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:17:"cmd_after_publish";s:4:"size";s:2:"50";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:47:"!config:publish/project/override_system_command";}' ?><?php $attr6 = array('class'=>'filename','default'=>'','type'=>'text','name'=>'cmd_after_publish','size'=>'50','maxlength'=>'256','onchange'=>'','readonly'=>! @$conf['publish']['project']['override_system_command']) ?><?php $attr6_class='filename' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='cmd_after_publish' ?><?php $attr6_size='50' ?><?php $attr6_maxlength='256' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=! @$conf['publish']['project']['override_system_command'] ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; if ($attr6_readonly && empty($$attr6_name)) $$attr6_name = '- '.lang('EMPTY').' -'; if(!isset($attr6_default)) $attr6_default=''; -?><?php if (!$attr6_readonly) { +?><?php if (!$attr6_readonly || $attr6_type=='hidden') { ?><input<?php if ($attr6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" name="<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" <?php if (in_array($attr6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr6_readonly) { ?><input type="hidden" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" /><?php @@ -603,7 +603,7 @@ if ($attr6_readonly) { ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:8:"filename";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:7:"ftp_url";s:4:"size";s:2:"50";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:26:"!config:publish/ftp/enable";}' ?><?php $attr6 = array('class'=>'filename','default'=>'','type'=>'text','name'=>'ftp_url','size'=>'50','maxlength'=>'256','onchange'=>'','readonly'=>! @$conf['publish']['ftp']['enable']) ?><?php $attr6_class='filename' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='ftp_url' ?><?php $attr6_size='50' ?><?php $attr6_maxlength='256' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=! @$conf['publish']['ftp']['enable'] ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; if ($attr6_readonly && empty($$attr6_name)) $$attr6_name = '- '.lang('EMPTY').' -'; if(!isset($attr6_default)) $attr6_default=''; -?><?php if (!$attr6_readonly) { +?><?php if (!$attr6_readonly || $attr6_type=='hidden') { ?><input<?php if ($attr6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" name="<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" <?php if (in_array($attr6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr6_readonly) { ?><input type="hidden" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" /><?php diff --git a/themes/default/pages/html/project/listing.tpl.php b/themes/default/pages/html/project/listing.tpl.php @@ -68,8 +68,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -208,13 +208,15 @@ $tmp_url = $attr6_url; else $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($attr6_id)?$attr6_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:2:{s:4:"file";s:12:"icon_project";s:5:"align";s:4:"left";}' ?><?php $attr7 = array('file'=>'icon_project','align'=>'left') ?><?php $attr7_file='icon_project' ?><?php $attr7_align='left' ?><?php +?><a<?php if (isset($attr6_name)) echo ' name="'.$attr6_name.'"'; else echo ' href="'.$tmp_url.($attr6_anchor?'#'.$attr6_anchor:'').'"' ?> class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:2:{s:4:"file";s:12:"icon_project";s:5:"align";s:4:"left";}' ?><?php $attr7 = array('file'=>'icon_project','align'=>'left') ?><?php $attr7_file='icon_project' ?><?php $attr7_align='left' ?><?php if (isset($attr7_elementtype)) { ?><img src="<?php echo $image_dir.'icon_el_'.$attr7_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_type)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr7_tree.IMG_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_url)) { ?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_fileext)) { @@ -316,7 +318,7 @@ if (isset($attr7_elementtype)) { $tmp_url = $attr6_url; else $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($attr6_id)?$attr6_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:13:"GLOBAL_SELECT";s:6:"escape";s:4:"true";}' ?><?php $attr7 = array('class'=>'text','key'=>'GLOBAL_SELECT','escape'=>true) ?><?php $attr7_class='text' ?><?php $attr7_key='GLOBAL_SELECT' ?><?php $attr7_escape=true ?><?php +?><a<?php if (isset($attr6_name)) echo ' name="'.$attr6_name.'"'; else echo ' href="'.$tmp_url.($attr6_anchor?'#'.$attr6_anchor:'').'"' ?> class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:13:"GLOBAL_SELECT";s:6:"escape";s:4:"true";}' ?><?php $attr7 = array('class'=>'text','key'=>'GLOBAL_SELECT','escape'=>true) ?><?php $attr7_class='text' ?><?php $attr7_key='GLOBAL_SELECT' ?><?php $attr7_escape=true ?><?php if ( isset($attr7_prefix)&& isset($attr7_key)) $attr7_key = $attr7_prefix.$attr7_key; if ( isset($attr7_suffix)&& isset($attr7_key)) diff --git a/themes/default/pages/html/search/prop.tpl.php b/themes/default/pages/html/search/prop.tpl.php @@ -191,7 +191,7 @@ $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_colspan) ?><?php $attr6_debug_info = 'a:1:{s:5:"title";s:19:"message:global_user";}' ?><?php $attr6 = array('title'=>lang('global_user')) ?><?php $attr6_title=lang('global_user') ?><fieldset><?php if(isset($attr6_title)) { ?><legend><?php echo $attr6_title ?></legend><?php } ?><?php unset($attr6) ?><?php unset($attr6_title) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></fieldset><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_colspan) ?><?php $attr6_debug_info = 'a:1:{s:5:"title";s:19:"message:global_user";}' ?><?php $attr6 = array('title'=>lang('global_user')) ?><?php $attr6_title=lang('global_user') ?><fieldset><?php if(isset($attr6_title)) { ?><legend><?php echo encodeHtml($attr6_title) ?></legend><?php } ?><?php unset($attr6) ?><?php unset($attr6_title) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></fieldset><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; @@ -437,7 +437,7 @@ if (count($$attr6_list)==1) echo '<input type="hidden" name="'.$attr6_name.'" va $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_colspan) ?><?php $attr6_debug_info = 'a:1:{s:5:"title";s:24:"message:MENU_SEARCH_PROP";}' ?><?php $attr6 = array('title'=>lang('MENU_SEARCH_PROP')) ?><?php $attr6_title=lang('MENU_SEARCH_PROP') ?><fieldset><?php if(isset($attr6_title)) { ?><legend><?php echo $attr6_title ?></legend><?php } ?><?php unset($attr6) ?><?php unset($attr6_title) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></fieldset><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_colspan) ?><?php $attr6_debug_info = 'a:1:{s:5:"title";s:24:"message:MENU_SEARCH_PROP";}' ?><?php $attr6 = array('title'=>lang('MENU_SEARCH_PROP')) ?><?php $attr6_title=lang('MENU_SEARCH_PROP') ?><fieldset><?php if(isset($attr6_title)) { ?><legend><?php echo encodeHtml($attr6_title) ?></legend><?php } ?><?php unset($attr6) ?><?php unset($attr6_title) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></fieldset><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; @@ -764,7 +764,7 @@ if (count($$attr6_list)==1) echo '<input type="hidden" name="'.$attr6_name.'" va ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:4:"text";s:4:"size";s:2:"40";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr6 = array('class'=>'','default'=>'','type'=>'text','name'=>'text','size'=>'40','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr6_class='' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='text' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; if ($attr6_readonly && empty($$attr6_name)) $$attr6_name = '- '.lang('EMPTY').' -'; if(!isset($attr6_default)) $attr6_default=''; -?><?php if (!$attr6_readonly) { +?><?php if (!$attr6_readonly || $attr6_type=='hidden') { ?><input<?php if ($attr6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" name="<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" <?php if (in_array($attr6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr6_readonly) { ?><input type="hidden" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" /><?php diff --git a/themes/default/pages/html/template/addel.tpl.php b/themes/default/pages/html/template/addel.tpl.php @@ -90,8 +90,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -270,7 +270,7 @@ ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:4:"name";s:4:"size";s:2:"40";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr6 = array('class'=>'','default'=>'','type'=>'text','name'=>'name','size'=>'40','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr6_class='' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='name' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; if ($attr6_readonly && empty($$attr6_name)) $$attr6_name = '- '.lang('EMPTY').' -'; if(!isset($attr6_default)) $attr6_default=''; -?><?php if (!$attr6_readonly) { +?><?php if (!$attr6_readonly || $attr6_type=='hidden') { ?><input<?php if ($attr6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" name="<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" <?php if (in_array($attr6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr6_readonly) { ?><input type="hidden" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" /><?php @@ -379,7 +379,13 @@ if ($attr6_readonly) { else $$attr6_var = $attr6_value; ?><?php unset($attr6) ?><?php unset($attr6_var) ?><?php unset($attr6_value) ?><?php $attr6_debug_info = 'a:10:{s:4:"list";s:5:"types";s:4:"name";s:4:"type";s:7:"default";s:4:"text";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr6 = array('list'=>'types','name'=>'type','default'=>'text','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr6_list='types' ?><?php $attr6_name='type' ?><?php $attr6_default='text' ?><?php $attr6_onchange='' ?><?php $attr6_title='' ?><?php $attr6_class='' ?><?php $attr6_addempty=false ?><?php $attr6_multiple=false ?><?php $attr6_size='1' ?><?php $attr6_lang=false ?><?php -if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; +$attr6_tmp_list = $$attr6_list; +if ($this->isEditable() && $this->getRequestVar('mode')!='edit') +{ + echo empty($$attr6_name)?'- '.lang('EMPTY').' -':$attr6_tmp_list[$$attr6_name]; +} +else +{ if ( $attr6_addempty!==FALSE ) { if ($attr6_addempty===TRUE) @@ -393,7 +399,6 @@ if ($attr6_multiple) echo ' multiple="multiple"'; if (in_array($attr6_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; echo ' size="'.intval($attr6_size).'"'; ?>><?php - $attr6_tmp_list = $$attr6_list; if ( isset($$attr6_name) && isset($attr6_tmp_list[$$attr6_name]) ) $attr6_tmp_default = $$attr6_name; elseif ( isset($attr6_default) ) @@ -424,7 +429,8 @@ echo ' size="'.intval($attr6_size).'"'; } ?></select><?php if (count($$attr6_list)==0) echo '<input type="hidden" name="'.$attr6_name.'" value="" />'; -if (count($$attr6_list)==1) echo '<input type="hidden" name="'.$attr6_name.'" value="'.$box_key.'" />' +if (count($$attr6_list)==1) echo '<input type="hidden" name="'.$attr6_name.'" value="'.$box_key.'" />'; +} ?><?php unset($attr6) ?><?php unset($attr6_list) ?><?php unset($attr6_name) ?><?php unset($attr6_default) ?><?php unset($attr6_onchange) ?><?php unset($attr6_title) ?><?php unset($attr6_class) ?><?php unset($attr6_addempty) ?><?php unset($attr6_multiple) ?><?php unset($attr6_size) ?><?php unset($attr6_lang) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) diff --git a/themes/default/pages/html/template/el.tpl.php b/themes/default/pages/html/template/el.tpl.php @@ -68,8 +68,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -208,13 +208,15 @@ $tmp_url = $attr6_url; else $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($attr6_id)?$attr6_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:2:{s:5:"align";s:4:"left";s:11:"elementtype";s:8:"var:type";}' ?><?php $attr7 = array('align'=>'left','elementtype'=>$type) ?><?php $attr7_align='left' ?><?php $attr7_elementtype=$type ?><?php +?><a<?php if (isset($attr6_name)) echo ' name="'.$attr6_name.'"'; else echo ' href="'.$tmp_url.($attr6_anchor?'#'.$attr6_anchor:'').'"' ?> class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:2:{s:5:"align";s:4:"left";s:11:"elementtype";s:8:"var:type";}' ?><?php $attr7 = array('align'=>'left','elementtype'=>$type) ?><?php $attr7_align='left' ?><?php $attr7_elementtype=$type ?><?php if (isset($attr7_elementtype)) { ?><img src="<?php echo $image_dir.'icon_el_'.$attr7_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_type)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr7_tree.IMG_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_url)) { ?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_fileext)) { diff --git a/themes/default/pages/html/template/listing.tpl.php b/themes/default/pages/html/template/listing.tpl.php @@ -68,8 +68,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -208,7 +208,7 @@ $tmp_url = $attr6_url; else $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($attr6_id)?$attr6_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:4:"name";s:6:"escape";s:4:"true";}' ?><?php $attr7 = array('class'=>'text','var'=>'name','escape'=>true) ?><?php $attr7_class='text' ?><?php $attr7_var='name' ?><?php $attr7_escape=true ?><?php +?><a<?php if (isset($attr6_name)) echo ' name="'.$attr6_name.'"'; else echo ' href="'.$tmp_url.($attr6_anchor?'#'.$attr6_anchor:'').'"' ?> class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:4:"name";s:6:"escape";s:4:"true";}' ?><?php $attr7 = array('class'=>'text','var'=>'name','escape'=>true) ?><?php $attr7_class='text' ?><?php $attr7_var='name' ?><?php $attr7_escape=true ?><?php if ( isset($attr7_prefix)&& isset($attr7_key)) $attr7_key = $attr7_prefix.$attr7_key; if ( isset($attr7_suffix)&& isset($attr7_key)) diff --git a/themes/default/pages/html/template/name.tpl.php b/themes/default/pages/html/template/name.tpl.php @@ -90,8 +90,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -270,7 +270,7 @@ ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:8:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:4:"name";s:4:"size";s:2:"40";s:9:"maxlength";s:3:"256";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr6 = array('class'=>'','default'=>'','type'=>'text','name'=>'name','size'=>'40','maxlength'=>'256','onchange'=>'','readonly'=>false) ?><?php $attr6_class='' ?><?php $attr6_default='' ?><?php $attr6_type='text' ?><?php $attr6_name='name' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><?php $attr6_onchange='' ?><?php $attr6_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; if ($attr6_readonly && empty($$attr6_name)) $$attr6_name = '- '.lang('EMPTY').' -'; if(!isset($attr6_default)) $attr6_default=''; -?><?php if (!$attr6_readonly) { +?><?php if (!$attr6_readonly || $attr6_type=='hidden') { ?><input<?php if ($attr6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" name="<?php echo $attr6_name ?><?php if ($attr6_readonly) echo '_disabled' ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" <?php if (in_array($attr6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php if ($attr6_readonly) { ?><input type="hidden" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" /><?php @@ -295,7 +295,7 @@ if ($attr6_readonly) { $cell_column_nr++; if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_colspan) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><fieldset><?php if(isset($attr6_title)) { ?><legend><?php echo $attr6_title ?></legend><?php } ?><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></fieldset><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_colspan) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><fieldset><?php if(isset($attr6_title)) { ?><legend><?php echo encodeHtml($attr6_title) ?></legend><?php } ?><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></fieldset><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; @@ -412,7 +412,7 @@ if ($attr6_readonly) { $tmp_url = $attr6_url; else $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($attr6_id)?$attr6_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_class) ?><?php unset($attr6_action) ?><?php unset($attr6_subaction) ?><?php $attr7_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:9:"extension";s:6:"escape";s:4:"true";}' ?><?php $attr7 = array('class'=>'text','var'=>'extension','escape'=>true) ?><?php $attr7_class='text' ?><?php $attr7_var='extension' ?><?php $attr7_escape=true ?><?php +?><a<?php if (isset($attr6_name)) echo ' name="'.$attr6_name.'"'; else echo ' href="'.$tmp_url.($attr6_anchor?'#'.$attr6_anchor:'').'"' ?> class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_class) ?><?php unset($attr6_action) ?><?php unset($attr6_subaction) ?><?php $attr7_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:9:"extension";s:6:"escape";s:4:"true";}' ?><?php $attr7 = array('class'=>'text','var'=>'extension','escape'=>true) ?><?php $attr7_class='text' ?><?php $attr7_var='extension' ?><?php $attr7_escape=true ?><?php if ( isset($attr7_prefix)&& isset($attr7_key)) $attr7_key = $attr7_prefix.$attr7_key; if ( isset($attr7_suffix)&& isset($attr7_key)) @@ -594,7 +594,7 @@ if ($attr6_readonly) { $tmp_url = $attr6_url; else $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($attr6_id)?$attr6_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_class) ?><?php unset($attr6_action) ?><?php unset($attr6_subaction) ?><?php $attr7_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:9:"mime_type";s:6:"escape";s:4:"true";}' ?><?php $attr7 = array('class'=>'text','var'=>'mime_type','escape'=>true) ?><?php $attr7_class='text' ?><?php $attr7_var='mime_type' ?><?php $attr7_escape=true ?><?php +?><a<?php if (isset($attr6_name)) echo ' name="'.$attr6_name.'"'; else echo ' href="'.$tmp_url.($attr6_anchor?'#'.$attr6_anchor:'').'"' ?> class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_class) ?><?php unset($attr6_action) ?><?php unset($attr6_subaction) ?><?php $attr7_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:9:"mime_type";s:6:"escape";s:4:"true";}' ?><?php $attr7 = array('class'=>'text','var'=>'mime_type','escape'=>true) ?><?php $attr7_class='text' ?><?php $attr7_var='mime_type' ?><?php $attr7_escape=true ?><?php if ( isset($attr7_prefix)&& isset($attr7_key)) $attr7_key = $attr7_prefix.$attr7_key; if ( isset($attr7_suffix)&& isset($attr7_key)) diff --git a/themes/default/pages/html/template/src.tpl.php b/themes/default/pages/html/template/src.tpl.php @@ -90,8 +90,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) diff --git a/themes/default/pages/html/template/srcelement.tpl.php b/themes/default/pages/html/template/srcelement.tpl.php @@ -90,8 +90,8 @@ echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="themes/default/images/readonly.png" style="vertical-align:top; " border="0" /></a> <?php } + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { + ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } ?><?php } echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) @@ -348,7 +348,13 @@ if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php $attr7_debug_info = 'a:9:{s:4:"list";s:8:"elements";s:4:"name";s:9:"elementid";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr7 = array('list'=>'elements','name'=>'elementid','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr7_list='elements' ?><?php $attr7_name='elementid' ?><?php $attr7_onchange='' ?><?php $attr7_title='' ?><?php $attr7_class='' ?><?php $attr7_addempty=false ?><?php $attr7_multiple=false ?><?php $attr7_size='1' ?><?php $attr7_lang=false ?><?php -if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; +$attr7_tmp_list = $$attr7_list; +if ($this->isEditable() && $this->getRequestVar('mode')!='edit') +{ + echo empty($$attr7_name)?'- '.lang('EMPTY').' -':$attr7_tmp_list[$$attr7_name]; +} +else +{ if ( $attr7_addempty!==FALSE ) { if ($attr7_addempty===TRUE) @@ -362,7 +368,6 @@ if ($attr7_multiple) echo ' multiple="multiple"'; if (in_array($attr7_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; echo ' size="'.intval($attr7_size).'"'; ?>><?php - $attr7_tmp_list = $$attr7_list; if ( isset($$attr7_name) && isset($attr7_tmp_list[$$attr7_name]) ) $attr7_tmp_default = $$attr7_name; elseif ( isset($attr7_default) ) @@ -393,7 +398,8 @@ echo ' size="'.intval($attr7_size).'"'; } ?></select><?php if (count($$attr7_list)==0) echo '<input type="hidden" name="'.$attr7_name.'" value="" />'; -if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" value="'.$box_key.'" />' +if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" value="'.$box_key.'" />'; +} ?><?php unset($attr7) ?><?php unset($attr7_list) ?><?php unset($attr7_name) ?><?php unset($attr7_onchange) ?><?php unset($attr7_title) ?><?php unset($attr7_class) ?><?php unset($attr7_addempty) ?><?php unset($attr7_multiple) ?><?php unset($attr7_size) ?><?php unset($attr7_lang) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:1:{s:7:"present";s:17:"writable_elements";}' ?><?php $attr4 = array('present'=>'writable_elements') ?><?php $attr4_present='writable_elements' ?><?php if ( isset($attr4_true) ) { @@ -593,7 +599,13 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_rowspan) ?><?php $attr7_debug_info = 'a:9:{s:4:"list";s:17:"writable_elements";s:4:"name";s:18:"writable_elementid";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr7 = array('list'=>'writable_elements','name'=>'writable_elementid','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr7_list='writable_elements' ?><?php $attr7_name='writable_elementid' ?><?php $attr7_onchange='' ?><?php $attr7_title='' ?><?php $attr7_class='' ?><?php $attr7_addempty=false ?><?php $attr7_multiple=false ?><?php $attr7_size='1' ?><?php $attr7_lang=false ?><?php -if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; +$attr7_tmp_list = $$attr7_list; +if ($this->isEditable() && $this->getRequestVar('mode')!='edit') +{ + echo empty($$attr7_name)?'- '.lang('EMPTY').' -':$attr7_tmp_list[$$attr7_name]; +} +else +{ if ( $attr7_addempty!==FALSE ) { if ($attr7_addempty===TRUE) @@ -607,7 +619,6 @@ if ($attr7_multiple) echo ' multiple="multiple"'; if (in_array($attr7_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; echo ' size="'.intval($attr7_size).'"'; ?>><?php - $attr7_tmp_list = $$attr7_list; if ( isset($$attr7_name) && isset($attr7_tmp_list[$$attr7_name]) ) $attr7_tmp_default = $$attr7_name; elseif ( isset($attr7_default) ) @@ -638,7 +649,8 @@ echo ' size="'.intval($attr7_size).'"'; } ?></select><?php if (count($$attr7_list)==0) echo '<input type="hidden" name="'.$attr7_name.'" value="" />'; -if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" value="'.$box_key.'" />' +if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" value="'.$box_key.'" />'; +} ?><?php unset($attr7) ?><?php unset($attr7_list) ?><?php unset($attr7_name) ?><?php unset($attr7_onchange) ?><?php unset($attr7_title) ?><?php unset($attr7_class) ?><?php unset($attr7_addempty) ?><?php unset($attr7_multiple) ?><?php unset($attr7_size) ?><?php unset($attr7_lang) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) diff --git a/themes/default/pages/html/title/show.tpl.php b/themes/default/pages/html/title/show.tpl.php @@ -90,6 +90,8 @@ if (isset($attr5_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr5_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr5_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php +} elseif (isset($attr5_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr5_tree.IMG_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_url)) { ?><img src="<?php echo $attr5_url ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_fileext)) { @@ -831,6 +833,8 @@ if (isset($attr5_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr5_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr5_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php +} elseif (isset($attr5_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr5_tree.IMG_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_url)) { ?><img src="<?php echo $attr5_url ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_fileext)) { @@ -856,7 +860,7 @@ if (isset($attr5_elementtype)) { $tmp_url = $attr5_url; else $tmp_url = Html::url($attr5_action,$attr5_subaction,!empty($attr5_id)?$attr5_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr5_class ?>" target="<?php echo $attr5_target ?>"<?php if (isset($attr5_accesskey)) echo ' accesskey="'.$attr5_accesskey.'"' ?> title="<?php echo encodeHtml($attr5_title) ?>"><?php unset($attr5) ?><?php unset($attr5_title) ?><?php unset($attr5_target) ?><?php unset($attr5_url) ?><?php unset($attr5_class) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:11:"USER_LOGOUT";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','key'=>'USER_LOGOUT','escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_key='USER_LOGOUT' ?><?php $attr6_escape=true ?><?php +?><a<?php if (isset($attr5_name)) echo ' name="'.$attr5_name.'"'; else echo ' href="'.$tmp_url.($attr5_anchor?'#'.$attr5_anchor:'').'"' ?> class="<?php echo $attr5_class ?>" target="<?php echo $attr5_target ?>"<?php if (isset($attr5_accesskey)) echo ' accesskey="'.$attr5_accesskey.'"' ?> title="<?php echo encodeHtml($attr5_title) ?>"><?php unset($attr5) ?><?php unset($attr5_title) ?><?php unset($attr5_target) ?><?php unset($attr5_url) ?><?php unset($attr5_class) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:11:"USER_LOGOUT";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','key'=>'USER_LOGOUT','escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_key='USER_LOGOUT' ?><?php $attr6_escape=true ?><?php if ( isset($attr6_prefix)&& isset($attr6_key)) $attr6_key = $attr6_prefix.$attr6_key; if ( isset($attr6_suffix)&& isset($attr6_key)) @@ -1006,7 +1010,7 @@ if (isset($attr5_elementtype)) { $tmp_url = $attr5_url; else $tmp_url = Html::url($attr5_action,$attr5_subaction,!empty($attr5_id)?$attr5_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr5_class ?>" target="<?php echo $attr5_target ?>"<?php if (isset($attr5_accesskey)) echo ' accesskey="'.$attr5_accesskey.'"' ?> title="<?php echo encodeHtml($attr5_title) ?>"><?php unset($attr5) ?><?php unset($attr5_title) ?><?php unset($attr5_target) ?><?php unset($attr5_url) ?><?php unset($attr5_class) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:12:"userfullname";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','var'=>'userfullname','escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_var='userfullname' ?><?php $attr6_escape=true ?><?php +?><a<?php if (isset($attr5_name)) echo ' name="'.$attr5_name.'"'; else echo ' href="'.$tmp_url.($attr5_anchor?'#'.$attr5_anchor:'').'"' ?> class="<?php echo $attr5_class ?>" target="<?php echo $attr5_target ?>"<?php if (isset($attr5_accesskey)) echo ' accesskey="'.$attr5_accesskey.'"' ?> title="<?php echo encodeHtml($attr5_title) ?>"><?php unset($attr5) ?><?php unset($attr5_title) ?><?php unset($attr5_target) ?><?php unset($attr5_url) ?><?php unset($attr5_class) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:12:"userfullname";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','var'=>'userfullname','escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_var='userfullname' ?><?php $attr6_escape=true ?><?php if ( isset($attr6_prefix)&& isset($attr6_key)) $attr6_key = $attr6_prefix.$attr6_key; if ( isset($attr6_suffix)&& isset($attr6_key)) diff --git a/themes/default/pages/html/tree/show.tpl.php b/themes/default/pages/html/tree/show.tpl.php @@ -34,27 +34,573 @@ <?php } ?> </head> <body class="<?php echo $attr1_class ?>" <?php if (@$conf['interface']['application_mode']) { ?> style="padding:0px;margin:0px;"<?php } ?> > -<?php unset($attr1) ?><?php unset($attr1_class) ?><!-- $Id$ --> -<table cellpadding="0" cellspacing="0" border="0"> -<?php foreach( $zeilen as $z ) -{ ?> -<tr> -<?php if (is_array($z['cols'])) foreach( $z['cols'] as $i ) -{ ?> -<td width="1%"><img src="<?php echo $image_dir.'tree_'.$i.IMG_EXT ?>" border="0" alt=""></td> -<?php } ?> -<?php if (isset($z['image'])) -{ ?> -<td width="1%"> -<?php if (isset($z['image_url'])) { ?><a href="<?php echo $z['image_url'].'#'.$z['name'] ?>" class="tree" target="_self" title="<?php echo encodeHtml($z['image_url_desc']) ?>"><?php } ?><img src="<?php echo $image_dir.'tree_'.$z['image'].IMG_EXT ?>" alt="" border="0"><?php if (isset($z['image_url'])) { ?></a><?php } ?> -</td> -<?php } ?> -<td colspan="<?php echo intval(20-count($z['cols'])) ?>" id="<?php echo $z['name'] ?>" valign="middle" style="white-space:nowrap;"> -<a name="<?php echo $z['name'] ?>"></a> -<?php if (isset($z['url'])) { ?><a href="<?php echo $z['url'] ?>" <?php if($z['desc']!='') echo 'title="'.encodeHtml($z['desc']).'" ' ?>class="tree" target="<?php echo $z['target'] ?>"><?php } ?><img src="<?php echo $image_dir.'icon_'.$z['icon'].IMG_ICON_EXT ?>" border="0" alt="" align="left"><?php echo $z['text'] ?><?php if (isset($z['url'])) { ?></a><?php if(isset($z['add'])) echo '&nbsp;<small>'.$z['add'].'<small>' ?><?php } ?> -</td> -</tr> -<?php } ?> -</table> -<?php $attr0_debug_info = 'a:0:{}' ?><?php $attr0 = array() ?></body> +<?php unset($attr1) ?><?php unset($attr1_class) ?><?php $attr2_debug_info = 'a:5:{s:5:"class";s:4:"tree";s:5:"width";s:4:"100%";s:5:"space";s:1:"0";s:7:"padding";s:1:"0";s:10:"rowclasses";s:8:"odd,even";}' ?><?php $attr2 = array('class'=>'tree','width'=>'100%','space'=>'0','padding'=>'0','rowclasses'=>'odd,even') ?><?php $attr2_class='tree' ?><?php $attr2_width='100%' ?><?php $attr2_space='0' ?><?php $attr2_padding='0' ?><?php $attr2_rowclasses='odd,even' ?><?php + $coloumn_widths=array(); + $row_classes = array(''); + $column_classes= array(''); + if(empty($attr2_class)) + $attr2_class=''; + if (!empty($attr2_widths)) + { + $column_widths = explode(',',$attr2_widths); + unset($attr2['widths']); + } + if (!empty($attr2_classes)) + { + $row_classes = explode(',',$attr2_rowclasses); + $row_class_idx = 999; + unset($attr2['rowclasses']); + } + if (!empty($attr2_rowclasses)) + { + $row_classes = explode(',',$attr2_rowclasses); + $row_class_idx = 999; + unset($attr2['rowclasses']); + } + if (!empty($attr2_columnclasses)) + { + $column_classes = explode(',',$attr2_columnclasses); + unset($attr2['columnclasses']); + } +?><table class="<?php echo $attr2_class ?>" cellspacing="<?php echo $attr2_space ?>" width="<?php echo $attr2_width ?>" cellpadding="<?php echo $attr2_padding ?>"><?php unset($attr2) ?><?php unset($attr2_class) ?><?php unset($attr2_width) ?><?php unset($attr2_space) ?><?php unset($attr2_padding) ?><?php unset($attr2_rowclasses) ?><?php $attr3_debug_info = 'a:4:{s:4:"list";s:6:"zeilen";s:7:"extract";s:4:"true";s:3:"key";s:8:"list_key";s:5:"value";s:10:"list_value";}' ?><?php $attr3 = array('list'=>'zeilen','extract'=>true,'key'=>'list_key','value'=>'list_value') ?><?php $attr3_list='zeilen' ?><?php $attr3_extract=true ?><?php $attr3_key='list_key' ?><?php $attr3_value='list_value' ?><?php + $attr3_list_tmp_key = $attr3_key; + $attr3_list_tmp_value = $attr3_value; + $attr3_list_extract = $attr3_extract; + unset($attr3_key); + unset($attr3_value); + if ( !isset($$attr3_list) || !is_array($$attr3_list) ) + $$attr3_list = array(); + foreach( $$attr3_list as $$attr3_list_tmp_key => $$attr3_list_tmp_value ) + { + if ( $attr3_list_extract ) + { + if ( !is_array($$attr3_list_tmp_value) ) + { + print_r($$attr3_list_tmp_value); + die( 'not an array at key: '.$$attr3_list_tmp_key ); + } + extract($$attr3_list_tmp_value); + } +?><?php unset($attr3) ?><?php unset($attr3_list) ?><?php unset($attr3_extract) ?><?php unset($attr3_key) ?><?php unset($attr3_value) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + if (empty($attr4_class)) + $attr4_class=$row_class; + global $cell_column_nr; + $cell_column_nr=0; + $column_class_idx = 999; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5_debug_info = 'a:4:{s:4:"list";s:4:"cols";s:7:"extract";s:5:"false";s:3:"key";s:8:"list_key";s:5:"value";s:1:"i";}' ?><?php $attr5 = array('list'=>'cols','extract'=>false,'key'=>'list_key','value'=>'i') ?><?php $attr5_list='cols' ?><?php $attr5_extract=false ?><?php $attr5_key='list_key' ?><?php $attr5_value='i' ?><?php + $attr5_list_tmp_key = $attr5_key; + $attr5_list_tmp_value = $attr5_value; + $attr5_list_extract = $attr5_extract; + unset($attr5_key); + unset($attr5_value); + if ( !isset($$attr5_list) || !is_array($$attr5_list) ) + $$attr5_list = array(); + foreach( $$attr5_list as $$attr5_list_tmp_key => $$attr5_list_tmp_value ) + { + if ( $attr5_list_extract ) + { + if ( !is_array($$attr5_list_tmp_value) ) + { + print_r($$attr5_list_tmp_value); + die( 'not an array at key: '.$$attr5_list_tmp_key ); + } + extract($$attr5_list_tmp_value); + } +?><?php unset($attr5) ?><?php unset($attr5_list) ?><?php unset($attr5_extract) ?><?php unset($attr5_key) ?><?php unset($attr5_value) ?><?php $attr6_debug_info = 'a:1:{s:5:"class";s:7:"treecol";}' ?><?php $attr6 = array('class'=>'treecol') ?><?php $attr6_class='treecol' ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr6_class)) + $attr6['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) + $attr6['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:2:{s:5:"align";s:4:"left";s:4:"tree";s:5:"var:i";}' ?><?php $attr7 = array('align'=>'left','tree'=>$i) ?><?php $attr7_align='left' ?><?php $attr7_tree=$i ?><?php +if (isset($attr7_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr7_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr7_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr7_tree.IMG_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_url)) { +?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_fileext)) { +?><img src="<?php echo $image_dir.$attr7_fileext ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_file)) { +?><img src="<?php echo $image_dir.$attr7_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } ?><?php unset($attr7) ?><?php unset($attr7_align) ?><?php unset($attr7_tree) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php } ?><?php unset($attr4) ?><?php $attr5_debug_info = 'a:1:{s:7:"present";s:5:"image";}' ?><?php $attr5 = array('present'=>'image') ?><?php $attr5_present='image' ?><?php + if ( isset($attr5_true) ) + { + if (gettype($attr5_true) === '' && gettype($attr5_true) === '1') + $exec = $$attr5_true == true; + else + $exec = $attr5_true == true; + } + elseif ( isset($attr5_false) ) + { + if (gettype($attr5_false) === '' && gettype($attr5_false) === '1') + $exec = $$attr5_false == false; + else + $exec = $attr5_false == false; + } + elseif( isset($attr5_contains) ) + $exec = in_array($attr5_value,explode(',',$attr5_contains)); + elseif( isset($attr5_equals)&& isset($attr5_value) ) + $exec = $attr5_equals == $attr5_value; + elseif( isset($attr5_lessthan)&& isset($attr5_value) ) + $exec = intval($attr5_lessthan) > intval($attr5_value); + elseif( isset($attr5_greaterthan)&& isset($attr5_value) ) + $exec = intval($attr5_greaterthan) < intval($attr5_value); + elseif ( isset($attr5_empty) ) + { + if ( !isset($$attr5_empty) ) + $exec = empty($attr5_empty); + elseif ( is_array($$attr5_empty) ) + $exec = (count($$attr5_empty)==0); + elseif ( is_bool($$attr5_empty) ) + $exec = true; + else + $exec = empty( $$attr5_empty ); + } + elseif ( isset($attr5_present) ) + { + $exec = isset($$attr5_present); + } + else + { + trigger_error("error in IF, assume: FALSE"); + $exec = false; + } + if ( !empty($attr5_invert) ) + $exec = !$exec; + if ( !empty($attr5_not) ) + $exec = !$exec; + unset($attr5_true); + unset($attr5_false); + unset($attr5_notempty); + unset($attr5_empty); + unset($attr5_contains); + unset($attr5_present); + unset($attr5_invert); + unset($attr5_not); + unset($attr5_value); + unset($attr5_equals); + $last_exec = $exec; + if ( $exec ) + { +?> +<?php unset($attr5) ?><?php unset($attr5_present) ?><?php $attr6_debug_info = 'a:1:{s:5:"class";s:9:"treeimage";}' ?><?php $attr6 = array('class'=>'treeimage') ?><?php $attr6_class='treeimage' ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr6_class)) + $attr6['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) + $attr6['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7_debug_info = 'a:1:{s:7:"present";s:9:"image_url";}' ?><?php $attr7 = array('present'=>'image_url') ?><?php $attr7_present='image_url' ?><?php + if ( isset($attr7_true) ) + { + if (gettype($attr7_true) === '' && gettype($attr7_true) === '1') + $exec = $$attr7_true == true; + else + $exec = $attr7_true == true; + } + elseif ( isset($attr7_false) ) + { + if (gettype($attr7_false) === '' && gettype($attr7_false) === '1') + $exec = $$attr7_false == false; + else + $exec = $attr7_false == false; + } + elseif( isset($attr7_contains) ) + $exec = in_array($attr7_value,explode(',',$attr7_contains)); + elseif( isset($attr7_equals)&& isset($attr7_value) ) + $exec = $attr7_equals == $attr7_value; + elseif( isset($attr7_lessthan)&& isset($attr7_value) ) + $exec = intval($attr7_lessthan) > intval($attr7_value); + elseif( isset($attr7_greaterthan)&& isset($attr7_value) ) + $exec = intval($attr7_greaterthan) < intval($attr7_value); + elseif ( isset($attr7_empty) ) + { + if ( !isset($$attr7_empty) ) + $exec = empty($attr7_empty); + elseif ( is_array($$attr7_empty) ) + $exec = (count($$attr7_empty)==0); + elseif ( is_bool($$attr7_empty) ) + $exec = true; + else + $exec = empty( $$attr7_empty ); + } + elseif ( isset($attr7_present) ) + { + $exec = isset($$attr7_present); + } + else + { + trigger_error("error in IF, assume: FALSE"); + $exec = false; + } + if ( !empty($attr7_invert) ) + $exec = !$exec; + if ( !empty($attr7_not) ) + $exec = !$exec; + unset($attr7_true); + unset($attr7_false); + unset($attr7_notempty); + unset($attr7_empty); + unset($attr7_contains); + unset($attr7_present); + unset($attr7_invert); + unset($attr7_not); + unset($attr7_value); + unset($attr7_equals); + $last_exec = $exec; + if ( $exec ) + { +?> +<?php unset($attr7) ?><?php unset($attr7_present) ?><?php $attr8_debug_info = 'a:5:{s:5:"title";s:14:"image_url_desc";s:6:"target";s:5:"_self";s:3:"url";s:13:"var:image_url";s:5:"class";s:4:"tree";s:6:"anchor";s:8:"var:name";}' ?><?php $attr8 = array('title'=>'image_url_desc','target'=>'_self','url'=>$image_url,'class'=>'tree','anchor'=>$name) ?><?php $attr8_title='image_url_desc' ?><?php $attr8_target='_self' ?><?php $attr8_url=$image_url ?><?php $attr8_class='tree' ?><?php $attr8_anchor=$name ?><?php + $params = array(); + if (!empty($attr8_var1) && isset($attr8_value1)) + $params[$attr8_var1]=$attr8_value1; + if (!empty($attr8_var2) && isset($attr8_value2)) + $params[$attr8_var2]=$attr8_value2; + if (!empty($attr8_var3) && isset($attr8_value3)) + $params[$attr8_var3]=$attr8_value3; + if (!empty($attr8_var4) && isset($attr8_value4)) + $params[$attr8_var4]=$attr8_value4; + if (!empty($attr8_var5) && isset($attr8_value5)) + $params[$attr8_var5]=$attr8_value5; + if(empty($attr8_class)) + $attr8_class=''; + if(empty($attr8_title)) + $attr8_title = ''; + if(!empty($attr8_url)) + $tmp_url = $attr8_url; + else + $tmp_url = Html::url($attr8_action,$attr8_subaction,!empty($attr8_id)?$attr8_id:$this->getRequestId(),$params); +?><a<?php if (isset($attr8_name)) echo ' name="'.$attr8_name.'"'; else echo ' href="'.$tmp_url.($attr8_anchor?'#'.$attr8_anchor:'').'"' ?> class="<?php echo $attr8_class ?>" target="<?php echo $attr8_target ?>"<?php if (isset($attr8_accesskey)) echo ' accesskey="'.$attr8_accesskey.'"' ?> title="<?php echo encodeHtml($attr8_title) ?>"><?php unset($attr8) ?><?php unset($attr8_title) ?><?php unset($attr8_target) ?><?php unset($attr8_url) ?><?php unset($attr8_class) ?><?php unset($attr8_anchor) ?><?php $attr9_debug_info = 'a:2:{s:5:"align";s:4:"left";s:4:"tree";s:9:"var:image";}' ?><?php $attr9 = array('align'=>'left','tree'=>$image) ?><?php $attr9_align='left' ?><?php $attr9_tree=$image ?><?php +if (isset($attr9_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr9_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr9_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr9_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr9_tree.IMG_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_url)) { +?><img src="<?php echo $attr9_url ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_fileext)) { +?><img src="<?php echo $image_dir.$attr9_fileext ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_file)) { +?><img src="<?php echo $image_dir.$attr9_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } ?><?php unset($attr9) ?><?php unset($attr9_align) ?><?php unset($attr9_tree) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?></a><?php unset($attr7) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php } ?><?php unset($attr6) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?><?php if (!$last_exec) { ?> +<?php unset($attr7) ?><?php $attr8_debug_info = 'a:2:{s:5:"align";s:4:"left";s:4:"tree";s:9:"var:image";}' ?><?php $attr8 = array('align'=>'left','tree'=>$image) ?><?php $attr8_align='left' ?><?php $attr8_tree=$image ?><?php +if (isset($attr8_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr8_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr8_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr8_tree.IMG_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_url)) { +?><img src="<?php echo $attr8_url ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_fileext)) { +?><img src="<?php echo $image_dir.$attr8_fileext ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_file)) { +?><img src="<?php echo $image_dir.$attr8_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } ?><?php unset($attr8) ?><?php unset($attr8_align) ?><?php unset($attr8_tree) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php } ?><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php } ?><?php unset($attr4) ?><?php $attr5_debug_info = 'a:2:{s:5:"class";s:9:"treevalue";s:7:"colspan";s:11:"var:colspan";}' ?><?php $attr5 = array('class'=>'treevalue','colspan'=>$colspan) ?><?php $attr5_class='treevalue' ?><?php $attr5_colspan=$colspan ?><?php + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_colspan) ?><?php $attr6_debug_info = 'a:4:{s:5:"title";s:0:"";s:6:"target";s:5:"_self";s:5:"class";s:0:"";s:4:"name";s:8:"var:name";}' ?><?php $attr6 = array('title'=>'','target'=>'_self','class'=>'','name'=>$name) ?><?php $attr6_title='' ?><?php $attr6_target='_self' ?><?php $attr6_class='' ?><?php $attr6_name=$name ?><?php + $params = array(); + if (!empty($attr6_var1) && isset($attr6_value1)) + $params[$attr6_var1]=$attr6_value1; + if (!empty($attr6_var2) && isset($attr6_value2)) + $params[$attr6_var2]=$attr6_value2; + if (!empty($attr6_var3) && isset($attr6_value3)) + $params[$attr6_var3]=$attr6_value3; + if (!empty($attr6_var4) && isset($attr6_value4)) + $params[$attr6_var4]=$attr6_value4; + if (!empty($attr6_var5) && isset($attr6_value5)) + $params[$attr6_var5]=$attr6_value5; + if(empty($attr6_class)) + $attr6_class=''; + if(empty($attr6_title)) + $attr6_title = ''; + if(!empty($attr6_url)) + $tmp_url = $attr6_url; + else + $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($attr6_id)?$attr6_id:$this->getRequestId(),$params); +?><a<?php if (isset($attr6_name)) echo ' name="'.$attr6_name.'"'; else echo ' href="'.$tmp_url.($attr6_anchor?'#'.$attr6_anchor:'').'"' ?> class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_class) ?><?php unset($attr6_name) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></a><?php unset($attr5) ?><?php $attr6_debug_info = 'a:1:{s:7:"present";s:3:"url";}' ?><?php $attr6 = array('present'=>'url') ?><?php $attr6_present='url' ?><?php + if ( isset($attr6_true) ) + { + if (gettype($attr6_true) === '' && gettype($attr6_true) === '1') + $exec = $$attr6_true == true; + else + $exec = $attr6_true == true; + } + elseif ( isset($attr6_false) ) + { + if (gettype($attr6_false) === '' && gettype($attr6_false) === '1') + $exec = $$attr6_false == false; + else + $exec = $attr6_false == false; + } + elseif( isset($attr6_contains) ) + $exec = in_array($attr6_value,explode(',',$attr6_contains)); + elseif( isset($attr6_equals)&& isset($attr6_value) ) + $exec = $attr6_equals == $attr6_value; + elseif( isset($attr6_lessthan)&& isset($attr6_value) ) + $exec = intval($attr6_lessthan) > intval($attr6_value); + elseif( isset($attr6_greaterthan)&& isset($attr6_value) ) + $exec = intval($attr6_greaterthan) < intval($attr6_value); + elseif ( isset($attr6_empty) ) + { + if ( !isset($$attr6_empty) ) + $exec = empty($attr6_empty); + elseif ( is_array($$attr6_empty) ) + $exec = (count($$attr6_empty)==0); + elseif ( is_bool($$attr6_empty) ) + $exec = true; + else + $exec = empty( $$attr6_empty ); + } + elseif ( isset($attr6_present) ) + { + $exec = isset($$attr6_present); + } + else + { + trigger_error("error in IF, assume: FALSE"); + $exec = false; + } + if ( !empty($attr6_invert) ) + $exec = !$exec; + if ( !empty($attr6_not) ) + $exec = !$exec; + unset($attr6_true); + unset($attr6_false); + unset($attr6_notempty); + unset($attr6_empty); + unset($attr6_contains); + unset($attr6_present); + unset($attr6_invert); + unset($attr6_not); + unset($attr6_value); + unset($attr6_equals); + $last_exec = $exec; + if ( $exec ) + { +?> +<?php unset($attr6) ?><?php unset($attr6_present) ?><?php $attr7_debug_info = 'a:4:{s:5:"title";s:8:"var:desc";s:6:"target";s:10:"var:target";s:3:"url";s:7:"var:url";s:5:"class";s:4:"tree";}' ?><?php $attr7 = array('title'=>$desc,'target'=>$target,'url'=>$url,'class'=>'tree') ?><?php $attr7_title=$desc ?><?php $attr7_target=$target ?><?php $attr7_url=$url ?><?php $attr7_class='tree' ?><?php + $params = array(); + if (!empty($attr7_var1) && isset($attr7_value1)) + $params[$attr7_var1]=$attr7_value1; + if (!empty($attr7_var2) && isset($attr7_value2)) + $params[$attr7_var2]=$attr7_value2; + if (!empty($attr7_var3) && isset($attr7_value3)) + $params[$attr7_var3]=$attr7_value3; + if (!empty($attr7_var4) && isset($attr7_value4)) + $params[$attr7_var4]=$attr7_value4; + if (!empty($attr7_var5) && isset($attr7_value5)) + $params[$attr7_var5]=$attr7_value5; + if(empty($attr7_class)) + $attr7_class=''; + if(empty($attr7_title)) + $attr7_title = ''; + if(!empty($attr7_url)) + $tmp_url = $attr7_url; + else + $tmp_url = Html::url($attr7_action,$attr7_subaction,!empty($attr7_id)?$attr7_id:$this->getRequestId(),$params); +?><a<?php if (isset($attr7_name)) echo ' name="'.$attr7_name.'"'; else echo ' href="'.$tmp_url.($attr7_anchor?'#'.$attr7_anchor:'').'"' ?> class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>"<?php if (isset($attr7_accesskey)) echo ' accesskey="'.$attr7_accesskey.'"' ?> title="<?php echo encodeHtml($attr7_title) ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php unset($attr7_class) ?><?php $attr8_debug_info = 'a:2:{s:4:"icon";s:8:"var:icon";s:5:"align";s:4:"left";}' ?><?php $attr8 = array('icon'=>$icon,'align'=>'left') ?><?php $attr8_icon=$icon ?><?php $attr8_align='left' ?><?php +if (isset($attr8_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr8_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr8_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr8_tree.IMG_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_url)) { +?><img src="<?php echo $attr8_url ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_fileext)) { +?><img src="<?php echo $image_dir.$attr8_fileext ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_file)) { +?><img src="<?php echo $image_dir.$attr8_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } ?><?php unset($attr8) ?><?php unset($attr8_icon) ?><?php unset($attr8_align) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:4:"text";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','var'=>'text','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_var='text' ?><?php $attr8_escape=true ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) + $attr8_title = ''; + if (empty($attr8_type)) + $tmp_tag = 'span'; + else + switch( $attr8_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php + $attr8_title = ''; + if ( $attr8_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr8_array)) + { + $tmpArray = $$attr8_array; + if (!empty($attr8_var)) + $tmp_text = $tmpArray[$attr8_var]; + else + $tmp_text = $langF($tmpArray[$attr8_text]); + } + elseif (!empty($attr8_text)) + $tmp_text = $langF($attr8_text); + elseif (!empty($attr8_textvar)) + $tmp_text = $langF($$attr8_textvar); + elseif (!empty($attr8_key)) + $tmp_text = $langF($attr8_key); + elseif (!empty($attr8_var)) + $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; + elseif (!empty($attr8_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr8_raw); + elseif (!empty($attr8_value)) + $tmp_text = $attr8_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); + if (isset($attr8_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_var) ?><?php unset($attr8_escape) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></a><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php } ?><?php unset($attr5) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php if (!$last_exec) { ?> +<?php unset($attr6) ?><?php $attr7_debug_info = 'a:2:{s:4:"icon";s:8:"var:icon";s:5:"align";s:4:"left";}' ?><?php $attr7 = array('icon'=>$icon,'align'=>'left') ?><?php $attr7_icon=$icon ?><?php $attr7_align='left' ?><?php +if (isset($attr7_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr7_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr7_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr7_tree.IMG_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_url)) { +?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_fileext)) { +?><img src="<?php echo $image_dir.$attr7_fileext ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_file)) { +?><img src="<?php echo $image_dir.$attr7_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } ?><?php unset($attr7) ?><?php unset($attr7_icon) ?><?php unset($attr7_align) ?><?php $attr7_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:4:"text";s:6:"escape";s:4:"true";}' ?><?php $attr7 = array('class'=>'text','var'=>'text','escape'=>true) ?><?php $attr7_class='text' ?><?php $attr7_var='text' ?><?php $attr7_escape=true ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) + $attr7_title = ''; + if (empty($attr7_type)) + $tmp_tag = 'span'; + else + switch( $attr7_type ) + { + case 'emphatic': + case 'italic': + $tmp_tag = 'em'; + break; + case 'strong': + case 'bold': + $tmp_tag = 'strong'; + break; + case 'tt': + case 'teletype': + $tmp_tag = 'tt'; + break; + default: + $tmp_tag = 'span'; + } +?><<?php echo $tmp_tag ?> class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; + if ( $attr7_escape ) + $langF = 'langHtml'; + else + $langF = 'lang'; + if (!empty($attr7_array)) + { + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; + else + $tmp_text = $langF($tmpArray[$attr7_text]); + } + elseif (!empty($attr7_text)) + $tmp_text = $langF($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = $langF($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = $langF($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?$$attr7_var:'?unset:'.$attr7_var.'?'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; + else + $tmp_text = '&nbsp;'; + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); + if (isset($attr7_accesskey)) + { + $pos = strpos(strtolower($tmp_text),strtolower($attr7_accesskey)); + if ( $pos !== false ) + $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); + } + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_var) ?><?php unset($attr7_escape) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php } ?><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5_debug_info = 'a:1:{s:3:"var";s:3:"url";}' ?><?php $attr5 = array('var'=>'url') ?><?php $attr5_var='url' ?><?php + if (!isset($attr5_value)) + unset($$attr5_var); + elseif (isset($attr5_key)) + $$attr5_var = $attr5_value[$attr5_key]; + else + $$attr5_var = $attr5_value; +?><?php unset($attr5) ?><?php unset($attr5_var) ?><?php $attr5_debug_info = 'a:1:{s:3:"var";s:5:"image";}' ?><?php $attr5 = array('var'=>'image') ?><?php $attr5_var='image' ?><?php + if (!isset($attr5_value)) + unset($$attr5_var); + elseif (isset($attr5_key)) + $$attr5_var = $attr5_value[$attr5_key]; + else + $$attr5_var = $attr5_value; +?><?php unset($attr5) ?><?php unset($attr5_var) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2_debug_info = 'a:0:{}' ?><?php $attr2 = array() ?><?php } ?><?php unset($attr2) ?><?php $attr1_debug_info = 'a:0:{}' ?><?php $attr1 = array() ?></table><?php unset($attr1) ?><?php $attr0_debug_info = 'a:0:{}' ?><?php $attr0 = array() ?></body> </html><?php unset($attr0) ?> \ No newline at end of file diff --git a/themes/default/pages/html/treetitle/show.tpl.php b/themes/default/pages/html/treetitle/show.tpl.php @@ -151,6 +151,8 @@ if (isset($attr6_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr6_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr6_align ?>"><?php } elseif (isset($attr6_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$attr6_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr6_align ?>"><?php +} elseif (isset($attr6_tree)) { +?><img src="<?php echo $image_dir.'tree_'.$attr6_tree.IMG_EXT ?>" border="0" align="<?php echo $attr6_align ?>"><?php } elseif (isset($attr6_url)) { ?><img src="<?php echo $attr6_url ?>" border="0" align="<?php echo $attr6_align ?>"><?php } elseif (isset($attr6_fileext)) { @@ -195,7 +197,7 @@ if (isset($attr6_elementtype)) { $tmp_url = $attr7_url; else $tmp_url = Html::url($attr7_action,$attr7_subaction,!empty($attr7_id)?$attr7_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>"<?php if (isset($attr7_accesskey)) echo ' accesskey="'.$attr7_accesskey.'"' ?> title="<?php echo encodeHtml($attr7_title) ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php unset($attr7_class) ?><?php $attr8_debug_info = 'a:4:{s:5:"class";s:4:"text";s:3:"var";s:4:"name";s:9:"maxlength";s:2:"20";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','var'=>'name','maxlength'=>'20','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_var='name' ?><?php $attr8_maxlength='20' ?><?php $attr8_escape=true ?><?php +?><a<?php if (isset($attr7_name)) echo ' name="'.$attr7_name.'"'; else echo ' href="'.$tmp_url.($attr7_anchor?'#'.$attr7_anchor:'').'"' ?> class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>"<?php if (isset($attr7_accesskey)) echo ' accesskey="'.$attr7_accesskey.'"' ?> title="<?php echo encodeHtml($attr7_title) ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php unset($attr7_class) ?><?php $attr8_debug_info = 'a:4:{s:5:"class";s:4:"text";s:3:"var";s:4:"name";s:9:"maxlength";s:2:"20";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','var'=>'name','maxlength'=>'20','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_var='name' ?><?php $attr8_maxlength='20' ?><?php $attr8_escape=true ?><?php if ( isset($attr8_prefix)&& isset($attr8_key)) $attr8_key = $attr8_prefix.$attr8_key; if ( isset($attr8_suffix)&& isset($attr8_key)) @@ -451,7 +453,7 @@ if (isset($attr6_elementtype)) { $tmp_url = $attr7_url; else $tmp_url = Html::url($attr7_action,$attr7_subaction,!empty($attr7_id)?$attr7_id:$this->getRequestId(),$params); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>"<?php if (isset($attr7_accesskey)) echo ' accesskey="'.$attr7_accesskey.'"' ?> title="<?php echo encodeHtml($attr7_title) ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php unset($attr7_class) ?><?php unset($attr7_accesskey) ?><?php $attr8_debug_info = 'a:4:{s:5:"class";s:4:"text";s:4:"text";s:8:"var:text";s:9:"accesskey";s:14:"messagevar:key";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','text'=>$text,'accesskey'=>lang($key),'escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_text=$text ?><?php $attr8_accesskey=lang($key) ?><?php $attr8_escape=true ?><?php +?><a<?php if (isset($attr7_name)) echo ' name="'.$attr7_name.'"'; else echo ' href="'.$tmp_url.($attr7_anchor?'#'.$attr7_anchor:'').'"' ?> class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>"<?php if (isset($attr7_accesskey)) echo ' accesskey="'.$attr7_accesskey.'"' ?> title="<?php echo encodeHtml($attr7_title) ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php unset($attr7_class) ?><?php unset($attr7_accesskey) ?><?php $attr8_debug_info = 'a:4:{s:5:"class";s:4:"text";s:4:"text";s:8:"var:text";s:9:"accesskey";s:14:"messagevar:key";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','text'=>$text,'accesskey'=>lang($key),'escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_text=$text ?><?php $attr8_accesskey=lang($key) ?><?php $attr8_escape=true ?><?php if ( isset($attr8_prefix)&& isset($attr8_key)) $attr8_key = $attr8_prefix.$attr8_key; if ( isset($attr8_suffix)&& isset($attr8_key))