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 ?>'); 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,58 +84,51 @@ $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_widths,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $row_idx++; + </dl> +<?php } ?> +<div class="content"><div class="filler"> +<?php } ?><?php unset($a4_widths,$a4_width,$a4_rowclasses,$a4_columnclasses) ?><?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 } ?> @@ -187,79 +136,78 @@ class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a5_colspan) ?><?php $a6_class='text';$a6_text='IMAGE_OLD_SIZE';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_colspan,$a6_header) ?><?php $a7_class='text';$a7_text='IMAGE_OLD_SIZE';$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='width';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_header) ?><?php $a7_class='text';$a7_var='width';$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) ?><?php $a6_class='text';$a6_raw='_*_';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_escape,$a7_cut) ?><?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 $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 $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a7_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_class='text';$a6_var='height';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php $a7_class='text';$a7_var='height';$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 $a4_not='';$a4_empty='formats'; ?><?php - if ( !isset($$a4_empty) ) - $a4_tmp_exec = empty($a4_empty); - elseif ( is_array($$a4_empty) ) - $a4_tmp_exec = (count($$a4_empty)==0); - elseif ( is_bool($$a4_empty) ) - $a4_tmp_exec = true; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_escape,$a7_cut) ?></td></tr><?php $a5_not='';$a5_empty='formats'; ?><?php + if ( !isset($$a5_empty) ) + $a5_tmp_exec = empty($a5_empty); + elseif ( is_array($$a5_empty) ) + $a5_tmp_exec = (count($$a5_empty)==0); + elseif ( is_bool($$a5_empty) ) + $a5_tmp_exec = true; else - $a4_tmp_exec = empty( $$a4_empty ); - $a4_tmp_exec = !$a4_tmp_exec; - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) + $a5_tmp_exec = empty( $$a5_empty ); + $a5_tmp_exec = !$a5_tmp_exec; + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a4_not,$a4_empty) ?><?php $a5_true=$mode=="edit"; ?><?php - if (gettype($a5_true) === '' && gettype($a5_true) === '1') - $a5_tmp_exec = $$a5_true == true; +<?php unset($a5_not,$a5_empty) ?><?php $a6_true=$mode=="edit"; ?><?php + if (gettype($a6_true) === '' && gettype($a6_true) === '1') + $a6_tmp_exec = $$a6_true == true; else - $a5_tmp_exec = $a5_true == true; - $a5_tmp_last_exec = $a5_tmp_exec; - if ( $a5_tmp_exec ) + $a6_tmp_exec = $a6_true == true; + $a6_tmp_last_exec = $a6_tmp_exec; + if ( $a6_tmp_exec ) { ?> -<?php unset($a5_true) ?><?php - $row_idx++; +<?php unset($a6_true) ?><?php $column_idx = 0; ?> <tr > -<?php $a7_colspan='3'; ?><?php $column_idx++; ?><td +<?php $a8_colspan='3';$a8_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -267,80 +215,80 @@ class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="3" -><?php unset($a7_colspan) ?><?php $a8_title=lang('IMAGE_NEW_SIZE'); ?><fieldset><?php if(isset($a8_title)) { ?><legend><?php if(isset($a8_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a8_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a8_title) ?></legend><?php } ?><?php unset($a8_title) ?></fieldset></td></tr><?php - $row_idx++; +><?php unset($a8_colspan,$a8_header) ?><?php $a9_title=lang('IMAGE_NEW_SIZE'); ?><fieldset><?php if(isset($a9_title)) { ?><legend><?php if(isset($a9_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a9_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a9_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a9_title) ?></fieldset></td></tr><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a8_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 $a8_readonly=false;$a8_name='type';$a8_value='factor';$a8_default=false;$a8_prefix='';$a8_suffix='';$a8_class='';$a8_onchange=''; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; - if ( isset($$a8_name) ) - $a8_tmp_default = $$a8_name; - elseif ( isset($a8_default) ) - $a8_tmp_default = $a8_default; +><?php unset($a8_header) ?><?php $a9_readonly=false;$a9_name='type';$a9_value='factor';$a9_default=false;$a9_prefix='';$a9_suffix='';$a9_class='';$a9_onchange=''; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a9_readonly=true; + if ( isset($$a9_name) ) + $a9_tmp_default = $$a9_name; + elseif ( isset($a9_default) ) + $a9_tmp_default = $a9_default; else - $a8_tmp_default = ''; - ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a8_name.'_'.$a8_value ?>" name="<?php echo $a8_prefix.$a8_name ?>"<?php if ( $a8_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a8_value ?>" <?php if($a8_value==$a8_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a8_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> -<?php /* #END-IF# */ ?><?php unset($a8_readonly,$a8_name,$a8_value,$a8_default,$a8_prefix,$a8_suffix,$a8_class,$a8_onchange) ?></td><?php $column_idx++; ?><td + $a9_tmp_default = ''; + ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a9_name.'_'.$a9_value ?>" name="<?php echo $a9_prefix.$a9_name ?>"<?php if ( $a9_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a9_value ?>" <?php if($a9_value==$a9_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a9_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> +<?php /* #END-IF# */ ?><?php unset($a9_readonly,$a9_name,$a9_value,$a9_default,$a9_prefix,$a9_suffix,$a9_class,$a9_onchange) ?></td><?php $a8_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 $a8_for='type_factor'; ?><label for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>"><?php unset($a8_for) ?><?php $a9_class='text';$a9_text='FILE_IMAGE_SIZE_FACTOR';$a9_escape=true;$a9_cut='both'; ?><?php - $a9_title = ''; +><?php unset($a8_header) ?><?php $a9_for='type_factor'; ?><label<?php if (isset($a9_for)) { ?> for="id_<?php echo $a9_for ?><?php if (!empty($a9_value)) echo '_'.$a9_value ?>" class="label"<?php } ?>> +<?php if (isset($a9_key)) { echo lang($a9_key); if(hasLang($a9_key.'_desc')) { ?><div class="description"><?php echo lang($a9_key.'_desc')?></div> <?php } } ?><?php unset($a9_for) ?><?php $a10_class='text';$a10_text='FILE_IMAGE_SIZE_FACTOR';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_title = ''; $tmp_tag = 'span'; -?><<?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); +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $langF($a10_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?></label></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_text,$a10_escape,$a10_cut) ?></label></td><?php $a8_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 $a8_list='factors';$a8_name='factor';$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; +><?php unset($a8_header) ?><?php $a9_list='factors';$a9_name='factor';$a9_onchange='';$a9_title='';$a9_class='';$a9_addempty=false;$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) ) { @@ -348,7 +296,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 ); @@ -357,97 +305,96 @@ 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 $a8_var='factor';$a8_value='1'; ?><?php - if (isset($a8_key)) - $$a8_var = $a8_value[$a8_key]; +?><?php unset($a9_list,$a9_name,$a9_onchange,$a9_title,$a9_class,$a9_addempty,$a9_multiple,$a9_size,$a9_lang) ?><?php $a9_var='factor';$a9_value='1'; ?><?php + if (isset($a9_key)) + $$a9_var = $a9_value[$a9_key]; else - $$a8_var = $a8_value; -?><?php unset($a8_var,$a8_value) ?></td></tr><?php - $row_idx++; + $$a9_var = $a9_value; +?><?php unset($a9_var,$a9_value) ?></td></tr><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a8_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 $a8_readonly=false;$a8_name='type';$a8_value='input';$a8_default=false;$a8_prefix='';$a8_suffix='';$a8_class='';$a8_onchange=''; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; - if ( isset($$a8_name) ) - $a8_tmp_default = $$a8_name; - elseif ( isset($a8_default) ) - $a8_tmp_default = $a8_default; +><?php unset($a8_header) ?><?php $a9_readonly=false;$a9_name='type';$a9_value='input';$a9_default=false;$a9_prefix='';$a9_suffix='';$a9_class='';$a9_onchange=''; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a9_readonly=true; + if ( isset($$a9_name) ) + $a9_tmp_default = $$a9_name; + elseif ( isset($a9_default) ) + $a9_tmp_default = $a9_default; else - $a8_tmp_default = ''; - ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a8_name.'_'.$a8_value ?>" name="<?php echo $a8_prefix.$a8_name ?>"<?php if ( $a8_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a8_value ?>" <?php if($a8_value==$a8_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a8_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> -<?php /* #END-IF# */ ?><?php unset($a8_readonly,$a8_name,$a8_value,$a8_default,$a8_prefix,$a8_suffix,$a8_class,$a8_onchange) ?></td><?php $column_idx++; ?><td + $a9_tmp_default = ''; + ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a9_name.'_'.$a9_value ?>" name="<?php echo $a9_prefix.$a9_name ?>"<?php if ( $a9_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a9_value ?>" <?php if($a9_value==$a9_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a9_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> +<?php /* #END-IF# */ ?><?php unset($a9_readonly,$a9_name,$a9_value,$a9_default,$a9_prefix,$a9_suffix,$a9_class,$a9_onchange) ?></td><?php $a8_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 $a8_for='type_input'; ?><label for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>"><?php unset($a8_for) ?><?php $a9_class='text';$a9_text='FILE_IMAGE_NEW_WIDTH_HEIGHT';$a9_escape=true;$a9_cut='both'; ?><?php - $a9_title = ''; +><?php unset($a8_header) ?><?php $a9_for='type_input'; ?><label<?php if (isset($a9_for)) { ?> for="id_<?php echo $a9_for ?><?php if (!empty($a9_value)) echo '_'.$a9_value ?>" class="label"<?php } ?>> +<?php if (isset($a9_key)) { echo lang($a9_key); if(hasLang($a9_key.'_desc')) { ?><div class="description"><?php echo lang($a9_key.'_desc')?></div> <?php } } ?><?php unset($a9_for) ?><?php $a10_class='text';$a10_text='FILE_IMAGE_NEW_WIDTH_HEIGHT';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_title = ''; $tmp_tag = 'span'; -?><<?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); +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $langF($a10_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?></label></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_text,$a10_escape,$a10_cut) ?></label></td><?php $a8_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 $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 ?>" 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 $a8_class='text';$a8_raw='_*_';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +><?php unset($a8_header) ?><?php $a9_class='text';$a9_default='';$a9_type='text';$a9_name='width';$a9_size='10';$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 $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_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 ?>" 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) ?></td></tr><?php - $row_idx++; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_raw,$a9_escape,$a9_cut) ?><?php $a9_class='text';$a9_default='';$a9_type='text';$a9_name='height';$a9_size='10';$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) ?></td></tr><?php $column_idx = 0; ?> <tr > -<?php $a7_colspan='3'; ?><?php $column_idx++; ?><td +<?php $a8_colspan='3';$a8_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -455,13 +402,12 @@ if ($a8_readonly) { class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="3" -><?php unset($a7_colspan) ?><?php $a8_title=lang('options'); ?><fieldset><?php if(isset($a8_title)) { ?><legend><?php if(isset($a8_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a8_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a8_title) ?></legend><?php } ?><?php unset($a8_title) ?></fieldset></td></tr><?php - $row_idx++; +><?php unset($a8_colspan,$a8_header) ?><?php $a9_title=lang('options'); ?><fieldset><?php if(isset($a9_title)) { ?><legend><?php if(isset($a9_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a9_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a9_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a9_title) ?></fieldset></td></tr><?php $column_idx = 0; ?> <tr > -<?php $a7_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a8_colspan='2';$a8_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -469,51 +415,52 @@ if ($a8_readonly) { class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a7_colspan) ?><?php $a8_for='format'; ?><label for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>"><?php unset($a8_for) ?><?php $a9_class='text';$a9_text='FILE_IMAGE_FORMAT';$a9_escape=true;$a9_cut='both'; ?><?php - $a9_title = ''; +><?php unset($a8_colspan,$a8_header) ?><?php $a9_for='format'; ?><label<?php if (isset($a9_for)) { ?> for="id_<?php echo $a9_for ?><?php if (!empty($a9_value)) echo '_'.$a9_value ?>" class="label"<?php } ?>> +<?php if (isset($a9_key)) { echo lang($a9_key); if(hasLang($a9_key.'_desc')) { ?><div class="description"><?php echo lang($a9_key.'_desc')?></div> <?php } } ?><?php unset($a9_for) ?><?php $a10_class='text';$a10_text='FILE_IMAGE_FORMAT';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_title = ''; $tmp_tag = 'span'; -?><<?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); +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $langF($a10_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?></label></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_text,$a10_escape,$a10_cut) ?></label></td><?php $a8_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 $a8_list='formats';$a8_name='format';$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; +><?php unset($a8_header) ?><?php $a9_list='formats';$a9_name='format';$a9_onchange='';$a9_title='';$a9_class='';$a9_addempty=false;$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) ) { @@ -521,7 +468,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 ); @@ -530,22 +477,21 @@ 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) ?></td></tr><?php - $row_idx++; +?><?php unset($a9_list,$a9_name,$a9_onchange,$a9_title,$a9_class,$a9_addempty,$a9_multiple,$a9_size,$a9_lang) ?></td></tr><?php $column_idx = 0; ?> <tr > -<?php $a7_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a8_colspan='2';$a8_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -553,56 +499,57 @@ if (count($$a8_list)==1) echo '<input type="hidden" name="'.$a8_name.'" value="' class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a7_colspan) ?><?php $a8_for='jpeglist_compression'; ?><label for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>"><?php unset($a8_for) ?><?php $a9_class='text';$a9_text='FILE_IMAGE_JPEG_COMPRESSION';$a9_escape=true;$a9_cut='both'; ?><?php - $a9_title = ''; +><?php unset($a8_colspan,$a8_header) ?><?php $a9_for='jpeglist_compression'; ?><label<?php if (isset($a9_for)) { ?> for="id_<?php echo $a9_for ?><?php if (!empty($a9_value)) echo '_'.$a9_value ?>" class="label"<?php } ?>> +<?php if (isset($a9_key)) { echo lang($a9_key); if(hasLang($a9_key.'_desc')) { ?><div class="description"><?php echo lang($a9_key.'_desc')?></div> <?php } } ?><?php unset($a9_for) ?><?php $a10_class='text';$a10_text='FILE_IMAGE_JPEG_COMPRESSION';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_title = ''; $tmp_tag = 'span'; -?><<?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); +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $langF($a10_text); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?></label></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_text,$a10_escape,$a10_cut) ?></label></td><?php $a8_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 $a8_var='jpeg_compression';$a8_value='70'; ?><?php - if (isset($a8_key)) - $$a8_var = $a8_value[$a8_key]; +><?php unset($a8_header) ?><?php $a9_var='jpeg_compression';$a9_value='70'; ?><?php + if (isset($a9_key)) + $$a9_var = $a9_value[$a9_key]; else - $$a8_var = $a8_value; -?><?php unset($a8_var,$a8_value) ?><?php $a8_list='jpeglist';$a8_name='jpeg_compression';$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; + $$a9_var = $a9_value; +?><?php unset($a9_var,$a9_value) ?><?php $a9_list='jpeglist';$a9_name='jpeg_compression';$a9_onchange='';$a9_title='';$a9_class='';$a9_addempty=false;$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) ) { @@ -610,7 +557,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 ); @@ -619,22 +566,21 @@ 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) ?></td></tr><?php - $row_idx++; +?><?php unset($a9_list,$a9_name,$a9_onchange,$a9_title,$a9_class,$a9_addempty,$a9_multiple,$a9_size,$a9_lang) ?></td></tr><?php $column_idx = 0; ?> <tr > -<?php $a7_colspan='3'; ?><?php $column_idx++; ?><td +<?php $a8_colspan='3';$a8_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -642,53 +588,70 @@ if (count($$a8_list)==1) echo '<input type="hidden" name="'.$a8_name.'" value="' class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="3" -><?php unset($a7_colspan) ?><?php $a8_default=false;$a8_readonly=false;$a8_name='copy'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; - if ( isset($$a8_name) ) - $checked = $$a8_name; +><?php unset($a8_colspan,$a8_header) ?><?php $a9_default=false;$a9_readonly=false;$a9_name='copy'; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a9_readonly=true; + if ( isset($$a9_name) ) + $checked = $$a9_name; else - $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 ) + $checked = $a9_default; +?><input class="checkbox" type="checkbox" id="id_<?php echo $a9_name ?>" name="<?php echo $a9_name ?>" <?php if ($a9_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?><?php if (in_array($a9_name,$errors)) echo ' style="background-color:red;"' ?> /><?php +if ( $a9_readonly && $checked ) { -?><input type="hidden" name="<?php echo $a8_name ?>" value="1" /><?php +?><input type="hidden" name="<?php echo $a9_name ?>" value="1" /><?php } -?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?><?php $a8_for='copy'; ?><label for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>"><?php unset($a8_for) ?><?php $a9_class='text';$a9_key='copy';$a9_escape=true;$a9_cut='both'; ?><?php - $a9_title = ''; +?><?php unset($a9_name); unset($a9_readonly); unset($a9_default); ?><?php unset($a9_default,$a9_readonly,$a9_name) ?><?php $a9_for='copy'; ?><label<?php if (isset($a9_for)) { ?> for="id_<?php echo $a9_for ?><?php if (!empty($a9_value)) echo '_'.$a9_value ?>" class="label"<?php } ?>> +<?php if (isset($a9_key)) { echo lang($a9_key); if(hasLang($a9_key.'_desc')) { ?><div class="description"><?php echo lang($a9_key.'_desc')?></div> <?php } } ?><?php unset($a9_for) ?><?php $a10_class='text';$a10_key='copy';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a9_class ?>" title="<?php echo $a9_title ?>"><?php - $langF = $a9_escape?'langHtml':'lang'; - $tmp_text = $langF($a9_key); +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $langF($a10_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_key,$a9_escape,$a9_cut) ?></label></td></tr><?php } ?><?php - $row_idx++; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_key,$a10_escape,$a10_cut) ?></label></td></tr><?php } ?><?php $column_idx = 0; ?> <tr > -<?php $a6_class='act';$a6_colspan='3'; ?><?php $column_idx++; ?><td +<?php $a7_class='act';$a7_colspan='3';$a7_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="3" -><?php unset($a6_class,$a6_colspan) ?><?php $a7_type='ok';$a7_class='ok';$a7_value='ok';$a7_text='button_ok'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) - $a7_text = 'MODE_EDIT'; - $a7_type = 'submit'; - if ( $this->isEditable() && readonly() ) - $a7_type = ''; // Knopf nicht anzeigen - $a7_src = ''; - if ( !empty($a7_type) ) { -?><input type="<?php echo $a7_type ?>"<?php if(isset($a7_src)) { ?> src="<?php echo $image_dir.'icon_'.$a7_src.IMG_ICON_EXT ?>"<?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 } -?><?php unset($a7_type,$a7_class,$a7_value,$a7_text) ?></td></tr><?php } ?> </table> - </td> - </tr> -</table> -</center> +><?php unset($a7_class,$a7_colspan,$a7_header) ?><?php $a8_type='ok';$a8_class='ok';$a8_value='ok';$a8_text='button_ok'; ?><div class="invisible"> +<?php + if ($this->isEditable() && !$this->isEditMode() && !readonly() ) + { + $a8_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 + { + $a8_type = 'submit'; + } + $a8_tmp_src = ''; + if ( !empty($a8_type)) { +?> +<input type="<?php echo $a8_type ?>"<?php if(isset($a8_src)) { ?> src="<?php $a8_tmp_src ?>"<?php } ?> name="<?php echo $a8_value ?>" class="ok" title="<?php echo lang($a8_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a8_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a8_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($a8_type,$a8_class,$a8_value,$a8_text) ?></td></tr><?php } ?><?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/> @@ -696,12 +659,6 @@ if ( $a8_readonly && $checked ) <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -<?php $a3_field='width'; ?><?php -if (isset($errors[0])) $a3_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $a3_field ?>.focus(); -document.forms[0].<?php echo $a3_field ?>.select(); +<?php } ?><?php $a4_field='width'; ?><script name="JavaScript" type="text/javascript"><!-- </script> -<?php unset($a3_field) ?></form> -</body> -</html>- \ No newline at end of file +<?php unset($a4_field) ?></form> diff --git a/themes/default/pages/html/file/uncompress.tpl.php b/themes/default/pages/html/file/uncompress.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,58 +84,51 @@ $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_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 } ?> @@ -186,94 +136,111 @@ 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/> @@ -281,6 +248,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/filebrowser/browse.tpl.php b/themes/default/pages/html/filebrowser/browse.tpl.php @@ -1,95 +1,46 @@ -<?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_icon='folder';$a2_width='93%';$a2_rowclasses='odd,even';$a2_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$a2_icon; - $row_classes = explode(',',$a2_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a2_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="'.$a2_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 $a2_class='main'; ?><html> +<head> +</head> +<body> +<?php unset($a2_class) ?><?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 } - 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']); @@ -97,77 +48,71 @@ $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($a2_icon,$a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php $a3_list='notices';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php - $a3_list_tmp_key = $a3_key; - $a3_list_tmp_value = $a3_value; - $a3_list_extract = $a3_extract; - unset($a3_key); - unset($a3_value); - if ( !isset($$a3_list) || !is_array($$a3_list) ) - $$a3_list = array(); - foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) +<div class="content"><div class="filler"> +<?php } ?><?php unset($a3_icon,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $a4_list='notices';$a4_extract=true;$a4_key='list_key';$a4_value='list_value'; ?><?php + $a4_list_tmp_key = $a4_key; + $a4_list_tmp_value = $a4_value; + $a4_list_extract = $a4_extract; + unset($a4_key); + unset($a4_value); + if ( !isset($$a4_list) || !is_array($$a4_list) ) + $$a4_list = array(); + foreach( $$a4_list as $$a4_list_tmp_key => $$a4_list_tmp_value ) { - if ( $a3_list_extract ) + if ( $a4_list_extract ) { - if ( !is_array($$a3_list_tmp_value) ) + if ( !is_array($$a4_list_tmp_value) ) { - print_r($$a3_list_tmp_value); - die( 'not an array at key: '.$$a3_list_tmp_key ); + print_r($$a4_list_tmp_value); + die( 'not an array at key: '.$$a4_list_tmp_key ); } - extract($$a3_list_tmp_value); + extract($$a4_list_tmp_value); } -?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php - $row_idx++; +?><?php unset($a4_list,$a4_extract,$a4_key,$a4_value) ?><?php $a5_class='headline'; ?><?php $column_idx = 0; ?> <tr + class="headline" > -<?php $a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php unset($a5_class) ?><?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 } ?> @@ -175,172 +120,229 @@ class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a5_colspan) ?><?php $a6_class='text';$a6_key=$key;$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_colspan,$a6_header) ?><?php $a7_class='text';$a7_key=$key;$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_key); +?><<?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($a6_class,$a6_key,$a6_escape,$a6_cut) ?><br/></td></tr><?php } ?><?php $a3_present='up_url'; ?><?php - $a3_tmp_exec = isset($$a3_present); - $a3_tmp_last_exec = $a3_tmp_exec; - if ( $a3_tmp_exec ) - { -?> -<?php unset($a3_present) ?><?php - $row_idx++; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?><br/></td></tr><?php } ?><?php $a4_width='100%';$a4_space='0px';$a4_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($a4_width,$a4_space,$a4_padding) ?><?php $a5_class='headline'; ?><?php $column_idx = 0; ?> <tr + class="headline" > -<?php $a5_width='50%';$a5_colspan='8'; ?><?php $column_idx++; ?><td - width="50%" +<?php unset($a5_class) ?><?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 } ?> - colspan="8" -><?php unset($a5_width,$a5_colspan) ?><?php $a6_title='';$a6_target='_self';$a6_url=$up_url;$a6_class=''; ?><?php - $params = array(); - $tmp_url = ''; - $tmp_url = $a6_url; -?><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_url,$a6_class) ?><?php $a7_align='left';$a7_type='folder'; ?><?php - $a7_tmp_image_file = $image_dir.'icon_'.$a7_type.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_align,$a7_type) ?><?php $a7_class='text';$a7_raw='__.._____________________';$a7_escape=true;$a7_cut='both'; ?><?php +><?php unset($a6_header) ?><?php $a7_class='text';$a7_key='GLOBAL_TYPE';$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 = str_replace('_','&nbsp;',$a7_raw); + $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_raw,$a7_escape,$a7_cut) ?></a></td></tr><?php } ?><?php $a3_class='headline'; ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr - class="headline" -> -<?php unset($a3_class) ?><?php $a4_class='help'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> - class="help" -><?php unset($a4_class) ?><?php $a5_class='text';$a5_key='GLOBAL_TYPE';$a5_escape=true;$a5_cut='both'; ?><?php - $a5_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?><?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 $a5_class ?>" title="<?php echo $a5_title ?>"><?php - $langF = $a5_escape?'langHtml':'lang'; - $tmp_text = $langF($a5_key); +?><<?php echo $tmp_tag ?> class="<?php echo $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a7_raw); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?><?php $a5_class='text';$a5_raw='_/_';$a5_escape=true;$a5_cut='both'; ?><?php - $a5_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php $a7_class='text';$a7_key='GLOBAL_NAME';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_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 = str_replace('_','&nbsp;',$a5_raw); +?><<?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($a5_class,$a5_raw,$a5_escape,$a5_cut) ?><?php $a5_class='text';$a5_key='GLOBAL_NAME';$a5_escape=true;$a5_cut='both'; ?><?php - $a5_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$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 unset($a6_header) ?><?php $a7_class='text';$a7_key='GLOBAL_LASTCHANGE';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_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_key); +?><<?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($a5_class,$a5_key,$a5_escape,$a5_cut) ?></td><?php $a4_class='help'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?></td></tr><?php $a5_present='up_url'; ?><?php + $a5_tmp_exec = isset($$a5_present); + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) + { +?> +<?php unset($a5_present) ?><?php $a6_class='data'; ?><?php + $column_idx = 0; +?> +<tr + class="data" +> +<?php unset($a6_class) ?><?php $a7_width='50%';$a7_colspan='8';$a7_header=false; ?><?php $column_idx++; ?><td + width="50%" +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> - class="help" -><?php unset($a4_class) ?><?php $a5_class='text';$a5_key='GLOBAL_LASTCHANGE';$a5_escape=true;$a5_cut='both'; ?><?php - $a5_title = ''; + colspan="8" +><?php unset($a7_width,$a7_colspan,$a7_header) ?><?php $a8_title='';$a8_type='';$a8_url=$up_url;$a8_class='';$a8_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $a8_target = $view; + switch( $a8_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a8_action)?$a8_action:$this->actionName,'subaction'=>!empty($a8_subaction)?$a8_subaction:$this->subActionName,'id'=>!empty($a8_id)?$a8_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($a8_subaction)?$a8_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a8_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a8_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a8_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a8_frame ?>"<?php if (isset($a8_name)) { ?> name="<?php echo $a8_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a8_class ?>"<?php if (isset($a8_accesskey)) echo ' accesskey="'.$a8_accesskey.'"' ?> title="<?php echo encodeHtml($a8_title) ?>"><?php unset($a8_title,$a8_type,$a8_url,$a8_class,$a8_frame) ?><?php $a9_align='left';$a9_type='folder'; ?><?php + $a9_tmp_image_file = $image_dir.'icon_'.$a9_type.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_align,$a9_type) ?><?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 $a5_class ?>" title="<?php echo $a5_title ?>"><?php - $langF = $a5_escape?'langHtml':'lang'; - $tmp_text = $langF($a5_key); +?><<?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($a5_class,$a5_key,$a5_escape,$a5_cut) ?></td></tr><?php $a3_list='object';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php - $a3_list_tmp_key = $a3_key; - $a3_list_tmp_value = $a3_value; - $a3_list_extract = $a3_extract; - unset($a3_key); - unset($a3_value); - if ( !isset($$a3_list) || !is_array($$a3_list) ) - $$a3_list = array(); - foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_raw,$a9_escape,$a9_cut) ?></a></td></tr><?php } ?><?php $a5_list='object';$a5_extract=true;$a5_key='list_key';$a5_value='list_value'; ?><?php + $a5_list_tmp_key = $a5_key; + $a5_list_tmp_value = $a5_value; + $a5_list_extract = $a5_extract; + unset($a5_key); + unset($a5_value); + if ( !isset($$a5_list) || !is_array($$a5_list) ) + $$a5_list = array(); + foreach( $$a5_list as $$a5_list_tmp_key => $$a5_list_tmp_value ) { - if ( $a3_list_extract ) + if ( $a5_list_extract ) { - if ( !is_array($$a3_list_tmp_value) ) + if ( !is_array($$a5_list_tmp_value) ) { - print_r($$a3_list_tmp_value); - die( 'not an array at key: '.$$a3_list_tmp_key ); + print_r($$a5_list_tmp_value); + die( 'not an array at key: '.$$a5_list_tmp_key ); } - extract($$a3_list_tmp_value); + extract($$a5_list_tmp_value); } -?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php $a4_class='data'; ?><?php - $row_idx++; +?><?php unset($a5_list,$a5_extract,$a5_key,$a5_value) ?><?php $a6_class='data'; ?><?php $column_idx = 0; ?> <tr class="data" > -<?php unset($a4_class) ?><?php $column_idx++; ?><td +<?php unset($a6_class) ?><?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 $a6_title=$desc;$a6_target='_self';$a6_url=$url;$a6_class=$class; ?><?php +><?php unset($a7_header) ?><?php $a8_title=$desc;$a8_type='';$a8_url=$url;$a8_class=$class;$a8_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a6_url; -?><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_url,$a6_class) ?><?php $a7_align='left';$a7_type=$icon; ?><?php - $a7_tmp_image_file = $image_dir.'icon_'.$a7_type.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_align,$a7_type) ?><?php $a7_class='text';$a7_var='name';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; + $a8_target = $view; + switch( $a8_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a8_action)?$a8_action:$this->actionName,'subaction'=>!empty($a8_subaction)?$a8_subaction:$this->subActionName,'id'=>!empty($a8_id)?$a8_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($a8_subaction)?$a8_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a8_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a8_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a8_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a8_frame ?>"<?php if (isset($a8_name)) { ?> name="<?php echo $a8_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a8_class ?>"<?php if (isset($a8_accesskey)) echo ' accesskey="'.$a8_accesskey.'"' ?> title="<?php echo encodeHtml($a8_title) ?>"><?php unset($a8_title,$a8_type,$a8_url,$a8_class,$a8_frame) ?><?php $a9_align='left';$a9_type=$icon; ?><?php + $a9_tmp_image_file = $image_dir.'icon_'.$a9_type.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_align,$a9_type) ?><?php $a9_class='text';$a9_var='name';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_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'); +?><<?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($a7_class,$a7_var,$a7_escape,$a7_cut) ?><?php $a7_class='text';$a7_raw='_';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_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 $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = str_replace('_','&nbsp;',$a7_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($a7_class,$a7_raw,$a7_escape,$a7_cut) ?></a></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_raw,$a9_escape,$a9_cut) ?></a></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 $a6_date=$date; ?><?php +><?php unset($a7_header) ?><?php $a8_date=$date; ?><?php global $conf; - $time = $a6_date; + $time = $a8_date; if ( isset($_COOKIE['or_timezone_offset']) ) { $time -= (int)date('Z'); @@ -399,26 +401,25 @@ echo $jahre.' '.lang('GLOBAL_YEARS'); echo '</span>'; } -?><?php unset($a6_date) ?></td></tr><?php } ?><?php $a3_empty='object'; ?><?php - if ( !isset($$a3_empty) ) - $a3_tmp_exec = empty($a3_empty); - elseif ( is_array($$a3_empty) ) - $a3_tmp_exec = (count($$a3_empty)==0); - elseif ( is_bool($$a3_empty) ) - $a3_tmp_exec = true; +?><?php unset($a8_date) ?></td></tr><?php } ?><?php $a5_empty='object'; ?><?php + if ( !isset($$a5_empty) ) + $a5_tmp_exec = empty($a5_empty); + elseif ( is_array($$a5_empty) ) + $a5_tmp_exec = (count($$a5_empty)==0); + elseif ( is_bool($$a5_empty) ) + $a5_tmp_exec = true; else - $a3_tmp_exec = empty( $$a3_empty ); - $a3_tmp_last_exec = $a3_tmp_exec; - if ( $a3_tmp_exec ) + $a5_tmp_exec = empty( $$a5_empty ); + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a3_empty) ?><?php - $row_idx++; +<?php unset($a5_empty) ?><?php $column_idx = 0; ?> <tr > -<?php $a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a7_colspan='2';$a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -426,198 +427,247 @@ class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a5_colspan) ?><?php $a6_class='text';$a6_text='GLOBAL_NOT_FOUND';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a7_colspan,$a7_header) ?><?php $a8_class='text';$a8_text='GLOBAL_NOT_FOUND';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_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 $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($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td></tr><?php } ?><?php $a3_true=$writable; ?><?php - if (gettype($a3_true) === '' && gettype($a3_true) === '1') - $a3_tmp_exec = $$a3_true == true; +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></td></tr><?php } ?><?php $a5_true=$writable; ?><?php + if (gettype($a5_true) === '' && gettype($a5_true) === '1') + $a5_tmp_exec = $$a5_true == true; else - $a3_tmp_exec = $a3_true == true; - $a3_tmp_last_exec = $a3_tmp_exec; - if ( $a3_tmp_exec ) + $a5_tmp_exec = $a5_true == true; + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a3_true) ?><?php - $row_idx++; +<?php unset($a5_true) ?><?php $column_idx = 0; ?> <tr > -<?php $a5_class='act';$a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a7_class='act';$a7_colspan='2';$a7_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) ?><br/><?php $a6_action='filebrowser';$a6_subaction='upload';$a6_id=$id;$a6_name='';$a6_target='_self';$a6_method='post';$a6_enctype='multipart/form-data'; ?><?php +><?php unset($a7_class,$a7_colspan,$a7_header) ?><br/><?php $a8_action='filebrowser';$a8_subaction='upload';$a8_id=$id;$a8_name='';$a8_target='_self';$a8_method='post';$a8_enctype='multipart/form-data';$a8_type=''; ?><?php if ($this->isEditable()) { if ($this->isEditMode()) { - $a6_method = 'POST'; + $a8_method = 'POST'; } else { - $a6_method = 'GET'; - $a6_subaction = $subActionName; + $a8_method = 'GET'; + $a8_subaction = $subActionName; } } -?><form name="<?php echo $a6_name ?>" - target="<?php echo $a6_target ?>" - action="<?php echo Html::url( $a6_action,$a6_subaction,$a6_id ) ?>" - method="<?php echo $a6_method ?>" - enctype="<?php echo $a6_enctype ?>" style="margin:0px;padding:0px;"> + switch( $a8_type ) + { + case 'upload': + $a8_tmp_submitFunction = ''; + break; + default: + $a8_tmp_submitFunction = 'formSubmit( $(this) ); return false;'; + } +?><form name="<?php echo $a8_name ?>" + target="<?php echo $a8_target ?>" + action="<?php echo Html::url( $a8_action,$a8_subaction,$a8_id ) ?>" + method="<?php echo $a8_method ?>" + enctype="<?php echo $a8_enctype ?>" style="margin:0px;padding:0px;" + class="<?php echo $a8_action ?>" + onSubmit="<?php echo $a8_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 $a6_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $a6_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a6_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($a6_action,$a6_subaction,$a6_id,$a6_name,$a6_target,$a6_method,$a6_enctype) ?><?php $a7_name='CKEditorFuncNum'; ?><?php -if (isset($$a7_name)) - $a7_tmp_value = $$a7_name; -elseif ( isset($a7_default) ) - $a7_tmp_value = $a7_default; +?><?php unset($a8_action,$a8_subaction,$a8_id,$a8_name,$a8_target,$a8_method,$a8_enctype,$a8_type) ?><?php $a9_name='CKEditorFuncNum'; ?><?php +if (isset($$a9_name)) + $a9_tmp_value = $$a9_name; +elseif ( isset($a9_default) ) + $a9_tmp_value = $a9_default; else - $a7_tmp_value = ""; -?><input type="hidden" name="<?php echo $a7_name ?>" value="<?php echo $a7_tmp_value ?>" /><?php unset($a7_name) ?><?php $a7_class='text';$a7_key='file';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; + $a9_tmp_value = ""; +?><input type="hidden" name="<?php echo $a9_name ?>" value="<?php echo $a9_tmp_value ?>" /><?php unset($a9_name) ?><?php $a9_class='text';$a9_key='file';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_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 $a9_class ?>" title="<?php echo $a9_title ?>"><?php + $langF = $a9_escape?'langHtml':'lang'; + $tmp_text = $langF($a9_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) ?><?php $a7_class='text';$a7_raw='__';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_key,$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 $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = str_replace('_','&nbsp;',$a7_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($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php $a7_name='file';$a7_class='upload';$a7_size='40'; ?><input size="<?php echo $a7_size ?>" id="id_<?php echo $a7_name ?>" type="file" <?php if (isset($a7_maxlength))echo ' maxlength="'.$a7_maxlength.'"' ?> name="<?php echo $a7_name ?>" class="<?php echo $a7_class ?>" <?php if (in_array($a7_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php unset($a7_name,$a7_class,$a7_size) ?><?php $a7_class='text';$a7_raw='__';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_raw,$a9_escape,$a9_cut) ?><?php $a9_name='file';$a9_class='upload';$a9_size='40'; ?><input size="<?php echo $a9_size ?>" id="id_<?php echo $a9_name ?>" type="file" <?php if (isset($a9_maxlength))echo ' maxlength="'.$a9_maxlength.'"' ?> name="<?php echo $a9_name ?>" class="<?php echo $a9_class ?>" <?php if (in_array($a9_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php unset($a9_name,$a9_class,$a9_size) ?><?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 $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = str_replace('_','&nbsp;',$a7_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($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php $a7_type='ok';$a7_class='ok';$a7_value='ok';$a7_text='add'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) - $a7_text = 'MODE_EDIT'; - $a7_type = 'submit'; - if ( $this->isEditable() && readonly() ) - $a7_type = ''; // Knopf nicht anzeigen - $a7_src = ''; - if ( !empty($a7_type) ) { -?><input type="<?php echo $a7_type ?>"<?php if(isset($a7_src)) { ?> src="<?php echo $image_dir.'icon_'.$a7_src.IMG_ICON_EXT ?>"<?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 } -?><?php unset($a7_type,$a7_class,$a7_value,$a7_text) ?></form> -<br/><br/><?php $a6_var='name';$a6_value=''; ?><?php - if (isset($a6_key)) - $$a6_var = $a6_value[$a6_key]; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_raw,$a9_escape,$a9_cut) ?><?php $a9_type='ok';$a9_class='ok';$a9_value='ok';$a9_text='add'; ?><div class="invisible"> +<?php + if ($this->isEditable() && !$this->isEditMode() && !readonly() ) + { + $a9_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 + { + $a9_type = 'submit'; + } + $a9_tmp_src = ''; + if ( !empty($a9_type)) { +?> +<input type="<?php echo $a9_type ?>"<?php if(isset($a9_src)) { ?> src="<?php $a9_tmp_src ?>"<?php } ?> name="<?php echo $a9_value ?>" class="ok" title="<?php echo lang($a9_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a9_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a9_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($a9_type,$a9_class,$a9_value,$a9_text) ?></form> +<br/><br/><?php $a8_var='name';$a8_value=''; ?><?php + if (isset($a8_key)) + $$a8_var = $a8_value[$a8_key]; else - $$a6_var = $a6_value; -?><?php unset($a6_var,$a6_value) ?><?php $a6_action='filebrowser';$a6_subaction='addfolder';$a6_id=$id;$a6_name='';$a6_target='_self';$a6_method='post';$a6_enctype='application/x-www-form-urlencoded'; ?><?php + $$a8_var = $a8_value; +?><?php unset($a8_var,$a8_value) ?><?php $a8_action='filebrowser';$a8_subaction='addfolder';$a8_id=$id;$a8_name='';$a8_target='_self';$a8_method='post';$a8_enctype='application/x-www-form-urlencoded';$a8_type=''; ?><?php if ($this->isEditable()) { if ($this->isEditMode()) { - $a6_method = 'POST'; + $a8_method = 'POST'; } else { - $a6_method = 'GET'; - $a6_subaction = $subActionName; + $a8_method = 'GET'; + $a8_subaction = $subActionName; } } -?><form name="<?php echo $a6_name ?>" - target="<?php echo $a6_target ?>" - action="<?php echo Html::url( $a6_action,$a6_subaction,$a6_id ) ?>" - method="<?php echo $a6_method ?>" - enctype="<?php echo $a6_enctype ?>" style="margin:0px;padding:0px;"> + switch( $a8_type ) + { + case 'upload': + $a8_tmp_submitFunction = ''; + break; + default: + $a8_tmp_submitFunction = 'formSubmit( $(this) ); return false;'; + } +?><form name="<?php echo $a8_name ?>" + target="<?php echo $a8_target ?>" + action="<?php echo Html::url( $a8_action,$a8_subaction,$a8_id ) ?>" + method="<?php echo $a8_method ?>" + enctype="<?php echo $a8_enctype ?>" style="margin:0px;padding:0px;" + class="<?php echo $a8_action ?>" + onSubmit="<?php echo $a8_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 $a6_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $a6_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a6_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($a6_action,$a6_subaction,$a6_id,$a6_name,$a6_target,$a6_method,$a6_enctype) ?><?php $a7_name='CKEditorFuncNum'; ?><?php -if (isset($$a7_name)) - $a7_tmp_value = $$a7_name; -elseif ( isset($a7_default) ) - $a7_tmp_value = $a7_default; +?><?php unset($a8_action,$a8_subaction,$a8_id,$a8_name,$a8_target,$a8_method,$a8_enctype,$a8_type) ?><?php $a9_name='CKEditorFuncNum'; ?><?php +if (isset($$a9_name)) + $a9_tmp_value = $$a9_name; +elseif ( isset($a9_default) ) + $a9_tmp_value = $a9_default; else - $a7_tmp_value = ""; -?><input type="hidden" name="<?php echo $a7_name ?>" value="<?php echo $a7_tmp_value ?>" /><?php unset($a7_name) ?><?php $a7_class='text';$a7_key='folder';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; + $a9_tmp_value = ""; +?><input type="hidden" name="<?php echo $a9_name ?>" value="<?php echo $a9_tmp_value ?>" /><?php unset($a9_name) ?><?php $a9_class='text';$a9_key='folder';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_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 $a9_class ?>" title="<?php echo $a9_title ?>"><?php + $langF = $a9_escape?'langHtml':'lang'; + $tmp_text = $langF($a9_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) ?><?php $a7_class='text';$a7_raw='__';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_key,$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 $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = str_replace('_','&nbsp;',$a7_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($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='name';$a7_size='40';$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) ?><?php $a7_class='text';$a7_raw='__';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_raw,$a9_escape,$a9_cut) ?><?php $a9_class='text';$a9_default='';$a9_type='text';$a9_name='name';$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 $a9_class='text';$a9_raw='__';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_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 = str_replace('_','&nbsp;',$a7_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($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php $a7_type='ok';$a7_class='ok';$a7_value='ok';$a7_text='add'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) - $a7_text = 'MODE_EDIT'; - $a7_type = 'submit'; - if ( $this->isEditable() && readonly() ) - $a7_type = ''; // Knopf nicht anzeigen - $a7_src = ''; - if ( !empty($a7_type) ) { -?><input type="<?php echo $a7_type ?>"<?php if(isset($a7_src)) { ?> src="<?php echo $image_dir.'icon_'.$a7_src.IMG_ICON_EXT ?>"<?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 } -?><?php unset($a7_type,$a7_class,$a7_value,$a7_text) ?></form> -</td></tr><?php } ?> </table> - </td> - </tr> -</table> -</center> +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_raw,$a9_escape,$a9_cut) ?><?php $a9_type='ok';$a9_class='ok';$a9_value='ok';$a9_text='add'; ?><div class="invisible"> +<?php + if ($this->isEditable() && !$this->isEditMode() && !readonly() ) + { + $a9_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 + { + $a9_type = 'submit'; + } + $a9_tmp_src = ''; + if ( !empty($a9_type)) { +?> +<input type="<?php echo $a9_type ?>"<?php if(isset($a9_src)) { ?> src="<?php $a9_tmp_src ?>"<?php } ?> name="<?php echo $a9_value ?>" class="ok" title="<?php echo lang($a9_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a9_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a9_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($a9_type,$a9_class,$a9_value,$a9_text) ?></form> +</td></tr><?php } ?><?php + $column_idx = $last_column_idx; +?> +</table><?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/> @@ -625,5 +675,5 @@ if ($a7_readonly) { <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -</body> +<?php } ?></body> </html> \ No newline at end of file diff --git a/themes/default/pages/html/folder/create.tpl.php b/themes/default/pages/html/folder/create.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 } ?> - <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='multipart/form-data'; ?><?php +<?php $a2_name='';$a2_views='createfolder,createlink,createpage,createfile';$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_views,$a2_back) ?><?php $a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='multipart/form-data';$a2_type=''; ?><?php $a2_action = $actionName; $a2_subaction = $targetSubActionName; $a2_id = $this->getRequestId(); @@ -46,139 +30,36 @@ $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_title='GLOBAL_NEW';$a3_name='global_new';$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++; +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><?php $column_idx = 0; ?> <tr > -<?php $a5_colspan='3'; ?><?php $column_idx++; ?><td +<?php $a4_colspan='3';$a4_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -186,66 +67,65 @@ class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="3" -><?php unset($a5_colspan) ?><?php $a6_title=lang('folder'); ?><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($a4_colspan,$a4_header) ?><?php $a5_title=lang('folder'); ?><fieldset><?php if(isset($a5_title)) { ?><legend><?php if(isset($a5_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a5_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a5_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a5_title) ?></fieldset></td></tr><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a4_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_readonly=false;$a6_name='type';$a6_value='folder';$a6_default=false;$a6_prefix='';$a6_suffix='';$a6_class='';$a6_onchange='';$a6_children='folder_name'; ?><?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 unset($a4_header) ?><?php $a5_readonly=false;$a5_name='type';$a5_value='folder';$a5_default=false;$a5_prefix='';$a5_suffix='';$a5_class='';$a5_onchange='';$a5_children='folder_name'; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a5_readonly=true; + if ( isset($$a5_name) ) + $a5_tmp_default = $$a5_name; + elseif ( isset($a5_default) ) + $a5_tmp_default = $a5_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,$a6_children) ?></td><?php $column_idx++; ?><td + $a5_tmp_default = ''; + ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a5_name.'_'.$a5_value ?>" name="<?php echo $a5_prefix.$a5_name ?>"<?php if ( $a5_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a5_value ?>" <?php if($a5_value==$a5_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a5_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> +<?php /* #END-IF# */ ?><?php unset($a5_readonly,$a5_name,$a5_value,$a5_default,$a5_prefix,$a5_suffix,$a5_class,$a5_onchange,$a5_children) ?></td><?php $a4_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_for='type_folder'; ?><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='global_folder';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a4_header) ?><?php $a5_for='type_folder'; ?><label<?php if (isset($a5_for)) { ?> for="id_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" class="label"<?php } ?>> +<?php if (isset($a5_key)) { echo lang($a5_key); if(hasLang($a5_key.'_desc')) { ?><div class="description"><?php echo lang($a5_key.'_desc')?></div> <?php } } ?><?php unset($a5_for) ?><?php $a6_class='text';$a6_text='global_folder';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_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 $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($a7_class,$a7_text,$a7_escape,$a7_cut) ?></label></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></label></td><?php $a4_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='name';$a6_default='';$a6_type='text';$a6_name='folder_name';$a6_size='30';$a6_maxlength='250';$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($a4_header) ?><?php $a5_class='name';$a5_default='';$a5_type='text';$a5_name='folder_name';$a5_size='30';$a5_maxlength='250';$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) ?></td></tr><?php $column_idx = 0; ?> <tr > -<?php $a5_colspan='3'; ?><?php $column_idx++; ?><td +<?php $a4_colspan='3';$a4_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -253,85 +133,84 @@ if ($a6_readonly) { class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="3" -><?php unset($a5_colspan) ?><?php $a6_title=lang('file'); ?><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($a4_colspan,$a4_header) ?><?php $a5_title=lang('file'); ?><fieldset><?php if(isset($a5_title)) { ?><legend><?php if(isset($a5_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a5_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a5_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a5_title) ?></fieldset></td></tr><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a4_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_readonly=false;$a6_name='type';$a6_value='file';$a6_default=false;$a6_prefix='';$a6_suffix='';$a6_class='';$a6_onchange='';$a6_children='file'; ?><?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 unset($a4_header) ?><?php $a5_readonly=false;$a5_name='type';$a5_value='file';$a5_default=false;$a5_prefix='';$a5_suffix='';$a5_class='';$a5_onchange='';$a5_children='file'; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a5_readonly=true; + if ( isset($$a5_name) ) + $a5_tmp_default = $$a5_name; + elseif ( isset($a5_default) ) + $a5_tmp_default = $a5_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,$a6_children) ?></td><?php $column_idx++; ?><td + $a5_tmp_default = ''; + ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a5_name.'_'.$a5_value ?>" name="<?php echo $a5_prefix.$a5_name ?>"<?php if ( $a5_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a5_value ?>" <?php if($a5_value==$a5_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a5_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> +<?php /* #END-IF# */ ?><?php unset($a5_readonly,$a5_name,$a5_value,$a5_default,$a5_prefix,$a5_suffix,$a5_class,$a5_onchange,$a5_children) ?></td><?php $a4_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_for='type_file'; ?><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='global_FILE';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a4_header) ?><?php $a5_for='type_file'; ?><label<?php if (isset($a5_for)) { ?> for="id_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" class="label"<?php } ?>> +<?php if (isset($a5_key)) { echo lang($a5_key); if(hasLang($a5_key.'_desc')) { ?><div class="description"><?php echo lang($a5_key.'_desc')?></div> <?php } } ?><?php unset($a5_for) ?><?php $a6_class='text';$a6_text='global_FILE';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_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 $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($a7_class,$a7_text,$a7_escape,$a7_cut) ?></label></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></label></td><?php $a4_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='file';$a6_class='upload';$a6_maxlength=$maxlength;$a6_size='30'; ?><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_maxlength,$a6_size) ?><br/><?php $a6_class='help';$a6_key='file_max_size';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a4_header) ?><?php $a5_name='file';$a5_class='upload';$a5_maxlength=$maxlength;$a5_size='30'; ?><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_maxlength,$a5_size) ?><br/><?php $a5_class='help';$a5_key='file_max_size';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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); +?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php + $langF = $a5_escape?'langHtml':'lang'; + $tmp_text = $langF($a5_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) ?><?php $a6_class='text';$a6_raw='_';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?><?php $a5_class='text';$a5_raw='_';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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 $a5_class ?>" title="<?php echo $a5_title ?>"><?php + $langF = $a5_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a5_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_class='text';$a6_var='max_size';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_raw,$a5_escape,$a5_cut) ?><?php $a5_class='text';$a5_var='max_size';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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 $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($a6_class,$a6_var,$a6_escape,$a6_cut) ?></td></tr><?php - $row_idx++; +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_var,$a5_escape,$a5_cut) ?></td></tr><?php $column_idx = 0; ?> <tr > -<?php $a5_colspan='3'; ?><?php $column_idx++; ?><td +<?php $a4_colspan='3';$a4_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -339,80 +218,80 @@ if ($a6_readonly) { class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="3" -><?php unset($a5_colspan) ?><?php $a6_title=lang('page'); ?><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($a4_colspan,$a4_header) ?><?php $a5_title=lang('page'); ?><fieldset><?php if(isset($a5_title)) { ?><legend><?php if(isset($a5_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a5_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a5_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a5_title) ?></fieldset></td></tr><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a4_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_readonly=false;$a6_name='type';$a6_value='page';$a6_default=false;$a6_prefix='';$a6_suffix='';$a6_class='';$a6_onchange='';$a6_children='page_templateid,page_name'; ?><?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 unset($a4_header) ?><?php $a5_readonly=false;$a5_name='type';$a5_value='page';$a5_default=false;$a5_prefix='';$a5_suffix='';$a5_class='';$a5_onchange='';$a5_children='page_templateid,page_name'; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a5_readonly=true; + if ( isset($$a5_name) ) + $a5_tmp_default = $$a5_name; + elseif ( isset($a5_default) ) + $a5_tmp_default = $a5_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,$a6_children) ?></td><?php $column_idx++; ?><td + $a5_tmp_default = ''; + ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a5_name.'_'.$a5_value ?>" name="<?php echo $a5_prefix.$a5_name ?>"<?php if ( $a5_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a5_value ?>" <?php if($a5_value==$a5_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a5_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> +<?php /* #END-IF# */ ?><?php unset($a5_readonly,$a5_name,$a5_value,$a5_default,$a5_prefix,$a5_suffix,$a5_class,$a5_onchange,$a5_children) ?></td><?php $a4_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_for='type_page'; ?><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='global_TEMPLATE';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a4_header) ?><?php $a5_for='type_page'; ?><label<?php if (isset($a5_for)) { ?> for="id_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" class="label"<?php } ?>> +<?php if (isset($a5_key)) { echo lang($a5_key); if(hasLang($a5_key.'_desc')) { ?><div class="description"><?php echo lang($a5_key.'_desc')?></div> <?php } } ?><?php unset($a5_for) ?><?php $a6_class='text';$a6_text='global_TEMPLATE';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_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 $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($a7_class,$a7_text,$a7_escape,$a7_cut) ?></label></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></label></td><?php $a4_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_list='templates';$a6_name='page_templateid';$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; +><?php unset($a4_header) ?><?php $a5_list='templates';$a5_name='page_templateid';$a5_onchange='';$a5_title='';$a5_class='';$a5_addempty=false;$a5_multiple=false;$a5_size='1';$a5_lang=false; ?><?php +$a5_readonly=false; +$a5_tmp_list = $$a5_list; if ($this->isEditable() && !$this->isEditMode()) { - echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; + echo empty($$a5_name)?'- '.lang('EMPTY').' -':$a5_tmp_list[$$a5_name]; } else { -if ( $a6_addempty!==FALSE ) +if ( $a5_addempty!==FALSE ) { - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; + if ($a5_addempty===TRUE) + $a5_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a5_tmp_list; else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_tmp_list; + $a5_tmp_list = array(''=>'- '.lang($a5_addempty).' -')+$a5_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 ($a5_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a5_name ?>" name="<?php echo $a5_name; if ($a5_multiple) echo '[]'; ?>" onchange="<?php echo $a5_onchange ?>" title="<?php echo $a5_title ?>" class="<?php echo $a5_class ?>"<?php +if (count($$a5_list)<=1) echo ' disabled="disabled"'; +if ($a5_multiple) echo ' multiple="multiple"'; +if (in_array($a5_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($a5_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($$a5_name) && isset($a5_tmp_list[$$a5_name]) ) + $a5_tmp_default = $$a5_name; + elseif ( isset($a5_default) ) + $a5_tmp_default = $a5_default; else - $a6_tmp_default = ''; - foreach( $a6_tmp_list as $box_key=>$box_value ) + $a5_tmp_default = ''; + foreach( $a5_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -420,7 +299,7 @@ echo ' size="'.intval($a6_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a6_lang ) + elseif( $a5_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -429,66 +308,65 @@ 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="'.$a5_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a5_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($$a5_list)==0) echo '<input type="hidden" name="'.$a5_name.'" value="" />'; +if (count($$a5_list)==1) echo '<input type="hidden" name="'.$a5_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++; +?><?php unset($a5_list,$a5_name,$a5_onchange,$a5_title,$a5_class,$a5_addempty,$a5_multiple,$a5_size,$a5_lang) ?></td></tr><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a4_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($a4_header) ?></td><?php $a4_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_for='type_page'; ?><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='global_NAME';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a4_header) ?><?php $a5_for='type_page'; ?><label<?php if (isset($a5_for)) { ?> for="id_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" class="label"<?php } ?>> +<?php if (isset($a5_key)) { echo lang($a5_key); if(hasLang($a5_key.'_desc')) { ?><div class="description"><?php echo lang($a5_key.'_desc')?></div> <?php } } ?><?php unset($a5_for) ?><?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 $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 $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($a7_class,$a7_text,$a7_escape,$a7_cut) ?></label></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></label></td><?php $a4_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='name';$a6_default='';$a6_type='text';$a6_name='page_name';$a6_size='30';$a6_maxlength='250';$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($a4_header) ?><?php $a5_class='name';$a5_default='';$a5_type='text';$a5_name='page_name';$a5_size='30';$a5_maxlength='250';$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) ?></td></tr><?php $column_idx = 0; ?> <tr > -<?php $a5_colspan='3'; ?><?php $column_idx++; ?><td +<?php $a4_colspan='3';$a4_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -496,93 +374,88 @@ if ($a6_readonly) { class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="3" -><?php unset($a5_colspan) ?><?php $a6_title=lang('link'); ?><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($a4_colspan,$a4_header) ?><?php $a5_title=lang('link'); ?><fieldset><?php if(isset($a5_title)) { ?><legend><?php if(isset($a5_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a5_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a5_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a5_title) ?></fieldset></td></tr><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a4_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_readonly=false;$a6_name='type';$a6_value='link';$a6_default=false;$a6_prefix='';$a6_suffix='';$a6_class='';$a6_onchange='';$a6_children='link_name'; ?><?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 unset($a4_header) ?><?php $a5_readonly=false;$a5_name='type';$a5_value='link';$a5_default=false;$a5_prefix='';$a5_suffix='';$a5_class='';$a5_onchange='';$a5_children='link_name'; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a5_readonly=true; + if ( isset($$a5_name) ) + $a5_tmp_default = $$a5_name; + elseif ( isset($a5_default) ) + $a5_tmp_default = $a5_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,$a6_children) ?></td><?php $column_idx++; ?><td + $a5_tmp_default = ''; + ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a5_name.'_'.$a5_value ?>" name="<?php echo $a5_prefix.$a5_name ?>"<?php if ( $a5_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a5_value ?>" <?php if($a5_value==$a5_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a5_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> +<?php /* #END-IF# */ ?><?php unset($a5_readonly,$a5_name,$a5_value,$a5_default,$a5_prefix,$a5_suffix,$a5_class,$a5_onchange,$a5_children) ?></td><?php $a4_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_for='type_link'; ?><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='global_NAME';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a4_header) ?><?php $a5_for='type_link'; ?><label<?php if (isset($a5_for)) { ?> for="id_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" class="label"<?php } ?>> +<?php if (isset($a5_key)) { echo lang($a5_key); if(hasLang($a5_key.'_desc')) { ?><div class="description"><?php echo lang($a5_key.'_desc')?></div> <?php } } ?><?php unset($a5_for) ?><?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 $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 $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($a7_class,$a7_text,$a7_escape,$a7_cut) ?></label></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></label></td><?php $a4_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='name';$a6_default='';$a6_type='text';$a6_name='link_name';$a6_size='30';$a6_maxlength='250';$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($a4_header) ?><?php $a5_class='name';$a5_default='';$a5_type='text';$a5_name='link_name';$a5_size='30';$a5_maxlength='250';$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) ?></td></tr><?php $column_idx = 0; ?> <tr > -<?php $a5_class='act';$a5_colspan='3'; ?><?php $column_idx++; ?><td +<?php $a4_class='act';$a4_colspan='3';$a4_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="3" -><?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> -</body> -</html>- \ No newline at end of file +><?php unset($a4_class,$a4_colspan,$a4_header) ?><?php $a5_type='ok';$a5_class='ok';$a5_value='ok';$a5_text='button_ok'; ?><div class="invisible"> +<?php + if ($this->isEditable() && !$this->isEditMode() && !readonly() ) + { + $a5_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 + { + $a5_type = 'submit'; + } + $a5_tmp_src = ''; + if ( !empty($a5_type)) { +?> +<input type="<?php echo $a5_type ?>"<?php if(isset($a5_src)) { ?> src="<?php $a5_tmp_src ?>"<?php } ?> name="<?php echo $a5_value ?>" class="ok" title="<?php echo lang($a5_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a5_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a5_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($a5_type,$a5_class,$a5_value,$a5_text) ?></td></tr></form> diff --git a/themes/default/pages/html/folder/createfile.tpl.php b/themes/default/pages/html/folder/createfile.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='multipart/form-data'; ?><?php +</div><?php unset($a2_name,$a2_back) ?><?php $a2_name='';$a2_target='upload';$a2_method='post';$a2_enctype='multipart/form-data';$a2_type='upload'; ?><?php $a2_action = $actionName; $a2_subaction = $targetSubActionName; $a2_id = $this->getRequestId(); @@ -46,87 +30,76 @@ $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='type';$a3_default='file'; ?><?php +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><?php $a3_name='type';$a3_default='file'; ?><?php if (isset($$a3_name)) $a3_tmp_value = $$a3_name; elseif ( isset($a3_default) ) $a3_tmp_value = $a3_default; else $a3_tmp_value = ""; -?><input type="hidden" name="<?php echo $a3_name ?>" value="<?php echo $a3_tmp_value ?>" /><?php unset($a3_name,$a3_default) ?><?php $a3_title='';$a3_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()) { ?> +?><input type="hidden" name="<?php echo $a3_name ?>" value="<?php echo $a3_tmp_value ?>" /><?php unset($a3_name,$a3_default) ?><?php $a3_title='';$a3_name='';$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']); @@ -134,65 +107,58 @@ else $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($a3_title,$a3_name,$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='global_FILE';$a6_escape=true;$a6_cut='both'; ?><?php +><?php unset($a5_header) ?><?php $a6_class='text';$a6_text='global_FILE';$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 @@ -201,20 +167,20 @@ else $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_name='file';$a6_class='upload';$a6_maxlength=$maxlength;$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_maxlength,$a6_size) ?></td></tr><?php - $row_idx++; +><?php unset($a5_header) ?><?php $a6_name='file';$a6_class='upload';$a6_maxlength=$maxlength;$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_maxlength,$a6_size) ?><?php $a6_inline=false;$a6_url='';$a6_name='upload'; ?><iframe name="<?php echo $a6_name ?>" src="<?php echo $a6_url ?>"></iframe> +<?php unset($a6_inline,$a6_url,$a6_name) ?></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 } ?> @@ -222,7 +188,7 @@ else class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a5_colspan) ?><?php $a6_class='help';$a6_key='file_max_size';$a6_escape=true;$a6_cut='both'; ?><?php +><?php unset($a5_colspan,$a5_header) ?><?php $a6_class='help';$a6_key='file_max_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 @@ -250,19 +216,18 @@ else echo $tmp_text; unset($tmp_text); ?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?><br/><br/></td></tr><?php - $row_idx++; $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_key='HTTP_URL';$a6_escape=true;$a6_cut='both'; ?><?php +><?php unset($a5_header) ?><?php $a6_class='text';$a6_key='HTTP_URL';$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 @@ -271,28 +236,27 @@ else $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) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_key,$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_default='';$a6_type='text';$a6_name='url';$a6_size='50';$a6_maxlength='256';$a6_onchange='';$a6_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; +><?php unset($a5_header) ?><?php $a6_class='text';$a6_default='';$a6_type='text';$a6_name='url';$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++; + } } 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) ?></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 } ?> @@ -300,20 +264,19 @@ if ($a6_readonly) { class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a5_colspan) ?><?php $a6_title=lang('description'); ?><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('description'); ?><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 $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='global_NAME';$a6_escape=true;$a6_cut='both'; ?><?php +><?php unset($a5_header) ?><?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 @@ -322,35 +285,34 @@ if ($a6_readonly) { $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_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 unset($a5_header) ?><?php $a6_class='text';$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++; + } } 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) ?></td></tr><?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='global_DESCRIPTION';$a6_escape=true;$a6_cut='both'; ?><?php +><?php unset($a5_header) ?><?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 @@ -359,43 +321,28 @@ if ($a6_readonly) { $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_name='description';$a6_rows='5';$a6_cols='50';$a6_class='inputarea';$a6_default=''; ?><?php if ($this->isEditMode()) { +><?php unset($a5_header) ?><?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 } 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) ?><br/></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> +?><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) ?><br/></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/> @@ -403,12 +350,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 $a2_field='name'; ?><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/folder/createfolder.tpl.php b/themes/default/pages/html/folder/createfolder.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,241 +30,57 @@ $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_title='';$a3_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_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 } ?> -><?php $a6_class='text';$a6_text='global_FOLDER';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?><?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='global_FOLDER';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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 $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($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_default='';$a6_type='text';$a6_name='name';$a6_size='20';$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++; - $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 = ''; +?></<?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='text';$a5_default='';$a5_type='text';$a5_name='name';$a5_size='20';$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 $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 $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($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='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 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='50';$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 $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 $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 +?><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/folder/createlink.tpl.php b/themes/default/pages/html/folder/createlink.tpl.php @@ -1,125 +1,98 @@ -<?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 $a3_name='';$a3_back=true; ?><div class="header"> + <?php if ($a3_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($a3_views)) { ?> + <img src="<?php echo $image_dir ?>icon/window/down.gif" /> + <div class="headermenu"> + <?php foreach( explode(',',$a3_views) as $a3_tmp_view ) { ?> + <a class="entry" href="javascript:void(0);" onclick="javascript:startView(this,'<?php echo $a3_tmp_view ?>');"> + <img src="<?php echo $image_dir ?>icon/<?php echo $a3_tmp_view ?>.png" /><?php echo lang('MENU_'.$a3_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 - $a2_action = $actionName; - $a2_subaction = $targetSubActionName; - $a2_id = $this->getRequestId(); +</div><?php unset($a3_name,$a3_back) ?><?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='';$a3_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_title='';$a4_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 +100,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_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='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_default='';$a6_type='text';$a6_name='name';$a6_size='20';$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='20';$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 +256,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/folder/createpage.tpl.php b/themes/default/pages/html/folder/createpage.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 } ?> - <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_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(); @@ -46,190 +30,68 @@ $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_title='';$a3_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_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 } ?> -><?php $a6_class='text';$a6_text='global_TEMPLATE';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?><?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='global_TEMPLATE';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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 $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($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='templates';$a6_name='templateid';$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; +?></<?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_list='templates';$a5_name='templateid';$a5_onchange='';$a5_title='';$a5_class='';$a5_addempty=false;$a5_multiple=false;$a5_size='1';$a5_lang=false; ?><?php +$a5_readonly=false; +$a5_tmp_list = $$a5_list; if ($this->isEditable() && !$this->isEditMode()) { - echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; + echo empty($$a5_name)?'- '.lang('EMPTY').' -':$a5_tmp_list[$$a5_name]; } else { -if ( $a6_addempty!==FALSE ) +if ( $a5_addempty!==FALSE ) { - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; + if ($a5_addempty===TRUE) + $a5_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a5_tmp_list; else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_tmp_list; + $a5_tmp_list = array(''=>'- '.lang($a5_addempty).' -')+$a5_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 ($a5_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a5_name ?>" name="<?php echo $a5_name; if ($a5_multiple) echo '[]'; ?>" onchange="<?php echo $a5_onchange ?>" title="<?php echo $a5_title ?>" class="<?php echo $a5_class ?>"<?php +if (count($$a5_list)<=1) echo ' disabled="disabled"'; +if ($a5_multiple) echo ' multiple="multiple"'; +if (in_array($a5_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($a5_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($$a5_name) && isset($a5_tmp_list[$$a5_name]) ) + $a5_tmp_default = $$a5_name; + elseif ( isset($a5_default) ) + $a5_tmp_default = $a5_default; else - $a6_tmp_default = ''; - foreach( $a6_tmp_list as $box_key=>$box_value ) + $a5_tmp_default = ''; + foreach( $a5_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -237,7 +99,7 @@ echo ' size="'.intval($a6_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a6_lang ) + elseif( $a5_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -246,124 +108,42 @@ 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="'.$a5_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a5_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($$a5_list)==0) echo '<input type="hidden" name="'.$a5_name.'" value="" />'; +if (count($$a5_list)==1) echo '<input type="hidden" name="'.$a5_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 $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($a5_list,$a5_name,$a5_onchange,$a5_title,$a5_class,$a5_addempty,$a5_multiple,$a5_size,$a5_lang) ?></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_NAME';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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 $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($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_default='';$a6_type='text';$a6_name='name';$a6_size='20';$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++; - $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 = ''; +?></<?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,name';$a5_default='';$a5_type='text';$a5_name='name';$a5_size='20';$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 $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 $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($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='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 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 $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 $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 +?><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/folder/edit.tpl.php b/themes/default/pages/html/folder/edit.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_views='order';$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 } ?> - <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='folder';$a2_subaction='multiple';$a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php +</div><?php unset($a2_name,$a2_views,$a2_back) ?><?php $a2_action='folder';$a2_subaction='edit';$a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded';$a2_type=''; ?><?php $a2_id = $this->getRequestId(); if ($this->isEditable()) { @@ -44,182 +28,90 @@ $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_name='ids'; ?><?php -if (isset($$a3_name)) - $a3_tmp_value = $$a3_name; -elseif ( isset($a3_default) ) - $a3_tmp_value = $a3_default; -else - $a3_tmp_value = ""; -?><input type="hidden" name="<?php echo $a3_name ?>" value="<?php echo $a3_tmp_value ?>" /><?php unset($a3_name) ?><?php $a3_name='type'; ?><?php -if (isset($$a3_name)) - $a3_tmp_value = $$a3_name; -elseif ( isset($a3_default) ) - $a3_tmp_value = $a3_default; -else - $a3_tmp_value = ""; -?><input type="hidden" name="<?php echo $a3_name ?>" value="<?php echo $a3_tmp_value ?>" /><?php unset($a3_name) ?><?php $a3_widths='5%,75%';$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; +?><?php unset($a2_action,$a2_subaction,$a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><?php $a3_width='100%';$a3_space='0px';$a3_padding='0px'; ?><?php + $last_column_idx = @$column_idx; $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_widths,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $row_idx++; + $coloumn_widths = array(); + $row_classes = array(); + $column_classes = array(); +?><table class="%class%" cellspacing="0px" width="100%" cellpadding="0px"> +<?php unset($a3_width,$a3_space,$a3_padding) ?><?php $a4_class='headline'; ?><?php $column_idx = 0; ?> <tr + class="headline" > -<?php $a5_class='help'; ?><?php $column_idx++; ?><td +<?php unset($a4_class) ?><?php $a5_class='help';$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="help" -><?php unset($a5_class) ?><?php $a6_class='text';$a6_raw='_';$a6_escape=true;$a6_cut='both'; ?><?php +><?php unset($a5_class,$a5_header) ?><?php $a6_class='text';$a6_key='SELECT';$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($a6_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) ?></td><?php $a5_class='help'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_key,$a6_escape,$a6_cut) ?></td><?php $a5_class='help';$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="help" -><?php unset($a5_class) ?><?php $a6_class='text';$a6_text='GLOBAL_NAME';$a6_escape=true;$a6_cut='both'; ?><?php +><?php unset($a5_class,$a5_header) ?><?php $a6_class='text';$a6_key='GLOBAL_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 + $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) ?><?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 = $langF($a6_text); + $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_text,$a6_escape,$a6_cut) ?></td></tr><?php $a4_list='objectlist';$a4_extract=true;$a4_key='list_key';$a4_value='list_value'; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_raw,$a6_escape,$a6_cut) ?><?php $a6_class='text';$a6_key='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_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) ?></td></tr><?php $a4_list='object';$a4_extract=true;$a4_key='list_key';$a4_value='list_value'; ?><?php $a4_list_tmp_key = $a4_key; $a4_list_tmp_value = $a4_value; $a4_list_extract = $a4_extract; @@ -239,61 +131,247 @@ else extract($$a4_list_tmp_value); } ?><?php unset($a4_list,$a4_extract,$a4_key,$a4_value) ?><?php $a5_class='data'; ?><?php - $row_idx++; $column_idx = 0; ?> <tr class="data" > -<?php unset($a5_class) ?><?php $column_idx++; ?><td +<?php unset($a5_class) ?><?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 unset($a6_header) ?><?php $a7_true='writable'; ?><?php + if (gettype($a7_true) === '' && gettype($a7_true) === '1') + $a7_tmp_exec = $$a7_true == true; + else + $a7_tmp_exec = $a7_true == true; + $a7_tmp_last_exec = $a7_tmp_exec; + if ( $a7_tmp_exec ) + { +?> +<?php unset($a7_true) ?><?php $a8_default=false;$a8_readonly=false;$a8_name=$id; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; + if ( isset($$a8_name) ) + $checked = $$a8_name; + else + $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 $a8_name ?>" value="1" /><?php +} +?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?><?php } ?><?php $a7_false='writable'; ?><?php + if (gettype($a7_false) === '' && gettype($a7_false) === '1') + $a7_tmp_exec = $$a7_false == false; + else + $a7_tmp_exec = $a7_false == false; + $a7_tmp_last_exec = $a7_tmp_exec; + if ( $a7_tmp_exec ) + { +?> +<?php unset($a7_false) ?><?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 } ?></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 $a7_icon=$type;$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) ?></td><?php $column_idx++; ?><td +><?php unset($a6_header) ?><?php $a7_for=$id; ?><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_align='left';$a8_type=$icon; ?><?php + $a8_tmp_image_file = $image_dir.'icon_'.$a8_type.IMG_ICON_EXT; + $a8_size = '16x16'; + $a8_tmp_title = basename($a8_tmp_image_file); +?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?> /><?php unset($a8_align,$a8_type) ?><?php $a8_class='text';$a8_var='name';$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) ?></label></td></tr><?php } ?><?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 } ?> -><?php $a7_class='text';$a7_var='name';$a7_escape=true;$a7_cut='both'; ?><?php + colspan="2" +><?php unset($a5_colspan,$a5_header) ?><?php $a6_align='left';$a6_fileext='tree_none_end.gif'; ?><?php + $a6_tmp_image_file = $image_dir.$a6_fileext; + $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_align,$a6_fileext) ?><?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_type='';$a6_class='';$a6_action=$actionName;$a6_subaction='select';$a6_var1='markall';$a6_value1='1';$a6_frame='_self'; ?><?php + $params = array(); + $params[$a6_var1]=$a6_value1; + $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_var1,$a6_value1,$a6_frame) ?><?php $a7_class='text';$a7_key='FOLDER_MARK_ALL';$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 = $langF($a7_key); $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 $a7_class='text';$a7_raw='_';$a7_escape=true;$a7_cut='both'; ?><?php +?></<?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_type='';$a6_url='javascript:unmark();';$a6_class='';$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_url,$a6_class,$a6_frame) ?><?php $a7_class='text';$a7_key='FOLDER_UNMARK_ALL';$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 = str_replace('_','&nbsp;',$a7_raw); + $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_raw,$a7_escape,$a7_cut) ?></td></tr><?php } ?><?php $a4_present='folder'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +?></<?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_type='';$a6_url='javascript:flip();';$a6_class='';$a6_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $a6_target = $view; + switch( $a6_type ) { -?> -<?php unset($a4_present) ?><?php - $row_idx++; + 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_url,$a6_class,$a6_frame) ?><?php $a7_class='text';$a7_key='FOLDER_FLIP_MARK';$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 $column_idx = 0; ?> <tr > -<?php $a6_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 } ?> @@ -301,40 +379,31 @@ else class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a6_colspan) ?><?php $a7_title=lang('folder_select_target_folder'); ?><fieldset><?php if(isset($a7_title)) { ?><legend><?php if(isset($a7_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a7_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a7_title) ?></legend><?php } ?><?php unset($a7_title) ?></fieldset></td></tr><?php $a5_list='folder';$a5_extract=false;$a5_key='list_key';$a5_value='list_value'; ?><?php - $a5_list_tmp_key = $a5_key; - $a5_list_tmp_value = $a5_value; - $a5_list_extract = $a5_extract; - unset($a5_key); - unset($a5_value); - if ( !isset($$a5_list) || !is_array($$a5_list) ) - $$a5_list = array(); - foreach( $$a5_list as $$a5_list_tmp_key => $$a5_list_tmp_value ) +><?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) ?><?php $a7_var='type';$a7_value=$defaulttype; ?><?php + if (isset($a7_key)) + $$a7_var = $a7_value[$a7_key]; + else + $$a7_var = $a7_value; +?><?php unset($a7_var,$a7_value) ?><?php $a7_list='actionlist';$a7_extract=false;$a7_key='list_key';$a7_value='actiontype'; ?><?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 ( $a5_list_extract ) + if ( $a7_list_extract ) { - if ( !is_array($$a5_list_tmp_value) ) + if ( !is_array($$a7_list_tmp_value) ) { - print_r($$a5_list_tmp_value); - die( 'not an array at key: '.$$a5_list_tmp_key ); + print_r($$a7_list_tmp_value); + die( 'not an array at key: '.$$a7_list_tmp_key ); } - extract($$a5_list_tmp_value); + extract($$a7_list_tmp_value); } -?><?php unset($a5_list,$a5_extract,$a5_key,$a5_value) ?><?php $a6_class='data'; ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr - class="data" -> -<?php unset($a6_class) ?><?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 $a8_readonly=false;$a8_name='targetobjectid';$a8_value=$list_key;$a8_default=false;$a8_prefix='';$a8_suffix='';$a8_class='';$a8_onchange=''; ?><?php +?><?php unset($a7_list,$a7_extract,$a7_key,$a7_value) ?><?php $a8_readonly=false;$a8_name='type';$a8_value=$actiontype;$a8_default=false;$a8_prefix='';$a8_suffix='';$a8_class='';$a8_onchange=''; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; if ( isset($$a8_name) ) $a8_tmp_default = $$a8_name; @@ -343,63 +412,76 @@ else else $a8_tmp_default = ''; ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a8_name.'_'.$a8_value ?>" name="<?php echo $a8_prefix.$a8_name ?>"<?php if ( $a8_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a8_value ?>" <?php if($a8_value==$a8_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a8_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> -<?php /* #END-IF# */ ?><?php unset($a8_readonly,$a8_name,$a8_value,$a8_default,$a8_prefix,$a8_suffix,$a8_class,$a8_onchange) ?></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 $a8_for='targetobjectid_'.$list_key.''; ?><label for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>"><?php unset($a8_for) ?><?php $a9_class='text';$a9_var='list_value';$a9_escape=true;$a9_cut='both'; ?><?php +<?php /* #END-IF# */ ?><?php unset($a8_readonly,$a8_name,$a8_value,$a8_default,$a8_prefix,$a8_suffix,$a8_class,$a8_onchange) ?><?php $a8_for='type';$a8_value=$actiontype; ?><label<?php if (isset($a8_for)) { ?> for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>" class="label"<?php } ?>> +<?php if (isset($a8_key)) { echo lang($a8_key); if(hasLang($a8_key.'_desc')) { ?><div class="description"><?php echo lang($a8_key.'_desc')?></div> <?php } } ?><?php unset($a8_for,$a8_value) ?><?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 $a9_class ?>" title="<?php echo $a9_title ?>"><?php $langF = $a9_escape?'langHtml':'lang'; - $tmp_text = isset($$a9_var)?$$a9_var:$langF('UNKNOWN'); + $tmp_text = str_replace('_','&nbsp;',$a9_raw); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_var,$a9_escape,$a9_cut) ?></label></td></tr><?php } ?><?php } ?><?php $a4_present='ask_filename'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) - { -?> -<?php unset($a4_present) ?><?php - $row_idx++; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_raw,$a9_escape,$a9_cut) ?><?php $a9_class='text';$a9_key=$actiontype;$a9_prefix='FOLDER_SELECT_';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_key = $a9_prefix.$a9_key; + $a9_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a9_class ?>" title="<?php echo $a9_title ?>"><?php + $langF = $a9_escape?'langHtml':'lang'; + $tmp_text = $langF($a9_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_key,$a9_prefix,$a9_escape,$a9_cut) ?></label><br/><?php } ?></fieldset></td></tr><?php $column_idx = 0; ?> <tr > -<?php $a6_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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> + class="act" colspan="2" -><?php unset($a6_colspan) ?><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='filename';$a7_size='40';$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='ask_commit'; ?><?php - $a4_tmp_exec = isset($$a4_present); +><?php unset($a5_class,$a5_colspan,$a5_header) ?><?php $a6_type='ok';$a6_class='ok';$a6_value='ok';$a6_text='button_next'; ?><div class="invisible"> +<?php + if ($this->isEditable() && !$this->isEditMode() && !readonly() ) + { + $a6_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 + { + $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 $a4_empty='object'; ?><?php + if ( !isset($$a4_empty) ) + $a4_tmp_exec = empty($a4_empty); + elseif ( is_array($$a4_empty) ) + $a4_tmp_exec = (count($$a4_empty)==0); + elseif ( is_bool($$a4_empty) ) + $a4_tmp_exec = true; + else + $a4_tmp_exec = empty( $$a4_empty ); $a4_tmp_last_exec = $a4_tmp_exec; if ( $a4_tmp_exec ) { ?> -<?php unset($a4_present) ?><?php - $row_idx++; +<?php unset($a4_empty) ?><?php $column_idx = 0; ?> <tr > -<?php $a6_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 } ?> @@ -407,83 +489,30 @@ if ($a7_readonly) { class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a6_colspan) ?><?php $a7_title=lang('options'); ?><fieldset><?php if(isset($a7_title)) { ?><legend><?php if(isset($a7_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a7_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a7_title) ?></legend><?php } ?><?php unset($a7_title) ?></fieldset></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_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($a6_colspan) ?><?php $a7_default=false;$a7_readonly=false;$a7_name='commit'; ?><?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='commit'; ?><label for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>"><?php unset($a7_for) ?><?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_key='FOLDER_SELECT_DELETE_COMMIT';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +><?php unset($a6_colspan,$a6_header) ?><?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 $a8_class ?>" title="<?php echo $a8_title ?>"><?php - $langF = $a8_escape?'langHtml':'lang'; - $tmp_text = $langF($a8_key); +?><<?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($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label></td></tr><?php } ?><?php - $row_idx++; - $column_idx = 0; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td></tr><?php } ?><?php + $column_idx = $last_column_idx; ?> -<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> -</body> -</html>- \ No newline at end of file +</table></form> +<?php $a2_script='mark';$a2_inline=true; ?><?php +$a2_tmp_file = $tpl_dir.'../../js/'.basename($a2_script).'.js'; +if (!$a2_inline) +{ + ?><script src="<?php echo $a2_tmp_file ?>" type="text/javascript"></script><?php +} +else +{ + echo '<script type="text/javascript">'; + echo str_replace(' ',' ',str_replace('~','',strtr(implode('',file($a2_tmp_file)),"\t\n\b",'~~~'))); + echo '</script>'; +} +?> +<?php unset($a2_script,$a2_inline) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/folder/info.tpl.php b/themes/default/pages/html/folder/info.tpl.php @@ -0,0 +1,257 @@ +<?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_title=lang('GLOBAL_PROP'); ?><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='name';$a6_key='global_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,$a6_key) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='name,focus';$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_for='filename';$a6_key='global_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,$a6_key) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='text';$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_for='description';$a6_key='global_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,$a6_key) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='description';$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';$a6_key='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,$a6_key) ?></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='objectid';$a6_key='id'; ?><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,$a6_key) ?></label></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></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_for='create_user';$a6_key='global_created'; ?><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,$a6_key) ?></label></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_for='lastchange_user';$a6_key='global_lastchange'; ?><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,$a6_key) ?></label></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/folder/inherit.tpl.php b/themes/default/pages/html/folder/inherit.tpl.php @@ -0,0 +1,86 @@ +<?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) ?><?php $a3_equals='folder';$a3_value=$type; ?><?php + $a3_tmp_exec = $a3_equals == $a3_value; + $a3_tmp_last_exec = $a3_tmp_exec; + if ( $a3_tmp_exec ) + { +?> +<?php unset($a3_equals,$a3_value) ?><?php $a4_title=lang('options'); ?><fieldset><?php if(isset($a4_title)) { ?><legend><?php if(isset($a4_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a4_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a4_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a4_title) ?><?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_var='inherit';$a7_value='1'; ?><?php + if (isset($a7_key)) + $$a7_var = $a7_value[$a7_key]; + else + $$a7_var = $a7_value; +?><?php unset($a7_var,$a7_value) ?><?php $a7_class='text';$a7_default='';$a7_type='checkbox';$a7_name='inherit';$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) ?><?php $a7_for='inherit'; ?><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='inherit_rights';$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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label></div></div></fieldset><?php } ?></form> diff --git a/themes/default/pages/html/folder/order.tpl.php b/themes/default/pages/html/folder/order.tpl.php @@ -1,186 +1,84 @@ -<?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_width='93%';$a2_rowclasses='odd,even';$a2_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$actionName; - $row_classes = explode(',',$a2_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a2_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="'.$a2_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($a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a4_class='help';$a4_colspan='7'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> - class="help" - colspan="7" -><?php unset($a4_class,$a4_colspan) ?><?php $a5_class='text';$a5_text='GLOBAL_FOLDER_DESC';$a5_escape=true;$a5_cut='both'; ?><?php - $a5_title = ''; +</div><?php unset($a2_name,$a2_back) ?><?php $a2_class='text';$a2_text='GLOBAL_FOLDER_DESC';$a2_escape=true;$a2_cut='both'; ?><?php + $a2_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); +?><<?php echo $tmp_tag ?> class="<?php echo $a2_class ?>" title="<?php echo $a2_title ?>"><?php + $langF = $a2_escape?'langHtml':'lang'; + $tmp_text = $langF($a2_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) ?></td></tr><?php $a3_class='headline'; ?><?php - $row_idx++; +?></<?php echo $tmp_tag ?>><?php unset($a2_class,$a2_text,$a2_escape,$a2_cut) ?><?php $a2_class='text';$a2_default=token();$a2_type='hidden';$a2_name='token';$a2_size='';$a2_maxlength='256';$a2_onchange='';$a2_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a2_readonly=true; + if ($a2_readonly && empty($$a2_name)) $$a2_name = '- '.lang('EMPTY').' -'; + if(!isset($a2_default)) $a2_default=''; + $tmp_value = Text::encodeHtml(isset($$a2_name)?$$a2_name:$a2_default); +?><?php if (!$a2_readonly || $a2_type=='hidden') { +?><input<?php if ($a2_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a2_name ?><?php if ($a2_readonly) echo '_disabled' ?>" name="<?php echo $a2_name ?><?php if ($a2_readonly) echo '_disabled' ?>" type="<?php echo $a2_type ?>" maxlength="<?php echo $a2_maxlength ?>" class="<?php echo str_replace(',',' ',$a2_class) ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a2_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php +if ($a2_readonly) { +?><input type="hidden" id="id_<?php echo $a2_name ?>" name="<?php echo $a2_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 $a2_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a2_class,$a2_default,$a2_type,$a2_name,$a2_size,$a2_maxlength,$a2_onchange,$a2_readonly) ?><?php $a2_class='sortable';$a2_width='100%';$a2_space='0px';$a2_padding='0px'; ?><?php + $last_column_idx = @$column_idx; + $column_idx = 0; + $coloumn_widths = array(); + $row_classes = array(); + $column_classes = array(); +?><table class="sortable" cellspacing="0px" width="100%" cellpadding="0px"> +<?php unset($a2_class,$a2_width,$a2_space,$a2_padding) ?><?php $a3_class='headline'; ?><?php $column_idx = 0; ?> <tr class="headline" > -<?php unset($a3_class) ?><?php $a4_class='help';$a4_colspan='4'; ?><?php $column_idx++; ?><td +<?php unset($a3_class) ?><?php $a4_class='help';$a4_colspan='4';$a4_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" colspan="4" -><?php unset($a4_class,$a4_colspan) ?><?php $a5_title=lang('FOLDER_FLIP');$a5_target='_self';$a5_url=$flip_url;$a5_class=''; ?><?php +><?php unset($a4_class,$a4_colspan,$a4_header) ?><?php $a5_title=lang('FOLDER_FLIP');$a5_type='url';$a5_url=$flip_url;$a5_class='';$a5_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a5_url; -?><a<?php if (isset($a5_name)) echo ' name="'.$a5_name.'"'; else echo ' href="'.$tmp_url.(isset($a5_anchor)?'#'.$a5_anchor:'').'"' ?> class="<?php echo $a5_class ?>" target="<?php echo $a5_target ?>"<?php if (isset($a5_accesskey)) echo ' accesskey="'.$a5_accesskey.'"' ?> title="<?php echo encodeHtml($a5_title) ?>"><?php unset($a5_title,$a5_target,$a5_url,$a5_class) ?><?php $a6_class='text';$a6_key='FOLDER_ORDER';$a6_escape=true;$a6_cut='both'; ?><?php + $a5_target = $view; + switch( $a5_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a5_action)?$a5_action:$this->actionName,'subaction'=>!empty($a5_subaction)?$a5_subaction:$this->subActionName,'id'=>!empty($a5_id)?$a5_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($a5_subaction)?$a5_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a5_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a5_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a5_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a5_frame ?>"<?php if (isset($a5_name)) { ?> name="<?php echo $a5_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a5_class ?>"<?php if (isset($a5_accesskey)) echo ' accesskey="'.$a5_accesskey.'"' ?> title="<?php echo encodeHtml($a5_title) ?>"><?php unset($a5_title,$a5_type,$a5_url,$a5_class,$a5_frame) ?><?php $a6_class='text';$a6_key='FOLDER_ORDER';$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 @@ -189,16 +87,40 @@ $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) ?></a></td><?php $a4_class='help'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_key,$a6_escape,$a6_cut) ?></a></td><?php $a4_class='help';$a4_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a4_class) ?><?php $a5_title=lang('FOLDER_ORDERBYTYPE');$a5_target='_self';$a5_url=$orderbytype_url;$a5_class=''; ?><?php +><?php unset($a4_class,$a4_header) ?><?php $a5_title=lang('FOLDER_ORDERBYTYPE');$a5_type='url';$a5_url=$orderbytype_url;$a5_class='';$a5_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a5_url; -?><a<?php if (isset($a5_name)) echo ' name="'.$a5_name.'"'; else echo ' href="'.$tmp_url.(isset($a5_anchor)?'#'.$a5_anchor:'').'"' ?> class="<?php echo $a5_class ?>" target="<?php echo $a5_target ?>"<?php if (isset($a5_accesskey)) echo ' accesskey="'.$a5_accesskey.'"' ?> title="<?php echo encodeHtml($a5_title) ?>"><?php unset($a5_title,$a5_target,$a5_url,$a5_class) ?><?php $a6_class='text';$a6_key='GLOBAL_TYPE';$a6_escape=true;$a6_cut='both'; ?><?php + $a5_target = $view; + switch( $a5_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a5_action)?$a5_action:$this->actionName,'subaction'=>!empty($a5_subaction)?$a5_subaction:$this->subActionName,'id'=>!empty($a5_id)?$a5_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($a5_subaction)?$a5_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a5_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a5_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a5_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a5_frame ?>"<?php if (isset($a5_name)) { ?> name="<?php echo $a5_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a5_class ?>"<?php if (isset($a5_accesskey)) echo ' accesskey="'.$a5_accesskey.'"' ?> title="<?php echo encodeHtml($a5_title) ?>"><?php unset($a5_title,$a5_type,$a5_url,$a5_class,$a5_frame) ?><?php $a6_class='text';$a6_key='GLOBAL_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 @@ -216,11 +138,35 @@ $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_raw,$a5_escape,$a5_cut) ?><?php $a5_title=lang('FOLDER_ORDERBYNAME');$a5_target='_self';$a5_url=$orderbyname_url;$a5_class=''; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_raw,$a5_escape,$a5_cut) ?><?php $a5_title=lang('FOLDER_ORDERBYNAME');$a5_type='url';$a5_url=$orderbyname_url;$a5_class='';$a5_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a5_url; -?><a<?php if (isset($a5_name)) echo ' name="'.$a5_name.'"'; else echo ' href="'.$tmp_url.(isset($a5_anchor)?'#'.$a5_anchor:'').'"' ?> class="<?php echo $a5_class ?>" target="<?php echo $a5_target ?>"<?php if (isset($a5_accesskey)) echo ' accesskey="'.$a5_accesskey.'"' ?> title="<?php echo encodeHtml($a5_title) ?>"><?php unset($a5_title,$a5_target,$a5_url,$a5_class) ?><?php $a6_class='text';$a6_key='GLOBAL_NAME';$a6_escape=true;$a6_cut='both'; ?><?php + $a5_target = $view; + switch( $a5_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a5_action)?$a5_action:$this->actionName,'subaction'=>!empty($a5_subaction)?$a5_subaction:$this->subActionName,'id'=>!empty($a5_id)?$a5_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($a5_subaction)?$a5_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a5_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a5_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a5_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a5_frame ?>"<?php if (isset($a5_name)) { ?> name="<?php echo $a5_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a5_class ?>"<?php if (isset($a5_accesskey)) echo ' accesskey="'.$a5_accesskey.'"' ?> title="<?php echo encodeHtml($a5_title) ?>"><?php unset($a5_title,$a5_type,$a5_url,$a5_class,$a5_frame) ?><?php $a6_class='text';$a6_key='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 @@ -229,16 +175,40 @@ $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) ?></a></td><?php $a4_class='help'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_key,$a6_escape,$a6_cut) ?></a></td><?php $a4_class='help';$a4_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a4_class) ?><?php $a5_title=lang('FOLDER_ORDERBYLASTCHANGE');$a5_target='_self';$a5_url=$orderbylastchange_url;$a5_class=''; ?><?php +><?php unset($a4_class,$a4_header) ?><?php $a5_title=lang('FOLDER_ORDERBYLASTCHANGE');$a5_type='url';$a5_url=$orderbylastchange_url;$a5_class='';$a5_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a5_url; -?><a<?php if (isset($a5_name)) echo ' name="'.$a5_name.'"'; else echo ' href="'.$tmp_url.(isset($a5_anchor)?'#'.$a5_anchor:'').'"' ?> class="<?php echo $a5_class ?>" target="<?php echo $a5_target ?>"<?php if (isset($a5_accesskey)) echo ' accesskey="'.$a5_accesskey.'"' ?> title="<?php echo encodeHtml($a5_title) ?>"><?php unset($a5_title,$a5_target,$a5_url,$a5_class) ?><?php $a6_class='text';$a6_key='GLOBAL_LASTCHANGE';$a6_escape=true;$a6_cut='both'; ?><?php + $a5_target = $view; + switch( $a5_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a5_action)?$a5_action:$this->actionName,'subaction'=>!empty($a5_subaction)?$a5_subaction:$this->subActionName,'id'=>!empty($a5_id)?$a5_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($a5_subaction)?$a5_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a5_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a5_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a5_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a5_frame ?>"<?php if (isset($a5_name)) { ?> name="<?php echo $a5_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a5_class ?>"<?php if (isset($a5_accesskey)) echo ' accesskey="'.$a5_accesskey.'"' ?> title="<?php echo encodeHtml($a5_title) ?>"><?php unset($a5_title,$a5_type,$a5_url,$a5_class,$a5_frame) ?><?php $a6_class='text';$a6_key='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 @@ -266,29 +236,53 @@ } extract($$a3_list_tmp_value); } -?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php $a4_class='data'; ?><?php - $row_idx++; +?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php $a4_class='data';$a4_id='o_'.$id.''; ?><?php $column_idx = 0; ?> <tr class="data" + data-id="<?php echo 'o_'.$id.'' ?>" > -<?php unset($a4_class) ?><?php $a5_width='3%'; ?><?php $column_idx++; ?><td +<?php unset($a4_class,$a4_id) ?><?php $a5_width='3%';$a5_header=false; ?><?php $column_idx++; ?><td width="3%" <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php unset($a5_width) ?><?php $a6_present='upurl'; ?><?php +><?php unset($a5_width,$a5_header) ?><?php $a6_present='upurl'; ?><?php $a6_tmp_exec = isset($$a6_present); $a6_tmp_last_exec = $a6_tmp_exec; if ( $a6_tmp_exec ) { ?> -<?php unset($a6_present) ?><?php $a7_title='GLOBAL_UP';$a7_target='_self';$a7_url=$upurl;$a7_class=''; ?><?php +<?php unset($a6_present) ?><?php $a7_title='GLOBAL_UP';$a7_type='url';$a7_url=$upurl;$a7_class='';$a7_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a7_url; -?><a<?php if (isset($a7_name)) echo ' name="'.$a7_name.'"'; else echo ' href="'.$tmp_url.(isset($a7_anchor)?'#'.$a7_anchor:'').'"' ?> class="<?php echo $a7_class ?>" target="<?php echo $a7_target ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_target,$a7_url,$a7_class) ?><?php $a8_var='bild';$a8_value='arrow_up'; ?><?php + $a7_target = $view; + switch( $a7_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a7_action)?$a7_action:$this->actionName,'subaction'=>!empty($a7_subaction)?$a7_subaction:$this->subActionName,'id'=>!empty($a7_id)?$a7_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($a7_subaction)?$a7_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a7_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a7_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a7_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a7_frame ?>"<?php if (isset($a7_name)) { ?> name="<?php echo $a7_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a7_class ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_type,$a7_url,$a7_class,$a7_frame) ?><?php $a8_var='bild';$a8_value='arrow_up'; ?><?php if (isset($a8_key)) $$a8_var = $a8_value[$a8_key]; else @@ -296,7 +290,7 @@ ?><?php unset($a8_var,$a8_value) ?><?php $a8_file=$bild;$a8_align='left'; ?><?php $a8_tmp_image_file = $image_dir.$a8_file.IMG_ICON_EXT; $a8_tmp_title = basename($a8_tmp_image_file); -?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?>><?php unset($a8_file,$a8_align) ?></a><?php } ?><?php $a6_empty='upurl'; ?><?php +?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?> /><?php unset($a8_file,$a8_align) ?></a><?php } ?><?php $a6_empty='upurl'; ?><?php if ( !isset($$a6_empty) ) $a6_tmp_exec = empty($a6_empty); elseif ( is_array($$a6_empty) ) @@ -318,22 +312,46 @@ $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php } ?></td><?php $a5_width='3%'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php } ?></td><?php $a5_width='3%';$a5_header=false; ?><?php $column_idx++; ?><td width="3%" <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php unset($a5_width) ?><?php $a6_present='topurl'; ?><?php +><?php unset($a5_width,$a5_header) ?><?php $a6_present='topurl'; ?><?php $a6_tmp_exec = isset($$a6_present); $a6_tmp_last_exec = $a6_tmp_exec; if ( $a6_tmp_exec ) { ?> -<?php unset($a6_present) ?><?php $a7_title='GLOBAL_TOP';$a7_target='_self';$a7_url=$topurl;$a7_class=''; ?><?php +<?php unset($a6_present) ?><?php $a7_title='GLOBAL_TOP';$a7_type='url';$a7_url=$topurl;$a7_class='';$a7_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a7_url; -?><a<?php if (isset($a7_name)) echo ' name="'.$a7_name.'"'; else echo ' href="'.$tmp_url.(isset($a7_anchor)?'#'.$a7_anchor:'').'"' ?> class="<?php echo $a7_class ?>" target="<?php echo $a7_target ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_target,$a7_url,$a7_class) ?><?php $a8_var='bild';$a8_value='arrow_top'; ?><?php + $a7_target = $view; + switch( $a7_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a7_action)?$a7_action:$this->actionName,'subaction'=>!empty($a7_subaction)?$a7_subaction:$this->subActionName,'id'=>!empty($a7_id)?$a7_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($a7_subaction)?$a7_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a7_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a7_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a7_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a7_frame ?>"<?php if (isset($a7_name)) { ?> name="<?php echo $a7_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a7_class ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_type,$a7_url,$a7_class,$a7_frame) ?><?php $a8_var='bild';$a8_value='arrow_top'; ?><?php if (isset($a8_key)) $$a8_var = $a8_value[$a8_key]; else @@ -341,7 +359,7 @@ ?><?php unset($a8_var,$a8_value) ?><?php $a8_file=$bild;$a8_align='left'; ?><?php $a8_tmp_image_file = $image_dir.$a8_file.IMG_ICON_EXT; $a8_tmp_title = basename($a8_tmp_image_file); -?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?>><?php unset($a8_file,$a8_align) ?></a><?php } ?><?php $a6_empty='topurl'; ?><?php +?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?> /><?php unset($a8_file,$a8_align) ?></a><?php } ?><?php $a6_empty='topurl'; ?><?php if ( !isset($$a6_empty) ) $a6_tmp_exec = empty($a6_empty); elseif ( is_array($$a6_empty) ) @@ -363,22 +381,46 @@ $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php } ?></td><?php $a5_width='3%'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php } ?></td><?php $a5_width='3%';$a5_header=false; ?><?php $column_idx++; ?><td width="3%" <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php unset($a5_width) ?><?php $a6_present='bottomurl'; ?><?php +><?php unset($a5_width,$a5_header) ?><?php $a6_present='bottomurl'; ?><?php $a6_tmp_exec = isset($$a6_present); $a6_tmp_last_exec = $a6_tmp_exec; if ( $a6_tmp_exec ) { ?> -<?php unset($a6_present) ?><?php $a7_title='GLOBAL_BOTTOM';$a7_target='_self';$a7_url=$bottomurl;$a7_class=''; ?><?php +<?php unset($a6_present) ?><?php $a7_title='GLOBAL_BOTTOM';$a7_type='url';$a7_url=$bottomurl;$a7_class='';$a7_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a7_url; -?><a<?php if (isset($a7_name)) echo ' name="'.$a7_name.'"'; else echo ' href="'.$tmp_url.(isset($a7_anchor)?'#'.$a7_anchor:'').'"' ?> class="<?php echo $a7_class ?>" target="<?php echo $a7_target ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_target,$a7_url,$a7_class) ?><?php $a8_var='bild';$a8_value='arrow_bottom'; ?><?php + $a7_target = $view; + switch( $a7_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a7_action)?$a7_action:$this->actionName,'subaction'=>!empty($a7_subaction)?$a7_subaction:$this->subActionName,'id'=>!empty($a7_id)?$a7_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($a7_subaction)?$a7_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a7_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a7_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a7_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a7_frame ?>"<?php if (isset($a7_name)) { ?> name="<?php echo $a7_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a7_class ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_type,$a7_url,$a7_class,$a7_frame) ?><?php $a8_var='bild';$a8_value='arrow_bottom'; ?><?php if (isset($a8_key)) $$a8_var = $a8_value[$a8_key]; else @@ -386,7 +428,7 @@ ?><?php unset($a8_var,$a8_value) ?><?php $a8_file=$bild;$a8_align='left'; ?><?php $a8_tmp_image_file = $image_dir.$a8_file.IMG_ICON_EXT; $a8_tmp_title = basename($a8_tmp_image_file); -?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?>><?php unset($a8_file,$a8_align) ?></a><?php } ?><?php $a6_empty='bottomurl'; ?><?php +?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?> /><?php unset($a8_file,$a8_align) ?></a><?php } ?><?php $a6_empty='bottomurl'; ?><?php if ( !isset($$a6_empty) ) $a6_tmp_exec = empty($a6_empty); elseif ( is_array($$a6_empty) ) @@ -408,22 +450,46 @@ $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php } ?></td><?php $a5_width='3%'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php } ?></td><?php $a5_width='3%';$a5_header=false; ?><?php $column_idx++; ?><td width="3%" <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php unset($a5_width) ?><?php $a6_present='downurl'; ?><?php +><?php unset($a5_width,$a5_header) ?><?php $a6_present='downurl'; ?><?php $a6_tmp_exec = isset($$a6_present); $a6_tmp_last_exec = $a6_tmp_exec; if ( $a6_tmp_exec ) { ?> -<?php unset($a6_present) ?><?php $a7_title='GLOBAL_DOWN';$a7_target='_self';$a7_url=$downurl;$a7_class=''; ?><?php +<?php unset($a6_present) ?><?php $a7_title='GLOBAL_DOWN';$a7_type='url';$a7_url=$downurl;$a7_class='';$a7_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a7_url; -?><a<?php if (isset($a7_name)) echo ' name="'.$a7_name.'"'; else echo ' href="'.$tmp_url.(isset($a7_anchor)?'#'.$a7_anchor:'').'"' ?> class="<?php echo $a7_class ?>" target="<?php echo $a7_target ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_target,$a7_url,$a7_class) ?><?php $a8_var='bild';$a8_value='arrow_down'; ?><?php + $a7_target = $view; + switch( $a7_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a7_action)?$a7_action:$this->actionName,'subaction'=>!empty($a7_subaction)?$a7_subaction:$this->subActionName,'id'=>!empty($a7_id)?$a7_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($a7_subaction)?$a7_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a7_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a7_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a7_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a7_frame ?>"<?php if (isset($a7_name)) { ?> name="<?php echo $a7_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a7_class ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_type,$a7_url,$a7_class,$a7_frame) ?><?php $a8_var='bild';$a8_value='arrow_down'; ?><?php if (isset($a8_key)) $$a8_var = $a8_value[$a8_key]; else @@ -431,7 +497,7 @@ ?><?php unset($a8_var,$a8_value) ?><?php $a8_file=$bild;$a8_align='left'; ?><?php $a8_tmp_image_file = $image_dir.$a8_file.IMG_ICON_EXT; $a8_tmp_title = basename($a8_tmp_image_file); -?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?>><?php unset($a8_file,$a8_align) ?></a><?php } ?><?php $a6_empty='downurl'; ?><?php +?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?> /><?php unset($a8_file,$a8_align) ?></a><?php } ?><?php $a6_empty='downurl'; ?><?php if ( !isset($$a6_empty) ) $a6_tmp_exec = empty($a6_empty); elseif ( is_array($$a6_empty) ) @@ -453,16 +519,16 @@ $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php } ?></td><?php $a5_width='40%'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php } ?></td><?php $a5_width='40%';$a5_header=false; ?><?php $column_idx++; ?><td width="40%" <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php unset($a5_width) ?><?php $a6_align='left';$a6_type=$icon; ?><?php +><?php unset($a5_width,$a5_header) ?><?php $a6_align='left';$a6_type=$icon; ?><?php $a6_tmp_image_file = $image_dir.'icon_'.$a6_type.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_align,$a6_type) ?><?php $a6_class='text';$a6_var='name';$a6_escape=true;$a6_cut='both'; ?><?php +?><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_align,$a6_type) ?><?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 @@ -471,12 +537,12 @@ $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><?php $a5_width='18%'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?></td><?php $a5_width='18%';$a5_header=false; ?><?php $column_idx++; ?><td width="18%" <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php unset($a5_width) ?><?php $a6_date=$date; ?><?php +><?php unset($a5_width,$a5_header) ?><?php $a6_date=$date; ?><?php global $conf; $time = $a6_date; if ( isset($_COOKIE['or_timezone_offset']) ) @@ -537,17 +603,7 @@ echo $jahre.' '.lang('GLOBAL_YEARS'); echo '</span>'; } -?><?php unset($a6_date) ?></td></tr><?php } ?> </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 } ?> -</body> -</html>- \ No newline at end of file +?><?php unset($a6_date) ?></td></tr><?php } ?><?php + $column_idx = $last_column_idx; +?> +</table>+ \ No newline at end of file diff --git a/themes/default/pages/html/folder/prop.tpl.php b/themes/default/pages/html/folder/prop.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 } ?> - <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_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(); @@ -46,675 +30,50 @@ $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_title='global_prop';$a3_name='objectName';$a3_icon='folder';$a3_widths='35%,65%';$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_title,$a3_name,$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 = ''; - $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='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 unset($a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><?php $a3_title=lang('GLOBAL_PROP'); ?><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='name';$a6_key='global_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,$a6_key) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='name,focus';$a6_default='';$a6_type='text';$a6_name='name';$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='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) ?></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; + } } 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';$a6_key='global_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,$a6_key) ?></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='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()) { + } } 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';$a6_key='global_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,$a6_key) ?></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) ?></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_key='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_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) ?></td><?php $a6_class='filename';$a6_colspan='2'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> - class="filename" - colspan="2" -><?php unset($a6_class,$a6_colspan) ?><?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_key='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_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) ?></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 $a5_colspan='3'; ?><?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="3" -><?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 - { - $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=$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 = ''; - $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=$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 +?><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></form> diff --git a/themes/default/pages/html/folder/pub.tpl.php b/themes/default/pages/html/folder/pub.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,158 +14,43 @@ $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 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_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_present='pages'; ?><?php - $a6_tmp_exec = isset($$a6_present); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><?php $a3_title=lang('publish'); ?><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_present='pages'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) { ?> -<?php unset($a6_present) ?><?php $a7_present='subdirs'; ?><?php - $a7_tmp_exec = isset($$a7_present); - $a7_tmp_last_exec = $a7_tmp_exec; - if ( $a7_tmp_exec ) +<?php unset($a4_present) ?><?php $a5_present='subdirs'; ?><?php + $a5_tmp_exec = isset($$a5_present); + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a7_present) ?><?php $a8_default=false;$a8_readonly=false;$a8_name='pages'; ?><?php +<?php unset($a5_present) ?><?php $a6_class='line'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='label'; ?><div class="<?php echo $a7_class ?>"><?php unset($a7_class) ?></div><?php $a7_class='input'; ?><div class="<?php echo $a7_class ?>"><?php unset($a7_class) ?><?php $a8_default=false;$a8_readonly=false;$a8_name='pages'; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; if ( isset($$a8_name) ) $checked = $$a8_name; @@ -208,7 +61,8 @@ if ( $a8_readonly && $checked ) { ?><input type="hidden" name="<?php echo $a8_name ?>" value="1" /><?php } -?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?><?php $a8_for='pages'; ?><label for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>"><?php unset($a8_for) ?><?php $a9_class='text';$a9_raw='_';$a9_escape=true;$a9_cut='both'; ?><?php +?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?><?php $a8_for='pages'; ?><label<?php if (isset($a8_for)) { ?> for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>" class="label"<?php } ?>> +<?php if (isset($a8_key)) { echo lang($a8_key); if(hasLang($a8_key.'_desc')) { ?><div class="description"><?php echo lang($a8_key.'_desc')?></div> <?php } } ?><?php unset($a8_for) ?><?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 $a9_class ?>" title="<?php echo $a9_title ?>"><?php @@ -226,22 +80,22 @@ if ( $a8_readonly && $checked ) $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?></label><br/><?php } ?><?php } ?><?php $a6_present='files'; ?><?php - $a6_tmp_exec = isset($$a6_present); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?></label></div></div><?php } ?><?php } ?><?php $a4_present='files'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) { ?> -<?php unset($a6_present) ?><?php $a7_true='subdirs'; ?><?php - if (gettype($a7_true) === '' && gettype($a7_true) === '1') - $a7_tmp_exec = $$a7_true == true; +<?php unset($a4_present) ?><?php $a5_true='subdirs'; ?><?php + if (gettype($a5_true) === '' && gettype($a5_true) === '1') + $a5_tmp_exec = $$a5_true == true; else - $a7_tmp_exec = $a7_true == true; - $a7_tmp_last_exec = $a7_tmp_exec; - if ( $a7_tmp_exec ) + $a5_tmp_exec = $a5_true == true; + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a7_true) ?><?php $a8_default=false;$a8_readonly=false;$a8_name='files'; ?><?php +<?php unset($a5_true) ?><?php $a6_class='line'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='label'; ?><div class="<?php echo $a7_class ?>"><?php unset($a7_class) ?></div><?php $a7_class='input'; ?><div class="<?php echo $a7_class ?>"><?php unset($a7_class) ?><?php $a8_default=false;$a8_readonly=false;$a8_name='files'; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; if ( isset($$a8_name) ) $checked = $$a8_name; @@ -252,7 +106,8 @@ if ( $a8_readonly && $checked ) { ?><input type="hidden" name="<?php echo $a8_name ?>" value="1" /><?php } -?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?><?php $a8_for='files'; ?><label for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>"><?php unset($a8_for) ?><?php $a9_class='text';$a9_raw='_';$a9_escape=true;$a9_cut='both'; ?><?php +?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?><?php $a8_for='files'; ?><label<?php if (isset($a8_for)) { ?> for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>" class="label"<?php } ?>> +<?php if (isset($a8_key)) { echo lang($a8_key); if(hasLang($a8_key.'_desc')) { ?><div class="description"><?php echo lang($a8_key.'_desc')?></div> <?php } } ?><?php unset($a8_for) ?><?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 $a9_class ?>" title="<?php echo $a9_title ?>"><?php @@ -270,39 +125,13 @@ if ( $a8_readonly && $checked ) $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?></label><br/><?php } ?><?php } ?></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_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++; - $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_present='subdirs'; ?><?php - $a6_tmp_exec = isset($$a6_present); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?></label></div></div><?php } ?><?php } ?></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_present='subdirs'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) { ?> -<?php unset($a6_present) ?><?php $a7_default=false;$a7_readonly=false;$a7_name='subdirs'; ?><?php +<?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='subdirs'; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; if ( isset($$a7_name) ) $checked = $$a7_name; @@ -313,7 +142,8 @@ 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='subdirs'; ?><label for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>"><?php unset($a7_for) ?><?php $a8_class='text';$a8_raw='_';$a8_escape=true;$a8_cut='both'; ?><?php +?><?php unset($a7_name); unset($a7_readonly); unset($a7_default); ?><?php unset($a7_default,$a7_readonly,$a7_name) ?><?php $a7_for='subdirs'; ?><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_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 @@ -331,13 +161,13 @@ if ( $a7_readonly && $checked ) $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><br/><?php } ?><?php $a6_present='clean'; ?><?php - $a6_tmp_exec = isset($$a6_present); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></label></div></div><?php } ?><?php $a4_present='clean'; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) { ?> -<?php unset($a6_present) ?><?php $a7_default=false;$a7_readonly=false;$a7_name='clean'; ?><?php +<?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='clean'; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; if ( isset($$a7_name) ) $checked = $$a7_name; @@ -348,7 +178,8 @@ 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='clean'; ?><label for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>"><?php unset($a7_for) ?><?php $a8_class='text';$a8_raw='_';$a8_escape=true;$a8_cut='both'; ?><?php +?><?php unset($a7_name); unset($a7_readonly); unset($a7_default); ?><?php unset($a7_default,$a7_readonly,$a7_name) ?><?php $a7_for='clean'; ?><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_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 @@ -366,59 +197,4 @@ if ( $a7_readonly && $checked ) $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><br/><?php } ?></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a5_class='help'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> - class="help" -><?php unset($a5_class) ?><?php $a6_class='text';$a6_text='GLOBAL_MUCH_TIME';$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></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 echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></label></div></div><?php } ?></fieldset></form> diff --git a/themes/default/pages/html/folder/remove.tpl.php b/themes/default/pages/html/folder/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,157 +84,147 @@ $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_class='help';$a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a6_class='help';$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="help" colspan="2" -><?php unset($a5_class,$a5_colspan) ?><?php $a6_class='text';$a6_text='GROUP_DELETE_DESC';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_class,$a6_colspan,$a6_header) ?><?php $a7_class='text';$a7_text='GROUP_DELETE_DESC';$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></tr><?php - $row_idx++; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></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 } ?> @@ -285,21 +232,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/> @@ -307,12 +271,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/folder/select.tpl.php b/themes/default/pages/html/folder/select.tpl.php @@ -1,124 +1,94 @@ -<?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='folder';$a2_subaction='edit';$a2_name='';$a2_target='_self';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php - $a2_id = $this->getRequestId(); +<?php $a3_action='folder';$a3_subaction='multiple';$a3_name='';$a3_target='_self';$a3_method='post';$a3_enctype='application/x-www-form-urlencoded';$a3_type=''; ?><?php + $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_action,$a2_subaction,$a2_name,$a2_target,$a2_method,$a2_enctype) ?><?php $a3_title='titelso';$a3_name='bla';$a3_widths='5%,75%';$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_action,$a3_subaction,$a3_name,$a3_target,$a3_method,$a3_enctype,$a3_type) ?><?php $a4_name='ids'; ?><?php +if (isset($$a4_name)) + $a4_tmp_value = $$a4_name; +elseif ( isset($a4_default) ) + $a4_tmp_value = $a4_default; +else + $a4_tmp_value = ""; +?><input type="hidden" name="<?php echo $a4_name ?>" value="<?php echo $a4_tmp_value ?>" /><?php unset($a4_name) ?><?php $a4_name='type'; ?><?php +if (isset($$a4_name)) + $a4_tmp_value = $$a4_name; +elseif ( isset($a4_default) ) + $a4_tmp_value = $a4_default; +else + $a4_tmp_value = ""; +?><input type="hidden" name="<?php echo $a4_name ?>" value="<?php echo $a4_tmp_value ?>" /><?php unset($a4_name) ?><?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']); @@ -126,211 +96,158 @@ $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_widths,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $a4_class='headline'; ?><?php - $row_idx++; +<div class="content"><div class="filler"> +<?php } ?><?php unset($a4_width,$a4_rowclasses,$a4_columnclasses) ?><?php $a5_width='100%';$a5_space='0px';$a5_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($a5_width,$a5_space,$a5_padding) ?><?php $column_idx = 0; ?> <tr - class="headline" > -<?php unset($a4_class) ?><?php $a5_class='help'; ?><?php $column_idx++; ?><td +<?php $a7_class='help';$a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a5_class) ?><?php $a6_class='text';$a6_key='SELECT';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a7_class,$a7_header) ?><?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 $a6_class ?>" title="<?php echo $a6_title ?>"><?php - $langF = $a6_escape?'langHtml':'lang'; - $tmp_text = $langF($a6_key); +?><<?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($a6_class,$a6_key,$a6_escape,$a6_cut) ?></td><?php $a5_class='help'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_raw,$a8_escape,$a8_cut) ?></td><?php $a7_class='help';$a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a5_class) ?><?php $a6_class='text';$a6_key='GLOBAL_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 - $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) ?><?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_class='text';$a6_key='GLOBAL_NAME';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a7_class,$a7_header) ?><?php $a8_class='text';$a8_text='GLOBAL_NAME';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_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); +?><<?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($a6_class,$a6_key,$a6_escape,$a6_cut) ?></td></tr><?php $a4_list='object';$a4_extract=true;$a4_key='list_key';$a4_value='list_value'; ?><?php - $a4_list_tmp_key = $a4_key; - $a4_list_tmp_value = $a4_value; - $a4_list_extract = $a4_extract; - unset($a4_key); - unset($a4_value); - if ( !isset($$a4_list) || !is_array($$a4_list) ) - $$a4_list = array(); - foreach( $$a4_list as $$a4_list_tmp_key => $$a4_list_tmp_value ) +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></td></tr><?php $a6_list='objectlist';$a6_extract=true;$a6_key='list_key';$a6_value='list_value'; ?><?php + $a6_list_tmp_key = $a6_key; + $a6_list_tmp_value = $a6_value; + $a6_list_extract = $a6_extract; + unset($a6_key); + unset($a6_value); + if ( !isset($$a6_list) || !is_array($$a6_list) ) + $$a6_list = array(); + foreach( $$a6_list as $$a6_list_tmp_key => $$a6_list_tmp_value ) { - if ( $a4_list_extract ) + if ( $a6_list_extract ) { - if ( !is_array($$a4_list_tmp_value) ) + if ( !is_array($$a6_list_tmp_value) ) { - print_r($$a4_list_tmp_value); - die( 'not an array at key: '.$$a4_list_tmp_key ); + print_r($$a6_list_tmp_value); + die( 'not an array at key: '.$$a6_list_tmp_key ); } - extract($$a4_list_tmp_value); + extract($$a6_list_tmp_value); } -?><?php unset($a4_list,$a4_extract,$a4_key,$a4_value) ?><?php $a5_class='data'; ?><?php - $row_idx++; +?><?php unset($a6_list,$a6_extract,$a6_key,$a6_value) ?><?php $a7_class='data'; ?><?php $column_idx = 0; ?> <tr class="data" > -<?php unset($a5_class) ?><?php $column_idx++; ?><td +<?php unset($a7_class) ?><?php $a8_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_true='writable'; ?><?php - if (gettype($a7_true) === '' && gettype($a7_true) === '1') - $a7_tmp_exec = $$a7_true == true; - else - $a7_tmp_exec = $a7_true == true; - $a7_tmp_last_exec = $a7_tmp_exec; - if ( $a7_tmp_exec ) - { -?> -<?php unset($a7_true) ?><?php $a8_default=false;$a8_readonly=false;$a8_name=$id; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; - if ( isset($$a8_name) ) - $checked = $$a8_name; - else - $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 $a8_name ?>" value="1" /><?php -} -?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?><?php } ?><?php $a7_false='writable'; ?><?php - if (gettype($a7_false) === '' && gettype($a7_false) === '1') - $a7_tmp_exec = $$a7_false == false; - else - $a7_tmp_exec = $a7_false == false; - $a7_tmp_last_exec = $a7_tmp_exec; - if ( $a7_tmp_exec ) - { -?> -<?php unset($a7_false) ?><?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 } ?></td><?php $column_idx++; ?><td +><?php unset($a8_header) ?><?php $a9_icon=$type;$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) ?></td><?php $a8_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_for=$id; ?><label for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>"><?php unset($a7_for) ?><?php $a8_align='left';$a8_type=$icon; ?><?php - $a8_tmp_image_file = $image_dir.'icon_'.$a8_type.IMG_ICON_EXT; - $a8_size = '16x16'; - $a8_tmp_title = basename($a8_tmp_image_file); -?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?>><?php unset($a8_align,$a8_type) ?><?php $a8_class='text';$a8_var='name';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +><?php unset($a8_header) ?><?php $a9_class='text';$a9_var='name';$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) ?></label></td></tr><?php } ?><?php - $row_idx++; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_raw,$a9_escape,$a9_cut) ?></td></tr><?php } ?><?php $a6_present='folder'; ?><?php + $a6_tmp_exec = isset($$a6_present); + $a6_tmp_last_exec = $a6_tmp_exec; + if ( $a6_tmp_exec ) + { +?> +<?php unset($a6_present) ?><?php $column_idx = 0; ?> <tr > -<?php $a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a8_colspan='2';$a8_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -338,198 +255,103 @@ if ( $a8_readonly && $checked ) class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a5_colspan) ?><?php $a6_align='left';$a6_fileext='tree_none_end.gif'; ?><?php - $a6_tmp_image_file = $image_dir.$a6_fileext; - $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_align,$a6_fileext) ?><?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=$actionName;$a6_subaction='select';$a6_var1='markall';$a6_value1='1'; ?><?php - $params = array(); - $params[$a6_var1]=$a6_value1; - $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_var1,$a6_value1) ?><?php $a7_class='text';$a7_key='FOLDER_MARK_ALL';$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_url='javascript:unmark();';$a6_class=''; ?><?php - $params = array(); - $tmp_url = ''; - $tmp_url = $a6_url; -?><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_url,$a6_class) ?><?php $a7_class='text';$a7_key='FOLDER_UNMARK_ALL';$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_url='javascript:flip();';$a6_class=''; ?><?php - $params = array(); - $tmp_url = ''; - $tmp_url = $a6_url; -?><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_url,$a6_class) ?><?php $a7_class='text';$a7_key='FOLDER_FLIP_MARK';$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++; +><?php unset($a8_colspan,$a8_header) ?><?php $a9_title=lang('folder_select_target_folder'); ?><fieldset><?php if(isset($a9_title)) { ?><legend><?php if(isset($a9_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a9_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a9_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a9_title) ?></fieldset></td></tr><?php $a7_list='folder';$a7_extract=false;$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 $a8_class='data'; ?><?php $column_idx = 0; ?> <tr + class="data" > -<?php $a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php unset($a8_class) ?><?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 } ?> - 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++; - $column_idx = 0; -?> -<tr -> -<?php $a5_colspan='2'; ?><?php $column_idx++; ?><td +><?php unset($a9_header) ?><?php $a10_readonly=false;$a10_name='targetobjectid';$a10_value=$list_key;$a10_default=false;$a10_prefix='';$a10_suffix='';$a10_class='';$a10_onchange=''; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a10_readonly=true; + if ( isset($$a10_name) ) + $a10_tmp_default = $$a10_name; + elseif ( isset($a10_default) ) + $a10_tmp_default = $a10_default; + else + $a10_tmp_default = ''; + ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a10_name.'_'.$a10_value ?>" name="<?php echo $a10_prefix.$a10_name ?>"<?php if ( $a10_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a10_value ?>" <?php if($a10_value==$a10_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a10_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> +<?php /* #END-IF# */ ?><?php unset($a10_readonly,$a10_name,$a10_value,$a10_default,$a10_prefix,$a10_suffix,$a10_class,$a10_onchange) ?></td><?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 } ?> - colspan="2" -><?php unset($a5_colspan) ?><?php $a6_var='type';$a6_value=$defaulttype; ?><?php - if (isset($a6_key)) - $$a6_var = $a6_value[$a6_key]; - else - $$a6_var = $a6_value; -?><?php unset($a6_var,$a6_value) ?><?php $a6_list='actionlist';$a6_extract=false;$a6_key='list_key';$a6_value='actiontype'; ?><?php - $a6_list_tmp_key = $a6_key; - $a6_list_tmp_value = $a6_value; - $a6_list_extract = $a6_extract; - unset($a6_key); - unset($a6_value); - if ( !isset($$a6_list) || !is_array($$a6_list) ) - $$a6_list = array(); - foreach( $$a6_list as $$a6_list_tmp_key => $$a6_list_tmp_value ) - { - if ( $a6_list_extract ) - { - if ( !is_array($$a6_list_tmp_value) ) - { - print_r($$a6_list_tmp_value); - die( 'not an array at key: '.$$a6_list_tmp_key ); - } - extract($$a6_list_tmp_value); - } -?><?php unset($a6_list,$a6_extract,$a6_key,$a6_value) ?><?php $a7_readonly=false;$a7_name='type';$a7_value=$actiontype;$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 - $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='type';$a7_value=$actiontype; ?><label for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>"><?php unset($a7_for,$a7_value) ?><?php $a8_class='text';$a8_raw='_';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +><?php unset($a9_header) ?><?php $a10_for='targetobjectid_'.$list_key.''; ?><label<?php if (isset($a10_for)) { ?> for="id_<?php echo $a10_for ?><?php if (!empty($a10_value)) echo '_'.$a10_value ?>" class="label"<?php } ?>> +<?php if (isset($a10_key)) { echo lang($a10_key); if(hasLang($a10_key.'_desc')) { ?><div class="description"><?php echo lang($a10_key.'_desc')?></div> <?php } } ?><?php unset($a10_for) ?><?php $a11_class='text';$a11_var='list_value';$a11_escape=true;$a11_cut='both'; ?><?php + $a11_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_key=$actiontype;$a8_prefix='FOLDER_SELECT_';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_key = $a8_prefix.$a8_key; - $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_key); +?><<?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($a8_class,$a8_key,$a8_prefix,$a8_escape,$a8_cut) ?></label><br/><?php } ?></td></tr><?php - $row_idx++; +?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_var,$a11_escape,$a11_cut) ?></label></td></tr><?php } ?><?php } ?><?php $a6_present='ask_filename'; ?><?php + $a6_tmp_exec = isset($$a6_present); + $a6_tmp_last_exec = $a6_tmp_exec; + if ( $a6_tmp_exec ) + { +?> +<?php unset($a6_present) ?><?php $column_idx = 0; ?> <tr > -<?php $a5_class='act';$a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a8_colspan='2';$a8_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 if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> colspan="2" -><?php unset($a5_class,$a5_colspan) ?><?php $a6_type='ok';$a6_class='ok';$a6_value='ok';$a6_text='button_next'; ?><?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><?php $a4_empty='object'; ?><?php - if ( !isset($$a4_empty) ) - $a4_tmp_exec = empty($a4_empty); - elseif ( is_array($$a4_empty) ) - $a4_tmp_exec = (count($$a4_empty)==0); - elseif ( is_bool($$a4_empty) ) - $a4_tmp_exec = true; - else - $a4_tmp_exec = empty( $$a4_empty ); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +><?php unset($a8_colspan,$a8_header) ?><?php $a9_class='text';$a9_default='';$a9_type='text';$a9_name='filename';$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) ?></td></tr><?php } ?><?php $a6_present='ask_commit'; ?><?php + $a6_tmp_exec = isset($$a6_present); + $a6_tmp_last_exec = $a6_tmp_exec; + if ( $a6_tmp_exec ) { ?> -<?php unset($a4_empty) ?><?php - $row_idx++; +<?php unset($a6_present) ?><?php $column_idx = 0; ?> <tr > -<?php $a6_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a8_colspan='2';$a8_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -537,20 +359,73 @@ if ( $a8_readonly && $checked ) class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a6_colspan) ?><?php $a7_class='text';$a7_text='GLOBAL_NOT_FOUND';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a8_colspan,$a8_header) ?><?php $a9_title=lang('options'); ?><fieldset><?php if(isset($a9_title)) { ?><legend><?php if(isset($a9_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a9_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a9_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a9_title) ?><?php $a10_default=false;$a10_readonly=false;$a10_name='commit'; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a10_readonly=true; + if ( isset($$a10_name) ) + $checked = $$a10_name; + else + $checked = $a10_default; +?><input class="checkbox" type="checkbox" id="id_<?php echo $a10_name ?>" name="<?php echo $a10_name ?>" <?php if ($a10_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?><?php if (in_array($a10_name,$errors)) echo ' style="background-color:red;"' ?> /><?php +if ( $a10_readonly && $checked ) +{ +?><input type="hidden" name="<?php echo $a10_name ?>" value="1" /><?php +} +?><?php unset($a10_name); unset($a10_readonly); unset($a10_default); ?><?php unset($a10_default,$a10_readonly,$a10_name) ?><?php $a10_for='commit'; ?><label<?php if (isset($a10_for)) { ?> for="id_<?php echo $a10_for ?><?php if (!empty($a10_value)) echo '_'.$a10_value ?>" class="label"<?php } ?>> +<?php if (isset($a10_key)) { echo lang($a10_key); if(hasLang($a10_key.'_desc')) { ?><div class="description"><?php echo lang($a10_key.'_desc')?></div> <?php } } ?><?php unset($a10_for) ?><?php $a11_class='text';$a11_key='FOLDER_SELECT_DELETE_COMMIT';$a11_escape=true;$a11_cut='both'; ?><?php + $a11_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 $a11_class ?>" title="<?php echo $a11_title ?>"><?php + $langF = $a11_escape?'langHtml':'lang'; + $tmp_text = $langF($a11_key); $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></tr><?php } ?> </table> - </td> - </tr> -</table> -</center> +?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_key,$a11_escape,$a11_cut) ?></label></fieldset></td></tr><?php } ?><?php + $column_idx = 0; +?> +<tr +> +<?php $a7_class='act';$a7_colspan='2';$a7_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($a7_class,$a7_colspan,$a7_header) ?><?php $a8_type='ok';$a8_class='ok';$a8_value='ok';$a8_text='button_ok'; ?><div class="invisible"> +<?php + if ($this->isEditable() && !$this->isEditMode() && !readonly() ) + { + $a8_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 + { + $a8_type = 'submit'; + } + $a8_tmp_src = ''; + if ( !empty($a8_type)) { +?> +<input type="<?php echo $a8_type ?>"<?php if(isset($a8_src)) { ?> src="<?php $a8_tmp_src ?>"<?php } ?> name="<?php echo $a8_value ?>" class="ok" title="<?php echo lang($a8_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a8_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a8_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($a8_type,$a8_class,$a8_value,$a8_text) ?></td></tr><?php + $column_idx = $last_column_idx; +?> +</table><?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/> @@ -558,19 +433,4 @@ if ( $a8_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_script='mark';$a2_inline=true; ?><?php -$a2_tmp_file = $tpl_dir.'../../js/'.basename($a2_script).'.js'; -if (!$a2_inline) -{ - ?><script src="<?php echo $a2_tmp_file ?>" type="text/javascript"></script><?php -} -else -{ - echo '<script type="text/javascript">'; - echo str_replace(' ',' ',str_replace('~','',strtr(implode('',file($a2_tmp_file)),"\t\n\b",'~~~'))); - echo '</script>'; -} -?> -<?php unset($a2_script,$a2_inline) ?></body> -</html>- \ No newline at end of file +<?php } ?></form> diff --git a/themes/default/pages/html/folder/show.tpl.php b/themes/default/pages/html/folder/show.tpl.php @@ -1,196 +1,38 @@ -<?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_views='create';$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 } ?> - <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_widths='75%,25%';$a2_width='93%';$a2_rowclasses='odd,even';$a2_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$actionName; - $coldumn_widths = explode(',',$a2_widths); - $row_classes = explode(',',$a2_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a2_columnclasses); - $row_idx = 0; +</div><?php unset($a2_name,$a2_views,$a2_back) ?><?php $a2_width='100%';$a2_space='0px';$a2_padding='0px'; ?><?php + $last_column_idx = @$column_idx; $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="'.$a2_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($a2_widths,$a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php $a3_present='up_url'; ?><?php - $a3_tmp_exec = isset($$a3_present); - $a3_tmp_last_exec = $a3_tmp_exec; - if ( $a3_tmp_exec ) - { -?> -<?php unset($a3_present) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a5_width='50%';$a5_colspan='8'; ?><?php $column_idx++; ?><td - width="50%" -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="8" -><?php unset($a5_width,$a5_colspan) ?><?php $a6_title='';$a6_target='cms_main';$a6_url=$up_url;$a6_class=''; ?><?php - $params = array(); - $tmp_url = ''; - $tmp_url = $a6_url; -?><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_url,$a6_class) ?><?php $a7_align='left';$a7_type='folder'; ?><?php - $a7_tmp_image_file = $image_dir.'icon_'.$a7_type.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_align,$a7_type) ?><?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 - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = str_replace('_','&nbsp;',$a7_raw); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?></a></td></tr><?php } ?><?php $a3_class='headline'; ?><?php - $row_idx++; + $coloumn_widths = array(); + $row_classes = array(); + $column_classes = array(); +?><table class="%class%" cellspacing="0px" width="100%" cellpadding="0px"> +<?php unset($a2_width,$a2_space,$a2_padding) ?><?php $a3_class='headline'; ?><?php $column_idx = 0; ?> <tr class="headline" > -<?php unset($a3_class) ?><?php $a4_class='help'; ?><?php $column_idx++; ?><td +<?php unset($a3_class) ?><?php $a4_class='help';$a4_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a4_class) ?><?php $a5_class='text';$a5_key='GLOBAL_TYPE';$a5_escape=true;$a5_cut='both'; ?><?php +><?php unset($a4_class,$a4_header) ?><?php $a5_class='text';$a5_key='GLOBAL_TYPE';$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 @@ -217,12 +59,12 @@ $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></td><?php $a4_class='help'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></td><?php $a4_class='help';$a4_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a4_class) ?><?php $a5_class='text';$a5_key='GLOBAL_LASTCHANGE';$a5_escape=true;$a5_cut='both'; ?><?php +><?php unset($a4_class,$a4_header) ?><?php $a5_class='text';$a5_key='GLOBAL_LASTCHANGE';$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 @@ -231,7 +73,56 @@ $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></td></tr><?php $a3_list='object';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></td></tr><?php $a3_present='up_url'; ?><?php + $a3_tmp_exec = isset($$a3_present); + $a3_tmp_last_exec = $a3_tmp_exec; + if ( $a3_tmp_exec ) + { +?> +<?php unset($a3_present) ?><?php $a4_class='data'; ?><?php + $column_idx = 0; +?> +<tr + class="data" +> +<?php unset($a4_class) ?><?php $a5_header=false;$a5_url=$up_url; ?><?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 } ?> + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a5_url ?>'); " +><?php unset($a5_header,$a5_url) ?><?php $a6_align='left';$a6_type='folder'; ?><?php + $a6_tmp_image_file = $image_dir.'icon_'.$a6_type.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_align,$a6_type) ?><?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) ?></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 unset($a5_header) ?><?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) ?></td></tr><?php } ?><?php $a3_list='object';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php $a3_list_tmp_key = $a3_key; $a3_list_tmp_value = $a3_value; $a3_list_extract = $a3_extract; @@ -251,53 +142,48 @@ extract($$a3_list_tmp_value); } ?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php $a4_class='data'; ?><?php - $row_idx++; $column_idx = 0; ?> <tr class="data" > -<?php unset($a4_class) ?><?php $column_idx++; ?><td +<?php unset($a4_class) ?><?php $a5_class=$class;$a5_header=false;$a5_title=$desc;$a5_url=$url; ?><?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=$desc;$a6_target='cms_main';$a6_url=$url;$a6_class=$class; ?><?php - $params = array(); - $tmp_url = ''; - $tmp_url = $a6_url; -?><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_url,$a6_class) ?><?php $a7_align='left';$a7_type=$icon; ?><?php - $a7_tmp_image_file = $image_dir.'icon_'.$a7_type.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_align,$a7_type) ?><?php $a7_class='text';$a7_var='name';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; + class="<?php echo $class ?>" + title="<?php echo $desc ?>" + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a5_url ?>'); " +><?php unset($a5_class,$a5_header,$a5_title,$a5_url) ?><?php $a6_align='left';$a6_type=$icon; ?><?php + $a6_tmp_image_file = $image_dir.'icon_'.$a6_type.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_align,$a6_type) ?><?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 $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = isset($$a7_var)?$$a7_var:$langF('UNKNOWN'); +?><<?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($a7_class,$a7_var,$a7_escape,$a7_cut) ?><?php $a7_class='text';$a7_raw='_';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?><?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 $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = str_replace('_','&nbsp;',$a7_raw); +?><<?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($a7_class,$a7_raw,$a7_escape,$a7_cut) ?></a></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_raw,$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_date=$date; ?><?php +><?php unset($a5_header) ?><?php $a6_date=$date; ?><?php global $conf; $time = $a6_date; if ( isset($_COOKIE['or_timezone_offset']) ) @@ -372,12 +258,11 @@ { ?> <?php unset($a3_empty) ?><?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 } ?> @@ -385,7 +270,7 @@ class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a5_colspan) ?><?php $a6_class='text';$a6_text='GLOBAL_NOT_FOUND';$a6_escape=true;$a6_cut='both'; ?><?php +><?php unset($a5_colspan,$a5_header) ?><?php $a6_class='text';$a6_text='GLOBAL_NOT_FOUND';$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 @@ -394,17 +279,59 @@ $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></tr><?php } ?> </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 echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td></tr><?php } ?><?php + $column_idx = 0; +?> +<tr +> +<?php $a4_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 } ?> -</body> -</html>- \ No newline at end of file +><?php unset($a4_header) ?><?php $a5_title='';$a5_type='view';$a5_class='action';$a5_action='folder';$a5_subaction='create';$a5_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $a5_target = $view; + switch( $a5_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a5_action)?$a5_action:$this->actionName,'subaction'=>!empty($a5_subaction)?$a5_subaction:$this->subActionName,'id'=>!empty($a5_id)?$a5_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($a5_subaction)?$a5_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a5_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a5_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a5_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a5_frame ?>"<?php if (isset($a5_name)) { ?> name="<?php echo $a5_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a5_class ?>"<?php if (isset($a5_accesskey)) echo ' accesskey="'.$a5_accesskey.'"' ?> title="<?php echo encodeHtml($a5_title) ?>"><?php unset($a5_title,$a5_type,$a5_class,$a5_action,$a5_subaction,$a5_frame) ?><?php $a6_file='icon/create';$a6_align='left'; ?><?php + $a6_tmp_image_file = $image_dir.$a6_file.IMG_ICON_EXT; + $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_file,$a6_align) ?><?php $a6_class='text';$a6_key='menu_folder_create';$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) ?></a></td></tr><?php + $column_idx = $last_column_idx; +?> +</table>+ \ No newline at end of file diff --git a/themes/default/pages/html/group/add.tpl.php b/themes/default/pages/html/group/add.tpl.php @@ -1,254 +1,66 @@ -<?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 - $a2_action = $actionName; - $a2_subaction = $targetSubActionName; - $a2_id = $this->getRequestId(); +</div><?php unset($a2_name,$a2_back) ?><?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='70%';$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 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_icon,$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='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) ?></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_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; +?><?php unset($a3_name,$a3_target,$a3_method,$a3_enctype,$a3_type) ?><?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';$a6_key='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,$a6_key) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='focus';$a6_default='';$a6_type='text';$a6_name='name';$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 $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 + } } 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></form> diff --git a/themes/default/pages/html/group/edit.tpl.php b/themes/default/pages/html/group/edit.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_views='remove';$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 } ?> - <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_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(); @@ -46,146 +30,32 @@ $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_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 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_icon,$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 +?><?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_for='name'; ?><label<?php if (isset($a5_for)) { ?> for="id_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" class="label"<?php } ?>> +<?php if (isset($a5_key)) { echo lang($a5_key); if(hasLang($a5_key.'_desc')) { ?><div class="description"><?php echo lang($a5_key.'_desc')?></div> <?php } } ?><?php unset($a5_for) ?><?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 @@ -194,61 +64,12 @@ $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_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++; - $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($a6_class,$a6_text,$a6_escape,$a6_cut) ?></label></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></form> diff --git a/themes/default/pages/html/group/listing.tpl.php b/themes/default/pages/html/group/listing.tpl.php @@ -1,95 +1,42 @@ -<?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='GLOBAL_GROUPS';$a2_icon='group';$a2_width='70%';$a2_rowclasses='odd,even';$a2_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$a2_icon; - $row_classes = explode(',',$a2_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a2_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="'.$a2_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 $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']); @@ -97,105 +44,183 @@ $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 } ?> +<div class="content"><div class="filler"> +<?php } ?><?php unset($a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $a4_width='100%';$a4_space='0px';$a4_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($a4_width,$a4_space,$a4_padding) ?><?php $a5_class='headline'; ?><?php + $column_idx = 0; +?> +<tr + class="headline" +> +<?php unset($a5_class) ?><?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 } ?> - <tr> - <td class="window"> - <table cellspacing="0" width="100%" cellpadding="4"> -<?php unset($a2_name,$a2_icon,$a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php $a3_list='el';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php - $a3_list_tmp_key = $a3_key; - $a3_list_tmp_value = $a3_value; - $a3_list_extract = $a3_extract; - unset($a3_key); - unset($a3_value); - if ( !isset($$a3_list) || !is_array($$a3_list) ) - $$a3_list = array(); - foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) +><?php unset($a6_header) ?><?php $a7_class='text';$a7_key='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_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) ?></td></tr><?php $a5_list='el';$a5_extract=true;$a5_key='list_key';$a5_value='list_value'; ?><?php + $a5_list_tmp_key = $a5_key; + $a5_list_tmp_value = $a5_value; + $a5_list_extract = $a5_extract; + unset($a5_key); + unset($a5_value); + if ( !isset($$a5_list) || !is_array($$a5_list) ) + $$a5_list = array(); + foreach( $$a5_list as $$a5_list_tmp_key => $$a5_list_tmp_value ) { - if ( $a3_list_extract ) + if ( $a5_list_extract ) { - if ( !is_array($$a3_list_tmp_value) ) + if ( !is_array($$a5_list_tmp_value) ) { - print_r($$a3_list_tmp_value); - die( 'not an array at key: '.$$a3_list_tmp_key ); + print_r($$a5_list_tmp_value); + die( 'not an array at key: '.$$a5_list_tmp_key ); } - extract($$a3_list_tmp_value); + extract($$a5_list_tmp_value); } -?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php $a4_class='data'; ?><?php - $row_idx++; +?><?php unset($a5_list,$a5_extract,$a5_key,$a5_value) ?><?php $a6_class='data'; ?><?php $column_idx = 0; ?> <tr class="data" > -<?php unset($a4_class) ?><?php $column_idx++; ?><td +<?php unset($a6_class) ?><?php $a7_header=false;$a7_url=$url; ?><?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 } ?> + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a7_url ?>'); " +><?php unset($a7_header,$a7_url) ?><?php $a8_file='icon_group';$a8_align='left'; ?><?php + $a8_tmp_image_file = $image_dir.$a8_file.IMG_ICON_EXT; + $a8_tmp_title = basename($a8_tmp_image_file); +?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?> /><?php unset($a8_file,$a8_align) ?><?php $a8_class='text';$a8_var='name';$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) ?></td></tr><?php } ?><?php + $column_idx = 0; +?> +<tr +> +<?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_title='';$a6_target='cms_main';$a6_url=$url;$a6_class=''; ?><?php +><?php unset($a6_header) ?><?php $a7_title='';$a7_type='';$a7_class='action';$a7_action='group';$a7_subaction='add';$a7_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a6_url; -?><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_url,$a6_class) ?><?php $a7_file='icon_group';$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_var='name';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; + $a7_target = $view; + switch( $a7_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a7_action)?$a7_action:$this->actionName,'subaction'=>!empty($a7_subaction)?$a7_subaction:$this->subActionName,'id'=>!empty($a7_id)?$a7_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($a7_subaction)?$a7_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a7_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a7_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a7_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a7_frame ?>"<?php if (isset($a7_name)) { ?> name="<?php echo $a7_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a7_class ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_type,$a7_class,$a7_action,$a7_subaction,$a7_frame) ?><?php $a8_class='text';$a8_key='menu_group_add';$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 = isset($$a7_var)?$$a7_var:$langF('UNKNOWN'); +?><<?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_var,$a7_escape,$a7_cut) ?></a></td></tr><?php } ?> </table> - </td> - </tr> -</table> -</center> +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></a></td></tr><?php + $column_idx = $last_column_idx; +?> +</table><?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/> @@ -203,5 +228,4 @@ <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -</body> -</html>- \ No newline at end of file +<?php } ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/group/memberships.tpl.php b/themes/default/pages/html/group/memberships.tpl.php @@ -0,0 +1,276 @@ +<?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_name='GROUP_MEMBERSHIPS';$a3_icon='user';$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_name,$a3_icon,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $a4_width='100%';$a4_space='0px';$a4_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($a4_width,$a4_space,$a4_padding) ?><?php $a5_class='headline'; ?><?php + $column_idx = 0; +?> +<tr + class="headline" +> +<?php unset($a5_class) ?><?php $a6_width='10%';$a6_header=false; ?><?php $column_idx++; ?><td + width="10%" +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> +><?php unset($a6_width,$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 unset($a6_header) ?><?php $a7_class='text';$a7_key='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_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) ?></td></tr><?php $a5_list='memberships';$a5_extract=true;$a5_key='list_key';$a5_value='list_value'; ?><?php + $a5_list_tmp_key = $a5_key; + $a5_list_tmp_value = $a5_value; + $a5_list_extract = $a5_extract; + unset($a5_key); + unset($a5_value); + if ( !isset($$a5_list) || !is_array($$a5_list) ) + $$a5_list = array(); + foreach( $$a5_list as $$a5_list_tmp_key => $$a5_list_tmp_value ) + { + if ( $a5_list_extract ) + { + if ( !is_array($$a5_list_tmp_value) ) + { + print_r($$a5_list_tmp_value); + die( 'not an array at key: '.$$a5_list_tmp_key ); + } + extract($$a5_list_tmp_value); + } +?><?php unset($a5_list,$a5_extract,$a5_key,$a5_value) ?><?php $a6_class='data'; ?><?php + $column_idx = 0; +?> +<tr + class="data" +> +<?php unset($a6_class) ?><?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 unset($a7_header) ?><?php $a8_default=false;$a8_readonly=false;$a8_name=$var; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; + if ( isset($$a8_name) ) + $checked = $$a8_name; + else + $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 $a8_name ?>" value="1" /><?php +} +?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?></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 unset($a7_header) ?><?php $a8_for=$var; ?><label<?php if (isset($a8_for)) { ?> for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>" class="label"<?php } ?>> +<?php if (isset($a8_key)) { echo lang($a8_key); if(hasLang($a8_key.'_desc')) { ?><div class="description"><?php echo lang($a8_key.'_desc')?></div> <?php } } ?><?php unset($a8_for) ?><?php $a9_file='icon_user';$a9_align='left'; ?><?php + $a9_tmp_image_file = $image_dir.$a9_file.IMG_ICON_EXT; + $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_file,$a9_align) ?><?php $a9_class='text';$a9_var='name';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_title = ''; + $tmp_tag = 'span'; +?><<?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($a9_class,$a9_var,$a9_escape,$a9_cut) ?></label></td></tr><?php } ?><?php + $column_idx = $last_column_idx; +?> +</table><?php + $column_idx = 0; +?> +<tr +> +<?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,$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 + ?><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/> +<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 } ?></form> diff --git a/themes/default/pages/html/group/remove.tpl.php b/themes/default/pages/html/group/remove.tpl.php @@ -1,207 +1,61 @@ -<?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 - $a2_action = $actionName; - $a2_subaction = $targetSubActionName; - $a2_id = $this->getRequestId(); +</div><?php unset($a2_name,$a2_back) ?><?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 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_icon,$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 = ''; - $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='name';$a6_escape=true;$a6_cut='both'; ?><?php +?><?php unset($a3_name,$a3_target,$a3_method,$a3_enctype,$a3_type) ?><?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_key='GLOBAL_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_key) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?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 @@ -210,35 +64,7 @@ $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 $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('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++; - $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_default=false;$a6_readonly=false;$a6_name='confirm'; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?></div></div><?php $a4_title=lang('options'); ?><fieldset><?php if(isset($a4_title)) { ?><legend><?php if(isset($a4_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a4_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a4_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a4_title) ?></fieldset><?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; @@ -249,76 +75,5 @@ 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='GLOBAL_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></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a5_class='help';$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="help" - colspan="2" -><?php unset($a5_class,$a5_colspan) ?><?php $a6_class='text';$a6_text='GROUP_DELETE_DESC';$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></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='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(); -</script> -<?php unset($a2_field) ?></body> -</html>- \ No newline at end of file +?><?php unset($a6_name); unset($a6_readonly); unset($a6_default); ?><?php unset($a6_default,$a6_readonly,$a6_name) ?><?php $a6_for='confirm';$a6_key='GROUP_DELETE'; ?><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,$a6_key) ?></label></div></div></form> diff --git a/themes/default/pages/html/group/rights.tpl.php b/themes/default/pages/html/group/rights.tpl.php @@ -1,95 +1,42 @@ -<?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_title='ACL';$a2_name='x';$a2_width='93%';$a2_rowclasses='odd,even';$a2_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$actionName; - $row_classes = explode(',',$a2_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a2_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="'.$a2_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 $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']); @@ -97,389 +44,420 @@ $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($a2_title,$a2_name,$a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php $a3_list='projects';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php - $a3_list_tmp_key = $a3_key; - $a3_list_tmp_value = $a3_value; - $a3_list_extract = $a3_extract; - unset($a3_key); - unset($a3_value); - if ( !isset($$a3_list) || !is_array($$a3_list) ) - $$a3_list = array(); - foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) +<div class="content"><div class="filler"> +<?php } ?><?php unset($a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $a4_list='projects';$a4_extract=true;$a4_key='list_key';$a4_value='list_value'; ?><?php + $a4_list_tmp_key = $a4_key; + $a4_list_tmp_value = $a4_value; + $a4_list_extract = $a4_extract; + unset($a4_key); + unset($a4_value); + if ( !isset($$a4_list) || !is_array($$a4_list) ) + $$a4_list = array(); + foreach( $$a4_list as $$a4_list_tmp_key => $$a4_list_tmp_value ) { - if ( $a3_list_extract ) + if ( $a4_list_extract ) { - if ( !is_array($$a3_list_tmp_value) ) + if ( !is_array($$a4_list_tmp_value) ) { - print_r($$a3_list_tmp_value); - die( 'not an array at key: '.$$a3_list_tmp_key ); + print_r($$a4_list_tmp_value); + die( 'not an array at key: '.$$a4_list_tmp_key ); } - extract($$a3_list_tmp_value); + extract($$a4_list_tmp_value); } -?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php - $row_idx++; +?><?php unset($a4_list,$a4_extract,$a4_key,$a4_value) ?><?php $column_idx = 0; ?> <tr > -<?php $a5_colspan='14'; ?><?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 } ?> - colspan="14" -><?php unset($a5_colspan) ?><?php $a6_title=$projectname; ?><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_empty='acls'; ?><?php - if ( !isset($$a4_empty) ) - $a4_tmp_exec = empty($a4_empty); - elseif ( is_array($$a4_empty) ) - $a4_tmp_exec = (count($$a4_empty)==0); - elseif ( is_bool($$a4_empty) ) - $a4_tmp_exec = true; +><?php unset($a6_header) ?><?php $a7_title=$projectname; ?><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) ?><?php $a8_empty='acls'; ?><?php + if ( !isset($$a8_empty) ) + $a8_tmp_exec = empty($a8_empty); + elseif ( is_array($$a8_empty) ) + $a8_tmp_exec = (count($$a8_empty)==0); + elseif ( is_bool($$a8_empty) ) + $a8_tmp_exec = true; else - $a4_tmp_exec = empty( $$a4_empty ); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) + $a8_tmp_exec = empty( $$a8_empty ); + $a8_tmp_last_exec = $a8_tmp_exec; + if ( $a8_tmp_exec ) { ?> -<?php unset($a4_empty) ?><?php - $row_idx++; +<?php unset($a8_empty) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a10_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='GLOBAL_NOT_FOUND';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a10_header) ?><?php $a11_class='text';$a11_text='GLOBAL_NOT_FOUND';$a11_escape=true;$a11_cut='both'; ?><?php + $a11_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 $a11_class ?>" title="<?php echo $a11_title ?>"><?php + $langF = $a11_escape?'langHtml':'lang'; + $tmp_text = $langF($a11_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></tr><?php } ?><?php $a4_not=true;$a4_empty='acls'; ?><?php - if ( !isset($$a4_empty) ) - $a4_tmp_exec = empty($a4_empty); - elseif ( is_array($$a4_empty) ) - $a4_tmp_exec = (count($$a4_empty)==0); - elseif ( is_bool($$a4_empty) ) - $a4_tmp_exec = true; +?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_text,$a11_escape,$a11_cut) ?></td></tr><?php } ?><?php $a8_not=true;$a8_empty='acls'; ?><?php + if ( !isset($$a8_empty) ) + $a8_tmp_exec = empty($a8_empty); + elseif ( is_array($$a8_empty) ) + $a8_tmp_exec = (count($$a8_empty)==0); + elseif ( is_bool($$a8_empty) ) + $a8_tmp_exec = true; else - $a4_tmp_exec = empty( $$a4_empty ); - $a4_tmp_exec = !$a4_tmp_exec; - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) + $a8_tmp_exec = empty( $$a8_empty ); + $a8_tmp_exec = !$a8_tmp_exec; + $a8_tmp_last_exec = $a8_tmp_exec; + if ( $a8_tmp_exec ) { ?> -<?php unset($a4_not,$a4_empty) ?><?php - $row_idx++; +<?php unset($a8_not,$a8_empty) ?><?php $a9_width='100%';$a9_space='0px';$a9_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($a9_width,$a9_space,$a9_padding) ?><?php $a10_class='headline'; ?><?php $column_idx = 0; ?> <tr + class="headline" > -<?php $a6_class='help'; ?><?php $column_idx++; ?><td +<?php unset($a10_class) ?><?php $a11_class='help';$a11_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='GLOBAL_USER';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a11_class,$a11_header) ?><?php $a12_class='text';$a12_text='GLOBAL_USER';$a12_escape=true;$a12_cut='both'; ?><?php + $a12_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 $a12_class ?>" title="<?php echo $a12_title ?>"><?php + $langF = $a12_escape?'langHtml':'lang'; + $tmp_text = $langF($a12_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='help'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a12_class,$a12_text,$a12_escape,$a12_cut) ?></td><?php $a11_class='help';$a11_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='GLOBAL_NAME';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a11_class,$a11_header) ?><?php $a12_class='text';$a12_text='GLOBAL_NAME';$a12_escape=true;$a12_cut='both'; ?><?php + $a12_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 $a12_class ?>" title="<?php echo $a12_title ?>"><?php + $langF = $a12_escape?'langHtml':'lang'; + $tmp_text = $langF($a12_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='help'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a12_class,$a12_text,$a12_escape,$a12_cut) ?></td><?php $a11_class='help';$a11_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='GLOBAL_LANGUAGE';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a11_class,$a11_header) ?><?php $a12_class='text';$a12_text='GLOBAL_LANGUAGE';$a12_escape=true;$a12_cut='both'; ?><?php + $a12_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 $a12_class ?>" title="<?php echo $a12_title ?>"><?php + $langF = $a12_escape?'langHtml':'lang'; + $tmp_text = $langF($a12_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_list='show';$a6_extract=false;$a6_key='list_key';$a6_value='t'; ?><?php - $a6_list_tmp_key = $a6_key; - $a6_list_tmp_value = $a6_value; - $a6_list_extract = $a6_extract; - unset($a6_key); - unset($a6_value); - if ( !isset($$a6_list) || !is_array($$a6_list) ) - $$a6_list = array(); - foreach( $$a6_list as $$a6_list_tmp_key => $$a6_list_tmp_value ) +?></<?php echo $tmp_tag ?>><?php unset($a12_class,$a12_text,$a12_escape,$a12_cut) ?></td><?php $a11_list='show';$a11_extract=false;$a11_key='list_key';$a11_value='t'; ?><?php + $a11_list_tmp_key = $a11_key; + $a11_list_tmp_value = $a11_value; + $a11_list_extract = $a11_extract; + unset($a11_key); + unset($a11_value); + if ( !isset($$a11_list) || !is_array($$a11_list) ) + $$a11_list = array(); + foreach( $$a11_list as $$a11_list_tmp_key => $$a11_list_tmp_value ) { - if ( $a6_list_extract ) + if ( $a11_list_extract ) { - if ( !is_array($$a6_list_tmp_value) ) + if ( !is_array($$a11_list_tmp_value) ) { - print_r($$a6_list_tmp_value); - die( 'not an array at key: '.$$a6_list_tmp_key ); + print_r($$a11_list_tmp_value); + die( 'not an array at key: '.$$a11_list_tmp_key ); } - extract($$a6_list_tmp_value); + extract($$a11_list_tmp_value); } -?><?php unset($a6_list,$a6_extract,$a6_key,$a6_value) ?><?php $a7_class='help'; ?><?php $column_idx++; ?><td +?><?php unset($a11_list,$a11_extract,$a11_key,$a11_value) ?><?php $a12_class='help';$a12_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a7_class) ?><?php $a8_title=lang('acl_'.$t.'');$a8_class='text';$a8_key=$t;$a8_suffix='_abbrev';$a8_prefix='acl_';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_key = $a8_prefix.$a8_key; - $a8_key = $a8_key.$a8_suffix; +><?php unset($a12_class,$a12_header) ?><?php $a13_title=lang('acl_'.$t.'');$a13_class='text';$a13_key=$t;$a13_suffix='_abbrev';$a13_prefix='acl_';$a13_escape=true;$a13_cut='both'; ?><?php + $a13_key = $a13_prefix.$a13_key; + $a13_key = $a13_key.$a13_suffix; $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_key); +?><<?php echo $tmp_tag ?> class="<?php echo $a13_class ?>" title="<?php echo $a13_title ?>"><?php + $langF = $a13_escape?'langHtml':'lang'; + $tmp_text = $langF($a13_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_title,$a8_class,$a8_key,$a8_suffix,$a8_prefix,$a8_escape,$a8_cut) ?></td><?php } ?></tr><?php } ?><?php $a4_list='rights';$a4_extract=true;$a4_key='aclid';$a4_value='acl'; ?><?php - $a4_list_tmp_key = $a4_key; - $a4_list_tmp_value = $a4_value; - $a4_list_extract = $a4_extract; - unset($a4_key); - unset($a4_value); - if ( !isset($$a4_list) || !is_array($$a4_list) ) - $$a4_list = array(); - foreach( $$a4_list as $$a4_list_tmp_key => $$a4_list_tmp_value ) +?></<?php echo $tmp_tag ?>><?php unset($a13_title,$a13_class,$a13_key,$a13_suffix,$a13_prefix,$a13_escape,$a13_cut) ?></td><?php } ?></tr><?php $a10_list='rights';$a10_extract=true;$a10_key='aclid';$a10_value='acl'; ?><?php + $a10_list_tmp_key = $a10_key; + $a10_list_tmp_value = $a10_value; + $a10_list_extract = $a10_extract; + unset($a10_key); + unset($a10_value); + if ( !isset($$a10_list) || !is_array($$a10_list) ) + $$a10_list = array(); + foreach( $$a10_list as $$a10_list_tmp_key => $$a10_list_tmp_value ) { - if ( $a4_list_extract ) + if ( $a10_list_extract ) { - if ( !is_array($$a4_list_tmp_value) ) + if ( !is_array($$a10_list_tmp_value) ) { - print_r($$a4_list_tmp_value); - die( 'not an array at key: '.$$a4_list_tmp_key ); + print_r($$a10_list_tmp_value); + die( 'not an array at key: '.$$a10_list_tmp_key ); } - extract($$a4_list_tmp_value); + extract($$a10_list_tmp_value); } -?><?php unset($a4_list,$a4_extract,$a4_key,$a4_value) ?><?php $a5_class='data'; ?><?php - $row_idx++; +?><?php unset($a10_list,$a10_extract,$a10_key,$a10_value) ?><?php $a11_class='data'; ?><?php $column_idx = 0; ?> <tr class="data" > -<?php unset($a5_class) ?><?php $column_idx++; ?><td +<?php unset($a11_class) ?><?php $a12_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='groupname'; ?><?php - $a7_tmp_exec = isset($$a7_present); - $a7_tmp_last_exec = $a7_tmp_exec; - if ( $a7_tmp_exec ) +><?php unset($a12_header) ?><?php $a13_present='groupname'; ?><?php + $a13_tmp_exec = isset($$a13_present); + $a13_tmp_last_exec = $a13_tmp_exec; + if ( $a13_tmp_exec ) { ?> -<?php unset($a7_present) ?><?php $a8_align='left';$a8_type='group'; ?><?php - $a8_tmp_image_file = $image_dir.'icon_'.$a8_type.IMG_ICON_EXT; - $a8_size = '16x16'; - $a8_tmp_title = basename($a8_tmp_image_file); -?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?>><?php unset($a8_align,$a8_type) ?><?php $a8_class='text';$a8_var='groupname';$a8_maxlength='20';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +<?php unset($a13_present) ?><?php $a14_align='left';$a14_type='group'; ?><?php + $a14_tmp_image_file = $image_dir.'icon_'.$a14_type.IMG_ICON_EXT; + $a14_size = '16x16'; + $a14_tmp_title = basename($a14_tmp_image_file); +?><img alt="<?php echo $a14_tmp_title; if (isset($a14_size)) { echo ' ('; list($a14_tmp_width,$a14_tmp_height)=explode('x',$a14_size);echo $a14_tmp_width.'x'.$a14_tmp_height; echo')';} ?>" src="<?php echo $a14_tmp_image_file ?>" border="0"<?php if(isset($a14_align)) echo ' align="'.$a14_align.'"' ?><?php if (isset($a14_size)) { list($a14_tmp_width,$a14_tmp_height)=explode('x',$a14_size);echo ' width="'.$a14_tmp_width.'" height="'.$a14_tmp_height.'"';} ?> /><?php unset($a14_align,$a14_type) ?><?php $a14_class='text';$a14_var='groupname';$a14_maxlength='20';$a14_escape=true;$a14_cut='both'; ?><?php + $a14_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 = Text::maxLength( $tmp_text,intval($a8_maxlength),'..',constant('STR_PAD_'.strtoupper($a8_cut)) ); +?><<?php echo $tmp_tag ?> class="<?php echo $a14_class ?>" title="<?php echo $a14_title ?>"><?php + $langF = $a14_escape?'langHtml':'lang'; + $tmp_text = isset($$a14_var)?$$a14_var:$langF('UNKNOWN'); + $tmp_text = Text::maxLength( $tmp_text,intval($a14_maxlength),'..',constant('STR_PAD_'.strtoupper($a14_cut)) ); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_var,$a8_maxlength,$a8_escape,$a8_cut) ?><?php } ?><?php $a7_not=true;$a7_present='username'; ?><?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 echo $tmp_tag ?>><?php unset($a14_class,$a14_var,$a14_maxlength,$a14_escape,$a14_cut) ?><?php } ?><?php $a13_not=true;$a13_present='username'; ?><?php + $a13_tmp_exec = isset($$a13_present); + $a13_tmp_exec = !$a13_tmp_exec; + $a13_tmp_last_exec = $a13_tmp_exec; + if ( $a13_tmp_exec ) { ?> -<?php unset($a7_not,$a7_present) ?><?php $a8_not=true;$a8_present='groupname'; ?><?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($a13_not,$a13_present) ?><?php $a14_not=true;$a14_present='groupname'; ?><?php + $a14_tmp_exec = isset($$a14_present); + $a14_tmp_exec = !$a14_tmp_exec; + $a14_tmp_last_exec = $a14_tmp_exec; + if ( $a14_tmp_exec ) { ?> -<?php unset($a8_not,$a8_present) ?><?php $a9_align='left';$a9_type='group'; ?><?php - $a9_tmp_image_file = $image_dir.'icon_'.$a9_type.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_align,$a9_type) ?><?php $a9_class='text';$a9_key='global_all';$a9_escape=true;$a9_cut='both'; ?><?php - $a9_title = ''; +<?php unset($a14_not,$a14_present) ?><?php $a15_align='left';$a15_type='group'; ?><?php + $a15_tmp_image_file = $image_dir.'icon_'.$a15_type.IMG_ICON_EXT; + $a15_size = '16x16'; + $a15_tmp_title = basename($a15_tmp_image_file); +?><img alt="<?php echo $a15_tmp_title; if (isset($a15_size)) { echo ' ('; list($a15_tmp_width,$a15_tmp_height)=explode('x',$a15_size);echo $a15_tmp_width.'x'.$a15_tmp_height; echo')';} ?>" src="<?php echo $a15_tmp_image_file ?>" border="0"<?php if(isset($a15_align)) echo ' align="'.$a15_align.'"' ?><?php if (isset($a15_size)) { list($a15_tmp_width,$a15_tmp_height)=explode('x',$a15_size);echo ' width="'.$a15_tmp_width.'" height="'.$a15_tmp_height.'"';} ?> /><?php unset($a15_align,$a15_type) ?><?php $a15_class='text';$a15_key='global_all';$a15_escape=true;$a15_cut='both'; ?><?php + $a15_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a9_class ?>" title="<?php echo $a9_title ?>"><?php - $langF = $a9_escape?'langHtml':'lang'; - $tmp_text = $langF($a9_key); +?><<?php echo $tmp_tag ?> class="<?php echo $a15_class ?>" title="<?php echo $a15_title ?>"><?php + $langF = $a15_escape?'langHtml':'lang'; + $tmp_text = $langF($a15_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_key,$a9_escape,$a9_cut) ?><?php } ?><?php } ?><?php $a7_var='username'; ?><?php - if (!isset($a7_value)) - unset($$a7_var); -?><?php unset($a7_var) ?><?php $a7_var='groupname'; ?><?php - if (!isset($a7_value)) - unset($$a7_var); -?><?php unset($a7_var) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a15_class,$a15_key,$a15_escape,$a15_cut) ?><?php } ?><?php } ?><?php $a13_var='username'; ?><?php + if (!isset($a13_value)) + unset($$a13_var); +?><?php unset($a13_var) ?><?php $a13_var='groupname'; ?><?php + if (!isset($a13_value)) + unset($$a13_var); +?><?php unset($a13_var) ?></td><?php $a12_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_align='left';$a7_type=$objecttype; ?><?php - $a7_tmp_image_file = $image_dir.'icon_'.$a7_type.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_align,$a7_type) ?><?php $a7_title='';$a7_target='_top';$a7_class='';$a7_action='index';$a7_subaction='object';$a7_id=$objectid; ?><?php +><?php unset($a12_header) ?><?php $a13_align='left';$a13_type=$objecttype; ?><?php + $a13_tmp_image_file = $image_dir.'icon_'.$a13_type.IMG_ICON_EXT; + $a13_size = '16x16'; + $a13_tmp_title = basename($a13_tmp_image_file); +?><img alt="<?php echo $a13_tmp_title; if (isset($a13_size)) { echo ' ('; list($a13_tmp_width,$a13_tmp_height)=explode('x',$a13_size);echo $a13_tmp_width.'x'.$a13_tmp_height; echo')';} ?>" src="<?php echo $a13_tmp_image_file ?>" border="0"<?php if(isset($a13_align)) echo ' align="'.$a13_align.'"' ?><?php if (isset($a13_size)) { list($a13_tmp_width,$a13_tmp_height)=explode('x',$a13_size);echo ' width="'.$a13_tmp_width.'" height="'.$a13_tmp_height.'"';} ?> /><?php unset($a13_align,$a13_type) ?><?php $a13_title='';$a13_type='';$a13_class='';$a13_action=$objecttype;$a13_subaction='';$a13_id=$objectid;$a13_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = Html::url($a7_action,$a7_subaction,!empty($a7_id)?$a7_id:$this->getRequestId(),$params); -?><a<?php if (isset($a7_name)) echo ' name="'.$a7_name.'"'; else echo ' href="'.$tmp_url.(isset($a7_anchor)?'#'.$a7_anchor:'').'"' ?> class="<?php echo $a7_class ?>" target="<?php echo $a7_target ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_target,$a7_class,$a7_action,$a7_subaction,$a7_id) ?><?php $a8_title=lang('select');$a8_class='text';$a8_var='objectname';$a8_maxlength='20';$a8_escape=true;$a8_cut='both'; ?><?php + $a13_target = $view; + switch( $a13_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a13_action)?$a13_action:$this->actionName,'subaction'=>!empty($a13_subaction)?$a13_subaction:$this->subActionName,'id'=>!empty($a13_id)?$a13_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($a13_subaction)?$a13_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a13_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a13_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a13_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a13_frame ?>"<?php if (isset($a13_name)) { ?> name="<?php echo $a13_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a13_class ?>"<?php if (isset($a13_accesskey)) echo ' accesskey="'.$a13_accesskey.'"' ?> title="<?php echo encodeHtml($a13_title) ?>"><?php unset($a13_title,$a13_type,$a13_class,$a13_action,$a13_subaction,$a13_id,$a13_frame) ?><?php $a14_title=lang('select');$a14_class='text';$a14_var='objectname';$a14_maxlength='20';$a14_escape=true;$a14_cut='both'; ?><?php $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 = Text::maxLength( $tmp_text,intval($a8_maxlength),'..',constant('STR_PAD_'.strtoupper($a8_cut)) ); +?><<?php echo $tmp_tag ?> class="<?php echo $a14_class ?>" title="<?php echo $a14_title ?>"><?php + $langF = $a14_escape?'langHtml':'lang'; + $tmp_text = isset($$a14_var)?$$a14_var:$langF('UNKNOWN'); + $tmp_text = Text::maxLength( $tmp_text,intval($a14_maxlength),'..',constant('STR_PAD_'.strtoupper($a14_cut)) ); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_title,$a8_class,$a8_var,$a8_maxlength,$a8_escape,$a8_cut) ?></a></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a14_title,$a14_class,$a14_var,$a14_maxlength,$a14_escape,$a14_cut) ?></a></td><?php $a12_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_var='languagename';$a7_maxlength='20';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a12_header) ?><?php $a13_class='text';$a13_var='languagename';$a13_maxlength='20';$a13_escape=true;$a13_cut='both'; ?><?php + $a13_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 = Text::maxLength( $tmp_text,intval($a7_maxlength),'..',constant('STR_PAD_'.strtoupper($a7_cut)) ); +?><<?php echo $tmp_tag ?> class="<?php echo $a13_class ?>" title="<?php echo $a13_title ?>"><?php + $langF = $a13_escape?'langHtml':'lang'; + $tmp_text = isset($$a13_var)?$$a13_var:$langF('UNKNOWN'); + $tmp_text = Text::maxLength( $tmp_text,intval($a13_maxlength),'..',constant('STR_PAD_'.strtoupper($a13_cut)) ); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_maxlength,$a7_escape,$a7_cut) ?></td><?php $a6_list='show';$a6_extract=false;$a6_key='list_key';$a6_value='list_value'; ?><?php - $a6_list_tmp_key = $a6_key; - $a6_list_tmp_value = $a6_value; - $a6_list_extract = $a6_extract; - unset($a6_key); - unset($a6_value); - if ( !isset($$a6_list) || !is_array($$a6_list) ) - $$a6_list = array(); - foreach( $$a6_list as $$a6_list_tmp_key => $$a6_list_tmp_value ) +?></<?php echo $tmp_tag ?>><?php unset($a13_class,$a13_var,$a13_maxlength,$a13_escape,$a13_cut) ?></td><?php $a12_list='show';$a12_extract=false;$a12_key='list_key';$a12_value='list_value'; ?><?php + $a12_list_tmp_key = $a12_key; + $a12_list_tmp_value = $a12_value; + $a12_list_extract = $a12_extract; + unset($a12_key); + unset($a12_value); + if ( !isset($$a12_list) || !is_array($$a12_list) ) + $$a12_list = array(); + foreach( $$a12_list as $$a12_list_tmp_key => $$a12_list_tmp_value ) { - if ( $a6_list_extract ) + if ( $a12_list_extract ) { - if ( !is_array($$a6_list_tmp_value) ) + if ( !is_array($$a12_list_tmp_value) ) { - print_r($$a6_list_tmp_value); - die( 'not an array at key: '.$$a6_list_tmp_key ); + print_r($$a12_list_tmp_value); + die( 'not an array at key: '.$$a12_list_tmp_key ); } - extract($$a6_list_tmp_value); + extract($$a12_list_tmp_value); } -?><?php unset($a6_list,$a6_extract,$a6_key,$a6_value) ?><?php $column_idx++; ?><td +?><?php unset($a12_list,$a12_extract,$a12_key,$a12_value) ?><?php $a13_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 $a8_var=$list_value;$a8_value=$bits;$a8_key=$list_value; ?><?php - if (isset($a8_key)) - $$a8_var = $a8_value[$a8_key]; +><?php unset($a13_header) ?><?php $a14_var=$list_value;$a14_value=$bits;$a14_key=$list_value; ?><?php + if (isset($a14_key)) + $$a14_var = $a14_value[$a14_key]; else - $$a8_var = $a8_value; -?><?php unset($a8_var,$a8_value,$a8_key) ?><?php $a8_default=false;$a8_readonly=true;$a8_name=$list_value; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; - if ( isset($$a8_name) ) - $checked = $$a8_name; + $$a14_var = $a14_value; +?><?php unset($a14_var,$a14_value,$a14_key) ?><?php $a14_default=false;$a14_readonly=true;$a14_name=$list_value; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a14_readonly=true; + if ( isset($$a14_name) ) + $checked = $$a14_name; else - $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 ) + $checked = $a14_default; +?><input class="checkbox" type="checkbox" id="id_<?php echo $a14_name ?>" name="<?php echo $a14_name ?>" <?php if ($a14_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?><?php if (in_array($a14_name,$errors)) echo ' style="background-color:red;"' ?> /><?php +if ( $a14_readonly && $checked ) { -?><input type="hidden" name="<?php echo $a8_name ?>" value="1" /><?php +?><input type="hidden" name="<?php echo $a14_name ?>" value="1" /><?php } -?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?></td><?php } ?></tr><?php } ?><?php } ?> </table> - </td> - </tr> -</table> -</center> +?><?php unset($a14_name); unset($a14_readonly); unset($a14_default); ?><?php unset($a14_default,$a14_readonly,$a14_name) ?></td><?php } ?></tr><?php } ?><?php + $column_idx = $last_column_idx; +?> +</table><?php } ?></fieldset></td></tr><?php } ?><?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/> @@ -487,5 +465,4 @@ if ( $a8_readonly && $checked ) <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -</body> -</html>- \ No newline at end of file +<?php } ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/group/users.tpl.php b/themes/default/pages/html/group/users.tpl.php @@ -1,125 +1,74 @@ -<?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 $a1_name='';$a1_target='_self';$a1_method='post';$a1_enctype='application/x-www-form-urlencoded'; ?><?php + $a1_action = $actionName; + $a1_subaction = $targetSubActionName; + $a1_id = $this->getRequestId(); if ($this->isEditable()) { if ($this->isEditMode()) { - $a2_method = 'POST'; + $a1_method = 'POST'; } else { - $a2_method = 'GET'; - $a2_subaction = $subActionName; + $a1_method = 'GET'; + $a1_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;"> +?><form name="<?php echo $a1_name ?>" + target="<?php echo $a1_target ?>" + action="<?php echo Html::url( $a1_action,$a1_subaction,$a1_id ) ?>" + method="<?php echo $a1_method ?>" + enctype="<?php echo $a1_enctype ?>" style="margin:0px;padding:0px;" + class="<?php echo $a1_action ?>" + onSubmit="formSubmit( $(this) ); return false;"> <?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 $a1_action ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $a1_subaction ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a1_id ?>" /><?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='GROUP_MEMBERSHIPS';$a3_icon='user';$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($a1_name,$a1_target,$a1_method,$a1_enctype) ?><?php $a2_name='GROUP_MEMBERSHIPS';$a2_icon='user';$a2_width='93%';$a2_rowclasses='odd,even';$a2_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,52 +76,80 @@ $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 } ?> +<div class="content"><div class="filler"> +<?php } ?><?php unset($a2_name,$a2_icon,$a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php $a3_width='100%';$a3_space='0px';$a3_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($a3_width,$a3_space,$a3_padding) ?><?php $a4_class='headline'; ?><?php + $column_idx = 0; +?> +<tr + class="headline" +> +<?php unset($a4_class) ?><?php $a5_width='10%';$a5_header=false; ?><?php $column_idx++; ?><td + width="10%" +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> +><?php unset($a5_width,$a5_header) ?></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 } ?> - <tr> - <td class="window"> - <table cellspacing="0" width="100%" cellpadding="4"> -<?php unset($a3_name,$a3_icon,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $a4_list='memberships';$a4_extract=true;$a4_key='list_key';$a4_value='list_value'; ?><?php +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> +><?php unset($a5_header) ?><?php $a6_class='text';$a6_key='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) ?></td></tr><?php $a4_list='memberships';$a4_extract=true;$a4_key='list_key';$a4_value='list_value'; ?><?php $a4_list_tmp_key = $a4_key; $a4_list_tmp_value = $a4_value; $a4_list_extract = $a4_extract; @@ -192,20 +169,19 @@ extract($$a4_list_tmp_value); } ?><?php unset($a4_list,$a4_extract,$a4_key,$a4_value) ?><?php $a5_class='data'; ?><?php - $row_idx++; $column_idx = 0; ?> <tr class="data" > -<?php unset($a5_class) ?><?php $column_idx++; ?><td +<?php unset($a5_class) ?><?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 $a7_default=false;$a7_readonly=false;$a7_name=$var; ?><?php +><?php unset($a6_header) ?><?php $a7_default=false;$a7_readonly=false;$a7_name=$var; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; if ( isset($$a7_name) ) $checked = $$a7_name; @@ -216,14 +192,14 @@ 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) ?></td><?php $column_idx++; ?><td +?><?php unset($a7_name); unset($a7_readonly); unset($a7_default); ?><?php unset($a7_default,$a7_readonly,$a7_name) ?></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 $a7_for=$var; ?><label for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>"><?php unset($a7_for) ?><?php $a8_file='icon_user';$a8_align='left'; ?><?php +><?php unset($a6_header) ?><?php $a7_for=$var; ?><label for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>"><?php unset($a7_for) ?><?php $a8_file='icon_user';$a8_align='left'; ?><?php $a8_tmp_image_file = $image_dir.$a8_file.IMG_ICON_EXT; $a8_tmp_title = basename($a8_tmp_image_file); ?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?>><?php unset($a8_file,$a8_align) ?><?php $a8_class='text';$a8_var='name';$a8_escape=true;$a8_cut='both'; ?><?php @@ -236,32 +212,51 @@ if ( $a7_readonly && $checked ) echo $tmp_text; unset($tmp_text); ?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_var,$a8_escape,$a8_cut) ?></label></td></tr><?php } ?><?php - $row_idx++; + $column_idx = $last_column_idx; +?> +</table><?php $column_idx = 0; ?> <tr > -<?php $a5_class='act';$a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a4_class='act';$a4_colspan='2';$a4_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($a4_class,$a4_colspan,$a4_header) ?><?php $a5_type='ok';$a5_class='ok';$a5_value='ok';$a5_text='button_ok'; ?><div class="invisible"> +<?php + if ($this->isEditable() && !$this->isEditMode() && !readonly() ) + { + $a5_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 + { + $a5_type = 'submit'; + } + $a5_tmp_src = ''; + if ( !empty($a5_type)) { +?> +<input type="<?php echo $a5_type ?>"<?php if(isset($a5_src)) { ?> src="<?php $a5_tmp_src ?>"<?php } ?> name="<?php echo $a5_value ?>" class="ok" title="<?php echo lang($a5_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a5_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a5_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($a5_type,$a5_class,$a5_value,$a5_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/> @@ -269,6 +264,4 @@ if ( $a7_readonly && $checked ) <?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/grouplist/add.tpl.php b/themes/default/pages/html/grouplist/add.tpl.php @@ -0,0 +1,64 @@ +<?php $a2_name='';$a2_back=true; ?><div class="header"> + <?php if ($a2_back) { ?> + <a href="javascript:void(0);" onclick="javascript:refreshActualView(this);"> + <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="dropdown"> + <?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 ?>');"><?php echo lang('MENU_'.$a2_tmp_view) ?></a> + <?php } ?> + </div> +<?php } ?> +</div><?php unset($a2_name,$a2_back) ?><?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()) + { + $a3_method = 'POST'; + } + else + { + $a3_method = 'GET'; + $a3_subaction = $subActionName; + } + } + 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 $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($a3_name,$a3_target,$a3_method,$a3_enctype,$a3_type) ?><?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';$a6_key='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,$a6_key) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='focus';$a6_default='';$a6_type='text';$a6_name='name';$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 ?>" 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 { ?><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></form> diff --git a/themes/default/pages/html/grouplist/show.tpl.php b/themes/default/pages/html/grouplist/show.tpl.php @@ -0,0 +1,141 @@ +<?php $a2_name='';$a2_views='add';$a2_back=false; ?><div class="header"> + <?php if ($a2_back) { ?> + <a href="javascript:void(0);" onclick="javascript:refreshActualView(this);"> + <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="dropdown"> + <?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 ?>');"><?php echo lang('MENU_'.$a2_tmp_view) ?></a> + <?php } ?> + </div> +<?php } ?> +</div><?php unset($a2_name,$a2_views,$a2_back) ?><?php $a2_width='100%';$a2_space='0px';$a2_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($a2_width,$a2_space,$a2_padding) ?><?php $a3_class='headline'; ?><?php + $column_idx = 0; +?> +<tr + class="headline" +> +<?php unset($a3_class) ?><?php $a4_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($a4_header) ?><?php $a5_class='text';$a5_key='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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></td></tr><?php $a3_list='el';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php + $a3_list_tmp_key = $a3_key; + $a3_list_tmp_value = $a3_value; + $a3_list_extract = $a3_extract; + unset($a3_key); + unset($a3_value); + if ( !isset($$a3_list) || !is_array($$a3_list) ) + $$a3_list = array(); + foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) + { + if ( $a3_list_extract ) + { + if ( !is_array($$a3_list_tmp_value) ) + { + print_r($$a3_list_tmp_value); + die( 'not an array at key: '.$$a3_list_tmp_key ); + } + extract($$a3_list_tmp_value); + } +?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php $a4_class='data'; ?><?php + $column_idx = 0; +?> +<tr + class="data" +> +<?php unset($a4_class) ?><?php $a5_header=false;$a5_url=$url; ?><?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 } ?> + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a5_url ?>'); " +><?php unset($a5_header,$a5_url) ?><?php $a6_file='icon_group';$a6_align='left'; ?><?php + $a6_tmp_image_file = $image_dir.$a6_file.IMG_ICON_EXT; + $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_file,$a6_align) ?><?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 + $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 } ?><?php + $column_idx = 0; +?> +<tr +> +<?php $a4_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($a4_header) ?><?php $a5_title='';$a5_type='';$a5_class='action';$a5_action='group';$a5_subaction='add';$a5_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $a5_target = $view; + switch( $a5_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a5_action)?$a5_action:$this->actionName,'subaction'=>!empty($a5_subaction)?$a5_subaction:$this->subActionName,'id'=>!empty($a5_id)?$a5_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($a5_subaction)?$a5_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a5_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a5_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a5_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a5_frame ?>"<?php if (isset($a5_name)) { ?> name="<?php echo $a5_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a5_class ?>"<?php if (isset($a5_accesskey)) echo ' accesskey="'.$a5_accesskey.'"' ?> title="<?php echo encodeHtml($a5_title) ?>"><?php unset($a5_title,$a5_type,$a5_class,$a5_action,$a5_subaction,$a5_frame) ?><?php $a6_class='text';$a6_key='menu_group_add';$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) ?></a></td></tr><?php + $column_idx = $last_column_idx; +?> +</table>+ \ No newline at end of file diff --git a/themes/default/pages/html/index/applications.tpl.php b/themes/default/pages/html/index/applications.tpl.php @@ -1,56 +1,6 @@ -<?php $a1_class='main';$a1_title='MENU_INDEX_APPLICATIONS'; ?><?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,$a1_title) ?><?php $a2_icon='project';$a2_width='600';$a2_rowclasses='odd,even';$a2_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); +<?php $a1_class='main';$a1_title='MENU_INDEX_APPLICATIONS'; ?><?php unset($a1_class,$a1_title) ?><?php $a2_icon='project';$a2_width='600';$a2_rowclasses='odd,even';$a2_columnclasses='1,2,3'; ?><div class="breadcrumb"> + <?php $icon=$a2_icon; - $row_classes = explode(',',$a2_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a2_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="'.$a2_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()) { @@ -59,7 +9,7 @@ ?><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;'; + echo '<span class="path">'.langHtml($actionName).'</span>&nbsp;<strong>&rarr;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) $path = array(); foreach( $path as $pathElement) @@ -74,21 +24,22 @@ ?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?php } ?> - </td> - <?php - } - ?> +</div> <?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) ) +<?php + $coloumn_widths=array(); + $row_classes = explode(',',$a2_rowclasses); + $row_class_idx = 999; + $column_classes = explode(',',$a2_columnclasses); + $row_idx = 0; + $column_idx = 0; + if ( !isset($windowMenu) || !is_array($windowMenu) ) $windowMenu = array(); foreach( $windowMenu as $menu ) { @@ -99,20 +50,22 @@ $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 + ?><a class="action<?php echo $this->subActionName==$menu['subaction']?'_active':'' ?>" href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>"><?php echo $tmp_text ?></a><?php } else { - ?><td class="noaction"><?php echo $tmp_text ?></td><?php + ?><div class="noaction"><?php echo $tmp_text ?></div><?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 + ?><a class="help" href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>"><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php } - ?> - </tr></table></td> - </tr> + ?><br/><?php + global $image_dir; + echo '<br/><br/>'; + echo '<table class="x-main" cellspacing="0" cellpadding="4" width="'.$a2_width.'">'; + ?> <?php if (isset($notices) && count($notices)>0 ) { ?> <tr> @@ -140,7 +93,7 @@ </tr> <?php } ?> <tr> - <td class="window"> + <td class="x-window"> <table cellspacing="0" width="100%" cellpadding="4"> <?php unset($a2_icon,$a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php $row_idx++; @@ -156,11 +109,11 @@ class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a4_colspan) ?><?php $a5_title='';$a5_target='_self';$a5_class='';$a5_action='index';$a5_subaction='projectmenu'; ?><?php +><?php unset($a4_colspan) ?><?php $a5_title='';$a5_class='';$a5_action='index';$a5_subaction='projectmenu'; ?><?php $params = array(); $tmp_url = ''; $tmp_url = Html::url($a5_action,$a5_subaction,!empty($a5_id)?$a5_id:$this->getRequestId(),$params); -?><a<?php if (isset($a5_name)) echo ' name="'.$a5_name.'"'; else echo ' href="'.$tmp_url.(isset($a5_anchor)?'#'.$a5_anchor:'').'"' ?> class="<?php echo $a5_class ?>" target="<?php echo $a5_target ?>"<?php if (isset($a5_accesskey)) echo ' accesskey="'.$a5_accesskey.'"' ?> title="<?php echo encodeHtml($a5_title) ?>"><?php unset($a5_title,$a5_target,$a5_class,$a5_action,$a5_subaction) ?><?php $a6_class='text';$a6_raw='OpenRat';$a6_escape=true;$a6_cut='both'; ?><?php +?><a<?php if (isset($a5_name)) echo ' name="'.$a5_name.'"'; else echo ' href="'.$tmp_url.(isset($a5_anchor)?'#'.$a5_anchor:'').'"' ?> class="<?php echo $a5_class ?>"<?php if (isset($a5_accesskey)) echo ' accesskey="'.$a5_accesskey.'"' ?> title="<?php echo encodeHtml($a5_title) ?>"><?php unset($a5_title,$a5_class,$a5_action,$a5_subaction) ?><?php $a6_class='text';$a6_raw='OpenRat';$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 @@ -201,11 +154,11 @@ <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a6_title='';$a6_target='_self';$a6_url=$url;$a6_class=''; ?><?php +><?php $a6_title='';$a6_url=$url;$a6_class=''; ?><?php $params = array(); $tmp_url = ''; $tmp_url = $a6_url; -?><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_url,$a6_class) ?><?php $a7_class='text';$a7_var='name';$a7_escape=true;$a7_cut='both'; ?><?php +?><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 ?>"<?php if (isset($a6_accesskey)) echo ' accesskey="'.$a6_accesskey.'"' ?> title="<?php echo encodeHtml($a6_title) ?>"><?php unset($a6_title,$a6_url,$a6_class) ?><?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 $a7_class ?>" title="<?php echo $a7_title ?>"><?php @@ -234,7 +187,6 @@ </td> </tr> </table> -</center> <?php if ($showDuration) { ?> <br/> @@ -242,5 +194,3 @@ <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -</body> -</html>- \ No newline at end of file diff --git a/themes/default/pages/html/index/changepassword.tpl.php b/themes/default/pages/html/index/changepassword.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='_top';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php +<?php $a1_class='main'; ?><?php unset($a1_class) ?><?php $a2_name='';$a2_target='_top';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php $a2_action = $actionName; $a2_subaction = $targetSubActionName; $a2_id = $this->getRequestId(); @@ -60,27 +28,9 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a2_id ?>" /><?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='GLOBAL_CHOOSE';$a3_name='login';$a3_icon='user';$a3_width='400';$a3_rowclasses='fx1,fx2';$a3_columnclasses='x,y'; ?><?php - $coloumn_widths=array(); +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype) ?><?php $a3_title='GLOBAL_CHOOSE';$a3_name='login';$a3_icon='user';$a3_width='400';$a3_rowclasses='fx1,fx2';$a3_columnclasses='x,y'; ?><div class="breadcrumb"> + <?php $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 if ($this->isEditMode()) { @@ -89,7 +39,7 @@ ?><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;'; + echo '<span class="path">'.langHtml($actionName).'</span>&nbsp;<strong>&rarr;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) $path = array(); foreach( $path as $pathElement) @@ -104,21 +54,22 @@ ?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?php } ?> - </td> - <?php - } - ?> +</div> <?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) ) +<?php + $coloumn_widths=array(); + $row_classes = explode(',',$a3_rowclasses); + $row_class_idx = 999; + $column_classes = explode(',',$a3_columnclasses); + $row_idx = 0; + $column_idx = 0; + if ( !isset($windowMenu) || !is_array($windowMenu) ) $windowMenu = array(); foreach( $windowMenu as $menu ) { @@ -129,20 +80,22 @@ $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 + ?><a class="action<?php echo $this->subActionName==$menu['subaction']?'_active':'' ?>" href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>"><?php echo $tmp_text ?></a><?php } else { - ?><td class="noaction"><?php echo $tmp_text ?></td><?php + ?><div class="noaction"><?php echo $tmp_text ?></div><?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 + ?><a class="help" href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>"><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php } - ?> - </tr></table></td> - </tr> + ?><br/><?php + global $image_dir; + echo '<br/><br/>'; + echo '<table class="x-main" cellspacing="0" cellpadding="4" width="'.$a3_width.'">'; + ?> <?php if (isset($notices) && count($notices)>0 ) { ?> <tr> @@ -170,7 +123,7 @@ </tr> <?php } ?> <tr> - <td class="window"> + <td class="x-window"> <table cellspacing="0" width="100%" cellpadding="4"> <?php unset($a3_title,$a3_name,$a3_icon,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $row_idx++; @@ -285,7 +238,6 @@ </td> </tr> </table> -</center> <?php if ($showDuration) { ?> <br/> @@ -300,5 +252,4 @@ if (isset($errors[0])) $a2_field = $errors[0]; 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($a2_field) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/index/login.tpl.php b/themes/default/pages/html/index/login.tpl.php @@ -29,6 +29,7 @@ ?><?php unset($a2_action,$a2_subaction,$a2_name,$a2_target,$a2_method,$a2_enctype) ?><?php $a3_title='GLOBAL_LOGIN';$a3_name='login';$a3_icon='user';$a3_width='400px';$a3_rowclasses='odd,even';$a3_columnclasses='1,2,3'; ?><div class="breadcrumb"> <?php $icon=$a3_icon; + $icon=$actionName; echo '<img src="'.$image_dir.'icon_'.$icon.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->isEditMode()) { @@ -38,13 +39,13 @@ ?><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>&rarr;</strong>&nbsp;'; - if ( !isset($path) || is_array($path) ) + 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 '<a href="'.$url.'" title="'.$title.'" class="path">'.(!empty($key)?langHtml($key):$name).'</a>'; + echo '&nbsp;&rarr;&nbsp;'; } echo '<span class="title">'.langHtml($windowTitle).'</span>'; if ( isset($notice_status)) @@ -59,6 +60,7 @@ ?><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>--><nix/> </tr> <?php $coloumn_widths=array(); @@ -78,16 +80,16 @@ $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); if ( isset($menu['url']) ) { - ?><a class="action<?php echo $this->subActionName==$menu['subaction']?'_active':'' ?>" href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>"><?php echo $tmp_text ?></a><?php + ?><a class="action<?php echo $this->subActionName==$menu['subaction']?'_active':'' ?>" href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>"><!-- <img src="<?php echo $image_dir.'icon_'.$menu['subaction'].'.png' ?>" align="left" />--><?php echo $tmp_text ?></a><?php } else { - ?><div class="noaction"><?php echo $tmp_text ?></div><?php + ?><div class="noaction"><!-- <img src="<?php echo $image_dir.'icon_'.$menu['subaction'].'.png' ?>" align="left" />--><?php echo $tmp_text ?></div><?php } } if (@$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') ?>"><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?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' ?>" align="left" />--><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php } ?><br/><?php global $image_dir; @@ -501,7 +503,53 @@ unset($a6_tmp_last_exec) ?></td></tr><?php <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a8_name='password2';$a8_default='';$a8_class='';$a8_size='25';$a8_maxlength='256'; ?><input type="password" name="<?php echo $a8_name ?>" size="<?php echo $a8_size ?>" maxlength="<?php echo $a8_maxlength ?>" class="<?php echo $a8_class ?>" value="<?php if (count($errors)==0) echo isset($$a8_name)?$$a8_name:$a8_default ?>" <?php if (in_array($a8_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php unset($a8_name,$a8_default,$a8_class,$a8_size,$a8_maxlength) ?></td></tr><?php } ?><?php $a5_true=@$conf['security']['openid']['enable']; ?><?php +><?php $a8_name='password2';$a8_default='';$a8_class='';$a8_size='25';$a8_maxlength='256'; ?><input type="password" name="<?php echo $a8_name ?>" size="<?php echo $a8_size ?>" maxlength="<?php echo $a8_maxlength ?>" class="<?php echo $a8_class ?>" value="<?php if (count($errors)==0) echo isset($$a8_name)?$$a8_name:$a8_default ?>" <?php if (in_array($a8_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php unset($a8_name,$a8_default,$a8_class,$a8_size,$a8_maxlength) ?></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 } ?> +></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_title='';$a7_class='action';$a7_action='index';$a7_subaction='password'; ?><?php + $params = array(); + $tmp_url = ''; + $tmp_url = Html::url($a7_action,$a7_subaction,!empty($a7_id)?$a7_id:$this->getRequestId(),$params); +?><a<?php if (isset($a7_name)) echo ' name="'.$a7_name.'"'; else echo ' href="'.$tmp_url.(isset($a7_anchor)?'#'.$a7_anchor:'').'"' ?> class="<?php echo $a7_class ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_class,$a7_action,$a7_subaction) ?><?php $a8_class='text';$a8_key='menu_index_password';$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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></a><?php $a7_title='';$a7_class='action';$a7_action='index';$a7_subaction='register'; ?><?php + $params = array(); + $tmp_url = ''; + $tmp_url = Html::url($a7_action,$a7_subaction,!empty($a7_id)?$a7_id:$this->getRequestId(),$params); +?><a<?php if (isset($a7_name)) echo ' name="'.$a7_name.'"'; else echo ' href="'.$tmp_url.(isset($a7_anchor)?'#'.$a7_anchor:'').'"' ?> class="<?php echo $a7_class ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_class,$a7_action,$a7_subaction) ?><?php $a8_class='text';$a8_key='menu_index_register';$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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></a></td></tr><?php $a5_true=@$conf['security']['openid']['enable']; ?><?php if (gettype($a5_true) === '' && gettype($a5_true) === '1') $a5_tmp_exec = $$a5_true == true; else diff --git a/themes/default/pages/html/index/password.tpl.php b/themes/default/pages/html/index/password.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='_top';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php +<?php $a1_class='main'; ?><?php unset($a1_class) ?><?php $a2_name='';$a2_target='_top';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php $a2_action = $actionName; $a2_subaction = $targetSubActionName; $a2_id = $this->getRequestId(); @@ -60,28 +28,10 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a2_id ?>" /><?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='GLOBAL_password';$a3_name='login';$a3_icon='user';$a3_widths='50%,50%';$a3_width='400';$a3_rowclasses='fx1,fx2';$a3_columnclasses='x,y'; ?><?php - $coloumn_widths=array(); +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype) ?><?php $a3_title='GLOBAL_password';$a3_name='login';$a3_icon='user';$a3_widths='50%,50%';$a3_width='400';$a3_rowclasses='fx1,fx2';$a3_columnclasses='x,y'; ?><div class="breadcrumb"> + <?php $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>'; + $icon=$actionName; echo '<img src="'.$image_dir.'icon_'.$icon.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->isEditMode()) { @@ -90,14 +40,14 @@ ?><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) ) + echo '<span class="path">'.langHtml($actionName).'</span>&nbsp;<strong>&rarr;</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 '<a href="'.$url.'" title="'.$title.'" class="path">'.(!empty($key)?langHtml($key):$name).'</a>'; + echo '&nbsp;&rarr;&nbsp;'; } echo '<span class="title">'.langHtml($windowTitle).'</span>'; if ( isset($notice_status)) @@ -105,21 +55,24 @@ ?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?php } ?> - </td> - <?php - } - ?> +</div> <?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>--> + </td>--><nix/> </tr> - <tr class="menu"><td> - <table class="menu"><tr> - <?php if ( !isset($windowMenu) || !is_array($windowMenu) ) +<?php + $coloumn_widths=array(); + $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; + if ( !isset($windowMenu) || !is_array($windowMenu) ) $windowMenu = array(); foreach( $windowMenu as $menu ) { @@ -130,20 +83,22 @@ $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 + ?><a class="action<?php echo $this->subActionName==$menu['subaction']?'_active':'' ?>" href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>"><!-- <img src="<?php echo $image_dir.'icon_'.$menu['subaction'].'.png' ?>" align="left" />--><?php echo $tmp_text ?></a><?php } else { - ?><td class="noaction"><?php echo $tmp_text ?></td><?php + ?><div class="noaction"><!-- <img src="<?php echo $image_dir.'icon_'.$menu['subaction'].'.png' ?>" align="left" />--><?php echo $tmp_text ?></div><?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 + ?><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' ?>" align="left" />--><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php } - ?> - </tr></table></td> - </tr> + ?><br/><?php + global $image_dir; + echo '<br/><br/>'; + echo '<table class="x-main" cellspacing="0" cellpadding="4" width="'.$a3_width.'">'; + ?> <?php if (isset($notices) && count($notices)>0 ) { ?> <tr> @@ -171,7 +126,7 @@ </tr> <?php } ?> <tr> - <td class="window"> + <td class="x-window"> <table cellspacing="0" width="100%" cellpadding="4"> <?php unset($a3_title,$a3_name,$a3_icon,$a3_widths,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $row_idx++; @@ -218,7 +173,7 @@ ?><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_value,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly) ?></td></tr><?php + } } else { ?><a href="<?php echo Html::url('','',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_value,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly) ?></td></tr><?php $row_idx++; $column_idx = 0; ?> @@ -323,7 +278,6 @@ if (count($$a7_list)==1) echo '<input type="hidden" name="'.$a7_name.'" value="' </td> </tr> </table> -</center> <?php if ($showDuration) { ?> <br/> @@ -338,5 +292,4 @@ if (isset($errors[0])) $a2_field = $errors[0]; 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($a2_field) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/index/passwordinputcode.tpl.php b/themes/default/pages/html/index/passwordinputcode.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='_top';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php +<?php $a1_class='main'; ?><?php unset($a1_class) ?><?php $a2_name='';$a2_target='_top';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php $a2_action = $actionName; $a2_subaction = $targetSubActionName; $a2_id = $this->getRequestId(); @@ -60,28 +28,9 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a2_id ?>" /><?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='password';$a3_icon='user';$a3_widths='50%,50%';$a3_width='400px';$a3_rowclasses='odd,even';$a3_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype) ?><?php $a3_name='password';$a3_icon='user';$a3_widths='50%,50%';$a3_width='400px';$a3_rowclasses='odd,even';$a3_columnclasses='1,2,3'; ?><div class="breadcrumb"> + <?php $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()) { @@ -90,7 +39,7 @@ ?><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;'; + echo '<span class="path">'.langHtml($actionName).'</span>&nbsp;<strong>&rarr;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) $path = array(); foreach( $path as $pathElement) @@ -105,21 +54,23 @@ ?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?php } ?> - </td> - <?php - } - ?> +</div> <?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) ) +<?php + $coloumn_widths=array(); + $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; + if ( !isset($windowMenu) || !is_array($windowMenu) ) $windowMenu = array(); foreach( $windowMenu as $menu ) { @@ -130,20 +81,22 @@ $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 + ?><a class="action<?php echo $this->subActionName==$menu['subaction']?'_active':'' ?>" href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>"><?php echo $tmp_text ?></a><?php } else { - ?><td class="noaction"><?php echo $tmp_text ?></td><?php + ?><div class="noaction"><?php echo $tmp_text ?></div><?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 + ?><a class="help" href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>"><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php } - ?> - </tr></table></td> - </tr> + ?><br/><?php + global $image_dir; + echo '<br/><br/>'; + echo '<table class="x-main" cellspacing="0" cellpadding="4" width="'.$a3_width.'">'; + ?> <?php if (isset($notices) && count($notices)>0 ) { ?> <tr> @@ -171,7 +124,7 @@ </tr> <?php } ?> <tr> - <td class="window"> + <td class="x-window"> <table cellspacing="0" width="100%" cellpadding="4"> <?php unset($a3_name,$a3_icon,$a3_widths,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $row_idx++; @@ -222,7 +175,7 @@ ?><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 + } } else { ?><a href="<?php echo Html::url('','',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 $row_idx++; $column_idx = 0; ?> @@ -248,7 +201,6 @@ if ($a7_readonly) { </td> </tr> </table> -</center> <?php if ($showDuration) { ?> <br/> @@ -263,5 +215,4 @@ if (isset($errors[0])) $a2_field = $errors[0]; 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($a2_field) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/index/projectmenu.tpl.php b/themes/default/pages/html/index/projectmenu.tpl.php @@ -1,56 +1,6 @@ -<?php $a1_class='main';$a1_title='MENU_INDEX_PROJECTMENU'; ?><?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,$a1_title) ?><?php $a2_title='GLOBAL_PROJECTS';$a2_name='login';$a2_icon='project';$a2_width='600';$a2_rowclasses='odd,even';$a2_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); +<?php $a1_class='main';$a1_title='MENU_INDEX_PROJECTMENU'; ?><?php unset($a1_class,$a1_title) ?><?php $a2_title='GLOBAL_PROJECTS';$a2_name='login';$a2_icon='project';$a2_width='600';$a2_rowclasses='odd,even';$a2_columnclasses='1,2,3'; ?><div class="breadcrumb"> + <?php $icon=$a2_icon; - $row_classes = explode(',',$a2_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a2_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="'.$a2_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()) { @@ -59,7 +9,7 @@ ?><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;'; + echo '<span class="path">'.langHtml($actionName).'</span>&nbsp;<strong>&rarr;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) $path = array(); foreach( $path as $pathElement) @@ -74,21 +24,23 @@ ?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?php } ?> - </td> - <?php - } - ?> +</div> <?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>--> + </td>--><nix/> </tr> - <tr class="menu"><td> - <table class="menu"><tr> - <?php if ( !isset($windowMenu) || !is_array($windowMenu) ) +<?php + $coloumn_widths=array(); + $row_classes = explode(',',$a2_rowclasses); + $row_class_idx = 999; + $column_classes = explode(',',$a2_columnclasses); + $row_idx = 0; + $column_idx = 0; + if ( !isset($windowMenu) || !is_array($windowMenu) ) $windowMenu = array(); foreach( $windowMenu as $menu ) { @@ -99,20 +51,22 @@ $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 + ?><a class="action<?php echo $this->subActionName==$menu['subaction']?'_active':'' ?>" href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>"><!-- <img src="<?php echo $image_dir.'icon_'.$menu['subaction'].'.png' ?>" align="left" />--><?php echo $tmp_text ?></a><?php } else { - ?><td class="noaction"><?php echo $tmp_text ?></td><?php + ?><div class="noaction"><!-- <img src="<?php echo $image_dir.'icon_'.$menu['subaction'].'.png' ?>" align="left" />--><?php echo $tmp_text ?></div><?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 + ?><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' ?>" align="left" />--><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php } - ?> - </tr></table></td> - </tr> + ?><br/><?php + global $image_dir; + echo '<br/><br/>'; + echo '<table class="x-main" cellspacing="0" cellpadding="4" width="'.$a2_width.'">'; + ?> <?php if (isset($notices) && count($notices)>0 ) { ?> <tr> @@ -140,7 +94,7 @@ </tr> <?php } ?> <tr> - <td class="window"> + <td class="x-window"> <table cellspacing="0" width="100%" cellpadding="4"> <?php unset($a2_title,$a2_name,$a2_icon,$a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php $row_idx++; @@ -200,11 +154,11 @@ <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php $a6_title=lang('TREE_CHOOSE_PROJECT');$a6_target='_self';$a6_url=$url;$a6_class=''; ?><?php +><?php $a6_title=lang('TREE_CHOOSE_PROJECT');$a6_url=$url;$a6_class=''; ?><?php $params = array(); $tmp_url = ''; $tmp_url = $a6_url; -?><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_url,$a6_class) ?><?php $a7_var='project';$a7_value='project'; ?><?php +?><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 ?>"<?php if (isset($a6_accesskey)) echo ' accesskey="'.$a6_accesskey.'"' ?> title="<?php echo encodeHtml($a6_title) ?>"><?php unset($a6_title,$a6_url,$a6_class) ?><?php $a7_var='project';$a7_value='project'; ?><?php if (isset($a7_key)) $$a7_var = $a7_value[$a7_key]; else @@ -345,7 +299,6 @@ </td> </tr> </table> -</center> <?php if ($showDuration) { ?> <br/> @@ -353,5 +306,3 @@ <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -</body> -</html>- \ No newline at end of file diff --git a/themes/default/pages/html/index/register.tpl.php b/themes/default/pages/html/index/register.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='_top';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php +<?php $a1_class='main'; ?><?php unset($a1_class) ?><?php $a2_name='';$a2_target='_top';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php $a2_action = $actionName; $a2_subaction = $targetSubActionName; $a2_id = $this->getRequestId(); @@ -60,27 +28,10 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a2_id ?>" /><?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='GLOBAL_REGISTER';$a3_name='login';$a3_icon='user';$a3_width='400';$a3_rowclasses='odd,even';$a3_columnclasses='x'; ?><?php - $coloumn_widths=array(); +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype) ?><?php $a3_title='GLOBAL_REGISTER';$a3_name='login';$a3_icon='user';$a3_width='400';$a3_rowclasses='odd,even';$a3_columnclasses='x'; ?><div class="breadcrumb"> + <?php $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>'; + $icon=$actionName; echo '<img src="'.$image_dir.'icon_'.$icon.IMG_ICON_EXT.'" align="left" border="0">'; if ($this->isEditable()) { ?> <?php if ($this->isEditMode()) { @@ -89,14 +40,14 @@ ?><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) ) + echo '<span class="path">'.langHtml($actionName).'</span>&nbsp;<strong>&rarr;</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 '<a href="'.$url.'" title="'.$title.'" class="path">'.(!empty($key)?langHtml($key):$name).'</a>'; + echo '&nbsp;&rarr;&nbsp;'; } echo '<span class="title">'.langHtml($windowTitle).'</span>'; if ( isset($notice_status)) @@ -104,21 +55,23 @@ ?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?php } ?> - </td> - <?php - } - ?> +</div> <?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>--> + </td>--><nix/> </tr> - <tr class="menu"><td> - <table class="menu"><tr> - <?php if ( !isset($windowMenu) || !is_array($windowMenu) ) +<?php + $coloumn_widths=array(); + $row_classes = explode(',',$a3_rowclasses); + $row_class_idx = 999; + $column_classes = explode(',',$a3_columnclasses); + $row_idx = 0; + $column_idx = 0; + if ( !isset($windowMenu) || !is_array($windowMenu) ) $windowMenu = array(); foreach( $windowMenu as $menu ) { @@ -129,20 +82,22 @@ $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 + ?><a class="action<?php echo $this->subActionName==$menu['subaction']?'_active':'' ?>" href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>"><!-- <img src="<?php echo $image_dir.'icon_'.$menu['subaction'].'.png' ?>" align="left" />--><?php echo $tmp_text ?></a><?php } else { - ?><td class="noaction"><?php echo $tmp_text ?></td><?php + ?><div class="noaction"><!-- <img src="<?php echo $image_dir.'icon_'.$menu['subaction'].'.png' ?>" align="left" />--><?php echo $tmp_text ?></div><?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 + ?><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' ?>" align="left" />--><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php } - ?> - </tr></table></td> - </tr> + ?><br/><?php + global $image_dir; + echo '<br/><br/>'; + echo '<table class="x-main" cellspacing="0" cellpadding="4" width="'.$a3_width.'">'; + ?> <?php if (isset($notices) && count($notices)>0 ) { ?> <tr> @@ -170,7 +125,7 @@ </tr> <?php } ?> <tr> - <td class="window"> + <td class="x-window"> <table cellspacing="0" width="100%" cellpadding="4"> <?php unset($a3_title,$a3_name,$a3_icon,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $row_idx++; @@ -217,7 +172,7 @@ ?><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 + } } else { ?><a href="<?php echo Html::url('','',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 $row_idx++; $column_idx = 0; ?> @@ -243,7 +198,6 @@ if ($a7_readonly) { </td> </tr> </table> -</center> <?php if ($showDuration) { ?> <br/> @@ -258,5 +212,4 @@ if (isset($errors[0])) $a2_field = $errors[0]; 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($a2_field) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/index/registeruserdata.tpl.php b/themes/default/pages/html/index/registeruserdata.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='_top';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php +<?php $a1_class='main'; ?><?php unset($a1_class) ?><?php $a2_name='';$a2_target='_top';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php $a2_action = $actionName; $a2_subaction = $targetSubActionName; $a2_id = $this->getRequestId(); @@ -60,27 +28,9 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a2_id ?>" /><?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='GLOBAL_REGISTER';$a3_name='login';$a3_icon='user';$a3_width='400';$a3_rowclasses='fx1,fx2';$a3_columnclasses='x,y'; ?><?php - $coloumn_widths=array(); +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype) ?><?php $a3_title='GLOBAL_REGISTER';$a3_name='login';$a3_icon='user';$a3_width='400';$a3_rowclasses='fx1,fx2';$a3_columnclasses='x,y'; ?><div class="breadcrumb"> + <?php $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 if ($this->isEditMode()) { @@ -89,7 +39,7 @@ ?><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;'; + echo '<span class="path">'.langHtml($actionName).'</span>&nbsp;<strong>&rarr;</strong>&nbsp;'; if ( !isset($path) || is_array($path) ) $path = array(); foreach( $path as $pathElement) @@ -104,21 +54,22 @@ ?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?php } ?> - </td> - <?php - } - ?> +</div> <?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) ) +<?php + $coloumn_widths=array(); + $row_classes = explode(',',$a3_rowclasses); + $row_class_idx = 999; + $column_classes = explode(',',$a3_columnclasses); + $row_idx = 0; + $column_idx = 0; + if ( !isset($windowMenu) || !is_array($windowMenu) ) $windowMenu = array(); foreach( $windowMenu as $menu ) { @@ -129,20 +80,22 @@ $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 + ?><a class="action<?php echo $this->subActionName==$menu['subaction']?'_active':'' ?>" href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>"><?php echo $tmp_text ?></a><?php } else { - ?><td class="noaction"><?php echo $tmp_text ?></td><?php + ?><div class="noaction"><?php echo $tmp_text ?></div><?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 + ?><a class="help" href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>"><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php } - ?> - </tr></table></td> - </tr> + ?><br/><?php + global $image_dir; + echo '<br/><br/>'; + echo '<table class="x-main" cellspacing="0" cellpadding="4" width="'.$a3_width.'">'; + ?> <?php if (isset($notices) && count($notices)>0 ) { ?> <tr> @@ -170,7 +123,7 @@ </tr> <?php } ?> <tr> - <td class="window"> + <td class="x-window"> <table cellspacing="0" width="100%" cellpadding="4"> <?php unset($a3_title,$a3_name,$a3_icon,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $row_idx++; @@ -217,7 +170,7 @@ ?><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 + } } else { ?><a href="<?php echo Html::url('','',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 $row_idx++; $column_idx = 0; ?> @@ -250,7 +203,7 @@ if ($a7_readonly) { ?><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_value,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly) ?></td></tr><?php + } } else { ?><a href="<?php echo Html::url('','',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_value,$a7_size,$a7_maxlength,$a7_onchange,$a7_readonly) ?></td></tr><?php $row_idx++; $column_idx = 0; ?> @@ -380,7 +333,6 @@ if (count($$a7_list)==1) echo '<input type="hidden" name="'.$a7_name.'" value="' </td> </tr> </table> -</center> <?php if ($showDuration) { ?> <br/> @@ -395,5 +347,4 @@ if (isset($errors[0])) $a2_field = $errors[0]; 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($a2_field) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/language/add.tpl.php b/themes/default/pages/html/language/add.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,190 +14,68 @@ $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_PROJECTS';$a3_icon='project';$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 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_icon,$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='LANGUAGE_ISOCODE';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?><?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='LANGUAGE_ISOCODE';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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 $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($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='isocodes';$a6_name='isocode';$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; +?></<?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_list='isocodes';$a5_name='isocode';$a5_onchange='';$a5_title='';$a5_class='';$a5_addempty=false;$a5_multiple=false;$a5_size='1';$a5_lang=false; ?><?php +$a5_readonly=false; +$a5_tmp_list = $$a5_list; if ($this->isEditable() && !$this->isEditMode()) { - echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; + echo empty($$a5_name)?'- '.lang('EMPTY').' -':$a5_tmp_list[$$a5_name]; } else { -if ( $a6_addempty!==FALSE ) +if ( $a5_addempty!==FALSE ) { - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; + if ($a5_addempty===TRUE) + $a5_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a5_tmp_list; else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_tmp_list; + $a5_tmp_list = array(''=>'- '.lang($a5_addempty).' -')+$a5_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 ($a5_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a5_name ?>" name="<?php echo $a5_name; if ($a5_multiple) echo '[]'; ?>" onchange="<?php echo $a5_onchange ?>" title="<?php echo $a5_title ?>" class="<?php echo $a5_class ?>"<?php +if (count($$a5_list)<=1) echo ' disabled="disabled"'; +if ($a5_multiple) echo ' multiple="multiple"'; +if (in_array($a5_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($a5_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($$a5_name) && isset($a5_tmp_list[$$a5_name]) ) + $a5_tmp_default = $$a5_name; + elseif ( isset($a5_default) ) + $a5_tmp_default = $a5_default; else - $a6_tmp_default = ''; - foreach( $a6_tmp_list as $box_key=>$box_value ) + $a5_tmp_default = ''; + foreach( $a5_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -237,7 +83,7 @@ echo ' size="'.intval($a6_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a6_lang ) + elseif( $a5_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -246,49 +92,13 @@ 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="'.$a5_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a5_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($$a5_list)==0) echo '<input type="hidden" name="'.$a5_name.'" value="" />'; +if (count($$a5_list)==1) echo '<input type="hidden" name="'.$a5_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> -</body> -</html>- \ No newline at end of file +?><?php unset($a5_list,$a5_name,$a5_onchange,$a5_title,$a5_class,$a5_addempty,$a5_multiple,$a5_size,$a5_lang) ?></div></div></form> diff --git a/themes/default/pages/html/language/advanced.tpl.php b/themes/default/pages/html/language/advanced.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,246 +30,62 @@ $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_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 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_icon,$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) ?><?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_NAME';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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 $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($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_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++; - $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='LANGUAGE_ISOCODE';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?></<?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='LANGUAGE_ISOCODE';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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 $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($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_default='';$a6_type='text';$a6_name='isocode';$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++; - $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($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='text';$a5_default='';$a5_type='text';$a5_name='isocode';$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></form> diff --git a/themes/default/pages/html/language/edit.tpl.php b/themes/default/pages/html/language/edit.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_views='add,advanced,remove';$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 } ?> - <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_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(); @@ -46,190 +30,68 @@ $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 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_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_LANGUAGE';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?><?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='GLOBAL_LANGUAGE';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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 $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($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='isocodes';$a6_name='isocode';$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; +?></<?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_list='isocodes';$a5_name='isocode';$a5_onchange='';$a5_title='';$a5_class='';$a5_addempty=false;$a5_multiple=false;$a5_size='1';$a5_lang=false; ?><?php +$a5_readonly=false; +$a5_tmp_list = $$a5_list; if ($this->isEditable() && !$this->isEditMode()) { - echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; + echo empty($$a5_name)?'- '.lang('EMPTY').' -':$a5_tmp_list[$$a5_name]; } else { -if ( $a6_addempty!==FALSE ) +if ( $a5_addempty!==FALSE ) { - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; + if ($a5_addempty===TRUE) + $a5_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a5_tmp_list; else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_tmp_list; + $a5_tmp_list = array(''=>'- '.lang($a5_addempty).' -')+$a5_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 ($a5_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a5_name ?>" name="<?php echo $a5_name; if ($a5_multiple) echo '[]'; ?>" onchange="<?php echo $a5_onchange ?>" title="<?php echo $a5_title ?>" class="<?php echo $a5_class ?>"<?php +if (count($$a5_list)<=1) echo ' disabled="disabled"'; +if ($a5_multiple) echo ' multiple="multiple"'; +if (in_array($a5_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($a5_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($$a5_name) && isset($a5_tmp_list[$$a5_name]) ) + $a5_tmp_default = $$a5_name; + elseif ( isset($a5_default) ) + $a5_tmp_default = $a5_default; else - $a6_tmp_default = ''; - foreach( $a6_tmp_list as $box_key=>$box_value ) + $a5_tmp_default = ''; + foreach( $a5_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -237,7 +99,7 @@ echo ' size="'.intval($a6_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a6_lang ) + elseif( $a5_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -246,55 +108,13 @@ 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="'.$a5_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a5_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($$a5_list)==0) echo '<input type="hidden" name="'.$a5_name.'" value="" />'; +if (count($$a5_list)==1) echo '<input type="hidden" name="'.$a5_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='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 unset($a5_list,$a5_name,$a5_onchange,$a5_title,$a5_class,$a5_addempty,$a5_multiple,$a5_size,$a5_lang) ?></div></div></form> diff --git a/themes/default/pages/html/language/listing.tpl.php b/themes/default/pages/html/language/listing.tpl.php @@ -1,95 +1,42 @@ -<?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_icon='language';$a2_width='93%';$a2_rowclasses='odd,even';$a2_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$a2_icon; - $row_classes = explode(',',$a2_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a2_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="'.$a2_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 $a3_icon='language';$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']); @@ -97,98 +44,159 @@ $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 } ?> +<div class="content"><div class="filler"> +<?php } ?><?php unset($a3_icon,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $a4_width='100%';$a4_space='0px';$a4_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($a4_width,$a4_space,$a4_padding) ?><?php $a5_class='headline'; ?><?php + $column_idx = 0; +?> +<tr + class="headline" +> +<?php unset($a5_class) ?><?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 unset($a6_header) ?><?php $a7_class='text';$a7_key='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_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) ?></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 unset($a6_header) ?><?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 + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a7_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$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 } ?> - <tr> - <td class="window"> - <table cellspacing="0" width="100%" cellpadding="4"> -<?php unset($a2_icon,$a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php $a3_list='el';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php - $a3_list_tmp_key = $a3_key; - $a3_list_tmp_value = $a3_value; - $a3_list_extract = $a3_extract; - unset($a3_key); - unset($a3_value); - if ( !isset($$a3_list) || !is_array($$a3_list) ) - $$a3_list = array(); - foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> +><?php unset($a6_header) ?><?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 + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a7_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$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 unset($a6_header) ?><?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 + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a7_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?></td></tr><?php $a5_list='el';$a5_extract=true;$a5_key='list_key';$a5_value='list_value'; ?><?php + $a5_list_tmp_key = $a5_key; + $a5_list_tmp_value = $a5_value; + $a5_list_extract = $a5_extract; + unset($a5_key); + unset($a5_value); + if ( !isset($$a5_list) || !is_array($$a5_list) ) + $$a5_list = array(); + foreach( $$a5_list as $$a5_list_tmp_key => $$a5_list_tmp_value ) { - if ( $a3_list_extract ) + if ( $a5_list_extract ) { - if ( !is_array($$a3_list_tmp_value) ) + if ( !is_array($$a5_list_tmp_value) ) { - print_r($$a3_list_tmp_value); - die( 'not an array at key: '.$$a3_list_tmp_key ); + print_r($$a5_list_tmp_value); + die( 'not an array at key: '.$$a5_list_tmp_key ); } - extract($$a3_list_tmp_value); + extract($$a5_list_tmp_value); } -?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php $a4_class='data'; ?><?php - $row_idx++; +?><?php unset($a5_list,$a5_extract,$a5_key,$a5_value) ?><?php $a6_class='data'; ?><?php $column_idx = 0; ?> <tr class="data" > -<?php unset($a4_class) ?><?php $column_idx++; ?><td +<?php unset($a6_class) ?><?php $a7_header=false;$a7_url=$url; ?><?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_present='url'; ?><?php - $a6_tmp_exec = isset($$a6_present); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) - { -?> -<?php unset($a6_present) ?><?php $a7_title='';$a7_target='cms_main';$a7_url=$url;$a7_class=''; ?><?php - $params = array(); - $tmp_url = ''; - $tmp_url = $a7_url; -?><a<?php if (isset($a7_name)) echo ' name="'.$a7_name.'"'; else echo ' href="'.$tmp_url.(isset($a7_anchor)?'#'.$a7_anchor:'').'"' ?> class="<?php echo $a7_class ?>" target="<?php echo $a7_target ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_target,$a7_url,$a7_class) ?><?php $a8_file='icon_language';$a8_align='left'; ?><?php + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a7_url ?>'); " +><?php unset($a7_header,$a7_url) ?><?php $a8_file='icon_language';$a8_align='left'; ?><?php $a8_tmp_image_file = $image_dir.$a8_file.IMG_ICON_EXT; $a8_tmp_title = basename($a8_tmp_image_file); -?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?>><?php unset($a8_file,$a8_align) ?><?php $a8_class='text';$a8_var='name';$a8_maxlength='25';$a8_escape=true;$a8_cut='both'; ?><?php +?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?> /><?php unset($a8_file,$a8_align) ?><?php $a8_class='text';$a8_var='name';$a8_maxlength='25';$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 @@ -198,119 +206,111 @@ $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_var,$a8_maxlength,$a8_escape,$a8_cut) ?></a><?php } ?><?php if (!$a6_tmp_last_exec) { ?> -<?php $a7_class='text';$a7_var='name';$a7_maxlength='25';$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 = Text::maxLength( $tmp_text,intval($a7_maxlength),'..',constant('STR_PAD_'.strtoupper($a7_cut)) ); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_maxlength,$a7_escape,$a7_cut) ?><?php } -unset($a5_tmp_last_exec) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_var,$a8_maxlength,$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 $a6_class='text';$a6_var='isocode';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a7_header) ?><?php $a8_class='text';$a8_var='isocode';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_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 $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($a6_class,$a6_var,$a6_escape,$a6_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_var,$a8_escape,$a8_cut) ?></td><?php $a7_header=false;$a7_url=$default_url; ?><?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_present='default_url'; ?><?php - $a6_tmp_exec = isset($$a6_present); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a7_url ?>'); " +><?php unset($a7_header,$a7_url) ?><?php $a8_present='default_url'; ?><?php + $a8_tmp_exec = isset($$a8_present); + $a8_tmp_last_exec = $a8_tmp_exec; + if ( $a8_tmp_exec ) { ?> -<?php unset($a6_present) ?><?php $a7_title='';$a7_target='cms_main_main';$a7_url=$default_url;$a7_class=''; ?><?php - $params = array(); - $tmp_url = ''; - $tmp_url = $a7_url; -?><a<?php if (isset($a7_name)) echo ' name="'.$a7_name.'"'; else echo ' href="'.$tmp_url.(isset($a7_anchor)?'#'.$a7_anchor:'').'"' ?> class="<?php echo $a7_class ?>" target="<?php echo $a7_target ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_target,$a7_url,$a7_class) ?><?php $a8_class='text';$a8_text='GLOBAL_make_default';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +<?php unset($a8_present) ?><?php $a9_class='text';$a9_text='GLOBAL_make_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) ?></a><?php } ?><?php if (!$a6_tmp_last_exec) { ?> -<?php $a7_class='text';$a7_text='GLOBAL_is_default';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?><?php } ?><?php if (!$a8_tmp_last_exec) { ?> +<?php $a9_class='text';$a9_text='GLOBAL_is_default';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_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 $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($a7_class,$a7_text,$a7_escape,$a7_cut) ?><?php } -unset($a5_tmp_last_exec) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?><?php } +unset($a7_tmp_last_exec) ?></td><?php $a7_header=false;$a7_url=$select_url; ?><?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_present='select_url'; ?><?php - $a6_tmp_exec = isset($$a6_present); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a7_url ?>'); " +><?php unset($a7_header,$a7_url) ?><?php $a8_present='select_url'; ?><?php + $a8_tmp_exec = isset($$a8_present); + $a8_tmp_last_exec = $a8_tmp_exec; + if ( $a8_tmp_exec ) { ?> -<?php unset($a6_present) ?><?php $a7_title='';$a7_target=@$conf['interface']['frames']['top'];$a7_url=$select_url;$a7_class=''; ?><?php - $params = array(); - $tmp_url = ''; - $tmp_url = $a7_url; -?><a<?php if (isset($a7_name)) echo ' name="'.$a7_name.'"'; else echo ' href="'.$tmp_url.(isset($a7_anchor)?'#'.$a7_anchor:'').'"' ?> class="<?php echo $a7_class ?>" target="<?php echo $a7_target ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_target,$a7_url,$a7_class) ?><?php $a8_class='text';$a8_text='GLOBAL_select';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +<?php unset($a8_present) ?><?php $a9_class='text';$a9_text='GLOBAL_select';$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) ?></a><?php } ?><?php if (!$a6_tmp_last_exec) { ?> -<?php $a7_class='text';$a7_text='GLOBAL_selected';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?><?php } ?><?php if (!$a8_tmp_last_exec) { ?> +<?php $a9_class='text';$a9_text='GLOBAL_selected';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_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 $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($a7_class,$a7_text,$a7_escape,$a7_cut) ?><?php } -unset($a5_tmp_last_exec) ?></td></tr><?php $a4_var='select_url'; ?><?php - if (!isset($a4_value)) - unset($$a4_var); -?><?php unset($a4_var) ?><?php $a4_var='default_url'; ?><?php - if (!isset($a4_value)) - unset($$a4_var); -?><?php unset($a4_var) ?><?php } ?> </table> - </td> - </tr> -</table> -</center> +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?><?php } +unset($a7_tmp_last_exec) ?></td></tr><?php $a6_var='select_url'; ?><?php + if (!isset($a6_value)) + unset($$a6_var); +?><?php unset($a6_var) ?><?php $a6_var='default_url'; ?><?php + if (!isset($a6_value)) + unset($$a6_var); +?><?php unset($a6_var) ?><?php } ?><?php + $column_idx = $last_column_idx; +?> +</table><?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/> @@ -318,5 +318,4 @@ unset($a5_tmp_last_exec) ?></td></tr><?php $a4_var='select_url'; ?><?php <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -</body> -</html>- \ No newline at end of file +<?php } ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/language/remove.tpl.php b/themes/default/pages/html/language/remove.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_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 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_icon,$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 +?><?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 @@ -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_class='text';$a6_var='name';$a6_escape=true;$a6_cut='both'; ?><?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_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 @@ -210,56 +72,7 @@ $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 $a5_class='help';$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="help" - colspan="2" -><?php unset($a5_class,$a5_colspan) ?><?php $a6_class='text';$a6_text='GROUP_DELETE_DESC';$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></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('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++; - $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_default=false;$a6_readonly=false;$a6_name='confirm'; ?><?php +?></<?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; @@ -270,7 +83,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 @@ -279,46 +93,4 @@ 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></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='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(); -</script> -<?php unset($a2_field) ?></body> -</html>- \ No newline at end of file +?></<?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/languagelist/show.tpl.php b/themes/default/pages/html/languagelist/show.tpl.php @@ -0,0 +1,321 @@ +<?php $a3_icon='language';$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 $a4_width='100%';$a4_space='0px';$a4_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($a4_width,$a4_space,$a4_padding) ?><?php $a5_class='headline'; ?><?php + $column_idx = 0; +?> +<tr + class="headline" +> +<?php unset($a5_class) ?><?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 unset($a6_header) ?><?php $a7_class='text';$a7_key='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_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) ?></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 unset($a6_header) ?><?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 + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a7_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$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 unset($a6_header) ?><?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 + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a7_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$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 unset($a6_header) ?><?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 + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a7_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?></td></tr><?php $a5_list='el';$a5_extract=true;$a5_key='list_key';$a5_value='list_value'; ?><?php + $a5_list_tmp_key = $a5_key; + $a5_list_tmp_value = $a5_value; + $a5_list_extract = $a5_extract; + unset($a5_key); + unset($a5_value); + if ( !isset($$a5_list) || !is_array($$a5_list) ) + $$a5_list = array(); + foreach( $$a5_list as $$a5_list_tmp_key => $$a5_list_tmp_value ) + { + if ( $a5_list_extract ) + { + if ( !is_array($$a5_list_tmp_value) ) + { + print_r($$a5_list_tmp_value); + die( 'not an array at key: '.$$a5_list_tmp_key ); + } + extract($$a5_list_tmp_value); + } +?><?php unset($a5_list,$a5_extract,$a5_key,$a5_value) ?><?php $a6_class='data'; ?><?php + $column_idx = 0; +?> +<tr + class="data" +> +<?php unset($a6_class) ?><?php $a7_header=false;$a7_url=$url; ?><?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 } ?> + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a7_url ?>'); " +><?php unset($a7_header,$a7_url) ?><?php $a8_file='icon_language';$a8_align='left'; ?><?php + $a8_tmp_image_file = $image_dir.$a8_file.IMG_ICON_EXT; + $a8_tmp_title = basename($a8_tmp_image_file); +?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?> /><?php unset($a8_file,$a8_align) ?><?php $a8_class='text';$a8_var='name';$a8_maxlength='25';$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 = Text::maxLength( $tmp_text,intval($a8_maxlength),'..',constant('STR_PAD_'.strtoupper($a8_cut)) ); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_var,$a8_maxlength,$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 unset($a7_header) ?><?php $a8_class='text';$a8_var='isocode';$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) ?></td><?php $a7_header=false;$a7_url=$default_url; ?><?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 } ?> + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a7_url ?>'); " +><?php unset($a7_header,$a7_url) ?><?php $a8_present='default_url'; ?><?php + $a8_tmp_exec = isset($$a8_present); + $a8_tmp_last_exec = $a8_tmp_exec; + if ( $a8_tmp_exec ) + { +?> +<?php unset($a8_present) ?><?php $a9_class='text';$a9_text='GLOBAL_make_default';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_title = ''; + $tmp_tag = 'span'; +?><<?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($a9_class,$a9_text,$a9_escape,$a9_cut) ?><?php } ?><?php if (!$a8_tmp_last_exec) { ?> +<?php $a9_class='text';$a9_text='GLOBAL_is_default';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_title = ''; + $tmp_tag = 'span'; +?><<?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($a9_class,$a9_text,$a9_escape,$a9_cut) ?><?php } +unset($a7_tmp_last_exec) ?></td><?php $a7_header=false;$a7_url=$select_url; ?><?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 } ?> + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a7_url ?>'); " +><?php unset($a7_header,$a7_url) ?><?php $a8_present='select_url'; ?><?php + $a8_tmp_exec = isset($$a8_present); + $a8_tmp_last_exec = $a8_tmp_exec; + if ( $a8_tmp_exec ) + { +?> +<?php unset($a8_present) ?><?php $a9_class='text';$a9_text='GLOBAL_select';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_title = ''; + $tmp_tag = 'span'; +?><<?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($a9_class,$a9_text,$a9_escape,$a9_cut) ?><?php } ?><?php if (!$a8_tmp_last_exec) { ?> +<?php $a9_class='text';$a9_text='GLOBAL_selected';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_title = ''; + $tmp_tag = 'span'; +?><<?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($a9_class,$a9_text,$a9_escape,$a9_cut) ?><?php } +unset($a7_tmp_last_exec) ?></td></tr><?php $a6_var='select_url'; ?><?php + if (!isset($a6_value)) + unset($$a6_var); +?><?php unset($a6_var) ?><?php $a6_var='default_url'; ?><?php + if (!isset($a6_value)) + unset($$a6_var); +?><?php unset($a6_var) ?><?php } ?><?php + $column_idx = $last_column_idx; +?> +</table><?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/link/edit.tpl.php b/themes/default/pages/html/link/edit.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,147 +14,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_title='global_link';$a3_name='GLOBAL_PROP';$a3_icon='link';$a3_widths='5%,30%,65%';$a3_width='90%';$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_title,$a3_name,$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_readonly=false;$a6_name='type';$a6_value='url';$a6_default=false;$a6_prefix='';$a6_suffix='';$a6_class='';$a6_onchange=''; ?><?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_readonly=false;$a6_name='type';$a6_value='url';$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; @@ -195,14 +47,8 @@ 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) ?></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_for='type_url'; ?><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='link_url';$a7_escape=true;$a7_cut='both'; ?><?php +<?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_url'; ?><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='link_url';$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 @@ -211,35 +57,15 @@ $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></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_default='';$a6_type='text';$a6_name='url';$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='text';$a6_default='';$a6_type='text';$a6_name='url';$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_readonly=false;$a6_name='type';$a6_value='link';$a6_default=false;$a6_prefix='';$a6_suffix='';$a6_class='';$a6_onchange=''; ?><?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_readonly=false;$a6_name='type';$a6_value='link';$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; @@ -248,14 +74,8 @@ if ($a6_readonly) { 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) ?></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_for='type_link'; ?><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='link_target';$a7_escape=true;$a7_cut='both'; ?><?php +<?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_link'; ?><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='link_target';$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 @@ -264,14 +84,7 @@ if ($a6_readonly) { $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></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='objects';$a6_name='targetobjectid';$a6_onchange='';$a6_title='';$a6_class='';$a6_addempty=false;$a6_multiple=false;$a6_size='1';$a6_lang=false; ?><?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_list='objects';$a6_name='targetobjectid';$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; if ($this->isEditable() && !$this->isEditMode()) @@ -325,46 +138,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='3'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> - class="act" - colspan="3" -><?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 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/link/info.tpl.php b/themes/default/pages/html/link/info.tpl.php @@ -0,0 +1,280 @@ +<?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_title=lang('global_prop'); ?><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_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,focus';$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_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='description';$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='objectid'; ?><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_key='id';$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) ?></label></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></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_for=''; ?><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_created';$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_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_for=''; ?><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_lastchange';$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_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/link/prop.tpl.php b/themes/default/pages/html/link/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,594 +14,59 @@ $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_title='global_link';$a3_name='GLOBAL_PROP';$a3_icon='link';$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_title,$a3_name,$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) ?><?php $a3_title=lang('global_prop'); ?><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='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='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='name,focus';$a6_default='';$a6_type='text';$a6_name='name';$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='GLOBAL_description';$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='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 $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 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()) { +?></<?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) ?></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 - $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_key='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_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) ?></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 $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 - { - $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=$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 = ''; - $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=$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 +?><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></form> diff --git a/themes/default/pages/html/login/changepassword.tpl.php b/themes/default/pages/html/login/changepassword.tpl.php @@ -0,0 +1,262 @@ +<?php $a3_name='';$a3_target='_top';$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()) + { + $a3_method = 'POST'; + } + else + { + $a3_method = 'GET'; + $a3_subaction = $subActionName; + } + } + 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 $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($a3_name,$a3_target,$a3_method,$a3_enctype,$a3_type) ?><?php $a4_title='GLOBAL_CHOOSE';$a4_name='login';$a4_icon='user';$a4_width='400';$a4_rowclasses='fx1,fx2';$a4_columnclasses='x,y'; ?><?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($a4_title,$a4_name,$a4_icon,$a4_width,$a4_rowclasses,$a4_columnclasses) ?><?php + $column_idx = 0; +?> +<tr +> +<?php $a6_class='logo';$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="logo" + colspan="2" +><?php unset($a6_class,$a6_colspan,$a6_header) ?><?php $a7_name='changepassword'; ?><img src="<?php echo $image_dir.'logo_'.$a7_name.IMG_ICON_EXT ?>" border="0" align="left" /><h2 class="logo"><?php echo langHtml('logo_'.$a7_name) ?></h2><p class="logo"><?php echo langHtml('logo_'.$a7_name.'_text') ?></p><?php unset($a7_name) ?></td><?php + $column_idx = 0; +?> +<tr +> +<?php $a7_width='50%';$a7_header=false; ?><?php $column_idx++; ?><td + width="50%" +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> +><?php unset($a7_width,$a7_header) ?><?php $a8_class='text';$a8_text='USER_PASSWORD';$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) ?></td><?php $a7_width='50%';$a7_header=false; ?><?php $column_idx++; ?><td + width="50%" +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> +><?php unset($a7_width,$a7_header) ?><?php $a8_name='password_old';$a8_default='';$a8_class='';$a8_size='25';$a8_maxlength='256'; ?><input type="password" name="<?php echo $a8_name ?>" id="id_<?php echo $a8_name ?>" size="<?php echo $a8_size ?>" maxlength="<?php echo $a8_maxlength ?>" class="<?php echo $a8_class ?>" value="<?php if (count($errors)==0) echo isset($$a8_name)?$$a8_name:$a8_default ?>" <?php if (in_array($a8_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php unset($a8_name,$a8_default,$a8_class,$a8_size,$a8_maxlength) ?></td></tr><?php + $column_idx = 0; +?> +<tr +> +<?php $a7_width='50%';$a7_header=false; ?><?php $column_idx++; ?><td + width="50%" +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> +><?php unset($a7_width,$a7_header) ?><?php $a8_class='text';$a8_text='USER_NEW_PASSWORD';$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) ?></td><?php $a7_width='50%';$a7_header=false; ?><?php $column_idx++; ?><td + width="50%" +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> +><?php unset($a7_width,$a7_header) ?><?php $a8_name='password_new_1';$a8_default='';$a8_class='';$a8_size='25';$a8_maxlength='256'; ?><input type="password" name="<?php echo $a8_name ?>" id="id_<?php echo $a8_name ?>" size="<?php echo $a8_size ?>" maxlength="<?php echo $a8_maxlength ?>" class="<?php echo $a8_class ?>" value="<?php if (count($errors)==0) echo isset($$a8_name)?$$a8_name:$a8_default ?>" <?php if (in_array($a8_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php unset($a8_name,$a8_default,$a8_class,$a8_size,$a8_maxlength) ?></td></tr><?php + $column_idx = 0; +?> +<tr +> +<?php $a7_width='50%';$a7_header=false; ?><?php $column_idx++; ?><td + width="50%" +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> +><?php unset($a7_width,$a7_header) ?><?php $a8_class='text';$a8_text='USER_NEW_PASSWORD_REPEAT';$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) ?></td><?php $a7_width='50%';$a7_header=false; ?><?php $column_idx++; ?><td + width="50%" +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> +><?php unset($a7_width,$a7_header) ?><?php $a8_name='password_new_2';$a8_default='';$a8_class='';$a8_size='25';$a8_maxlength='256'; ?><input type="password" name="<?php echo $a8_name ?>" id="id_<?php echo $a8_name ?>" size="<?php echo $a8_size ?>" maxlength="<?php echo $a8_maxlength ?>" class="<?php echo $a8_class ?>" value="<?php if (count($errors)==0) echo isset($$a8_name)?$$a8_name:$a8_default ?>" <?php if (in_array($a8_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php unset($a8_name,$a8_default,$a8_class,$a8_size,$a8_maxlength) ?></td></tr><?php + $column_idx = 0; +?> +<tr +> +<?php $a7_class='act';$a7_colspan='2';$a7_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($a7_class,$a7_colspan,$a7_header) ?><?php $a8_type='ok';$a8_class='ok';$a8_value='ok';$a8_text='button_ok'; ?><div class="invisible"> +<?php + if ($this->isEditable() && !$this->isEditMode() && !readonly() ) + { + $a8_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 + { + $a8_type = 'submit'; + } + $a8_tmp_src = ''; + if ( !empty($a8_type)) { +?> +<input type="<?php echo $a8_type ?>"<?php if(isset($a8_src)) { ?> src="<?php $a8_tmp_src ?>"<?php } ?> name="<?php echo $a8_value ?>" class="ok" title="<?php echo lang($a8_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a8_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a8_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($a8_type,$a8_class,$a8_value,$a8_text) ?></td></tr></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 } ?></form> +<?php $a3_field='password_old'; ?><script name="JavaScript" type="text/javascript"><!-- +</script> +<?php unset($a3_field) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/login/license.tpl.php b/themes/default/pages/html/login/license.tpl.php @@ -0,0 +1,119 @@ +<?php $a3_name='';$a3_back=false; ?><div class="header"> + <?php if ($a3_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($a3_views)) { ?> + <img src="<?php echo $image_dir ?>icon/window/down.gif" /> + <div class="headermenu"> + <?php foreach( explode(',',$a3_views) as $a3_tmp_view ) { ?> + <a class="entry" href="javascript:void(0);" onclick="javascript:startView(this,'<?php echo $a3_tmp_view ?>');"> + <img src="<?php echo $image_dir ?>icon/<?php echo $a3_tmp_view ?>.png" /><?php echo lang('MENU_'.$a3_tmp_view) ?> + </a> + <?php } ?> + </div> +<?php } ?> +</div><?php unset($a3_name,$a3_back) ?><?php $a4_title='';$a4_type='external';$a4_target='_top';$a4_url=@$conf['login']['gpl']['url'];$a4_class='copyright';$a4_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $params[REQ_PARAM_TARGET] = $a4_target; + switch( $a4_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a4_action)?$a4_action:$this->actionName,'subaction'=>!empty($a4_subaction)?$a4_subaction:$this->subActionName,'id'=>!empty($a4_id)?$a4_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($a4_subaction)?$a4_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a4_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a4_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a4_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a4_frame ?>"<?php if (isset($a4_name)) { ?> name="<?php echo $a4_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a4_class ?>"<?php if (isset($a4_accesskey)) echo ' accesskey="'.$a4_accesskey.'"' ?> title="<?php echo encodeHtml($a4_title) ?>"><?php unset($a4_title,$a4_type,$a4_target,$a4_url,$a4_class,$a4_frame) ?><?php $a5_class='text';$a5_key='GPL';$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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></a><fieldset><?php if(isset($a4_title)) { ?><legend><?php if(isset($a4_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a4_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a4_title) ?>&nbsp;&nbsp;</legend><?php } ?></fieldset><?php $a4_list='software';$a4_extract=true;$a4_key='list_key';$a4_value='list_value'; ?><?php + $a4_list_tmp_key = $a4_key; + $a4_list_tmp_value = $a4_value; + $a4_list_extract = $a4_extract; + unset($a4_key); + unset($a4_value); + if ( !isset($$a4_list) || !is_array($$a4_list) ) + $$a4_list = array(); + foreach( $$a4_list as $$a4_list_tmp_key => $$a4_list_tmp_value ) + { + if ( $a4_list_extract ) + { + if ( !is_array($$a4_list_tmp_value) ) + { + print_r($$a4_list_tmp_value); + die( 'not an array at key: '.$$a4_list_tmp_key ); + } + extract($$a4_list_tmp_value); + } +?><?php unset($a4_list,$a4_extract,$a4_key,$a4_value) ?><?php $a5_title='';$a5_type='external';$a5_url=$url;$a5_class='';$a5_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $a5_target = $view; + switch( $a5_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a5_action)?$a5_action:$this->actionName,'subaction'=>!empty($a5_subaction)?$a5_subaction:$this->subActionName,'id'=>!empty($a5_id)?$a5_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($a5_subaction)?$a5_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a5_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a5_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a5_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a5_frame ?>"<?php if (isset($a5_name)) { ?> name="<?php echo $a5_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a5_class ?>"<?php if (isset($a5_accesskey)) echo ' accesskey="'.$a5_accesskey.'"' ?> title="<?php echo encodeHtml($a5_title) ?>"><?php unset($a5_title,$a5_type,$a5_url,$a5_class,$a5_frame) ?><?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 + $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) ?></a><?php $a5_class='text';$a5_var='license';$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) ?><br/><br/><?php } ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/login/login.tpl.php b/themes/default/pages/html/login/login.tpl.php @@ -0,0 +1,518 @@ +<?php $a2_name='';$a2_views='password';$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_action='login';$a2_subaction='login';$a2_name='';$a2_target='_top';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded';$a2_type=''; ?><?php + $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_action,$a2_subaction,$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=@$conf['login']['logo']['file']; ?><?php + $a4_tmp_exec = isset($$a4_present); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_present) ?><?php $a5_false=$this->mustChangePassword; ?><?php + if (gettype($a5_false) === '' && gettype($a5_false) === '1') + $a5_tmp_exec = $$a5_false == false; + else + $a5_tmp_exec = $a5_false == false; + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) + { +?> +<?php unset($a5_false) ?><?php $a6_present=@$conf['login']['logo']['url']; ?><?php + $a6_tmp_exec = isset($$a6_present); + $a6_tmp_last_exec = $a6_tmp_exec; + if ( $a6_tmp_exec ) + { +?> +<?php unset($a6_present) ?><?php $a7_title='';$a7_type='';$a7_target='_top';$a7_url=@$conf['login']['logo']['url'];$a7_class='';$a7_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $params[REQ_PARAM_TARGET] = $a7_target; + switch( $a7_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a7_action)?$a7_action:$this->actionName,'subaction'=>!empty($a7_subaction)?$a7_subaction:$this->subActionName,'id'=>!empty($a7_id)?$a7_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($a7_subaction)?$a7_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a7_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a7_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a7_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a7_frame ?>"<?php if (isset($a7_name)) { ?> name="<?php echo $a7_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a7_class ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_type,$a7_target,$a7_url,$a7_class,$a7_frame) ?><?php $a8_url=@$conf['login']['logo']['file'];$a8_align='left'; ?><?php + $a8_tmp_image_file = $a8_url; + $a8_tmp_title = basename($a8_tmp_image_file); +?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?> /><?php unset($a8_url,$a8_align) ?></a><?php } ?><?php $a6_empty=@$conf['login']['logo']['url']; ?><?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_url=@$conf['login']['logo']['file'];$a7_align='left'; ?><?php + $a7_tmp_image_file = $a7_url; + $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_url,$a7_align) ?><?php } ?><?php } ?><?php } ?><?php $a4_not='';$a4_empty=@$conf['login']['motd']; ?><?php + if ( !isset($$a4_empty) ) + $a4_tmp_exec = empty($a4_empty); + elseif ( is_array($$a4_empty) ) + $a4_tmp_exec = (count($$a4_empty)==0); + elseif ( is_bool($$a4_empty) ) + $a4_tmp_exec = true; + else + $a4_tmp_exec = empty( $$a4_empty ); + $a4_tmp_exec = !$a4_tmp_exec; + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_not,$a4_empty) ?><?php $a5_class='text';$a5_raw=@$conf['login']['motd'];$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 = str_replace('_','&nbsp;',$a5_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_raw,$a5_escape,$a5_cut) ?><?php } ?><?php $a4_true=@$conf['login']['nologin']; ?><?php + if (gettype($a4_true) === '' && gettype($a4_true) === '1') + $a4_tmp_exec = $$a4_true == true; + else + $a4_tmp_exec = $a4_true == true; + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_true) ?><?php $a5_class='text';$a5_key='LOGIN_NOLOGIN_DESC';$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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?><?php } ?><?php $a4_true=@$conf['security']['readonly']; ?><?php + if (gettype($a4_true) === '' && gettype($a4_true) === '1') + $a4_tmp_exec = $$a4_true == true; + else + $a4_tmp_exec = $a4_true == true; + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_true) ?><?php $a5_class='help';$a5_key='GLOBAL_READONLY_DESC';$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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?><?php } ?><?php $a4_true=@$conf['security']['nopublish']; ?><?php + if (gettype($a4_true) === '' && gettype($a4_true) === '1') + $a4_tmp_exec = $$a4_true == true; + else + $a4_tmp_exec = $a4_true == true; + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_true) ?><?php $a5_class='help';$a5_key='GLOBAL_NOPUBLISH_DESC';$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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?><?php } ?><?php $a4_false=@$conf['login']['nologin']; ?><?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 $a5_name='login'; ?><img src="<?php echo $image_dir.'logo_'.$a5_name.IMG_ICON_EXT ?>" border="0" align="left" /><h2 class="logo"><?php echo langHtml('logo_'.$a5_name) ?></h2><p class="logo"><?php echo langHtml('logo_'.$a5_name.'_text') ?></p><?php unset($a5_name) ?><?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='login_name'; ?><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='USER_USERNAME';$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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_not=true;$a7_present='force_username'; ?><?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='name';$a8_default='';$a8_type='text';$a8_name='login_name';$a8_value='';$a8_size='20';$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_value,$a8_size,$a8_maxlength,$a8_onchange,$a8_readonly) ?><?php } ?><?php if (!$a7_tmp_last_exec) { ?> +<?php $a8_class='text';$a8_default='';$a8_type='hidden';$a8_name='login_name';$a8_value=$force_username;$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_value,$a8_size,$a8_maxlength,$a8_onchange,$a8_readonly) ?><?php $a8_class='text';$a8_value=$force_username;$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 = $a8_escape?htmlentities($a8_value):$a8_value; + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_value,$a8_escape,$a8_cut) ?><?php } +unset($a6_tmp_last_exec) ?></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) ?><?php $a7_for='login_password'; ?><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='USER_PASSWORD';$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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_name='login_password';$a7_default='';$a7_class='name';$a7_size='20';$a7_maxlength='256'; ?><input type="password" name="<?php echo $a7_name ?>" id="id_<?php echo $a7_name ?>" size="<?php echo $a7_size ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo $a7_class ?>" value="<?php if (count($errors)==0) echo isset($$a7_name)?$$a7_name:$a7_default ?>" <?php if (in_array($a7_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php unset($a7_name,$a7_default,$a7_class,$a7_size,$a7_maxlength) ?></div></div><?php } ?></fieldset><?php $a3_true=$this->mustChangePassword; ?><?php + if (gettype($a3_true) === '' && gettype($a3_true) === '1') + $a3_tmp_exec = $$a3_true == true; + else + $a3_tmp_exec = $a3_true == true; + $a3_tmp_last_exec = $a3_tmp_exec; + if ( $a3_tmp_exec ) + { +?> +<?php unset($a3_true) ?><?php $a4_title=lang('USER_NEW_PASSWORD'); ?><fieldset><?php if(isset($a4_title)) { ?><legend><?php if(isset($a4_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a4_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a4_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a4_title) ?><?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='password1'; ?><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='USER_NEW_PASSWORD';$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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_name='password1';$a7_default='';$a7_class='';$a7_size='25';$a7_maxlength='256'; ?><input type="password" name="<?php echo $a7_name ?>" id="id_<?php echo $a7_name ?>" size="<?php echo $a7_size ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo $a7_class ?>" value="<?php if (count($errors)==0) echo isset($$a7_name)?$$a7_name:$a7_default ?>" <?php if (in_array($a7_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php unset($a7_name,$a7_default,$a7_class,$a7_size,$a7_maxlength) ?></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) ?><?php $a7_for='password2'; ?><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='USER_NEW_PASSWORD_REPEAT';$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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_name='password2';$a7_default='';$a7_class='';$a7_size='25';$a7_maxlength='256'; ?><input type="password" name="<?php echo $a7_name ?>" id="id_<?php echo $a7_name ?>" size="<?php echo $a7_size ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo $a7_class ?>" value="<?php if (count($errors)==0) echo isset($$a7_name)?$$a7_name:$a7_default ?>" <?php if (in_array($a7_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php unset($a7_name,$a7_default,$a7_class,$a7_size,$a7_maxlength) ?></div></div></fieldset><?php } ?><?php $a3_title='';$a3_type='view';$a3_class='action';$a3_action='login';$a3_subaction='password';$a3_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $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_class='text';$a4_key='menu_password';$a4_escape=true;$a4_cut='both'; ?><?php + $a4_title = ''; + $tmp_tag = 'span'; +?><<?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($a4_class,$a4_key,$a4_escape,$a4_cut) ?></a><?php $a3_title='';$a3_type='view';$a3_class='action';$a3_action='login';$a3_subaction='register';$a3_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $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_class='text';$a4_key='menu_register';$a4_escape=true;$a4_cut='both'; ?><?php + $a4_title = ''; + $tmp_tag = 'span'; +?><<?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($a4_class,$a4_key,$a4_escape,$a4_cut) ?></a><br/><br/><br/><br/><br/><?php $a3_value=@count($dbids);$a3_greaterthan='1'; ?><?php + $a3_tmp_exec = intval($a3_greaterthan) < intval($a3_value); + $a3_tmp_last_exec = $a3_tmp_exec; + if ( $a3_tmp_exec ) + { +?> +<?php unset($a3_value,$a3_greaterthan) ?><?php $a4_title=lang('DATABASE');$a4_icon='database'; ?><fieldset><?php if(isset($a4_title)) { ?><legend><?php if(isset($a4_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a4_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a4_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a4_title,$a4_icon) ?><?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='dbid'; ?><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='DATABASE';$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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_list='dbids';$a7_name='dbid';$a7_default=$actdbid;$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_default,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?><?php $a7_name='screenwidth';$a7_default='9999'; ?><?php +if (isset($$a7_name)) + $a7_tmp_value = $$a7_name; +elseif ( isset($a7_default) ) + $a7_tmp_value = $a7_default; +else + $a7_tmp_value = ""; +?><input type="hidden" name="<?php echo $a7_name ?>" value="<?php echo $a7_tmp_value ?>" /><?php unset($a7_name,$a7_default) ?></div></div></fieldset><?php } ?><?php if (!$a3_tmp_last_exec) { ?> +<?php $a4_name='dbid';$a4_default=$actdbid; ?><?php +if (isset($$a4_name)) + $a4_tmp_value = $$a4_name; +elseif ( isset($a4_default) ) + $a4_tmp_value = $a4_default; +else + $a4_tmp_value = ""; +?><input type="hidden" name="<?php echo $a4_name ?>" value="<?php echo $a4_tmp_value ?>" /><?php unset($a4_name,$a4_default) ?><?php } +unset($a2_tmp_last_exec) ?><?php $a3_name='objectid'; ?><?php +if (isset($$a3_name)) + $a3_tmp_value = $$a3_name; +elseif ( isset($a3_default) ) + $a3_tmp_value = $a3_default; +else + $a3_tmp_value = ""; +?><input type="hidden" name="<?php echo $a3_name ?>" value="<?php echo $a3_tmp_value ?>" /><?php unset($a3_name) ?><?php $a3_name='modelid'; ?><?php +if (isset($$a3_name)) + $a3_tmp_value = $$a3_name; +elseif ( isset($a3_default) ) + $a3_tmp_value = $a3_default; +else + $a3_tmp_value = ""; +?><input type="hidden" name="<?php echo $a3_name ?>" value="<?php echo $a3_tmp_value ?>" /><?php unset($a3_name) ?><?php $a3_name='projectid'; ?><?php +if (isset($$a3_name)) + $a3_tmp_value = $$a3_name; +elseif ( isset($a3_default) ) + $a3_tmp_value = $a3_default; +else + $a3_tmp_value = ""; +?><input type="hidden" name="<?php echo $a3_name ?>" value="<?php echo $a3_tmp_value ?>" /><?php unset($a3_name) ?><?php $a3_name='languageid'; ?><?php +if (isset($$a3_name)) + $a3_tmp_value = $$a3_name; +elseif ( isset($a3_default) ) + $a3_tmp_value = $a3_default; +else + $a3_tmp_value = ""; +?><input type="hidden" name="<?php echo $a3_name ?>" value="<?php echo $a3_tmp_value ?>" /><?php unset($a3_name) ?></form> +<br/><br/><?php $a2_title='';$a2_type='';$a2_target='_top';$a2_url=@$conf['login']['gpl']['url'];$a2_class='copyright';$a2_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $params[REQ_PARAM_TARGET] = $a2_target; + switch( $a2_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a2_action)?$a2_action:$this->actionName,'subaction'=>!empty($a2_subaction)?$a2_subaction:$this->subActionName,'id'=>!empty($a2_id)?$a2_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($a2_subaction)?$a2_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a2_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a2_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a2_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a2_frame ?>"<?php if (isset($a2_name)) { ?> name="<?php echo $a2_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a2_class ?>"<?php if (isset($a2_accesskey)) echo ' accesskey="'.$a2_accesskey.'"' ?> title="<?php echo encodeHtml($a2_title) ?>"><?php unset($a2_title,$a2_type,$a2_target,$a2_url,$a2_class,$a2_frame) ?><?php $a3_class='text';$a3_key='GPL';$a3_escape=true;$a3_cut='both'; ?><?php + $a3_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a3_class ?>" title="<?php echo $a3_title ?>"><?php + $langF = $a3_escape?'langHtml':'lang'; + $tmp_text = $langF($a3_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a3_class,$a3_key,$a3_escape,$a3_cut) ?></a>+ \ No newline at end of file diff --git a/themes/default/pages/html/login/openid.tpl.php b/themes/default/pages/html/login/openid.tpl.php @@ -0,0 +1,284 @@ +<?php $a2_name='';$a2_views='password';$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_action='login';$a2_subaction='login';$a2_name='';$a2_target='_top';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded';$a2_type=''; ?><?php + $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_action,$a2_subaction,$a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><?php $a3_true=@$conf['security']['openid']['enable']; ?><?php + if (gettype($a3_true) === '' && gettype($a3_true) === '1') + $a3_tmp_exec = $$a3_true == true; + else + $a3_tmp_exec = $a3_true == true; + $a3_tmp_last_exec = $a3_tmp_exec; + if ( $a3_tmp_exec ) + { +?> +<?php unset($a3_true) ?><?php $a4_title=lang('OPENID'); ?><fieldset><?php if(isset($a4_title)) { ?><legend><?php if(isset($a4_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a4_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a4_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a4_title) ?><?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_key='openid_user';$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) ?><?php $a7_not=true;$a7_empty=@$conf['security']['openid']['logo_url']; ?><?php + if ( !isset($$a7_empty) ) + $a7_tmp_exec = empty($a7_empty); + elseif ( is_array($$a7_empty) ) + $a7_tmp_exec = (count($$a7_empty)==0); + elseif ( is_bool($$a7_empty) ) + $a7_tmp_exec = true; + else + $a7_tmp_exec = empty( $$a7_empty ); + $a7_tmp_exec = !$a7_tmp_exec; + $a7_tmp_last_exec = $a7_tmp_exec; + if ( $a7_tmp_exec ) + { +?> +<?php unset($a7_not,$a7_empty) ?><?php $a8_url=@$conf['security']['openid']['logo_url'];$a8_align='left'; ?><?php + $a8_tmp_image_file = $a8_url; + $a8_tmp_title = basename($a8_tmp_image_file); +?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?> /><?php unset($a8_url,$a8_align) ?><?php } ?></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_list='openid_providers';$a7_name='openid_provider';$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) ?><?php $a7_true=$openid_user_identity; ?><?php + if (gettype($a7_true) === '' && gettype($a7_true) === '1') + $a7_tmp_exec = $$a7_true == true; + else + $a7_tmp_exec = $a7_true == true; + $a7_tmp_last_exec = $a7_tmp_exec; + if ( $a7_tmp_exec ) + { +?> +<?php unset($a7_true) ?><?php $a8_readonly=false;$a8_name='openid_provider';$a8_value='identity';$a8_default=false;$a8_prefix='';$a8_suffix='';$a8_class='';$a8_onchange=''; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; + if ( isset($$a8_name) ) + $a8_tmp_default = $$a8_name; + elseif ( isset($a8_default) ) + $a8_tmp_default = $a8_default; + else + $a8_tmp_default = ''; + ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a8_name.'_'.$a8_value ?>" name="<?php echo $a8_prefix.$a8_name ?>"<?php if ( $a8_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a8_value ?>" <?php if($a8_value==$a8_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a8_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> +<?php /* #END-IF# */ ?><?php unset($a8_readonly,$a8_name,$a8_value,$a8_default,$a8_prefix,$a8_suffix,$a8_class,$a8_onchange) ?><?php $a8_class='name';$a8_default='';$a8_type='text';$a8_name='openid_url';$a8_size='20';$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></fieldset><?php } ?><?php $a3_value=@count($dbids);$a3_greaterthan='1'; ?><?php + $a3_tmp_exec = intval($a3_greaterthan) < intval($a3_value); + $a3_tmp_last_exec = $a3_tmp_exec; + if ( $a3_tmp_exec ) + { +?> +<?php unset($a3_value,$a3_greaterthan) ?><?php $a4_title=lang('DATABASE');$a4_icon='database'; ?><fieldset><?php if(isset($a4_title)) { ?><legend><?php if(isset($a4_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a4_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a4_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a4_title,$a4_icon) ?><?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='dbid'; ?><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='DATABASE';$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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_list='dbids';$a7_name='dbid';$a7_default=$actdbid;$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_default,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?><?php $a7_name='screenwidth';$a7_default='9999'; ?><?php +if (isset($$a7_name)) + $a7_tmp_value = $$a7_name; +elseif ( isset($a7_default) ) + $a7_tmp_value = $a7_default; +else + $a7_tmp_value = ""; +?><input type="hidden" name="<?php echo $a7_name ?>" value="<?php echo $a7_tmp_value ?>" /><?php unset($a7_name,$a7_default) ?></div></div></fieldset><?php } ?><?php if (!$a3_tmp_last_exec) { ?> +<?php $a4_name='dbid';$a4_default=$actdbid; ?><?php +if (isset($$a4_name)) + $a4_tmp_value = $$a4_name; +elseif ( isset($a4_default) ) + $a4_tmp_value = $a4_default; +else + $a4_tmp_value = ""; +?><input type="hidden" name="<?php echo $a4_name ?>" value="<?php echo $a4_tmp_value ?>" /><?php unset($a4_name,$a4_default) ?><?php } +unset($a2_tmp_last_exec) ?><?php $a3_name='objectid'; ?><?php +if (isset($$a3_name)) + $a3_tmp_value = $$a3_name; +elseif ( isset($a3_default) ) + $a3_tmp_value = $a3_default; +else + $a3_tmp_value = ""; +?><input type="hidden" name="<?php echo $a3_name ?>" value="<?php echo $a3_tmp_value ?>" /><?php unset($a3_name) ?><?php $a3_name='modelid'; ?><?php +if (isset($$a3_name)) + $a3_tmp_value = $$a3_name; +elseif ( isset($a3_default) ) + $a3_tmp_value = $a3_default; +else + $a3_tmp_value = ""; +?><input type="hidden" name="<?php echo $a3_name ?>" value="<?php echo $a3_tmp_value ?>" /><?php unset($a3_name) ?><?php $a3_name='projectid'; ?><?php +if (isset($$a3_name)) + $a3_tmp_value = $$a3_name; +elseif ( isset($a3_default) ) + $a3_tmp_value = $a3_default; +else + $a3_tmp_value = ""; +?><input type="hidden" name="<?php echo $a3_name ?>" value="<?php echo $a3_tmp_value ?>" /><?php unset($a3_name) ?><?php $a3_name='languageid'; ?><?php +if (isset($$a3_name)) + $a3_tmp_value = $$a3_name; +elseif ( isset($a3_default) ) + $a3_tmp_value = $a3_default; +else + $a3_tmp_value = ""; +?><input type="hidden" name="<?php echo $a3_name ?>" value="<?php echo $a3_tmp_value ?>" /><?php unset($a3_name) ?></form> +<br/><br/><?php $a2_title='';$a2_type='';$a2_target='_top';$a2_url=@$conf['login']['gpl']['url'];$a2_class='copyright';$a2_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $params[REQ_PARAM_TARGET] = $a2_target; + switch( $a2_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a2_action)?$a2_action:$this->actionName,'subaction'=>!empty($a2_subaction)?$a2_subaction:$this->subActionName,'id'=>!empty($a2_id)?$a2_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($a2_subaction)?$a2_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a2_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a2_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a2_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a2_frame ?>"<?php if (isset($a2_name)) { ?> name="<?php echo $a2_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a2_class ?>"<?php if (isset($a2_accesskey)) echo ' accesskey="'.$a2_accesskey.'"' ?> title="<?php echo encodeHtml($a2_title) ?>"><?php unset($a2_title,$a2_type,$a2_target,$a2_url,$a2_class,$a2_frame) ?><?php $a3_class='text';$a3_key='GPL';$a3_escape=true;$a3_cut='both'; ?><?php + $a3_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a3_class ?>" title="<?php echo $a3_title ?>"><?php + $langF = $a3_escape?'langHtml':'lang'; + $tmp_text = $langF($a3_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a3_class,$a3_key,$a3_escape,$a3_cut) ?></a>+ \ No newline at end of file diff --git a/themes/default/pages/html/login/password.tpl.php b/themes/default/pages/html/login/password.tpl.php @@ -0,0 +1,137 @@ +<?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) ?><?php $a3_name='password'; ?><img src="<?php echo $image_dir.'logo_'.$a3_name.IMG_ICON_EXT ?>" border="0" align="left" /><h2 class="logo"><?php echo langHtml('logo_'.$a3_name) ?></h2><p class="logo"><?php echo langHtml('logo_'.$a3_name.'_text') ?></p><?php unset($a3_name) ?><?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='USER_USERNAME';$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='username';$a5_value='';$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_value,$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_DATABASE';$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_list='dbids';$a5_name='dbid';$a5_default='actdbid';$a5_onchange='';$a5_title='';$a5_class='';$a5_addempty=false;$a5_multiple=false;$a5_size='1';$a5_lang=false; ?><?php +$a5_readonly=false; +$a5_tmp_list = $$a5_list; +if ($this->isEditable() && !$this->isEditMode()) +{ + echo empty($$a5_name)?'- '.lang('EMPTY').' -':$a5_tmp_list[$$a5_name]; +} +else +{ +if ( $a5_addempty!==FALSE ) +{ + if ($a5_addempty===TRUE) + $a5_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a5_tmp_list; + else + $a5_tmp_list = array(''=>'- '.lang($a5_addempty).' -')+$a5_tmp_list; +} +?><select<?php if ($a5_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a5_name ?>" name="<?php echo $a5_name; if ($a5_multiple) echo '[]'; ?>" onchange="<?php echo $a5_onchange ?>" title="<?php echo $a5_title ?>" class="<?php echo $a5_class ?>"<?php +if (count($$a5_list)<=1) echo ' disabled="disabled"'; +if ($a5_multiple) echo ' multiple="multiple"'; +if (in_array($a5_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($a5_size).'"'; +?>><?php + if ( isset($$a5_name) && isset($a5_tmp_list[$$a5_name]) ) + $a5_tmp_default = $$a5_name; + elseif ( isset($a5_default) ) + $a5_tmp_default = $a5_default; + else + $a5_tmp_default = ''; + foreach( $a5_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( $a5_lang ) + { + $box_title = lang( $box_value.'_DESC'); + $box_value = lang( $box_value ); + } + else + { + $box_title = ''; + } + echo '<option class="'.$a5_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a5_tmp_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select><?php +if (count($$a5_list)==0) echo '<input type="hidden" name="'.$a5_name.'" value="" />'; +if (count($$a5_list)==1) echo '<input type="hidden" name="'.$a5_name.'" value="'.$box_key.'" />'; +} +?><?php unset($a5_list,$a5_name,$a5_default,$a5_onchange,$a5_title,$a5_class,$a5_addempty,$a5_multiple,$a5_size,$a5_lang) ?></div></div></form> diff --git a/themes/default/pages/html/login/passwordinputcode.tpl.php b/themes/default/pages/html/login/passwordinputcode.tpl.php @@ -0,0 +1,226 @@ +<?php $a3_name='';$a3_target='_top';$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()) + { + $a3_method = 'POST'; + } + else + { + $a3_method = 'GET'; + $a3_subaction = $subActionName; + } + } + 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 $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($a3_name,$a3_target,$a3_method,$a3_enctype,$a3_type) ?><?php $a4_name='password';$a4_icon='user';$a4_widths='50%,50%';$a4_width='400px';$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 } ?> + <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($a4_name,$a4_icon,$a4_widths,$a4_width,$a4_rowclasses,$a4_columnclasses) ?><?php + $column_idx = 0; +?> +<tr +> +<?php $a6_class='logo';$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="logo" + colspan="2" +><?php unset($a6_class,$a6_colspan,$a6_header) ?><?php $a7_name='password'; ?><img src="<?php echo $image_dir.'logo_'.$a7_name.IMG_ICON_EXT ?>" border="0" align="left" /><h2 class="logo"><?php echo langHtml('logo_'.$a7_name) ?></h2><p class="logo"><?php echo langHtml('logo_'.$a7_name.'_text') ?></p><?php unset($a7_name) ?></td><?php + $column_idx = 0; +?> +<tr +> +<?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 unset($a7_header) ?><?php $a8_class='text';$a8_text='mail_code';$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) ?></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 unset($a7_header) ?><?php $a8_class='text';$a8_default='';$a8_type='text';$a8_name='code';$a8_size='30';$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 + $column_idx = 0; +?> +<tr +> +<?php $a7_class='act';$a7_colspan='2';$a7_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($a7_class,$a7_colspan,$a7_header) ?><?php $a8_type='ok';$a8_class='ok';$a8_value='ok';$a8_text='button_ok'; ?><div class="invisible"> +<?php + if ($this->isEditable() && !$this->isEditMode() && !readonly() ) + { + $a8_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 + { + $a8_type = 'submit'; + } + $a8_tmp_src = ''; + if ( !empty($a8_type)) { +?> +<input type="<?php echo $a8_type ?>"<?php if(isset($a8_src)) { ?> src="<?php $a8_tmp_src ?>"<?php } ?> name="<?php echo $a8_value ?>" class="ok" title="<?php echo lang($a8_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a8_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a8_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($a8_type,$a8_class,$a8_value,$a8_text) ?></td></tr></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 } ?></form> +<?php $a3_field='code'; ?><script name="JavaScript" type="text/javascript"><!-- +</script> +<?php unset($a3_field) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/login/register.tpl.php b/themes/default/pages/html/login/register.tpl.php @@ -0,0 +1,58 @@ +<?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_name='register'; ?><img src="<?php echo $image_dir.'logo_'.$a3_name.IMG_ICON_EXT ?>" border="0" align="left" /><h2 class="logo"><?php echo langHtml('logo_'.$a3_name) ?></h2><p class="logo"><?php echo langHtml('logo_'.$a3_name.'_text') ?></p><?php unset($a3_name) ?><?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='USER_MAIL';$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='mail';$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) ?></div><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?></div></div></form> diff --git a/themes/default/pages/html/login/registeruserdata.tpl.php b/themes/default/pages/html/login/registeruserdata.tpl.php @@ -0,0 +1,147 @@ +<?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_name='register'; ?><img src="<?php echo $image_dir.'logo_'.$a3_name.IMG_ICON_EXT ?>" border="0" align="left" /><h2 class="logo"><?php echo langHtml('logo_'.$a3_name) ?></h2><p class="logo"><?php echo langHtml('logo_'.$a3_name.'_text') ?></p><?php unset($a3_name) ?><?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='USER_REGISTER_CODE';$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='code';$a5_size='25';$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='USER_USERNAME';$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='text';$a5_default='';$a5_type='text';$a5_name='username';$a5_value='';$a5_size='25';$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_value,$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='USER_PASSWORD';$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='password';$a5_default='';$a5_class='';$a5_size='25';$a5_maxlength='256'; ?><input type="password" name="<?php echo $a5_name ?>" id="id_<?php echo $a5_name ?>" size="<?php echo $a5_size ?>" maxlength="<?php echo $a5_maxlength ?>" class="<?php echo $a5_class ?>" value="<?php if (count($errors)==0) echo isset($$a5_name)?$$a5_name:$a5_default ?>" <?php if (in_array($a5_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php unset($a5_name,$a5_default,$a5_class,$a5_size,$a5_maxlength) ?></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_DATABASE';$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_list='dbids';$a5_name='dbid';$a5_default='actdbid';$a5_onchange='';$a5_title='';$a5_class='';$a5_addempty=false;$a5_multiple=false;$a5_size='1';$a5_lang=false; ?><?php +$a5_readonly=false; +$a5_tmp_list = $$a5_list; +if ($this->isEditable() && !$this->isEditMode()) +{ + echo empty($$a5_name)?'- '.lang('EMPTY').' -':$a5_tmp_list[$$a5_name]; +} +else +{ +if ( $a5_addempty!==FALSE ) +{ + if ($a5_addempty===TRUE) + $a5_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a5_tmp_list; + else + $a5_tmp_list = array(''=>'- '.lang($a5_addempty).' -')+$a5_tmp_list; +} +?><select<?php if ($a5_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a5_name ?>" name="<?php echo $a5_name; if ($a5_multiple) echo '[]'; ?>" onchange="<?php echo $a5_onchange ?>" title="<?php echo $a5_title ?>" class="<?php echo $a5_class ?>"<?php +if (count($$a5_list)<=1) echo ' disabled="disabled"'; +if ($a5_multiple) echo ' multiple="multiple"'; +if (in_array($a5_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($a5_size).'"'; +?>><?php + if ( isset($$a5_name) && isset($a5_tmp_list[$$a5_name]) ) + $a5_tmp_default = $$a5_name; + elseif ( isset($a5_default) ) + $a5_tmp_default = $a5_default; + else + $a5_tmp_default = ''; + foreach( $a5_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( $a5_lang ) + { + $box_title = lang( $box_value.'_DESC'); + $box_value = lang( $box_value ); + } + else + { + $box_title = ''; + } + echo '<option class="'.$a5_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a5_tmp_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select><?php +if (count($$a5_list)==0) echo '<input type="hidden" name="'.$a5_name.'" value="" />'; +if (count($$a5_list)==1) echo '<input type="hidden" name="'.$a5_name.'" value="'.$box_key.'" />'; +} +?><?php unset($a5_list,$a5_name,$a5_default,$a5_onchange,$a5_title,$a5_class,$a5_addempty,$a5_multiple,$a5_size,$a5_lang) ?></div></div></form> diff --git a/themes/default/pages/html/login/show.tpl.php b/themes/default/pages/html/login/show.tpl.php @@ -0,0 +1,79 @@ +<?php + if (!headers_sent()) header('Content-Type: text/html; charset='.$charset) +?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"> +<html> + <head> + <title><?php echo @$title ?> - <?php echo $cms_title ?></title> + <link rel="shortcut icon" href="<?php echo $image_dir.'favicon.ico' ?>" > + <?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 + } +?> + <meta name="robots" content="noindex,nofollow" > + </head> +<?php $a3_true=@$conf['interface']['application_mode']; ?><?php + if (gettype($a3_true) === '' && gettype($a3_true) === '1') + $a3_tmp_exec = $$a3_true == true; + else + $a3_tmp_exec = $a3_true == true; + $a3_tmp_last_exec = $a3_tmp_exec; + if ( $a3_tmp_exec ) + { +?> +<?php unset($a3_true) ?><?php $a4_var='menuheight';$a4_value='30'; ?><?php + if (isset($a4_key)) + $$a4_var = $a4_value[$a4_key]; + else + $$a4_var = $a4_value; +?><?php unset($a4_var,$a4_value) ?><?php } ?><?php if (!$a3_tmp_last_exec) { ?> +<?php $a4_var='menuheight';$a4_value='60'; ?><?php + if (isset($a4_key)) + $$a4_var = $a4_value[$a4_key]; + else + $$a4_var = $a4_value; +?><?php unset($a4_var,$a4_value) ?><?php } +unset($a2_tmp_last_exec) ?><?php $a3_true=@$conf['interface']['application_mode']; ?><?php + if (gettype($a3_true) === '' && gettype($a3_true) === '1') + $a3_tmp_exec = $$a3_true == true; + else + $a3_tmp_exec = $a3_true == true; + $a3_tmp_last_exec = $a3_tmp_exec; + if ( $a3_tmp_exec ) + { +?> +<?php unset($a3_true) ?><?php $a4_rows='*'; ?><frameset +<?php echo ' rows="'.$a4_rows.'"' ?> + border="0" frameborder="5" framespacing="0" bordercolor="#000000"><?php unset($a4_rows) ?><?php $a5_columns='25%,*'; ?><frameset +<?php echo ' cols="'.$a5_columns.'"' ?> + border="0" frameborder="5" framespacing="0" bordercolor="#000000"><?php unset($a5_columns) ?><?php $a6_rows=''.$menuheight.',*'; ?><frameset +<?php echo ' rows="'.$a6_rows.'"' ?> + border="0" frameborder="5" framespacing="0" bordercolor="#000000"><?php unset($a6_rows) ?><?php $a7_file=$frame_src_tree_title;$a7_name='cms_treemenu'; ?><frame src="<?php echo $a7_file ?>" name="<?php echo empty($a7_name)?'':$a7_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($a7_scrolling)?'no':$a7_scrolling ?>"> +<?php unset($a7_file,$a7_name) ?><?php $a7_file=$frame_src_tree;$a7_name='cms_tree';$a7_scrolling='auto'; ?><frame src="<?php echo $a7_file ?>" name="<?php echo empty($a7_name)?'':$a7_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($a7_scrolling)?'no':$a7_scrolling ?>"> +<?php unset($a7_file,$a7_name,$a7_scrolling) ?></frameset> +<?php $a6_file=$frame_src_main;$a6_name='cms_main'; ?><frame src="<?php echo $a6_file ?>" name="<?php echo empty($a6_name)?'':$a6_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($a6_scrolling)?'no':$a6_scrolling ?>"> +<?php unset($a6_file,$a6_name) ?></frameset> +</frameset> +<?php } ?><?php if (!$a3_tmp_last_exec) { ?> +<?php $a4_rows='23,*'; ?><frameset +<?php echo ' rows="'.$a4_rows.'"' ?> + border="0" frameborder="5" framespacing="0" bordercolor="#000000"><?php unset($a4_rows) ?><?php $a5_file=$frame_src_title;$a5_name='cms_title'; ?><frame src="<?php echo $a5_file ?>" name="<?php echo empty($a5_name)?'':$a5_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($a5_scrolling)?'no':$a5_scrolling ?>"> +<?php unset($a5_file,$a5_name) ?><?php $a5_columns='25%,*'; ?><frameset +<?php echo ' cols="'.$a5_columns.'"' ?> + border="0" frameborder="5" framespacing="0" bordercolor="#000000"><?php unset($a5_columns) ?><?php $a6_rows=''.$menuheight.',*'; ?><frameset +<?php echo ' rows="'.$a6_rows.'"' ?> + border="0" frameborder="5" framespacing="0" bordercolor="#000000"><?php unset($a6_rows) ?><?php $a7_file=$frame_src_tree_title;$a7_name='cms_treemenu'; ?><frame src="<?php echo $a7_file ?>" name="<?php echo empty($a7_name)?'':$a7_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($a7_scrolling)?'no':$a7_scrolling ?>"> +<?php unset($a7_file,$a7_name) ?><?php $a7_file=$frame_src_tree;$a7_name='cms_tree';$a7_scrolling='auto'; ?><frame src="<?php echo $a7_file ?>" name="<?php echo empty($a7_name)?'':$a7_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($a7_scrolling)?'no':$a7_scrolling ?>"> +<?php unset($a7_file,$a7_name,$a7_scrolling) ?></frameset> +<?php $a6_file=$frame_src_main;$a6_name='cms_main'; ?><frame src="<?php echo $a6_file ?>" name="<?php echo empty($a6_name)?'':$a6_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($a6_scrolling)?'no':$a6_scrolling ?>"> +<?php unset($a6_file,$a6_name) ?></frameset> +</frameset> +<?php } +unset($a2_tmp_last_exec) ?></html>+ \ No newline at end of file diff --git a/themes/default/pages/html/model/add.tpl.php b/themes/default/pages/html/model/add.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,203 +30,45 @@ $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_PROJECTS';$a3_icon='project';$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 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_icon,$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_key='global_name';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?><?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_key='global_name';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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); +?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php + $langF = $a5_escape?'langHtml':'lang'; + $tmp_text = $langF($a5_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) ?></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_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++; - $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> -</body> -</html>- \ No newline at end of file +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$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></form> diff --git a/themes/default/pages/html/model/edit.tpl.php b/themes/default/pages/html/model/edit.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_views='add,remove';$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 } ?> - <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_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(); @@ -46,209 +30,45 @@ $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 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_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) ?><?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_NAME';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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 $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($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_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++; - $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($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='text';$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></form> diff --git a/themes/default/pages/html/model/listing.tpl.php b/themes/default/pages/html/model/listing.tpl.php @@ -1,96 +1,42 @@ -<?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='GLOBAL_MODELS';$a2_icon='group';$a2_widths='50%,25%,25%';$a2_width='93%';$a2_rowclasses='odd,even';$a2_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$a2_icon; - $coldumn_widths = explode(',',$a2_widths); - $row_classes = explode(',',$a2_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a2_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="'.$a2_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 $a3_name='GLOBAL_MODELS';$a3_icon='group';$a3_widths='50%,25%,25%';$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']); @@ -98,204 +44,269 @@ $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($a2_name,$a2_icon,$a2_widths,$a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php $a3_list='el';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php - $a3_list_tmp_key = $a3_key; - $a3_list_tmp_value = $a3_value; - $a3_list_extract = $a3_extract; - unset($a3_key); - unset($a3_value); - if ( !isset($$a3_list) || !is_array($$a3_list) ) - $$a3_list = array(); - foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) - { - if ( $a3_list_extract ) - { - if ( !is_array($$a3_list_tmp_value) ) - { - print_r($$a3_list_tmp_value); - die( 'not an array at key: '.$$a3_list_tmp_key ); - } - extract($$a3_list_tmp_value); - } -?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php $a4_class='data'; ?><?php - $row_idx++; +<div class="content"><div class="filler"> +<?php } ?><?php unset($a3_name,$a3_icon,$a3_widths,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $a4_width='100%';$a4_space='0px';$a4_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($a4_width,$a4_space,$a4_padding) ?><?php $a5_class='headline'; ?><?php $column_idx = 0; ?> <tr - class="data" + class="headline" > -<?php unset($a4_class) ?><?php $column_idx++; ?><td +<?php unset($a5_class) ?><?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_present='url'; ?><?php - $a6_tmp_exec = isset($$a6_present); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) - { -?> -<?php unset($a6_present) ?><?php $a7_title='';$a7_target='cms_main';$a7_url=$url;$a7_class=''; ?><?php - $params = array(); - $tmp_url = ''; - $tmp_url = $a7_url; -?><a<?php if (isset($a7_name)) echo ' name="'.$a7_name.'"'; else echo ' href="'.$tmp_url.(isset($a7_anchor)?'#'.$a7_anchor:'').'"' ?> class="<?php echo $a7_class ?>" target="<?php echo $a7_target ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_target,$a7_url,$a7_class) ?><?php $a8_file='icon_model';$a8_align='left'; ?><?php - $a8_tmp_image_file = $image_dir.$a8_file.IMG_ICON_EXT; - $a8_tmp_title = basename($a8_tmp_image_file); -?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?>><?php unset($a8_file,$a8_align) ?><?php $a8_class='text';$a8_var='name';$a8_maxlength='25';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +><?php unset($a6_header) ?><?php $a7_class='text';$a7_key='name';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_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 = Text::maxLength( $tmp_text,intval($a8_maxlength),'..',constant('STR_PAD_'.strtoupper($a8_cut)) ); +?><<?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($a8_class,$a8_var,$a8_maxlength,$a8_escape,$a8_cut) ?></a><?php } ?><?php if (!$a6_tmp_last_exec) { ?> -<?php $a7_class='text';$a7_var='name';$a7_maxlength='25';$a7_escape=true;$a7_cut='both'; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$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 unset($a6_header) ?><?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 $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = isset($$a7_var)?$$a7_var:$langF('UNKNOWN'); - $tmp_text = Text::maxLength( $tmp_text,intval($a7_maxlength),'..',constant('STR_PAD_'.strtoupper($a7_cut)) ); + $tmp_text = str_replace('_','&nbsp;',$a7_raw); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_maxlength,$a7_escape,$a7_cut) ?><?php } -unset($a5_tmp_last_exec) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$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_present='default_url'; ?><?php - $a6_tmp_exec = isset($$a6_present); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) +><?php unset($a6_header) ?><?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 + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a7_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?></td></tr><?php $a5_list='el';$a5_extract=true;$a5_key='list_key';$a5_value='list_value'; ?><?php + $a5_list_tmp_key = $a5_key; + $a5_list_tmp_value = $a5_value; + $a5_list_extract = $a5_extract; + unset($a5_key); + unset($a5_value); + if ( !isset($$a5_list) || !is_array($$a5_list) ) + $$a5_list = array(); + foreach( $$a5_list as $$a5_list_tmp_key => $$a5_list_tmp_value ) { + if ( $a5_list_extract ) + { + if ( !is_array($$a5_list_tmp_value) ) + { + print_r($$a5_list_tmp_value); + die( 'not an array at key: '.$$a5_list_tmp_key ); + } + extract($$a5_list_tmp_value); + } +?><?php unset($a5_list,$a5_extract,$a5_key,$a5_value) ?><?php $a6_class='data'; ?><?php + $column_idx = 0; ?> -<?php unset($a6_present) ?><?php $a7_title='';$a7_target='cms_main_main';$a7_url=$default_url;$a7_class=''; ?><?php +<tr + class="data" +> +<?php unset($a6_class) ?><?php $a7_header=false;$a7_url=$url; ?><?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 } ?> + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a7_url ?>'); " +><?php unset($a7_header,$a7_url) ?><?php $a8_title='';$a8_type='';$a8_target='cms_main';$a8_class='';$a8_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a7_url; -?><a<?php if (isset($a7_name)) echo ' name="'.$a7_name.'"'; else echo ' href="'.$tmp_url.(isset($a7_anchor)?'#'.$a7_anchor:'').'"' ?> class="<?php echo $a7_class ?>" target="<?php echo $a7_target ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_target,$a7_url,$a7_class) ?><?php $a8_class='text';$a8_text='GLOBAL_make_default';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; + $params[REQ_PARAM_TARGET] = $a8_target; + switch( $a8_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a8_action)?$a8_action:$this->actionName,'subaction'=>!empty($a8_subaction)?$a8_subaction:$this->subActionName,'id'=>!empty($a8_id)?$a8_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($a8_subaction)?$a8_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a8_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a8_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a8_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a8_frame ?>"<?php if (isset($a8_name)) { ?> name="<?php echo $a8_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a8_class ?>"<?php if (isset($a8_accesskey)) echo ' accesskey="'.$a8_accesskey.'"' ?> title="<?php echo encodeHtml($a8_title) ?>"><?php unset($a8_title,$a8_type,$a8_target,$a8_class,$a8_frame) ?><?php $a9_file='icon_model';$a9_align='left'; ?><?php + $a9_tmp_image_file = $image_dir.$a9_file.IMG_ICON_EXT; + $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_file,$a9_align) ?><?php $a9_class='text';$a9_var='name';$a9_maxlength='25';$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 = isset($$a9_var)?$$a9_var:$langF('UNKNOWN'); + $tmp_text = Text::maxLength( $tmp_text,intval($a9_maxlength),'..',constant('STR_PAD_'.strtoupper($a9_cut)) ); $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) ?></a><?php } ?><?php if (!$a6_tmp_last_exec) { ?> -<?php $a7_class='text';$a7_text='GLOBAL_is_default';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_var,$a9_maxlength,$a9_escape,$a9_cut) ?></a></td><?php $a7_header=false;$a7_url=$default_url; ?><?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 } ?> + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a7_url ?>'); " +><?php unset($a7_header,$a7_url) ?><?php $a8_present='default_url'; ?><?php + $a8_tmp_exec = isset($$a8_present); + $a8_tmp_last_exec = $a8_tmp_exec; + if ( $a8_tmp_exec ) + { +?> +<?php unset($a8_present) ?><?php $a9_class='text';$a9_text='GLOBAL_make_default';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_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 $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($a7_class,$a7_text,$a7_escape,$a7_cut) ?><?php } -unset($a5_tmp_last_exec) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?><?php } ?><?php if (!$a8_tmp_last_exec) { ?> +<?php $a9_class='text';$a9_text='GLOBAL_is_default';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_title = ''; + $tmp_tag = 'span'; +?><<?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($a9_class,$a9_text,$a9_escape,$a9_cut) ?><?php } +unset($a7_tmp_last_exec) ?></td><?php $a7_header=false;$a7_url=$select_url; ?><?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_present='select_url'; ?><?php - $a6_tmp_exec = isset($$a6_present); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a7_url ?>'); " +><?php unset($a7_header,$a7_url) ?><?php $a8_present='select_url'; ?><?php + $a8_tmp_exec = isset($$a8_present); + $a8_tmp_last_exec = $a8_tmp_exec; + if ( $a8_tmp_exec ) { ?> -<?php unset($a6_present) ?><?php $a7_title='';$a7_target=@$conf['interface']['frames']['top'];$a7_url=$select_url;$a7_class=''; ?><?php - $params = array(); - $tmp_url = ''; - $tmp_url = $a7_url; -?><a<?php if (isset($a7_name)) echo ' name="'.$a7_name.'"'; else echo ' href="'.$tmp_url.(isset($a7_anchor)?'#'.$a7_anchor:'').'"' ?> class="<?php echo $a7_class ?>" target="<?php echo $a7_target ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_target,$a7_url,$a7_class) ?><?php $a8_class='text';$a8_text='GLOBAL_select';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +<?php unset($a8_present) ?><?php $a9_class='text';$a9_text='GLOBAL_select';$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) ?></a><?php } ?><?php if (!$a6_tmp_last_exec) { ?> -<?php $a7_class='text';$a7_text='GLOBAL_selected';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?><?php } ?><?php if (!$a8_tmp_last_exec) { ?> +<?php $a9_class='text';$a9_text='GLOBAL_selected';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_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 $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($a7_class,$a7_text,$a7_escape,$a7_cut) ?><?php } -unset($a5_tmp_last_exec) ?></td></tr><?php $a4_var='select_url'; ?><?php - if (!isset($a4_value)) - unset($$a4_var); -?><?php unset($a4_var) ?><?php $a4_var='default_url'; ?><?php - if (!isset($a4_value)) - unset($$a4_var); -?><?php unset($a4_var) ?><?php } ?> </table> - </td> - </tr> -</table> -</center> +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?><?php } +unset($a7_tmp_last_exec) ?></td></tr><?php $a6_var='select_url'; ?><?php + if (!isset($a6_value)) + unset($$a6_var); +?><?php unset($a6_var) ?><?php $a6_var='default_url'; ?><?php + if (!isset($a6_value)) + unset($$a6_var); +?><?php unset($a6_var) ?><?php } ?><?php + $column_idx = $last_column_idx; +?> +</table><?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/> @@ -303,5 +314,4 @@ unset($a5_tmp_last_exec) ?></td></tr><?php $a4_var='select_url'; ?><?php <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -</body> -</html>- \ No newline at end of file +<?php } ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/model/remove.tpl.php b/themes/default/pages/html/model/remove.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 } ?> - <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_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(); @@ -46,147 +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_GROUPS';$a3_icon='group';$a3_widths='30%,70%';$a3_width='93%';$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_name,$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 +?><?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 @@ -195,50 +63,16 @@ $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='name';$a6_escape=true;$a6_type='strong';$a6_cut='both'; ?><?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_class='name';$a6_var='name';$a6_escape=true;$a6_cut='both'; ?><?php $a6_title = ''; - $tmp_tag = 'strong'; + $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_type,$a6_cut) ?></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('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++; - $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_default=false;$a6_readonly=false;$a6_name='confirm'; ?><?php +?></<?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; @@ -249,7 +83,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 @@ -258,53 +93,4 @@ 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></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 } ?> -></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='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(); -</script> -<?php unset($a2_field) ?></body> -</html>- \ No newline at end of file +?></<?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/modellist/show.tpl.php b/themes/default/pages/html/modellist/show.tpl.php @@ -0,0 +1,317 @@ +<?php $a3_name='GLOBAL_MODELS';$a3_icon='group';$a3_widths='50%,25%,25%';$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_name,$a3_icon,$a3_widths,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $a4_width='100%';$a4_space='0px';$a4_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($a4_width,$a4_space,$a4_padding) ?><?php $a5_class='headline'; ?><?php + $column_idx = 0; +?> +<tr + class="headline" +> +<?php unset($a5_class) ?><?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 unset($a6_header) ?><?php $a7_class='text';$a7_key='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_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) ?></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 unset($a6_header) ?><?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 + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a7_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$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 unset($a6_header) ?><?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 + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a7_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?></td></tr><?php $a5_list='el';$a5_extract=true;$a5_key='list_key';$a5_value='list_value'; ?><?php + $a5_list_tmp_key = $a5_key; + $a5_list_tmp_value = $a5_value; + $a5_list_extract = $a5_extract; + unset($a5_key); + unset($a5_value); + if ( !isset($$a5_list) || !is_array($$a5_list) ) + $$a5_list = array(); + foreach( $$a5_list as $$a5_list_tmp_key => $$a5_list_tmp_value ) + { + if ( $a5_list_extract ) + { + if ( !is_array($$a5_list_tmp_value) ) + { + print_r($$a5_list_tmp_value); + die( 'not an array at key: '.$$a5_list_tmp_key ); + } + extract($$a5_list_tmp_value); + } +?><?php unset($a5_list,$a5_extract,$a5_key,$a5_value) ?><?php $a6_class='data'; ?><?php + $column_idx = 0; +?> +<tr + class="data" +> +<?php unset($a6_class) ?><?php $a7_header=false;$a7_url=$url; ?><?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 } ?> + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a7_url ?>'); " +><?php unset($a7_header,$a7_url) ?><?php $a8_title='';$a8_type='';$a8_target='cms_main';$a8_class='';$a8_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $params[REQ_PARAM_TARGET] = $a8_target; + switch( $a8_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a8_action)?$a8_action:$this->actionName,'subaction'=>!empty($a8_subaction)?$a8_subaction:$this->subActionName,'id'=>!empty($a8_id)?$a8_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($a8_subaction)?$a8_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a8_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a8_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a8_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a8_frame ?>"<?php if (isset($a8_name)) { ?> name="<?php echo $a8_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a8_class ?>"<?php if (isset($a8_accesskey)) echo ' accesskey="'.$a8_accesskey.'"' ?> title="<?php echo encodeHtml($a8_title) ?>"><?php unset($a8_title,$a8_type,$a8_target,$a8_class,$a8_frame) ?><?php $a9_file='icon_model';$a9_align='left'; ?><?php + $a9_tmp_image_file = $image_dir.$a9_file.IMG_ICON_EXT; + $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_file,$a9_align) ?><?php $a9_class='text';$a9_var='name';$a9_maxlength='25';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_title = ''; + $tmp_tag = 'span'; +?><<?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 = Text::maxLength( $tmp_text,intval($a9_maxlength),'..',constant('STR_PAD_'.strtoupper($a9_cut)) ); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_var,$a9_maxlength,$a9_escape,$a9_cut) ?></a></td><?php $a7_header=false;$a7_url=$default_url; ?><?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 } ?> + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a7_url ?>'); " +><?php unset($a7_header,$a7_url) ?><?php $a8_present='default_url'; ?><?php + $a8_tmp_exec = isset($$a8_present); + $a8_tmp_last_exec = $a8_tmp_exec; + if ( $a8_tmp_exec ) + { +?> +<?php unset($a8_present) ?><?php $a9_class='text';$a9_text='GLOBAL_make_default';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_title = ''; + $tmp_tag = 'span'; +?><<?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($a9_class,$a9_text,$a9_escape,$a9_cut) ?><?php } ?><?php if (!$a8_tmp_last_exec) { ?> +<?php $a9_class='text';$a9_text='GLOBAL_is_default';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_title = ''; + $tmp_tag = 'span'; +?><<?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($a9_class,$a9_text,$a9_escape,$a9_cut) ?><?php } +unset($a7_tmp_last_exec) ?></td><?php $a7_header=false;$a7_url=$select_url; ?><?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 } ?> + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a7_url ?>'); " +><?php unset($a7_header,$a7_url) ?><?php $a8_present='select_url'; ?><?php + $a8_tmp_exec = isset($$a8_present); + $a8_tmp_last_exec = $a8_tmp_exec; + if ( $a8_tmp_exec ) + { +?> +<?php unset($a8_present) ?><?php $a9_class='text';$a9_text='GLOBAL_select';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_title = ''; + $tmp_tag = 'span'; +?><<?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($a9_class,$a9_text,$a9_escape,$a9_cut) ?><?php } ?><?php if (!$a8_tmp_last_exec) { ?> +<?php $a9_class='text';$a9_text='GLOBAL_selected';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_title = ''; + $tmp_tag = 'span'; +?><<?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($a9_class,$a9_text,$a9_escape,$a9_cut) ?><?php } +unset($a7_tmp_last_exec) ?></td></tr><?php $a6_var='select_url'; ?><?php + if (!isset($a6_value)) + unset($$a6_var); +?><?php unset($a6_var) ?><?php $a6_var='default_url'; ?><?php + if (!isset($a6_value)) + unset($$a6_var); +?><?php unset($a6_var) ?><?php } ?><?php + $column_idx = $last_column_idx; +?> +</table><?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/object/aclform.tpl.php b/themes/default/pages/html/object/aclform.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 } ?> - <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_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(); @@ -46,158 +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_title='GLOBAL_ADD';$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_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a5_colspan='3'; ?><?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="3" -><?php unset($a5_colspan) ?><?php $a6_title=lang('users'); ?><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 $a5_width='10px'; ?><?php $column_idx++; ?><td - width="10px" -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php unset($a5_width) ?><?php $a6_readonly=false;$a6_name='type';$a6_value='all';$a6_default=false;$a6_prefix='';$a6_suffix='';$a6_class='';$a6_onchange=''; ?><?php +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><?php $a3_title=lang('users'); ?><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_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; @@ -206,14 +63,8 @@ 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) ?></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_for='type';$a6_value='all'; ?><label for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>"><?php unset($a6_for,$a6_value) ?><?php $a7_class='text';$a7_text='GLOBAL_ALL';$a7_escape=true;$a7_cut='both'; ?><?php +<?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';$a6_value='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,$a6_value) ?><?php $a7_class='text';$a7_text='GLOBAL_ALL';$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 @@ -222,34 +73,7 @@ $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></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_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) ?></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a5_width='10px'; ?><?php $column_idx++; ?><td - width="10px" -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php unset($a5_width) ?><?php $a6_readonly=false;$a6_name='type';$a6_value='user';$a6_default=false;$a6_prefix='';$a6_suffix='';$a6_class='';$a6_onchange=''; ?><?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) ?></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_readonly=false;$a6_name='type';$a6_value='user';$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; @@ -258,14 +82,8 @@ 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) ?></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_for='type';$a6_value='user'; ?><label for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>"><?php unset($a6_for,$a6_value) ?><?php $a7_class='text';$a7_text='GLOBAL_USER';$a7_escape=true;$a7_cut='both'; ?><?php +<?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';$a6_value='user'; ?><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,$a6_value) ?><?php $a7_class='text';$a7_text='GLOBAL_USER';$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 @@ -274,14 +92,7 @@ $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></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='users';$a6_name='userid';$a6_onchange='';$a6_title='';$a6_class='';$a6_addempty=true;$a6_multiple=false;$a6_size='1';$a6_lang=false; ?><?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_list='users';$a6_name='userid';$a6_onchange='';$a6_title='';$a6_class='';$a6_addempty=true;$a6_multiple=false;$a6_size='1';$a6_lang=false; ?><?php $a6_readonly=false; $a6_tmp_list = $$a6_list; if ($this->isEditable() && !$this->isEditMode()) @@ -335,24 +146,13 @@ 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 $a4_present='groups'; ?><?php +?><?php unset($a6_list,$a6_name,$a6_onchange,$a6_title,$a6_class,$a6_addempty,$a6_multiple,$a6_size,$a6_lang) ?></div></div><?php $a4_present='groups'; ?><?php $a4_tmp_exec = isset($$a4_present); $a4_tmp_last_exec = $a4_tmp_exec; if ( $a4_tmp_exec ) { ?> -<?php unset($a4_present) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_width='10px'; ?><?php $column_idx++; ?><td - width="10px" -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php unset($a6_width) ?><?php $a7_readonly=false;$a7_name='type';$a7_value='group';$a7_default=false;$a7_prefix='';$a7_suffix='';$a7_class='';$a7_onchange=''; ?><?php +<?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_readonly=false;$a7_name='type';$a7_value='group';$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; @@ -361,14 +161,8 @@ if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="' else $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) ?></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_for='type';$a7_value='group'; ?><label for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>"><?php unset($a7_for,$a7_value) ?><?php $a8_class='text';$a8_text='GLOBAL_GROUP';$a8_escape=true;$a8_cut='both'; ?><?php +<?php /* #END-IF# */ ?><?php unset($a7_readonly,$a7_name,$a7_value,$a7_default,$a7_prefix,$a7_suffix,$a7_class,$a7_onchange) ?><?php $a7_for='type';$a7_value='group'; ?><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,$a7_value) ?><?php $a8_class='text';$a8_text='GLOBAL_GROUP';$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 @@ -377,14 +171,7 @@ if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="' $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></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_list='groups';$a7_name='groupid';$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=true;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php +?></<?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_list='groups';$a7_name='groupid';$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()) @@ -438,48 +225,8 @@ echo ' size="'.intval($a7_size).'"'; 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) ?></td></tr><?php } ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a5_colspan='3'; ?><?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="3" -><?php unset($a5_colspan) ?><?php $a6_title=lang('language'); ?><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 $a5_width='10px'; ?><?php $column_idx++; ?><td - width="10px" -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php unset($a5_width) ?><?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) ?></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_for='languageid'; ?><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='GLOBAL_LANGUAGE';$a7_escape=true;$a7_cut='both'; ?><?php +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?></div></div><?php } ?></fieldset><?php $a3_title=lang('language'); ?><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='languageid'; ?><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_LANGUAGE';$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 @@ -488,14 +235,7 @@ if (count($$a7_list)==1) echo '<input type="hidden" name="'.$a7_name.'" value="' $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></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='languages';$a6_name='languageid';$a6_onchange='';$a6_title='';$a6_class='';$a6_addempty=false;$a6_multiple=false;$a6_size='1';$a6_lang=false; ?><?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_list='languages';$a6_name='languageid';$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; if ($this->isEditable() && !$this->isEditMode()) @@ -549,142 +289,74 @@ 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_colspan='3'; ?><?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="3" -><?php unset($a5_colspan) ?><?php $a6_title=lang('acl'); ?><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_list='show';$a4_extract=false;$a4_key='k';$a4_value='t'; ?><?php - $a4_list_tmp_key = $a4_key; - $a4_list_tmp_value = $a4_value; - $a4_list_extract = $a4_extract; - unset($a4_key); - unset($a4_value); - if ( !isset($$a4_list) || !is_array($$a4_list) ) - $$a4_list = array(); - foreach( $$a4_list as $$a4_list_tmp_key => $$a4_list_tmp_value ) +?><?php unset($a6_list,$a6_name,$a6_onchange,$a6_title,$a6_class,$a6_addempty,$a6_multiple,$a6_size,$a6_lang) ?></div></div></fieldset><?php $a3_title=lang('acl'); ?><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_list='show';$a6_extract=false;$a6_key='k';$a6_value='t'; ?><?php + $a6_list_tmp_key = $a6_key; + $a6_list_tmp_value = $a6_value; + $a6_list_extract = $a6_extract; + unset($a6_key); + unset($a6_value); + if ( !isset($$a6_list) || !is_array($$a6_list) ) + $$a6_list = array(); + foreach( $$a6_list as $$a6_list_tmp_key => $$a6_list_tmp_value ) { - if ( $a4_list_extract ) + if ( $a6_list_extract ) { - if ( !is_array($$a4_list_tmp_value) ) + if ( !is_array($$a6_list_tmp_value) ) { - print_r($$a4_list_tmp_value); - die( 'not an array at key: '.$$a4_list_tmp_key ); + print_r($$a6_list_tmp_value); + die( 'not an array at key: '.$$a6_list_tmp_key ); } - extract($$a4_list_tmp_value); + extract($$a6_list_tmp_value); } -?><?php unset($a4_list,$a4_extract,$a4_key,$a4_value) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_width='10px'; ?><?php $column_idx++; ?><td - width="10px" -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> -><?php unset($a6_width) ?><?php $a7_equals='read';$a7_value=$t; ?><?php - $a7_tmp_exec = $a7_equals == $a7_value; - $a7_tmp_last_exec = $a7_tmp_exec; - if ( $a7_tmp_exec ) +?><?php unset($a6_list,$a6_extract,$a6_key,$a6_value) ?><div><?php $a8_equals='read';$a8_value=$t; ?><?php + $a8_tmp_exec = $a8_equals == $a8_value; + $a8_tmp_last_exec = $a8_tmp_exec; + if ( $a8_tmp_exec ) { ?> -<?php unset($a7_equals,$a7_value) ?><?php $a8_var=$t;$a8_value=true; ?><?php - if (isset($a8_key)) - $$a8_var = $a8_value[$a8_key]; +<?php unset($a8_equals,$a8_value) ?><?php $a9_var=$t;$a9_value=true; ?><?php + if (isset($a9_key)) + $$a9_var = $a9_value[$a9_key]; else - $$a8_var = $a8_value; -?><?php unset($a8_var,$a8_value) ?><?php $a8_default=false;$a8_readonly=true;$a8_name=$t; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; - if ( isset($$a8_name) ) - $checked = $$a8_name; + $$a9_var = $a9_value; +?><?php unset($a9_var,$a9_value) ?><?php $a9_default=false;$a9_readonly=true;$a9_name=$t; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a9_readonly=true; + if ( isset($$a9_name) ) + $checked = $$a9_name; else - $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 ) + $checked = $a9_default; +?><input class="checkbox" type="checkbox" id="id_<?php echo $a9_name ?>" name="<?php echo $a9_name ?>" <?php if ($a9_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?><?php if (in_array($a9_name,$errors)) echo ' style="background-color:red;"' ?> /><?php +if ( $a9_readonly && $checked ) { -?><input type="hidden" name="<?php echo $a8_name ?>" value="1" /><?php +?><input type="hidden" name="<?php echo $a9_name ?>" value="1" /><?php } -?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?><?php } ?><?php if (!$a7_tmp_last_exec) { ?> -<?php $a8_var=$t;$a8_value=false; ?><?php - if (isset($a8_key)) - $$a8_var = $a8_value[$a8_key]; +?><?php unset($a9_name); unset($a9_readonly); unset($a9_default); ?><?php unset($a9_default,$a9_readonly,$a9_name) ?><?php } ?><?php if (!$a8_tmp_last_exec) { ?> +<?php $a9_var=$t;$a9_value=false; ?><?php + if (isset($a9_key)) + $$a9_var = $a9_value[$a9_key]; else - $$a8_var = $a8_value; -?><?php unset($a8_var,$a8_value) ?><?php $a8_default=false;$a8_readonly=false;$a8_name=$t; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; - if ( isset($$a8_name) ) - $checked = $$a8_name; + $$a9_var = $a9_value; +?><?php unset($a9_var,$a9_value) ?><?php $a9_default=false;$a9_readonly=false;$a9_name=$t; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a9_readonly=true; + if ( isset($$a9_name) ) + $checked = $$a9_name; else - $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 ) + $checked = $a9_default; +?><input class="checkbox" type="checkbox" id="id_<?php echo $a9_name ?>" name="<?php echo $a9_name ?>" <?php if ($a9_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?><?php if (in_array($a9_name,$errors)) echo ' style="background-color:red;"' ?> /><?php +if ( $a9_readonly && $checked ) { -?><input type="hidden" name="<?php echo $a8_name ?>" value="1" /><?php +?><input type="hidden" name="<?php echo $a9_name ?>" value="1" /><?php } -?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?><?php } -unset($a6_tmp_last_exec) ?></td><?php $a6_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($a6_colspan) ?><?php $a7_for=$t;$a7_value=''; ?><label for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>"><?php unset($a7_for,$a7_value) ?><?php $a8_class='text';$a8_key=$t;$a8_prefix='acl_';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_key = $a8_prefix.$a8_key; - $a8_title = ''; +?><?php unset($a9_name); unset($a9_readonly); unset($a9_default); ?><?php unset($a9_default,$a9_readonly,$a9_name) ?><?php } +unset($a7_tmp_last_exec) ?><?php $a8_for=$t;$a8_value=''; ?><label<?php if (isset($a8_for)) { ?> for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>" class="label"<?php } ?>> +<?php if (isset($a8_key)) { echo lang($a8_key); if(hasLang($a8_key.'_desc')) { ?><div class="description"><?php echo lang($a8_key.'_desc')?></div> <?php } } ?><?php unset($a8_for,$a8_value) ?><?php $a9_class='text';$a9_key=$t;$a9_prefix='acl_';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_key = $a9_prefix.$a9_key; + $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_key); +?><<?php echo $tmp_tag ?> class="<?php echo $a9_class ?>" title="<?php echo $a9_title ?>"><?php + $langF = $a9_escape?'langHtml':'lang'; + $tmp_text = $langF($a9_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_prefix,$a8_escape,$a8_cut) ?></label></td></tr><?php } ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a5_class='act';$a5_colspan='3'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> - class="act" - colspan="3" -><?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> -</body> -</html>- \ No newline at end of file +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_key,$a9_prefix,$a9_escape,$a9_cut) ?></label></div><?php } ?></div></div></fieldset></form> diff --git a/themes/default/pages/html/object/rights.tpl.php b/themes/default/pages/html/object/rights.tpl.php @@ -1,604 +1,377 @@ -<?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(); - if ($this->isEditable()) - { - if ($this->isEditMode()) - { - $a2_method = 'POST'; - } - else - { - $a2_method = 'GET'; - $a2_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;"> -<?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 - 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='ACL';$a3_name='x';$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 $a4_empty='acls'; ?><?php - if ( !isset($$a4_empty) ) - $a4_tmp_exec = empty($a4_empty); - elseif ( is_array($$a4_empty) ) - $a4_tmp_exec = (count($$a4_empty)==0); - elseif ( is_bool($$a4_empty) ) - $a4_tmp_exec = true; - else - $a4_tmp_exec = empty( $$a4_empty ); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +<?php $a2_equals='folder';$a2_value=$type; ?><?php + $a2_tmp_exec = $a2_equals == $a2_value; + $a2_tmp_last_exec = $a2_tmp_exec; + if ( $a2_tmp_exec ) { ?> -<?php unset($a4_empty) ?><?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 unset($a2_equals,$a2_value) ?><?php $a3_name='';$a3_views='inherit,aclform';$a3_back=false; ?><div class="header"> + <?php if ($a3_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($a3_views)) { ?> + <img src="<?php echo $image_dir ?>icon/window/down.gif" /> + <div class="headermenu"> + <?php foreach( explode(',',$a3_views) as $a3_tmp_view ) { ?> + <a class="entry" href="javascript:void(0);" onclick="javascript:startView(this,'<?php echo $a3_tmp_view ?>');"> + <img src="<?php echo $image_dir ?>icon/<?php echo $a3_tmp_view ?>.png" /><?php echo lang('MENU_'.$a3_tmp_view) ?> + </a> + <?php } ?> + </div> <?php } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +</div><?php unset($a3_name,$a3_views,$a3_back) ?><?php } ?><?php if (!$a2_tmp_last_exec) { ?> +<?php $a3_name='';$a3_views='aclform';$a3_back=false; ?><div class="header"> + <?php if ($a3_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($a3_views)) { ?> + <img src="<?php echo $image_dir ?>icon/window/down.gif" /> + <div class="headermenu"> + <?php foreach( explode(',',$a3_views) as $a3_tmp_view ) { ?> + <a class="entry" href="javascript:void(0);" onclick="javascript:startView(this,'<?php echo $a3_tmp_view ?>');"> + <img src="<?php echo $image_dir ?>icon/<?php echo $a3_tmp_view ?>.png" /><?php echo lang('MENU_'.$a3_tmp_view) ?> + </a> + <?php } ?> + </div> <?php } ?> -><?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) ?></td></tr><?php } ?><?php $a4_not=true;$a4_empty='acls'; ?><?php - if ( !isset($$a4_empty) ) - $a4_tmp_exec = empty($a4_empty); - elseif ( is_array($$a4_empty) ) - $a4_tmp_exec = (count($$a4_empty)==0); - elseif ( is_bool($$a4_empty) ) - $a4_tmp_exec = true; - else - $a4_tmp_exec = empty( $$a4_empty ); - $a4_tmp_exec = !$a4_tmp_exec; - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) - { -?> -<?php unset($a4_not,$a4_empty) ?><?php $a5_class='headline'; ?><?php - $row_idx++; +</div><?php unset($a3_name,$a3_views,$a3_back) ?><?php } +unset($a1_tmp_last_exec) ?><?php $a2_width='100%';$a2_space='0px';$a2_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($a2_width,$a2_space,$a2_padding) ?><?php $a3_class='headline'; ?><?php $column_idx = 0; ?> <tr class="headline" > -<?php unset($a5_class) ?><?php $a6_class='help'; ?><?php $column_idx++; ?><td +<?php unset($a3_class) ?><?php $a4_class='help';$a4_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a6_class) ?><?php $a7_class='text';$a7_key='GLOBAL_NAME';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a4_class,$a4_header) ?><?php $a5_class='text';$a5_key='GLOBAL_NAME';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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 $a5_class ?>" title="<?php echo $a5_title ?>"><?php + $langF = $a5_escape?'langHtml':'lang'; + $tmp_text = $langF($a5_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) ?></td><?php $a6_class='help'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></td><?php $a4_class='help';$a4_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a6_class) ?><?php $a7_class='text';$a7_key='GLOBAL_LANGUAGE';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a4_class,$a4_header) ?><?php $a5_class='text';$a5_key='GLOBAL_LANGUAGE';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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 $a5_class ?>" title="<?php echo $a5_title ?>"><?php + $langF = $a5_escape?'langHtml':'lang'; + $tmp_text = $langF($a5_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) ?></td><?php $a6_list='show';$a6_extract=false;$a6_key='list_key';$a6_value='t'; ?><?php - $a6_list_tmp_key = $a6_key; - $a6_list_tmp_value = $a6_value; - $a6_list_extract = $a6_extract; - unset($a6_key); - unset($a6_value); - if ( !isset($$a6_list) || !is_array($$a6_list) ) - $$a6_list = array(); - foreach( $$a6_list as $$a6_list_tmp_key => $$a6_list_tmp_value ) +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></td><?php $a4_list='show';$a4_extract=false;$a4_key='list_key';$a4_value='t'; ?><?php + $a4_list_tmp_key = $a4_key; + $a4_list_tmp_value = $a4_value; + $a4_list_extract = $a4_extract; + unset($a4_key); + unset($a4_value); + if ( !isset($$a4_list) || !is_array($$a4_list) ) + $$a4_list = array(); + foreach( $$a4_list as $$a4_list_tmp_key => $$a4_list_tmp_value ) { - if ( $a6_list_extract ) + if ( $a4_list_extract ) { - if ( !is_array($$a6_list_tmp_value) ) + if ( !is_array($$a4_list_tmp_value) ) { - print_r($$a6_list_tmp_value); - die( 'not an array at key: '.$$a6_list_tmp_key ); + print_r($$a4_list_tmp_value); + die( 'not an array at key: '.$$a4_list_tmp_key ); } - extract($$a6_list_tmp_value); + extract($$a4_list_tmp_value); } -?><?php unset($a6_list,$a6_extract,$a6_key,$a6_value) ?><?php $a7_class='help'; ?><?php $column_idx++; ?><td +?><?php unset($a4_list,$a4_extract,$a4_key,$a4_value) ?><?php $a5_class='help';$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="help" -><?php unset($a7_class) ?><?php $a8_class='text';$a8_key=$t;$a8_suffix='_abbrev';$a8_prefix='acl_';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_key = $a8_prefix.$a8_key; - $a8_key = $a8_key.$a8_suffix; - $a8_title = ''; +><?php unset($a5_class,$a5_header) ?><?php $a6_class='text';$a6_key=$t;$a6_suffix='_abbrev';$a6_prefix='acl_';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_key = $a6_prefix.$a6_key; + $a6_key = $a6_key.$a6_suffix; + $a6_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_key); +?><<?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($a8_class,$a8_key,$a8_suffix,$a8_prefix,$a8_escape,$a8_cut) ?></td><?php } ?><?php $a6_class='help'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_key,$a6_suffix,$a6_prefix,$a6_escape,$a6_cut) ?></td><?php } ?><?php $a4_class='help';$a4_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a6_class) ?><?php $a7_true=$mode=="edit"; ?><?php - if (gettype($a7_true) === '' && gettype($a7_true) === '1') - $a7_tmp_exec = $$a7_true == true; +><?php unset($a4_class,$a4_header) ?><?php $a5_class='text';$a5_key='global_delete';$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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></td></tr><?php $a3_empty='acls'; ?><?php + if ( !isset($$a3_empty) ) + $a3_tmp_exec = empty($a3_empty); + elseif ( is_array($$a3_empty) ) + $a3_tmp_exec = (count($$a3_empty)==0); + elseif ( is_bool($$a3_empty) ) + $a3_tmp_exec = true; else - $a7_tmp_exec = $a7_true == true; - $a7_tmp_last_exec = $a7_tmp_exec; - if ( $a7_tmp_exec ) + $a3_tmp_exec = empty( $$a3_empty ); + $a3_tmp_last_exec = $a3_tmp_exec; + if ( $a3_tmp_exec ) { ?> -<?php unset($a7_true) ?><?php $a8_class='text';$a8_key='global_delete';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +<?php unset($a3_empty) ?><?php $a4_class='data'; ?><?php + $column_idx = 0; +?> +<tr + class="data" +> +<?php unset($a4_class) ?><?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 unset($a5_header) ?><?php $a6_class='text';$a6_text='GLOBAL_NOT_FOUND';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_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_key); +?><<?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($a8_class,$a8_key,$a8_escape,$a8_cut) ?><?php } ?></td></tr><?php } ?><?php $a4_list='acls';$a4_extract=true;$a4_key='aclid';$a4_value='acl'; ?><?php - $a4_list_tmp_key = $a4_key; - $a4_list_tmp_value = $a4_value; - $a4_list_extract = $a4_extract; - unset($a4_key); - unset($a4_value); - if ( !isset($$a4_list) || !is_array($$a4_list) ) - $$a4_list = array(); - foreach( $$a4_list as $$a4_list_tmp_key => $$a4_list_tmp_value ) +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td></tr><?php } ?><?php $a3_not=true;$a3_empty='acls'; ?><?php + if ( !isset($$a3_empty) ) + $a3_tmp_exec = empty($a3_empty); + elseif ( is_array($$a3_empty) ) + $a3_tmp_exec = (count($$a3_empty)==0); + elseif ( is_bool($$a3_empty) ) + $a3_tmp_exec = true; + else + $a3_tmp_exec = empty( $$a3_empty ); + $a3_tmp_exec = !$a3_tmp_exec; + $a3_tmp_last_exec = $a3_tmp_exec; + if ( $a3_tmp_exec ) { - if ( $a4_list_extract ) +?> +<?php unset($a3_not,$a3_empty) ?><?php } ?><?php $a3_list='acls';$a3_extract=true;$a3_key='aclid';$a3_value='acl'; ?><?php + $a3_list_tmp_key = $a3_key; + $a3_list_tmp_value = $a3_value; + $a3_list_extract = $a3_extract; + unset($a3_key); + unset($a3_value); + if ( !isset($$a3_list) || !is_array($$a3_list) ) + $$a3_list = array(); + foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) + { + if ( $a3_list_extract ) { - if ( !is_array($$a4_list_tmp_value) ) + if ( !is_array($$a3_list_tmp_value) ) { - print_r($$a4_list_tmp_value); - die( 'not an array at key: '.$$a4_list_tmp_key ); + print_r($$a3_list_tmp_value); + die( 'not an array at key: '.$$a3_list_tmp_key ); } - extract($$a4_list_tmp_value); + extract($$a3_list_tmp_value); } -?><?php unset($a4_list,$a4_extract,$a4_key,$a4_value) ?><?php $a5_class='data'; ?><?php - $row_idx++; +?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php $a4_class='data'; ?><?php $column_idx = 0; ?> <tr class="data" > -<?php unset($a5_class) ?><?php $column_idx++; ?><td +<?php unset($a4_class) ?><?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 $a7_present='username'; ?><?php - $a7_tmp_exec = isset($$a7_present); - $a7_tmp_last_exec = $a7_tmp_exec; - if ( $a7_tmp_exec ) +><?php unset($a5_header) ?><?php $a6_present='username'; ?><?php + $a6_tmp_exec = isset($$a6_present); + $a6_tmp_last_exec = $a6_tmp_exec; + if ( $a6_tmp_exec ) { ?> -<?php unset($a7_present) ?><?php $a8_align='left';$a8_type='user'; ?><?php - $a8_tmp_image_file = $image_dir.'icon_'.$a8_type.IMG_ICON_EXT; - $a8_size = '16x16'; - $a8_tmp_title = basename($a8_tmp_image_file); -?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?>><?php unset($a8_align,$a8_type) ?><?php $a8_class='text';$a8_var='username';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +<?php unset($a6_present) ?><?php $a7_align='left';$a7_type='user'; ?><?php + $a7_tmp_image_file = $image_dir.'icon_'.$a7_type.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_align,$a7_type) ?><?php $a7_class='text';$a7_var='username';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_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 $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($a8_class,$a8_var,$a8_escape,$a8_cut) ?><?php } ?><?php $a7_present='groupname'; ?><?php - $a7_tmp_exec = isset($$a7_present); - $a7_tmp_last_exec = $a7_tmp_exec; - if ( $a7_tmp_exec ) +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_escape,$a7_cut) ?><?php } ?><?php $a6_present='groupname'; ?><?php + $a6_tmp_exec = isset($$a6_present); + $a6_tmp_last_exec = $a6_tmp_exec; + if ( $a6_tmp_exec ) { ?> -<?php unset($a7_present) ?><?php $a8_align='left';$a8_type='group'; ?><?php - $a8_tmp_image_file = $image_dir.'icon_'.$a8_type.IMG_ICON_EXT; - $a8_size = '16x16'; - $a8_tmp_title = basename($a8_tmp_image_file); -?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?>><?php unset($a8_align,$a8_type) ?><?php $a8_class='text';$a8_var='groupname';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +<?php unset($a6_present) ?><?php $a7_align='left';$a7_type='group'; ?><?php + $a7_tmp_image_file = $image_dir.'icon_'.$a7_type.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_align,$a7_type) ?><?php $a7_class='text';$a7_var='groupname';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_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 $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($a8_class,$a8_var,$a8_escape,$a8_cut) ?><?php } ?><?php $a7_not=true;$a7_present='username'; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_escape,$a7_cut) ?><?php } ?><?php $a6_not=true;$a6_present='username'; ?><?php + $a6_tmp_exec = isset($$a6_present); + $a6_tmp_exec = !$a6_tmp_exec; + $a6_tmp_last_exec = $a6_tmp_exec; + if ( $a6_tmp_exec ) + { +?> +<?php unset($a6_not,$a6_present) ?><?php $a7_not=true;$a7_present='groupname'; ?><?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_not=true;$a8_present='groupname'; ?><?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($a8_not,$a8_present) ?><?php $a9_align='left';$a9_type='group'; ?><?php - $a9_tmp_image_file = $image_dir.'icon_'.$a9_type.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_align,$a9_type) ?><?php $a9_class='text';$a9_key='global_all';$a9_escape=true;$a9_cut='both'; ?><?php - $a9_title = ''; +<?php unset($a7_not,$a7_present) ?><?php $a8_align='left';$a8_type='group'; ?><?php + $a8_tmp_image_file = $image_dir.'icon_'.$a8_type.IMG_ICON_EXT; + $a8_size = '16x16'; + $a8_tmp_title = basename($a8_tmp_image_file); +?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?> /><?php unset($a8_align,$a8_type) ?><?php $a8_class='text';$a8_key='global_all';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a9_class ?>" title="<?php echo $a9_title ?>"><?php - $langF = $a9_escape?'langHtml':'lang'; - $tmp_text = $langF($a9_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($a9_class,$a9_key,$a9_escape,$a9_cut) ?><?php } ?><?php } ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?><?php } ?><?php } ?></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 $a7_class='text';$a7_var='languagename';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a5_header) ?><?php $a6_class='text';$a6_var='languagename';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_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'); +?><<?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($a7_class,$a7_var,$a7_escape,$a7_cut) ?></td><?php $a6_list='show';$a6_extract=false;$a6_key='list_key';$a6_value='t'; ?><?php - $a6_list_tmp_key = $a6_key; - $a6_list_tmp_value = $a6_value; - $a6_list_extract = $a6_extract; - unset($a6_key); - unset($a6_value); - if ( !isset($$a6_list) || !is_array($$a6_list) ) - $$a6_list = array(); - foreach( $$a6_list as $$a6_list_tmp_key => $$a6_list_tmp_value ) +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?></td><?php $a5_list='show';$a5_extract=false;$a5_key='list_key';$a5_value='t'; ?><?php + $a5_list_tmp_key = $a5_key; + $a5_list_tmp_value = $a5_value; + $a5_list_extract = $a5_extract; + unset($a5_key); + unset($a5_value); + if ( !isset($$a5_list) || !is_array($$a5_list) ) + $$a5_list = array(); + foreach( $$a5_list as $$a5_list_tmp_key => $$a5_list_tmp_value ) { - if ( $a6_list_extract ) + if ( $a5_list_extract ) { - if ( !is_array($$a6_list_tmp_value) ) + if ( !is_array($$a5_list_tmp_value) ) { - print_r($$a6_list_tmp_value); - die( 'not an array at key: '.$$a6_list_tmp_key ); + print_r($$a5_list_tmp_value); + die( 'not an array at key: '.$$a5_list_tmp_key ); } - extract($$a6_list_tmp_value); + extract($$a5_list_tmp_value); } -?><?php unset($a6_list,$a6_extract,$a6_key,$a6_value) ?><?php $column_idx++; ?><td +?><?php unset($a5_list,$a5_extract,$a5_key,$a5_value) ?><?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 $a8_default=false;$a8_readonly=true;$a8_name=$t; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; - if ( isset($$a8_name) ) - $checked = $$a8_name; +><?php unset($a6_header) ?><?php $a7_default=false;$a7_readonly=true;$a7_name=$t; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; + if ( isset($$a7_name) ) + $checked = $$a7_name; else - $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 ) + $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 $a8_name ?>" value="1" /><?php +?><input type="hidden" name="<?php echo $a7_name ?>" value="1" /><?php } -?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?></td><?php } ?><?php $column_idx++; ?><td +?><?php unset($a7_name); unset($a7_readonly); unset($a7_default); ?><?php unset($a7_default,$a7_readonly,$a7_name) ?></td><?php } ?><?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 $a7_true=$mode=="edit"; ?><?php - if (gettype($a7_true) === '' && gettype($a7_true) === '1') - $a7_tmp_exec = $$a7_true == true; - else - $a7_tmp_exec = $a7_true == true; - $a7_tmp_last_exec = $a7_tmp_exec; - if ( $a7_tmp_exec ) - { -?> -<?php unset($a7_true) ?><?php $a8_present='delete_url'; ?><?php - $a8_tmp_exec = isset($$a8_present); - $a8_tmp_last_exec = $a8_tmp_exec; - if ( $a8_tmp_exec ) - { -?> -<?php unset($a8_present) ?><?php $a9_title='';$a9_target='_self';$a9_url=$delete_url;$a9_class=''; ?><?php +><?php unset($a5_header) ?><?php $a6_title='';$a6_type='post';$a6_class='';$a6_subaction='delacl';$a6_id=$aclid;$a6_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a9_url; -?><a<?php if (isset($a9_name)) echo ' name="'.$a9_name.'"'; else echo ' href="'.$tmp_url.(isset($a9_anchor)?'#'.$a9_anchor:'').'"' ?> class="<?php echo $a9_class ?>" target="<?php echo $a9_target ?>"<?php if (isset($a9_accesskey)) echo ' accesskey="'.$a9_accesskey.'"' ?> title="<?php echo encodeHtml($a9_title) ?>"><?php unset($a9_title,$a9_target,$a9_url,$a9_class) ?><?php $a10_class='text';$a10_key='GLOBAL_DELETE';$a10_escape=true;$a10_cut='both'; ?><?php - $a10_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php - $langF = $a10_escape?'langHtml':'lang'; - $tmp_text = $langF($a10_key); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_key,$a10_escape,$a10_cut) ?></a><?php } ?><?php } ?></td></tr><?php } ?><?php $a4_true=$mode=="edit"; ?><?php - if (gettype($a4_true) === '' && gettype($a4_true) === '1') - $a4_tmp_exec = $$a4_true == true; - else - $a4_tmp_exec = $a4_true == true; - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) + $a6_target = $view; + switch( $a6_type ) { -?> -<?php unset($a4_true) ?><?php $a5_equals='folder';$a5_value=$type; ?><?php - $a5_tmp_exec = $a5_equals == $a5_value; - $a5_tmp_last_exec = $a5_tmp_exec; - if ( $a5_tmp_exec ) - { -?> -<?php unset($a5_equals,$a5_value) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a7_colspan='15'; ?><?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="15" -><?php unset($a7_colspan) ?><?php $a8_title=lang('options'); ?><fieldset><?php if(isset($a8_title)) { ?><legend><?php if(isset($a8_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a8_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a8_title) ?></legend><?php } ?><?php unset($a8_title) ?></fieldset></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a7_colspan='15'; ?><?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="15" -><?php unset($a7_colspan) ?><?php $a8_var='inherit';$a8_value='1'; ?><?php - if (isset($a8_key)) - $$a8_var = $a8_value[$a8_key]; - else - $$a8_var = $a8_value; -?><?php unset($a8_var,$a8_value) ?><?php $a8_class='text';$a8_default='';$a8_type='checkbox';$a8_name='inherit';$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 $a8_for='inherit'; ?><label for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>"><?php unset($a8_for) ?><?php $a9_class='text';$a9_key='inherit_rights';$a9_escape=true;$a9_cut='both'; ?><?php - $a9_title = ''; + 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_subaction,$a6_id,$a6_frame) ?><?php $a7_class='text';$a7_key='GLOBAL_DELETE';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a9_class ?>" title="<?php echo $a9_title ?>"><?php - $langF = $a9_escape?'langHtml':'lang'; - $tmp_text = $langF($a9_key); +?><<?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($a9_class,$a9_key,$a9_escape,$a9_cut) ?></label></td></tr><?php } ?><?php } ?><?php - $row_idx++; - $column_idx = 0; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?></a></td></tr><?php } ?><?php + $column_idx = $last_column_idx; ?> -<tr -> -<?php $a5_class='act';$a5_colspan='15'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> - class="act" - colspan="15" -><?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> -</body> -</html>- \ No newline at end of file +</table>+ \ No newline at end of file diff --git a/themes/default/pages/html/page/changetemplate.tpl.php b/themes/default/pages/html/page/changetemplate.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,236 +14,118 @@ $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 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_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='page_template_old';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?><?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='page_template_old';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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 $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($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_title='';$a6_target='cms_main';$a6_url=$template_url;$a6_class=''; ?><?php +?></<?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_title='';$a5_type='';$a5_target='cms_main';$a5_url=$template_url;$a5_class='';$a5_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a6_url; -?><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_url,$a6_class) ?><?php $a7_align='left';$a7_type='template'; ?><?php - $a7_tmp_image_file = $image_dir.'icon_'.$a7_type.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_align,$a7_type) ?><?php $a7_class='text';$a7_var='template_name';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; + $params[REQ_PARAM_TARGET] = $a5_target; + switch( $a5_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a5_action)?$a5_action:$this->actionName,'subaction'=>!empty($a5_subaction)?$a5_subaction:$this->subActionName,'id'=>!empty($a5_id)?$a5_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($a5_subaction)?$a5_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a5_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a5_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a5_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a5_frame ?>"<?php if (isset($a5_name)) { ?> name="<?php echo $a5_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a5_class ?>"<?php if (isset($a5_accesskey)) echo ' accesskey="'.$a5_accesskey.'"' ?> title="<?php echo encodeHtml($a5_title) ?>"><?php unset($a5_title,$a5_type,$a5_target,$a5_url,$a5_class,$a5_frame) ?><?php $a6_align='left';$a6_type='template'; ?><?php + $a6_tmp_image_file = $image_dir.'icon_'.$a6_type.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_align,$a6_type) ?><?php $a6_class='text';$a6_var='template_name';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_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'); +?><<?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($a7_class,$a7_var,$a7_escape,$a7_cut) ?></a></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='page_template_new';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?></a></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='page_template_new';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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 $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($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='templates';$a6_name='templateid';$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; +?></<?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_list='templates';$a5_name='templateid';$a5_onchange='';$a5_title='';$a5_class='focus';$a5_addempty=false;$a5_multiple=false;$a5_size='1';$a5_lang=false; ?><?php +$a5_readonly=false; +$a5_tmp_list = $$a5_list; if ($this->isEditable() && !$this->isEditMode()) { - echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; + echo empty($$a5_name)?'- '.lang('EMPTY').' -':$a5_tmp_list[$$a5_name]; } else { -if ( $a6_addempty!==FALSE ) +if ( $a5_addempty!==FALSE ) { - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; + if ($a5_addempty===TRUE) + $a5_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a5_tmp_list; else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_tmp_list; + $a5_tmp_list = array(''=>'- '.lang($a5_addempty).' -')+$a5_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 ($a5_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a5_name ?>" name="<?php echo $a5_name; if ($a5_multiple) echo '[]'; ?>" onchange="<?php echo $a5_onchange ?>" title="<?php echo $a5_title ?>" class="<?php echo $a5_class ?>"<?php +if (count($$a5_list)<=1) echo ' disabled="disabled"'; +if ($a5_multiple) echo ' multiple="multiple"'; +if (in_array($a5_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($a5_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($$a5_name) && isset($a5_tmp_list[$$a5_name]) ) + $a5_tmp_default = $$a5_name; + elseif ( isset($a5_default) ) + $a5_tmp_default = $a5_default; else - $a6_tmp_default = ''; - foreach( $a6_tmp_list as $box_key=>$box_value ) + $a5_tmp_default = ''; + foreach( $a5_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -283,7 +133,7 @@ echo ' size="'.intval($a6_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a6_lang ) + elseif( $a5_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -292,55 +142,13 @@ 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="'.$a5_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a5_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($$a5_list)==0) echo '<input type="hidden" name="'.$a5_name.'" value="" />'; +if (count($$a5_list)==1) echo '<input type="hidden" name="'.$a5_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_next'; ?><?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='templateid'; ?><?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($a5_list,$a5_name,$a5_onchange,$a5_title,$a5_class,$a5_addempty,$a5_multiple,$a5_size,$a5_lang) ?></div></div></form> diff --git a/themes/default/pages/html/page/changetemplateselectelements.tpl.php b/themes/default/pages/html/page/changetemplateselectelements.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,216 +14,87 @@ $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='newTemplateId';$a3_default='newTemplateId'; ?><?php -if (isset($$a3_name)) - $a3_tmp_value = $$a3_name; -elseif ( isset($a3_default) ) - $a3_tmp_value = $a3_default; -else - $a3_tmp_value = ""; -?><input type="hidden" name="<?php echo $a3_name ?>" value="<?php echo $a3_tmp_value ?>" /><?php unset($a3_name,$a3_default) ?><?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 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_width,$a3_rowclasses,$a3_columnclasses) ?><?php $a4_list='elements';$a4_extract=true;$a4_key='list_key';$a4_value='list_value'; ?><?php - $a4_list_tmp_key = $a4_key; - $a4_list_tmp_value = $a4_value; - $a4_list_extract = $a4_extract; - unset($a4_key); - unset($a4_value); - if ( !isset($$a4_list) || !is_array($$a4_list) ) - $$a4_list = array(); - foreach( $$a4_list as $$a4_list_tmp_key => $$a4_list_tmp_value ) +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><?php $a3_list='elements';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php + $a3_list_tmp_key = $a3_key; + $a3_list_tmp_value = $a3_value; + $a3_list_extract = $a3_extract; + unset($a3_key); + unset($a3_value); + if ( !isset($$a3_list) || !is_array($$a3_list) ) + $$a3_list = array(); + foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) { - if ( $a4_list_extract ) + if ( $a3_list_extract ) { - if ( !is_array($$a4_list_tmp_value) ) + if ( !is_array($$a3_list_tmp_value) ) { - print_r($$a4_list_tmp_value); - die( 'not an array at key: '.$$a4_list_tmp_key ); + print_r($$a3_list_tmp_value); + die( 'not an array at key: '.$$a3_list_tmp_key ); } - extract($$a4_list_tmp_value); + extract($$a3_list_tmp_value); } -?><?php unset($a4_list,$a4_extract,$a4_key,$a4_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 $a7_class='text';$a7_var='name';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?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_var='name';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_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'); +?><<?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($a7_class,$a7_var,$a7_escape,$a7_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 $a7_list='newElementsList';$a7_name=$newElementsName;$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 echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_list='newElementsList';$a6_name=$newElementsName;$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; if ($this->isEditable() && !$this->isEditMode()) { - echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; + echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; } else { -if ( $a7_addempty!==FALSE ) +if ( $a6_addempty!==FALSE ) { - if ($a7_addempty===TRUE) - $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; + if ($a6_addempty===TRUE) + $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; else - $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_tmp_list; + $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_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 ($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).'"'; ?>><?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($$a6_name) && isset($a6_tmp_list[$$a6_name]) ) + $a6_tmp_default = $$a6_name; + elseif ( isset($a6_default) ) + $a6_tmp_default = $a6_default; else - $a7_tmp_default = ''; - foreach( $a7_tmp_list as $box_key=>$box_value ) + $a6_tmp_default = ''; + foreach( $a6_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -263,7 +102,7 @@ echo ' size="'.intval($a7_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a7_lang ) + elseif( $a6_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -272,49 +111,13 @@ 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="'.$a6_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a6_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($$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($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?></td></tr><?php } ?><?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> -</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><?php } ?></form> diff --git a/themes/default/pages/html/page/el.tpl.php b/themes/default/pages/html/page/el.tpl.php @@ -1,149 +1,11 @@ -<?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_title='TEMPLATE_ELEMENTS';$a2_name='x';$a2_widths='30%,50%,20%';$a2_width='93%';$a2_rowclasses='odd,even';$a2_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$actionName; - $coldumn_widths = explode(',',$a2_widths); - $row_classes = explode(',',$a2_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a2_columnclasses); - $row_idx = 0; +<?php $a2_width='100%';$a2_space='0px';$a2_padding='0px'; ?><?php + $last_column_idx = @$column_idx; $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="'.$a2_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($a2_title,$a2_name,$a2_widths,$a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php $a3_not='';$a3_empty='el'; ?><?php + $coloumn_widths = array(); + $row_classes = array(); + $column_classes = array(); +?><table class="%class%" cellspacing="0px" width="100%" cellpadding="0px"> +<?php unset($a2_width,$a2_space,$a2_padding) ?><?php $a3_not='';$a3_empty='el'; ?><?php if ( !isset($$a3_empty) ) $a3_tmp_exec = empty($a3_empty); elseif ( is_array($$a3_empty) ) @@ -158,18 +20,17 @@ { ?> <?php unset($a3_not,$a3_empty) ?><?php $a4_class='headline'; ?><?php - $row_idx++; $column_idx = 0; ?> <tr class="headline" > -<?php unset($a4_class) ?><?php $a5_class='help'; ?><?php $column_idx++; ?><td +<?php unset($a4_class) ?><?php $a5_class='help';$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="help" -><?php unset($a5_class) ?><?php $a6_class='text';$a6_text='PAGE_ELEMENT_NAME';$a6_escape=true;$a6_cut='both'; ?><?php +><?php unset($a5_class,$a5_header) ?><?php $a6_class='text';$a6_text='PAGE_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 @@ -178,12 +39,12 @@ $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='help'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $a5_class='help';$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="help" -><?php unset($a5_class) ?><?php $a6_class='text';$a6_text='PAGE_ELEMENT_VALUE';$a6_escape=true;$a6_cut='both'; ?><?php +><?php unset($a5_class,$a5_header) ?><?php $a6_class='text';$a6_text='PAGE_ELEMENT_VALUE';$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 @@ -192,12 +53,12 @@ $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='help'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $a5_class='help';$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="help" -><?php unset($a5_class) ?><?php $a6_class='text';$a6_text='GLOBAL_ARCHIVE';$a6_escape=true;$a6_cut='both'; ?><?php +><?php unset($a5_class,$a5_header) ?><?php $a6_class='text';$a6_text='GLOBAL_ARCHIVE';$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 @@ -220,19 +81,18 @@ { ?> <?php unset($a3_empty) ?><?php - $row_idx++; $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='GLOBAL_NOT_FOUND';$a6_escape=true;$a6_cut='both'; ?><?php +><?php unset($a5_header) ?><?php $a6_class='text';$a6_text='GLOBAL_NOT_FOUND';$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 @@ -261,28 +121,51 @@ extract($$a3_list_tmp_value); } ?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php $a4_class='data'; ?><?php - $row_idx++; $column_idx = 0; ?> <tr class="data" > -<?php unset($a4_class) ?><?php $column_idx++; ?><td +<?php unset($a4_class) ?><?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_title=$desc;$a6_target='_self';$a6_url=$url;$a6_class=''; ?><?php +><?php unset($a5_header) ?><?php $a6_title=$desc;$a6_type='';$a6_url=$url;$a6_class='';$a6_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a6_url; -?><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_url,$a6_class) ?><?php $a7_align='left';$a7_elementtype=$type; ?><?php + $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_url,$a6_class,$a6_frame) ?><?php $a7_align='left';$a7_elementtype=$type; ?><?php $a7_tmp_image_file = $image_dir.'icon_el_'.$a7_elementtype.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_align,$a7_elementtype) ?><?php $a7_class='text';$a7_var='name';$a7_escape=true;$a7_cut='both'; ?><?php +?><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_align,$a7_elementtype) ?><?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 $a7_class ?>" title="<?php echo $a7_title ?>"><?php @@ -291,14 +174,14 @@ $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) ?></a></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_escape,$a7_cut) ?></a></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='value';$a6_escape=true;$a6_cut='both'; ?><?php +><?php unset($a5_header) ?><?php $a6_class='text';$a6_var='value';$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 @@ -316,24 +199,48 @@ $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) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_raw,$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_present='archive_url'; ?><?php +><?php unset($a5_header) ?><?php $a6_present='archive_url'; ?><?php $a6_tmp_exec = isset($$a6_present); $a6_tmp_last_exec = $a6_tmp_exec; if ( $a6_tmp_exec ) { ?> -<?php unset($a6_present) ?><?php $a7_title=lang('GLOBAL_ARCHIVE_DESC');$a7_target='_self';$a7_url=$archive_url;$a7_class=''; ?><?php +<?php unset($a6_present) ?><?php $a7_title=lang('GLOBAL_ARCHIVE_DESC');$a7_type='';$a7_url=$archive_url;$a7_class='';$a7_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a7_url; -?><a<?php if (isset($a7_name)) echo ' name="'.$a7_name.'"'; else echo ' href="'.$tmp_url.(isset($a7_anchor)?'#'.$a7_anchor:'').'"' ?> class="<?php echo $a7_class ?>" target="<?php echo $a7_target ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_target,$a7_url,$a7_class) ?><?php $a8_class='text';$a8_text='GLOBAL_ARCHIVE';$a8_escape=true;$a8_cut='both'; ?><?php + $a7_target = $view; + switch( $a7_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a7_action)?$a7_action:$this->actionName,'subaction'=>!empty($a7_subaction)?$a7_subaction:$this->subActionName,'id'=>!empty($a7_id)?$a7_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($a7_subaction)?$a7_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a7_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a7_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a7_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a7_frame ?>"<?php if (isset($a7_name)) { ?> name="<?php echo $a7_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a7_class ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_type,$a7_url,$a7_class,$a7_frame) ?><?php $a8_class='text';$a8_text='GLOBAL_ARCHIVE';$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 @@ -383,18 +290,17 @@ unset($a5_tmp_last_exec) ?><?php $a6_var='archive_url'; ?><?php if (!isset($a6_value)) unset($$a6_var); ?><?php unset($a6_var) ?></td></tr><?php } ?><?php - $row_idx++; $column_idx = 0; ?> <tr > -<?php $a4_class='help';$a4_colspan='3'; ?><?php $column_idx++; ?><td +<?php $a4_class='help';$a4_colspan='3';$a4_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" colspan="3" -><?php unset($a4_class,$a4_colspan) ?><?php $a5_class='text';$a5_text='PAGE_ELEMENTS_DESC';$a5_escape=true;$a5_cut='both'; ?><?php +><?php unset($a4_class,$a4_colspan,$a4_header) ?><?php $a5_class='text';$a5_text='PAGE_ELEMENTS_DESC';$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 @@ -404,39 +310,43 @@ unset($a5_tmp_last_exec) ?><?php $a6_var='archive_url'; ?><?php echo $tmp_text; unset($tmp_text); ?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_text,$a5_escape,$a5_cut) ?></td></tr><?php - $row_idx++; - $column_idx = 0; + $column_idx = $last_column_idx; ?> -<tr -> -<?php $a4_colspan='3'; ?><?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="3" -><?php unset($a4_colspan) ?><?php $a5_class='text';$a5_raw='_';$a5_escape=true;$a5_cut='both'; ?><?php - $a5_title = ''; +</table><?php $a2_title=lang('menu_page_form_desc');$a2_type='';$a2_class='action';$a2_action='page';$a2_subaction='form';$a2_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $a2_target = $view; + switch( $a2_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a2_action)?$a2_action:$this->actionName,'subaction'=>!empty($a2_subaction)?$a2_subaction:$this->subActionName,'id'=>!empty($a2_id)?$a2_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($a2_subaction)?$a2_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a2_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a2_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a2_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a2_frame ?>"<?php if (isset($a2_name)) { ?> name="<?php echo $a2_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a2_class ?>"<?php if (isset($a2_accesskey)) echo ' accesskey="'.$a2_accesskey.'"' ?> title="<?php echo encodeHtml($a2_title) ?>"><?php unset($a2_title,$a2_type,$a2_class,$a2_action,$a2_subaction,$a2_frame) ?><?php $a3_class='text';$a3_key='menu_page_form';$a3_escape=true;$a3_cut='both'; ?><?php + $a3_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 = str_replace('_','&nbsp;',$a5_raw); +?><<?php echo $tmp_tag ?> class="<?php echo $a3_class ?>" title="<?php echo $a3_title ?>"><?php + $langF = $a3_escape?'langHtml':'lang'; + $tmp_text = $langF($a3_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_raw,$a5_escape,$a5_cut) ?></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 } ?> -</body> -</html>- \ No newline at end of file +?></<?php echo $tmp_tag ?>><?php unset($a3_class,$a3_key,$a3_escape,$a3_cut) ?></a>+ \ No newline at end of file diff --git a/themes/default/pages/html/page/form.tpl.php b/themes/default/pages/html/page/form.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_title='TEMPLATE_ELEMENTS';$a3_name='TEMPLATE_ELEMENTS';$a3_widths='30%,5%,65%';$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_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,71 +84,71 @@ $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_widths,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $a4_empty='el'; ?><?php - if ( !isset($$a4_empty) ) - $a4_tmp_exec = empty($a4_empty); - elseif ( is_array($$a4_empty) ) - $a4_tmp_exec = (count($$a4_empty)==0); - elseif ( is_bool($$a4_empty) ) - $a4_tmp_exec = true; +<div class="content"><div class="filler"> +<?php } ?><?php unset($a4_width,$a4_rowclasses,$a4_columnclasses) ?><?php $a5_width='100%';$a5_space='0px';$a5_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($a5_width,$a5_space,$a5_padding) ?><?php $a6_empty='el'; ?><?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 - $a4_tmp_exec = empty( $$a4_empty ); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) + $a6_tmp_exec = empty( $$a6_empty ); + $a6_tmp_last_exec = $a6_tmp_exec; + if ( $a6_tmp_exec ) { ?> -<?php unset($a4_empty) ?><?php - $row_idx++; +<?php unset($a6_empty) ?><?php $column_idx = 0; ?> <tr > -<?php $a6_colspan='4'; ?><?php $column_idx++; ?><td +<?php $a8_colspan='4';$a8_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -200,206 +156,205 @@ class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="4" -><?php unset($a6_colspan) ?><?php $a7_class='text';$a7_text='GLOBAL_NOT_FOUND';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a8_colspan,$a8_header) ?><?php $a9_class='text';$a9_text='GLOBAL_NOT_FOUND';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_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 $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($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td></tr><?php } ?><?php $a4_not='';$a4_empty='el'; ?><?php - if ( !isset($$a4_empty) ) - $a4_tmp_exec = empty($a4_empty); - elseif ( is_array($$a4_empty) ) - $a4_tmp_exec = (count($$a4_empty)==0); - elseif ( is_bool($$a4_empty) ) - $a4_tmp_exec = true; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?></td></tr><?php } ?><?php $a6_not='';$a6_empty='el'; ?><?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 - $a4_tmp_exec = empty( $$a4_empty ); - $a4_tmp_exec = !$a4_tmp_exec; - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) + $a6_tmp_exec = empty( $$a6_empty ); + $a6_tmp_exec = !$a6_tmp_exec; + $a6_tmp_last_exec = $a6_tmp_exec; + if ( $a6_tmp_exec ) { ?> -<?php unset($a4_not,$a4_empty) ?><?php - $row_idx++; +<?php unset($a6_not,$a6_empty) ?><?php $column_idx = 0; ?> <tr > -<?php $a6_class='help'; ?><?php $column_idx++; ?><td +<?php $a8_class='help';$a8_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='PAGE_ELEMENT_NAME';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a8_class,$a8_header) ?><?php $a9_class='text';$a9_text='PAGE_ELEMENT_NAME';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_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 $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($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $a6_class='help'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?></td><?php $a8_class='help';$a8_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='GLOBAL_CHANGE';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a8_class,$a8_header) ?><?php $a9_class='text';$a9_text='GLOBAL_CHANGE';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_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 $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($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $a6_class='help'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?></td><?php $a8_class='help';$a8_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='GLOBAL_VALUE';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a8_class,$a8_header) ?><?php $a9_class='text';$a9_text='GLOBAL_VALUE';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_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 $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($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td></tr><?php $a5_list='el';$a5_extract=true;$a5_key='list_key';$a5_value='list_value'; ?><?php - $a5_list_tmp_key = $a5_key; - $a5_list_tmp_value = $a5_value; - $a5_list_extract = $a5_extract; - unset($a5_key); - unset($a5_value); - if ( !isset($$a5_list) || !is_array($$a5_list) ) - $$a5_list = array(); - foreach( $$a5_list as $$a5_list_tmp_key => $$a5_list_tmp_value ) +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?></td></tr><?php $a7_list='el';$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 ( $a5_list_extract ) + if ( $a7_list_extract ) { - if ( !is_array($$a5_list_tmp_value) ) + if ( !is_array($$a7_list_tmp_value) ) { - print_r($$a5_list_tmp_value); - die( 'not an array at key: '.$$a5_list_tmp_key ); + print_r($$a7_list_tmp_value); + die( 'not an array at key: '.$$a7_list_tmp_key ); } - extract($$a5_list_tmp_value); + extract($$a7_list_tmp_value); } -?><?php unset($a5_list,$a5_extract,$a5_key,$a5_value) ?><?php $a6_class='data'; ?><?php - $row_idx++; +?><?php unset($a7_list,$a7_extract,$a7_key,$a7_value) ?><?php $a8_class='data'; ?><?php $column_idx = 0; ?> <tr class="data" > -<?php unset($a6_class) ?><?php $column_idx++; ?><td +<?php unset($a8_class) ?><?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 $a8_for=$saveid; ?><label for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>"><?php unset($a8_for) ?><?php $a9_align='left';$a9_elementtype=$type; ?><?php - $a9_tmp_image_file = $image_dir.'icon_el_'.$a9_elementtype.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_align,$a9_elementtype) ?><?php $a9_class='text';$a9_var='name';$a9_escape=true;$a9_cut='both'; ?><?php - $a9_title = ''; +><?php unset($a9_header) ?><?php $a10_for=$saveid; ?><label<?php if (isset($a10_for)) { ?> for="id_<?php echo $a10_for ?><?php if (!empty($a10_value)) echo '_'.$a10_value ?>" class="label"<?php } ?>> +<?php if (isset($a10_key)) { echo lang($a10_key); if(hasLang($a10_key.'_desc')) { ?><div class="description"><?php echo lang($a10_key.'_desc')?></div> <?php } } ?><?php unset($a10_for) ?><?php $a11_align='left';$a11_elementtype=$type; ?><?php + $a11_tmp_image_file = $image_dir.'icon_el_'.$a11_elementtype.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_elementtype) ?><?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 $a9_class ?>" title="<?php echo $a9_title ?>"><?php - $langF = $a9_escape?'langHtml':'lang'; - $tmp_text = isset($$a9_var)?$$a9_var:$langF('UNKNOWN'); +?><<?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($a9_class,$a9_var,$a9_escape,$a9_cut) ?></label></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_var,$a11_escape,$a11_cut) ?></label></td><?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 $a8_default=false;$a8_readonly=false;$a8_name=$saveid; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; - if ( isset($$a8_name) ) - $checked = $$a8_name; +><?php unset($a9_header) ?><?php $a10_default=false;$a10_readonly=false;$a10_name=$saveid; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a10_readonly=true; + if ( isset($$a10_name) ) + $checked = $$a10_name; else - $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 ) + $checked = $a10_default; +?><input class="checkbox" type="checkbox" id="id_<?php echo $a10_name ?>" name="<?php echo $a10_name ?>" <?php if ($a10_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?><?php if (in_array($a10_name,$errors)) echo ' style="background-color:red;"' ?> /><?php +if ( $a10_readonly && $checked ) { -?><input type="hidden" name="<?php echo $a8_name ?>" value="1" /><?php +?><input type="hidden" name="<?php echo $a10_name ?>" value="1" /><?php } -?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?></td><?php $column_idx++; ?><td +?><?php unset($a10_name); unset($a10_readonly); unset($a10_default); ?><?php unset($a10_default,$a10_readonly,$a10_name) ?></td><?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 $a8_value=$type;$a8_contains='text,date,number'; ?><?php - $a8_tmp_exec = in_array($a8_value,explode(',',$a8_contains)); - $a8_tmp_last_exec = $a8_tmp_exec; - if ( $a8_tmp_exec ) +><?php unset($a9_header) ?><?php $a10_value=$type;$a10_contains='text,date,number'; ?><?php + $a10_tmp_exec = in_array($a10_value,explode(',',$a10_contains)); + $a10_tmp_last_exec = $a10_tmp_exec; + if ( $a10_tmp_exec ) { ?> -<?php unset($a8_value,$a8_contains) ?><?php $a9_class='text';$a9_default=$value;$a9_type='text';$a9_index=true;$a9_name=$id;$a9_size='40';$a9_maxlength='255';$a9_onchange='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 ?>" size="<?php echo $a9_size ?>" maxlength="<?php echo $a9_maxlength ?>" class="<?php echo $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 { ?><span class="<?php echo $a9_class ?>"><?php echo $tmp_value ?></span><?php } ?><?php unset($a9_class,$a9_default,$a9_type,$a9_index,$a9_name,$a9_size,$a9_maxlength,$a9_onchange,$a9_readonly) ?><?php } ?><?php $a8_equals='longtext';$a8_value=$type; ?><?php - $a8_tmp_exec = $a8_equals == $a8_value; - $a8_tmp_last_exec = $a8_tmp_exec; - if ( $a8_tmp_exec ) +<?php unset($a10_value,$a10_contains) ?><?php $a11_class='text';$a11_default=$value;$a11_type='text';$a11_index=true;$a11_name=$id;$a11_size='40';$a11_maxlength='255';$a11_onchange='onchange';$a11_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a11_readonly=true; + if ($a11_readonly && empty($$a11_name)) $$a11_name = '- '.lang('EMPTY').' -'; + if(!isset($a11_default)) $a11_default=''; + $tmp_value = Text::encodeHtml(isset($$a11_name)?$$a11_name:$a11_default); +?><?php if (!$a11_readonly || $a11_type=='hidden') { +?><input<?php if ($a11_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a11_name ?><?php if ($a11_readonly) echo '_disabled' ?>" name="<?php echo $a11_name ?><?php if ($a11_readonly) echo '_disabled' ?>" type="<?php echo $a11_type ?>" maxlength="<?php echo $a11_maxlength ?>" class="<?php echo str_replace(',',' ',$a11_class) ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a11_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php +if ($a11_readonly) { +?><input type="hidden" id="id_<?php echo $a11_name ?>" name="<?php echo $a11_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 $a11_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a11_class,$a11_default,$a11_type,$a11_index,$a11_name,$a11_size,$a11_maxlength,$a11_onchange,$a11_readonly) ?><?php } ?><?php $a10_equals='longtext';$a10_value=$type; ?><?php + $a10_tmp_exec = $a10_equals == $a10_value; + $a10_tmp_last_exec = $a10_tmp_exec; + if ( $a10_tmp_exec ) { ?> -<?php unset($a8_equals,$a8_value) ?><?php $a9_name=$id;$a9_rows='7';$a9_cols='50';$a9_index=true;$a9_onchange='onchange';$a9_class='inputarea';$a9_default=$value; ?><?php if ($this->isEditMode()) { -?><textarea class="<?php echo $a9_class ?>" name="<?php echo $a9_name ?>" rows="<?php echo $a9_rows ?>" cols="<?php echo $a9_cols ?>"><?php echo htmlentities(isset($$a9_name)?$$a9_name:$a9_default) ?></textarea><?php +<?php unset($a10_equals,$a10_value) ?><?php $a11_name=$id;$a11_rows='7';$a11_cols='50';$a11_index=true;$a11_onchange='onchange';$a11_class='inputarea';$a11_default=$value; ?><?php if ($this->isEditMode()) { +?><textarea class="<?php echo $a11_class ?>" name="<?php echo $a11_name ?>" rows="<?php echo $a11_rows ?>" cols="<?php echo $a11_cols ?>"><?php echo htmlentities(isset($$a11_name)?$$a11_name:$a11_default) ?></textarea><?php } else { -?><span class="<?php echo $a9_class ?>"><?php echo isset($$a9_name)?$$a9_name:$a9_default ?></span><?php } ?><?php unset($a9_name,$a9_rows,$a9_cols,$a9_index,$a9_onchange,$a9_class,$a9_default) ?><?php } ?><?php $a8_value=$type;$a8_contains='select,link,list'; ?><?php - $a8_tmp_exec = in_array($a8_value,explode(',',$a8_contains)); - $a8_tmp_last_exec = $a8_tmp_exec; - if ( $a8_tmp_exec ) +?><span class="<?php echo $a11_class ?>"><?php echo isset($$a11_name)?$$a11_name:$a11_default ?></span><?php } ?><?php unset($a11_name,$a11_rows,$a11_cols,$a11_index,$a11_onchange,$a11_class,$a11_default) ?><?php } ?><?php $a10_value=$type;$a10_contains='select,link,list'; ?><?php + $a10_tmp_exec = in_array($a10_value,explode(',',$a10_contains)); + $a10_tmp_last_exec = $a10_tmp_exec; + if ( $a10_tmp_exec ) { ?> -<?php unset($a8_value,$a8_contains) ?><?php $a9_list='list';$a9_name=$id;$a9_default=$value;$a9_onchange='';$a9_title='';$a9_class='';$a9_addempty=false;$a9_multiple=false;$a9_size='1';$a9_lang=false; ?><?php -$a9_readonly=false; -$a9_tmp_list = $$a9_list; +<?php unset($a10_value,$a10_contains) ?><?php $a11_list='list';$a11_name=$id;$a11_default=$value;$a11_onchange='';$a11_title='';$a11_class='';$a11_addempty=false;$a11_multiple=false;$a11_size='1';$a11_lang=false; ?><?php +$a11_readonly=false; +$a11_tmp_list = $$a11_list; if ($this->isEditable() && !$this->isEditMode()) { - echo empty($$a9_name)?'- '.lang('EMPTY').' -':$a9_tmp_list[$$a9_name]; + echo empty($$a11_name)?'- '.lang('EMPTY').' -':$a11_tmp_list[$$a11_name]; } else { -if ( $a9_addempty!==FALSE ) +if ( $a11_addempty!==FALSE ) { - if ($a9_addempty===TRUE) - $a9_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a9_tmp_list; + if ($a11_addempty===TRUE) + $a11_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a11_tmp_list; else - $a9_tmp_list = array(''=>'- '.lang($a9_addempty).' -')+$a9_tmp_list; + $a11_tmp_list = array(''=>'- '.lang($a11_addempty).' -')+$a11_tmp_list; } -?><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).'"'; +?><select<?php if ($a11_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a11_name ?>" name="<?php echo $a11_name; if ($a11_multiple) echo '[]'; ?>" onchange="<?php echo $a11_onchange ?>" title="<?php echo $a11_title ?>" class="<?php echo $a11_class ?>"<?php +if (count($$a11_list)<=1) echo ' disabled="disabled"'; +if ($a11_multiple) echo ' multiple="multiple"'; +if (in_array($a11_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($a11_size).'"'; ?>><?php - if ( isset($$a9_name) && isset($a9_tmp_list[$$a9_name]) ) - $a9_tmp_default = $$a9_name; - elseif ( isset($a9_default) ) - $a9_tmp_default = $a9_default; + if ( isset($$a11_name) && isset($a11_tmp_list[$$a11_name]) ) + $a11_tmp_default = $$a11_name; + elseif ( isset($a11_default) ) + $a11_tmp_default = $a11_default; else - $a9_tmp_default = ''; - foreach( $a9_tmp_list as $box_key=>$box_value ) + $a11_tmp_default = ''; + foreach( $a11_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -407,7 +362,7 @@ echo ' size="'.intval($a9_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a9_lang ) + elseif( $a11_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -416,62 +371,25 @@ echo ' size="'.intval($a9_size).'"'; { $box_title = ''; } - echo '<option class="'.$a9_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ((string)$box_key==$a9_tmp_default) + echo '<option class="'.$a11_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a11_tmp_default) echo ' selected="selected"'; echo '>'.$box_value.'</option>'; } ?></select><?php -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.'" />'; +if (count($$a11_list)==0) echo '<input type="hidden" name="'.$a11_name.'" value="" />'; +if (count($$a11_list)==1) echo '<input type="hidden" name="'.$a11_name.'" value="'.$box_key.'" />'; } -?><?php unset($a9_list,$a9_name,$a9_default,$a9_onchange,$a9_title,$a9_class,$a9_addempty,$a9_multiple,$a9_size,$a9_lang) ?><?php } ?></td></tr><?php } ?><?php $a5_present='release'; ?><?php - $a5_tmp_exec = isset($$a5_present); - $a5_tmp_last_exec = $a5_tmp_exec; - if ( $a5_tmp_exec ) - { +?><?php unset($a11_list,$a11_name,$a11_default,$a11_onchange,$a11_title,$a11_class,$a11_addempty,$a11_multiple,$a11_size,$a11_lang) ?><?php } ?></td></tr><?php } ?><?php } ?><?php + $column_idx = $last_column_idx; ?> -<?php unset($a5_present) ?><?php $a6_present='publish'; ?><?php +</table><?php $a5_title=lang('options'); ?><fieldset><?php if(isset($a5_title)) { ?><legend><?php if(isset($a5_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a5_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a5_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a5_title) ?><?php $a6_present='release'; ?><?php $a6_tmp_exec = isset($$a6_present); $a6_tmp_last_exec = $a6_tmp_exec; if ( $a6_tmp_exec ) { ?> -<?php unset($a6_present) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a8_colspan='3'; ?><?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="3" -><?php unset($a8_colspan) ?><?php $a9_title=lang('options'); ?><fieldset><?php if(isset($a9_title)) { ?><legend><?php if(isset($a9_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a9_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a9_title) ?></legend><?php } ?><?php unset($a9_title) ?></fieldset></td></tr><?php } ?><?php } ?><?php $a5_present='release'; ?><?php - $a5_tmp_exec = isset($$a5_present); - $a5_tmp_last_exec = $a5_tmp_exec; - if ( $a5_tmp_exec ) - { -?> -<?php unset($a5_present) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a7_colspan='3'; ?><?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="3" -><?php unset($a7_colspan) ?><?php $a8_default=false;$a8_readonly=false;$a8_name='release'; ?><?php +<?php unset($a6_present) ?><div><?php $a8_default=false;$a8_readonly=false;$a8_name='release'; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; if ( isset($$a8_name) ) $checked = $$a8_name; @@ -482,7 +400,8 @@ if ( $a8_readonly && $checked ) { ?><input type="hidden" name="<?php echo $a8_name ?>" value="1" /><?php } -?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?><?php $a8_for='release'; ?><label for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>"><?php unset($a8_for) ?><?php $a9_class='text';$a9_raw='_';$a9_escape=true;$a9_cut='both'; ?><?php +?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?><?php $a8_for='release'; ?><label<?php if (isset($a8_for)) { ?> for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>" class="label"<?php } ?>> +<?php if (isset($a8_key)) { echo lang($a8_key); if(hasLang($a8_key.'_desc')) { ?><div class="description"><?php echo lang($a8_key.'_desc')?></div> <?php } } ?><?php unset($a8_for) ?><?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 $a9_class ?>" title="<?php echo $a9_title ?>"><?php @@ -500,27 +419,13 @@ if ( $a8_readonly && $checked ) $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?></label></td></tr><?php } ?><?php $a5_present='publish'; ?><?php - $a5_tmp_exec = isset($$a5_present); - $a5_tmp_last_exec = $a5_tmp_exec; - if ( $a5_tmp_exec ) +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?></label></div><?php } ?><?php $a6_present='publish'; ?><?php + $a6_tmp_exec = isset($$a6_present); + $a6_tmp_last_exec = $a6_tmp_exec; + if ( $a6_tmp_exec ) { ?> -<?php unset($a5_present) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a7_colspan='3'; ?><?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="3" -><?php unset($a7_colspan) ?><?php $a8_default=false;$a8_readonly=false;$a8_name='publish'; ?><?php +<?php unset($a6_present) ?><div><?php $a8_default=false;$a8_readonly=false;$a8_name='publish'; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; if ( isset($$a8_name) ) $checked = $$a8_name; @@ -531,7 +436,8 @@ if ( $a8_readonly && $checked ) { ?><input type="hidden" name="<?php echo $a8_name ?>" value="1" /><?php } -?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?><?php $a8_for='publish'; ?><label for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>"><?php unset($a8_for) ?><?php $a9_class='text';$a9_raw='_';$a9_escape=true;$a9_cut='both'; ?><?php +?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?><?php $a8_for='publish'; ?><label<?php if (isset($a8_for)) { ?> for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>" class="label"<?php } ?>> +<?php if (isset($a8_key)) { echo lang($a8_key); if(hasLang($a8_key.'_desc')) { ?><div class="description"><?php echo lang($a8_key.'_desc')?></div> <?php } } ?><?php unset($a8_for) ?><?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 $a9_class ?>" title="<?php echo $a9_title ?>"><?php @@ -549,33 +455,38 @@ if ( $a8_readonly && $checked ) $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?></label></td></tr><?php } ?><?php - $row_idx++; - $column_idx = 0; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?></label></div><?php } ?></fieldset><?php $a5_type='ok';$a5_class='ok';$a5_value='ok';$a5_text='button_ok'; ?><div class="invisible"> +<?php + if ($this->isEditable() && !$this->isEditMode() && !readonly() ) + { + $a5_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 + { + $a5_type = 'submit'; + } + $a5_tmp_src = ''; + if ( !empty($a5_type)) { ?> -<tr -> -<?php $a6_class='act';$a6_colspan='3'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> - class="act" - colspan="3" -><?php unset($a6_class,$a6_colspan) ?><?php $a7_type='ok';$a7_class='ok';$a7_value='ok';$a7_text='button_ok'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) - $a7_text = 'MODE_EDIT'; - $a7_type = 'submit'; - if ( $this->isEditable() && readonly() ) - $a7_type = ''; // Knopf nicht anzeigen - $a7_src = ''; - if ( !empty($a7_type) ) { -?><input type="<?php echo $a7_type ?>"<?php if(isset($a7_src)) { ?> src="<?php echo $image_dir.'icon_'.$a7_src.IMG_ICON_EXT ?>"<?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 } -?><?php unset($a7_type,$a7_class,$a7_value,$a7_text) ?></td></tr><?php } ?> </table> - </td> - </tr> -</table> -</center> +<input type="<?php echo $a5_type ?>"<?php if(isset($a5_src)) { ?> src="<?php $a5_tmp_src ?>"<?php } ?> name="<?php echo $a5_value ?>" class="ok" title="<?php echo lang($a5_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a5_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a5_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($a5_type,$a5_class,$a5_value,$a5_text) ?><?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/> @@ -583,6 +494,4 @@ if ( $a8_readonly && $checked ) <?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/page/info.tpl.php b/themes/default/pages/html/page/info.tpl.php @@ -0,0 +1,493 @@ +<?php $a2_name='';$a2_views='changetemplate';$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) ?><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='text';$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='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='description';$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_false=$mode=="edit"; ?><?php + if (gettype($a3_false) === '' && gettype($a3_false) === '1') + $a3_tmp_exec = $$a3_false == false; + else + $a3_tmp_exec = $a3_false == false; + $a3_tmp_last_exec = $a3_tmp_exec; + if ( $a3_tmp_exec ) + { +?> +<?php unset($a3_false) ?><?php $a4_title=lang('additional_info'); ?><fieldset><?php if(isset($a4_title)) { ?><legend><?php if(isset($a4_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a4_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a4_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a4_title) ?><?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='full_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='global_full_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='filename';$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) ?></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) ?><?php $a7_for='template_name'; ?><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='global_template';$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_present='template_url'; ?><?php + $a7_tmp_exec = isset($$a7_present); + $a7_tmp_last_exec = $a7_tmp_exec; + if ( $a7_tmp_exec ) + { +?> +<?php unset($a7_present) ?><?php $a8_title='';$a8_type='';$a8_target='cms_main';$a8_url=$template_url;$a8_class='';$a8_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $params[REQ_PARAM_TARGET] = $a8_target; + switch( $a8_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a8_action)?$a8_action:$this->actionName,'subaction'=>!empty($a8_subaction)?$a8_subaction:$this->subActionName,'id'=>!empty($a8_id)?$a8_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($a8_subaction)?$a8_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a8_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a8_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a8_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a8_frame ?>"<?php if (isset($a8_name)) { ?> name="<?php echo $a8_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a8_class ?>"<?php if (isset($a8_accesskey)) echo ' accesskey="'.$a8_accesskey.'"' ?> title="<?php echo encodeHtml($a8_title) ?>"><?php unset($a8_title,$a8_type,$a8_target,$a8_url,$a8_class,$a8_frame) ?><?php $a9_icon='template';$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_class='text';$a9_var='template_name';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_title = ''; + $tmp_tag = 'span'; +?><<?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($a9_class,$a9_var,$a9_escape,$a9_cut) ?></a><?php } ?><?php $a7_empty='template_url'; ?><?php + if ( !isset($$a7_empty) ) + $a7_tmp_exec = empty($a7_empty); + elseif ( is_array($$a7_empty) ) + $a7_tmp_exec = (count($$a7_empty)==0); + elseif ( is_bool($$a7_empty) ) + $a7_tmp_exec = true; + else + $a7_tmp_exec = empty( $$a7_empty ); + $a7_tmp_last_exec = $a7_tmp_exec; + if ( $a7_tmp_exec ) + { +?> +<?php unset($a7_empty) ?><?php $a8_file='icon_template';$a8_align='left'; ?><?php + $a8_tmp_image_file = $image_dir.$a8_file.IMG_ICON_EXT; + $a8_tmp_title = basename($a8_tmp_image_file); +?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?> /><?php unset($a8_file,$a8_align) ?><?php $a8_class='text';$a8_var='template_name';$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 } ?><br/><?php $a7_false=$mode=="edit"; ?><?php + if (gettype($a7_false) === '' && gettype($a7_false) === '1') + $a7_tmp_exec = $$a7_false == false; + else + $a7_tmp_exec = $a7_false == false; + $a7_tmp_last_exec = $a7_tmp_exec; + if ( $a7_tmp_exec ) + { +?> +<?php unset($a7_false) ?><?php $a8_title='';$a8_type='';$a8_class='action';$a8_action='page';$a8_subaction='changetemplate';$a8_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $a8_target = $view; + switch( $a8_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a8_action)?$a8_action:$this->actionName,'subaction'=>!empty($a8_subaction)?$a8_subaction:$this->subActionName,'id'=>!empty($a8_id)?$a8_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($a8_subaction)?$a8_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a8_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a8_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a8_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a8_frame ?>"<?php if (isset($a8_name)) { ?> name="<?php echo $a8_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a8_class ?>"<?php if (isset($a8_accesskey)) echo ' accesskey="'.$a8_accesskey.'"' ?> title="<?php echo encodeHtml($a8_title) ?>"><?php unset($a8_title,$a8_type,$a8_class,$a8_action,$a8_subaction,$a8_frame) ?><?php $a9_icon='template';$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_class='text';$a9_key='menu_page_changetemplate';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a9_class ?>" title="<?php echo $a9_title ?>"><?php + $langF = $a9_escape?'langHtml':'lang'; + $tmp_text = $langF($a9_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_key,$a9_escape,$a9_cut) ?></a><?php } ?></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) ?><?php $a7_for='mime_type'; ?><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='FILE_MIMETYPE';$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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='filename';$a7_var='mime_type';$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) ?></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) ?><?php $a7_for='objectid'; ?><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='id';$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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$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='objectid';$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) ?></div></div></fieldset><?php $a4_title=lang('prop_userinfo'); ?><fieldset><?php if(isset($a4_title)) { ?><legend><?php if(isset($a4_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a4_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a4_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a4_title) ?><?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='create_date'; ?><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='global_created';$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_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=$create_date; ?><?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) ?><br/><?php $a7_icon='user';$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_user=$create_user; ?><?php + if ( is_object($a7_user) ) + $user = $a7_user; + else + $user = $$a7_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($a7_user) ?></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) ?><?php $a7_for='lastchange_date'; ?><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='global_lastchange';$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_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=$lastchange_date; ?><?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) ?><br/><?php $a7_icon='user';$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_user=$lastchange_user; ?><?php + if ( is_object($a7_user) ) + $user = $a7_user; + else + $user = $$a7_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($a7_user) ?></div></div></fieldset><?php } ?></form> diff --git a/themes/default/pages/html/page/prop.tpl.php b/themes/default/pages/html/page/prop.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 } ?> - <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_views='changetemplate';$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(); @@ -46,328 +30,181 @@ $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='93%';$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='global_description';$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='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 $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 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()) { +?></<?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) ?></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 - $row_idx++; - $column_idx = 0; +?><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_false=$mode=="edit"; ?><?php + if (gettype($a3_false) === '' && gettype($a3_false) === '1') + $a3_tmp_exec = $$a3_false == false; + else + $a3_tmp_exec = $a3_false == false; + $a3_tmp_last_exec = $a3_tmp_exec; + if ( $a3_tmp_exec ) + { ?> -<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_full_filename';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +<?php unset($a3_false) ?><?php $a4_title=lang('additional_info'); ?><fieldset><?php if(isset($a4_title)) { ?><legend><?php if(isset($a4_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a4_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a4_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a4_title) ?><?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='full_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='global_full_filename';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_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 $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($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='full_filename';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?></<?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='filename';$a7_var='full_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 = 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++; - $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_template';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_escape,$a7_cut) ?></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) ?><?php $a7_for='template_name'; ?><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='global_template';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_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 $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($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_present='template_url'; ?><?php - $a6_tmp_exec = isset($$a6_present); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) +?></<?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_present='template_url'; ?><?php + $a7_tmp_exec = isset($$a7_present); + $a7_tmp_last_exec = $a7_tmp_exec; + if ( $a7_tmp_exec ) { ?> -<?php unset($a6_present) ?><?php $a7_title='';$a7_target='cms_main';$a7_url=$template_url;$a7_class=''; ?><?php +<?php unset($a7_present) ?><?php $a8_title='';$a8_type='';$a8_target='cms_main';$a8_url=$template_url;$a8_class='';$a8_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a7_url; -?><a<?php if (isset($a7_name)) echo ' name="'.$a7_name.'"'; else echo ' href="'.$tmp_url.(isset($a7_anchor)?'#'.$a7_anchor:'').'"' ?> class="<?php echo $a7_class ?>" target="<?php echo $a7_target ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_target,$a7_url,$a7_class) ?><?php $a8_file='icon_template';$a8_align='left'; ?><?php + $params[REQ_PARAM_TARGET] = $a8_target; + switch( $a8_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a8_action)?$a8_action:$this->actionName,'subaction'=>!empty($a8_subaction)?$a8_subaction:$this->subActionName,'id'=>!empty($a8_id)?$a8_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($a8_subaction)?$a8_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a8_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a8_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a8_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a8_frame ?>"<?php if (isset($a8_name)) { ?> name="<?php echo $a8_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a8_class ?>"<?php if (isset($a8_accesskey)) echo ' accesskey="'.$a8_accesskey.'"' ?> title="<?php echo encodeHtml($a8_title) ?>"><?php unset($a8_title,$a8_type,$a8_target,$a8_url,$a8_class,$a8_frame) ?><?php $a9_icon='template';$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_class='text';$a9_var='template_name';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_title = ''; + $tmp_tag = 'span'; +?><<?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($a9_class,$a9_var,$a9_escape,$a9_cut) ?></a><?php } ?><?php $a7_empty='template_url'; ?><?php + if ( !isset($$a7_empty) ) + $a7_tmp_exec = empty($a7_empty); + elseif ( is_array($$a7_empty) ) + $a7_tmp_exec = (count($$a7_empty)==0); + elseif ( is_bool($$a7_empty) ) + $a7_tmp_exec = true; + else + $a7_tmp_exec = empty( $$a7_empty ); + $a7_tmp_last_exec = $a7_tmp_exec; + if ( $a7_tmp_exec ) + { +?> +<?php unset($a7_empty) ?><?php $a8_file='icon_template';$a8_align='left'; ?><?php $a8_tmp_image_file = $image_dir.$a8_file.IMG_ICON_EXT; $a8_tmp_title = basename($a8_tmp_image_file); -?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?>><?php unset($a8_file,$a8_align) ?><?php $a8_class='text';$a8_var='template_name';$a8_escape=true;$a8_cut='both'; ?><?php +?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?> /><?php unset($a8_file,$a8_align) ?><?php $a8_class='text';$a8_var='template_name';$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 @@ -376,177 +213,111 @@ if ($a6_readonly) { $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) ?></a><?php } ?><?php $a6_empty='template_url'; ?><?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; +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_var,$a8_escape,$a8_cut) ?><?php } ?><br/><?php $a7_false=$mode=="edit"; ?><?php + if (gettype($a7_false) === '' && gettype($a7_false) === '1') + $a7_tmp_exec = $$a7_false == false; else - $a6_tmp_exec = empty( $$a6_empty ); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) + $a7_tmp_exec = $a7_false == false; + $a7_tmp_last_exec = $a7_tmp_exec; + if ( $a7_tmp_exec ) { ?> -<?php unset($a6_empty) ?><?php $a7_file='icon_template';$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_var='template_name';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +<?php unset($a7_false) ?><?php $a8_title='';$a8_type='';$a8_class='action';$a8_action='page';$a8_subaction='changetemplate';$a8_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $a8_target = $view; + switch( $a8_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a8_action)?$a8_action:$this->actionName,'subaction'=>!empty($a8_subaction)?$a8_subaction:$this->subActionName,'id'=>!empty($a8_id)?$a8_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($a8_subaction)?$a8_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a8_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a8_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a8_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a8_frame ?>"<?php if (isset($a8_name)) { ?> name="<?php echo $a8_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a8_class ?>"<?php if (isset($a8_accesskey)) echo ' accesskey="'.$a8_accesskey.'"' ?> title="<?php echo encodeHtml($a8_title) ?>"><?php unset($a8_title,$a8_type,$a8_class,$a8_action,$a8_subaction,$a8_frame) ?><?php $a9_icon='template';$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_class='text';$a9_key='menu_page_changetemplate';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_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'); +?><<?php echo $tmp_tag ?> class="<?php echo $a9_class ?>" title="<?php echo $a9_title ?>"><?php + $langF = $a9_escape?'langHtml':'lang'; + $tmp_text = $langF($a9_key); $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 - $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_key='FILE_MIMETYPE';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_key,$a9_escape,$a9_cut) ?></a><?php } ?></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) ?><?php $a7_for='mime_type'; ?><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='FILE_MIMETYPE';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_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); +?><<?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($a6_class,$a6_key,$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='mime_type';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label></div><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_class='filename';$a7_var='mime_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 = 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++; - $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_key='id';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_escape,$a7_cut) ?></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) ?><?php $a7_for='objectid'; ?><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='id';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_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); +?><<?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($a6_class,$a6_key,$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 = ''; +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$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='objectid';$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++; - $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 = ''; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_escape,$a7_cut) ?></div></div></fieldset><?php $a4_title=lang('prop_userinfo'); ?><fieldset><?php if(isset($a4_title)) { ?><legend><?php if(isset($a4_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a4_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a4_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a4_title) ?><?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='create_date'; ?><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='global_created';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_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 $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($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 +?></<?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_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=$create_date; ?><?php global $conf; - $time = $a9_date; + $time = $a7_date; if ( isset($_COOKIE['or_timezone_offset']) ) { $time -= (int)date('Z'); @@ -605,22 +376,15 @@ if ($a6_readonly) { 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=$create_user; ?><?php - if ( is_object($a9_user) ) - $user = $a9_user; +?><?php unset($a7_date) ?><br/><?php $a7_icon='user';$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_user=$create_user; ?><?php + if ( is_object($a7_user) ) + $user = $a7_user; else - $user = $$a9_user; + $user = $$a7_user; if ( empty($user->name) ) $user->name = lang('GLOBAL_UNKNOWN'); if ( empty($user->fullname) ) @@ -629,68 +393,23 @@ if ($a6_readonly) { 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 = ''; +?><?php unset($a7_user) ?></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) ?><?php $a7_for='lastchange_date'; ?><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='global_lastchange';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_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 $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($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 +?></<?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_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=$lastchange_date; ?><?php global $conf; - $time = $a9_date; + $time = $a7_date; if ( isset($_COOKIE['or_timezone_offset']) ) { $time -= (int)date('Z'); @@ -749,22 +468,15 @@ if ($a6_readonly) { 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; +?><?php unset($a7_date) ?><br/><?php $a7_icon='user';$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_user=$lastchange_user; ?><?php + if ( is_object($a7_user) ) + $user = $a7_user; else - $user = $$a9_user; + $user = $$a7_user; if ( empty($user->name) ) $user->name = lang('GLOBAL_UNKNOWN'); if ( empty($user->fullname) ) @@ -773,50 +485,4 @@ if ($a6_readonly) { 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 unset($a7_user) ?></div></div></fieldset><?php } ?></form> diff --git a/themes/default/pages/html/page/pub.tpl.php b/themes/default/pages/html/page/pub.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,159 +14,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_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_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_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++; - $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_default=false;$a6_readonly=false;$a6_name='files'; ?><?php +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><?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='files'; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; if ( isset($$a6_name) ) $checked = $$a6_name; @@ -209,7 +49,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='files'; ?><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='global_files';$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='files'; ?><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_files';$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 @@ -218,39 +59,4 @@ 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) ?><br/><br/></label></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 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/page/show.tpl.php b/themes/default/pages/html/page/show.tpl.php @@ -0,0 +1,137 @@ +<?php $a2_name='';$a2_views='el';$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_title=lang('menu_page_show'); ?><fieldset><?php if(isset($a2_title)) { ?><legend><?php if(isset($a2_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a2_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a2_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a2_title) ?><div><?php $a4_inline=false;$a4_url=$preview_url;$a4_name='preview'; ?><iframe name="<?php echo $a4_name ?>" src="<?php echo $a4_url ?>"></iframe> +<?php unset($a4_inline,$a4_url,$a4_name) ?></div></fieldset><?php $a2_title='';$a2_type='';$a2_target='preview';$a2_class='action';$a2_action='page';$a2_subaction='preview';$a2_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $params[REQ_PARAM_TARGET] = $a2_target; + switch( $a2_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a2_action)?$a2_action:$this->actionName,'subaction'=>!empty($a2_subaction)?$a2_subaction:$this->subActionName,'id'=>!empty($a2_id)?$a2_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($a2_subaction)?$a2_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a2_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a2_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a2_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a2_frame ?>"<?php if (isset($a2_name)) { ?> name="<?php echo $a2_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a2_class ?>"<?php if (isset($a2_accesskey)) echo ' accesskey="'.$a2_accesskey.'"' ?> title="<?php echo encodeHtml($a2_title) ?>"><?php unset($a2_title,$a2_type,$a2_target,$a2_class,$a2_action,$a2_subaction,$a2_frame) ?><?php $a3_icon='show';$a3_align='left'; ?><?php + $a3_tmp_image_file = $image_dir.'icon_'.$a3_icon.IMG_ICON_EXT; + $a3_size = '16x16'; + $a3_tmp_title = basename($a3_tmp_image_file); +?><img alt="<?php echo $a3_tmp_title; if (isset($a3_size)) { echo ' ('; list($a3_tmp_width,$a3_tmp_height)=explode('x',$a3_size);echo $a3_tmp_width.'x'.$a3_tmp_height; echo')';} ?>" src="<?php echo $a3_tmp_image_file ?>" border="0"<?php if(isset($a3_align)) echo ' align="'.$a3_align.'"' ?><?php if (isset($a3_size)) { list($a3_tmp_width,$a3_tmp_height)=explode('x',$a3_size);echo ' width="'.$a3_tmp_width.'" height="'.$a3_tmp_height.'"';} ?> /><?php unset($a3_icon,$a3_align) ?><?php $a3_class='text';$a3_key='menu_page_show';$a3_escape=true;$a3_cut='both'; ?><?php + $a3_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a3_class ?>" title="<?php echo $a3_title ?>"><?php + $langF = $a3_escape?'langHtml':'lang'; + $tmp_text = $langF($a3_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a3_class,$a3_key,$a3_escape,$a3_cut) ?></a><?php $a2_title='';$a2_type='';$a2_target='preview';$a2_class='action';$a2_action='page';$a2_subaction='edit';$a2_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $params[REQ_PARAM_TARGET] = $a2_target; + switch( $a2_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a2_action)?$a2_action:$this->actionName,'subaction'=>!empty($a2_subaction)?$a2_subaction:$this->subActionName,'id'=>!empty($a2_id)?$a2_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($a2_subaction)?$a2_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a2_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a2_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a2_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a2_frame ?>"<?php if (isset($a2_name)) { ?> name="<?php echo $a2_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a2_class ?>"<?php if (isset($a2_accesskey)) echo ' accesskey="'.$a2_accesskey.'"' ?> title="<?php echo encodeHtml($a2_title) ?>"><?php unset($a2_title,$a2_type,$a2_target,$a2_class,$a2_action,$a2_subaction,$a2_frame) ?><?php $a3_icon='show';$a3_align='left'; ?><?php + $a3_tmp_image_file = $image_dir.'icon_'.$a3_icon.IMG_ICON_EXT; + $a3_size = '16x16'; + $a3_tmp_title = basename($a3_tmp_image_file); +?><img alt="<?php echo $a3_tmp_title; if (isset($a3_size)) { echo ' ('; list($a3_tmp_width,$a3_tmp_height)=explode('x',$a3_size);echo $a3_tmp_width.'x'.$a3_tmp_height; echo')';} ?>" src="<?php echo $a3_tmp_image_file ?>" border="0"<?php if(isset($a3_align)) echo ' align="'.$a3_align.'"' ?><?php if (isset($a3_size)) { list($a3_tmp_width,$a3_tmp_height)=explode('x',$a3_size);echo ' width="'.$a3_tmp_width.'" height="'.$a3_tmp_height.'"';} ?> /><?php unset($a3_icon,$a3_align) ?><?php $a3_class='text';$a3_key='menu_page_edit';$a3_escape=true;$a3_cut='both'; ?><?php + $a3_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a3_class ?>" title="<?php echo $a3_title ?>"><?php + $langF = $a3_escape?'langHtml':'lang'; + $tmp_text = $langF($a3_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a3_class,$a3_key,$a3_escape,$a3_cut) ?></a><?php $a2_title='';$a2_type='popup';$a2_url=$preview_url;$a2_class='action';$a2_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $a2_target = $view; + switch( $a2_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a2_action)?$a2_action:$this->actionName,'subaction'=>!empty($a2_subaction)?$a2_subaction:$this->subActionName,'id'=>!empty($a2_id)?$a2_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($a2_subaction)?$a2_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a2_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a2_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a2_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a2_frame ?>"<?php if (isset($a2_name)) { ?> name="<?php echo $a2_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a2_class ?>"<?php if (isset($a2_accesskey)) echo ' accesskey="'.$a2_accesskey.'"' ?> title="<?php echo encodeHtml($a2_title) ?>"><?php unset($a2_title,$a2_type,$a2_url,$a2_class,$a2_frame) ?><?php $a3_class='text';$a3_key='link_open_in_new_window';$a3_escape=true;$a3_cut='both'; ?><?php + $a3_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a3_class ?>" title="<?php echo $a3_title ?>"><?php + $langF = $a3_escape?'langHtml':'lang'; + $tmp_text = $langF($a3_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a3_class,$a3_key,$a3_escape,$a3_cut) ?></a>+ \ No newline at end of file diff --git a/themes/default/pages/html/page/src.tpl.php b/themes/default/pages/html/page/src.tpl.php @@ -1,95 +1,42 @@ -<?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_icon='page';$a2_width='93%';$a2_rowclasses='odd,even';$a2_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$a2_icon; - $row_classes = explode(',',$a2_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a2_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="'.$a2_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 $a3_icon='page';$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']); @@ -97,78 +44,78 @@ $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($a2_icon,$a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php - $row_idx++; +<div class="content"><div class="filler"> +<?php } ?><?php unset($a3_icon,$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 $a5_class='text';$a5_var='src';$a5_escape=false;$a5_type='preformatted';$a5_cut='both'; ?><?php - $a5_title = ''; +><?php unset($a5_header) ?><?php $a6_class='text';$a6_var='src';$a6_escape=false;$a6_type='preformatted';$a6_cut='both'; ?><?php + $a6_title = ''; $tmp_tag = 'pre'; -?><<?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'); +?><<?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($a5_class,$a5_var,$a5_escape,$a5_type,$a5_cut) ?></td></tr> </table> - </td> - </tr> -</table> -</center> +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_type,$a6_cut) ?></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/> @@ -176,5 +123,4 @@ <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -</body> -</html>- \ No newline at end of file +<?php } ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/pageelement/archive.tpl.php b/themes/default/pages/html/pageelement/archive.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%,5%,5%,15%,15%,35%,10%,10%';$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_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,182 +84,183 @@ $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_widths,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $row_idx++; +<div class="content"><div class="filler"> +<?php } ?><?php unset($a4_width,$a4_rowclasses,$a4_columnclasses) ?><fieldset><?php if(isset($a5_title)) { ?><legend><?php if(isset($a5_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a5_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a5_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php $a6_width='100%';$a6_space='0px';$a6_padding='0px';$a6_widths='5%,5%,5%,15%,15%,35%,10%,10%'; ?><?php + $last_column_idx = @$column_idx; + $column_idx = 0; + $coloumn_widths = array(); + $row_classes = array(); + $column_classes = array(); + $column_widths = explode(',',$a6_widths); +?><table class="%class%" cellspacing="0px" width="100%" cellpadding="0px"> +<?php unset($a6_width,$a6_space,$a6_padding,$a6_widths) ?><?php $a7_class='headline'; ?><?php $column_idx = 0; ?> <tr + class="headline" > -<?php $a5_class='help'; ?><?php $column_idx++; ?><td +<?php unset($a7_class) ?><?php $a8_class='help';$a8_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a5_class) ?><?php $a6_class='text';$a6_text='GLOBAL_NR';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a8_class,$a8_header) ?><?php $a9_class='text';$a9_text='GLOBAL_NR';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_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 $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($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $a5_class='help';$a5_colspan='2'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?></td><?php $a8_class='help';$a8_colspan='2';$a8_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" colspan="2" -><?php unset($a5_class,$a5_colspan) ?><?php $a6_present='compareid'; ?><?php - $a6_tmp_exec = isset($$a6_present); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) +><?php unset($a8_class,$a8_colspan,$a8_header) ?><?php $a9_present='compareid'; ?><?php + $a9_tmp_exec = isset($$a9_present); + $a9_tmp_last_exec = $a9_tmp_exec; + if ( $a9_tmp_exec ) { ?> -<?php unset($a6_present) ?><?php $a7_class='text';$a7_text='GLOBAL_COMPARE';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +<?php unset($a9_present) ?><?php $a10_class='text';$a10_text='GLOBAL_COMPARE';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $langF($a10_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><?php $a5_class='help'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_text,$a10_escape,$a10_cut) ?><?php } ?></td><?php $a8_class='help';$a8_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a5_class) ?><?php $a6_class='text';$a6_text='DATE';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a8_class,$a8_header) ?><?php $a9_class='text';$a9_text='DATE';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_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 $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($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $a5_class='help'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?></td><?php $a8_class='help';$a8_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a5_class) ?><?php $a6_class='text';$a6_text='GLOBAL_USER';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a8_class,$a8_header) ?><?php $a9_class='text';$a9_text='GLOBAL_USER';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_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 $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($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $a5_class='help'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?></td><?php $a8_class='help';$a8_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a5_class) ?><?php $a6_class='text';$a6_text='GLOBAL_VALUE';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a8_class,$a8_header) ?><?php $a9_class='text';$a9_text='GLOBAL_VALUE';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_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 $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($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $a5_class='help'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?></td><?php $a8_class='help';$a8_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a5_class) ?><?php $a6_class='text';$a6_text='GLOBAL_STATE';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a8_class,$a8_header) ?><?php $a9_class='text';$a9_text='GLOBAL_STATE';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_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 $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($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td><?php $a5_class='help'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?></td><?php $a8_class='help';$a8_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a5_class) ?><?php $a6_class='text';$a6_text='GLOBAL_ACTION';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a8_class,$a8_header) ?><?php $a9_class='text';$a9_text='GLOBAL_ACTION';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_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 $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($a6_class,$a6_text,$a6_escape,$a6_cut) ?></td></tr><?php $a4_empty='el'; ?><?php - if ( !isset($$a4_empty) ) - $a4_tmp_exec = empty($a4_empty); - elseif ( is_array($$a4_empty) ) - $a4_tmp_exec = (count($$a4_empty)==0); - elseif ( is_bool($$a4_empty) ) - $a4_tmp_exec = true; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?></td></tr><?php $a7_empty='el'; ?><?php + if ( !isset($$a7_empty) ) + $a7_tmp_exec = empty($a7_empty); + elseif ( is_array($$a7_empty) ) + $a7_tmp_exec = (count($$a7_empty)==0); + elseif ( is_bool($$a7_empty) ) + $a7_tmp_exec = true; else - $a4_tmp_exec = empty( $$a4_empty ); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) + $a7_tmp_exec = empty( $$a7_empty ); + $a7_tmp_last_exec = $a7_tmp_exec; + if ( $a7_tmp_exec ) { ?> -<?php unset($a4_empty) ?><?php - $row_idx++; +<?php unset($a7_empty) ?><?php $column_idx = 0; ?> <tr > -<?php $a6_colspan='8'; ?><?php $column_idx++; ?><td +<?php $a9_colspan='8';$a9_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -311,111 +268,110 @@ class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="8" -><?php unset($a6_colspan) ?><?php $a7_class='text';$a7_text='GLOBAL_NOT_FOUND';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a9_colspan,$a9_header) ?><?php $a10_class='text';$a10_text='GLOBAL_NOT_FOUND';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $langF($a10_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></tr><?php } ?><?php $a4_list='el';$a4_extract=true;$a4_key='list_key';$a4_value='list_value'; ?><?php - $a4_list_tmp_key = $a4_key; - $a4_list_tmp_value = $a4_value; - $a4_list_extract = $a4_extract; - unset($a4_key); - unset($a4_value); - if ( !isset($$a4_list) || !is_array($$a4_list) ) - $$a4_list = array(); - foreach( $$a4_list as $$a4_list_tmp_key => $$a4_list_tmp_value ) +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_text,$a10_escape,$a10_cut) ?></td></tr><?php } ?><?php $a7_list='el';$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 ( $a4_list_extract ) + if ( $a7_list_extract ) { - if ( !is_array($$a4_list_tmp_value) ) + if ( !is_array($$a7_list_tmp_value) ) { - print_r($$a4_list_tmp_value); - die( 'not an array at key: '.$$a4_list_tmp_key ); + print_r($$a7_list_tmp_value); + die( 'not an array at key: '.$$a7_list_tmp_key ); } - extract($$a4_list_tmp_value); + extract($$a7_list_tmp_value); } -?><?php unset($a4_list,$a4_extract,$a4_key,$a4_value) ?><?php $a5_class='data'; ?><?php - $row_idx++; +?><?php unset($a7_list,$a7_extract,$a7_key,$a7_value) ?><?php $a8_class='data'; ?><?php $column_idx = 0; ?> <tr class="data" > -<?php unset($a5_class) ?><?php $column_idx++; ?><td +<?php unset($a8_class) ?><?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 $a7_class='text';$a7_var='lfd_nr';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a9_header) ?><?php $a10_class='text';$a10_var='lfd_nr';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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'); +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = isset($$a10_var)?$$a10_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><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_var,$a10_escape,$a10_cut) ?></td><?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 $a7_present='compareid'; ?><?php - $a7_tmp_exec = isset($$a7_present); - $a7_tmp_last_exec = $a7_tmp_exec; - if ( $a7_tmp_exec ) +><?php unset($a9_header) ?><?php $a10_present='compareid'; ?><?php + $a10_tmp_exec = isset($$a10_present); + $a10_tmp_last_exec = $a10_tmp_exec; + if ( $a10_tmp_exec ) { ?> -<?php unset($a7_present) ?><?php $a8_readonly=false;$a8_name='compareid';$a8_value=$id;$a8_default=false;$a8_prefix='';$a8_suffix='';$a8_class='';$a8_onchange=''; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; - if ( isset($$a8_name) ) - $a8_tmp_default = $$a8_name; - elseif ( isset($a8_default) ) - $a8_tmp_default = $a8_default; +<?php unset($a10_present) ?><?php $a11_readonly=false;$a11_name='compareid';$a11_value=$id;$a11_default=false;$a11_prefix='';$a11_suffix='';$a11_class='';$a11_onchange=''; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a11_readonly=true; + if ( isset($$a11_name) ) + $a11_tmp_default = $$a11_name; + elseif ( isset($a11_default) ) + $a11_tmp_default = $a11_default; else - $a8_tmp_default = ''; - ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a8_name.'_'.$a8_value ?>" name="<?php echo $a8_prefix.$a8_name ?>"<?php if ( $a8_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a8_value ?>" <?php if($a8_value==$a8_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a8_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> -<?php /* #END-IF# */ ?><?php unset($a8_readonly,$a8_name,$a8_value,$a8_default,$a8_prefix,$a8_suffix,$a8_class,$a8_onchange) ?><?php } ?></td><?php $column_idx++; ?><td + $a11_tmp_default = ''; + ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a11_name.'_'.$a11_value ?>" name="<?php echo $a11_prefix.$a11_name ?>"<?php if ( $a11_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a11_value ?>" <?php if($a11_value==$a11_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a11_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> +<?php /* #END-IF# */ ?><?php unset($a11_readonly,$a11_name,$a11_value,$a11_default,$a11_prefix,$a11_suffix,$a11_class,$a11_onchange) ?><?php } ?></td><?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 $a7_present='compareid'; ?><?php - $a7_tmp_exec = isset($$a7_present); - $a7_tmp_last_exec = $a7_tmp_exec; - if ( $a7_tmp_exec ) +><?php unset($a9_header) ?><?php $a10_present='compareid'; ?><?php + $a10_tmp_exec = isset($$a10_present); + $a10_tmp_last_exec = $a10_tmp_exec; + if ( $a10_tmp_exec ) { ?> -<?php unset($a7_present) ?><?php $a8_readonly=false;$a8_name='withid';$a8_value=$id;$a8_default=false;$a8_prefix='';$a8_suffix='';$a8_class='';$a8_onchange=''; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; - if ( isset($$a8_name) ) - $a8_tmp_default = $$a8_name; - elseif ( isset($a8_default) ) - $a8_tmp_default = $a8_default; +<?php unset($a10_present) ?><?php $a11_readonly=false;$a11_name='withid';$a11_value=$id;$a11_default=false;$a11_prefix='';$a11_suffix='';$a11_class='';$a11_onchange=''; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a11_readonly=true; + if ( isset($$a11_name) ) + $a11_tmp_default = $$a11_name; + elseif ( isset($a11_default) ) + $a11_tmp_default = $a11_default; else - $a8_tmp_default = ''; - ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a8_name.'_'.$a8_value ?>" name="<?php echo $a8_prefix.$a8_name ?>"<?php if ( $a8_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a8_value ?>" <?php if($a8_value==$a8_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a8_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> -<?php /* #END-IF# */ ?><?php unset($a8_readonly,$a8_name,$a8_value,$a8_default,$a8_prefix,$a8_suffix,$a8_class,$a8_onchange) ?><?php } ?></td><?php $column_idx++; ?><td + $a11_tmp_default = ''; + ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a11_name.'_'.$a11_value ?>" name="<?php echo $a11_prefix.$a11_name ?>"<?php if ( $a11_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a11_value ?>" <?php if($a11_value==$a11_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a11_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> +<?php /* #END-IF# */ ?><?php unset($a11_readonly,$a11_name,$a11_value,$a11_default,$a11_prefix,$a11_suffix,$a11_class,$a11_onchange) ?><?php } ?></td><?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 $a7_date=$date; ?><?php +><?php unset($a9_header) ?><?php $a10_date=$date; ?><?php global $conf; - $time = $a7_date; + $time = $a10_date; if ( isset($_COOKIE['or_timezone_offset']) ) { $time -= (int)date('Z'); @@ -474,174 +430,241 @@ echo $jahre.' '.lang('GLOBAL_YEARS'); echo '</span>'; } -?><?php unset($a7_date) ?></td><?php $column_idx++; ?><td +?><?php unset($a10_date) ?></td><?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 $a7_class='text';$a7_var='user';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a9_header) ?><?php $a10_class='text';$a10_var='user';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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'); +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = isset($$a10_var)?$$a10_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><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_var,$a10_escape,$a10_cut) ?></td><?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 $a7_class='text';$a7_var='value';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a9_header) ?><?php $a10_class='text';$a10_var='value';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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'); +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = isset($$a10_var)?$$a10_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><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_var,$a10_escape,$a10_cut) ?></td><?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 $a7_true=$public; ?><?php - if (gettype($a7_true) === '' && gettype($a7_true) === '1') - $a7_tmp_exec = $$a7_true == true; +><?php unset($a9_header) ?><?php $a10_true=$public; ?><?php + if (gettype($a10_true) === '' && gettype($a10_true) === '1') + $a10_tmp_exec = $$a10_true == true; else - $a7_tmp_exec = $a7_true == true; - $a7_tmp_last_exec = $a7_tmp_exec; - if ( $a7_tmp_exec ) + $a10_tmp_exec = $a10_true == true; + $a10_tmp_last_exec = $a10_tmp_exec; + if ( $a10_tmp_exec ) { ?> -<?php unset($a7_true) ?><?php $a8_class='text';$a8_key='GLOBAL_PUBLIC';$a8_escape=true;$a8_type='strong';$a8_cut='both'; ?><?php - $a8_title = ''; +<?php unset($a10_true) ?><?php $a11_class='text';$a11_key='GLOBAL_PUBLIC';$a11_escape=true;$a11_type='strong';$a11_cut='both'; ?><?php + $a11_title = ''; $tmp_tag = 'strong'; -?><<?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); +?><<?php echo $tmp_tag ?> class="<?php echo $a11_class ?>" title="<?php echo $a11_title ?>"><?php + $langF = $a11_escape?'langHtml':'lang'; + $tmp_text = $langF($a11_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_type,$a8_cut) ?><?php } ?><?php if (!$a7_tmp_last_exec) { ?> -<?php $a8_present='releaseUrl'; ?><?php - $a8_tmp_exec = isset($$a8_present); - $a8_tmp_last_exec = $a8_tmp_exec; - if ( $a8_tmp_exec ) +?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_key,$a11_escape,$a11_type,$a11_cut) ?><?php } ?><?php if (!$a10_tmp_last_exec) { ?> +<?php $a11_present='releaseUrl'; ?><?php + $a11_tmp_exec = isset($$a11_present); + $a11_tmp_last_exec = $a11_tmp_exec; + if ( $a11_tmp_exec ) { ?> -<?php unset($a8_present) ?><?php $a9_title=lang('GLOBAL_RELEASE_DESC');$a9_target='_self';$a9_url=$releaseUrl;$a9_class=''; ?><?php +<?php unset($a11_present) ?><?php $a12_title=lang('GLOBAL_RELEASE_DESC');$a12_type='';$a12_url=$releaseUrl;$a12_class='';$a12_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a9_url; -?><a<?php if (isset($a9_name)) echo ' name="'.$a9_name.'"'; else echo ' href="'.$tmp_url.(isset($a9_anchor)?'#'.$a9_anchor:'').'"' ?> class="<?php echo $a9_class ?>" target="<?php echo $a9_target ?>"<?php if (isset($a9_accesskey)) echo ' accesskey="'.$a9_accesskey.'"' ?> title="<?php echo encodeHtml($a9_title) ?>"><?php unset($a9_title,$a9_target,$a9_url,$a9_class) ?><?php $a10_class='text';$a10_key='GLOBAL_RELEASE';$a10_escape=true;$a10_type='strong';$a10_cut='both'; ?><?php - $a10_title = ''; + $a12_target = $view; + switch( $a12_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a12_action)?$a12_action:$this->actionName,'subaction'=>!empty($a12_subaction)?$a12_subaction:$this->subActionName,'id'=>!empty($a12_id)?$a12_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($a12_subaction)?$a12_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a12_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a12_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a12_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a12_frame ?>"<?php if (isset($a12_name)) { ?> name="<?php echo $a12_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a12_class ?>"<?php if (isset($a12_accesskey)) echo ' accesskey="'.$a12_accesskey.'"' ?> title="<?php echo encodeHtml($a12_title) ?>"><?php unset($a12_title,$a12_type,$a12_url,$a12_class,$a12_frame) ?><?php $a13_class='text';$a13_key='GLOBAL_RELEASE';$a13_escape=true;$a13_type='strong';$a13_cut='both'; ?><?php + $a13_title = ''; $tmp_tag = 'strong'; -?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php - $langF = $a10_escape?'langHtml':'lang'; - $tmp_text = $langF($a10_key); +?><<?php echo $tmp_tag ?> class="<?php echo $a13_class ?>" title="<?php echo $a13_title ?>"><?php + $langF = $a13_escape?'langHtml':'lang'; + $tmp_text = $langF($a13_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_key,$a10_escape,$a10_type,$a10_cut) ?></a><?php } ?><?php if (!$a8_tmp_last_exec) { ?> -<?php $a9_class='text';$a9_key='GLOBAL_INACTIVE';$a9_escape=true;$a9_type='emphatic';$a9_cut='both'; ?><?php - $a9_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a13_class,$a13_key,$a13_escape,$a13_type,$a13_cut) ?></a><?php } ?><?php if (!$a11_tmp_last_exec) { ?> +<?php $a12_class='text';$a12_key='GLOBAL_INACTIVE';$a12_escape=true;$a12_type='emphatic';$a12_cut='both'; ?><?php + $a12_title = ''; $tmp_tag = 'em'; -?><<?php echo $tmp_tag ?> class="<?php echo $a9_class ?>" title="<?php echo $a9_title ?>"><?php - $langF = $a9_escape?'langHtml':'lang'; - $tmp_text = $langF($a9_key); +?><<?php echo $tmp_tag ?> class="<?php echo $a12_class ?>" title="<?php echo $a12_title ?>"><?php + $langF = $a12_escape?'langHtml':'lang'; + $tmp_text = $langF($a12_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_key,$a9_escape,$a9_type,$a9_cut) ?><?php } -unset($a7_tmp_last_exec) ?><?php } -unset($a6_tmp_last_exec) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a12_class,$a12_key,$a12_escape,$a12_type,$a12_cut) ?><?php } +unset($a10_tmp_last_exec) ?><?php } +unset($a9_tmp_last_exec) ?></td><?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 $a7_true=$active; ?><?php - if (gettype($a7_true) === '' && gettype($a7_true) === '1') - $a7_tmp_exec = $$a7_true == true; +><?php unset($a9_header) ?><?php $a10_true=$active; ?><?php + if (gettype($a10_true) === '' && gettype($a10_true) === '1') + $a10_tmp_exec = $$a10_true == true; else - $a7_tmp_exec = $a7_true == true; - $a7_tmp_last_exec = $a7_tmp_exec; - if ( $a7_tmp_exec ) + $a10_tmp_exec = $a10_true == true; + $a10_tmp_last_exec = $a10_tmp_exec; + if ( $a10_tmp_exec ) { ?> -<?php unset($a7_true) ?><?php $a8_class='text';$a8_key='GLOBAL_ACTIVE';$a8_escape=true;$a8_type='emphatic';$a8_cut='both'; ?><?php - $a8_title = ''; +<?php unset($a10_true) ?><?php $a11_class='text';$a11_key='GLOBAL_ACTIVE';$a11_escape=true;$a11_type='emphatic';$a11_cut='both'; ?><?php + $a11_title = ''; $tmp_tag = 'em'; -?><<?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); +?><<?php echo $tmp_tag ?> class="<?php echo $a11_class ?>" title="<?php echo $a11_title ?>"><?php + $langF = $a11_escape?'langHtml':'lang'; + $tmp_text = $langF($a11_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_type,$a8_cut) ?><?php } ?><?php if (!$a7_tmp_last_exec) { ?> -<?php $a8_present='useUrl'; ?><?php - $a8_tmp_exec = isset($$a8_present); - $a8_tmp_last_exec = $a8_tmp_exec; - if ( $a8_tmp_exec ) +?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_key,$a11_escape,$a11_type,$a11_cut) ?><?php } ?><?php if (!$a10_tmp_last_exec) { ?> +<?php $a11_present='useUrl'; ?><?php + $a11_tmp_exec = isset($$a11_present); + $a11_tmp_last_exec = $a11_tmp_exec; + if ( $a11_tmp_exec ) { ?> -<?php unset($a8_present) ?><?php $a9_title=lang('GLOBAL_USE_DESC');$a9_target='_self';$a9_url=$useUrl;$a9_class=''; ?><?php +<?php unset($a11_present) ?><?php $a12_title=lang('GLOBAL_USE_DESC');$a12_type='';$a12_url=$useUrl;$a12_class='';$a12_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a9_url; -?><a<?php if (isset($a9_name)) echo ' name="'.$a9_name.'"'; else echo ' href="'.$tmp_url.(isset($a9_anchor)?'#'.$a9_anchor:'').'"' ?> class="<?php echo $a9_class ?>" target="<?php echo $a9_target ?>"<?php if (isset($a9_accesskey)) echo ' accesskey="'.$a9_accesskey.'"' ?> title="<?php echo encodeHtml($a9_title) ?>"><?php unset($a9_title,$a9_target,$a9_url,$a9_class) ?><?php $a10_class='text';$a10_key='GLOBAL_USE';$a10_escape=true;$a10_cut='both'; ?><?php - $a10_title = ''; + $a12_target = $view; + switch( $a12_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a12_action)?$a12_action:$this->actionName,'subaction'=>!empty($a12_subaction)?$a12_subaction:$this->subActionName,'id'=>!empty($a12_id)?$a12_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($a12_subaction)?$a12_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a12_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a12_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a12_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a12_frame ?>"<?php if (isset($a12_name)) { ?> name="<?php echo $a12_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a12_class ?>"<?php if (isset($a12_accesskey)) echo ' accesskey="'.$a12_accesskey.'"' ?> title="<?php echo encodeHtml($a12_title) ?>"><?php unset($a12_title,$a12_type,$a12_url,$a12_class,$a12_frame) ?><?php $a13_class='text';$a13_key='GLOBAL_USE';$a13_escape=true;$a13_cut='both'; ?><?php + $a13_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php - $langF = $a10_escape?'langHtml':'lang'; - $tmp_text = $langF($a10_key); +?><<?php echo $tmp_tag ?> class="<?php echo $a13_class ?>" title="<?php echo $a13_title ?>"><?php + $langF = $a13_escape?'langHtml':'lang'; + $tmp_text = $langF($a13_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_key,$a10_escape,$a10_cut) ?></a><?php } ?><?php } -unset($a6_tmp_last_exec) ?></td></tr><?php } ?><?php $a4_present='compareid'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +?></<?php echo $tmp_tag ?>><?php unset($a13_class,$a13_key,$a13_escape,$a13_cut) ?></a><?php } ?><?php } +unset($a9_tmp_last_exec) ?></td></tr><?php } ?><?php + $column_idx = $last_column_idx; +?> +</table></fieldset><?php $a5_present='compareid'; ?><?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 $a6_class='act';$a6_colspan='8'; ?><?php $column_idx++; ?><td +<?php $a7_class='act';$a7_colspan='8';$a7_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="8" -><?php unset($a6_class,$a6_colspan) ?><?php $a7_type='ok';$a7_class='ok';$a7_value='ok';$a7_text='button_ok'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) - $a7_text = 'MODE_EDIT'; - $a7_type = 'submit'; - if ( $this->isEditable() && readonly() ) - $a7_type = ''; // Knopf nicht anzeigen - $a7_src = ''; - if ( !empty($a7_type) ) { -?><input type="<?php echo $a7_type ?>"<?php if(isset($a7_src)) { ?> src="<?php echo $image_dir.'icon_'.$a7_src.IMG_ICON_EXT ?>"<?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 } -?><?php unset($a7_type,$a7_class,$a7_value,$a7_text) ?></td></tr><?php } ?> </table> - </td> - </tr> -</table> -</center> +><?php unset($a7_class,$a7_colspan,$a7_header) ?><?php $a8_type='ok';$a8_class='ok';$a8_value='ok';$a8_text='button_ok'; ?><div class="invisible"> +<?php + if ($this->isEditable() && !$this->isEditMode() && !readonly() ) + { + $a8_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 + { + $a8_type = 'submit'; + } + $a8_tmp_src = ''; + if ( !empty($a8_type)) { +?> +<input type="<?php echo $a8_type ?>"<?php if(isset($a8_src)) { ?> src="<?php $a8_tmp_src ?>"<?php } ?> name="<?php echo $a8_value ?>" class="ok" title="<?php echo lang($a8_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a8_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a8_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($a8_type,$a8_class,$a8_value,$a8_text) ?></td></tr><?php } ?><?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/> @@ -649,6 +672,4 @@ unset($a6_tmp_last_exec) ?></td></tr><?php } ?><?php $a4_present='compareid'; ?> <?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/pageelement/diff.tpl.php b/themes/default/pages/html/pageelement/diff.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,92 +84,92 @@ $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) ?><fieldset><?php if(isset($a5_title)) { ?><legend><?php if(isset($a5_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a5_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a5_title) ?>&nbsp;&nbsp;</legend><?php } ?><?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 $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a8_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($a8_header) ?></td><?php $a8_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_COMPARE';$a6_escape=true;$a6_type='emphatic';$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a8_header) ?><?php $a9_class='text';$a9_text='GLOBAL_COMPARE';$a9_escape=true;$a9_type='emphatic';$a9_cut='both'; ?><?php + $a9_title = ''; $tmp_tag = 'em'; -?><<?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 $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($a6_class,$a6_text,$a6_escape,$a6_type,$a6_cut) ?><?php $a6_class='text';$a6_raw='_';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_type,$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 $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 $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($a6_class,$a6_raw,$a6_escape,$a6_cut) ?><?php $a6_date=$date_left; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_raw,$a9_escape,$a9_cut) ?><?php $a9_date=$date_left; ?><?php global $conf; - $time = $a6_date; + $time = $a9_date; if ( isset($_COOKIE['or_timezone_offset']) ) { $time -= (int)date('Z'); @@ -271,41 +228,41 @@ echo $jahre.' '.lang('GLOBAL_YEARS'); echo '</span>'; } -?><?php unset($a6_date) ?></td><?php $column_idx++; ?><td +?><?php unset($a9_date) ?></td><?php $a8_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($a8_header) ?></td><?php $a8_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_WITH';$a6_escape=true;$a6_type='emphatic';$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a8_header) ?><?php $a9_class='text';$a9_text='GLOBAL_WITH';$a9_escape=true;$a9_type='emphatic';$a9_cut='both'; ?><?php + $a9_title = ''; $tmp_tag = 'em'; -?><<?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 $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($a6_class,$a6_text,$a6_escape,$a6_type,$a6_cut) ?><?php $a6_class='text';$a6_raw='_';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_type,$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 $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 $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($a6_class,$a6_raw,$a6_escape,$a6_cut) ?><?php $a6_date=$date_right; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_raw,$a9_escape,$a9_cut) ?><?php $a9_date=$date_right; ?><?php global $conf; - $time = $a6_date; + $time = $a9_date; if ( isset($_COOKIE['or_timezone_offset']) ) { $time -= (int)date('Z'); @@ -364,13 +321,12 @@ echo $jahre.' '.lang('GLOBAL_YEARS'); echo '</span>'; } -?><?php unset($a6_date) ?></td></tr><?php - $row_idx++; +?><?php unset($a9_date) ?></td></tr><?php $column_idx = 0; ?> <tr > -<?php $a5_colspan='4'; ?><?php $column_idx++; ?><td +<?php $a8_colspan='4';$a8_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -378,148 +334,148 @@ class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="4" -><?php unset($a5_colspan) ?><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 } ?></fieldset></td></tr><?php $a4_list='diff';$a4_extract=true;$a4_key='list_key';$a4_value='list_value'; ?><?php - $a4_list_tmp_key = $a4_key; - $a4_list_tmp_value = $a4_value; - $a4_list_extract = $a4_extract; - unset($a4_key); - unset($a4_value); - if ( !isset($$a4_list) || !is_array($$a4_list) ) - $$a4_list = array(); - foreach( $$a4_list as $$a4_list_tmp_key => $$a4_list_tmp_value ) +><?php unset($a8_colspan,$a8_header) ?></td></tr><?php $a7_list='diff';$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 ( $a4_list_extract ) + if ( $a7_list_extract ) { - if ( !is_array($$a4_list_tmp_value) ) + if ( !is_array($$a7_list_tmp_value) ) { - print_r($$a4_list_tmp_value); - die( 'not an array at key: '.$$a4_list_tmp_key ); + print_r($$a7_list_tmp_value); + die( 'not an array at key: '.$$a7_list_tmp_key ); } - extract($$a4_list_tmp_value); + extract($$a7_list_tmp_value); } -?><?php unset($a4_list,$a4_extract,$a4_key,$a4_value) ?><?php $a5_class='diff'; ?><?php - $row_idx++; +?><?php unset($a7_list,$a7_extract,$a7_key,$a7_value) ?><?php $a8_class='diff'; ?><?php $column_idx = 0; ?> <tr class="diff" > -<?php unset($a5_class) ?><?php $a6_present='left'; ?><?php - $a6_tmp_exec = isset($$a6_present); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) +<?php unset($a8_class) ?><?php $a9_present='left'; ?><?php + $a9_tmp_exec = isset($$a9_present); + $a9_tmp_last_exec = $a9_tmp_exec; + if ( $a9_tmp_exec ) { ?> -<?php unset($a6_present) ?><?php $a7_width='5%';$a7_class='line'; ?><?php $column_idx++; ?><td +<?php unset($a9_present) ?><?php $a10_width='5%';$a10_class='line';$a10_header=false; ?><?php $column_idx++; ?><td width="5%" class="line" -><?php unset($a7_width,$a7_class) ?><?php $a8_class='text';$a8_value=@$left[line];$a8_escape=true;$a8_type='tt';$a8_cut='both'; ?><?php - $a8_title = ''; -?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php - $langF = $a8_escape?'langHtml':'lang'; - $tmp_text = $a8_escape?htmlentities($a8_value):$a8_value; +><?php unset($a10_width,$a10_class,$a10_header) ?><?php $a11_class='text';$a11_value=@$left[line];$a11_escape=true;$a11_type='tt';$a11_cut='both'; ?><?php + $a11_title = ''; +?><<?php echo $tmp_tag ?> class="<?php echo $a11_class ?>" title="<?php echo $a11_title ?>"><?php + $langF = $a11_escape?'langHtml':'lang'; + $tmp_text = $a11_escape?htmlentities($a11_value):$a11_value; $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_value,$a8_escape,$a8_type,$a8_cut) ?></td><?php $a7_width='45%';$a7_class=@$left[type]; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_value,$a11_escape,$a11_type,$a11_cut) ?></td><?php $a10_width='45%';$a10_class=@$left[type];$a10_header=false; ?><?php $column_idx++; ?><td width="45%" class="<?php echo @$left[type] ?>" -><?php unset($a7_width,$a7_class) ?><?php $a8_class='text';$a8_value=@$left[text];$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +><?php unset($a10_width,$a10_class,$a10_header) ?><?php $a11_class='text';$a11_value=@$left[text];$a11_escape=true;$a11_cut='both'; ?><?php + $a11_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 = $a8_escape?htmlentities($a8_value):$a8_value; +?><<?php echo $tmp_tag ?> class="<?php echo $a11_class ?>" title="<?php echo $a11_title ?>"><?php + $langF = $a11_escape?'langHtml':'lang'; + $tmp_text = $a11_escape?htmlentities($a11_value):$a11_value; $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_value,$a8_escape,$a8_cut) ?></td><?php } ?><?php if (!$a6_tmp_last_exec) { ?> -<?php $a7_width='50%';$a7_class='help';$a7_colspan='2'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_value,$a11_escape,$a11_cut) ?></td><?php } ?><?php if (!$a9_tmp_last_exec) { ?> +<?php $a10_width='50%';$a10_class='help';$a10_colspan='2';$a10_header=false; ?><?php $column_idx++; ?><td width="50%" class="help" colspan="2" -><?php unset($a7_width,$a7_class,$a7_colspan) ?><?php $a8_class='text';$a8_raw='_';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +><?php unset($a10_width,$a10_class,$a10_colspan,$a10_header) ?><?php $a11_class='text';$a11_raw='_';$a11_escape=true;$a11_cut='both'; ?><?php + $a11_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 $a11_class ?>" title="<?php echo $a11_title ?>"><?php + $langF = $a11_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a11_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) ?></td><?php } -unset($a5_tmp_last_exec) ?><?php $a6_present='right'; ?><?php - $a6_tmp_exec = isset($$a6_present); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) +?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_raw,$a11_escape,$a11_cut) ?></td><?php } +unset($a8_tmp_last_exec) ?><?php $a9_present='right'; ?><?php + $a9_tmp_exec = isset($$a9_present); + $a9_tmp_last_exec = $a9_tmp_exec; + if ( $a9_tmp_exec ) { ?> -<?php unset($a6_present) ?><?php $a7_width='5%';$a7_class='line'; ?><?php $column_idx++; ?><td +<?php unset($a9_present) ?><?php $a10_width='5%';$a10_class='line';$a10_header=false; ?><?php $column_idx++; ?><td width="5%" class="line" -><?php unset($a7_width,$a7_class) ?><?php $a8_class='text';$a8_value=@$right[line];$a8_escape=true;$a8_type='tt';$a8_cut='both'; ?><?php - $a8_title = ''; -?><<?php echo $tmp_tag ?> class="<?php echo $a8_class ?>" title="<?php echo $a8_title ?>"><?php - $langF = $a8_escape?'langHtml':'lang'; - $tmp_text = $a8_escape?htmlentities($a8_value):$a8_value; +><?php unset($a10_width,$a10_class,$a10_header) ?><?php $a11_class='text';$a11_value=@$right[line];$a11_escape=true;$a11_type='tt';$a11_cut='both'; ?><?php + $a11_title = ''; +?><<?php echo $tmp_tag ?> class="<?php echo $a11_class ?>" title="<?php echo $a11_title ?>"><?php + $langF = $a11_escape?'langHtml':'lang'; + $tmp_text = $a11_escape?htmlentities($a11_value):$a11_value; $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_value,$a8_escape,$a8_type,$a8_cut) ?></td><?php $a7_width='45%';$a7_class=@$right[type]; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_value,$a11_escape,$a11_type,$a11_cut) ?></td><?php $a10_width='45%';$a10_class=@$right[type];$a10_header=false; ?><?php $column_idx++; ?><td width="45%" class="<?php echo @$right[type] ?>" -><?php unset($a7_width,$a7_class) ?><?php $a8_class='text';$a8_value=@$right[text];$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +><?php unset($a10_width,$a10_class,$a10_header) ?><?php $a11_class='text';$a11_value=@$right[text];$a11_escape=true;$a11_cut='both'; ?><?php + $a11_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 = $a8_escape?htmlentities($a8_value):$a8_value; +?><<?php echo $tmp_tag ?> class="<?php echo $a11_class ?>" title="<?php echo $a11_title ?>"><?php + $langF = $a11_escape?'langHtml':'lang'; + $tmp_text = $a11_escape?htmlentities($a11_value):$a11_value; $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_value,$a8_escape,$a8_cut) ?></td><?php } ?><?php if (!$a6_tmp_last_exec) { ?> -<?php $a7_width='50%';$a7_class='help';$a7_colspan='2'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_value,$a11_escape,$a11_cut) ?></td><?php } ?><?php if (!$a9_tmp_last_exec) { ?> +<?php $a10_width='50%';$a10_class='help';$a10_colspan='2';$a10_header=false; ?><?php $column_idx++; ?><td width="50%" class="help" colspan="2" -><?php unset($a7_width,$a7_class,$a7_colspan) ?><?php $a8_class='text';$a8_raw='_';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +><?php unset($a10_width,$a10_class,$a10_colspan,$a10_header) ?><?php $a11_class='text';$a11_raw='_';$a11_escape=true;$a11_cut='both'; ?><?php + $a11_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 $a11_class ?>" title="<?php echo $a11_title ?>"><?php + $langF = $a11_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a11_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) ?></td><?php } -unset($a5_tmp_last_exec) ?></tr><?php $a5_var='left'; ?><?php - if (!isset($a5_value)) - unset($$a5_var); -?><?php unset($a5_var) ?><?php $a5_var='right'; ?><?php - if (!isset($a5_value)) - unset($$a5_var); -?><?php unset($a5_var) ?><?php } ?><?php - $row_idx++; - $column_idx = 0; +?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_raw,$a11_escape,$a11_cut) ?></td><?php } +unset($a8_tmp_last_exec) ?></tr><?php $a8_var='left'; ?><?php + if (!isset($a8_value)) + unset($$a8_var); +?><?php unset($a8_var) ?><?php $a8_var='right'; ?><?php + if (!isset($a8_value)) + unset($$a8_var); +?><?php unset($a8_var) ?><?php } ?><?php + $column_idx = $last_column_idx; ?> -<tr -> -<?php $a5_class='act';$a5_colspan='4'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> - class="act" - colspan="4" -><?php unset($a5_class,$a5_colspan) ?><?php $a6_type='submit';$a6_class='ok';$a6_value='ok';$a6_text='BUTTON_BACK'; ?><?php - $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> +</table></fieldset><?php $a5_type='submit';$a5_class='ok';$a5_value='ok';$a5_text='BUTTON_BACK'; ?><div class="invisible"> +<?php + $a5_tmp_src = ''; + if ( !empty($a5_type)) { +?> +<input type="<?php echo $a5_type ?>"<?php if(isset($a5_src)) { ?> src="<?php $a5_tmp_src ?>"<?php } ?> name="<?php echo $a5_value ?>" class="ok" title="<?php echo lang($a5_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a5_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a5_src); ?> +<?php } +?> +</div><?php unset($a5_type,$a5_class,$a5_value,$a5_text) ?><?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/> @@ -527,6 +483,4 @@ unset($a5_tmp_last_exec) ?></tr><?php $a5_var='left'; ?><?php <?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/pageelement/edit.tpl.php b/themes/default/pages/html/pageelement/edit.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 } ?> - <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_views='link,import,export,archive';$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(); @@ -46,96 +30,85 @@ $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_class='text';$a3_default='';$a3_type='hidden';$a3_name='elementid';$a3_size='40';$a3_maxlength='256';$a3_onchange='';$a3_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a3_readonly=true; +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><?php $a3_class='text';$a3_default='';$a3_type='hidden';$a3_name='elementid';$a3_size='';$a3_maxlength='256';$a3_onchange='';$a3_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a3_readonly=true; if ($a3_readonly && empty($$a3_name)) $$a3_name = '- '.lang('EMPTY').' -'; if(!isset($a3_default)) $a3_default=''; $tmp_value = Text::encodeHtml(isset($$a3_name)?$$a3_name:$a3_default); ?><?php if (!$a3_readonly || $a3_type=='hidden') { -?><input<?php if ($a3_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a3_name ?><?php if ($a3_readonly) echo '_disabled' ?>" name="<?php echo $a3_name ?><?php if ($a3_readonly) echo '_disabled' ?>" type="<?php echo $a3_type ?>" size="<?php echo $a3_size ?>" maxlength="<?php echo $a3_maxlength ?>" class="<?php echo $a3_class ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a3_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php +?><input<?php if ($a3_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a3_name ?><?php if ($a3_readonly) echo '_disabled' ?>" name="<?php echo $a3_name ?><?php if ($a3_readonly) echo '_disabled' ?>" type="<?php echo $a3_type ?>" maxlength="<?php echo $a3_maxlength ?>" class="<?php echo str_replace(',',' ',$a3_class) ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a3_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php if ($a3_readonly) { ?><input type="hidden" id="id_<?php echo $a3_name ?>" name="<?php echo $a3_name ?>" value="<?php echo $tmp_value ?>" /><?php - } } else { ?><span class="<?php echo $a3_class ?>"><?php echo $tmp_value ?></span><?php } ?><?php unset($a3_class,$a3_default,$a3_type,$a3_name,$a3_size,$a3_maxlength,$a3_onchange,$a3_readonly) ?><?php $a3_class='text';$a3_default='';$a3_type='hidden';$a3_name='value_time';$a3_size='40';$a3_maxlength='256';$a3_onchange='';$a3_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a3_readonly=true; + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a3_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a3_class,$a3_default,$a3_type,$a3_name,$a3_size,$a3_maxlength,$a3_onchange,$a3_readonly) ?><?php $a3_class='text';$a3_default='';$a3_type='hidden';$a3_name='value_time';$a3_size='';$a3_maxlength='256';$a3_onchange='';$a3_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a3_readonly=true; if ($a3_readonly && empty($$a3_name)) $$a3_name = '- '.lang('EMPTY').' -'; if(!isset($a3_default)) $a3_default=''; $tmp_value = Text::encodeHtml(isset($$a3_name)?$$a3_name:$a3_default); ?><?php if (!$a3_readonly || $a3_type=='hidden') { -?><input<?php if ($a3_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a3_name ?><?php if ($a3_readonly) echo '_disabled' ?>" name="<?php echo $a3_name ?><?php if ($a3_readonly) echo '_disabled' ?>" type="<?php echo $a3_type ?>" size="<?php echo $a3_size ?>" maxlength="<?php echo $a3_maxlength ?>" class="<?php echo $a3_class ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a3_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php +?><input<?php if ($a3_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a3_name ?><?php if ($a3_readonly) echo '_disabled' ?>" name="<?php echo $a3_name ?><?php if ($a3_readonly) echo '_disabled' ?>" type="<?php echo $a3_type ?>" maxlength="<?php echo $a3_maxlength ?>" class="<?php echo str_replace(',',' ',$a3_class) ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a3_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php if ($a3_readonly) { ?><input type="hidden" id="id_<?php echo $a3_name ?>" name="<?php echo $a3_name ?>" value="<?php echo $tmp_value ?>" /><?php - } } else { ?><span class="<?php echo $a3_class ?>"><?php echo $tmp_value ?></span><?php } ?><?php unset($a3_class,$a3_default,$a3_type,$a3_name,$a3_size,$a3_maxlength,$a3_onchange,$a3_readonly) ?><?php $a3_name='element';$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()) { ?> + } } else { ?><a title="<?php echo langHtml('EDIT') ?>" href="<?php echo Html::url($actionName,$subactionName,0,array('mode'=>'edit')) ?>"><span class="<?php echo $a3_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a3_class,$a3_default,$a3_type,$a3_name,$a3_size,$a3_maxlength,$a3_onchange,$a3_readonly) ?><?php $a3_name='element';$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']); @@ -143,509 +116,560 @@ if ($a3_readonly) { $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_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a5_class='help';$a5_colspan='2'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" + </dl> <?php } ?> - class="help" - colspan="2" -><?php unset($a5_class,$a5_colspan) ?><?php $a6_class='text';$a6_var='desc';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +<div class="content"><div class="filler"> +<?php } ?><?php unset($a3_name,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $a4_class='help';$a4_var='desc';$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 = isset($$a6_var)?$$a6_var:$langF('UNKNOWN'); +?><<?php echo $tmp_tag ?> class="<?php echo $a4_class ?>" title="<?php echo $a4_title ?>"><?php + $langF = $a4_escape?'langHtml':'lang'; + $tmp_text = isset($$a4_var)?$$a4_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 $a4_equals='date';$a4_value=$type; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a4_class,$a4_var,$a4_escape,$a4_cut) ?><?php $a4_equals='date';$a4_value=$type; ?><?php $a4_tmp_exec = $a4_equals == $a4_value; $a4_tmp_last_exec = $a4_tmp_exec; if ( $a4_tmp_exec ) { ?> -<?php unset($a4_equals,$a4_value) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_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($a6_colspan) ?><?php $a7_title=lang('calendar'); ?><fieldset><?php if(isset($a7_title)) { ?><legend><?php if(isset($a7_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a7_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a7_title) ?></legend><?php } ?><?php unset($a7_title) ?></fieldset></td></tr><?php - $row_idx++; - $column_idx = 0; +<?php unset($a4_equals,$a4_value) ?><?php $a5_true=$mode=="edit"; ?><?php + if (gettype($a5_true) === '' && gettype($a5_true) === '1') + $a5_tmp_exec = $$a5_true == true; + else + $a5_tmp_exec = $a5_true == true; + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) + { ?> -<tr -> -<?php $a6_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($a6_colspan) ?><?php $a7_class='calendar';$a7_width='85%';$a7_space='0px';$a7_padding='0px'; ?><?php - $last_row_idx = @$row_idx; +<?php unset($a5_true) ?><?php $a6_title=lang('calendar'); ?><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) ?><div><?php $a8_class='calendar';$a8_width='85%';$a8_space='0px';$a8_padding='0px'; ?><?php $last_column_idx = @$column_idx; - $row_idx = 0; $column_idx = 0; $coloumn_widths = array(); $row_classes = array(); $column_classes = array(); ?><table class="calendar" cellspacing="0px" width="85%" cellpadding="0px"> -<?php unset($a7_class,$a7_width,$a7_space,$a7_padding) ?><?php - $row_idx++; +<?php unset($a8_class,$a8_width,$a8_space,$a8_padding) ?><?php $column_idx = 0; ?> <tr > -<?php $a9_class='help';$a9_colspan='8'; ?><?php $column_idx++; ?><td +<?php $a10_class='help';$a10_colspan='8';$a10_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" colspan="8" -><?php unset($a9_class,$a9_colspan) ?><?php $a10_true=$mode=="edit"; ?><?php - if (gettype($a10_true) === '' && gettype($a10_true) === '1') - $a10_tmp_exec = $$a10_true == true; +><?php unset($a10_class,$a10_colspan,$a10_header) ?><?php $a11_true=$mode=="edit"; ?><?php + if (gettype($a11_true) === '' && gettype($a11_true) === '1') + $a11_tmp_exec = $$a11_true == true; else - $a10_tmp_exec = $a10_true == true; - $a10_tmp_last_exec = $a10_tmp_exec; - if ( $a10_tmp_exec ) + $a11_tmp_exec = $a11_true == true; + $a11_tmp_last_exec = $a11_tmp_exec; + if ( $a11_tmp_exec ) { ?> -<?php unset($a10_true) ?><?php $a11_title='';$a11_target='_self';$a11_url=$lastmonthurl;$a11_class=''; ?><?php +<?php unset($a11_true) ?><?php $a12_title='';$a12_type='';$a12_url=$lastmonthurl;$a12_class='';$a12_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a11_url; -?><a<?php if (isset($a11_name)) echo ' name="'.$a11_name.'"'; else echo ' href="'.$tmp_url.(isset($a11_anchor)?'#'.$a11_anchor:'').'"' ?> class="<?php echo $a11_class ?>" target="<?php echo $a11_target ?>"<?php if (isset($a11_accesskey)) echo ' accesskey="'.$a11_accesskey.'"' ?> title="<?php echo encodeHtml($a11_title) ?>"><?php unset($a11_title,$a11_target,$a11_url,$a11_class) ?><?php $a12_file='left';$a12_align='middle'; ?><?php - $a12_tmp_image_file = $image_dir.$a12_file.IMG_ICON_EXT; - $a12_tmp_title = basename($a12_tmp_image_file); -?><img alt="<?php echo $a12_tmp_title; if (isset($a12_size)) { echo ' ('; list($a12_tmp_width,$a12_tmp_height)=explode('x',$a12_size);echo $a12_tmp_width.'x'.$a12_tmp_height; echo')';} ?>" src="<?php echo $a12_tmp_image_file ?>" border="0"<?php if(isset($a12_align)) echo ' align="'.$a12_align.'"' ?><?php if (isset($a12_size)) { list($a12_tmp_width,$a12_tmp_height)=explode('x',$a12_size);echo ' width="'.$a12_tmp_width.'" height="'.$a12_tmp_height.'"';} ?>><?php unset($a12_file,$a12_align) ?></a><?php $a11_class='text';$a11_raw='_';$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; + $a12_target = $view; + switch( $a12_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a12_action)?$a12_action:$this->actionName,'subaction'=>!empty($a12_subaction)?$a12_subaction:$this->subActionName,'id'=>!empty($a12_id)?$a12_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($a12_subaction)?$a12_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a12_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a12_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a12_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a12_frame ?>"<?php if (isset($a12_name)) { ?> name="<?php echo $a12_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a12_class ?>"<?php if (isset($a12_accesskey)) echo ' accesskey="'.$a12_accesskey.'"' ?> title="<?php echo encodeHtml($a12_title) ?>"><?php unset($a12_title,$a12_type,$a12_url,$a12_class,$a12_frame) ?><?php $a13_file='left';$a13_align='middle'; ?><?php + $a13_tmp_image_file = $image_dir.$a13_file.IMG_ICON_EXT; + $a13_tmp_title = basename($a13_tmp_image_file); +?><img alt="<?php echo $a13_tmp_title; if (isset($a13_size)) { echo ' ('; list($a13_tmp_width,$a13_tmp_height)=explode('x',$a13_size);echo $a13_tmp_width.'x'.$a13_tmp_height; echo')';} ?>" src="<?php echo $a13_tmp_image_file ?>" border="0"<?php if(isset($a13_align)) echo ' align="'.$a13_align.'"' ?><?php if (isset($a13_size)) { list($a13_tmp_width,$a13_tmp_height)=explode('x',$a13_size);echo ' width="'.$a13_tmp_width.'" height="'.$a13_tmp_height.'"';} ?> /><?php unset($a13_file,$a13_align) ?></a><?php $a12_class='text';$a12_raw='_';$a12_escape=true;$a12_cut='both'; ?><?php + $a12_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 = str_replace('_','&nbsp;',$a11_raw); +?><<?php echo $tmp_tag ?> class="<?php echo $a12_class ?>" title="<?php echo $a12_title ?>"><?php + $langF = $a12_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a12_raw); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_raw,$a11_escape,$a11_cut) ?><?php } ?><?php $a10_class='text';$a10_var='monthname';$a10_escape=true;$a10_type='strong';$a10_cut='both'; ?><?php - $a10_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a12_class,$a12_raw,$a12_escape,$a12_cut) ?><?php } ?><?php $a11_class='text';$a11_var='monthname';$a11_escape=true;$a11_type='strong';$a11_cut='both'; ?><?php + $a11_title = ''; $tmp_tag = 'strong'; -?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php - $langF = $a10_escape?'langHtml':'lang'; - $tmp_text = isset($$a10_var)?$$a10_var:$langF('UNKNOWN'); +?><<?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($a10_class,$a10_var,$a10_escape,$a10_type,$a10_cut) ?><?php $a10_true=$mode=="edit"; ?><?php - if (gettype($a10_true) === '' && gettype($a10_true) === '1') - $a10_tmp_exec = $$a10_true == true; +?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_var,$a11_escape,$a11_type,$a11_cut) ?><?php $a11_true=$mode=="edit"; ?><?php + if (gettype($a11_true) === '' && gettype($a11_true) === '1') + $a11_tmp_exec = $$a11_true == true; else - $a10_tmp_exec = $a10_true == true; - $a10_tmp_last_exec = $a10_tmp_exec; - if ( $a10_tmp_exec ) + $a11_tmp_exec = $a11_true == true; + $a11_tmp_last_exec = $a11_tmp_exec; + if ( $a11_tmp_exec ) { ?> -<?php unset($a10_true) ?><?php $a11_class='text';$a11_raw='_';$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +<?php unset($a11_true) ?><?php $a12_class='text';$a12_raw='_';$a12_escape=true;$a12_cut='both'; ?><?php + $a12_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 = str_replace('_','&nbsp;',$a11_raw); +?><<?php echo $tmp_tag ?> class="<?php echo $a12_class ?>" title="<?php echo $a12_title ?>"><?php + $langF = $a12_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a12_raw); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_raw,$a11_escape,$a11_cut) ?><?php $a11_title='';$a11_target='_self';$a11_url=$nextmonthurl;$a11_class=''; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a12_class,$a12_raw,$a12_escape,$a12_cut) ?><?php $a12_title='';$a12_type='';$a12_url=$nextmonthurl;$a12_class='';$a12_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a11_url; -?><a<?php if (isset($a11_name)) echo ' name="'.$a11_name.'"'; else echo ' href="'.$tmp_url.(isset($a11_anchor)?'#'.$a11_anchor:'').'"' ?> class="<?php echo $a11_class ?>" target="<?php echo $a11_target ?>"<?php if (isset($a11_accesskey)) echo ' accesskey="'.$a11_accesskey.'"' ?> title="<?php echo encodeHtml($a11_title) ?>"><?php unset($a11_title,$a11_target,$a11_url,$a11_class) ?><?php $a12_file='right';$a12_align='middle'; ?><?php - $a12_tmp_image_file = $image_dir.$a12_file.IMG_ICON_EXT; - $a12_tmp_title = basename($a12_tmp_image_file); -?><img alt="<?php echo $a12_tmp_title; if (isset($a12_size)) { echo ' ('; list($a12_tmp_width,$a12_tmp_height)=explode('x',$a12_size);echo $a12_tmp_width.'x'.$a12_tmp_height; echo')';} ?>" src="<?php echo $a12_tmp_image_file ?>" border="0"<?php if(isset($a12_align)) echo ' align="'.$a12_align.'"' ?><?php if (isset($a12_size)) { list($a12_tmp_width,$a12_tmp_height)=explode('x',$a12_size);echo ' width="'.$a12_tmp_width.'" height="'.$a12_tmp_height.'"';} ?>><?php unset($a12_file,$a12_align) ?></a><?php } ?><?php $a10_class='text';$a10_raw='_____';$a10_escape=true;$a10_cut='both'; ?><?php - $a10_title = ''; + $a12_target = $view; + switch( $a12_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a12_action)?$a12_action:$this->actionName,'subaction'=>!empty($a12_subaction)?$a12_subaction:$this->subActionName,'id'=>!empty($a12_id)?$a12_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($a12_subaction)?$a12_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a12_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a12_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a12_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a12_frame ?>"<?php if (isset($a12_name)) { ?> name="<?php echo $a12_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a12_class ?>"<?php if (isset($a12_accesskey)) echo ' accesskey="'.$a12_accesskey.'"' ?> title="<?php echo encodeHtml($a12_title) ?>"><?php unset($a12_title,$a12_type,$a12_url,$a12_class,$a12_frame) ?><?php $a13_file='right';$a13_align='middle'; ?><?php + $a13_tmp_image_file = $image_dir.$a13_file.IMG_ICON_EXT; + $a13_tmp_title = basename($a13_tmp_image_file); +?><img alt="<?php echo $a13_tmp_title; if (isset($a13_size)) { echo ' ('; list($a13_tmp_width,$a13_tmp_height)=explode('x',$a13_size);echo $a13_tmp_width.'x'.$a13_tmp_height; echo')';} ?>" src="<?php echo $a13_tmp_image_file ?>" border="0"<?php if(isset($a13_align)) echo ' align="'.$a13_align.'"' ?><?php if (isset($a13_size)) { list($a13_tmp_width,$a13_tmp_height)=explode('x',$a13_size);echo ' width="'.$a13_tmp_width.'" height="'.$a13_tmp_height.'"';} ?> /><?php unset($a13_file,$a13_align) ?></a><?php } ?><?php $a11_class='text';$a11_raw='_____';$a11_escape=true;$a11_cut='both'; ?><?php + $a11_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php - $langF = $a10_escape?'langHtml':'lang'; - $tmp_text = str_replace('_','&nbsp;',$a10_raw); +?><<?php echo $tmp_tag ?> class="<?php echo $a11_class ?>" title="<?php echo $a11_title ?>"><?php + $langF = $a11_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a11_raw); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_raw,$a10_escape,$a10_cut) ?><?php $a10_true=$mode=="edit"; ?><?php - if (gettype($a10_true) === '' && gettype($a10_true) === '1') - $a10_tmp_exec = $$a10_true == true; +?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_raw,$a11_escape,$a11_cut) ?><?php $a11_true=$mode=="edit"; ?><?php + if (gettype($a11_true) === '' && gettype($a11_true) === '1') + $a11_tmp_exec = $$a11_true == true; else - $a10_tmp_exec = $a10_true == true; - $a10_tmp_last_exec = $a10_tmp_exec; - if ( $a10_tmp_exec ) + $a11_tmp_exec = $a11_true == true; + $a11_tmp_last_exec = $a11_tmp_exec; + if ( $a11_tmp_exec ) { ?> -<?php unset($a10_true) ?><?php $a11_title='';$a11_target='_self';$a11_url=$lastyearurl;$a11_class=''; ?><?php +<?php unset($a11_true) ?><?php $a12_title='';$a12_type='';$a12_url=$lastyearurl;$a12_class='';$a12_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a11_url; -?><a<?php if (isset($a11_name)) echo ' name="'.$a11_name.'"'; else echo ' href="'.$tmp_url.(isset($a11_anchor)?'#'.$a11_anchor:'').'"' ?> class="<?php echo $a11_class ?>" target="<?php echo $a11_target ?>"<?php if (isset($a11_accesskey)) echo ' accesskey="'.$a11_accesskey.'"' ?> title="<?php echo encodeHtml($a11_title) ?>"><?php unset($a11_title,$a11_target,$a11_url,$a11_class) ?><?php $a12_file='left';$a12_align='middle'; ?><?php - $a12_tmp_image_file = $image_dir.$a12_file.IMG_ICON_EXT; - $a12_tmp_title = basename($a12_tmp_image_file); -?><img alt="<?php echo $a12_tmp_title; if (isset($a12_size)) { echo ' ('; list($a12_tmp_width,$a12_tmp_height)=explode('x',$a12_size);echo $a12_tmp_width.'x'.$a12_tmp_height; echo')';} ?>" src="<?php echo $a12_tmp_image_file ?>" border="0"<?php if(isset($a12_align)) echo ' align="'.$a12_align.'"' ?><?php if (isset($a12_size)) { list($a12_tmp_width,$a12_tmp_height)=explode('x',$a12_size);echo ' width="'.$a12_tmp_width.'" height="'.$a12_tmp_height.'"';} ?>><?php unset($a12_file,$a12_align) ?></a><?php $a11_class='text';$a11_raw='_';$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; + $a12_target = $view; + switch( $a12_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a12_action)?$a12_action:$this->actionName,'subaction'=>!empty($a12_subaction)?$a12_subaction:$this->subActionName,'id'=>!empty($a12_id)?$a12_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($a12_subaction)?$a12_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a12_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a12_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a12_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a12_frame ?>"<?php if (isset($a12_name)) { ?> name="<?php echo $a12_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a12_class ?>"<?php if (isset($a12_accesskey)) echo ' accesskey="'.$a12_accesskey.'"' ?> title="<?php echo encodeHtml($a12_title) ?>"><?php unset($a12_title,$a12_type,$a12_url,$a12_class,$a12_frame) ?><?php $a13_file='left';$a13_align='middle'; ?><?php + $a13_tmp_image_file = $image_dir.$a13_file.IMG_ICON_EXT; + $a13_tmp_title = basename($a13_tmp_image_file); +?><img alt="<?php echo $a13_tmp_title; if (isset($a13_size)) { echo ' ('; list($a13_tmp_width,$a13_tmp_height)=explode('x',$a13_size);echo $a13_tmp_width.'x'.$a13_tmp_height; echo')';} ?>" src="<?php echo $a13_tmp_image_file ?>" border="0"<?php if(isset($a13_align)) echo ' align="'.$a13_align.'"' ?><?php if (isset($a13_size)) { list($a13_tmp_width,$a13_tmp_height)=explode('x',$a13_size);echo ' width="'.$a13_tmp_width.'" height="'.$a13_tmp_height.'"';} ?> /><?php unset($a13_file,$a13_align) ?></a><?php $a12_class='text';$a12_raw='_';$a12_escape=true;$a12_cut='both'; ?><?php + $a12_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 = str_replace('_','&nbsp;',$a11_raw); +?><<?php echo $tmp_tag ?> class="<?php echo $a12_class ?>" title="<?php echo $a12_title ?>"><?php + $langF = $a12_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a12_raw); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_raw,$a11_escape,$a11_cut) ?><?php } ?><?php $a10_class='text';$a10_var='yearname';$a10_escape=true;$a10_type='strong';$a10_cut='both'; ?><?php - $a10_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a12_class,$a12_raw,$a12_escape,$a12_cut) ?><?php } ?><?php $a11_class='text';$a11_var='yearname';$a11_escape=true;$a11_type='strong';$a11_cut='both'; ?><?php + $a11_title = ''; $tmp_tag = 'strong'; -?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php - $langF = $a10_escape?'langHtml':'lang'; - $tmp_text = isset($$a10_var)?$$a10_var:$langF('UNKNOWN'); +?><<?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($a10_class,$a10_var,$a10_escape,$a10_type,$a10_cut) ?><?php $a10_true=$mode=="edit"; ?><?php - if (gettype($a10_true) === '' && gettype($a10_true) === '1') - $a10_tmp_exec = $$a10_true == true; +?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_var,$a11_escape,$a11_type,$a11_cut) ?><?php $a11_true=$mode=="edit"; ?><?php + if (gettype($a11_true) === '' && gettype($a11_true) === '1') + $a11_tmp_exec = $$a11_true == true; else - $a10_tmp_exec = $a10_true == true; - $a10_tmp_last_exec = $a10_tmp_exec; - if ( $a10_tmp_exec ) + $a11_tmp_exec = $a11_true == true; + $a11_tmp_last_exec = $a11_tmp_exec; + if ( $a11_tmp_exec ) { ?> -<?php unset($a10_true) ?><?php $a11_class='text';$a11_raw='_';$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +<?php unset($a11_true) ?><?php $a12_class='text';$a12_raw='_';$a12_escape=true;$a12_cut='both'; ?><?php + $a12_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 = str_replace('_','&nbsp;',$a11_raw); +?><<?php echo $tmp_tag ?> class="<?php echo $a12_class ?>" title="<?php echo $a12_title ?>"><?php + $langF = $a12_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a12_raw); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_raw,$a11_escape,$a11_cut) ?><?php $a11_title='';$a11_target='_self';$a11_url=$nextyearurl;$a11_class=''; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a12_class,$a12_raw,$a12_escape,$a12_cut) ?><?php $a12_title='';$a12_type='';$a12_url=$nextyearurl;$a12_class='';$a12_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a11_url; -?><a<?php if (isset($a11_name)) echo ' name="'.$a11_name.'"'; else echo ' href="'.$tmp_url.(isset($a11_anchor)?'#'.$a11_anchor:'').'"' ?> class="<?php echo $a11_class ?>" target="<?php echo $a11_target ?>"<?php if (isset($a11_accesskey)) echo ' accesskey="'.$a11_accesskey.'"' ?> title="<?php echo encodeHtml($a11_title) ?>"><?php unset($a11_title,$a11_target,$a11_url,$a11_class) ?><?php $a12_file='right';$a12_align='middle'; ?><?php - $a12_tmp_image_file = $image_dir.$a12_file.IMG_ICON_EXT; - $a12_tmp_title = basename($a12_tmp_image_file); -?><img alt="<?php echo $a12_tmp_title; if (isset($a12_size)) { echo ' ('; list($a12_tmp_width,$a12_tmp_height)=explode('x',$a12_size);echo $a12_tmp_width.'x'.$a12_tmp_height; echo')';} ?>" src="<?php echo $a12_tmp_image_file ?>" border="0"<?php if(isset($a12_align)) echo ' align="'.$a12_align.'"' ?><?php if (isset($a12_size)) { list($a12_tmp_width,$a12_tmp_height)=explode('x',$a12_size);echo ' width="'.$a12_tmp_width.'" height="'.$a12_tmp_height.'"';} ?>><?php unset($a12_file,$a12_align) ?></a><?php } ?></td></tr><?php - $row_idx++; + $a12_target = $view; + switch( $a12_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a12_action)?$a12_action:$this->actionName,'subaction'=>!empty($a12_subaction)?$a12_subaction:$this->subActionName,'id'=>!empty($a12_id)?$a12_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($a12_subaction)?$a12_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a12_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a12_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a12_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a12_frame ?>"<?php if (isset($a12_name)) { ?> name="<?php echo $a12_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a12_class ?>"<?php if (isset($a12_accesskey)) echo ' accesskey="'.$a12_accesskey.'"' ?> title="<?php echo encodeHtml($a12_title) ?>"><?php unset($a12_title,$a12_type,$a12_url,$a12_class,$a12_frame) ?><?php $a13_file='right';$a13_align='middle'; ?><?php + $a13_tmp_image_file = $image_dir.$a13_file.IMG_ICON_EXT; + $a13_tmp_title = basename($a13_tmp_image_file); +?><img alt="<?php echo $a13_tmp_title; if (isset($a13_size)) { echo ' ('; list($a13_tmp_width,$a13_tmp_height)=explode('x',$a13_size);echo $a13_tmp_width.'x'.$a13_tmp_height; echo')';} ?>" src="<?php echo $a13_tmp_image_file ?>" border="0"<?php if(isset($a13_align)) echo ' align="'.$a13_align.'"' ?><?php if (isset($a13_size)) { list($a13_tmp_width,$a13_tmp_height)=explode('x',$a13_size);echo ' width="'.$a13_tmp_width.'" height="'.$a13_tmp_height.'"';} ?> /><?php unset($a13_file,$a13_align) ?></a><?php } ?></td></tr><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?php $a10_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 $a10_class='text';$a10_key='week';$a10_escape=true;$a10_cut='both'; ?><?php - $a10_title = ''; +><?php unset($a10_header) ?><?php $a11_class='text';$a11_key='week';$a11_escape=true;$a11_cut='both'; ?><?php + $a11_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php - $langF = $a10_escape?'langHtml':'lang'; - $tmp_text = $langF($a10_key); +?><<?php echo $tmp_tag ?> class="<?php echo $a11_class ?>" title="<?php echo $a11_title ?>"><?php + $langF = $a11_escape?'langHtml':'lang'; + $tmp_text = $langF($a11_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_key,$a10_escape,$a10_cut) ?></td><?php $a9_list='weekdays';$a9_extract=false;$a9_key='list_key';$a9_value='weekday'; ?><?php - $a9_list_tmp_key = $a9_key; - $a9_list_tmp_value = $a9_value; - $a9_list_extract = $a9_extract; - unset($a9_key); - unset($a9_value); - if ( !isset($$a9_list) || !is_array($$a9_list) ) - $$a9_list = array(); - foreach( $$a9_list as $$a9_list_tmp_key => $$a9_list_tmp_value ) +?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_key,$a11_escape,$a11_cut) ?></td><?php $a10_list='weekdays';$a10_extract=false;$a10_key='list_key';$a10_value='weekday'; ?><?php + $a10_list_tmp_key = $a10_key; + $a10_list_tmp_value = $a10_value; + $a10_list_extract = $a10_extract; + unset($a10_key); + unset($a10_value); + if ( !isset($$a10_list) || !is_array($$a10_list) ) + $$a10_list = array(); + foreach( $$a10_list as $$a10_list_tmp_key => $$a10_list_tmp_value ) { - if ( $a9_list_extract ) + if ( $a10_list_extract ) { - if ( !is_array($$a9_list_tmp_value) ) + if ( !is_array($$a10_list_tmp_value) ) { - print_r($$a9_list_tmp_value); - die( 'not an array at key: '.$$a9_list_tmp_key ); + print_r($$a10_list_tmp_value); + die( 'not an array at key: '.$$a10_list_tmp_key ); } - extract($$a9_list_tmp_value); + extract($$a10_list_tmp_value); } -?><?php unset($a9_list,$a9_extract,$a9_key,$a9_value) ?><?php $column_idx++; ?><td +?><?php unset($a10_list,$a10_extract,$a10_key,$a10_value) ?><?php $a11_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 $a11_class='text';$a11_var='weekday';$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +><?php unset($a11_header) ?><?php $a12_class='text';$a12_var='weekday';$a12_escape=true;$a12_cut='both'; ?><?php + $a12_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'); +?><<?php echo $tmp_tag ?> class="<?php echo $a12_class ?>" title="<?php echo $a12_title ?>"><?php + $langF = $a12_escape?'langHtml':'lang'; + $tmp_text = isset($$a12_var)?$$a12_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) ?></td><?php } ?></tr><?php $a8_list='weeklist';$a8_extract=false;$a8_key='weeknr';$a8_value='week'; ?><?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 ) +?></<?php echo $tmp_tag ?>><?php unset($a12_class,$a12_var,$a12_escape,$a12_cut) ?></td><?php } ?></tr><?php $a9_list='weeklist';$a9_extract=false;$a9_key='weeknr';$a9_value='week'; ?><?php + $a9_list_tmp_key = $a9_key; + $a9_list_tmp_value = $a9_value; + $a9_list_extract = $a9_extract; + unset($a9_key); + unset($a9_value); + if ( !isset($$a9_list) || !is_array($$a9_list) ) + $$a9_list = array(); + foreach( $$a9_list as $$a9_list_tmp_key => $$a9_list_tmp_value ) { - if ( $a8_list_extract ) + if ( $a9_list_extract ) { - if ( !is_array($$a8_list_tmp_value) ) + if ( !is_array($$a9_list_tmp_value) ) { - print_r($$a8_list_tmp_value); - die( 'not an array at key: '.$$a8_list_tmp_key ); + print_r($$a9_list_tmp_value); + die( 'not an array at key: '.$$a9_list_tmp_key ); } - extract($$a8_list_tmp_value); + extract($$a9_list_tmp_value); } -?><?php unset($a8_list,$a8_extract,$a8_key,$a8_value) ?><?php - $row_idx++; +?><?php unset($a9_list,$a9_extract,$a9_key,$a9_value) ?><?php $column_idx = 0; ?> <tr > -<?php $a10_width='12%'; ?><?php $column_idx++; ?><td +<?php $a11_width='12%';$a11_header=false; ?><?php $column_idx++; ?><td width="12%" <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php unset($a10_width) ?><?php $a11_class='text';$a11_var='weeknr';$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +><?php unset($a11_width,$a11_header) ?><?php $a12_class='text';$a12_var='weeknr';$a12_escape=true;$a12_cut='both'; ?><?php + $a12_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'); +?><<?php echo $tmp_tag ?> class="<?php echo $a12_class ?>" title="<?php echo $a12_title ?>"><?php + $langF = $a12_escape?'langHtml':'lang'; + $tmp_text = isset($$a12_var)?$$a12_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) ?></td><?php $a10_list='week';$a10_extract=true;$a10_key='list_key';$a10_value='list_value'; ?><?php - $a10_list_tmp_key = $a10_key; - $a10_list_tmp_value = $a10_value; - $a10_list_extract = $a10_extract; - unset($a10_key); - unset($a10_value); - if ( !isset($$a10_list) || !is_array($$a10_list) ) - $$a10_list = array(); - foreach( $$a10_list as $$a10_list_tmp_key => $$a10_list_tmp_value ) +?></<?php echo $tmp_tag ?>><?php unset($a12_class,$a12_var,$a12_escape,$a12_cut) ?></td><?php $a11_list='week';$a11_extract=true;$a11_key='list_key';$a11_value='list_value'; ?><?php + $a11_list_tmp_key = $a11_key; + $a11_list_tmp_value = $a11_value; + $a11_list_extract = $a11_extract; + unset($a11_key); + unset($a11_value); + if ( !isset($$a11_list) || !is_array($$a11_list) ) + $$a11_list = array(); + foreach( $$a11_list as $$a11_list_tmp_key => $$a11_list_tmp_value ) { - if ( $a10_list_extract ) + if ( $a11_list_extract ) { - if ( !is_array($$a10_list_tmp_value) ) + if ( !is_array($$a11_list_tmp_value) ) { - print_r($$a10_list_tmp_value); - die( 'not an array at key: '.$$a10_list_tmp_key ); + print_r($$a11_list_tmp_value); + die( 'not an array at key: '.$$a11_list_tmp_key ); } - extract($$a10_list_tmp_value); + extract($$a11_list_tmp_value); } -?><?php unset($a10_list,$a10_extract,$a10_key,$a10_value) ?><?php $a11_width='12%'; ?><?php $column_idx++; ?><td +?><?php unset($a11_list,$a11_extract,$a11_key,$a11_value) ?><?php $a12_width='12%';$a12_header=false; ?><?php $column_idx++; ?><td width="12%" <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php unset($a11_width) ?><?php $a12_empty='url'; ?><?php - if ( !isset($$a12_empty) ) - $a12_tmp_exec = empty($a12_empty); - elseif ( is_array($$a12_empty) ) - $a12_tmp_exec = (count($$a12_empty)==0); - elseif ( is_bool($$a12_empty) ) - $a12_tmp_exec = true; +><?php unset($a12_width,$a12_header) ?><?php $a13_empty='url'; ?><?php + if ( !isset($$a13_empty) ) + $a13_tmp_exec = empty($a13_empty); + elseif ( is_array($$a13_empty) ) + $a13_tmp_exec = (count($$a13_empty)==0); + elseif ( is_bool($$a13_empty) ) + $a13_tmp_exec = true; else - $a12_tmp_exec = empty( $$a12_empty ); - $a12_tmp_last_exec = $a12_tmp_exec; - if ( $a12_tmp_exec ) + $a13_tmp_exec = empty( $$a13_empty ); + $a13_tmp_last_exec = $a13_tmp_exec; + if ( $a13_tmp_exec ) { ?> -<?php unset($a12_empty) ?><?php $a13_class='text';$a13_raw='__';$a13_escape=true;$a13_cut='both'; ?><?php - $a13_title = ''; +<?php unset($a13_empty) ?><?php $a14_class='text';$a14_raw='__';$a14_escape=true;$a14_cut='both'; ?><?php + $a14_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a13_class ?>" title="<?php echo $a13_title ?>"><?php - $langF = $a13_escape?'langHtml':'lang'; - $tmp_text = str_replace('_','&nbsp;',$a13_raw); +?><<?php echo $tmp_tag ?> class="<?php echo $a14_class ?>" title="<?php echo $a14_title ?>"><?php + $langF = $a14_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a14_raw); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a13_class,$a13_raw,$a13_escape,$a13_cut) ?><?php $a13_class='text';$a13_var='nr';$a13_escape=true;$a13_type='strong';$a13_cut='both'; ?><?php - $a13_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a14_class,$a14_raw,$a14_escape,$a14_cut) ?><?php $a14_class='text';$a14_var='nr';$a14_escape=true;$a14_type='strong';$a14_cut='both'; ?><?php + $a14_title = ''; $tmp_tag = 'strong'; -?><<?php echo $tmp_tag ?> class="<?php echo $a13_class ?>" title="<?php echo $a13_title ?>"><?php - $langF = $a13_escape?'langHtml':'lang'; - $tmp_text = isset($$a13_var)?$$a13_var:$langF('UNKNOWN'); +?><<?php echo $tmp_tag ?> class="<?php echo $a14_class ?>" title="<?php echo $a14_title ?>"><?php + $langF = $a14_escape?'langHtml':'lang'; + $tmp_text = isset($$a14_var)?$$a14_var:$langF('UNKNOWN'); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a13_class,$a13_var,$a13_escape,$a13_type,$a13_cut) ?><?php $a13_class='text';$a13_raw='__';$a13_escape=true;$a13_cut='both'; ?><?php - $a13_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a14_class,$a14_var,$a14_escape,$a14_type,$a14_cut) ?><?php $a14_class='text';$a14_raw='__';$a14_escape=true;$a14_cut='both'; ?><?php + $a14_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a13_class ?>" title="<?php echo $a13_title ?>"><?php - $langF = $a13_escape?'langHtml':'lang'; - $tmp_text = str_replace('_','&nbsp;',$a13_raw); +?><<?php echo $tmp_tag ?> class="<?php echo $a14_class ?>" title="<?php echo $a14_title ?>"><?php + $langF = $a14_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a14_raw); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a13_class,$a13_raw,$a13_escape,$a13_cut) ?><?php } ?><?php $a12_not=true;$a12_empty='url'; ?><?php - if ( !isset($$a12_empty) ) - $a12_tmp_exec = empty($a12_empty); - elseif ( is_array($$a12_empty) ) - $a12_tmp_exec = (count($$a12_empty)==0); - elseif ( is_bool($$a12_empty) ) - $a12_tmp_exec = true; +?></<?php echo $tmp_tag ?>><?php unset($a14_class,$a14_raw,$a14_escape,$a14_cut) ?><?php } ?><?php $a13_not=true;$a13_empty='url'; ?><?php + if ( !isset($$a13_empty) ) + $a13_tmp_exec = empty($a13_empty); + elseif ( is_array($$a13_empty) ) + $a13_tmp_exec = (count($$a13_empty)==0); + elseif ( is_bool($$a13_empty) ) + $a13_tmp_exec = true; else - $a12_tmp_exec = empty( $$a12_empty ); - $a12_tmp_exec = !$a12_tmp_exec; - $a12_tmp_last_exec = $a12_tmp_exec; - if ( $a12_tmp_exec ) + $a13_tmp_exec = empty( $$a13_empty ); + $a13_tmp_exec = !$a13_tmp_exec; + $a13_tmp_last_exec = $a13_tmp_exec; + if ( $a13_tmp_exec ) { ?> -<?php unset($a12_not,$a12_empty) ?><?php $a13_title='';$a13_target='_self';$a13_url=$url;$a13_class=''; ?><?php +<?php unset($a13_not,$a13_empty) ?><?php $a14_title='';$a14_type='';$a14_url=$url;$a14_class='';$a14_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a13_url; -?><a<?php if (isset($a13_name)) echo ' name="'.$a13_name.'"'; else echo ' href="'.$tmp_url.(isset($a13_anchor)?'#'.$a13_anchor:'').'"' ?> class="<?php echo $a13_class ?>" target="<?php echo $a13_target ?>"<?php if (isset($a13_accesskey)) echo ' accesskey="'.$a13_accesskey.'"' ?> title="<?php echo encodeHtml($a13_title) ?>"><?php unset($a13_title,$a13_target,$a13_url,$a13_class) ?><?php $a14_class='text';$a14_raw='__';$a14_escape=true;$a14_cut='both'; ?><?php - $a14_title = ''; + $a14_target = $view; + switch( $a14_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a14_action)?$a14_action:$this->actionName,'subaction'=>!empty($a14_subaction)?$a14_subaction:$this->subActionName,'id'=>!empty($a14_id)?$a14_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($a14_subaction)?$a14_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a14_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a14_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a14_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a14_frame ?>"<?php if (isset($a14_name)) { ?> name="<?php echo $a14_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a14_class ?>"<?php if (isset($a14_accesskey)) echo ' accesskey="'.$a14_accesskey.'"' ?> title="<?php echo encodeHtml($a14_title) ?>"><?php unset($a14_title,$a14_type,$a14_url,$a14_class,$a14_frame) ?><?php $a15_class='text';$a15_raw='__';$a15_escape=true;$a15_cut='both'; ?><?php + $a15_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a14_class ?>" title="<?php echo $a14_title ?>"><?php - $langF = $a14_escape?'langHtml':'lang'; - $tmp_text = str_replace('_','&nbsp;',$a14_raw); +?><<?php echo $tmp_tag ?> class="<?php echo $a15_class ?>" title="<?php echo $a15_title ?>"><?php + $langF = $a15_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a15_raw); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a14_class,$a14_raw,$a14_escape,$a14_cut) ?><?php $a14_class='text';$a14_var='nr';$a14_escape=true;$a14_cut='both'; ?><?php - $a14_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a15_class,$a15_raw,$a15_escape,$a15_cut) ?><?php $a15_class='text';$a15_var='nr';$a15_escape=true;$a15_cut='both'; ?><?php + $a15_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a14_class ?>" title="<?php echo $a14_title ?>"><?php - $langF = $a14_escape?'langHtml':'lang'; - $tmp_text = isset($$a14_var)?$$a14_var:$langF('UNKNOWN'); +?><<?php echo $tmp_tag ?> class="<?php echo $a15_class ?>" title="<?php echo $a15_title ?>"><?php + $langF = $a15_escape?'langHtml':'lang'; + $tmp_text = isset($$a15_var)?$$a15_var:$langF('UNKNOWN'); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a14_class,$a14_var,$a14_escape,$a14_cut) ?><?php $a14_class='text';$a14_raw='__';$a14_escape=true;$a14_cut='both'; ?><?php - $a14_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a15_class,$a15_var,$a15_escape,$a15_cut) ?><?php $a15_class='text';$a15_raw='__';$a15_escape=true;$a15_cut='both'; ?><?php + $a15_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a14_class ?>" title="<?php echo $a14_title ?>"><?php - $langF = $a14_escape?'langHtml':'lang'; - $tmp_text = str_replace('_','&nbsp;',$a14_raw); +?><<?php echo $tmp_tag ?> class="<?php echo $a15_class ?>" title="<?php echo $a15_title ?>"><?php + $langF = $a15_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a15_raw); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a14_class,$a14_raw,$a14_escape,$a14_cut) ?></a><?php } ?><?php $a12_true=$today; ?><?php - if (gettype($a12_true) === '' && gettype($a12_true) === '1') - $a12_tmp_exec = $$a12_true == true; +?></<?php echo $tmp_tag ?>><?php unset($a15_class,$a15_raw,$a15_escape,$a15_cut) ?></a><?php } ?><?php $a13_true=$today; ?><?php + if (gettype($a13_true) === '' && gettype($a13_true) === '1') + $a13_tmp_exec = $$a13_true == true; else - $a12_tmp_exec = $a12_true == true; - $a12_tmp_last_exec = $a12_tmp_exec; - if ( $a12_tmp_exec ) + $a13_tmp_exec = $a13_true == true; + $a13_tmp_last_exec = $a13_tmp_exec; + if ( $a13_tmp_exec ) { ?> -<?php unset($a12_true) ?><?php $a13_class='text';$a13_raw='*';$a13_escape=true;$a13_cut='both'; ?><?php - $a13_title = ''; +<?php unset($a13_true) ?><?php $a14_class='text';$a14_raw='*';$a14_escape=true;$a14_cut='both'; ?><?php + $a14_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a13_class ?>" title="<?php echo $a13_title ?>"><?php - $langF = $a13_escape?'langHtml':'lang'; - $tmp_text = str_replace('_','&nbsp;',$a13_raw); +?><<?php echo $tmp_tag ?> class="<?php echo $a14_class ?>" title="<?php echo $a14_title ?>"><?php + $langF = $a14_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a14_raw); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a13_class,$a13_raw,$a13_escape,$a13_cut) ?><?php } ?></td><?php } ?></tr><?php } ?><?php - $row_idx = $last_row_idx; +?></<?php echo $tmp_tag ?>><?php unset($a14_class,$a14_raw,$a14_escape,$a14_cut) ?><?php } ?></td><?php } ?></tr><?php } ?><?php $column_idx = $last_column_idx; ?> -</table></td><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a7_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($a7_colspan) ?><?php $a8_title=lang('date'); ?><fieldset><?php if(isset($a8_title)) { ?><legend><?php if(isset($a8_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a8_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a8_title) ?></legend><?php } ?><?php unset($a8_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 $a8_class='text';$a8_key='date';$a8_escape=true;$a8_cut='both'; ?><?php +</table></div></fieldset><?php } ?><?php $a5_title=lang('date'); ?><fieldset><?php if(isset($a5_title)) { ?><legend><?php if(isset($a5_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a5_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a5_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a5_title) ?><div><?php $a7_for='year'; ?><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='date';$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 @@ -654,42 +678,35 @@ if ($a3_readonly) { $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_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 $a8_list='all_years';$a8_name='year';$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; +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label><?php $a7_list='all_years';$a7_name='year';$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($$a8_name)?'- '.lang('EMPTY').' -':$a8_tmp_list[$$a8_name]; + echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; } else { -if ( $a8_addempty!==FALSE ) +if ( $a7_addempty!==FALSE ) { - if ($a8_addempty===TRUE) - $a8_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a8_tmp_list; + if ($a7_addempty===TRUE) + $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; else - $a8_tmp_list = array(''=>'- '.lang($a8_addempty).' -')+$a8_tmp_list; + $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_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 ($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($$a8_name) && isset($a8_tmp_list[$$a8_name]) ) - $a8_tmp_default = $$a8_name; - elseif ( isset($a8_default) ) - $a8_tmp_default = $a8_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 - $a8_tmp_default = ''; - foreach( $a8_tmp_list as $box_key=>$box_value ) + $a7_tmp_default = ''; + foreach( $a7_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -697,7 +714,7 @@ echo ' size="'.intval($a8_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a8_lang ) + elseif( $a7_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -706,53 +723,53 @@ 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="'.$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($$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($$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($a8_list,$a8_name,$a8_onchange,$a8_title,$a8_class,$a8_addempty,$a8_multiple,$a8_size,$a8_lang) ?><?php $a8_class='text';$a8_raw='_-_';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?><?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 $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 $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a7_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_list='all_months';$a8_name='month';$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; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php $a7_list='all_months';$a7_name='month';$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($$a8_name)?'- '.lang('EMPTY').' -':$a8_tmp_list[$$a8_name]; + echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; } else { -if ( $a8_addempty!==FALSE ) +if ( $a7_addempty!==FALSE ) { - if ($a8_addempty===TRUE) - $a8_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a8_tmp_list; + if ($a7_addempty===TRUE) + $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; else - $a8_tmp_list = array(''=>'- '.lang($a8_addempty).' -')+$a8_tmp_list; + $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_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 ($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($$a8_name) && isset($a8_tmp_list[$$a8_name]) ) - $a8_tmp_default = $$a8_name; - elseif ( isset($a8_default) ) - $a8_tmp_default = $a8_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 - $a8_tmp_default = ''; - foreach( $a8_tmp_list as $box_key=>$box_value ) + $a7_tmp_default = ''; + foreach( $a7_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -760,7 +777,7 @@ echo ' size="'.intval($a8_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a8_lang ) + elseif( $a7_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -769,53 +786,53 @@ 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="'.$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($$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($$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($a8_list,$a8_name,$a8_onchange,$a8_title,$a8_class,$a8_addempty,$a8_multiple,$a8_size,$a8_lang) ?><?php $a8_class='text';$a8_raw='_-_';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?><?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 $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 $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a7_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_list='all_days';$a8_name='day';$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; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php $a7_list='all_days';$a7_name='day';$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($$a8_name)?'- '.lang('EMPTY').' -':$a8_tmp_list[$$a8_name]; + echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; } else { -if ( $a8_addempty!==FALSE ) +if ( $a7_addempty!==FALSE ) { - if ($a8_addempty===TRUE) - $a8_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a8_tmp_list; + if ($a7_addempty===TRUE) + $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; else - $a8_tmp_list = array(''=>'- '.lang($a8_addempty).' -')+$a8_tmp_list; + $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_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 ($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($$a8_name) && isset($a8_tmp_list[$$a8_name]) ) - $a8_tmp_default = $$a8_name; - elseif ( isset($a8_default) ) - $a8_tmp_default = $a8_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 - $a8_tmp_default = ''; - foreach( $a8_tmp_list as $box_key=>$box_value ) + $a7_tmp_default = ''; + foreach( $a7_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -823,7 +840,7 @@ echo ' size="'.intval($a8_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a8_lang ) + elseif( $a7_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -832,29 +849,17 @@ 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="'.$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($$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($$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($a8_list,$a8_name,$a8_onchange,$a8_title,$a8_class,$a8_addempty,$a8_multiple,$a8_size,$a8_lang) ?></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 $a8_class='text';$a8_key='date_time';$a8_escape=true;$a8_cut='both'; ?><?php +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?></div><div><?php $a7_for='hour'; ?><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='date_time';$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 @@ -863,42 +868,35 @@ if (count($$a8_list)==1) echo '<input type="hidden" name="'.$a8_name.'" value="' $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_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 $a8_list='all_hours';$a8_name='hour';$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; +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label><?php $a7_list='all_hours';$a7_name='hour';$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($$a8_name)?'- '.lang('EMPTY').' -':$a8_tmp_list[$$a8_name]; + echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; } else { -if ( $a8_addempty!==FALSE ) +if ( $a7_addempty!==FALSE ) { - if ($a8_addempty===TRUE) - $a8_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a8_tmp_list; + if ($a7_addempty===TRUE) + $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; else - $a8_tmp_list = array(''=>'- '.lang($a8_addempty).' -')+$a8_tmp_list; + $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_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 ($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($$a8_name) && isset($a8_tmp_list[$$a8_name]) ) - $a8_tmp_default = $$a8_name; - elseif ( isset($a8_default) ) - $a8_tmp_default = $a8_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 - $a8_tmp_default = ''; - foreach( $a8_tmp_list as $box_key=>$box_value ) + $a7_tmp_default = ''; + foreach( $a7_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -906,7 +904,7 @@ echo ' size="'.intval($a8_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a8_lang ) + elseif( $a7_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -915,53 +913,53 @@ 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="'.$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($$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($$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($a8_list,$a8_name,$a8_onchange,$a8_title,$a8_class,$a8_addempty,$a8_multiple,$a8_size,$a8_lang) ?><?php $a8_class='text';$a8_raw='_-_';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?><?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 $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 $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a7_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_list='all_minutes';$a8_name='minute';$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; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php $a7_list='all_minutes';$a7_name='minute';$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($$a8_name)?'- '.lang('EMPTY').' -':$a8_tmp_list[$$a8_name]; + echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; } else { -if ( $a8_addempty!==FALSE ) +if ( $a7_addempty!==FALSE ) { - if ($a8_addempty===TRUE) - $a8_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a8_tmp_list; + if ($a7_addempty===TRUE) + $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; else - $a8_tmp_list = array(''=>'- '.lang($a8_addempty).' -')+$a8_tmp_list; + $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_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 ($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($$a8_name) && isset($a8_tmp_list[$$a8_name]) ) - $a8_tmp_default = $$a8_name; - elseif ( isset($a8_default) ) - $a8_tmp_default = $a8_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 - $a8_tmp_default = ''; - foreach( $a8_tmp_list as $box_key=>$box_value ) + $a7_tmp_default = ''; + foreach( $a7_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -969,7 +967,7 @@ echo ' size="'.intval($a8_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a8_lang ) + elseif( $a7_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -978,53 +976,53 @@ 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="'.$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($$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($$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($a8_list,$a8_name,$a8_onchange,$a8_title,$a8_class,$a8_addempty,$a8_multiple,$a8_size,$a8_lang) ?><?php $a8_class='text';$a8_raw='_-_';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?><?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 $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 $a7_class ?>" title="<?php echo $a7_title ?>"><?php + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a7_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_list='all_seconds';$a8_name='second';$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; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php $a7_list='all_seconds';$a7_name='second';$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($$a8_name)?'- '.lang('EMPTY').' -':$a8_tmp_list[$$a8_name]; + echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; } else { -if ( $a8_addempty!==FALSE ) +if ( $a7_addempty!==FALSE ) { - if ($a8_addempty===TRUE) - $a8_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a8_tmp_list; + if ($a7_addempty===TRUE) + $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; else - $a8_tmp_list = array(''=>'- '.lang($a8_addempty).' -')+$a8_tmp_list; + $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_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 ($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($$a8_name) && isset($a8_tmp_list[$$a8_name]) ) - $a8_tmp_default = $$a8_name; - elseif ( isset($a8_default) ) - $a8_tmp_default = $a8_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 - $a8_tmp_default = ''; - foreach( $a8_tmp_list as $box_key=>$box_value ) + $a7_tmp_default = ''; + foreach( $a7_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -1032,7 +1030,7 @@ echo ' size="'.intval($a8_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a8_lang ) + elseif( $a7_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -1041,28 +1039,27 @@ 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="'.$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($$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($$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($a8_list,$a8_name,$a8_onchange,$a8_title,$a8_class,$a8_addempty,$a8_multiple,$a8_size,$a8_lang) ?></td></tr></tr><?php } ?><?php $a4_equals='text';$a4_value=$type; ?><?php +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?></div></fieldset><?php } ?><?php $a4_equals='text';$a4_value=$type; ?><?php $a4_tmp_exec = $a4_equals == $a4_value; $a4_tmp_last_exec = $a4_tmp_exec; if ( $a4_tmp_exec ) { ?> <?php unset($a4_equals,$a4_value) ?><?php - $row_idx++; $column_idx = 0; ?> <tr > -<?php $a6_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 } ?> @@ -1070,19 +1067,15 @@ if (count($$a8_list)==1) echo '<input type="hidden" name="'.$a8_name.'" value="' class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a6_colspan) ?><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='text';$a7_size='50';$a7_maxlength='255';$a7_onchange='';$a7_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; +><?php unset($a6_colspan,$a6_header) ?><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='text';$a7_size='50';$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 +?><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 { ?><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) ?><?php $a7_field='text'; ?><?php -if (isset($errors[0])) $a7_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $a7_field ?>.focus(); -document.forms[0].<?php echo $a7_field ?>.select(); + } } 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) ?><?php $a7_field='text'; ?><script name="JavaScript" type="text/javascript"><!-- </script> <?php unset($a7_field) ?></td></tr><?php } ?><?php $a4_equals='longtext';$a4_value=$type; ?><?php $a4_tmp_exec = $a4_equals == $a4_value; @@ -1096,48 +1089,22 @@ document.forms[0].<?php echo $a7_field ?>.select(); if ( $a5_tmp_exec ) { ?> -<?php unset($a5_present) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a7_class='preview';$a7_colspan='2'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> - class="preview" - colspan="2" -><?php unset($a7_class,$a7_colspan) ?><?php $a8_title=lang('page_preview'); ?><fieldset><?php if(isset($a8_title)) { ?><legend><?php if(isset($a8_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a8_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a8_title) ?></legend><?php } ?><?php unset($a8_title) ?><?php $a9_class='text';$a9_var='preview';$a9_escape=false;$a9_cut='both'; ?><?php - $a9_title = ''; +<?php unset($a5_present) ?><?php $a6_class='preview'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_title=lang('page_preview'); ?><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) ?><?php $a8_class='text';$a8_var='preview';$a8_escape=false;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?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'); +?><<?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($a9_class,$a9_var,$a9_escape,$a9_cut) ?></fieldset><br/><br/></td></tr><?php } ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_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($a6_colspan) ?><?php $a7_equals='html';$a7_value=$editor; ?><?php - $a7_tmp_exec = $a7_equals == $a7_value; - $a7_tmp_last_exec = $a7_tmp_exec; - if ( $a7_tmp_exec ) +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_var,$a8_escape,$a8_cut) ?></fieldset></div><?php } ?><?php $a5_equals='html';$a5_value=$editor; ?><?php + $a5_tmp_exec = $a5_equals == $a5_value; + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a7_equals,$a7_value) ?><?php $a8_name='text';$a8_type='html'; ?><?php +<?php unset($a5_equals,$a5_value) ?><?php $a6_name='text';$a6_type='html'; ?><?php function checkbox( $name,$value=false,$writable=true,$params=Array() ) { $src = '<input type="checkbox" id="id_'.$name.'" name="'.$name.'"'; @@ -1174,194 +1141,57 @@ document.forms[0].<?php echo $a7_field ?>.select(); echo '<td><noscript>'.checkbox($type).'</noscript><label for="id_'.$type.'"><a href="javascript:'.$type.'();" title="'.langHtml('PAGE_EDITOR_ADD_'.$type).'"><img src="'.$image_dir.'/editor/'.$image.'" border"0" /></a></label>'; } ?><?php -switch( $a8_type ) +switch( $a6_type ) { case 'fckeditor': case 'html': - if ( $this->isEditMode() ) - { - include_once('./editor/editor/ckeditor.php'); - $editor = new CKeditor() ; - $url = FileUtils::slashify(dirname($_SERVER['SCRIPT_NAME'])); - $base = defined('OR_BASE_URL')?slashify(OR_BASE_URL).'editor/editor/':'./editor/editor/'; - $editor->basePath = $base; - $editor->config['skin' ] = 'v2'; - $editor->config['language' ] = config('language','language_code'); - $editor->config['toolbar' ] = 'Openrat'; - $editor->config['toolbar_Openrat' ] = array( - array('Save','Preview','-'/*,'Templates'*/), - array('Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'), - array('Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'), - array('Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'), - '/', - array('Bold','Italic',/*'Underline',*/'Strike','-','Subscript','Superscript'), - array('NumberedList','BulletedList','-','Outdent','Indent','Blockquote'), - array('JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'), - array('Link','Unlink','Anchor'), - array('Image','Flash','Table','HorizontalRule','SpecialChar','PageBreak'), - '/', - array(/*'Styles',*/'Format','Font','FontSize'), - array('TextColor','BGColor'), - array('Source','-', 'ShowBlocks','Maximize') ); - $editor->config['filebrowserUploadUrl' ] = str_replace('&amp;','&',Html::url('filebrowser','directupload','-',array(REQ_PARAM_TOKEN=>token(),'name'=>'upload'))); - $editor->config['filebrowserBrowseUrl' ] = str_replace('&amp;','&',Html::url('filebrowser','browse','-')); - $editor->editor($a8_name,$$a8_name); - } - else - { - echo ($$a8_name); - } + echo '<textarea name="'.$a6_name.'" class="editor htmleditor" id="pageelement_edit_editor">'.$$a6_name.'</textarea>'; break; case 'wiki': $conf_tags = $conf['editor']['text-markup']; - if ( $this->isEditMode() ) - { - ?> -<script name="Javascript" type="text/javascript" src="<?php echo $tpl_dir ?>../../js/editor.js"></script> -<script name="JavaScript" type="text/javascript"> -function strong() -{ - insert('<?php echo $a8_name ?>','<?php echo $conf_tags['strong-begin'] ?>','<?php echo $conf_tags['strong-end'] ?>'); -} -function emphatic() -{ - insert('<?php echo $a8_name ?>','<?php echo $conf_tags['emphatic-begin'] ?>','<?php echo $conf_tags['emphatic-end'] ?>'); -} -function link() -{ - objectid = document.forms[0].objectid.value; - if (objectid=="" ||objectid=="0"||objectid==null) - objectid = window.prompt("Id",""); - if (objectid=="" ||objectid=="0"||objectid==null) - return; - insert('<?php echo $a8_name ?>','"','"<?php echo $conf_tags['linkto'] ?>"'+objectid+'"'); -} -function image() -{ - objectid = document.forms[0].objectid.value; - if (objectid=="" ||objectid=="0"||objectid==null) - objectid = window.prompt("Id",""); - if (objectid=="" ||objectid=="0"||objectid==null) - return; - insert('<?php echo $a8_name ?>','','<?php echo $conf_tags['image-begin'] ?>"'+objectid+'"<?php echo $conf_tags['image-end'] ?>'); -} -function list() -{ - insert('<?php echo $a8_name ?>',"","\n"); - while( true ) - { - t = window.prompt('<?php echo langHtml('EDITOR_PROMPT_LIST_ENTRY') ?>',''); - if ( t != '' && t != null ) - insert('<?php echo $a8_name ?>',"<?php echo $conf_tags['list-unnumbered'] ?> "+t+"\n",""); - else - break; - } -} -function numlist() -{ - insert('<?php echo $a8_name ?>',"\n\n<?php echo $conf_tags['list-numbered'] ?> ","\n<?php echo $conf_tags['list-numbered'] ?> \n<?php echo $conf_tags['list-numbered'] ?> \n"); -} -function table() -{ - column=1; - while( true ) - { - if ( column==1 ) - text='<?php echo langHtml('EDITOR_PROMPT_TABLE_CELL_FIRST_COLUMN') ?>'; - else - text='<?php echo langHtml('EDITOR_PROMPT_TABLE_CELL') ?>'; - t = window.prompt(text,''); - if ( t != '' && t != null ) - { - insert('<?php echo $a8_name ?>',"<?php echo $conf_tags['table-cell-sep'] ?>"+t,""); - column++; - } - else - { - if (column==1) - { - break; - } - else - { - insert('text',"\n",""); - column=1; - } - } - } -} -</script> - <fieldset><legend><?php echo langHtml('EDITOR') ?></legend></fieldset> - <table> - <tr> - <td><noscript><input type="text" name="addtext" size="30" /></noscript></td> - <td><?php add_control('strong' ,'bold.png' )?></td> - <td><?php add_control('emphatic','italic.png') ?></td> - <td>&nbsp;&nbsp;&nbsp;</td> - <td><?php add_control('table','table.png') ?></td> - <td>&nbsp;&nbsp;&nbsp;</td> - <td><?php add_control('list' ,'list.png') ; ?></td> - <td><?php add_control('numlist','numlist.png') ?></td> - <td>&nbsp;&nbsp;&nbsp;</td> - <td><?php add_control('image','image.png') ?></td> - <td><?php add_control('link' ,'link.png' ) ?></td> - <td><input name="objectid" size="6" title="<?php echo langHtml('LINK_TO') ?>"></td> - <td><noscript>&nbsp;&nbsp;<input type="submit" class="submit" name="addmarkup" value="<?php echo langHtml('ADD') ?>"/></noscript></td> - </tr> - </table> - <fieldset><legend><?php echo langHtml('CONTENT') ?></legend></fieldset> - <textarea name="<?php echo $a8_name ?>" class="editor"><?php echo $$a8_name ?></textarea> -<?php - } - else - { - $a8_tmp_text = $$a8_name; - if ( !is_array($a8_tmp_text)) - $a8_tmp_text = explode("\n",$a8_tmp_text); - echo implode('',$a8_tmp_text); - } + ?><textarea name="<?php echo $a6_name ?>" class="editor wikieditor"><?php echo $$a6_name ?></textarea><?php break; case 'text': case 'raw': if ( $this->isEditMode() ) - echo '<textarea name="'.$a8_name.'" class="editor" style="width:100%;height:300px;">'.$$a8_name.'</textarea>'; + echo '<textarea name="'.$a6_name.'" class="editor" style="width:100%;height:300px;">'.$$a6_name.'</textarea>'; else - echo nl2br($$a8_name); + echo nl2br($$a6_name); break; case 'dom': case 'tree': - $a8_tmp_doc = new DocumentElement(); - $a8_tmp_text = $$a8_name; - if ( !is_array($a8_tmp_text)) - $a8_tmp_text = explode("\n",$a8_tmp_text); - $a8_tmp_doc->parse($a8_tmp_text); - echo $a8_tmp_doc->render('application/html-dom'); + $a6_tmp_doc = new DocumentElement(); + $a6_tmp_text = $$a6_name; + if ( !is_array($a6_tmp_text)) + $a6_tmp_text = explode("\n",$a6_tmp_text); + $a6_tmp_doc->parse($a6_tmp_text); + echo $a6_tmp_doc->render('application/html-dom'); break; default: - echo "Unknown editor type: ".$a8_type; + echo "Unknown editor type: ".$a6_type; } -?><?php unset($a8_name,$a8_type) ?><?php } ?><?php $a7_equals='wiki';$a7_value=$editor; ?><?php - $a7_tmp_exec = $a7_equals == $a7_value; - $a7_tmp_last_exec = $a7_tmp_exec; - if ( $a7_tmp_exec ) +?><?php unset($a6_name,$a6_type) ?><?php } ?><?php $a5_equals='wiki';$a5_value=$editor; ?><?php + $a5_tmp_exec = $a5_equals == $a5_value; + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a7_equals,$a7_value) ?><?php $a8_present='languagetext'; ?><?php - $a8_tmp_exec = isset($$a8_present); - $a8_tmp_last_exec = $a8_tmp_exec; - if ( $a8_tmp_exec ) +<?php unset($a5_equals,$a5_value) ?><?php $a6_present='languagetext'; ?><?php + $a6_tmp_exec = isset($$a6_present); + $a6_tmp_last_exec = $a6_tmp_exec; + if ( $a6_tmp_exec ) { ?> -<?php unset($a8_present) ?><?php $a9_title=$languagename; ?><fieldset><?php if(isset($a9_title)) { ?><legend><?php if(isset($a9_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a9_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a9_title) ?></legend><?php } ?><?php unset($a9_title) ?><?php $a10_class='text';$a10_var='languagetext';$a10_escape=true;$a10_cut='both'; ?><?php - $a10_title = ''; +<?php unset($a6_present) ?><?php $a7_title=$languagename; ?><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) ?><?php $a8_class='text';$a8_var='languagetext';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php - $langF = $a10_escape?'langHtml':'lang'; - $tmp_text = isset($$a10_var)?$$a10_var:$langF('UNKNOWN'); +?><<?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($a10_class,$a10_var,$a10_escape,$a10_cut) ?></fieldset><br/><br/><?php } ?><?php $a8_name='text';$a8_type='wiki'; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_var,$a8_escape,$a8_cut) ?></fieldset><br/><br/><?php } ?><?php $a6_name='text';$a6_type='wiki'; ?><?php function checkbox( $name,$value=false,$writable=true,$params=Array() ) { $src = '<input type="checkbox" id="id_'.$name.'" name="'.$name.'"'; @@ -1398,525 +1228,362 @@ function table() echo '<td><noscript>'.checkbox($type).'</noscript><label for="id_'.$type.'"><a href="javascript:'.$type.'();" title="'.langHtml('PAGE_EDITOR_ADD_'.$type).'"><img src="'.$image_dir.'/editor/'.$image.'" border"0" /></a></label>'; } ?><?php -switch( $a8_type ) +switch( $a6_type ) { case 'fckeditor': case 'html': - if ( $this->isEditMode() ) - { - include_once('./editor/editor/ckeditor.php'); - $editor = new CKeditor() ; - $url = FileUtils::slashify(dirname($_SERVER['SCRIPT_NAME'])); - $base = defined('OR_BASE_URL')?slashify(OR_BASE_URL).'editor/editor/':'./editor/editor/'; - $editor->basePath = $base; - $editor->config['skin' ] = 'v2'; - $editor->config['language' ] = config('language','language_code'); - $editor->config['toolbar' ] = 'Openrat'; - $editor->config['toolbar_Openrat' ] = array( - array('Save','Preview','-'/*,'Templates'*/), - array('Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'), - array('Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'), - array('Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'), - '/', - array('Bold','Italic',/*'Underline',*/'Strike','-','Subscript','Superscript'), - array('NumberedList','BulletedList','-','Outdent','Indent','Blockquote'), - array('JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'), - array('Link','Unlink','Anchor'), - array('Image','Flash','Table','HorizontalRule','SpecialChar','PageBreak'), - '/', - array(/*'Styles',*/'Format','Font','FontSize'), - array('TextColor','BGColor'), - array('Source','-', 'ShowBlocks','Maximize') ); - $editor->config['filebrowserUploadUrl' ] = str_replace('&amp;','&',Html::url('filebrowser','directupload','-',array(REQ_PARAM_TOKEN=>token(),'name'=>'upload'))); - $editor->config['filebrowserBrowseUrl' ] = str_replace('&amp;','&',Html::url('filebrowser','browse','-')); - $editor->editor($a8_name,$$a8_name); - } - else - { - echo ($$a8_name); - } + echo '<textarea name="'.$a6_name.'" class="editor htmleditor" id="pageelement_edit_editor">'.$$a6_name.'</textarea>'; break; case 'wiki': $conf_tags = $conf['editor']['text-markup']; - if ( $this->isEditMode() ) - { - ?> -<script name="Javascript" type="text/javascript" src="<?php echo $tpl_dir ?>../../js/editor.js"></script> -<script name="JavaScript" type="text/javascript"> -function strong() -{ - insert('<?php echo $a8_name ?>','<?php echo $conf_tags['strong-begin'] ?>','<?php echo $conf_tags['strong-end'] ?>'); -} -function emphatic() -{ - insert('<?php echo $a8_name ?>','<?php echo $conf_tags['emphatic-begin'] ?>','<?php echo $conf_tags['emphatic-end'] ?>'); -} -function link() -{ - objectid = document.forms[0].objectid.value; - if (objectid=="" ||objectid=="0"||objectid==null) - objectid = window.prompt("Id",""); - if (objectid=="" ||objectid=="0"||objectid==null) - return; - insert('<?php echo $a8_name ?>','"','"<?php echo $conf_tags['linkto'] ?>"'+objectid+'"'); -} -function image() -{ - objectid = document.forms[0].objectid.value; - if (objectid=="" ||objectid=="0"||objectid==null) - objectid = window.prompt("Id",""); - if (objectid=="" ||objectid=="0"||objectid==null) - return; - insert('<?php echo $a8_name ?>','','<?php echo $conf_tags['image-begin'] ?>"'+objectid+'"<?php echo $conf_tags['image-end'] ?>'); -} -function list() -{ - insert('<?php echo $a8_name ?>',"","\n"); - while( true ) - { - t = window.prompt('<?php echo langHtml('EDITOR_PROMPT_LIST_ENTRY') ?>',''); - if ( t != '' && t != null ) - insert('<?php echo $a8_name ?>',"<?php echo $conf_tags['list-unnumbered'] ?> "+t+"\n",""); - else - break; - } -} -function numlist() -{ - insert('<?php echo $a8_name ?>',"\n\n<?php echo $conf_tags['list-numbered'] ?> ","\n<?php echo $conf_tags['list-numbered'] ?> \n<?php echo $conf_tags['list-numbered'] ?> \n"); -} -function table() -{ - column=1; - while( true ) - { - if ( column==1 ) - text='<?php echo langHtml('EDITOR_PROMPT_TABLE_CELL_FIRST_COLUMN') ?>'; - else - text='<?php echo langHtml('EDITOR_PROMPT_TABLE_CELL') ?>'; - t = window.prompt(text,''); - if ( t != '' && t != null ) - { - insert('<?php echo $a8_name ?>',"<?php echo $conf_tags['table-cell-sep'] ?>"+t,""); - column++; - } - else - { - if (column==1) - { - break; - } - else - { - insert('text',"\n",""); - column=1; - } - } - } -} -</script> - <fieldset><legend><?php echo langHtml('EDITOR') ?></legend></fieldset> - <table> - <tr> - <td><noscript><input type="text" name="addtext" size="30" /></noscript></td> - <td><?php add_control('strong' ,'bold.png' )?></td> - <td><?php add_control('emphatic','italic.png') ?></td> - <td>&nbsp;&nbsp;&nbsp;</td> - <td><?php add_control('table','table.png') ?></td> - <td>&nbsp;&nbsp;&nbsp;</td> - <td><?php add_control('list' ,'list.png') ; ?></td> - <td><?php add_control('numlist','numlist.png') ?></td> - <td>&nbsp;&nbsp;&nbsp;</td> - <td><?php add_control('image','image.png') ?></td> - <td><?php add_control('link' ,'link.png' ) ?></td> - <td><input name="objectid" size="6" title="<?php echo langHtml('LINK_TO') ?>"></td> - <td><noscript>&nbsp;&nbsp;<input type="submit" class="submit" name="addmarkup" value="<?php echo langHtml('ADD') ?>"/></noscript></td> - </tr> - </table> - <fieldset><legend><?php echo langHtml('CONTENT') ?></legend></fieldset> - <textarea name="<?php echo $a8_name ?>" class="editor"><?php echo $$a8_name ?></textarea> -<?php - } - else - { - $a8_tmp_text = $$a8_name; - if ( !is_array($a8_tmp_text)) - $a8_tmp_text = explode("\n",$a8_tmp_text); - echo implode('',$a8_tmp_text); - } + ?><textarea name="<?php echo $a6_name ?>" class="editor wikieditor"><?php echo $$a6_name ?></textarea><?php break; case 'text': case 'raw': if ( $this->isEditMode() ) - echo '<textarea name="'.$a8_name.'" class="editor" style="width:100%;height:300px;">'.$$a8_name.'</textarea>'; + echo '<textarea name="'.$a6_name.'" class="editor" style="width:100%;height:300px;">'.$$a6_name.'</textarea>'; else - echo nl2br($$a8_name); + echo nl2br($$a6_name); break; case 'dom': case 'tree': - $a8_tmp_doc = new DocumentElement(); - $a8_tmp_text = $$a8_name; - if ( !is_array($a8_tmp_text)) - $a8_tmp_text = explode("\n",$a8_tmp_text); - $a8_tmp_doc->parse($a8_tmp_text); - echo $a8_tmp_doc->render('application/html-dom'); + $a6_tmp_doc = new DocumentElement(); + $a6_tmp_text = $$a6_name; + if ( !is_array($a6_tmp_text)) + $a6_tmp_text = explode("\n",$a6_tmp_text); + $a6_tmp_doc->parse($a6_tmp_text); + echo $a6_tmp_doc->render('application/html-dom'); break; default: - echo "Unknown editor type: ".$a8_type; + echo "Unknown editor type: ".$a6_type; } -?><?php unset($a8_name,$a8_type) ?><?php $a8_true=$mode=="edit"; ?><?php - if (gettype($a8_true) === '' && gettype($a8_true) === '1') - $a8_tmp_exec = $$a8_true == true; +?><?php unset($a6_name,$a6_type) ?><?php $a6_true=$mode=="edit"; ?><?php + if (gettype($a6_true) === '' && gettype($a6_true) === '1') + $a6_tmp_exec = $$a6_true == true; else - $a8_tmp_exec = $a8_true == true; - $a8_tmp_last_exec = $a8_tmp_exec; - if ( $a8_tmp_exec ) + $a6_tmp_exec = $a6_true == true; + $a6_tmp_last_exec = $a6_tmp_exec; + if ( $a6_tmp_exec ) { ?> -<?php unset($a8_true) ?><?php $a9_title=lang('help'); ?><fieldset><?php if(isset($a9_title)) { ?><legend><?php if(isset($a9_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a9_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a9_title) ?></legend><?php } ?><?php unset($a9_title) ?></fieldset><?php $a9_width='100%';$a9_space='0px';$a9_padding='0px'; ?><?php - $last_row_idx = @$row_idx; +<?php unset($a6_true) ?><?php $a7_title=lang('help'); ?><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) ?><?php $a8_width='100%';$a8_space='0px';$a8_padding='0px'; ?><?php $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($a9_width,$a9_space,$a9_padding) ?><?php $column_idx++; ?><td +<?php unset($a8_width,$a8_space,$a8_padding) ?><?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 $a11_class='text';$a11_value=@$conf['editor']['text-markup']['strong-begin'];$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +><?php unset($a9_header) ?><?php $a10_class='text';$a10_value=@$conf['editor']['text-markup']['strong-begin'];$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = $a11_escape?htmlentities($a11_value):$a11_value; +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $a10_escape?htmlentities($a10_value):$a10_value; $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_value,$a11_escape,$a11_cut) ?><?php $a11_class='text';$a11_key='text_markup_strong';$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_value,$a10_escape,$a10_cut) ?><?php $a10_class='text';$a10_key='text_markup_strong';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = $langF($a11_key); +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $langF($a10_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_key,$a11_escape,$a11_cut) ?><?php $a11_class='text';$a11_value=@$conf['editor']['text-markup']['strong-end'];$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_key,$a10_escape,$a10_cut) ?><?php $a10_class='text';$a10_value=@$conf['editor']['text-markup']['strong-end'];$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = $a11_escape?htmlentities($a11_value):$a11_value; +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $a10_escape?htmlentities($a10_value):$a10_value; $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_value,$a11_escape,$a11_cut) ?><br/><?php $a11_class='text';$a11_value=@$conf['editor']['text-markup']['emphatic-begin'];$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_value,$a10_escape,$a10_cut) ?><br/><?php $a10_class='text';$a10_value=@$conf['editor']['text-markup']['emphatic-begin'];$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = $a11_escape?htmlentities($a11_value):$a11_value; +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $a10_escape?htmlentities($a10_value):$a10_value; $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_value,$a11_escape,$a11_cut) ?><?php $a11_class='text';$a11_key='text_markup_emphatic';$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_value,$a10_escape,$a10_cut) ?><?php $a10_class='text';$a10_key='text_markup_emphatic';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = $langF($a11_key); +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $langF($a10_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_key,$a11_escape,$a11_cut) ?><?php $a11_class='text';$a11_value=@$conf['editor']['text-markup']['emphatic-end'];$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_key,$a10_escape,$a10_cut) ?><?php $a10_class='text';$a10_value=@$conf['editor']['text-markup']['emphatic-end'];$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = $a11_escape?htmlentities($a11_value):$a11_value; +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $a10_escape?htmlentities($a10_value):$a10_value; $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_value,$a11_escape,$a11_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_value,$a10_escape,$a10_cut) ?></td><?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 $a11_class='text';$a11_value=@$conf['editor']['text-markup']['list-numbered'];$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +><?php unset($a9_header) ?><?php $a10_class='text';$a10_value=@$conf['editor']['text-markup']['list-numbered'];$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = $a11_escape?htmlentities($a11_value):$a11_value; +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $a10_escape?htmlentities($a10_value):$a10_value; $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_value,$a11_escape,$a11_cut) ?><?php $a11_class='text';$a11_key='text_markup_numbered_list';$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_value,$a10_escape,$a10_cut) ?><?php $a10_class='text';$a10_key='text_markup_numbered_list';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = $langF($a11_key); +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $langF($a10_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_key,$a11_escape,$a11_cut) ?><br/><?php $a11_class='text';$a11_value=@$conf['editor']['text-markup']['list-numbered'];$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_key,$a10_escape,$a10_cut) ?><br/><?php $a10_class='text';$a10_value=@$conf['editor']['text-markup']['list-numbered'];$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = $a11_escape?htmlentities($a11_value):$a11_value; +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $a10_escape?htmlentities($a10_value):$a10_value; $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_value,$a11_escape,$a11_cut) ?><?php $a11_class='text';$a11_raw='...';$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_value,$a10_escape,$a10_cut) ?><?php $a10_class='text';$a10_raw='...';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = str_replace('_','&nbsp;',$a11_raw); +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a10_raw); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_raw,$a11_escape,$a11_cut) ?><br/></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_raw,$a10_escape,$a10_cut) ?><br/></td><?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 $a11_class='text';$a11_value=@$conf['editor']['text-markup']['list-unnumbered'];$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +><?php unset($a9_header) ?><?php $a10_class='text';$a10_value=@$conf['editor']['text-markup']['list-unnumbered'];$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = $a11_escape?htmlentities($a11_value):$a11_value; +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $a10_escape?htmlentities($a10_value):$a10_value; $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_value,$a11_escape,$a11_cut) ?><?php $a11_class='text';$a11_key='text_markup_unnumbered_list';$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_value,$a10_escape,$a10_cut) ?><?php $a10_class='text';$a10_key='text_markup_unnumbered_list';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = $langF($a11_key); +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $langF($a10_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_key,$a11_escape,$a11_cut) ?><br/><?php $a11_class='text';$a11_value=@$conf['editor']['text-markup']['list-unnumbered'];$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_key,$a10_escape,$a10_cut) ?><br/><?php $a10_class='text';$a10_value=@$conf['editor']['text-markup']['list-unnumbered'];$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = $a11_escape?htmlentities($a11_value):$a11_value; +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $a10_escape?htmlentities($a10_value):$a10_value; $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_value,$a11_escape,$a11_cut) ?><?php $a11_class='text';$a11_raw='...';$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_value,$a10_escape,$a10_cut) ?><?php $a10_class='text';$a10_raw='...';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = str_replace('_','&nbsp;',$a11_raw); +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a10_raw); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_raw,$a11_escape,$a11_cut) ?><br/></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_raw,$a10_escape,$a10_cut) ?><br/></td><?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 $a11_class='text';$a11_value=@$conf['editor']['text-markup']['table-cell-sep'];$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +><?php unset($a9_header) ?><?php $a10_class='text';$a10_value=@$conf['editor']['text-markup']['table-cell-sep'];$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = $a11_escape?htmlentities($a11_value):$a11_value; +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $a10_escape?htmlentities($a10_value):$a10_value; $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_value,$a11_escape,$a11_cut) ?><?php $a11_class='text';$a11_key='text_markup_table';$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_value,$a10_escape,$a10_cut) ?><?php $a10_class='text';$a10_key='text_markup_table';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = $langF($a11_key); +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $langF($a10_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_key,$a11_escape,$a11_cut) ?><?php $a11_class='text';$a11_value=@$conf['editor']['text-markup']['table-cell-sep'];$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_key,$a10_escape,$a10_cut) ?><?php $a10_class='text';$a10_value=@$conf['editor']['text-markup']['table-cell-sep'];$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = $a11_escape?htmlentities($a11_value):$a11_value; +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $a10_escape?htmlentities($a10_value):$a10_value; $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_value,$a11_escape,$a11_cut) ?><?php $a11_class='text';$a11_raw='...';$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_value,$a10_escape,$a10_cut) ?><?php $a10_class='text';$a10_raw='...';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = str_replace('_','&nbsp;',$a11_raw); +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a10_raw); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_raw,$a11_escape,$a11_cut) ?><?php $a11_class='text';$a11_value=@$conf['editor']['text-markup']['table-cell-sep'];$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_raw,$a10_escape,$a10_cut) ?><?php $a10_class='text';$a10_value=@$conf['editor']['text-markup']['table-cell-sep'];$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = $a11_escape?htmlentities($a11_value):$a11_value; +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $a10_escape?htmlentities($a10_value):$a10_value; $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_value,$a11_escape,$a11_cut) ?><?php $a11_class='text';$a11_raw='...';$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_value,$a10_escape,$a10_cut) ?><?php $a10_class='text';$a10_raw='...';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = str_replace('_','&nbsp;',$a11_raw); +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a10_raw); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_raw,$a11_escape,$a11_cut) ?><?php $a11_class='text';$a11_value=@$conf['editor']['text-markup']['table-cell-sep'];$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_raw,$a10_escape,$a10_cut) ?><?php $a10_class='text';$a10_value=@$conf['editor']['text-markup']['table-cell-sep'];$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = $a11_escape?htmlentities($a11_value):$a11_value; +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $a10_escape?htmlentities($a10_value):$a10_value; $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_value,$a11_escape,$a11_cut) ?><br/><?php $a11_class='text';$a11_value=@$conf['editor']['text-markup']['table-cell-sep'];$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_value,$a10_escape,$a10_cut) ?><br/><?php $a10_class='text';$a10_value=@$conf['editor']['text-markup']['table-cell-sep'];$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = $a11_escape?htmlentities($a11_value):$a11_value; +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $a10_escape?htmlentities($a10_value):$a10_value; $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_value,$a11_escape,$a11_cut) ?><?php $a11_class='text';$a11_raw='...';$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_value,$a10_escape,$a10_cut) ?><?php $a10_class='text';$a10_raw='...';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = str_replace('_','&nbsp;',$a11_raw); +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a10_raw); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_raw,$a11_escape,$a11_cut) ?><?php $a11_class='text';$a11_value=@$conf['editor']['text-markup']['table-cell-sep'];$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_raw,$a10_escape,$a10_cut) ?><?php $a10_class='text';$a10_value=@$conf['editor']['text-markup']['table-cell-sep'];$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = $a11_escape?htmlentities($a11_value):$a11_value; +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $a10_escape?htmlentities($a10_value):$a10_value; $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_value,$a11_escape,$a11_cut) ?><?php $a11_class='text';$a11_raw='...';$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_value,$a10_escape,$a10_cut) ?><?php $a10_class='text';$a10_raw='...';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = str_replace('_','&nbsp;',$a11_raw); +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a10_raw); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_raw,$a11_escape,$a11_cut) ?><?php $a11_class='text';$a11_value=@$conf['editor']['text-markup']['table-cell-sep'];$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_raw,$a10_escape,$a10_cut) ?><?php $a10_class='text';$a10_value=@$conf['editor']['text-markup']['table-cell-sep'];$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = $a11_escape?htmlentities($a11_value):$a11_value; +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $a10_escape?htmlentities($a10_value):$a10_value; $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_value,$a11_escape,$a11_cut) ?><?php $a11_class='text';$a11_raw='...';$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_value,$a10_escape,$a10_cut) ?><?php $a10_class='text';$a10_raw='...';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = str_replace('_','&nbsp;',$a11_raw); +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a10_raw); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_raw,$a11_escape,$a11_cut) ?><?php $a11_class='text';$a11_value=@$conf['editor']['text-markup']['table-cell-sep'];$a11_escape=true;$a11_cut='both'; ?><?php - $a11_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_raw,$a10_escape,$a10_cut) ?><?php $a10_class='text';$a10_value=@$conf['editor']['text-markup']['table-cell-sep'];$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 = $a11_escape?htmlentities($a11_value):$a11_value; +?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $a10_escape?htmlentities($a10_value):$a10_value; $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a11_class,$a11_value,$a11_escape,$a11_cut) ?><br/></td><?php - $row_idx = $last_row_idx; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_value,$a10_escape,$a10_cut) ?><br/></td><?php $column_idx = $last_column_idx; ?> -</table><?php } ?><?php } ?><?php $a7_equals='text';$a7_value=$editor; ?><?php - $a7_tmp_exec = $a7_equals == $a7_value; - $a7_tmp_last_exec = $a7_tmp_exec; - if ( $a7_tmp_exec ) +</table></fieldset><?php } ?><?php } ?><?php $a5_equals='text';$a5_value=$editor; ?><?php + $a5_tmp_exec = $a5_equals == $a5_value; + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a7_equals,$a7_value) ?><?php $a8_name='text';$a8_rows='25';$a8_cols='70';$a8_class='longtext';$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 +<?php unset($a5_equals,$a5_value) ?><?php $a6_name='text';$a6_rows='25';$a6_cols='70';$a6_class='longtext';$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 $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) ?><?php $a8_field='text'; ?><?php -if (isset($errors[0])) $a8_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $a8_field ?>.focus(); -document.forms[0].<?php echo $a8_field ?>.select(); +?><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) ?><?php $a6_field='text'; ?><script name="JavaScript" type="text/javascript"><!-- </script> -<?php unset($a8_field) ?><?php } ?></td></tr><?php } ?><?php $a4_equals='link';$a4_value=$type; ?><?php +<?php unset($a6_field) ?><?php } ?><?php } ?><?php $a4_equals='link';$a4_value=$type; ?><?php $a4_tmp_exec = $a4_equals == $a4_value; $a4_tmp_last_exec = $a4_tmp_exec; if ( $a4_tmp_exec ) { ?> -<?php unset($a4_equals,$a4_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 $a7_class='text';$a7_key='link_target';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +<?php unset($a4_equals,$a4_value) ?><fieldset><?php if(isset($a5_title)) { ?><legend><?php if(isset($a5_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a5_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a5_title) ?>&nbsp;&nbsp;</legend><?php } ?><div><?php $a7_for='linkobjectid'; ?><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='link_target';$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) ?></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_list='objects';$a7_name='linkobjectid';$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=true;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label><?php $a7_list='objects';$a7_name='linkobjectid';$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()) @@ -1970,79 +1637,42 @@ echo ' size="'.intval($a7_size).'"'; 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) ?><?php $a7_field='linkobjectid'; ?><?php -if (isset($errors[0])) $a7_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $a7_field ?>.focus(); -document.forms[0].<?php echo $a7_field ?>.select(); +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?><?php $a7_field='linkobjectid'; ?><script name="JavaScript" type="text/javascript"><!-- </script> -<?php unset($a7_field) ?></td></tr><?php $a5_true=$mode=="edit"; ?><?php - if (gettype($a5_true) === '' && gettype($a5_true) === '1') - $a5_tmp_exec = $$a5_true == true; +<?php unset($a7_field) ?></div><?php $a6_true=$mode=="edit"; ?><?php + if (gettype($a6_true) === '' && gettype($a6_true) === '1') + $a6_tmp_exec = $$a6_true == true; else - $a5_tmp_exec = $a5_true == true; - $a5_tmp_last_exec = $a5_tmp_exec; - if ( $a5_tmp_exec ) + $a6_tmp_exec = $a6_true == true; + $a6_tmp_last_exec = $a6_tmp_exec; + if ( $a6_tmp_exec ) { ?> -<?php unset($a5_true) ?><?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 $a8_class='text';$a8_key='link_url';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +<?php unset($a6_true) ?><div><?php $a8_for='link_url'; ?><label<?php if (isset($a8_for)) { ?> for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>" class="label"<?php } ?>> +<?php if (isset($a8_key)) { echo lang($a8_key); if(hasLang($a8_key.'_desc')) { ?><div class="description"><?php echo lang($a8_key.'_desc')?></div> <?php } } ?><?php unset($a8_for) ?><?php $a9_class='text';$a9_key='link_url';$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_key); +?><<?php echo $tmp_tag ?> class="<?php echo $a9_class ?>" title="<?php echo $a9_title ?>"><?php + $langF = $a9_escape?'langHtml':'lang'; + $tmp_text = $langF($a9_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_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 $a8_class='text';$a8_default='';$a8_type='text';$a8_name='linkurl';$a8_size='40';$a8_maxlength='256';$a8_onchange='';$a8_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_key,$a9_escape,$a9_cut) ?></label><?php $a8_class='text';$a8_default='';$a8_type='text';$a8_name='linkurl';$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 ?>" 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 +?><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 { ?><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) ?></td></tr><?php } ?><?php } ?><?php $a4_equals='list';$a4_value=$type; ?><?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) ?></div><?php } ?></fieldset><?php } ?><?php $a4_equals='list';$a4_value=$type; ?><?php $a4_tmp_exec = $a4_equals == $a4_value; $a4_tmp_last_exec = $a4_tmp_exec; if ( $a4_tmp_exec ) { ?> -<?php unset($a4_equals,$a4_value) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_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($a6_colspan) ?><?php $a7_list='objects';$a7_name='linkobjectid';$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=false;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php +<?php unset($a4_equals,$a4_value) ?><fieldset><?php if(isset($a5_title)) { ?><legend><?php if(isset($a5_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a5_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a5_title) ?>&nbsp;&nbsp;</legend><?php } ?><div><?php $a7_list='objects';$a7_name='linkobjectid';$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()) @@ -2096,33 +1726,15 @@ echo ' size="'.intval($a7_size).'"'; 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) ?><?php $a7_field='linkobjectid'; ?><?php -if (isset($errors[0])) $a7_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $a7_field ?>.focus(); -document.forms[0].<?php echo $a7_field ?>.select(); +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?><?php $a7_field='linkobjectid'; ?><script name="JavaScript" type="text/javascript"><!-- </script> -<?php unset($a7_field) ?></td></tr><?php } ?><?php $a4_equals='insert';$a4_value=$type; ?><?php +<?php unset($a7_field) ?></div></fieldset><?php } ?><?php $a4_equals='insert';$a4_value=$type; ?><?php $a4_tmp_exec = $a4_equals == $a4_value; $a4_tmp_last_exec = $a4_tmp_exec; if ( $a4_tmp_exec ) { ?> -<?php unset($a4_equals,$a4_value) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_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($a6_colspan) ?><?php $a7_list='objects';$a7_name='linkobjectid';$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=false;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php +<?php unset($a4_equals,$a4_value) ?><fieldset><?php if(isset($a5_title)) { ?><legend><?php if(isset($a5_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a5_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a5_title) ?>&nbsp;&nbsp;</legend><?php } ?><div><?php $a7_list='objects';$a7_name='linkobjectid';$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()) @@ -2176,33 +1788,15 @@ echo ' size="'.intval($a7_size).'"'; 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) ?><?php $a7_field='linkobjectid'; ?><?php -if (isset($errors[0])) $a7_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $a7_field ?>.focus(); -document.forms[0].<?php echo $a7_field ?>.select(); +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?><?php $a7_field='linkobjectid'; ?><script name="JavaScript" type="text/javascript"><!-- </script> -<?php unset($a7_field) ?></td></tr><?php } ?><?php $a4_equals='number';$a4_value=$type; ?><?php +<?php unset($a7_field) ?></div></fieldset><?php } ?><?php $a4_equals='number';$a4_value=$type; ?><?php $a4_tmp_exec = $a4_equals == $a4_value; $a4_tmp_last_exec = $a4_tmp_exec; if ( $a4_tmp_exec ) { ?> -<?php unset($a4_equals,$a4_value) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_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($a6_colspan) ?><?php $a7_name='decimals';$a7_default='decimals'; ?><?php +<?php unset($a4_equals,$a4_value) ?><fieldset><?php if(isset($a5_title)) { ?><legend><?php if(isset($a5_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a5_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a5_title) ?>&nbsp;&nbsp;</legend><?php } ?><div><?php $a7_name='decimals';$a7_default='decimals'; ?><?php if (isset($$a7_name)) $a7_tmp_value = $$a7_name; elseif ( isset($a7_default) ) @@ -2214,36 +1808,18 @@ else 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 +?><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 { ?><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) ?><?php $a7_field='number'; ?><?php -if (isset($errors[0])) $a7_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $a7_field ?>.focus(); -document.forms[0].<?php echo $a7_field ?>.select(); + } } 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) ?><?php $a7_field='number'; ?><script name="JavaScript" type="text/javascript"><!-- </script> -<?php unset($a7_field) ?></td></tr><?php } ?><?php $a4_equals='select';$a4_value=$type; ?><?php +<?php unset($a7_field) ?></div></fieldset><?php } ?><?php $a4_equals='select';$a4_value=$type; ?><?php $a4_tmp_exec = $a4_equals == $a4_value; $a4_tmp_last_exec = $a4_tmp_exec; if ( $a4_tmp_exec ) { ?> -<?php unset($a4_equals,$a4_value) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_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($a6_colspan) ?><?php $a7_list='items';$a7_name='text';$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=false;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php +<?php unset($a4_equals,$a4_value) ?><fieldset><?php if(isset($a5_title)) { ?><legend><?php if(isset($a5_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a5_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a5_title) ?>&nbsp;&nbsp;</legend><?php } ?><div><?php $a7_list='items';$a7_name='text';$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()) @@ -2297,13 +1873,9 @@ echo ' size="'.intval($a7_size).'"'; 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) ?><?php $a7_field='text'; ?><?php -if (isset($errors[0])) $a7_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $a7_field ?>.focus(); -document.forms[0].<?php echo $a7_field ?>.select(); +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?><?php $a7_field='text'; ?><script name="JavaScript" type="text/javascript"><!-- </script> -<?php unset($a7_field) ?></td></tr><?php } ?><?php $a4_true=$mode=="edit"; ?><?php +<?php unset($a7_field) ?></div></fieldset><?php } ?><?php $a4_true=$mode=="edit"; ?><?php if (gettype($a4_true) === '' && gettype($a4_true) === '1') $a4_tmp_exec = $$a4_true == true; else @@ -2330,35 +1902,7 @@ document.forms[0].<?php echo $a7_field ?>.select(); if ( $a7_tmp_exec ) { ?> -<?php unset($a7_present) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a9_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($a9_colspan) ?><?php $a10_title=lang('editor_show_language'); ?><fieldset><?php if(isset($a10_title)) { ?><legend><?php if(isset($a10_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a10_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a10_title) ?></legend><?php } ?><?php unset($a10_title) ?></fieldset></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a9_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($a9_colspan) ?><?php $a10_list='languages';$a10_extract=false;$a10_key='languageid';$a10_value='languagename'; ?><?php +<?php unset($a7_present) ?><?php $a8_title=lang('editor_show_language'); ?><fieldset><?php if(isset($a8_title)) { ?><legend><?php if(isset($a8_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a8_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a8_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a8_title) ?><div><?php $a10_list='languages';$a10_extract=false;$a10_key='languageid';$a10_value='languagename'; ?><?php $a10_list_tmp_key = $a10_key; $a10_list_tmp_value = $a10_value; $a10_list_extract = $a10_extract; @@ -2386,7 +1930,8 @@ document.forms[0].<?php echo $a7_field ?>.select(); else $a11_tmp_default = ''; ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a11_name.'_'.$a11_value ?>" name="<?php echo $a11_prefix.$a11_name ?>"<?php if ( $a11_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a11_value ?>" <?php if($a11_value==$a11_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a11_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> -<?php /* #END-IF# */ ?><?php unset($a11_readonly,$a11_name,$a11_value,$a11_default,$a11_prefix,$a11_suffix,$a11_class,$a11_onchange) ?><?php $a11_for='otherlanguageid_'.$languageid.''; ?><label for="id_<?php echo $a11_for ?><?php if (!empty($a11_value)) echo '_'.$a11_value ?>"><?php unset($a11_for) ?><?php $a12_class='text';$a12_var='languagename';$a12_escape=true;$a12_cut='both'; ?><?php +<?php /* #END-IF# */ ?><?php unset($a11_readonly,$a11_name,$a11_value,$a11_default,$a11_prefix,$a11_suffix,$a11_class,$a11_onchange) ?><?php $a11_for='otherlanguageid_'.$languageid.''; ?><label<?php if (isset($a11_for)) { ?> for="id_<?php echo $a11_for ?><?php if (!empty($a11_value)) echo '_'.$a11_value ?>" class="label"<?php } ?>> +<?php if (isset($a11_key)) { echo lang($a11_key); if(hasLang($a11_key.'_desc')) { ?><div class="description"><?php echo lang($a11_key.'_desc')?></div> <?php } } ?><?php unset($a11_for) ?><?php $a12_class='text';$a12_var='languagename';$a12_escape=true;$a12_cut='both'; ?><?php $a12_title = ''; $tmp_tag = 'span'; ?><<?php echo $tmp_tag ?> class="<?php echo $a12_class ?>" title="<?php echo $a12_title ?>"><?php @@ -2395,35 +1940,7 @@ document.forms[0].<?php echo $a7_field ?>.select(); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a12_class,$a12_var,$a12_escape,$a12_cut) ?></label><br/><?php } ?></td></tr><?php } ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a8_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($a8_colspan) ?><?php $a9_title=lang('PAGE_PREVIEW'); ?><fieldset><?php if(isset($a9_title)) { ?><legend><?php if(isset($a9_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a9_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a9_title) ?></legend><?php } ?><?php unset($a9_title) ?></fieldset></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a8_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($a8_colspan) ?><?php $a9_default=false;$a9_readonly=false;$a9_name='preview'; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a12_class,$a12_var,$a12_escape,$a12_cut) ?></label><br/><?php } ?></div></fieldset><?php } ?><?php $a7_title=lang('PAGE_PREVIEW'); ?><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) ?><div><?php $a9_default=false;$a9_readonly=false;$a9_name='preview'; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a9_readonly=true; if ( isset($$a9_name) ) $checked = $$a9_name; @@ -2434,7 +1951,8 @@ if ( $a9_readonly && $checked ) { ?><input type="hidden" name="<?php echo $a9_name ?>" value="1" /><?php } -?><?php unset($a9_name); unset($a9_readonly); unset($a9_default); ?><?php unset($a9_default,$a9_readonly,$a9_name) ?><?php $a9_for='preview'; ?><label for="id_<?php echo $a9_for ?><?php if (!empty($a9_value)) echo '_'.$a9_value ?>"><?php unset($a9_for) ?><?php $a10_class='text';$a10_key='PAGE_PREVIEW';$a10_escape=true;$a10_cut='both'; ?><?php +?><?php unset($a9_name); unset($a9_readonly); unset($a9_default); ?><?php unset($a9_default,$a9_readonly,$a9_name) ?><?php $a9_for='preview'; ?><label<?php if (isset($a9_for)) { ?> for="id_<?php echo $a9_for ?><?php if (!empty($a9_value)) echo '_'.$a9_value ?>" class="label"<?php } ?>> +<?php if (isset($a9_key)) { echo lang($a9_key); if(hasLang($a9_key.'_desc')) { ?><div class="description"><?php echo lang($a9_key.'_desc')?></div> <?php } } ?><?php unset($a9_for) ?><?php $a10_class='text';$a10_key='PAGE_PREVIEW';$a10_escape=true;$a10_cut='both'; ?><?php $a10_title = ''; $tmp_tag = 'span'; ?><<?php echo $tmp_tag ?> class="<?php echo $a10_class ?>" title="<?php echo $a10_title ?>"><?php @@ -2443,148 +1961,72 @@ if ( $a9_readonly && $checked ) $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_key,$a10_escape,$a10_cut) ?></label></td></tr><?php } ?><?php } ?><?php } ?><?php $a4_true=$mode=="edit"; ?><?php - if (gettype($a4_true) === '' && gettype($a4_true) === '1') - $a4_tmp_exec = $$a4_true == true; - else - $a4_tmp_exec = $a4_true == true; - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) - { -?> -<?php unset($a4_true) ?><?php $a5_present='release'; ?><?php - $a5_tmp_exec = isset($$a5_present); - $a5_tmp_last_exec = $a5_tmp_exec; - if ( $a5_tmp_exec ) - { -?> -<?php unset($a5_present) ?><?php $a6_present='publish'; ?><?php - $a6_tmp_exec = isset($$a6_present); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) - { -?> -<?php unset($a6_present) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a8_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($a8_colspan) ?><?php $a9_title=lang('options'); ?><fieldset><?php if(isset($a9_title)) { ?><legend><?php if(isset($a9_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a9_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a9_title) ?></legend><?php } ?><?php unset($a9_title) ?></fieldset></td></tr><?php } ?><?php } ?><?php $a5_present='release'; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_key,$a10_escape,$a10_cut) ?></label></div></fieldset><?php } ?><?php } ?><?php } ?><?php $a4_title=lang('options'); ?><fieldset><?php if(isset($a4_title)) { ?><legend><?php if(isset($a4_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a4_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a4_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a4_title) ?><?php $a5_present='release'; ?><?php $a5_tmp_exec = isset($$a5_present); $a5_tmp_last_exec = $a5_tmp_exec; if ( $a5_tmp_exec ) { ?> -<?php unset($a5_present) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a7_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($a7_colspan) ?><?php $a8_default=false;$a8_readonly=false;$a8_name='release'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; - if ( isset($$a8_name) ) - $checked = $$a8_name; +<?php unset($a5_present) ?><div><?php $a7_default=false;$a7_readonly=false;$a7_name='release'; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; + if ( isset($$a7_name) ) + $checked = $$a7_name; else - $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 ) + $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 $a8_name ?>" value="1" /><?php +?><input type="hidden" name="<?php echo $a7_name ?>" value="1" /><?php } -?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?><?php $a8_for='release'; ?><label for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>"><?php unset($a8_for) ?><?php $a9_class='text';$a9_text='GLOBAL_RELEASE';$a9_escape=true;$a9_cut='both'; ?><?php - $a9_title = ''; +?><?php unset($a7_name); unset($a7_readonly); unset($a7_default); ?><?php unset($a7_default,$a7_readonly,$a7_name) ?><?php $a7_for='release'; ?><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='GLOBAL_RELEASE';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?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); +?><<?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($a9_class,$a9_text,$a9_escape,$a9_cut) ?></label></td></tr><?php } ?><?php $a5_present='publish'; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></label></div><?php } ?><?php $a5_present='publish'; ?><?php $a5_tmp_exec = isset($$a5_present); $a5_tmp_last_exec = $a5_tmp_exec; if ( $a5_tmp_exec ) { ?> -<?php unset($a5_present) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a7_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($a7_colspan) ?><?php $a8_default=false;$a8_readonly=false;$a8_name='publish'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; - if ( isset($$a8_name) ) - $checked = $$a8_name; +<?php unset($a5_present) ?><div><?php $a7_default=false;$a7_readonly=false;$a7_name='publish'; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; + if ( isset($$a7_name) ) + $checked = $$a7_name; else - $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 ) + $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 $a8_name ?>" value="1" /><?php +?><input type="hidden" name="<?php echo $a7_name ?>" value="1" /><?php } -?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?><?php $a8_for='publish'; ?><label for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>"><?php unset($a8_for) ?><?php $a9_class='text';$a9_text='PAGE_PUBLISH_AFTER_SAVE';$a9_escape=true;$a9_cut='both'; ?><?php - $a9_title = ''; +?><?php unset($a7_name); unset($a7_readonly); unset($a7_default); ?><?php unset($a7_default,$a7_readonly,$a7_name) ?><?php $a7_for='publish'; ?><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='PAGE_PUBLISH_AFTER_SAVE';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_title = ''; $tmp_tag = 'span'; -?><<?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); +?><<?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($a9_class,$a9_text,$a9_escape,$a9_cut) ?></label></td></tr><?php } ?><?php } ?><?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 echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></label></div><?php } ?></fieldset><?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/> @@ -2592,6 +2034,4 @@ if ( $a8_readonly && $checked ) <?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/pageelement/export.tpl.php b/themes/default/pages/html/pageelement/export.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='export';$a3_width='93%';$a3_rowclasses='odd,even';$a3_columnclasses='a'; ?><?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='export';$a4_width='93%';$a4_rowclasses='odd,even';$a4_columnclasses='a'; ?><?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,93 +84,86 @@ $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_list='types';$a6_name='type';$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; +><?php unset($a6_header) ?><?php $a7_list='types';$a7_name='type';$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) ) { @@ -221,7 +171,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 ); @@ -230,43 +180,59 @@ 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_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_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?></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_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_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/> @@ -274,12 +240,7 @@ 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> -<?php $a2_field='text'; ?><?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='text'; ?><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/pageelement/import.tpl.php b/themes/default/pages/html/pageelement/import.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='import';$a3_width='93%';$a3_rowclasses='odd,even';$a3_columnclasses='a'; ?><?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='import';$a4_width='93%';$a4_rowclasses='odd,even';$a4_columnclasses='a'; ?><?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,93 +84,86 @@ $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_list='types';$a6_name='type';$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; +><?php unset($a6_header) ?><?php $a7_list='types';$a7_name='type';$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) ) { @@ -221,7 +171,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 ); @@ -230,56 +180,71 @@ 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_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_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?></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_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) ?></td></tr><?php - $row_idx++; +><?php unset($a6_header) ?><?php $a7_name='file';$a7_class='upload';$a7_size='40'; ?><input size="<?php echo $a7_size ?>" id="id_<?php echo $a7_name ?>" type="file" <?php if (isset($a7_maxlength))echo ' maxlength="'.$a7_maxlength.'"' ?> name="<?php echo $a7_name ?>" class="<?php echo $a7_class ?>" <?php if (in_array($a7_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php unset($a7_name,$a7_class,$a7_size) ?></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_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_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/> @@ -287,12 +252,7 @@ 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> -<?php $a2_field='text'; ?><?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='text'; ?><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/pageelement/link.tpl.php b/themes/default/pages/html/pageelement/link.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='element';$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='element';$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,79 +84,71 @@ $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 $a5_class='help';$a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a6_class='help';$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="help" colspan="2" -><?php unset($a5_class,$a5_colspan) ?><?php $a6_class='text';$a6_var='desc';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_class,$a6_colspan,$a6_header) ?><?php $a7_class='text';$a7_var='desc';$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 $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 } ?> @@ -207,35 +156,35 @@ class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a5_colspan) ?><?php $a6_list='objects';$a6_name='linkobjectid';$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; +><?php unset($a6_colspan,$a6_header) ?><?php $a7_list='objects';$a7_name='linkobjectid';$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) ) { @@ -243,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 ); @@ -252,34 +201,33 @@ 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_onchange,$a6_title,$a6_class,$a6_addempty,$a6_multiple,$a6_size,$a6_lang) ?></td></tr><?php $a4_present='release'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) - { -?> -<?php unset($a4_present) ?><?php $a5_present='publish'; ?><?php +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?></td></tr><?php $a5_present='release'; ?><?php $a5_tmp_exec = isset($$a5_present); $a5_tmp_last_exec = $a5_tmp_exec; if ( $a5_tmp_exec ) { ?> -<?php unset($a5_present) ?><?php - $row_idx++; +<?php unset($a5_present) ?><?php $a6_present='publish'; ?><?php + $a6_tmp_exec = isset($$a6_present); + $a6_tmp_last_exec = $a6_tmp_exec; + if ( $a6_tmp_exec ) + { +?> +<?php unset($a6_present) ?><?php $column_idx = 0; ?> <tr > -<?php $a7_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a8_colspan='2';$a8_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -287,19 +235,18 @@ 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($a7_colspan) ?><?php $a8_title=lang('options'); ?><fieldset><?php if(isset($a8_title)) { ?><legend><?php if(isset($a8_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a8_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a8_title) ?></legend><?php } ?><?php unset($a8_title) ?></fieldset></td></tr><?php } ?><?php } ?><?php $a4_present='release'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +><?php unset($a8_colspan,$a8_header) ?><?php $a9_title=lang('options'); ?><fieldset><?php if(isset($a9_title)) { ?><legend><?php if(isset($a9_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a9_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a9_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a9_title) ?></fieldset></td></tr><?php } ?><?php } ?><?php $a5_present='release'; ?><?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 $a6_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a7_colspan='2';$a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -307,48 +254,48 @@ 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($a6_colspan) ?><?php $a7_default=false;$a7_readonly=false;$a7_name='release'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; - if ( isset($$a7_name) ) - $checked = $$a7_name; +><?php unset($a7_colspan,$a7_header) ?><?php $a8_default=false;$a8_readonly=false;$a8_name='release'; ?><?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) ?><?php $a7_for='release'; ?><label for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>"><?php unset($a7_for) ?><?php $a8_class='text';$a8_raw='_';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?><?php $a8_for='release'; ?><label<?php if (isset($a8_for)) { ?> for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>" class="label"<?php } ?>> +<?php if (isset($a8_key)) { echo lang($a8_key); if(hasLang($a8_key.'_desc')) { ?><div class="description"><?php echo lang($a8_key.'_desc')?></div> <?php } } ?><?php unset($a8_for) ?><?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_RELEASE';$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_RELEASE';$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) ?></label></td></tr><?php } ?><?php $a4_present='publish'; ?><?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_text,$a9_escape,$a9_cut) ?></label></td></tr><?php } ?><?php $a5_present='publish'; ?><?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 $a6_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a7_colspan='2';$a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -356,62 +303,79 @@ if ( $a7_readonly && $checked ) class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a6_colspan) ?><?php $a7_default=false;$a7_readonly=false;$a7_name='publish'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; - if ( isset($$a7_name) ) - $checked = $$a7_name; +><?php unset($a7_colspan,$a7_header) ?><?php $a8_default=false;$a8_readonly=false;$a8_name='publish'; ?><?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) ?><?php $a7_for='publish'; ?><label for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>"><?php unset($a7_for) ?><?php $a8_class='text';$a8_raw='_';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?><?php $a8_for='publish'; ?><label<?php if (isset($a8_for)) { ?> for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>" class="label"<?php } ?>> +<?php if (isset($a8_key)) { echo lang($a8_key); if(hasLang($a8_key.'_desc')) { ?><div class="description"><?php echo lang($a8_key.'_desc')?></div> <?php } } ?><?php unset($a8_for) ?><?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='PAGE_PUBLISH_AFTER_SAVE';$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='PAGE_PUBLISH_AFTER_SAVE';$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) ?></label></td></tr><?php } ?><?php - $row_idx++; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?></label></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/> @@ -419,12 +383,7 @@ if ( $a7_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='linko'; ?><?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='linko'; ?><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/pageelement/prop.tpl.php b/themes/default/pages/html/pageelement/prop.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_icon='folder';$a3_widths='40%,60%';$a3_width='93%';$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 unset($a3_name,$a3_target,$a3_method,$a3_enctype,$a3_type) ?><?php $a4_icon='folder';$a4_widths='40%,60%';$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,172 +84,162 @@ $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_icon,$a3_widths,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $row_idx++; + </dl> +<?php } ?> +<div class="content"><div class="filler"> +<?php } ?><?php unset($a4_icon,$a4_widths,$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='name';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_header) ?><?php $a7_class='text';$a7_text='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 echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $a6_class='name';$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="name" -><?php unset($a5_class) ?><?php $a6_class='text';$a6_var='name';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_class,$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='description';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_header) ?><?php $a7_class='text';$a7_text='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_class='text';$a6_var='description';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_header) ?><?php $a7_class='text';$a7_var='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 = 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='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 $a5_class='filename'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_text,$a7_escape,$a7_cut) ?></td><?php $a6_class='filename';$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="filename" -><?php unset($a5_class) ?><?php $a6_align='left';$a6_elementtype=$element_type; ?><?php - $a6_tmp_image_file = $image_dir.'icon_el_'.$a6_elementtype.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_align,$a6_elementtype) ?><?php $a6_class='text';$a6_key='el_'.$element_type.'';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_class,$a6_header) ?><?php $a7_align='left';$a7_elementtype=$element_type; ?><?php + $a7_tmp_image_file = $image_dir.'icon_el_'.$a7_elementtype.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_align,$a7_elementtype) ?><?php $a7_class='text';$a7_key='el_'.$element_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_key); +?><<?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($a6_class,$a6_key,$a6_escape,$a6_cut) ?></td></tr><?php - $row_idx++; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?></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 } ?> @@ -301,173 +247,218 @@ 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 - $row_idx++; +><?php unset($a6_colspan,$a6_header) ?><?php $a7_title=lang('additional_info'); ?><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 } ?> -><?php $a6_class='text';$a6_key='template';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_header) ?><?php $a7_class='text';$a7_key='template';$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_key); +?><<?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($a6_class,$a6_key,$a6_escape,$a6_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$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_present='template_url'; ?><?php - $a6_tmp_exec = isset($$a6_present); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) +><?php unset($a6_header) ?><?php $a7_present='template_url'; ?><?php + $a7_tmp_exec = isset($$a7_present); + $a7_tmp_last_exec = $a7_tmp_exec; + if ( $a7_tmp_exec ) { ?> -<?php unset($a6_present) ?><?php $a7_title='';$a7_target='cms_main_main';$a7_url=$template_url;$a7_class=''; ?><?php +<?php unset($a7_present) ?><?php $a8_title='';$a8_type='';$a8_target='cms_main_main';$a8_url=$template_url;$a8_class='';$a8_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a7_url; -?><a<?php if (isset($a7_name)) echo ' name="'.$a7_name.'"'; else echo ' href="'.$tmp_url.(isset($a7_anchor)?'#'.$a7_anchor:'').'"' ?> class="<?php echo $a7_class ?>" target="<?php echo $a7_target ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_target,$a7_url,$a7_class) ?><?php $a8_file='icon_template';$a8_align='left'; ?><?php - $a8_tmp_image_file = $image_dir.$a8_file.IMG_ICON_EXT; - $a8_tmp_title = basename($a8_tmp_image_file); -?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?>><?php unset($a8_file,$a8_align) ?><?php $a8_class='text';$a8_var='template_name';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; + $params[REQ_PARAM_TARGET] = $a8_target; + switch( $a8_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a8_action)?$a8_action:$this->actionName,'subaction'=>!empty($a8_subaction)?$a8_subaction:$this->subActionName,'id'=>!empty($a8_id)?$a8_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($a8_subaction)?$a8_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a8_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a8_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a8_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a8_frame ?>"<?php if (isset($a8_name)) { ?> name="<?php echo $a8_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a8_class ?>"<?php if (isset($a8_accesskey)) echo ' accesskey="'.$a8_accesskey.'"' ?> title="<?php echo encodeHtml($a8_title) ?>"><?php unset($a8_title,$a8_type,$a8_target,$a8_url,$a8_class,$a8_frame) ?><?php $a9_file='icon_template';$a9_align='left'; ?><?php + $a9_tmp_image_file = $image_dir.$a9_file.IMG_ICON_EXT; + $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_file,$a9_align) ?><?php $a9_class='text';$a9_var='template_name';$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) ?></a><?php } ?><?php $a6_empty='template_url'; ?><?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; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_var,$a9_escape,$a9_cut) ?></a><?php } ?><?php $a7_empty='template_url'; ?><?php + if ( !isset($$a7_empty) ) + $a7_tmp_exec = empty($a7_empty); + elseif ( is_array($$a7_empty) ) + $a7_tmp_exec = (count($$a7_empty)==0); + elseif ( is_bool($$a7_empty) ) + $a7_tmp_exec = true; else - $a6_tmp_exec = empty( $$a6_empty ); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) + $a7_tmp_exec = empty( $$a7_empty ); + $a7_tmp_last_exec = $a7_tmp_exec; + if ( $a7_tmp_exec ) { ?> -<?php unset($a6_empty) ?><?php $a7_file='icon_template';$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_var='template_name';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +<?php unset($a7_empty) ?><?php $a8_file='icon_template';$a8_align='left'; ?><?php + $a8_tmp_image_file = $image_dir.$a8_file.IMG_ICON_EXT; + $a8_tmp_title = basename($a8_tmp_image_file); +?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?> /><?php unset($a8_file,$a8_align) ?><?php $a8_class='text';$a8_var='template_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 = isset($$a7_var)?$$a7_var:$langF('UNKNOWN'); +?><<?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($a7_class,$a7_var,$a7_escape,$a7_cut) ?><?php } ?></td></tr><?php - $row_idx++; +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_var,$a8_escape,$a8_cut) ?><?php } ?></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_key='element';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_header) ?><?php $a7_class='text';$a7_key='element';$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_key); +?><<?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($a6_class,$a6_key,$a6_escape,$a6_cut) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$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_present='element_url'; ?><?php - $a6_tmp_exec = isset($$a6_present); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) +><?php unset($a6_header) ?><?php $a7_present='element_url'; ?><?php + $a7_tmp_exec = isset($$a7_present); + $a7_tmp_last_exec = $a7_tmp_exec; + if ( $a7_tmp_exec ) { ?> -<?php unset($a6_present) ?><?php $a7_title='';$a7_target='cms_main_main';$a7_url=$element_url;$a7_class=''; ?><?php +<?php unset($a7_present) ?><?php $a8_title='';$a8_type='';$a8_target='cms_main_main';$a8_url=$element_url;$a8_class='';$a8_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a7_url; -?><a<?php if (isset($a7_name)) echo ' name="'.$a7_name.'"'; else echo ' href="'.$tmp_url.(isset($a7_anchor)?'#'.$a7_anchor:'').'"' ?> class="<?php echo $a7_class ?>" target="<?php echo $a7_target ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_target,$a7_url,$a7_class) ?><?php $a8_align='left';$a8_elementtype=$element_type; ?><?php - $a8_tmp_image_file = $image_dir.'icon_el_'.$a8_elementtype.IMG_ICON_EXT; - $a8_size = '16x16'; - $a8_tmp_title = basename($a8_tmp_image_file); -?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?>><?php unset($a8_align,$a8_elementtype) ?><?php $a8_class='text';$a8_var='element_name';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; + $params[REQ_PARAM_TARGET] = $a8_target; + switch( $a8_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a8_action)?$a8_action:$this->actionName,'subaction'=>!empty($a8_subaction)?$a8_subaction:$this->subActionName,'id'=>!empty($a8_id)?$a8_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($a8_subaction)?$a8_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a8_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a8_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a8_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a8_frame ?>"<?php if (isset($a8_name)) { ?> name="<?php echo $a8_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a8_class ?>"<?php if (isset($a8_accesskey)) echo ' accesskey="'.$a8_accesskey.'"' ?> title="<?php echo encodeHtml($a8_title) ?>"><?php unset($a8_title,$a8_type,$a8_target,$a8_url,$a8_class,$a8_frame) ?><?php $a9_align='left';$a9_elementtype=$element_type; ?><?php + $a9_tmp_image_file = $image_dir.'icon_el_'.$a9_elementtype.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_align,$a9_elementtype) ?><?php $a9_class='text';$a9_var='element_name';$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) ?></a><?php } ?><?php $a6_empty='element_url'; ?><?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; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_var,$a9_escape,$a9_cut) ?></a><?php } ?><?php $a7_empty='element_url'; ?><?php + if ( !isset($$a7_empty) ) + $a7_tmp_exec = empty($a7_empty); + elseif ( is_array($$a7_empty) ) + $a7_tmp_exec = (count($$a7_empty)==0); + elseif ( is_bool($$a7_empty) ) + $a7_tmp_exec = true; else - $a6_tmp_exec = empty( $$a6_empty ); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) + $a7_tmp_exec = empty( $$a7_empty ); + $a7_tmp_last_exec = $a7_tmp_exec; + if ( $a7_tmp_exec ) { ?> -<?php unset($a6_empty) ?><?php $a7_icon='element';$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_class='text';$a7_var='element_name';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +<?php unset($a7_empty) ?><?php $a8_icon='element';$a8_align='left'; ?><?php + $a8_tmp_image_file = $image_dir.'icon_'.$a8_icon.IMG_ICON_EXT; + $a8_size = '16x16'; + $a8_tmp_title = basename($a8_tmp_image_file); +?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?> /><?php unset($a8_icon,$a8_align) ?><?php $a8_class='text';$a8_var='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 = isset($$a7_var)?$$a7_var:$langF('UNKNOWN'); +?><<?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($a7_class,$a7_var,$a7_escape,$a7_cut) ?><?php } ?></td></tr><?php $a4_present='text'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_var,$a8_escape,$a8_cut) ?><?php } ?></td></tr><?php $a5_present='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 $a6_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a7_colspan='2';$a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -475,13 +466,12 @@ class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a6_colspan) ?><?php $a7_title=lang('DOCUMENT_TREE'); ?><fieldset><?php if(isset($a7_title)) { ?><legend><?php if(isset($a7_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a7_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a7_title) ?></legend><?php } ?><?php unset($a7_title) ?></fieldset></td></tr><?php - $row_idx++; +><?php unset($a7_colspan,$a7_header) ?><?php $a8_title=lang('DOCUMENT_TREE'); ?><fieldset><?php if(isset($a8_title)) { ?><legend><?php if(isset($a8_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a8_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a8_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a8_title) ?></fieldset></td></tr><?php $column_idx = 0; ?> <tr > -<?php $a6_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a7_colspan='2';$a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -489,7 +479,7 @@ class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a6_colspan) ?><?php $a7_name='text';$a7_type='dom'; ?><?php +><?php unset($a7_colspan,$a7_header) ?><?php $a8_name='text';$a8_type='dom'; ?><?php function checkbox( $name,$value=false,$writable=true,$params=Array() ) { $src = '<input type="checkbox" id="id_'.$name.'" name="'.$name.'"'; @@ -526,179 +516,41 @@ echo '<td><noscript>'.checkbox($type).'</noscript><label for="id_'.$type.'"><a href="javascript:'.$type.'();" title="'.langHtml('PAGE_EDITOR_ADD_'.$type).'"><img src="'.$image_dir.'/editor/'.$image.'" border"0" /></a></label>'; } ?><?php -switch( $a7_type ) +switch( $a8_type ) { case 'fckeditor': case 'html': - if ( $this->isEditMode() ) - { - include_once('./editor/editor/ckeditor.php'); - $editor = new CKeditor() ; - $url = FileUtils::slashify(dirname($_SERVER['SCRIPT_NAME'])); - $base = defined('OR_BASE_URL')?slashify(OR_BASE_URL).'editor/editor/':'./editor/editor/'; - $editor->basePath = $base; - $editor->config['skin' ] = 'v2'; - $editor->config['language' ] = config('language','language_code'); - $editor->config['toolbar' ] = 'Openrat'; - $editor->config['toolbar_Openrat' ] = array( - array('Save','Preview','-'/*,'Templates'*/), - array('Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'), - array('Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'), - array('Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'), - '/', - array('Bold','Italic',/*'Underline',*/'Strike','-','Subscript','Superscript'), - array('NumberedList','BulletedList','-','Outdent','Indent','Blockquote'), - array('JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'), - array('Link','Unlink','Anchor'), - array('Image','Flash','Table','HorizontalRule','SpecialChar','PageBreak'), - '/', - array(/*'Styles',*/'Format','Font','FontSize'), - array('TextColor','BGColor'), - array('Source','-', 'ShowBlocks','Maximize') ); - $editor->config['filebrowserUploadUrl' ] = str_replace('&amp;','&',Html::url('filebrowser','directupload','-',array(REQ_PARAM_TOKEN=>token(),'name'=>'upload'))); - $editor->config['filebrowserBrowseUrl' ] = str_replace('&amp;','&',Html::url('filebrowser','browse','-')); - $editor->editor($a7_name,$$a7_name); - } - else - { - echo ($$a7_name); - } + echo '<textarea name="'.$a8_name.'" class="editor htmleditor" id="pageelement_edit_editor">'.$$a8_name.'</textarea>'; break; case 'wiki': $conf_tags = $conf['editor']['text-markup']; - if ( $this->isEditMode() ) - { - ?> -<script name="Javascript" type="text/javascript" src="<?php echo $tpl_dir ?>../../js/editor.js"></script> -<script name="JavaScript" type="text/javascript"> -function strong() -{ - insert('<?php echo $a7_name ?>','<?php echo $conf_tags['strong-begin'] ?>','<?php echo $conf_tags['strong-end'] ?>'); -} -function emphatic() -{ - insert('<?php echo $a7_name ?>','<?php echo $conf_tags['emphatic-begin'] ?>','<?php echo $conf_tags['emphatic-end'] ?>'); -} -function link() -{ - objectid = document.forms[0].objectid.value; - if (objectid=="" ||objectid=="0"||objectid==null) - objectid = window.prompt("Id",""); - if (objectid=="" ||objectid=="0"||objectid==null) - return; - insert('<?php echo $a7_name ?>','"','"<?php echo $conf_tags['linkto'] ?>"'+objectid+'"'); -} -function image() -{ - objectid = document.forms[0].objectid.value; - if (objectid=="" ||objectid=="0"||objectid==null) - objectid = window.prompt("Id",""); - if (objectid=="" ||objectid=="0"||objectid==null) - return; - insert('<?php echo $a7_name ?>','','<?php echo $conf_tags['image-begin'] ?>"'+objectid+'"<?php echo $conf_tags['image-end'] ?>'); -} -function list() -{ - insert('<?php echo $a7_name ?>',"","\n"); - while( true ) - { - t = window.prompt('<?php echo langHtml('EDITOR_PROMPT_LIST_ENTRY') ?>',''); - if ( t != '' && t != null ) - insert('<?php echo $a7_name ?>',"<?php echo $conf_tags['list-unnumbered'] ?> "+t+"\n",""); - else - break; - } -} -function numlist() -{ - insert('<?php echo $a7_name ?>',"\n\n<?php echo $conf_tags['list-numbered'] ?> ","\n<?php echo $conf_tags['list-numbered'] ?> \n<?php echo $conf_tags['list-numbered'] ?> \n"); -} -function table() -{ - column=1; - while( true ) - { - if ( column==1 ) - text='<?php echo langHtml('EDITOR_PROMPT_TABLE_CELL_FIRST_COLUMN') ?>'; - else - text='<?php echo langHtml('EDITOR_PROMPT_TABLE_CELL') ?>'; - t = window.prompt(text,''); - if ( t != '' && t != null ) - { - insert('<?php echo $a7_name ?>',"<?php echo $conf_tags['table-cell-sep'] ?>"+t,""); - column++; - } - else - { - if (column==1) - { - break; - } - else - { - insert('text',"\n",""); - column=1; - } - } - } -} -</script> - <fieldset><legend><?php echo langHtml('EDITOR') ?></legend></fieldset> - <table> - <tr> - <td><noscript><input type="text" name="addtext" size="30" /></noscript></td> - <td><?php add_control('strong' ,'bold.png' )?></td> - <td><?php add_control('emphatic','italic.png') ?></td> - <td>&nbsp;&nbsp;&nbsp;</td> - <td><?php add_control('table','table.png') ?></td> - <td>&nbsp;&nbsp;&nbsp;</td> - <td><?php add_control('list' ,'list.png') ; ?></td> - <td><?php add_control('numlist','numlist.png') ?></td> - <td>&nbsp;&nbsp;&nbsp;</td> - <td><?php add_control('image','image.png') ?></td> - <td><?php add_control('link' ,'link.png' ) ?></td> - <td><input name="objectid" size="6" title="<?php echo langHtml('LINK_TO') ?>"></td> - <td><noscript>&nbsp;&nbsp;<input type="submit" class="submit" name="addmarkup" value="<?php echo langHtml('ADD') ?>"/></noscript></td> - </tr> - </table> - <fieldset><legend><?php echo langHtml('CONTENT') ?></legend></fieldset> - <textarea name="<?php echo $a7_name ?>" class="editor"><?php echo $$a7_name ?></textarea> -<?php - } - else - { - $a7_tmp_text = $$a7_name; - if ( !is_array($a7_tmp_text)) - $a7_tmp_text = explode("\n",$a7_tmp_text); - echo implode('',$a7_tmp_text); - } + ?><textarea name="<?php echo $a8_name ?>" class="editor wikieditor"><?php echo $$a8_name ?></textarea><?php break; case 'text': case 'raw': if ( $this->isEditMode() ) - echo '<textarea name="'.$a7_name.'" class="editor" style="width:100%;height:300px;">'.$$a7_name.'</textarea>'; + echo '<textarea name="'.$a8_name.'" class="editor" style="width:100%;height:300px;">'.$$a8_name.'</textarea>'; else - echo nl2br($$a7_name); + echo nl2br($$a8_name); break; case 'dom': case 'tree': - $a7_tmp_doc = new DocumentElement(); - $a7_tmp_text = $$a7_name; - if ( !is_array($a7_tmp_text)) - $a7_tmp_text = explode("\n",$a7_tmp_text); - $a7_tmp_doc->parse($a7_tmp_text); - echo $a7_tmp_doc->render('application/html-dom'); + $a8_tmp_doc = new DocumentElement(); + $a8_tmp_text = $$a8_name; + if ( !is_array($a8_tmp_text)) + $a8_tmp_text = explode("\n",$a8_tmp_text); + $a8_tmp_doc->parse($a8_tmp_text); + echo $a8_tmp_doc->render('application/html-dom'); break; default: - echo "Unknown editor type: ".$a7_type; + echo "Unknown editor type: ".$a8_type; } -?><?php unset($a7_name,$a7_type) ?></td></tr><?php } ?><?php - $row_idx++; +?><?php unset($a8_name,$a8_type) ?></td></tr><?php } ?><?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 } ?> @@ -706,64 +558,60 @@ function table() 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++; +><?php unset($a6_colspan,$a6_header) ?><?php $a7_title=lang('prop_userinfo'); ?><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 } ?> -><?php $a6_class='text';$a6_text='lastchange';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_header) ?><?php $a7_class='text';$a7_text='lastchange';$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_width='100%';$a6_space='0px';$a6_padding='0px'; ?><?php - $last_row_idx = @$row_idx; +><?php unset($a6_header) ?><?php $a7_width='100%';$a7_space='0px';$a7_padding='0px'; ?><?php $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++; +<?php unset($a7_width,$a7_space,$a7_padding) ?><?php $column_idx = 0; ?> <tr > -<?php $column_idx++; ?><td +<?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 $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 +><?php unset($a9_header) ?><?php $a10_icon='el_date';$a10_align='left'; ?><?php + $a10_tmp_image_file = $image_dir.'icon_'.$a10_icon.IMG_ICON_EXT; + $a10_size = '16x16'; + $a10_tmp_title = basename($a10_tmp_image_file); +?><img alt="<?php echo $a10_tmp_title; if (isset($a10_size)) { echo ' ('; list($a10_tmp_width,$a10_tmp_height)=explode('x',$a10_size);echo $a10_tmp_width.'x'.$a10_tmp_height; echo')';} ?>" src="<?php echo $a10_tmp_image_file ?>" border="0"<?php if(isset($a10_align)) echo ' align="'.$a10_align.'"' ?><?php if (isset($a10_size)) { list($a10_tmp_width,$a10_tmp_height)=explode('x',$a10_size);echo ' width="'.$a10_tmp_width.'" height="'.$a10_tmp_height.'"';} ?> /><?php unset($a10_icon,$a10_align) ?><?php $a10_date=$lastchange_date; ?><?php global $conf; - $time = $a9_date; + $time = $a10_date; if ( isset($_COOKIE['or_timezone_offset']) ) { $time -= (int)date('Z'); @@ -822,22 +670,22 @@ function table() echo $jahre.' '.lang('GLOBAL_YEARS'); echo '</span>'; } -?><?php unset($a9_date) ?></td><?php $column_idx++; ?><td +?><?php unset($a10_date) ?></td><?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 $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; +><?php unset($a9_header) ?><?php $a10_icon='user';$a10_align='left'; ?><?php + $a10_tmp_image_file = $image_dir.'icon_'.$a10_icon.IMG_ICON_EXT; + $a10_size = '16x16'; + $a10_tmp_title = basename($a10_tmp_image_file); +?><img alt="<?php echo $a10_tmp_title; if (isset($a10_size)) { echo ' ('; list($a10_tmp_width,$a10_tmp_height)=explode('x',$a10_size);echo $a10_tmp_width.'x'.$a10_tmp_height; echo')';} ?>" src="<?php echo $a10_tmp_image_file ?>" border="0"<?php if(isset($a10_align)) echo ' align="'.$a10_align.'"' ?><?php if (isset($a10_size)) { list($a10_tmp_width,$a10_tmp_height)=explode('x',$a10_size);echo ' width="'.$a10_tmp_width.'" height="'.$a10_tmp_height.'"';} ?> /><?php unset($a10_icon,$a10_align) ?><?php $a10_user=$lastchange_user; ?><?php + if ( is_object($a10_user) ) + $user = $a10_user; else - $user = $$a9_user; + $user = $$a10_user; if ( empty($user->name) ) $user->name = lang('GLOBAL_UNKNOWN'); if ( empty($user->fullname) ) @@ -846,15 +694,21 @@ function table() 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; +?><?php unset($a10_user) ?></td></tr><?php $column_idx = $last_column_idx; ?> -</table></td></tr> </table> - </td> - </tr> -</table> -</center> +</table></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/> @@ -862,6 +716,4 @@ function table() <?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/profile/confirmmail.tpl.php b/themes/default/pages/html/profile/confirmmail.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_title='GLOBAL_password';$a3_name='login';$a3_icon='user';$a3_widths='50%,50%';$a3_width='93%';$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 unset($a3_name,$a3_target,$a3_method,$a3_enctype,$a3_type) ?><?php $a4_title='GLOBAL_password';$a4_name='login';$a4_icon='user';$a4_widths='50%,50%';$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,127 +84,135 @@ $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_icon,$a3_widths,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $row_idx++; +<div class="content"><div class="filler"> +<?php } ?><?php unset($a4_title,$a4_name,$a4_icon,$a4_widths,$a4_width,$a4_rowclasses,$a4_columnclasses) ?><?php $column_idx = 0; ?> <tr > -<?php $a5_class='logo';$a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a6_class='logo';$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="logo" colspan="2" -><?php unset($a5_class,$a5_colspan) ?><?php $a6_name='changemail'; ?><img src="<?php echo $image_dir.'logo_'.$a6_name.IMG_ICON_EXT ?>" border="0" align="left"><h2 class="logo"><?php echo langHtml('logo_'.$a6_name) ?></h2><p class="logo"><?php echo langHtml('logo_'.$a6_name.'_text') ?></p><?php unset($a6_name) ?></td></tr><?php - $row_idx++; +><?php unset($a6_class,$a6_colspan,$a6_header) ?><?php $a7_name='changemail'; ?><img src="<?php echo $image_dir.'logo_'.$a7_name.IMG_ICON_EXT ?>" border="0" align="left" /><h2 class="logo"><?php echo langHtml('logo_'.$a7_name) ?></h2><p class="logo"><?php echo langHtml('logo_'.$a7_name.'_text') ?></p><?php unset($a7_name) ?></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='mail_code';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_header) ?><?php $a7_class='text';$a7_text='mail_code';$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='code';$a6_size='30';$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='code';$a7_size='30';$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 $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/> @@ -256,12 +220,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='code'; ?><?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='code'; ?><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/profile/edit.tpl.php b/themes/default/pages/html/profile/edit.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 } ?> - <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_views='mail';$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(); @@ -46,160 +30,32 @@ $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='user_profile';$a3_icon='user';$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 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_icon,$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='user_username';$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='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_var='name';$a6_escape=true;$a6_cut='both'; ?><?php +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><?php $a3_title=lang('name'); ?><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='name';$a6_key='user_username'; ?><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,$a6_key) ?></label></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 @@ -208,36 +64,8 @@ $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='user_mail';$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='filename';$a6_var='mail';$a6_escape=true;$a6_cut='both'; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?></div></div></fieldset><?php $a3_title=lang('MENU_PROFILE_MAIL'); ?><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='mail';$a6_key='user_mail'; ?><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,$a6_key) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='filename';$a6_var='mail';$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 @@ -246,161 +74,72 @@ $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 $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) ?><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 } ?></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='name';$a6_text='user_fullname';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?><br/><?php $a6_title='';$a6_type='view';$a6_class='action';$a6_action='profile';$a6_subaction='mail';$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='edit';$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_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_class='text';$a6_default='';$a6_type='text';$a6_name='fullname';$a6_size='40';$a6_maxlength='128';$a6_onchange='';$a6_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?></a></div></div></fieldset><?php $a3_title=lang('GLOBAL_PROP'); ?><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='fullname';$a6_key='user_fullname'; ?><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,$a6_key) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='text';$a6_default='';$a6_type='text';$a6_name='fullname';$a6_size='';$a6_maxlength='128';$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='user_tel';$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_default='';$a6_type='text';$a6_name='tel';$a6_size='40';$a6_maxlength='128';$a6_onchange='';$a6_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; + } } 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='tel';$a6_key='user_tel'; ?><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,$a6_key) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='text';$a6_default='';$a6_type='text';$a6_name='tel';$a6_size='40';$a6_maxlength='128';$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='user_desc';$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_default='';$a6_type='text';$a6_name='desc';$a6_size='40';$a6_maxlength='128';$a6_onchange='';$a6_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; + } } 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='desc';$a6_key='user_desc'; ?><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,$a6_key) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='text';$a6_default='';$a6_type='text';$a6_name='desc';$a6_size='40';$a6_maxlength='128';$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='user_style';$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_list='allstyles';$a6_name='style';$a6_default=@$conf['interface']['style']['default'];$a6_onchange='';$a6_title='';$a6_class='';$a6_addempty=false;$a6_multiple=false;$a6_size='1';$a6_lang=false; ?><?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='style';$a6_key='user_style'; ?><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,$a6_key) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_list='allstyles';$a6_name='style';$a6_default=@$conf['interface']['style']['default'];$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; if ($this->isEditable() && !$this->isEditMode()) @@ -454,46 +193,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_default,$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='fullname'; ?><?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_default,$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/profile/groups.tpl.php b/themes/default/pages/html/profile/groups.tpl.php @@ -1,95 +1,41 @@ -<?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='user_groups';$a2_icon='user';$a2_width='93%';$a2_rowclasses='odd,even';$a2_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$a2_icon; - $row_classes = explode(',',$a2_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a2_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="'.$a2_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 $a2_name='user_groups';$a2_icon='user';$a2_width='93%';$a2_rowclasses='odd,even';$a2_columnclasses='1,2,3'; ?><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']); @@ -97,134 +43,121 @@ $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($a2_name,$a2_icon,$a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php $a3_empty='groups'; ?><?php - if ( !isset($$a3_empty) ) - $a3_tmp_exec = empty($a3_empty); - elseif ( is_array($$a3_empty) ) - $a3_tmp_exec = (count($$a3_empty)==0); - elseif ( is_bool($$a3_empty) ) - $a3_tmp_exec = true; - else - $a3_tmp_exec = empty( $$a3_empty ); - $a3_tmp_last_exec = $a3_tmp_exec; - if ( $a3_tmp_exec ) - { -?> -<?php unset($a3_empty) ?><?php - $row_idx++; +<div class="content"><div class="filler"><?php unset($a2_name,$a2_icon,$a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php $column_idx = 0; ?> <tr > -<?php $a5_class='help'; ?><?php $column_idx++; ?><td +<?php $a4_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> - class="help" -><?php unset($a5_class) ?><br/><?php $a6_align='left';$a6_notice='warning'; ?><?php - $a6_tmp_image_file = $image_dir.'notice_'.$a6_notice.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_align,$a6_notice) ?><?php $a6_class='text';$a6_key='NOT_FOUND';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> +><?php unset($a4_header) ?><?php $a5_title=lang('groups'); ?><fieldset><?php if(isset($a5_title)) { ?><legend><?php if(isset($a5_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a5_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a5_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a5_title) ?><?php $a6_empty='groups'; ?><?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) ?><br/><?php $a7_align='left';$a7_notice='warning'; ?><?php + $a7_tmp_image_file = $image_dir.'notice_'.$a7_notice.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_align,$a7_notice) ?><?php $a7_class='text';$a7_key='NOT_FOUND';$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_key); +?><<?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($a6_class,$a6_key,$a6_escape,$a6_cut) ?><br/><br/></td></tr><?php } ?><?php $a3_list='groups';$a3_extract=false;$a3_key='list_key';$a3_value='group'; ?><?php - $a3_list_tmp_key = $a3_key; - $a3_list_tmp_value = $a3_value; - $a3_list_extract = $a3_extract; - unset($a3_key); - unset($a3_value); - if ( !isset($$a3_list) || !is_array($$a3_list) ) - $$a3_list = array(); - foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?><br/><br/><?php } ?><?php $a6_list='groups';$a6_extract=false;$a6_key='list_key';$a6_value='group'; ?><?php + $a6_list_tmp_key = $a6_key; + $a6_list_tmp_value = $a6_value; + $a6_list_extract = $a6_extract; + unset($a6_key); + unset($a6_value); + if ( !isset($$a6_list) || !is_array($$a6_list) ) + $$a6_list = array(); + foreach( $$a6_list as $$a6_list_tmp_key => $$a6_list_tmp_value ) { - if ( $a3_list_extract ) + if ( $a6_list_extract ) { - if ( !is_array($$a3_list_tmp_value) ) + if ( !is_array($$a6_list_tmp_value) ) { - print_r($$a3_list_tmp_value); - die( 'not an array at key: '.$$a3_list_tmp_key ); + print_r($$a6_list_tmp_value); + die( 'not an array at key: '.$$a6_list_tmp_key ); } - extract($$a3_list_tmp_value); + extract($$a6_list_tmp_value); } -?><?php unset($a3_list,$a3_extract,$a3_key,$a3_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 $a6_class='text';$a6_var='group';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?><?php unset($a6_list,$a6_extract,$a6_key,$a6_value) ?><?php $a7_class='text';$a7_var='group';$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 } ?> </table> - </td> - </tr> -</table> -</center> +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_escape,$a7_cut) ?><br/><?php } ?></fieldset></td></tr></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/> @@ -232,5 +165,3 @@ <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -</body> -</html>- \ No newline at end of file diff --git a/themes/default/pages/html/profile/mail.tpl.php b/themes/default/pages/html/profile/mail.tpl.php @@ -1,125 +1,98 @@ -<?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 $a3_name='';$a3_back=true; ?><div class="header"> + <?php if ($a3_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($a3_views)) { ?> + <img src="<?php echo $image_dir ?>icon/window/down.gif" /> + <div class="headermenu"> + <?php foreach( explode(',',$a3_views) as $a3_tmp_view ) { ?> + <a class="entry" href="javascript:void(0);" onclick="javascript:startView(this,'<?php echo $a3_tmp_view ?>');"> + <img src="<?php echo $image_dir ?>icon/<?php echo $a3_tmp_view ?>.png" /><?php echo lang('MENU_'.$a3_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 - $a2_action = $actionName; - $a2_subaction = $targetSubActionName; - $a2_id = $this->getRequestId(); +</div><?php unset($a3_name,$a3_back) ?><?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='user_profile';$a3_icon='user';$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='user_profile';$a4_icon='user';$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,70 +100,62 @@ $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 $a5_class='logo';$a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a6_class='logo';$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="logo" colspan="2" -><?php unset($a5_class,$a5_colspan) ?><?php $a6_name='changemail'; ?><img src="<?php echo $image_dir.'logo_'.$a6_name.IMG_ICON_EXT ?>" border="0" align="left"><h2 class="logo"><?php echo langHtml('logo_'.$a6_name) ?></h2><p class="logo"><?php echo langHtml('logo_'.$a6_name.'_text') ?></p><?php unset($a6_name) ?></td></tr><?php - $row_idx++; +><?php unset($a6_class,$a6_colspan,$a6_header) ?><?php $a7_name='changemail'; ?><img src="<?php echo $image_dir.'logo_'.$a7_name.IMG_ICON_EXT ?>" border="0" align="left" /><h2 class="logo"><?php echo langHtml('logo_'.$a7_name) ?></h2><p class="logo"><?php echo langHtml('logo_'.$a7_name.'_text') ?></p><?php unset($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 } ?> @@ -198,70 +163,67 @@ class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a5_colspan) ?><?php $a6_title=lang('user_mail'); ?><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='user_new_mail';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_colspan,$a6_header) ?><?php $a7_title=lang('user_mail'); ?><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) ?><?php $a8_for='mail'; ?><label<?php if (isset($a8_for)) { ?> for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>" class="label"<?php } ?>> +<?php if (isset($a8_key)) { echo lang($a8_key); if(hasLang($a8_key.'_desc')) { ?><div class="description"><?php echo lang($a8_key.'_desc')?></div> <?php } } ?><?php unset($a8_for) ?><?php $a9_class='text';$a9_text='user_new_mail';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_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 $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($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_default='';$a6_type='text';$a6_name='mail';$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 echo $tmp_tag ?>><?php unset($a9_class,$a9_text,$a9_escape,$a9_cut) ?></label><?php $a8_class='text';$a8_default='';$a8_type='text';$a8_name='mail';$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) ?></fieldset></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/> @@ -269,12 +231,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='mail'; ?><?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='mail'; ?><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/profile/memberships.tpl.php b/themes/default/pages/html/profile/memberships.tpl.php @@ -0,0 +1,109 @@ +<?php $a2_width='100%';$a2_space='0px';$a2_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($a2_width,$a2_space,$a2_padding) ?><?php $a3_class='headline'; ?><?php + $column_idx = 0; +?> +<tr + class="headline" +> +<?php unset($a3_class) ?><?php $a4_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($a4_header) ?><?php $a5_class='text';$a5_key='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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></td></tr><?php $a3_empty='groups'; ?><?php + if ( !isset($$a3_empty) ) + $a3_tmp_exec = empty($a3_empty); + elseif ( is_array($$a3_empty) ) + $a3_tmp_exec = (count($$a3_empty)==0); + elseif ( is_bool($$a3_empty) ) + $a3_tmp_exec = true; + else + $a3_tmp_exec = empty( $$a3_empty ); + $a3_tmp_last_exec = $a3_tmp_exec; + if ( $a3_tmp_exec ) + { +?> +<?php unset($a3_empty) ?><?php $a4_class='data'; ?><?php + $column_idx = 0; +?> +<tr + class="data" +> +<?php unset($a4_class) ?><?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 unset($a5_header) ?><?php $a6_class='text';$a6_key='NOT_FOUND';$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) ?></td></tr><?php } ?><?php $a3_list='groups';$a3_extract=false;$a3_key='list_key';$a3_value='group'; ?><?php + $a3_list_tmp_key = $a3_key; + $a3_list_tmp_value = $a3_value; + $a3_list_extract = $a3_extract; + unset($a3_key); + unset($a3_value); + if ( !isset($$a3_list) || !is_array($$a3_list) ) + $$a3_list = array(); + foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) + { + if ( $a3_list_extract ) + { + if ( !is_array($$a3_list_tmp_value) ) + { + print_r($$a3_list_tmp_value); + die( 'not an array at key: '.$$a3_list_tmp_key ); + } + extract($$a3_list_tmp_value); + } +?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php $a4_class='data'; ?><?php + $column_idx = 0; +?> +<tr + class="data" +> +<?php unset($a4_class) ?><?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 unset($a5_header) ?><?php $a6_class='text';$a6_var='group';$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 } ?><?php + $column_idx = $last_column_idx; +?> +</table>+ \ No newline at end of file diff --git a/themes/default/pages/html/profile/pw.tpl.php b/themes/default/pages/html/profile/pw.tpl.php @@ -0,0 +1,71 @@ +<?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_name='changepassword'; ?><img src="<?php echo $image_dir.'logo_'.$a3_name.IMG_ICON_EXT ?>" border="0" align="left" /><h2 class="logo"><?php echo langHtml('logo_'.$a3_name) ?></h2><p class="logo"><?php echo langHtml('logo_'.$a3_name.'_text') ?></p><?php unset($a3_name) ?><?php $a3_title=lang('user_act_password'); ?><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='act_password'; ?><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='user_password';$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_name='act_password';$a6_default='';$a6_class='focus';$a6_size='40';$a6_maxlength='256'; ?><input type="password" name="<?php echo $a6_name ?>" id="id_<?php echo $a6_name ?>" size="<?php echo $a6_size ?>" maxlength="<?php echo $a6_maxlength ?>" class="<?php echo $a6_class ?>" value="<?php if (count($errors)==0) echo isset($$a6_name)?$$a6_name:$a6_default ?>" <?php if (in_array($a6_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php unset($a6_name,$a6_default,$a6_class,$a6_size,$a6_maxlength) ?></div></div></fieldset><?php $a3_title=lang('user_new_password'); ?><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='password1'; ?><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='user_new_password';$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_name='password1';$a6_default='';$a6_class='';$a6_size='40';$a6_maxlength='256'; ?><input type="password" name="<?php echo $a6_name ?>" id="id_<?php echo $a6_name ?>" size="<?php echo $a6_size ?>" maxlength="<?php echo $a6_maxlength ?>" class="<?php echo $a6_class ?>" value="<?php if (count($errors)==0) echo isset($$a6_name)?$$a6_name:$a6_default ?>" <?php if (in_array($a6_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php unset($a6_name,$a6_default,$a6_class,$a6_size,$a6_maxlength) ?></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='password2'; ?><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='user_new_password_repeat';$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_name='password2';$a6_default='';$a6_class='';$a6_size='40';$a6_maxlength='256'; ?><input type="password" name="<?php echo $a6_name ?>" id="id_<?php echo $a6_name ?>" size="<?php echo $a6_size ?>" maxlength="<?php echo $a6_maxlength ?>" class="<?php echo $a6_class ?>" value="<?php if (count($errors)==0) echo isset($$a6_name)?$$a6_name:$a6_default ?>" <?php if (in_array($a6_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php unset($a6_name,$a6_default,$a6_class,$a6_size,$a6_maxlength) ?></div></div></fieldset></form> diff --git a/themes/default/pages/html/profile/pwchange.tpl.php b/themes/default/pages/html/profile/pwchange.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 $a1_class='main'; ?><?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(); @@ -50,7 +18,8 @@ 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 ?>"> <?php if ($this->isEditable() && !$this->isEditMode()) { ?> <input type="hidden" name="mode" value="edit" /> <?php } ?> @@ -60,66 +29,43 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a2_id ?>" /><?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='user_profile';$a3_icon='user';$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($a2_name,$a2_target,$a2_method,$a2_enctype) ?><?php $a3_name='user_profile';$a3_icon='user';$a3_width='93%';$a3_rowclasses='odd,even';$a3_columnclasses='1,2,3'; ?><div class="breadcrumb"> + <?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 href="<?php echo $url ?>" 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;"> + </div> + <?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(); +<div class="menu"> +<?php + if ( !isset($windowMenu) || !is_array($windowMenu) ) $windowMenu = array(); foreach( $windowMenu as $menu ) { $tmp_text = langHtml($menu['text']); @@ -129,68 +75,56 @@ $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 + ?><a class="action<?php echo $this->subActionName==$menu['subaction']?'_active':'' ?>" href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>"><img src="<?php echo $image_dir.'icon/'.$menu['subaction'].'.png' ?>" /><?php echo $tmp_text ?></a><?php } else { - ?><td class="noaction"><?php echo $tmp_text ?></td><?php + ?><div class="noaction"><img src="<?php echo $image_dir.'icon/'.$menu['subaction'].'.png' ?>" /><?php echo $tmp_text ?></div><?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 + ?><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 ) + ?><br/><?php + ?> +</div> +<?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++; $column_idx = 0; ?> <tr > -<?php $a5_class='logo';$a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a5_class='logo';$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="logo" colspan="2" -><?php unset($a5_class,$a5_colspan) ?><?php $a6_name='changepassword'; ?><img src="<?php echo $image_dir.'logo_'.$a6_name.IMG_ICON_EXT ?>" border="0" align="left"><h2 class="logo"><?php echo langHtml('logo_'.$a6_name) ?></h2><p class="logo"><?php echo langHtml('logo_'.$a6_name.'_text') ?></p><?php unset($a6_name) ?></td></tr><?php +><?php unset($a5_class,$a5_colspan,$a5_header) ?><?php $a6_name='changepassword'; ?><img src="<?php echo $image_dir.'logo_'.$a6_name.IMG_ICON_EXT ?>" border="0" align="left"><h2 class="logo"><?php echo langHtml('logo_'.$a6_name) ?></h2><p class="logo"><?php echo langHtml('logo_'.$a6_name.'_text') ?></p><?php unset($a6_name) ?></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 } ?> @@ -198,135 +132,64 @@ class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a5_colspan) ?><?php $a6_title=lang('user_act_password'); ?><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='user_password';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a5_colspan,$a5_header) ?><?php $a6_title=lang('user_act_password'); ?><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 } ?>&nbsp;&nbsp;<?php echo encodeHtml($a6_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a6_title) ?><?php $a7_for='act_password'; ?><label for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>"><?php unset($a7_for) ?><?php $a8_class='text';$a8_text='user_password';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_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 $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($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='act_password';$a6_default='';$a6_class='';$a6_size='40';$a6_maxlength='256'; ?><input type="password" name="<?php echo $a6_name ?>" size="<?php echo $a6_size ?>" maxlength="<?php echo $a6_maxlength ?>" class="<?php echo $a6_class ?>" value="<?php if (count($errors)==0) echo isset($$a6_name)?$$a6_name:$a6_default ?>" <?php if (in_array($a6_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php unset($a6_name,$a6_default,$a6_class,$a6_size,$a6_maxlength) ?></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('user_new_password'); ?><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='user_new_password';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></label><?php $a7_name='act_password';$a7_default='';$a7_class='';$a7_size='40';$a7_maxlength='256'; ?><input type="password" name="<?php echo $a7_name ?>" id="id_<?php echo $a7_name ?>" size="<?php echo $a7_size ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo $a7_class ?>" value="<?php if (count($errors)==0) echo isset($$a7_name)?$$a7_name:$a7_default ?>" <?php if (in_array($a7_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php unset($a7_name,$a7_default,$a7_class,$a7_size,$a7_maxlength) ?></fieldset><?php $a6_title=lang('user_new_password'); ?><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 } ?>&nbsp;&nbsp;<?php echo encodeHtml($a6_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a6_title) ?><?php $a7_for='password1'; ?><label for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>"><?php unset($a7_for) ?><?php $a8_class='text';$a8_text='user_new_password';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_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 $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($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='password1';$a6_default='';$a6_class='';$a6_size='40';$a6_maxlength='256'; ?><input type="password" name="<?php echo $a6_name ?>" size="<?php echo $a6_size ?>" maxlength="<?php echo $a6_maxlength ?>" class="<?php echo $a6_class ?>" value="<?php if (count($errors)==0) echo isset($$a6_name)?$$a6_name:$a6_default ?>" <?php if (in_array($a6_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php unset($a6_name,$a6_default,$a6_class,$a6_size,$a6_maxlength) ?></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='user_new_password_repeat';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></label><?php $a7_name='password1';$a7_default='';$a7_class='';$a7_size='40';$a7_maxlength='256'; ?><input type="password" name="<?php echo $a7_name ?>" id="id_<?php echo $a7_name ?>" size="<?php echo $a7_size ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo $a7_class ?>" value="<?php if (count($errors)==0) echo isset($$a7_name)?$$a7_name:$a7_default ?>" <?php if (in_array($a7_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php unset($a7_name,$a7_default,$a7_class,$a7_size,$a7_maxlength) ?><br/><?php $a7_for='password2'; ?><label for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>"><?php unset($a7_for) ?><?php $a8_class='text';$a8_text='user_new_password_repeat';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_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 $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($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='password2';$a6_default='';$a6_class='';$a6_size='40';$a6_maxlength='256'; ?><input type="password" name="<?php echo $a6_name ?>" size="<?php echo $a6_size ?>" maxlength="<?php echo $a6_maxlength ?>" class="<?php echo $a6_class ?>" value="<?php if (count($errors)==0) echo isset($$a6_name)?$$a6_name:$a6_default ?>" <?php if (in_array($a6_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php unset($a6_name,$a6_default,$a6_class,$a6_size,$a6_maxlength) ?></td></tr><?php +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_text,$a8_escape,$a8_cut) ?></label><?php $a7_name='password2';$a7_default='';$a7_class='';$a7_size='40';$a7_maxlength='256'; ?><input type="password" name="<?php echo $a7_name ?>" id="id_<?php echo $a7_name ?>" size="<?php echo $a7_size ?>" maxlength="<?php echo $a7_maxlength ?>" class="<?php echo $a7_class ?>" value="<?php if (count($errors)==0) echo isset($$a7_name)?$$a7_name:$a7_default ?>" <?php if (in_array($a7_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php unset($a7_name,$a7_default,$a7_class,$a7_size,$a7_maxlength) ?></fieldset></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'; ?><?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> -<?php if ($showDuration) + ?><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 + } +?><?php unset($a6_type,$a6_class,$a6_value,$a6_text) ?></td></tr><?php if ($showDuration) { ?> <br/> <center><small>&nbsp; @@ -340,5 +203,4 @@ if (isset($errors[0])) $a2_field = $errors[0]; 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($a2_field) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/profile/settings.tpl.php b/themes/default/pages/html/profile/settings.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,212 +14,92 @@ $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; +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><?php $a3_width='100%';$a3_space='0px';$a3_padding='0px'; ?><?php + $last_column_idx = @$column_idx; $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_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $row_idx++; + $coloumn_widths = array(); + $row_classes = array(); + $column_classes = array(); +?><table class="%class%" cellspacing="0px" width="100%" cellpadding="0px"> +<?php unset($a3_width,$a3_space,$a3_padding) ?><?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 } ?> -><br/><?php $a6_title=lang('settings'); ?><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) ?><?php $a7_default=false;$a7_readonly=false;$a7_name='always_edit'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; - if ( isset($$a7_name) ) - $checked = $$a7_name; +><?php unset($a5_header) ?><?php $a6_title=lang('settings'); ?><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) ?><div><?php $a8_default=false;$a8_readonly=false;$a8_name='always_edit'; ?><?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) ?><?php $a7_for='always_edit'; ?><label for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>"><?php unset($a7_for) ?><?php $a8_class='text';$a8_key='setting_always_edit';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?><?php $a8_for='always_edit'; ?><label<?php if (isset($a8_for)) { ?> for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>" class="label"<?php } ?>> +<?php if (isset($a8_key)) { echo lang($a8_key); if(hasLang($a8_key.'_desc')) { ?><div class="description"><?php echo lang($a8_key.'_desc')?></div> <?php } } ?><?php unset($a8_for) ?><?php $a9_class='text';$a9_key='setting_always_edit';$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_key); +?><<?php echo $tmp_tag ?> class="<?php echo $a9_class ?>" title="<?php echo $a9_title ?>"><?php + $langF = $a9_escape?'langHtml':'lang'; + $tmp_text = $langF($a9_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label></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_default=false;$a6_readonly=false;$a6_name='ignore_ok_notices'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; - if ( isset($$a6_name) ) - $checked = $$a6_name; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_key,$a9_escape,$a9_cut) ?></label></div><div><?php $a8_default=false;$a8_readonly=false;$a8_name='ignore_ok_notices'; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; + if ( isset($$a8_name) ) + $checked = $$a8_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 = $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 $a6_name ?>" value="1" /><?php +?><input type="hidden" name="<?php echo $a8_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='ignore_ok_notices'; ?><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='setting_ignore_ok_notices';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?><?php $a8_for='ignore_ok_notices'; ?><label<?php if (isset($a8_for)) { ?> for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>" class="label"<?php } ?>> +<?php if (isset($a8_key)) { echo lang($a8_key); if(hasLang($a8_key.'_desc')) { ?><div class="description"><?php echo lang($a8_key.'_desc')?></div> <?php } } ?><?php unset($a8_for) ?><?php $a9_class='text';$a9_key='setting_ignore_ok_notices';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_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 $a9_class ?>" title="<?php echo $a9_title ?>"><?php + $langF = $a9_escape?'langHtml':'lang'; + $tmp_text = $langF($a9_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++; - $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/><?php $a6_title=lang('timezone'); ?><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) ?><?php $a7_list='timezone_list';$a7_name='timezone_offset';$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=true;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_key,$a9_escape,$a9_cut) ?></label></div></fieldset><?php $a6_title=lang('timezone'); ?><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) ?><?php $a7_list='timezone_list';$a7_name='timezone_offset';$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()) @@ -305,20 +153,7 @@ echo ' size="'.intval($a7_size).'"'; 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) ?></fieldset><br/></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 } ?> -><br/><?php $a6_title=lang('language'); ?><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) ?><?php $a7_list='language_list';$a7_name='language';$a7_onchange='';$a7_title='';$a7_class='';$a7_addempty=true;$a7_multiple=false;$a7_size='1';$a7_lang=false; ?><?php +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?></fieldset><?php $a6_title=lang('language'); ?><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) ?><?php $a7_list='language_list';$a7_name='language';$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()) @@ -372,40 +207,38 @@ echo ' size="'.intval($a7_size).'"'; 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) ?></fieldset><br/></td></tr><?php - $row_idx++; +?><?php unset($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?></fieldset></td></tr><?php $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> -<?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 + ?><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 + $column_idx = $last_column_idx; +?> +</table></form> diff --git a/themes/default/pages/html/project/add.tpl.php b/themes/default/pages/html/project/add.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_PROJECTS';$a3_icon='project';$a3_widths='20px,20%,80%';$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 unset($a3_name,$a3_target,$a3_method,$a3_enctype,$a3_type) ?><?php $a4_name='GLOBAL_PROJECTS';$a4_icon='project';$a4_widths='20px,20%,80%';$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 ?>'); 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,58 +84,51 @@ $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_widths,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $row_idx++; +<div class="content"><div class="filler"> +<?php } ?><?php unset($a4_name,$a4_icon,$a4_widths,$a4_width,$a4_rowclasses,$a4_columnclasses) ?><?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 } ?> @@ -187,37 +136,36 @@ class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a5_colspan) ?><?php $a6_class='text';$a6_text=lang('name');$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_colspan,$a6_header) ?><?php $a7_class='text';$a7_text=lang('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 $a5_colspan='3'; ?><?php $column_idx++; ?><td +<?php $a6_colspan='3';$a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -225,118 +173,73 @@ if ($a6_readonly) { class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="3" -><?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++; - $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_readonly=false;$a6_name='type';$a6_value='empty';$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 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) ?><div><?php $a9_readonly=false;$a9_name='type';$a9_value='empty';$a9_default=false;$a9_prefix='';$a9_suffix='';$a9_class='';$a9_onchange=''; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a9_readonly=true; + if ( isset($$a9_name) ) + $a9_tmp_default = $$a9_name; + elseif ( isset($a9_default) ) + $a9_tmp_default = $a9_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) ?></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_for='type_empty'; ?><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='empty';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; + $a9_tmp_default = ''; + ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a9_name.'_'.$a9_value ?>" name="<?php echo $a9_prefix.$a9_name ?>"<?php if ( $a9_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a9_value ?>" <?php if($a9_value==$a9_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a9_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> +<?php /* #END-IF# */ ?><?php unset($a9_readonly,$a9_name,$a9_value,$a9_default,$a9_prefix,$a9_suffix,$a9_class,$a9_onchange) ?><?php $a9_for='type_empty'; ?><label<?php if (isset($a9_for)) { ?> for="id_<?php echo $a9_for ?><?php if (!empty($a9_value)) echo '_'.$a9_value ?>" class="label"<?php } ?>> +<?php if (isset($a9_key)) { echo lang($a9_key); if(hasLang($a9_key.'_desc')) { ?><div class="description"><?php echo lang($a9_key.'_desc')?></div> <?php } } ?><?php unset($a9_for) ?><?php $a10_class='text';$a10_key='empty';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $langF($a10_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++; - $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_readonly=false;$a6_name='type';$a6_value='copy';$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($a10_class,$a10_key,$a10_escape,$a10_cut) ?></label></div><div><?php $a9_readonly=false;$a9_name='type';$a9_value='copy';$a9_default=false;$a9_prefix='';$a9_suffix='';$a9_class='';$a9_onchange=''; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a9_readonly=true; + if ( isset($$a9_name) ) + $a9_tmp_default = $$a9_name; + elseif ( isset($a9_default) ) + $a9_tmp_default = $a9_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) ?></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_for='type_copy'; ?><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='copy';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; + $a9_tmp_default = ''; + ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a9_name.'_'.$a9_value ?>" name="<?php echo $a9_prefix.$a9_name ?>"<?php if ( $a9_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a9_value ?>" <?php if($a9_value==$a9_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a9_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> +<?php /* #END-IF# */ ?><?php unset($a9_readonly,$a9_name,$a9_value,$a9_default,$a9_prefix,$a9_suffix,$a9_class,$a9_onchange) ?><?php $a9_for='type_copy'; ?><label<?php if (isset($a9_for)) { ?> for="id_<?php echo $a9_for ?><?php if (!empty($a9_value)) echo '_'.$a9_value ?>" class="label"<?php } ?>> +<?php if (isset($a9_key)) { echo lang($a9_key); if(hasLang($a9_key.'_desc')) { ?><div class="description"><?php echo lang($a9_key.'_desc')?></div> <?php } } ?><?php unset($a9_for) ?><?php $a10_class='text';$a10_key='copy';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $langF($a10_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><?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='projects';$a6_name='projectid';$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; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_key,$a10_escape,$a10_cut) ?></label><?php $a9_list='projects';$a9_name='projectid';$a9_onchange='';$a9_title='';$a9_class='';$a9_addempty=false;$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($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; + echo empty($$a9_name)?'- '.lang('EMPTY').' -':$a9_tmp_list[$$a9_name]; } else { -if ( $a6_addempty!==FALSE ) +if ( $a9_addempty!==FALSE ) { - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; + if ($a9_addempty===TRUE) + $a9_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a9_tmp_list; else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_tmp_list; + $a9_tmp_list = array(''=>'- '.lang($a9_addempty).' -')+$a9_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 ($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($$a6_name) && isset($a6_tmp_list[$$a6_name]) ) - $a6_tmp_default = $$a6_name; - elseif ( isset($a6_default) ) - $a6_tmp_default = $a6_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 - $a6_tmp_default = ''; - foreach( $a6_tmp_list as $box_key=>$box_value ) + $a9_tmp_default = ''; + foreach( $a9_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -344,7 +247,7 @@ echo ' size="'.intval($a6_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a6_lang ) + elseif( $a9_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -353,42 +256,58 @@ 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="'.$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($$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($$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($a6_list,$a6_name,$a6_onchange,$a6_title,$a6_class,$a6_addempty,$a6_multiple,$a6_size,$a6_lang) ?></td></tr><?php - $row_idx++; +?><?php unset($a9_list,$a9_name,$a9_onchange,$a9_title,$a9_class,$a9_addempty,$a9_multiple,$a9_size,$a9_lang) ?></div></fieldset></td></tr><?php $column_idx = 0; ?> <tr > -<?php $a5_class='act';$a5_colspan='3'; ?><?php $column_idx++; ?><td +<?php $a6_class='act';$a6_colspan='3';$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="3" -><?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/> @@ -396,12 +315,7 @@ 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> -<?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/project/edit.tpl.php b/themes/default/pages/html/project/edit.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 } ?> - <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_views='remove,export,maintenance';$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(); @@ -46,343 +30,67 @@ $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_PROJECT';$a3_icon='project';$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 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_icon,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?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('NAME'); ?><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='PROJECT_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) ?></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='name';$a6_default='';$a6_type='text';$a6_name='name';$a6_size='30';$a6_maxlength='256';$a6_onchange='';$a6_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><?php $a3_title=lang('NAME'); ?><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='name';$a6_key='PROJECT_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,$a6_key) ?></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='';$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 $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('PUBLISH'); ?><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='PROJECT_TARGET_DIR';$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='filename';$a6_default='';$a6_type='text';$a6_name='target_dir';$a6_size='50';$a6_maxlength='256';$a6_onchange='';$a6_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; + } } 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></fieldset><?php $a3_title=lang('PUBLISH'); ?><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='target_dir';$a6_key='PROJECT_TARGET_DIR'; ?><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,$a6_key) ?></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='target_dir';$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='PROJECT_CMD_AFTER_PUBLISH';$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='filename';$a6_default='';$a6_type='text';$a6_name='cmd_after_publish';$a6_size='50';$a6_maxlength='256';$a6_onchange='';$a6_readonly=! @$conf['publish']['project']['override_system_command']; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; + } } 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='cmd_after_publish';$a6_key='PROJECT_CMD_AFTER_PUBLISH'; ?><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,$a6_key) ?></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='cmd_after_publish';$a6_size='';$a6_maxlength='256';$a6_onchange='';$a6_readonly=! @$conf['publish']['project']['override_system_command']; ?><?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 $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('project_FTP'); ?><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='PROJECT_FTP_URL';$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='filename';$a6_default='';$a6_type='text';$a6_name='ftp_url';$a6_size='50';$a6_maxlength='256';$a6_onchange='';$a6_readonly=! @$conf['publish']['ftp']['enable']; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; + } } 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></fieldset><?php $a3_title=lang('project_FTP'); ?><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='ftp_url';$a6_key='PROJECT_FTP_URL'; ?><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,$a6_key) ?></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='ftp_url';$a6_size='';$a6_maxlength='256';$a6_onchange='';$a6_readonly=! @$conf['publish']['ftp']['enable']; ?><?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 } ?> -></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_default=false;$a6_readonly=! @$conf['publish']['ftp']['enable'];$a6_name='ftp_passive'; ?><?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) ?><br/><?php $a6_default=false;$a6_readonly=! @$conf['publish']['ftp']['enable'];$a6_name='ftp_passive'; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; if ( isset($$a6_name) ) $checked = $$a6_name; @@ -393,44 +101,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='ftp_passive'; ?><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='PROJECT_FTP_PASSIVE';$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></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('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++; - $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_default=false;$a6_readonly=false;$a6_name='content_negotiation'; ?><?php +?><?php unset($a6_name); unset($a6_readonly); unset($a6_default); ?><?php unset($a6_default,$a6_readonly,$a6_name) ?><?php $a6_for='ftp_passive';$a6_key='PROJECT_FTP_PASSIVE'; ?><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,$a6_key) ?></label></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='content_negotiation'; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; if ( isset($$a6_name) ) $checked = $$a6_name; @@ -441,30 +113,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='content_negotiation'; ?><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='PROJECT_CONTENT_NEGOTIATION';$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></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_default=false;$a6_readonly=false;$a6_name='cut_index'; ?><?php +?><?php unset($a6_name); unset($a6_readonly); unset($a6_default); ?><?php unset($a6_default,$a6_readonly,$a6_name) ?><?php $a6_for='content_negotiation';$a6_key='PROJECT_CONTENT_NEGOTIATION'; ?><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,$a6_key) ?></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_default=false;$a6_readonly=false;$a6_name='cut_index'; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; if ( isset($$a6_name) ) $checked = $$a6_name; @@ -475,49 +125,5 @@ 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='cut_index'; ?><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='PROJECT_CUT_INDEX';$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></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> -</body> -</html>- \ No newline at end of file +?><?php unset($a6_name); unset($a6_readonly); unset($a6_default); ?><?php unset($a6_default,$a6_readonly,$a6_name) ?><?php $a6_for='cut_index';$a6_key='PROJECT_CUT_INDEX'; ?><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,$a6_key) ?></label></div></div></fieldset></form> diff --git a/themes/default/pages/html/project/export.tpl.php b/themes/default/pages/html/project/export.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,187 +30,83 @@ $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_PROJECT';$a3_icon='project';$a3_widths='30%,70%';$a3_width='93%';$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_name,$a3_icon,$a3_widths,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $row_idx++; +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><?php $column_idx = 0; ?> <tr > -<?php $a5_width='50%'; ?><?php $column_idx++; ?><td +<?php $a4_width='50%';$a4_header=false; ?><?php $column_idx++; ?><td width="50%" <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php unset($a5_width) ?><?php $a6_class='text';$a6_key='GLOBAL_DATABASE';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a4_width,$a4_header) ?><?php $a5_class='text';$a5_key='GLOBAL_DATABASE';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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); +?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php + $langF = $a5_escape?'langHtml':'lang'; + $tmp_text = $langF($a5_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) ?></td><?php $a5_width='50%'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></td><?php $a4_width='50%';$a4_header=false; ?><?php $column_idx++; ?><td width="50%" <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> -><?php unset($a5_width) ?><?php $a6_list='dbids';$a6_name='dbid';$a6_default='actdbid';$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; +><?php unset($a4_width,$a4_header) ?><?php $a5_list='dbids';$a5_name='dbid';$a5_default='actdbid';$a5_onchange='';$a5_title='';$a5_class='';$a5_addempty=false;$a5_multiple=false;$a5_size='1';$a5_lang=false; ?><?php +$a5_readonly=false; +$a5_tmp_list = $$a5_list; if ($this->isEditable() && !$this->isEditMode()) { - echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; + echo empty($$a5_name)?'- '.lang('EMPTY').' -':$a5_tmp_list[$$a5_name]; } else { -if ( $a6_addempty!==FALSE ) +if ( $a5_addempty!==FALSE ) { - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; + if ($a5_addempty===TRUE) + $a5_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a5_tmp_list; else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_tmp_list; + $a5_tmp_list = array(''=>'- '.lang($a5_addempty).' -')+$a5_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 ($a5_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a5_name ?>" name="<?php echo $a5_name; if ($a5_multiple) echo '[]'; ?>" onchange="<?php echo $a5_onchange ?>" title="<?php echo $a5_title ?>" class="<?php echo $a5_class ?>"<?php +if (count($$a5_list)<=1) echo ' disabled="disabled"'; +if ($a5_multiple) echo ' multiple="multiple"'; +if (in_array($a5_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($a5_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($$a5_name) && isset($a5_tmp_list[$$a5_name]) ) + $a5_tmp_default = $$a5_name; + elseif ( isset($a5_default) ) + $a5_tmp_default = $a5_default; else - $a6_tmp_default = ''; - foreach( $a6_tmp_list as $box_key=>$box_value ) + $a5_tmp_default = ''; + foreach( $a5_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -234,7 +114,7 @@ echo ' size="'.intval($a6_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a6_lang ) + elseif( $a5_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -243,44 +123,32 @@ 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="'.$a5_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a5_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($$a5_list)==0) echo '<input type="hidden" name="'.$a5_name.'" value="" />'; +if (count($$a5_list)==1) echo '<input type="hidden" name="'.$a5_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($a5_list,$a5_name,$a5_default,$a5_onchange,$a5_title,$a5_class,$a5_addempty,$a5_multiple,$a5_size,$a5_lang) ?></td></tr><?php $column_idx = 0; ?> <tr > -<?php $a5_class='act';$a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a4_class='act';$a4_colspan='2';$a4_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='submit';$a6_class='ok';$a6_value='ok';$a6_text='button_ok'; ?><?php - $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($a4_class,$a4_colspan,$a4_header) ?><?php $a5_type='submit';$a5_class='ok';$a5_value='ok';$a5_text='button_ok'; ?><div class="invisible"> +<?php + $a5_tmp_src = ''; + if ( !empty($a5_type)) { +?> +<input type="<?php echo $a5_type ?>"<?php if(isset($a5_src)) { ?> src="<?php $a5_tmp_src ?>"<?php } ?> name="<?php echo $a5_value ?>" class="ok" title="<?php echo lang($a5_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a5_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a5_src); ?> +<?php } +?> +</div><?php unset($a5_type,$a5_class,$a5_value,$a5_text) ?></td></tr></form> diff --git a/themes/default/pages/html/project/info.tpl.php b/themes/default/pages/html/project/info.tpl.php @@ -1,181 +1,24 @@ -<?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='GLOBAL_PROJECT';$a2_icon='project';$a2_widths='20%,80%';$a2_width='93%';$a2_rowclasses='odd,even';$a2_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$a2_icon; - $coldumn_widths = explode(',',$a2_widths); - $row_classes = explode(',',$a2_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a2_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="'.$a2_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($a2_name,$a2_icon,$a2_widths,$a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php $a3_list='info';$a3_extract=false;$a3_key='list_key';$a3_value='list_value'; ?><?php - $a3_list_tmp_key = $a3_key; - $a3_list_tmp_value = $a3_value; - $a3_list_extract = $a3_extract; - unset($a3_key); - unset($a3_value); - if ( !isset($$a3_list) || !is_array($$a3_list) ) - $$a3_list = array(); - foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) +<?php $a2_list='info';$a2_extract=false;$a2_key='list_key';$a2_value='list_value'; ?><?php + $a2_list_tmp_key = $a2_key; + $a2_list_tmp_value = $a2_value; + $a2_list_extract = $a2_extract; + unset($a2_key); + unset($a2_value); + if ( !isset($$a2_list) || !is_array($$a2_list) ) + $$a2_list = array(); + foreach( $$a2_list as $$a2_list_tmp_key => $$a2_list_tmp_value ) { - if ( $a3_list_extract ) + if ( $a2_list_extract ) { - if ( !is_array($$a3_list_tmp_value) ) + if ( !is_array($$a2_list_tmp_value) ) { - print_r($$a3_list_tmp_value); - die( 'not an array at key: '.$$a3_list_tmp_key ); + print_r($$a2_list_tmp_value); + die( 'not an array at key: '.$$a2_list_tmp_key ); } - extract($$a3_list_tmp_value); + extract($$a2_list_tmp_value); } -?><?php unset($a3_list,$a3_extract,$a3_key,$a3_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 $a6_class='text';$a6_key=$list_key;$a6_prefix='project_info_';$a6_escape=true;$a6_cut='both'; ?><?php +?><?php unset($a2_list,$a2_extract,$a2_key,$a2_value) ?><?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_for=''; ?><label<?php if (isset($a5_for)) { ?> for="id_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" class="label"<?php } ?>> +<?php if (isset($a5_key)) { echo lang($a5_key); if(hasLang($a5_key.'_desc')) { ?><div class="description"><?php echo lang($a5_key.'_desc')?></div> <?php } } ?><?php unset($a5_for) ?><?php $a6_class='text';$a6_key=$list_key;$a6_prefix='project_info_';$a6_escape=true;$a6_cut='both'; ?><?php $a6_key = $a6_prefix.$a6_key; $a6_title = ''; $tmp_tag = 'span'; @@ -185,33 +28,13 @@ $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_key,$a6_prefix,$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='list_value';$a6_escape=true;$a6_type='strong';$a6_cut='both'; ?><?php - $a6_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_key,$a6_prefix,$a6_escape,$a6_cut) ?></label></div><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='text';$a5_var='list_value';$a5_escape=true;$a5_type='strong';$a5_cut='both'; ?><?php + $a5_title = ''; $tmp_tag = 'strong'; -?><<?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 $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($a6_class,$a6_var,$a6_escape,$a6_type,$a6_cut) ?></td></tr><?php } ?> </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 } ?> -</body> -</html>- \ No newline at end of file +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_var,$a5_escape,$a5_type,$a5_cut) ?></div></div><?php } ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/project/listing.tpl.php b/themes/default/pages/html/project/listing.tpl.php @@ -1,95 +1,42 @@ -<?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='GLOBAL_PROJECTS';$a2_icon='project';$a2_width='70%';$a2_rowclasses='odd,even';$a2_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$a2_icon; - $row_classes = explode(',',$a2_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a2_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="'.$a2_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 $a3_name='GLOBAL_PROJECTS';$a3_icon='project';$a3_width='70%';$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']); @@ -97,113 +44,82 @@ $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($a2_name,$a2_icon,$a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php $a3_list='el';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php - $a3_list_tmp_key = $a3_key; - $a3_list_tmp_value = $a3_value; - $a3_list_extract = $a3_extract; - unset($a3_key); - unset($a3_value); - if ( !isset($$a3_list) || !is_array($$a3_list) ) - $$a3_list = array(); - foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) - { - if ( $a3_list_extract ) - { - if ( !is_array($$a3_list_tmp_value) ) - { - print_r($$a3_list_tmp_value); - die( 'not an array at key: '.$$a3_list_tmp_key ); - } - extract($$a3_list_tmp_value); - } -?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php $a4_class='data'; ?><?php - $row_idx++; +<div class="content"><div class="filler"> +<?php } ?><?php unset($a3_name,$a3_icon,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $a4_width='100%';$a4_space='0px';$a4_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($a4_width,$a4_space,$a4_padding) ?><?php $a5_class='headline'; ?><?php $column_idx = 0; ?> <tr - class="data" + class="headline" > -<?php unset($a4_class) ?><?php $column_idx++; ?><td +<?php unset($a5_class) ?><?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_title='';$a6_target='cms_main';$a6_url=$url;$a6_class=''; ?><?php - $params = array(); - $tmp_url = ''; - $tmp_url = $a6_url; -?><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_url,$a6_class) ?><?php $a7_file='icon_project';$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_maxlength='30';$a7_value=$name;$a7_escape=true;$a7_cut='both'; ?><?php +><?php unset($a6_header) ?><?php $a7_class='text';$a7_key='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 = $a7_escape?htmlentities($a7_value):$a7_value; - $tmp_text = Text::maxLength( $tmp_text,intval($a7_maxlength),'..',constant('STR_PAD_'.strtoupper($a7_cut)) ); + $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_maxlength,$a7_value,$a7_escape,$a7_cut) ?></a></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$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_title='';$a6_target=@$conf['interface']['frames']['top'];$a6_url=$use_url;$a6_class=''; ?><?php - $params = array(); - $tmp_url = ''; - $tmp_url = $a6_url; -?><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_url,$a6_class) ?><?php $a7_class='text';$a7_key='GLOBAL_SELECT';$a7_escape=true;$a7_cut='both'; ?><?php +><?php unset($a6_header) ?><?php $a7_class='text';$a7_key='GLOBAL_SELECT';$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 @@ -212,11 +128,84 @@ $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 } ?> </table> - </td> - </tr> -</table> -</center> +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?></td></tr><?php $a5_list='el';$a5_extract=true;$a5_key='list_key';$a5_value='list_value'; ?><?php + $a5_list_tmp_key = $a5_key; + $a5_list_tmp_value = $a5_value; + $a5_list_extract = $a5_extract; + unset($a5_key); + unset($a5_value); + if ( !isset($$a5_list) || !is_array($$a5_list) ) + $$a5_list = array(); + foreach( $$a5_list as $$a5_list_tmp_key => $$a5_list_tmp_value ) + { + if ( $a5_list_extract ) + { + if ( !is_array($$a5_list_tmp_value) ) + { + print_r($$a5_list_tmp_value); + die( 'not an array at key: '.$$a5_list_tmp_key ); + } + extract($$a5_list_tmp_value); + } +?><?php unset($a5_list,$a5_extract,$a5_key,$a5_value) ?><?php $a6_class='data'; ?><?php + $column_idx = 0; +?> +<tr + class="data" +> +<?php unset($a6_class) ?><?php $a7_header=false;$a7_url=$url; ?><?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 } ?> + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a7_url ?>'); " +><?php unset($a7_header,$a7_url) ?><?php $a8_file='icon_project';$a8_align='left'; ?><?php + $a8_tmp_image_file = $image_dir.$a8_file.IMG_ICON_EXT; + $a8_tmp_title = basename($a8_tmp_image_file); +?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?> /><?php unset($a8_file,$a8_align) ?><?php $a8_class='text';$a8_maxlength='30';$a8_value=$name;$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 = $a8_escape?htmlentities($a8_value):$a8_value; + $tmp_text = Text::maxLength( $tmp_text,intval($a8_maxlength),'..',constant('STR_PAD_'.strtoupper($a8_cut)) ); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_maxlength,$a8_value,$a8_escape,$a8_cut) ?></td><?php $a7_header=false;$a7_url=$use_url; ?><?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 } ?> + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a7_url ?>'); " +><?php unset($a7_header,$a7_url) ?><?php $a8_class='text';$a8_key='GLOBAL_SELECT';$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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></td></tr><?php } ?><?php + $column_idx = $last_column_idx; +?> +</table><?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/> @@ -224,5 +213,4 @@ <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -</body> -</html>- \ No newline at end of file +<?php } ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/project/maintenance.tpl.php b/themes/default/pages/html/project/maintenance.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,244 +30,84 @@ $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_PROJECT';$a3_icon='project';$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 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_icon,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?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('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++; - $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_for='type_check_limit'; ?><label for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>"><?php unset($a6_for) ?><?php $a7_readonly=false;$a7_name='type';$a7_value='check_limit';$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; +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><?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) ?><div><?php $a5_class='text';$a5_value='';$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 = $a5_escape?htmlentities($a5_value):$a5_value; + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_value,$a5_escape,$a5_cut) ?><?php $a5_readonly=false;$a5_name='type';$a5_value='check_limit';$a5_default=false;$a5_prefix='';$a5_suffix='';$a5_class='';$a5_onchange=''; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a5_readonly=true; + if ( isset($$a5_name) ) + $a5_tmp_default = $$a5_name; + elseif ( isset($a5_default) ) + $a5_tmp_default = $a5_default; else - $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_class='text';$a7_key='project_check_limit';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; + $a5_tmp_default = ''; + ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a5_name.'_'.$a5_value ?>" name="<?php echo $a5_prefix.$a5_name ?>"<?php if ( $a5_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a5_value ?>" <?php if($a5_value==$a5_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a5_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> +<?php /* #END-IF# */ ?><?php unset($a5_readonly,$a5_name,$a5_value,$a5_default,$a5_prefix,$a5_suffix,$a5_class,$a5_onchange) ?><?php $a5_for='type_check_limit'; ?><label<?php if (isset($a5_for)) { ?> for="id_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" class="label"<?php } ?>> +<?php if (isset($a5_key)) { echo lang($a5_key); if(hasLang($a5_key.'_desc')) { ?><div class="description"><?php echo lang($a5_key.'_desc')?></div> <?php } } ?><?php unset($a5_for) ?><?php $a6_class='text';$a6_key='project_check_limit';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_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 $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($a7_class,$a7_key,$a7_escape,$a7_cut) ?></label></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_for='type_check_files'; ?><label for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>"><?php unset($a6_for) ?><?php $a7_readonly=false;$a7_name='type';$a7_value='check_files';$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; +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_key,$a6_escape,$a6_cut) ?></label></div><div><?php $a5_class='text';$a5_value='';$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 = $a5_escape?htmlentities($a5_value):$a5_value; + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_value,$a5_escape,$a5_cut) ?><?php $a5_readonly=false;$a5_name='type';$a5_value='check_files';$a5_default=false;$a5_prefix='';$a5_suffix='';$a5_class='';$a5_onchange=''; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a5_readonly=true; + if ( isset($$a5_name) ) + $a5_tmp_default = $$a5_name; + elseif ( isset($a5_default) ) + $a5_tmp_default = $a5_default; else - $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_class='text';$a7_key='project_check_files';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; + $a5_tmp_default = ''; + ?><input onclick="" class="radio" type="radio" id="id_<?php echo $a5_name.'_'.$a5_value ?>" name="<?php echo $a5_prefix.$a5_name ?>"<?php if ( $a5_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $a5_value ?>" <?php if($a5_value==$a5_tmp_default) echo 'checked="checked"' ?><?php if (in_array($a5_name,$errors)) echo ' style="borderx:2px dashed red; background-color:red;"' ?> /> +<?php /* #END-IF# */ ?><?php unset($a5_readonly,$a5_name,$a5_value,$a5_default,$a5_prefix,$a5_suffix,$a5_class,$a5_onchange) ?><?php $a5_for='type_check_files'; ?><label<?php if (isset($a5_for)) { ?> for="id_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" class="label"<?php } ?>> +<?php if (isset($a5_key)) { echo lang($a5_key); if(hasLang($a5_key.'_desc')) { ?><div class="description"><?php echo lang($a5_key.'_desc')?></div> <?php } } ?><?php unset($a5_for) ?><?php $a6_class='text';$a6_key='project_check_files';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_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 $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($a7_class,$a7_key,$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 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> -</body> -</html>- \ No newline at end of file +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_key,$a6_escape,$a6_cut) ?></label></div></fieldset></form> diff --git a/themes/default/pages/html/project/remove.tpl.php b/themes/default/pages/html/project/remove.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_PROJECT';$a3_icon='group';$a3_widths='20%,80%';$a3_width='93%';$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 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']); @@ -128,110 +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_name,$a3_icon,$a3_widths,$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_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='name';$a6_var='name';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_header) ?><?php $a7_class='name';$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++; - $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('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 echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_escape,$a7_cut) ?></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 } ?> @@ -239,53 +173,70 @@ 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='delete'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; - if ( isset($$a6_name) ) - $checked = $$a6_name; +><?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) ?><div><?php $a9_default=false;$a9_readonly=false;$a9_name='delete'; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a9_readonly=true; + if ( isset($$a9_name) ) + $checked = $$a9_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 = $a9_default; +?><input class="checkbox" type="checkbox" id="id_<?php echo $a9_name ?>" name="<?php echo $a9_name ?>" <?php if ($a9_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?><?php if (in_array($a9_name,$errors)) echo ' style="background-color:red;"' ?> /><?php +if ( $a9_readonly && $checked ) { -?><input type="hidden" name="<?php echo $a6_name ?>" value="1" /><?php +?><input type="hidden" name="<?php echo $a9_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='delete'; ?><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 - $a7_title = ''; +?><?php unset($a9_name); unset($a9_readonly); unset($a9_default); ?><?php unset($a9_default,$a9_readonly,$a9_name) ?><?php $a9_for='delete'; ?><label<?php if (isset($a9_for)) { ?> for="id_<?php echo $a9_for ?><?php if (!empty($a9_value)) echo '_'.$a9_value ?>" class="label"<?php } ?>> +<?php if (isset($a9_key)) { echo lang($a9_key); if(hasLang($a9_key.'_desc')) { ?><div class="description"><?php echo lang($a9_key.'_desc')?></div> <?php } } ?><?php unset($a9_for) ?><?php $a10_class='text';$a10_text='CONFIRM_DELETE';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $langF($a10_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></td></tr><?php - $row_idx++; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_text,$a10_escape,$a10_cut) ?></label></div></fieldset></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/> @@ -293,12 +244,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/projectlist/add.tpl.php b/themes/default/pages/html/projectlist/add.tpl.php @@ -0,0 +1,169 @@ +<?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) ?><?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=lang('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='text';$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_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) ?><?php $a6_readonly=false;$a6_name='type';$a6_value='empty';$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_empty'; ?><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_key='empty';$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) ?></label><?php $a6_class='input'; ?><div class="<?php echo $a6_class ?>"><?php unset($a6_class) ?><?php $a7_readonly=false;$a7_name='type';$a7_value='copy';$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 + $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='type_copy'; ?><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='copy';$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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label><?php $a7_list='projects';$a7_name='projectid';$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></div></fieldset></form> +<?php $a2_field='name'; ?><script name="JavaScript" type="text/javascript"><!-- +</script> +<?php unset($a2_field) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/projectlist/show.tpl.php b/themes/default/pages/html/projectlist/show.tpl.php @@ -0,0 +1,128 @@ +<?php $a2_name='';$a2_views='add';$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_width='100%';$a2_space='0px';$a2_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($a2_width,$a2_space,$a2_padding) ?><?php $a3_class='headline'; ?><?php + $column_idx = 0; +?> +<tr + class="headline" +> +<?php unset($a3_class) ?><?php $a4_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($a4_header) ?><?php $a5_class='text';$a5_key='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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></td><?php $a4_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($a4_header) ?><?php $a5_class='text';$a5_key='GLOBAL_SELECT';$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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></td></tr><?php $a3_list='el';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php + $a3_list_tmp_key = $a3_key; + $a3_list_tmp_value = $a3_value; + $a3_list_extract = $a3_extract; + unset($a3_key); + unset($a3_value); + if ( !isset($$a3_list) || !is_array($$a3_list) ) + $$a3_list = array(); + foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) + { + if ( $a3_list_extract ) + { + if ( !is_array($$a3_list_tmp_value) ) + { + print_r($$a3_list_tmp_value); + die( 'not an array at key: '.$$a3_list_tmp_key ); + } + extract($$a3_list_tmp_value); + } +?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php $a4_class='data'; ?><?php + $column_idx = 0; +?> +<tr + class="data" +> +<?php unset($a4_class) ?><?php $a5_header=false;$a5_url=$url; ?><?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 } ?> + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a5_url ?>'); " +><?php unset($a5_header,$a5_url) ?><?php $a6_file='icon_project';$a6_align='left'; ?><?php + $a6_tmp_image_file = $image_dir.$a6_file.IMG_ICON_EXT; + $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_file,$a6_align) ?><?php $a6_class='text';$a6_maxlength='30';$a6_value=$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 = $a6_escape?htmlentities($a6_value):$a6_value; + $tmp_text = Text::maxLength( $tmp_text,intval($a6_maxlength),'..',constant('STR_PAD_'.strtoupper($a6_cut)) ); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_maxlength,$a6_value,$a6_escape,$a6_cut) ?></td><?php $a5_header=false;$a5_url=$use_url; ?><?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 } ?> + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a5_url ?>'); " +><?php unset($a5_header,$a5_url) ?><?php $a6_class='text';$a6_key='GLOBAL_SELECT';$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) ?></td></tr><?php } ?><?php + $column_idx = $last_column_idx; +?> +</table>+ \ No newline at end of file diff --git a/themes/default/pages/html/search/content.tpl.php b/themes/default/pages/html/search/content.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_icon='search';$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_icon='search';$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,58 +84,51 @@ $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_icon,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $row_idx++; +<div class="content"><div class="filler"> +<?php } ?><?php unset($a4_icon,$a4_width,$a4_rowclasses,$a4_columnclasses) ?><?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 } ?> @@ -186,73 +136,73 @@ class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a5_colspan) ?><?php $a6_title=lang('global_user'); ?><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('global_user'); ?><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 } ?> -><?php $a6_readonly=false;$a6_name='type';$a6_value='lastchange_user';$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 unset($a6_header) ?><?php $a7_readonly=false;$a7_name='type';$a7_value='lastchange_user';$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='type';$a6_value='lastchange_user'; ?><label for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>"><?php unset($a6_for,$a6_value) ?><?php $a7_class='text';$a7_key='lastchange_user';$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='type';$a7_value='lastchange_user'; ?><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,$a7_value) ?><?php $a8_class='text';$a8_key='lastchange_user';$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><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label></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_list='users';$a6_name='userid';$a6_default=$act_userid;$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; +><?php unset($a6_header) ?><?php $a7_list='users';$a7_name='userid';$a7_default=$act_userid;$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) ) { @@ -260,7 +210,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 ); @@ -269,22 +219,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 } ?> @@ -292,79 +241,95 @@ 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('SEARCH_CONTENT'); ?><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('SEARCH_CONTENT'); ?><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 } ?> -><?php $a6_readonly=false;$a6_name='type';$a6_value='value';$a6_default=true;$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 unset($a6_header) ?><?php $a7_readonly=false;$a7_name='type';$a7_value='value';$a7_default=true;$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='type';$a6_value='value'; ?><label for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>"><?php unset($a6_for,$a6_value) ?><?php $a7_class='text';$a7_key='value';$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='type';$a7_value='value'; ?><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,$a7_value) ?><?php $a8_class='text';$a8_key='value';$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><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label></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='text';$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='text';$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 $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/> @@ -372,12 +337,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/search/prop.tpl.php b/themes/default/pages/html/search/prop.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_icon='search';$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_icon='search';$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,58 +84,51 @@ $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_icon,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $row_idx++; +<div class="content"><div class="filler"> +<?php } ?><?php unset($a4_icon,$a4_width,$a4_rowclasses,$a4_columnclasses) ?><?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 } ?> @@ -186,91 +136,92 @@ class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a5_colspan) ?><?php $a6_title=lang('global_user'); ?><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('global_user'); ?><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 } ?> -><?php $a6_readonly=false;$a6_name='type';$a6_value='create_user';$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 unset($a6_header) ?><?php $a7_readonly=false;$a7_name='type';$a7_value='create_user';$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='type';$a6_value='create_user'; ?><label for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>"><?php unset($a6_for,$a6_value) ?><?php $a7_class='text';$a7_key='create_user';$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='type';$a7_value='create_user'; ?><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,$a7_value) ?><?php $a8_class='text';$a8_key='create_user';$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='type';$a6_value='lastchange_user';$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='type';$a7_value='lastchange_user';$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='type';$a6_value='lastchange_user'; ?><label for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>"><?php unset($a6_for,$a6_value) ?><?php $a7_class='text';$a7_key='lastchange_user';$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='type';$a7_value='lastchange_user'; ?><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,$a7_value) ?><?php $a8_class='text';$a8_key='lastchange_user';$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><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label></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_list='users';$a6_name='userid';$a6_default=$act_userid;$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; +><?php unset($a6_header) ?><?php $a7_list='users';$a7_name='userid';$a7_default=$act_userid;$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) ) { @@ -278,7 +229,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 ); @@ -287,22 +238,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 } ?> @@ -310,134 +260,153 @@ 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('MENU_SEARCH_PROP'); ?><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('MENU_SEARCH_PROP'); ?><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 } ?> -><?php $a6_readonly=false;$a6_name='type';$a6_value='id';$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 unset($a6_header) ?><?php $a7_readonly=false;$a7_name='type';$a7_value='id';$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='type';$a6_value='id'; ?><label for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>"><?php unset($a6_for,$a6_value) ?><?php $a7_class='text';$a7_key='id';$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='type';$a7_value='id'; ?><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,$a7_value) ?><?php $a8_class='text';$a8_key='id';$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='type';$a6_value='name';$a6_default=true;$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='type';$a7_value='name';$a7_default=true;$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='type';$a6_value='name'; ?><label for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>"><?php unset($a6_for,$a6_value) ?><?php $a7_class='text';$a7_key='name';$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='type';$a7_value='name'; ?><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,$a7_value) ?><?php $a8_class='text';$a8_key='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_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='type';$a6_value='description';$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='type';$a7_value='description';$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='type';$a6_value='description'; ?><label for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>"><?php unset($a6_for,$a6_value) ?><?php $a7_class='text';$a7_key='description';$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='type';$a7_value='description'; ?><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,$a7_value) ?><?php $a8_class='text';$a8_key='description';$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='type';$a6_value='filename';$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='type';$a7_value='filename';$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='type';$a6_value='filename'; ?><label for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>"><?php unset($a6_for,$a6_value) ?><?php $a7_class='text';$a7_key='filename';$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='type';$a7_value='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,$a7_value) ?><?php $a8_class='text';$a8_key='filename';$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/></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label><br/></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='text';$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 $a4_class=''; ?><?php - $row_idx++; +><?php unset($a6_header) ?><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='text';$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 $a5_class=''; ?><?php $column_idx = 0; ?> <tr class="" > -<?php unset($a4_class) ?><?php $a5_class='act';$a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php unset($a5_class) ?><?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/> @@ -445,12 +414,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/search/result.tpl.php b/themes/default/pages/html/search/result.tpl.php @@ -1,96 +1,42 @@ -<?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_icon='search';$a2_widths='70%,30%';$a2_width='93%';$a2_rowclasses='odd,even';$a2_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$a2_icon; - $coldumn_widths = explode(',',$a2_widths); - $row_classes = explode(',',$a2_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a2_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="'.$a2_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 $a3_icon='search';$a3_widths='70%,30%';$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']); @@ -98,144 +44,160 @@ $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($a2_icon,$a2_widths,$a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php - $row_idx++; +<div class="content"><div class="filler"> +<?php } ?><?php unset($a3_icon,$a3_widths,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $column_idx = 0; ?> <tr > -<?php $a4_class='help'; ?><?php $column_idx++; ?><td +<?php $a5_class='help';$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="help" -><?php unset($a4_class) ?><?php $a5_class='text';$a5_key='GLOBAL_NAME';$a5_escape=true;$a5_cut='both'; ?><?php - $a5_title = ''; +><?php unset($a5_class,$a5_header) ?><?php $a6_class='text';$a6_key='GLOBAL_NAME';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_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_key); +?><<?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($a5_class,$a5_key,$a5_escape,$a5_cut) ?></td><?php $a4_class='help'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_key,$a6_escape,$a6_cut) ?></td><?php $a5_class='help';$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="help" -><?php unset($a4_class) ?><?php $a5_class='text';$a5_key='GLOBAL_LASTCHANGE';$a5_escape=true;$a5_cut='both'; ?><?php - $a5_title = ''; +><?php unset($a5_class,$a5_header) ?><?php $a6_class='text';$a6_key='GLOBAL_LASTCHANGE';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_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_key); +?><<?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($a5_class,$a5_key,$a5_escape,$a5_cut) ?></td></tr><?php $a3_list='result';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php - $a3_list_tmp_key = $a3_key; - $a3_list_tmp_value = $a3_value; - $a3_list_extract = $a3_extract; - unset($a3_key); - unset($a3_value); - if ( !isset($$a3_list) || !is_array($$a3_list) ) - $$a3_list = array(); - foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_key,$a6_escape,$a6_cut) ?></td></tr><?php $a4_list='result';$a4_extract=true;$a4_key='list_key';$a4_value='list_value'; ?><?php + $a4_list_tmp_key = $a4_key; + $a4_list_tmp_value = $a4_value; + $a4_list_extract = $a4_extract; + unset($a4_key); + unset($a4_value); + if ( !isset($$a4_list) || !is_array($$a4_list) ) + $$a4_list = array(); + foreach( $$a4_list as $$a4_list_tmp_key => $$a4_list_tmp_value ) { - if ( $a3_list_extract ) + if ( $a4_list_extract ) { - if ( !is_array($$a3_list_tmp_value) ) + if ( !is_array($$a4_list_tmp_value) ) { - print_r($$a3_list_tmp_value); - die( 'not an array at key: '.$$a3_list_tmp_key ); + print_r($$a4_list_tmp_value); + die( 'not an array at key: '.$$a4_list_tmp_key ); } - extract($$a3_list_tmp_value); + extract($$a4_list_tmp_value); } -?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php $a4_class='data'; ?><?php - $row_idx++; +?><?php unset($a4_list,$a4_extract,$a4_key,$a4_value) ?><?php $a5_class='data'; ?><?php $column_idx = 0; ?> <tr class="data" > -<?php unset($a4_class) ?><?php $column_idx++; ?><td +<?php unset($a5_class) ?><?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_title='';$a6_target='cms_main';$a6_url=$url;$a6_class=''; ?><?php +><?php unset($a6_header) ?><?php $a7_title='';$a7_type='';$a7_target='cms_main';$a7_url=$url;$a7_class='';$a7_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a6_url; -?><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_url,$a6_class) ?><?php $a7_align='left';$a7_type=$type; ?><?php - $a7_tmp_image_file = $image_dir.'icon_'.$a7_type.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_align,$a7_type) ?><?php $a7_title=$desc;$a7_class='text';$a7_var='name';$a7_escape=true;$a7_cut='both'; ?><?php + $params[REQ_PARAM_TARGET] = $a7_target; + switch( $a7_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a7_action)?$a7_action:$this->actionName,'subaction'=>!empty($a7_subaction)?$a7_subaction:$this->subActionName,'id'=>!empty($a7_id)?$a7_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($a7_subaction)?$a7_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a7_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a7_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a7_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a7_frame ?>"<?php if (isset($a7_name)) { ?> name="<?php echo $a7_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a7_class ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_type,$a7_target,$a7_url,$a7_class,$a7_frame) ?><?php $a8_align='left';$a8_type=$type; ?><?php + $a8_tmp_image_file = $image_dir.'icon_'.$a8_type.IMG_ICON_EXT; + $a8_size = '16x16'; + $a8_tmp_title = basename($a8_tmp_image_file); +?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?> /><?php unset($a8_align,$a8_type) ?><?php $a8_title=$desc;$a8_class='text';$a8_var='name';$a8_escape=true;$a8_cut='both'; ?><?php $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'); +?><<?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($a7_title,$a7_class,$a7_var,$a7_escape,$a7_cut) ?></a></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_title,$a8_class,$a8_var,$a8_escape,$a8_cut) ?></a></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_date=$lastchange_date; ?><?php +><?php unset($a6_header) ?><?php $a7_date=$lastchange_date; ?><?php global $conf; - $time = $a6_date; + $time = $a7_date; if ( isset($_COOKIE['or_timezone_offset']) ) { $time -= (int)date('Z'); @@ -294,11 +256,18 @@ echo $jahre.' '.lang('GLOBAL_YEARS'); echo '</span>'; } -?><?php unset($a6_date) ?></td></tr><?php } ?> </table> - </td> - </tr> -</table> -</center> +?><?php unset($a7_date) ?></td></tr><?php } ?><?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/> @@ -306,5 +275,4 @@ <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -</body> -</html>- \ No newline at end of file +<?php } ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/start/administration.tpl.php b/themes/default/pages/html/start/administration.tpl.php diff --git a/themes/default/pages/html/start/applications.tpl.php b/themes/default/pages/html/start/applications.tpl.php @@ -0,0 +1,239 @@ +<?php $a3_icon='project';$a3_width='600';$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_title='';$a6_type='';$a6_class='';$a6_action='index';$a6_subaction='projectmenu';$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_raw='OpenRat';$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 = str_replace('_','&nbsp;',$a7_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?></a></td></tr><?php $a4_list='applications';$a4_extract=true;$a4_key='list_key';$a4_value='list_value'; ?><?php + $a4_list_tmp_key = $a4_key; + $a4_list_tmp_value = $a4_value; + $a4_list_extract = $a4_extract; + unset($a4_key); + unset($a4_value); + if ( !isset($$a4_list) || !is_array($$a4_list) ) + $$a4_list = array(); + foreach( $$a4_list as $$a4_list_tmp_key => $$a4_list_tmp_value ) + { + if ( $a4_list_extract ) + { + if ( !is_array($$a4_list_tmp_value) ) + { + print_r($$a4_list_tmp_value); + die( 'not an array at key: '.$$a4_list_tmp_key ); + } + extract($$a4_list_tmp_value); + } +?><?php unset($a4_list,$a4_extract,$a4_key,$a4_value) ?><?php + $column_idx = 0; +?> +<tr +> +<?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 unset($a6_header) ?><?php $a7_title='';$a7_type='';$a7_url=$url;$a7_class='';$a7_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $a7_target = $view; + switch( $a7_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a7_action)?$a7_action:$this->actionName,'subaction'=>!empty($a7_subaction)?$a7_subaction:$this->subActionName,'id'=>!empty($a7_id)?$a7_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($a7_subaction)?$a7_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a7_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a7_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a7_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a7_frame ?>"<?php if (isset($a7_name)) { ?> name="<?php echo $a7_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a7_class ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_type,$a7_url,$a7_class,$a7_frame) ?><?php $a8_class='text';$a8_var='name';$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) ?></a></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 unset($a6_header) ?><?php $a7_class='text';$a7_var='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 = 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 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/start/projectmenu.tpl.php b/themes/default/pages/html/start/projectmenu.tpl.php @@ -0,0 +1,322 @@ +<?php $a3_title='GLOBAL_PROJECTS';$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_title,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php + $column_idx = 0; +?> +<tr +> +<?php $a5_class='logo';$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="logo" + colspan="2" +><?php unset($a5_class,$a5_colspan,$a5_header) ?><?php $a6_name='projectmenu'; ?><img src="<?php echo $image_dir.'logo_'.$a6_name.IMG_ICON_EXT ?>" border="0" align="left" /><h2 class="logo"><?php echo langHtml('logo_'.$a6_name) ?></h2><p class="logo"><?php echo langHtml('logo_'.$a6_name.'_text') ?></p><?php unset($a6_name) ?></td></tr><?php $a4_list='projects';$a4_extract=true;$a4_key='list_key';$a4_value='list_value'; ?><?php + $a4_list_tmp_key = $a4_key; + $a4_list_tmp_value = $a4_value; + $a4_list_extract = $a4_extract; + unset($a4_key); + unset($a4_value); + if ( !isset($$a4_list) || !is_array($$a4_list) ) + $$a4_list = array(); + foreach( $$a4_list as $$a4_list_tmp_key => $$a4_list_tmp_value ) + { + if ( $a4_list_extract ) + { + if ( !is_array($$a4_list_tmp_value) ) + { + print_r($$a4_list_tmp_value); + die( 'not an array at key: '.$$a4_list_tmp_key ); + } + extract($$a4_list_tmp_value); + } +?><?php unset($a4_list,$a4_extract,$a4_key,$a4_value) ?><?php + $column_idx = 0; +?> +<tr +> +<?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 } ?> +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> + colspan="2" +><?php unset($a6_colspan,$a6_header) ?><?php $a7_title=$name; ?><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) ?><?php $a8_title=lang('TREE_CHOOSE_PROJECT');$a8_type='post';$a8_class='';$a8_id=$id;$a8_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $a8_target = $view; + switch( $a8_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a8_action)?$a8_action:$this->actionName,'subaction'=>!empty($a8_subaction)?$a8_subaction:$this->subActionName,'id'=>!empty($a8_id)?$a8_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($a8_subaction)?$a8_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a8_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a8_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a8_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a8_frame ?>"<?php if (isset($a8_name)) { ?> name="<?php echo $a8_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a8_class ?>"<?php if (isset($a8_accesskey)) echo ' accesskey="'.$a8_accesskey.'"' ?> title="<?php echo encodeHtml($a8_title) ?>"><?php unset($a8_title,$a8_type,$a8_class,$a8_id,$a8_frame) ?><?php $a9_var='project';$a9_value='project'; ?><?php + if (isset($a9_key)) + $$a9_var = $a9_value[$a9_key]; + else + $$a9_var = $a9_value; +?><?php unset($a9_var,$a9_value) ?><?php $a9_align='left';$a9_type='project'; ?><?php + $a9_tmp_image_file = $image_dir.'icon_'.$a9_type.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_align,$a9_type) ?><?php $a9_class='text';$a9_var='name';$a9_maxlength='30';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_title = ''; + $tmp_tag = 'span'; +?><<?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 = Text::maxLength( $tmp_text,intval($a9_maxlength),'..',constant('STR_PAD_'.strtoupper($a9_cut)) ); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_var,$a9_maxlength,$a9_escape,$a9_cut) ?></a><?php $a8_action='index';$a8_subaction='project';$a8_id=$id;$a8_name='';$a8_target='_self';$a8_method='post';$a8_enctype='application/x-www-form-urlencoded';$a8_type=''; ?><?php + if ($this->isEditable()) + { + if ($this->isEditMode()) + { + $a8_method = 'POST'; + } + else + { + $a8_method = 'GET'; + $a8_subaction = $subActionName; + } + } + switch( $a8_type ) + { + case 'upload': + $a8_tmp_submitFunction = ''; + break; + default: + $a8_tmp_submitFunction = 'formSubmit( $(this) ); return false;'; + } +?><form name="<?php echo $a8_name ?>" + target="<?php echo $a8_target ?>" + action="<?php echo Html::url( $a8_action,$a8_subaction,$a8_id ) ?>" + method="<?php echo $a8_method ?>" + enctype="<?php echo $a8_enctype ?>" style="margin:0px;padding:0px;" + class="<?php echo $a8_action ?>" + onSubmit="<?php echo $a8_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($a8_action,$a8_subaction,$a8_id,$a8_name,$a8_target,$a8_method,$a8_enctype,$a8_type) ?><?php $a9_width='100%';$a9_space='0px';$a9_padding='0px';$a9_widths='150px,150px'; ?><?php + $last_column_idx = @$column_idx; + $column_idx = 0; + $coloumn_widths = array(); + $row_classes = array(); + $column_classes = array(); + $column_widths = explode(',',$a9_widths); +?><table class="%class%" cellspacing="0px" width="100%" cellpadding="0px"> +<?php unset($a9_width,$a9_space,$a9_padding,$a9_widths) ?><?php + $column_idx = 0; +?> +<tr +> +<?php $a11_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($a11_header) ?><?php $a12_list='models';$a12_name='modelid';$a12_default=$defaultmodelid;$a12_onchange='';$a12_title='';$a12_class=''; ?><?php $a12_tmp_list = $$a12_list; + if ( isset($$a12_name) && isset($a12_tmp_list[$$a12_name]) ) + $a12_tmp_default = $$a12_name; + elseif ( isset($a12_default) ) + $a12_tmp_default = $a12_default; + else + $a12_tmp_default = ''; + foreach( $a12_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_'.$a12_name.'_'.$box_key; + echo '<input id="'.$id.'" name="'.$a12_name.'" type="radio" class="'.$a12_class.'" value="'.$box_key.'"'; + if ($box_key==$a12_tmp_default) + echo ' checked="checked"'; + echo ' />&nbsp;<label for="'.$id.'">'.$box_value.'</label><br />'; + } +?><?php unset($a12_list,$a12_name,$a12_default,$a12_onchange,$a12_title,$a12_class) ?></td><?php $a11_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($a11_header) ?><?php $a12_list='languages';$a12_name='languageid';$a12_default=$defaultlanguageid;$a12_onchange='';$a12_title='';$a12_class=''; ?><?php $a12_tmp_list = $$a12_list; + if ( isset($$a12_name) && isset($a12_tmp_list[$$a12_name]) ) + $a12_tmp_default = $$a12_name; + elseif ( isset($a12_default) ) + $a12_tmp_default = $a12_default; + else + $a12_tmp_default = ''; + foreach( $a12_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_'.$a12_name.'_'.$box_key; + echo '<input id="'.$id.'" name="'.$a12_name.'" type="radio" class="'.$a12_class.'" value="'.$box_key.'"'; + if ($box_key==$a12_tmp_default) + echo ' checked="checked"'; + echo ' />&nbsp;<label for="'.$id.'">'.$box_value.'</label><br />'; + } +?><?php unset($a12_list,$a12_name,$a12_default,$a12_onchange,$a12_title,$a12_class) ?></td><?php $a11_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($a11_header) ?><?php $a12_type='ok';$a12_class='ok';$a12_value='ok';$a12_text=lang('start'); ?><div class="invisible"> +<?php + if ($this->isEditable() && !$this->isEditMode() && !readonly() ) + { + $a12_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 + { + $a12_type = 'submit'; + } + $a12_tmp_src = ''; + if ( !empty($a12_type)) { +?> +<input type="<?php echo $a12_type ?>"<?php if(isset($a12_src)) { ?> src="<?php $a12_tmp_src ?>"<?php } ?> name="<?php echo $a12_value ?>" class="ok" title="<?php echo lang($a12_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a12_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a12_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($a12_type,$a12_class,$a12_value,$a12_text) ?></td></tr><?php + $column_idx = $last_column_idx; +?> +</table></form> +</fieldset></td></tr><?php } ?><?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/template/add.tpl.php b/themes/default/pages/html/template/add.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_TEMPLATES';$a3_widths='10px,40px';$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_TEMPLATES';$a4_widths='10px,40px';$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,58 +84,51 @@ $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_widths,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $row_idx++; +<div class="content"><div class="filler"> +<?php } ?><?php unset($a4_name,$a4_widths,$a4_width,$a4_rowclasses,$a4_columnclasses) ?><?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 } ?> @@ -187,37 +136,36 @@ class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a5_colspan) ?><?php $a6_class='text';$a6_text=lang('name');$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a6_colspan,$a6_header) ?><?php $a7_class='text';$a7_text=lang('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 $a5_colspan='3'; ?><?php $column_idx++; ?><td +<?php $a6_colspan='3';$a6_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -225,118 +173,118 @@ if ($a6_readonly) { class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="3" -><?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 } ?> -><?php $a6_readonly=false;$a6_name='type';$a6_value='empty';$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 unset($a6_header) ?><?php $a7_readonly=false;$a7_name='type';$a7_value='empty';$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) ?></td><?php $column_idx++; ?><td + $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) ?></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_for='type_empty'; ?><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='empty';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a6_header) ?><?php $a7_for='type_empty'; ?><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='empty';$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 $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_readonly=false;$a6_name='type';$a6_value='copy';$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 unset($a6_header) ?><?php $a7_readonly=false;$a7_name='type';$a7_value='copy';$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) ?></td><?php $column_idx++; ?><td + $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) ?></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_for='type_copy'; ?><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='copy';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a6_header) ?><?php $a7_for='type_copy'; ?><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='copy';$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><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label></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_list='templates';$a6_name='templateid';$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; +><?php unset($a6_header) ?><?php $a7_list='templates';$a7_name='templateid';$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) ) { @@ -344,7 +292,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 ); @@ -353,89 +301,89 @@ 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_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_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?></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_readonly=false;$a6_name='type';$a6_value='example';$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 unset($a6_header) ?><?php $a7_readonly=false;$a7_name='type';$a7_value='example';$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) ?></td><?php $column_idx++; ?><td + $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) ?></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_for='type_example'; ?><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='example';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a6_header) ?><?php $a7_for='type_example'; ?><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='example';$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><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label></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_list='examples';$a6_name='example';$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; +><?php unset($a6_header) ?><?php $a7_list='examples';$a7_name='example';$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) ) { @@ -443,7 +391,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 ); @@ -452,42 +400,58 @@ 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_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_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?></td></tr><?php $column_idx = 0; ?> <tr > -<?php $a5_class='act';$a5_colspan='3'; ?><?php $column_idx++; ?><td +<?php $a6_class='act';$a6_colspan='3';$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="3" -><?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/> @@ -495,12 +459,7 @@ 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> -<?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/template/addel.tpl.php b/themes/default/pages/html/template/addel.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 } ?> - <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_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(); @@ -46,232 +30,90 @@ $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_TEMPLATES';$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='global_name';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?><?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='global_name';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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 $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($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_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++; - $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 - $a6_title = ''; +?></<?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='text';$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='element_type';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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 $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($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_var='text';$a6_value='text'; ?><?php - if (isset($a6_key)) - $$a6_var = $a6_value[$a6_key]; +?></<?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_var='text';$a5_value='text'; ?><?php + if (isset($a5_key)) + $$a5_var = $a5_value[$a5_key]; else - $$a6_var = $a6_value; -?><?php unset($a6_var,$a6_value) ?><?php $a6_list='types';$a6_name='type';$a6_default='text';$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; + $$a5_var = $a5_value; +?><?php unset($a5_var,$a5_value) ?><?php $a5_list='types';$a5_name='type';$a5_default='text';$a5_onchange='';$a5_title='';$a5_class='';$a5_addempty=false;$a5_multiple=false;$a5_size='1';$a5_lang=true; ?><?php +$a5_readonly=false; +$a5_tmp_list = $$a5_list; if ($this->isEditable() && !$this->isEditMode()) { - echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; + echo empty($$a5_name)?'- '.lang('EMPTY').' -':$a5_tmp_list[$$a5_name]; } else { -if ( $a6_addempty!==FALSE ) +if ( $a5_addempty!==FALSE ) { - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; + if ($a5_addempty===TRUE) + $a5_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a5_tmp_list; else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_tmp_list; + $a5_tmp_list = array(''=>'- '.lang($a5_addempty).' -')+$a5_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 ($a5_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $a5_name ?>" name="<?php echo $a5_name; if ($a5_multiple) echo '[]'; ?>" onchange="<?php echo $a5_onchange ?>" title="<?php echo $a5_title ?>" class="<?php echo $a5_class ?>"<?php +if (count($$a5_list)<=1) echo ' disabled="disabled"'; +if ($a5_multiple) echo ' multiple="multiple"'; +if (in_array($a5_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; +echo ' size="'.intval($a5_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($$a5_name) && isset($a5_tmp_list[$$a5_name]) ) + $a5_tmp_default = $$a5_name; + elseif ( isset($a5_default) ) + $a5_tmp_default = $a5_default; else - $a6_tmp_default = ''; - foreach( $a6_tmp_list as $box_key=>$box_value ) + $a5_tmp_default = ''; + foreach( $a5_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -279,7 +121,7 @@ echo ' size="'.intval($a6_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a6_lang ) + elseif( $a5_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -288,109 +130,34 @@ 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="'.$a5_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a5_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($$a5_list)==0) echo '<input type="hidden" name="'.$a5_name.'" value="" />'; +if (count($$a5_list)==1) echo '<input type="hidden" name="'.$a5_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++; - $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('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++; - $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_for='addtotemplate'; ?><label for="id_<?php echo $a6_for ?><?php if (!empty($a6_value)) echo '_'.$a6_value ?>"><?php unset($a6_for) ?><?php $a7_default=true;$a7_readonly=false;$a7_name='addtotemplate'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; - if ( isset($$a7_name) ) - $checked = $$a7_name; +?><?php unset($a5_list,$a5_name,$a5_default,$a5_onchange,$a5_title,$a5_class,$a5_addempty,$a5_multiple,$a5_size,$a5_lang) ?></div></div><?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) ?></fieldset><?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) ?></div><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_for='addtotemplate'; ?><label<?php if (isset($a5_for)) { ?> for="id_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" class="label"<?php } ?>> +<?php if (isset($a5_key)) { echo lang($a5_key); if(hasLang($a5_key.'_desc')) { ?><div class="description"><?php echo lang($a5_key.'_desc')?></div> <?php } } ?><?php unset($a5_for) ?><?php $a6_default=true;$a6_readonly=false;$a6_name='addtotemplate'; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; + if ( isset($$a6_name) ) + $checked = $$a6_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 = $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 $a7_name ?>" value="1" /><?php +?><input type="hidden" name="<?php echo $a6_name ?>" value="1" /><?php } -?><?php unset($a7_name); unset($a7_readonly); unset($a7_default); ?><?php unset($a7_default,$a7_readonly,$a7_name) ?><?php $a7_class='text';$a7_key='menu_template_srcelement';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +?><?php unset($a6_name); unset($a6_readonly); unset($a6_default); ?><?php unset($a6_default,$a6_readonly,$a6_name) ?><?php $a6_class='text';$a6_key='menu_template_srcelement';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_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 $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($a7_class,$a7_key,$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 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 } ?> -<?php $a3_field='name'; ?><?php -if (isset($errors[0])) $a3_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $a3_field ?>.focus(); -document.forms[0].<?php echo $a3_field ?>.select(); -</script> -<?php unset($a3_field) ?></form> -</body> -</html>- \ No newline at end of file +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_key,$a6_escape,$a6_cut) ?></label></div></div></form> diff --git a/themes/default/pages/html/template/edit.tpl.php b/themes/default/pages/html/template/edit.tpl.php @@ -1,236 +1,137 @@ -<?php $attr1_debug_info = 'a:1:{s:5:"class";s:4:"main";}' ?><?php $attr1 = array('class'=>'main') ?><?php $attr1_class='main' ?><?php if (!headers_sent()) header('Content-Type: text/html; charset='.lang('CHARSET')) -?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<html> -<head> - <title><?php echo isset($attr1_title)?$attr1_title.' - ':(isset($windowTitle)?lang($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=<?php echo lang('CHARSET') ?>" /> - <meta name="MSSmartTagsPreventParsing" content="true" /> - <meta name="robots" content="noindex,nofollow" /> -<?php if (isset($windowMenu) && is_array($windowMenu)) foreach( $windowMenu as $menu ) - { - ?> - <link rel="section" href="<?php echo Html::url($actionName,@$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" /> -<?php - } -?><?php if (isset($metaList) && is_array($metaList)) foreach( $metaList as $meta ) - { - ?> - <link rel="<?php echo $meta['name'] ?>" href="<?php echo $meta['url'] ?>" title="<?php echo lang($meta['title']) ?>" /><?php - } -?> -<?php if(!empty($root_stylesheet)) { ?> - <link rel="stylesheet" type="text/css" href="<?php echo $root_stylesheet ?>" /> -<?php } ?> -<?php if($root_stylesheet!=$user_stylesheet) { ?> - <link rel="stylesheet" type="text/css" href="<?php echo $user_stylesheet ?>" /> -<?php } ?> -</head> -<body class="<?php echo $attr1_class ?>" <?php if (@$conf['interface']['application_mode']) { ?> style="padding:0px;margin:0px;"<?php } ?> > -<?php unset($attr1) ?><?php unset($attr1_class) ?><?php $attr2_debug_info = 'a:4:{s:4:"name";s:13:"TEMPLATE_SHOW";s:5:"width";s:3:"93%";s:10:"rowclasses";s:8:"odd,even";s:13:"columnclasses";s:5:"1,2,3";}' ?><?php $attr2 = array('name'=>'TEMPLATE_SHOW','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr2_name='TEMPLATE_SHOW' ?><?php $attr2_width='93%' ?><?php $attr2_rowclasses='odd,even' ?><?php $attr2_columnclasses='1,2,3' ?><?php - $coloumn_widths=array(); - if (!empty($attr2_widths)) - { - $column_widths = explode(',',$attr2_widths); - unset($attr2['widths']); - } - if (!empty($attr2_rowclasses)) - { - $row_classes = explode(',',$attr2_rowclasses); - $row_class_idx = 999; - unset($attr2['rowclasses']); - } - if (!empty($attr2_columnclasses)) - { - $column_classes = explode(',',$attr2_columnclasses); - unset($attr2['columnclasses']); - } - 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="'.$attr2_width.'">'; - } - if (!@$conf['interface']['application_mode'] ) - { - echo '<tr><td class="menu">'; - if ( !empty($attr2_icon) ) - echo '<img src="'.$image_dir.'icon_'.$attr2_icon.IMG_ICON_EXT.'" align="left" border="0">'; - if ( !isset($path) || is_array($path) ) +<?php $a2_name='';$a2_views='src,addel,srcelement,el,remove';$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='TEMPLATE_SHOW';$a2_width='93%';$a2_rowclasses='odd,even';$a2_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); - echo '<a href="'.$url.'" class="path">'.lang($name).'</a>'; - echo '&nbsp;&raquo;&nbsp;'; - } - echo '<span class="title">'.lang($windowTitle).'</span>'; - ?> - </td> + 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 ?> <!--<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_'.lang($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a>&nbsp;<?php + ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.langHtml($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a>&nbsp;<?php } ?> - </td>--> - </tr> - <tr><td class="subaction"> - <?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 = lang($menu['text']); - $tmp_key = strtoupper(lang($menu['key' ])); + $tmp_text = langHtml($menu['text']); + $tmp_key = strtoupper(langHtml($menu['key' ])); $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); if ( $tmp_pos !== false ) $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); + $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']) ) { - ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php echo $this->subActionName==$menu['subaction']?'_highlight':'' ?>"><?php echo $tmp_text ?></a>&nbsp;&nbsp;&nbsp;<?php + $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 class="menu_disabled" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu_disabled"><?php echo $tmp_text ?></span>&nbsp;&nbsp;&nbsp;<?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'] ) { - ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('MENU_HELP_DESC') ?>" class="menu" style="cursor:help;"><?php echo @$conf['help']['only_question_mark']?'?':lang('MENU_HELP') ?></a><?php + ?><a 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 } - ?></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" style="margin-top:10px; margin-bottom:10px;padding:5px; text-align:center;"> + <dl class="notice"> <?php foreach( $notices as $notice_idx=>$notice ) { ?> - <br><table class="notice" width="100%"> <?php if ($notice['name']!='') { ?> - <tr> - <td colspan="2" class="subaction" style="padding:2px; white-space:nowrap; border-bottom:1px solid black;"><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?> - </td> - </tr> + <dt><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?></dt> <?php } ?> - <tr class="notice_<?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 $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?> + <td style="padding:10px;padding-right:10px;padding-bottom:10px;"><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo langHtml($notice['key'],$notice['vars']) ?><?php if ($notice['status']=='error') { ?></strong><?php } ?> <?php if (!empty($notice['log'])) { ?><pre><?php echo htmlentities(implode("\n",$notice['log'])) ?></pre><?php } ?> </td> - </tr> - </table> + </dd> <?php } ?> - </td> - </tr> - <tr> - <td colspan="2"><fieldset></fieldset></td> - </tr> + </dl> <?php } ?> - <tr> - <td> - <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr2) ?><?php unset($attr2_name) ?><?php unset($attr2_width) ?><?php unset($attr2_rowclasses) ?><?php unset($attr2_columnclasses) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php - $row_class_idx++; - if ($row_class_idx > count($row_classes)) - $row_class_idx=1; - $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr3_class)) - $attr3_class=$row_class; - global $cell_column_nr; - $cell_column_nr=0; - $column_class_idx = 999; -?><tr class="<?php echo $attr3_class ?>"><?php unset($attr3) ?><?php $attr4_debug_info = 'a:1:{s:5:"class";s:2:"fx";}' ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr4_class)) - $attr4['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr4_rowspan) ) - $attr4['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><code> -<?php $attr5_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:4:"text";s:6:"escape";s:5:"false";}' ?><?php $attr5 = array('class'=>'text','var'=>'text','escape'=>false) ?><?php $attr5_class='text' ?><?php $attr5_var='text' ?><?php $attr5_escape=false ?><?php - if ( isset($attr5_prefix)&& isset($attr5_key)) - $attr5_key = $attr5_prefix.$attr5_key; - if ( isset($attr5_suffix)&& isset($attr5_key)) - $attr5_key = $attr5_key.$attr5_suffix; - if(empty($attr5_title)) - if (!empty($attr5_key)) - $attr5_title = lang($attr5_key.'_HELP'); - else - $attr5_title = ''; - if (empty($attr5_type)) - $tmp_tag = 'span'; - else - switch( $attr5_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = lang($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - if ( isset($$attr5_text)) - $tmp_text = lang($$attr5_text); - else - $tmp_text = lang($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = lang($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = lang($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?'.$attr5_var.'?'; - elseif (!empty($attr5_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr5_raw); - elseif (!empty($attr5_value)) - $tmp_text = $attr5_value; - else - $tmp_text = '&nbsp;'; - if ( $attr5_escape && empty($attr5_raw) && $tmp_text!='&nbsp;' ) - $tmp_text = htmlentities($tmp_text); - if ( !empty($attr5_maxlength) && intval($attr5_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr5_maxlength) ); - if (isset($attr5_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr5_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } +<div class="content"><div class="filler"> +<?php } ?><?php unset($a2_name,$a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php + $column_idx = 0; +?> +<tr +> +<?php $a4_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($a4_header) ?><?php $a5_class='text';$a5_var='text';$a5_escape=false;$a5_type='code';$a5_cut='both'; ?><?php + $a5_title = ''; + $tmp_tag = 'code'; +?><<?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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_var) ?><?php unset($attr5_escape) ?><code> -<?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2_debug_info = 'a:0:{}' ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr1_debug_info = 'a:0:{}' ?><?php $attr1 = array() ?> </table> - </td> - </tr> -</table> -</center> +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_var,$a5_escape,$a5_type,$a5_cut) ?></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,5 +139,4 @@ <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -<?php unset($attr1) ?><?php $attr0_debug_info = 'a:0:{}' ?><?php $attr0 = array() ?></body> -</html><?php unset($attr0) ?>- \ No newline at end of file +<?php } ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/template/el.tpl.php b/themes/default/pages/html/template/el.tpl.php @@ -1,95 +1,42 @@ -<?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='TEMPLATE_ELEMENTS';$a2_width='93%';$a2_rowclasses='odd,even';$a2_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$actionName; - $row_classes = explode(',',$a2_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a2_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="'.$a2_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 $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']); @@ -97,138 +44,219 @@ $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 } ?> +<div class="content"><div class="filler"> +<?php } ?><?php unset($a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $a4_width='100%';$a4_space='0px';$a4_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($a4_width,$a4_space,$a4_padding) ?><?php $a5_class='headline'; ?><?php + $column_idx = 0; +?> +<tr + class="headline" +> +<?php unset($a5_class) ?><?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 } ?> - <tr> - <td class="window"> - <table cellspacing="0" width="100%" cellpadding="4"> -<?php unset($a2_name,$a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php $a3_list='el';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php - $a3_list_tmp_key = $a3_key; - $a3_list_tmp_value = $a3_value; - $a3_list_extract = $a3_extract; - unset($a3_key); - unset($a3_value); - if ( !isset($$a3_list) || !is_array($$a3_list) ) - $$a3_list = array(); - foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) +><?php unset($a6_header) ?><?php $a7_class='text';$a7_key='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_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) ?></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 unset($a6_header) ?><?php $a7_class='text';$a7_key='type';$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) ?></td></tr><?php $a5_list='el';$a5_extract=true;$a5_key='list_key';$a5_value='list_value'; ?><?php + $a5_list_tmp_key = $a5_key; + $a5_list_tmp_value = $a5_value; + $a5_list_extract = $a5_extract; + unset($a5_key); + unset($a5_value); + if ( !isset($$a5_list) || !is_array($$a5_list) ) + $$a5_list = array(); + foreach( $$a5_list as $$a5_list_tmp_key => $$a5_list_tmp_value ) { - if ( $a3_list_extract ) + if ( $a5_list_extract ) { - if ( !is_array($$a3_list_tmp_value) ) + if ( !is_array($$a5_list_tmp_value) ) { - print_r($$a3_list_tmp_value); - die( 'not an array at key: '.$$a3_list_tmp_key ); + print_r($$a5_list_tmp_value); + die( 'not an array at key: '.$$a5_list_tmp_key ); } - extract($$a3_list_tmp_value); + extract($$a5_list_tmp_value); } -?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php $a4_class='data'; ?><?php - $row_idx++; +?><?php unset($a5_list,$a5_extract,$a5_key,$a5_value) ?><?php $a6_class='data'; ?><?php $column_idx = 0; ?> <tr class="data" > -<?php unset($a4_class) ?><?php $column_idx++; ?><td +<?php unset($a6_class) ?><?php $a7_header=false;$a7_url=$url; ?><?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=$desc;$a6_target='_self';$a6_url=$url;$a6_class=''; ?><?php - $params = array(); - $tmp_url = ''; - $tmp_url = $a6_url; -?><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_url,$a6_class) ?><?php $a7_align='left';$a7_elementtype=$type; ?><?php - $a7_tmp_image_file = $image_dir.'icon_el_'.$a7_elementtype.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_align,$a7_elementtype) ?><?php $a7_class='text';$a7_var='name';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a7_url ?>'); " +><?php unset($a7_header,$a7_url) ?><?php $a8_align='left';$a8_elementtype=$type; ?><?php + $a8_tmp_image_file = $image_dir.'icon_el_'.$a8_elementtype.IMG_ICON_EXT; + $a8_size = '16x16'; + $a8_tmp_title = basename($a8_tmp_image_file); +?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?> /><?php unset($a8_align,$a8_elementtype) ?><?php $a8_class='text';$a8_var='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 = isset($$a7_var)?$$a7_var:$langF('UNKNOWN'); +?><<?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($a7_class,$a7_var,$a7_escape,$a7_cut) ?></a></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_var,$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 $a6_class='text';$a6_key=$type;$a6_prefix='EL_';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_key = $a6_prefix.$a6_key; - $a6_title = ''; +><?php unset($a7_header) ?><?php $a8_class='text';$a8_key=$type;$a8_prefix='EL_';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_key = $a8_prefix.$a8_key; + $a8_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); +?><<?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($a6_class,$a6_key,$a6_prefix,$a6_escape,$a6_cut) ?></td></tr><?php } ?><?php $a3_empty='el'; ?><?php - if ( !isset($$a3_empty) ) - $a3_tmp_exec = empty($a3_empty); - elseif ( is_array($$a3_empty) ) - $a3_tmp_exec = (count($$a3_empty)==0); - elseif ( is_bool($$a3_empty) ) - $a3_tmp_exec = true; +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_prefix,$a8_escape,$a8_cut) ?></td></tr><?php } ?><?php + $column_idx = 0; +?> +<tr +> +<?php $a6_class='data';$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="data" +><?php unset($a6_class,$a6_header) ?><?php $a7_title='';$a7_type='';$a7_class='action';$a7_action='template';$a7_subaction='addel';$a7_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $a7_target = $view; + switch( $a7_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a7_action)?$a7_action:$this->actionName,'subaction'=>!empty($a7_subaction)?$a7_subaction:$this->subActionName,'id'=>!empty($a7_id)?$a7_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($a7_subaction)?$a7_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a7_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a7_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a7_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a7_frame ?>"<?php if (isset($a7_name)) { ?> name="<?php echo $a7_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a7_class ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_type,$a7_class,$a7_action,$a7_subaction,$a7_frame) ?><?php $a8_class='text';$a8_key='menu_template_addel';$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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></a></td></tr><?php $a5_empty='el'; ?><?php + if ( !isset($$a5_empty) ) + $a5_tmp_exec = empty($a5_empty); + elseif ( is_array($$a5_empty) ) + $a5_tmp_exec = (count($$a5_empty)==0); + elseif ( is_bool($$a5_empty) ) + $a5_tmp_exec = true; else - $a3_tmp_exec = empty( $$a3_empty ); - $a3_tmp_last_exec = $a3_tmp_exec; - if ( $a3_tmp_exec ) + $a5_tmp_exec = empty( $$a5_empty ); + $a5_tmp_last_exec = $a5_tmp_exec; + if ( $a5_tmp_exec ) { ?> -<?php unset($a3_empty) ?><?php - $row_idx++; +<?php unset($a5_empty) ?><?php $column_idx = 0; ?> <tr > -<?php $a5_colspan='2'; ?><?php $column_idx++; ?><td +<?php $a7_colspan='2';$a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> @@ -236,20 +264,30 @@ class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> colspan="2" -><?php unset($a5_colspan) ?><?php $a6_class='text';$a6_key='GLOBAL_NOT_FOUND';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +><?php unset($a7_colspan,$a7_header) ?><?php $a8_class='text';$a8_key='GLOBAL_NOT_FOUND';$a8_escape=true;$a8_cut='both'; ?><?php + $a8_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); +?><<?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($a6_class,$a6_key,$a6_escape,$a6_cut) ?></td></tr><?php } ?> </table> - </td> - </tr> -</table> -</center> +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></td></tr><?php } ?><?php + $column_idx = $last_column_idx; +?> +</table><?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/> @@ -257,5 +295,4 @@ <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -</body> -</html>- \ No newline at end of file +<?php } ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/template/extension.tpl.php b/themes/default/pages/html/template/extension.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 } ?> - <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_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(); @@ -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_PROP';$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='TEMPLATE_extension';$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='TEMPLATE_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 @@ -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_readonly=false;$a6_name='type';$a6_value='list';$a6_default=false;$a6_prefix='';$a6_suffix='';$a6_class='';$a6_onchange=''; ?><?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_readonly=false;$a6_name='type';$a6_value='list';$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; @@ -210,14 +72,7 @@ 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) ?></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='mime_types';$a6_name='extension';$a6_onchange='';$a6_title='';$a6_class='';$a6_addempty=true;$a6_multiple=false;$a6_size='1';$a6_lang=false; ?><?php +<?php /* #END-IF# */ ?><?php unset($a6_readonly,$a6_name,$a6_value,$a6_default,$a6_prefix,$a6_suffix,$a6_class,$a6_onchange) ?><?php $a6_list='mime_types';$a6_name='extension';$a6_onchange='';$a6_title='';$a6_class='';$a6_addempty=true;$a6_multiple=false;$a6_size='1';$a6_lang=false; ?><?php $a6_readonly=false; $a6_tmp_list = $$a6_list; if ($this->isEditable() && !$this->isEditMode()) @@ -271,27 +126,7 @@ 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 $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_readonly=false;$a6_name='type';$a6_value='text';$a6_default=false;$a6_prefix='';$a6_suffix='';$a6_class='';$a6_onchange=''; ?><?php +?><?php unset($a6_list,$a6_name,$a6_onchange,$a6_title,$a6_class,$a6_addempty,$a6_multiple,$a6_size,$a6_lang) ?></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_readonly=false;$a6_name='type';$a6_value='text';$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; @@ -300,61 +135,12 @@ if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="' 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) ?></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_default='';$a6_type='text';$a6_name='extensiontext';$a6_size='10';$a6_maxlength='256';$a6_onchange='';$a6_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; +<?php /* #END-IF# */ ?><?php unset($a6_readonly,$a6_name,$a6_value,$a6_default,$a6_prefix,$a6_suffix,$a6_class,$a6_onchange) ?><?php $a6_class='text';$a6_default='';$a6_type='text';$a6_name='extensiontext';$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 $a5_class='act';$a5_colspan='3'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> - class="act" - colspan="3" -><?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='extension'; ?><?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 + } } 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></fieldset></form> diff --git a/themes/default/pages/html/template/listing.tpl.php b/themes/default/pages/html/template/listing.tpl.php @@ -1,95 +1,56 @@ -<?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_views='add';$a2_back=false; ?><div class="header"> + <?php if ($a2_back) { ?> + <a href="javascript:void(0);" onclick="javascript:refreshActualView(this);"> + <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="dropdown"> + <?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 ?>');"><?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='GLOBAL_TEMPLATES';$a2_width='93%';$a2_rowclasses='odd,even';$a2_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$actionName; - $row_classes = explode(',',$a2_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a2_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="'.$a2_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()) { ?> +</div><?php unset($a2_name,$a2_views,$a2_back) ?><?php $a3_name='GLOBAL_TEMPLATES';$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']); @@ -97,135 +58,190 @@ $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($a2_name,$a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php $a3_list='templates';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php - $a3_list_tmp_key = $a3_key; - $a3_list_tmp_value = $a3_value; - $a3_list_extract = $a3_extract; - unset($a3_key); - unset($a3_value); - if ( !isset($$a3_list) || !is_array($$a3_list) ) - $$a3_list = array(); - foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) - { - if ( $a3_list_extract ) - { - if ( !is_array($$a3_list_tmp_value) ) - { - print_r($$a3_list_tmp_value); - die( 'not an array at key: '.$$a3_list_tmp_key ); - } - extract($$a3_list_tmp_value); - } -?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php $a4_class='data'; ?><?php - $row_idx++; +<div class="content"><div class="filler"> +<?php } ?><?php unset($a3_name,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $a4_width='100%';$a4_space='0px';$a4_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($a4_width,$a4_space,$a4_padding) ?><?php $a5_class='headline'; ?><?php $column_idx = 0; ?> <tr - class="data" + class="headline" > -<?php unset($a4_class) ?><?php $column_idx++; ?><td +<?php unset($a5_class) ?><?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_title='';$a6_target='cms_main';$a6_url=$url;$a6_class=''; ?><?php - $params = array(); - $tmp_url = ''; - $tmp_url = $a6_url; -?><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_url,$a6_class) ?><?php $a7_class='text';$a7_var='name';$a7_escape=true;$a7_cut='both'; ?><?php +><?php unset($a6_header) ?><?php $a7_class='text';$a7_key='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 = isset($$a7_var)?$$a7_var:$langF('UNKNOWN'); + $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_var,$a7_escape,$a7_cut) ?></a></td></tr><?php } ?><?php $a3_empty='templates'; ?><?php - if ( !isset($$a3_empty) ) - $a3_tmp_exec = empty($a3_empty); - elseif ( is_array($$a3_empty) ) - $a3_tmp_exec = (count($$a3_empty)==0); - elseif ( is_bool($$a3_empty) ) - $a3_tmp_exec = true; - else - $a3_tmp_exec = empty( $$a3_empty ); - $a3_tmp_last_exec = $a3_tmp_exec; - if ( $a3_tmp_exec ) +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?></td></tr><?php $a5_list='templates';$a5_extract=true;$a5_key='list_key';$a5_value='list_value'; ?><?php + $a5_list_tmp_key = $a5_key; + $a5_list_tmp_value = $a5_value; + $a5_list_extract = $a5_extract; + unset($a5_key); + unset($a5_value); + if ( !isset($$a5_list) || !is_array($$a5_list) ) + $$a5_list = array(); + foreach( $$a5_list as $$a5_list_tmp_key => $$a5_list_tmp_value ) { -?> -<?php unset($a3_empty) ?><?php - $row_idx++; + if ( $a5_list_extract ) + { + if ( !is_array($$a5_list_tmp_value) ) + { + print_r($$a5_list_tmp_value); + die( 'not an array at key: '.$$a5_list_tmp_key ); + } + extract($$a5_list_tmp_value); + } +?><?php unset($a5_list,$a5_extract,$a5_key,$a5_value) ?><?php $a6_class='data'; ?><?php $column_idx = 0; ?> <tr + class="data" > -<?php $a5_class='help'; ?><?php $column_idx++; ?><td +<?php unset($a6_class) ?><?php $a7_header=false;$a7_url=$url; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> - class="help" -><?php unset($a5_class) ?><?php $a6_class='text';$a6_text='GLOBAL_NO_TEMPLATES_AVAILABLE_DESC';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a7_url ?>'); " +><?php unset($a7_header,$a7_url) ?><?php $a8_class='text';$a8_var='name';$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) ?></td></tr><?php } ?><?php + $column_idx = $last_column_idx; +?> +</table><?php $a4_empty='templates'; ?><?php + if ( !isset($$a4_empty) ) + $a4_tmp_exec = empty($a4_empty); + elseif ( is_array($$a4_empty) ) + $a4_tmp_exec = (count($$a4_empty)==0); + elseif ( is_bool($$a4_empty) ) + $a4_tmp_exec = true; + else + $a4_tmp_exec = empty( $$a4_empty ); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_empty) ?><?php $a5_class='text';$a5_text='GLOBAL_NO_TEMPLATES_AVAILABLE_DESC';$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) ?><?php } ?><?php $a4_title='';$a4_type='';$a4_class='action';$a4_action='template';$a4_subaction='add';$a4_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $a4_target = $view; + switch( $a4_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a4_action)?$a4_action:$this->actionName,'subaction'=>!empty($a4_subaction)?$a4_subaction:$this->subActionName,'id'=>!empty($a4_id)?$a4_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($a4_subaction)?$a4_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a4_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a4_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a4_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a4_frame ?>"<?php if (isset($a4_name)) { ?> name="<?php echo $a4_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a4_class ?>"<?php if (isset($a4_accesskey)) echo ' accesskey="'.$a4_accesskey.'"' ?> title="<?php echo encodeHtml($a4_title) ?>"><?php unset($a4_title,$a4_type,$a4_class,$a4_action,$a4_subaction,$a4_frame) ?><?php $a5_class='text';$a5_key='menu_template_add';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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 $a5_class ?>" title="<?php echo $a5_title ?>"><?php + $langF = $a5_escape?'langHtml':'lang'; + $tmp_text = $langF($a5_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></tr><?php } ?> </table> - </td> - </tr> -</table> -</center> +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></a><?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/> @@ -233,5 +249,4 @@ <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -</body> -</html>- \ No newline at end of file +<?php } ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/template/name.tpl.php b/themes/default/pages/html/template/name.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 } ?> - <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_views='extension';$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_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(); @@ -46,307 +30,137 @@ $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_PROP';$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='TEMPLATE_NAME';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?><?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='TEMPLATE_NAME';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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 $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($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_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++; - $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) ?><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 } ?></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_key='file_extension';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?></<?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='text';$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><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 } ?></fieldset><?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_key='file_extension';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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); +?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php + $langF = $a5_escape?'langHtml':'lang'; + $tmp_text = $langF($a5_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) ?></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='template';$a6_subaction='extension'; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></div><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_title='';$a5_type='';$a5_class='';$a5_action='template';$a5_subaction='extension';$a5_frame='_self'; ?><?php $params = array(); $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) ?><?php $a7_class='text';$a7_var='extension';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; + $a5_target = $view; + switch( $a5_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a5_action)?$a5_action:$this->actionName,'subaction'=>!empty($a5_subaction)?$a5_subaction:$this->subActionName,'id'=>!empty($a5_id)?$a5_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($a5_subaction)?$a5_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a5_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a5_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a5_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a5_frame ?>"<?php if (isset($a5_name)) { ?> name="<?php echo $a5_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a5_class ?>"<?php if (isset($a5_accesskey)) echo ' accesskey="'.$a5_accesskey.'"' ?> title="<?php echo encodeHtml($a5_title) ?>"><?php unset($a5_title,$a5_type,$a5_class,$a5_action,$a5_subaction,$a5_frame) ?><?php $a6_class='text';$a6_var='extension';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_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'); +?><<?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($a7_class,$a7_var,$a7_escape,$a7_cut) ?></a></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_key='file_mimetype';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?></a></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_key='file_mimetype';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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); +?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php + $langF = $a5_escape?'langHtml':'lang'; + $tmp_text = $langF($a5_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) ?></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='template';$a6_subaction='extension'; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></div><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_title='';$a5_type='';$a5_class='';$a5_action='template';$a5_subaction='extension';$a5_frame='_self'; ?><?php $params = array(); $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) ?><?php $a7_class='text';$a7_var='mime_type';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; + $a5_target = $view; + switch( $a5_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a5_action)?$a5_action:$this->actionName,'subaction'=>!empty($a5_subaction)?$a5_subaction:$this->subActionName,'id'=>!empty($a5_id)?$a5_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($a5_subaction)?$a5_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a5_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a5_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a5_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a5_frame ?>"<?php if (isset($a5_name)) { ?> name="<?php echo $a5_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a5_class ?>"<?php if (isset($a5_accesskey)) echo ' accesskey="'.$a5_accesskey.'"' ?> title="<?php echo encodeHtml($a5_title) ?>"><?php unset($a5_title,$a5_type,$a5_class,$a5_action,$a5_subaction,$a5_frame) ?><?php $a6_class='text';$a6_var='mime_type';$a6_escape=true;$a6_cut='both'; ?><?php + $a6_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'); +?><<?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($a7_class,$a7_var,$a7_escape,$a7_cut) ?></a></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($a6_class,$a6_var,$a6_escape,$a6_cut) ?></a></div></div></form> diff --git a/themes/default/pages/html/template/pages.tpl.php b/themes/default/pages/html/template/pages.tpl.php @@ -1,148 +1,33 @@ -<?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='pages';$a2_icon='template';$a2_width='93%';$a2_rowclasses='odd,even';$a2_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$a2_icon; - $row_classes = explode(',',$a2_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a2_columnclasses); - $row_idx = 0; +<?php $a2_width='100%';$a2_space='0px';$a2_padding='0px'; ?><?php + $last_column_idx = @$column_idx; $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="'.$a2_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> + $coloumn_widths = array(); + $row_classes = array(); + $column_classes = array(); +?><table class="%class%" cellspacing="0px" width="100%" cellpadding="0px"> +<?php unset($a2_width,$a2_space,$a2_padding) ?><?php $a3_class='headline'; ?><?php + $column_idx = 0; +?> +<tr + class="headline" +> +<?php unset($a3_class) ?><?php $a4_header=false; ?><?php $column_idx++; ?><td +<?php if (!empty($column_widths)) { ?> + width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?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 if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> - <tr> - <td class="window"> - <table cellspacing="0" width="100%" cellpadding="4"> -<?php unset($a2_name,$a2_icon,$a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php $a3_list='pages';$a3_extract=false;$a3_key='pageid';$a3_value='name'; ?><?php +><?php unset($a4_header) ?><?php $a5_class='text';$a5_key='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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></td></tr><?php $a3_list='pages';$a3_extract=false;$a3_key='pageid';$a3_value='name'; ?><?php $a3_list_tmp_key = $a3_key; $a3_list_tmp_value = $a3_value; $a3_list_extract = $a3_extract; @@ -161,28 +46,52 @@ } extract($$a3_list_tmp_value); } -?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php - $row_idx++; +?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php $a4_class='data'; ?><?php $column_idx = 0; ?> <tr + class="data" > -<?php $column_idx++; ?><td +<?php unset($a4_class) ?><?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_icon='page';$a6_align='left'; ?><?php +><?php unset($a5_header) ?><?php $a6_icon='page';$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_title='';$a6_target='cms_main';$a6_class='';$a6_action='main';$a6_subaction='page';$a6_id=$pageid; ?><?php +?><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_title='';$a6_type='';$a6_target='cms_main';$a6_class='';$a6_action='main';$a6_subaction='page';$a6_id=$pageid;$a6_frame='_self'; ?><?php $params = array(); $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) ?><?php $a7_class='text';$a7_var='name';$a7_escape=true;$a7_cut='both'; ?><?php + $params[REQ_PARAM_TARGET] = $a6_target; + 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_target,$a6_class,$a6_action,$a6_subaction,$a6_id,$a6_frame) ?><?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 $a7_class ?>" title="<?php echo $a7_title ?>"><?php @@ -191,17 +100,7 @@ $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) ?></a></td></tr><?php } ?> </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 } ?> -</body> -</html>- \ No newline at end of file +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_escape,$a7_cut) ?></a></td></tr><?php } ?><?php + $column_idx = $last_column_idx; +?> +</table>+ \ No newline at end of file diff --git a/themes/default/pages/html/template/prop.tpl.php b/themes/default/pages/html/template/prop.tpl.php @@ -0,0 +1,17 @@ +<?php $a2_name='';$a2_views='name,extension,pages';$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) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/template/remove.tpl.php b/themes/default/pages/html/template/remove.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_icon='template';$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 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_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 +?><?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 @@ -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_class='text';$a6_var='name';$a6_escape=true;$a6_cut='both'; ?><?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_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 @@ -210,35 +72,7 @@ $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 $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('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++; - $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_default=false;$a6_readonly=false;$a6_name='delete'; ?><?php +?></<?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='delete'; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; if ( isset($$a6_name) ) $checked = $$a6_name; @@ -249,7 +83,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='delete'; ?><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='delete'; ?><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 @@ -258,46 +93,4 @@ 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></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='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(); -</script> -<?php unset($a2_field) ?></body> -</html>- \ No newline at end of file +?></<?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/template/src.tpl.php b/themes/default/pages/html/template/src.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='TEMPLATE_SOURCE';$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='TEMPLATE_SOURCE';$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,93 +84,148 @@ $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_name='src';$a6_rows='25';$a6_cols='80';$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='src';$a7_rows='25';$a7_cols='80';$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'; ?><?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) ?><?php $a7_false=$mode=="edit"; ?><?php + if (gettype($a7_false) === '' && gettype($a7_false) === '1') + $a7_tmp_exec = $$a7_false == false; + else + $a7_tmp_exec = $a7_false == false; + $a7_tmp_last_exec = $a7_tmp_exec; + if ( $a7_tmp_exec ) + { +?> +<?php unset($a7_false) ?><?php $a8_title='';$a8_type='';$a8_class='action';$a8_action='template';$a8_subaction='srcelement';$a8_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $a8_target = $view; + switch( $a8_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a8_action)?$a8_action:$this->actionName,'subaction'=>!empty($a8_subaction)?$a8_subaction:$this->subActionName,'id'=>!empty($a8_id)?$a8_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($a8_subaction)?$a8_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a8_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a8_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a8_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a8_frame ?>"<?php if (isset($a8_name)) { ?> name="<?php echo $a8_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a8_class ?>"<?php if (isset($a8_accesskey)) echo ' accesskey="'.$a8_accesskey.'"' ?> title="<?php echo encodeHtml($a8_title) ?>"><?php unset($a8_title,$a8_type,$a8_class,$a8_action,$a8_subaction,$a8_frame) ?><?php $a9_class='text';$a9_key='menu_template_srcelement';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a9_class ?>" title="<?php echo $a9_title ?>"><?php + $langF = $a9_escape?'langHtml':'lang'; + $tmp_text = $langF($a9_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_key,$a9_escape,$a9_cut) ?></a><?php } ?></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/> @@ -221,12 +233,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='src'; ?><?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='src'; ?><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/template/srcelement.tpl.php b/themes/default/pages/html/template/srcelement.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 } ?> - <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_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(); @@ -46,213 +30,84 @@ $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_widths='10px,150px';$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 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_widths,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $a4_present='elements'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><?php $a3_present='elements'; ?><?php + $a3_tmp_exec = isset($$a3_present); + $a3_tmp_last_exec = $a3_tmp_exec; + if ( $a3_tmp_exec ) { ?> -<?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 } ?> -><?php $a7_readonly=false;$a7_name='type';$a7_value='addelement';$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; +<?php unset($a3_present) ?><?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_readonly=false;$a6_name='type';$a6_value='addelement';$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 - $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) ?></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_for='type_addelement'; ?><label for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>"><?php unset($a7_for) ?><?php $a8_class='text';$a8_key='value';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; + $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_addelement'; ?><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_key='value';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_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_key); +?><<?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($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label></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_list='elements';$a7_name='elementid';$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 echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_list='elements';$a6_name='elementid';$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; if ($this->isEditable() && !$this->isEditMode()) { - echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; + echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; } else { -if ( $a7_addempty!==FALSE ) +if ( $a6_addempty!==FALSE ) { - if ($a7_addempty===TRUE) - $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; + if ($a6_addempty===TRUE) + $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; else - $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_tmp_list; + $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_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 ($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).'"'; ?>><?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($$a6_name) && isset($a6_tmp_list[$$a6_name]) ) + $a6_tmp_default = $$a6_name; + elseif ( isset($a6_default) ) + $a6_tmp_default = $a6_default; else - $a7_tmp_default = ''; - foreach( $a7_tmp_list as $box_key=>$box_value ) + $a6_tmp_default = ''; + foreach( $a6_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -260,7 +115,7 @@ echo ' size="'.intval($a7_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a7_lang ) + elseif( $a6_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -269,110 +124,69 @@ 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="'.$a6_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a6_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($$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($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?></td></tr><?php } ?><?php $a4_present='writable_elements'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +?><?php unset($a6_list,$a6_name,$a6_onchange,$a6_title,$a6_class,$a6_addempty,$a6_multiple,$a6_size,$a6_lang) ?></div></div><?php } ?><?php $a3_present='writable_elements'; ?><?php + $a3_tmp_exec = isset($$a3_present); + $a3_tmp_last_exec = $a3_tmp_exec; + if ( $a3_tmp_exec ) { ?> -<?php unset($a4_present) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_colspan='3'; ?><?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="3" -><?php unset($a6_colspan) ?><fieldset><?php if(isset($a7_title)) { ?><legend><?php if(isset($a7_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a7_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a7_title) ?></legend><?php } ?></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 $a7_readonly=false;$a7_name='type';$a7_value='addicon';$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; +<?php unset($a3_present) ?><fieldset><?php if(isset($a4_title)) { ?><legend><?php if(isset($a4_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a4_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a4_title) ?>&nbsp;&nbsp;</legend><?php } ?></fieldset><?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_readonly=false;$a6_name='type';$a6_value='addicon';$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 - $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) ?></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_for='type_addicon'; ?><label for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>"><?php unset($a7_for) ?><?php $a8_class='text';$a8_key='GLOBAL_ICON';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; + $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_addicon'; ?><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_key='GLOBAL_ICON';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_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_key); +?><<?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($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label></td><?php $a6_rowspan='3'; ?><?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 } ?> - rowspan="3" -><?php unset($a6_rowspan) ?><?php $a7_list='writable_elements';$a7_name='writable_elementid';$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 echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_list='writable_elements';$a6_name='writable_elementid';$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; if ($this->isEditable() && !$this->isEditMode()) { - echo empty($$a7_name)?'- '.lang('EMPTY').' -':$a7_tmp_list[$$a7_name]; + echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; } else { -if ( $a7_addempty!==FALSE ) +if ( $a6_addempty!==FALSE ) { - if ($a7_addempty===TRUE) - $a7_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a7_tmp_list; + if ($a6_addempty===TRUE) + $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; else - $a7_tmp_list = array(''=>'- '.lang($a7_addempty).' -')+$a7_tmp_list; + $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_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 ($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).'"'; ?>><?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($$a6_name) && isset($a6_tmp_list[$$a6_name]) ) + $a6_tmp_default = $$a6_name; + elseif ( isset($a6_default) ) + $a6_tmp_default = $a6_default; else - $a7_tmp_default = ''; - foreach( $a7_tmp_list as $box_key=>$box_value ) + $a6_tmp_default = ''; + foreach( $a6_tmp_list as $box_key=>$box_value ) { if ( is_array($box_value) ) { @@ -380,7 +194,7 @@ echo ' size="'.intval($a7_size).'"'; $box_title = $box_value['title']; $box_value = $box_value['value']; } - elseif( $a7_lang ) + elseif( $a6_lang ) { $box_title = lang( $box_value.'_DESC'); $box_value = lang( $box_value ); @@ -389,125 +203,51 @@ 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="'.$a6_class.'" value="'.$box_key.'" title="'.$box_title.'"'; + if ((string)$box_key==$a6_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($$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($a7_list,$a7_name,$a7_onchange,$a7_title,$a7_class,$a7_addempty,$a7_multiple,$a7_size,$a7_lang) ?></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 $a7_readonly=false;$a7_name='type';$a7_value='addifempty';$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; +?><?php unset($a6_list,$a6_name,$a6_onchange,$a6_title,$a6_class,$a6_addempty,$a6_multiple,$a6_size,$a6_lang) ?></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_readonly=false;$a6_name='type';$a6_value='addifempty';$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 - $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) ?></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_for='type_addifempty'; ?><label for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>"><?php unset($a7_for) ?><?php $a8_class='text';$a8_key='TEMPLATE_SRC_IFEMPTY';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; + $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_addifempty'; ?><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_key='TEMPLATE_SRC_IFEMPTY';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_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_key); +?><<?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($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label></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 $a7_readonly=false;$a7_name='type';$a7_value='addifnotempty';$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; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?></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_readonly=false;$a6_name='type';$a6_value='addifnotempty';$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 - $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) ?></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_for='type_addifnotempty'; ?><label for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>"><?php unset($a7_for) ?><?php $a8_class='text';$a8_key='TEMPLATE_SRC_IFEMPTY';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; + $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_addifnotempty'; ?><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_key='TEMPLATE_SRC_IFEMPTY';$a7_escape=true;$a7_cut='both'; ?><?php + $a7_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_key); +?><<?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($a8_class,$a8_key,$a8_escape,$a8_cut) ?></label></td></tr><?php } ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a5_class='act';$a5_colspan='3'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> - class="act" - colspan="3" -><?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> -</body> -</html>- \ No newline at end of file +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?></div></div><?php } ?></form> diff --git a/themes/default/pages/html/templatelist/show.tpl.php b/themes/default/pages/html/templatelist/show.tpl.php @@ -0,0 +1,254 @@ +<?php $a2_name='';$a2_views='add';$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 $a3_name='GLOBAL_TEMPLATES';$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_name,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $a4_width='100%';$a4_space='0px';$a4_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($a4_width,$a4_space,$a4_padding) ?><?php $a5_class='headline'; ?><?php + $column_idx = 0; +?> +<tr + class="headline" +> +<?php unset($a5_class) ?><?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 unset($a6_header) ?><?php $a7_class='text';$a7_key='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_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) ?></td></tr><?php $a5_list='templates';$a5_extract=true;$a5_key='list_key';$a5_value='list_value'; ?><?php + $a5_list_tmp_key = $a5_key; + $a5_list_tmp_value = $a5_value; + $a5_list_extract = $a5_extract; + unset($a5_key); + unset($a5_value); + if ( !isset($$a5_list) || !is_array($$a5_list) ) + $$a5_list = array(); + foreach( $$a5_list as $$a5_list_tmp_key => $$a5_list_tmp_value ) + { + if ( $a5_list_extract ) + { + if ( !is_array($$a5_list_tmp_value) ) + { + print_r($$a5_list_tmp_value); + die( 'not an array at key: '.$$a5_list_tmp_key ); + } + extract($$a5_list_tmp_value); + } +?><?php unset($a5_list,$a5_extract,$a5_key,$a5_value) ?><?php $a6_class='data'; ?><?php + $column_idx = 0; +?> +<tr + class="data" +> +<?php unset($a6_class) ?><?php $a7_header=false;$a7_url=$url; ?><?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 } ?> + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a7_url ?>'); " +><?php unset($a7_header,$a7_url) ?><?php $a8_class='text';$a8_var='name';$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) ?></td></tr><?php } ?><?php + $column_idx = $last_column_idx; +?> +</table><?php $a4_empty='templates'; ?><?php + if ( !isset($$a4_empty) ) + $a4_tmp_exec = empty($a4_empty); + elseif ( is_array($$a4_empty) ) + $a4_tmp_exec = (count($$a4_empty)==0); + elseif ( is_bool($$a4_empty) ) + $a4_tmp_exec = true; + else + $a4_tmp_exec = empty( $$a4_empty ); + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) + { +?> +<?php unset($a4_empty) ?><?php $a5_class='text';$a5_text='GLOBAL_NO_TEMPLATES_AVAILABLE_DESC';$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) ?><?php } ?><?php $a4_title='';$a4_type='';$a4_class='action';$a4_action='template';$a4_subaction='add';$a4_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $a4_target = $view; + switch( $a4_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a4_action)?$a4_action:$this->actionName,'subaction'=>!empty($a4_subaction)?$a4_subaction:$this->subActionName,'id'=>!empty($a4_id)?$a4_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($a4_subaction)?$a4_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a4_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a4_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a4_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a4_frame ?>"<?php if (isset($a4_name)) { ?> name="<?php echo $a4_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a4_class ?>"<?php if (isset($a4_accesskey)) echo ' accesskey="'.$a4_accesskey.'"' ?> title="<?php echo encodeHtml($a4_title) ?>"><?php unset($a4_title,$a4_type,$a4_class,$a4_action,$a4_subaction,$a4_frame) ?><?php $a5_class='text';$a5_key='menu_template_add';$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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></a><?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/title/show.tpl.php b/themes/default/pages/html/title/show.tpl.php @@ -1,67 +1,92 @@ -<?php $a1_class='title'; ?><?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="title" <?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_width='100%';$a2_space='0';$a2_padding='5'; ?><?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="0" width="100%" cellpadding="5"> -<?php unset($a2_width,$a2_space,$a2_padding) ?><?php - $row_idx++; - $column_idx = 0; +<?php $a2_class='title'; ?><div class="<?php echo $a2_class ?>"><?php unset($a2_class) ?><?php $a3_icon='database';$a3_align='left'; ?><?php + $a3_tmp_image_file = $image_dir.'icon_'.$a3_icon.IMG_ICON_EXT; + $a3_size = '16x16'; + $a3_tmp_title = basename($a3_tmp_image_file); +?><img alt="<?php echo $a3_tmp_title; if (isset($a3_size)) { echo ' ('; list($a3_tmp_width,$a3_tmp_height)=explode('x',$a3_size);echo $a3_tmp_width.'x'.$a3_tmp_height; echo')';} ?>" src="<?php echo $a3_tmp_image_file ?>" border="0"<?php if(isset($a3_align)) echo ' align="'.$a3_align.'"' ?><?php if (isset($a3_size)) { list($a3_tmp_width,$a3_tmp_height)=explode('x',$a3_size);echo ' width="'.$a3_tmp_width.'" height="'.$a3_tmp_height.'"';} ?> /><?php unset($a3_icon,$a3_align) ?><?php $a3_present='dbname'; ?><?php + $a3_tmp_exec = isset($$a3_present); + $a3_tmp_last_exec = $a3_tmp_exec; + if ( $a3_tmp_exec ) + { ?> -<tr -> -<?php $a4_width='20%';$a4_class='title'; ?><?php $column_idx++; ?><td - width="20%" - class="title" -><?php unset($a4_width,$a4_class) ?><?php $a5_icon='database';$a5_align='left'; ?><?php - $a5_tmp_image_file = $image_dir.'icon_'.$a5_icon.IMG_ICON_EXT; - $a5_size = '16x16'; - $a5_tmp_title = basename($a5_tmp_image_file); -?><img alt="<?php echo $a5_tmp_title; if (isset($a5_size)) { echo ' ('; list($a5_tmp_width,$a5_tmp_height)=explode('x',$a5_size);echo $a5_tmp_width.'x'.$a5_tmp_height; echo')';} ?>" src="<?php echo $a5_tmp_image_file ?>" border="0"<?php if(isset($a5_align)) echo ' align="'.$a5_align.'"' ?><?php if (isset($a5_size)) { list($a5_tmp_width,$a5_tmp_height)=explode('x',$a5_size);echo ' width="'.$a5_tmp_width.'" height="'.$a5_tmp_height.'"';} ?>><?php unset($a5_icon,$a5_align) ?><?php $a5_title=lang('database');$a5_class='text';$a5_var='dbname';$a5_maxlength='25';$a5_escape=true;$a5_cut='both'; ?><?php +<?php unset($a3_present) ?><?php $a4_title=lang('database');$a4_class='titletext';$a4_var='dbname';$a4_maxlength='25';$a4_escape=true;$a4_cut='both'; ?><?php $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 = Text::maxLength( $tmp_text,intval($a5_maxlength),'..',constant('STR_PAD_'.strtoupper($a5_cut)) ); +?><<?php echo $tmp_tag ?> class="<?php echo $a4_class ?>" title="<?php echo $a4_title ?>"><?php + $langF = $a4_escape?'langHtml':'lang'; + $tmp_text = isset($$a4_var)?$$a4_var:$langF('UNKNOWN'); + $tmp_text = Text::maxLength( $tmp_text,intval($a4_maxlength),'..',constant('STR_PAD_'.strtoupper($a4_cut)) ); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a4_title,$a4_class,$a4_var,$a4_maxlength,$a4_escape,$a4_cut) ?><?php $a4_class='titletext';$a4_raw=' - ';$a4_escape=true;$a4_cut='both'; ?><?php + $a4_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a4_class ?>" title="<?php echo $a4_title ?>"><?php + $langF = $a4_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a4_raw); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a5_title,$a5_class,$a5_var,$a5_maxlength,$a5_escape,$a5_cut) ?><?php $a5_class='text';$a5_raw='_-_';$a5_escape=true;$a5_cut='both'; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a4_class,$a4_raw,$a4_escape,$a4_cut) ?><?php } ?><?php $a3_title=$buildinfo;$a3_class='titletext';$a3_var='cms_title';$a3_escape=true;$a3_cut='both'; ?><?php + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a3_class ?>" title="<?php echo $a3_title ?>"><?php + $langF = $a3_escape?'langHtml':'lang'; + $tmp_text = isset($$a3_var)?$$a3_var:$langF('UNKNOWN'); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a3_title,$a3_class,$a3_var,$a3_escape,$a3_cut) ?></div><?php $a2_class='search'; ?><div class="<?php echo $a2_class ?>"><?php unset($a2_class) ?><?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()) + { + $a3_method = 'POST'; + } + else + { + $a3_method = 'GET'; + $a3_subaction = $subActionName; + } + } + 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 $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($a3_name,$a3_target,$a3_method,$a3_enctype,$a3_type) ?><?php $a4_icon='search';$a4_align='left'; ?><?php + $a4_tmp_image_file = $image_dir.'icon_'.$a4_icon.IMG_ICON_EXT; + $a4_size = '16x16'; + $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_icon,$a4_align) ?><?php $a4_class='text';$a4_default='';$a4_type='text';$a4_name='text';$a4_value=lang('search');$a4_size='';$a4_maxlength='256';$a4_onchange='';$a4_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a4_readonly=true; + if ($a4_readonly && empty($$a4_name)) $$a4_name = '- '.lang('EMPTY').' -'; + if(!isset($a4_default)) $a4_default=''; + $tmp_value = Text::encodeHtml(isset($$a4_name)?$$a4_name:$a4_default); +?><?php if (!$a4_readonly || $a4_type=='hidden') { +?><input<?php if ($a4_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a4_name ?><?php if ($a4_readonly) echo '_disabled' ?>" name="<?php echo $a4_name ?><?php if ($a4_readonly) echo '_disabled' ?>" type="<?php echo $a4_type ?>" maxlength="<?php echo $a4_maxlength ?>" class="<?php echo str_replace(',',' ',$a4_class) ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($a4_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php +if ($a4_readonly) { +?><input type="hidden" id="id_<?php echo $a4_name ?>" name="<?php echo $a4_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 $a4_class ?>"><?php echo $tmp_value ?></span></a><?php } ?><?php unset($a4_class,$a4_default,$a4_type,$a4_name,$a4_value,$a4_size,$a4_maxlength,$a4_onchange,$a4_readonly) ?><?php $a4_class='dropdown'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='text';$a5_raw='';$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 @@ -70,124 +95,266 @@ $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_raw,$a5_escape,$a5_cut) ?><?php $a5_title=$buildinfo;$a5_class='text';$a5_var='cms_title';$a5_escape=true;$a5_cut='both'; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_raw,$a5_escape,$a5_cut) ?></div></form> +</div><?php $a2_class='user'; ?><div class="<?php echo $a2_class ?>"><?php unset($a2_class) ?><?php $a3_icon='user';$a3_align='left'; ?><?php + $a3_tmp_image_file = $image_dir.'icon_'.$a3_icon.IMG_ICON_EXT; + $a3_size = '16x16'; + $a3_tmp_title = basename($a3_tmp_image_file); +?><img alt="<?php echo $a3_tmp_title; if (isset($a3_size)) { echo ' ('; list($a3_tmp_width,$a3_tmp_height)=explode('x',$a3_size);echo $a3_tmp_width.'x'.$a3_tmp_height; echo')';} ?>" src="<?php echo $a3_tmp_image_file ?>" border="0"<?php if(isset($a3_align)) echo ' align="'.$a3_align.'"' ?><?php if (isset($a3_size)) { list($a3_tmp_width,$a3_tmp_height)=explode('x',$a3_size);echo ' width="'.$a3_tmp_width.'" height="'.$a3_tmp_height.'"';} ?> /><?php unset($a3_icon,$a3_align) ?><?php $a3_class='titletext';$a3_var='userfullname';$a3_maxlength='25';$a3_escape=true;$a3_cut='both'; ?><?php + $a3_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'); +?><<?php echo $tmp_tag ?> class="<?php echo $a3_class ?>" title="<?php echo $a3_title ?>"><?php + $langF = $a3_escape?'langHtml':'lang'; + $tmp_text = isset($$a3_var)?$$a3_var:$langF('UNKNOWN'); + $tmp_text = Text::maxLength( $tmp_text,intval($a3_maxlength),'..',constant('STR_PAD_'.strtoupper($a3_cut)) ); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a5_title,$a5_class,$a5_var,$a5_escape,$a5_cut) ?></td><?php $a4_width='20%';$a4_class='title'; ?><?php $column_idx++; ?><td - width="20%" - class="title" -><?php unset($a4_width,$a4_class) ?><?php $a5_present='projectname'; ?><?php - $a5_tmp_exec = isset($$a5_present); - $a5_tmp_last_exec = $a5_tmp_exec; - if ( $a5_tmp_exec ) +?></<?php echo $tmp_tag ?>><?php unset($a3_class,$a3_var,$a3_maxlength,$a3_escape,$a3_cut) ?><?php $a3_class='dropdown'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><?php $a4_title=lang('USER_PROFILE_DESC');$a4_type='post';$a4_class='';$a4_action='start';$a4_subaction='profile';$a4_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $a4_target = $view; + switch( $a4_type ) { -?> -<?php unset($a5_present) ?><?php $a6_icon='project';$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_title=lang('project');$a6_class='text';$a6_var='projectname';$a6_maxlength='20';$a6_escape=true;$a6_cut='both'; ?><?php + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a4_action)?$a4_action:$this->actionName,'subaction'=>!empty($a4_subaction)?$a4_subaction:$this->subActionName,'id'=>!empty($a4_id)?$a4_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($a4_subaction)?$a4_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a4_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a4_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a4_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a4_frame ?>"<?php if (isset($a4_name)) { ?> name="<?php echo $a4_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a4_class ?>"<?php if (isset($a4_accesskey)) echo ' accesskey="'.$a4_accesskey.'"' ?> title="<?php echo encodeHtml($a4_title) ?>"><?php unset($a4_title,$a4_type,$a4_class,$a4_action,$a4_subaction,$a4_frame) ?><?php $a5_icon='user';$a5_align='left'; ?><?php + $a5_tmp_image_file = $image_dir.'icon_'.$a5_icon.IMG_ICON_EXT; + $a5_size = '16x16'; + $a5_tmp_title = basename($a5_tmp_image_file); +?><img alt="<?php echo $a5_tmp_title; if (isset($a5_size)) { echo ' ('; list($a5_tmp_width,$a5_tmp_height)=explode('x',$a5_size);echo $a5_tmp_width.'x'.$a5_tmp_height; echo')';} ?>" src="<?php echo $a5_tmp_image_file ?>" border="0"<?php if(isset($a5_align)) echo ' align="'.$a5_align.'"' ?><?php if (isset($a5_size)) { list($a5_tmp_width,$a5_tmp_height)=explode('x',$a5_size);echo ' width="'.$a5_tmp_width.'" height="'.$a5_tmp_height.'"';} ?> /><?php unset($a5_icon,$a5_align) ?><?php $a5_class='text';$a5_key='profile';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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 = Text::maxLength( $tmp_text,intval($a6_maxlength),'..',constant('STR_PAD_'.strtoupper($a6_cut)) ); +?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php + $langF = $a5_escape?'langHtml':'lang'; + $tmp_text = $langF($a5_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_title,$a6_class,$a6_var,$a6_maxlength,$a6_escape,$a6_cut) ?><?php } ?></td><?php $a4_width='10%';$a4_class='title'; ?><?php $column_idx++; ?><td - width="10%" - class="title" -><?php unset($a4_width,$a4_class) ?><?php $a5_icon='model';$a5_align='left'; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></a><?php $a4_title=lang('start');$a4_type='post';$a4_class='';$a4_action='start';$a4_subaction='start';$a4_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $a4_target = $view; + switch( $a4_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a4_action)?$a4_action:$this->actionName,'subaction'=>!empty($a4_subaction)?$a4_subaction:$this->subActionName,'id'=>!empty($a4_id)?$a4_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($a4_subaction)?$a4_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a4_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a4_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a4_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a4_frame ?>"<?php if (isset($a4_name)) { ?> name="<?php echo $a4_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a4_class ?>"<?php if (isset($a4_accesskey)) echo ' accesskey="'.$a4_accesskey.'"' ?> title="<?php echo encodeHtml($a4_title) ?>"><?php unset($a4_title,$a4_type,$a4_class,$a4_action,$a4_subaction,$a4_frame) ?><?php $a5_icon='start';$a5_align='left'; ?><?php $a5_tmp_image_file = $image_dir.'icon_'.$a5_icon.IMG_ICON_EXT; $a5_size = '16x16'; $a5_tmp_title = basename($a5_tmp_image_file); -?><img alt="<?php echo $a5_tmp_title; if (isset($a5_size)) { echo ' ('; list($a5_tmp_width,$a5_tmp_height)=explode('x',$a5_size);echo $a5_tmp_width.'x'.$a5_tmp_height; echo')';} ?>" src="<?php echo $a5_tmp_image_file ?>" border="0"<?php if(isset($a5_align)) echo ' align="'.$a5_align.'"' ?><?php if (isset($a5_size)) { list($a5_tmp_width,$a5_tmp_height)=explode('x',$a5_size);echo ' width="'.$a5_tmp_width.'" height="'.$a5_tmp_height.'"';} ?>><?php unset($a5_icon,$a5_align) ?><?php $a5_present='modelname'; ?><?php - $a5_tmp_exec = isset($$a5_present); - $a5_tmp_last_exec = $a5_tmp_exec; - if ( $a5_tmp_exec ) - { -?> -<?php unset($a5_present) ?><?php $a6_title=lang('model');$a6_class='text';$a6_var='modelname';$a6_maxlength='20';$a6_escape=true;$a6_cut='both'; ?><?php +?><img alt="<?php echo $a5_tmp_title; if (isset($a5_size)) { echo ' ('; list($a5_tmp_width,$a5_tmp_height)=explode('x',$a5_size);echo $a5_tmp_width.'x'.$a5_tmp_height; echo')';} ?>" src="<?php echo $a5_tmp_image_file ?>" border="0"<?php if(isset($a5_align)) echo ' align="'.$a5_align.'"' ?><?php if (isset($a5_size)) { list($a5_tmp_width,$a5_tmp_height)=explode('x',$a5_size);echo ' width="'.$a5_tmp_width.'" height="'.$a5_tmp_height.'"';} ?> /><?php unset($a5_icon,$a5_align) ?><?php $a5_class='text';$a5_key='start';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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 = Text::maxLength( $tmp_text,intval($a6_maxlength),'..',constant('STR_PAD_'.strtoupper($a6_cut)) ); +?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php + $langF = $a5_escape?'langHtml':'lang'; + $tmp_text = $langF($a5_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_title,$a6_class,$a6_var,$a6_maxlength,$a6_escape,$a6_cut) ?><?php } ?></td><?php $a4_width='25%';$a4_class='title'; ?><?php $column_idx++; ?><td - width="25%" - class="title" -><?php unset($a4_width,$a4_class) ?><?php $a5_present='languagename'; ?><?php - $a5_tmp_exec = isset($$a5_present); - $a5_tmp_last_exec = $a5_tmp_exec; - if ( $a5_tmp_exec ) +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></a><?php $a4_true=$this->userIsAdmin(); ?><?php + if (gettype($a4_true) === '' && gettype($a4_true) === '1') + $a4_tmp_exec = $$a4_true == true; + else + $a4_tmp_exec = $a4_true == true; + $a4_tmp_last_exec = $a4_tmp_exec; + if ( $a4_tmp_exec ) { ?> -<?php unset($a5_present) ?><?php $a6_icon='language';$a6_align='left'; ?><?php +<?php unset($a4_true) ?><?php $a5_title='';$a5_type='post';$a5_target='tree';$a5_class='entry';$a5_action='start';$a5_subaction='administration';$a5_id='-1';$a5_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $params[REQ_PARAM_TARGET] = $a5_target; + switch( $a5_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a5_action)?$a5_action:$this->actionName,'subaction'=>!empty($a5_subaction)?$a5_subaction:$this->subActionName,'id'=>!empty($a5_id)?$a5_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($a5_subaction)?$a5_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a5_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a5_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a5_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a5_frame ?>"<?php if (isset($a5_name)) { ?> name="<?php echo $a5_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a5_class ?>"<?php if (isset($a5_accesskey)) echo ' accesskey="'.$a5_accesskey.'"' ?> title="<?php echo encodeHtml($a5_title) ?>"><?php unset($a5_title,$a5_type,$a5_target,$a5_class,$a5_action,$a5_subaction,$a5_id,$a5_frame) ?><?php $a6_icon='administration';$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_title=lang('language');$a6_class='text';$a6_var='languagename';$a6_maxlength='20';$a6_escape=true;$a6_cut='both'; ?><?php +?><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_class='text';$a6_key='administration';$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 = Text::maxLength( $tmp_text,intval($a6_maxlength),'..',constant('STR_PAD_'.strtoupper($a6_cut)) ); + $tmp_text = $langF($a6_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_title,$a6_class,$a6_var,$a6_maxlength,$a6_escape,$a6_cut) ?><?php } ?></td><?php $a4_width='15%';$a4_class='title'; ?><?php $column_idx++; ?><td - width="15%" - class="title" -><?php unset($a4_width,$a4_class) ?><?php $a5_title=lang('USER_PROFILE_DESC');$a5_target='cms_main_main';$a5_url=$profile_url;$a5_class=''; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_key,$a6_escape,$a6_cut) ?></a><?php } ?><?php $a4_title=lang('USER_LOGOUT_DESC');$a4_type='post';$a4_class='entry';$a4_action='login';$a4_subaction='logout';$a4_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a5_url; -?><a<?php if (isset($a5_name)) echo ' name="'.$a5_name.'"'; else echo ' href="'.$tmp_url.(isset($a5_anchor)?'#'.$a5_anchor:'').'"' ?> class="<?php echo $a5_class ?>" target="<?php echo $a5_target ?>"<?php if (isset($a5_accesskey)) echo ' accesskey="'.$a5_accesskey.'"' ?> title="<?php echo encodeHtml($a5_title) ?>"><?php unset($a5_title,$a5_target,$a5_url,$a5_class) ?><?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_class='text';$a6_var='userfullname';$a6_maxlength='20';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; + $a4_target = $view; + switch( $a4_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a4_action)?$a4_action:$this->actionName,'subaction'=>!empty($a4_subaction)?$a4_subaction:$this->subActionName,'id'=>!empty($a4_id)?$a4_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($a4_subaction)?$a4_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a4_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a4_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a4_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a4_frame ?>"<?php if (isset($a4_name)) { ?> name="<?php echo $a4_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a4_class ?>"<?php if (isset($a4_accesskey)) echo ' accesskey="'.$a4_accesskey.'"' ?> title="<?php echo encodeHtml($a4_title) ?>"><?php unset($a4_title,$a4_type,$a4_class,$a4_action,$a4_subaction,$a4_frame) ?><?php $a5_icon='close';$a5_align='left'; ?><?php + $a5_tmp_image_file = $image_dir.'icon_'.$a5_icon.IMG_ICON_EXT; + $a5_size = '16x16'; + $a5_tmp_title = basename($a5_tmp_image_file); +?><img alt="<?php echo $a5_tmp_title; if (isset($a5_size)) { echo ' ('; list($a5_tmp_width,$a5_tmp_height)=explode('x',$a5_size);echo $a5_tmp_width.'x'.$a5_tmp_height; echo')';} ?>" src="<?php echo $a5_tmp_image_file ?>" border="0"<?php if(isset($a5_align)) echo ' align="'.$a5_align.'"' ?><?php if (isset($a5_size)) { list($a5_tmp_width,$a5_tmp_height)=explode('x',$a5_size);echo ' width="'.$a5_tmp_width.'" height="'.$a5_tmp_height.'"';} ?> /><?php unset($a5_icon,$a5_align) ?><?php $a5_class='text';$a5_key='USER_LOGOUT';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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 = Text::maxLength( $tmp_text,intval($a6_maxlength),'..',constant('STR_PAD_'.strtoupper($a6_cut)) ); +?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php + $langF = $a5_escape?'langHtml':'lang'; + $tmp_text = $langF($a5_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_maxlength,$a6_escape,$a6_cut) ?></a></td><?php $a4_width='10%';$a4_class='title'; ?><?php $column_idx++; ?><td - width="10%" - class="title" -><?php unset($a4_width,$a4_class) ?><?php $a5_title=lang('USER_LOGOUT_DESC');$a5_target='_top';$a5_url=$logout_url;$a5_class=''; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></a></div></div><?php $a2_class='projects'; ?><div class="<?php echo $a2_class ?>"><?php unset($a2_class) ?><?php $a3_icon='project';$a3_align='left'; ?><?php + $a3_tmp_image_file = $image_dir.'icon_'.$a3_icon.IMG_ICON_EXT; + $a3_size = '16x16'; + $a3_tmp_title = basename($a3_tmp_image_file); +?><img alt="<?php echo $a3_tmp_title; if (isset($a3_size)) { echo ' ('; list($a3_tmp_width,$a3_tmp_height)=explode('x',$a3_size);echo $a3_tmp_width.'x'.$a3_tmp_height; echo')';} ?>" src="<?php echo $a3_tmp_image_file ?>" border="0"<?php if(isset($a3_align)) echo ' align="'.$a3_align.'"' ?><?php if (isset($a3_size)) { list($a3_tmp_width,$a3_tmp_height)=explode('x',$a3_size);echo ' width="'.$a3_tmp_width.'" height="'.$a3_tmp_height.'"';} ?> /><?php unset($a3_icon,$a3_align) ?><?php $a3_class='titletext';$a3_key='GLOBAL_CHANGE_TO';$a3_escape=true;$a3_cut='both'; ?><?php + $a3_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a3_class ?>" title="<?php echo $a3_title ?>"><?php + $langF = $a3_escape?'langHtml':'lang'; + $tmp_text = $langF($a3_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a3_class,$a3_key,$a3_escape,$a3_cut) ?><?php $a3_class='dropdown'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><?php $a4_list='projects';$a4_extract=false;$a4_key='id';$a4_value='name'; ?><?php + $a4_list_tmp_key = $a4_key; + $a4_list_tmp_value = $a4_value; + $a4_list_extract = $a4_extract; + unset($a4_key); + unset($a4_value); + if ( !isset($$a4_list) || !is_array($$a4_list) ) + $$a4_list = array(); + foreach( $$a4_list as $$a4_list_tmp_key => $$a4_list_tmp_value ) + { + if ( $a4_list_extract ) + { + if ( !is_array($$a4_list_tmp_value) ) + { + print_r($$a4_list_tmp_value); + die( 'not an array at key: '.$$a4_list_tmp_key ); + } + extract($$a4_list_tmp_value); + } +?><?php unset($a4_list,$a4_extract,$a4_key,$a4_value) ?><?php $a5_icon='project';$a5_align='left'; ?><?php + $a5_tmp_image_file = $image_dir.'icon_'.$a5_icon.IMG_ICON_EXT; + $a5_size = '16x16'; + $a5_tmp_title = basename($a5_tmp_image_file); +?><img alt="<?php echo $a5_tmp_title; if (isset($a5_size)) { echo ' ('; list($a5_tmp_width,$a5_tmp_height)=explode('x',$a5_size);echo $a5_tmp_width.'x'.$a5_tmp_height; echo')';} ?>" src="<?php echo $a5_tmp_image_file ?>" border="0"<?php if(isset($a5_align)) echo ' align="'.$a5_align.'"' ?><?php if (isset($a5_size)) { list($a5_tmp_width,$a5_tmp_height)=explode('x',$a5_size);echo ' width="'.$a5_tmp_width.'" height="'.$a5_tmp_height.'"';} ?> /><?php unset($a5_icon,$a5_align) ?><?php $a5_title='';$a5_type='post';$a5_class='entry';$a5_action='start';$a5_subaction='projectmenu';$a5_id=$id;$a5_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a5_url; -?><a<?php if (isset($a5_name)) echo ' name="'.$a5_name.'"'; else echo ' href="'.$tmp_url.(isset($a5_anchor)?'#'.$a5_anchor:'').'"' ?> class="<?php echo $a5_class ?>" target="<?php echo $a5_target ?>"<?php if (isset($a5_accesskey)) echo ' accesskey="'.$a5_accesskey.'"' ?> title="<?php echo encodeHtml($a5_title) ?>"><?php unset($a5_title,$a5_target,$a5_url,$a5_class) ?><?php $a6_icon='close';$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_class='text';$a6_key='USER_LOGOUT';$a6_escape=true;$a6_cut='both'; ?><?php + $a5_target = $view; + switch( $a5_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a5_action)?$a5_action:$this->actionName,'subaction'=>!empty($a5_subaction)?$a5_subaction:$this->subActionName,'id'=>!empty($a5_id)?$a5_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($a5_subaction)?$a5_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a5_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a5_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a5_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a5_frame ?>"<?php if (isset($a5_name)) { ?> name="<?php echo $a5_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a5_class ?>"<?php if (isset($a5_accesskey)) echo ' accesskey="'.$a5_accesskey.'"' ?> title="<?php echo encodeHtml($a5_title) ?>"><?php unset($a5_title,$a5_type,$a5_class,$a5_action,$a5_subaction,$a5_id,$a5_frame) ?><?php $a6_class='text';$a6_var='name';$a6_maxlength='45';$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 = isset($$a6_var)?$$a6_var:$langF('UNKNOWN'); + $tmp_text = Text::maxLength( $tmp_text,intval($a6_maxlength),'..',constant('STR_PAD_'.strtoupper($a6_cut)) ); $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) ?></a></td></tr><?php - $row_idx = $last_row_idx; - $column_idx = $last_column_idx; -?> -</table></body> -</html>- \ No newline at end of file +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_maxlength,$a6_escape,$a6_cut) ?></a><?php } ?></div></div>+ \ No newline at end of file diff --git a/themes/default/pages/html/tree/content.tpl.php b/themes/default/pages/html/tree/content.tpl.php @@ -0,0 +1,328 @@ +<?php $a2_width='93%';$a2_rowclasses='odd,even';$a2_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($a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php $a3_class='tree';$a3_width='100%';$a3_space='0';$a3_padding='0'; ?><?php + $last_column_idx = @$column_idx; + $column_idx = 0; + $coloumn_widths = array(); + $row_classes = array(); + $column_classes = array(); +?><table class="tree" cellspacing="0" width="100%" cellpadding="0"> +<?php unset($a3_class,$a3_width,$a3_space,$a3_padding) ?><?php $a4_list='zeilen';$a4_extract=true;$a4_key='list_key';$a4_value='list_value'; ?><?php + $a4_list_tmp_key = $a4_key; + $a4_list_tmp_value = $a4_value; + $a4_list_extract = $a4_extract; + unset($a4_key); + unset($a4_value); + if ( !isset($$a4_list) || !is_array($$a4_list) ) + $$a4_list = array(); + foreach( $$a4_list as $$a4_list_tmp_key => $$a4_list_tmp_value ) + { + if ( $a4_list_extract ) + { + if ( !is_array($$a4_list_tmp_value) ) + { + print_r($$a4_list_tmp_value); + die( 'not an array at key: '.$$a4_list_tmp_key ); + } + extract($$a4_list_tmp_value); + } +?><?php unset($a4_list,$a4_extract,$a4_key,$a4_value) ?><?php $a5_class=$class; ?><?php + $column_idx = 0; +?> +<tr + class="<?php echo $class ?>" +> +<?php unset($a5_class) ?><?php $a6_list='cols';$a6_extract=false;$a6_key='list_key';$a6_value='i'; ?><?php + $a6_list_tmp_key = $a6_key; + $a6_list_tmp_value = $a6_value; + $a6_list_extract = $a6_extract; + unset($a6_key); + unset($a6_value); + if ( !isset($$a6_list) || !is_array($$a6_list) ) + $$a6_list = array(); + foreach( $$a6_list as $$a6_list_tmp_key => $$a6_list_tmp_value ) + { + if ( $a6_list_extract ) + { + if ( !is_array($$a6_list_tmp_value) ) + { + print_r($$a6_list_tmp_value); + die( 'not an array at key: '.$$a6_list_tmp_key ); + } + extract($$a6_list_tmp_value); + } +?><?php unset($a6_list,$a6_extract,$a6_key,$a6_value) ?><?php $a7_class='treecol';$a7_header=false; ?><?php $column_idx++; ?><td +<?php if (!empty($column_widths)) { ?> + width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" +<?php } ?> + class="treecol" +><?php unset($a7_class,$a7_header) ?><?php $a8_align='left';$a8_tree=$i; ?><?php + $a8_tmp_image_file = $image_dir.'tree_'.$a8_tree.IMG_EXT; + $a8_size = '18x18'; + $a8_tmp_title = basename($a8_tmp_image_file); +?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?> /><?php unset($a8_align,$a8_tree) ?></td><?php } ?><?php $a6_present='image'; ?><?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='treeimage';$a7_header=false; ?><?php $column_idx++; ?><td +<?php if (!empty($column_widths)) { ?> + width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" +<?php } ?> + class="treeimage" +><?php unset($a7_class,$a7_header) ?><?php $a8_present='image_url'; ?><?php + $a8_tmp_exec = isset($$a8_present); + $a8_tmp_last_exec = $a8_tmp_exec; + if ( $a8_tmp_exec ) + { +?> +<?php unset($a8_present) ?><?php $a9_title=$image_url_desc;$a9_type='';$a9_target='_self';$a9_url=$image_url;$a9_class='tree';$a9_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $params[REQ_PARAM_TARGET] = $a9_target; + switch( $a9_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a9_action)?$a9_action:$this->actionName,'subaction'=>!empty($a9_subaction)?$a9_subaction:$this->subActionName,'id'=>!empty($a9_id)?$a9_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($a9_subaction)?$a9_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a9_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a9_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a9_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a9_frame ?>"<?php if (isset($a9_name)) { ?> name="<?php echo $a9_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a9_class ?>"<?php if (isset($a9_accesskey)) echo ' accesskey="'.$a9_accesskey.'"' ?> title="<?php echo encodeHtml($a9_title) ?>"><?php unset($a9_title,$a9_type,$a9_target,$a9_url,$a9_class,$a9_frame) ?><?php $a10_align='left';$a10_tree=$image; ?><?php + $a10_tmp_image_file = $image_dir.'tree_'.$a10_tree.IMG_EXT; + $a10_size = '18x18'; + $a10_tmp_title = basename($a10_tmp_image_file); +?><img alt="<?php echo $a10_tmp_title; if (isset($a10_size)) { echo ' ('; list($a10_tmp_width,$a10_tmp_height)=explode('x',$a10_size);echo $a10_tmp_width.'x'.$a10_tmp_height; echo')';} ?>" src="<?php echo $a10_tmp_image_file ?>" border="0"<?php if(isset($a10_align)) echo ' align="'.$a10_align.'"' ?><?php if (isset($a10_size)) { list($a10_tmp_width,$a10_tmp_height)=explode('x',$a10_size);echo ' width="'.$a10_tmp_width.'" height="'.$a10_tmp_height.'"';} ?> /><?php unset($a10_align,$a10_tree) ?></a><?php } ?><?php if (!$a8_tmp_last_exec) { ?> +<?php $a9_align='left';$a9_tree=$image; ?><?php + $a9_tmp_image_file = $image_dir.'tree_'.$a9_tree.IMG_EXT; + $a9_size = '18x18'; + $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_align,$a9_tree) ?><?php } +unset($a7_tmp_last_exec) ?></td><?php } ?><?php $a6_class='treevalue';$a6_colspan=$colspan;$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="treevalue" + colspan="<?php echo $colspan ?>" +><?php unset($a6_class,$a6_colspan,$a6_header) ?><?php $a7_title='';$a7_type='';$a7_class='';$a7_name=$name;$a7_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $a7_target = $view; + switch( $a7_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a7_action)?$a7_action:$this->actionName,'subaction'=>!empty($a7_subaction)?$a7_subaction:$this->subActionName,'id'=>!empty($a7_id)?$a7_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($a7_subaction)?$a7_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a7_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a7_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a7_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a7_frame ?>"<?php if (isset($a7_name)) { ?> name="<?php echo $a7_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a7_class ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_type,$a7_class,$a7_name,$a7_frame) ?></a><?php $a7_present='url'; ?><?php + $a7_tmp_exec = isset($$a7_present); + $a7_tmp_last_exec = $a7_tmp_exec; + if ( $a7_tmp_exec ) + { +?> +<?php unset($a7_present) ?><?php $a8_title=$desc;$a8_type='';$a8_target=$target;$a8_url=$url;$a8_class='tree';$a8_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $params[REQ_PARAM_TARGET] = $a8_target; + switch( $a8_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a8_action)?$a8_action:$this->actionName,'subaction'=>!empty($a8_subaction)?$a8_subaction:$this->subActionName,'id'=>!empty($a8_id)?$a8_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($a8_subaction)?$a8_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a8_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a8_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a8_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a8_frame ?>"<?php if (isset($a8_name)) { ?> name="<?php echo $a8_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a8_class ?>"<?php if (isset($a8_accesskey)) echo ' accesskey="'.$a8_accesskey.'"' ?> title="<?php echo encodeHtml($a8_title) ?>"><?php unset($a8_title,$a8_type,$a8_target,$a8_url,$a8_class,$a8_frame) ?><?php $a9_icon=$icon;$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_class='text';$a9_var='text';$a9_maxlength='20';$a9_escape=true;$a9_cut='right'; ?><?php + $a9_title = ''; + $tmp_tag = 'span'; +?><<?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 = Text::maxLength( $tmp_text,intval($a9_maxlength),'..',constant('STR_PAD_'.strtoupper($a9_cut)) ); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_var,$a9_maxlength,$a9_escape,$a9_cut) ?></a><?php } ?><?php if (!$a7_tmp_last_exec) { ?> +<?php $a8_icon=$icon;$a8_align='left'; ?><?php + $a8_tmp_image_file = $image_dir.'icon_'.$a8_icon.IMG_ICON_EXT; + $a8_size = '16x16'; + $a8_tmp_title = basename($a8_tmp_image_file); +?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?> /><?php unset($a8_icon,$a8_align) ?><?php $a8_title=$desc;$a8_class='text';$a8_var='text';$a8_maxlength='20';$a8_escape=true;$a8_cut='right'; ?><?php + $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 = Text::maxLength( $tmp_text,intval($a8_maxlength),'..',constant('STR_PAD_'.strtoupper($a8_cut)) ); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_title,$a8_class,$a8_var,$a8_maxlength,$a8_escape,$a8_cut) ?><?php } +unset($a6_tmp_last_exec) ?></td><?php $a6_var='url'; ?><?php + if (!isset($a6_value)) + unset($$a6_var); +?><?php unset($a6_var) ?><?php $a6_var='image'; ?><?php + if (!isset($a6_value)) + unset($$a6_var); +?><?php unset($a6_var) ?></tr><?php } ?><?php + $column_idx = $last_column_idx; +?> +</table><?php $a3_inline=false;$a3_function='loadTree'; ?>Hallo! +<script type="text/javascript" name="JavaScript"><?php echo $a3_function?>();</script> +<?php unset($a3_inline,$a3_function) ?><?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/tree/settings.tpl.php b/themes/default/pages/html/tree/settings.tpl.php @@ -0,0 +1,242 @@ +<?php $a2_width='93%';$a2_rowclasses='odd,even';$a2_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($a2_width,$a2_rowclasses,$a2_columnclasses) ?><?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()) + { + $a3_method = 'POST'; + } + else + { + $a3_method = 'GET'; + $a3_subaction = $subActionName; + } + } + 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 $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($a3_name,$a3_target,$a3_method,$a3_enctype,$a3_type) ?><?php $a4_title=lang('languages'); ?><fieldset><?php if(isset($a4_title)) { ?><legend><?php if(isset($a4_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a4_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a4_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a4_title) ?><?php $a5_list='languages';$a5_extract=false;$a5_key='id';$a5_value='name'; ?><?php + $a5_list_tmp_key = $a5_key; + $a5_list_tmp_value = $a5_value; + $a5_list_extract = $a5_extract; + unset($a5_key); + unset($a5_value); + if ( !isset($$a5_list) || !is_array($$a5_list) ) + $$a5_list = array(); + foreach( $$a5_list as $$a5_list_tmp_key => $$a5_list_tmp_value ) + { + if ( $a5_list_extract ) + { + if ( !is_array($$a5_list_tmp_value) ) + { + print_r($$a5_list_tmp_value); + die( 'not an array at key: '.$$a5_list_tmp_key ); + } + extract($$a5_list_tmp_value); + } +?><?php unset($a5_list,$a5_extract,$a5_key,$a5_value) ?><div><?php $a7_readonly=false;$a7_name='languageid';$a7_value=$id;$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 + $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='languageid';$a7_value=$id; ?><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,$a7_value) ?><?php $a8_class='text';$a8_var='name';$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) ?></label></div><?php } ?></fieldset><?php $a4_title=lang('models'); ?><fieldset><?php if(isset($a4_title)) { ?><legend><?php if(isset($a4_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a4_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a4_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a4_title) ?><?php $a5_list='models';$a5_extract=false;$a5_key='id';$a5_value='name'; ?><?php + $a5_list_tmp_key = $a5_key; + $a5_list_tmp_value = $a5_value; + $a5_list_extract = $a5_extract; + unset($a5_key); + unset($a5_value); + if ( !isset($$a5_list) || !is_array($$a5_list) ) + $$a5_list = array(); + foreach( $$a5_list as $$a5_list_tmp_key => $$a5_list_tmp_value ) + { + if ( $a5_list_extract ) + { + if ( !is_array($$a5_list_tmp_value) ) + { + print_r($$a5_list_tmp_value); + die( 'not an array at key: '.$$a5_list_tmp_key ); + } + extract($$a5_list_tmp_value); + } +?><?php unset($a5_list,$a5_extract,$a5_key,$a5_value) ?><div><?php $a7_readonly=false;$a7_name='modelid';$a7_value=$id;$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 + $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='modelid';$a7_value=$id; ?><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,$a7_value) ?><?php $a8_class='text';$a8_var='name';$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) ?></label></div><?php } ?></fieldset></form> +<?php $a3_type='ok';$a3_class='ok';$a3_value='ok';$a3_text='button_ok'; ?><div class="invisible"> +<?php + if ($this->isEditable() && !$this->isEditMode() && !readonly() ) + { + $a3_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 + { + $a3_type = 'submit'; + } + $a3_tmp_src = ''; + if ( !empty($a3_type)) { +?> +<input type="<?php echo $a3_type ?>"<?php if(isset($a3_src)) { ?> src="<?php $a3_tmp_src ?>"<?php } ?> name="<?php echo $a3_value ?>" class="ok" title="<?php echo lang($a3_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a3_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a3_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($a3_type,$a3_class,$a3_value,$a3_text) ?><?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/tree/show.tpl.php b/themes/default/pages/html/tree/show.tpl.php @@ -1,237 +1,328 @@ -<?php $a1_class='tree'; ?><?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_width='93%';$a2_rowclasses='odd,even';$a2_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 } ?> - <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="tree" <?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_class='tree';$a2_width='100%';$a2_space='0';$a2_padding='0'; ?><?php - $last_row_idx = @$row_idx; +<div class="content"><div class="filler"> +<?php } ?><?php unset($a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php $a3_class='tree';$a3_width='100%';$a3_space='0';$a3_padding='0'; ?><?php $last_column_idx = @$column_idx; - $row_idx = 0; $column_idx = 0; $coloumn_widths = array(); $row_classes = array(); $column_classes = array(); ?><table class="tree" cellspacing="0" width="100%" cellpadding="0"> -<?php unset($a2_class,$a2_width,$a2_space,$a2_padding) ?><?php $a3_list='zeilen';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php - $a3_list_tmp_key = $a3_key; - $a3_list_tmp_value = $a3_value; - $a3_list_extract = $a3_extract; - unset($a3_key); - unset($a3_value); - if ( !isset($$a3_list) || !is_array($$a3_list) ) - $$a3_list = array(); - foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) +<?php unset($a3_class,$a3_width,$a3_space,$a3_padding) ?><?php $a4_list='zeilen';$a4_extract=true;$a4_key='list_key';$a4_value='list_value'; ?><?php + $a4_list_tmp_key = $a4_key; + $a4_list_tmp_value = $a4_value; + $a4_list_extract = $a4_extract; + unset($a4_key); + unset($a4_value); + if ( !isset($$a4_list) || !is_array($$a4_list) ) + $$a4_list = array(); + foreach( $$a4_list as $$a4_list_tmp_key => $$a4_list_tmp_value ) { - if ( $a3_list_extract ) + if ( $a4_list_extract ) { - if ( !is_array($$a3_list_tmp_value) ) + if ( !is_array($$a4_list_tmp_value) ) { - print_r($$a3_list_tmp_value); - die( 'not an array at key: '.$$a3_list_tmp_key ); + print_r($$a4_list_tmp_value); + die( 'not an array at key: '.$$a4_list_tmp_key ); } - extract($$a3_list_tmp_value); + extract($$a4_list_tmp_value); } -?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php $a4_class=$class; ?><?php - $row_idx++; +?><?php unset($a4_list,$a4_extract,$a4_key,$a4_value) ?><?php $a5_class=$class; ?><?php $column_idx = 0; ?> <tr class="<?php echo $class ?>" > -<?php unset($a4_class) ?><?php $a5_list='cols';$a5_extract=false;$a5_key='list_key';$a5_value='i'; ?><?php - $a5_list_tmp_key = $a5_key; - $a5_list_tmp_value = $a5_value; - $a5_list_extract = $a5_extract; - unset($a5_key); - unset($a5_value); - if ( !isset($$a5_list) || !is_array($$a5_list) ) - $$a5_list = array(); - foreach( $$a5_list as $$a5_list_tmp_key => $$a5_list_tmp_value ) +<?php unset($a5_class) ?><?php $a6_list='cols';$a6_extract=false;$a6_key='list_key';$a6_value='i'; ?><?php + $a6_list_tmp_key = $a6_key; + $a6_list_tmp_value = $a6_value; + $a6_list_extract = $a6_extract; + unset($a6_key); + unset($a6_value); + if ( !isset($$a6_list) || !is_array($$a6_list) ) + $$a6_list = array(); + foreach( $$a6_list as $$a6_list_tmp_key => $$a6_list_tmp_value ) { - if ( $a5_list_extract ) + if ( $a6_list_extract ) { - if ( !is_array($$a5_list_tmp_value) ) + if ( !is_array($$a6_list_tmp_value) ) { - print_r($$a5_list_tmp_value); - die( 'not an array at key: '.$$a5_list_tmp_key ); + print_r($$a6_list_tmp_value); + die( 'not an array at key: '.$$a6_list_tmp_key ); } - extract($$a5_list_tmp_value); + extract($$a6_list_tmp_value); } -?><?php unset($a5_list,$a5_extract,$a5_key,$a5_value) ?><?php $a6_class='treecol'; ?><?php $column_idx++; ?><td +?><?php unset($a6_list,$a6_extract,$a6_key,$a6_value) ?><?php $a7_class='treecol';$a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="treecol" -><?php unset($a6_class) ?><?php $a7_align='left';$a7_tree=$i; ?><?php - $a7_tmp_image_file = $image_dir.'tree_'.$a7_tree.IMG_EXT; - $a7_size = '18x18'; - $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_align,$a7_tree) ?></td><?php } ?><?php $a5_present='image'; ?><?php - $a5_tmp_exec = isset($$a5_present); - $a5_tmp_last_exec = $a5_tmp_exec; - if ( $a5_tmp_exec ) +><?php unset($a7_class,$a7_header) ?><?php $a8_align='left';$a8_tree=$i; ?><?php + $a8_tmp_image_file = $image_dir.'tree_'.$a8_tree.IMG_EXT; + $a8_size = '18x18'; + $a8_tmp_title = basename($a8_tmp_image_file); +?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?> /><?php unset($a8_align,$a8_tree) ?></td><?php } ?><?php $a6_present='image'; ?><?php + $a6_tmp_exec = isset($$a6_present); + $a6_tmp_last_exec = $a6_tmp_exec; + if ( $a6_tmp_exec ) { ?> -<?php unset($a5_present) ?><?php $a6_class='treeimage'; ?><?php $column_idx++; ?><td +<?php unset($a6_present) ?><?php $a7_class='treeimage';$a7_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="treeimage" -><?php unset($a6_class) ?><?php $a7_present='image_url'; ?><?php - $a7_tmp_exec = isset($$a7_present); - $a7_tmp_last_exec = $a7_tmp_exec; - if ( $a7_tmp_exec ) +><?php unset($a7_class,$a7_header) ?><?php $a8_present='image_url'; ?><?php + $a8_tmp_exec = isset($$a8_present); + $a8_tmp_last_exec = $a8_tmp_exec; + if ( $a8_tmp_exec ) { ?> -<?php unset($a7_present) ?><?php $a8_title=$image_url_desc;$a8_target='_self';$a8_url=$image_url;$a8_class='tree';$a8_anchor=$name; ?><?php +<?php unset($a8_present) ?><?php $a9_title=$image_url_desc;$a9_type='';$a9_target='_self';$a9_url=$image_url;$a9_class='tree';$a9_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = $a8_url; -?><a<?php if (isset($a8_name)) echo ' name="'.$a8_name.'"'; else echo ' href="'.$tmp_url.(isset($a8_anchor)?'#'.$a8_anchor:'').'"' ?> class="<?php echo $a8_class ?>" target="<?php echo $a8_target ?>"<?php if (isset($a8_accesskey)) echo ' accesskey="'.$a8_accesskey.'"' ?> title="<?php echo encodeHtml($a8_title) ?>"><?php unset($a8_title,$a8_target,$a8_url,$a8_class,$a8_anchor) ?><?php $a9_align='left';$a9_tree=$image; ?><?php + $params[REQ_PARAM_TARGET] = $a9_target; + switch( $a9_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a9_action)?$a9_action:$this->actionName,'subaction'=>!empty($a9_subaction)?$a9_subaction:$this->subActionName,'id'=>!empty($a9_id)?$a9_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($a9_subaction)?$a9_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a9_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a9_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a9_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a9_frame ?>"<?php if (isset($a9_name)) { ?> name="<?php echo $a9_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a9_class ?>"<?php if (isset($a9_accesskey)) echo ' accesskey="'.$a9_accesskey.'"' ?> title="<?php echo encodeHtml($a9_title) ?>"><?php unset($a9_title,$a9_type,$a9_target,$a9_url,$a9_class,$a9_frame) ?><?php $a10_align='left';$a10_tree=$image; ?><?php + $a10_tmp_image_file = $image_dir.'tree_'.$a10_tree.IMG_EXT; + $a10_size = '18x18'; + $a10_tmp_title = basename($a10_tmp_image_file); +?><img alt="<?php echo $a10_tmp_title; if (isset($a10_size)) { echo ' ('; list($a10_tmp_width,$a10_tmp_height)=explode('x',$a10_size);echo $a10_tmp_width.'x'.$a10_tmp_height; echo')';} ?>" src="<?php echo $a10_tmp_image_file ?>" border="0"<?php if(isset($a10_align)) echo ' align="'.$a10_align.'"' ?><?php if (isset($a10_size)) { list($a10_tmp_width,$a10_tmp_height)=explode('x',$a10_size);echo ' width="'.$a10_tmp_width.'" height="'.$a10_tmp_height.'"';} ?> /><?php unset($a10_align,$a10_tree) ?></a><?php } ?><?php if (!$a8_tmp_last_exec) { ?> +<?php $a9_align='left';$a9_tree=$image; ?><?php $a9_tmp_image_file = $image_dir.'tree_'.$a9_tree.IMG_EXT; $a9_size = '18x18'; $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_align,$a9_tree) ?></a><?php } ?><?php if (!$a7_tmp_last_exec) { ?> -<?php $a8_align='left';$a8_tree=$image; ?><?php - $a8_tmp_image_file = $image_dir.'tree_'.$a8_tree.IMG_EXT; - $a8_size = '18x18'; - $a8_tmp_title = basename($a8_tmp_image_file); -?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?>><?php unset($a8_align,$a8_tree) ?><?php } -unset($a6_tmp_last_exec) ?></td><?php } ?><?php $a5_class='treevalue';$a5_colspan=$colspan; ?><?php $column_idx++; ?><td +?><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_align,$a9_tree) ?><?php } +unset($a7_tmp_last_exec) ?></td><?php } ?><?php $a6_class='treevalue';$a6_colspan=$colspan;$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="treevalue" colspan="<?php echo $colspan ?>" -><?php unset($a5_class,$a5_colspan) ?><?php $a6_title='';$a6_target='_self';$a6_class='';$a6_name=$name; ?><?php +><?php unset($a6_class,$a6_colspan,$a6_header) ?><?php $a7_title='';$a7_type='';$a7_class='';$a7_name=$name;$a7_frame='_self'; ?><?php $params = array(); $tmp_url = ''; -?><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_name) ?></a><?php $a6_present='url'; ?><?php - $a6_tmp_exec = isset($$a6_present); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) + $a7_target = $view; + switch( $a7_type ) { -?> -<?php unset($a6_present) ?><?php $a7_title=$desc;$a7_target=$target;$a7_url=$url;$a7_class='tree'; ?><?php - $params = array(); - $tmp_url = ''; - $tmp_url = $a7_url; -?><a<?php if (isset($a7_name)) echo ' name="'.$a7_name.'"'; else echo ' href="'.$tmp_url.(isset($a7_anchor)?'#'.$a7_anchor:'').'"' ?> class="<?php echo $a7_class ?>" target="<?php echo $a7_target ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_target,$a7_url,$a7_class) ?><?php $a8_icon=$icon;$a8_align='left'; ?><?php - $a8_tmp_image_file = $image_dir.'icon_'.$a8_icon.IMG_ICON_EXT; - $a8_size = '16x16'; - $a8_tmp_title = basename($a8_tmp_image_file); -?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?>><?php unset($a8_icon,$a8_align) ?><?php $a8_class='text';$a8_var='text';$a8_maxlength='20';$a8_escape=true;$a8_cut='right'; ?><?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 = Text::maxLength( $tmp_text,intval($a8_maxlength),'..',constant('STR_PAD_'.strtoupper($a8_cut)) ); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_var,$a8_maxlength,$a8_escape,$a8_cut) ?></a><?php } ?><?php if (!$a6_tmp_last_exec) { ?> -<?php $a7_icon=$icon;$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_title=$desc;$a7_class='text';$a7_var='text';$a7_maxlength='20';$a7_escape=true;$a7_cut='right'; ?><?php - $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 = Text::maxLength( $tmp_text,intval($a7_maxlength),'..',constant('STR_PAD_'.strtoupper($a7_cut)) ); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_title,$a7_class,$a7_var,$a7_maxlength,$a7_escape,$a7_cut) ?><?php } -unset($a5_tmp_last_exec) ?><?php $a6_not='';$a6_present='image'; ?><?php - $a6_tmp_exec = isset($$a6_present); - $a6_tmp_exec = !$a6_tmp_exec; - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a7_action)?$a7_action:$this->actionName,'subaction'=>!empty($a7_subaction)?$a7_subaction:$this->subActionName,'id'=>!empty($a7_id)?$a7_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($a7_subaction)?$a7_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a7_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a7_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a7_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a7_frame ?>"<?php if (isset($a7_name)) { ?> name="<?php echo $a7_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a7_class ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_type,$a7_class,$a7_name,$a7_frame) ?></a><?php $a7_present='url'; ?><?php + $a7_tmp_exec = isset($$a7_present); + $a7_tmp_last_exec = $a7_tmp_exec; + if ( $a7_tmp_exec ) { ?> -<?php unset($a6_not,$a6_present) ?><?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 - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = str_replace('_','&nbsp;',$a7_raw); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php $a7_title='';$a7_target='_self';$a7_class='';$a7_action='tree';$a7_subaction='refresh'; ?><?php +<?php unset($a7_present) ?><?php $a8_title=$desc;$a8_type='';$a8_target=$target;$a8_url=$url;$a8_class='tree';$a8_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = Html::url($a7_action,$a7_subaction,!empty($a7_id)?$a7_id:$this->getRequestId(),$params); -?><a<?php if (isset($a7_name)) echo ' name="'.$a7_name.'"'; else echo ' href="'.$tmp_url.(isset($a7_anchor)?'#'.$a7_anchor:'').'"' ?> class="<?php echo $a7_class ?>" target="<?php echo $a7_target ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_target,$a7_class,$a7_action,$a7_subaction) ?><?php $a8_class='text';$a8_key='refresh';$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_key); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></a><?php $a7_class='text';$a7_raw='__';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; + $params[REQ_PARAM_TARGET] = $a8_target; + switch( $a8_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a8_action)?$a8_action:$this->actionName,'subaction'=>!empty($a8_subaction)?$a8_subaction:$this->subActionName,'id'=>!empty($a8_id)?$a8_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($a8_subaction)?$a8_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a8_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a8_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a8_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a8_frame ?>"<?php if (isset($a8_name)) { ?> name="<?php echo $a8_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a8_class ?>"<?php if (isset($a8_accesskey)) echo ' accesskey="'.$a8_accesskey.'"' ?> title="<?php echo encodeHtml($a8_title) ?>"><?php unset($a8_title,$a8_type,$a8_target,$a8_url,$a8_class,$a8_frame) ?><?php $a9_icon=$icon;$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_class='text';$a9_var='text';$a9_maxlength='20';$a9_escape=true;$a9_cut='right'; ?><?php + $a9_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 = str_replace('_','&nbsp;',$a7_raw); +?><<?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 = Text::maxLength( $tmp_text,intval($a9_maxlength),'..',constant('STR_PAD_'.strtoupper($a9_cut)) ); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php $a7_title='';$a7_target='_self';$a7_class='';$a7_action='tree';$a7_subaction='openall'; ?><?php - $params = array(); - $tmp_url = ''; - $tmp_url = Html::url($a7_action,$a7_subaction,!empty($a7_id)?$a7_id:$this->getRequestId(),$params); -?><a<?php if (isset($a7_name)) echo ' name="'.$a7_name.'"'; else echo ' href="'.$tmp_url.(isset($a7_anchor)?'#'.$a7_anchor:'').'"' ?> class="<?php echo $a7_class ?>" target="<?php echo $a7_target ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_target,$a7_class,$a7_action,$a7_subaction) ?><?php $a8_class='text';$a8_key='all';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_var,$a9_maxlength,$a9_escape,$a9_cut) ?></a><?php } ?><?php if (!$a7_tmp_last_exec) { ?> +<?php $a8_icon=$icon;$a8_align='left'; ?><?php + $a8_tmp_image_file = $image_dir.'icon_'.$a8_icon.IMG_ICON_EXT; + $a8_size = '16x16'; + $a8_tmp_title = basename($a8_tmp_image_file); +?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?> /><?php unset($a8_icon,$a8_align) ?><?php $a8_title=$desc;$a8_class='text';$a8_var='text';$a8_maxlength='20';$a8_escape=true;$a8_cut='right'; ?><?php $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_key); + $tmp_text = isset($$a8_var)?$$a8_var:$langF('UNKNOWN'); + $tmp_text = Text::maxLength( $tmp_text,intval($a8_maxlength),'..',constant('STR_PAD_'.strtoupper($a8_cut)) ); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_key,$a8_escape,$a8_cut) ?></a><?php } ?></td><?php $a5_var='url'; ?><?php - if (!isset($a5_value)) - unset($$a5_var); -?><?php unset($a5_var) ?><?php $a5_var='image'; ?><?php - if (!isset($a5_value)) - unset($$a5_var); -?><?php unset($a5_var) ?></tr><?php } ?><?php - $row_idx = $last_row_idx; +?></<?php echo $tmp_tag ?>><?php unset($a8_title,$a8_class,$a8_var,$a8_maxlength,$a8_escape,$a8_cut) ?><?php } +unset($a6_tmp_last_exec) ?></td><?php $a6_var='url'; ?><?php + if (!isset($a6_value)) + unset($$a6_var); +?><?php unset($a6_var) ?><?php $a6_var='image'; ?><?php + if (!isset($a6_value)) + unset($$a6_var); +?><?php unset($a6_var) ?></tr><?php } ?><?php $column_idx = $last_column_idx; ?> -</table></body> -</html>- \ No newline at end of file +</table><?php $a3_inline=false;$a3_function='loadTree'; ?>Hallo! +<script type="text/javascript" name="JavaScript"><?php echo $a3_function?>();</script> +<?php unset($a3_inline,$a3_function) ?><?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/user/add.tpl.php b/themes/default/pages/html/user/add.tpl.php @@ -1,254 +1,66 @@ -<?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 - $a2_action = $actionName; - $a2_subaction = $targetSubActionName; - $a2_id = $this->getRequestId(); +</div><?php unset($a2_name,$a2_back) ?><?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_USERS';$a3_icon='user';$a3_width='70%';$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 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_icon,$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='user_username';$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_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; +?><?php unset($a3_name,$a3_target,$a3_method,$a3_enctype,$a3_type) ?><?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';$a6_key='user_username'; ?><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,$a6_key) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='focus';$a6_default='';$a6_type='text';$a6_name='name';$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 $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 + } } 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></form> diff --git a/themes/default/pages/html/user/edit.tpl.php b/themes/default/pages/html/user/edit.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 } ?> - <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_views='remove';$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(); @@ -46,273 +30,49 @@ $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_USER';$a3_widths='50%,50%';$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 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_widths,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $a4_not='';$a4_empty='image'; ?><?php - if ( !isset($$a4_empty) ) - $a4_tmp_exec = empty($a4_empty); - elseif ( is_array($$a4_empty) ) - $a4_tmp_exec = (count($$a4_empty)==0); - elseif ( is_bool($$a4_empty) ) - $a4_tmp_exec = true; - else - $a4_tmp_exec = empty( $$a4_empty ); - $a4_tmp_exec = !$a4_tmp_exec; - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) - { -?> -<?php unset($a4_not,$a4_empty) ?><?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 } ?> -><br/><?php $a7_url=$image;$a7_align='left';$a7_size='80x80';$a7_title=$fullname; ?><?php - $a7_tmp_image_file = $a7_url; - $a7_tmp_title = $a7_title; -?><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_url,$a7_align,$a7_size,$a7_title) ?></td></tr><?php } ?><?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('NAME'); ?><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='user_username';$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='name';$a6_default='';$a6_type='text';$a6_name='name';$a6_size='20';$a6_maxlength='256';$a6_onchange='';$a6_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><?php $a3_title=lang('NAME'); ?><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='name';$a6_key='user_username'; ?><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,$a6_key) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='name,focus';$a6_default='';$a6_type='text';$a6_name='name';$a6_size='20';$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 $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 - $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='user_fullname';$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_default='';$a6_type='text';$a6_name='fullname';$a6_size='40';$a6_maxlength='256';$a6_onchange='';$a6_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; + } } 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></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='fullname';$a6_key='user_fullname'; ?><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,$a6_key) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='text';$a6_default='';$a6_type='text';$a6_name='fullname';$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 $a4_true=@$conf['security']['user']['show_admin_mail']; ?><?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_true=@$conf['security']['user']['show_admin_mail']; ?><?php if (gettype($a4_true) === '' && gettype($a4_true) === '1') $a4_tmp_exec = $$a4_true == true; else @@ -321,152 +81,34 @@ if ($a6_readonly) { if ( $a4_tmp_exec ) { ?> -<?php unset($a4_true) ?><?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='user_mail';$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 $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='mail';$a7_size='40';$a7_maxlength='256';$a7_onchange='';$a7_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; +<?php unset($a4_true) ?><?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='mail';$a7_key='user_mail'; ?><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,$a7_key) ?></label></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='mail';$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 ?>" 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 +?><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 { ?><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 - $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='user_desc';$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_default='';$a6_type='text';$a6_name='desc';$a6_size='40';$a6_maxlength='256';$a6_onchange='';$a6_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; + } } 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_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='desc';$a6_key='user_desc'; ?><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,$a6_key) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='text';$a6_default='';$a6_type='text';$a6_name='desc';$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='user_tel';$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_default='';$a6_type='text';$a6_name='tel';$a6_size='40';$a6_maxlength='256';$a6_onchange='';$a6_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; + } } 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='tel';$a6_key='user_tel'; ?><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,$a6_key) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='text';$a6_default='';$a6_type='text';$a6_name='tel';$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 $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('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++; - $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_default=false;$a6_readonly=false;$a6_name='is_admin'; ?><?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></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='is_admin'; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; if ( isset($$a6_name) ) $checked = $$a6_name; @@ -477,82 +119,18 @@ 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='is_admin'; ?><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='user_admin';$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></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='user_ldapdn';$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_default='';$a6_type='text';$a6_name='ldap_dn';$a6_size='50';$a6_maxlength='256';$a6_onchange='';$a6_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; +?><?php unset($a6_name); unset($a6_readonly); unset($a6_default); ?><?php unset($a6_default,$a6_readonly,$a6_name) ?><?php $a6_for='is_admin';$a6_key='user_admin'; ?><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,$a6_key) ?></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) ?><?php $a6_for='ldap_dn';$a6_key='user_ldapdn'; ?><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,$a6_key) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='text';$a6_default='';$a6_type='text';$a6_name='ldap_dn';$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='user_style';$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_list='allstyles';$a6_name='style';$a6_default=@$conf['interface']['style']['default'];$a6_onchange='';$a6_title='';$a6_class='';$a6_addempty=false;$a6_multiple=false;$a6_size='1';$a6_lang=false; ?><?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='style';$a6_key='user_style'; ?><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,$a6_key) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_list='allstyles';$a6_name='style';$a6_default=@$conf['interface']['style']['default'];$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; if ($this->isEditable() && !$this->isEditMode()) @@ -606,46 +184,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_default,$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='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 unset($a6_list,$a6_name,$a6_default,$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/user/groups.tpl.php b/themes/default/pages/html/user/groups.tpl.php @@ -1,126 +1,74 @@ -<?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 $a1_name='';$a1_target='_self';$a1_method='post';$a1_enctype='application/x-www-form-urlencoded'; ?><?php + $a1_action = $actionName; + $a1_subaction = $targetSubActionName; + $a1_id = $this->getRequestId(); if ($this->isEditable()) { if ($this->isEditMode()) { - $a2_method = 'POST'; + $a1_method = 'POST'; } else { - $a2_method = 'GET'; - $a2_subaction = $subActionName; + $a1_method = 'GET'; + $a1_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;"> +?><form name="<?php echo $a1_name ?>" + target="<?php echo $a1_target ?>" + action="<?php echo Html::url( $a1_action,$a1_subaction,$a1_id ) ?>" + method="<?php echo $a1_method ?>" + enctype="<?php echo $a1_enctype ?>" style="margin:0px;padding:0px;" + class="<?php echo $a1_action ?>" + onSubmit="formSubmit( $(this) ); return false;"> <?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 $a1_action ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $a1_subaction ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a1_id ?>" /><?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='USER_MEMBERSHIPS';$a3_widths='5%,95%';$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($a1_name,$a1_target,$a1_method,$a1_enctype) ?><?php $a2_width='93%';$a2_rowclasses='odd,even';$a2_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,52 +76,80 @@ $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 } ?> +<div class="content"><div class="filler"> +<?php } ?><?php unset($a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php $a3_width='100%';$a3_space='0px';$a3_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($a3_width,$a3_space,$a3_padding) ?><?php $a4_class='headline'; ?><?php + $column_idx = 0; +?> +<tr + class="headline" +> +<?php unset($a4_class) ?><?php $a5_width='10%';$a5_header=false; ?><?php $column_idx++; ?><td + width="10%" +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> +><?php unset($a5_width,$a5_header) ?></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 } ?> - <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_list='memberships';$a4_extract=true;$a4_key='list_key';$a4_value='list_value'; ?><?php +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> +><?php unset($a5_header) ?><?php $a6_class='text';$a6_key='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) ?></td></tr><?php $a4_list='memberships';$a4_extract=true;$a4_key='list_key';$a4_value='list_value'; ?><?php $a4_list_tmp_key = $a4_key; $a4_list_tmp_value = $a4_value; $a4_list_extract = $a4_extract; @@ -193,20 +169,19 @@ extract($$a4_list_tmp_value); } ?><?php unset($a4_list,$a4_extract,$a4_key,$a4_value) ?><?php $a5_class='data'; ?><?php - $row_idx++; $column_idx = 0; ?> <tr class="data" > -<?php unset($a5_class) ?><?php $column_idx++; ?><td +<?php unset($a5_class) ?><?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 $a7_default=false;$a7_readonly=false;$a7_name=$var; ?><?php +><?php unset($a6_header) ?><?php $a7_default=false;$a7_readonly=false;$a7_name=$var; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; if ( isset($$a7_name) ) $checked = $$a7_name; @@ -217,14 +192,14 @@ 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) ?></td><?php $column_idx++; ?><td +?><?php unset($a7_name); unset($a7_readonly); unset($a7_default); ?><?php unset($a7_default,$a7_readonly,$a7_name) ?></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 $a7_for=$var; ?><label for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>"><?php unset($a7_for) ?><?php $a8_file='icon_group';$a8_align='left'; ?><?php +><?php unset($a6_header) ?><?php $a7_for=$var; ?><label for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>"><?php unset($a7_for) ?><?php $a8_file='icon_group';$a8_align='left'; ?><?php $a8_tmp_image_file = $image_dir.$a8_file.IMG_ICON_EXT; $a8_tmp_title = basename($a8_tmp_image_file); ?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?>><?php unset($a8_file,$a8_align) ?><?php $a8_class='text';$a8_var='name';$a8_escape=true;$a8_cut='both'; ?><?php @@ -237,32 +212,51 @@ if ( $a7_readonly && $checked ) echo $tmp_text; unset($tmp_text); ?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_var,$a8_escape,$a8_cut) ?></label></td></tr><?php } ?><?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 + $column_idx = $last_column_idx; +?> +</table><?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/> @@ -270,6 +264,4 @@ if ( $a7_readonly && $checked ) <?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/user/info.tpl.php b/themes/default/pages/html/user/info.tpl.php @@ -0,0 +1,141 @@ +<?php $a2_name='';$a2_back=false; ?><div class="header"> + <?php if ($a2_back) { ?> + <a href="javascript:void(0);" onclick="javascript:refreshActualView(this);"> + <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="dropdown"> + <?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 ?>');"><?php echo lang('MENU_'.$a2_tmp_view) ?></a> + <?php } ?> + </div> +<?php } ?> +</div><?php unset($a2_name,$a2_back) ?><?php $a2_not=true;$a2_empty='image'; ?><?php + if ( !isset($$a2_empty) ) + $a2_tmp_exec = empty($a2_empty); + elseif ( is_array($$a2_empty) ) + $a2_tmp_exec = (count($$a2_empty)==0); + elseif ( is_bool($$a2_empty) ) + $a2_tmp_exec = true; + else + $a2_tmp_exec = empty( $$a2_empty ); + $a2_tmp_exec = !$a2_tmp_exec; + $a2_tmp_last_exec = $a2_tmp_exec; + if ( $a2_tmp_exec ) + { +?> +<?php unset($a2_not,$a2_empty) ?><?php $a3_class='line'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><?php $a4_class='line'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_url=$image;$a5_align='left';$a5_size='80x80'; ?><?php + $a5_tmp_image_file = $a5_url; + $a5_tmp_title = basename($a5_tmp_image_file); +?><img alt="<?php echo $a5_tmp_title; if (isset($a5_size)) { echo ' ('; list($a5_tmp_width,$a5_tmp_height)=explode('x',$a5_size);echo $a5_tmp_width.'x'.$a5_tmp_height; echo')';} ?>" src="<?php echo $a5_tmp_image_file ?>" border="0"<?php if(isset($a5_align)) echo ' align="'.$a5_align.'"' ?><?php if (isset($a5_size)) { list($a5_tmp_width,$a5_tmp_height)=explode('x',$a5_size);echo ' width="'.$a5_tmp_width.'" height="'.$a5_tmp_height.'"';} ?> /><?php unset($a5_url,$a5_align,$a5_size) ?></div></div><?php } ?><?php $a2_class='line'; ?><div class="<?php echo $a2_class ?>"><?php unset($a2_class) ?><?php $a3_class='name';$a3_var='name';$a3_escape=true;$a3_cut='both'; ?><?php + $a3_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a3_class ?>" title="<?php echo $a3_title ?>"><?php + $langF = $a3_escape?'langHtml':'lang'; + $tmp_text = isset($$a3_var)?$$a3_var:$langF('UNKNOWN'); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a3_class,$a3_var,$a3_escape,$a3_cut) ?></div><?php $a2_class='line'; ?><div class="<?php echo $a2_class ?>"><?php unset($a2_class) ?><?php $a3_class='text';$a3_var='fullname';$a3_escape=true;$a3_cut='both'; ?><?php + $a3_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a3_class ?>" title="<?php echo $a3_title ?>"><?php + $langF = $a3_escape?'langHtml':'lang'; + $tmp_text = isset($$a3_var)?$$a3_var:$langF('UNKNOWN'); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a3_class,$a3_var,$a3_escape,$a3_cut) ?></div><?php $a2_true=@$conf['security']['user']['show_admin_mail']; ?><?php + if (gettype($a2_true) === '' && gettype($a2_true) === '1') + $a2_tmp_exec = $$a2_true == true; + else + $a2_tmp_exec = $a2_true == true; + $a2_tmp_last_exec = $a2_tmp_exec; + if ( $a2_tmp_exec ) + { +?> +<?php unset($a2_true) ?><?php $a3_class='line'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><?php $a4_title='';$a4_type='';$a4_class='';$a4_action=$mail;$a4_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $a4_target = $view; + switch( $a4_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a4_action)?$a4_action:$this->actionName,'subaction'=>!empty($a4_subaction)?$a4_subaction:$this->subActionName,'id'=>!empty($a4_id)?$a4_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($a4_subaction)?$a4_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a4_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a4_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a4_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a4_frame ?>"<?php if (isset($a4_name)) { ?> name="<?php echo $a4_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a4_class ?>"<?php if (isset($a4_accesskey)) echo ' accesskey="'.$a4_accesskey.'"' ?> title="<?php echo encodeHtml($a4_title) ?>"><?php unset($a4_title,$a4_type,$a4_class,$a4_action,$a4_frame) ?><?php $a5_class='text';$a5_var='mail';$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) ?></a></div><?php } ?><?php $a2_class='line'; ?><div class="<?php echo $a2_class ?>"><?php unset($a2_class) ?><?php $a3_class='text';$a3_var='desc';$a3_escape=true;$a3_cut='both'; ?><?php + $a3_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a3_class ?>" title="<?php echo $a3_title ?>"><?php + $langF = $a3_escape?'langHtml':'lang'; + $tmp_text = isset($$a3_var)?$$a3_var:$langF('UNKNOWN'); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a3_class,$a3_var,$a3_escape,$a3_cut) ?></div><?php $a2_class='line'; ?><div class="<?php echo $a2_class ?>"><?php unset($a2_class) ?><?php $a3_class='text';$a3_text='user_tel';$a3_escape=true;$a3_cut='both'; ?><?php + $a3_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a3_class ?>" title="<?php echo $a3_title ?>"><?php + $langF = $a3_escape?'langHtml':'lang'; + $tmp_text = $langF($a3_text); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a3_class,$a3_text,$a3_escape,$a3_cut) ?><?php $a3_class='text';$a3_var='tel';$a3_escape=true;$a3_cut='both'; ?><?php + $a3_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a3_class ?>" title="<?php echo $a3_title ?>"><?php + $langF = $a3_escape?'langHtml':'lang'; + $tmp_text = isset($$a3_var)?$$a3_var:$langF('UNKNOWN'); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a3_class,$a3_var,$a3_escape,$a3_cut) ?></div><?php $a2_true='is_admin'; ?><?php + if (gettype($a2_true) === '' && gettype($a2_true) === '1') + $a2_tmp_exec = $$a2_true == true; + else + $a2_tmp_exec = $a2_true == true; + $a2_tmp_last_exec = $a2_tmp_exec; + if ( $a2_tmp_exec ) + { +?> +<?php unset($a2_true) ?><?php $a3_class='line'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><?php $a4_class='text';$a4_key='user_admin';$a4_escape=true;$a4_cut='both'; ?><?php + $a4_title = ''; + $tmp_tag = 'span'; +?><<?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($a4_class,$a4_key,$a4_escape,$a4_cut) ?></div><?php } ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/user/listing.tpl.php b/themes/default/pages/html/user/listing.tpl.php @@ -1,95 +1,42 @@ -<?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='GLOBAL_USERS';$a2_icon='user';$a2_width='70%';$a2_rowclasses='odd,even';$a2_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$a2_icon; - $row_classes = explode(',',$a2_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a2_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="'.$a2_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 $a3_name='GLOBAL_USERS';$a3_icon='user';$a3_width='70%';$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']); @@ -97,127 +44,86 @@ $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($a2_name,$a2_icon,$a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php $a3_list='el';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php - $a3_list_tmp_key = $a3_key; - $a3_list_tmp_value = $a3_value; - $a3_list_extract = $a3_extract; - unset($a3_key); - unset($a3_value); - if ( !isset($$a3_list) || !is_array($$a3_list) ) - $$a3_list = array(); - foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) - { - if ( $a3_list_extract ) - { - if ( !is_array($$a3_list_tmp_value) ) - { - print_r($$a3_list_tmp_value); - die( 'not an array at key: '.$$a3_list_tmp_key ); - } - extract($$a3_list_tmp_value); - } -?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php $a4_class='data'; ?><?php - $row_idx++; +<div class="content"><div class="filler"> +<?php } ?><?php unset($a3_name,$a3_icon,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $a4_width='100%';$a4_space='0px';$a4_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($a4_width,$a4_space,$a4_padding) ?><?php $a5_class='headline'; ?><?php $column_idx = 0; ?> <tr - class="data" + class="headline" > -<?php unset($a4_class) ?><?php $column_idx++; ?><td +<?php unset($a5_class) ?><?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_title='desc';$a6_target='cms_main';$a6_url=$url;$a6_class=''; ?><?php - $params = array(); - $tmp_url = ''; - $tmp_url = $a6_url; -?><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_url,$a6_class) ?><?php $a7_align='left';$a7_type='user'; ?><?php +><?php unset($a6_header) ?><?php $a7_align='left';$a7_type='user'; ?><?php $a7_tmp_image_file = $image_dir.'icon_'.$a7_type.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_align,$a7_type) ?><?php $a7_class='text';$a7_var='name';$a7_escape=true;$a7_cut='both'; ?><?php +?><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_align,$a7_type) ?><?php $a7_class='text';$a7_key='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 = isset($$a7_var)?$$a7_var:$langF('UNKNOWN'); + $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_var,$a7_escape,$a7_cut) ?></a></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$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_value=$fullname;$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 = $a6_escape?htmlentities($a6_value):$a6_value; - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_value,$a6_escape,$a6_cut) ?><?php $a6_true=$isAdmin; ?><?php - if (gettype($a6_true) === '' && gettype($a6_true) === '1') - $a6_tmp_exec = $$a6_true == true; - else - $a6_tmp_exec = $a6_true == true; - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) - { -?> -<?php unset($a6_true) ?><?php $a7_class='text';$a7_raw='_(';$a7_escape=true;$a7_cut='both'; ?><?php +><?php unset($a6_header) ?><?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 @@ -226,7 +132,14 @@ $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php $a7_class='text';$a7_key='USER_ADMIN';$a7_escape=true;$a7_cut='both'; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$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 unset($a6_header) ?><?php $a7_class='text';$a7_key='LOGIN';$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 @@ -235,40 +148,164 @@ $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) ?><?php $a7_class='text';$a7_raw=')';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?></td></tr><?php $a5_list='el';$a5_extract=true;$a5_key='list_key';$a5_value='list_value'; ?><?php + $a5_list_tmp_key = $a5_key; + $a5_list_tmp_value = $a5_value; + $a5_list_extract = $a5_extract; + unset($a5_key); + unset($a5_value); + if ( !isset($$a5_list) || !is_array($$a5_list) ) + $$a5_list = array(); + foreach( $$a5_list as $$a5_list_tmp_key => $$a5_list_tmp_value ) + { + if ( $a5_list_extract ) + { + if ( !is_array($$a5_list_tmp_value) ) + { + print_r($$a5_list_tmp_value); + die( 'not an array at key: '.$$a5_list_tmp_key ); + } + extract($$a5_list_tmp_value); + } +?><?php unset($a5_list,$a5_extract,$a5_key,$a5_value) ?><?php $a6_class='data'; ?><?php + $column_idx = 0; +?> +<tr + class="data" +> +<?php unset($a6_class) ?><?php $a7_header=false;$a7_url=$url; ?><?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 } ?> + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a7_url ?>'); " +><?php unset($a7_header,$a7_url) ?><?php $a8_align='left';$a8_type='user'; ?><?php + $a8_tmp_image_file = $image_dir.'icon_'.$a8_type.IMG_ICON_EXT; + $a8_size = '16x16'; + $a8_tmp_title = basename($a8_tmp_image_file); +?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?> /><?php unset($a8_align,$a8_type) ?><?php $a8_class='text';$a8_var='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 = str_replace('_','&nbsp;',$a7_raw); +?><<?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) ?></td><?php $a7_header=false;$a7_url=$url; ?><?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 } ?> + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a7_url ?>'); " +><?php unset($a7_header,$a7_url) ?><?php $a8_class='text';$a8_value=$fullname;$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 = $a8_escape?htmlentities($a8_value):$a8_value; + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_value,$a8_escape,$a8_cut) ?><?php $a8_true=$isAdmin; ?><?php + if (gettype($a8_true) === '' && gettype($a8_true) === '1') + $a8_tmp_exec = $$a8_true == true; + else + $a8_tmp_exec = $a8_true == true; + $a8_tmp_last_exec = $a8_tmp_exec; + if ( $a8_tmp_exec ) + { +?> +<?php unset($a8_true) ?><?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 $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($a9_class,$a9_raw,$a9_escape,$a9_cut) ?><?php $a9_class='text';$a9_key='USER_ADMIN';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_title = ''; + $tmp_tag = 'span'; +?><<?php echo $tmp_tag ?> class="<?php echo $a9_class ?>" title="<?php echo $a9_title ?>"><?php + $langF = $a9_escape?'langHtml':'lang'; + $tmp_text = $langF($a9_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_key,$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 $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($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php } ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_raw,$a9_escape,$a9_cut) ?><?php } ?></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 $a6_title='';$a6_target='_top';$a6_class='';$a6_action='index';$a6_subaction='switchuser';$a6_id=$userid; ?><?php +><?php unset($a7_header) ?><?php $a8_title='';$a8_type='';$a8_target='_top';$a8_class='';$a8_action='index';$a8_subaction='switchuser';$a8_id=$userid;$a8_frame='_self'; ?><?php $params = array(); $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) ?><?php $a7_class='text';$a7_key='LOGIN';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; + $params[REQ_PARAM_TARGET] = $a8_target; + switch( $a8_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a8_action)?$a8_action:$this->actionName,'subaction'=>!empty($a8_subaction)?$a8_subaction:$this->subActionName,'id'=>!empty($a8_id)?$a8_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($a8_subaction)?$a8_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a8_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a8_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a8_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a8_frame ?>"<?php if (isset($a8_name)) { ?> name="<?php echo $a8_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a8_class ?>"<?php if (isset($a8_accesskey)) echo ' accesskey="'.$a8_accesskey.'"' ?> title="<?php echo encodeHtml($a8_title) ?>"><?php unset($a8_title,$a8_type,$a8_target,$a8_class,$a8_action,$a8_subaction,$a8_id,$a8_frame) ?><?php $a9_class='text';$a9_key='LOGIN';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_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 $a9_class ?>" title="<?php echo $a9_title ?>"><?php + $langF = $a9_escape?'langHtml':'lang'; + $tmp_text = $langF($a9_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 } ?> </table> - </td> - </tr> -</table> -</center> +?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_key,$a9_escape,$a9_cut) ?></a></td></tr><?php } ?><?php + $column_idx = $last_column_idx; +?> +</table><?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/> @@ -276,5 +313,4 @@ <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -</body> -</html>- \ No newline at end of file +<?php } ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/user/memberships.tpl.php b/themes/default/pages/html/user/memberships.tpl.php @@ -0,0 +1,276 @@ +<?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_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_width,$a3_rowclasses,$a3_columnclasses) ?><?php $a4_width='100%';$a4_space='0px';$a4_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($a4_width,$a4_space,$a4_padding) ?><?php $a5_class='headline'; ?><?php + $column_idx = 0; +?> +<tr + class="headline" +> +<?php unset($a5_class) ?><?php $a6_width='10%';$a6_header=false; ?><?php $column_idx++; ?><td + width="10%" +<?php if (!empty($column_classes)) { ?> + class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" +<?php } ?> +><?php unset($a6_width,$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 unset($a6_header) ?><?php $a7_class='text';$a7_key='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_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) ?></td></tr><?php $a5_list='memberships';$a5_extract=true;$a5_key='list_key';$a5_value='list_value'; ?><?php + $a5_list_tmp_key = $a5_key; + $a5_list_tmp_value = $a5_value; + $a5_list_extract = $a5_extract; + unset($a5_key); + unset($a5_value); + if ( !isset($$a5_list) || !is_array($$a5_list) ) + $$a5_list = array(); + foreach( $$a5_list as $$a5_list_tmp_key => $$a5_list_tmp_value ) + { + if ( $a5_list_extract ) + { + if ( !is_array($$a5_list_tmp_value) ) + { + print_r($$a5_list_tmp_value); + die( 'not an array at key: '.$$a5_list_tmp_key ); + } + extract($$a5_list_tmp_value); + } +?><?php unset($a5_list,$a5_extract,$a5_key,$a5_value) ?><?php $a6_class='data'; ?><?php + $column_idx = 0; +?> +<tr + class="data" +> +<?php unset($a6_class) ?><?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 unset($a7_header) ?><?php $a8_default=false;$a8_readonly=false;$a8_name=$var; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; + if ( isset($$a8_name) ) + $checked = $$a8_name; + else + $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 $a8_name ?>" value="1" /><?php +} +?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?></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 unset($a7_header) ?><?php $a8_for=$var; ?><label<?php if (isset($a8_for)) { ?> for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>" class="label"<?php } ?>> +<?php if (isset($a8_key)) { echo lang($a8_key); if(hasLang($a8_key.'_desc')) { ?><div class="description"><?php echo lang($a8_key.'_desc')?></div> <?php } } ?><?php unset($a8_for) ?><?php $a9_file='icon_group';$a9_align='left'; ?><?php + $a9_tmp_image_file = $image_dir.$a9_file.IMG_ICON_EXT; + $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_file,$a9_align) ?><?php $a9_class='text';$a9_var='name';$a9_escape=true;$a9_cut='both'; ?><?php + $a9_title = ''; + $tmp_tag = 'span'; +?><<?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($a9_class,$a9_var,$a9_escape,$a9_cut) ?></label></td></tr><?php } ?><?php + $column_idx = 0; +?> +<tr +> +<?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($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 + $column_idx = $last_column_idx; +?> +</table><?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 } ?></form> diff --git a/themes/default/pages/html/user/pw.tpl.php b/themes/default/pages/html/user/pw.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,345 +14,73 @@ $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='USER_PASSWORD';$a3_width='93%';$a3_rowclasses='rx';$a3_columnclasses='fx'; ?><?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='user_username';$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='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) ?></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('USER_new_password'); ?><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='USER_new_password';$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='password1';$a6_default='';$a6_class='';$a6_size='40';$a6_maxlength='256'; ?><input type="password" name="<?php echo $a6_name ?>" size="<?php echo $a6_size ?>" maxlength="<?php echo $a6_maxlength ?>" class="<?php echo $a6_class ?>" value="<?php if (count($errors)==0) echo isset($$a6_name)?$$a6_name:$a6_default ?>" <?php if (in_array($a6_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php unset($a6_name,$a6_default,$a6_class,$a6_size,$a6_maxlength) ?></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='USER_new_password_repeat';$a6_escape=true;$a6_cut='both'; ?><?php - $a6_title = ''; +?><?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_for='name';$a5_key='user_username'; ?><label<?php if (isset($a5_for)) { ?> for="id_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" class="label"<?php } ?>> +<?php if (isset($a5_key)) { echo lang($a5_key); if(hasLang($a5_key.'_desc')) { ?><div class="description"><?php echo lang($a5_key.'_desc')?></div> <?php } } ?><?php unset($a5_for,$a5_key) ?></label></div><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_class='name';$a5_var='name';$a5_escape=true;$a5_cut='both'; ?><?php + $a5_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 $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($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='password2';$a6_default='';$a6_class='';$a6_size='40';$a6_maxlength='256'; ?><input type="password" name="<?php echo $a6_name ?>" size="<?php echo $a6_size ?>" maxlength="<?php echo $a6_maxlength ?>" class="<?php echo $a6_class ?>" value="<?php if (count($errors)==0) echo isset($$a6_name)?$$a6_name:$a6_default ?>" <?php if (in_array($a6_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php unset($a6_name,$a6_default,$a6_class,$a6_size,$a6_maxlength) ?></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('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 $a4_present='mail'; ?><?php - $a4_tmp_exec = isset($$a4_present); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_var,$a5_escape,$a5_cut) ?></div></div><?php $a3_title=lang('USER_new_password'); ?><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) ?></fieldset><?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_for='password1';$a5_key='USER_new_password'; ?><label<?php if (isset($a5_for)) { ?> for="id_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" class="label"<?php } ?>> +<?php if (isset($a5_key)) { echo lang($a5_key); if(hasLang($a5_key.'_desc')) { ?><div class="description"><?php echo lang($a5_key.'_desc')?></div> <?php } } ?><?php unset($a5_for,$a5_key) ?></label></div><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_name='password1';$a5_default='';$a5_class='';$a5_size='40';$a5_maxlength='256'; ?><input type="password" name="<?php echo $a5_name ?>" id="id_<?php echo $a5_name ?>" size="<?php echo $a5_size ?>" maxlength="<?php echo $a5_maxlength ?>" class="<?php echo $a5_class ?>" value="<?php if (count($errors)==0) echo isset($$a5_name)?$$a5_name:$a5_default ?>" <?php if (in_array($a5_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php unset($a5_name,$a5_default,$a5_class,$a5_size,$a5_maxlength) ?></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_for='password2';$a5_key='USER_new_password_repeat'; ?><label<?php if (isset($a5_for)) { ?> for="id_<?php echo $a5_for ?><?php if (!empty($a5_value)) echo '_'.$a5_value ?>" class="label"<?php } ?>> +<?php if (isset($a5_key)) { echo lang($a5_key); if(hasLang($a5_key.'_desc')) { ?><div class="description"><?php echo lang($a5_key.'_desc')?></div> <?php } } ?><?php unset($a5_for,$a5_key) ?></label></div><?php $a4_class='input'; ?><div class="<?php echo $a4_class ?>"><?php unset($a4_class) ?><?php $a5_name='password2';$a5_default='';$a5_class='';$a5_size='40';$a5_maxlength='256'; ?><input type="password" name="<?php echo $a5_name ?>" id="id_<?php echo $a5_name ?>" size="<?php echo $a5_size ?>" maxlength="<?php echo $a5_maxlength ?>" class="<?php echo $a5_class ?>" value="<?php if (count($errors)==0) echo isset($$a5_name)?$$a5_name:$a5_default ?>" <?php if (in_array($a5_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php unset($a5_name,$a5_default,$a5_class,$a5_size,$a5_maxlength) ?></div></div><?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) ?></fieldset><?php $a3_present='mail'; ?><?php + $a3_tmp_exec = isset($$a3_present); + $a3_tmp_last_exec = $a3_tmp_exec; + if ( $a3_tmp_exec ) { ?> -<?php unset($a4_present) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_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($a6_colspan) ?><?php $a7_default=false;$a7_readonly=false;$a7_name='email'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; - if ( isset($$a7_name) ) - $checked = $$a7_name; +<?php unset($a3_present) ?><?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='email'; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; + if ( isset($$a6_name) ) + $checked = $$a6_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 = $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 $a7_name ?>" value="1" /><?php +?><input type="hidden" name="<?php echo $a6_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='email'; ?><label for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>"><?php unset($a7_for) ?><?php $a8_class='text';$a8_text='user_mail_new_password';$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></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_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($a6_colspan) ?><?php $a7_default=false;$a7_readonly=false;$a7_name='random'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a7_readonly=true; - if ( isset($$a7_name) ) - $checked = $$a7_name; +?><?php unset($a6_name); unset($a6_readonly); unset($a6_default); ?><?php unset($a6_default,$a6_readonly,$a6_name) ?><?php $a6_for='email';$a6_key='user_mail_new_password'; ?><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,$a6_key) ?></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_default=false;$a6_readonly=false;$a6_name='random'; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; + if ( isset($$a6_name) ) + $checked = $$a6_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 = $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 $a7_name ?>" value="1" /><?php +?><input type="hidden" name="<?php echo $a6_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='random'; ?><label for="id_<?php echo $a7_for ?><?php if (!empty($a7_value)) echo '_'.$a7_value ?>"><?php unset($a7_for) ?><?php $a8_class='text';$a8_text='user_random_password';$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></td></tr><?php } ?><?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_default=false;$a6_readonly=false;$a6_name='timeout'; ?><?php +?><?php unset($a6_name); unset($a6_readonly); unset($a6_default); ?><?php unset($a6_default,$a6_readonly,$a6_name) ?><?php $a6_for='random';$a6_key='user_random_password'; ?><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,$a6_key) ?></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_default=false;$a6_readonly=false;$a6_name='timeout'; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a6_readonly=true; if ( isset($$a6_name) ) $checked = $$a6_name; @@ -395,55 +91,7 @@ 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='timeout'; ?><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='user_password_timeout';$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></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='password1'; ?><?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 unset($a6_name); unset($a6_readonly); unset($a6_default); ?><?php unset($a6_default,$a6_readonly,$a6_name) ?><?php $a6_for='timeout';$a6_key='user_password_timeout'; ?><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,$a6_key) ?></label></div></div><?php } ?><?php $a3_field='password1'; ?><script name="JavaScript" type="text/javascript"><!-- </script> -<?php unset($a2_field) ?></body> -</html>- \ No newline at end of file +<?php unset($a3_field) ?></form> diff --git a/themes/default/pages/html/user/remove.tpl.php b/themes/default/pages/html/user/remove.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 } ?> - <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_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(); @@ -46,177 +30,32 @@ $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_USER';$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 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_widths,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?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('NAME'); ?><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='user_username';$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='name';$a6_var='name';$a6_escape=true;$a6_cut='both'; ?><?php +?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype,$a2_type) ?><?php $a3_title=lang('NAME'); ?><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_key='user_username'; ?><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_key) ?></label></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 @@ -225,35 +64,7 @@ $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 $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('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++; - $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_default=false;$a6_readonly=false;$a6_name='confirm'; ?><?php +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_var,$a6_escape,$a6_cut) ?></div></div><?php $a4_title=lang('options'); ?><fieldset><?php if(isset($a4_title)) { ?><legend><?php if(isset($a4_icon)) { ?><img src="<?php echo $image_dir.'icon_'.$a4_icon.IMG_ICON_EXT ?>" align="left" border="0" /><?php } ?>&nbsp;&nbsp;<?php echo encodeHtml($a4_title) ?>&nbsp;&nbsp;</legend><?php } ?><?php unset($a4_title) ?></fieldset><?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; @@ -264,55 +75,5 @@ 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='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></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 unset($a6_name); unset($a6_readonly); unset($a6_default); ?><?php unset($a6_default,$a6_readonly,$a6_name) ?><?php $a6_for='confirm';$a6_key='delete'; ?><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,$a6_key) ?></label></div></div></fieldset></form> diff --git a/themes/default/pages/html/user/rights.tpl.php b/themes/default/pages/html/user/rights.tpl.php @@ -1,95 +1,42 @@ -<?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_title='ACL';$a2_name='x';$a2_width='93%';$a2_rowclasses='odd,even';$a2_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - $icon=$actionName; - $row_classes = explode(',',$a2_rowclasses); - $row_class_idx = 999; - $column_classes = explode(',',$a2_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="'.$a2_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 $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']); @@ -97,409 +44,429 @@ $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($a2_title,$a2_name,$a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php $a3_list='projects';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php - $a3_list_tmp_key = $a3_key; - $a3_list_tmp_value = $a3_value; - $a3_list_extract = $a3_extract; - unset($a3_key); - unset($a3_value); - if ( !isset($$a3_list) || !is_array($$a3_list) ) - $$a3_list = array(); - foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) +<div class="content"><div class="filler"> +<?php } ?><?php unset($a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php $a4_list='projects';$a4_extract=true;$a4_key='list_key';$a4_value='list_value'; ?><?php + $a4_list_tmp_key = $a4_key; + $a4_list_tmp_value = $a4_value; + $a4_list_extract = $a4_extract; + unset($a4_key); + unset($a4_value); + if ( !isset($$a4_list) || !is_array($$a4_list) ) + $$a4_list = array(); + foreach( $$a4_list as $$a4_list_tmp_key => $$a4_list_tmp_value ) { - if ( $a3_list_extract ) + if ( $a4_list_extract ) { - if ( !is_array($$a3_list_tmp_value) ) + if ( !is_array($$a4_list_tmp_value) ) { - print_r($$a3_list_tmp_value); - die( 'not an array at key: '.$$a3_list_tmp_key ); + print_r($$a4_list_tmp_value); + die( 'not an array at key: '.$$a4_list_tmp_key ); } - extract($$a3_list_tmp_value); + extract($$a4_list_tmp_value); } -?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php - $row_idx++; +?><?php unset($a4_list,$a4_extract,$a4_key,$a4_value) ?><?php $column_idx = 0; ?> <tr > -<?php $a5_colspan='14'; ?><?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 } ?> <?php if (!empty($column_classes)) { ?> class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" <?php } ?> - colspan="14" -><?php unset($a5_colspan) ?><?php $a6_title=$projectname; ?><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_empty='acls'; ?><?php - if ( !isset($$a4_empty) ) - $a4_tmp_exec = empty($a4_empty); - elseif ( is_array($$a4_empty) ) - $a4_tmp_exec = (count($$a4_empty)==0); - elseif ( is_bool($$a4_empty) ) - $a4_tmp_exec = true; + colspan="2" +><?php unset($a6_colspan,$a6_header) ?><?php $a7_title=$projectname; ?><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) ?><?php $a8_empty='acls'; ?><?php + if ( !isset($$a8_empty) ) + $a8_tmp_exec = empty($a8_empty); + elseif ( is_array($$a8_empty) ) + $a8_tmp_exec = (count($$a8_empty)==0); + elseif ( is_bool($$a8_empty) ) + $a8_tmp_exec = true; else - $a4_tmp_exec = empty( $$a4_empty ); - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) + $a8_tmp_exec = empty( $$a8_empty ); + $a8_tmp_last_exec = $a8_tmp_exec; + if ( $a8_tmp_exec ) { ?> -<?php unset($a4_empty) ?><?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_NOT_FOUND';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +<?php unset($a8_empty) ?><div><?php $a10_class='text';$a10_text='GLOBAL_NOT_FOUND';$a10_escape=true;$a10_cut='both'; ?><?php + $a10_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 $a10_class ?>" title="<?php echo $a10_title ?>"><?php + $langF = $a10_escape?'langHtml':'lang'; + $tmp_text = $langF($a10_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></tr><?php } ?><?php $a4_not=true;$a4_empty='acls'; ?><?php - if ( !isset($$a4_empty) ) - $a4_tmp_exec = empty($a4_empty); - elseif ( is_array($$a4_empty) ) - $a4_tmp_exec = (count($$a4_empty)==0); - elseif ( is_bool($$a4_empty) ) - $a4_tmp_exec = true; +?></<?php echo $tmp_tag ?>><?php unset($a10_class,$a10_text,$a10_escape,$a10_cut) ?></div><?php } ?><?php $a8_not=true;$a8_empty='acls'; ?><?php + if ( !isset($$a8_empty) ) + $a8_tmp_exec = empty($a8_empty); + elseif ( is_array($$a8_empty) ) + $a8_tmp_exec = (count($$a8_empty)==0); + elseif ( is_bool($$a8_empty) ) + $a8_tmp_exec = true; else - $a4_tmp_exec = empty( $$a4_empty ); - $a4_tmp_exec = !$a4_tmp_exec; - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) + $a8_tmp_exec = empty( $$a8_empty ); + $a8_tmp_exec = !$a8_tmp_exec; + $a8_tmp_last_exec = $a8_tmp_exec; + if ( $a8_tmp_exec ) { ?> -<?php unset($a4_not,$a4_empty) ?><?php - $row_idx++; +<?php unset($a8_not,$a8_empty) ?><?php $a9_width='100%';$a9_space='0px';$a9_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($a9_width,$a9_space,$a9_padding) ?><?php $a10_class='headline'; ?><?php $column_idx = 0; ?> <tr + class="headline" > -<?php $a6_class='help'; ?><?php $column_idx++; ?><td +<?php unset($a10_class) ?><?php $a11_class='help';$a11_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='GLOBAL_USER';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a11_class,$a11_header) ?><?php $a12_class='text';$a12_text='GLOBAL_USER';$a12_escape=true;$a12_cut='both'; ?><?php + $a12_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 $a12_class ?>" title="<?php echo $a12_title ?>"><?php + $langF = $a12_escape?'langHtml':'lang'; + $tmp_text = $langF($a12_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='help'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a12_class,$a12_text,$a12_escape,$a12_cut) ?></td><?php $a11_class='help';$a11_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='GLOBAL_NAME';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a11_class,$a11_header) ?><?php $a12_class='text';$a12_text='GLOBAL_NAME';$a12_escape=true;$a12_cut='both'; ?><?php + $a12_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 $a12_class ?>" title="<?php echo $a12_title ?>"><?php + $langF = $a12_escape?'langHtml':'lang'; + $tmp_text = $langF($a12_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='help'; ?><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a12_class,$a12_text,$a12_escape,$a12_cut) ?></td><?php $a11_class='help';$a11_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a6_class) ?><?php $a7_class='text';$a7_text='GLOBAL_LANGUAGE';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a11_class,$a11_header) ?><?php $a12_class='text';$a12_text='GLOBAL_LANGUAGE';$a12_escape=true;$a12_cut='both'; ?><?php + $a12_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 $a12_class ?>" title="<?php echo $a12_title ?>"><?php + $langF = $a12_escape?'langHtml':'lang'; + $tmp_text = $langF($a12_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_list='show';$a6_extract=false;$a6_key='list_key';$a6_value='t'; ?><?php - $a6_list_tmp_key = $a6_key; - $a6_list_tmp_value = $a6_value; - $a6_list_extract = $a6_extract; - unset($a6_key); - unset($a6_value); - if ( !isset($$a6_list) || !is_array($$a6_list) ) - $$a6_list = array(); - foreach( $$a6_list as $$a6_list_tmp_key => $$a6_list_tmp_value ) +?></<?php echo $tmp_tag ?>><?php unset($a12_class,$a12_text,$a12_escape,$a12_cut) ?></td><?php $a11_list='show';$a11_extract=false;$a11_key='list_key';$a11_value='t'; ?><?php + $a11_list_tmp_key = $a11_key; + $a11_list_tmp_value = $a11_value; + $a11_list_extract = $a11_extract; + unset($a11_key); + unset($a11_value); + if ( !isset($$a11_list) || !is_array($$a11_list) ) + $$a11_list = array(); + foreach( $$a11_list as $$a11_list_tmp_key => $$a11_list_tmp_value ) { - if ( $a6_list_extract ) + if ( $a11_list_extract ) { - if ( !is_array($$a6_list_tmp_value) ) + if ( !is_array($$a11_list_tmp_value) ) { - print_r($$a6_list_tmp_value); - die( 'not an array at key: '.$$a6_list_tmp_key ); + print_r($$a11_list_tmp_value); + die( 'not an array at key: '.$$a11_list_tmp_key ); } - extract($$a6_list_tmp_value); + extract($$a11_list_tmp_value); } -?><?php unset($a6_list,$a6_extract,$a6_key,$a6_value) ?><?php $a7_class='help'; ?><?php $column_idx++; ?><td +?><?php unset($a11_list,$a11_extract,$a11_key,$a11_value) ?><?php $a12_class='help';$a12_header=false; ?><?php $column_idx++; ?><td <?php if (!empty($column_widths)) { ?> width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" <?php } ?> class="help" -><?php unset($a7_class) ?><?php $a8_title=lang('acl_'.$t.'');$a8_class='text';$a8_key=$t;$a8_suffix='_abbrev';$a8_prefix='acl_';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_key = $a8_prefix.$a8_key; - $a8_key = $a8_key.$a8_suffix; +><?php unset($a12_class,$a12_header) ?><?php $a13_title=lang('acl_'.$t.'');$a13_class='text';$a13_key=$t;$a13_suffix='_abbrev';$a13_prefix='acl_';$a13_escape=true;$a13_cut='both'; ?><?php + $a13_key = $a13_prefix.$a13_key; + $a13_key = $a13_key.$a13_suffix; $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_key); +?><<?php echo $tmp_tag ?> class="<?php echo $a13_class ?>" title="<?php echo $a13_title ?>"><?php + $langF = $a13_escape?'langHtml':'lang'; + $tmp_text = $langF($a13_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_title,$a8_class,$a8_key,$a8_suffix,$a8_prefix,$a8_escape,$a8_cut) ?></td><?php } ?></tr><?php } ?><?php $a4_list='rights';$a4_extract=true;$a4_key='aclid';$a4_value='acl'; ?><?php - $a4_list_tmp_key = $a4_key; - $a4_list_tmp_value = $a4_value; - $a4_list_extract = $a4_extract; - unset($a4_key); - unset($a4_value); - if ( !isset($$a4_list) || !is_array($$a4_list) ) - $$a4_list = array(); - foreach( $$a4_list as $$a4_list_tmp_key => $$a4_list_tmp_value ) +?></<?php echo $tmp_tag ?>><?php unset($a13_title,$a13_class,$a13_key,$a13_suffix,$a13_prefix,$a13_escape,$a13_cut) ?></td><?php } ?></tr><?php $a10_list='rights';$a10_extract=true;$a10_key='aclid';$a10_value='acl'; ?><?php + $a10_list_tmp_key = $a10_key; + $a10_list_tmp_value = $a10_value; + $a10_list_extract = $a10_extract; + unset($a10_key); + unset($a10_value); + if ( !isset($$a10_list) || !is_array($$a10_list) ) + $$a10_list = array(); + foreach( $$a10_list as $$a10_list_tmp_key => $$a10_list_tmp_value ) { - if ( $a4_list_extract ) + if ( $a10_list_extract ) { - if ( !is_array($$a4_list_tmp_value) ) + if ( !is_array($$a10_list_tmp_value) ) { - print_r($$a4_list_tmp_value); - die( 'not an array at key: '.$$a4_list_tmp_key ); + print_r($$a10_list_tmp_value); + die( 'not an array at key: '.$$a10_list_tmp_key ); } - extract($$a4_list_tmp_value); + extract($$a10_list_tmp_value); } -?><?php unset($a4_list,$a4_extract,$a4_key,$a4_value) ?><?php $a5_class='data'; ?><?php - $row_idx++; +?><?php unset($a10_list,$a10_extract,$a10_key,$a10_value) ?><?php $a11_class='data'; ?><?php $column_idx = 0; ?> <tr class="data" > -<?php unset($a5_class) ?><?php $column_idx++; ?><td +<?php unset($a11_class) ?><?php $a12_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='username'; ?><?php - $a7_tmp_exec = isset($$a7_present); - $a7_tmp_last_exec = $a7_tmp_exec; - if ( $a7_tmp_exec ) +><?php unset($a12_header) ?><?php $a13_present='username'; ?><?php + $a13_tmp_exec = isset($$a13_present); + $a13_tmp_last_exec = $a13_tmp_exec; + if ( $a13_tmp_exec ) { ?> -<?php unset($a7_present) ?><?php $a8_align='left';$a8_type='user'; ?><?php - $a8_tmp_image_file = $image_dir.'icon_'.$a8_type.IMG_ICON_EXT; - $a8_size = '16x16'; - $a8_tmp_title = basename($a8_tmp_image_file); -?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?>><?php unset($a8_align,$a8_type) ?><?php $a8_class='text';$a8_var='username';$a8_maxlength='20';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +<?php unset($a13_present) ?><?php $a14_align='left';$a14_type='user'; ?><?php + $a14_tmp_image_file = $image_dir.'icon_'.$a14_type.IMG_ICON_EXT; + $a14_size = '16x16'; + $a14_tmp_title = basename($a14_tmp_image_file); +?><img alt="<?php echo $a14_tmp_title; if (isset($a14_size)) { echo ' ('; list($a14_tmp_width,$a14_tmp_height)=explode('x',$a14_size);echo $a14_tmp_width.'x'.$a14_tmp_height; echo')';} ?>" src="<?php echo $a14_tmp_image_file ?>" border="0"<?php if(isset($a14_align)) echo ' align="'.$a14_align.'"' ?><?php if (isset($a14_size)) { list($a14_tmp_width,$a14_tmp_height)=explode('x',$a14_size);echo ' width="'.$a14_tmp_width.'" height="'.$a14_tmp_height.'"';} ?> /><?php unset($a14_align,$a14_type) ?><?php $a14_class='text';$a14_var='username';$a14_maxlength='20';$a14_escape=true;$a14_cut='both'; ?><?php + $a14_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 = Text::maxLength( $tmp_text,intval($a8_maxlength),'..',constant('STR_PAD_'.strtoupper($a8_cut)) ); +?><<?php echo $tmp_tag ?> class="<?php echo $a14_class ?>" title="<?php echo $a14_title ?>"><?php + $langF = $a14_escape?'langHtml':'lang'; + $tmp_text = isset($$a14_var)?$$a14_var:$langF('UNKNOWN'); + $tmp_text = Text::maxLength( $tmp_text,intval($a14_maxlength),'..',constant('STR_PAD_'.strtoupper($a14_cut)) ); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_var,$a8_maxlength,$a8_escape,$a8_cut) ?><?php } ?><?php $a7_present='groupname'; ?><?php - $a7_tmp_exec = isset($$a7_present); - $a7_tmp_last_exec = $a7_tmp_exec; - if ( $a7_tmp_exec ) +?></<?php echo $tmp_tag ?>><?php unset($a14_class,$a14_var,$a14_maxlength,$a14_escape,$a14_cut) ?><?php } ?><?php $a13_present='groupname'; ?><?php + $a13_tmp_exec = isset($$a13_present); + $a13_tmp_last_exec = $a13_tmp_exec; + if ( $a13_tmp_exec ) { ?> -<?php unset($a7_present) ?><?php $a8_align='left';$a8_type='group'; ?><?php - $a8_tmp_image_file = $image_dir.'icon_'.$a8_type.IMG_ICON_EXT; - $a8_size = '16x16'; - $a8_tmp_title = basename($a8_tmp_image_file); -?><img alt="<?php echo $a8_tmp_title; if (isset($a8_size)) { echo ' ('; list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo $a8_tmp_width.'x'.$a8_tmp_height; echo')';} ?>" src="<?php echo $a8_tmp_image_file ?>" border="0"<?php if(isset($a8_align)) echo ' align="'.$a8_align.'"' ?><?php if (isset($a8_size)) { list($a8_tmp_width,$a8_tmp_height)=explode('x',$a8_size);echo ' width="'.$a8_tmp_width.'" height="'.$a8_tmp_height.'"';} ?>><?php unset($a8_align,$a8_type) ?><?php $a8_class='text';$a8_var='groupname';$a8_maxlength='20';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +<?php unset($a13_present) ?><?php $a14_align='left';$a14_type='group'; ?><?php + $a14_tmp_image_file = $image_dir.'icon_'.$a14_type.IMG_ICON_EXT; + $a14_size = '16x16'; + $a14_tmp_title = basename($a14_tmp_image_file); +?><img alt="<?php echo $a14_tmp_title; if (isset($a14_size)) { echo ' ('; list($a14_tmp_width,$a14_tmp_height)=explode('x',$a14_size);echo $a14_tmp_width.'x'.$a14_tmp_height; echo')';} ?>" src="<?php echo $a14_tmp_image_file ?>" border="0"<?php if(isset($a14_align)) echo ' align="'.$a14_align.'"' ?><?php if (isset($a14_size)) { list($a14_tmp_width,$a14_tmp_height)=explode('x',$a14_size);echo ' width="'.$a14_tmp_width.'" height="'.$a14_tmp_height.'"';} ?> /><?php unset($a14_align,$a14_type) ?><?php $a14_class='text';$a14_var='groupname';$a14_maxlength='20';$a14_escape=true;$a14_cut='both'; ?><?php + $a14_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 = Text::maxLength( $tmp_text,intval($a8_maxlength),'..',constant('STR_PAD_'.strtoupper($a8_cut)) ); +?><<?php echo $tmp_tag ?> class="<?php echo $a14_class ?>" title="<?php echo $a14_title ?>"><?php + $langF = $a14_escape?'langHtml':'lang'; + $tmp_text = isset($$a14_var)?$$a14_var:$langF('UNKNOWN'); + $tmp_text = Text::maxLength( $tmp_text,intval($a14_maxlength),'..',constant('STR_PAD_'.strtoupper($a14_cut)) ); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_class,$a8_var,$a8_maxlength,$a8_escape,$a8_cut) ?><?php } ?><?php $a7_not=true;$a7_present='username'; ?><?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 echo $tmp_tag ?>><?php unset($a14_class,$a14_var,$a14_maxlength,$a14_escape,$a14_cut) ?><?php } ?><?php $a13_not=true;$a13_present='username'; ?><?php + $a13_tmp_exec = isset($$a13_present); + $a13_tmp_exec = !$a13_tmp_exec; + $a13_tmp_last_exec = $a13_tmp_exec; + if ( $a13_tmp_exec ) { ?> -<?php unset($a7_not,$a7_present) ?><?php $a8_not=true;$a8_present='groupname'; ?><?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($a13_not,$a13_present) ?><?php $a14_not=true;$a14_present='groupname'; ?><?php + $a14_tmp_exec = isset($$a14_present); + $a14_tmp_exec = !$a14_tmp_exec; + $a14_tmp_last_exec = $a14_tmp_exec; + if ( $a14_tmp_exec ) { ?> -<?php unset($a8_not,$a8_present) ?><?php $a9_align='left';$a9_type='group'; ?><?php - $a9_tmp_image_file = $image_dir.'icon_'.$a9_type.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_align,$a9_type) ?><?php $a9_class='text';$a9_key='global_all';$a9_escape=true;$a9_cut='both'; ?><?php - $a9_title = ''; +<?php unset($a14_not,$a14_present) ?><?php $a15_align='left';$a15_type='group'; ?><?php + $a15_tmp_image_file = $image_dir.'icon_'.$a15_type.IMG_ICON_EXT; + $a15_size = '16x16'; + $a15_tmp_title = basename($a15_tmp_image_file); +?><img alt="<?php echo $a15_tmp_title; if (isset($a15_size)) { echo ' ('; list($a15_tmp_width,$a15_tmp_height)=explode('x',$a15_size);echo $a15_tmp_width.'x'.$a15_tmp_height; echo')';} ?>" src="<?php echo $a15_tmp_image_file ?>" border="0"<?php if(isset($a15_align)) echo ' align="'.$a15_align.'"' ?><?php if (isset($a15_size)) { list($a15_tmp_width,$a15_tmp_height)=explode('x',$a15_size);echo ' width="'.$a15_tmp_width.'" height="'.$a15_tmp_height.'"';} ?> /><?php unset($a15_align,$a15_type) ?><?php $a15_class='text';$a15_key='global_all';$a15_escape=true;$a15_cut='both'; ?><?php + $a15_title = ''; $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $a9_class ?>" title="<?php echo $a9_title ?>"><?php - $langF = $a9_escape?'langHtml':'lang'; - $tmp_text = $langF($a9_key); +?><<?php echo $tmp_tag ?> class="<?php echo $a15_class ?>" title="<?php echo $a15_title ?>"><?php + $langF = $a15_escape?'langHtml':'lang'; + $tmp_text = $langF($a15_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a9_class,$a9_key,$a9_escape,$a9_cut) ?><?php } ?><?php } ?><?php $a7_var='username'; ?><?php - if (!isset($a7_value)) - unset($$a7_var); -?><?php unset($a7_var) ?><?php $a7_var='groupname'; ?><?php - if (!isset($a7_value)) - unset($$a7_var); -?><?php unset($a7_var) ?></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a15_class,$a15_key,$a15_escape,$a15_cut) ?><?php } ?><?php } ?><?php $a13_var='username'; ?><?php + if (!isset($a13_value)) + unset($$a13_var); +?><?php unset($a13_var) ?><?php $a13_var='groupname'; ?><?php + if (!isset($a13_value)) + unset($$a13_var); +?><?php unset($a13_var) ?></td><?php $a12_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_align='left';$a7_type=$objecttype; ?><?php - $a7_tmp_image_file = $image_dir.'icon_'.$a7_type.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_align,$a7_type) ?><?php $a7_title='';$a7_target='_top';$a7_class='';$a7_action='index';$a7_subaction='object';$a7_id=$objectid; ?><?php +><?php unset($a12_header) ?><?php $a13_align='left';$a13_type=$objecttype; ?><?php + $a13_tmp_image_file = $image_dir.'icon_'.$a13_type.IMG_ICON_EXT; + $a13_size = '16x16'; + $a13_tmp_title = basename($a13_tmp_image_file); +?><img alt="<?php echo $a13_tmp_title; if (isset($a13_size)) { echo ' ('; list($a13_tmp_width,$a13_tmp_height)=explode('x',$a13_size);echo $a13_tmp_width.'x'.$a13_tmp_height; echo')';} ?>" src="<?php echo $a13_tmp_image_file ?>" border="0"<?php if(isset($a13_align)) echo ' align="'.$a13_align.'"' ?><?php if (isset($a13_size)) { list($a13_tmp_width,$a13_tmp_height)=explode('x',$a13_size);echo ' width="'.$a13_tmp_width.'" height="'.$a13_tmp_height.'"';} ?> /><?php unset($a13_align,$a13_type) ?><?php $a13_title='';$a13_type='';$a13_class='';$a13_action=$objecttype;$a13_subaction='';$a13_id=$objectid;$a13_frame='_self'; ?><?php $params = array(); $tmp_url = ''; - $tmp_url = Html::url($a7_action,$a7_subaction,!empty($a7_id)?$a7_id:$this->getRequestId(),$params); -?><a<?php if (isset($a7_name)) echo ' name="'.$a7_name.'"'; else echo ' href="'.$tmp_url.(isset($a7_anchor)?'#'.$a7_anchor:'').'"' ?> class="<?php echo $a7_class ?>" target="<?php echo $a7_target ?>"<?php if (isset($a7_accesskey)) echo ' accesskey="'.$a7_accesskey.'"' ?> title="<?php echo encodeHtml($a7_title) ?>"><?php unset($a7_title,$a7_target,$a7_class,$a7_action,$a7_subaction,$a7_id) ?><?php $a8_title=lang('select');$a8_class='text';$a8_var='objectname';$a8_maxlength='20';$a8_escape=true;$a8_cut='both'; ?><?php + $a13_target = $view; + switch( $a13_type ) + { + case 'post': + $json = new JSON(); + $tmp_data = $json->encode( array('action'=>!empty($a13_action)?$a13_action:$this->actionName,'subaction'=>!empty($a13_subaction)?$a13_subaction:$this->subActionName,'id'=>!empty($a13_id)?$a13_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($a13_subaction)?$a13_subaction:$this->subActionName)."');"; + break; + case 'url': + $tmp_function_call = "submitUrl(this,'".($a13_url)."');"; + break; + case 'external': + $tmp_function_call = "location.href='".$a13_url."';"; + break; + case 'popup': + $tmp_function_call = "window.open('".$a13_url."', 'Popup', 'location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes');"; + break; + default: + $tmp_function_call = "alert('TODO');"; + } +?><a target="<?php echo $a13_frame ?>"<?php if (isset($a13_name)) { ?> name="<?php echo $a13_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_function_call ?>" <?php } ?> class="<?php echo $a13_class ?>"<?php if (isset($a13_accesskey)) echo ' accesskey="'.$a13_accesskey.'"' ?> title="<?php echo encodeHtml($a13_title) ?>"><?php unset($a13_title,$a13_type,$a13_class,$a13_action,$a13_subaction,$a13_id,$a13_frame) ?><?php $a14_title=lang('select');$a14_class='text';$a14_var='objectname';$a14_maxlength='20';$a14_escape=true;$a14_cut='both'; ?><?php $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 = Text::maxLength( $tmp_text,intval($a8_maxlength),'..',constant('STR_PAD_'.strtoupper($a8_cut)) ); +?><<?php echo $tmp_tag ?> class="<?php echo $a14_class ?>" title="<?php echo $a14_title ?>"><?php + $langF = $a14_escape?'langHtml':'lang'; + $tmp_text = isset($$a14_var)?$$a14_var:$langF('UNKNOWN'); + $tmp_text = Text::maxLength( $tmp_text,intval($a14_maxlength),'..',constant('STR_PAD_'.strtoupper($a14_cut)) ); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a8_title,$a8_class,$a8_var,$a8_maxlength,$a8_escape,$a8_cut) ?></a></td><?php $column_idx++; ?><td +?></<?php echo $tmp_tag ?>><?php unset($a14_title,$a14_class,$a14_var,$a14_maxlength,$a14_escape,$a14_cut) ?></a></td><?php $a12_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_var='languagename';$a7_maxlength='20';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?php unset($a12_header) ?><?php $a13_class='text';$a13_var='languagename';$a13_maxlength='20';$a13_escape=true;$a13_cut='both'; ?><?php + $a13_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 = Text::maxLength( $tmp_text,intval($a7_maxlength),'..',constant('STR_PAD_'.strtoupper($a7_cut)) ); +?><<?php echo $tmp_tag ?> class="<?php echo $a13_class ?>" title="<?php echo $a13_title ?>"><?php + $langF = $a13_escape?'langHtml':'lang'; + $tmp_text = isset($$a13_var)?$$a13_var:$langF('UNKNOWN'); + $tmp_text = Text::maxLength( $tmp_text,intval($a13_maxlength),'..',constant('STR_PAD_'.strtoupper($a13_cut)) ); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_var,$a7_maxlength,$a7_escape,$a7_cut) ?></td><?php $a6_list='show';$a6_extract=false;$a6_key='list_key';$a6_value='list_value'; ?><?php - $a6_list_tmp_key = $a6_key; - $a6_list_tmp_value = $a6_value; - $a6_list_extract = $a6_extract; - unset($a6_key); - unset($a6_value); - if ( !isset($$a6_list) || !is_array($$a6_list) ) - $$a6_list = array(); - foreach( $$a6_list as $$a6_list_tmp_key => $$a6_list_tmp_value ) +?></<?php echo $tmp_tag ?>><?php unset($a13_class,$a13_var,$a13_maxlength,$a13_escape,$a13_cut) ?></td><?php $a12_list='show';$a12_extract=false;$a12_key='list_key';$a12_value='list_value'; ?><?php + $a12_list_tmp_key = $a12_key; + $a12_list_tmp_value = $a12_value; + $a12_list_extract = $a12_extract; + unset($a12_key); + unset($a12_value); + if ( !isset($$a12_list) || !is_array($$a12_list) ) + $$a12_list = array(); + foreach( $$a12_list as $$a12_list_tmp_key => $$a12_list_tmp_value ) { - if ( $a6_list_extract ) + if ( $a12_list_extract ) { - if ( !is_array($$a6_list_tmp_value) ) + if ( !is_array($$a12_list_tmp_value) ) { - print_r($$a6_list_tmp_value); - die( 'not an array at key: '.$$a6_list_tmp_key ); + print_r($$a12_list_tmp_value); + die( 'not an array at key: '.$$a12_list_tmp_key ); } - extract($$a6_list_tmp_value); + extract($$a12_list_tmp_value); } -?><?php unset($a6_list,$a6_extract,$a6_key,$a6_value) ?><?php $column_idx++; ?><td +?><?php unset($a12_list,$a12_extract,$a12_key,$a12_value) ?><?php $a13_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 $a8_var=$list_value;$a8_value=$bits;$a8_key=$list_value; ?><?php - if (isset($a8_key)) - $$a8_var = $a8_value[$a8_key]; +><?php unset($a13_header) ?><?php $a14_var=$list_value;$a14_value=$bits;$a14_key=$list_value; ?><?php + if (isset($a14_key)) + $$a14_var = $a14_value[$a14_key]; else - $$a8_var = $a8_value; -?><?php unset($a8_var,$a8_value,$a8_key) ?><?php $a8_default=false;$a8_readonly=true;$a8_name=$list_value; ?><?php - if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true; - if ( isset($$a8_name) ) - $checked = $$a8_name; + $$a14_var = $a14_value; +?><?php unset($a14_var,$a14_value,$a14_key) ?><?php $a14_default=false;$a14_readonly=true;$a14_name=$list_value; ?><?php + if ($this->isEditable() && !$this->isEditMode()) $a14_readonly=true; + if ( isset($$a14_name) ) + $checked = $$a14_name; else - $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 ) + $checked = $a14_default; +?><input class="checkbox" type="checkbox" id="id_<?php echo $a14_name ?>" name="<?php echo $a14_name ?>" <?php if ($a14_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?><?php if (in_array($a14_name,$errors)) echo ' style="background-color:red;"' ?> /><?php +if ( $a14_readonly && $checked ) { -?><input type="hidden" name="<?php echo $a8_name ?>" value="1" /><?php +?><input type="hidden" name="<?php echo $a14_name ?>" value="1" /><?php } -?><?php unset($a8_name); unset($a8_readonly); unset($a8_default); ?><?php unset($a8_default,$a8_readonly,$a8_name) ?></td><?php } ?></tr><?php } ?><?php } ?> </table> - </td> - </tr> -</table> -</center> +?><?php unset($a14_name); unset($a14_readonly); unset($a14_default); ?><?php unset($a14_default,$a14_readonly,$a14_name) ?></td><?php } ?></tr><?php } ?><?php + $column_idx = $last_column_idx; +?> +</table><?php } ?></fieldset></td></tr><?php } ?><?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/> @@ -507,5 +474,4 @@ if ( $a8_readonly && $checked ) <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> <?php } ?> -</body> -</html>- \ No newline at end of file +<?php } ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/userlist/add.tpl.php b/themes/default/pages/html/userlist/add.tpl.php @@ -0,0 +1,66 @@ +<?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 $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()) + { + $a3_method = 'POST'; + } + else + { + $a3_method = 'GET'; + $a3_subaction = $subActionName; + } + } + 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 $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($a3_name,$a3_target,$a3_method,$a3_enctype,$a3_type) ?><?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';$a6_key='user_username'; ?><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,$a6_key) ?></label></div><?php $a5_class='input'; ?><div class="<?php echo $a5_class ?>"><?php unset($a5_class) ?><?php $a6_class='focus';$a6_default='';$a6_type='text';$a6_name='name';$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 ?>" 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 { ?><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></form> diff --git a/themes/default/pages/html/userlist/show.tpl.php b/themes/default/pages/html/userlist/show.tpl.php @@ -0,0 +1,228 @@ +<?php $a2_name='';$a2_views='add';$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_width='100%';$a2_space='0px';$a2_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($a2_width,$a2_space,$a2_padding) ?><?php $a3_class='headline'; ?><?php + $column_idx = 0; +?> +<tr + class="headline" +> +<?php unset($a3_class) ?><?php $a4_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($a4_header) ?><?php $a5_align='left';$a5_type='user'; ?><?php + $a5_tmp_image_file = $image_dir.'icon_'.$a5_type.IMG_ICON_EXT; + $a5_size = '16x16'; + $a5_tmp_title = basename($a5_tmp_image_file); +?><img alt="<?php echo $a5_tmp_title; if (isset($a5_size)) { echo ' ('; list($a5_tmp_width,$a5_tmp_height)=explode('x',$a5_size);echo $a5_tmp_width.'x'.$a5_tmp_height; echo')';} ?>" src="<?php echo $a5_tmp_image_file ?>" border="0"<?php if(isset($a5_align)) echo ' align="'.$a5_align.'"' ?><?php if (isset($a5_size)) { list($a5_tmp_width,$a5_tmp_height)=explode('x',$a5_size);echo ' width="'.$a5_tmp_width.'" height="'.$a5_tmp_height.'"';} ?> /><?php unset($a5_align,$a5_type) ?><?php $a5_class='text';$a5_key='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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></td><?php $a4_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($a4_header) ?><?php $a5_class='text';$a5_raw='';$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 = str_replace('_','&nbsp;',$a5_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_raw,$a5_escape,$a5_cut) ?></td><?php $a4_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($a4_header) ?><?php $a5_class='text';$a5_key='LOGIN';$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_key); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a5_class,$a5_key,$a5_escape,$a5_cut) ?></td></tr><?php $a3_list='el';$a3_extract=true;$a3_key='list_key';$a3_value='list_value'; ?><?php + $a3_list_tmp_key = $a3_key; + $a3_list_tmp_value = $a3_value; + $a3_list_extract = $a3_extract; + unset($a3_key); + unset($a3_value); + if ( !isset($$a3_list) || !is_array($$a3_list) ) + $$a3_list = array(); + foreach( $$a3_list as $$a3_list_tmp_key => $$a3_list_tmp_value ) + { + if ( $a3_list_extract ) + { + if ( !is_array($$a3_list_tmp_value) ) + { + print_r($$a3_list_tmp_value); + die( 'not an array at key: '.$$a3_list_tmp_key ); + } + extract($$a3_list_tmp_value); + } +?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php $a4_class='data'; ?><?php + $column_idx = 0; +?> +<tr + class="data" +> +<?php unset($a4_class) ?><?php $a5_header=false;$a5_url=$url; ?><?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 } ?> + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a5_url ?>'); " +><?php unset($a5_header,$a5_url) ?><?php $a6_align='left';$a6_type='user'; ?><?php + $a6_tmp_image_file = $image_dir.'icon_'.$a6_type.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_align,$a6_type) ?><?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 + $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><?php $a5_header=false;$a5_url=$url; ?><?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 } ?> + onclick="javascript:loadViewByName('<?php echo $view ?>','<?php echo $a5_url ?>'); " +><?php unset($a5_header,$a5_url) ?><?php $a6_class='text';$a6_value=$fullname;$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 = $a6_escape?htmlentities($a6_value):$a6_value; + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a6_class,$a6_value,$a6_escape,$a6_cut) ?><?php $a6_true=$isAdmin; ?><?php + if (gettype($a6_true) === '' && gettype($a6_true) === '1') + $a6_tmp_exec = $$a6_true == true; + else + $a6_tmp_exec = $a6_true == true; + $a6_tmp_last_exec = $a6_tmp_exec; + if ( $a6_tmp_exec ) + { +?> +<?php unset($a6_true) ?><?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 + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a7_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php $a7_class='text';$a7_key='USER_ADMIN';$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) ?><?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 + $langF = $a7_escape?'langHtml':'lang'; + $tmp_text = str_replace('_','&nbsp;',$a7_raw); + $tmp_text = nl2br($tmp_text); + echo $tmp_text; + unset($tmp_text); +?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?><?php } ?></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 unset($a5_header) ?><?php $a6_title='';$a6_type='';$a6_target='_top';$a6_class='';$a6_action='index';$a6_subaction='switchuser';$a6_id=$userid;$a6_frame='_self'; ?><?php + $params = array(); + $tmp_url = ''; + $params[REQ_PARAM_TARGET] = $a6_target; + 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_target,$a6_class,$a6_action,$a6_subaction,$a6_id,$a6_frame) ?><?php $a7_class='text';$a7_key='LOGIN';$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 } ?><?php + $column_idx = $last_column_idx; +?> +</table>+ \ No newline at end of file