openrat-cms

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

commit 391cc65bd5b851dd0a9abde3cf7b7c0a52dd9fa9
parent 7be121acb00056e6fb7b2d6d445fe7d828cbf66f
Author: Jan Dankert <devnull@localhost>
Date:   Wed, 21 Mar 2012 00:57:51 +0100

Alle Views neu umgewandelt.

Diffstat:
themes/default/pages/html/element/delete.tpl.php | 152+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/element/edit.tpl.php | 86+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/element/name.tpl.php | 300++++++++++++++++++++++++++++++++++---------------------------------------------
themes/default/pages/html/element/prop.tpl.php | 878+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/element/properties.tpl.php | 1338++++++++++++++++++++++++++++++++++++++-----------------------------------------
themes/default/pages/html/element/remove.tpl.php | 255++++++++++++++++++++++++++++++++++---------------------------------------------
themes/default/pages/html/element/type.tpl.php | 247+++++++++++--------------------------------------------------------------------
themes/default/pages/html/file/compress.tpl.php | 385++++++++++++++++++++++++++++++++++++-------------------------------------------
themes/default/pages/html/file/edit.tpl.php | 217+++++++------------------------------------------------------------------------
themes/default/pages/html/file/editvalue.tpl.php | 267++++++++++++++++++++++++++++++++++---------------------------------------------
themes/default/pages/html/file/extract.tpl.php | 238++++++++++++++++++++++++++++++++++---------------------------------------------
themes/default/pages/html/file/info.tpl.php | 611+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/file/prop.tpl.php | 1242++++++++++---------------------------------------------------------------------
themes/default/pages/html/file/pub.tpl.php | 243++++++++++++++++++++++++++++++++++---------------------------------------------
themes/default/pages/html/file/remove.tpl.php | 306++++++++++++++++++++++++++++++++++---------------------------------------------
themes/default/pages/html/file/show.tpl.php | 200+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/file/size.tpl.php | 680+++++++++++++++++++++++++++++++++++++------------------------------------------
themes/default/pages/html/file/uncompress.tpl.php | 312+++++++++++++++++++++++++++++++++++--------------------------------------------
themes/default/pages/html/filebrowser/browse.tpl.php | 746++++++++++++++++++++++++++++++++++++++++++-------------------------------------
themes/default/pages/html/folder/create.tpl.php | 542++++++++++++++++++++++++++++++-------------------------------------------------
themes/default/pages/html/folder/createfile.tpl.php | 286++++++++++++++++++++++++++++++++-----------------------------------------------
themes/default/pages/html/folder/createfolder.tpl.php | 303++++++++++++++-----------------------------------------------------------------
themes/default/pages/html/folder/createlink.tpl.php | 314+++++++++++++++++++++++++++++++++++++------------------------------------------
themes/default/pages/html/folder/createpage.tpl.php | 383+++++++++++++++++--------------------------------------------------------------
themes/default/pages/html/folder/edit.tpl.php | 687+++++++++++++++++++++++++++++++++++++++++--------------------------------------
themes/default/pages/html/folder/info.tpl.php | 257+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/folder/inherit.tpl.php | 86+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/folder/order.tpl.php | 502++++++++++++++++++++++++++++++++++++++++++++-----------------------------------
themes/default/pages/html/folder/prop.tpl.php | 722+++++--------------------------------------------------------------------------
themes/default/pages/html/folder/pub.tpl.php | 333+++++++++++++------------------------------------------------------------------
themes/default/pages/html/folder/remove.tpl.php | 321+++++++++++++++++++++++++++++++++++--------------------------------------------
themes/default/pages/html/folder/select.tpl.php | 669+++++++++++++++++++++++++++++++------------------------------------------------
themes/default/pages/html/folder/show.tpl.php | 381++++++++++++++++++++++++++++++++-----------------------------------------------
themes/default/pages/html/group/add.tpl.php | 277+++++++++++++------------------------------------------------------------------
themes/default/pages/html/group/edit.tpl.php | 262+++++++++++++------------------------------------------------------------------
themes/default/pages/html/group/listing.tpl.php | 294+++++++++++++++++++++++++++++++++++++++++++------------------------------------
themes/default/pages/html/group/memberships.tpl.php | 276+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/group/remove.tpl.php | 336+++++++++++--------------------------------------------------------------------
themes/default/pages/html/group/rights.tpl.php | 573++++++++++++++++++++++++++++++++++++++-----------------------------------------
themes/default/pages/html/group/users.tpl.php | 276++++++++++++++++++++++++++++++++++++++-----------------------------------------
themes/default/pages/html/grouplist/add.tpl.php | 64++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/grouplist/show.tpl.php | 142+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/index/applications.tpl.php | 101++++++++++++++++++++-----------------------------------------------------------
themes/default/pages/html/index/changepassword.tpl.php | 97++++++++++++++++++++-----------------------------------------------------------
themes/default/pages/html/index/login.tpl.php | 62+++++++++++++++++++++++++++++++++++++++++++++++++++++++-------
themes/default/pages/html/index/password.tpl.php | 109+++++++++++++++++++++++--------------------------------------------------------
themes/default/pages/html/index/passwordinputcode.tpl.php | 101+++++++++++++++++++++----------------------------------------------------------
themes/default/pages/html/index/projectmenu.tpl.php | 98++++++++++++++++++++-----------------------------------------------------------
themes/default/pages/html/index/register.tpl.php | 107++++++++++++++++++++++---------------------------------------------------------
themes/default/pages/html/index/registeruserdata.tpl.php | 101+++++++++++++++++++++----------------------------------------------------------
themes/default/pages/html/language/add.tpl.php | 281+++++++++++++------------------------------------------------------------------
themes/default/pages/html/language/advanced.tpl.php | 315+++++++++++++++----------------------------------------------------------------
themes/default/pages/html/language/edit.tpl.php | 301++++++++++++++++---------------------------------------------------------------
themes/default/pages/html/language/listing.tpl.php | 405+++++++++++++++++++++++++++++++++++++++----------------------------------------
themes/default/pages/html/language/remove.tpl.php | 301++++++++++---------------------------------------------------------------------
themes/default/pages/html/languagelist/show.tpl.php | 322+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/link/edit.tpl.php | 280+++++++------------------------------------------------------------------------
themes/default/pages/html/link/info.tpl.php | 280+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/link/prop.tpl.php | 630++++---------------------------------------------------------------------------
themes/default/pages/html/login/changepassword.tpl.php | 263+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/login/license.tpl.php | 120+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/login/login.tpl.php | 519+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/login/openid.tpl.php | 285+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/login/password.tpl.php | 137+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/login/passwordinputcode.tpl.php | 227+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/login/register.tpl.php | 58++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/login/registeruserdata.tpl.php | 147+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/login/show.tpl.php | 80+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/model/add.tpl.php | 263++++++++++++++-----------------------------------------------------------------
themes/default/pages/html/model/edit.tpl.php | 269+++++++++++++------------------------------------------------------------------
themes/default/pages/html/model/listing.tpl.php | 414++++++++++++++++++++++++++++++++++++++++---------------------------------------
themes/default/pages/html/model/remove.tpl.php | 291+++++++++++--------------------------------------------------------------------
themes/default/pages/html/modellist/show.tpl.php | 318+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/object/aclform.tpl.php | 525+++++++++++++++----------------------------------------------------------------
themes/default/pages/html/object/rights.tpl.php | 733+++++++++++++++++++++++++++----------------------------------------------------
themes/default/pages/html/page/changetemplate.tpl.php | 363+++++++++++++++++++------------------------------------------------------------
themes/default/pages/html/page/changetemplateselectelements.tpl.php | 316+++++++++++++++----------------------------------------------------------------
themes/default/pages/html/page/el.tpl.php | 316++++++++++++++++++++++++++++---------------------------------------------------
themes/default/pages/html/page/form.tpl.php | 586+++++++++++++++++++++++++++++++++----------------------------------------------
themes/default/pages/html/page/info.tpl.php | 493+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/page/prop.tpl.php | 821++++++++++++++++++++++++-------------------------------------------------------
themes/default/pages/html/page/pub.tpl.php | 233+++++++------------------------------------------------------------------------
themes/default/pages/html/page/show.tpl.php | 138+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/page/src.tpl.php | 178++++++++++++++++++++++++++++---------------------------------------------------
themes/default/pages/html/pageelement/archive.tpl.php | 676+++++++++++++++++++++++++++++++++++++++++--------------------------------------
themes/default/pages/html/pageelement/diff.tpl.php | 439+++++++++++++++++++++++++++++++++++--------------------------------------------
themes/default/pages/html/pageelement/edit.tpl.php | 2333++++++++++++++++++++++++++++++-------------------------------------------------
themes/default/pages/html/pageelement/export.tpl.php | 299++++++++++++++++++++++++++++++++++---------------------------------------------
themes/default/pages/html/pageelement/import.tpl.php | 304++++++++++++++++++++++++++++++++++---------------------------------------------
themes/default/pages/html/pageelement/link.tpl.php | 433++++++++++++++++++++++++++++++++++++-------------------------------------------
themes/default/pages/html/pageelement/prop.tpl.php | 759++++++++++++++++++++++++++++++++-----------------------------------------------
themes/default/pages/html/profile/confirmmail.tpl.php | 285++++++++++++++++++++++++++++++++++---------------------------------------------
themes/default/pages/html/profile/edit.tpl.php | 464++++++++++++++-----------------------------------------------------------------
themes/default/pages/html/profile/groups.tpl.php | 262+++++++++++++++++++++++++++++--------------------------------------------------
themes/default/pages/html/profile/mail.tpl.php | 317++++++++++++++++++++++++++++++++++---------------------------------------------
themes/default/pages/html/profile/memberships.tpl.php | 110+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/profile/pw.tpl.php | 71+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/profile/pwchange.tpl.php | 288+++++++++++++++++++++----------------------------------------------------------
themes/default/pages/html/profile/settings.tpl.php | 324+++++++++++++++++++------------------------------------------------------------
themes/default/pages/html/project/add.tpl.php | 434++++++++++++++++++++++++++++++++-----------------------------------------------
themes/default/pages/html/project/edit.tpl.php | 495++++++++-----------------------------------------------------------------------
themes/default/pages/html/project/export.tpl.php | 279+++++++++++++++++++++----------------------------------------------------------
themes/default/pages/html/project/info.tpl.php | 223+++++++++----------------------------------------------------------------------
themes/default/pages/html/project/listing.tpl.php | 282++++++++++++++++++++++++++++++++++++++-----------------------------------------
themes/default/pages/html/project/maintenance.tpl.php | 331+++++++++++++++++++------------------------------------------------------------
themes/default/pages/html/project/remove.tpl.php | 320+++++++++++++++++++++++++++++++++----------------------------------------------
themes/default/pages/html/projectlist/add.tpl.php | 170+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/projectlist/show.tpl.php | 129+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/search/content.tpl.php | 388+++++++++++++++++++++++++++++++++++--------------------------------------------
themes/default/pages/html/search/prop.tpl.php | 496+++++++++++++++++++++++++++++++++++++------------------------------------------
themes/default/pages/html/search/result.tpl.php | 274+++++++++++++++++++++++++++++++++++--------------------------------------------
themes/default/pages/html/start/administration.tpl.php | 0
themes/default/pages/html/start/applications.tpl.php | 240+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/start/projectmenu.tpl.php | 323+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/template/add.tpl.php | 487++++++++++++++++++++++++++++++++++++-------------------------------------------
themes/default/pages/html/template/addel.tpl.php | 418++++++++++++++++++-------------------------------------------------------------
themes/default/pages/html/template/edit.tpl.php | 302+++++++++++++++++++++++++++----------------------------------------------------
themes/default/pages/html/template/el.tpl.php | 363+++++++++++++++++++++++++++++++++++++++++++------------------------------------
themes/default/pages/html/template/extension.tpl.php | 291+++++++++++--------------------------------------------------------------------
themes/default/pages/html/template/listing.tpl.php | 329+++++++++++++++++++++++++++++++++++++++++--------------------------------------
themes/default/pages/html/template/name.tpl.php | 421++++++++++++++++++++++---------------------------------------------------------
themes/default/pages/html/template/pages.tpl.php | 227++++++++++++++++++++++---------------------------------------------------------
themes/default/pages/html/template/prop.tpl.php | 18++++++++++++++++++
themes/default/pages/html/template/remove.tpl.php | 280+++++++++++--------------------------------------------------------------------
themes/default/pages/html/template/src.tpl.php | 301++++++++++++++++++++++++++++++++++++++++---------------------------------------
themes/default/pages/html/template/srcelement.tpl.php | 549+++++++++++++++++++++----------------------------------------------------------
themes/default/pages/html/templatelist/show.tpl.php | 255+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/title/show.tpl.php | 445++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------
themes/default/pages/html/tree/content.tpl.php | 329+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/tree/settings.tpl.php | 243+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/tree/show.tpl.php | 441++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------
themes/default/pages/html/user/add.tpl.php | 277+++++++++++++------------------------------------------------------------------
themes/default/pages/html/user/edit.tpl.php | 575++++++++-----------------------------------------------------------------------
themes/default/pages/html/user/groups.tpl.php | 275++++++++++++++++++++++++++++++++++++++-----------------------------------------
themes/default/pages/html/user/info.tpl.php | 142+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/user/listing.tpl.php | 380+++++++++++++++++++++++++++++++++++++++++++------------------------------------
themes/default/pages/html/user/memberships.tpl.php | 276+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/user/pw.tpl.php | 451+++++++++----------------------------------------------------------------------
themes/default/pages/html/user/remove.tpl.php | 312++++++++++----------------------------------------------------------------------
themes/default/pages/html/user/rights.tpl.php | 610+++++++++++++++++++++++++++++++++++++------------------------------------------
themes/default/pages/html/userlist/add.tpl.php | 66++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/userlist/show.tpl.php | 229+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
142 files changed, 22786 insertions(+), 27227 deletions(-)

diff --git a/themes/default/pages/html/element/delete.tpl.php b/themes/default/pages/html/element/delete.tpl.php @@ -0,0 +1,152 @@ +<?php $a2_name='';$a2_back=true; ?><div class="header"> + <?php if ($a2_back) { ?> + <a href="javascript:void(0);" onclick="javascript:refreshActualView(this);" class="back button"> + <img src="<?php echo $image_dir ?>icon/window/back.gif" /> + <?php echo lang('BACK') ?> + </a> + <?php } ?><?php if(!empty($a2_views)) { ?> + <img src="<?php echo $image_dir ?>icon/window/down.gif" /> + <div class="headermenu"> + <?php foreach( explode(',',$a2_views) as $a2_tmp_view ) { ?> + <a class="entry" href="javascript:void(0);" onclick="javascript:startView(this,'<?php echo $a2_tmp_view ?>');"> + <img src="<?php echo $image_dir ?>icon/<?php echo $a2_tmp_view ?>.png" /><?php echo lang('MENU_'.$a2_tmp_view) ?> + </a> + <?php } ?> + </div> +<?php } ?> +</div><?php unset($a2_name,$a2_back) ?><?php $a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded';$a2_type=''; ?><?php + $a2_action = $actionName; + $a2_subaction = $targetSubActionName; + $a2_id = $this->getRequestId(); + if ($this->isEditable()) + { + if ($this->isEditMode()) + { + $a2_method = 'POST'; + } + else + { + $a2_method = 'GET'; + $a2_subaction = $subActionName; + } + } + switch( $a2_type ) + { + case 'upload': + $a2_tmp_submitFunction = ''; + break; + default: + $a2_tmp_submitFunction = 'formSubmit( $(this) ); return false;'; + } +?><form name="<?php echo $a2_name ?>" + target="<?php echo $a2_target ?>" + action="<?php echo Html::url( $a2_action,$a2_subaction,$a2_id ) ?>" + method="<?php echo $a2_method ?>" + enctype="<?php echo $a2_enctype ?>" style="margin:0px;padding:0px;" + class="<?php echo $a2_action ?>" + onSubmit="<?php echo $a2_tmp_submitFunction ?>"><input type="submit" class="invisible" /> +<?php if ($this->isEditable() && !$this->isEditMode()) { ?> +<input type="hidden" name="mode" value="edit" /> +<?php } ?> +<input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $this->actionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $this->subActionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $this->getRequestId() ?>" /><?php + if ( $conf['interface']['url_sessionid'] ) + echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><fieldset><?php if(isset($a3_title)) { ?><legend><?php if(isset($a3_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a3_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a3_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='text';$a6_key='ELEMENT_NAME';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php + $langF = $a6_escape?'langHtml':'lang'; + $tmp_text = $langF($a6_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_key,$a6_escape,$a6_cut) ?></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='name';$a6_var='name';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php + $langF = $a6_escape?'langHtml':'lang'; + $tmp_text = isset($$a6_var)?$$a6_var:$langF('UNKNOWN'); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?></div></div></fieldset><?php $a3_title=lang('options'); ?><fieldset><?php if(isset($a3_title)) { ?><legend><?php if(isset($a3_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a3_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a3_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a3_title) ?><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_default=false;$a6_readonly=false;$a6_name='confirm'; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; + if ( isset($$a6_name) ) + $checked = $$a6_name; + else + $checked = $a6_default; +?><input class="checkbox" type="checkbox" id="id_<?php echo $a6_name ?>" name="<?php echo $a6_name ?>" <?php if ($a6_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?><?php if (in_array($a6_name,$errors)) echo ' style="background-color:red;"' ?> /><?php +if ( $a6_readonly && $checked ) +{ +?><input type="hidden" name="<?php echo $a6_name ?>" value="1" /><?php +} +?><?php unset($a6_name); unset($a6_readonly); unset($a6_default); ?><?php unset($a6_default,$a6_readonly,$a6_name) ?><?php $a6_for='confirm'; ?><label<?php if (isset($a6_for)) { ?> for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" class="label"<?php } ?>> +<?php if (isset($a6_key)) { echo lang($a6_key); if(hasLang($a6_key.'_desc')) { ?><div class="description"><?php echo lang($a6_key.'_desc')?></div> <?php } } ?><?php unset($a6_for) ?><?php $a7_class='text';$a7_text='CONFIRM_DELETE';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></label></div></div><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='text';$a6_raw='_____';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php + $langF = $a6_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a6_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_raw,$a6_escape,$a6_cut) ?><?php $a6_readonly=false;$a6_name='type';$a6_value='value';$a6_default='value';$a6_prefix='';$a6_suffix='';$a6_class='';$a6_onchange=''; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; + if ( isset($$a6_name) ) + $a6_tmp_default = $$a6_name; + elseif ( isset($a6_default) ) + $a6_tmp_default = $a6_default; + else + $a6_tmp_default = ''; + ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a6_name.'_'.$a6_value ?>" name="<?php echo $a6_prefix.$a6_name ?>"<?php if ( $a6_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a6_value ?>" <?php if($a6_value==$a6_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a6_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> +<?php /* #END-IF# */ ?><?php unset($a6_readonly,$a6_name,$a6_value,$a6_default,$a6_prefix,$a6_suffix,$a6_class,$a6_onchange) ?><?php $a6_for='type_value'; ?><label<?php if (isset($a6_for)) { ?> for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" class="label"<?php } ?>> +<?php if (isset($a6_key)) { echo lang($a6_key); if(hasLang($a6_key.'_desc')) { ?><div class="description"><?php echo lang($a6_key.'_desc')?></div> <?php } } ?><?php unset($a6_for) ?><?php $a7_class='text';$a7_text='ELEMENT_DELETE_VALUES';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></label><br/><?php $a6_class='text';$a6_raw='_____';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php + $langF = $a6_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a6_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_raw,$a6_escape,$a6_cut) ?><?php $a6_readonly=false;$a6_name='type';$a6_value='all';$a6_default=false;$a6_prefix='';$a6_suffix='';$a6_class='';$a6_onchange=''; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; + if ( isset($$a6_name) ) + $a6_tmp_default = $$a6_name; + elseif ( isset($a6_default) ) + $a6_tmp_default = $a6_default; + else + $a6_tmp_default = ''; + ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a6_name.'_'.$a6_value ?>" name="<?php echo $a6_prefix.$a6_name ?>"<?php if ( $a6_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a6_value ?>" <?php if($a6_value==$a6_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a6_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> +<?php /* #END-IF# */ ?><?php unset($a6_readonly,$a6_name,$a6_value,$a6_default,$a6_prefix,$a6_suffix,$a6_class,$a6_onchange) ?><?php $a6_for='type_all'; ?><label<?php if (isset($a6_for)) { ?> for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" class="label"<?php } ?>> +<?php if (isset($a6_key)) { echo lang($a6_key); if(hasLang($a6_key.'_desc')) { ?><div class="description"><?php echo lang($a6_key.'_desc')?></div> <?php } } ?><?php unset($a6_for) ?><?php $a7_class='text';$a7_text='DELETE';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></label></div></div></fieldset></form> diff --git a/themes/default/pages/html/element/edit.tpl.php b/themes/default/pages/html/element/edit.tpl.php @@ -0,0 +1,86 @@ +<?php $a2_name='';$a2_views='type,delete';$a2_back=false; ?><div class="header"> + <?php if ($a2_back) { ?> + <a href="javascript:void(0);" onclick="javascript:refreshActualView(this);" class="back button"> + <img src="<?php echo $image_dir ?>icon/window/back.gif" /> + <?php echo lang('BACK') ?> + </a> + <?php } ?><?php if(!empty($a2_views)) { ?> + <img src="<?php echo $image_dir ?>icon/window/down.gif" /> + <div class="headermenu"> + <?php foreach( explode(',',$a2_views) as $a2_tmp_view ) { ?> + <a class="entry" href="javascript:void(0);" onclick="javascript:startView(this,'<?php echo $a2_tmp_view ?>');"> + <img src="<?php echo $image_dir ?>icon/<?php echo $a2_tmp_view ?>.png" /><?php echo lang('MENU_'.$a2_tmp_view) ?> + </a> + <?php } ?> + </div> +<?php } ?> +</div><?php unset($a2_name,$a2_views,$a2_back) ?><?php $a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded';$a2_type=''; ?><?php + $a2_action = $actionName; + $a2_subaction = $targetSubActionName; + $a2_id = $this->getRequestId(); + if ($this->isEditable()) + { + if ($this->isEditMode()) + { + $a2_method = 'POST'; + } + else + { + $a2_method = 'GET'; + $a2_subaction = $subActionName; + } + } + switch( $a2_type ) + { + case 'upload': + $a2_tmp_submitFunction = ''; + break; + default: + $a2_tmp_submitFunction = 'formSubmit( $(this) ); return false;'; + } +?><form name="<?php echo $a2_name ?>" + target="<?php echo $a2_target ?>" + action="<?php echo Html::url( $a2_action,$a2_subaction,$a2_id ) ?>" + method="<?php echo $a2_method ?>" + enctype="<?php echo $a2_enctype ?>" style="margin:0px;padding:0px;" + class="<?php echo $a2_action ?>" + onSubmit="<?php echo $a2_tmp_submitFunction ?>"><input type="submit" class="invisible" /> +<?php if ($this->isEditable() && !$this->isEditMode()) { ?> +<input type="hidden" name="mode" value="edit" /> +<?php } ?> +<input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $this->actionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $this->subActionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $this->getRequestId() ?>" /><?php + if ( $conf['interface']['url_sessionid'] ) + echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><?php $a3_class='line'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><?php $a4_class='label'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='text';$a5_text='ELEMENT_NAME';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php + $langF = $a5_escape?'langHtml':'lang'; + $tmp_text = $langF($a5_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_text,$a5_escape,$a5_cut) ?></div><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='focus';$a5_default='';$a5_type='text';$a5_name='name';$a5_size='';$a5_maxlength='256';$a5_onchange='';$a5_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a5_readonly=true; + if ($a5_readonly && empty($$a5_name)) $$a5_name = '- '.lang('EMPTY').' -'; + if(!isset($a5_default)) $a5_default=''; + $tmp_value = Text::encodeHtml(isset($$a5_name)?$$a5_name:$a5_default); +?><?php if (!$a5_readonly || $a5_type=='hidden') { +?><input<?php if ($a5_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a5_name ?><?php if ($a5_readonly) echo '_disabled' ?>" name="<?php echo $a5_name ?><?php if ($a5_readonly) echo '_disabled' ?>" type="<?php echo $a5_type ?>" maxlength="<?php echo $a5_maxlength ?>" class="<?php echo str_replace(',',' ',$a5_class) ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a5_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php +if ($a5_readonly) { +?><input type="hidden" id="id_<?php echo $a5_name ?>" name="<?php echo $a5_name ?>" value="<?php echo $tmp_value ?>" /><?php + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a5_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a5_class,$a5_default,$a5_type,$a5_name,$a5_size,$a5_maxlength,$a5_onchange,$a5_readonly) ?></div></div><?php $a3_class='line'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><?php $a4_class='label'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='text';$a5_text='GLOBAL_DESCRIPTION';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php + $langF = $a5_escape?'langHtml':'lang'; + $tmp_text = $langF($a5_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_text,$a5_escape,$a5_cut) ?></div><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_name='description';$a5_rows='5';$a5_cols='40';$a5_class='inputarea';$a5_default=''; ?><?php if ($this->isEditMode()) { +?><textarea class="<?php echo $a5_class ?>" name="<?php echo $a5_name ?>" rows="<?php echo $a5_rows ?>" cols="<?php echo $a5_cols ?>"><?php echo htmlentities(isset($$a5_name)?$$a5_name:$a5_default) ?></textarea><?php + } else { +?><span class="<?php echo $a5_class ?>"><?php echo isset($$a5_name)?$$a5_name:$a5_default ?></span><?php } ?><?php unset($a5_name,$a5_rows,$a5_cols,$a5_class,$a5_default) ?></div></div></form> diff --git a/themes/default/pages/html/element/name.tpl.php b/themes/default/pages/html/element/name.tpl.php @@ -1,125 +1,82 @@ -<?php $a1_class='main'; ?><?php - if (!defined('OR_VERSION')) die('Forbidden'); - 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($a1_title)?langHtml($a1_title).' - ':(isset($windowTitle)?langHtml($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" > -<?php if ( isset($refresh_url) ) { ?> - <meta http-equiv="refresh" content="<?php echo isset($refresh_timeout)?$refresh_timeout:0 ?>; URL=<?php echo $refresh_url; if (ini_get('session.use_trans_sid')) echo '&'.session_name().'='.session_id(); ?>"> -<?php } ?> - <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 $meta['title'] ?>" ><?php - } -?><?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="main" <?php if (@$conf['interface']['application_mode']) { ?> style="padding:0px;margin:0px;"<?php } ?> > -<?php /* Debug-Information */ if ($showDuration) { echo "<!-- Output Variables are:\n";echo str_replace('-->','-- >',print_r($this->templateVars,true));echo "\n-->";} ?><?php unset($a1_class) ?><?php $a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php - $a2_action = $actionName; - $a2_subaction = $targetSubActionName; - $a2_id = $this->getRequestId(); +<?php $a3_name='';$a3_target='_self';$a3_method='post';$a3_enctype='application/x-www-form-urlencoded';$a3_type=''; ?><?php + $a3_action = $actionName; + $a3_subaction = $targetSubActionName; + $a3_id = $this->getRequestId(); if ($this->isEditable()) { if ($this->isEditMode()) { - $a2_method = 'POST'; + $a3_method = 'POST'; } else { - $a2_method = 'GET'; - $a2_subaction = $subActionName; + $a3_method = 'GET'; + $a3_subaction = $subActionName; } } -?><form name="<?php echo $a2_name ?>" - target="<?php echo $a2_target ?>" - action="<?php echo Html::url( $a2_action,$a2_subaction,$a2_id ) ?>" - method="<?php echo $a2_method ?>" - enctype="<?php echo $a2_enctype ?>" style="margin:0px;padding:0px;"> + switch( $a3_type ) + { + case 'upload': + $a3_tmp_submitFunction = ''; + break; + default: + $a3_tmp_submitFunction = 'formSubmit( $(this) ); return false;'; + } +?><form name="<?php echo $a3_name ?>" + target="<?php echo $a3_target ?>" + action="<?php echo Html::url( $a3_action,$a3_subaction,$a3_id ) ?>" + method="<?php echo $a3_method ?>" + enctype="<?php echo $a3_enctype ?>" style="margin:0px;padding:0px;" + class="<?php echo $a3_action ?>" + onSubmit="<?php echo $a3_tmp_submitFunction ?>"><input type="submit" class="invisible" /> <?php if ($this->isEditable() && !$this->isEditMode()) { ?> <input type="hidden" name="mode" value="edit" /> <?php } ?> <input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $a2_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $a2_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a2_id ?>" /><?php +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $this->actionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $this->subActionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $this->getRequestId() ?>" /><?php if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype) ?><?php $a3_name='GLOBAL_NAME';$a3_width='93%';$a3_rowclasses='odd,even';$a3_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$actionName; - $row_classes = explode(',',$a3_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a3_columnclasses); - $row_idx = 0; - $column_idx = 0; - 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="'.$a3_width.'">'; - } - if (!@$conf['interface']['application_mode'] ) - { - echo '<tr class="title"><td>'; - echo '<img src="'.$image_dir.'icon_'.$icon.IMG_ICON_EXT.'" align="left" border="0">'; - if ($this->isEditable()) { ?> +?><?php unset($a3_name,$a3_target,$a3_method,$a3_enctype,$a3_type) ?><?php $a4_name='GLOBAL_NAME';$a4_width='93%';$a4_rowclasses='odd,even';$a4_columnclasses='1,2,3'; ?><?php if (false) { ?> +<div class="window"> +<div class="title"> + <?php $icon=$actionName; ?> + <img src="<?php echo $image_dir.'icon_'.$icon.IMG_ICON_EXT ?>" align="left" /> + <?php if ($this->isEditable()) { ?> <?php if ($this->isEditMode()) { ?><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 } elseif (readonly()) { ?><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /> <?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($actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; - if ( !isset($path) || is_array($path) ) + ?><?php } ?> + <span class="path"><?php echo langHtml($actionName) ?></span>&nbsp;<strong>&rarr;</strong>&nbsp; + <?php + 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>'; + extract($pathElement); ?> + <a javascript:void(0);" onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $url ?>'); return false; " title="<?php echo $title ?>" class="path"><?php echo (!empty($key)?langHtml($key):$name) ?></a> + &nbsp;&rarr;&nbsp; + <?php } ?> + <span class="title"><?php echo langHtml(@$windowTitle) ?></span> + <?php if ( isset($notice_status)) { ?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?php } ?> - </td> - <?php - } - ?> -<?php ?> <!--<td class="menu" style="align:right;"> + <?php ?> <?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 class="menu"><td> - <table class="menu"><tr> - <?php if ( !isset($windowMenu) || !is_array($windowMenu) ) - $windowMenu = array(); +</div> +<ul class="menu"> +<?php + if ( !isset($windowMenu) || !is_array($windowMenu) ) $windowMenu = array(); foreach( $windowMenu as $menu ) { $tmp_text = langHtml($menu['text']); @@ -127,147 +84,155 @@ $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); + $liClass = (isset($menu['url'])?'':'no').'action'.($this->subActionName==$menu['subaction']?' active':''); + $icon_url = $image_dir.'icon/'.$menu['subaction'].'.png'; + ?><li class="<?php echo $liClass?>"><?php if ( isset($menu['url']) ) { - ?><td class="action"><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></td><?php + $link_url = Html::url($actionName,$menu['subaction'],$this->getRequestId() ); + ?><a href="javascript:void(0);" onclick="javascript:loadSubaction(this,'<?php echo $actionName ?>','<?php echo $menu['subaction'] ?>','<?php echo $this->getRequestId() ?>'); return false; " accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>"><img src="<?php echo $icon_url ?>" /><?php echo $tmp_text ?></a><?php } else { - ?><td class="noaction"><?php echo $tmp_text ?></td><?php + ?><span><img src="<?php echo $icon_url ?>" /><?php echo $tmp_text ?></span><?php } } - if (@$conf['help']['enabled'] ) + ?></li><?php + if ( /* Deaktiviert */ false && @$conf['help']['enabled'] ) { - ?><td><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></td><?php + ?><a class="help" href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>"><img src="<?php echo $image_dir.'icon/help.png' ?>" /><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php } - ?> - </tr></table></td> - </tr> -<?php if (isset($notices) && count($notices)>0 ) + ?><?php + ?> +</ul> +<?php global $image_dir; + if (isset($notices) && count($notices)>0 ) { ?> - <tr> - <td align="center" class="notice"> + <dl class="notice"> <?php foreach( $notices as $notice_idx=>$notice ) { ?> - <br><table class="notice"> <?php if ($notice['name']!='') { ?> - <tr> - <th colspan="2"><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?> - </th> - </tr> + <dt><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?></dt> <?php } ?> - <tr class="<?php echo $notice['status'] ?>"> + <dd class="<?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> + </dd> <?php } ?> - </td> - </tr> - <tr> - <td colspan="2"><fieldset></fieldset></td> - </tr> + </dl> <?php } ?> - <tr> - <td class="window"> - <table cellspacing="0" width="100%" cellpadding="4"> -<?php unset($a3_name,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $row_idx++; +<div class="content"><div class="filler"> +<?php } ?><?php unset($a4_name,$a4_width,$a4_rowclasses,$a4_columnclasses) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a6_class='text';$a6_text='ELEMENT_NAME';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_header) ?><?php $a7_class='text';$a7_text='ELEMENT_NAME';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a6_class='text';$a6_default='';$a6_type='text';$a6_name='name';$a6_size='40';$a6_maxlength='256';$a6_onchange='';$a6_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; - if ($a6_readonly && empty($$a6_name)) $$a6_name = '- '.lang('EMPTY').' -'; - if(!isset($a6_default)) $a6_default=''; - $tmp_value = Text::encodeHtml(isset($$a6_name)?$$a6_name:$a6_default); -?><?php if (!$a6_readonly || $a6_type=='hidden') { -?><input<?php if ($a6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" name="<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" type="<?php echo $a6_type ?>" size="<?php echo $a6_size ?>" maxlength="<?php echo $a6_maxlength ?>" class="<?php echo $a6_class ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a6_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php -if ($a6_readonly) { -?><input type="hidden" id="id_<?php echo $a6_name ?>" name="<?php echo $a6_name ?>" value="<?php echo $tmp_value ?>" /><?php - } } else { ?><span class="<?php echo $a6_class ?>"><?php echo $tmp_value ?></span><?php } ?><?php unset($a6_class,$a6_default,$a6_type,$a6_name,$a6_size,$a6_maxlength,$a6_onchange,$a6_readonly) ?></td></tr><?php - $row_idx++; +><?php unset($a6_header) ?><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='name';$a7_size='';$a7_maxlength='256';$a7_onchange='';$a7_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; + if ($a7_readonly && empty($$a7_name)) $$a7_name = '- '.lang('EMPTY').' -'; + if(!isset($a7_default)) $a7_default=''; + $tmp_value = Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default); +?><?php if (!$a7_readonly || $a7_type=='hidden') { +?><input<?php if ($a7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" name="<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" type="<?php echo $a7_type ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo str_replace(',',' ',$a7_class) ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a7_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php +if ($a7_readonly) { +?><input type="hidden" id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name ?>" value="<?php echo $tmp_value ?>" /><?php + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a7_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a7_class,$a7_default,$a7_type,$a7_name,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly) ?></td></tr><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a6_class='text';$a6_text='GLOBAL_DESCRIPTION';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_header) ?><?php $a7_class='text';$a7_text='GLOBAL_DESCRIPTION';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a6_name='description';$a6_rows='5';$a6_cols='50';$a6_class='inputarea';$a6_default=''; ?><?php if ($this->isEditMode()) { -?><textarea class="<?php echo $a6_class ?>" name="<?php echo $a6_name ?>" rows="<?php echo $a6_rows ?>" cols="<?php echo $a6_cols ?>"><?php echo htmlentities(isset($$a6_name)?$$a6_name:$a6_default) ?></textarea><?php +><?php unset($a6_header) ?><?php $a7_name='description';$a7_rows='5';$a7_cols='50';$a7_class='inputarea';$a7_default=''; ?><?php if ($this->isEditMode()) { +?><textarea class="<?php echo $a7_class ?>" name="<?php echo $a7_name ?>" rows="<?php echo $a7_rows ?>" cols="<?php echo $a7_cols ?>"><?php echo htmlentities(isset($$a7_name)?$$a7_name:$a7_default) ?></textarea><?php } else { -?><span class="<?php echo $a6_class ?>"><?php echo isset($$a6_name)?$$a6_name:$a6_default ?></span><?php } ?><?php unset($a6_name,$a6_rows,$a6_cols,$a6_class,$a6_default) ?></td></tr><?php - $row_idx++; +?><span class="<?php echo $a7_class ?>"><?php echo isset($$a7_name)?$$a7_name:$a7_default ?></span><?php } ?><?php unset($a7_name,$a7_rows,$a7_cols,$a7_class,$a7_default) ?></td></tr><?php $column_idx = 0; ?> <tr > -<?php $a5_class='act';$a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a6_class='act';$a6_colspan='2';$a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="act" colspan="2" -><?php unset($a5_class,$a5_colspan) ?><?php $a6_type='ok';$a6_class='ok';$a6_value='ok';$a6_text='button_ok'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) - $a6_text = 'MODE_EDIT'; - $a6_type = 'submit'; - if ( $this->isEditable() && readonly() ) - $a6_type = ''; // Knopf nicht anzeigen - $a6_src = ''; - if ( !empty($a6_type) ) { -?><input type="<?php echo $a6_type ?>"<?php if(isset($a6_src)) { ?> src="<?php echo $image_dir.'icon_'.$a6_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $a6_value ?>" class="ok" title="<?php echo lang($a6_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a6_src) -?><?php } -?><?php unset($a6_type,$a6_class,$a6_value,$a6_text) ?></td></tr> </table> - </td> - </tr> -</table> -</center> +><?php unset($a6_class,$a6_colspan,$a6_header) ?><?php $a7_type='ok';$a7_class='ok';$a7_value='ok';$a7_text='button_ok'; ?><div class="invisible"> +<?php + if ($this->isEditable() && !$this->isEditMode() && !readonly() ) + { + $a7_type = ''; // Knopf nicht anzeigen + ?><a class="action" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span title="<?php echo lang('MODE_EDIT_DESC') ?>"><?php echo langHtml('MODE_EDIT') ?></span></a><?php + } else + { + $a7_type = 'submit'; + } + $a7_tmp_src = ''; + if ( !empty($a7_type)) { +?> +<input type="<?php echo $a7_type ?>"<?php if(isset($a7_src)) { ?> src="<?php $a7_tmp_src ?>"<?php } ?> name="<?php echo $a7_value ?>" class="ok" title="<?php echo lang($a7_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a7_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a7_src); ?> +<?php } + if ($this->isEditable() && $this->isEditMode() ) + { + ?><a class="action" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'')) ?>"><span title="<?php echo lang('CANCEL_DESC') ?>"><?php echo langHtml('CANCEL') ?></span></a><?php + } +?> +</div><?php unset($a7_type,$a7_class,$a7_value,$a7_text) ?></td></tr><?php if (false) { ?> +</div> +</div> +<div class="bottom"> + <div class="status"> + </div> + <div class="command"> + <input type="button" value="<?php echo lang('OK') ?>" onclick="formSubmit( $(this),'<?php echo $view ?>');" /> + <input type="cancel" value="<?php echo lang('CANCEL') ?>" /> + </div> +</div> +</div> <?php if ($showDuration) { ?> <br/> @@ -275,12 +240,7 @@ if ($a6_readonly) { <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -</form> -<?php $a2_field='name'; ?><?php -if (isset($errors[0])) $a2_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $a2_field ?>.focus(); -document.forms[0].<?php echo $a2_field ?>.select(); +<?php } ?></form> +<?php $a3_field='name'; ?><script name="JavaScript" type="text/javascript"><!-- </script> -<?php unset($a2_field) ?></body> -</html>- \ No newline at end of file +<?php unset($a3_field) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/element/prop.tpl.php b/themes/default/pages/html/element/prop.tpl.php @@ -0,0 +1,878 @@ +<?php $a2_name='';$a2_back=false; ?><div class="header"> + <?php if ($a2_back) { ?> + <a href="javascript:void(0);" onclick="javascript:refreshActualView(this);" class="back button"> + <img src="<?php echo $image_dir ?>icon/window/back.gif" /> + <?php echo lang('BACK') ?> + </a> + <?php } ?><?php if(!empty($a2_views)) { ?> + <img src="<?php echo $image_dir ?>icon/window/down.gif" /> + <div class="headermenu"> + <?php foreach( explode(',',$a2_views) as $a2_tmp_view ) { ?> + <a class="entry" href="javascript:void(0);" onclick="javascript:startView(this,'<?php echo $a2_tmp_view ?>');"> + <img src="<?php echo $image_dir ?>icon/<?php echo $a2_tmp_view ?>.png" /><?php echo lang('MENU_'.$a2_tmp_view) ?> + </a> + <?php } ?> + </div> +<?php } ?> +</div><?php unset($a2_name,$a2_back) ?><?php $a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded';$a2_type=''; ?><?php + $a2_action = $actionName; + $a2_subaction = $targetSubActionName; + $a2_id = $this->getRequestId(); + if ($this->isEditable()) + { + if ($this->isEditMode()) + { + $a2_method = 'POST'; + } + else + { + $a2_method = 'GET'; + $a2_subaction = $subActionName; + } + } + switch( $a2_type ) + { + case 'upload': + $a2_tmp_submitFunction = ''; + break; + default: + $a2_tmp_submitFunction = 'formSubmit( $(this) ); return false;'; + } +?><form name="<?php echo $a2_name ?>" + target="<?php echo $a2_target ?>" + action="<?php echo Html::url( $a2_action,$a2_subaction,$a2_id ) ?>" + method="<?php echo $a2_method ?>" + enctype="<?php echo $a2_enctype ?>" style="margin:0px;padding:0px;" + class="<?php echo $a2_action ?>" + onSubmit="<?php echo $a2_tmp_submitFunction ?>"><input type="submit" class="invisible" /> +<?php if ($this->isEditable() && !$this->isEditMode()) { ?> +<input type="hidden" name="mode" value="edit" /> +<?php } ?> +<input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $this->actionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $this->subActionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $this->getRequestId() ?>" /><?php + if ( $conf['interface']['url_sessionid'] ) + echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><fieldset><?php if(isset($a3_title)) { ?><legend><?php if(isset($a3_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a3_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a3_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php $a4_present='subtype'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_present) ?><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='ELEMENT_SUBTYPE';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_present='subtypes'; ?><?php + $a7_tmp_exec = isset($$a7_present); + $a7_tmp_last_exec = $a7_tmp_exec; + if ( $a7_tmp_exec ) + { +?> +<?php unset($a7_present) ?><?php $a8_list='subtypes';$a8_name='subtype';$a8_onchange='';$a8_title='';$a8_class='';$a8_addempty=true;$a8_multiple=false;$a8_size='1';$a8_lang=false; ?><?php +$a8_readonly=false; +$a8_tmp_list = $$a8_list; +if ($this->isEditable() && !$this->isEditMode()) +{ + echo empty($$a8_name)?'- '.lang('EMPTY').' -':$a8_tmp_list[$$a8_name]; +} +else +{ +if ( $a8_addempty!==FALSE ) +{ + if ($a8_addempty===TRUE) + $a8_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a8_tmp_list; + else + $a8_tmp_list = array(''=>'- '.lang($a8_addempty).' -')+$a8_tmp_list; +} +?><select<?php if ($a8_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a8_name ?>" name="<?php echo $a8_name; if ($a8_multiple) echo '[]'; ?>" onchange="<?php echo $a8_onchange ?>" title="<?php echo $a8_title ?>" class="<?php echo $a8_class ?>"<?php +if (count($$a8_list)<=1) echo ' disabled="disabled"'; +if ($a8_multiple) echo ' multiple="multiple"'; +if (in_array($a8_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($a8_size).'"'; +?>><?php + if ( isset($$a8_name) && isset($a8_tmp_list[$$a8_name]) ) + $a8_tmp_default = $$a8_name; + elseif ( isset($a8_default) ) + $a8_tmp_default = $a8_default; + else + $a8_tmp_default = ''; + foreach( $a8_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( $a8_lang ) + { + $box_title = lang( $box_value.'_DESC'); + $box_value = lang( $box_value ); + } + else + { + $box_title = ''; + } + echo '<option class="'.$a8_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a8_tmp_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select><?php +if (count($$a8_list)==0) echo '<input type="hidden" name="'.$a8_name.'" value="" />'; +if (count($$a8_list)==1) echo '<input type="hidden" name="'.$a8_name.'" value="'.$box_key.'" />'; +} +?><?php unset($a8_list,$a8_name,$a8_onchange,$a8_title,$a8_class,$a8_addempty,$a8_multiple,$a8_size,$a8_lang) ?><?php } ?><?php $a7_not=true;$a7_present='subtypes'; ?><?php + $a7_tmp_exec = isset($$a7_present); + $a7_tmp_exec = !$a7_tmp_exec; + $a7_tmp_last_exec = $a7_tmp_exec; + if ( $a7_tmp_exec ) + { +?> +<?php unset($a7_not,$a7_present) ?><?php $a8_class='text';$a8_default='';$a8_type='text';$a8_name='subtype';$a8_size='';$a8_maxlength='256';$a8_onchange='';$a8_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; + if ($a8_readonly && empty($$a8_name)) $$a8_name = '- '.lang('EMPTY').' -'; + if(!isset($a8_default)) $a8_default=''; + $tmp_value = Text::encodeHtml(isset($$a8_name)?$$a8_name:$a8_default); +?><?php if (!$a8_readonly || $a8_type=='hidden') { +?><input<?php if ($a8_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a8_name ?><?php if ($a8_readonly) echo '_disabled' ?>" name="<?php echo $a8_name ?><?php if ($a8_readonly) echo '_disabled' ?>" type="<?php echo $a8_type ?>" maxlength="<?php echo $a8_maxlength ?>" class="<?php echo str_replace(',',' ',$a8_class) ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a8_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php +if ($a8_readonly) { +?><input type="hidden" id="id_<?php echo $a8_name ?>" name="<?php echo $a8_name ?>" value="<?php echo $tmp_value ?>" /><?php + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a8_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a8_class,$a8_default,$a8_type,$a8_name,$a8_size,$a8_maxlength,$a8_onchange,$a8_readonly) ?><?php } ?></div></div><?php } ?><?php $a4_present='with_icon'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_present) ?><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_default=false;$a7_readonly=false;$a7_name='with_icon'; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; + if ( isset($$a7_name) ) + $checked = $$a7_name; + else + $checked = $a7_default; +?><input class="checkbox" type="checkbox" id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name ?>" <?php if ($a7_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?><?php if (in_array($a7_name,$errors)) echo ' style="background-color:red;"' ?> /><?php +if ( $a7_readonly && $checked ) +{ +?><input type="hidden" name="<?php echo $a7_name ?>" value="1" /><?php +} +?><?php unset($a7_name); unset($a7_readonly); unset($a7_default); ?><?php unset($a7_default,$a7_readonly,$a7_name) ?><?php $a7_for='with_icon'; ?><label<?php if (isset($a7_for)) { ?> for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>" class="label"<?php } ?>> +<?php if (isset($a7_key)) { echo lang($a7_key); if(hasLang($a7_key.'_desc')) { ?><div class="description"><?php echo lang($a7_key.'_desc')?></div> <?php } } ?><?php unset($a7_for) ?><?php $a8_class='text';$a8_text='EL_PROP_WITH_ICON';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></label></div></div><?php } ?><?php $a4_present='all_languages'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_present) ?><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_default=false;$a7_readonly=false;$a7_name='all_languages'; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; + if ( isset($$a7_name) ) + $checked = $$a7_name; + else + $checked = $a7_default; +?><input class="checkbox" type="checkbox" id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name ?>" <?php if ($a7_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?><?php if (in_array($a7_name,$errors)) echo ' style="background-color:red;"' ?> /><?php +if ( $a7_readonly && $checked ) +{ +?><input type="hidden" name="<?php echo $a7_name ?>" value="1" /><?php +} +?><?php unset($a7_name); unset($a7_readonly); unset($a7_default); ?><?php unset($a7_default,$a7_readonly,$a7_name) ?><?php $a7_for='all_languages'; ?><label<?php if (isset($a7_for)) { ?> for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>" class="label"<?php } ?>> +<?php if (isset($a7_key)) { echo lang($a7_key); if(hasLang($a7_key.'_desc')) { ?><div class="description"><?php echo lang($a7_key.'_desc')?></div> <?php } } ?><?php unset($a7_for) ?><?php $a8_class='text';$a8_text='EL_PROP_ALL_LANGUAGES';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></label></div></div><?php } ?><?php $a4_present='writable'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_present) ?><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_default=false;$a7_readonly=false;$a7_name='writable'; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; + if ( isset($$a7_name) ) + $checked = $$a7_name; + else + $checked = $a7_default; +?><input class="checkbox" type="checkbox" id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name ?>" <?php if ($a7_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?><?php if (in_array($a7_name,$errors)) echo ' style="background-color:red;"' ?> /><?php +if ( $a7_readonly && $checked ) +{ +?><input type="hidden" name="<?php echo $a7_name ?>" value="1" /><?php +} +?><?php unset($a7_name); unset($a7_readonly); unset($a7_default); ?><?php unset($a7_default,$a7_readonly,$a7_name) ?><?php $a7_for='writable'; ?><label<?php if (isset($a7_for)) { ?> for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>" class="label"<?php } ?>> +<?php if (isset($a7_key)) { echo lang($a7_key); if(hasLang($a7_key.'_desc')) { ?><div class="description"><?php echo lang($a7_key.'_desc')?></div> <?php } } ?><?php unset($a7_for) ?><?php $a8_class='text';$a8_text='EL_PROP_writable';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></label></div></div><?php } ?><?php $a4_present='width'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_present) ?><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='width';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='width';$a7_size='10';$a7_maxlength='256';$a7_onchange='';$a7_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; + if ($a7_readonly && empty($$a7_name)) $$a7_name = '- '.lang('EMPTY').' -'; + if(!isset($a7_default)) $a7_default=''; + $tmp_value = Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default); +?><?php if (!$a7_readonly || $a7_type=='hidden') { +?><input<?php if ($a7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" name="<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" type="<?php echo $a7_type ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo str_replace(',',' ',$a7_class) ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a7_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php +if ($a7_readonly) { +?><input type="hidden" id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name ?>" value="<?php echo $tmp_value ?>" /><?php + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a7_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a7_class,$a7_default,$a7_type,$a7_name,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly) ?></div></div><?php } ?><?php $a4_present='height'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_present) ?><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='height';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='height';$a7_size='10';$a7_maxlength='256';$a7_onchange='';$a7_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; + if ($a7_readonly && empty($$a7_name)) $$a7_name = '- '.lang('EMPTY').' -'; + if(!isset($a7_default)) $a7_default=''; + $tmp_value = Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default); +?><?php if (!$a7_readonly || $a7_type=='hidden') { +?><input<?php if ($a7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" name="<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" type="<?php echo $a7_type ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo str_replace(',',' ',$a7_class) ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a7_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php +if ($a7_readonly) { +?><input type="hidden" id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name ?>" value="<?php echo $tmp_value ?>" /><?php + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a7_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a7_class,$a7_default,$a7_type,$a7_name,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly) ?></div></div><?php } ?><?php $a4_present='dateformat'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_present) ?><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='EL_PROP_DATEFORMAT';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_list='dateformats';$a7_name='dateformat';$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=false;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php +$a7_readonly=false; +$a7_tmp_list = $$a7_list; +if ($this->isEditable() && !$this->isEditMode()) +{ + echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; +} +else +{ +if ( $a7_addempty!==FALSE ) +{ + if ($a7_addempty===TRUE) + $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; + else + $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_tmp_list; +} +?><select<?php if ($a7_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name; if ($a7_multiple) echo '[]'; ?>" onchange="<?php echo $a7_onchange ?>" title="<?php echo $a7_title ?>" class="<?php echo $a7_class ?>"<?php +if (count($$a7_list)<=1) echo ' disabled="disabled"'; +if ($a7_multiple) echo ' multiple="multiple"'; +if (in_array($a7_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($a7_size).'"'; +?>><?php + if ( isset($$a7_name) && isset($a7_tmp_list[$$a7_name]) ) + $a7_tmp_default = $$a7_name; + elseif ( isset($a7_default) ) + $a7_tmp_default = $a7_default; + else + $a7_tmp_default = ''; + foreach( $a7_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( $a7_lang ) + { + $box_title = lang( $box_value.'_DESC'); + $box_value = lang( $box_value ); + } + else + { + $box_title = ''; + } + echo '<option class="'.$a7_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a7_tmp_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select><?php +if (count($$a7_list)==0) echo '<input type="hidden" name="'.$a7_name.'" value="" />'; +if (count($$a7_list)==1) echo '<input type="hidden" name="'.$a7_name.'" value="'.$box_key.'" />'; +} +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?></div></div><?php } ?><?php $a4_present='format'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_present) ?><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='EL_PROP_FORMAT';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_list='formatlist';$a7_name='format';$a7_onchange='';$a7_title='';$a7_class=''; ?><?php $a7_tmp_list = $$a7_list; + if ( isset($$a7_name) && isset($a7_tmp_list[$$a7_name]) ) + $a7_tmp_default = $$a7_name; + elseif ( isset($a7_default) ) + $a7_tmp_default = $a7_default; + else + $a7_tmp_default = ''; + foreach( $a7_tmp_list as $box_key=>$box_value ) + { + $box_value = is_array($box_value)?(isset($box_value['lang'])?langHtml($box_value['lang']):$box_value['value']):$box_value; + $id = 'id_'.$a7_name.'_'.$box_key; + echo '<input id="'.$id.'" name="'.$a7_name.'" type="radio" class="'.$a7_class.'" value="'.$box_key.'"'; + if ($box_key==$a7_tmp_default) + echo ' checked="checked"'; + echo ' />&nbsp;<label for="'.$id.'">'.$box_value.'</label><br />'; + } +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class) ?></div></div><?php } ?><?php $a4_present='decimals'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_present) ?><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='EL_PROP_DECIMALS';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='decimals';$a7_size='10';$a7_maxlength='2';$a7_onchange='';$a7_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; + if ($a7_readonly && empty($$a7_name)) $$a7_name = '- '.lang('EMPTY').' -'; + if(!isset($a7_default)) $a7_default=''; + $tmp_value = Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default); +?><?php if (!$a7_readonly || $a7_type=='hidden') { +?><input<?php if ($a7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" name="<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" type="<?php echo $a7_type ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo str_replace(',',' ',$a7_class) ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a7_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php +if ($a7_readonly) { +?><input type="hidden" id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name ?>" value="<?php echo $tmp_value ?>" /><?php + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a7_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a7_class,$a7_default,$a7_type,$a7_name,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly) ?></div></div><?php } ?><?php $a4_present='dec_point'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_present) ?><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='EL_PROP_DEC_POINT';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='dec_point';$a7_size='10';$a7_maxlength='5';$a7_onchange='';$a7_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; + if ($a7_readonly && empty($$a7_name)) $$a7_name = '- '.lang('EMPTY').' -'; + if(!isset($a7_default)) $a7_default=''; + $tmp_value = Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default); +?><?php if (!$a7_readonly || $a7_type=='hidden') { +?><input<?php if ($a7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" name="<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" type="<?php echo $a7_type ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo str_replace(',',' ',$a7_class) ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a7_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php +if ($a7_readonly) { +?><input type="hidden" id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name ?>" value="<?php echo $tmp_value ?>" /><?php + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a7_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a7_class,$a7_default,$a7_type,$a7_name,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly) ?></div></div><?php } ?><?php $a4_present='thousand_sep'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_present) ?><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='EL_PROP_thousand_sep';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='thousand_sep';$a7_size='10';$a7_maxlength='1';$a7_onchange='';$a7_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; + if ($a7_readonly && empty($$a7_name)) $$a7_name = '- '.lang('EMPTY').' -'; + if(!isset($a7_default)) $a7_default=''; + $tmp_value = Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default); +?><?php if (!$a7_readonly || $a7_type=='hidden') { +?><input<?php if ($a7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" name="<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" type="<?php echo $a7_type ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo str_replace(',',' ',$a7_class) ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a7_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php +if ($a7_readonly) { +?><input type="hidden" id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name ?>" value="<?php echo $tmp_value ?>" /><?php + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a7_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a7_class,$a7_default,$a7_type,$a7_name,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly) ?></div></div><?php } ?><?php $a4_present='default_text'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_present) ?><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='EL_PROP_default_text';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='default_text';$a7_size='40';$a7_maxlength='255';$a7_onchange='';$a7_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; + if ($a7_readonly && empty($$a7_name)) $$a7_name = '- '.lang('EMPTY').' -'; + if(!isset($a7_default)) $a7_default=''; + $tmp_value = Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default); +?><?php if (!$a7_readonly || $a7_type=='hidden') { +?><input<?php if ($a7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" name="<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" type="<?php echo $a7_type ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo str_replace(',',' ',$a7_class) ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a7_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php +if ($a7_readonly) { +?><input type="hidden" id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name ?>" value="<?php echo $tmp_value ?>" /><?php + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a7_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a7_class,$a7_default,$a7_type,$a7_name,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly) ?></div></div><?php } ?><?php $a4_present='default_longtext'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_present) ?><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='EL_PROP_default_longtext';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_name='default_longtext';$a7_rows='10';$a7_cols='40';$a7_class='inputarea';$a7_default=''; ?><?php if ($this->isEditMode()) { +?><textarea class="<?php echo $a7_class ?>" name="<?php echo $a7_name ?>" rows="<?php echo $a7_rows ?>" cols="<?php echo $a7_cols ?>"><?php echo htmlentities(isset($$a7_name)?$$a7_name:$a7_default) ?></textarea><?php + } else { +?><span class="<?php echo $a7_class ?>"><?php echo isset($$a7_name)?$$a7_name:$a7_default ?></span><?php } ?><?php unset($a7_name,$a7_rows,$a7_cols,$a7_class,$a7_default) ?></div></div><?php } ?><?php $a4_present='parameters'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_present) ?><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='EL_PROP_DYNAMIC_PARAMETERS';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_name='parameters';$a7_rows='15';$a7_cols='40';$a7_class='inputarea';$a7_default=''; ?><?php if ($this->isEditMode()) { +?><textarea class="<?php echo $a7_class ?>" name="<?php echo $a7_name ?>" rows="<?php echo $a7_rows ?>" cols="<?php echo $a7_cols ?>"><?php echo htmlentities(isset($$a7_name)?$$a7_name:$a7_default) ?></textarea><?php + } else { +?><span class="<?php echo $a7_class ?>"><?php echo isset($$a7_name)?$$a7_name:$a7_default ?></span><?php } ?><?php unset($a7_name,$a7_rows,$a7_cols,$a7_class,$a7_default) ?></div></div><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_list='dynamic_class_parameters';$a7_extract=false;$a7_key='paramName';$a7_value='defaultValue'; ?><?php + $a7_list_tmp_key = $a7_key; + $a7_list_tmp_value = $a7_value; + $a7_list_extract = $a7_extract; + unset($a7_key); + unset($a7_value); + if ( !isset($$a7_list) || !is_array($$a7_list) ) + $$a7_list = array(); + foreach( $$a7_list as $$a7_list_tmp_key => $$a7_list_tmp_value ) + { + if ( $a7_list_extract ) + { + if ( !is_array($$a7_list_tmp_value) ) + { + print_r($$a7_list_tmp_value); + die( 'not an array at key: '.$$a7_list_tmp_key ); + } + extract($$a7_list_tmp_value); + } +?><?php unset($a7_list,$a7_extract,$a7_key,$a7_value) ?><?php $a8_class='text';$a8_var='paramName';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = isset($$a8_var)?$$a8_var:$langF('UNKNOWN'); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_var,$a8_escape,$a8_cut) ?><?php $a8_class='text';$a8_raw='_(';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a8_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_raw,$a8_escape,$a8_cut) ?><?php $a8_class='text';$a8_text='GLOBAL_DEFAULT';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?><?php $a8_class='text';$a8_raw=')_=_';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a8_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_raw,$a8_escape,$a8_cut) ?><?php $a8_class='text';$a8_var='defaultValue';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = isset($$a8_var)?$$a8_var:$langF('UNKNOWN'); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_var,$a8_escape,$a8_cut) ?><br/><?php } ?></div></div><?php } ?><?php $a4_present='select_items'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_present) ?><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='EL_PROP_select_items';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_name='select_items';$a7_rows='15';$a7_cols='40';$a7_class='inputarea';$a7_default=''; ?><?php if ($this->isEditMode()) { +?><textarea class="<?php echo $a7_class ?>" name="<?php echo $a7_name ?>" rows="<?php echo $a7_rows ?>" cols="<?php echo $a7_cols ?>"><?php echo htmlentities(isset($$a7_name)?$$a7_name:$a7_default) ?></textarea><?php + } else { +?><span class="<?php echo $a7_class ?>"><?php echo isset($$a7_name)?$$a7_name:$a7_default ?></span><?php } ?><?php unset($a7_name,$a7_rows,$a7_cols,$a7_class,$a7_default) ?></div></div><?php } ?><?php $a4_present='linkelement'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_present) ?><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='EL_LINK';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_list='linkelements';$a7_name='linkelement';$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=false;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php +$a7_readonly=false; +$a7_tmp_list = $$a7_list; +if ($this->isEditable() && !$this->isEditMode()) +{ + echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; +} +else +{ +if ( $a7_addempty!==FALSE ) +{ + if ($a7_addempty===TRUE) + $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; + else + $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_tmp_list; +} +?><select<?php if ($a7_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name; if ($a7_multiple) echo '[]'; ?>" onchange="<?php echo $a7_onchange ?>" title="<?php echo $a7_title ?>" class="<?php echo $a7_class ?>"<?php +if (count($$a7_list)<=1) echo ' disabled="disabled"'; +if ($a7_multiple) echo ' multiple="multiple"'; +if (in_array($a7_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($a7_size).'"'; +?>><?php + if ( isset($$a7_name) && isset($a7_tmp_list[$$a7_name]) ) + $a7_tmp_default = $$a7_name; + elseif ( isset($a7_default) ) + $a7_tmp_default = $a7_default; + else + $a7_tmp_default = ''; + foreach( $a7_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( $a7_lang ) + { + $box_title = lang( $box_value.'_DESC'); + $box_value = lang( $box_value ); + } + else + { + $box_title = ''; + } + echo '<option class="'.$a7_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a7_tmp_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select><?php +if (count($$a7_list)==0) echo '<input type="hidden" name="'.$a7_name.'" value="" />'; +if (count($$a7_list)==1) echo '<input type="hidden" name="'.$a7_name.'" value="'.$box_key.'" />'; +} +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?></div></div><?php } ?><?php $a4_present='name'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_present) ?><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='ELEMENT_NAME';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_list='names';$a7_name='name';$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=false;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php +$a7_readonly=false; +$a7_tmp_list = $$a7_list; +if ($this->isEditable() && !$this->isEditMode()) +{ + echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; +} +else +{ +if ( $a7_addempty!==FALSE ) +{ + if ($a7_addempty===TRUE) + $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; + else + $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_tmp_list; +} +?><select<?php if ($a7_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name; if ($a7_multiple) echo '[]'; ?>" onchange="<?php echo $a7_onchange ?>" title="<?php echo $a7_title ?>" class="<?php echo $a7_class ?>"<?php +if (count($$a7_list)<=1) echo ' disabled="disabled"'; +if ($a7_multiple) echo ' multiple="multiple"'; +if (in_array($a7_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($a7_size).'"'; +?>><?php + if ( isset($$a7_name) && isset($a7_tmp_list[$$a7_name]) ) + $a7_tmp_default = $$a7_name; + elseif ( isset($a7_default) ) + $a7_tmp_default = $a7_default; + else + $a7_tmp_default = ''; + foreach( $a7_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( $a7_lang ) + { + $box_title = lang( $box_value.'_DESC'); + $box_value = lang( $box_value ); + } + else + { + $box_title = ''; + } + echo '<option class="'.$a7_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a7_tmp_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select><?php +if (count($$a7_list)==0) echo '<input type="hidden" name="'.$a7_name.'" value="" />'; +if (count($$a7_list)==1) echo '<input type="hidden" name="'.$a7_name.'" value="'.$box_key.'" />'; +} +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?></div></div><?php } ?><?php $a4_present='folderobjectid'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_present) ?><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='EL_PROP_DEFAULT_FOLDEROBJECT';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_list='folders';$a7_name='folderobjectid';$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=false;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php +$a7_readonly=false; +$a7_tmp_list = $$a7_list; +if ($this->isEditable() && !$this->isEditMode()) +{ + echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; +} +else +{ +if ( $a7_addempty!==FALSE ) +{ + if ($a7_addempty===TRUE) + $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; + else + $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_tmp_list; +} +?><select<?php if ($a7_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name; if ($a7_multiple) echo '[]'; ?>" onchange="<?php echo $a7_onchange ?>" title="<?php echo $a7_title ?>" class="<?php echo $a7_class ?>"<?php +if (count($$a7_list)<=1) echo ' disabled="disabled"'; +if ($a7_multiple) echo ' multiple="multiple"'; +if (in_array($a7_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($a7_size).'"'; +?>><?php + if ( isset($$a7_name) && isset($a7_tmp_list[$$a7_name]) ) + $a7_tmp_default = $$a7_name; + elseif ( isset($a7_default) ) + $a7_tmp_default = $a7_default; + else + $a7_tmp_default = ''; + foreach( $a7_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( $a7_lang ) + { + $box_title = lang( $box_value.'_DESC'); + $box_value = lang( $box_value ); + } + else + { + $box_title = ''; + } + echo '<option class="'.$a7_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a7_tmp_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select><?php +if (count($$a7_list)==0) echo '<input type="hidden" name="'.$a7_name.'" value="" />'; +if (count($$a7_list)==1) echo '<input type="hidden" name="'.$a7_name.'" value="'.$box_key.'" />'; +} +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?></div></div><?php } ?><?php $a4_present='default_objectid'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_present) ?><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='EL_PROP_DEFAULT_OBJECT';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_list='objects';$a7_name='default_objectid';$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=true;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php +$a7_readonly=false; +$a7_tmp_list = $$a7_list; +if ($this->isEditable() && !$this->isEditMode()) +{ + echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; +} +else +{ +if ( $a7_addempty!==FALSE ) +{ + if ($a7_addempty===TRUE) + $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; + else + $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_tmp_list; +} +?><select<?php if ($a7_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name; if ($a7_multiple) echo '[]'; ?>" onchange="<?php echo $a7_onchange ?>" title="<?php echo $a7_title ?>" class="<?php echo $a7_class ?>"<?php +if (count($$a7_list)<=1) echo ' disabled="disabled"'; +if ($a7_multiple) echo ' multiple="multiple"'; +if (in_array($a7_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($a7_size).'"'; +?>><?php + if ( isset($$a7_name) && isset($a7_tmp_list[$$a7_name]) ) + $a7_tmp_default = $$a7_name; + elseif ( isset($a7_default) ) + $a7_tmp_default = $a7_default; + else + $a7_tmp_default = ''; + foreach( $a7_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( $a7_lang ) + { + $box_title = lang( $box_value.'_DESC'); + $box_value = lang( $box_value ); + } + else + { + $box_title = ''; + } + echo '<option class="'.$a7_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a7_tmp_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select><?php +if (count($$a7_list)==0) echo '<input type="hidden" name="'.$a7_name.'" value="" />'; +if (count($$a7_list)==1) echo '<input type="hidden" name="'.$a7_name.'" value="'.$box_key.'" />'; +} +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?></div></div><?php } ?><?php $a4_present='code'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_present) ?><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='EL_PROP_code';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_name='code';$a7_rows='35';$a7_cols='40';$a7_class='inputarea';$a7_default=''; ?><?php if ($this->isEditMode()) { +?><textarea class="<?php echo $a7_class ?>" name="<?php echo $a7_name ?>" rows="<?php echo $a7_rows ?>" cols="<?php echo $a7_cols ?>"><?php echo htmlentities(isset($$a7_name)?$$a7_name:$a7_default) ?></textarea><?php + } else { +?><span class="<?php echo $a7_class ?>"><?php echo isset($$a7_name)?$$a7_name:$a7_default ?></span><?php } ?><?php unset($a7_name,$a7_rows,$a7_cols,$a7_class,$a7_default) ?></div></div><?php } ?></fieldset></form> diff --git a/themes/default/pages/html/element/properties.tpl.php b/themes/default/pages/html/element/properties.tpl.php @@ -1,126 +1,82 @@ -<?php $a1_class='main'; ?><?php - if (!defined('OR_VERSION')) die('Forbidden'); - 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($a1_title)?langHtml($a1_title).' - ':(isset($windowTitle)?langHtml($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" > -<?php if ( isset($refresh_url) ) { ?> - <meta http-equiv="refresh" content="<?php echo isset($refresh_timeout)?$refresh_timeout:0 ?>; URL=<?php echo $refresh_url; if (ini_get('session.use_trans_sid')) echo '&'.session_name().'='.session_id(); ?>"> -<?php } ?> - <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 $meta['title'] ?>" ><?php - } -?><?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="main" <?php if (@$conf['interface']['application_mode']) { ?> style="padding:0px;margin:0px;"<?php } ?> > -<?php /* Debug-Information */ if ($showDuration) { echo "<!-- Output Variables are:\n";echo str_replace('-->','-- >',print_r($this->templateVars,true));echo "\n-->";} ?><?php unset($a1_class) ?><?php $a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php - $a2_action = $actionName; - $a2_subaction = $targetSubActionName; - $a2_id = $this->getRequestId(); +<?php $a3_name='';$a3_target='_self';$a3_method='post';$a3_enctype='application/x-www-form-urlencoded';$a3_type=''; ?><?php + $a3_action = $actionName; + $a3_subaction = $targetSubActionName; + $a3_id = $this->getRequestId(); if ($this->isEditable()) { if ($this->isEditMode()) { - $a2_method = 'POST'; + $a3_method = 'POST'; } else { - $a2_method = 'GET'; - $a2_subaction = $subActionName; + $a3_method = 'GET'; + $a3_subaction = $subActionName; } } -?><form name="<?php echo $a2_name ?>" - target="<?php echo $a2_target ?>" - action="<?php echo Html::url( $a2_action,$a2_subaction,$a2_id ) ?>" - method="<?php echo $a2_method ?>" - enctype="<?php echo $a2_enctype ?>" style="margin:0px;padding:0px;"> + switch( $a3_type ) + { + case 'upload': + $a3_tmp_submitFunction = ''; + break; + default: + $a3_tmp_submitFunction = 'formSubmit( $(this) ); return false;'; + } +?><form name="<?php echo $a3_name ?>" + target="<?php echo $a3_target ?>" + action="<?php echo Html::url( $a3_action,$a3_subaction,$a3_id ) ?>" + method="<?php echo $a3_method ?>" + enctype="<?php echo $a3_enctype ?>" style="margin:0px;padding:0px;" + class="<?php echo $a3_action ?>" + onSubmit="<?php echo $a3_tmp_submitFunction ?>"><input type="submit" class="invisible" /> <?php if ($this->isEditable() && !$this->isEditMode()) { ?> <input type="hidden" name="mode" value="edit" /> <?php } ?> <input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $a2_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $a2_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a2_id ?>" /><?php +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $this->actionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $this->subActionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $this->getRequestId() ?>" /><?php if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype) ?><?php $a3_name='GLOBAL_PREFS';$a3_widths='30%,70%';$a3_width='93%';$a3_rowclasses='odd,even';$a3_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$actionName; - $coldumn_widths = explode(',',$a3_widths); - $row_classes = explode(',',$a3_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a3_columnclasses); - $row_idx = 0; - $column_idx = 0; - 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="'.$a3_width.'">'; - } - if (!@$conf['interface']['application_mode'] ) - { - echo '<tr class="title"><td>'; - echo '<img src="'.$image_dir.'icon_'.$icon.IMG_ICON_EXT.'" align="left" border="0">'; - if ($this->isEditable()) { ?> +?><?php unset($a3_name,$a3_target,$a3_method,$a3_enctype,$a3_type) ?><?php $a4_name='GLOBAL_PREFS';$a4_widths='30%,70%';$a4_width='93%';$a4_rowclasses='odd,even';$a4_columnclasses='1,2,3'; ?><?php if (false) { ?> +<div class="window"> +<div class="title"> + <?php $icon=$actionName; ?> + <img src="<?php echo $image_dir.'icon_'.$icon.IMG_ICON_EXT ?>" align="left" /> + <?php if ($this->isEditable()) { ?> <?php if ($this->isEditMode()) { ?><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 } elseif (readonly()) { ?><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /> <?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($actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; - if ( !isset($path) || is_array($path) ) + ?><?php } ?> + <span class="path"><?php echo langHtml($actionName) ?></span>&nbsp;<strong>&rarr;</strong>&nbsp; + <?php + 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>'; + extract($pathElement); ?> + <a javascript:void(0);" onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $url ?>'); return false; " title="<?php echo $title ?>" class="path"><?php echo (!empty($key)?langHtml($key):$name) ?></a> + &nbsp;&rarr;&nbsp; + <?php } ?> + <span class="title"><?php echo langHtml(@$windowTitle) ?></span> + <?php if ( isset($notice_status)) { ?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?php } ?> - </td> - <?php - } - ?> -<?php ?> <!--<td class="menu" style="align:right;"> + <?php ?> <?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 class="menu"><td> - <table class="menu"><tr> - <?php if ( !isset($windowMenu) || !is_array($windowMenu) ) - $windowMenu = array(); +</div> +<ul class="menu"> +<?php + if ( !isset($windowMenu) || !is_array($windowMenu) ) $windowMenu = array(); foreach( $windowMenu as $menu ) { $tmp_text = langHtml($menu['text']); @@ -128,121 +84,114 @@ $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); + $liClass = (isset($menu['url'])?'':'no').'action'.($this->subActionName==$menu['subaction']?' active':''); + $icon_url = $image_dir.'icon/'.$menu['subaction'].'.png'; + ?><li class="<?php echo $liClass?>"><?php if ( isset($menu['url']) ) { - ?><td class="action"><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></td><?php + $link_url = Html::url($actionName,$menu['subaction'],$this->getRequestId() ); + ?><a href="javascript:void(0);" onclick="javascript:loadSubaction(this,'<?php echo $actionName ?>','<?php echo $menu['subaction'] ?>','<?php echo $this->getRequestId() ?>'); return false; " accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>"><img src="<?php echo $icon_url ?>" /><?php echo $tmp_text ?></a><?php } else { - ?><td class="noaction"><?php echo $tmp_text ?></td><?php + ?><span><img src="<?php echo $icon_url ?>" /><?php echo $tmp_text ?></span><?php } } - if (@$conf['help']['enabled'] ) + ?></li><?php + if ( /* Deaktiviert */ false && @$conf['help']['enabled'] ) { - ?><td><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></td><?php + ?><a class="help" href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>"><img src="<?php echo $image_dir.'icon/help.png' ?>" /><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php } - ?> - </tr></table></td> - </tr> -<?php if (isset($notices) && count($notices)>0 ) + ?><?php + ?> +</ul> +<?php global $image_dir; + if (isset($notices) && count($notices)>0 ) { ?> - <tr> - <td align="center" class="notice"> + <dl class="notice"> <?php foreach( $notices as $notice_idx=>$notice ) { ?> - <br><table class="notice"> <?php if ($notice['name']!='') { ?> - <tr> - <th colspan="2"><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?> - </th> - </tr> + <dt><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?></dt> <?php } ?> - <tr class="<?php echo $notice['status'] ?>"> + <dd class="<?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> + </dd> <?php } ?> - </td> - </tr> - <tr> - <td colspan="2"><fieldset></fieldset></td> - </tr> -<?php } ?> - <tr> - <td class="window"> - <table cellspacing="0" width="100%" cellpadding="4"> -<?php unset($a3_name,$a3_widths,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $a4_present='subtype'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) + </dl> +<?php } ?> +<div class="content"><div class="filler"> +<?php } ?><?php unset($a4_name,$a4_widths,$a4_width,$a4_rowclasses,$a4_columnclasses) ?><?php $a5_present='subtype'; ?><?php + $a5_tmp_exec = isset($$a5_present); + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a4_present) ?><?php - $row_idx++; +<?php unset($a5_present) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_text='ELEMENT_SUBTYPE';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a7_header) ?><?php $a8_class='text';$a8_text='ELEMENT_SUBTYPE';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></td><?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_present='subtypes'; ?><?php - $a7_tmp_exec = isset($$a7_present); - $a7_tmp_last_exec = $a7_tmp_exec; - if ( $a7_tmp_exec ) +><?php unset($a7_header) ?><?php $a8_present='subtypes'; ?><?php + $a8_tmp_exec = isset($$a8_present); + $a8_tmp_last_exec = $a8_tmp_exec; + if ( $a8_tmp_exec ) { ?> -<?php unset($a7_present) ?><?php $a8_list='subtypes';$a8_name='subtype';$a8_onchange='';$a8_title='';$a8_class='';$a8_addempty=true;$a8_multiple=false;$a8_size='1';$a8_lang=false; ?><?php -$a8_readonly=false; -$a8_tmp_list = $$a8_list; +<?php unset($a8_present) ?><?php $a9_list='subtypes';$a9_name='subtype';$a9_onchange='';$a9_title='';$a9_class='';$a9_addempty=true;$a9_multiple=false;$a9_size='1';$a9_lang=false; ?><?php +$a9_readonly=false; +$a9_tmp_list = $$a9_list; if ($this->isEditable() && !$this->isEditMode()) { - echo empty($$a8_name)?'- '.lang('EMPTY').' -':$a8_tmp_list[$$a8_name]; + echo empty($$a9_name)?'- '.lang('EMPTY').' -':$a9_tmp_list[$$a9_name]; } else { -if ( $a8_addempty!==FALSE ) +if ( $a9_addempty!==FALSE ) { - if ($a8_addempty===TRUE) - $a8_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a8_tmp_list; + if ($a9_addempty===TRUE) + $a9_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a9_tmp_list; else - $a8_tmp_list = array(''=>'- '.lang($a8_addempty).' -')+$a8_tmp_list; + $a9_tmp_list = array(''=>'- '.lang($a9_addempty).' -')+$a9_tmp_list; } -?><select<?php if ($a8_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a8_name ?>" name="<?php echo $a8_name; if ($a8_multiple) echo '[]'; ?>" onchange="<?php echo $a8_onchange ?>" title="<?php echo $a8_title ?>" class="<?php echo $a8_class ?>"<?php -if (count($$a8_list)<=1) echo ' disabled="disabled"'; -if ($a8_multiple) echo ' multiple="multiple"'; -if (in_array($a8_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; -echo ' size="'.intval($a8_size).'"'; +?><select<?php if ($a9_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a9_name ?>" name="<?php echo $a9_name; if ($a9_multiple) echo '[]'; ?>" onchange="<?php echo $a9_onchange ?>" title="<?php echo $a9_title ?>" class="<?php echo $a9_class ?>"<?php +if (count($$a9_list)<=1) echo ' disabled="disabled"'; +if ($a9_multiple) echo ' multiple="multiple"'; +if (in_array($a9_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($a9_size).'"'; ?>><?php - if ( isset($$a8_name) && isset($a8_tmp_list[$$a8_name]) ) - $a8_tmp_default = $$a8_name; - elseif ( isset($a8_default) ) - $a8_tmp_default = $a8_default; + if ( isset($$a9_name) && isset($a9_tmp_list[$$a9_name]) ) + $a9_tmp_default = $$a9_name; + elseif ( isset($a9_default) ) + $a9_tmp_default = $a9_default; else - $a8_tmp_default = ''; - foreach( $a8_tmp_list as $box_key=>$box_value ) + $a9_tmp_default = ''; + foreach( $a9_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -250,7 +199,7 @@ echo ' size="'.intval($a8_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a8_lang ) + elseif( $a9_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -259,318 +208,312 @@ echo ' size="'.intval($a8_size).'"'; { $box_title = ''; } - echo '<option class="'.$a8_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ((string)$box_key==$a8_tmp_default) + echo '<option class="'.$a9_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a9_tmp_default) echo ' selected="selected"'; echo '>'.$box_value.'</option>'; } ?></select><?php -if (count($$a8_list)==0) echo '<input type="hidden" name="'.$a8_name.'" value="" />'; -if (count($$a8_list)==1) echo '<input type="hidden" name="'.$a8_name.'" value="'.$box_key.'" />'; +if (count($$a9_list)==0) echo '<input type="hidden" name="'.$a9_name.'" value="" />'; +if (count($$a9_list)==1) echo '<input type="hidden" name="'.$a9_name.'" value="'.$box_key.'" />'; } -?><?php unset($a8_list,$a8_name,$a8_onchange,$a8_title,$a8_class,$a8_addempty,$a8_multiple,$a8_size,$a8_lang) ?><?php } ?><?php $a7_not=true;$a7_present='subtypes'; ?><?php - $a7_tmp_exec = isset($$a7_present); - $a7_tmp_exec = !$a7_tmp_exec; - $a7_tmp_last_exec = $a7_tmp_exec; - if ( $a7_tmp_exec ) +?><?php unset($a9_list,$a9_name,$a9_onchange,$a9_title,$a9_class,$a9_addempty,$a9_multiple,$a9_size,$a9_lang) ?><?php } ?><?php $a8_not=true;$a8_present='subtypes'; ?><?php + $a8_tmp_exec = isset($$a8_present); + $a8_tmp_exec = !$a8_tmp_exec; + $a8_tmp_last_exec = $a8_tmp_exec; + if ( $a8_tmp_exec ) { ?> -<?php unset($a7_not,$a7_present) ?><?php $a8_class='text';$a8_default='';$a8_type='text';$a8_name='subtype';$a8_size='40';$a8_maxlength='256';$a8_onchange='';$a8_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; - if ($a8_readonly && empty($$a8_name)) $$a8_name = '- '.lang('EMPTY').' -'; - if(!isset($a8_default)) $a8_default=''; - $tmp_value = Text::encodeHtml(isset($$a8_name)?$$a8_name:$a8_default); -?><?php if (!$a8_readonly || $a8_type=='hidden') { -?><input<?php if ($a8_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a8_name ?><?php if ($a8_readonly) echo '_disabled' ?>" name="<?php echo $a8_name ?><?php if ($a8_readonly) echo '_disabled' ?>" type="<?php echo $a8_type ?>" size="<?php echo $a8_size ?>" maxlength="<?php echo $a8_maxlength ?>" class="<?php echo $a8_class ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a8_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php -if ($a8_readonly) { -?><input type="hidden" id="id_<?php echo $a8_name ?>" name="<?php echo $a8_name ?>" value="<?php echo $tmp_value ?>" /><?php - } } else { ?><span class="<?php echo $a8_class ?>"><?php echo $tmp_value ?></span><?php } ?><?php unset($a8_class,$a8_default,$a8_type,$a8_name,$a8_size,$a8_maxlength,$a8_onchange,$a8_readonly) ?><?php } ?></td></tr><?php } ?><?php $a4_present='with_icon'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +<?php unset($a8_not,$a8_present) ?><?php $a9_class='text';$a9_default='';$a9_type='text';$a9_name='subtype';$a9_size='';$a9_maxlength='256';$a9_onchange='';$a9_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a9_readonly=true; + if ($a9_readonly && empty($$a9_name)) $$a9_name = '- '.lang('EMPTY').' -'; + if(!isset($a9_default)) $a9_default=''; + $tmp_value = Text::encodeHtml(isset($$a9_name)?$$a9_name:$a9_default); +?><?php if (!$a9_readonly || $a9_type=='hidden') { +?><input<?php if ($a9_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a9_name ?><?php if ($a9_readonly) echo '_disabled' ?>" name="<?php echo $a9_name ?><?php if ($a9_readonly) echo '_disabled' ?>" type="<?php echo $a9_type ?>" maxlength="<?php echo $a9_maxlength ?>" class="<?php echo str_replace(',',' ',$a9_class) ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a9_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php +if ($a9_readonly) { +?><input type="hidden" id="id_<?php echo $a9_name ?>" name="<?php echo $a9_name ?>" value="<?php echo $tmp_value ?>" /><?php + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a9_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a9_class,$a9_default,$a9_type,$a9_name,$a9_size,$a9_maxlength,$a9_onchange,$a9_readonly) ?><?php } ?></td></tr><?php } ?><?php $a5_present='with_icon'; ?><?php + $a5_tmp_exec = isset($$a5_present); + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a4_present) ?><?php - $row_idx++; +<?php unset($a5_present) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_text='EL_PROP_WITH_ICON';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a7_header) ?><?php $a8_class='text';$a8_text='EL_PROP_WITH_ICON';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></td><?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_default=false;$a7_readonly=false;$a7_name='with_icon'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; - if ( isset($$a7_name) ) - $checked = $$a7_name; +><?php unset($a7_header) ?><?php $a8_default=false;$a8_readonly=false;$a8_name='with_icon'; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; + if ( isset($$a8_name) ) + $checked = $$a8_name; else - $checked = $a7_default; -?><input class="checkbox" type="checkbox" id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name ?>" <?php if ($a7_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?><?php if (in_array($a7_name,$errors)) echo ' style="background-color:red;"' ?> /><?php -if ( $a7_readonly && $checked ) + $checked = $a8_default; +?><input class="checkbox" type="checkbox" id="id_<?php echo $a8_name ?>" name="<?php echo $a8_name ?>" <?php if ($a8_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?><?php if (in_array($a8_name,$errors)) echo ' style="background-color:red;"' ?> /><?php +if ( $a8_readonly && $checked ) { -?><input type="hidden" name="<?php echo $a7_name ?>" value="1" /><?php +?><input type="hidden" name="<?php echo $a8_name ?>" value="1" /><?php } -?><?php unset($a7_name); unset($a7_readonly); unset($a7_default); ?><?php unset($a7_default,$a7_readonly,$a7_name) ?></td></tr><?php } ?><?php $a4_present='all_languages'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?></td></tr><?php } ?><?php $a5_present='all_languages'; ?><?php + $a5_tmp_exec = isset($$a5_present); + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a4_present) ?><?php - $row_idx++; +<?php unset($a5_present) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_text='EL_PROP_ALL_LANGUAGES';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a7_header) ?><?php $a8_class='text';$a8_text='EL_PROP_ALL_LANGUAGES';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></td><?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_default=false;$a7_readonly=false;$a7_name='all_languages'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; - if ( isset($$a7_name) ) - $checked = $$a7_name; +><?php unset($a7_header) ?><?php $a8_default=false;$a8_readonly=false;$a8_name='all_languages'; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; + if ( isset($$a8_name) ) + $checked = $$a8_name; else - $checked = $a7_default; -?><input class="checkbox" type="checkbox" id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name ?>" <?php if ($a7_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?><?php if (in_array($a7_name,$errors)) echo ' style="background-color:red;"' ?> /><?php -if ( $a7_readonly && $checked ) + $checked = $a8_default; +?><input class="checkbox" type="checkbox" id="id_<?php echo $a8_name ?>" name="<?php echo $a8_name ?>" <?php if ($a8_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?><?php if (in_array($a8_name,$errors)) echo ' style="background-color:red;"' ?> /><?php +if ( $a8_readonly && $checked ) { -?><input type="hidden" name="<?php echo $a7_name ?>" value="1" /><?php +?><input type="hidden" name="<?php echo $a8_name ?>" value="1" /><?php } -?><?php unset($a7_name); unset($a7_readonly); unset($a7_default); ?><?php unset($a7_default,$a7_readonly,$a7_name) ?></td></tr><?php } ?><?php $a4_present='writable'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?></td></tr><?php } ?><?php $a5_present='writable'; ?><?php + $a5_tmp_exec = isset($$a5_present); + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a4_present) ?><?php - $row_idx++; +<?php unset($a5_present) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_text='EL_PROP_writable';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a7_header) ?><?php $a8_class='text';$a8_text='EL_PROP_writable';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></td><?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_default=false;$a7_readonly=false;$a7_name='writable'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; - if ( isset($$a7_name) ) - $checked = $$a7_name; +><?php unset($a7_header) ?><?php $a8_default=false;$a8_readonly=false;$a8_name='writable'; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; + if ( isset($$a8_name) ) + $checked = $$a8_name; else - $checked = $a7_default; -?><input class="checkbox" type="checkbox" id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name ?>" <?php if ($a7_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?><?php if (in_array($a7_name,$errors)) echo ' style="background-color:red;"' ?> /><?php -if ( $a7_readonly && $checked ) + $checked = $a8_default; +?><input class="checkbox" type="checkbox" id="id_<?php echo $a8_name ?>" name="<?php echo $a8_name ?>" <?php if ($a8_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?><?php if (in_array($a8_name,$errors)) echo ' style="background-color:red;"' ?> /><?php +if ( $a8_readonly && $checked ) { -?><input type="hidden" name="<?php echo $a7_name ?>" value="1" /><?php +?><input type="hidden" name="<?php echo $a8_name ?>" value="1" /><?php } -?><?php unset($a7_name); unset($a7_readonly); unset($a7_default); ?><?php unset($a7_default,$a7_readonly,$a7_name) ?></td></tr><?php } ?><?php $a4_present='width'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?></td></tr><?php } ?><?php $a5_present='width'; ?><?php + $a5_tmp_exec = isset($$a5_present); + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a4_present) ?><?php - $row_idx++; +<?php unset($a5_present) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_text='width';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a7_header) ?><?php $a8_class='text';$a8_text='width';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></td><?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='width';$a7_size='10';$a7_maxlength='256';$a7_onchange='';$a7_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; - if ($a7_readonly && empty($$a7_name)) $$a7_name = '- '.lang('EMPTY').' -'; - if(!isset($a7_default)) $a7_default=''; - $tmp_value = Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default); -?><?php if (!$a7_readonly || $a7_type=='hidden') { -?><input<?php if ($a7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" name="<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" type="<?php echo $a7_type ?>" size="<?php echo $a7_size ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo $a7_class ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a7_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php -if ($a7_readonly) { -?><input type="hidden" id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name ?>" value="<?php echo $tmp_value ?>" /><?php - } } else { ?><span class="<?php echo $a7_class ?>"><?php echo $tmp_value ?></span><?php } ?><?php unset($a7_class,$a7_default,$a7_type,$a7_name,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly) ?></td></tr><?php } ?><?php $a4_present='height'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +><?php unset($a7_header) ?><?php $a8_class='text';$a8_default='';$a8_type='text';$a8_name='width';$a8_size='10';$a8_maxlength='256';$a8_onchange='';$a8_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; + if ($a8_readonly && empty($$a8_name)) $$a8_name = '- '.lang('EMPTY').' -'; + if(!isset($a8_default)) $a8_default=''; + $tmp_value = Text::encodeHtml(isset($$a8_name)?$$a8_name:$a8_default); +?><?php if (!$a8_readonly || $a8_type=='hidden') { +?><input<?php if ($a8_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a8_name ?><?php if ($a8_readonly) echo '_disabled' ?>" name="<?php echo $a8_name ?><?php if ($a8_readonly) echo '_disabled' ?>" type="<?php echo $a8_type ?>" maxlength="<?php echo $a8_maxlength ?>" class="<?php echo str_replace(',',' ',$a8_class) ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a8_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php +if ($a8_readonly) { +?><input type="hidden" id="id_<?php echo $a8_name ?>" name="<?php echo $a8_name ?>" value="<?php echo $tmp_value ?>" /><?php + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a8_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a8_class,$a8_default,$a8_type,$a8_name,$a8_size,$a8_maxlength,$a8_onchange,$a8_readonly) ?></td></tr><?php } ?><?php $a5_present='height'; ?><?php + $a5_tmp_exec = isset($$a5_present); + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a4_present) ?><?php - $row_idx++; +<?php unset($a5_present) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_text='height';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a7_header) ?><?php $a8_class='text';$a8_text='height';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></td><?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='height';$a7_size='10';$a7_maxlength='256';$a7_onchange='';$a7_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; - if ($a7_readonly && empty($$a7_name)) $$a7_name = '- '.lang('EMPTY').' -'; - if(!isset($a7_default)) $a7_default=''; - $tmp_value = Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default); -?><?php if (!$a7_readonly || $a7_type=='hidden') { -?><input<?php if ($a7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" name="<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" type="<?php echo $a7_type ?>" size="<?php echo $a7_size ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo $a7_class ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a7_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php -if ($a7_readonly) { -?><input type="hidden" id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name ?>" value="<?php echo $tmp_value ?>" /><?php - } } else { ?><span class="<?php echo $a7_class ?>"><?php echo $tmp_value ?></span><?php } ?><?php unset($a7_class,$a7_default,$a7_type,$a7_name,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly) ?></td></tr><?php } ?><?php $a4_present='dateformat'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +><?php unset($a7_header) ?><?php $a8_class='text';$a8_default='';$a8_type='text';$a8_name='height';$a8_size='10';$a8_maxlength='256';$a8_onchange='';$a8_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; + if ($a8_readonly && empty($$a8_name)) $$a8_name = '- '.lang('EMPTY').' -'; + if(!isset($a8_default)) $a8_default=''; + $tmp_value = Text::encodeHtml(isset($$a8_name)?$$a8_name:$a8_default); +?><?php if (!$a8_readonly || $a8_type=='hidden') { +?><input<?php if ($a8_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a8_name ?><?php if ($a8_readonly) echo '_disabled' ?>" name="<?php echo $a8_name ?><?php if ($a8_readonly) echo '_disabled' ?>" type="<?php echo $a8_type ?>" maxlength="<?php echo $a8_maxlength ?>" class="<?php echo str_replace(',',' ',$a8_class) ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a8_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php +if ($a8_readonly) { +?><input type="hidden" id="id_<?php echo $a8_name ?>" name="<?php echo $a8_name ?>" value="<?php echo $tmp_value ?>" /><?php + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a8_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a8_class,$a8_default,$a8_type,$a8_name,$a8_size,$a8_maxlength,$a8_onchange,$a8_readonly) ?></td></tr><?php } ?><?php $a5_present='dateformat'; ?><?php + $a5_tmp_exec = isset($$a5_present); + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a4_present) ?><?php - $row_idx++; +<?php unset($a5_present) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_text='EL_PROP_DATEFORMAT';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a7_header) ?><?php $a8_class='text';$a8_text='EL_PROP_DATEFORMAT';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></td><?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_list='dateformats';$a7_name='dateformat';$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=false;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php -$a7_readonly=false; -$a7_tmp_list = $$a7_list; +><?php unset($a7_header) ?><?php $a8_list='dateformats';$a8_name='dateformat';$a8_onchange='';$a8_title='';$a8_class='';$a8_addempty=false;$a8_multiple=false;$a8_size='1';$a8_lang=false; ?><?php +$a8_readonly=false; +$a8_tmp_list = $$a8_list; if ($this->isEditable() && !$this->isEditMode()) { - echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; + echo empty($$a8_name)?'- '.lang('EMPTY').' -':$a8_tmp_list[$$a8_name]; } else { -if ( $a7_addempty!==FALSE ) +if ( $a8_addempty!==FALSE ) { - if ($a7_addempty===TRUE) - $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; + if ($a8_addempty===TRUE) + $a8_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a8_tmp_list; else - $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_tmp_list; + $a8_tmp_list = array(''=>'- '.lang($a8_addempty).' -')+$a8_tmp_list; } -?><select<?php if ($a7_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name; if ($a7_multiple) echo '[]'; ?>" onchange="<?php echo $a7_onchange ?>" title="<?php echo $a7_title ?>" class="<?php echo $a7_class ?>"<?php -if (count($$a7_list)<=1) echo ' disabled="disabled"'; -if ($a7_multiple) echo ' multiple="multiple"'; -if (in_array($a7_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; -echo ' size="'.intval($a7_size).'"'; +?><select<?php if ($a8_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a8_name ?>" name="<?php echo $a8_name; if ($a8_multiple) echo '[]'; ?>" onchange="<?php echo $a8_onchange ?>" title="<?php echo $a8_title ?>" class="<?php echo $a8_class ?>"<?php +if (count($$a8_list)<=1) echo ' disabled="disabled"'; +if ($a8_multiple) echo ' multiple="multiple"'; +if (in_array($a8_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($a8_size).'"'; ?>><?php - if ( isset($$a7_name) && isset($a7_tmp_list[$$a7_name]) ) - $a7_tmp_default = $$a7_name; - elseif ( isset($a7_default) ) - $a7_tmp_default = $a7_default; + if ( isset($$a8_name) && isset($a8_tmp_list[$$a8_name]) ) + $a8_tmp_default = $$a8_name; + elseif ( isset($a8_default) ) + $a8_tmp_default = $a8_default; else - $a7_tmp_default = ''; - foreach( $a7_tmp_list as $box_key=>$box_value ) + $a8_tmp_default = ''; + foreach( $a8_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -578,7 +521,7 @@ echo ' size="'.intval($a7_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a7_lang ) + elseif( $a8_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -587,500 +530,490 @@ echo ' size="'.intval($a7_size).'"'; { $box_title = ''; } - echo '<option class="'.$a7_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ((string)$box_key==$a7_tmp_default) + echo '<option class="'.$a8_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a8_tmp_default) echo ' selected="selected"'; echo '>'.$box_value.'</option>'; } ?></select><?php -if (count($$a7_list)==0) echo '<input type="hidden" name="'.$a7_name.'" value="" />'; -if (count($$a7_list)==1) echo '<input type="hidden" name="'.$a7_name.'" value="'.$box_key.'" />'; +if (count($$a8_list)==0) echo '<input type="hidden" name="'.$a8_name.'" value="" />'; +if (count($$a8_list)==1) echo '<input type="hidden" name="'.$a8_name.'" value="'.$box_key.'" />'; } -?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?></td></tr><?php } ?><?php $a4_present='format'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +?><?php unset($a8_list,$a8_name,$a8_onchange,$a8_title,$a8_class,$a8_addempty,$a8_multiple,$a8_size,$a8_lang) ?></td></tr><?php } ?><?php $a5_present='format'; ?><?php + $a5_tmp_exec = isset($$a5_present); + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a4_present) ?><?php - $row_idx++; +<?php unset($a5_present) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_text='EL_PROP_FORMAT';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a7_header) ?><?php $a8_class='text';$a8_text='EL_PROP_FORMAT';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></td><?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_list='formatlist';$a7_name='format';$a7_onchange='';$a7_title='';$a7_class=''; ?><?php $a7_tmp_list = $$a7_list; - if ( isset($$a7_name) && isset($a7_tmp_list[$$a7_name]) ) - $a7_tmp_default = $$a7_name; - elseif ( isset($a7_default) ) - $a7_tmp_default = $a7_default; +><?php unset($a7_header) ?><?php $a8_list='formatlist';$a8_name='format';$a8_onchange='';$a8_title='';$a8_class=''; ?><?php $a8_tmp_list = $$a8_list; + if ( isset($$a8_name) && isset($a8_tmp_list[$$a8_name]) ) + $a8_tmp_default = $$a8_name; + elseif ( isset($a8_default) ) + $a8_tmp_default = $a8_default; else - $a7_tmp_default = ''; - foreach( $a7_tmp_list as $box_key=>$box_value ) + $a8_tmp_default = ''; + foreach( $a8_tmp_list as $box_key=>$box_value ) { $box_value = is_array($box_value)?(isset($box_value['lang'])?langHtml($box_value['lang']):$box_value['value']):$box_value; - $id = 'id_'.$a7_name.'_'.$box_key; - echo '<input id="'.$id.'" name="'.$a7_name.'" type="radio" class="'.$a7_class.'" value="'.$box_key.'"'; - if ($box_key==$a7_tmp_default) + $id = 'id_'.$a8_name.'_'.$box_key; + echo '<input id="'.$id.'" name="'.$a8_name.'" type="radio" class="'.$a8_class.'" value="'.$box_key.'"'; + if ($box_key==$a8_tmp_default) echo ' checked="checked"'; - echo '>&nbsp;<label for="'.$id.'">'.$box_value.'</label><br>'; + echo ' />&nbsp;<label for="'.$id.'">'.$box_value.'</label><br />'; } -?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class) ?></td></tr><?php } ?><?php $a4_present='decimals'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +?><?php unset($a8_list,$a8_name,$a8_onchange,$a8_title,$a8_class) ?></td></tr><?php } ?><?php $a5_present='decimals'; ?><?php + $a5_tmp_exec = isset($$a5_present); + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a4_present) ?><?php - $row_idx++; +<?php unset($a5_present) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_text='EL_PROP_DECIMALS';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a7_header) ?><?php $a8_class='text';$a8_text='EL_PROP_DECIMALS';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></td><?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='decimals';$a7_size='10';$a7_maxlength='2';$a7_onchange='';$a7_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; - if ($a7_readonly && empty($$a7_name)) $$a7_name = '- '.lang('EMPTY').' -'; - if(!isset($a7_default)) $a7_default=''; - $tmp_value = Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default); -?><?php if (!$a7_readonly || $a7_type=='hidden') { -?><input<?php if ($a7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" name="<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" type="<?php echo $a7_type ?>" size="<?php echo $a7_size ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo $a7_class ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a7_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php -if ($a7_readonly) { -?><input type="hidden" id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name ?>" value="<?php echo $tmp_value ?>" /><?php - } } else { ?><span class="<?php echo $a7_class ?>"><?php echo $tmp_value ?></span><?php } ?><?php unset($a7_class,$a7_default,$a7_type,$a7_name,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly) ?></td></tr><?php } ?><?php $a4_present='dec_point'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +><?php unset($a7_header) ?><?php $a8_class='text';$a8_default='';$a8_type='text';$a8_name='decimals';$a8_size='10';$a8_maxlength='2';$a8_onchange='';$a8_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; + if ($a8_readonly && empty($$a8_name)) $$a8_name = '- '.lang('EMPTY').' -'; + if(!isset($a8_default)) $a8_default=''; + $tmp_value = Text::encodeHtml(isset($$a8_name)?$$a8_name:$a8_default); +?><?php if (!$a8_readonly || $a8_type=='hidden') { +?><input<?php if ($a8_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a8_name ?><?php if ($a8_readonly) echo '_disabled' ?>" name="<?php echo $a8_name ?><?php if ($a8_readonly) echo '_disabled' ?>" type="<?php echo $a8_type ?>" maxlength="<?php echo $a8_maxlength ?>" class="<?php echo str_replace(',',' ',$a8_class) ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a8_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php +if ($a8_readonly) { +?><input type="hidden" id="id_<?php echo $a8_name ?>" name="<?php echo $a8_name ?>" value="<?php echo $tmp_value ?>" /><?php + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a8_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a8_class,$a8_default,$a8_type,$a8_name,$a8_size,$a8_maxlength,$a8_onchange,$a8_readonly) ?></td></tr><?php } ?><?php $a5_present='dec_point'; ?><?php + $a5_tmp_exec = isset($$a5_present); + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a4_present) ?><?php - $row_idx++; +<?php unset($a5_present) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_text='EL_PROP_DEC_POINT';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a7_header) ?><?php $a8_class='text';$a8_text='EL_PROP_DEC_POINT';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></td><?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='dec_point';$a7_size='10';$a7_maxlength='5';$a7_onchange='';$a7_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; - if ($a7_readonly && empty($$a7_name)) $$a7_name = '- '.lang('EMPTY').' -'; - if(!isset($a7_default)) $a7_default=''; - $tmp_value = Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default); -?><?php if (!$a7_readonly || $a7_type=='hidden') { -?><input<?php if ($a7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" name="<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" type="<?php echo $a7_type ?>" size="<?php echo $a7_size ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo $a7_class ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a7_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php -if ($a7_readonly) { -?><input type="hidden" id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name ?>" value="<?php echo $tmp_value ?>" /><?php - } } else { ?><span class="<?php echo $a7_class ?>"><?php echo $tmp_value ?></span><?php } ?><?php unset($a7_class,$a7_default,$a7_type,$a7_name,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly) ?></td></tr><?php } ?><?php $a4_present='thousand_sep'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +><?php unset($a7_header) ?><?php $a8_class='text';$a8_default='';$a8_type='text';$a8_name='dec_point';$a8_size='10';$a8_maxlength='5';$a8_onchange='';$a8_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; + if ($a8_readonly && empty($$a8_name)) $$a8_name = '- '.lang('EMPTY').' -'; + if(!isset($a8_default)) $a8_default=''; + $tmp_value = Text::encodeHtml(isset($$a8_name)?$$a8_name:$a8_default); +?><?php if (!$a8_readonly || $a8_type=='hidden') { +?><input<?php if ($a8_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a8_name ?><?php if ($a8_readonly) echo '_disabled' ?>" name="<?php echo $a8_name ?><?php if ($a8_readonly) echo '_disabled' ?>" type="<?php echo $a8_type ?>" maxlength="<?php echo $a8_maxlength ?>" class="<?php echo str_replace(',',' ',$a8_class) ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a8_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php +if ($a8_readonly) { +?><input type="hidden" id="id_<?php echo $a8_name ?>" name="<?php echo $a8_name ?>" value="<?php echo $tmp_value ?>" /><?php + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a8_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a8_class,$a8_default,$a8_type,$a8_name,$a8_size,$a8_maxlength,$a8_onchange,$a8_readonly) ?></td></tr><?php } ?><?php $a5_present='thousand_sep'; ?><?php + $a5_tmp_exec = isset($$a5_present); + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a4_present) ?><?php - $row_idx++; +<?php unset($a5_present) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_text='EL_PROP_thousand_sep';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a7_header) ?><?php $a8_class='text';$a8_text='EL_PROP_thousand_sep';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></td><?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='thousand_sep';$a7_size='10';$a7_maxlength='1';$a7_onchange='';$a7_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; - if ($a7_readonly && empty($$a7_name)) $$a7_name = '- '.lang('EMPTY').' -'; - if(!isset($a7_default)) $a7_default=''; - $tmp_value = Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default); -?><?php if (!$a7_readonly || $a7_type=='hidden') { -?><input<?php if ($a7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" name="<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" type="<?php echo $a7_type ?>" size="<?php echo $a7_size ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo $a7_class ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a7_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php -if ($a7_readonly) { -?><input type="hidden" id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name ?>" value="<?php echo $tmp_value ?>" /><?php - } } else { ?><span class="<?php echo $a7_class ?>"><?php echo $tmp_value ?></span><?php } ?><?php unset($a7_class,$a7_default,$a7_type,$a7_name,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly) ?></td></tr><?php } ?><?php $a4_present='default_text'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +><?php unset($a7_header) ?><?php $a8_class='text';$a8_default='';$a8_type='text';$a8_name='thousand_sep';$a8_size='10';$a8_maxlength='1';$a8_onchange='';$a8_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; + if ($a8_readonly && empty($$a8_name)) $$a8_name = '- '.lang('EMPTY').' -'; + if(!isset($a8_default)) $a8_default=''; + $tmp_value = Text::encodeHtml(isset($$a8_name)?$$a8_name:$a8_default); +?><?php if (!$a8_readonly || $a8_type=='hidden') { +?><input<?php if ($a8_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a8_name ?><?php if ($a8_readonly) echo '_disabled' ?>" name="<?php echo $a8_name ?><?php if ($a8_readonly) echo '_disabled' ?>" type="<?php echo $a8_type ?>" maxlength="<?php echo $a8_maxlength ?>" class="<?php echo str_replace(',',' ',$a8_class) ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a8_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php +if ($a8_readonly) { +?><input type="hidden" id="id_<?php echo $a8_name ?>" name="<?php echo $a8_name ?>" value="<?php echo $tmp_value ?>" /><?php + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a8_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a8_class,$a8_default,$a8_type,$a8_name,$a8_size,$a8_maxlength,$a8_onchange,$a8_readonly) ?></td></tr><?php } ?><?php $a5_present='default_text'; ?><?php + $a5_tmp_exec = isset($$a5_present); + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a4_present) ?><?php - $row_idx++; +<?php unset($a5_present) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_text='EL_PROP_default_text';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a7_header) ?><?php $a8_class='text';$a8_text='EL_PROP_default_text';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></td><?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='default_text';$a7_size='40';$a7_maxlength='255';$a7_onchange='';$a7_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; - if ($a7_readonly && empty($$a7_name)) $$a7_name = '- '.lang('EMPTY').' -'; - if(!isset($a7_default)) $a7_default=''; - $tmp_value = Text::encodeHtml(isset($$a7_name)?$$a7_name:$a7_default); -?><?php if (!$a7_readonly || $a7_type=='hidden') { -?><input<?php if ($a7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" name="<?php echo $a7_name ?><?php if ($a7_readonly) echo '_disabled' ?>" type="<?php echo $a7_type ?>" size="<?php echo $a7_size ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo $a7_class ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a7_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php -if ($a7_readonly) { -?><input type="hidden" id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name ?>" value="<?php echo $tmp_value ?>" /><?php - } } else { ?><span class="<?php echo $a7_class ?>"><?php echo $tmp_value ?></span><?php } ?><?php unset($a7_class,$a7_default,$a7_type,$a7_name,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly) ?></td></tr><?php } ?><?php $a4_present='default_longtext'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +><?php unset($a7_header) ?><?php $a8_class='text';$a8_default='';$a8_type='text';$a8_name='default_text';$a8_size='40';$a8_maxlength='255';$a8_onchange='';$a8_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; + if ($a8_readonly && empty($$a8_name)) $$a8_name = '- '.lang('EMPTY').' -'; + if(!isset($a8_default)) $a8_default=''; + $tmp_value = Text::encodeHtml(isset($$a8_name)?$$a8_name:$a8_default); +?><?php if (!$a8_readonly || $a8_type=='hidden') { +?><input<?php if ($a8_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a8_name ?><?php if ($a8_readonly) echo '_disabled' ?>" name="<?php echo $a8_name ?><?php if ($a8_readonly) echo '_disabled' ?>" type="<?php echo $a8_type ?>" maxlength="<?php echo $a8_maxlength ?>" class="<?php echo str_replace(',',' ',$a8_class) ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a8_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php +if ($a8_readonly) { +?><input type="hidden" id="id_<?php echo $a8_name ?>" name="<?php echo $a8_name ?>" value="<?php echo $tmp_value ?>" /><?php + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a8_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a8_class,$a8_default,$a8_type,$a8_name,$a8_size,$a8_maxlength,$a8_onchange,$a8_readonly) ?></td></tr><?php } ?><?php $a5_present='default_longtext'; ?><?php + $a5_tmp_exec = isset($$a5_present); + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a4_present) ?><?php - $row_idx++; +<?php unset($a5_present) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_text='EL_PROP_default_longtext';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a7_header) ?><?php $a8_class='text';$a8_text='EL_PROP_default_longtext';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></td><?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_name='default_longtext';$a7_rows='10';$a7_cols='40';$a7_class='inputarea';$a7_default=''; ?><?php if ($this->isEditMode()) { -?><textarea class="<?php echo $a7_class ?>" name="<?php echo $a7_name ?>" rows="<?php echo $a7_rows ?>" cols="<?php echo $a7_cols ?>"><?php echo htmlentities(isset($$a7_name)?$$a7_name:$a7_default) ?></textarea><?php +><?php unset($a7_header) ?><?php $a8_name='default_longtext';$a8_rows='10';$a8_cols='40';$a8_class='inputarea';$a8_default=''; ?><?php if ($this->isEditMode()) { +?><textarea class="<?php echo $a8_class ?>" name="<?php echo $a8_name ?>" rows="<?php echo $a8_rows ?>" cols="<?php echo $a8_cols ?>"><?php echo htmlentities(isset($$a8_name)?$$a8_name:$a8_default) ?></textarea><?php } else { -?><span class="<?php echo $a7_class ?>"><?php echo isset($$a7_name)?$$a7_name:$a7_default ?></span><?php } ?><?php unset($a7_name,$a7_rows,$a7_cols,$a7_class,$a7_default) ?></td></tr><?php } ?><?php $a4_present='parameters'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +?><span class="<?php echo $a8_class ?>"><?php echo isset($$a8_name)?$$a8_name:$a8_default ?></span><?php } ?><?php unset($a8_name,$a8_rows,$a8_cols,$a8_class,$a8_default) ?></td></tr><?php } ?><?php $a5_present='parameters'; ?><?php + $a5_tmp_exec = isset($$a5_present); + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a4_present) ?><?php - $row_idx++; +<?php unset($a5_present) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_text='EL_PROP_DYNAMIC_PARAMETERS';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a7_header) ?><?php $a8_class='text';$a8_text='EL_PROP_DYNAMIC_PARAMETERS';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></td><?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_name='parameters';$a7_rows='15';$a7_cols='40';$a7_class='inputarea';$a7_default=''; ?><?php if ($this->isEditMode()) { -?><textarea class="<?php echo $a7_class ?>" name="<?php echo $a7_name ?>" rows="<?php echo $a7_rows ?>" cols="<?php echo $a7_cols ?>"><?php echo htmlentities(isset($$a7_name)?$$a7_name:$a7_default) ?></textarea><?php +><?php unset($a7_header) ?><?php $a8_name='parameters';$a8_rows='15';$a8_cols='40';$a8_class='inputarea';$a8_default=''; ?><?php if ($this->isEditMode()) { +?><textarea class="<?php echo $a8_class ?>" name="<?php echo $a8_name ?>" rows="<?php echo $a8_rows ?>" cols="<?php echo $a8_cols ?>"><?php echo htmlentities(isset($$a8_name)?$$a8_name:$a8_default) ?></textarea><?php } else { -?><span class="<?php echo $a7_class ?>"><?php echo isset($$a7_name)?$$a7_name:$a7_default ?></span><?php } ?><?php unset($a7_name,$a7_rows,$a7_cols,$a7_class,$a7_default) ?></td></tr><?php - $row_idx++; +?><span class="<?php echo $a8_class ?>"><?php echo isset($$a8_name)?$$a8_name:$a8_default ?></span><?php } ?><?php unset($a8_name,$a8_rows,$a8_cols,$a8_class,$a8_default) ?></td></tr><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -></td><?php $column_idx++; ?><td +><?php unset($a7_header) ?></td><?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_list='dynamic_class_parameters';$a7_extract=false;$a7_key='paramName';$a7_value='defaultValue'; ?><?php - $a7_list_tmp_key = $a7_key; - $a7_list_tmp_value = $a7_value; - $a7_list_extract = $a7_extract; - unset($a7_key); - unset($a7_value); - if ( !isset($$a7_list) || !is_array($$a7_list) ) - $$a7_list = array(); - foreach( $$a7_list as $$a7_list_tmp_key => $$a7_list_tmp_value ) +><?php unset($a7_header) ?><?php $a8_list='dynamic_class_parameters';$a8_extract=false;$a8_key='paramName';$a8_value='defaultValue'; ?><?php + $a8_list_tmp_key = $a8_key; + $a8_list_tmp_value = $a8_value; + $a8_list_extract = $a8_extract; + unset($a8_key); + unset($a8_value); + if ( !isset($$a8_list) || !is_array($$a8_list) ) + $$a8_list = array(); + foreach( $$a8_list as $$a8_list_tmp_key => $$a8_list_tmp_value ) { - if ( $a7_list_extract ) + if ( $a8_list_extract ) { - if ( !is_array($$a7_list_tmp_value) ) + if ( !is_array($$a8_list_tmp_value) ) { - print_r($$a7_list_tmp_value); - die( 'not an array at key: '.$$a7_list_tmp_key ); + print_r($$a8_list_tmp_value); + die( 'not an array at key: '.$$a8_list_tmp_key ); } - extract($$a7_list_tmp_value); + extract($$a8_list_tmp_value); } -?><?php unset($a7_list,$a7_extract,$a7_key,$a7_value) ?><?php $a8_class='text';$a8_var='paramName';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +?><?php unset($a8_list,$a8_extract,$a8_key,$a8_value) ?><?php $a9_class='text';$a9_var='paramName';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php - $langF = $a8_escape?'langHtml':'lang'; - $tmp_text = isset($$a8_var)?$$a8_var:$langF('UNKNOWN'); +?><<?php echo $tmp_tag ?> class="<?php echo $a9_class ?>" title="<?php echo $a9_title ?>"><?php + $langF = $a9_escape?'langHtml':'lang'; + $tmp_text = isset($$a9_var)?$$a9_var:$langF('UNKNOWN'); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_var,$a8_escape,$a8_cut) ?><?php $a8_class='text';$a8_raw='_(';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_var,$a9_escape,$a9_cut) ?><?php $a9_class='text';$a9_raw='_(';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php - $langF = $a8_escape?'langHtml':'lang'; - $tmp_text = str_replace('_','&nbsp;',$a8_raw); +?><<?php echo $tmp_tag ?> class="<?php echo $a9_class ?>" title="<?php echo $a9_title ?>"><?php + $langF = $a9_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a9_raw); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_raw,$a8_escape,$a8_cut) ?><?php $a8_class='text';$a8_text='GLOBAL_DEFAULT';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_raw,$a9_escape,$a9_cut) ?><?php $a9_class='text';$a9_text='GLOBAL_DEFAULT';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php - $langF = $a8_escape?'langHtml':'lang'; - $tmp_text = $langF($a8_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a9_class ?>" title="<?php echo $a9_title ?>"><?php + $langF = $a9_escape?'langHtml':'lang'; + $tmp_text = $langF($a9_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?><?php $a8_class='text';$a8_raw=')_=_';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?><?php $a9_class='text';$a9_raw=')_=_';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php - $langF = $a8_escape?'langHtml':'lang'; - $tmp_text = str_replace('_','&nbsp;',$a8_raw); +?><<?php echo $tmp_tag ?> class="<?php echo $a9_class ?>" title="<?php echo $a9_title ?>"><?php + $langF = $a9_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a9_raw); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_raw,$a8_escape,$a8_cut) ?><?php $a8_class='text';$a8_var='defaultValue';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_raw,$a9_escape,$a9_cut) ?><?php $a9_class='text';$a9_var='defaultValue';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php - $langF = $a8_escape?'langHtml':'lang'; - $tmp_text = isset($$a8_var)?$$a8_var:$langF('UNKNOWN'); +?><<?php echo $tmp_tag ?> class="<?php echo $a9_class ?>" title="<?php echo $a9_title ?>"><?php + $langF = $a9_escape?'langHtml':'lang'; + $tmp_text = isset($$a9_var)?$$a9_var:$langF('UNKNOWN'); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_var,$a8_escape,$a8_cut) ?><br/><?php } ?></td></tr><?php } ?><?php $a4_present='select_items'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_var,$a9_escape,$a9_cut) ?><br/><?php } ?></td></tr><?php } ?><?php $a5_present='select_items'; ?><?php + $a5_tmp_exec = isset($$a5_present); + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a4_present) ?><?php - $row_idx++; +<?php unset($a5_present) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_text='EL_PROP_select_items';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a7_header) ?><?php $a8_class='text';$a8_text='EL_PROP_select_items';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></td><?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_name='select_items';$a7_rows='15';$a7_cols='40';$a7_class='inputarea';$a7_default=''; ?><?php if ($this->isEditMode()) { -?><textarea class="<?php echo $a7_class ?>" name="<?php echo $a7_name ?>" rows="<?php echo $a7_rows ?>" cols="<?php echo $a7_cols ?>"><?php echo htmlentities(isset($$a7_name)?$$a7_name:$a7_default) ?></textarea><?php +><?php unset($a7_header) ?><?php $a8_name='select_items';$a8_rows='15';$a8_cols='40';$a8_class='inputarea';$a8_default=''; ?><?php if ($this->isEditMode()) { +?><textarea class="<?php echo $a8_class ?>" name="<?php echo $a8_name ?>" rows="<?php echo $a8_rows ?>" cols="<?php echo $a8_cols ?>"><?php echo htmlentities(isset($$a8_name)?$$a8_name:$a8_default) ?></textarea><?php } else { -?><span class="<?php echo $a7_class ?>"><?php echo isset($$a7_name)?$$a7_name:$a7_default ?></span><?php } ?><?php unset($a7_name,$a7_rows,$a7_cols,$a7_class,$a7_default) ?></td></tr><?php } ?><?php $a4_present='linkelement'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +?><span class="<?php echo $a8_class ?>"><?php echo isset($$a8_name)?$$a8_name:$a8_default ?></span><?php } ?><?php unset($a8_name,$a8_rows,$a8_cols,$a8_class,$a8_default) ?></td></tr><?php } ?><?php $a5_present='linkelement'; ?><?php + $a5_tmp_exec = isset($$a5_present); + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a4_present) ?><?php - $row_idx++; +<?php unset($a5_present) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_text='EL_LINK';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a7_header) ?><?php $a8_class='text';$a8_text='EL_LINK';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></td><?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_list='linkelements';$a7_name='linkelement';$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=false;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php -$a7_readonly=false; -$a7_tmp_list = $$a7_list; +><?php unset($a7_header) ?><?php $a8_list='linkelements';$a8_name='linkelement';$a8_onchange='';$a8_title='';$a8_class='';$a8_addempty=false;$a8_multiple=false;$a8_size='1';$a8_lang=false; ?><?php +$a8_readonly=false; +$a8_tmp_list = $$a8_list; if ($this->isEditable() && !$this->isEditMode()) { - echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; + echo empty($$a8_name)?'- '.lang('EMPTY').' -':$a8_tmp_list[$$a8_name]; } else { -if ( $a7_addempty!==FALSE ) +if ( $a8_addempty!==FALSE ) { - if ($a7_addempty===TRUE) - $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; + if ($a8_addempty===TRUE) + $a8_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a8_tmp_list; else - $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_tmp_list; + $a8_tmp_list = array(''=>'- '.lang($a8_addempty).' -')+$a8_tmp_list; } -?><select<?php if ($a7_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name; if ($a7_multiple) echo '[]'; ?>" onchange="<?php echo $a7_onchange ?>" title="<?php echo $a7_title ?>" class="<?php echo $a7_class ?>"<?php -if (count($$a7_list)<=1) echo ' disabled="disabled"'; -if ($a7_multiple) echo ' multiple="multiple"'; -if (in_array($a7_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; -echo ' size="'.intval($a7_size).'"'; +?><select<?php if ($a8_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a8_name ?>" name="<?php echo $a8_name; if ($a8_multiple) echo '[]'; ?>" onchange="<?php echo $a8_onchange ?>" title="<?php echo $a8_title ?>" class="<?php echo $a8_class ?>"<?php +if (count($$a8_list)<=1) echo ' disabled="disabled"'; +if ($a8_multiple) echo ' multiple="multiple"'; +if (in_array($a8_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($a8_size).'"'; ?>><?php - if ( isset($$a7_name) && isset($a7_tmp_list[$$a7_name]) ) - $a7_tmp_default = $$a7_name; - elseif ( isset($a7_default) ) - $a7_tmp_default = $a7_default; + if ( isset($$a8_name) && isset($a8_tmp_list[$$a8_name]) ) + $a8_tmp_default = $$a8_name; + elseif ( isset($a8_default) ) + $a8_tmp_default = $a8_default; else - $a7_tmp_default = ''; - foreach( $a7_tmp_list as $box_key=>$box_value ) + $a8_tmp_default = ''; + foreach( $a8_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -1088,7 +1021,7 @@ echo ' size="'.intval($a7_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a7_lang ) + elseif( $a8_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -1097,79 +1030,78 @@ echo ' size="'.intval($a7_size).'"'; { $box_title = ''; } - echo '<option class="'.$a7_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ((string)$box_key==$a7_tmp_default) + echo '<option class="'.$a8_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a8_tmp_default) echo ' selected="selected"'; echo '>'.$box_value.'</option>'; } ?></select><?php -if (count($$a7_list)==0) echo '<input type="hidden" name="'.$a7_name.'" value="" />'; -if (count($$a7_list)==1) echo '<input type="hidden" name="'.$a7_name.'" value="'.$box_key.'" />'; +if (count($$a8_list)==0) echo '<input type="hidden" name="'.$a8_name.'" value="" />'; +if (count($$a8_list)==1) echo '<input type="hidden" name="'.$a8_name.'" value="'.$box_key.'" />'; } -?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?></td></tr><?php } ?><?php $a4_present='name'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +?><?php unset($a8_list,$a8_name,$a8_onchange,$a8_title,$a8_class,$a8_addempty,$a8_multiple,$a8_size,$a8_lang) ?></td></tr><?php } ?><?php $a5_present='name'; ?><?php + $a5_tmp_exec = isset($$a5_present); + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a4_present) ?><?php - $row_idx++; +<?php unset($a5_present) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_text='ELEMENT_NAME';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a7_header) ?><?php $a8_class='text';$a8_text='ELEMENT_NAME';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></td><?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_list='names';$a7_name='name';$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=false;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php -$a7_readonly=false; -$a7_tmp_list = $$a7_list; +><?php unset($a7_header) ?><?php $a8_list='names';$a8_name='name';$a8_onchange='';$a8_title='';$a8_class='';$a8_addempty=false;$a8_multiple=false;$a8_size='1';$a8_lang=false; ?><?php +$a8_readonly=false; +$a8_tmp_list = $$a8_list; if ($this->isEditable() && !$this->isEditMode()) { - echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; + echo empty($$a8_name)?'- '.lang('EMPTY').' -':$a8_tmp_list[$$a8_name]; } else { -if ( $a7_addempty!==FALSE ) +if ( $a8_addempty!==FALSE ) { - if ($a7_addempty===TRUE) - $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; + if ($a8_addempty===TRUE) + $a8_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a8_tmp_list; else - $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_tmp_list; + $a8_tmp_list = array(''=>'- '.lang($a8_addempty).' -')+$a8_tmp_list; } -?><select<?php if ($a7_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name; if ($a7_multiple) echo '[]'; ?>" onchange="<?php echo $a7_onchange ?>" title="<?php echo $a7_title ?>" class="<?php echo $a7_class ?>"<?php -if (count($$a7_list)<=1) echo ' disabled="disabled"'; -if ($a7_multiple) echo ' multiple="multiple"'; -if (in_array($a7_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; -echo ' size="'.intval($a7_size).'"'; +?><select<?php if ($a8_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a8_name ?>" name="<?php echo $a8_name; if ($a8_multiple) echo '[]'; ?>" onchange="<?php echo $a8_onchange ?>" title="<?php echo $a8_title ?>" class="<?php echo $a8_class ?>"<?php +if (count($$a8_list)<=1) echo ' disabled="disabled"'; +if ($a8_multiple) echo ' multiple="multiple"'; +if (in_array($a8_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($a8_size).'"'; ?>><?php - if ( isset($$a7_name) && isset($a7_tmp_list[$$a7_name]) ) - $a7_tmp_default = $$a7_name; - elseif ( isset($a7_default) ) - $a7_tmp_default = $a7_default; + if ( isset($$a8_name) && isset($a8_tmp_list[$$a8_name]) ) + $a8_tmp_default = $$a8_name; + elseif ( isset($a8_default) ) + $a8_tmp_default = $a8_default; else - $a7_tmp_default = ''; - foreach( $a7_tmp_list as $box_key=>$box_value ) + $a8_tmp_default = ''; + foreach( $a8_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -1177,7 +1109,7 @@ echo ' size="'.intval($a7_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a7_lang ) + elseif( $a8_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -1186,79 +1118,78 @@ echo ' size="'.intval($a7_size).'"'; { $box_title = ''; } - echo '<option class="'.$a7_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ((string)$box_key==$a7_tmp_default) + echo '<option class="'.$a8_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a8_tmp_default) echo ' selected="selected"'; echo '>'.$box_value.'</option>'; } ?></select><?php -if (count($$a7_list)==0) echo '<input type="hidden" name="'.$a7_name.'" value="" />'; -if (count($$a7_list)==1) echo '<input type="hidden" name="'.$a7_name.'" value="'.$box_key.'" />'; +if (count($$a8_list)==0) echo '<input type="hidden" name="'.$a8_name.'" value="" />'; +if (count($$a8_list)==1) echo '<input type="hidden" name="'.$a8_name.'" value="'.$box_key.'" />'; } -?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?></td></tr><?php } ?><?php $a4_present='folderobjectid'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +?><?php unset($a8_list,$a8_name,$a8_onchange,$a8_title,$a8_class,$a8_addempty,$a8_multiple,$a8_size,$a8_lang) ?></td></tr><?php } ?><?php $a5_present='folderobjectid'; ?><?php + $a5_tmp_exec = isset($$a5_present); + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a4_present) ?><?php - $row_idx++; +<?php unset($a5_present) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_text='EL_PROP_DEFAULT_FOLDEROBJECT';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a7_header) ?><?php $a8_class='text';$a8_text='EL_PROP_DEFAULT_FOLDEROBJECT';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></td><?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_list='folders';$a7_name='folderobjectid';$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=false;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php -$a7_readonly=false; -$a7_tmp_list = $$a7_list; +><?php unset($a7_header) ?><?php $a8_list='folders';$a8_name='folderobjectid';$a8_onchange='';$a8_title='';$a8_class='';$a8_addempty=false;$a8_multiple=false;$a8_size='1';$a8_lang=false; ?><?php +$a8_readonly=false; +$a8_tmp_list = $$a8_list; if ($this->isEditable() && !$this->isEditMode()) { - echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; + echo empty($$a8_name)?'- '.lang('EMPTY').' -':$a8_tmp_list[$$a8_name]; } else { -if ( $a7_addempty!==FALSE ) +if ( $a8_addempty!==FALSE ) { - if ($a7_addempty===TRUE) - $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; + if ($a8_addempty===TRUE) + $a8_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a8_tmp_list; else - $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_tmp_list; + $a8_tmp_list = array(''=>'- '.lang($a8_addempty).' -')+$a8_tmp_list; } -?><select<?php if ($a7_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name; if ($a7_multiple) echo '[]'; ?>" onchange="<?php echo $a7_onchange ?>" title="<?php echo $a7_title ?>" class="<?php echo $a7_class ?>"<?php -if (count($$a7_list)<=1) echo ' disabled="disabled"'; -if ($a7_multiple) echo ' multiple="multiple"'; -if (in_array($a7_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; -echo ' size="'.intval($a7_size).'"'; +?><select<?php if ($a8_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a8_name ?>" name="<?php echo $a8_name; if ($a8_multiple) echo '[]'; ?>" onchange="<?php echo $a8_onchange ?>" title="<?php echo $a8_title ?>" class="<?php echo $a8_class ?>"<?php +if (count($$a8_list)<=1) echo ' disabled="disabled"'; +if ($a8_multiple) echo ' multiple="multiple"'; +if (in_array($a8_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($a8_size).'"'; ?>><?php - if ( isset($$a7_name) && isset($a7_tmp_list[$$a7_name]) ) - $a7_tmp_default = $$a7_name; - elseif ( isset($a7_default) ) - $a7_tmp_default = $a7_default; + if ( isset($$a8_name) && isset($a8_tmp_list[$$a8_name]) ) + $a8_tmp_default = $$a8_name; + elseif ( isset($a8_default) ) + $a8_tmp_default = $a8_default; else - $a7_tmp_default = ''; - foreach( $a7_tmp_list as $box_key=>$box_value ) + $a8_tmp_default = ''; + foreach( $a8_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -1266,7 +1197,7 @@ echo ' size="'.intval($a7_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a7_lang ) + elseif( $a8_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -1275,79 +1206,78 @@ echo ' size="'.intval($a7_size).'"'; { $box_title = ''; } - echo '<option class="'.$a7_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ((string)$box_key==$a7_tmp_default) + echo '<option class="'.$a8_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a8_tmp_default) echo ' selected="selected"'; echo '>'.$box_value.'</option>'; } ?></select><?php -if (count($$a7_list)==0) echo '<input type="hidden" name="'.$a7_name.'" value="" />'; -if (count($$a7_list)==1) echo '<input type="hidden" name="'.$a7_name.'" value="'.$box_key.'" />'; +if (count($$a8_list)==0) echo '<input type="hidden" name="'.$a8_name.'" value="" />'; +if (count($$a8_list)==1) echo '<input type="hidden" name="'.$a8_name.'" value="'.$box_key.'" />'; } -?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?></td></tr><?php } ?><?php $a4_present='default_objectid'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +?><?php unset($a8_list,$a8_name,$a8_onchange,$a8_title,$a8_class,$a8_addempty,$a8_multiple,$a8_size,$a8_lang) ?></td></tr><?php } ?><?php $a5_present='default_objectid'; ?><?php + $a5_tmp_exec = isset($$a5_present); + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a4_present) ?><?php - $row_idx++; +<?php unset($a5_present) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_text='EL_PROP_DEFAULT_OBJECT';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a7_header) ?><?php $a8_class='text';$a8_text='EL_PROP_DEFAULT_OBJECT';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></td><?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_list='objects';$a7_name='default_objectid';$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=true;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php -$a7_readonly=false; -$a7_tmp_list = $$a7_list; +><?php unset($a7_header) ?><?php $a8_list='objects';$a8_name='default_objectid';$a8_onchange='';$a8_title='';$a8_class='';$a8_addempty=true;$a8_multiple=false;$a8_size='1';$a8_lang=false; ?><?php +$a8_readonly=false; +$a8_tmp_list = $$a8_list; if ($this->isEditable() && !$this->isEditMode()) { - echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; + echo empty($$a8_name)?'- '.lang('EMPTY').' -':$a8_tmp_list[$$a8_name]; } else { -if ( $a7_addempty!==FALSE ) +if ( $a8_addempty!==FALSE ) { - if ($a7_addempty===TRUE) - $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; + if ($a8_addempty===TRUE) + $a8_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a8_tmp_list; else - $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_tmp_list; + $a8_tmp_list = array(''=>'- '.lang($a8_addempty).' -')+$a8_tmp_list; } -?><select<?php if ($a7_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name; if ($a7_multiple) echo '[]'; ?>" onchange="<?php echo $a7_onchange ?>" title="<?php echo $a7_title ?>" class="<?php echo $a7_class ?>"<?php -if (count($$a7_list)<=1) echo ' disabled="disabled"'; -if ($a7_multiple) echo ' multiple="multiple"'; -if (in_array($a7_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; -echo ' size="'.intval($a7_size).'"'; +?><select<?php if ($a8_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a8_name ?>" name="<?php echo $a8_name; if ($a8_multiple) echo '[]'; ?>" onchange="<?php echo $a8_onchange ?>" title="<?php echo $a8_title ?>" class="<?php echo $a8_class ?>"<?php +if (count($$a8_list)<=1) echo ' disabled="disabled"'; +if ($a8_multiple) echo ' multiple="multiple"'; +if (in_array($a8_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($a8_size).'"'; ?>><?php - if ( isset($$a7_name) && isset($a7_tmp_list[$$a7_name]) ) - $a7_tmp_default = $$a7_name; - elseif ( isset($a7_default) ) - $a7_tmp_default = $a7_default; + if ( isset($$a8_name) && isset($a8_tmp_list[$$a8_name]) ) + $a8_tmp_default = $$a8_name; + elseif ( isset($a8_default) ) + $a8_tmp_default = $a8_default; else - $a7_tmp_default = ''; - foreach( $a7_tmp_list as $box_key=>$box_value ) + $a8_tmp_default = ''; + foreach( $a8_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -1355,7 +1285,7 @@ echo ' size="'.intval($a7_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a7_lang ) + elseif( $a8_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -1364,80 +1294,95 @@ echo ' size="'.intval($a7_size).'"'; { $box_title = ''; } - echo '<option class="'.$a7_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ((string)$box_key==$a7_tmp_default) + echo '<option class="'.$a8_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a8_tmp_default) echo ' selected="selected"'; echo '>'.$box_value.'</option>'; } ?></select><?php -if (count($$a7_list)==0) echo '<input type="hidden" name="'.$a7_name.'" value="" />'; -if (count($$a7_list)==1) echo '<input type="hidden" name="'.$a7_name.'" value="'.$box_key.'" />'; +if (count($$a8_list)==0) echo '<input type="hidden" name="'.$a8_name.'" value="" />'; +if (count($$a8_list)==1) echo '<input type="hidden" name="'.$a8_name.'" value="'.$box_key.'" />'; } -?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?></td></tr><?php } ?><?php $a4_present='code'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +?><?php unset($a8_list,$a8_name,$a8_onchange,$a8_title,$a8_class,$a8_addempty,$a8_multiple,$a8_size,$a8_lang) ?></td></tr><?php } ?><?php $a5_present='code'; ?><?php + $a5_tmp_exec = isset($$a5_present); + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a4_present) ?><?php - $row_idx++; +<?php unset($a5_present) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_class='text';$a7_text='EL_PROP_code';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a7_header) ?><?php $a8_class='text';$a8_text='EL_PROP_code';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></td><?php $a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a7_name='code';$a7_rows='35';$a7_cols='60';$a7_class='inputarea';$a7_default=''; ?><?php if ($this->isEditMode()) { -?><textarea class="<?php echo $a7_class ?>" name="<?php echo $a7_name ?>" rows="<?php echo $a7_rows ?>" cols="<?php echo $a7_cols ?>"><?php echo htmlentities(isset($$a7_name)?$$a7_name:$a7_default) ?></textarea><?php +><?php unset($a7_header) ?><?php $a8_name='code';$a8_rows='35';$a8_cols='60';$a8_class='inputarea';$a8_default=''; ?><?php if ($this->isEditMode()) { +?><textarea class="<?php echo $a8_class ?>" name="<?php echo $a8_name ?>" rows="<?php echo $a8_rows ?>" cols="<?php echo $a8_cols ?>"><?php echo htmlentities(isset($$a8_name)?$$a8_name:$a8_default) ?></textarea><?php } else { -?><span class="<?php echo $a7_class ?>"><?php echo isset($$a7_name)?$$a7_name:$a7_default ?></span><?php } ?><?php unset($a7_name,$a7_rows,$a7_cols,$a7_class,$a7_default) ?></td></tr><?php } ?><?php - $row_idx++; +?><span class="<?php echo $a8_class ?>"><?php echo isset($$a8_name)?$$a8_name:$a8_default ?></span><?php } ?><?php unset($a8_name,$a8_rows,$a8_cols,$a8_class,$a8_default) ?></td></tr><?php } ?><?php $column_idx = 0; ?> <tr > -<?php $a5_class='act';$a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a6_class='act';$a6_colspan='2';$a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="act" colspan="2" -><?php unset($a5_class,$a5_colspan) ?><?php $a6_type='ok';$a6_class='ok';$a6_value='ok';$a6_text='button_ok'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) - $a6_text = 'MODE_EDIT'; - $a6_type = 'submit'; - if ( $this->isEditable() && readonly() ) - $a6_type = ''; // Knopf nicht anzeigen - $a6_src = ''; - if ( !empty($a6_type) ) { -?><input type="<?php echo $a6_type ?>"<?php if(isset($a6_src)) { ?> src="<?php echo $image_dir.'icon_'.$a6_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $a6_value ?>" class="ok" title="<?php echo lang($a6_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a6_src) -?><?php } -?><?php unset($a6_type,$a6_class,$a6_value,$a6_text) ?></td></tr> </table> - </td> - </tr> -</table> -</center> +><?php unset($a6_class,$a6_colspan,$a6_header) ?><?php $a7_type='ok';$a7_class='ok';$a7_value='ok';$a7_text='button_ok'; ?><div class="invisible"> +<?php + if ($this->isEditable() && !$this->isEditMode() && !readonly() ) + { + $a7_type = ''; // Knopf nicht anzeigen + ?><a class="action" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span title="<?php echo lang('MODE_EDIT_DESC') ?>"><?php echo langHtml('MODE_EDIT') ?></span></a><?php + } else + { + $a7_type = 'submit'; + } + $a7_tmp_src = ''; + if ( !empty($a7_type)) { +?> +<input type="<?php echo $a7_type ?>"<?php if(isset($a7_src)) { ?> src="<?php $a7_tmp_src ?>"<?php } ?> name="<?php echo $a7_value ?>" class="ok" title="<?php echo lang($a7_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a7_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a7_src); ?> +<?php } + if ($this->isEditable() && $this->isEditMode() ) + { + ?><a class="action" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'')) ?>"><span title="<?php echo lang('CANCEL_DESC') ?>"><?php echo langHtml('CANCEL') ?></span></a><?php + } +?> +</div><?php unset($a7_type,$a7_class,$a7_value,$a7_text) ?></td></tr><?php if (false) { ?> +</div> +</div> +<div class="bottom"> + <div class="status"> + </div> + <div class="command"> + <input type="button" value="<?php echo lang('OK') ?>" onclick="formSubmit( $(this),'<?php echo $view ?>');" /> + <input type="cancel" value="<?php echo lang('CANCEL') ?>" /> + </div> +</div> +</div> <?php if ($showDuration) { ?> <br/> @@ -1445,12 +1390,7 @@ if (count($$a7_list)==1) echo '<input type="hidden" name="'.$a7_name.'" value="' <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -</form> -<?php $a2_field='name'; ?><?php -if (isset($errors[0])) $a2_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $a2_field ?>.focus(); -document.forms[0].<?php echo $a2_field ?>.select(); +<?php } ?></form> +<?php $a3_field='name'; ?><script name="JavaScript" type="text/javascript"><!-- </script> -<?php unset($a2_field) ?></body> -</html>- \ No newline at end of file +<?php unset($a3_field) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/element/remove.tpl.php b/themes/default/pages/html/element/remove.tpl.php @@ -1,36 +1,4 @@ -<?php $a1_class='main'; ?><?php - if (!defined('OR_VERSION')) die('Forbidden'); - 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($a1_title)?langHtml($a1_title).' - ':(isset($windowTitle)?langHtml($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" > -<?php if ( isset($refresh_url) ) { ?> - <meta http-equiv="refresh" content="<?php echo isset($refresh_timeout)?$refresh_timeout:0 ?>; URL=<?php echo $refresh_url; if (ini_get('session.use_trans_sid')) echo '&'.session_name().'='.session_id(); ?>"> -<?php } ?> - <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 $meta['title'] ?>" ><?php - } -?><?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="main" <?php if (@$conf['interface']['application_mode']) { ?> style="padding:0px;margin:0px;"<?php } ?> > -<?php /* Debug-Information */ if ($showDuration) { echo "<!-- Output Variables are:\n";echo str_replace('-->','-- >',print_r($this->templateVars,true));echo "\n-->";} ?><?php unset($a1_class) ?><?php $a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php +<?php $a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded';$a2_type=''; ?><?php $a2_action = $actionName; $a2_subaction = $targetSubActionName; $a2_id = $this->getRequestId(); @@ -46,80 +14,69 @@ $a2_subaction = $subActionName; } } + switch( $a2_type ) + { + case 'upload': + $a2_tmp_submitFunction = ''; + break; + default: + $a2_tmp_submitFunction = 'formSubmit( $(this) ); return false;'; + } ?><form name="<?php echo $a2_name ?>" target="<?php echo $a2_target ?>" action="<?php echo Html::url( $a2_action,$a2_subaction,$a2_id ) ?>" method="<?php echo $a2_method ?>" - enctype="<?php echo $a2_enctype ?>" style="margin:0px;padding:0px;"> + enctype="<?php echo $a2_enctype ?>" style="margin:0px;padding:0px;" + class="<?php echo $a2_action ?>" + onSubmit="<?php echo $a2_tmp_submitFunction ?>"><input type="submit" class="invisible" /> <?php if ($this->isEditable() && !$this->isEditMode()) { ?> <input type="hidden" name="mode" value="edit" /> <?php } ?> <input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $a2_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $a2_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a2_id ?>" /><?php +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $this->actionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $this->subActionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $this->getRequestId() ?>" /><?php if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype) ?><?php $a3_width='93%';$a3_rowclasses='odd,even';$a3_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$actionName; - $row_classes = explode(',',$a3_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a3_columnclasses); - $row_idx = 0; - $column_idx = 0; - 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="'.$a3_width.'">'; - } - if (!@$conf['interface']['application_mode'] ) - { - echo '<tr class="title"><td>'; - echo '<img src="'.$image_dir.'icon_'.$icon.IMG_ICON_EXT.'" align="left" border="0">'; - if ($this->isEditable()) { ?> +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><?php $a3_width='93%';$a3_rowclasses='odd,even';$a3_columnclasses='1,2,3'; ?><?php if (false) { ?> +<div class="window"> +<div class="title"> + <?php $icon=$actionName; ?> + <img src="<?php echo $image_dir.'icon_'.$icon.IMG_ICON_EXT ?>" align="left" /> + <?php if ($this->isEditable()) { ?> <?php if ($this->isEditMode()) { ?><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 } elseif (readonly()) { ?><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /> <?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($actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; - if ( !isset($path) || is_array($path) ) + ?><?php } ?> + <span class="path"><?php echo langHtml($actionName) ?></span>&nbsp;<strong>&rarr;</strong>&nbsp; + <?php + 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>'; + extract($pathElement); ?> + <a javascript:void(0);" onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $url ?>'); return false; " title="<?php echo $title ?>" class="path"><?php echo (!empty($key)?langHtml($key):$name) ?></a> + &nbsp;&rarr;&nbsp; + <?php } ?> + <span class="title"><?php echo langHtml(@$windowTitle) ?></span> + <?php if ( isset($notice_status)) { ?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?php } ?> - </td> - <?php - } - ?> -<?php ?> <!--<td class="menu" style="align:right;"> + <?php ?> <?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 class="menu"><td> - <table class="menu"><tr> - <?php if ( !isset($windowMenu) || !is_array($windowMenu) ) - $windowMenu = array(); +</div> +<ul class="menu"> +<?php + if ( !isset($windowMenu) || !is_array($windowMenu) ) $windowMenu = array(); foreach( $windowMenu as $menu ) { $tmp_text = langHtml($menu['text']); @@ -127,65 +84,58 @@ $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); + $liClass = (isset($menu['url'])?'':'no').'action'.($this->subActionName==$menu['subaction']?' active':''); + $icon_url = $image_dir.'icon/'.$menu['subaction'].'.png'; + ?><li class="<?php echo $liClass?>"><?php if ( isset($menu['url']) ) { - ?><td class="action"><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></td><?php + $link_url = Html::url($actionName,$menu['subaction'],$this->getRequestId() ); + ?><a href="javascript:void(0);" onclick="javascript:loadSubaction(this,'<?php echo $actionName ?>','<?php echo $menu['subaction'] ?>','<?php echo $this->getRequestId() ?>'); return false; " accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>"><img src="<?php echo $icon_url ?>" /><?php echo $tmp_text ?></a><?php } else { - ?><td class="noaction"><?php echo $tmp_text ?></td><?php + ?><span><img src="<?php echo $icon_url ?>" /><?php echo $tmp_text ?></span><?php } } - if (@$conf['help']['enabled'] ) + ?></li><?php + if ( /* Deaktiviert */ false && @$conf['help']['enabled'] ) { - ?><td><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></td><?php + ?><a class="help" href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>"><img src="<?php echo $image_dir.'icon/help.png' ?>" /><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php } - ?> - </tr></table></td> - </tr> -<?php if (isset($notices) && count($notices)>0 ) + ?><?php + ?> +</ul> +<?php global $image_dir; + if (isset($notices) && count($notices)>0 ) { ?> - <tr> - <td align="center" class="notice"> + <dl class="notice"> <?php foreach( $notices as $notice_idx=>$notice ) { ?> - <br><table class="notice"> <?php if ($notice['name']!='') { ?> - <tr> - <th colspan="2"><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?> - </th> - </tr> + <dt><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?></dt> <?php } ?> - <tr class="<?php echo $notice['status'] ?>"> + <dd class="<?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> + </dd> <?php } ?> - </td> - </tr> - <tr> - <td colspan="2"><fieldset></fieldset></td> - </tr> + </dl> <?php } ?> - <tr> - <td class="window"> - <table cellspacing="0" width="100%" cellpadding="4"> -<?php unset($a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $row_idx++; +<div class="content"><div class="filler"> +<?php } ?><?php unset($a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a5_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a6_class='text';$a6_text='ELEMENT_NAME';$a6_escape=true;$a6_cut='both'; ?><?php +><?php unset($a5_header) ?><?php $a6_class='text';$a6_text='ELEMENT_NAME';$a6_escape=true;$a6_cut='both'; ?><?php $a6_title = ''; $tmp_tag = 'span'; ?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php @@ -194,14 +144,14 @@ $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $a5_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a6_class='text';$a6_var='name';$a6_escape=true;$a6_cut='both'; ?><?php +><?php unset($a5_header) ?><?php $a6_class='text';$a6_var='name';$a6_escape=true;$a6_cut='both'; ?><?php $a6_title = ''; $tmp_tag = 'span'; ?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php @@ -211,12 +161,11 @@ echo $tmp_text; unset($tmp_text); ?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?></td></tr><?php - $row_idx++; $column_idx = 0; ?> <tr > -<?php $a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a5_colspan='2';$a5_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -224,13 +173,12 @@ class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a5_colspan) ?><?php $a6_title=lang('options'); ?><fieldset><?php if(isset($a6_title)) { ?><legend><?php if(isset($a6_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a6_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a6_title) ?></legend><?php } ?><?php unset($a6_title) ?></fieldset></td></tr><?php - $row_idx++; +><?php unset($a5_colspan,$a5_header) ?><?php $a6_title=lang('options'); ?><fieldset><?php if(isset($a6_title)) { ?><legend><?php if(isset($a6_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a6_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a6_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a6_title) ?></fieldset></td></tr><?php $column_idx = 0; ?> <tr > -<?php $a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a5_colspan='2';$a5_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -238,7 +186,7 @@ class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a5_colspan) ?><?php $a6_default=false;$a6_readonly=false;$a6_name='confirm'; ?><?php +><?php unset($a5_colspan,$a5_header) ?><?php $a6_default=false;$a6_readonly=false;$a6_name='confirm'; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; if ( isset($$a6_name) ) $checked = $$a6_name; @@ -249,7 +197,8 @@ if ( $a6_readonly && $checked ) { ?><input type="hidden" name="<?php echo $a6_name ?>" value="1" /><?php } -?><?php unset($a6_name); unset($a6_readonly); unset($a6_default); ?><?php unset($a6_default,$a6_readonly,$a6_name) ?><?php $a6_for='confirm'; ?><label for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>"><?php unset($a6_for) ?><?php $a7_class='text';$a7_text='CONFIRM_DELETE';$a7_escape=true;$a7_cut='both'; ?><?php +?><?php unset($a6_name); unset($a6_readonly); unset($a6_default); ?><?php unset($a6_default,$a6_readonly,$a6_name) ?><?php $a6_for='confirm'; ?><label<?php if (isset($a6_for)) { ?> for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" class="label"<?php } ?>> +<?php if (isset($a6_key)) { echo lang($a6_key); if(hasLang($a6_key.'_desc')) { ?><div class="description"><?php echo lang($a6_key.'_desc')?></div> <?php } } ?><?php unset($a6_for) ?><?php $a7_class='text';$a7_text='CONFIRM_DELETE';$a7_escape=true;$a7_cut='both'; ?><?php $a7_title = ''; $tmp_tag = 'span'; ?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php @@ -259,12 +208,11 @@ if ( $a6_readonly && $checked ) echo $tmp_text; unset($tmp_text); ?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></label></td></tr><?php - $row_idx++; $column_idx = 0; ?> <tr > -<?php $a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a5_colspan='2';$a5_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -272,7 +220,8 @@ if ( $a6_readonly && $checked ) class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a5_colspan) ?><?php $a6_for='type_value'; ?><label for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>"><?php unset($a6_for) ?><?php $a7_class='text';$a7_raw='_____';$a7_escape=true;$a7_cut='both'; ?><?php +><?php unset($a5_colspan,$a5_header) ?><?php $a6_for='type_value'; ?><label<?php if (isset($a6_for)) { ?> for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" class="label"<?php } ?>> +<?php if (isset($a6_key)) { echo lang($a6_key); if(hasLang($a6_key.'_desc')) { ?><div class="description"><?php echo lang($a6_key.'_desc')?></div> <?php } } ?><?php unset($a6_for) ?><?php $a7_class='text';$a7_raw='_____';$a7_escape=true;$a7_cut='both'; ?><?php $a7_title = ''; $tmp_tag = 'span'; ?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php @@ -299,7 +248,8 @@ if ( $a6_readonly && $checked ) $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></label><br/><?php $a6_for='type_all'; ?><label for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>"><?php unset($a6_for) ?><?php $a7_class='text';$a7_raw='_____';$a7_escape=true;$a7_cut='both'; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></label><br/><?php $a6_for='type_all'; ?><label<?php if (isset($a6_for)) { ?> for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" class="label"<?php } ?>> +<?php if (isset($a6_key)) { echo lang($a6_key); if(hasLang($a6_key.'_desc')) { ?><div class="description"><?php echo lang($a6_key.'_desc')?></div> <?php } } ?><?php unset($a6_for) ?><?php $a7_class='text';$a7_raw='_____';$a7_escape=true;$a7_cut='both'; ?><?php $a7_title = ''; $tmp_tag = 'span'; ?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php @@ -327,32 +277,48 @@ if ( $a6_readonly && $checked ) echo $tmp_text; unset($tmp_text); ?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></label></td></tr><?php - $row_idx++; $column_idx = 0; ?> <tr > -<?php $a5_class='act';$a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a5_class='act';$a5_colspan='2';$a5_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="act" colspan="2" -><?php unset($a5_class,$a5_colspan) ?><?php $a6_type='ok';$a6_class='ok';$a6_value='ok';$a6_text='button_ok'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) - $a6_text = 'MODE_EDIT'; - $a6_type = 'submit'; - if ( $this->isEditable() && readonly() ) +><?php unset($a5_class,$a5_colspan,$a5_header) ?><?php $a6_type='ok';$a6_class='ok';$a6_value='ok';$a6_text='button_ok'; ?><div class="invisible"> +<?php + if ($this->isEditable() && !$this->isEditMode() && !readonly() ) + { $a6_type = ''; // Knopf nicht anzeigen - $a6_src = ''; - if ( !empty($a6_type) ) { -?><input type="<?php echo $a6_type ?>"<?php if(isset($a6_src)) { ?> src="<?php echo $image_dir.'icon_'.$a6_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $a6_value ?>" class="ok" title="<?php echo lang($a6_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a6_src) -?><?php } -?><?php unset($a6_type,$a6_class,$a6_value,$a6_text) ?></td></tr> </table> - </td> - </tr> -</table> -</center> + ?><a class="action" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span title="<?php echo lang('MODE_EDIT_DESC') ?>"><?php echo langHtml('MODE_EDIT') ?></span></a><?php + } else + { + $a6_type = 'submit'; + } + $a6_tmp_src = ''; + if ( !empty($a6_type)) { +?> +<input type="<?php echo $a6_type ?>"<?php if(isset($a6_src)) { ?> src="<?php $a6_tmp_src ?>"<?php } ?> name="<?php echo $a6_value ?>" class="ok" title="<?php echo lang($a6_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a6_src); ?> +<?php } + if ($this->isEditable() && $this->isEditMode() ) + { + ?><a class="action" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'')) ?>"><span title="<?php echo lang('CANCEL_DESC') ?>"><?php echo langHtml('CANCEL') ?></span></a><?php + } +?> +</div><?php unset($a6_type,$a6_class,$a6_value,$a6_text) ?></td></tr><?php if (false) { ?> +</div> +</div> +<div class="bottom"> + <div class="status"> + </div> + <div class="command"> + <input type="button" value="<?php echo lang('OK') ?>" onclick="formSubmit( $(this),'<?php echo $view ?>');" /> + <input type="cancel" value="<?php echo lang('CANCEL') ?>" /> + </div> +</div> +</div> <?php if ($showDuration) { ?> <br/> @@ -360,12 +326,7 @@ if ( $a6_readonly && $checked ) <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -</form> -<?php $a2_field='delete'; ?><?php -if (isset($errors[0])) $a2_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $a2_field ?>.focus(); -document.forms[0].<?php echo $a2_field ?>.select(); +<?php } ?></form> +<?php $a2_field='delete'; ?><script name="JavaScript" type="text/javascript"><!-- </script> -<?php unset($a2_field) ?></body> -</html>- \ No newline at end of file +<?php unset($a2_field) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/element/type.tpl.php b/themes/default/pages/html/element/type.tpl.php @@ -1,36 +1,20 @@ -<?php $a1_class='main'; ?><?php - if (!defined('OR_VERSION')) die('Forbidden'); - 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($a1_title)?langHtml($a1_title).' - ':(isset($windowTitle)?langHtml($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" > -<?php if ( isset($refresh_url) ) { ?> - <meta http-equiv="refresh" content="<?php echo isset($refresh_timeout)?$refresh_timeout:0 ?>; URL=<?php echo $refresh_url; if (ini_get('session.use_trans_sid')) echo '&'.session_name().'='.session_id(); ?>"> +<?php $a2_name='';$a2_back=true; ?><div class="header"> + <?php if ($a2_back) { ?> + <a href="javascript:void(0);" onclick="javascript:refreshActualView(this);" class="back button"> + <img src="<?php echo $image_dir ?>icon/window/back.gif" /> + <?php echo lang('BACK') ?> + </a> + <?php } ?><?php if(!empty($a2_views)) { ?> + <img src="<?php echo $image_dir ?>icon/window/down.gif" /> + <div class="headermenu"> + <?php foreach( explode(',',$a2_views) as $a2_tmp_view ) { ?> + <a class="entry" href="javascript:void(0);" onclick="javascript:startView(this,'<?php echo $a2_tmp_view ?>');"> + <img src="<?php echo $image_dir ?>icon/<?php echo $a2_tmp_view ?>.png" /><?php echo lang('MENU_'.$a2_tmp_view) ?> + </a> + <?php } ?> + </div> <?php } ?> - <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 $meta['title'] ?>" ><?php - } -?><?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="main" <?php if (@$conf['interface']['application_mode']) { ?> style="padding:0px;margin:0px;"<?php } ?> > -<?php /* Debug-Information */ if ($showDuration) { echo "<!-- Output Variables are:\n";echo str_replace('-->','-- >',print_r($this->templateVars,true));echo "\n-->";} ?><?php unset($a1_class) ?><?php $a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php +</div><?php unset($a2_name,$a2_back) ?><?php $a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded';$a2_type=''; ?><?php $a2_action = $actionName; $a2_subaction = $targetSubActionName; $a2_id = $this->getRequestId(); @@ -46,146 +30,31 @@ $a2_subaction = $subActionName; } } + switch( $a2_type ) + { + case 'upload': + $a2_tmp_submitFunction = ''; + break; + default: + $a2_tmp_submitFunction = 'formSubmit( $(this) ); return false;'; + } ?><form name="<?php echo $a2_name ?>" target="<?php echo $a2_target ?>" action="<?php echo Html::url( $a2_action,$a2_subaction,$a2_id ) ?>" method="<?php echo $a2_method ?>" - enctype="<?php echo $a2_enctype ?>" style="margin:0px;padding:0px;"> + enctype="<?php echo $a2_enctype ?>" style="margin:0px;padding:0px;" + class="<?php echo $a2_action ?>" + onSubmit="<?php echo $a2_tmp_submitFunction ?>"><input type="submit" class="invisible" /> <?php if ($this->isEditable() && !$this->isEditMode()) { ?> <input type="hidden" name="mode" value="edit" /> <?php } ?> <input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $a2_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $a2_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a2_id ?>" /><?php +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $this->actionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $this->subActionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $this->getRequestId() ?>" /><?php if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype) ?><?php $a3_name='GLOBAL_NAME';$a3_width='93%';$a3_rowclasses='odd,even';$a3_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$actionName; - $row_classes = explode(',',$a3_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a3_columnclasses); - $row_idx = 0; - $column_idx = 0; - 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="'.$a3_width.'">'; - } - if (!@$conf['interface']['application_mode'] ) - { - echo '<tr class="title"><td>'; - echo '<img src="'.$image_dir.'icon_'.$icon.IMG_ICON_EXT.'" align="left" border="0">'; - if ($this->isEditable()) { ?> - <?php if ($this->isEditMode()) { - ?><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 } - elseif (readonly()) { - ?><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /> <?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($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>'; - if ( isset($notice_status)) - { - ?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?php - } - ?> - </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 class="menu"><td> - <table class="menu"><tr> - <?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']) ) - { - ?><td class="action"><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></td><?php - } - else - { - ?><td class="noaction"><?php echo $tmp_text ?></td><?php - } - } - if (@$conf['help']['enabled'] ) - { - ?><td><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></td><?php - } - ?> - </tr></table></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"> - <?php if ($notice['name']!='') { ?> - <tr> - <th colspan="2"><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?> - </th> - </tr> -<?php } ?> - <tr class="<?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 class="window"> - <table cellspacing="0" width="100%" cellpadding="4"> -<?php unset($a3_name,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a6_class='text';$a6_text='ELEMENT_TYPE';$a6_escape=true;$a6_cut='both'; ?><?php +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><fieldset><?php if(isset($a3_title)) { ?><legend><?php if(isset($a3_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a3_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a3_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='text';$a6_text='ELEMENT_TYPE';$a6_escape=true;$a6_cut='both'; ?><?php $a6_title = ''; $tmp_tag = 'span'; ?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php @@ -194,14 +63,7 @@ $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a6_list='types';$a6_name='type';$a6_onchange='';$a6_title='';$a6_class='';$a6_addempty=false;$a6_multiple=false;$a6_size='1';$a6_lang=true; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_list='types';$a6_name='type';$a6_onchange='';$a6_title='';$a6_class='';$a6_addempty=false;$a6_multiple=false;$a6_size='1';$a6_lang=true; ?><?php $a6_readonly=false; $a6_tmp_list = $$a6_list; if ($this->isEditable() && !$this->isEditMode()) @@ -255,46 +117,4 @@ echo ' size="'.intval($a6_size).'"'; if (count($$a6_list)==0) echo '<input type="hidden" name="'.$a6_name.'" value="" />'; if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="'.$box_key.'" />'; } -?><?php unset($a6_list,$a6_name,$a6_onchange,$a6_title,$a6_class,$a6_addempty,$a6_multiple,$a6_size,$a6_lang) ?></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a5_class='act';$a5_colspan='2'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> - class="act" - colspan="2" -><?php unset($a5_class,$a5_colspan) ?><?php $a6_type='ok';$a6_class='ok';$a6_value='ok';$a6_text='button_ok'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) - $a6_text = 'MODE_EDIT'; - $a6_type = 'submit'; - if ( $this->isEditable() && readonly() ) - $a6_type = ''; // Knopf nicht anzeigen - $a6_src = ''; - if ( !empty($a6_type) ) { -?><input type="<?php echo $a6_type ?>"<?php if(isset($a6_src)) { ?> src="<?php echo $image_dir.'icon_'.$a6_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $a6_value ?>" class="ok" title="<?php echo lang($a6_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a6_src) -?><?php } -?><?php unset($a6_type,$a6_class,$a6_value,$a6_text) ?></td></tr> </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 } ?> -</form> -<?php $a2_field='type'; ?><?php -if (isset($errors[0])) $a2_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $a2_field ?>.focus(); -document.forms[0].<?php echo $a2_field ?>.select(); -</script> -<?php unset($a2_field) ?></body> -</html>- \ No newline at end of file +?><?php unset($a6_list,$a6_name,$a6_onchange,$a6_title,$a6_class,$a6_addempty,$a6_multiple,$a6_size,$a6_lang) ?></div></div></fieldset></form> diff --git a/themes/default/pages/html/file/compress.tpl.php b/themes/default/pages/html/file/compress.tpl.php @@ -1,125 +1,82 @@ -<?php $a1_class='main'; ?><?php - if (!defined('OR_VERSION')) die('Forbidden'); - 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($a1_title)?langHtml($a1_title).' - ':(isset($windowTitle)?langHtml($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" > -<?php if ( isset($refresh_url) ) { ?> - <meta http-equiv="refresh" content="<?php echo isset($refresh_timeout)?$refresh_timeout:0 ?>; URL=<?php echo $refresh_url; if (ini_get('session.use_trans_sid')) echo '&'.session_name().'='.session_id(); ?>"> -<?php } ?> - <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 $meta['title'] ?>" ><?php - } -?><?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="main" <?php if (@$conf['interface']['application_mode']) { ?> style="padding:0px;margin:0px;"<?php } ?> > -<?php /* Debug-Information */ if ($showDuration) { echo "<!-- Output Variables are:\n";echo str_replace('-->','-- >',print_r($this->templateVars,true));echo "\n-->";} ?><?php unset($a1_class) ?><?php $a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php - $a2_action = $actionName; - $a2_subaction = $targetSubActionName; - $a2_id = $this->getRequestId(); +<?php $a3_name='';$a3_target='_self';$a3_method='post';$a3_enctype='application/x-www-form-urlencoded';$a3_type=''; ?><?php + $a3_action = $actionName; + $a3_subaction = $targetSubActionName; + $a3_id = $this->getRequestId(); if ($this->isEditable()) { if ($this->isEditMode()) { - $a2_method = 'POST'; + $a3_method = 'POST'; } else { - $a2_method = 'GET'; - $a2_subaction = $subActionName; + $a3_method = 'GET'; + $a3_subaction = $subActionName; } } -?><form name="<?php echo $a2_name ?>" - target="<?php echo $a2_target ?>" - action="<?php echo Html::url( $a2_action,$a2_subaction,$a2_id ) ?>" - method="<?php echo $a2_method ?>" - enctype="<?php echo $a2_enctype ?>" style="margin:0px;padding:0px;"> + switch( $a3_type ) + { + case 'upload': + $a3_tmp_submitFunction = ''; + break; + default: + $a3_tmp_submitFunction = 'formSubmit( $(this) ); return false;'; + } +?><form name="<?php echo $a3_name ?>" + target="<?php echo $a3_target ?>" + action="<?php echo Html::url( $a3_action,$a3_subaction,$a3_id ) ?>" + method="<?php echo $a3_method ?>" + enctype="<?php echo $a3_enctype ?>" style="margin:0px;padding:0px;" + class="<?php echo $a3_action ?>" + onSubmit="<?php echo $a3_tmp_submitFunction ?>"><input type="submit" class="invisible" /> <?php if ($this->isEditable() && !$this->isEditMode()) { ?> <input type="hidden" name="mode" value="edit" /> <?php } ?> <input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $a2_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $a2_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a2_id ?>" /><?php +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $this->actionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $this->subActionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $this->getRequestId() ?>" /><?php if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype) ?><?php $a3_title='asdfdfs';$a3_name='asdf';$a3_width='93%';$a3_rowclasses='odd,even';$a3_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$actionName; - $row_classes = explode(',',$a3_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a3_columnclasses); - $row_idx = 0; - $column_idx = 0; - 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="'.$a3_width.'">'; - } - if (!@$conf['interface']['application_mode'] ) - { - echo '<tr class="title"><td>'; - echo '<img src="'.$image_dir.'icon_'.$icon.IMG_ICON_EXT.'" align="left" border="0">'; - if ($this->isEditable()) { ?> +?><?php unset($a3_name,$a3_target,$a3_method,$a3_enctype,$a3_type) ?><?php $a4_title='asdfdfs';$a4_name='asdf';$a4_width='93%';$a4_rowclasses='odd,even';$a4_columnclasses='1,2,3'; ?><?php if (false) { ?> +<div class="window"> +<div class="title"> + <?php $icon=$actionName; ?> + <img src="<?php echo $image_dir.'icon_'.$icon.IMG_ICON_EXT ?>" align="left" /> + <?php if ($this->isEditable()) { ?> <?php if ($this->isEditMode()) { ?><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 } elseif (readonly()) { ?><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /> <?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($actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; - if ( !isset($path) || is_array($path) ) + ?><?php } ?> + <span class="path"><?php echo langHtml($actionName) ?></span>&nbsp;<strong>&rarr;</strong>&nbsp; + <?php + 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>'; + extract($pathElement); ?> + <a javascript:void(0);" onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $url ?>'); return false; " title="<?php echo $title ?>" class="path"><?php echo (!empty($key)?langHtml($key):$name) ?></a> + &nbsp;&rarr;&nbsp; + <?php } ?> + <span class="title"><?php echo langHtml(@$windowTitle) ?></span> + <?php if ( isset($notice_status)) { ?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?php } ?> - </td> - <?php - } - ?> -<?php ?> <!--<td class="menu" style="align:right;"> + <?php ?> <?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 class="menu"><td> - <table class="menu"><tr> - <?php if ( !isset($windowMenu) || !is_array($windowMenu) ) - $windowMenu = array(); +</div> +<ul class="menu"> +<?php + if ( !isset($windowMenu) || !is_array($windowMenu) ) $windowMenu = array(); foreach( $windowMenu as $menu ) { $tmp_text = langHtml($menu['text']); @@ -127,114 +84,107 @@ $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); + $liClass = (isset($menu['url'])?'':'no').'action'.($this->subActionName==$menu['subaction']?' active':''); + $icon_url = $image_dir.'icon/'.$menu['subaction'].'.png'; + ?><li class="<?php echo $liClass?>"><?php if ( isset($menu['url']) ) { - ?><td class="action"><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></td><?php + $link_url = Html::url($actionName,$menu['subaction'],$this->getRequestId() ); + ?><a href="javascript:void(0);" onclick="javascript:loadSubaction(this,'<?php echo $actionName ?>','<?php echo $menu['subaction'] ?>','<?php echo $this->getRequestId() ?>'); return false; " accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>"><img src="<?php echo $icon_url ?>" /><?php echo $tmp_text ?></a><?php } else { - ?><td class="noaction"><?php echo $tmp_text ?></td><?php + ?><span><img src="<?php echo $icon_url ?>" /><?php echo $tmp_text ?></span><?php } } - if (@$conf['help']['enabled'] ) + ?></li><?php + if ( /* Deaktiviert */ false && @$conf['help']['enabled'] ) { - ?><td><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></td><?php + ?><a class="help" href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>"><img src="<?php echo $image_dir.'icon/help.png' ?>" /><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php } - ?> - </tr></table></td> - </tr> -<?php if (isset($notices) && count($notices)>0 ) + ?><?php + ?> +</ul> +<?php global $image_dir; + if (isset($notices) && count($notices)>0 ) { ?> - <tr> - <td align="center" class="notice"> + <dl class="notice"> <?php foreach( $notices as $notice_idx=>$notice ) { ?> - <br><table class="notice"> <?php if ($notice['name']!='') { ?> - <tr> - <th colspan="2"><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?> - </th> - </tr> + <dt><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?></dt> <?php } ?> - <tr class="<?php echo $notice['status'] ?>"> + <dd class="<?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> + </dd> <?php } ?> - </td> - </tr> - <tr> - <td colspan="2"><fieldset></fieldset></td> - </tr> + </dl> <?php } ?> - <tr> - <td class="window"> - <table cellspacing="0" width="100%" cellpadding="4"> -<?php unset($a3_title,$a3_name,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $row_idx++; +<div class="content"><div class="filler"> +<?php } ?><?php unset($a4_title,$a4_name,$a4_width,$a4_rowclasses,$a4_columnclasses) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a6_class='text';$a6_text='type';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_header) ?><?php $a7_class='text';$a7_text='type';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a6_var='gz';$a6_value='gz'; ?><?php - if (isset($a6_key)) - $$a6_var = $a6_value[$a6_key]; +><?php unset($a6_header) ?><?php $a7_var='gz';$a7_value='gz'; ?><?php + if (isset($a7_key)) + $$a7_var = $a7_value[$a7_key]; else - $$a6_var = $a6_value; -?><?php unset($a6_var,$a6_value) ?><?php $a6_list='formats';$a6_name='format';$a6_default='gz';$a6_onchange='';$a6_title='';$a6_class='';$a6_addempty=false;$a6_multiple=false;$a6_size='1';$a6_lang=false; ?><?php -$a6_readonly=false; -$a6_tmp_list = $$a6_list; + $$a7_var = $a7_value; +?><?php unset($a7_var,$a7_value) ?><?php $a7_list='formats';$a7_name='format';$a7_default='gz';$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=false;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php +$a7_readonly=false; +$a7_tmp_list = $$a7_list; if ($this->isEditable() && !$this->isEditMode()) { - echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; + echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; } else { -if ( $a6_addempty!==FALSE ) +if ( $a7_addempty!==FALSE ) { - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; + if ($a7_addempty===TRUE) + $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_tmp_list; + $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_tmp_list; } -?><select<?php if ($a6_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a6_name ?>" name="<?php echo $a6_name; if ($a6_multiple) echo '[]'; ?>" onchange="<?php echo $a6_onchange ?>" title="<?php echo $a6_title ?>" class="<?php echo $a6_class ?>"<?php -if (count($$a6_list)<=1) echo ' disabled="disabled"'; -if ($a6_multiple) echo ' multiple="multiple"'; -if (in_array($a6_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; -echo ' size="'.intval($a6_size).'"'; +?><select<?php if ($a7_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name; if ($a7_multiple) echo '[]'; ?>" onchange="<?php echo $a7_onchange ?>" title="<?php echo $a7_title ?>" class="<?php echo $a7_class ?>"<?php +if (count($$a7_list)<=1) echo ' disabled="disabled"'; +if ($a7_multiple) echo ' multiple="multiple"'; +if (in_array($a7_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($a7_size).'"'; ?>><?php - if ( isset($$a6_name) && isset($a6_tmp_list[$$a6_name]) ) - $a6_tmp_default = $$a6_name; - elseif ( isset($a6_default) ) - $a6_tmp_default = $a6_default; + if ( isset($$a7_name) && isset($a7_tmp_list[$$a7_name]) ) + $a7_tmp_default = $$a7_name; + elseif ( isset($a7_default) ) + $a7_tmp_default = $a7_default; else - $a6_tmp_default = ''; - foreach( $a6_tmp_list as $box_key=>$box_value ) + $a7_tmp_default = ''; + foreach( $a7_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -242,7 +192,7 @@ echo ' size="'.intval($a6_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a6_lang ) + elseif( $a7_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -251,22 +201,21 @@ echo ' size="'.intval($a6_size).'"'; { $box_title = ''; } - echo '<option class="'.$a6_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ((string)$box_key==$a6_tmp_default) + echo '<option class="'.$a7_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a7_tmp_default) echo ' selected="selected"'; echo '>'.$box_value.'</option>'; } ?></select><?php -if (count($$a6_list)==0) echo '<input type="hidden" name="'.$a6_name.'" value="" />'; -if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="'.$box_key.'" />'; +if (count($$a7_list)==0) echo '<input type="hidden" name="'.$a7_name.'" value="" />'; +if (count($$a7_list)==1) echo '<input type="hidden" name="'.$a7_name.'" value="'.$box_key.'" />'; } -?><?php unset($a6_list,$a6_name,$a6_default,$a6_onchange,$a6_title,$a6_class,$a6_addempty,$a6_multiple,$a6_size,$a6_lang) ?></td></tr><?php - $row_idx++; +?><?php unset($a7_list,$a7_name,$a7_default,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?></td></tr><?php $column_idx = 0; ?> <tr > -<?php $a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a6_colspan='2';$a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -274,94 +223,111 @@ if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="' class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a5_colspan) ?><?php $a6_title=lang('OPTIONS'); ?><fieldset><?php if(isset($a6_title)) { ?><legend><?php if(isset($a6_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a6_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a6_title) ?></legend><?php } ?><?php unset($a6_title) ?></fieldset></td></tr><?php - $row_idx++; +><?php unset($a6_colspan,$a6_header) ?><?php $a7_title=lang('OPTIONS'); ?><fieldset><?php if(isset($a7_title)) { ?><legend><?php if(isset($a7_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a7_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a7_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a7_title) ?></fieldset></td></tr><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -></td><?php $column_idx++; ?><td +><?php unset($a6_header) ?></td><?php $a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a6_var='replace';$a6_value='1'; ?><?php - if (isset($a6_key)) - $$a6_var = $a6_value[$a6_key]; +><?php unset($a6_header) ?><?php $a7_var='replace';$a7_value='1'; ?><?php + if (isset($a7_key)) + $$a7_var = $a7_value[$a7_key]; else - $$a6_var = $a6_value; -?><?php unset($a6_var,$a6_value) ?><?php $a6_readonly=false;$a6_name='replace';$a6_value='1';$a6_default=false;$a6_prefix='';$a6_suffix='';$a6_class='';$a6_onchange=''; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; - if ( isset($$a6_name) ) - $a6_tmp_default = $$a6_name; - elseif ( isset($a6_default) ) - $a6_tmp_default = $a6_default; + $$a7_var = $a7_value; +?><?php unset($a7_var,$a7_value) ?><?php $a7_readonly=false;$a7_name='replace';$a7_value='1';$a7_default=false;$a7_prefix='';$a7_suffix='';$a7_class='';$a7_onchange=''; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; + if ( isset($$a7_name) ) + $a7_tmp_default = $$a7_name; + elseif ( isset($a7_default) ) + $a7_tmp_default = $a7_default; else - $a6_tmp_default = ''; - ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a6_name.'_'.$a6_value ?>" name="<?php echo $a6_prefix.$a6_name ?>"<?php if ( $a6_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a6_value ?>" <?php if($a6_value==$a6_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a6_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> -<?php /* #END-IF# */ ?><?php unset($a6_readonly,$a6_name,$a6_value,$a6_default,$a6_prefix,$a6_suffix,$a6_class,$a6_onchange) ?><?php $a6_for='replace_1'; ?><label for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>"><?php unset($a6_for) ?><?php $a7_class='text';$a7_key='replace';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; + $a7_tmp_default = ''; + ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a7_name.'_'.$a7_value ?>" name="<?php echo $a7_prefix.$a7_name ?>"<?php if ( $a7_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a7_value ?>" <?php if($a7_value==$a7_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a7_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> +<?php /* #END-IF# */ ?><?php unset($a7_readonly,$a7_name,$a7_value,$a7_default,$a7_prefix,$a7_suffix,$a7_class,$a7_onchange) ?><?php $a7_for='replace_1'; ?><label<?php if (isset($a7_for)) { ?> for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>" class="label"<?php } ?>> +<?php if (isset($a7_key)) { echo lang($a7_key); if(hasLang($a7_key.'_desc')) { ?><div class="description"><?php echo lang($a7_key.'_desc')?></div> <?php } } ?><?php unset($a7_for) ?><?php $a8_class='text';$a8_key='replace';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_key); +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?></label><br/><?php $a6_readonly=false;$a6_name='replace';$a6_value='0';$a6_default=false;$a6_prefix='';$a6_suffix='';$a6_class='';$a6_onchange=''; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; - if ( isset($$a6_name) ) - $a6_tmp_default = $$a6_name; - elseif ( isset($a6_default) ) - $a6_tmp_default = $a6_default; +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label><br/><?php $a7_readonly=false;$a7_name='replace';$a7_value='0';$a7_default=false;$a7_prefix='';$a7_suffix='';$a7_class='';$a7_onchange=''; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; + if ( isset($$a7_name) ) + $a7_tmp_default = $$a7_name; + elseif ( isset($a7_default) ) + $a7_tmp_default = $a7_default; else - $a6_tmp_default = ''; - ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a6_name.'_'.$a6_value ?>" name="<?php echo $a6_prefix.$a6_name ?>"<?php if ( $a6_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a6_value ?>" <?php if($a6_value==$a6_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a6_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> -<?php /* #END-IF# */ ?><?php unset($a6_readonly,$a6_name,$a6_value,$a6_default,$a6_prefix,$a6_suffix,$a6_class,$a6_onchange) ?><?php $a6_for='replace_0'; ?><label for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>"><?php unset($a6_for) ?><?php $a7_class='text';$a7_key='new';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; + $a7_tmp_default = ''; + ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a7_name.'_'.$a7_value ?>" name="<?php echo $a7_prefix.$a7_name ?>"<?php if ( $a7_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a7_value ?>" <?php if($a7_value==$a7_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a7_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> +<?php /* #END-IF# */ ?><?php unset($a7_readonly,$a7_name,$a7_value,$a7_default,$a7_prefix,$a7_suffix,$a7_class,$a7_onchange) ?><?php $a7_for='replace_0'; ?><label<?php if (isset($a7_for)) { ?> for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>" class="label"<?php } ?>> +<?php if (isset($a7_key)) { echo lang($a7_key); if(hasLang($a7_key.'_desc')) { ?><div class="description"><?php echo lang($a7_key.'_desc')?></div> <?php } } ?><?php unset($a7_for) ?><?php $a8_class='text';$a8_key='new';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_key); +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?></label></td></tr><?php - $row_idx++; +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label></td></tr><?php $column_idx = 0; ?> <tr > -<?php $a5_class='act';$a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a6_class='act';$a6_colspan='2';$a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="act" colspan="2" -><?php unset($a5_class,$a5_colspan) ?><?php $a6_type='ok';$a6_class='ok';$a6_value='ok';$a6_text='button_ok'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) - $a6_text = 'MODE_EDIT'; - $a6_type = 'submit'; - if ( $this->isEditable() && readonly() ) - $a6_type = ''; // Knopf nicht anzeigen - $a6_src = ''; - if ( !empty($a6_type) ) { -?><input type="<?php echo $a6_type ?>"<?php if(isset($a6_src)) { ?> src="<?php echo $image_dir.'icon_'.$a6_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $a6_value ?>" class="ok" title="<?php echo lang($a6_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a6_src) -?><?php } -?><?php unset($a6_type,$a6_class,$a6_value,$a6_text) ?></td></tr> </table> - </td> - </tr> -</table> -</center> +><?php unset($a6_class,$a6_colspan,$a6_header) ?><?php $a7_type='ok';$a7_class='ok';$a7_value='ok';$a7_text='button_ok'; ?><div class="invisible"> +<?php + if ($this->isEditable() && !$this->isEditMode() && !readonly() ) + { + $a7_type = ''; // Knopf nicht anzeigen + ?><a class="action" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span title="<?php echo lang('MODE_EDIT_DESC') ?>"><?php echo langHtml('MODE_EDIT') ?></span></a><?php + } else + { + $a7_type = 'submit'; + } + $a7_tmp_src = ''; + if ( !empty($a7_type)) { +?> +<input type="<?php echo $a7_type ?>"<?php if(isset($a7_src)) { ?> src="<?php $a7_tmp_src ?>"<?php } ?> name="<?php echo $a7_value ?>" class="ok" title="<?php echo lang($a7_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a7_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a7_src); ?> +<?php } + if ($this->isEditable() && $this->isEditMode() ) + { + ?><a class="action" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'')) ?>"><span title="<?php echo lang('CANCEL_DESC') ?>"><?php echo langHtml('CANCEL') ?></span></a><?php + } +?> +</div><?php unset($a7_type,$a7_class,$a7_value,$a7_text) ?></td></tr><?php if (false) { ?> +</div> +</div> +<div class="bottom"> + <div class="status"> + </div> + <div class="command"> + <input type="button" value="<?php echo lang('OK') ?>" onclick="formSubmit( $(this),'<?php echo $view ?>');" /> + <input type="cancel" value="<?php echo lang('CANCEL') ?>" /> + </div> +</div> +</div> <?php if ($showDuration) { ?> <br/> @@ -369,6 +335,4 @@ if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="' <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -</form> -</body> -</html>- \ No newline at end of file +<?php } ?></form> diff --git a/themes/default/pages/html/file/edit.tpl.php b/themes/default/pages/html/file/edit.tpl.php @@ -1,36 +1,6 @@ -<?php $a1_class='main'; ?><?php - if (!defined('OR_VERSION')) die('Forbidden'); - 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($a1_title)?langHtml($a1_title).' - ':(isset($windowTitle)?langHtml($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" > -<?php if ( isset($refresh_url) ) { ?> - <meta http-equiv="refresh" content="<?php echo isset($refresh_timeout)?$refresh_timeout:0 ?>; URL=<?php echo $refresh_url; if (ini_get('session.use_trans_sid')) echo '&'.session_name().'='.session_id(); ?>"> -<?php } ?> - <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 $meta['title'] ?>" ><?php - } -?><?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="main" <?php if (@$conf['interface']['application_mode']) { ?> style="padding:0px;margin:0px;"<?php } ?> > -<?php /* Debug-Information */ if ($showDuration) { echo "<!-- Output Variables are:\n";echo str_replace('-->','-- >',print_r($this->templateVars,true));echo "\n-->";} ?><?php unset($a1_class) ?><?php $a2_action='file';$a2_subaction='replace';$a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='multipart/form-data'; ?><?php +<?php $a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded';$a2_type=''; ?><?php + $a2_action = $actionName; + $a2_subaction = $targetSubActionName; $a2_id = $this->getRequestId(); if ($this->isEditable()) { @@ -44,178 +14,28 @@ $a2_subaction = $subActionName; } } + switch( $a2_type ) + { + case 'upload': + $a2_tmp_submitFunction = ''; + break; + default: + $a2_tmp_submitFunction = 'formSubmit( $(this) ); return false;'; + } ?><form name="<?php echo $a2_name ?>" target="<?php echo $a2_target ?>" action="<?php echo Html::url( $a2_action,$a2_subaction,$a2_id ) ?>" method="<?php echo $a2_method ?>" - enctype="<?php echo $a2_enctype ?>" style="margin:0px;padding:0px;"> + enctype="<?php echo $a2_enctype ?>" style="margin:0px;padding:0px;" + class="<?php echo $a2_action ?>" + onSubmit="<?php echo $a2_tmp_submitFunction ?>"><input type="submit" class="invisible" /> <?php if ($this->isEditable() && !$this->isEditMode()) { ?> <input type="hidden" name="mode" value="edit" /> <?php } ?> <input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $a2_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $a2_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a2_id ?>" /><?php +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $this->actionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $this->subActionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $this->getRequestId() ?>" /><?php if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($a2_action,$a2_subaction,$a2_name,$a2_target,$a2_method,$a2_enctype) ?><?php $a3_title='asdfdfs';$a3_name='asdf';$a3_width='93%';$a3_rowclasses='odd,even';$a3_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$actionName; - $row_classes = explode(',',$a3_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a3_columnclasses); - $row_idx = 0; - $column_idx = 0; - 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="'.$a3_width.'">'; - } - if (!@$conf['interface']['application_mode'] ) - { - echo '<tr class="title"><td>'; - echo '<img src="'.$image_dir.'icon_'.$icon.IMG_ICON_EXT.'" align="left" border="0">'; - if ($this->isEditable()) { ?> - <?php if ($this->isEditMode()) { - ?><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 } - elseif (readonly()) { - ?><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /> <?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($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>'; - if ( isset($notice_status)) - { - ?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?php - } - ?> - </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 class="menu"><td> - <table class="menu"><tr> - <?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']) ) - { - ?><td class="action"><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></td><?php - } - else - { - ?><td class="noaction"><?php echo $tmp_text ?></td><?php - } - } - if (@$conf['help']['enabled'] ) - { - ?><td><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></td><?php - } - ?> - </tr></table></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"> - <?php if ($notice['name']!='') { ?> - <tr> - <th colspan="2"><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?> - </th> - </tr> -<?php } ?> - <tr class="<?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 class="window"> - <table cellspacing="0" width="100%" cellpadding="4"> -<?php unset($a3_title,$a3_name,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><br/><br/><?php $a6_name='file';$a6_class='upload';$a6_size='40'; ?><input size="<?php echo $a6_size ?>" id="id_<?php echo $a6_name ?>" type="file" <?php if (isset($a6_maxlength))echo ' maxlength="'.$a6_maxlength.'"' ?> name="<?php echo $a6_name ?>" class="<?php echo $a6_class ?>" <?php if (in_array($a6_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php unset($a6_name,$a6_class,$a6_size) ?><br/><br/></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a5_class='act'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> - class="act" -><?php unset($a5_class) ?><?php $a6_type='ok';$a6_class='ok';$a6_value='ok';$a6_text='button_ok'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) - $a6_text = 'MODE_EDIT'; - $a6_type = 'submit'; - if ( $this->isEditable() && readonly() ) - $a6_type = ''; // Knopf nicht anzeigen - $a6_src = ''; - if ( !empty($a6_type) ) { -?><input type="<?php echo $a6_type ?>"<?php if(isset($a6_src)) { ?> src="<?php echo $image_dir.'icon_'.$a6_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $a6_value ?>" class="ok" title="<?php echo lang($a6_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a6_src) -?><?php } -?><?php unset($a6_type,$a6_class,$a6_value,$a6_text) ?></td></tr> </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 } ?> -</form> -</body> -</html>- \ No newline at end of file +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><?php $a3_class='line'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><br/><?php $a5_name='file';$a5_class='upload';$a5_size='40'; ?><input size="<?php echo $a5_size ?>" id="id_<?php echo $a5_name ?>" type="file" <?php if (isset($a5_maxlength))echo ' maxlength="'.$a5_maxlength.'"' ?> name="<?php echo $a5_name ?>" class="<?php echo $a5_class ?>" <?php if (in_array($a5_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php unset($a5_name,$a5_class,$a5_size) ?><br/><br/></div></div></form> diff --git a/themes/default/pages/html/file/editvalue.tpl.php b/themes/default/pages/html/file/editvalue.tpl.php @@ -1,125 +1,82 @@ -<?php $a1_class='main'; ?><?php - if (!defined('OR_VERSION')) die('Forbidden'); - 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($a1_title)?langHtml($a1_title).' - ':(isset($windowTitle)?langHtml($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" > -<?php if ( isset($refresh_url) ) { ?> - <meta http-equiv="refresh" content="<?php echo isset($refresh_timeout)?$refresh_timeout:0 ?>; URL=<?php echo $refresh_url; if (ini_get('session.use_trans_sid')) echo '&'.session_name().'='.session_id(); ?>"> -<?php } ?> - <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 $meta['title'] ?>" ><?php - } -?><?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="main" <?php if (@$conf['interface']['application_mode']) { ?> style="padding:0px;margin:0px;"<?php } ?> > -<?php /* Debug-Information */ if ($showDuration) { echo "<!-- Output Variables are:\n";echo str_replace('-->','-- >',print_r($this->templateVars,true));echo "\n-->";} ?><?php unset($a1_class) ?><?php $a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php - $a2_action = $actionName; - $a2_subaction = $targetSubActionName; - $a2_id = $this->getRequestId(); +<?php $a3_name='';$a3_target='_self';$a3_method='post';$a3_enctype='application/x-www-form-urlencoded';$a3_type=''; ?><?php + $a3_action = $actionName; + $a3_subaction = $targetSubActionName; + $a3_id = $this->getRequestId(); if ($this->isEditable()) { if ($this->isEditMode()) { - $a2_method = 'POST'; + $a3_method = 'POST'; } else { - $a2_method = 'GET'; - $a2_subaction = $subActionName; + $a3_method = 'GET'; + $a3_subaction = $subActionName; } } -?><form name="<?php echo $a2_name ?>" - target="<?php echo $a2_target ?>" - action="<?php echo Html::url( $a2_action,$a2_subaction,$a2_id ) ?>" - method="<?php echo $a2_method ?>" - enctype="<?php echo $a2_enctype ?>" style="margin:0px;padding:0px;"> + switch( $a3_type ) + { + case 'upload': + $a3_tmp_submitFunction = ''; + break; + default: + $a3_tmp_submitFunction = 'formSubmit( $(this) ); return false;'; + } +?><form name="<?php echo $a3_name ?>" + target="<?php echo $a3_target ?>" + action="<?php echo Html::url( $a3_action,$a3_subaction,$a3_id ) ?>" + method="<?php echo $a3_method ?>" + enctype="<?php echo $a3_enctype ?>" style="margin:0px;padding:0px;" + class="<?php echo $a3_action ?>" + onSubmit="<?php echo $a3_tmp_submitFunction ?>"><input type="submit" class="invisible" /> <?php if ($this->isEditable() && !$this->isEditMode()) { ?> <input type="hidden" name="mode" value="edit" /> <?php } ?> <input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $a2_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $a2_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a2_id ?>" /><?php +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $this->actionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $this->subActionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $this->getRequestId() ?>" /><?php if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype) ?><?php $a3_width='93%';$a3_rowclasses='odd,even';$a3_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$actionName; - $row_classes = explode(',',$a3_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a3_columnclasses); - $row_idx = 0; - $column_idx = 0; - 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="'.$a3_width.'">'; - } - if (!@$conf['interface']['application_mode'] ) - { - echo '<tr class="title"><td>'; - echo '<img src="'.$image_dir.'icon_'.$icon.IMG_ICON_EXT.'" align="left" border="0">'; - if ($this->isEditable()) { ?> +?><?php unset($a3_name,$a3_target,$a3_method,$a3_enctype,$a3_type) ?><?php $a4_width='93%';$a4_rowclasses='odd,even';$a4_columnclasses='1,2,3'; ?><?php if (false) { ?> +<div class="window"> +<div class="title"> + <?php $icon=$actionName; ?> + <img src="<?php echo $image_dir.'icon_'.$icon.IMG_ICON_EXT ?>" align="left" /> + <?php if ($this->isEditable()) { ?> <?php if ($this->isEditMode()) { ?><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 } elseif (readonly()) { ?><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /> <?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($actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; - if ( !isset($path) || is_array($path) ) + ?><?php } ?> + <span class="path"><?php echo langHtml($actionName) ?></span>&nbsp;<strong>&rarr;</strong>&nbsp; + <?php + 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>'; + extract($pathElement); ?> + <a javascript:void(0);" onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $url ?>'); return false; " title="<?php echo $title ?>" class="path"><?php echo (!empty($key)?langHtml($key):$name) ?></a> + &nbsp;&rarr;&nbsp; + <?php } ?> + <span class="title"><?php echo langHtml(@$windowTitle) ?></span> + <?php if ( isset($notice_status)) { ?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?php } ?> - </td> - <?php - } - ?> -<?php ?> <!--<td class="menu" style="align:right;"> + <?php ?> <?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 class="menu"><td> - <table class="menu"><tr> - <?php if ( !isset($windowMenu) || !is_array($windowMenu) ) - $windowMenu = array(); +</div> +<ul class="menu"> +<?php + if ( !isset($windowMenu) || !is_array($windowMenu) ) $windowMenu = array(); foreach( $windowMenu as $menu ) { $tmp_text = langHtml($menu['text']); @@ -127,110 +84,119 @@ $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); + $liClass = (isset($menu['url'])?'':'no').'action'.($this->subActionName==$menu['subaction']?' active':''); + $icon_url = $image_dir.'icon/'.$menu['subaction'].'.png'; + ?><li class="<?php echo $liClass?>"><?php if ( isset($menu['url']) ) { - ?><td class="action"><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></td><?php + $link_url = Html::url($actionName,$menu['subaction'],$this->getRequestId() ); + ?><a href="javascript:void(0);" onclick="javascript:loadSubaction(this,'<?php echo $actionName ?>','<?php echo $menu['subaction'] ?>','<?php echo $this->getRequestId() ?>'); return false; " accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>"><img src="<?php echo $icon_url ?>" /><?php echo $tmp_text ?></a><?php } else { - ?><td class="noaction"><?php echo $tmp_text ?></td><?php + ?><span><img src="<?php echo $icon_url ?>" /><?php echo $tmp_text ?></span><?php } } - if (@$conf['help']['enabled'] ) + ?></li><?php + if ( /* Deaktiviert */ false && @$conf['help']['enabled'] ) { - ?><td><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></td><?php + ?><a class="help" href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>"><img src="<?php echo $image_dir.'icon/help.png' ?>" /><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php } - ?> - </tr></table></td> - </tr> -<?php if (isset($notices) && count($notices)>0 ) + ?><?php + ?> +</ul> +<?php global $image_dir; + if (isset($notices) && count($notices)>0 ) { ?> - <tr> - <td align="center" class="notice"> + <dl class="notice"> <?php foreach( $notices as $notice_idx=>$notice ) { ?> - <br><table class="notice"> <?php if ($notice['name']!='') { ?> - <tr> - <th colspan="2"><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?> - </th> - </tr> + <dt><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?></dt> <?php } ?> - <tr class="<?php echo $notice['status'] ?>"> + <dd class="<?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> + </dd> <?php } ?> - </td> - </tr> - <tr> - <td colspan="2"><fieldset></fieldset></td> - </tr> + </dl> <?php } ?> - <tr> - <td class="window"> - <table cellspacing="0" width="100%" cellpadding="4"> -<?php unset($a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $row_idx++; +<div class="content"><div class="filler"> +<?php } ?><?php unset($a4_width,$a4_rowclasses,$a4_columnclasses) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a6_class='text';$a6_text='GLOBAL_VALUE';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_header) ?><?php $a7_class='text';$a7_text='GLOBAL_VALUE';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a6_name='value';$a6_rows='40';$a6_cols='40';$a6_class='editor';$a6_default=''; ?><?php if ($this->isEditMode()) { -?><textarea class="<?php echo $a6_class ?>" name="<?php echo $a6_name ?>" rows="<?php echo $a6_rows ?>" cols="<?php echo $a6_cols ?>"><?php echo htmlentities(isset($$a6_name)?$$a6_name:$a6_default) ?></textarea><?php +><?php unset($a6_header) ?><?php $a7_name='value';$a7_rows='40';$a7_cols='40';$a7_class='editor';$a7_default=''; ?><?php if ($this->isEditMode()) { +?><textarea class="<?php echo $a7_class ?>" name="<?php echo $a7_name ?>" rows="<?php echo $a7_rows ?>" cols="<?php echo $a7_cols ?>"><?php echo htmlentities(isset($$a7_name)?$$a7_name:$a7_default) ?></textarea><?php } else { -?><span class="<?php echo $a6_class ?>"><?php echo isset($$a6_name)?$$a6_name:$a6_default ?></span><?php } ?><?php unset($a6_name,$a6_rows,$a6_cols,$a6_class,$a6_default) ?></td></tr><?php - $row_idx++; +?><span class="<?php echo $a7_class ?>"><?php echo isset($$a7_name)?$$a7_name:$a7_default ?></span><?php } ?><?php unset($a7_name,$a7_rows,$a7_cols,$a7_class,$a7_default) ?></td></tr><?php $column_idx = 0; ?> <tr > -<?php $a5_class='act';$a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a6_class='act';$a6_colspan='2';$a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="act" colspan="2" -><?php unset($a5_class,$a5_colspan) ?><?php $a6_type='ok';$a6_class='ok';$a6_value='ok';$a6_text='button_ok'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) - $a6_text = 'MODE_EDIT'; - $a6_type = 'submit'; - if ( $this->isEditable() && readonly() ) - $a6_type = ''; // Knopf nicht anzeigen - $a6_src = ''; - if ( !empty($a6_type) ) { -?><input type="<?php echo $a6_type ?>"<?php if(isset($a6_src)) { ?> src="<?php echo $image_dir.'icon_'.$a6_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $a6_value ?>" class="ok" title="<?php echo lang($a6_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a6_src) -?><?php } -?><?php unset($a6_type,$a6_class,$a6_value,$a6_text) ?></td></tr> </table> - </td> - </tr> -</table> -</center> +><?php unset($a6_class,$a6_colspan,$a6_header) ?><?php $a7_type='ok';$a7_class='ok';$a7_value='ok';$a7_text='button_ok'; ?><div class="invisible"> +<?php + if ($this->isEditable() && !$this->isEditMode() && !readonly() ) + { + $a7_type = ''; // Knopf nicht anzeigen + ?><a class="action" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span title="<?php echo lang('MODE_EDIT_DESC') ?>"><?php echo langHtml('MODE_EDIT') ?></span></a><?php + } else + { + $a7_type = 'submit'; + } + $a7_tmp_src = ''; + if ( !empty($a7_type)) { +?> +<input type="<?php echo $a7_type ?>"<?php if(isset($a7_src)) { ?> src="<?php $a7_tmp_src ?>"<?php } ?> name="<?php echo $a7_value ?>" class="ok" title="<?php echo lang($a7_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a7_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a7_src); ?> +<?php } + if ($this->isEditable() && $this->isEditMode() ) + { + ?><a class="action" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'')) ?>"><span title="<?php echo lang('CANCEL_DESC') ?>"><?php echo langHtml('CANCEL') ?></span></a><?php + } +?> +</div><?php unset($a7_type,$a7_class,$a7_value,$a7_text) ?></td></tr><?php if (false) { ?> +</div> +</div> +<div class="bottom"> + <div class="status"> + </div> + <div class="command"> + <input type="button" value="<?php echo lang('OK') ?>" onclick="formSubmit( $(this),'<?php echo $view ?>');" /> + <input type="cancel" value="<?php echo lang('CANCEL') ?>" /> + </div> +</div> +</div> <?php if ($showDuration) { ?> <br/> @@ -238,12 +204,7 @@ <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -</form> -<?php $a2_field='value'; ?><?php -if (isset($errors[0])) $a2_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $a2_field ?>.focus(); -document.forms[0].<?php echo $a2_field ?>.select(); +<?php } ?></form> +<?php $a3_field='value'; ?><script name="JavaScript" type="text/javascript"><!-- </script> -<?php unset($a2_field) ?></body> -</html>- \ No newline at end of file +<?php unset($a3_field) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/file/extract.tpl.php b/themes/default/pages/html/file/extract.tpl.php @@ -1,125 +1,82 @@ -<?php $a1_class='main'; ?><?php - if (!defined('OR_VERSION')) die('Forbidden'); - 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($a1_title)?langHtml($a1_title).' - ':(isset($windowTitle)?langHtml($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" > -<?php if ( isset($refresh_url) ) { ?> - <meta http-equiv="refresh" content="<?php echo isset($refresh_timeout)?$refresh_timeout:0 ?>; URL=<?php echo $refresh_url; if (ini_get('session.use_trans_sid')) echo '&'.session_name().'='.session_id(); ?>"> -<?php } ?> - <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 $meta['title'] ?>" ><?php - } -?><?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="main" <?php if (@$conf['interface']['application_mode']) { ?> style="padding:0px;margin:0px;"<?php } ?> > -<?php /* Debug-Information */ if ($showDuration) { echo "<!-- Output Variables are:\n";echo str_replace('-->','-- >',print_r($this->templateVars,true));echo "\n-->";} ?><?php unset($a1_class) ?><?php $a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php - $a2_action = $actionName; - $a2_subaction = $targetSubActionName; - $a2_id = $this->getRequestId(); +<?php $a3_name='';$a3_target='_self';$a3_method='post';$a3_enctype='application/x-www-form-urlencoded';$a3_type=''; ?><?php + $a3_action = $actionName; + $a3_subaction = $targetSubActionName; + $a3_id = $this->getRequestId(); if ($this->isEditable()) { if ($this->isEditMode()) { - $a2_method = 'POST'; + $a3_method = 'POST'; } else { - $a2_method = 'GET'; - $a2_subaction = $subActionName; + $a3_method = 'GET'; + $a3_subaction = $subActionName; } } -?><form name="<?php echo $a2_name ?>" - target="<?php echo $a2_target ?>" - action="<?php echo Html::url( $a2_action,$a2_subaction,$a2_id ) ?>" - method="<?php echo $a2_method ?>" - enctype="<?php echo $a2_enctype ?>" style="margin:0px;padding:0px;"> + switch( $a3_type ) + { + case 'upload': + $a3_tmp_submitFunction = ''; + break; + default: + $a3_tmp_submitFunction = 'formSubmit( $(this) ); return false;'; + } +?><form name="<?php echo $a3_name ?>" + target="<?php echo $a3_target ?>" + action="<?php echo Html::url( $a3_action,$a3_subaction,$a3_id ) ?>" + method="<?php echo $a3_method ?>" + enctype="<?php echo $a3_enctype ?>" style="margin:0px;padding:0px;" + class="<?php echo $a3_action ?>" + onSubmit="<?php echo $a3_tmp_submitFunction ?>"><input type="submit" class="invisible" /> <?php if ($this->isEditable() && !$this->isEditMode()) { ?> <input type="hidden" name="mode" value="edit" /> <?php } ?> <input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $a2_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $a2_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a2_id ?>" /><?php +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $this->actionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $this->subActionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $this->getRequestId() ?>" /><?php if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype) ?><?php $a3_title='asdfdfs';$a3_name='asdf';$a3_width='93%';$a3_rowclasses='odd,even';$a3_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$actionName; - $row_classes = explode(',',$a3_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a3_columnclasses); - $row_idx = 0; - $column_idx = 0; - 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="'.$a3_width.'">'; - } - if (!@$conf['interface']['application_mode'] ) - { - echo '<tr class="title"><td>'; - echo '<img src="'.$image_dir.'icon_'.$icon.IMG_ICON_EXT.'" align="left" border="0">'; - if ($this->isEditable()) { ?> +?><?php unset($a3_name,$a3_target,$a3_method,$a3_enctype,$a3_type) ?><?php $a4_title='asdfdfs';$a4_name='asdf';$a4_width='93%';$a4_rowclasses='odd,even';$a4_columnclasses='1,2,3'; ?><?php if (false) { ?> +<div class="window"> +<div class="title"> + <?php $icon=$actionName; ?> + <img src="<?php echo $image_dir.'icon_'.$icon.IMG_ICON_EXT ?>" align="left" /> + <?php if ($this->isEditable()) { ?> <?php if ($this->isEditMode()) { ?><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 } elseif (readonly()) { ?><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /> <?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($actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; - if ( !isset($path) || is_array($path) ) + ?><?php } ?> + <span class="path"><?php echo langHtml($actionName) ?></span>&nbsp;<strong>&rarr;</strong>&nbsp; + <?php + 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>'; + extract($pathElement); ?> + <a javascript:void(0);" onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $url ?>'); return false; " title="<?php echo $title ?>" class="path"><?php echo (!empty($key)?langHtml($key):$name) ?></a> + &nbsp;&rarr;&nbsp; + <?php } ?> + <span class="title"><?php echo langHtml(@$windowTitle) ?></span> + <?php if ( isset($notice_status)) { ?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?php } ?> - </td> - <?php - } - ?> -<?php ?> <!--<td class="menu" style="align:right;"> + <?php ?> <?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 class="menu"><td> - <table class="menu"><tr> - <?php if ( !isset($windowMenu) || !is_array($windowMenu) ) - $windowMenu = array(); +</div> +<ul class="menu"> +<?php + if ( !isset($windowMenu) || !is_array($windowMenu) ) $windowMenu = array(); foreach( $windowMenu as $menu ) { $tmp_text = langHtml($menu['text']); @@ -127,78 +84,88 @@ $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); + $liClass = (isset($menu['url'])?'':'no').'action'.($this->subActionName==$menu['subaction']?' active':''); + $icon_url = $image_dir.'icon/'.$menu['subaction'].'.png'; + ?><li class="<?php echo $liClass?>"><?php if ( isset($menu['url']) ) { - ?><td class="action"><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></td><?php + $link_url = Html::url($actionName,$menu['subaction'],$this->getRequestId() ); + ?><a href="javascript:void(0);" onclick="javascript:loadSubaction(this,'<?php echo $actionName ?>','<?php echo $menu['subaction'] ?>','<?php echo $this->getRequestId() ?>'); return false; " accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>"><img src="<?php echo $icon_url ?>" /><?php echo $tmp_text ?></a><?php } else { - ?><td class="noaction"><?php echo $tmp_text ?></td><?php + ?><span><img src="<?php echo $icon_url ?>" /><?php echo $tmp_text ?></span><?php } } - if (@$conf['help']['enabled'] ) + ?></li><?php + if ( /* Deaktiviert */ false && @$conf['help']['enabled'] ) { - ?><td><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></td><?php + ?><a class="help" href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>"><img src="<?php echo $image_dir.'icon/help.png' ?>" /><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php } - ?> - </tr></table></td> - </tr> -<?php if (isset($notices) && count($notices)>0 ) + ?><?php + ?> +</ul> +<?php global $image_dir; + if (isset($notices) && count($notices)>0 ) { ?> - <tr> - <td align="center" class="notice"> + <dl class="notice"> <?php foreach( $notices as $notice_idx=>$notice ) { ?> - <br><table class="notice"> <?php if ($notice['name']!='') { ?> - <tr> - <th colspan="2"><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?> - </th> - </tr> + <dt><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?></dt> <?php } ?> - <tr class="<?php echo $notice['status'] ?>"> + <dd class="<?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> + </dd> <?php } ?> - </td> - </tr> - <tr> - <td colspan="2"><fieldset></fieldset></td> - </tr> + </dl> <?php } ?> - <tr> - <td class="window"> - <table cellspacing="0" width="100%" cellpadding="4"> -<?php unset($a3_title,$a3_name,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $row_idx++; +<div class="content"><div class="filler"> +<?php } ?><?php unset($a4_title,$a4_name,$a4_width,$a4_rowclasses,$a4_columnclasses) ?><?php $column_idx = 0; ?> <tr > -<?php $a5_class='act';$a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a6_class='act';$a6_colspan='2';$a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="act" colspan="2" -><?php unset($a5_class,$a5_colspan) ?><?php $a6_type='ok';$a6_class='ok';$a6_value='ok';$a6_text='button_ok'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) - $a6_text = 'MODE_EDIT'; - $a6_type = 'submit'; - if ( $this->isEditable() && readonly() ) - $a6_type = ''; // Knopf nicht anzeigen - $a6_src = ''; - if ( !empty($a6_type) ) { -?><input type="<?php echo $a6_type ?>"<?php if(isset($a6_src)) { ?> src="<?php echo $image_dir.'icon_'.$a6_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $a6_value ?>" class="ok" title="<?php echo lang($a6_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a6_src) -?><?php } -?><?php unset($a6_type,$a6_class,$a6_value,$a6_text) ?></td></tr> </table> - </td> - </tr> -</table> -</center> +><?php unset($a6_class,$a6_colspan,$a6_header) ?><?php $a7_type='ok';$a7_class='ok';$a7_value='ok';$a7_text='button_ok'; ?><div class="invisible"> +<?php + if ($this->isEditable() && !$this->isEditMode() && !readonly() ) + { + $a7_type = ''; // Knopf nicht anzeigen + ?><a class="action" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span title="<?php echo lang('MODE_EDIT_DESC') ?>"><?php echo langHtml('MODE_EDIT') ?></span></a><?php + } else + { + $a7_type = 'submit'; + } + $a7_tmp_src = ''; + if ( !empty($a7_type)) { +?> +<input type="<?php echo $a7_type ?>"<?php if(isset($a7_src)) { ?> src="<?php $a7_tmp_src ?>"<?php } ?> name="<?php echo $a7_value ?>" class="ok" title="<?php echo lang($a7_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a7_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a7_src); ?> +<?php } + if ($this->isEditable() && $this->isEditMode() ) + { + ?><a class="action" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'')) ?>"><span title="<?php echo lang('CANCEL_DESC') ?>"><?php echo langHtml('CANCEL') ?></span></a><?php + } +?> +</div><?php unset($a7_type,$a7_class,$a7_value,$a7_text) ?></td></tr><?php if (false) { ?> +</div> +</div> +<div class="bottom"> + <div class="status"> + </div> + <div class="command"> + <input type="button" value="<?php echo lang('OK') ?>" onclick="formSubmit( $(this),'<?php echo $view ?>');" /> + <input type="cancel" value="<?php echo lang('CANCEL') ?>" /> + </div> +</div> +</div> <?php if ($showDuration) { ?> <br/> @@ -206,6 +173,4 @@ <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -</form> -</body> -</html>- \ No newline at end of file +<?php } ?></form> diff --git a/themes/default/pages/html/file/info.tpl.php b/themes/default/pages/html/file/info.tpl.php @@ -0,0 +1,611 @@ +<?php $a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded';$a2_type=''; ?><?php + $a2_action = $actionName; + $a2_subaction = $targetSubActionName; + $a2_id = $this->getRequestId(); + if ($this->isEditable()) + { + if ($this->isEditMode()) + { + $a2_method = 'POST'; + } + else + { + $a2_method = 'GET'; + $a2_subaction = $subActionName; + } + } + switch( $a2_type ) + { + case 'upload': + $a2_tmp_submitFunction = ''; + break; + default: + $a2_tmp_submitFunction = 'formSubmit( $(this) ); return false;'; + } +?><form name="<?php echo $a2_name ?>" + target="<?php echo $a2_target ?>" + action="<?php echo Html::url( $a2_action,$a2_subaction,$a2_id ) ?>" + method="<?php echo $a2_method ?>" + enctype="<?php echo $a2_enctype ?>" style="margin:0px;padding:0px;" + class="<?php echo $a2_action ?>" + onSubmit="<?php echo $a2_tmp_submitFunction ?>"><input type="submit" class="invisible" /> +<?php if ($this->isEditable() && !$this->isEditMode()) { ?> +<input type="hidden" name="mode" value="edit" /> +<?php } ?> +<input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $this->actionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $this->subActionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $this->getRequestId() ?>" /><?php + if ( $conf['interface']['url_sessionid'] ) + echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><fieldset><?php if(isset($a3_title)) { ?><legend><?php if(isset($a3_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a3_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a3_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='text';$a6_text='global_name';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php + $langF = $a6_escape?'langHtml':'lang'; + $tmp_text = $langF($a6_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='name';$a6_var='name';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php + $langF = $a6_escape?'langHtml':'lang'; + $tmp_text = isset($$a6_var)?$$a6_var:$langF('UNKNOWN'); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?></div></div><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='text';$a6_text='global_filename';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php + $langF = $a6_escape?'langHtml':'lang'; + $tmp_text = $langF($a6_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='filename';$a6_var='filename';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php + $langF = $a6_escape?'langHtml':'lang'; + $tmp_text = isset($$a6_var)?$$a6_var:$langF('UNKNOWN'); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?></div></div><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='text';$a6_text='file_extension';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php + $langF = $a6_escape?'langHtml':'lang'; + $tmp_text = $langF($a6_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='extension';$a6_var='extension';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php + $langF = $a6_escape?'langHtml':'lang'; + $tmp_text = isset($$a6_var)?$$a6_var:$langF('UNKNOWN'); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?></div></div><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='text';$a6_text='global_description';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php + $langF = $a6_escape?'langHtml':'lang'; + $tmp_text = $langF($a6_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='text';$a6_var='description';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php + $langF = $a6_escape?'langHtml':'lang'; + $tmp_text = isset($$a6_var)?$$a6_var:$langF('UNKNOWN'); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?></div></div></fieldset><?php $a3_title=lang('additional_info'); ?><fieldset><?php if(isset($a3_title)) { ?><legend><?php if(isset($a3_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a3_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a3_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a3_title) ?><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_for='full_filename'; ?><label<?php if (isset($a6_for)) { ?> for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" class="label"<?php } ?>> +<?php if (isset($a6_key)) { echo lang($a6_key); if(hasLang($a6_key.'_desc')) { ?><div class="description"><?php echo lang($a6_key.'_desc')?></div> <?php } } ?><?php unset($a6_for) ?><?php $a7_class='text';$a7_text='global_full_filename';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='text';$a6_var='full_filename';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php + $langF = $a6_escape?'langHtml':'lang'; + $tmp_text = isset($$a6_var)?$$a6_var:$langF('UNKNOWN'); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?></div></div><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_for='size'; ?><label<?php if (isset($a6_for)) { ?> for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" class="label"<?php } ?>> +<?php if (isset($a6_key)) { echo lang($a6_key); if(hasLang($a6_key.'_desc')) { ?><div class="description"><?php echo lang($a6_key.'_desc')?></div> <?php } } ?><?php unset($a6_for) ?><?php $a7_class='text';$a7_text='FILE_SIZE';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?></div><?php $a5_class='text';$a5_var='size';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php + $langF = $a5_escape?'langHtml':'lang'; + $tmp_text = isset($$a5_var)?$$a5_var:$langF('UNKNOWN'); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_var,$a5_escape,$a5_cut) ?></div><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_for='mimetype'; ?><label<?php if (isset($a6_for)) { ?> for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" class="label"<?php } ?>> +<?php if (isset($a6_key)) { echo lang($a6_key); if(hasLang($a6_key.'_desc')) { ?><div class="description"><?php echo lang($a6_key.'_desc')?></div> <?php } } ?><?php unset($a6_for) ?><?php $a7_class='text';$a7_text='FILE_mimetype';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='text';$a6_var='mimetype';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php + $langF = $a6_escape?'langHtml':'lang'; + $tmp_text = isset($$a6_var)?$$a6_var:$langF('UNKNOWN'); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?><br/><?php $a6_title='';$a6_type='';$a6_class='action';$a6_action='file';$a6_subaction='size';$a6_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $a6_target = $view; + switch( $a6_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a6_action)?$a6_action:$this->actionName,'subaction'=>!empty($a6_subaction)?$a6_subaction:$this->subActionName,'id'=>!empty($a6_id)?$a6_id:$this->getRequestId()) + +array(REQ_PARAM_TOKEN=>token()) + +$params ); + $tmp_function_call = "submitLink(this,'".str_replace("\n",'',str_replace('"','&quot;',$tmp_data))."');"; + break; + case 'view': + $tmp_function_call = "startView(this,'".(!empty($a6_subaction)?$a6_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a6_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a6_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a6_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a6_frame ?>"<?php if (isset($a6_name)) { ?> name="<?php echo $a6_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a6_class ?>"<?php if (isset($a6_accesskey)) echo ' accesskey="'.$a6_accesskey.'"' ?> title="<?php echo encodeHtml($a6_title) ?>"><?php unset($a6_title,$a6_type,$a6_class,$a6_action,$a6_subaction,$a6_frame) ?><?php $a7_class='text';$a7_key='menu_file_size';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?></a></div></div><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='text';$a6_text=lang('id');$a6_escape=true;$a6_cut='both'; ?><?php + $a6_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php + $langF = $a6_escape?'langHtml':'lang'; + $tmp_text = $langF($a6_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='text';$a6_var='objectid';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php + $langF = $a6_escape?'langHtml':'lang'; + $tmp_text = isset($$a6_var)?$$a6_var:$langF('UNKNOWN'); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?></div></div><?php $a4_present='cache_filename'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_present) ?><?php $a5_class='line'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='label'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_for='cache_filename'; ?><label<?php if (isset($a7_for)) { ?> for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>" class="label"<?php } ?>> +<?php if (isset($a7_key)) { echo lang($a7_key); if(hasLang($a7_key.'_desc')) { ?><div class="description"><?php echo lang($a7_key.'_desc')?></div> <?php } } ?><?php unset($a7_for) ?><?php $a8_class='text';$a8_text='CACHE_FILENAME';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php + $langF = $a8_escape?'langHtml':'lang'; + $tmp_text = $langF($a8_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></label></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='text';$a7_var='cache_filename';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = isset($$a7_var)?$$a7_var:$langF('UNKNOWN'); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_escape,$a7_cut) ?><br/><?php $a7_icon='el_date';$a7_align='left'; ?><?php + $a7_tmp_image_file = $image_dir.'icon_'.$a7_icon.IMG_ICON_EXT; + $a7_size = '16x16'; + $a7_tmp_title = basename($a7_tmp_image_file); +?><img alt="<?php echo $a7_tmp_title; if (isset($a7_size)) { echo ' ('; list($a7_tmp_width,$a7_tmp_height)=explode('x',$a7_size);echo $a7_tmp_width.'x'.$a7_tmp_height; echo')';} ?>" src="<?php echo $a7_tmp_image_file ?>" border="0"<?php if(isset($a7_align)) echo ' align="'.$a7_align.'"' ?><?php if (isset($a7_size)) { list($a7_tmp_width,$a7_tmp_height)=explode('x',$a7_size);echo ' width="'.$a7_tmp_width.'" height="'.$a7_tmp_height.'"';} ?> /><?php unset($a7_icon,$a7_align) ?><?php $a7_date=$cache_filemtime; ?><?php + global $conf; + $time = $a7_date; + if ( isset($_COOKIE['or_timezone_offset']) ) + { + $time -= (int)date('Z'); + $time += ((int)$_COOKIE['or_timezone_offset']*60); + } + 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($a7_date) ?></div></div><?php } ?><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_for='pages'; ?><label<?php if (isset($a6_for)) { ?> for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" class="label"<?php } ?>> +<?php if (isset($a6_key)) { echo lang($a6_key); if(hasLang($a6_key.'_desc')) { ?><div class="description"><?php echo lang($a6_key.'_desc')?></div> <?php } } ?><?php unset($a6_for) ?><?php $a7_class='text';$a7_text='FILE_PAGES';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_width='100%';$a6_space='0px';$a6_padding='0px'; ?><?php + $last_column_idx = @$column_idx; + $column_idx = 0; + $coloumn_widths = array(); + $row_classes = array(); + $column_classes = array(); +?><table class="%class%" cellspacing="0px" width="100%" cellpadding="0px"> +<?php unset($a6_width,$a6_space,$a6_padding) ?><?php $a7_list='pages';$a7_extract=true;$a7_key='list_key';$a7_value='list_value'; ?><?php + $a7_list_tmp_key = $a7_key; + $a7_list_tmp_value = $a7_value; + $a7_list_extract = $a7_extract; + unset($a7_key); + unset($a7_value); + if ( !isset($$a7_list) || !is_array($$a7_list) ) + $$a7_list = array(); + foreach( $$a7_list as $$a7_list_tmp_key => $$a7_list_tmp_value ) + { + if ( $a7_list_extract ) + { + if ( !is_array($$a7_list_tmp_value) ) + { + print_r($$a7_list_tmp_value); + die( 'not an array at key: '.$$a7_list_tmp_key ); + } + extract($$a7_list_tmp_value); + } +?><?php unset($a7_list,$a7_extract,$a7_key,$a7_value) ?><?php + $column_idx = 0; +?> +<tr +> +<?php $a9_header=false; ?><?php $column_idx++; ?><td +<?php if (!empty($column_widths)) { ?> + width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" +<?php } ?> +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> +><?php unset($a9_header) ?><?php $a10_title='';$a10_type='';$a10_target='cms_main';$a10_url=$url;$a10_class='';$a10_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $params[REQ_PARAM_TARGET] = $a10_target; + switch( $a10_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a10_action)?$a10_action:$this->actionName,'subaction'=>!empty($a10_subaction)?$a10_subaction:$this->subActionName,'id'=>!empty($a10_id)?$a10_id:$this->getRequestId()) + +array(REQ_PARAM_TOKEN=>token()) + +$params ); + $tmp_function_call = "submitLink(this,'".str_replace("\n",'',str_replace('"','&quot;',$tmp_data))."');"; + break; + case 'view': + $tmp_function_call = "startView(this,'".(!empty($a10_subaction)?$a10_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a10_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a10_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a10_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a10_frame ?>"<?php if (isset($a10_name)) { ?> name="<?php echo $a10_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a10_class ?>"<?php if (isset($a10_accesskey)) echo ' accesskey="'.$a10_accesskey.'"' ?> title="<?php echo encodeHtml($a10_title) ?>"><?php unset($a10_title,$a10_type,$a10_target,$a10_url,$a10_class,$a10_frame) ?><?php $a11_align='left';$a11_type='page'; ?><?php + $a11_tmp_image_file = $image_dir.'icon_'.$a11_type.IMG_ICON_EXT; + $a11_size = '16x16'; + $a11_tmp_title = basename($a11_tmp_image_file); +?><img alt="<?php echo $a11_tmp_title; if (isset($a11_size)) { echo ' ('; list($a11_tmp_width,$a11_tmp_height)=explode('x',$a11_size);echo $a11_tmp_width.'x'.$a11_tmp_height; echo')';} ?>" src="<?php echo $a11_tmp_image_file ?>" border="0"<?php if(isset($a11_align)) echo ' align="'.$a11_align.'"' ?><?php if (isset($a11_size)) { list($a11_tmp_width,$a11_tmp_height)=explode('x',$a11_size);echo ' width="'.$a11_tmp_width.'" height="'.$a11_tmp_height.'"';} ?> /><?php unset($a11_align,$a11_type) ?><?php $a11_class='text';$a11_var='name';$a11_escape=true;$a11_cut='both'; ?><?php + $a11_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a11_class ?>" title="<?php echo $a11_title ?>"><?php + $langF = $a11_escape?'langHtml':'lang'; + $tmp_text = isset($$a11_var)?$$a11_var:$langF('UNKNOWN'); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_var,$a11_escape,$a11_cut) ?></a></td></tr><?php } ?><?php + $column_idx = $last_column_idx; +?> +</table><?php $a6_empty='pages'; ?><?php + if ( !isset($$a6_empty) ) + $a6_tmp_exec = empty($a6_empty); + elseif ( is_array($$a6_empty) ) + $a6_tmp_exec = (count($$a6_empty)==0); + elseif ( is_bool($$a6_empty) ) + $a6_tmp_exec = true; + else + $a6_tmp_exec = empty( $$a6_empty ); + $a6_tmp_last_exec = $a6_tmp_exec; + if ( $a6_tmp_exec ) + { +?> +<?php unset($a6_empty) ?><?php $a7_class='text';$a7_text='GLOBAL_NOT_FOUND';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?><?php } ?></div></div></fieldset><?php $a3_title=lang('prop_userinfo'); ?><fieldset><?php if(isset($a3_title)) { ?><legend><?php if(isset($a3_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a3_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a3_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a3_title) ?><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='text';$a6_text='global_created';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php + $langF = $a6_escape?'langHtml':'lang'; + $tmp_text = $langF($a6_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_icon='el_date';$a6_align='left'; ?><?php + $a6_tmp_image_file = $image_dir.'icon_'.$a6_icon.IMG_ICON_EXT; + $a6_size = '16x16'; + $a6_tmp_title = basename($a6_tmp_image_file); +?><img alt="<?php echo $a6_tmp_title; if (isset($a6_size)) { echo ' ('; list($a6_tmp_width,$a6_tmp_height)=explode('x',$a6_size);echo $a6_tmp_width.'x'.$a6_tmp_height; echo')';} ?>" src="<?php echo $a6_tmp_image_file ?>" border="0"<?php if(isset($a6_align)) echo ' align="'.$a6_align.'"' ?><?php if (isset($a6_size)) { list($a6_tmp_width,$a6_tmp_height)=explode('x',$a6_size);echo ' width="'.$a6_tmp_width.'" height="'.$a6_tmp_height.'"';} ?> /><?php unset($a6_icon,$a6_align) ?><?php $a6_date=$create_date; ?><?php + global $conf; + $time = $a6_date; + if ( isset($_COOKIE['or_timezone_offset']) ) + { + $time -= (int)date('Z'); + $time += ((int)$_COOKIE['or_timezone_offset']*60); + } + 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($a6_date) ?><br/><?php $a6_icon='user';$a6_align='left'; ?><?php + $a6_tmp_image_file = $image_dir.'icon_'.$a6_icon.IMG_ICON_EXT; + $a6_size = '16x16'; + $a6_tmp_title = basename($a6_tmp_image_file); +?><img alt="<?php echo $a6_tmp_title; if (isset($a6_size)) { echo ' ('; list($a6_tmp_width,$a6_tmp_height)=explode('x',$a6_size);echo $a6_tmp_width.'x'.$a6_tmp_height; echo')';} ?>" src="<?php echo $a6_tmp_image_file ?>" border="0"<?php if(isset($a6_align)) echo ' align="'.$a6_align.'"' ?><?php if (isset($a6_size)) { list($a6_tmp_width,$a6_tmp_height)=explode('x',$a6_size);echo ' width="'.$a6_tmp_width.'" height="'.$a6_tmp_height.'"';} ?> /><?php unset($a6_icon,$a6_align) ?><?php $a6_user=$create_user; ?><?php + if ( is_object($a6_user) ) + $user = $a6_user; + else + $user = $$a6_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($a6_user) ?></div></div><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='text';$a6_text='global_lastchange';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php + $langF = $a6_escape?'langHtml':'lang'; + $tmp_text = $langF($a6_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_icon='el_date';$a6_align='left'; ?><?php + $a6_tmp_image_file = $image_dir.'icon_'.$a6_icon.IMG_ICON_EXT; + $a6_size = '16x16'; + $a6_tmp_title = basename($a6_tmp_image_file); +?><img alt="<?php echo $a6_tmp_title; if (isset($a6_size)) { echo ' ('; list($a6_tmp_width,$a6_tmp_height)=explode('x',$a6_size);echo $a6_tmp_width.'x'.$a6_tmp_height; echo')';} ?>" src="<?php echo $a6_tmp_image_file ?>" border="0"<?php if(isset($a6_align)) echo ' align="'.$a6_align.'"' ?><?php if (isset($a6_size)) { list($a6_tmp_width,$a6_tmp_height)=explode('x',$a6_size);echo ' width="'.$a6_tmp_width.'" height="'.$a6_tmp_height.'"';} ?> /><?php unset($a6_icon,$a6_align) ?><?php $a6_date=$lastchange_date; ?><?php + global $conf; + $time = $a6_date; + if ( isset($_COOKIE['or_timezone_offset']) ) + { + $time -= (int)date('Z'); + $time += ((int)$_COOKIE['or_timezone_offset']*60); + } + 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($a6_date) ?><br/><?php $a6_icon='user';$a6_align='left'; ?><?php + $a6_tmp_image_file = $image_dir.'icon_'.$a6_icon.IMG_ICON_EXT; + $a6_size = '16x16'; + $a6_tmp_title = basename($a6_tmp_image_file); +?><img alt="<?php echo $a6_tmp_title; if (isset($a6_size)) { echo ' ('; list($a6_tmp_width,$a6_tmp_height)=explode('x',$a6_size);echo $a6_tmp_width.'x'.$a6_tmp_height; echo')';} ?>" src="<?php echo $a6_tmp_image_file ?>" border="0"<?php if(isset($a6_align)) echo ' align="'.$a6_align.'"' ?><?php if (isset($a6_size)) { list($a6_tmp_width,$a6_tmp_height)=explode('x',$a6_size);echo ' width="'.$a6_tmp_width.'" height="'.$a6_tmp_height.'"';} ?> /><?php unset($a6_icon,$a6_align) ?><?php $a6_user=$lastchange_user; ?><?php + if ( is_object($a6_user) ) + $user = $a6_user; + else + $user = $$a6_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($a6_user) ?></div></div></fieldset></form> diff --git a/themes/default/pages/html/file/prop.tpl.php b/themes/default/pages/html/file/prop.tpl.php @@ -1,36 +1,4 @@ -<?php $a1_class='main'; ?><?php - if (!defined('OR_VERSION')) die('Forbidden'); - 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($a1_title)?langHtml($a1_title).' - ':(isset($windowTitle)?langHtml($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" > -<?php if ( isset($refresh_url) ) { ?> - <meta http-equiv="refresh" content="<?php echo isset($refresh_timeout)?$refresh_timeout:0 ?>; URL=<?php echo $refresh_url; if (ini_get('session.use_trans_sid')) echo '&'.session_name().'='.session_id(); ?>"> -<?php } ?> - <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 $meta['title'] ?>" ><?php - } -?><?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="main" <?php if (@$conf['interface']['application_mode']) { ?> style="padding:0px;margin:0px;"<?php } ?> > -<?php /* Debug-Information */ if ($showDuration) { echo "<!-- Output Variables are:\n";echo str_replace('-->','-- >',print_r($this->templateVars,true));echo "\n-->";} ?><?php unset($a1_class) ?><?php $a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php +<?php $a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded';$a2_type=''; ?><?php $a2_action = $actionName; $a2_subaction = $targetSubActionName; $a2_id = $this->getRequestId(); @@ -46,1136 +14,215 @@ $a2_subaction = $subActionName; } } + switch( $a2_type ) + { + case 'upload': + $a2_tmp_submitFunction = ''; + break; + default: + $a2_tmp_submitFunction = 'formSubmit( $(this) ); return false;'; + } ?><form name="<?php echo $a2_name ?>" target="<?php echo $a2_target ?>" action="<?php echo Html::url( $a2_action,$a2_subaction,$a2_id ) ?>" method="<?php echo $a2_method ?>" - enctype="<?php echo $a2_enctype ?>" style="margin:0px;padding:0px;"> + enctype="<?php echo $a2_enctype ?>" style="margin:0px;padding:0px;" + class="<?php echo $a2_action ?>" + onSubmit="<?php echo $a2_tmp_submitFunction ?>"><input type="submit" class="invisible" /> <?php if ($this->isEditable() && !$this->isEditMode()) { ?> <input type="hidden" name="mode" value="edit" /> <?php } ?> <input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $a2_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $a2_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a2_id ?>" /><?php +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $this->actionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $this->subActionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $this->getRequestId() ?>" /><?php if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype) ?><?php $a3_icon='folder';$a3_widths='40%,60%';$a3_width='70%';$a3_rowclasses='odd,even';$a3_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$a3_icon; - $coldumn_widths = explode(',',$a3_widths); - $row_classes = explode(',',$a3_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a3_columnclasses); - $row_idx = 0; - $column_idx = 0; - 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="'.$a3_width.'">'; - } - if (!@$conf['interface']['application_mode'] ) - { - echo '<tr class="title"><td>'; - echo '<img src="'.$image_dir.'icon_'.$icon.IMG_ICON_EXT.'" align="left" border="0">'; - if ($this->isEditable()) { ?> - <?php if ($this->isEditMode()) { - ?><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 } - elseif (readonly()) { - ?><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /> <?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($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>'; - if ( isset($notice_status)) - { - ?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?php - } - ?> - </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 class="menu"><td> - <table class="menu"><tr> - <?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']) ) - { - ?><td class="action"><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></td><?php - } - else - { - ?><td class="noaction"><?php echo $tmp_text ?></td><?php - } - } - if (@$conf['help']['enabled'] ) - { - ?><td><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></td><?php - } - ?> - </tr></table></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"> - <?php if ($notice['name']!='') { ?> - <tr> - <th colspan="2"><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?> - </th> - </tr> -<?php } ?> - <tr class="<?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 class="window"> - <table cellspacing="0" width="100%" cellpadding="4"> -<?php unset($a3_icon,$a3_widths,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a6_class='text';$a6_text='global_name';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><fieldset><?php if(isset($a3_title)) { ?><legend><?php if(isset($a3_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a3_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a3_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_for='name'; ?><label<?php if (isset($a6_for)) { ?> for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" class="label"<?php } ?>> +<?php if (isset($a6_key)) { echo lang($a6_key); if(hasLang($a6_key.'_desc')) { ?><div class="description"><?php echo lang($a6_key.'_desc')?></div> <?php } } ?><?php unset($a6_for) ?><?php $a7_class='text';$a7_text='global_name';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $a5_class='name'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> - class="name" -><?php unset($a5_class) ?><?php $a6_class='name';$a6_default='';$a6_type='text';$a6_name='name';$a6_size='50';$a6_maxlength='256';$a6_onchange='';$a6_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='name';$a6_default='';$a6_type='text';$a6_name='name';$a6_size='50';$a6_maxlength='256';$a6_onchange='';$a6_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; if ($a6_readonly && empty($$a6_name)) $$a6_name = '- '.lang('EMPTY').' -'; if(!isset($a6_default)) $a6_default=''; $tmp_value = Text::encodeHtml(isset($$a6_name)?$$a6_name:$a6_default); ?><?php if (!$a6_readonly || $a6_type=='hidden') { -?><input<?php if ($a6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" name="<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" type="<?php echo $a6_type ?>" size="<?php echo $a6_size ?>" maxlength="<?php echo $a6_maxlength ?>" class="<?php echo $a6_class ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a6_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php +?><input<?php if ($a6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" name="<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" type="<?php echo $a6_type ?>" maxlength="<?php echo $a6_maxlength ?>" class="<?php echo str_replace(',',' ',$a6_class) ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a6_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php if ($a6_readonly) { ?><input type="hidden" id="id_<?php echo $a6_name ?>" name="<?php echo $a6_name ?>" value="<?php echo $tmp_value ?>" /><?php - } } else { ?><span class="<?php echo $a6_class ?>"><?php echo $tmp_value ?></span><?php } ?><?php unset($a6_class,$a6_default,$a6_type,$a6_name,$a6_size,$a6_maxlength,$a6_onchange,$a6_readonly) ?></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a6_class='text';$a6_text='global_filename';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a6_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a6_class,$a6_default,$a6_type,$a6_name,$a6_size,$a6_maxlength,$a6_onchange,$a6_readonly) ?></div></div><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_for='filename'; ?><label<?php if (isset($a6_for)) { ?> for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" class="label"<?php } ?>> +<?php if (isset($a6_key)) { echo lang($a6_key); if(hasLang($a6_key.'_desc')) { ?><div class="description"><?php echo lang($a6_key.'_desc')?></div> <?php } } ?><?php unset($a6_for) ?><?php $a7_class='text';$a7_text='global_filename';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $a5_class='filename'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> - class="filename" -><?php unset($a5_class) ?><?php $a6_class='filename';$a6_default='';$a6_type='text';$a6_name='filename';$a6_size='40';$a6_maxlength='256';$a6_onchange='';$a6_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='filename';$a6_default='';$a6_type='text';$a6_name='filename';$a6_size='';$a6_maxlength='256';$a6_onchange='';$a6_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; if ($a6_readonly && empty($$a6_name)) $$a6_name = '- '.lang('EMPTY').' -'; if(!isset($a6_default)) $a6_default=''; $tmp_value = Text::encodeHtml(isset($$a6_name)?$$a6_name:$a6_default); ?><?php if (!$a6_readonly || $a6_type=='hidden') { -?><input<?php if ($a6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" name="<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" type="<?php echo $a6_type ?>" size="<?php echo $a6_size ?>" maxlength="<?php echo $a6_maxlength ?>" class="<?php echo $a6_class ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a6_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php +?><input<?php if ($a6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" name="<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" type="<?php echo $a6_type ?>" maxlength="<?php echo $a6_maxlength ?>" class="<?php echo str_replace(',',' ',$a6_class) ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a6_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php if ($a6_readonly) { ?><input type="hidden" id="id_<?php echo $a6_name ?>" name="<?php echo $a6_name ?>" value="<?php echo $tmp_value ?>" /><?php - } } else { ?><span class="<?php echo $a6_class ?>"><?php echo $tmp_value ?></span><?php } ?><?php unset($a6_class,$a6_default,$a6_type,$a6_name,$a6_size,$a6_maxlength,$a6_onchange,$a6_readonly) ?></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a6_class='text';$a6_text='file_extension';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a6_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a6_class,$a6_default,$a6_type,$a6_name,$a6_size,$a6_maxlength,$a6_onchange,$a6_readonly) ?></div></div><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_for='extension'; ?><label<?php if (isset($a6_for)) { ?> for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" class="label"<?php } ?>> +<?php if (isset($a6_key)) { echo lang($a6_key); if(hasLang($a6_key.'_desc')) { ?><div class="description"><?php echo lang($a6_key.'_desc')?></div> <?php } } ?><?php unset($a6_for) ?><?php $a7_class='text';$a7_text='file_extension';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $a5_class='filename'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> - class="filename" -><?php unset($a5_class) ?><?php $a6_class='extension';$a6_default='';$a6_type='text';$a6_name='extension';$a6_size='10';$a6_maxlength='256';$a6_onchange='';$a6_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='extension';$a6_default='';$a6_type='text';$a6_name='extension';$a6_size='10';$a6_maxlength='256';$a6_onchange='';$a6_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; if ($a6_readonly && empty($$a6_name)) $$a6_name = '- '.lang('EMPTY').' -'; if(!isset($a6_default)) $a6_default=''; $tmp_value = Text::encodeHtml(isset($$a6_name)?$$a6_name:$a6_default); ?><?php if (!$a6_readonly || $a6_type=='hidden') { -?><input<?php if ($a6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" name="<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" type="<?php echo $a6_type ?>" size="<?php echo $a6_size ?>" maxlength="<?php echo $a6_maxlength ?>" class="<?php echo $a6_class ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a6_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php +?><input<?php if ($a6_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" name="<?php echo $a6_name ?><?php if ($a6_readonly) echo '_disabled' ?>" type="<?php echo $a6_type ?>" maxlength="<?php echo $a6_maxlength ?>" class="<?php echo str_replace(',',' ',$a6_class) ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a6_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php if ($a6_readonly) { ?><input type="hidden" id="id_<?php echo $a6_name ?>" name="<?php echo $a6_name ?>" value="<?php echo $tmp_value ?>" /><?php - } } else { ?><span class="<?php echo $a6_class ?>"><?php echo $tmp_value ?></span><?php } ?><?php unset($a6_class,$a6_default,$a6_type,$a6_name,$a6_size,$a6_maxlength,$a6_onchange,$a6_readonly) ?></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a6_class='text';$a6_text='global_description';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a6_name='description';$a6_rows='10';$a6_cols='40';$a6_class='description';$a6_default=''; ?><?php if ($this->isEditMode()) { -?><textarea class="<?php echo $a6_class ?>" name="<?php echo $a6_name ?>" rows="<?php echo $a6_rows ?>" cols="<?php echo $a6_cols ?>"><?php echo htmlentities(isset($$a6_name)?$$a6_name:$a6_default) ?></textarea><?php - } else { -?><span class="<?php echo $a6_class ?>"><?php echo isset($$a6_name)?$$a6_name:$a6_default ?></span><?php } ?><?php unset($a6_name,$a6_rows,$a6_cols,$a6_class,$a6_default) ?></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -></td><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a6_title='';$a6_target='_self';$a6_class='';$a6_action='folder';$a6_subaction='select';$a6_id=$parentid;$a6_var1='obj'.$objectid.'';$a6_value1='1';$a6_var2='type';$a6_value2='copy'; ?><?php - $params = array(); - $params[$a6_var1]=$a6_value1; - $params[$a6_var2]=$a6_value2; - $tmp_url = ''; - $tmp_url = Html::url($a6_action,$a6_subaction,!empty($a6_id)?$a6_id:$this->getRequestId(),$params); -?><a<?php if (isset($a6_name)) echo ' name="'.$a6_name.'"'; else echo ' href="'.$tmp_url.(isset($a6_anchor)?'#'.$a6_anchor:'').'"' ?> class="<?php echo $a6_class ?>" target="<?php echo $a6_target ?>"<?php if (isset($a6_accesskey)) echo ' accesskey="'.$a6_accesskey.'"' ?> title="<?php echo encodeHtml($a6_title) ?>"><?php unset($a6_title,$a6_target,$a6_class,$a6_action,$a6_subaction,$a6_id,$a6_var1,$a6_value1,$a6_var2,$a6_value2) ?><?php $a7_class='text';$a7_key='COPY';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_key); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?></a><?php $a6_class='text';$a6_raw=',_';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = str_replace('_','&nbsp;',$a6_raw); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_raw,$a6_escape,$a6_cut) ?><?php $a6_title='';$a6_target='_self';$a6_class='';$a6_action='folder';$a6_subaction='select';$a6_id=$parentid;$a6_var1='obj'.$objectid.'';$a6_value1='1';$a6_var2='type';$a6_value2='move'; ?><?php - $params = array(); - $params[$a6_var1]=$a6_value1; - $params[$a6_var2]=$a6_value2; - $tmp_url = ''; - $tmp_url = Html::url($a6_action,$a6_subaction,!empty($a6_id)?$a6_id:$this->getRequestId(),$params); -?><a<?php if (isset($a6_name)) echo ' name="'.$a6_name.'"'; else echo ' href="'.$tmp_url.(isset($a6_anchor)?'#'.$a6_anchor:'').'"' ?> class="<?php echo $a6_class ?>" target="<?php echo $a6_target ?>"<?php if (isset($a6_accesskey)) echo ' accesskey="'.$a6_accesskey.'"' ?> title="<?php echo encodeHtml($a6_title) ?>"><?php unset($a6_title,$a6_target,$a6_class,$a6_action,$a6_subaction,$a6_id,$a6_var1,$a6_value1,$a6_var2,$a6_value2) ?><?php $a7_class='text';$a7_key='MOVE';$a7_escape=true;$a7_cut='both'; ?><?php + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a6_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a6_class,$a6_default,$a6_type,$a6_name,$a6_size,$a6_maxlength,$a6_onchange,$a6_readonly) ?></div></div><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='label'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_for='description'; ?><label<?php if (isset($a6_for)) { ?> for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>" class="label"<?php } ?>> +<?php if (isset($a6_key)) { echo lang($a6_key); if(hasLang($a6_key.'_desc')) { ?><div class="description"><?php echo lang($a6_key.'_desc')?></div> <?php } } ?><?php unset($a6_for) ?><?php $a7_class='text';$a7_text='global_description';$a7_escape=true;$a7_cut='both'; ?><?php $a7_title = ''; $tmp_tag = 'span'; ?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_key); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?></a><?php $a6_class='text';$a6_raw=',_';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = str_replace('_','&nbsp;',$a6_raw); + $tmp_text = $langF($a7_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_raw,$a6_escape,$a6_cut) ?><?php $a6_title='';$a6_target='_self';$a6_class='';$a6_action='folder';$a6_subaction='select';$a6_id=$parentid;$a6_var1='obj'.$objectid.'';$a6_value1='1';$a6_var2='type';$a6_value2='link'; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_name='description';$a6_rows='10';$a6_cols='40';$a6_class='description';$a6_default=''; ?><?php if ($this->isEditMode()) { +?><textarea class="<?php echo $a6_class ?>" name="<?php echo $a6_name ?>" rows="<?php echo $a6_rows ?>" cols="<?php echo $a6_cols ?>"><?php echo htmlentities(isset($$a6_name)?$$a6_name:$a6_default) ?></textarea><?php + } else { +?><span class="<?php echo $a6_class ?>"><?php echo isset($$a6_name)?$$a6_name:$a6_default ?></span><?php } ?><?php unset($a6_name,$a6_rows,$a6_cols,$a6_class,$a6_default) ?></div></div></fieldset><?php $a3_title='';$a3_type='';$a3_class='action';$a3_action='file';$a3_subaction='compress';$a3_frame='_self'; ?><?php $params = array(); - $params[$a6_var1]=$a6_value1; - $params[$a6_var2]=$a6_value2; $tmp_url = ''; - $tmp_url = Html::url($a6_action,$a6_subaction,!empty($a6_id)?$a6_id:$this->getRequestId(),$params); -?><a<?php if (isset($a6_name)) echo ' name="'.$a6_name.'"'; else echo ' href="'.$tmp_url.(isset($a6_anchor)?'#'.$a6_anchor:'').'"' ?> class="<?php echo $a6_class ?>" target="<?php echo $a6_target ?>"<?php if (isset($a6_accesskey)) echo ' accesskey="'.$a6_accesskey.'"' ?> title="<?php echo encodeHtml($a6_title) ?>"><?php unset($a6_title,$a6_target,$a6_class,$a6_action,$a6_subaction,$a6_id,$a6_var1,$a6_value1,$a6_var2,$a6_value2) ?><?php $a7_class='text';$a7_key='LINK';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_key); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?></a><?php $a6_class='text';$a6_raw=',_';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; + $a3_target = $view; + switch( $a3_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a3_action)?$a3_action:$this->actionName,'subaction'=>!empty($a3_subaction)?$a3_subaction:$this->subActionName,'id'=>!empty($a3_id)?$a3_id:$this->getRequestId()) + +array(REQ_PARAM_TOKEN=>token()) + +$params ); + $tmp_function_call = "submitLink(this,'".str_replace("\n",'',str_replace('"','&quot;',$tmp_data))."');"; + break; + case 'view': + $tmp_function_call = "startView(this,'".(!empty($a3_subaction)?$a3_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a3_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a3_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a3_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a3_frame ?>"<?php if (isset($a3_name)) { ?> name="<?php echo $a3_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a3_class ?>"<?php if (isset($a3_accesskey)) echo ' accesskey="'.$a3_accesskey.'"' ?> title="<?php echo encodeHtml($a3_title) ?>"><?php unset($a3_title,$a3_type,$a3_class,$a3_action,$a3_subaction,$a3_frame) ?><?php $a4_file='icon/compress';$a4_align='left'; ?><?php + $a4_tmp_image_file = $image_dir.$a4_file.IMG_ICON_EXT; + $a4_tmp_title = basename($a4_tmp_image_file); +?><img alt="<?php echo $a4_tmp_title; if (isset($a4_size)) { echo ' ('; list($a4_tmp_width,$a4_tmp_height)=explode('x',$a4_size);echo $a4_tmp_width.'x'.$a4_tmp_height; echo')';} ?>" src="<?php echo $a4_tmp_image_file ?>" border="0"<?php if(isset($a4_align)) echo ' align="'.$a4_align.'"' ?><?php if (isset($a4_size)) { list($a4_tmp_width,$a4_tmp_height)=explode('x',$a4_size);echo ' width="'.$a4_tmp_width.'" height="'.$a4_tmp_height.'"';} ?> /><?php unset($a4_file,$a4_align) ?><?php $a4_class='text';$a4_key='menu_file_compress';$a4_escape=true;$a4_cut='both'; ?><?php + $a4_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = str_replace('_','&nbsp;',$a6_raw); +?><<?php echo $tmp_tag ?> class="<?php echo $a4_class ?>" title="<?php echo $a4_title ?>"><?php + $langF = $a4_escape?'langHtml':'lang'; + $tmp_text = $langF($a4_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_raw,$a6_escape,$a6_cut) ?><?php $a6_title='';$a6_target='_self';$a6_class='';$a6_action='folder';$a6_subaction='select';$a6_id=$parentid;$a6_var1='obj'.$objectid.'';$a6_value1='1';$a6_var2='type';$a6_value2='delete'; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a4_class,$a4_key,$a4_escape,$a4_cut) ?></a><?php $a3_title='';$a3_type='';$a3_class='action';$a3_action='file';$a3_subaction='uncompress';$a3_frame='_self'; ?><?php $params = array(); - $params[$a6_var1]=$a6_value1; - $params[$a6_var2]=$a6_value2; $tmp_url = ''; - $tmp_url = Html::url($a6_action,$a6_subaction,!empty($a6_id)?$a6_id:$this->getRequestId(),$params); -?><a<?php if (isset($a6_name)) echo ' name="'.$a6_name.'"'; else echo ' href="'.$tmp_url.(isset($a6_anchor)?'#'.$a6_anchor:'').'"' ?> class="<?php echo $a6_class ?>" target="<?php echo $a6_target ?>"<?php if (isset($a6_accesskey)) echo ' accesskey="'.$a6_accesskey.'"' ?> title="<?php echo encodeHtml($a6_title) ?>"><?php unset($a6_title,$a6_target,$a6_class,$a6_action,$a6_subaction,$a6_id,$a6_var1,$a6_value1,$a6_var2,$a6_value2) ?><?php $a7_class='text';$a7_key='DELETE';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_key); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?></a></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a5_colspan='2'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="2" -><?php unset($a5_colspan) ?><?php $a6_title=lang('additional_info'); ?><fieldset><?php if(isset($a6_title)) { ?><legend><?php if(isset($a6_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a6_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a6_title) ?></legend><?php } ?><?php unset($a6_title) ?></fieldset></td></tr><?php $a4_false=$mode=="edit"; ?><?php - if (gettype($a4_false) === '' && gettype($a4_false) === '1') - $a4_tmp_exec = $$a4_false == false; - else - $a4_tmp_exec = $a4_false == false; - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) - { -?> -<?php unset($a4_false) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a7_class='text';$a7_text='global_full_filename';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $a6_class='filename'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> - class="filename" -><?php unset($a6_class) ?><?php $a7_class='text';$a7_var='full_filename';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = isset($$a7_var)?$$a7_var:$langF('UNKNOWN'); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_escape,$a7_cut) ?></td></tr><?php } ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a6_class='text';$a6_text='FILE_SIZE';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a6_class='text';$a6_var='size';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = isset($$a6_var)?$$a6_var:$langF('UNKNOWN'); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a6_class='text';$a6_text='FILE_mimetype';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $a5_class='filename'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> - class="filename" -><?php unset($a5_class) ?><?php $a6_class='text';$a6_var='mimetype';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = isset($$a6_var)?$$a6_var:$langF('UNKNOWN'); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a6_class='text';$a6_text=lang('id');$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a6_class='text';$a6_var='objectid';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = isset($$a6_var)?$$a6_var:$langF('UNKNOWN'); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a6_class='text';$a6_text='CACHE_FILENAME';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $a5_class='filename'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> - class="filename" -><?php unset($a5_class) ?><?php $a6_present='cache_filename'; ?><?php - $a6_tmp_exec = isset($$a6_present); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) - { -?> -<?php unset($a6_present) ?><?php $a7_class='text';$a7_var='cache_filename';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = isset($$a7_var)?$$a7_var:$langF('UNKNOWN'); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_escape,$a7_cut) ?><?php } ?></td></tr><?php $a4_present='cache_filename'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) + $a3_target = $view; + switch( $a3_type ) { -?> -<?php unset($a4_present) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -></td><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a7_icon='el_date';$a7_align='left'; ?><?php - $a7_tmp_image_file = $image_dir.'icon_'.$a7_icon.IMG_ICON_EXT; - $a7_size = '16x16'; - $a7_tmp_title = basename($a7_tmp_image_file); -?><img alt="<?php echo $a7_tmp_title; if (isset($a7_size)) { echo ' ('; list($a7_tmp_width,$a7_tmp_height)=explode('x',$a7_size);echo $a7_tmp_width.'x'.$a7_tmp_height; echo')';} ?>" src="<?php echo $a7_tmp_image_file ?>" border="0"<?php if(isset($a7_align)) echo ' align="'.$a7_align.'"' ?><?php if (isset($a7_size)) { list($a7_tmp_width,$a7_tmp_height)=explode('x',$a7_size);echo ' width="'.$a7_tmp_width.'" height="'.$a7_tmp_height.'"';} ?>><?php unset($a7_icon,$a7_align) ?><?php $a7_date=$cache_filemtime; ?><?php - global $conf; - $time = $a7_date; - if ( isset($_COOKIE['or_timezone_offset']) ) - { - $time -= (int)date('Z'); - $time += ((int)$_COOKIE['or_timezone_offset']*60); - } - 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>'; + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a3_action)?$a3_action:$this->actionName,'subaction'=>!empty($a3_subaction)?$a3_subaction:$this->subActionName,'id'=>!empty($a3_id)?$a3_id:$this->getRequestId()) + +array(REQ_PARAM_TOKEN=>token()) + +$params ); + $tmp_function_call = "submitLink(this,'".str_replace("\n",'',str_replace('"','&quot;',$tmp_data))."');"; + break; + case 'view': + $tmp_function_call = "startView(this,'".(!empty($a3_subaction)?$a3_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a3_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a3_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a3_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; } - 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($a7_date) ?></td></tr><?php } ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a6_class='text';$a6_text='FILE_PAGES';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?><a target="<?php echo $a3_frame ?>"<?php if (isset($a3_name)) { ?> name="<?php echo $a3_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a3_class ?>"<?php if (isset($a3_accesskey)) echo ' accesskey="'.$a3_accesskey.'"' ?> title="<?php echo encodeHtml($a3_title) ?>"><?php unset($a3_title,$a3_type,$a3_class,$a3_action,$a3_subaction,$a3_frame) ?><?php $a4_file='icon/uncompress';$a4_align='left'; ?><?php + $a4_tmp_image_file = $image_dir.$a4_file.IMG_ICON_EXT; + $a4_tmp_title = basename($a4_tmp_image_file); +?><img alt="<?php echo $a4_tmp_title; if (isset($a4_size)) { echo ' ('; list($a4_tmp_width,$a4_tmp_height)=explode('x',$a4_size);echo $a4_tmp_width.'x'.$a4_tmp_height; echo')';} ?>" src="<?php echo $a4_tmp_image_file ?>" border="0"<?php if(isset($a4_align)) echo ' align="'.$a4_align.'"' ?><?php if (isset($a4_size)) { list($a4_tmp_width,$a4_tmp_height)=explode('x',$a4_size);echo ' width="'.$a4_tmp_width.'" height="'.$a4_tmp_height.'"';} ?> /><?php unset($a4_file,$a4_align) ?><?php $a4_class='text';$a4_key='menu_file_uncompress';$a4_escape=true;$a4_cut='both'; ?><?php + $a4_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a4_class ?>" title="<?php echo $a4_title ?>"><?php + $langF = $a4_escape?'langHtml':'lang'; + $tmp_text = $langF($a4_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a6_width='100%';$a6_space='0px';$a6_padding='0px'; ?><?php - $last_row_idx = @$row_idx; - $last_column_idx = @$column_idx; - $row_idx = 0; - $column_idx = 0; - $coloumn_widths = array(); - $row_classes = array(); - $column_classes = array(); -?><table class="%class%" cellspacing="0px" width="100%" cellpadding="0px"> -<?php unset($a6_width,$a6_space,$a6_padding) ?><?php $a7_list='pages';$a7_extract=true;$a7_key='list_key';$a7_value='list_value'; ?><?php - $a7_list_tmp_key = $a7_key; - $a7_list_tmp_value = $a7_value; - $a7_list_extract = $a7_extract; - unset($a7_key); - unset($a7_value); - if ( !isset($$a7_list) || !is_array($$a7_list) ) - $$a7_list = array(); - foreach( $$a7_list as $$a7_list_tmp_key => $$a7_list_tmp_value ) - { - if ( $a7_list_extract ) - { - if ( !is_array($$a7_list_tmp_value) ) - { - print_r($$a7_list_tmp_value); - die( 'not an array at key: '.$$a7_list_tmp_key ); - } - extract($$a7_list_tmp_value); - } -?><?php unset($a7_list,$a7_extract,$a7_key,$a7_value) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a10_title='';$a10_target='cms_main';$a10_url=$url;$a10_class=''; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a4_class,$a4_key,$a4_escape,$a4_cut) ?></a><?php $a3_title='';$a3_type='';$a3_class='action';$a3_action='file';$a3_subaction='extract';$a3_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a10_url; -?><a<?php if (isset($a10_name)) echo ' name="'.$a10_name.'"'; else echo ' href="'.$tmp_url.(isset($a10_anchor)?'#'.$a10_anchor:'').'"' ?> class="<?php echo $a10_class ?>" target="<?php echo $a10_target ?>"<?php if (isset($a10_accesskey)) echo ' accesskey="'.$a10_accesskey.'"' ?> title="<?php echo encodeHtml($a10_title) ?>"><?php unset($a10_title,$a10_target,$a10_url,$a10_class) ?><?php $a11_align='left';$a11_type='page'; ?><?php - $a11_tmp_image_file = $image_dir.'icon_'.$a11_type.IMG_ICON_EXT; - $a11_size = '16x16'; - $a11_tmp_title = basename($a11_tmp_image_file); -?><img alt="<?php echo $a11_tmp_title; if (isset($a11_size)) { echo ' ('; list($a11_tmp_width,$a11_tmp_height)=explode('x',$a11_size);echo $a11_tmp_width.'x'.$a11_tmp_height; echo')';} ?>" src="<?php echo $a11_tmp_image_file ?>" border="0"<?php if(isset($a11_align)) echo ' align="'.$a11_align.'"' ?><?php if (isset($a11_size)) { list($a11_tmp_width,$a11_tmp_height)=explode('x',$a11_size);echo ' width="'.$a11_tmp_width.'" height="'.$a11_tmp_height.'"';} ?>><?php unset($a11_align,$a11_type) ?><?php $a11_class='text';$a11_var='name';$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a11_class ?>" title="<?php echo $a11_title ?>"><?php - $langF = $a11_escape?'langHtml':'lang'; - $tmp_text = isset($$a11_var)?$$a11_var:$langF('UNKNOWN'); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_var,$a11_escape,$a11_cut) ?></a></td></tr><?php } ?><?php - $row_idx = $last_row_idx; - $column_idx = $last_column_idx; -?> -</table><?php $a6_empty='pages'; ?><?php - if ( !isset($$a6_empty) ) - $a6_tmp_exec = empty($a6_empty); - elseif ( is_array($$a6_empty) ) - $a6_tmp_exec = (count($$a6_empty)==0); - elseif ( is_bool($$a6_empty) ) - $a6_tmp_exec = true; - else - $a6_tmp_exec = empty( $$a6_empty ); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) - { -?> -<?php unset($a6_empty) ?><?php $a7_class='text';$a7_text='GLOBAL_NOT_FOUND';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?><?php } ?></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a5_colspan='2'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="2" -><?php unset($a5_colspan) ?><?php $a6_title=lang('prop_userinfo'); ?><fieldset><?php if(isset($a6_title)) { ?><legend><?php if(isset($a6_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a6_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a6_title) ?></legend><?php } ?><?php unset($a6_title) ?></fieldset></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a6_class='text';$a6_text='global_created';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a6_width='100%';$a6_space='0px';$a6_padding='0px'; ?><?php - $last_row_idx = @$row_idx; - $last_column_idx = @$column_idx; - $row_idx = 0; - $column_idx = 0; - $coloumn_widths = array(); - $row_classes = array(); - $column_classes = array(); -?><table class="%class%" cellspacing="0px" width="100%" cellpadding="0px"> -<?php unset($a6_width,$a6_space,$a6_padding) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a9_icon='el_date';$a9_align='left'; ?><?php - $a9_tmp_image_file = $image_dir.'icon_'.$a9_icon.IMG_ICON_EXT; - $a9_size = '16x16'; - $a9_tmp_title = basename($a9_tmp_image_file); -?><img alt="<?php echo $a9_tmp_title; if (isset($a9_size)) { echo ' ('; list($a9_tmp_width,$a9_tmp_height)=explode('x',$a9_size);echo $a9_tmp_width.'x'.$a9_tmp_height; echo')';} ?>" src="<?php echo $a9_tmp_image_file ?>" border="0"<?php if(isset($a9_align)) echo ' align="'.$a9_align.'"' ?><?php if (isset($a9_size)) { list($a9_tmp_width,$a9_tmp_height)=explode('x',$a9_size);echo ' width="'.$a9_tmp_width.'" height="'.$a9_tmp_height.'"';} ?>><?php unset($a9_icon,$a9_align) ?><?php $a9_date=$create_date; ?><?php - global $conf; - $time = $a9_date; - if ( isset($_COOKIE['or_timezone_offset']) ) - { - $time -= (int)date('Z'); - $time += ((int)$_COOKIE['or_timezone_offset']*60); - } - 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 + $a3_target = $view; + switch( $a3_type ) { - $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>'; + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a3_action)?$a3_action:$this->actionName,'subaction'=>!empty($a3_subaction)?$a3_subaction:$this->subActionName,'id'=>!empty($a3_id)?$a3_id:$this->getRequestId()) + +array(REQ_PARAM_TOKEN=>token()) + +$params ); + $tmp_function_call = "submitLink(this,'".str_replace("\n",'',str_replace('"','&quot;',$tmp_data))."');"; + break; + case 'view': + $tmp_function_call = "startView(this,'".(!empty($a3_subaction)?$a3_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a3_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a3_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a3_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; } -?><?php unset($a9_date) ?></td><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a9_icon='user';$a9_align='left'; ?><?php - $a9_tmp_image_file = $image_dir.'icon_'.$a9_icon.IMG_ICON_EXT; - $a9_size = '16x16'; - $a9_tmp_title = basename($a9_tmp_image_file); -?><img alt="<?php echo $a9_tmp_title; if (isset($a9_size)) { echo ' ('; list($a9_tmp_width,$a9_tmp_height)=explode('x',$a9_size);echo $a9_tmp_width.'x'.$a9_tmp_height; echo')';} ?>" src="<?php echo $a9_tmp_image_file ?>" border="0"<?php if(isset($a9_align)) echo ' align="'.$a9_align.'"' ?><?php if (isset($a9_size)) { list($a9_tmp_width,$a9_tmp_height)=explode('x',$a9_size);echo ' width="'.$a9_tmp_width.'" height="'.$a9_tmp_height.'"';} ?>><?php unset($a9_icon,$a9_align) ?><?php $a9_user=$create_user; ?><?php - if ( is_object($a9_user) ) - $user = $a9_user; - else - $user = $$a9_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($a9_user) ?></td></tr><?php - $row_idx = $last_row_idx; - $column_idx = $last_column_idx; -?> -</table></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a6_class='text';$a6_text='global_lastchange';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?><a target="<?php echo $a3_frame ?>"<?php if (isset($a3_name)) { ?> name="<?php echo $a3_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a3_class ?>"<?php if (isset($a3_accesskey)) echo ' accesskey="'.$a3_accesskey.'"' ?> title="<?php echo encodeHtml($a3_title) ?>"><?php unset($a3_title,$a3_type,$a3_class,$a3_action,$a3_subaction,$a3_frame) ?><?php $a4_file='icon/extract';$a4_align='left'; ?><?php + $a4_tmp_image_file = $image_dir.$a4_file.IMG_ICON_EXT; + $a4_tmp_title = basename($a4_tmp_image_file); +?><img alt="<?php echo $a4_tmp_title; if (isset($a4_size)) { echo ' ('; list($a4_tmp_width,$a4_tmp_height)=explode('x',$a4_size);echo $a4_tmp_width.'x'.$a4_tmp_height; echo')';} ?>" src="<?php echo $a4_tmp_image_file ?>" border="0"<?php if(isset($a4_align)) echo ' align="'.$a4_align.'"' ?><?php if (isset($a4_size)) { list($a4_tmp_width,$a4_tmp_height)=explode('x',$a4_size);echo ' width="'.$a4_tmp_width.'" height="'.$a4_tmp_height.'"';} ?> /><?php unset($a4_file,$a4_align) ?><?php $a4_class='text';$a4_key='menu_file_extract';$a4_escape=true;$a4_cut='both'; ?><?php + $a4_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a4_class ?>" title="<?php echo $a4_title ?>"><?php + $langF = $a4_escape?'langHtml':'lang'; + $tmp_text = $langF($a4_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a6_width='100%';$a6_space='0px';$a6_padding='0px'; ?><?php - $last_row_idx = @$row_idx; - $last_column_idx = @$column_idx; - $row_idx = 0; - $column_idx = 0; - $coloumn_widths = array(); - $row_classes = array(); - $column_classes = array(); -?><table class="%class%" cellspacing="0px" width="100%" cellpadding="0px"> -<?php unset($a6_width,$a6_space,$a6_padding) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a9_icon='el_date';$a9_align='left'; ?><?php - $a9_tmp_image_file = $image_dir.'icon_'.$a9_icon.IMG_ICON_EXT; - $a9_size = '16x16'; - $a9_tmp_title = basename($a9_tmp_image_file); -?><img alt="<?php echo $a9_tmp_title; if (isset($a9_size)) { echo ' ('; list($a9_tmp_width,$a9_tmp_height)=explode('x',$a9_size);echo $a9_tmp_width.'x'.$a9_tmp_height; echo')';} ?>" src="<?php echo $a9_tmp_image_file ?>" border="0"<?php if(isset($a9_align)) echo ' align="'.$a9_align.'"' ?><?php if (isset($a9_size)) { list($a9_tmp_width,$a9_tmp_height)=explode('x',$a9_size);echo ' width="'.$a9_tmp_width.'" height="'.$a9_tmp_height.'"';} ?>><?php unset($a9_icon,$a9_align) ?><?php $a9_date=$lastchange_date; ?><?php - global $conf; - $time = $a9_date; - if ( isset($_COOKIE['or_timezone_offset']) ) - { - $time -= (int)date('Z'); - $time += ((int)$_COOKIE['or_timezone_offset']*60); - } - 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($a9_date) ?></td><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php $a9_icon='user';$a9_align='left'; ?><?php - $a9_tmp_image_file = $image_dir.'icon_'.$a9_icon.IMG_ICON_EXT; - $a9_size = '16x16'; - $a9_tmp_title = basename($a9_tmp_image_file); -?><img alt="<?php echo $a9_tmp_title; if (isset($a9_size)) { echo ' ('; list($a9_tmp_width,$a9_tmp_height)=explode('x',$a9_size);echo $a9_tmp_width.'x'.$a9_tmp_height; echo')';} ?>" src="<?php echo $a9_tmp_image_file ?>" border="0"<?php if(isset($a9_align)) echo ' align="'.$a9_align.'"' ?><?php if (isset($a9_size)) { list($a9_tmp_width,$a9_tmp_height)=explode('x',$a9_size);echo ' width="'.$a9_tmp_width.'" height="'.$a9_tmp_height.'"';} ?>><?php unset($a9_icon,$a9_align) ?><?php $a9_user=$lastchange_user; ?><?php - if ( is_object($a9_user) ) - $user = $a9_user; - else - $user = $$a9_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($a9_user) ?></td></tr><?php - $row_idx = $last_row_idx; - $column_idx = $last_column_idx; -?> -</table></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a5_class='act';$a5_colspan='2'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> - class="act" - colspan="2" -><?php unset($a5_class,$a5_colspan) ?><?php $a6_type='ok';$a6_class='ok';$a6_value='ok';$a6_text='button_ok'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) - $a6_text = 'MODE_EDIT'; - $a6_type = 'submit'; - if ( $this->isEditable() && readonly() ) - $a6_type = ''; // Knopf nicht anzeigen - $a6_src = ''; - if ( !empty($a6_type) ) { -?><input type="<?php echo $a6_type ?>"<?php if(isset($a6_src)) { ?> src="<?php echo $image_dir.'icon_'.$a6_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $a6_value ?>" class="ok" title="<?php echo lang($a6_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a6_src) -?><?php } -?><?php unset($a6_type,$a6_class,$a6_value,$a6_text) ?></td></tr> </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 } ?> -</form> -<?php $a2_field='name'; ?><?php -if (isset($errors[0])) $a2_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $a2_field ?>.focus(); -document.forms[0].<?php echo $a2_field ?>.select(); -</script> -<?php unset($a2_field) ?></body> -</html>- \ No newline at end of file +?></<?php echo $tmp_tag ?>><?php unset($a4_class,$a4_key,$a4_escape,$a4_cut) ?></a></form> diff --git a/themes/default/pages/html/file/pub.tpl.php b/themes/default/pages/html/file/pub.tpl.php @@ -1,125 +1,82 @@ -<?php $a1_class='main'; ?><?php - if (!defined('OR_VERSION')) die('Forbidden'); - 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($a1_title)?langHtml($a1_title).' - ':(isset($windowTitle)?langHtml($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" > -<?php if ( isset($refresh_url) ) { ?> - <meta http-equiv="refresh" content="<?php echo isset($refresh_timeout)?$refresh_timeout:0 ?>; URL=<?php echo $refresh_url; if (ini_get('session.use_trans_sid')) echo '&'.session_name().'='.session_id(); ?>"> -<?php } ?> - <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 $meta['title'] ?>" ><?php - } -?><?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="main" <?php if (@$conf['interface']['application_mode']) { ?> style="padding:0px;margin:0px;"<?php } ?> > -<?php /* Debug-Information */ if ($showDuration) { echo "<!-- Output Variables are:\n";echo str_replace('-->','-- >',print_r($this->templateVars,true));echo "\n-->";} ?><?php unset($a1_class) ?><?php $a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php - $a2_action = $actionName; - $a2_subaction = $targetSubActionName; - $a2_id = $this->getRequestId(); +<?php $a3_name='';$a3_target='_self';$a3_method='post';$a3_enctype='application/x-www-form-urlencoded';$a3_type=''; ?><?php + $a3_action = $actionName; + $a3_subaction = $targetSubActionName; + $a3_id = $this->getRequestId(); if ($this->isEditable()) { if ($this->isEditMode()) { - $a2_method = 'POST'; + $a3_method = 'POST'; } else { - $a2_method = 'GET'; - $a2_subaction = $subActionName; + $a3_method = 'GET'; + $a3_subaction = $subActionName; } } -?><form name="<?php echo $a2_name ?>" - target="<?php echo $a2_target ?>" - action="<?php echo Html::url( $a2_action,$a2_subaction,$a2_id ) ?>" - method="<?php echo $a2_method ?>" - enctype="<?php echo $a2_enctype ?>" style="margin:0px;padding:0px;"> + switch( $a3_type ) + { + case 'upload': + $a3_tmp_submitFunction = ''; + break; + default: + $a3_tmp_submitFunction = 'formSubmit( $(this) ); return false;'; + } +?><form name="<?php echo $a3_name ?>" + target="<?php echo $a3_target ?>" + action="<?php echo Html::url( $a3_action,$a3_subaction,$a3_id ) ?>" + method="<?php echo $a3_method ?>" + enctype="<?php echo $a3_enctype ?>" style="margin:0px;padding:0px;" + class="<?php echo $a3_action ?>" + onSubmit="<?php echo $a3_tmp_submitFunction ?>"><input type="submit" class="invisible" /> <?php if ($this->isEditable() && !$this->isEditMode()) { ?> <input type="hidden" name="mode" value="edit" /> <?php } ?> <input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $a2_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $a2_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a2_id ?>" /><?php +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $this->actionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $this->subActionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $this->getRequestId() ?>" /><?php if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype) ?><?php $a3_width='93%';$a3_rowclasses='odd,even';$a3_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$actionName; - $row_classes = explode(',',$a3_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a3_columnclasses); - $row_idx = 0; - $column_idx = 0; - 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="'.$a3_width.'">'; - } - if (!@$conf['interface']['application_mode'] ) - { - echo '<tr class="title"><td>'; - echo '<img src="'.$image_dir.'icon_'.$icon.IMG_ICON_EXT.'" align="left" border="0">'; - if ($this->isEditable()) { ?> +?><?php unset($a3_name,$a3_target,$a3_method,$a3_enctype,$a3_type) ?><?php $a4_width='93%';$a4_rowclasses='odd,even';$a4_columnclasses='1,2,3'; ?><?php if (false) { ?> +<div class="window"> +<div class="title"> + <?php $icon=$actionName; ?> + <img src="<?php echo $image_dir.'icon_'.$icon.IMG_ICON_EXT ?>" align="left" /> + <?php if ($this->isEditable()) { ?> <?php if ($this->isEditMode()) { ?><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 } elseif (readonly()) { ?><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /> <?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($actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; - if ( !isset($path) || is_array($path) ) + ?><?php } ?> + <span class="path"><?php echo langHtml($actionName) ?></span>&nbsp;<strong>&rarr;</strong>&nbsp; + <?php + 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>'; + extract($pathElement); ?> + <a javascript:void(0);" onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $url ?>'); return false; " title="<?php echo $title ?>" class="path"><?php echo (!empty($key)?langHtml($key):$name) ?></a> + &nbsp;&rarr;&nbsp; + <?php } ?> + <span class="title"><?php echo langHtml(@$windowTitle) ?></span> + <?php if ( isset($notice_status)) { ?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?php } ?> - </td> - <?php - } - ?> -<?php ?> <!--<td class="menu" style="align:right;"> + <?php ?> <?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 class="menu"><td> - <table class="menu"><tr> - <?php if ( !isset($windowMenu) || !is_array($windowMenu) ) - $windowMenu = array(); +</div> +<ul class="menu"> +<?php + if ( !isset($windowMenu) || !is_array($windowMenu) ) $windowMenu = array(); foreach( $windowMenu as $menu ) { $tmp_text = langHtml($menu['text']); @@ -127,90 +84,99 @@ $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); + $liClass = (isset($menu['url'])?'':'no').'action'.($this->subActionName==$menu['subaction']?' active':''); + $icon_url = $image_dir.'icon/'.$menu['subaction'].'.png'; + ?><li class="<?php echo $liClass?>"><?php if ( isset($menu['url']) ) { - ?><td class="action"><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></td><?php + $link_url = Html::url($actionName,$menu['subaction'],$this->getRequestId() ); + ?><a href="javascript:void(0);" onclick="javascript:loadSubaction(this,'<?php echo $actionName ?>','<?php echo $menu['subaction'] ?>','<?php echo $this->getRequestId() ?>'); return false; " accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>"><img src="<?php echo $icon_url ?>" /><?php echo $tmp_text ?></a><?php } else { - ?><td class="noaction"><?php echo $tmp_text ?></td><?php + ?><span><img src="<?php echo $icon_url ?>" /><?php echo $tmp_text ?></span><?php } } - if (@$conf['help']['enabled'] ) + ?></li><?php + if ( /* Deaktiviert */ false && @$conf['help']['enabled'] ) { - ?><td><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></td><?php + ?><a class="help" href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>"><img src="<?php echo $image_dir.'icon/help.png' ?>" /><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php } - ?> - </tr></table></td> - </tr> -<?php if (isset($notices) && count($notices)>0 ) + ?><?php + ?> +</ul> +<?php global $image_dir; + if (isset($notices) && count($notices)>0 ) { ?> - <tr> - <td align="center" class="notice"> + <dl class="notice"> <?php foreach( $notices as $notice_idx=>$notice ) { ?> - <br><table class="notice"> <?php if ($notice['name']!='') { ?> - <tr> - <th colspan="2"><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?> - </th> - </tr> + <dt><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?></dt> <?php } ?> - <tr class="<?php echo $notice['status'] ?>"> + <dd class="<?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> + </dd> <?php } ?> - </td> - </tr> - <tr> - <td colspan="2"><fieldset></fieldset></td> - </tr> + </dl> <?php } ?> - <tr> - <td class="window"> - <table cellspacing="0" width="100%" cellpadding="4"> -<?php unset($a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $row_idx++; +<div class="content"><div class="filler"> +<?php } ?><?php unset($a4_width,$a4_rowclasses,$a4_columnclasses) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><br/><br/><br/><br/><br/></td></tr><?php - $row_idx++; +><?php unset($a6_header) ?><br/><br/><br/><br/><br/></td></tr><?php $column_idx = 0; ?> <tr > -<?php $a5_class='act'; ?><?php $column_idx++; ?><td +<?php $a6_class='act';$a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="act" -><?php unset($a5_class) ?><?php $a6_type='ok';$a6_class='ok';$a6_value='ok';$a6_text='button_ok'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) - $a6_text = 'MODE_EDIT'; - $a6_type = 'submit'; - if ( $this->isEditable() && readonly() ) - $a6_type = ''; // Knopf nicht anzeigen - $a6_src = ''; - if ( !empty($a6_type) ) { -?><input type="<?php echo $a6_type ?>"<?php if(isset($a6_src)) { ?> src="<?php echo $image_dir.'icon_'.$a6_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $a6_value ?>" class="ok" title="<?php echo lang($a6_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a6_src) -?><?php } -?><?php unset($a6_type,$a6_class,$a6_value,$a6_text) ?></td></tr> </table> - </td> - </tr> -</table> -</center> +><?php unset($a6_class,$a6_header) ?><?php $a7_type='ok';$a7_class='ok';$a7_value='ok';$a7_text='button_ok'; ?><div class="invisible"> +<?php + if ($this->isEditable() && !$this->isEditMode() && !readonly() ) + { + $a7_type = ''; // Knopf nicht anzeigen + ?><a class="action" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span title="<?php echo lang('MODE_EDIT_DESC') ?>"><?php echo langHtml('MODE_EDIT') ?></span></a><?php + } else + { + $a7_type = 'submit'; + } + $a7_tmp_src = ''; + if ( !empty($a7_type)) { +?> +<input type="<?php echo $a7_type ?>"<?php if(isset($a7_src)) { ?> src="<?php $a7_tmp_src ?>"<?php } ?> name="<?php echo $a7_value ?>" class="ok" title="<?php echo lang($a7_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a7_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a7_src); ?> +<?php } + if ($this->isEditable() && $this->isEditMode() ) + { + ?><a class="action" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'')) ?>"><span title="<?php echo lang('CANCEL_DESC') ?>"><?php echo langHtml('CANCEL') ?></span></a><?php + } +?> +</div><?php unset($a7_type,$a7_class,$a7_value,$a7_text) ?></td></tr><?php if (false) { ?> +</div> +</div> +<div class="bottom"> + <div class="status"> + </div> + <div class="command"> + <input type="button" value="<?php echo lang('OK') ?>" onclick="formSubmit( $(this),'<?php echo $view ?>');" /> + <input type="cancel" value="<?php echo lang('CANCEL') ?>" /> + </div> +</div> +</div> <?php if ($showDuration) { ?> <br/> @@ -218,6 +184,4 @@ <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -</form> -</body> -</html>- \ No newline at end of file +<?php } ?></form> diff --git a/themes/default/pages/html/file/remove.tpl.php b/themes/default/pages/html/file/remove.tpl.php @@ -1,125 +1,82 @@ -<?php $a1_class='main'; ?><?php - if (!defined('OR_VERSION')) die('Forbidden'); - 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($a1_title)?langHtml($a1_title).' - ':(isset($windowTitle)?langHtml($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" > -<?php if ( isset($refresh_url) ) { ?> - <meta http-equiv="refresh" content="<?php echo isset($refresh_timeout)?$refresh_timeout:0 ?>; URL=<?php echo $refresh_url; if (ini_get('session.use_trans_sid')) echo '&'.session_name().'='.session_id(); ?>"> -<?php } ?> - <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 $meta['title'] ?>" ><?php - } -?><?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="main" <?php if (@$conf['interface']['application_mode']) { ?> style="padding:0px;margin:0px;"<?php } ?> > -<?php /* Debug-Information */ if ($showDuration) { echo "<!-- Output Variables are:\n";echo str_replace('-->','-- >',print_r($this->templateVars,true));echo "\n-->";} ?><?php unset($a1_class) ?><?php $a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php - $a2_action = $actionName; - $a2_subaction = $targetSubActionName; - $a2_id = $this->getRequestId(); +<?php $a3_name='';$a3_target='_self';$a3_method='post';$a3_enctype='application/x-www-form-urlencoded';$a3_type=''; ?><?php + $a3_action = $actionName; + $a3_subaction = $targetSubActionName; + $a3_id = $this->getRequestId(); if ($this->isEditable()) { if ($this->isEditMode()) { - $a2_method = 'POST'; + $a3_method = 'POST'; } else { - $a2_method = 'GET'; - $a2_subaction = $subActionName; + $a3_method = 'GET'; + $a3_subaction = $subActionName; } } -?><form name="<?php echo $a2_name ?>" - target="<?php echo $a2_target ?>" - action="<?php echo Html::url( $a2_action,$a2_subaction,$a2_id ) ?>" - method="<?php echo $a2_method ?>" - enctype="<?php echo $a2_enctype ?>" style="margin:0px;padding:0px;"> + switch( $a3_type ) + { + case 'upload': + $a3_tmp_submitFunction = ''; + break; + default: + $a3_tmp_submitFunction = 'formSubmit( $(this) ); return false;'; + } +?><form name="<?php echo $a3_name ?>" + target="<?php echo $a3_target ?>" + action="<?php echo Html::url( $a3_action,$a3_subaction,$a3_id ) ?>" + method="<?php echo $a3_method ?>" + enctype="<?php echo $a3_enctype ?>" style="margin:0px;padding:0px;" + class="<?php echo $a3_action ?>" + onSubmit="<?php echo $a3_tmp_submitFunction ?>"><input type="submit" class="invisible" /> <?php if ($this->isEditable() && !$this->isEditMode()) { ?> <input type="hidden" name="mode" value="edit" /> <?php } ?> <input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $a2_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $a2_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a2_id ?>" /><?php +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $this->actionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $this->subActionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $this->getRequestId() ?>" /><?php if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype) ?><?php $a3_name='GLOBAL_GROUPS';$a3_icon='group';$a3_width='93%';$a3_rowclasses='odd,even';$a3_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$a3_icon; - $row_classes = explode(',',$a3_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a3_columnclasses); - $row_idx = 0; - $column_idx = 0; - 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="'.$a3_width.'">'; - } - if (!@$conf['interface']['application_mode'] ) - { - echo '<tr class="title"><td>'; - echo '<img src="'.$image_dir.'icon_'.$icon.IMG_ICON_EXT.'" align="left" border="0">'; - if ($this->isEditable()) { ?> +?><?php unset($a3_name,$a3_target,$a3_method,$a3_enctype,$a3_type) ?><?php $a4_name='GLOBAL_GROUPS';$a4_icon='group';$a4_width='93%';$a4_rowclasses='odd,even';$a4_columnclasses='1,2,3'; ?><?php if (false) { ?> +<div class="window"> +<div class="title"> + <?php $icon=$actionName; ?> + <img src="<?php echo $image_dir.'icon_'.$icon.IMG_ICON_EXT ?>" align="left" /> + <?php if ($this->isEditable()) { ?> <?php if ($this->isEditMode()) { ?><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 } elseif (readonly()) { ?><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /> <?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($actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; - if ( !isset($path) || is_array($path) ) + ?><?php } ?> + <span class="path"><?php echo langHtml($actionName) ?></span>&nbsp;<strong>&rarr;</strong>&nbsp; + <?php + 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>'; + extract($pathElement); ?> + <a javascript:void(0);" onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $url ?>'); return false; " title="<?php echo $title ?>" class="path"><?php echo (!empty($key)?langHtml($key):$name) ?></a> + &nbsp;&rarr;&nbsp; + <?php } ?> + <span class="title"><?php echo langHtml(@$windowTitle) ?></span> + <?php if ( isset($notice_status)) { ?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?php } ?> - </td> - <?php - } - ?> -<?php ?> <!--<td class="menu" style="align:right;"> + <?php ?> <?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 class="menu"><td> - <table class="menu"><tr> - <?php if ( !isset($windowMenu) || !is_array($windowMenu) ) - $windowMenu = array(); +</div> +<ul class="menu"> +<?php + if ( !isset($windowMenu) || !is_array($windowMenu) ) $windowMenu = array(); foreach( $windowMenu as $menu ) { $tmp_text = langHtml($menu['text']); @@ -127,136 +84,127 @@ $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); + $liClass = (isset($menu['url'])?'':'no').'action'.($this->subActionName==$menu['subaction']?' active':''); + $icon_url = $image_dir.'icon/'.$menu['subaction'].'.png'; + ?><li class="<?php echo $liClass?>"><?php if ( isset($menu['url']) ) { - ?><td class="action"><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></td><?php + $link_url = Html::url($actionName,$menu['subaction'],$this->getRequestId() ); + ?><a href="javascript:void(0);" onclick="javascript:loadSubaction(this,'<?php echo $actionName ?>','<?php echo $menu['subaction'] ?>','<?php echo $this->getRequestId() ?>'); return false; " accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>"><img src="<?php echo $icon_url ?>" /><?php echo $tmp_text ?></a><?php } else { - ?><td class="noaction"><?php echo $tmp_text ?></td><?php + ?><span><img src="<?php echo $icon_url ?>" /><?php echo $tmp_text ?></span><?php } } - if (@$conf['help']['enabled'] ) + ?></li><?php + if ( /* Deaktiviert */ false && @$conf['help']['enabled'] ) { - ?><td><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></td><?php + ?><a class="help" href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>"><img src="<?php echo $image_dir.'icon/help.png' ?>" /><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php } - ?> - </tr></table></td> - </tr> -<?php if (isset($notices) && count($notices)>0 ) + ?><?php + ?> +</ul> +<?php global $image_dir; + if (isset($notices) && count($notices)>0 ) { ?> - <tr> - <td align="center" class="notice"> + <dl class="notice"> <?php foreach( $notices as $notice_idx=>$notice ) { ?> - <br><table class="notice"> <?php if ($notice['name']!='') { ?> - <tr> - <th colspan="2"><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?> - </th> - </tr> + <dt><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?></dt> <?php } ?> - <tr class="<?php echo $notice['status'] ?>"> + <dd class="<?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> + </dd> <?php } ?> - </td> - </tr> - <tr> - <td colspan="2"><fieldset></fieldset></td> - </tr> + </dl> <?php } ?> - <tr> - <td class="window"> - <table cellspacing="0" width="100%" cellpadding="4"> -<?php unset($a3_name,$a3_icon,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $row_idx++; +<div class="content"><div class="filler"> +<?php } ?><?php unset($a4_name,$a4_icon,$a4_width,$a4_rowclasses,$a4_columnclasses) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a6_class='text';$a6_text='GLOBAL_NAME';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_header) ?><?php $a7_class='text';$a7_text='GLOBAL_NAME';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a6_class='text';$a6_var='name';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_header) ?><?php $a7_class='text';$a7_var='name';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = isset($$a6_var)?$$a6_var:$langF('UNKNOWN'); +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = isset($$a7_var)?$$a7_var:$langF('UNKNOWN'); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?></td></tr><?php - $row_idx++; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_escape,$a7_cut) ?></td></tr><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a6_class='text';$a6_text='GLOBAL_DELETE';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_header) ?><?php $a7_class='text';$a7_text='GLOBAL_DELETE';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_text); +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a6_default=false;$a6_readonly=false;$a6_name='delete'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; - if ( isset($$a6_name) ) - $checked = $$a6_name; +><?php unset($a6_header) ?><?php $a7_default=false;$a7_readonly=false;$a7_name='delete'; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; + if ( isset($$a7_name) ) + $checked = $$a7_name; else - $checked = $a6_default; -?><input class="checkbox" type="checkbox" id="id_<?php echo $a6_name ?>" name="<?php echo $a6_name ?>" <?php if ($a6_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?><?php if (in_array($a6_name,$errors)) echo ' style="background-color:red;"' ?> /><?php -if ( $a6_readonly && $checked ) + $checked = $a7_default; +?><input class="checkbox" type="checkbox" id="id_<?php echo $a7_name ?>" name="<?php echo $a7_name ?>" <?php if ($a7_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?><?php if (in_array($a7_name,$errors)) echo ' style="background-color:red;"' ?> /><?php +if ( $a7_readonly && $checked ) { -?><input type="hidden" name="<?php echo $a6_name ?>" value="1" /><?php +?><input type="hidden" name="<?php echo $a7_name ?>" value="1" /><?php } -?><?php unset($a6_name); unset($a6_readonly); unset($a6_default); ?><?php unset($a6_default,$a6_readonly,$a6_name) ?></td></tr><?php - $row_idx++; +?><?php unset($a7_name); unset($a7_readonly); unset($a7_default); ?><?php unset($a7_default,$a7_readonly,$a7_name) ?></td></tr><?php $column_idx = 0; ?> <tr > -<?php $a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a6_colspan='2';$a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -264,21 +212,38 @@ if ( $a6_readonly && $checked ) class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a5_colspan) ?><?php $a6_type='ok';$a6_class='ok';$a6_value='ok';$a6_text='button_ok'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) - $a6_text = 'MODE_EDIT'; - $a6_type = 'submit'; - if ( $this->isEditable() && readonly() ) - $a6_type = ''; // Knopf nicht anzeigen - $a6_src = ''; - if ( !empty($a6_type) ) { -?><input type="<?php echo $a6_type ?>"<?php if(isset($a6_src)) { ?> src="<?php echo $image_dir.'icon_'.$a6_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $a6_value ?>" class="ok" title="<?php echo lang($a6_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a6_src) -?><?php } -?><?php unset($a6_type,$a6_class,$a6_value,$a6_text) ?></td></tr> </table> - </td> - </tr> -</table> -</center> +><?php unset($a6_colspan,$a6_header) ?><?php $a7_type='ok';$a7_class='ok';$a7_value='ok';$a7_text='button_ok'; ?><div class="invisible"> +<?php + if ($this->isEditable() && !$this->isEditMode() && !readonly() ) + { + $a7_type = ''; // Knopf nicht anzeigen + ?><a class="action" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span title="<?php echo lang('MODE_EDIT_DESC') ?>"><?php echo langHtml('MODE_EDIT') ?></span></a><?php + } else + { + $a7_type = 'submit'; + } + $a7_tmp_src = ''; + if ( !empty($a7_type)) { +?> +<input type="<?php echo $a7_type ?>"<?php if(isset($a7_src)) { ?> src="<?php $a7_tmp_src ?>"<?php } ?> name="<?php echo $a7_value ?>" class="ok" title="<?php echo lang($a7_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a7_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a7_src); ?> +<?php } + if ($this->isEditable() && $this->isEditMode() ) + { + ?><a class="action" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'')) ?>"><span title="<?php echo lang('CANCEL_DESC') ?>"><?php echo langHtml('CANCEL') ?></span></a><?php + } +?> +</div><?php unset($a7_type,$a7_class,$a7_value,$a7_text) ?></td></tr><?php if (false) { ?> +</div> +</div> +<div class="bottom"> + <div class="status"> + </div> + <div class="command"> + <input type="button" value="<?php echo lang('OK') ?>" onclick="formSubmit( $(this),'<?php echo $view ?>');" /> + <input type="cancel" value="<?php echo lang('CANCEL') ?>" /> + </div> +</div> +</div> <?php if ($showDuration) { ?> <br/> @@ -286,12 +251,7 @@ if ( $a6_readonly && $checked ) <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -</form> -<?php $a2_field='delete'; ?><?php -if (isset($errors[0])) $a2_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $a2_field ?>.focus(); -document.forms[0].<?php echo $a2_field ?>.select(); +<?php } ?></form> +<?php $a3_field='delete'; ?><script name="JavaScript" type="text/javascript"><!-- </script> -<?php unset($a2_field) ?></body> -</html>- \ No newline at end of file +<?php unset($a3_field) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/file/show.tpl.php b/themes/default/pages/html/file/show.tpl.php @@ -0,0 +1,199 @@ +<?php $a3_icon='folder';$a3_width='93%';$a3_rowclasses='odd,even';$a3_columnclasses='1,2,3'; ?><?php if (false) { ?> +<div class="window"> +<div class="title"> + <?php $icon=$actionName; ?> + <img src="<?php echo $image_dir.'icon_'.$icon.IMG_ICON_EXT ?>" align="left" /> + <?php if ($this->isEditable()) { ?> + <?php if ($this->isEditMode()) { + ?><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 } + elseif (readonly()) { + ?><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /> <?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 } ?> + <span class="path"><?php echo langHtml($actionName) ?></span>&nbsp;<strong>&rarr;</strong>&nbsp; + <?php + if ( !isset($path) || !is_array($path) ) + $path = array(); + foreach( $path as $pathElement) + { + extract($pathElement); ?> + <a javascript:void(0);" onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $url ?>'); return false; " title="<?php echo $title ?>" class="path"><?php echo (!empty($key)?langHtml($key):$name) ?></a> + &nbsp;&rarr;&nbsp; + <?php } ?> + <span class="title"><?php echo langHtml(@$windowTitle) ?></span> + <?php + if ( isset($notice_status)) + { + ?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?php + } + ?> + <?php ?> + <?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 + } + ?> +</div> +<ul class="menu"> +<?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); + $liClass = (isset($menu['url'])?'':'no').'action'.($this->subActionName==$menu['subaction']?' active':''); + $icon_url = $image_dir.'icon/'.$menu['subaction'].'.png'; + ?><li class="<?php echo $liClass?>"><?php + if ( isset($menu['url']) ) + { + $link_url = Html::url($actionName,$menu['subaction'],$this->getRequestId() ); + ?><a href="javascript:void(0);" onclick="javascript:loadSubaction(this,'<?php echo $actionName ?>','<?php echo $menu['subaction'] ?>','<?php echo $this->getRequestId() ?>'); return false; " accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>"><img src="<?php echo $icon_url ?>" /><?php echo $tmp_text ?></a><?php + } + else + { + ?><span><img src="<?php echo $icon_url ?>" /><?php echo $tmp_text ?></span><?php + } + } + ?></li><?php + if ( /* Deaktiviert */ false && @$conf['help']['enabled'] ) + { + ?><a class="help" href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>"><img src="<?php echo $image_dir.'icon/help.png' ?>" /><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php + } + ?><?php + ?> +</ul> +<?php global $image_dir; + if (isset($notices) && count($notices)>0 ) + { ?> + <dl class="notice"> + <?php foreach( $notices as $notice_idx=>$notice ) { ?> + <?php if ($notice['name']!='') { ?> + <dt><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?></dt> +<?php } ?> + <dd class="<?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> + </dd> + <?php } ?> + </dl> +<?php } ?> +<div class="content"><div class="filler"> +<?php } ?><?php unset($a3_icon,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php + $column_idx = 0; +?> +<tr +> +<?php $a5_colspan='2';$a5_header=false; ?><?php $column_idx++; ?><td +<?php if (!empty($column_widths)) { ?> + width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" +<?php } ?> +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> + colspan="2" +><?php unset($a5_colspan,$a5_header) ?><?php $a6_inline=false;$a6_url=$preview_url; ?><iframe name="<?php echo $a6_name ?>" src="<?php echo $a6_url ?>"></iframe> +<?php unset($a6_inline,$a6_url) ?><?php $a6_title='';$a6_type='';$a6_class='action';$a6_action='file';$a6_subaction='edit';$a6_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $a6_target = $view; + switch( $a6_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a6_action)?$a6_action:$this->actionName,'subaction'=>!empty($a6_subaction)?$a6_subaction:$this->subActionName,'id'=>!empty($a6_id)?$a6_id:$this->getRequestId()) + +array(REQ_PARAM_TOKEN=>token()) + +$params ); + $tmp_function_call = "submitLink(this,'".str_replace("\n",'',str_replace('"','&quot;',$tmp_data))."');"; + break; + case 'view': + $tmp_function_call = "startView(this,'".(!empty($a6_subaction)?$a6_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a6_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a6_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a6_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a6_frame ?>"<?php if (isset($a6_name)) { ?> name="<?php echo $a6_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a6_class ?>"<?php if (isset($a6_accesskey)) echo ' accesskey="'.$a6_accesskey.'"' ?> title="<?php echo encodeHtml($a6_title) ?>"><?php unset($a6_title,$a6_type,$a6_class,$a6_action,$a6_subaction,$a6_frame) ?><?php $a7_file='icon/edit';$a7_align='left'; ?><?php + $a7_tmp_image_file = $image_dir.$a7_file.IMG_ICON_EXT; + $a7_tmp_title = basename($a7_tmp_image_file); +?><img alt="<?php echo $a7_tmp_title; if (isset($a7_size)) { echo ' ('; list($a7_tmp_width,$a7_tmp_height)=explode('x',$a7_size);echo $a7_tmp_width.'x'.$a7_tmp_height; echo')';} ?>" src="<?php echo $a7_tmp_image_file ?>" border="0"<?php if(isset($a7_align)) echo ' align="'.$a7_align.'"' ?><?php if (isset($a7_size)) { list($a7_tmp_width,$a7_tmp_height)=explode('x',$a7_size);echo ' width="'.$a7_tmp_width.'" height="'.$a7_tmp_height.'"';} ?> /><?php unset($a7_file,$a7_align) ?><?php $a7_class='text';$a7_key='menu_file_edit';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?></a><?php $a6_title='';$a6_type='';$a6_class='action';$a6_action='file';$a6_subaction='editvalue';$a6_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $a6_target = $view; + switch( $a6_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a6_action)?$a6_action:$this->actionName,'subaction'=>!empty($a6_subaction)?$a6_subaction:$this->subActionName,'id'=>!empty($a6_id)?$a6_id:$this->getRequestId()) + +array(REQ_PARAM_TOKEN=>token()) + +$params ); + $tmp_function_call = "submitLink(this,'".str_replace("\n",'',str_replace('"','&quot;',$tmp_data))."');"; + break; + case 'view': + $tmp_function_call = "startView(this,'".(!empty($a6_subaction)?$a6_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a6_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a6_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a6_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a6_frame ?>"<?php if (isset($a6_name)) { ?> name="<?php echo $a6_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a6_class ?>"<?php if (isset($a6_accesskey)) echo ' accesskey="'.$a6_accesskey.'"' ?> title="<?php echo encodeHtml($a6_title) ?>"><?php unset($a6_title,$a6_type,$a6_class,$a6_action,$a6_subaction,$a6_frame) ?><?php $a7_file='icon/editvalue';$a7_align='left'; ?><?php + $a7_tmp_image_file = $image_dir.$a7_file.IMG_ICON_EXT; + $a7_tmp_title = basename($a7_tmp_image_file); +?><img alt="<?php echo $a7_tmp_title; if (isset($a7_size)) { echo ' ('; list($a7_tmp_width,$a7_tmp_height)=explode('x',$a7_size);echo $a7_tmp_width.'x'.$a7_tmp_height; echo')';} ?>" src="<?php echo $a7_tmp_image_file ?>" border="0"<?php if(isset($a7_align)) echo ' align="'.$a7_align.'"' ?><?php if (isset($a7_size)) { list($a7_tmp_width,$a7_tmp_height)=explode('x',$a7_size);echo ' width="'.$a7_tmp_width.'" height="'.$a7_tmp_height.'"';} ?> /><?php unset($a7_file,$a7_align) ?><?php $a7_class='text';$a7_key='menu_file_editvalue';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = $langF($a7_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?></a></td></tr><?php if (false) { ?> +</div> +</div> +<div class="bottom"> + <div class="status"> + </div> + <div class="command"> + <input type="button" value="<?php echo lang('OK') ?>" onclick="formSubmit( $(this),'<?php echo $view ?>');" /> + <input type="cancel" value="<?php echo lang('CANCEL') ?>" /> + </div> +</div> +</div> +<?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 } ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/file/size.tpl.php b/themes/default/pages/html/file/size.tpl.php @@ -1,126 +1,82 @@ -<?php $a1_class='main'; ?><?php - if (!defined('OR_VERSION')) die('Forbidden'); - 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($a1_title)?langHtml($a1_title).' - ':(isset($windowTitle)?langHtml($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" > -<?php if ( isset($refresh_url) ) { ?> - <meta http-equiv="refresh" content="<?php echo isset($refresh_timeout)?$refresh_timeout:0 ?>; URL=<?php echo $refresh_url; if (ini_get('session.use_trans_sid')) echo '&'.session_name().'='.session_id(); ?>"> -<?php } ?> - <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 $meta['title'] ?>" ><?php - } -?><?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="main" <?php if (@$conf['interface']['application_mode']) { ?> style="padding:0px;margin:0px;"<?php } ?> > -<?php /* Debug-Information */ if ($showDuration) { echo "<!-- Output Variables are:\n";echo str_replace('-->','-- >',print_r($this->templateVars,true));echo "\n-->";} ?><?php unset($a1_class) ?><?php $a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php - $a2_action = $actionName; - $a2_subaction = $targetSubActionName; - $a2_id = $this->getRequestId(); +<?php $a3_name='';$a3_target='_self';$a3_method='post';$a3_enctype='application/x-www-form-urlencoded';$a3_type=''; ?><?php + $a3_action = $actionName; + $a3_subaction = $targetSubActionName; + $a3_id = $this->getRequestId(); if ($this->isEditable()) { if ($this->isEditMode()) { - $a2_method = 'POST'; + $a3_method = 'POST'; } else { - $a2_method = 'GET'; - $a2_subaction = $subActionName; + $a3_method = 'GET'; + $a3_subaction = $subActionName; } } -?><form name="<?php echo $a2_name ?>" - target="<?php echo $a2_target ?>" - action="<?php echo Html::url( $a2_action,$a2_subaction,$a2_id ) ?>" - method="<?php echo $a2_method ?>" - enctype="<?php echo $a2_enctype ?>" style="margin:0px;padding:0px;"> + switch( $a3_type ) + { + case 'upload': + $a3_tmp_submitFunction = ''; + break; + default: + $a3_tmp_submitFunction = 'formSubmit( $(this) ); return false;'; + } +?><form name="<?php echo $a3_name ?>" + target="<?php echo $a3_target ?>" + action="<?php echo Html::url( $a3_action,$a3_subaction,$a3_id ) ?>" + method="<?php echo $a3_method ?>" + enctype="<?php echo $a3_enctype ?>" style="margin:0px;padding:0px;" + class="<?php echo $a3_action ?>" + onSubmit="<?php echo $a3_tmp_submitFunction ?>"><input type="submit" class="invisible" /> <?php if ($this->isEditable() && !$this->isEditMode()) { ?> <input type="hidden" name="mode" value="edit" /> <?php } ?> <input type="hidden" name="<?php echo REQ_PARAM_TOKEN ?>" value="<?php echo token() ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $a2_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $a2_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a2_id ?>" /><?php +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $this->actionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $this->subActionName ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $this->getRequestId() ?>" /><?php if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype) ?><?php $a3_widths='5%,40%,55%';$a3_width='70%';$a3_rowclasses='odd,even';$a3_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$actionName; - $coldumn_widths = explode(',',$a3_widths); - $row_classes = explode(',',$a3_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a3_columnclasses); - $row_idx = 0; - $column_idx = 0; - 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="'.$a3_width.'">'; - } - if (!@$conf['interface']['application_mode'] ) - { - echo '<tr class="title"><td>'; - echo '<img src="'.$image_dir.'icon_'.$icon.IMG_ICON_EXT.'" align="left" border="0">'; - if ($this->isEditable()) { ?> +?><?php unset($a3_name,$a3_target,$a3_method,$a3_enctype,$a3_type) ?><?php $a4_widths='5%,40%,55%';$a4_width='70%';$a4_rowclasses='odd,even';$a4_columnclasses='1,2,3'; ?><?php if (false) { ?> +<div class="window"> +<div class="title"> + <?php $icon=$actionName; ?> + <img src="<?php echo $image_dir.'icon_'.$icon.IMG_ICON_EXT ?>" align="left" /> + <?php if ($this->isEditable()) { ?> <?php if ($this->isEditMode()) { ?><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 } elseif (readonly()) { ?><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /> <?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($actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; - if ( !isset($path) || is_array($path) ) + ?><?php } ?> + <span class="path"><?php echo langHtml($actionName) ?></span>&nbsp;<strong>&rarr;</strong>&nbsp; + <?php + 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>'; + extract($pathElement); ?> + <a javascript:void(0);" onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $url ?>'); r