openrat-cms

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

commit f606831de948027a9b52c8ae01824c1f6837e256
parent 22a87c97bb99dfe64692d70f9163d8d387e1f853
Author: Jan Dankert <devnull@localhost>
Date:   Mon, 24 Sep 2012 23:30:38 +0200

Template-Dateien im temporären Verzeichnis erzeugen und von dort benutzen. Keine Versionierung der kompilierten Templates mehr.

Diffstat:
action/Action.class.php | 13+------------
action/FileAction.class.php | 7+++++--
model/File.class.php | 2+-
model/Object.class.php | 74+++++++-------------------------------------------------------------------
themes/default/pages/.htaccess | 3---
themes/default/pages/README.txt | 6------
themes/default/pages/html/configuration/show.tpl.php | 117-------------------------------------------------------------------------------
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 | 247-------------------------------------------------------------------------------
themes/default/pages/html/element/prop.tpl.php | 878-------------------------------------------------------------------------------
themes/default/pages/html/element/properties.tpl.php | 1397-------------------------------------------------------------------------------
themes/default/pages/html/element/remove.tpl.php | 333-------------------------------------------------------------------------------
themes/default/pages/html/element/type.tpl.php | 120-------------------------------------------------------------------------------
themes/default/pages/html/file/compress.tpl.php | 338-------------------------------------------------------------------------------
themes/default/pages/html/file/edit.tpl.php | 41-----------------------------------------
themes/default/pages/html/file/editvalue.tpl.php | 211-------------------------------------------------------------------------------
themes/default/pages/html/file/extract.tpl.php | 176-------------------------------------------------------------------------------
themes/default/pages/html/file/info.tpl.php | 611-------------------------------------------------------------------------------
themes/default/pages/html/file/prop.tpl.php | 228-------------------------------------------------------------------------------
themes/default/pages/html/file/pub.tpl.php | 187-------------------------------------------------------------------------------
themes/default/pages/html/file/remove.tpl.php | 258-------------------------------------------------------------------------------
themes/default/pages/html/file/show.tpl.php | 200-------------------------------------------------------------------------------
themes/default/pages/html/file/showprop.tpl.php | 2374-------------------------------------------------------------------------------
themes/default/pages/html/file/size.tpl.php | 664-------------------------------------------------------------------------------
themes/default/pages/html/file/uncompress.tpl.php | 251-------------------------------------------------------------------------------
themes/default/pages/html/filebrowser/browse.tpl.php | 680-------------------------------------------------------------------------------
themes/default/pages/html/filemanager/browse.tpl.php | 510-------------------------------------------------------------------------------
themes/default/pages/html/folder/create.tpl.php | 461-------------------------------------------------------------------------------
themes/default/pages/html/folder/createfile.tpl.php | 357-------------------------------------------------------------------------------
themes/default/pages/html/folder/createfolder.tpl.php | 86-------------------------------------------------------------------------------
themes/default/pages/html/folder/createlink.tpl.php | 263-------------------------------------------------------------------------------
themes/default/pages/html/folder/createpage.tpl.php | 149-------------------------------------------------------------------------------
themes/default/pages/html/folder/edit.tpl.php | 519-------------------------------------------------------------------------------
themes/default/pages/html/folder/el.tpl.php | 443-------------------------------------------------------------------------------
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 | 610------------------------------------------------------------------------------
themes/default/pages/html/folder/prop.tpl.php | 79-------------------------------------------------------------------------------
themes/default/pages/html/folder/pub.tpl.php | 200-------------------------------------------------------------------------------
themes/default/pages/html/folder/remove.tpl.php | 278-------------------------------------------------------------------------------
themes/default/pages/html/folder/select.tpl.php | 436-------------------------------------------------------------------------------
themes/default/pages/html/folder/show.tpl.php | 338-------------------------------------------------------------------------------
themes/default/pages/html/folder/showprop.tpl.php | 1321-------------------------------------------------------------------------------
themes/default/pages/html/group/add.tpl.php | 66------------------------------------------------------------------
themes/default/pages/html/group/adduser.tpl.php | 269-------------------------------------------------------------------------------
themes/default/pages/html/group/edit.tpl.php | 75---------------------------------------------------------------------------
themes/default/pages/html/group/listing.tpl.php | 232-------------------------------------------------------------------------------
themes/default/pages/html/group/memberships.tpl.php | 276-------------------------------------------------------------------------------
themes/default/pages/html/group/remove.tpl.php | 79-------------------------------------------------------------------------------
themes/default/pages/html/group/rights.tpl.php | 469-------------------------------------------------------------------------------
themes/default/pages/html/group/users.tpl.php | 267-------------------------------------------------------------------------------
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 | 196-------------------------------------------------------------------------------
themes/default/pages/html/index/changepassword.tpl.php | 256-------------------------------------------------------------------------------
themes/default/pages/html/index/login.tpl.php | 896-------------------------------------------------------------------------------
themes/default/pages/html/index/password.tpl.php | 296-------------------------------------------------------------------------------
themes/default/pages/html/index/passwordinputcode.tpl.php | 219-------------------------------------------------------------------------------
themes/default/pages/html/index/projectmenu.tpl.php | 308-------------------------------------------------------------------------------
themes/default/pages/html/index/register.tpl.php | 216-------------------------------------------------------------------------------
themes/default/pages/html/index/registeruserdata.tpl.php | 351-------------------------------------------------------------------------------
themes/default/pages/html/index/show.tpl.php | 80-------------------------------------------------------------------------------
themes/default/pages/html/language/add.tpl.php | 104-------------------------------------------------------------------------------
themes/default/pages/html/language/advanced.tpl.php | 91-------------------------------------------------------------------------------
themes/default/pages/html/language/edit.tpl.php | 120-------------------------------------------------------------------------------
themes/default/pages/html/language/listing.tpl.php | 322-------------------------------------------------------------------------------
themes/default/pages/html/language/remove.tpl.php | 96-------------------------------------------------------------------------------
themes/default/pages/html/languagelist/show.tpl.php | 248-------------------------------------------------------------------------------
themes/default/pages/html/link/edit.tpl.php | 141-------------------------------------------------------------------------------
themes/default/pages/html/link/info.tpl.php | 280-------------------------------------------------------------------------------
themes/default/pages/html/link/prop.tpl.php | 72------------------------------------------------------------------------
themes/default/pages/html/link/remove.tpl.php | 574-------------------------------------------------------------------------------
themes/default/pages/html/link/showprop.tpl.php | 1239-------------------------------------------------------------------------------
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 | 74--------------------------------------------------------------------------
themes/default/pages/html/model/edit.tpl.php | 74--------------------------------------------------------------------------
themes/default/pages/html/model/listing.tpl.php | 318-------------------------------------------------------------------------------
themes/default/pages/html/model/remove.tpl.php | 96-------------------------------------------------------------------------------
themes/default/pages/html/modellist/add.tpl.php | 74--------------------------------------------------------------------------
themes/default/pages/html/modellist/show.tpl.php | 244-------------------------------------------------------------------------------
themes/default/pages/html/object/aclform.tpl.php | 362-------------------------------------------------------------------------------
themes/default/pages/html/object/rights.tpl.php | 378-------------------------------------------------------------------------------
themes/default/pages/html/page/changetemplate.tpl.php | 154-------------------------------------------------------------------------------
themes/default/pages/html/page/changetemplateselectelements.tpl.php | 123-------------------------------------------------------------------------------
themes/default/pages/html/page/el.tpl.php | 353-------------------------------------------------------------------------------
themes/default/pages/html/page/form.tpl.php | 497-------------------------------------------------------------------------------
themes/default/pages/html/page/info.tpl.php | 493-------------------------------------------------------------------------------
themes/default/pages/html/page/prop.tpl.php | 488-------------------------------------------------------------------------------
themes/default/pages/html/page/pub.tpl.php | 62--------------------------------------------------------------
themes/default/pages/html/page/show.tpl.php | 138-------------------------------------------------------------------------------
themes/default/pages/html/page/showprop.tpl.php | 1895-------------------------------------------------------------------------------
themes/default/pages/html/page/src.tpl.php | 127-------------------------------------------------------------------------------
themes/default/pages/html/pageelement/advanced.tpl.php | 4473-------------------------------------------------------------------------------
themes/default/pages/html/pageelement/archive.tpl.php | 675-------------------------------------------------------------------------------
themes/default/pages/html/pageelement/diff.tpl.php | 486-------------------------------------------------------------------------------
themes/default/pages/html/pageelement/edit.tpl.php | 2037-------------------------------------------------------------------------------
themes/default/pages/html/pageelement/export.tpl.php | 247-------------------------------------------------------------------------------
themes/default/pages/html/pageelement/import.tpl.php | 259-------------------------------------------------------------------------------
themes/default/pages/html/pageelement/link.tpl.php | 390-------------------------------------------------------------------------------
themes/default/pages/html/pageelement/prop.tpl.php | 719-------------------------------------------------------------------------------
themes/default/pages/html/pageelement/show.tpl.php | 251-------------------------------------------------------------------------------
themes/default/pages/html/profile/confirmmail.tpl.php | 227-------------------------------------------------------------------------------
themes/default/pages/html/profile/edit.tpl.php | 196-------------------------------------------------------------------------------
themes/default/pages/html/profile/groups.tpl.php | 167-------------------------------------------------------------------------------
themes/default/pages/html/profile/mail.tpl.php | 238-------------------------------------------------------------------------------
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 | 207-------------------------------------------------------------------------------
themes/default/pages/html/profile/settings.tpl.php | 244-------------------------------------------------------------------------------
themes/default/pages/html/project/add.tpl.php | 322-------------------------------------------------------------------------------
themes/default/pages/html/project/edit.tpl.php | 129-------------------------------------------------------------------------------
themes/default/pages/html/project/export.tpl.php | 154-------------------------------------------------------------------------------
themes/default/pages/html/project/info.tpl.php | 41-----------------------------------------
themes/default/pages/html/project/listing.tpl.php | 217-------------------------------------------------------------------------------
themes/default/pages/html/project/maintenance.tpl.php | 113-------------------------------------------------------------------------------
themes/default/pages/html/project/remove.tpl.php | 251-------------------------------------------------------------------------------
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 | 344-------------------------------------------------------------------------------
themes/default/pages/html/search/prop.tpl.php | 421-------------------------------------------------------------------------------
themes/default/pages/html/search/result.tpl.php | 279-------------------------------------------------------------------------------
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 | 466-------------------------------------------------------------------------------
themes/default/pages/html/template/addel.tpl.php | 163-------------------------------------------------------------------------------
themes/default/pages/html/template/edit.tpl.php | 143-------------------------------------------------------------------------------
themes/default/pages/html/template/el.tpl.php | 299-------------------------------------------------------------------------------
themes/default/pages/html/template/extension.tpl.php | 146-------------------------------------------------------------------------------
themes/default/pages/html/template/listing.tpl.php | 253-------------------------------------------------------------------------------
themes/default/pages/html/template/name.tpl.php | 166-------------------------------------------------------------------------------
themes/default/pages/html/template/pages.tpl.php | 107-------------------------------------------------------------------------------
themes/default/pages/html/template/prop.tpl.php | 18------------------
themes/default/pages/html/template/remove.tpl.php | 96-------------------------------------------------------------------------------
themes/default/pages/html/template/src.tpl.php | 240-------------------------------------------------------------------------------
themes/default/pages/html/template/srcelement.tpl.php | 253-------------------------------------------------------------------------------
themes/default/pages/html/templatelist/show.tpl.php | 255-------------------------------------------------------------------------------
themes/default/pages/html/title/show.tpl.php | 331-------------------------------------------------------------------------------
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 | 329-------------------------------------------------------------------------------
themes/default/pages/html/user/add.tpl.php | 66------------------------------------------------------------------
themes/default/pages/html/user/addgroup.tpl.php | 308-------------------------------------------------------------------------------
themes/default/pages/html/user/edit.tpl.php | 187-------------------------------------------------------------------------------
themes/default/pages/html/user/groups.tpl.php | 267-------------------------------------------------------------------------------
themes/default/pages/html/user/info.tpl.php | 142-------------------------------------------------------------------------------
themes/default/pages/html/user/listing.tpl.php | 317-------------------------------------------------------------------------------
themes/default/pages/html/user/memberships.tpl.php | 276-------------------------------------------------------------------------------
themes/default/pages/html/user/pw.tpl.php | 97-------------------------------------------------------------------------------
themes/default/pages/html/user/remove.tpl.php | 79-------------------------------------------------------------------------------
themes/default/pages/html/user/rights.tpl.php | 478-------------------------------------------------------------------------------
themes/default/pages/html/userlist/add.tpl.php | 66------------------------------------------------------------------
themes/default/pages/html/userlist/show.tpl.php | 229-------------------------------------------------------------------------------
util/Code.class.php | 2+-
util/FileUtils.class.php | 30+++++++++++++++++++++++-------
util/TemplateEngine.class.php | 13+------------
165 files changed, 39 insertions(+), 52362 deletions(-)

diff --git a/action/Action.class.php b/action/Action.class.php @@ -454,11 +454,6 @@ class Action global $image_dir; global $view; - $tplName = str_replace( '_','/',$tplName ); - - $tplFileName = $tplName.'.tpl.'.PHP_EXT; - $conf_php = PHP_EXT; - // ?bertragen der Array-Variablen in den aktuellen Kontext // extract( $this->templateVars ); @@ -490,8 +485,6 @@ class Action $self = $HTTP_SERVER_VARS['PHP_SELF']; - $tplFileName = str_replace( '_','/',$tplFileName ); - if ( !empty($conf['interface']['override_title']) ) $cms_title = $conf['interface']['override_title']; else @@ -513,12 +506,8 @@ class Action unset($te); } - if ( config('theme','compiler','compile_to_tmp_dir') ) - $iFile = Object::getTempDir().'/'.str_replace('/', '_',$tplFileName); - else - $iFile = $tpl_dir.$tplFileName; + $iFile = FileUtils::getTempDir().'/'.'or.cache.tpl.'.str_replace('/', '.',$tplName).'.tpl.'.PHP_EXT;; - //Html::debug( $iFile ); //try //{ if ( is_file($iFile)) diff --git a/action/FileAction.class.php b/action/FileAction.class.php @@ -171,12 +171,15 @@ class FileAction extends ObjectAction // Groesse des Bildes in Bytes // Der Browser hat so die Moeglichkeit, einen Fortschrittsbalken zu zeigen header('Content-Length: '.filesize($this->file->tmpfile()) ); - + + // Unterscheidung, ob PHP-Code in der Datei ausgefuehrt werden soll. if ( ( config('publish','enable_php_in_file_content')=='auto' && $this->file->getRealExtension()=='php') || config('publish','enable_php_in_file_content')===true ) + // PHP-Code ausfuehren require( $this->file->tmpfile() ); else - readfile( $this->file->tmpfile() ); + // PHP-Code nicht ausfuehren, Datei direkt auf die Standardausgabe schreiben + readfile( $this->file->tmpfile() ); exit; } diff --git a/model/File.class.php b/model/File.class.php @@ -663,7 +663,7 @@ EOF if ( $this->tmpfile == '' ) { $db = db_connection(); - $this->tmpfile = $this->getTempDir().'/openrat_db'.$db->id.'_'.$this->objectid.'.tmp'; + $this->tmpfile = $this->getTempDir().'openrat_db'.$db->id.'_'.$this->objectid.'.tmp'; } return $this->tmpfile; } diff --git a/model/Object.class.php b/model/Object.class.php @@ -1100,70 +1100,6 @@ SQL } } - - /** - * Dateinamen der temporaeren Datei bestimmen - */ - function tmpfileYYYYYY() - { - if ( isset($this->tmpfile) && $this->tmpfile != '' ) - return $this->tmpfile; // Tempor�rer Dateiname bereits vorhanden. - - global $conf; - - // 1. Versuch: Temp-Dir aus Konfiguration. - $tmpdir = @$conf['cache']['tmp_dir']; - if ( $this->tmpfile === FALSE ) - $this->tmpfile = @tempnam( $tmpdir,'openrat_tmp' ); - - // 2. Versuch: Temp-Dir aus "upload_tmp_dir". - if ( $this->tmpfile === FALSE ) - { - Html::debug($this->tmpfile,"nochmal"); - $tmpdir = ini_get('upload_tmp_dir'); - $this->tmpfile = @tempnam( $tmpdir,'openrat_tmp' ); - } - - elseif ( $this->tmpfile === FALSE ) - { - Html::debug($this->tmpfile,"nochmal"); - $this->tmpfile = @tempnam( '','openrat_tmp' ); - } - - Html::debug($this->tmpfile,"tmpfile in objekt"); - Logger::debug( 'creating temporary file: '.$this->tmpfile ); - - return $this->tmpfile; - } - - - /** - * Liefert einen Verzeichnisnamen fuer temporaere Dateien. - */ - function getTempDir() - { - global $conf; - $tmpdir = @$conf['cache']['tmp_dir']; - $tmpfile = @tempnam( $tmpdir,'openrat_tmp' ); - - // 2. Versuch: Temp-Dir aus "upload_tmp_dir". - if ( $tmpfile === FALSE ) - { - $tmpdir = ini_get('upload_tmp_dir'); - $tmpfile = @tempnam( $tmpdir,'openrat_tmp' ); - } - - elseif ( $tmpfile === FALSE ) - { - $tmpfile = @tempnam( '','openrat_tmp' ); - } - - $tmpdir = dirname($tmpfile); - @unlink($tmpfile); - - return $tmpdir; - } - /** @@ -1171,13 +1107,13 @@ SQL * @param $attr Attribute fuer den Dateinamen, um diesen eindeutig zu gestalten. * @return unknown_type */ - function getTempFileName( $attr = array() ) + public function getTempFileName( $attr = array() ) { global $conf; // if ( $conf['cache']['enable_cache'] ) // { - $filename = Object::getTempDir().'/openrat'; + $filename = FileUtils::getTempDir().'/openrat'; foreach( $attr as $a=>$w ) $filename .= '_'.$a.$w; @@ -1199,12 +1135,16 @@ SQL * Gibt ein fertiges Dateihandle fuer eine temporaere Datei zurück. * @return Resource */ - function getTempFile() + protected function getTempFile() { return tmpfile(); } + public function getTempDir() + { + FileUtils::getTempDir(); + } /** * Reihenfolge-Sequenznr. dieses Objektes neu speichern diff --git a/themes/default/pages/.htaccess b/themes/default/pages/.htaccess @@ -1,2 +0,0 @@ -order deny,allow -deny from all- \ No newline at end of file diff --git a/themes/default/pages/README.txt b/themes/default/pages/README.txt @@ -1,6 +0,0 @@ -The files in this directory are created by the template compiler. - -Do NOT change any file in this directory, because they are overwritten! Edit the files under "../templates" instead. - -The template compiler is activated by a configuration flag in file 'config/theme.ini.php' - diff --git a/themes/default/pages/html/configuration/show.tpl.php b/themes/default/pages/html/configuration/show.tpl.php @@ -1,116 +0,0 @@ -<?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 } ?> -</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_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,$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 $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_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,$a4_header) ?><?php $a5_class='text';$a5_key='GLOBAL_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 = $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='config';$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; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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='key';$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_class=$class;$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="<?php echo $class ?>" -><?php unset($a5_class,$a5_header) ?><?php $a6_class=$class;$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 - $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/element/delete.tpl.php b/themes/default/pages/html/element/delete.tpl.php @@ -1,152 +0,0 @@ -<?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 @@ -1,86 +0,0 @@ -<?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,246 +0,0 @@ -<?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_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 } ?> - <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_width,$a4_rowclasses,$a4_columnclasses) ?><?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_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) ?></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_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 $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_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_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_header=false; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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_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 $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 $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 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='name'; ?><script name="JavaScript" type="text/javascript"><!-- -</script> -<?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 @@ -1,878 +0,0 @@ -<?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,1396 +0,0 @@ -<?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_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 } ?> - <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_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($a5_present) ?><?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='ELEMENT_SUBTYPE';$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_present='subtypes'; ?><?php - $a8_tmp_exec = isset($$a8_present); - $a8_tmp_last_exec = $a8_tmp_exec; - if ( $a8_tmp_exec ) - { -?> -<?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($$a9_name)?'- '.lang('EMPTY').' -':$a9_tmp_list[$$a9_name]; -} -else -{ -if ( $a9_addempty!==FALSE ) -{ - if ($a9_addempty===TRUE) - $a9_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a9_tmp_list; - else - $a9_tmp_list = array(''=>'- '.lang($a9_addempty).' -')+$a9_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).'"'; -?>><?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; - else - $a9_tmp_default = ''; - foreach( $a9_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( $a9_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - 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($$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($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($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($a5_present) ?><?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='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) ?></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_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 = $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></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($a5_present) ?><?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='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) ?></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_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 = $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></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($a5_present) ?><?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='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) ?></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_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 = $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></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($a5_present) ?><?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='width';$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='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($a5_present) ?><?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='height';$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='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($a5_present) ?><?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='EL_PROP_DATEFORMAT';$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_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($$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) ?></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($a5_present) ?><?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='EL_PROP_FORMAT';$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_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 - $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_'.$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 />'; - } -?><?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($a5_present) ?><?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='EL_PROP_DECIMALS';$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='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($a5_present) ?><?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='EL_PROP_DEC_POINT';$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='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($a5_present) ?><?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='EL_PROP_thousand_sep';$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='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($a5_present) ?><?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='EL_PROP_default_text';$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='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($a5_present) ?><?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='EL_PROP_default_longtext';$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_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 $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($a5_present) ?><?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='EL_PROP_DYNAMIC_PARAMETERS';$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_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 $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 $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) ?></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_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 ( $a8_list_extract ) - { - if ( !is_array($$a8_list_tmp_value) ) - { - print_r($$a8_list_tmp_value); - die( 'not an array at key: '.$$a8_list_tmp_key ); - } - extract($$a8_list_tmp_value); - } -?><?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 $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) ?><?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_text='GLOBAL_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 $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_var='defaultValue';$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) ?><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($a5_present) ?><?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='EL_PROP_select_items';$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_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 $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($a5_present) ?><?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='EL_LINK';$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_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($$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) ?></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($a5_present) ?><?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='ELEMENT_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 = $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_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($$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) ?></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($a5_present) ?><?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='EL_PROP_DEFAULT_FOLDEROBJECT';$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_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($$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) ?></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($a5_present) ?><?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='EL_PROP_DEFAULT_OBJECT';$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_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($$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) ?></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($a5_present) ?><?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='EL_PROP_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_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 $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 $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 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='name'; ?><script name="JavaScript" type="text/javascript"><!-- -</script> -<?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,332 +0,0 @@ -<?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 - $column_idx = 0; -?> -<tr -> -<?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='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_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_header=false; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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='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 - $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=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';$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_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></td></tr><?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_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 - $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_readonly=false;$a7_name='type';$a7_value='value';$a7_default='value';$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_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_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 - $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_readonly=false;$a7_name='type';$a7_value='all';$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_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 - $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> -<?php $a2_field='delete'; ?><script name="JavaScript" type="text/javascript"><!-- -</script> -<?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,120 +0,0 @@ -<?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_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 - $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_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()) -{ - echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; -} -else -{ -if ( $a6_addempty!==FALSE ) -{ - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; - else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_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).'"'; -?>><?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; - else - $a6_tmp_default = ''; - foreach( $a6_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( $a6_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - 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($$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) ?></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,338 +0,0 @@ -<?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='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 } ?> - <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_width,$a4_rowclasses,$a4_columnclasses) ?><?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_class='text';$a7_text='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_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_header=false; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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_var='gz';$a7_value='gz'; ?><?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='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($$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) ?></td></tr><?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=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 $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) ?></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_var='replace';$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_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 - $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 $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><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 - $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 $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></td></tr><?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 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/file/edit.tpl.php b/themes/default/pages/html/file/edit.tpl.php @@ -1,41 +0,0 @@ -<?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='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,210 +0,0 @@ -<?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_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 } ?> - <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_width,$a4_rowclasses,$a4_columnclasses) ?><?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_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 $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_header=false; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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_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 $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 $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 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='value'; ?><script name="JavaScript" type="text/javascript"><!-- -</script> -<?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,176 +0,0 @@ -<?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='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 } ?> - <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_width,$a4_rowclasses,$a4_columnclasses) ?><?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 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/file/info.tpl.php b/themes/default/pages/html/file/info.tpl.php @@ -1,611 +0,0 @@ -<?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,228 +0,0 @@ -<?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_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 $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='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 ?>" 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><?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 $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='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 ?>" 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><?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 $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='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 ?>" 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><?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_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='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(); - $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_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 $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='';$a3_class='action';$a3_action='file';$a3_subaction='uncompress';$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_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 $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='';$a3_class='action';$a3_action='file';$a3_subaction='extract';$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_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 $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></form> diff --git a/themes/default/pages/html/file/pub.tpl.php b/themes/default/pages/html/file/pub.tpl.php @@ -1,187 +0,0 @@ -<?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_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 } ?> - <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_width,$a4_rowclasses,$a4_columnclasses) ?><?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) ?><br/><br/><br/><br/><br/></td></tr><?php - $column_idx = 0; -?> -<tr -> -<?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($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/> -<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/file/remove.tpl.php b/themes/default/pages/html/file/remove.tpl.php @@ -1,257 +0,0 @@ -<?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_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 } ?> - <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_width,$a4_rowclasses,$a4_columnclasses) ?><?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_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 $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_header=false; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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='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 = 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 - $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_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) ?></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_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 = $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) ?></td></tr><?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_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/> -<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='delete'; ?><script name="JavaScript" type="text/javascript"><!-- -</script> -<?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 @@ -1,199 +0,0 @@ -<?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/showprop.tpl.php b/themes/default/pages/html/file/showprop.tpl.php @@ -1,2373 +0,0 @@ -<?php $attr1_class='main'; ?><?php - if (!headers_sent()) header('Content-Type: text/html; charset='.$charset) -?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<html> -<head> - <title><?php echo isset($attr1_title)?$attr1_title.' - ':(isset($windowTitle)?lang($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" /> - <meta name="MSSmartTagsPreventParsing" content="true" /> - <meta name="robots" content="noindex,nofollow" /> -<?php if (isset($windowMenu) && is_array($windowMenu)) foreach( $windowMenu as $menu ) - { - ?> - <link rel="section" href="<?php echo Html::url($actionName,@$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" /> -<?php - } -?><?php if (isset($metaList) && is_array($metaList)) foreach( $metaList as $meta ) - { - ?> - <link rel="<?php echo $meta['name'] ?>" href="<?php echo $meta['url'] ?>" title="<?php echo lang($meta['title']) ?>" /><?php - } -?><?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_class); ?><?php $attr2_icon='folder'; $attr2_widths='40%,60%'; $attr2_width='70%'; $attr2_rowclasses='odd,even'; $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">'; - echo '<img src="'.$image_dir.'icon_'.$actionName.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 } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } - ?><?php } - echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; - if ( !isset($path) || is_array($path) ) - $path = array(); - foreach( $path as $pathElement) - { - extract($pathElement); - echo '<a href="'.$url.'" class="path">'.langHtml($name).'</a>'; - echo '&nbsp;&raquo;&nbsp;'; - } - echo '<span class="title">'.langHtml($windowTitle).'</span>'; - ?> - </td> - <?php - } - ?> -<?php ?> <!--<td class="menu" style="align:right;"> - <?php if (isset($windowIcons)) foreach( $windowIcons as $icon ) - { - ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.langHtml($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a>&nbsp;<?php - } - ?> - </td>--> - </tr> - <tr><td class="subaction"> - <?php if ( !isset($windowMenu) || !is_array($windowMenu) ) - $windowMenu = array(); - foreach( $windowMenu as $menu ) - { - $tmp_text = langHtml($menu['text']); - $tmp_key = strtoupper(langHtml($menu['key' ])); - $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); - if ( $tmp_pos !== false ) - $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); - if ( isset($menu['url']) ) - { - ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu<?php echo $this->subActionName==$menu['subaction']?'_highlight':'' ?>"><?php echo $tmp_text ?></a>&nbsp;&nbsp;&nbsp;<?php - } - else - { - ?><span class="menu_disabled" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu_disabled"><?php echo $tmp_text ?></span>&nbsp;&nbsp;&nbsp;<?php - } - } - if (@$conf['help']['enabled'] ) - { - ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>" class="menu" style="cursor:help;"><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php - } - ?></td> - </tr> -<?php if (isset($notices) && count($notices)>0 ) - { ?> - <tr> - <td align="center" class="notice"> - <?php foreach( $notices as $notice_idx=>$notice ) { ?> - <br><table class="notice" width="80%"> - <?php if ($notice['name']!='') { ?> - <tr> - <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> - <table cellspacing="0" width="100%" cellpadding="4"> -<?php unset($attr2_icon);unset($attr2_widths);unset($attr2_width);unset($attr2_rowclasses);unset($attr2_columnclasses); ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text='global_name'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php $attr4_class='name'; ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php unset($attr4_class); ?><?php $attr5_class='text'; $attr5_var='name'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_var);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text='global_description'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_var='description'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_var);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text='global_full_filename'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php $attr4_class='filename'; ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php unset($attr4_class); ?><?php $attr5_class='text'; $attr5_var='full_filename'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_var);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php $attr4_colspan='2'; ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php unset($attr4_colspan); ?><?php $attr5_title=lang('additional_info'); ?><fieldset><?php if(isset($attr5_title)) { ?><legend><?php echo encodeHtml($attr5_title) ?></legend><?php } ?><?php unset($attr5_title); ?><?php ?></fieldset><?php ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text='FILE_SIZE'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_var='size'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_var);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text='FILE_mimetype'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php $attr4_class='filename'; ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php unset($attr4_class); ?><?php $attr5_class='text'; $attr5_var='mimetype'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_var);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text=lang('id'); $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text=$objectid; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text='CACHE_FILENAME'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php $attr4_class='filename'; ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php unset($attr4_class); ?><?php $attr5_present='cache_filename'; ?><?php - $attr5_tmp_exec = isset($$attr5_present); - $attr5_tmp_last_exec = $attr5_tmp_exec; - if ( $attr5_tmp_exec ) - { -?> -<?php unset($attr5_present); ?><?php $attr6_class='text'; $attr6_var='cache_filename'; $attr6_escape=true; ?><?php - if ( isset($attr6_prefix)&& isset($attr6_key)) - $attr6_key = $attr6_prefix.$attr6_key; - if ( isset($attr6_suffix)&& isset($attr6_key)) - $attr6_key = $attr6_key.$attr6_suffix; - if(empty($attr6_title)) - $attr6_title = ''; - if (empty($attr6_type)) - $tmp_tag = 'span'; - else - switch( $attr6_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php - $attr6_title = ''; - if ( $attr6_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr6_array)) - { - $tmpArray = $$attr6_array; - if (!empty($attr6_var)) - $tmp_text = $tmpArray[$attr6_var]; - else - $tmp_text = $langF($tmpArray[$attr6_text]); - } - elseif (!empty($attr6_text)) - $tmp_text = $langF($attr6_text); - elseif (!empty($attr6_textvar)) - $tmp_text = $langF($$attr6_textvar); - elseif (!empty($attr6_key)) - $tmp_text = $langF($attr6_key); - elseif (!empty($attr6_var)) - $tmp_text = isset($$attr6_var)?$$attr6_var:'?unset:'.$attr6_var.'?'; - elseif (!empty($attr6_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr6_raw); - elseif (!empty($attr6_value)) - $tmp_text = $attr6_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); - if (isset($attr6_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr6_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr6_class);unset($attr6_var);unset($attr6_escape); ?><?php ?><?php } ?><?php ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php $attr3_present='cache_filename'; ?><?php - $attr3_tmp_exec = isset($$attr3_present); - $attr3_tmp_last_exec = $attr3_tmp_exec; - if ( $attr3_tmp_exec ) - { -?> -<?php unset($attr3_present); ?><?php ?><?php - $attr4_tmp_class=''; - $attr4_last_class = $attr4_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr4_tmp_class)); -?><?php ?><?php ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr5_class)) - $attr5_class=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) - $attr5_width=$column_widths[$cell_column_nr-1]; -?><td<?php -if ( isset($attr5_width )) { ?> width="<?php echo $attr5_width ?>" <?php } -if ( isset($attr5_style )) { ?> style="<?php echo $attr5_style ?>" <?php } -if ( isset($attr5_class )) { ?> class="<?php echo $attr5_class ?>" <?php } -if ( isset($attr5_colspan)) { ?> colspan="<?php echo $attr5_colspan ?>" <?php } -if ( isset($attr5_rowspan)) { ?> rowspan="<?php echo $attr5_rowspan ?>" <?php } -?>><?php ?><?php ?></td><?php ?><?php ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr5_class)) - $attr5_class=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) - $attr5_width=$column_widths[$cell_column_nr-1]; -?><td<?php -if ( isset($attr5_width )) { ?> width="<?php echo $attr5_width ?>" <?php } -if ( isset($attr5_style )) { ?> style="<?php echo $attr5_style ?>" <?php } -if ( isset($attr5_class )) { ?> class="<?php echo $attr5_class ?>" <?php } -if ( isset($attr5_colspan)) { ?> colspan="<?php echo $attr5_colspan ?>" <?php } -if ( isset($attr5_rowspan)) { ?> rowspan="<?php echo $attr5_rowspan ?>" <?php } -?>><?php ?><?php $attr6_icon='el_date'; $attr6_align='left'; ?><?php - $attr6_tmp_image_file = $image_dir.'icon_'.$attr6_icon.IMG_ICON_EXT; - $attr6_size = '16x16'; -?><img src="<?php echo $attr6_tmp_image_file ?>" border="0"<?php if(isset($attr6_align)) echo ' align="'.$attr6_align.'"' ?><?php if (isset($attr6_size)) { list($attr6_tmp_width,$attr6_tmp_height)=explode('x',$attr6_size);echo ' width="'.$attr6_tmp_width.'" height="'.$attr6_tmp_height.'"';} ?>><?php unset($attr6_icon);unset($attr6_align); ?><?php $attr6_date=$cache_filemtime; ?><?php - global $conf; - $time = $attr6_date; - if ( $time==0) - echo lang('GLOBAL_UNKNOWN'); - elseif ( !$conf['interface']['human_date_format'] ) - { - echo '<span title="'; - $dl = date(lang('DATE_FORMAT_LONG'),$time); - $dl = str_replace('{weekday}',lang('DATE_WEEKDAY'.strval(date('w',$time))),$dl); - $dl = str_replace('{month}' ,lang('DATE_MONTH' .strval(date('n',$time))),$dl); - echo $dl; - unset($dl); - echo '">'; - echo date(lang('DATE_FORMAT'),$time); - echo '</span>'; - } - else - { - $sekunden = time()-$time; - $minuten = intval($sekunden/60); - $stunden = intval($minuten /60); - $tage = intval($stunden /24); - $monate = intval($tage /30); - $jahre = intval($monate /12); - echo '<span title="'.date(lang('DATE_FORMAT'),$time).'"">'; - if ( $time==0) - echo lang('GLOBAL_UNKNOWN'); - elseif ( !$conf['interface']['human_date_format'] ) - echo date(lang('DATE_FORMAT'),$time); - elseif ( $sekunden == 1 ) - echo $sekunden.' '.lang('GLOBAL_SECOND'); - elseif ( $sekunden < 60 ) - echo $sekunden.' '.lang('GLOBAL_SECONDS'); - elseif ( $minuten == 1 ) - echo $minuten.' '.lang('GLOBAL_MINUTE'); - elseif ( $minuten < 60 ) - echo $minuten.' '.lang('GLOBAL_MINUTES'); - elseif ( $stunden == 1 ) - echo $stunden.' '.lang('GLOBAL_HOUR'); - elseif ( $stunden < 60 ) - echo $stunden.' '.lang('GLOBAL_HOURS'); - elseif ( $tage == 1 ) - echo $tage.' '.lang('GLOBAL_DAY'); - elseif ( $tage < 60 ) - echo $tage.' '.lang('GLOBAL_DAYS'); - elseif ( $monate == 1 ) - echo $monate.' '.lang('GLOBAL_MONTH'); - elseif ( $monate < 12 ) - echo $monate.' '.lang('GLOBAL_MONTHS'); - elseif ( $jahre == 1 ) - echo $jahre.' '.lang('GLOBAL_YEAR'); - else - echo $jahre.' '.lang('GLOBAL_YEARS'); - echo '</span>'; - } -?><?php unset($attr6_date); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php } ?><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text='FILE_PAGES'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_list='pages'; $attr5_extract=true; $attr5_key='list_key'; $attr5_value='list_value'; ?><?php - $attr5_list_tmp_key = $attr5_key; - $attr5_list_tmp_value = $attr5_value; - $attr5_list_extract = $attr5_extract; - unset($attr5_key); - unset($attr5_value); - if ( !isset($$attr5_list) || !is_array($$attr5_list) ) - $$attr5_list = array(); - foreach( $$attr5_list as $$attr5_list_tmp_key => $$attr5_list_tmp_value ) - { - if ( $attr5_list_extract ) - { - if ( !is_array($$attr5_list_tmp_value) ) - { - print_r($$attr5_list_tmp_value); - die( 'not an array at key: '.$$attr5_list_tmp_key ); - } - extract($$attr5_list_tmp_value); - } -?><?php unset($attr5_list);unset($attr5_extract);unset($attr5_key);unset($attr5_value); ?><?php $attr6_title=''; $attr6_target='cms_main'; $attr6_url='url'; $attr6_class=''; ?><?php - $params = array(); - if (!empty($attr6_var1) && isset($attr6_value1)) - $params[$attr6_var1]=$attr6_value1; - if (!empty($attr6_var2) && isset($attr6_value2)) - $params[$attr6_var2]=$attr6_value2; - if (!empty($attr6_var3) && isset($attr6_value3)) - $params[$attr6_var3]=$attr6_value3; - if (!empty($attr6_var4) && isset($attr6_value4)) - $params[$attr6_var4]=$attr6_value4; - if (!empty($attr6_var5) && isset($attr6_value5)) - $params[$attr6_var5]=$attr6_value5; - if(empty($attr6_class)) - $attr6_class=''; - if(empty($attr6_title)) - $attr6_title = ''; - if(!empty($attr6_url)) - $tmp_url = $attr6_url; - else - $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($attr6_id)?$attr6_id:$this->getRequestId(),$params); -?><a<?php if (isset($attr6_name)) echo ' name="'.$attr6_name.'"'; else echo ' href="'.$tmp_url.($attr6_anchor?'#'.$attr6_anchor:'').'"' ?> class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6_title);unset($attr6_target);unset($attr6_url);unset($attr6_class); ?><?php $attr7_align='left'; $attr7_type='page'; ?><?php - $attr7_tmp_image_file = $image_dir.'icon_'.$attr7_type.IMG_ICON_EXT; - $attr7_size = '16x16'; -?><img src="<?php echo $attr7_tmp_image_file ?>" border="0"<?php if(isset($attr7_align)) echo ' align="'.$attr7_align.'"' ?><?php if (isset($attr7_size)) { list($attr7_tmp_width,$attr7_tmp_height)=explode('x',$attr7_size);echo ' width="'.$attr7_tmp_width.'" height="'.$attr7_tmp_height.'"';} ?>><?php unset($attr7_align);unset($attr7_type); ?><?php $attr7_class='text'; $attr7_var='name'; $attr7_escape=true; ?><?php - if ( isset($attr7_prefix)&& isset($attr7_key)) - $attr7_key = $attr7_prefix.$attr7_key; - if ( isset($attr7_suffix)&& isset($attr7_key)) - $attr7_key = $attr7_key.$attr7_suffix; - if(empty($attr7_title)) - $attr7_title = ''; - if (empty($attr7_type)) - $tmp_tag = 'span'; - else - switch( $attr7_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php - $attr7_title = ''; - if ( $attr7_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr7_array)) - { - $tmpArray = $$attr7_array; - if (!empty($attr7_var)) - $tmp_text = $tmpArray[$attr7_var]; - else - $tmp_text = $langF($tmpArray[$attr7_text]); - } - elseif (!empty($attr7_text)) - $tmp_text = $langF($attr7_text); - elseif (!empty($attr7_textvar)) - $tmp_text = $langF($$attr7_textvar); - elseif (!empty($attr7_key)) - $tmp_text = $langF($attr7_key); - elseif (!empty($attr7_var)) - $tmp_text = isset($$attr7_var)?$$attr7_var:'?unset:'.$attr7_var.'?'; - elseif (!empty($attr7_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr7_raw); - elseif (!empty($attr7_value)) - $tmp_text = $attr7_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); - if (isset($attr7_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr7_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr7_class);unset($attr7_var);unset($attr7_escape); ?><?php ?></a><?php ?><?php ?><br/><?php ?><?php ?><?php } ?><?php ?><?php $attr5_empty='pages'; ?><?php - if ( !isset($$attr5_empty) ) - $attr5_tmp_exec = empty($attr5_empty); - elseif ( is_array($$attr5_empty) ) - $attr5_tmp_exec = (count($$attr5_empty)==0); - elseif ( is_bool($$attr5_empty) ) - $attr5_tmp_exec = true; - else - $attr5_tmp_exec = empty( $$attr5_empty ); - $attr5_tmp_last_exec = $attr5_tmp_exec; - if ( $attr5_tmp_exec ) - { -?> -<?php unset($attr5_empty); ?><?php $attr6_class='text'; $attr6_text='GLOBAL_NOT_FOUND'; $attr6_escape=true; ?><?php - if ( isset($attr6_prefix)&& isset($attr6_key)) - $attr6_key = $attr6_prefix.$attr6_key; - if ( isset($attr6_suffix)&& isset($attr6_key)) - $attr6_key = $attr6_key.$attr6_suffix; - if(empty($attr6_title)) - $attr6_title = ''; - if (empty($attr6_type)) - $tmp_tag = 'span'; - else - switch( $attr6_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php - $attr6_title = ''; - if ( $attr6_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr6_array)) - { - $tmpArray = $$attr6_array; - if (!empty($attr6_var)) - $tmp_text = $tmpArray[$attr6_var]; - else - $tmp_text = $langF($tmpArray[$attr6_text]); - } - elseif (!empty($attr6_text)) - $tmp_text = $langF($attr6_text); - elseif (!empty($attr6_textvar)) - $tmp_text = $langF($$attr6_textvar); - elseif (!empty($attr6_key)) - $tmp_text = $langF($attr6_key); - elseif (!empty($attr6_var)) - $tmp_text = isset($$attr6_var)?$$attr6_var:'?unset:'.$attr6_var.'?'; - elseif (!empty($attr6_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr6_raw); - elseif (!empty($attr6_value)) - $tmp_text = $attr6_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); - if (isset($attr6_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr6_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr6_class);unset($attr6_text);unset($attr6_escape); ?><?php ?><?php } ?><?php ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php $attr4_colspan='2'; ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php unset($attr4_colspan); ?><?php $attr5_title=lang('prop_userinfo'); ?><fieldset><?php if(isset($attr5_title)) { ?><legend><?php echo encodeHtml($attr5_title) ?></legend><?php } ?><?php unset($attr5_title); ?><?php ?></fieldset><?php ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text='global_created'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_width='100%'; $attr5_space='0px'; $attr5_padding='0px'; ?><?php - $coloumn_widths=array(); - $row_classes = array(''); - $column_classes= array(''); - if(empty($attr5_class)) - $attr5_class=''; - if (!empty($attr5_widths)) - { - $column_widths = explode(',',$attr5_widths); - unset($attr5['widths']); - } - if (!empty($attr5_classes)) - { - $row_classes = explode(',',$attr5_rowclasses); - $row_class_idx = 999; - unset($attr5['rowclasses']); - } - if (!empty($attr5_rowclasses)) - { - $row_classes = explode(',',$attr5_rowclasses); - $row_class_idx = 999; - unset($attr5['rowclasses']); - } - if (!empty($attr5_columnclasses)) - { - $column_classes = explode(',',$attr5_columnclasses); - unset($attr5['columnclasses']); - } -?><table class="<?php echo $attr5_class ?>" cellspacing="<?php echo $attr5_space ?>" width="<?php echo $attr5_width ?>" cellpadding="<?php echo $attr5_padding ?>"><?php unset($attr5_width);unset($attr5_space);unset($attr5_padding); ?><?php ?><?php - $attr6_tmp_class=''; - $attr6_last_class = $attr6_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr6_tmp_class)); -?><?php ?><?php ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr7_class)) - $attr7_class=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) - $attr7_width=$column_widths[$cell_column_nr-1]; -?><td<?php -if ( isset($attr7_width )) { ?> width="<?php echo $attr7_width ?>" <?php } -if ( isset($attr7_style )) { ?> style="<?php echo $attr7_style ?>" <?php } -if ( isset($attr7_class )) { ?> class="<?php echo $attr7_class ?>" <?php } -if ( isset($attr7_colspan)) { ?> colspan="<?php echo $attr7_colspan ?>" <?php } -if ( isset($attr7_rowspan)) { ?> rowspan="<?php echo $attr7_rowspan ?>" <?php } -?>><?php ?><?php $attr8_icon='el_date'; $attr8_align='left'; ?><?php - $attr8_tmp_image_file = $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT; - $attr8_size = '16x16'; -?><img src="<?php echo $attr8_tmp_image_file ?>" border="0"<?php if(isset($attr8_align)) echo ' align="'.$attr8_align.'"' ?><?php if (isset($attr8_size)) { list($attr8_tmp_width,$attr8_tmp_height)=explode('x',$attr8_size);echo ' width="'.$attr8_tmp_width.'" height="'.$attr8_tmp_height.'"';} ?>><?php unset($attr8_icon);unset($attr8_align); ?><?php $attr8_date=$create_date; ?><?php - global $conf; - $time = $attr8_date; - if ( $time==0) - echo lang('GLOBAL_UNKNOWN'); - elseif ( !$conf['interface']['human_date_format'] ) - { - echo '<span title="'; - $dl = date(lang('DATE_FORMAT_LONG'),$time); - $dl = str_replace('{weekday}',lang('DATE_WEEKDAY'.strval(date('w',$time))),$dl); - $dl = str_replace('{month}' ,lang('DATE_MONTH' .strval(date('n',$time))),$dl); - echo $dl; - unset($dl); - echo '">'; - echo date(lang('DATE_FORMAT'),$time); - echo '</span>'; - } - else - { - $sekunden = time()-$time; - $minuten = intval($sekunden/60); - $stunden = intval($minuten /60); - $tage = intval($stunden /24); - $monate = intval($tage /30); - $jahre = intval($monate /12); - echo '<span title="'.date(lang('DATE_FORMAT'),$time).'"">'; - if ( $time==0) - echo lang('GLOBAL_UNKNOWN'); - elseif ( !$conf['interface']['human_date_format'] ) - echo date(lang('DATE_FORMAT'),$time); - elseif ( $sekunden == 1 ) - echo $sekunden.' '.lang('GLOBAL_SECOND'); - elseif ( $sekunden < 60 ) - echo $sekunden.' '.lang('GLOBAL_SECONDS'); - elseif ( $minuten == 1 ) - echo $minuten.' '.lang('GLOBAL_MINUTE'); - elseif ( $minuten < 60 ) - echo $minuten.' '.lang('GLOBAL_MINUTES'); - elseif ( $stunden == 1 ) - echo $stunden.' '.lang('GLOBAL_HOUR'); - elseif ( $stunden < 60 ) - echo $stunden.' '.lang('GLOBAL_HOURS'); - elseif ( $tage == 1 ) - echo $tage.' '.lang('GLOBAL_DAY'); - elseif ( $tage < 60 ) - echo $tage.' '.lang('GLOBAL_DAYS'); - elseif ( $monate == 1 ) - echo $monate.' '.lang('GLOBAL_MONTH'); - elseif ( $monate < 12 ) - echo $monate.' '.lang('GLOBAL_MONTHS'); - elseif ( $jahre == 1 ) - echo $jahre.' '.lang('GLOBAL_YEAR'); - else - echo $jahre.' '.lang('GLOBAL_YEARS'); - echo '</span>'; - } -?><?php unset($attr8_date); ?><?php ?></td><?php ?><?php ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr7_class)) - $attr7_class=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) - $attr7_width=$column_widths[$cell_column_nr-1]; -?><td<?php -if ( isset($attr7_width )) { ?> width="<?php echo $attr7_width ?>" <?php } -if ( isset($attr7_style )) { ?> style="<?php echo $attr7_style ?>" <?php } -if ( isset($attr7_class )) { ?> class="<?php echo $attr7_class ?>" <?php } -if ( isset($attr7_colspan)) { ?> colspan="<?php echo $attr7_colspan ?>" <?php } -if ( isset($attr7_rowspan)) { ?> rowspan="<?php echo $attr7_rowspan ?>" <?php } -?>><?php ?><?php $attr8_icon='user'; $attr8_align='left'; ?><?php - $attr8_tmp_image_file = $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT; - $attr8_size = '16x16'; -?><img src="<?php echo $attr8_tmp_image_file ?>" border="0"<?php if(isset($attr8_align)) echo ' align="'.$attr8_align.'"' ?><?php if (isset($attr8_size)) { list($attr8_tmp_width,$attr8_tmp_height)=explode('x',$attr8_size);echo ' width="'.$attr8_tmp_width.'" height="'.$attr8_tmp_height.'"';} ?>><?php unset($attr8_icon);unset($attr8_align); ?><?php $attr8_user=$create_user; ?><?php - if ( is_object($attr8_user) ) - $user = $attr8_user; - else - $user = $$attr8_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($attr8_user); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?></table><?php ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text='global_lastchange'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_width='100%'; $attr5_space='0px'; $attr5_padding='0px'; ?><?php - $coloumn_widths=array(); - $row_classes = array(''); - $column_classes= array(''); - if(empty($attr5_class)) - $attr5_class=''; - if (!empty($attr5_widths)) - { - $column_widths = explode(',',$attr5_widths); - unset($attr5['widths']); - } - if (!empty($attr5_classes)) - { - $row_classes = explode(',',$attr5_rowclasses); - $row_class_idx = 999; - unset($attr5['rowclasses']); - } - if (!empty($attr5_rowclasses)) - { - $row_classes = explode(',',$attr5_rowclasses); - $row_class_idx = 999; - unset($attr5['rowclasses']); - } - if (!empty($attr5_columnclasses)) - { - $column_classes = explode(',',$attr5_columnclasses); - unset($attr5['columnclasses']); - } -?><table class="<?php echo $attr5_class ?>" cellspacing="<?php echo $attr5_space ?>" width="<?php echo $attr5_width ?>" cellpadding="<?php echo $attr5_padding ?>"><?php unset($attr5_width);unset($attr5_space);unset($attr5_padding); ?><?php ?><?php - $attr6_tmp_class=''; - $attr6_last_class = $attr6_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr6_tmp_class)); -?><?php ?><?php ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr7_class)) - $attr7_class=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) - $attr7_width=$column_widths[$cell_column_nr-1]; -?><td<?php -if ( isset($attr7_width )) { ?> width="<?php echo $attr7_width ?>" <?php } -if ( isset($attr7_style )) { ?> style="<?php echo $attr7_style ?>" <?php } -if ( isset($attr7_class )) { ?> class="<?php echo $attr7_class ?>" <?php } -if ( isset($attr7_colspan)) { ?> colspan="<?php echo $attr7_colspan ?>" <?php } -if ( isset($attr7_rowspan)) { ?> rowspan="<?php echo $attr7_rowspan ?>" <?php } -?>><?php ?><?php $attr8_icon='el_date'; $attr8_align='left'; ?><?php - $attr8_tmp_image_file = $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT; - $attr8_size = '16x16'; -?><img src="<?php echo $attr8_tmp_image_file ?>" border="0"<?php if(isset($attr8_align)) echo ' align="'.$attr8_align.'"' ?><?php if (isset($attr8_size)) { list($attr8_tmp_width,$attr8_tmp_height)=explode('x',$attr8_size);echo ' width="'.$attr8_tmp_width.'" height="'.$attr8_tmp_height.'"';} ?>><?php unset($attr8_icon);unset($attr8_align); ?><?php $attr8_date=$lastchange_date; ?><?php - global $conf; - $time = $attr8_date; - if ( $time==0) - echo lang('GLOBAL_UNKNOWN'); - elseif ( !$conf['interface']['human_date_format'] ) - { - echo '<span title="'; - $dl = date(lang('DATE_FORMAT_LONG'),$time); - $dl = str_replace('{weekday}',lang('DATE_WEEKDAY'.strval(date('w',$time))),$dl); - $dl = str_replace('{month}' ,lang('DATE_MONTH' .strval(date('n',$time))),$dl); - echo $dl; - unset($dl); - echo '">'; - echo date(lang('DATE_FORMAT'),$time); - echo '</span>'; - } - else - { - $sekunden = time()-$time; - $minuten = intval($sekunden/60); - $stunden = intval($minuten /60); - $tage = intval($stunden /24); - $monate = intval($tage /30); - $jahre = intval($monate /12); - echo '<span title="'.date(lang('DATE_FORMAT'),$time).'"">'; - if ( $time==0) - echo lang('GLOBAL_UNKNOWN'); - elseif ( !$conf['interface']['human_date_format'] ) - echo date(lang('DATE_FORMAT'),$time); - elseif ( $sekunden == 1 ) - echo $sekunden.' '.lang('GLOBAL_SECOND'); - elseif ( $sekunden < 60 ) - echo $sekunden.' '.lang('GLOBAL_SECONDS'); - elseif ( $minuten == 1 ) - echo $minuten.' '.lang('GLOBAL_MINUTE'); - elseif ( $minuten < 60 ) - echo $minuten.' '.lang('GLOBAL_MINUTES'); - elseif ( $stunden == 1 ) - echo $stunden.' '.lang('GLOBAL_HOUR'); - elseif ( $stunden < 60 ) - echo $stunden.' '.lang('GLOBAL_HOURS'); - elseif ( $tage == 1 ) - echo $tage.' '.lang('GLOBAL_DAY'); - elseif ( $tage < 60 ) - echo $tage.' '.lang('GLOBAL_DAYS'); - elseif ( $monate == 1 ) - echo $monate.' '.lang('GLOBAL_MONTH'); - elseif ( $monate < 12 ) - echo $monate.' '.lang('GLOBAL_MONTHS'); - elseif ( $jahre == 1 ) - echo $jahre.' '.lang('GLOBAL_YEAR'); - else - echo $jahre.' '.lang('GLOBAL_YEARS'); - echo '</span>'; - } -?><?php unset($attr8_date); ?><?php ?></td><?php ?><?php ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr7_class)) - $attr7_class=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) - $attr7_width=$column_widths[$cell_column_nr-1]; -?><td<?php -if ( isset($attr7_width )) { ?> width="<?php echo $attr7_width ?>" <?php } -if ( isset($attr7_style )) { ?> style="<?php echo $attr7_style ?>" <?php } -if ( isset($attr7_class )) { ?> class="<?php echo $attr7_class ?>" <?php } -if ( isset($attr7_colspan)) { ?> colspan="<?php echo $attr7_colspan ?>" <?php } -if ( isset($attr7_rowspan)) { ?> rowspan="<?php echo $attr7_rowspan ?>" <?php } -?>><?php ?><?php $attr8_icon='user'; $attr8_align='left'; ?><?php - $attr8_tmp_image_file = $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT; - $attr8_size = '16x16'; -?><img src="<?php echo $attr8_tmp_image_file ?>" border="0"<?php if(isset($attr8_align)) echo ' align="'.$attr8_align.'"' ?><?php if (isset($attr8_size)) { list($attr8_tmp_width,$attr8_tmp_height)=explode('x',$attr8_size);echo ' width="'.$attr8_tmp_width.'" height="'.$attr8_tmp_height.'"';} ?>><?php unset($attr8_icon);unset($attr8_align); ?><?php $attr8_user=$lastchange_user; ?><?php - if ( is_object($attr8_user) ) - $user = $attr8_user; - else - $user = $$attr8_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($attr8_user); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?></table><?php ?><?php ?></td><?php ?><?php ?></tr><?php ?><?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 } ?> -<?php ?><?php ?></body> -</html><?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,664 +0,0 @@ -<?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_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 } ?> - <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_widths,$a4_width,$a4_rowclasses,$a4_columnclasses) ?><?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_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 $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_header=false; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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='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 = 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 $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_var='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 = 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 $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 - $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($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 - $a6_tmp_exec = $a6_true == true; - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) - { -?> -<?php unset($a6_true) ?><?php - $column_idx = 0; -?> -<tr -> -<?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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="3" -><?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 $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 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 - $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 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 $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($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 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($$a9_name)?'- '.lang('EMPTY').' -':$a9_tmp_list[$$a9_name]; -} -else -{ -if ( $a9_addempty!==FALSE ) -{ - if ($a9_addempty===TRUE) - $a9_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a9_tmp_list; - else - $a9_tmp_list = array(''=>'- '.lang($a9_addempty).' -')+$a9_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).'"'; -?>><?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; - else - $a9_tmp_default = ''; - foreach( $a9_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( $a9_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - 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($$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($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 - $$a9_var = $a9_value; -?><?php unset($a9_var,$a9_value) ?></td></tr><?php - $column_idx = 0; -?> -<tr -> -<?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 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 - $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 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 $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($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 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 $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_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 $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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="3" -><?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 $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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="2" -><?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 $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($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 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($$a9_name)?'- '.lang('EMPTY').' -':$a9_tmp_list[$$a9_name]; -} -else -{ -if ( $a9_addempty!==FALSE ) -{ - if ($a9_addempty===TRUE) - $a9_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a9_tmp_list; - else - $a9_tmp_list = array(''=>'- '.lang($a9_addempty).' -')+$a9_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).'"'; -?>><?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; - else - $a9_tmp_default = ''; - foreach( $a9_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( $a9_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - 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($$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($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 $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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="2" -><?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 $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($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 unset($a8_header) ?><?php $a9_var='jpeg_compression';$a9_value='70'; ?><?php - if (isset($a9_key)) - $$a9_var = $a9_value[$a9_key]; - else - $$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($$a9_name)?'- '.lang('EMPTY').' -':$a9_tmp_list[$$a9_name]; -} -else -{ -if ( $a9_addempty!==FALSE ) -{ - if ($a9_addempty===TRUE) - $a9_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a9_tmp_list; - else - $a9_tmp_list = array(''=>'- '.lang($a9_addempty).' -')+$a9_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).'"'; -?>><?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; - else - $a9_tmp_default = ''; - foreach( $a9_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( $a9_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - 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($$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($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 $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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="3" -><?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 = $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 $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='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 $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) ?></label></td></tr><?php } ?><?php - $column_idx = 0; -?> -<tr -> -<?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($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/> -<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 } ?><?php $a4_field='width'; ?><script name="JavaScript" type="text/javascript"><!-- -</script> -<?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,251 +0,0 @@ -<?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='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 } ?> - <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_width,$a4_rowclasses,$a4_columnclasses) ?><?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=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 $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) ?></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_var='replace';$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_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 - $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 $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><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 - $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 $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></td></tr><?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 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/filebrowser/browse.tpl.php b/themes/default/pages/html/filebrowser/browse.tpl.php @@ -1,679 +0,0 @@ -<?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 } ?> - <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_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 ( $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='headline'; ?><?php - $column_idx = 0; -?> -<tr - class="headline" -> -<?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 } ?> -<?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_class='text';$a7_key=$key;$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) ?><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 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='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 = $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 $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 $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='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_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_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 } ?> - 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 $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) ?></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 ( $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_title=$desc;$a8_type='';$a8_url=$url;$a8_class=$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=$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 $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) ?><?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) ?></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 unset($a7_header) ?><?php $a8_date=$date; ?><?php - global $conf; - $time = $a8_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($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 - $a5_tmp_exec = empty( $$a5_empty ); - $a5_tmp_last_exec = $a5_tmp_exec; - if ( $a5_tmp_exec ) - { -?> -<?php unset($a5_empty) ?><?php - $column_idx = 0; -?> -<tr -> -<?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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="2" -><?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 $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></tr><?php } ?><?php $a5_true=$writable; ?><?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 ) - { -?> -<?php unset($a5_true) ?><?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) ?><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()) - { - $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_name='CKEditorFuncNum'; ?><?php -if (isset($$a9_name)) - $a9_tmp_value = $$a9_name; -elseif ( isset($a9_default) ) - $a9_tmp_value = $a9_default; -else - $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 $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($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 $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_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 - $$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()) - { - $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_name='CKEditorFuncNum'; ?><?php -if (isset($$a9_name)) - $a9_tmp_value = $$a9_name; -elseif ( isset($a9_default) ) - $a9_tmp_value = $a9_default; -else - $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 $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($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 $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_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/> -<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 } ?></body> -</html>- \ No newline at end of file diff --git a/themes/default/pages/html/filemanager/browse.tpl.php b/themes/default/pages/html/filemanager/browse.tpl.php @@ -1,509 +0,0 @@ -<?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_class='main';$a2_width='100%';$a2_space='0px';$a2_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="main" cellspacing="0px" width="100%" cellpadding="0px"> -<?php unset($a2_class,$a2_width,$a2_space,$a2_padding) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a4_class='window'; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_idx-1)%count($column_widths)] ?>" -<?php } ?> - class="window" -><?php unset($a4_class) ?><?php $a5_width='100%';$a5_space='0px';$a5_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($a5_width,$a5_space,$a5_padding) ?><?php $a6_list='notices';$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 ( $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 - $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_class='text';$a9_key=$key;$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) ?><br/></td></tr><?php } ?><?php $a6_present='up_url'; ?><?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_width='50%';$a8_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($a8_width,$a8_colspan) ?><?php $a9_title='';$a9_target='_self';$a9_url=$up_url;$a9_class=''; ?><?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_align='left';$a10_type='folder'; ?><?php - $a10_tmp_image_file = $image_dir.'icon_'.$a10_type.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_align,$a10_type) ?><?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 $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($a10_class,$a10_raw,$a10_escape,$a10_cut) ?></a></td></tr><?php } ?><?php $a6_class='headline'; ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr - class="headline" -> -<?php unset($a6_class) ?><?php $a7_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($a7_class) ?><?php $a8_class='text';$a8_key='GLOBAL_TYPE';$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) ?><?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='GLOBAL_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 = $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><?php $a7_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($a7_class) ?><?php $a8_class='text';$a8_key='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_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 $a6_list='object';$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 ( $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='data'; ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr - class="data" -> -<?php unset($a7_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 $a9_title=$desc;$a9_target='_self';$a9_url=$url;$a9_class=$class; ?><?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_align='left';$a10_type=$icon; ?><?php - $a10_tmp_image_file = $image_dir.'icon_'.$a10_type.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_align,$a10_type) ?><?php $a10_class='text';$a10_var='name';$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 = isset($$a10_var)?$$a10_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) ?><?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 $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($a10_class,$a10_raw,$a10_escape,$a10_cut) ?></a></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_date=$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></tr><?php } ?><?php $a6_empty='object'; ?><?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 - $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_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 $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) ?></td></tr><?php } ?><?php $a6_true=$writable; ?><?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 - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a8_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($a8_class) ?><br/><?php $a9_action='filemanager';$a9_subaction='upload';$a9_id=$id;$a9_name='';$a9_target='_self';$a9_method='post';$a9_enctype='multipart/form-data'; ?><?php - if ($this->isEditable()) - { - if ($this->isEditMode()) - { - $a9_method = 'POST'; - } - else - { - $a9_method = 'GET'; - $a9_subaction = $subActionName; - } - } -?><form name="<?php echo $a9_name ?>" - target="<?php echo $a9_target ?>" - action="<?php echo Html::url( $a9_action,$a9_subaction,$a9_id ) ?>" - method="<?php echo $a9_method ?>" - enctype="<?php echo $a9_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 $a9_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $a9_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a9_id ?>" /><?php - if ( $conf['interface']['url_sessionid'] ) - echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($a9_action,$a9_subaction,$a9_id,$a9_name,$a9_target,$a9_method,$a9_enctype) ?><?php $a10_name='CKEditorFuncNum'; ?><?php -if (isset($$a10_name)) - $a10_tmp_value = $$a10_name; -elseif ( isset($a10_default) ) - $a10_tmp_value = $a10_default; -else - $a10_tmp_value = ""; -?><input type="hidden" name="<?php echo $a10_name ?>" value="<?php echo $a10_tmp_value ?>" /><?php unset($a10_name) ?><?php $a10_class='text';$a10_key='file';$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) ?><?php $a10_name='file';$a10_class='upload';$a10_size='40'; ?><input size="<?php echo $a10_size ?>" id="id_<?php echo $a10_name ?>" type="file" <?php if (isset($a10_maxlength))echo ' maxlength="'.$a10_maxlength.'"' ?> name="<?php echo $a10_name ?>" class="<?php echo $a10_class ?>" <?php if (in_array($a10_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php unset($a10_name,$a10_class,$a10_size) ?><br/><?php $a10_type='ok';$a10_class='ok';$a10_value='ok';$a10_text='add'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) - $a10_text = 'MODE_EDIT'; - $a10_type = 'submit'; - if ( $this->isEditable() && readonly() ) - $a10_type = ''; // Knopf nicht anzeigen - $a10_src = ''; - if ( !empty($a10_type) ) { -?><input type="<?php echo $a10_type ?>"<?php if(isset($a10_src)) { ?> src="<?php echo $image_dir.'icon_'.$a10_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $a10_value ?>" class="ok" title="<?php echo lang($a10_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a10_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a10_src) -?><?php } -?><?php unset($a10_type,$a10_class,$a10_value,$a10_text) ?></form> -</td><?php $a8_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($a8_class) ?><?php $a9_var='name';$a9_value=''; ?><?php - if (isset($a9_key)) - $$a9_var = $a9_value[$a9_key]; - else - $$a9_var = $a9_value; -?><?php unset($a9_var,$a9_value) ?><?php $a9_action='filemanager';$a9_subaction='addfolder';$a9_id=$id;$a9_name='';$a9_target='_self';$a9_method='post';$a9_enctype='application/x-www-form-urlencoded'; ?><?php - if ($this->isEditable()) - { - if ($this->isEditMode()) - { - $a9_method = 'POST'; - } - else - { - $a9_method = 'GET'; - $a9_subaction = $subActionName; - } - } -?><form name="<?php echo $a9_name ?>" - target="<?php echo $a9_target ?>" - action="<?php echo Html::url( $a9_action,$a9_subaction,$a9_id ) ?>" - method="<?php echo $a9_method ?>" - enctype="<?php echo $a9_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 $a9_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $a9_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $a9_id ?>" /><?php - if ( $conf['interface']['url_sessionid'] ) - echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($a9_action,$a9_subaction,$a9_id,$a9_name,$a9_target,$a9_method,$a9_enctype) ?><?php $a10_name='CKEditorFuncNum'; ?><?php -if (isset($$a10_name)) - $a10_tmp_value = $$a10_name; -elseif ( isset($a10_default) ) - $a10_tmp_value = $a10_default; -else - $a10_tmp_value = ""; -?><input type="hidden" name="<?php echo $a10_name ?>" value="<?php echo $a10_tmp_value ?>" /><?php unset($a10_name) ?><?php $a10_class='text';$a10_key='name';$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) ?><?php $a10_class='text';$a10_default='';$a10_type='text';$a10_name='name';$a10_size='40';$a10_maxlength='256';$a10_onchange='';$a10_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a10_readonly=true; - if ($a10_readonly && empty($$a10_name)) $$a10_name = '- '.lang('EMPTY').' -'; - if(!isset($a10_default)) $a10_default=''; -?><?php if (!$a10_readonly || $a10_type=='hidden') { -?><input<?php if ($a10_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a10_name ?><?php if ($a10_readonly) echo '_disabled' ?>" name="<?php echo $a10_name ?><?php if ($a10_readonly) echo '_disabled' ?>" type="<?php echo $a10_type ?>" size="<?php echo $a10_size ?>" maxlength="<?php echo $a10_maxlength ?>" class="<?php echo $a10_class ?>" value="<?php echo isset($$a10_name)?$$a10_name:$a10_default ?>" <?php if (in_array($a10_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php -if ($a10_readonly) { -?><input type="hidden" id="id_<?php echo $a10_name ?>" name="<?php echo $a10_name ?>" value="<?php echo isset($$a10_name)?$$a10_name:$a10_default ?>" /><?php - } } else { ?><span class="<?php echo $a10_class ?>"><?php echo isset($$a10_name)?$$a10_name:$a10_default ?></span><?php } ?><?php unset($a10_class,$a10_default,$a10_type,$a10_name,$a10_size,$a10_maxlength,$a10_onchange,$a10_readonly) ?><br/><?php $a10_type='ok';$a10_class='ok';$a10_value='ok';$a10_text='add'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) - $a10_text = 'MODE_EDIT'; - $a10_type = 'submit'; - if ( $this->isEditable() && readonly() ) - $a10_type = ''; // Knopf nicht anzeigen - $a10_src = ''; - if ( !empty($a10_type) ) { -?><input type="<?php echo $a10_type ?>"<?php if(isset($a10_src)) { ?> src="<?php echo $image_dir.'icon_'.$a10_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $a10_value ?>" class="ok" title="<?php echo lang($a10_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a10_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a10_src) -?><?php } -?><?php unset($a10_type,$a10_class,$a10_value,$a10_text) ?></form> -</td></tr><?php } ?><?php - $row_idx = $last_row_idx; - $column_idx = $last_column_idx; -?> -</table></td></tr><?php - $row_idx = $last_row_idx; - $column_idx = $last_column_idx; -?> -</table></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,461 +0,0 @@ -<?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(); - 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 - $column_idx = 0; -?> -<tr -> -<?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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="3" -><?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 $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_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 - $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 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 $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) ?></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 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 $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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="3" -><?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 $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_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 - $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 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 $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) ?></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 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 $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 $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) ?><?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 $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) ?></td></tr><?php - $column_idx = 0; -?> -<tr -> -<?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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="3" -><?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 $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_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 - $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 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 $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) ?></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 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($$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_onchange,$a5_title,$a5_class,$a5_addempty,$a5_multiple,$a5_size,$a5_lang) ?></td></tr><?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) ?></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_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 $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) ?></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 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 $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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="3" -><?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 $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_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 - $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 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 $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) ?></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 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 $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($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,356 +0,0 @@ -<?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='upload';$a2_method='post';$a2_enctype='multipart/form-data';$a2_type='upload'; ?><?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='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 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_name,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $column_idx = 0; -?> -<tr -> -<?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_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 - $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_header=false; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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_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';$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_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 - $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_var='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 - $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/><br/></td></tr><?php - $column_idx = 0; -?> -<tr -> -<?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='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 - $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 $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_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 ?>" 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) ?></td></tr><?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=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 $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_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_header=false; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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_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 ?>" 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) ?></td></tr><?php - $column_idx = 0; -?> -<tr -> -<?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_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 $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_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 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 $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/folder/createfolder.tpl.php b/themes/default/pages/html/folder/createfolder.tpl.php @@ -1,86 +0,0 @@ -<?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='global_FOLDER';$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='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 $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='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 $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,262 +0,0 @@ -<?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 } ?> -</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()) - { - $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='';$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 } ?> - <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_width,$a4_rowclasses,$a4_columnclasses) ?><?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_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 $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_header=false; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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_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 $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_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_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_header=false; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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_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 $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 $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 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='name'; ?><script name="JavaScript" type="text/javascript"><!-- -</script> -<?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,149 +0,0 @@ -<?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='global_TEMPLATE';$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='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($$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_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 $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,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 $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/folder/edit.tpl.php b/themes/default/pages/html/folder/edit.tpl.php @@ -1,518 +0,0 @@ -<?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 } ?> -</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()) - { - 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_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_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,$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 = $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 $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,$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 = 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 = ''; - $tmp_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; - 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='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?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 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 } ?> - 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 = $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_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 = $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_type='';$a6_url='javascript:flip();';$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_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 $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=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 ( $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_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; - 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_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 = 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=$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 $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_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_empty) ?><?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_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 - $column_idx = $last_column_idx; -?> -</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/el.tpl.php b/themes/default/pages/html/folder/el.tpl.php @@ -1,442 +0,0 @@ -<?php $attr1_class='main'; ?><?php - if (!headers_sent()) header('Content-Type: text/html; charset='.$charset) -?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<html> -<head> - <title><?php echo isset($attr1_title)?$attr1_title.' - ':(isset($windowTitle)?langHtml($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" > - <meta name="MSSmartTagsPreventParsing" content="true" > - <meta name="robots" content="noindex,nofollow" > -<?php if (isset($windowMenu) && is_array($windowMenu)) foreach( $windowMenu as $menu ) - { - ?> - <link rel="section" href="<?php echo Html::url($actionName,@$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" > -<?php - } -?><?php if (isset($metaList) && is_array($metaList)) foreach( $metaList as $meta ) - { - ?> - <link rel="<?php echo $meta['name'] ?>" href="<?php echo $meta['url'] ?>" title="<?php echo lang($meta['title']) ?>" ><?php - } -?><?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 /* Debug-Information */ if ($showDuration) { echo "<!--\n";print_r($this->templateVars);echo "\n-->";} ?><?php unset($attr1_class); ?><?php $attr2_widths='75%,25%'; $attr2_width='93%'; $attr2_rowclasses='odd,even'; $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">'; - echo '<img src="'.$image_dir.'icon_'.$actionName.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 } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } - ?><?php } - echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; - if ( !isset($path) || is_array($path) ) - $path = array(); - foreach( $path as $pathElement) - { - extract($pathElement); - echo '<a href="'.$url.'" class="path">'.langHtml($name).'</a>'; - echo '&nbsp;&raquo;&nbsp;'; - } - echo '<span class="title">'.langHtml($windowTitle).'</span>'; - ?> - </td> - <?php - } - ?> -<?php ?> <!--<td class="menu" style="align:right;"> - <?php if (isset($windowIcons)) foreach( $windowIcons as $icon ) - { - ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.langHtml($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a>&nbsp;<?php - } - ?> - </td>--> - </tr> - <tr><td class="subaction"> - <?php if ( !isset($windowMenu) || !is_array($windowMenu) ) - $windowMenu = array(); - foreach( $windowMenu as $menu ) - { - $tmp_text = langHtml($menu['text']); - $tmp_key = strtoupper(langHtml($menu['key' ])); - $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); - if ( $tmp_pos !== false ) - $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); - if ( isset($menu['url']) ) - { - ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu<?php echo $this->subActionName==$menu['subaction']?'_highlight':'' ?>"><?php echo $tmp_text ?></a>&nbsp;&nbsp;&nbsp;<?php - } - else - { - ?><span class="menu_disabled" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu_disabled"><?php echo $tmp_text ?></span>&nbsp;&nbsp;&nbsp;<?php - } - } - if (@$conf['help']['enabled'] ) - { - ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>" class="menu" style="cursor:help;"><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php - } - ?></td> - </tr> -<?php if (isset($notices) && count($notices)>0 ) - { ?> - <tr> - <td align="center" class="notice"> - <?php foreach( $notices as $notice_idx=>$notice ) { ?> - <br><table class="notice" width="80%"> - <?php if ($notice['name']!='') { ?> - <tr> - <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($attr2_widths);unset($attr2_width);unset($attr2_rowclasses);unset($attr2_columnclasses); ?><?php $attr3_present='up_url'; ?><?php - $attr3_tmp_exec = isset($$attr3_present); - $attr3_tmp_last_exec = $attr3_tmp_exec; - if ( $attr3_tmp_exec ) - { -?> -<?php unset($attr3_present); ?><?php ?><?php - $attr4_tmp_class=''; - $attr4_last_class = $attr4_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr4_tmp_class)); -?><?php ?><?php $attr5_width='50%'; $attr5_colspan='8'; ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr5_class)) - $attr5_class=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) - $attr5_width=$column_widths[$cell_column_nr-1]; -?><td<?php -?> width="<?php echo $attr5_width ?>"<?php -?> colspan="<?php echo $attr5_colspan ?>" <?php -?>><?php unset($attr5_width);unset($attr5_colspan); ?><?php $attr6_title=''; $attr6_target='cms_main'; $attr6_url=$up_url; $attr6_class=''; ?><?php - $params = array(); - $tmp_url = $attr6_url; -?><a<?php if (isset($attr6_name)) echo ' name="'.$attr6_name.'"'; else echo ' href="'.$tmp_url.($attr6_anchor?'#'.$attr6_anchor:'').'"' ?> class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6_title);unset($attr6_target);unset($attr6_url);unset($attr6_class); ?><?php $attr7_align='left'; $attr7_type='folder'; ?><?php - $attr7_tmp_image_file = $image_dir.'icon_'.$attr7_type.IMG_ICON_EXT; - $attr7_size = '16x16'; -?><img alt="<?php echo basename($attr7_tmp_image_file); echo ' ('; if (isset($attr7_size)) { list($attr7_tmp_width,$attr7_tmp_height)=explode('x',$attr7_size);echo $attr7_tmp_width.'x'.$attr7_tmp_height; echo')';} ?>" src="<?php echo $attr7_tmp_image_file ?>" border="0"<?php if(isset($attr7_align)) echo ' align="'.$attr7_align.'"' ?><?php if (isset($attr7_size)) { list($attr7_tmp_width,$attr7_tmp_height)=explode('x',$attr7_size);echo ' width="'.$attr7_tmp_width.'" height="'.$attr7_tmp_height.'"';} ?>><?php unset($attr7_align);unset($attr7_type); ?><?php $attr7_class='text'; $attr7_raw='__.._____________'; $attr7_escape=true; ?><?php - $attr7_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php - $langF = $attr7_escape?'langHtml':'lang'; - $tmp_text = str_replace('_','&nbsp;',$attr7_raw); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr7_class);unset($attr7_raw);unset($attr7_escape); ?><?php ?></a><?php ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php } ?><?php ?><?php $attr3_class='headline'; ?><?php - $attr3_tmp_class=''; - $attr3_tmp_class_list = explode(',',$attr3_classes); - $last_pos = array_search($attr3_last_class,$attr3_tmp_class_list); - if ( $last_pos === FALSE || $last_pos == count($attr3_tmp_class_list)-1) - $attr3_tmp_class = $attr3_tmp_class_list[0]; - else - $attr3_tmp_class = $attr3_tmp_class_list[++$last_pos]; - $attr3_tmp_class=$attr3_class; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php unset($attr3_class); ?><?php $attr4_class='help'; ?><?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 -?> class="<?php echo $attr4_class ?>" <?php -?>><?php unset($attr4_class); ?><?php $attr5_class='text'; $attr5_key='GLOBAL_TYPE'; $attr5_escape=true; ?><?php - $attr5_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $langF = $attr5_escape?'langHtml':'lang'; - $tmp_text = $langF($attr5_key); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_key);unset($attr5_escape); ?><?php $attr5_class='text'; $attr5_raw='_/_'; $attr5_escape=true; ?><?php - $attr5_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $langF = $attr5_escape?'langHtml':'lang'; - $tmp_text = str_replace('_','&nbsp;',$attr5_raw); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_raw);unset($attr5_escape); ?><?php $attr5_class='text'; $attr5_key='GLOBAL_NAME'; $attr5_escape=true; ?><?php - $attr5_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $langF = $attr5_escape?'langHtml':'lang'; - $tmp_text = $langF($attr5_key); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_key);unset($attr5_escape); ?><?php ?></td><?php ?><?php $attr4_class='help'; ?><?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 -?> class="<?php echo $attr4_class ?>" <?php -?>><?php unset($attr4_class); ?><?php $attr5_class='text'; $attr5_key='GLOBAL_LASTCHANGE'; $attr5_escape=true; ?><?php - $attr5_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $langF = $attr5_escape?'langHtml':'lang'; - $tmp_text = $langF($attr5_key); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_key);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php $attr3_list='object'; $attr3_extract=true; $attr3_key='list_key'; $attr3_value='list_value'; ?><?php - $attr3_list_tmp_key = $attr3_key; - $attr3_list_tmp_value = $attr3_value; - $attr3_list_extract = $attr3_extract; - unset($attr3_key); - unset($attr3_value); - if ( !isset($$attr3_list) || !is_array($$attr3_list) ) - $$attr3_list = array(); - foreach( $$attr3_list as $$attr3_list_tmp_key => $$attr3_list_tmp_value ) - { - if ( $attr3_list_extract ) - { - if ( !is_array($$attr3_list_tmp_value) ) - { - print_r($$attr3_list_tmp_value); - die( 'not an array at key: '.$$attr3_list_tmp_key ); - } - extract($$attr3_list_tmp_value); - } -?><?php unset($attr3_list);unset($attr3_extract);unset($attr3_key);unset($attr3_value); ?><?php $attr4_class='data'; ?><?php - $attr4_tmp_class=''; - $attr4_tmp_class_list = explode(',',$attr4_classes); - $last_pos = array_search($attr4_last_class,$attr4_tmp_class_list); - if ( $last_pos === FALSE || $last_pos == count($attr4_tmp_class_list)-1) - $attr4_tmp_class = $attr4_tmp_class_list[0]; - else - $attr4_tmp_class = $attr4_tmp_class_list[++$last_pos]; - $attr4_tmp_class=$attr4_class; - $attr4_last_class = $attr4_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr4_tmp_class)); -?><?php unset($attr4_class); ?><?php ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr5_class)) - $attr5_class=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) - $attr5_width=$column_widths[$cell_column_nr-1]; -?><td<?php -?>><?php ?><?php $attr6_title=$desc; $attr6_target='cms_main'; $attr6_url=$url; $attr6_class=$class; ?><?php - $params = array(); - $tmp_url = $attr6_url; -?><a<?php if (isset($attr6_name)) echo ' name="'.$attr6_name.'"'; else echo ' href="'.$tmp_url.($attr6_anchor?'#'.$attr6_anchor:'').'"' ?> class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6_title);unset($attr6_target);unset($attr6_url);unset($attr6_class); ?><?php $attr7_align='left'; $attr7_type=$icon; ?><?php - $attr7_tmp_image_file = $image_dir.'icon_'.$attr7_type.IMG_ICON_EXT; - $attr7_size = '16x16'; -?><img alt="<?php echo basename($attr7_tmp_image_file); echo ' ('; if (isset($attr7_size)) { list($attr7_tmp_width,$attr7_tmp_height)=explode('x',$attr7_size);echo $attr7_tmp_width.'x'.$attr7_tmp_height; echo')';} ?>" src="<?php echo $attr7_tmp_image_file ?>" border="0"<?php if(isset($attr7_align)) echo ' align="'.$attr7_align.'"' ?><?php if (isset($attr7_size)) { list($attr7_tmp_width,$attr7_tmp_height)=explode('x',$attr7_size);echo ' width="'.$attr7_tmp_width.'" height="'.$attr7_tmp_height.'"';} ?>><?php unset($attr7_align);unset($attr7_type); ?><?php $attr7_class='text'; $attr7_var='name'; $attr7_escape=true; ?><?php - $attr7_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php - $langF = $attr7_escape?'langHtml':'lang'; - $tmp_text = isset($$attr7_var)?$$attr7_var:'?unset:'.$attr7_var.'?'; - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr7_class);unset($attr7_var);unset($attr7_escape); ?><?php $attr7_class='text'; $attr7_raw='_'; $attr7_escape=true; ?><?php - $attr7_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php - $langF = $attr7_escape?'langHtml':'lang'; - $tmp_text = str_replace('_','&nbsp;',$attr7_raw); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr7_class);unset($attr7_raw);unset($attr7_escape); ?><?php ?></a><?php ?><?php ?></td><?php ?><?php ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr5_class)) - $attr5_class=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) - $attr5_width=$column_widths[$cell_column_nr-1]; -?><td<?php -?>><?php ?><?php $attr6_date=$date; ?><?php - global $conf; - $time = $attr6_date; - if ( $time==0) - echo lang('GLOBAL_UNKNOWN'); - elseif ( !$conf['interface']['human_date_format'] ) - { - echo '<span title="'; - $dl = date(lang('DATE_FORMAT_LONG'),$time); - $dl = str_replace('{weekday}',lang('DATE_WEEKDAY'.strval(date('w',$time))),$dl); - $dl = str_replace('{month}' ,lang('DATE_MONTH' .strval(date('n',$time))),$dl); - echo $dl; - unset($dl); - echo '">'; - echo date(lang('DATE_FORMAT'),$time); - echo '</span>'; - } - else - { - $sekunden = time()-$time; - $minuten = intval($sekunden/60); - $stunden = intval($minuten /60); - $tage = intval($stunden /24); - $monate = intval($tage /30); - $jahre = intval($monate /12); - echo '<span title="'.date(lang('DATE_FORMAT'),$time).'"">'; - if ( $time==0) - echo lang('GLOBAL_UNKNOWN'); - elseif ( !$conf['interface']['human_date_format'] ) - echo date(lang('DATE_FORMAT'),$time); - elseif ( $sekunden == 1 ) - echo $sekunden.' '.lang('GLOBAL_SECOND'); - elseif ( $sekunden < 60 ) - echo $sekunden.' '.lang('GLOBAL_SECONDS'); - elseif ( $minuten == 1 ) - echo $minuten.' '.lang('GLOBAL_MINUTE'); - elseif ( $minuten < 60 ) - echo $minuten.' '.lang('GLOBAL_MINUTES'); - elseif ( $stunden == 1 ) - echo $stunden.' '.lang('GLOBAL_HOUR'); - elseif ( $stunden < 60 ) - echo $stunden.' '.lang('GLOBAL_HOURS'); - elseif ( $tage == 1 ) - echo $tage.' '.lang('GLOBAL_DAY'); - elseif ( $tage < 60 ) - echo $tage.' '.lang('GLOBAL_DAYS'); - elseif ( $monate == 1 ) - echo $monate.' '.lang('GLOBAL_MONTH'); - elseif ( $monate < 12 ) - echo $monate.' '.lang('GLOBAL_MONTHS'); - elseif ( $jahre == 1 ) - echo $jahre.' '.lang('GLOBAL_YEAR'); - else - echo $jahre.' '.lang('GLOBAL_YEARS'); - echo '</span>'; - } -?><?php unset($attr6_date); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php } ?><?php ?><?php $attr3_empty='object'; ?><?php - if ( !isset($$attr3_empty) ) - $attr3_tmp_exec = empty($attr3_empty); - elseif ( is_array($$attr3_empty) ) - $attr3_tmp_exec = (count($$attr3_empty)==0); - elseif ( is_bool($$attr3_empty) ) - $attr3_tmp_exec = true; - else - $attr3_tmp_exec = empty( $$attr3_empty ); - $attr3_tmp_last_exec = $attr3_tmp_exec; - if ( $attr3_tmp_exec ) - { -?> -<?php unset($attr3_empty); ?><?php ?><?php - $attr4_tmp_class=''; - $attr4_last_class = $attr4_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr4_tmp_class)); -?><?php ?><?php $attr5_colspan='2'; ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr5_class)) - $attr5_class=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) - $attr5_width=$column_widths[$cell_column_nr-1]; -?><td<?php -?> colspan="<?php echo $attr5_colspan ?>" <?php -?>><?php unset($attr5_colspan); ?><?php $attr6_class='text'; $attr6_text='GLOBAL_NOT_FOUND'; $attr6_escape=true; ?><?php - $attr6_title = ''; - $tmp_tag = 'span'; -?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php - $langF = $attr6_escape?'langHtml':'lang'; - $tmp_text = $langF($$attr6_textvar); - $tmp_text = $langF($attr6_text); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr6_class);unset($attr6_text);unset($attr6_escape); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php } ?><?php ?><?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 } ?> -<?php ?><?php ?></body> -</html><?php ?>- \ 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 @@ -1,257 +0,0 @@ -<?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 @@ -1,86 +0,0 @@ -<?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,609 +0,0 @@ -<?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_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 $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($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';$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,$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 = ''; - $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 - $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><?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,$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 = ''; - $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 - $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><?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) ?><?php $a5_title=lang('FOLDER_ORDERBYNAME');$a5_type='url';$a5_url=$orderbyname_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_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) ?></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,$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 = ''; - $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 - $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 $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 ) - { - 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';$a4_id='o_'.$id.''; ?><?php - $column_idx = 0; -?> -<tr - class="data" - data-id="<?php echo 'o_'.$id.'' ?>" -> -<?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,$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_type='url';$a7_url=$upurl;$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_var='bild';$a8_value='arrow_up'; ?><?php - if (isset($a8_key)) - $$a8_var = $a8_value[$a8_key]; - else - $$a8_var = $a8_value; -?><?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 - 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_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_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,$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_type='url';$a7_url=$topurl;$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_var='bild';$a8_value='arrow_top'; ?><?php - if (isset($a8_key)) - $$a8_var = $a8_value[$a8_key]; - else - $$a8_var = $a8_value; -?><?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 - 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_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_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,$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_type='url';$a7_url=$bottomurl;$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_var='bild';$a8_value='arrow_bottom'; ?><?php - if (isset($a8_key)) - $$a8_var = $a8_value[$a8_key]; - else - $$a8_var = $a8_value; -?><?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 - 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_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_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,$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_type='url';$a7_url=$downurl;$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_var='bild';$a8_value='arrow_down'; ?><?php - if (isset($a8_key)) - $$a8_var = $a8_value[$a8_key]; - else - $$a8_var = $a8_value; -?><?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 - 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_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_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,$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 - $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_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,$a5_header) ?><?php $a6_date=$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) ?></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,79 +0,0 @@ -<?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) ?><?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 ?>" 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><?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 ?>" 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><?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) ?></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,200 +0,0 @@ -<?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('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($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($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; - 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 $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 - $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_text='global_pages';$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) ?></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($a4_present) ?><?php $a5_true='subdirs'; ?><?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 ) - { -?> -<?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; - 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 $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 - $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_text='global_files';$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) ?></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($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; - 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='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 - $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_PUBLISH_WITH_SUBDIRS';$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='clean'; ?><?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='clean'; ?><?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='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 - $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_CLEAN_AFTER_PUBLISH';$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 } ?></fieldset></form> diff --git a/themes/default/pages/html/folder/remove.tpl.php b/themes/default/pages/html/folder/remove.tpl.php @@ -1,277 +0,0 @@ -<?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_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 } ?> - <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_width,$a4_rowclasses,$a4_columnclasses) ?><?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_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 $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_header=false; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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='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 = 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 - $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_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) ?></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_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 = $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) ?></td></tr><?php - $column_idx = 0; -?> -<tr -> -<?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($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 $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 - $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_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/> -<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='delete'; ?><script name="JavaScript" type="text/javascript"><!-- -</script> -<?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,436 +0,0 @@ -<?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()) - { - $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_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 } ?> - <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_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 -> -<?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($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 $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) ?></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($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 $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></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 ( $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='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?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 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 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 $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) ?><?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) ?></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 $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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="2" -><?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 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 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 } ?> -><?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 $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) ?></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 $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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="2" -><?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($a6_present) ?><?php - $column_idx = 0; -?> -<tr -> -<?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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="2" -><?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 $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($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/> -<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/folder/show.tpl.php b/themes/default/pages/html/folder/show.tpl.php @@ -1,337 +0,0 @@ -<?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 } ?> -</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_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,$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 - $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 $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) ?><?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 $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_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,$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 - $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_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; - 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_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 } ?> - 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 $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) ?><?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_date=$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) ?></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; - else - $a3_tmp_exec = empty( $$a3_empty ); - $a3_tmp_last_exec = $a3_tmp_exec; - if ( $a3_tmp_exec ) - { -?> -<?php unset($a3_empty) ?><?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_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 - $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 } ?><?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='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/folder/showprop.tpl.php b/themes/default/pages/html/folder/showprop.tpl.php @@ -1,1320 +0,0 @@ -<?php $attr1_class='main'; ?><?php - if (!headers_sent()) header('Content-Type: text/html; charset='.$charset) -?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<html> -<head> - <title><?php echo isset($attr1_title)?$attr1_title.' - ':(isset($windowTitle)?lang($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" /> - <meta name="MSSmartTagsPreventParsing" content="true" /> - <meta name="robots" content="noindex,nofollow" /> -<?php if (isset($windowMenu) && is_array($windowMenu)) foreach( $windowMenu as $menu ) - { - ?> - <link rel="section" href="<?php echo Html::url($actionName,@$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" /> -<?php - } -?><?php if (isset($metaList) && is_array($metaList)) foreach( $metaList as $meta ) - { - ?> - <link rel="<?php echo $meta['name'] ?>" href="<?php echo $meta['url'] ?>" title="<?php echo lang($meta['title']) ?>" /><?php - } -?><?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_class); ?><?php $attr2_title='global_prop'; $attr2_name='objectName'; $attr2_icon='folder'; $attr2_widths='40%,20%,30%'; $attr2_width='70%'; $attr2_rowclasses='odd,even'; $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">'; - echo '<img src="'.$image_dir.'icon_'.$actionName.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 } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } - ?><?php } - echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; - if ( !isset($path) || is_array($path) ) - $path = array(); - foreach( $path as $pathElement) - { - extract($pathElement); - echo '<a href="'.$url.'" class="path">'.langHtml($name).'</a>'; - echo '&nbsp;&raquo;&nbsp;'; - } - echo '<span class="title">'.langHtml($windowTitle).'</span>'; - ?> - </td> - <?php - } - ?> -<?php ?> <!--<td class="menu" style="align:right;"> - <?php if (isset($windowIcons)) foreach( $windowIcons as $icon ) - { - ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.langHtml($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a>&nbsp;<?php - } - ?> - </td>--> - </tr> - <tr><td class="subaction"> - <?php if ( !isset($windowMenu) || !is_array($windowMenu) ) - $windowMenu = array(); - foreach( $windowMenu as $menu ) - { - $tmp_text = langHtml($menu['text']); - $tmp_key = strtoupper(langHtml($menu['key' ])); - $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); - if ( $tmp_pos !== false ) - $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); - if ( isset($menu['url']) ) - { - ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu<?php echo $this->subActionName==$menu['subaction']?'_highlight':'' ?>"><?php echo $tmp_text ?></a>&nbsp;&nbsp;&nbsp;<?php - } - else - { - ?><span class="menu_disabled" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu_disabled"><?php echo $tmp_text ?></span>&nbsp;&nbsp;&nbsp;<?php - } - } - if (@$conf['help']['enabled'] ) - { - ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>" class="menu" style="cursor:help;"><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php - } - ?></td> - </tr> -<?php if (isset($notices) && count($notices)>0 ) - { ?> - <tr> - <td align="center" class="notice"> - <?php foreach( $notices as $notice_idx=>$notice ) { ?> - <br><table class="notice" width="80%"> - <?php if ($notice['name']!='') { ?> - <tr> - <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> - <table cellspacing="0" width="100%" cellpadding="4"> -<?php unset($attr2_title);unset($attr2_name);unset($attr2_icon);unset($attr2_widths);unset($attr2_width);unset($attr2_rowclasses);unset($attr2_columnclasses); ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text='global_name'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php $attr4_class='name'; $attr4_colspan='2'; ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php unset($attr4_class);unset($attr4_colspan); ?><?php $attr5_class='text'; $attr5_var='name'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_var);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text='global_description'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php $attr4_colspan='2'; ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php unset($attr4_colspan); ?><?php $attr5_class='text'; $attr5_var='description'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_var);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_key='FULL_FILENAME'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_key);unset($attr5_escape); ?><?php ?></td><?php ?><?php $attr4_class='filename'; $attr4_colspan='2'; ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php unset($attr4_class);unset($attr4_colspan); ?><?php $attr5_class='text'; $attr5_var='full_filename'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_var);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php $attr4_colspan='2'; ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php unset($attr4_colspan); ?><?php $attr5_title=lang('additional_info'); ?><fieldset><?php if(isset($attr5_title)) { ?><legend><?php echo encodeHtml($attr5_title) ?></legend><?php } ?><?php unset($attr5_title); ?><?php ?></fieldset><?php ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_key='id'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_key);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_var='objectid'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_var);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php $attr4_colspan='3'; ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php unset($attr4_colspan); ?><?php $attr5_title=lang('PROP_USERINFO'); ?><fieldset><?php if(isset($attr5_title)) { ?><legend><?php echo encodeHtml($attr5_title) ?></legend><?php } ?><?php unset($attr5_title); ?><?php ?></fieldset><?php ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text='global_created'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_icon='el_date'; $attr5_align='left'; ?><?php - $attr5_tmp_image_file = $image_dir.'icon_'.$attr5_icon.IMG_ICON_EXT; - $attr5_size = '16x16'; -?><img src="<?php echo $attr5_tmp_image_file ?>" border="0"<?php if(isset($attr5_align)) echo ' align="'.$attr5_align.'"' ?><?php if (isset($attr5_size)) { list($attr5_tmp_width,$attr5_tmp_height)=explode('x',$attr5_size);echo ' width="'.$attr5_tmp_width.'" height="'.$attr5_tmp_height.'"';} ?>><?php unset($attr5_icon);unset($attr5_align); ?><?php $attr5_date=$create_date; ?><?php - global $conf; - $time = $attr5_date; - if ( $time==0) - echo lang('GLOBAL_UNKNOWN'); - elseif ( !$conf['interface']['human_date_format'] ) - { - echo '<span title="'; - $dl = date(lang('DATE_FORMAT_LONG'),$time); - $dl = str_replace('{weekday}',lang('DATE_WEEKDAY'.strval(date('w',$time))),$dl); - $dl = str_replace('{month}' ,lang('DATE_MONTH' .strval(date('n',$time))),$dl); - echo $dl; - unset($dl); - echo '">'; - echo date(lang('DATE_FORMAT'),$time); - echo '</span>'; - } - else - { - $sekunden = time()-$time; - $minuten = intval($sekunden/60); - $stunden = intval($minuten /60); - $tage = intval($stunden /24); - $monate = intval($tage /30); - $jahre = intval($monate /12); - echo '<span title="'.date(lang('DATE_FORMAT'),$time).'"">'; - if ( $time==0) - echo lang('GLOBAL_UNKNOWN'); - elseif ( !$conf['interface']['human_date_format'] ) - echo date(lang('DATE_FORMAT'),$time); - elseif ( $sekunden == 1 ) - echo $sekunden.' '.lang('GLOBAL_SECOND'); - elseif ( $sekunden < 60 ) - echo $sekunden.' '.lang('GLOBAL_SECONDS'); - elseif ( $minuten == 1 ) - echo $minuten.' '.lang('GLOBAL_MINUTE'); - elseif ( $minuten < 60 ) - echo $minuten.' '.lang('GLOBAL_MINUTES'); - elseif ( $stunden == 1 ) - echo $stunden.' '.lang('GLOBAL_HOUR'); - elseif ( $stunden < 60 ) - echo $stunden.' '.lang('GLOBAL_HOURS'); - elseif ( $tage == 1 ) - echo $tage.' '.lang('GLOBAL_DAY'); - elseif ( $tage < 60 ) - echo $tage.' '.lang('GLOBAL_DAYS'); - elseif ( $monate == 1 ) - echo $monate.' '.lang('GLOBAL_MONTH'); - elseif ( $monate < 12 ) - echo $monate.' '.lang('GLOBAL_MONTHS'); - elseif ( $jahre == 1 ) - echo $jahre.' '.lang('GLOBAL_YEAR'); - else - echo $jahre.' '.lang('GLOBAL_YEARS'); - echo '</span>'; - } -?><?php unset($attr5_date); ?><?php ?></td><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_icon='user'; $attr5_align='left'; ?><?php - $attr5_tmp_image_file = $image_dir.'icon_'.$attr5_icon.IMG_ICON_EXT; - $attr5_size = '16x16'; -?><img src="<?php echo $attr5_tmp_image_file ?>" border="0"<?php if(isset($attr5_align)) echo ' align="'.$attr5_align.'"' ?><?php if (isset($attr5_size)) { list($attr5_tmp_width,$attr5_tmp_height)=explode('x',$attr5_size);echo ' width="'.$attr5_tmp_width.'" height="'.$attr5_tmp_height.'"';} ?>><?php unset($attr5_icon);unset($attr5_align); ?><?php $attr5_user=$create_user; ?><?php - if ( is_object($attr5_user) ) - $user = $attr5_user; - else - $user = $$attr5_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($attr5_user); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text='global_lastchange'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_icon='el_date'; $attr5_align='left'; ?><?php - $attr5_tmp_image_file = $image_dir.'icon_'.$attr5_icon.IMG_ICON_EXT; - $attr5_size = '16x16'; -?><img src="<?php echo $attr5_tmp_image_file ?>" border="0"<?php if(isset($attr5_align)) echo ' align="'.$attr5_align.'"' ?><?php if (isset($attr5_size)) { list($attr5_tmp_width,$attr5_tmp_height)=explode('x',$attr5_size);echo ' width="'.$attr5_tmp_width.'" height="'.$attr5_tmp_height.'"';} ?>><?php unset($attr5_icon);unset($attr5_align); ?><?php $attr5_date=$lastchange_date; ?><?php - global $conf; - $time = $attr5_date; - if ( $time==0) - echo lang('GLOBAL_UNKNOWN'); - elseif ( !$conf['interface']['human_date_format'] ) - { - echo '<span title="'; - $dl = date(lang('DATE_FORMAT_LONG'),$time); - $dl = str_replace('{weekday}',lang('DATE_WEEKDAY'.strval(date('w',$time))),$dl); - $dl = str_replace('{month}' ,lang('DATE_MONTH' .strval(date('n',$time))),$dl); - echo $dl; - unset($dl); - echo '">'; - echo date(lang('DATE_FORMAT'),$time); - echo '</span>'; - } - else - { - $sekunden = time()-$time; - $minuten = intval($sekunden/60); - $stunden = intval($minuten /60); - $tage = intval($stunden /24); - $monate = intval($tage /30); - $jahre = intval($monate /12); - echo '<span title="'.date(lang('DATE_FORMAT'),$time).'"">'; - if ( $time==0) - echo lang('GLOBAL_UNKNOWN'); - elseif ( !$conf['interface']['human_date_format'] ) - echo date(lang('DATE_FORMAT'),$time); - elseif ( $sekunden == 1 ) - echo $sekunden.' '.lang('GLOBAL_SECOND'); - elseif ( $sekunden < 60 ) - echo $sekunden.' '.lang('GLOBAL_SECONDS'); - elseif ( $minuten == 1 ) - echo $minuten.' '.lang('GLOBAL_MINUTE'); - elseif ( $minuten < 60 ) - echo $minuten.' '.lang('GLOBAL_MINUTES'); - elseif ( $stunden == 1 ) - echo $stunden.' '.lang('GLOBAL_HOUR'); - elseif ( $stunden < 60 ) - echo $stunden.' '.lang('GLOBAL_HOURS'); - elseif ( $tage == 1 ) - echo $tage.' '.lang('GLOBAL_DAY'); - elseif ( $tage < 60 ) - echo $tage.' '.lang('GLOBAL_DAYS'); - elseif ( $monate == 1 ) - echo $monate.' '.lang('GLOBAL_MONTH'); - elseif ( $monate < 12 ) - echo $monate.' '.lang('GLOBAL_MONTHS'); - elseif ( $jahre == 1 ) - echo $jahre.' '.lang('GLOBAL_YEAR'); - else - echo $jahre.' '.lang('GLOBAL_YEARS'); - echo '</span>'; - } -?><?php unset($attr5_date); ?><?php ?></td><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_icon='user'; $attr5_align='left'; ?><?php - $attr5_tmp_image_file = $image_dir.'icon_'.$attr5_icon.IMG_ICON_EXT; - $attr5_size = '16x16'; -?><img src="<?php echo $attr5_tmp_image_file ?>" border="0"<?php if(isset($attr5_align)) echo ' align="'.$attr5_align.'"' ?><?php if (isset($attr5_size)) { list($attr5_tmp_width,$attr5_tmp_height)=explode('x',$attr5_size);echo ' width="'.$attr5_tmp_width.'" height="'.$attr5_tmp_height.'"';} ?>><?php unset($attr5_icon);unset($attr5_align); ?><?php $attr5_user=$lastchange_user; ?><?php - if ( is_object($attr5_user) ) - $user = $attr5_user; - else - $user = $$attr5_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($attr5_user); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?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 } ?> -<?php ?><?php ?></body> -</html><?php ?>- \ 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,66 +0,0 @@ -<?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='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/group/adduser.tpl.php b/themes/default/pages/html/group/adduser.tpl.php @@ -1,268 +0,0 @@ -<?php $attr1_class='main'; ?><?php - if (!headers_sent()) header('Content-Type: text/html; charset='.$charset) -?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<html> -<head> - <title><?php echo isset($attr1_title)?$attr1_title.' - ':(isset($windowTitle)?lang($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" > - <meta name="MSSmartTagsPreventParsing" content="true" > - <meta name="robots" content="noindex,nofollow" > -<?php if (isset($windowMenu) && is_array($windowMenu)) foreach( $windowMenu as $menu ) - { - ?> - <link rel="section" href="<?php echo Html::url($actionName,@$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" > -<?php - } -?><?php if (isset($metaList) && is_array($metaList)) foreach( $metaList as $meta ) - { - ?> - <link rel="<?php echo $meta['name'] ?>" href="<?php echo $meta['url'] ?>" title="<?php echo lang($meta['title']) ?>" ><?php - } -?><?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 /* Debug-Information */ if ($showDuration) { echo "<!--\n";print_r($this->templateVars);echo "\n-->";} ?><?php unset($attr1_class); ?><?php $attr2_name=''; $attr2_target='_self'; $attr2_method='post'; $attr2_enctype='application/x-www-form-urlencoded'; ?><?php - $attr2_action = $actionName; - $attr2_subaction = $targetSubActionName; - $attr2_id = $this->getRequestId(); - if ($this->isEditable() && !$this->isEditMode()) - $attr2_subaction = $subActionName; -?><form name="<?php echo $attr2_name ?>" - target="<?php echo $attr2_target ?>" - action="<?php echo Html::url( $attr2_action,$attr2_subaction,$attr2_id ) ?>" - method="<?php echo $attr2_method ?>" - enctype="<?php echo $attr2_enctype ?>" style="margin:0px;padding:0px;"> -<?php if ($this->isEditable() && !$this->isEditMode()) { ?> -<input type="hidden" name="mode" value="edit" /> -<?php } ?> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $attr2_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $attr2_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr2_id ?>" /><?php - if ( $conf['interface']['url_sessionid'] ) - echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($attr2_name);unset($attr2_target);unset($attr2_method);unset($attr2_enctype); ?><?php $attr3_name='GLOBAL_GROUPS'; $attr3_icon='project'; $attr3_width='93%'; $attr3_rowclasses='odd,even'; $attr3_columnclasses='1,2,3'; ?><?php - $coloumn_widths=array(); - if (!empty($attr3_widths)) - { - $column_widths = explode(',',$attr3_widths); - unset($attr3['widths']); - } - if (!empty($attr3_rowclasses)) - { - $row_classes = explode(',',$attr3_rowclasses); - $row_class_idx = 999; - unset($attr3['rowclasses']); - } - if (!empty($attr3_columnclasses)) - { - $column_classes = explode(',',$attr3_columnclasses); - unset($attr3['columnclasses']); - } - global $image_dir; - if (@$conf['interface']['application_mode'] ) - { - echo '<table class="main" cellspacing="0" cellpadding="4" width="100%" style="margin:0px;border:0px; padding:0px;" height_oo="100%">'; - } - else - { - echo '<br/><br/><br/><center>'; - echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr3_width.'">'; - } - if (!@$conf['interface']['application_mode'] ) - { - echo '<tr><td class="menu">'; - echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; - if ($this->isEditable()) { ?> - <?php if ($this->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 } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } - ?><?php } - echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; - if ( !isset($path) || is_array($path) ) - $path = array(); - foreach( $path as $pathElement) - { - extract($pathElement); - echo '<a href="'.$url.'" class="path">'.langHtml($name).'</a>'; - echo '&nbsp;&raquo;&nbsp;'; - } - echo '<span class="title">'.langHtml($windowTitle).'</span>'; - ?> - </td> - <?php - } - ?> -<?php ?> <!--<td class="menu" style="align:right;"> - <?php if (isset($windowIcons)) foreach( $windowIcons as $icon ) - { - ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.langHtml($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a>&nbsp;<?php - } - ?> - </td>--> - </tr> - <tr><td class="subaction"> - <?php if ( !isset($windowMenu) || !is_array($windowMenu) ) - $windowMenu = array(); - foreach( $windowMenu as $menu ) - { - $tmp_text = langHtml($menu['text']); - $tmp_key = strtoupper(langHtml($menu['key' ])); - $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); - if ( $tmp_pos !== false ) - $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); - if ( isset($menu['url']) ) - { - ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu<?php echo $this->subActionName==$menu['subaction']?'_highlight':'' ?>"><?php echo $tmp_text ?></a>&nbsp;&nbsp;&nbsp;<?php - } - else - { - ?><span class="menu_disabled" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu_disabled"><?php echo $tmp_text ?></span>&nbsp;&nbsp;&nbsp;<?php - } - } - if (@$conf['help']['enabled'] ) - { - ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>" class="menu" style="cursor:help;"><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php - } - ?></td> - </tr> -<?php if (isset($notices) && count($notices)>0 ) - { ?> - <tr> - <td align="center" class="notice"> - <?php foreach( $notices as $notice_idx=>$notice ) { ?> - <br><table class="notice" width="80%"> - <?php if ($notice['name']!='') { ?> - <tr> - <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> - <table cellspacing="0" width="100%" cellpadding="4"> -<?php unset($attr3_name);unset($attr3_icon);unset($attr3_width);unset($attr3_rowclasses);unset($attr3_columnclasses); ?><?php ?><?php - $attr4_tmp_class=''; - $attr4_last_class = $attr4_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr4_tmp_class)); -?><?php ?><?php ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr5_class)) - $attr5_class=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) - $attr5_width=$column_widths[$cell_column_nr-1]; -?><td<?php -?>><?php ?><?php $attr6_list='users'; $attr6_name='userid'; $attr6_onchange=''; $attr6_title=''; $attr6_class=''; $attr6_addempty=false; $attr6_multiple=true; $attr6_size='15'; $attr6_lang=false; ?><?php -$attr6_tmp_list = $$attr6_list; -if ($this->isEditable() && !$this->isEditMode()) -{ - echo empty($$attr6_name)?'- '.lang('EMPTY').' -':$attr6_tmp_list[$$attr6_name]; -} -else -{ -if ( $attr6_addempty!==FALSE ) -{ - if ($attr6_addempty===TRUE) - $$attr6_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$$attr6_list; - else - $$attr6_list = array(''=>'- '.lang($attr6_addempty).' -')+$$attr6_list; -} -?><select<?php if ($attr6_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name; if ($attr6_multiple) echo '[]'; ?>" onchange="<?php echo $attr6_onchange ?>" title="<?php echo $attr6_title ?>" class="<?php echo $attr6_class ?>"<?php -if (count($$attr6_list)<=1) echo ' disabled="disabled"'; -if ($attr6_multiple) echo ' multiple="multiple"'; -if (in_array($attr6_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; -echo ' size="'.intval($attr6_size).'"'; -?>><?php - if ( isset($$attr6_name) && isset($attr6_tmp_list[$$attr6_name]) ) - $attr6_tmp_default = $$attr6_name; - elseif ( isset($attr6_default) ) - $attr6_tmp_default = $attr6_default; - else - $attr6_tmp_default = ''; - foreach( $attr6_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( $attr6_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - echo '<option class="'.$attr6_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ($box_key==$attr6_tmp_default) - echo ' selected="selected"'; - echo '>'.$box_value.'</option>'; - } -?></select><?php -if (count($$attr6_list)==0) echo '<input type="hidden" name="'.$attr6_name.'" value="" />'; -if (count($$attr6_list)==1) echo '<input type="hidden" name="'.$attr6_name.'" value="'.$box_key.'" />'; -} -?><?php unset($attr6_list);unset($attr6_name);unset($attr6_onchange);unset($attr6_title);unset($attr6_class);unset($attr6_addempty);unset($attr6_multiple);unset($attr6_size);unset($attr6_lang); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr4_tmp_class=''; - $attr4_last_class = $attr4_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr4_tmp_class)); -?><?php ?><?php $attr5_class='act'; ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr5_class)) - $attr5_class=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) - $attr5_width=$column_widths[$cell_column_nr-1]; -?><td<?php -?> class="<?php echo $attr5_class ?>" <?php -?>><?php unset($attr5_class); ?><?php $attr6_type='ok'; $attr6_class='ok'; $attr6_value='ok'; $attr6_text='button_ok'; ?><?php - if ($this->isEditable() && !$this->isEditMode()) - $attr6_text = 'MODE_EDIT'; - $attr6_type = 'submit'; - $attr6_src = ''; -?><input type="<?php echo $attr6_type ?>"<?php if(isset($attr6_src)) { ?> src="<?php echo $image_dir.'icon_'.$attr6_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $attr6_value ?>" class="<?php echo $attr6_class ?>" title="<?php echo lang($attr6_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($attr6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr6_src) ?><?php -?><?php unset($attr6_type);unset($attr6_class);unset($attr6_value);unset($attr6_text); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?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 } ?> -<?php ?><?php ?></form> -<?php ?><?php ?></body> -</html><?php ?>- \ No newline at end of file diff --git a/themes/default/pages/html/group/edit.tpl.php b/themes/default/pages/html/group/edit.tpl.php @@ -1,75 +0,0 @@ -<?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(); - 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_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 - $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) ?></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,231 +0,0 @@ -<?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_header=false; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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='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_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 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 = ''; - $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 $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 - $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/group/memberships.tpl.php b/themes/default/pages/html/group/memberships.tpl.php @@ -1,276 +0,0 @@ -<?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,79 +0,0 @@ -<?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_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 - $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_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; - 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';$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,468 +0,0 @@ -<?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_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_header=false; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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=$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 - $a8_tmp_exec = empty( $$a8_empty ); - $a8_tmp_last_exec = $a8_tmp_exec; - if ( $a8_tmp_exec ) - { -?> -<?php unset($a8_empty) ?><?php - $column_idx = 0; -?> -<tr -> -<?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 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 $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($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 - $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($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 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($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 $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($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($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 $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($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($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 $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($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 ( $a11_list_extract ) - { - if ( !is_array($$a11_list_tmp_value) ) - { - print_r($$a11_list_tmp_value); - die( 'not an array at key: '.$$a11_list_tmp_key ); - } - extract($$a11_list_tmp_value); - } -?><?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($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 $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($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 ( $a10_list_extract ) - { - if ( !is_array($$a10_list_tmp_value) ) - { - print_r($$a10_list_tmp_value); - die( 'not an array at key: '.$$a10_list_tmp_key ); - } - extract($$a10_list_tmp_value); - } -?><?php unset($a10_list,$a10_extract,$a10_key,$a10_value) ?><?php $a11_class='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?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 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($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 $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($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($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($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 $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($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 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 = ''; - $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 $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($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 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 $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($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 ( $a12_list_extract ) - { - if ( !is_array($$a12_list_tmp_value) ) - { - print_r($$a12_list_tmp_value); - die( 'not an array at key: '.$$a12_list_tmp_key ); - } - extract($$a12_list_tmp_value); - } -?><?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 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 - $$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 = $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 $a14_name ?>" value="1" /><?php -} -?><?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/> -<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/group/users.tpl.php b/themes/default/pages/html/group/users.tpl.php @@ -1,267 +0,0 @@ -<?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()) - { - $a1_method = 'POST'; - } - else - { - $a1_method = 'GET'; - $a1_subaction = $subActionName; - } - } -?><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 $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($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 } ?> - <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_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 } ?> -<?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; - 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='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?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_default=false;$a7_readonly=false;$a7_name=$var; ?><?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) ?></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_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 - $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></td></tr><?php } ?><?php - $column_idx = $last_column_idx; -?> -</table><?php - $column_idx = 0; -?> -<tr -> -<?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($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/> -<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/grouplist/add.tpl.php b/themes/default/pages/html/grouplist/add.tpl.php @@ -1,64 +0,0 @@ -<?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 @@ -1,141 +0,0 @@ -<?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,196 +0,0 @@ -<?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; - 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>&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 '<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 - } - ?> -</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 - } - ?> - </tr> -<?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 ) - { - $tmp_text = langHtml($menu['text']); - $tmp_key = strtoupper(langHtml($menu['key' ])); - $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); - if ( $tmp_pos !== false ) - $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); - if ( isset($menu['url']) ) - { - ?><a 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 - { - ?><div class="noaction"><?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 - } - ?><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> - <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="x-window"> - <table cellspacing="0" width="100%" cellpadding="4"> -<?php unset($a2_icon,$a2_width,$a2_rowclasses,$a2_columnclasses) ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a4_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($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 ?>"<?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 - $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) ?></a></td></tr><?php $a3_list='applications';$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 - $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='';$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 ?>"<?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 - $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) ?></a></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='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) ?></td></tr><?php } ?> </table> - </td> - </tr> -</table> -<?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 } ?> diff --git a/themes/default/pages/html/index/changepassword.tpl.php b/themes/default/pages/html/index/changepassword.tpl.php @@ -1,255 +0,0 @@ -<?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(); - 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='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; - 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>&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 '<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 - } - ?> -</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 - } - ?> - </tr> -<?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 ) - { - $tmp_text = langHtml($menu['text']); - $tmp_key = strtoupper(langHtml($menu['key' ])); - $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); - if ( $tmp_pos !== false ) - $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); - if ( isset($menu['url']) ) - { - ?><a 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 - { - ?><div class="noaction"><?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 - } - ?><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> - <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="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++; - $column_idx = 0; -?> -<tr -> -<?php $a5_class='logo';$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="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><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_width='50%'; ?><?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($a6_width) ?><?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) ?></td><?php $a6_width='50%'; ?><?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($a6_width) ?><?php $a7_name='password_old';$a7_default='';$a7_class='';$a7_size='25';$a7_maxlength='256'; ?><input type="password" name="<?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) ?></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_width='50%'; ?><?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($a6_width) ?><?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) ?></td><?php $a6_width='50%'; ?><?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($a6_width) ?><?php $a7_name='password_new_1';$a7_default='';$a7_class='';$a7_size='25';$a7_maxlength='256'; ?><input type="password" name="<?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) ?></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_width='50%'; ?><?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($a6_width) ?><?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) ?></td><?php $a6_width='50%'; ?><?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($a6_width) ?><?php $a7_name='password_new_2';$a7_default='';$a7_class='';$a7_size='25';$a7_maxlength='256'; ?><input type="password" name="<?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) ?></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_class='act';$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="act" - colspan="2" -><?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></tr> </table> - </td> - </tr> -</table> -<?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='password_old'; ?><?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) ?>- \ 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 @@ -1,895 +0,0 @@ -<?php $a1_class='main'; ?><?php unset($a1_class) ?><?php $a2_action='index';$a2_subaction='login';$a2_name='';$a2_target='_top';$a2_method='post';$a2_enctype='application/x-www-form-urlencoded'; ?><?php - $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_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()) { - ?><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>&rarr;</strong>&nbsp;'; - if ( !isset($path) || !is_array($path) ) - $path = array(); - foreach( $path as $pathElement) - { - extract($pathElement); - 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)) - { - ?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?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>--><nix/> - </tr> -<?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 ) - { - $tmp_text = langHtml($menu['text']); - $tmp_key = strtoupper(langHtml($menu['key' ])); - $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); - if ( $tmp_pos !== false ) - $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); - if ( isset($menu['url']) ) - { - ?><a 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"><!-- <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') ?>"><!-- <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; - echo '<br/><br/>'; - echo '<table class="x-main" cellspacing="0" cellpadding="4" width="'.$a3_width.'">'; - ?> -<?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="x-window"> - <table cellspacing="0" width="100%" cellpadding="4"> -<?php unset($a3_title,$a3_name,$a3_icon,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?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 - $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_present=@$conf['login']['logo']['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='_top';$a9_url=@$conf['login']['logo']['url'];$a9_class=''; ?><?php - $params = array(); - $tmp_url = ''; - $params[REQ_PARAM_TARGET] = $a9_target; - $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 ?>"<?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_url=@$conf['login']['logo']['file'];$a10_align='left'; ?><?php - $a10_tmp_image_file = $a10_url; - $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_url,$a10_align) ?></a><?php } ?><?php $a8_empty=@$conf['login']['logo']['url']; ?><?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 - $a8_tmp_exec = empty( $$a8_empty ); - $a8_tmp_last_exec = $a8_tmp_exec; - if ( $a8_tmp_exec ) - { -?> -<?php unset($a8_empty) ?><?php $a9_url=@$conf['login']['logo']['file'];$a9_align='left'; ?><?php - $a9_tmp_image_file = $a9_url; - $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_url,$a9_align) ?><?php } ?></td></tr><?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 - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_class='motd';$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="motd" - colspan="2" -><?php unset($a6_class,$a6_colspan) ?><?php $a7_class='text';$a7_raw=@$conf['login']['motd'];$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 } ?><?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 - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_class='help';$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="help" - colspan="2" -><?php unset($a6_class,$a6_colspan) ?><?php $a7_class='text';$a7_key='LOGIN_NOLOGIN_DESC';$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 } ?><?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 - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_class='help';$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="help" - colspan="2" -><?php unset($a6_class,$a6_colspan) ?><?php $a7_class='text';$a7_key='GLOBAL_READONLY_DESC';$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 } ?><?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 - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_class='help';$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="help" - colspan="2" -><?php unset($a6_class,$a6_colspan) ?><?php $a7_class='text';$a7_key='GLOBAL_NOPUBLISH_DESC';$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 } ?><?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 - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_class='logo';$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="logo" - colspan="2" -><?php unset($a6_class,$a6_colspan) ?><?php $a7_name='login'; ?><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 - $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='USER_USERNAME';$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 $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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_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 ?>" 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 { ?><a href="<?php echo Html::url('','',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='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 { ?><a href="<?php echo Html::url('','',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) ?></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_class='text';$a7_key='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_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_name='login_password';$a7_default='';$a7_class='name';$a7_size='20';$a7_maxlength='256'; ?><input type="password" name="<?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) ?></td></tr><?php $a5_true=$this->mustChangePassword; ?><?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 ) - { -?> -<?php unset($a5_true) ?><?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('USER_NEW_PASSWORD'); ?><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='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) ?></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_name='password1';$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 - $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='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) ?></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_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 - $a5_tmp_exec = $a5_true == true; - $a5_tmp_last_exec = $a5_tmp_exec; - if ( $a5_tmp_exec ) - { -?> -<?php unset($a5_true) ?><?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('OPENID'); ?><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_not=true;$a8_empty=@$conf['security']['openid']['logo_url']; ?><?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 - $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($a8_not,$a8_empty) ?><?php $a9_url=@$conf['security']['openid']['logo_url'];$a9_align='left'; ?><?php - $a9_tmp_image_file = $a9_url; - $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_url,$a9_align) ?><?php } ?><?php $a8_class='text';$a8_key='openid_user';$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><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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='openid_providers';$a8_name='openid_provider';$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 - $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_'.$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>'; - } -?><?php unset($a8_list,$a8_name,$a8_onchange,$a8_title,$a8_class) ?><?php $a8_true=$openid_user_identity; ?><?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_readonly=false;$a9_name='openid_provider';$a9_value='identity';$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 - $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_class='name';$a9_default='';$a9_type='text';$a9_name='openid_url';$a9_size='20';$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 ?>" 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 { ?><a href="<?php echo Html::url('','',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_value=@count($dbids);$a5_greaterthan='1'; ?><?php - $a5_tmp_exec = intval($a5_greaterthan) < intval($a5_value); - $a5_tmp_last_exec = $a5_tmp_exec; - if ( $a5_tmp_exec ) - { -?> -<?php unset($a5_value,$a5_greaterthan) ?><?php - $row_idx++; - $column_idx = 0; -?> -<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_title=lang('DATABASE');$a9_icon='database'; ?><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,$a9_icon) ?></fieldset></td></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='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) ?></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='dbids';$a8_name='dbid';$a8_default=$actdbid;$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($$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_default,$a8_onchange,$a8_title,$a8_class,$a8_addempty,$a8_multiple,$a8_size,$a8_lang) ?><?php $a8_name='screenwidth';$a8_default='9999'; ?><?php -if (isset($$a8_name)) - $a8_tmp_value = $$a8_name; -elseif ( isset($a8_default) ) - $a8_tmp_value = $a8_default; -else - $a8_tmp_value = ""; -?><input type="hidden" name="<?php echo $a8_name ?>" value="<?php echo $a8_tmp_value ?>" /><?php unset($a8_name,$a8_default) ?></td></tr><?php } ?><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_class='act';$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="act" - colspan="2" -><?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) ?><?php $a7_script='screenwidth';$a7_inline=false; ?><?php -$a7_tmp_file = $tpl_dir.'../../js/'.basename($a7_script).'.js'; -if (!$a7_inline) -{ - ?><script src="<?php echo $a7_tmp_file ?>" type="text/javascript"></script><?php -} -else -{ - echo '<script type="text/javascript">'; - echo str_replace(' ',' ',str_replace('~','',strtr(implode('',file($a7_tmp_file)),"\t\n\b",'~~~'))); - echo '</script>'; -} -?> -<?php unset($a7_script,$a7_inline) ?></td></tr><?php } ?> </table> - </td> - </tr> -</table> -<?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_value=@count($dbids);$a3_lessthan='2'; ?><?php - $a3_tmp_exec = intval($a3_lessthan) > intval($a3_value); - $a3_tmp_last_exec = $a3_tmp_exec; - if ( $a3_tmp_exec ) - { -?> -<?php unset($a3_value,$a3_lessthan) ?><?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 } ?><?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_target='_top';$a2_url=@$conf['login']['gpl']['url'];$a2_class='copyright'; ?><?php - $params = array(); - $tmp_url = ''; - $params[REQ_PARAM_TARGET] = $a2_target; - $tmp_url = $a2_url; -?><a<?php if (isset($a2_name)) echo ' name="'.$a2_name.'"'; else echo ' href="'.$tmp_url.(isset($a2_anchor)?'#'.$a2_anchor:'').'"' ?> 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_target,$a2_url,$a2_class) ?><?php $a3_class='text';$a3_value=lang('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 = $a3_escape?htmlentities($a3_value):$a3_value; - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a3_class,$a3_value,$a3_escape,$a3_cut) ?></a><?php $a2_present='force_username'; ?><?php - $a2_tmp_exec = isset($$a2_present); - $a2_tmp_last_exec = $a2_tmp_exec; - if ( $a2_tmp_exec ) - { -?> -<?php unset($a2_present) ?><?php $a3_field='login_password'; ?><?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) ?><?php } ?><?php if (!$a2_tmp_last_exec) { ?> -<?php $a3_field='login_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) ?><?php } -unset($a1_tmp_last_exec) ?>- \ No newline at end of file diff --git a/themes/default/pages/html/index/password.tpl.php b/themes/default/pages/html/index/password.tpl.php @@ -1,295 +0,0 @@ -<?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(); - 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='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; - $icon=$actionName; - 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>&rarr;</strong>&nbsp;'; - if ( !isset($path) || !is_array($path) ) - $path = array(); - foreach( $path as $pathElement) - { - extract($pathElement); - 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)) - { - ?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?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>--><nix/> - </tr> -<?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 ) - { - $tmp_text = langHtml($menu['text']); - $tmp_key = strtoupper(langHtml($menu['key' ])); - $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); - if ( $tmp_pos !== false ) - $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); - if ( isset($menu['url']) ) - { - ?><a 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"><!-- <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') ?>"><!-- <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; - echo '<br/><br/>'; - echo '<table class="x-main" cellspacing="0" cellpadding="4" width="'.$a3_width.'">'; - ?> -<?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="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++; - $column_idx = 0; -?> -<tr -> -<?php $a5_class='logo';$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="logo" - colspan="2" -><?php unset($a5_class,$a5_colspan) ?><?php $a6_name='password'; ?><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><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_width='50%'; ?><?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($a6_width) ?><?php $a7_class='text';$a7_text='USER_USERNAME';$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_width='50%'; ?><?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($a6_width) ?><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='username';$a7_value='';$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 ?>" 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 { ?><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; -?> -<tr -> -<?php $a6_width='50%'; ?><?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($a6_width) ?><?php $a7_class='text';$a7_text='GLOBAL_DATABASE';$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_width='50%'; ?><?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($a6_width) ?><?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) ?></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_class='act';$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="act" - colspan="2" -><?php unset($a6_class,$a6_colspan) ?><?php $a7_type='ok';$a7_class='ok';$a7_value='ok';$a7_text='button_next'; ?><?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></tr> </table> - </td> - </tr> -</table> -<?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='username'; ?><?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) ?>- \ 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,218 +0,0 @@ -<?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(); - 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_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; - 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>&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 '<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 - } - ?> -</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 - } - ?> - </tr> -<?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 ) - { - $tmp_text = langHtml($menu['text']); - $tmp_key = strtoupper(langHtml($menu['key' ])); - $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); - if ( $tmp_pos !== false ) - $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); - if ( isset($menu['url']) ) - { - ?><a 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 - { - ?><div class="noaction"><?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 - } - ?><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> - <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="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++; - $column_idx = 0; -?> -<tr -> -<?php $a5_class='logo';$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="logo" - colspan="2" -><?php unset($a5_class,$a5_colspan) ?><?php $a6_name='password'; ?><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><?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='mail_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) ?></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='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 ?>" 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 { ?><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; -?> -<tr -> -<?php $a6_class='act';$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="act" - colspan="2" -><?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></tr> </table> - </td> - </tr> -</table> -<?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='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(); -</script> -<?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,308 +0,0 @@ -<?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; - 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>&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 '<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 - } - ?> -</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>--><nix/> - </tr> -<?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 ) - { - $tmp_text = langHtml($menu['text']); - $tmp_key = strtoupper(langHtml($menu['key' ])); - $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); - if ( $tmp_pos !== false ) - $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); - if ( isset($menu['url']) ) - { - ?><a 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"><!-- <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') ?>"><!-- <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; - echo '<br/><br/>'; - echo '<table class="x-main" cellspacing="0" cellpadding="4" width="'.$a2_width.'">'; - ?> -<?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="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++; - $column_idx = 0; -?> -<tr -> -<?php $a4_class='logo';$a4_colspan='2'; ?><?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($a4_class,$a4_colspan) ?><?php $a5_name='projectmenu'; ?><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) ?></td></tr><?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 ) - { - 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 - $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=$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_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 ?>"<?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 - $$a7_var = $a7_value; -?><?php unset($a7_var,$a7_value) ?><?php $a7_align='left';$a7_type='project'; ?><?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_maxlength='30';$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) ?></a></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_action='index';$a6_subaction='project';$a6_id=$id;$a6_name='';$a6_target='_self';$a6_method='post';$a6_enctype='application/x-www-form-urlencoded'; ?><?php - if ($this->isEditable()) - { - if ($this->isEditMode()) - { - $a6_method = 'POST'; - } - else - { - $a6_method = 'GET'; - $a6_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;"> -<?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 - 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_width='100%';$a7_space='0px';$a7_padding='0px';$a7_widths='150px,150px'; ?><?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(); - $column_widths = explode(',',$a7_widths); -?><table class="%class%" cellspacing="0px" width="100%" cellpadding="0px"> -<?php unset($a7_width,$a7_space,$a7_padding,$a7_widths) ?><?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_list='models';$a10_name='modelid';$a10_default=$defaultmodelid;$a10_onchange='';$a10_title='';$a10_class=''; ?><?php $a10_tmp_list = $$a10_list; - if ( isset($$a10_name) && isset($a10_tmp_list[$$a10_name]) ) - $a10_tmp_default = $$a10_name; - elseif ( isset($a10_default) ) - $a10_tmp_default = $a10_default; - else - $a10_tmp_default = ''; - foreach( $a10_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_'.$a10_name.'_'.$box_key; - echo '<input id="'.$id.'" name="'.$a10_name.'" type="radio" class="'.$a10_class.'" value="'.$box_key.'"'; - if ($box_key==$a10_tmp_default) - echo ' checked="checked"'; - echo '>&nbsp;<label for="'.$id.'">'.$box_value.'</label><br>'; - } -?><?php unset($a10_list,$a10_name,$a10_default,$a10_onchange,$a10_title,$a10_class) ?></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 $a10_list='languages';$a10_name='languageid';$a10_default=$defaultlanguageid;$a10_onchange='';$a10_title='';$a10_class=''; ?><?php $a10_tmp_list = $$a10_list; - if ( isset($$a10_name) && isset($a10_tmp_list[$$a10_name]) ) - $a10_tmp_default = $$a10_name; - elseif ( isset($a10_default) ) - $a10_tmp_default = $a10_default; - else - $a10_tmp_default = ''; - foreach( $a10_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_'.$a10_name.'_'.$box_key; - echo '<input id="'.$id.'" name="'.$a10_name.'" type="radio" class="'.$a10_class.'" value="'.$box_key.'"'; - if ($box_key==$a10_tmp_default) - echo ' checked="checked"'; - echo '>&nbsp;<label for="'.$id.'">'.$box_value.'</label><br>'; - } -?><?php unset($a10_list,$a10_name,$a10_default,$a10_onchange,$a10_title,$a10_class) ?></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 $a10_type='ok';$a10_class='ok';$a10_value='ok';$a10_text=lang('start'); ?><?php - if ($this->isEditable() && !$this->isEditMode()) - $a10_text = 'MODE_EDIT'; - $a10_type = 'submit'; - if ( $this->isEditable() && readonly() ) - $a10_type = ''; // Knopf nicht anzeigen - $a10_src = ''; - if ( !empty($a10_type) ) { -?><input type="<?php echo $a10_type ?>"<?php if(isset($a10_src)) { ?> src="<?php echo $image_dir.'icon_'.$a10_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $a10_value ?>" class="ok" title="<?php echo lang($a10_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($a10_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($a10_src) -?><?php } -?><?php unset($a10_type,$a10_class,$a10_value,$a10_text) ?></td></tr><?php - $row_idx = $last_row_idx; - $column_idx = $last_column_idx; -?> -</table></form> -</td></tr><?php } ?> </table> - </td> - </tr> -</table> -<?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 } ?> diff --git a/themes/default/pages/html/index/register.tpl.php b/themes/default/pages/html/index/register.tpl.php @@ -1,215 +0,0 @@ -<?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(); - 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='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; - $icon=$actionName; - 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>&rarr;</strong>&nbsp;'; - if ( !isset($path) || !is_array($path) ) - $path = array(); - foreach( $path as $pathElement) - { - extract($pathElement); - 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)) - { - ?><img src="<?php echo $image_dir.'notice_'.$notice_status.IMG_ICON_EXT ?>" align="right" /><?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>--><nix/> - </tr> -<?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 ) - { - $tmp_text = langHtml($menu['text']); - $tmp_key = strtoupper(langHtml($menu['key' ])); - $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); - if ( $tmp_pos !== false ) - $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); - if ( isset($menu['url']) ) - { - ?><a 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"><!-- <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') ?>"><!-- <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; - echo '<br/><br/>'; - echo '<table class="x-main" cellspacing="0" cellpadding="4" width="'.$a3_width.'">'; - ?> -<?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="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++; - $column_idx = 0; -?> -<tr -> -<?php $a5_class='logo';$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="logo" - colspan="2" -><?php unset($a5_class,$a5_colspan) ?><?php $a6_name='register'; ?><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><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_width='50%'; ?><?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($a6_width) ?><?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 $a6_width='50%'; ?><?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($a6_width) ?><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='mail';$a7_size='25';$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 { ?><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; -?> -<tr -> -<?php $a6_class='act';$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="act" - colspan="2" -><?php unset($a6_class,$a6_colspan) ?><?php $a7_type='ok';$a7_class='ok';$a7_value='ok';$a7_text='button_next'; ?><?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></tr> </table> - </td> - </tr> -</table> -<?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='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(); -</script> -<?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,350 +0,0 @@ -<?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(); - 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='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; - 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>&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 '<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 - } - ?> -</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 - } - ?> - </tr> -<?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 ) - { - $tmp_text = langHtml($menu['text']); - $tmp_key = strtoupper(langHtml($menu['key' ])); - $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); - if ( $tmp_pos !== false ) - $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); - if ( isset($menu['url']) ) - { - ?><a 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 - { - ?><div class="noaction"><?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 - } - ?><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> - <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="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++; - $column_idx = 0; -?> -<tr -> -<?php $a5_class='logo';$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="logo" - colspan="2" -><?php unset($a5_class,$a5_colspan) ?><?php $a6_name='register'; ?><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><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_width='50%'; ?><?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($a6_width) ?><?php $a7_class='text';$a7_text='USER_REGISTER_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) ?></td><?php $a6_width='50%'; ?><?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($a6_width) ?><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='code';$a7_size='25';$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 { ?><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; -?> -<tr -> -<?php $a6_width='50%'; ?><?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($a6_width) ?><?php $a7_class='text';$a7_text='USER_USERNAME';$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_width='50%'; ?><?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($a6_width) ?><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='username';$a7_value='';$a7_size='25';$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 { ?><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; -?> -<tr -> -<?php $a6_width='50%'; ?><?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($a6_width) ?><?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) ?></td><?php $a6_width='50%'; ?><?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($a6_width) ?><?php $a7_name='password';$a7_default='';$a7_class='';$a7_size='25';$a7_maxlength='256'; ?><input type="password" name="<?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) ?></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_width='50%'; ?><?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($a6_width) ?><?php $a7_class='text';$a7_text='GLOBAL_DATABASE';$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_width='50%'; ?><?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($a6_width) ?><?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) ?></td></tr><?php - $row_idx++; - $column_idx = 0; -?> -<tr -> -<?php $a6_class='act';$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="act" - colspan="2" -><?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></tr> </table> - </td> - </tr> -</table> -<?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='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(); -</script> -<?php unset($a2_field) ?>- \ No newline at end of file diff --git a/themes/default/pages/html/index/show.tpl.php b/themes/default/pages/html/index/show.tpl.php @@ -1,79 +0,0 @@ -<?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 $a2_true=@$conf['interface']['application_mode']; ?><?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_var='menuheight';$a3_value='30'; ?><?php - if (isset($a3_key)) - $$a3_var = $a3_value[$a3_key]; - else - $$a3_var = $a3_value; -?><?php unset($a3_var,$a3_value) ?><?php } ?><?php if (!$a2_tmp_last_exec) { ?> -<?php $a3_var='menuheight';$a3_value='60'; ?><?php - if (isset($a3_key)) - $$a3_var = $a3_value[$a3_key]; - else - $$a3_var = $a3_value; -?><?php unset($a3_var,$a3_value) ?><?php } -unset($a1_tmp_last_exec) ?><?php $a2_true=@$conf['interface']['application_mode']; ?><?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_rows='*'; ?><frameset -<?php echo ' rows="'.$a3_rows.'"' ?> - border="0" frameborder="5" framespacing="0" bordercolor="#000000"><?php unset($a3_rows) ?><?php $a4_columns='25%,*'; ?><frameset -<?php echo ' cols="'.$a4_columns.'"' ?> - border="0" frameborder="5" framespacing="0" bordercolor="#000000"><?php unset($a4_columns) ?><?php $a5_rows=''.$menuheight.',*'; ?><frameset -<?php echo ' rows="'.$a5_rows.'"' ?> - border="0" frameborder="5" framespacing="0" bordercolor="#000000"><?php unset($a5_rows) ?><?php $a6_file=$frame_src_tree_title;$a6_name='cms_treemenu'; ?><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) ?><?php $a6_file=$frame_src_tree;$a6_name='cms_tree';$a6_scrolling='auto'; ?><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,$a6_scrolling) ?></frameset> -<?php $a5_file=$frame_src_main;$a5_name='cms_main'; ?><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) ?></frameset> -</frameset> -<?php } ?><?php if (!$a2_tmp_last_exec) { ?> -<?php $a3_rows='23,*'; ?><frameset -<?php echo ' rows="'.$a3_rows.'"' ?> - border="0" frameborder="5" framespacing="0" bordercolor="#000000"><?php unset($a3_rows) ?><?php $a4_file=$frame_src_title;$a4_name='cms_title'; ?><frame src="<?php echo $a4_file ?>" name="<?php echo empty($a4_name)?'':$a4_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($a4_scrolling)?'no':$a4_scrolling ?>"> -<?php unset($a4_file,$a4_name) ?><?php $a4_columns='25%,*'; ?><frameset -<?php echo ' cols="'.$a4_columns.'"' ?> - border="0" frameborder="5" framespacing="0" bordercolor="#000000"><?php unset($a4_columns) ?><?php $a5_rows=''.$menuheight.',*'; ?><frameset -<?php echo ' rows="'.$a5_rows.'"' ?> - border="0" frameborder="5" framespacing="0" bordercolor="#000000"><?php unset($a5_rows) ?><?php $a6_file=$frame_src_tree_title;$a6_name='cms_treemenu'; ?><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) ?><?php $a6_file=$frame_src_tree;$a6_name='cms_tree';$a6_scrolling='auto'; ?><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,$a6_scrolling) ?></frameset> -<?php $a5_file=$frame_src_main;$a5_name='cms_main'; ?><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) ?></frameset> -</frameset> -<?php } -unset($a1_tmp_last_exec) ?></html>- \ 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,104 +0,0 @@ -<?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='LANGUAGE_ISOCODE';$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='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($$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_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,91 +0,0 @@ -<?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='GLOBAL_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='LANGUAGE_ISOCODE';$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='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,120 +0,0 @@ -<?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 } ?> -</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='GLOBAL_LANGUAGE';$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='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($$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_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,321 +0,0 @@ -<?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/language/remove.tpl.php b/themes/default/pages/html/language/remove.tpl.php @@ -1,96 +0,0 @@ -<?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_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='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) ?></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></fieldset></form> diff --git a/themes/default/pages/html/languagelist/show.tpl.php b/themes/default/pages/html/languagelist/show.tpl.php @@ -1,247 +0,0 @@ -<?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='LANGUAGE_ISOCODE';$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_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></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_language';$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_maxlength='25';$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 = 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) ?></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_var='isocode';$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_present='default_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_header=false;$a6_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 $a6_url ?>'); " -><?php unset($a6_header,$a6_url) ?><?php $a7_class='text';$a7_text='GLOBAL_make_default';$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 } ?><?php if (!$a5_tmp_last_exec) { ?> -<?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_text='GLOBAL_is_default';$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 } -unset($a4_tmp_last_exec) ?><?php $a5_present='select_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_header=false;$a6_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 $a6_url ?>'); " -><?php unset($a6_header,$a6_url) ?><?php $a7_class='text';$a7_text='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 - $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 } ?><?php if (!$a5_tmp_last_exec) { ?> -<?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_text='GLOBAL_selected';$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 } -unset($a4_tmp_last_exec) ?></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 } ?><?php - $column_idx = $last_column_idx; -?> -</table>- \ 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,141 +0,0 @@ -<?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_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; - 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_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 - $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_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 ?>" 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><?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; - 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_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 - $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_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()) -{ - echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; -} -else -{ -if ( $a6_addempty!==FALSE ) -{ - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; - else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_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).'"'; -?>><?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; - else - $a6_tmp_default = ''; - foreach( $a6_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( $a6_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - 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($$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) ?></div></div></fieldset></form> diff --git a/themes/default/pages/html/link/info.tpl.php b/themes/default/pages/html/link/info.tpl.php @@ -1,280 +0,0 @@ -<?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,72 +0,0 @@ -<?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'; ?><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 $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='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 ?>" 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><?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_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='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></form> diff --git a/themes/default/pages/html/link/remove.tpl.php b/themes/default/pages/html/link/remove.tpl.php @@ -1,573 +0,0 @@ -<?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:0:"";s:6:"target";s:5:"_self";s:6:"method";s:4:"post";s:7:"enctype";s:33:"application/x-www-form-urlencoded";}' ?><?php $attr2 = array('name'=>'','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr2_name='' ?><?php $attr2_target='_self' ?><?php $attr2_method='post' ?><?php $attr2_enctype='application/x-www-form-urlencoded' ?><?php - if (empty($attr2_action)) - $attr2_action = $actionName; - if (empty($attr2_subaction)) - $attr2_subaction = $targetSubActionName; - if (empty($attr2_id)) - $attr2_id = $this->getRequestId(); -?><form name="<?php echo $attr2_name ?>" - target="<?php echo $attr2_target ?>" - action="<?php echo Html::url( $attr2_action,$attr2_subaction,$attr2_id ) ?>" - method="<?php echo $attr2_method ?>" - enctype="<?php echo $attr2_enctype ?>" style="margin:0px;padding:0px;"> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $attr2_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $attr2_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr2_id ?>" /><?php - if ( $conf['interface']['url_sessionid'] ) - echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($attr2) ?><?php unset($attr2_name) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php $attr3_debug_info = 'a:5:{s:4:"name";s:14:"GLOBAL_PROJECT";s:4:"icon";s:5:"group";s:5:"width";s:3:"93%";s:10:"rowclasses";s:8:"odd,even";s:13:"columnclasses";s:5:"1,2,3";}' ?><?php $attr3 = array('name'=>'GLOBAL_PROJECT','icon'=>'group','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_name='GLOBAL_PROJECT' ?><?php $attr3_icon='group' ?><?php $attr3_width='93%' ?><?php $attr3_rowclasses='odd,even' ?><?php $attr3_columnclasses='1,2,3' ?><?php - $coloumn_widths=array(); - if (!empty($attr3_widths)) - { - $column_widths = explode(',',$attr3_widths); - unset($attr3['widths']); - } - if (!empty($attr3_rowclasses)) - { - $row_classes = explode(',',$attr3_rowclasses); - $row_class_idx = 999; - unset($attr3['rowclasses']); - } - if (!empty($attr3_columnclasses)) - { - $column_classes = explode(',',$attr3_columnclasses); - unset($attr3['columnclasses']); - } - global $image_dir; - if (@$conf['interface']['application_mode'] ) - { - echo '<table class="main" cellspacing="0" cellpadding="4" width="100%" style="margin:0px;border:0px; padding:0px;" height_oo="100%">'; - } - else - { - echo '<br/><br/><br/><center>'; - echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr3_width.'">'; - } - if (!@$conf['interface']['application_mode'] ) - { - echo '<tr><td class="menu">'; - if ( !empty($attr3_icon) ) - echo '<img src="'.$image_dir.'icon_'.$attr3_icon.IMG_ICON_EXT.'" align="left" border="0">'; - 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> - <?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_'.lang($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a>&nbsp;<?php - } - ?> - </td>--> - </tr> - <tr><td class="subaction"> - <?php if ( !isset($windowMenu) || !is_array($windowMenu) ) - $windowMenu = array(); - foreach( $windowMenu as $menu ) - { - $tmp_text = lang($menu['text']); - $tmp_key = strtoupper(lang($menu['key' ])); - $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); - if ( $tmp_pos !== false ) - $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); - if ( isset($menu['url']) ) - { - ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php echo $this->subActionName==$menu['subaction']?'_highlight':'' ?>"><?php echo $tmp_text ?></a>&nbsp;&nbsp;&nbsp;<?php - } - else - { - ?><span class="menu_disabled" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu_disabled"><?php echo $tmp_text ?></span>&nbsp;&nbsp;&nbsp;<?php - } - } - if (@$conf['help']['enabled'] ) - { - ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('MENU_HELP_DESC') ?>" class="menu" style="cursor:help;"><?php echo @$conf['help']['only_question_mark']?'?':lang('MENU_HELP') ?></a><?php - } - ?></td> - </tr> -<?php if (isset($notices) && count($notices)>0 ) - { ?> - <tr> - <td align="center" style="margin-top:10px; margin-bottom:10px;padding:5px; text-align:center;"> - <?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> -<?php } ?> - <tr class="notice_<?php echo $notice['status'] ?>"> - <td style="padding:10px;" width="30px"><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> - <td style="padding:10px;padding-right:10px;padding-bottom:10px;"><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?> - <?php if (!empty($notice['log'])) { ?><pre><?php echo htmlentities(implode("\n",$notice['log'])) ?></pre><?php } ?> - </td> - </tr> - </table> - <?php } ?> - </td> - </tr> - <tr> - <td colspan="2"><fieldset></fieldset></td> - </tr> -<?php } ?> - <tr> - <td> - <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr3) ?><?php unset($attr3_name) ?><?php unset($attr3_icon) ?><?php unset($attr3_width) ?><?php unset($attr3_rowclasses) ?><?php unset($attr3_columnclasses) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php - $row_class_idx++; - if ($row_class_idx > count($row_classes)) - $row_class_idx=1; - $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr4_class)) - $attr4_class=$row_class; - global $cell_column_nr; - $cell_column_nr=0; - $column_class_idx = 999; -?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr5_class)) - $attr5['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) - $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:11:"GLOBAL_NAME";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_NAME','escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_NAME' ?><?php $attr6_escape=true ?><?php - if ( isset($attr6_prefix)&& isset($attr6_key)) - $attr6_key = $attr6_prefix.$attr6_key; - if ( isset($attr6_suffix)&& isset($attr6_key)) - $attr6_key = $attr6_key.$attr6_suffix; - if(empty($attr6_title)) - if (!empty($attr6_key)) - $attr6_title = lang($attr6_key.'_HELP'); - else - $attr6_title = ''; - if (empty($attr6_type)) - $tmp_tag = 'span'; - else - switch( $attr6_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php - $attr6_title = ''; - if (!empty($attr6_array)) - { - $tmpArray = $$attr6_array; - if (!empty($attr6_var)) - $tmp_text = $tmpArray[$attr6_var]; - else - $tmp_text = lang($tmpArray[$attr6_text]); - } - elseif (!empty($attr6_text)) - if ( isset($$attr6_text)) - $tmp_text = lang($$attr6_text); - else - $tmp_text = lang($attr6_text); - elseif (!empty($attr6_textvar)) - $tmp_text = lang($$attr6_textvar); - elseif (!empty($attr6_key)) - $tmp_text = lang($attr6_key); - elseif (!empty($attr6_var)) - $tmp_text = isset($$attr6_var)?$$attr6_var:'?'.$attr6_var.'?'; - elseif (!empty($attr6_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr6_raw); - elseif (!empty($attr6_value)) - $tmp_text = $attr6_value; - else - $tmp_text = '&nbsp;'; - if ( $attr6_escape && empty($attr6_raw) && $tmp_text!='&nbsp;' ) - $tmp_text = htmlentities($tmp_text); - if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); - if (isset($attr6_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr6_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php unset($attr6_escape) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5_debug_info = 'a:1:{s:5:"class";s:2:"fx";}' ?><?php $attr5 = array('class'=>'fx') ?><?php $attr5_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($attr5_class)) - $attr5['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) - $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:4:"name";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','var'=>'name','escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_var='name' ?><?php $attr6_escape=true ?><?php - if ( isset($attr6_prefix)&& isset($attr6_key)) - $attr6_key = $attr6_prefix.$attr6_key; - if ( isset($attr6_suffix)&& isset($attr6_key)) - $attr6_key = $attr6_key.$attr6_suffix; - if(empty($attr6_title)) - if (!empty($attr6_key)) - $attr6_title = lang($attr6_key.'_HELP'); - else - $attr6_title = ''; - if (empty($attr6_type)) - $tmp_tag = 'span'; - else - switch( $attr6_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php - $attr6_title = ''; - if (!empty($attr6_array)) - { - $tmpArray = $$attr6_array; - if (!empty($attr6_var)) - $tmp_text = $tmpArray[$attr6_var]; - else - $tmp_text = lang($tmpArray[$attr6_text]); - } - elseif (!empty($attr6_text)) - if ( isset($$attr6_text)) - $tmp_text = lang($$attr6_text); - else - $tmp_text = lang($attr6_text); - elseif (!empty($attr6_textvar)) - $tmp_text = lang($$attr6_textvar); - elseif (!empty($attr6_key)) - $tmp_text = lang($attr6_key); - elseif (!empty($attr6_var)) - $tmp_text = isset($$attr6_var)?$$attr6_var:'?'.$attr6_var.'?'; - elseif (!empty($attr6_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr6_raw); - elseif (!empty($attr6_value)) - $tmp_text = $attr6_value; - else - $tmp_text = '&nbsp;'; - if ( $attr6_escape && empty($attr6_raw) && $tmp_text!='&nbsp;' ) - $tmp_text = htmlentities($tmp_text); - if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); - if (isset($attr6_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr6_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_var) ?><?php unset($attr6_escape) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php - $row_class_idx++; - if ($row_class_idx > count($row_classes)) - $row_class_idx=1; - $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr4_class)) - $attr4_class=$row_class; - global $cell_column_nr; - $cell_column_nr=0; - $column_class_idx = 999; -?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr5_class)) - $attr5['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) - $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:13:"GLOBAL_DELETE";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_DELETE','escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_DELETE' ?><?php $attr6_escape=true ?><?php - if ( isset($attr6_prefix)&& isset($attr6_key)) - $attr6_key = $attr6_prefix.$attr6_key; - if ( isset($attr6_suffix)&& isset($attr6_key)) - $attr6_key = $attr6_key.$attr6_suffix; - if(empty($attr6_title)) - if (!empty($attr6_key)) - $attr6_title = lang($attr6_key.'_HELP'); - else - $attr6_title = ''; - if (empty($attr6_type)) - $tmp_tag = 'span'; - else - switch( $attr6_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php - $attr6_title = ''; - if (!empty($attr6_array)) - { - $tmpArray = $$attr6_array; - if (!empty($attr6_var)) - $tmp_text = $tmpArray[$attr6_var]; - else - $tmp_text = lang($tmpArray[$attr6_text]); - } - elseif (!empty($attr6_text)) - if ( isset($$attr6_text)) - $tmp_text = lang($$attr6_text); - else - $tmp_text = lang($attr6_text); - elseif (!empty($attr6_textvar)) - $tmp_text = lang($$attr6_textvar); - elseif (!empty($attr6_key)) - $tmp_text = lang($attr6_key); - elseif (!empty($attr6_var)) - $tmp_text = isset($$attr6_var)?$$attr6_var:'?'.$attr6_var.'?'; - elseif (!empty($attr6_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr6_raw); - elseif (!empty($attr6_value)) - $tmp_text = $attr6_value; - else - $tmp_text = '&nbsp;'; - if ( $attr6_escape && empty($attr6_raw) && $tmp_text!='&nbsp;' ) - $tmp_text = htmlentities($tmp_text); - if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); - if (isset($attr6_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr6_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php unset($attr6_escape) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr5_class)) - $attr5['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) - $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6_debug_info = 'a:3:{s:7:"default";s:5:"false";s:8:"readonly";s:5:"false";s:4:"name";s:6:"delete";}' ?><?php $attr6 = array('default'=>false,'readonly'=>false,'name'=>'delete') ?><?php $attr6_default=false ?><?php $attr6_readonly=false ?><?php $attr6_name='delete' ?><?php - if ( isset($$attr6_name) ) - $checked = $$attr6_name; - else - $checked = $attr6_default; -?><input type="checkbox" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" <?php if ($attr6_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?><?php if (in_array($attr6_name,$errors)) echo ' style="background-color:red;"' ?> /><?php -if ( $attr6_readonly && $checked ) -{ -?><input type="hidden" name="<?php echo $attr6_name ?>" value="1" /><?php -} -?><?php unset($attr6_name); unset($attr6_readonly); unset($attr6_default); ?><?php unset($attr6) ?><?php unset($attr6_default) ?><?php unset($attr6_readonly) ?><?php unset($attr6_name) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php - $row_class_idx++; - if ($row_class_idx > count($row_classes)) - $row_class_idx=1; - $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr4_class)) - $attr4_class=$row_class; - global $cell_column_nr; - $cell_column_nr=0; - $column_class_idx = 999; -?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5_debug_info = 'a:2:{s:5:"class";s:4:"help";s:7:"colspan";s:1:"2";}' ?><?php $attr5 = array('class'=>'help','colspan'=>'2') ?><?php $attr5_class='help' ?><?php $attr5_colspan='2' ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr5_class)) - $attr5['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) - $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_colspan) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:17:"GROUP_DELETE_DESC";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','text'=>'GROUP_DELETE_DESC','escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_text='GROUP_DELETE_DESC' ?><?php $attr6_escape=true ?><?php - if ( isset($attr6_prefix)&& isset($attr6_key)) - $attr6_key = $attr6_prefix.$attr6_key; - if ( isset($attr6_suffix)&& isset($attr6_key)) - $attr6_key = $attr6_key.$attr6_suffix; - if(empty($attr6_title)) - if (!empty($attr6_key)) - $attr6_title = lang($attr6_key.'_HELP'); - else - $attr6_title = ''; - if (empty($attr6_type)) - $tmp_tag = 'span'; - else - switch( $attr6_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php - $attr6_title = ''; - if (!empty($attr6_array)) - { - $tmpArray = $$attr6_array; - if (!empty($attr6_var)) - $tmp_text = $tmpArray[$attr6_var]; - else - $tmp_text = lang($tmpArray[$attr6_text]); - } - elseif (!empty($attr6_text)) - if ( isset($$attr6_text)) - $tmp_text = lang($$attr6_text); - else - $tmp_text = lang($attr6_text); - elseif (!empty($attr6_textvar)) - $tmp_text = lang($$attr6_textvar); - elseif (!empty($attr6_key)) - $tmp_text = lang($attr6_key); - elseif (!empty($attr6_var)) - $tmp_text = isset($$attr6_var)?$$attr6_var:'?'.$attr6_var.'?'; - elseif (!empty($attr6_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr6_raw); - elseif (!empty($attr6_value)) - $tmp_text = $attr6_value; - else - $tmp_text = '&nbsp;'; - if ( $attr6_escape && empty($attr6_raw) && $tmp_text!='&nbsp;' ) - $tmp_text = htmlentities($tmp_text); - if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); - if (isset($attr6_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr6_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php unset($attr6_escape) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php - $row_class_idx++; - if ($row_class_idx > count($row_classes)) - $row_class_idx=1; - $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr4_class)) - $attr4_class=$row_class; - global $cell_column_nr; - $cell_column_nr=0; - $column_class_idx = 999; -?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5_debug_info = 'a:1:{s:7:"colspan";s:1:"2";}' ?><?php $attr5 = array('colspan'=>'2') ?><?php $attr5_colspan='2' ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr5_class)) - $attr5['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) - $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_colspan) ?><?php $attr6_debug_info = 'a:4:{s:4:"type";s:2:"ok";s:5:"class";s:2:"ok";s:5:"value";s:2:"ok";s:4:"text";s:9:"button_ok";}' ?><?php $attr6 = array('type'=>'ok','class'=>'ok','value'=>'ok','text'=>'button_ok') ?><?php $attr6_type='ok' ?><?php $attr6_class='ok' ?><?php $attr6_value='ok' ?><?php $attr6_text='button_ok' ?><?php - if ($attr6_type=='ok') - $attr6_type = 'submit'; - if (isset($attr6_src)) - $attr6_type = 'image'; - else - $attr6_src = ''; -?><input type="<?php echo $attr6_type ?>"<?php if(isset($attr6_src)) { ?> src="<?php echo $image_dir.'icon_'.$attr6_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $attr6_value ?>" class="<?php echo $attr6_class ?>" title="<?php echo lang($attr6_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr6_src) ?><?php unset($attr6) ?><?php unset($attr6_type) ?><?php unset($attr6_class) ?><?php unset($attr6_value) ?><?php unset($attr6_text) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2_debug_info = 'a:0:{}' ?><?php $attr2 = array() ?> </table> - </td> - </tr> -</table> -</center> -<?php if ($showDuration) - { ?> -<br/> -<center><small>&nbsp; -<?php $dur = time()-START_TIME; - echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> -<?php } ?> -<?php unset($attr2) ?><?php $attr1_debug_info = 'a:0:{}' ?><?php $attr1 = array() ?></form> -<?php unset($attr1) ?><?php $attr2_debug_info = 'a:1:{s:5:"field";s:6:"delete";}' ?><?php $attr2 = array('field'=>'delete') ?><?php $attr2_field='delete' ?><?php -if (isset($errors[0])) $attr2_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $attr2_field ?>.focus(); -document.forms[0].<?php echo $attr2_field ?>.select(); -</script> -<?php unset($attr2) ?><?php unset($attr2_field) ?><?php $attr0_debug_info = 'a:0:{}' ?><?php $attr0 = array() ?></body> -</html><?php unset($attr0) ?>- \ No newline at end of file diff --git a/themes/default/pages/html/link/showprop.tpl.php b/themes/default/pages/html/link/showprop.tpl.php @@ -1,1238 +0,0 @@ -<?php $attr1_class='main'; ?><?php - if (!headers_sent()) header('Content-Type: text/html; charset='.$charset) -?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<html> -<head> - <title><?php echo isset($attr1_title)?$attr1_title.' - ':(isset($windowTitle)?lang($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" /> - <meta name="MSSmartTagsPreventParsing" content="true" /> - <meta name="robots" content="noindex,nofollow" /> -<?php if (isset($windowMenu) && is_array($windowMenu)) foreach( $windowMenu as $menu ) - { - ?> - <link rel="section" href="<?php echo Html::url($actionName,@$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" /> -<?php - } -?><?php if (isset($metaList) && is_array($metaList)) foreach( $metaList as $meta ) - { - ?> - <link rel="<?php echo $meta['name'] ?>" href="<?php echo $meta['url'] ?>" title="<?php echo lang($meta['title']) ?>" /><?php - } -?><?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_class); ?><?php $attr2_icon='link'; $attr2_widths='40%,60%'; $attr2_width='70%'; $attr2_rowclasses='odd,even'; $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">'; - echo '<img src="'.$image_dir.'icon_'.$actionName.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 } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } - ?><?php } - echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; - if ( !isset($path) || is_array($path) ) - $path = array(); - foreach( $path as $pathElement) - { - extract($pathElement); - echo '<a href="'.$url.'" class="path">'.langHtml($name).'</a>'; - echo '&nbsp;&raquo;&nbsp;'; - } - echo '<span class="title">'.langHtml($windowTitle).'</span>'; - ?> - </td> - <?php - } - ?> -<?php ?> <!--<td class="menu" style="align:right;"> - <?php if (isset($windowIcons)) foreach( $windowIcons as $icon ) - { - ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.langHtml($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a>&nbsp;<?php - } - ?> - </td>--> - </tr> - <tr><td class="subaction"> - <?php if ( !isset($windowMenu) || !is_array($windowMenu) ) - $windowMenu = array(); - foreach( $windowMenu as $menu ) - { - $tmp_text = langHtml($menu['text']); - $tmp_key = strtoupper(langHtml($menu['key' ])); - $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); - if ( $tmp_pos !== false ) - $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); - if ( isset($menu['url']) ) - { - ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu<?php echo $this->subActionName==$menu['subaction']?'_highlight':'' ?>"><?php echo $tmp_text ?></a>&nbsp;&nbsp;&nbsp;<?php - } - else - { - ?><span class="menu_disabled" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu_disabled"><?php echo $tmp_text ?></span>&nbsp;&nbsp;&nbsp;<?php - } - } - if (@$conf['help']['enabled'] ) - { - ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>" class="menu" style="cursor:help;"><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php - } - ?></td> - </tr> -<?php if (isset($notices) && count($notices)>0 ) - { ?> - <tr> - <td align="center" class="notice"> - <?php foreach( $notices as $notice_idx=>$notice ) { ?> - <br><table class="notice" width="80%"> - <?php if ($notice['name']!='') { ?> - <tr> - <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> - <table cellspacing="0" width="100%" cellpadding="4"> -<?php unset($attr2_icon);unset($attr2_widths);unset($attr2_width);unset($attr2_rowclasses);unset($attr2_columnclasses); ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text='GLOBAL_name'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php $attr4_class='name'; ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php unset($attr4_class); ?><?php $attr5_class='text'; $attr5_var='name'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_var);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text='GLOBAL_description'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_var='description'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_var);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php $attr4_colspan='2'; ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php unset($attr4_colspan); ?><?php $attr5_title=lang('additional_info'); ?><fieldset><?php if(isset($attr5_title)) { ?><legend><?php echo encodeHtml($attr5_title) ?></legend><?php } ?><?php unset($attr5_title); ?><?php ?></fieldset><?php ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_key='id'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_key);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_var='objectid'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_var);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php $attr4_colspan='2'; ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php unset($attr4_colspan); ?><?php $attr5_title=lang('prop_userinfo'); ?><fieldset><?php if(isset($attr5_title)) { ?><legend><?php echo encodeHtml($attr5_title) ?></legend><?php } ?><?php unset($attr5_title); ?><?php ?></fieldset><?php ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text='global_created'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_width='100%'; $attr5_space='0px'; $attr5_padding='0px'; ?><?php - $coloumn_widths=array(); - $row_classes = array(''); - $column_classes= array(''); - if(empty($attr5_class)) - $attr5_class=''; - if (!empty($attr5_widths)) - { - $column_widths = explode(',',$attr5_widths); - unset($attr5['widths']); - } - if (!empty($attr5_classes)) - { - $row_classes = explode(',',$attr5_rowclasses); - $row_class_idx = 999; - unset($attr5['rowclasses']); - } - if (!empty($attr5_rowclasses)) - { - $row_classes = explode(',',$attr5_rowclasses); - $row_class_idx = 999; - unset($attr5['rowclasses']); - } - if (!empty($attr5_columnclasses)) - { - $column_classes = explode(',',$attr5_columnclasses); - unset($attr5['columnclasses']); - } -?><table class="<?php echo $attr5_class ?>" cellspacing="<?php echo $attr5_space ?>" width="<?php echo $attr5_width ?>" cellpadding="<?php echo $attr5_padding ?>"><?php unset($attr5_width);unset($attr5_space);unset($attr5_padding); ?><?php ?><?php - $attr6_tmp_class=''; - $attr6_last_class = $attr6_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr6_tmp_class)); -?><?php ?><?php ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr7_class)) - $attr7_class=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) - $attr7_width=$column_widths[$cell_column_nr-1]; -?><td<?php -if ( isset($attr7_width )) { ?> width="<?php echo $attr7_width ?>" <?php } -if ( isset($attr7_style )) { ?> style="<?php echo $attr7_style ?>" <?php } -if ( isset($attr7_class )) { ?> class="<?php echo $attr7_class ?>" <?php } -if ( isset($attr7_colspan)) { ?> colspan="<?php echo $attr7_colspan ?>" <?php } -if ( isset($attr7_rowspan)) { ?> rowspan="<?php echo $attr7_rowspan ?>" <?php } -?>><?php ?><?php $attr8_icon='el_date'; $attr8_align='left'; ?><?php - $attr8_tmp_image_file = $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT; - $attr8_size = '16x16'; -?><img src="<?php echo $attr8_tmp_image_file ?>" border="0"<?php if(isset($attr8_align)) echo ' align="'.$attr8_align.'"' ?><?php if (isset($attr8_size)) { list($attr8_tmp_width,$attr8_tmp_height)=explode('x',$attr8_size);echo ' width="'.$attr8_tmp_width.'" height="'.$attr8_tmp_height.'"';} ?>><?php unset($attr8_icon);unset($attr8_align); ?><?php $attr8_date=$create_date; ?><?php - global $conf; - $time = $attr8_date; - if ( $time==0) - echo lang('GLOBAL_UNKNOWN'); - elseif ( !$conf['interface']['human_date_format'] ) - { - echo '<span title="'; - $dl = date(lang('DATE_FORMAT_LONG'),$time); - $dl = str_replace('{weekday}',lang('DATE_WEEKDAY'.strval(date('w',$time))),$dl); - $dl = str_replace('{month}' ,lang('DATE_MONTH' .strval(date('n',$time))),$dl); - echo $dl; - unset($dl); - echo '">'; - echo date(lang('DATE_FORMAT'),$time); - echo '</span>'; - } - else - { - $sekunden = time()-$time; - $minuten = intval($sekunden/60); - $stunden = intval($minuten /60); - $tage = intval($stunden /24); - $monate = intval($tage /30); - $jahre = intval($monate /12); - echo '<span title="'.date(lang('DATE_FORMAT'),$time).'"">'; - if ( $time==0) - echo lang('GLOBAL_UNKNOWN'); - elseif ( !$conf['interface']['human_date_format'] ) - echo date(lang('DATE_FORMAT'),$time); - elseif ( $sekunden == 1 ) - echo $sekunden.' '.lang('GLOBAL_SECOND'); - elseif ( $sekunden < 60 ) - echo $sekunden.' '.lang('GLOBAL_SECONDS'); - elseif ( $minuten == 1 ) - echo $minuten.' '.lang('GLOBAL_MINUTE'); - elseif ( $minuten < 60 ) - echo $minuten.' '.lang('GLOBAL_MINUTES'); - elseif ( $stunden == 1 ) - echo $stunden.' '.lang('GLOBAL_HOUR'); - elseif ( $stunden < 60 ) - echo $stunden.' '.lang('GLOBAL_HOURS'); - elseif ( $tage == 1 ) - echo $tage.' '.lang('GLOBAL_DAY'); - elseif ( $tage < 60 ) - echo $tage.' '.lang('GLOBAL_DAYS'); - elseif ( $monate == 1 ) - echo $monate.' '.lang('GLOBAL_MONTH'); - elseif ( $monate < 12 ) - echo $monate.' '.lang('GLOBAL_MONTHS'); - elseif ( $jahre == 1 ) - echo $jahre.' '.lang('GLOBAL_YEAR'); - else - echo $jahre.' '.lang('GLOBAL_YEARS'); - echo '</span>'; - } -?><?php unset($attr8_date); ?><?php ?></td><?php ?><?php ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr7_class)) - $attr7_class=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) - $attr7_width=$column_widths[$cell_column_nr-1]; -?><td<?php -if ( isset($attr7_width )) { ?> width="<?php echo $attr7_width ?>" <?php } -if ( isset($attr7_style )) { ?> style="<?php echo $attr7_style ?>" <?php } -if ( isset($attr7_class )) { ?> class="<?php echo $attr7_class ?>" <?php } -if ( isset($attr7_colspan)) { ?> colspan="<?php echo $attr7_colspan ?>" <?php } -if ( isset($attr7_rowspan)) { ?> rowspan="<?php echo $attr7_rowspan ?>" <?php } -?>><?php ?><?php $attr8_icon='user'; $attr8_align='left'; ?><?php - $attr8_tmp_image_file = $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT; - $attr8_size = '16x16'; -?><img src="<?php echo $attr8_tmp_image_file ?>" border="0"<?php if(isset($attr8_align)) echo ' align="'.$attr8_align.'"' ?><?php if (isset($attr8_size)) { list($attr8_tmp_width,$attr8_tmp_height)=explode('x',$attr8_size);echo ' width="'.$attr8_tmp_width.'" height="'.$attr8_tmp_height.'"';} ?>><?php unset($attr8_icon);unset($attr8_align); ?><?php $attr8_user=$create_user; ?><?php - if ( is_object($attr8_user) ) - $user = $attr8_user; - else - $user = $$attr8_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($attr8_user); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?></table><?php ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text='global_lastchange'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_width='100%'; $attr5_space='0px'; $attr5_padding='0px'; ?><?php - $coloumn_widths=array(); - $row_classes = array(''); - $column_classes= array(''); - if(empty($attr5_class)) - $attr5_class=''; - if (!empty($attr5_widths)) - { - $column_widths = explode(',',$attr5_widths); - unset($attr5['widths']); - } - if (!empty($attr5_classes)) - { - $row_classes = explode(',',$attr5_rowclasses); - $row_class_idx = 999; - unset($attr5['rowclasses']); - } - if (!empty($attr5_rowclasses)) - { - $row_classes = explode(',',$attr5_rowclasses); - $row_class_idx = 999; - unset($attr5['rowclasses']); - } - if (!empty($attr5_columnclasses)) - { - $column_classes = explode(',',$attr5_columnclasses); - unset($attr5['columnclasses']); - } -?><table class="<?php echo $attr5_class ?>" cellspacing="<?php echo $attr5_space ?>" width="<?php echo $attr5_width ?>" cellpadding="<?php echo $attr5_padding ?>"><?php unset($attr5_width);unset($attr5_space);unset($attr5_padding); ?><?php ?><?php - $attr6_tmp_class=''; - $attr6_last_class = $attr6_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr6_tmp_class)); -?><?php ?><?php ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr7_class)) - $attr7_class=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) - $attr7_width=$column_widths[$cell_column_nr-1]; -?><td<?php -if ( isset($attr7_width )) { ?> width="<?php echo $attr7_width ?>" <?php } -if ( isset($attr7_style )) { ?> style="<?php echo $attr7_style ?>" <?php } -if ( isset($attr7_class )) { ?> class="<?php echo $attr7_class ?>" <?php } -if ( isset($attr7_colspan)) { ?> colspan="<?php echo $attr7_colspan ?>" <?php } -if ( isset($attr7_rowspan)) { ?> rowspan="<?php echo $attr7_rowspan ?>" <?php } -?>><?php ?><?php $attr8_icon='el_date'; $attr8_align='left'; ?><?php - $attr8_tmp_image_file = $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT; - $attr8_size = '16x16'; -?><img src="<?php echo $attr8_tmp_image_file ?>" border="0"<?php if(isset($attr8_align)) echo ' align="'.$attr8_align.'"' ?><?php if (isset($attr8_size)) { list($attr8_tmp_width,$attr8_tmp_height)=explode('x',$attr8_size);echo ' width="'.$attr8_tmp_width.'" height="'.$attr8_tmp_height.'"';} ?>><?php unset($attr8_icon);unset($attr8_align); ?><?php $attr8_date=$lastchange_date; ?><?php - global $conf; - $time = $attr8_date; - if ( $time==0) - echo lang('GLOBAL_UNKNOWN'); - elseif ( !$conf['interface']['human_date_format'] ) - { - echo '<span title="'; - $dl = date(lang('DATE_FORMAT_LONG'),$time); - $dl = str_replace('{weekday}',lang('DATE_WEEKDAY'.strval(date('w',$time))),$dl); - $dl = str_replace('{month}' ,lang('DATE_MONTH' .strval(date('n',$time))),$dl); - echo $dl; - unset($dl); - echo '">'; - echo date(lang('DATE_FORMAT'),$time); - echo '</span>'; - } - else - { - $sekunden = time()-$time; - $minuten = intval($sekunden/60); - $stunden = intval($minuten /60); - $tage = intval($stunden /24); - $monate = intval($tage /30); - $jahre = intval($monate /12); - echo '<span title="'.date(lang('DATE_FORMAT'),$time).'"">'; - if ( $time==0) - echo lang('GLOBAL_UNKNOWN'); - elseif ( !$conf['interface']['human_date_format'] ) - echo date(lang('DATE_FORMAT'),$time); - elseif ( $sekunden == 1 ) - echo $sekunden.' '.lang('GLOBAL_SECOND'); - elseif ( $sekunden < 60 ) - echo $sekunden.' '.lang('GLOBAL_SECONDS'); - elseif ( $minuten == 1 ) - echo $minuten.' '.lang('GLOBAL_MINUTE'); - elseif ( $minuten < 60 ) - echo $minuten.' '.lang('GLOBAL_MINUTES'); - elseif ( $stunden == 1 ) - echo $stunden.' '.lang('GLOBAL_HOUR'); - elseif ( $stunden < 60 ) - echo $stunden.' '.lang('GLOBAL_HOURS'); - elseif ( $tage == 1 ) - echo $tage.' '.lang('GLOBAL_DAY'); - elseif ( $tage < 60 ) - echo $tage.' '.lang('GLOBAL_DAYS'); - elseif ( $monate == 1 ) - echo $monate.' '.lang('GLOBAL_MONTH'); - elseif ( $monate < 12 ) - echo $monate.' '.lang('GLOBAL_MONTHS'); - elseif ( $jahre == 1 ) - echo $jahre.' '.lang('GLOBAL_YEAR'); - else - echo $jahre.' '.lang('GLOBAL_YEARS'); - echo '</span>'; - } -?><?php unset($attr8_date); ?><?php ?></td><?php ?><?php ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr7_class)) - $attr7_class=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) - $attr7_width=$column_widths[$cell_column_nr-1]; -?><td<?php -if ( isset($attr7_width )) { ?> width="<?php echo $attr7_width ?>" <?php } -if ( isset($attr7_style )) { ?> style="<?php echo $attr7_style ?>" <?php } -if ( isset($attr7_class )) { ?> class="<?php echo $attr7_class ?>" <?php } -if ( isset($attr7_colspan)) { ?> colspan="<?php echo $attr7_colspan ?>" <?php } -if ( isset($attr7_rowspan)) { ?> rowspan="<?php echo $attr7_rowspan ?>" <?php } -?>><?php ?><?php $attr8_icon='user'; $attr8_align='left'; ?><?php - $attr8_tmp_image_file = $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT; - $attr8_size = '16x16'; -?><img src="<?php echo $attr8_tmp_image_file ?>" border="0"<?php if(isset($attr8_align)) echo ' align="'.$attr8_align.'"' ?><?php if (isset($attr8_size)) { list($attr8_tmp_width,$attr8_tmp_height)=explode('x',$attr8_size);echo ' width="'.$attr8_tmp_width.'" height="'.$attr8_tmp_height.'"';} ?>><?php unset($attr8_icon);unset($attr8_align); ?><?php $attr8_user=$lastchange_user; ?><?php - if ( is_object($attr8_user) ) - $user = $attr8_user; - else - $user = $$attr8_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($attr8_user); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?></table><?php ?><?php ?></td><?php ?><?php ?></tr><?php ?><?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 } ?> -<?php ?><?php ?></body> -</html><?php ?>- \ No newline at end of file diff --git a/themes/default/pages/html/login/changepassword.tpl.php b/themes/default/pages/html/login/changepassword.tpl.php @@ -1,262 +0,0 @@ -<?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 @@ -1,119 +0,0 @@ -<?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 @@ -1,518 +0,0 @@ -<?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 @@ -1,284 +0,0 @@ -<?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 @@ -1,137 +0,0 @@ -<?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 @@ -1,226 +0,0 @@ -<?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 @@ -1,58 +0,0 @@ -<?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 @@ -1,147 +0,0 @@ -<?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 @@ -1,79 +0,0 @@ -<?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,74 +0,0 @@ -<?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_key='global_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) ?></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,74 +0,0 @@ -<?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 } ?> -</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='GLOBAL_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></form> diff --git a/themes/default/pages/html/model/listing.tpl.php b/themes/default/pages/html/model/listing.tpl.php @@ -1,317 +0,0 @@ -<?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/model/remove.tpl.php b/themes/default/pages/html/model/remove.tpl.php @@ -1,96 +0,0 @@ -<?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_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></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></fieldset></form> diff --git a/themes/default/pages/html/modellist/add.tpl.php b/themes/default/pages/html/modellist/add.tpl.php @@ -1,74 +0,0 @@ -<?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_key='global_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) ?></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/modellist/show.tpl.php b/themes/default/pages/html/modellist/show.tpl.php @@ -1,243 +0,0 @@ -<?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_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_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></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_title='';$a6_type='';$a6_target='cms_main';$a6_class='';$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_frame) ?><?php $a7_file='icon_model';$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_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) ?></a></td><?php $a5_present='default_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_header=false;$a6_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 $a6_url ?>'); " -><?php unset($a6_header,$a6_url) ?><?php $a7_class='text';$a7_text='GLOBAL_make_default';$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 } ?><?php if (!$a5_tmp_last_exec) { ?> -<?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_text='GLOBAL_is_default';$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 } -unset($a4_tmp_last_exec) ?><?php $a5_present='select_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_header=false;$a6_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 $a6_url ?>'); " -><?php unset($a6_header,$a6_url) ?><?php $a7_class='text';$a7_text='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 - $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 } ?><?php if (!$a5_tmp_last_exec) { ?> -<?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_text='GLOBAL_selected';$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 } -unset($a4_tmp_last_exec) ?></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 } ?><?php - $column_idx = $last_column_idx; -?> -</table>- \ 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,362 +0,0 @@ -<?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_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; - 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';$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 - $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></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; - 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';$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 - $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_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()) -{ - echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; -} -else -{ -if ( $a6_addempty!==FALSE ) -{ - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; - else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_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).'"'; -?>><?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; - else - $a6_tmp_default = ''; - foreach( $a6_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( $a6_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - 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($$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) ?></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 $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; - 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='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 - $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_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()) -{ - 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 } ?></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 - $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_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()) -{ - echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; -} -else -{ -if ( $a6_addempty!==FALSE ) -{ - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; - else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_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).'"'; -?>><?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; - else - $a6_tmp_default = ''; - foreach( $a6_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( $a6_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - 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($$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) ?></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 ( $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) ?><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($a8_equals,$a8_value) ?><?php $a9_var=$t;$a9_value=true; ?><?php - if (isset($a9_key)) - $$a9_var = $a9_value[$a9_key]; - else - $$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 = $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 $a9_name ?>" value="1" /><?php -} -?><?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 - $$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 = $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 $a9_name ?>" value="1" /><?php -} -?><?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 $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></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,377 +0,0 @@ -<?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($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 } ?> -</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 } ?> -</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($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,$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 $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_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,$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 $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_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 ( $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='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,$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 $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_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($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 - $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_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 - $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 } ?><?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 ) - { -?> -<?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($$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_present='username'; ?><?php - $a6_tmp_exec = isset($$a6_present); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) - { -?> -<?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 $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 } ?><?php $a6_present='groupname'; ?><?php - $a6_tmp_exec = isset($$a6_present); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) - { -?> -<?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 $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 } ?><?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_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 $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) ?><?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 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 $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_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 ( $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_header=false; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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_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 = $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) ?></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 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 = ''; - $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_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 $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 diff --git a/themes/default/pages/html/page/changetemplate.tpl.php b/themes/default/pages/html/page/changetemplate.tpl.php @@ -1,154 +0,0 @@ -<?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='page_template_old';$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_title='';$a5_type='';$a5_target='cms_main';$a5_url=$template_url;$a5_class='';$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_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 $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></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 $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='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($$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_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,123 +0,0 @@ -<?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_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 ( $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='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 $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><?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($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; -} -else -{ -if ( $a6_addempty!==FALSE ) -{ - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; - else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_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).'"'; -?>><?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; - else - $a6_tmp_default = ''; - foreach( $a6_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( $a6_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - 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($$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) ?></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,352 +0,0 @@ -<?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_not='';$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; - else - $a3_tmp_exec = empty( $$a3_empty ); - $a3_tmp_exec = !$a3_tmp_exec; - $a3_tmp_last_exec = $a3_tmp_exec; - if ( $a3_tmp_exec ) - { -?> -<?php unset($a3_not,$a3_empty) ?><?php $a4_class='headline'; ?><?php - $column_idx = 0; -?> -<tr - class="headline" -> -<?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,$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 - $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='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,$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 - $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='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,$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 - $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 } ?><?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; - else - $a3_tmp_exec = empty( $$a3_empty ); - $a3_tmp_last_exec = $a3_tmp_exec; - if ( $a3_tmp_exec ) - { -?> -<?php unset($a3_empty) ?><?php - $column_idx = 0; -?> -<tr -> -<?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 $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 } ?><?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; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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=$desc;$a6_type='';$a6_url=$url;$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_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 = ''; - $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) ?></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 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 - $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) ?><?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_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_type='';$a7_url=$archive_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_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 - $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) ?></a><?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_var='archive_count';$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 $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 } ?><?php if (!$a6_tmp_last_exec) { ?> -<?php $a7_title=lang('GLOBAL_NO_ARCHIVE_DESC');$a7_class='text';$a7_text='GLOBAL_NO_ARCHIVE';$a7_escape=true;$a7_type='emphatic';$a7_cut='both'; ?><?php - $tmp_tag = 'em'; -?><<?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_title,$a7_class,$a7_text,$a7_escape,$a7_type,$a7_cut) ?><?php } -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 - $column_idx = 0; -?> -<tr -> -<?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,$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 - $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) ?></td></tr><?php - $column_idx = $last_column_idx; -?> -</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 $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/form.tpl.php b/themes/default/pages/html/page/form.tpl.php @@ -1,497 +0,0 @@ -<?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_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 } ?> - <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_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 - $a6_tmp_exec = empty( $$a6_empty ); - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) - { -?> -<?php unset($a6_empty) ?><?php - $column_idx = 0; -?> -<tr -> -<?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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="4" -><?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 $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) ?></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 - $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($a6_not,$a6_empty) ?><?php - $column_idx = 0; -?> -<tr -> -<?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($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 $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) ?></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($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 $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) ?></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($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 $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) ?></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 ( $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 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 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 $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) ?></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 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 = $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) ?></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 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($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($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 $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($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($$a11_name)?'- '.lang('EMPTY').' -':$a11_tmp_list[$$a11_name]; -} -else -{ -if ( $a11_addempty!==FALSE ) -{ - if ($a11_addempty===TRUE) - $a11_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a11_tmp_list; - else - $a11_tmp_list = array(''=>'- '.lang($a11_addempty).' -')+$a11_tmp_list; -} -?><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($$a11_name) && isset($a11_tmp_list[$$a11_name]) ) - $a11_tmp_default = $$a11_name; - elseif ( isset($a11_default) ) - $a11_tmp_default = $a11_default; - else - $a11_tmp_default = ''; - foreach( $a11_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( $a11_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - 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($$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($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; -?> -</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) ?><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; - 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 $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 - $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_text='GLOBAL_RELEASE';$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) ?></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($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; - 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 $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 - $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_text='PAGE_PUBLISH_AFTER_SAVE';$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) ?></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)) { -?> -<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/> -<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/page/info.tpl.php b/themes/default/pages/html/page/info.tpl.php @@ -1,493 +0,0 @@ -<?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,488 +0,0 @@ -<?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_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 $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='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 ?>" 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><?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 $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='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 ?>" 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><?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_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='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_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/pub.tpl.php b/themes/default/pages/html/page/pub.tpl.php @@ -1,62 +0,0 @@ -<?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('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; - 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='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 - $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/page/show.tpl.php b/themes/default/pages/html/page/show.tpl.php @@ -1,137 +0,0 @@ -<?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/showprop.tpl.php b/themes/default/pages/html/page/showprop.tpl.php @@ -1,1894 +0,0 @@ -<?php $attr1_class='main'; ?><?php - if (!headers_sent()) header('Content-Type: text/html; charset='.$charset) -?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<html> -<head> - <title><?php echo isset($attr1_title)?$attr1_title.' - ':(isset($windowTitle)?lang($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" /> - <meta name="MSSmartTagsPreventParsing" content="true" /> - <meta name="robots" content="noindex,nofollow" /> -<?php if (isset($windowMenu) && is_array($windowMenu)) foreach( $windowMenu as $menu ) - { - ?> - <link rel="section" href="<?php echo Html::url($actionName,@$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" /> -<?php - } -?><?php if (isset($metaList) && is_array($metaList)) foreach( $metaList as $meta ) - { - ?> - <link rel="<?php echo $meta['name'] ?>" href="<?php echo $meta['url'] ?>" title="<?php echo lang($meta['title']) ?>" /><?php - } -?><?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_class); ?><?php $attr2_icon='folder'; $attr2_widths='40%,60%'; $attr2_width='93%'; $attr2_rowclasses='odd,even'; $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">'; - echo '<img src="'.$image_dir.'icon_'.$actionName.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 } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } - ?><?php } - echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; - if ( !isset($path) || is_array($path) ) - $path = array(); - foreach( $path as $pathElement) - { - extract($pathElement); - echo '<a href="'.$url.'" class="path">'.langHtml($name).'</a>'; - echo '&nbsp;&raquo;&nbsp;'; - } - echo '<span class="title">'.langHtml($windowTitle).'</span>'; - ?> - </td> - <?php - } - ?> -<?php ?> <!--<td class="menu" style="align:right;"> - <?php if (isset($windowIcons)) foreach( $windowIcons as $icon ) - { - ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.langHtml($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a>&nbsp;<?php - } - ?> - </td>--> - </tr> - <tr><td class="subaction"> - <?php if ( !isset($windowMenu) || !is_array($windowMenu) ) - $windowMenu = array(); - foreach( $windowMenu as $menu ) - { - $tmp_text = langHtml($menu['text']); - $tmp_key = strtoupper(langHtml($menu['key' ])); - $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); - if ( $tmp_pos !== false ) - $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); - if ( isset($menu['url']) ) - { - ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu<?php echo $this->subActionName==$menu['subaction']?'_highlight':'' ?>"><?php echo $tmp_text ?></a>&nbsp;&nbsp;&nbsp;<?php - } - else - { - ?><span class="menu_disabled" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu_disabled"><?php echo $tmp_text ?></span>&nbsp;&nbsp;&nbsp;<?php - } - } - if (@$conf['help']['enabled'] ) - { - ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>" class="menu" style="cursor:help;"><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php - } - ?></td> - </tr> -<?php if (isset($notices) && count($notices)>0 ) - { ?> - <tr> - <td align="center" class="notice"> - <?php foreach( $notices as $notice_idx=>$notice ) { ?> - <br><table class="notice" width="80%"> - <?php if ($notice['name']!='') { ?> - <tr> - <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> - <table cellspacing="0" width="100%" cellpadding="4"> -<?php unset($attr2_icon);unset($attr2_widths);unset($attr2_width);unset($attr2_rowclasses);unset($attr2_columnclasses); ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text='global_name'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php $attr4_class='name'; ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php unset($attr4_class); ?><?php $attr5_class='text'; $attr5_var='name'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_var);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text=lang('global_description'); $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text=$description; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text='global_full_filename'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php $attr4_class='filename'; ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php unset($attr4_class); ?><?php $attr5_class='text'; $attr5_var='full_filename'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_var);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php $attr4_colspan='2'; ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php unset($attr4_colspan); ?><?php $attr5_title=lang('additional_info'); ?><fieldset><?php if(isset($attr5_title)) { ?><legend><?php echo encodeHtml($attr5_title) ?></legend><?php } ?><?php unset($attr5_title); ?><?php ?></fieldset><?php ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text='global_template'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_present='template_url'; ?><?php - $attr5_tmp_exec = isset($$attr5_present); - $attr5_tmp_last_exec = $attr5_tmp_exec; - if ( $attr5_tmp_exec ) - { -?> -<?php unset($attr5_present); ?><?php $attr6_title=''; $attr6_target='cms_main'; $attr6_url=$template_url; $attr6_class=''; ?><?php - $params = array(); - if (!empty($attr6_var1) && isset($attr6_value1)) - $params[$attr6_var1]=$attr6_value1; - if (!empty($attr6_var2) && isset($attr6_value2)) - $params[$attr6_var2]=$attr6_value2; - if (!empty($attr6_var3) && isset($attr6_value3)) - $params[$attr6_var3]=$attr6_value3; - if (!empty($attr6_var4) && isset($attr6_value4)) - $params[$attr6_var4]=$attr6_value4; - if (!empty($attr6_var5) && isset($attr6_value5)) - $params[$attr6_var5]=$attr6_value5; - if(empty($attr6_class)) - $attr6_class=''; - if(empty($attr6_title)) - $attr6_title = ''; - if(!empty($attr6_url)) - $tmp_url = $attr6_url; - else - $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($attr6_id)?$attr6_id:$this->getRequestId(),$params); -?><a<?php if (isset($attr6_name)) echo ' name="'.$attr6_name.'"'; else echo ' href="'.$tmp_url.($attr6_anchor?'#'.$attr6_anchor:'').'"' ?> class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>"<?php if (isset($attr6_accesskey)) echo ' accesskey="'.$attr6_accesskey.'"' ?> title="<?php echo encodeHtml($attr6_title) ?>"><?php unset($attr6_title);unset($attr6_target);unset($attr6_url);unset($attr6_class); ?><?php $attr7_file='icon_template'; $attr7_align='left'; ?><?php - $attr7_tmp_image_file = $image_dir.$attr7_fileext; - $attr7_tmp_image_file = $image_dir.$attr7_file.IMG_ICON_EXT; -?><img src="<?php echo $attr7_tmp_image_file ?>" border="0"<?php if(isset($attr7_align)) echo ' align="'.$attr7_align.'"' ?><?php if (isset($attr7_size)) { list($attr7_tmp_width,$attr7_tmp_height)=explode('x',$attr7_size);echo ' width="'.$attr7_tmp_width.'" height="'.$attr7_tmp_height.'"';} ?>><?php unset($attr7_file);unset($attr7_align); ?><?php $attr7_class='text'; $attr7_var='template_name'; $attr7_escape=true; ?><?php - if ( isset($attr7_prefix)&& isset($attr7_key)) - $attr7_key = $attr7_prefix.$attr7_key; - if ( isset($attr7_suffix)&& isset($attr7_key)) - $attr7_key = $attr7_key.$attr7_suffix; - if(empty($attr7_title)) - $attr7_title = ''; - if (empty($attr7_type)) - $tmp_tag = 'span'; - else - switch( $attr7_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php - $attr7_title = ''; - if ( $attr7_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr7_array)) - { - $tmpArray = $$attr7_array; - if (!empty($attr7_var)) - $tmp_text = $tmpArray[$attr7_var]; - else - $tmp_text = $langF($tmpArray[$attr7_text]); - } - elseif (!empty($attr7_text)) - $tmp_text = $langF($attr7_text); - elseif (!empty($attr7_textvar)) - $tmp_text = $langF($$attr7_textvar); - elseif (!empty($attr7_key)) - $tmp_text = $langF($attr7_key); - elseif (!empty($attr7_var)) - $tmp_text = isset($$attr7_var)?$$attr7_var:'?unset:'.$attr7_var.'?'; - elseif (!empty($attr7_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr7_raw); - elseif (!empty($attr7_value)) - $tmp_text = $attr7_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); - if (isset($attr7_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr7_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr7_class);unset($attr7_var);unset($attr7_escape); ?><?php ?></a><?php ?><?php ?><?php } ?><?php ?><?php $attr5_empty='template_url'; ?><?php - if ( !isset($$attr5_empty) ) - $attr5_tmp_exec = empty($attr5_empty); - elseif ( is_array($$attr5_empty) ) - $attr5_tmp_exec = (count($$attr5_empty)==0); - elseif ( is_bool($$attr5_empty) ) - $attr5_tmp_exec = true; - else - $attr5_tmp_exec = empty( $$attr5_empty ); - $attr5_tmp_last_exec = $attr5_tmp_exec; - if ( $attr5_tmp_exec ) - { -?> -<?php unset($attr5_empty); ?><?php $attr6_file='icon_template'; $attr6_align='left'; ?><?php - $attr6_tmp_image_file = $image_dir.$attr6_fileext; - $attr6_tmp_image_file = $image_dir.$attr6_file.IMG_ICON_EXT; -?><img src="<?php echo $attr6_tmp_image_file ?>" border="0"<?php if(isset($attr6_align)) echo ' align="'.$attr6_align.'"' ?><?php if (isset($attr6_size)) { list($attr6_tmp_width,$attr6_tmp_height)=explode('x',$attr6_size);echo ' width="'.$attr6_tmp_width.'" height="'.$attr6_tmp_height.'"';} ?>><?php unset($attr6_file);unset($attr6_align); ?><?php $attr6_class='text'; $attr6_var='template_name'; $attr6_escape=true; ?><?php - if ( isset($attr6_prefix)&& isset($attr6_key)) - $attr6_key = $attr6_prefix.$attr6_key; - if ( isset($attr6_suffix)&& isset($attr6_key)) - $attr6_key = $attr6_key.$attr6_suffix; - if(empty($attr6_title)) - $attr6_title = ''; - if (empty($attr6_type)) - $tmp_tag = 'span'; - else - switch( $attr6_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php - $attr6_title = ''; - if ( $attr6_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr6_array)) - { - $tmpArray = $$attr6_array; - if (!empty($attr6_var)) - $tmp_text = $tmpArray[$attr6_var]; - else - $tmp_text = $langF($tmpArray[$attr6_text]); - } - elseif (!empty($attr6_text)) - $tmp_text = $langF($attr6_text); - elseif (!empty($attr6_textvar)) - $tmp_text = $langF($$attr6_textvar); - elseif (!empty($attr6_key)) - $tmp_text = $langF($attr6_key); - elseif (!empty($attr6_var)) - $tmp_text = isset($$attr6_var)?$$attr6_var:'?unset:'.$attr6_var.'?'; - elseif (!empty($attr6_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr6_raw); - elseif (!empty($attr6_value)) - $tmp_text = $attr6_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); - if (isset($attr6_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr6_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr6_class);unset($attr6_var);unset($attr6_escape); ?><?php ?><?php } ?><?php ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_key='FILE_MIMETYPE'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_key);unset($attr5_escape); ?><?php ?></td><?php ?><?php $attr4_class='filename'; ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php unset($attr4_class); ?><?php $attr5_class='text'; $attr5_var='mime_type'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_var);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_key='id'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_key);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_var='objectid'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_var);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php $attr4_colspan='2'; ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php unset($attr4_colspan); ?><?php $attr5_title=lang('prop_userinfo'); ?><fieldset><?php if(isset($attr5_title)) { ?><legend><?php echo encodeHtml($attr5_title) ?></legend><?php } ?><?php unset($attr5_title); ?><?php ?></fieldset><?php ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text='global_created'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_width='100%'; $attr5_space='0px'; $attr5_padding='0px'; ?><?php - $coloumn_widths=array(); - $row_classes = array(''); - $column_classes= array(''); - if(empty($attr5_class)) - $attr5_class=''; - if (!empty($attr5_widths)) - { - $column_widths = explode(',',$attr5_widths); - unset($attr5['widths']); - } - if (!empty($attr5_classes)) - { - $row_classes = explode(',',$attr5_rowclasses); - $row_class_idx = 999; - unset($attr5['rowclasses']); - } - if (!empty($attr5_rowclasses)) - { - $row_classes = explode(',',$attr5_rowclasses); - $row_class_idx = 999; - unset($attr5['rowclasses']); - } - if (!empty($attr5_columnclasses)) - { - $column_classes = explode(',',$attr5_columnclasses); - unset($attr5['columnclasses']); - } -?><table class="<?php echo $attr5_class ?>" cellspacing="<?php echo $attr5_space ?>" width="<?php echo $attr5_width ?>" cellpadding="<?php echo $attr5_padding ?>"><?php unset($attr5_width);unset($attr5_space);unset($attr5_padding); ?><?php ?><?php - $attr6_tmp_class=''; - $attr6_last_class = $attr6_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr6_tmp_class)); -?><?php ?><?php ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr7_class)) - $attr7_class=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) - $attr7_width=$column_widths[$cell_column_nr-1]; -?><td<?php -if ( isset($attr7_width )) { ?> width="<?php echo $attr7_width ?>" <?php } -if ( isset($attr7_style )) { ?> style="<?php echo $attr7_style ?>" <?php } -if ( isset($attr7_class )) { ?> class="<?php echo $attr7_class ?>" <?php } -if ( isset($attr7_colspan)) { ?> colspan="<?php echo $attr7_colspan ?>" <?php } -if ( isset($attr7_rowspan)) { ?> rowspan="<?php echo $attr7_rowspan ?>" <?php } -?>><?php ?><?php $attr8_icon='el_date'; $attr8_align='left'; ?><?php - $attr8_tmp_image_file = $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT; - $attr8_size = '16x16'; -?><img src="<?php echo $attr8_tmp_image_file ?>" border="0"<?php if(isset($attr8_align)) echo ' align="'.$attr8_align.'"' ?><?php if (isset($attr8_size)) { list($attr8_tmp_width,$attr8_tmp_height)=explode('x',$attr8_size);echo ' width="'.$attr8_tmp_width.'" height="'.$attr8_tmp_height.'"';} ?>><?php unset($attr8_icon);unset($attr8_align); ?><?php $attr8_date=$create_date; ?><?php - global $conf; - $time = $attr8_date; - if ( $time==0) - echo lang('GLOBAL_UNKNOWN'); - elseif ( !$conf['interface']['human_date_format'] ) - { - echo '<span title="'; - $dl = date(lang('DATE_FORMAT_LONG'),$time); - $dl = str_replace('{weekday}',lang('DATE_WEEKDAY'.strval(date('w',$time))),$dl); - $dl = str_replace('{month}' ,lang('DATE_MONTH' .strval(date('n',$time))),$dl); - echo $dl; - unset($dl); - echo '">'; - echo date(lang('DATE_FORMAT'),$time); - echo '</span>'; - } - else - { - $sekunden = time()-$time; - $minuten = intval($sekunden/60); - $stunden = intval($minuten /60); - $tage = intval($stunden /24); - $monate = intval($tage /30); - $jahre = intval($monate /12); - echo '<span title="'.date(lang('DATE_FORMAT'),$time).'"">'; - if ( $time==0) - echo lang('GLOBAL_UNKNOWN'); - elseif ( !$conf['interface']['human_date_format'] ) - echo date(lang('DATE_FORMAT'),$time); - elseif ( $sekunden == 1 ) - echo $sekunden.' '.lang('GLOBAL_SECOND'); - elseif ( $sekunden < 60 ) - echo $sekunden.' '.lang('GLOBAL_SECONDS'); - elseif ( $minuten == 1 ) - echo $minuten.' '.lang('GLOBAL_MINUTE'); - elseif ( $minuten < 60 ) - echo $minuten.' '.lang('GLOBAL_MINUTES'); - elseif ( $stunden == 1 ) - echo $stunden.' '.lang('GLOBAL_HOUR'); - elseif ( $stunden < 60 ) - echo $stunden.' '.lang('GLOBAL_HOURS'); - elseif ( $tage == 1 ) - echo $tage.' '.lang('GLOBAL_DAY'); - elseif ( $tage < 60 ) - echo $tage.' '.lang('GLOBAL_DAYS'); - elseif ( $monate == 1 ) - echo $monate.' '.lang('GLOBAL_MONTH'); - elseif ( $monate < 12 ) - echo $monate.' '.lang('GLOBAL_MONTHS'); - elseif ( $jahre == 1 ) - echo $jahre.' '.lang('GLOBAL_YEAR'); - else - echo $jahre.' '.lang('GLOBAL_YEARS'); - echo '</span>'; - } -?><?php unset($attr8_date); ?><?php ?></td><?php ?><?php ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr7_class)) - $attr7_class=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) - $attr7_width=$column_widths[$cell_column_nr-1]; -?><td<?php -if ( isset($attr7_width )) { ?> width="<?php echo $attr7_width ?>" <?php } -if ( isset($attr7_style )) { ?> style="<?php echo $attr7_style ?>" <?php } -if ( isset($attr7_class )) { ?> class="<?php echo $attr7_class ?>" <?php } -if ( isset($attr7_colspan)) { ?> colspan="<?php echo $attr7_colspan ?>" <?php } -if ( isset($attr7_rowspan)) { ?> rowspan="<?php echo $attr7_rowspan ?>" <?php } -?>><?php ?><?php $attr8_icon='user'; $attr8_align='left'; ?><?php - $attr8_tmp_image_file = $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT; - $attr8_size = '16x16'; -?><img src="<?php echo $attr8_tmp_image_file ?>" border="0"<?php if(isset($attr8_align)) echo ' align="'.$attr8_align.'"' ?><?php if (isset($attr8_size)) { list($attr8_tmp_width,$attr8_tmp_height)=explode('x',$attr8_size);echo ' width="'.$attr8_tmp_width.'" height="'.$attr8_tmp_height.'"';} ?>><?php unset($attr8_icon);unset($attr8_align); ?><?php $attr8_user=$create_user; ?><?php - if ( is_object($attr8_user) ) - $user = $attr8_user; - else - $user = $$attr8_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($attr8_user); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?></table><?php ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?><?php - $attr3_tmp_class=''; - $attr3_last_class = $attr3_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr3_tmp_class)); -?><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_class='text'; $attr5_text='global_lastchange'; $attr5_escape=true; ?><?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)) - $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; - case 'preformatted'; - $tmp_tag = 'pre'; - break; - case 'code'; - $tmp_tag = 'code'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php - $attr5_title = ''; - if ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr5_class);unset($attr5_text);unset($attr5_escape); ?><?php ?></td><?php ?><?php ?><?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 -if ( isset($attr4_width )) { ?> width="<?php echo $attr4_width ?>" <?php } -if ( isset($attr4_style )) { ?> style="<?php echo $attr4_style ?>" <?php } -if ( isset($attr4_class )) { ?> class="<?php echo $attr4_class ?>" <?php } -if ( isset($attr4_colspan)) { ?> colspan="<?php echo $attr4_colspan ?>" <?php } -if ( isset($attr4_rowspan)) { ?> rowspan="<?php echo $attr4_rowspan ?>" <?php } -?>><?php ?><?php $attr5_width='100%'; $attr5_space='0px'; $attr5_padding='0px'; ?><?php - $coloumn_widths=array(); - $row_classes = array(''); - $column_classes= array(''); - if(empty($attr5_class)) - $attr5_class=''; - if (!empty($attr5_widths)) - { - $column_widths = explode(',',$attr5_widths); - unset($attr5['widths']); - } - if (!empty($attr5_classes)) - { - $row_classes = explode(',',$attr5_rowclasses); - $row_class_idx = 999; - unset($attr5['rowclasses']); - } - if (!empty($attr5_rowclasses)) - { - $row_classes = explode(',',$attr5_rowclasses); - $row_class_idx = 999; - unset($attr5['rowclasses']); - } - if (!empty($attr5_columnclasses)) - { - $column_classes = explode(',',$attr5_columnclasses); - unset($attr5['columnclasses']); - } -?><table class="<?php echo $attr5_class ?>" cellspacing="<?php echo $attr5_space ?>" width="<?php echo $attr5_width ?>" cellpadding="<?php echo $attr5_padding ?>"><?php unset($attr5_width);unset($attr5_space);unset($attr5_padding); ?><?php ?><?php - $attr6_tmp_class=''; - $attr6_last_class = $attr6_tmp_class; - echo Html::open_tag('tr',array('class'=>$attr6_tmp_class)); -?><?php ?><?php ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr7_class)) - $attr7_class=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) - $attr7_width=$column_widths[$cell_column_nr-1]; -?><td<?php -if ( isset($attr7_width )) { ?> width="<?php echo $attr7_width ?>" <?php } -if ( isset($attr7_style )) { ?> style="<?php echo $attr7_style ?>" <?php } -if ( isset($attr7_class )) { ?> class="<?php echo $attr7_class ?>" <?php } -if ( isset($attr7_colspan)) { ?> colspan="<?php echo $attr7_colspan ?>" <?php } -if ( isset($attr7_rowspan)) { ?> rowspan="<?php echo $attr7_rowspan ?>" <?php } -?>><?php ?><?php $attr8_icon='el_date'; $attr8_align='left'; ?><?php - $attr8_tmp_image_file = $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT; - $attr8_size = '16x16'; -?><img src="<?php echo $attr8_tmp_image_file ?>" border="0"<?php if(isset($attr8_align)) echo ' align="'.$attr8_align.'"' ?><?php if (isset($attr8_size)) { list($attr8_tmp_width,$attr8_tmp_height)=explode('x',$attr8_size);echo ' width="'.$attr8_tmp_width.'" height="'.$attr8_tmp_height.'"';} ?>><?php unset($attr8_icon);unset($attr8_align); ?><?php $attr8_date=$lastchange_date; ?><?php - global $conf; - $time = $attr8_date; - if ( $time==0) - echo lang('GLOBAL_UNKNOWN'); - elseif ( !$conf['interface']['human_date_format'] ) - { - echo '<span title="'; - $dl = date(lang('DATE_FORMAT_LONG'),$time); - $dl = str_replace('{weekday}',lang('DATE_WEEKDAY'.strval(date('w',$time))),$dl); - $dl = str_replace('{month}' ,lang('DATE_MONTH' .strval(date('n',$time))),$dl); - echo $dl; - unset($dl); - echo '">'; - echo date(lang('DATE_FORMAT'),$time); - echo '</span>'; - } - else - { - $sekunden = time()-$time; - $minuten = intval($sekunden/60); - $stunden = intval($minuten /60); - $tage = intval($stunden /24); - $monate = intval($tage /30); - $jahre = intval($monate /12); - echo '<span title="'.date(lang('DATE_FORMAT'),$time).'"">'; - if ( $time==0) - echo lang('GLOBAL_UNKNOWN'); - elseif ( !$conf['interface']['human_date_format'] ) - echo date(lang('DATE_FORMAT'),$time); - elseif ( $sekunden == 1 ) - echo $sekunden.' '.lang('GLOBAL_SECOND'); - elseif ( $sekunden < 60 ) - echo $sekunden.' '.lang('GLOBAL_SECONDS'); - elseif ( $minuten == 1 ) - echo $minuten.' '.lang('GLOBAL_MINUTE'); - elseif ( $minuten < 60 ) - echo $minuten.' '.lang('GLOBAL_MINUTES'); - elseif ( $stunden == 1 ) - echo $stunden.' '.lang('GLOBAL_HOUR'); - elseif ( $stunden < 60 ) - echo $stunden.' '.lang('GLOBAL_HOURS'); - elseif ( $tage == 1 ) - echo $tage.' '.lang('GLOBAL_DAY'); - elseif ( $tage < 60 ) - echo $tage.' '.lang('GLOBAL_DAYS'); - elseif ( $monate == 1 ) - echo $monate.' '.lang('GLOBAL_MONTH'); - elseif ( $monate < 12 ) - echo $monate.' '.lang('GLOBAL_MONTHS'); - elseif ( $jahre == 1 ) - echo $jahre.' '.lang('GLOBAL_YEAR'); - else - echo $jahre.' '.lang('GLOBAL_YEARS'); - echo '</span>'; - } -?><?php unset($attr8_date); ?><?php ?></td><?php ?><?php ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr7_class)) - $attr7_class=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) - $attr7_width=$column_widths[$cell_column_nr-1]; -?><td<?php -if ( isset($attr7_width )) { ?> width="<?php echo $attr7_width ?>" <?php } -if ( isset($attr7_style )) { ?> style="<?php echo $attr7_style ?>" <?php } -if ( isset($attr7_class )) { ?> class="<?php echo $attr7_class ?>" <?php } -if ( isset($attr7_colspan)) { ?> colspan="<?php echo $attr7_colspan ?>" <?php } -if ( isset($attr7_rowspan)) { ?> rowspan="<?php echo $attr7_rowspan ?>" <?php } -?>><?php ?><?php $attr8_icon='user'; $attr8_align='left'; ?><?php - $attr8_tmp_image_file = $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT; - $attr8_size = '16x16'; -?><img src="<?php echo $attr8_tmp_image_file ?>" border="0"<?php if(isset($attr8_align)) echo ' align="'.$attr8_align.'"' ?><?php if (isset($attr8_size)) { list($attr8_tmp_width,$attr8_tmp_height)=explode('x',$attr8_size);echo ' width="'.$attr8_tmp_width.'" height="'.$attr8_tmp_height.'"';} ?>><?php unset($attr8_icon);unset($attr8_align); ?><?php $attr8_user=$lastchange_user; ?><?php - if ( is_object($attr8_user) ) - $user = $attr8_user; - else - $user = $$attr8_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($attr8_user); ?><?php ?></td><?php ?><?php ?></tr><?php ?><?php ?></table><?php ?><?php ?></td><?php ?><?php ?></tr><?php ?><?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 } ?> -<?php ?><?php ?></body> -</html><?php ?>- \ 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,126 +0,0 @@ -<?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 } ?> - <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_header=false; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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='src';$a6_escape=false;$a6_type='preformatted';$a6_cut='both'; ?><?php - $a6_title = ''; - $tmp_tag = 'pre'; -?><<?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 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/pageelement/advanced.tpl.php b/themes/default/pages/html/pageelement/advanced.tpl.php @@ -1,4472 +0,0 @@ -<?php $attr1_debug_info = 'a:1:{s:5:"class";s:4:"main";}' ?><?php $attr1 = array('class'=>'main') ?><?php $attr1_class='main' ?><?php - if (!headers_sent()) header('Content-Type: text/html; charset='.$charset) -?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<html> -<head> - <title><?php echo isset($attr1_title)?$attr1_title.' - ':(isset($windowTitle)?lang($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" /> - <meta name="MSSmartTagsPreventParsing" content="true" /> - <meta name="robots" content="noindex,nofollow" /> -<?php if (isset($windowMenu) && is_array($windowMenu)) foreach( $windowMenu as $menu ) - { - ?> - <link rel="section" href="<?php echo Html::url($actionName,@$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" /> -<?php - } -?><?php if (isset($metaList) && is_array($metaList)) foreach( $metaList as $meta ) - { - ?> - <link rel="<?php echo $meta['name'] ?>" href="<?php echo $meta['url'] ?>" title="<?php echo lang($meta['title']) ?>" /><?php - } -?><script type="text/javascript" src="themes/default/js/jquery.js"></script> - <script type="text/javascript" src="themes/default/js/jquery-lightbox.js"></script> - <link rel="stylesheet" type="text/css" href="themes/default/js/lightbox/css/jquery-lightbox.css" media="screen" /> - <script type="text/javascript"> - $(function() { - $('a.image').lightBox(); - }); - </script> -<?php if(!empty($root_stylesheet)) { ?> - <link rel="stylesheet" type="text/css" href="<?php echo $root_stylesheet ?>" /> -<?php } ?> -<?php if($root_stylesheet!=$user_stylesheet) { ?> - <link rel="stylesheet" type="text/css" href="<?php echo $user_stylesheet ?>" /> -<?php } ?> -</head> -<body class="<?php echo $attr1_class ?>" <?php if (@$conf['interface']['application_mode']) { ?> style="padding:0px;margin:0px;"<?php } ?> > -<?php unset($attr1) ?><?php unset($attr1_class) ?><?php $attr2_debug_info = 'a:4:{s:4:"name";s:0:"";s:6:"target";s:5:"_self";s:6:"method";s:4:"post";s:7:"enctype";s:33:"application/x-www-form-urlencoded";}' ?><?php $attr2 = array('name'=>'','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr2_name='' ?><?php $attr2_target='_self' ?><?php $attr2_method='post' ?><?php $attr2_enctype='application/x-www-form-urlencoded' ?><?php - if (empty($attr2_action)) - $attr2_action = $actionName; - if (empty($attr2_subaction)) - $attr2_subaction = $targetSubActionName; - if (empty($attr2_id)) - $attr2_id = $this->getRequestId(); - if ($this->isEditable() && $this->getRequestVar('mode')!='edit') - $attr2_subaction = $subActionName; -?><form name="<?php echo $attr2_name ?>" - target="<?php echo $attr2_target ?>" - action="<?php echo Html::url( $attr2_action,$attr2_subaction,$attr2_id ) ?>" - method="<?php echo $attr2_method ?>" - enctype="<?php echo $attr2_enctype ?>" style="margin:0px;padding:0px;"> -<?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') { ?> -<input type="hidden" name="mode" value="edit" /> -<?php } ?> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $attr2_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $attr2_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr2_id ?>" /><?php - if ( $conf['interface']['url_sessionid'] ) - echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($attr2) ?><?php unset($attr2_name) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php $attr3_debug_info = 'a:4:{s:4:"name";s:7:"element";s:5:"width";s:3:"93%";s:10:"rowclasses";s:8:"odd,even";s:13:"columnclasses";s:5:"1,2,3";}' ?><?php $attr3 = array('name'=>'element','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_name='element' ?><?php $attr3_width='93%' ?><?php $attr3_rowclasses='odd,even' ?><?php $attr3_columnclasses='1,2,3' ?><?php - $coloumn_widths=array(); - if (!empty($attr3_widths)) - { - $column_widths = explode(',',$attr3_widths); - unset($attr3['widths']); - } - if (!empty($attr3_rowclasses)) - { - $row_classes = explode(',',$attr3_rowclasses); - $row_class_idx = 999; - unset($attr3['rowclasses']); - } - if (!empty($attr3_columnclasses)) - { - $column_classes = explode(',',$attr3_columnclasses); - unset($attr3['columnclasses']); - } - global $image_dir; - if (@$conf['interface']['application_mode'] ) - { - echo '<table class="main" cellspacing="0" cellpadding="4" width="100%" style="margin:0px;border:0px; padding:0px;" height_oo="100%">'; - } - else - { - echo '<br/><br/><br/><center>'; - echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr3_width.'">'; - } - if (!@$conf['interface']['application_mode'] ) - { - echo '<tr><td class="menu">'; - echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; - if ($this->isEditable()) { ?> - <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } - ?><?php } - echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; - if ( !isset($path) || is_array($path) ) - $path = array(); - foreach( $path as $pathElement) - { - extract($pathElement); - echo '<a href="'.$url.'" class="path">'.langHtml($name).'</a>'; - echo '&nbsp;&raquo;&nbsp;'; - } - echo '<span class="title">'.langHtml($windowTitle).'</span>'; - ?> - </td> - <?php - } - ?> -<?php ?> <!--<td class="menu" style="align:right;"> - <?php if (isset($windowIcons)) foreach( $windowIcons as $icon ) - { - ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.langHtml($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a>&nbsp;<?php - } - ?> - </td>--> - </tr> - <tr><td class="subaction"> - <?php if ( !isset($windowMenu) || !is_array($windowMenu) ) - $windowMenu = array(); - foreach( $windowMenu as $menu ) - { - $tmp_text = langHtml($menu['text']); - $tmp_key = strtoupper(langHtml($menu['key' ])); - $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); - if ( $tmp_pos !== false ) - $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); - if ( isset($menu['url']) ) - { - ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu<?php echo $this->subActionName==$menu['subaction']?'_highlight':'' ?>"><?php echo $tmp_text ?></a>&nbsp;&nbsp;&nbsp;<?php - } - else - { - ?><span class="menu_disabled" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu_disabled"><?php echo $tmp_text ?></span>&nbsp;&nbsp;&nbsp;<?php - } - } - if (@$conf['help']['enabled'] ) - { - ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>" class="menu" style="cursor:help;"><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php - } - ?></td> - </tr> -<?php if (isset($notices) && count($notices)>0 ) - { ?> - <tr> - <td align="center" class="notice"> - <?php foreach( $notices as $notice_idx=>$notice ) { ?> - <br><table class="notice" width="80%"> - <?php if ($notice['name']!='') { ?> - <tr> - <td colspan="2" class="subaction" style="padding:2px; white-space:nowrap; border-bottom:1px solid black;"><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?> - </td> - </tr> -<?php } ?> - <tr class="notice_<?php echo $notice['status'] ?>"> - <td style="padding:10px;" width="30px"><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> - <td style="padding:10px;padding-right:10px;padding-bottom:10px;"><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo langHtml($notice['key'],$notice['vars']) ?><?php if ($notice['status']=='error') { ?></strong><?php } ?> - <?php if (!empty($notice['log'])) { ?><pre><?php echo htmlentities(implode("\n",$notice['log'])) ?></pre><?php } ?> - </td> - </tr> - </table> - <?php } ?> - </td> - </tr> - <tr> - <td colspan="2"><fieldset></fieldset></td> - </tr> -<?php } ?> - <tr> - <td> - <table class="n" cellspacing="0" width="100%" cellpadding="4"> -<?php unset($attr3) ?><?php unset($attr3_name) ?><?php unset($attr3_width) ?><?php unset($attr3_rowclasses) ?><?php unset($attr3_columnclasses) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php - $row_class_idx++; - if ($row_class_idx > count($row_classes)) - $row_class_idx=1; - $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr4_class)) - $attr4_class=$row_class; - global $cell_column_nr; - $cell_column_nr=0; - $column_class_idx = 999; -?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5_debug_info = 'a:2:{s:5:"class";s:4:"help";s:7:"colspan";s:1:"2";}' ?><?php $attr5 = array('class'=>'help','colspan'=>'2') ?><?php $attr5_class='help' ?><?php $attr5_colspan='2' ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr5_class)) - $attr5['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) - $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_colspan) ?><?php $attr6_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:4:"desc";s:6:"escape";s:4:"true";}' ?><?php $attr6 = array('class'=>'text','var'=>'desc','escape'=>true) ?><?php $attr6_class='text' ?><?php $attr6_var='desc' ?><?php $attr6_escape=true ?><?php - if ( isset($attr6_prefix)&& isset($attr6_key)) - $attr6_key = $attr6_prefix.$attr6_key; - if ( isset($attr6_suffix)&& isset($attr6_key)) - $attr6_key = $attr6_key.$attr6_suffix; - if(empty($attr6_title)) - $attr6_title = ''; - if (empty($attr6_type)) - $tmp_tag = 'span'; - else - switch( $attr6_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php - $attr6_title = ''; - if ( $attr6_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr6_array)) - { - $tmpArray = $$attr6_array; - if (!empty($attr6_var)) - $tmp_text = $tmpArray[$attr6_var]; - else - $tmp_text = $langF($tmpArray[$attr6_text]); - } - elseif (!empty($attr6_text)) - $tmp_text = $langF($attr6_text); - elseif (!empty($attr6_textvar)) - $tmp_text = $langF($$attr6_textvar); - elseif (!empty($attr6_key)) - $tmp_text = $langF($attr6_key); - elseif (!empty($attr6_var)) - $tmp_text = isset($$attr6_var)?$$attr6_var:'?unset:'.$attr6_var.'?'; - elseif (!empty($attr6_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr6_raw); - elseif (!empty($attr6_value)) - $tmp_text = $attr6_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); - if (isset($attr6_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr6_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_var) ?><?php unset($attr6_escape) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:2:{s:6:"equals";s:4:"date";s:5:"value";s:8:"var:type";}' ?><?php $attr4 = array('equals'=>'date','value'=>$type) ?><?php $attr4_equals='date' ?><?php $attr4_value=$type ?><?php - if ( isset($attr4_true) ) - { - if (gettype($attr4_true) === '' && gettype($attr4_true) === '1') - $exec = $$attr4_true == true; - else - $exec = $attr4_true == true; - } - elseif ( isset($attr4_false) ) - { - if (gettype($attr4_false) === '' && gettype($attr4_false) === '1') - $exec = $$attr4_false == false; - else - $exec = $attr4_false == false; - } - elseif( isset($attr4_contains) ) - $exec = in_array($attr4_value,explode(',',$attr4_contains)); - elseif( isset($attr4_equals)&& isset($attr4_value) ) - $exec = $attr4_equals == $attr4_value; - elseif( isset($attr4_lessthan)&& isset($attr4_value) ) - $exec = intval($attr4_lessthan) > intval($attr4_value); - elseif( isset($attr4_greaterthan)&& isset($attr4_value) ) - $exec = intval($attr4_greaterthan) < intval($attr4_value); - elseif ( isset($attr4_empty) ) - { - if ( !isset($$attr4_empty) ) - $exec = empty($attr4_empty); - elseif ( is_array($$attr4_empty) ) - $exec = (count($$attr4_empty)==0); - elseif ( is_bool($$attr4_empty) ) - $exec = true; - else - $exec = empty( $$attr4_empty ); - } - elseif ( isset($attr4_present) ) - { - $exec = isset($$attr4_present); - } - else - { - trigger_error("error in IF, assume: FALSE"); - $exec = false; - } - if ( !empty($attr4_invert) ) - $exec = !$exec; - if ( !empty($attr4_not) ) - $exec = !$exec; - unset($attr4_true); - unset($attr4_false); - unset($attr4_notempty); - unset($attr4_empty); - unset($attr4_contains); - unset($attr4_present); - unset($attr4_invert); - unset($attr4_not); - unset($attr4_value); - unset($attr4_equals); - $last_exec = $exec; - if ( $exec ) - { -?> -<?php unset($attr4) ?><?php unset($attr4_equals) ?><?php unset($attr4_value) ?><?php $attr5_debug_info = 'a:4:{s:5:"width";s:3:"85%";s:5:"space";s:3:"0px";s:7:"padding";s:3:"0px";s:10:"rowclasses";s:8:"odd,even";}' ?><?php $attr5 = array('width'=>'85%','space'=>'0px','padding'=>'0px','rowclasses'=>'odd,even') ?><?php $attr5_width='85%' ?><?php $attr5_space='0px' ?><?php $attr5_padding='0px' ?><?php $attr5_rowclasses='odd,even' ?><?php - $coloumn_widths=array(); - $row_classes = array(''); - $column_classes= array(''); - if(empty($attr5_class)) - $attr5_class=''; - if (!empty($attr5_widths)) - { - $column_widths = explode(',',$attr5_widths); - unset($attr5['widths']); - } - if (!empty($attr5_classes)) - { - $row_classes = explode(',',$attr5_rowclasses); - $row_class_idx = 999; - unset($attr5['rowclasses']); - } - if (!empty($attr5_rowclasses)) - { - $row_classes = explode(',',$attr5_rowclasses); - $row_class_idx = 999; - unset($attr5['rowclasses']); - } - if (!empty($attr5_columnclasses)) - { - $column_classes = explode(',',$attr5_columnclasses); - unset($attr5['columnclasses']); - } -?><table class="<?php echo $attr5_class ?>" cellspacing="<?php echo $attr5_space ?>" width="<?php echo $attr5_width ?>" cellpadding="<?php echo $attr5_padding ?>"><?php unset($attr5) ?><?php unset($attr5_width) ?><?php unset($attr5_space) ?><?php unset($attr5_padding) ?><?php unset($attr5_rowclasses) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php - $row_class_idx++; - if ($row_class_idx > count($row_classes)) - $row_class_idx=1; - $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr6_class)) - $attr6_class=$row_class; - global $cell_column_nr; - $cell_column_nr=0; - $column_class_idx = 999; -?><tr class="<?php echo $attr6_class ?>"><?php unset($attr6) ?><?php $attr7_debug_info = 'a:2:{s:5:"class";s:4:"help";s:7:"colspan";s:1:"7";}' ?><?php $attr7 = array('class'=>'help','colspan'=>'7') ?><?php $attr7_class='help' ?><?php $attr7_colspan='7' ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr7_class)) - $attr7['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) - $attr7['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_colspan) ?><?php $attr8_debug_info = 'a:4:{s:5:"title";s:0:"";s:6:"target";s:5:"_self";s:3:"url";s:16:"var:lastmonthurl";s:5:"class";s:0:"";}' ?><?php $attr8 = array('title'=>'','target'=>'_self','url'=>$lastmonthurl,'class'=>'') ?><?php $attr8_title='' ?><?php $attr8_target='_self' ?><?php $attr8_url=$lastmonthurl ?><?php $attr8_class='' ?><?php - $params = array(); - if (!empty($attr8_var1) && isset($attr8_value1)) - $params[$attr8_var1]=$attr8_value1; - if (!empty($attr8_var2) && isset($attr8_value2)) - $params[$attr8_var2]=$attr8_value2; - if (!empty($attr8_var3) && isset($attr8_value3)) - $params[$attr8_var3]=$attr8_value3; - if (!empty($attr8_var4) && isset($attr8_value4)) - $params[$attr8_var4]=$attr8_value4; - if (!empty($attr8_var5) && isset($attr8_value5)) - $params[$attr8_var5]=$attr8_value5; - if(empty($attr8_class)) - $attr8_class=''; - if(empty($attr8_title)) - $attr8_title = ''; - if(!empty($attr8_url)) - $tmp_url = $attr8_url; - else - $tmp_url = Html::url($attr8_action,$attr8_subaction,!empty($attr8_id)?$attr8_id:$this->getRequestId(),$params); -?><a<?php if (isset($attr8_name)) echo ' name="'.$attr8_name.'"'; else echo ' href="'.$tmp_url.($attr8_anchor?'#'.$attr8_anchor:'').'"' ?> class="<?php echo $attr8_class ?>" target="<?php echo $attr8_target ?>"<?php if (isset($attr8_accesskey)) echo ' accesskey="'.$attr8_accesskey.'"' ?> title="<?php echo encodeHtml($attr8_title) ?>"><?php unset($attr8) ?><?php unset($attr8_title) ?><?php unset($attr8_target) ?><?php unset($attr8_url) ?><?php unset($attr8_class) ?><?php $attr9_debug_info = 'a:2:{s:4:"file";s:4:"left";s:5:"align";s:6:"middle";}' ?><?php $attr9 = array('file'=>'left','align'=>'middle') ?><?php $attr9_file='left' ?><?php $attr9_align='middle' ?><?php -if (isset($attr9_elementtype)) { -?><img src="<?php echo $image_dir.'icon_el_'.$attr9_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php -} elseif (isset($attr9_type)) { -?><img src="<?php echo $image_dir.'icon_'.$attr9_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php -} elseif (isset($attr9_icon)) { -?><img src="<?php echo $image_dir.'icon_'.$attr9_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php -} elseif (isset($attr9_tree)) { -?><img src="<?php echo $image_dir.'tree_'.$attr9_tree.IMG_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php -} elseif (isset($attr9_url)) { -?><img src="<?php echo $attr9_url ?>" border="0" align="<?php echo $attr9_align ?>"><?php -} elseif (isset($attr9_fileext)) { -?><img src="<?php echo $image_dir.$attr9_fileext ?>" border="0" align="<?php echo $attr9_align ?>"><?php -} elseif (isset($attr9_file)) { -?><img src="<?php echo $image_dir.$attr9_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } ?><?php unset($attr9) ?><?php unset($attr9_file) ?><?php unset($attr9_align) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?></a><?php unset($attr7) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:1:"_";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','raw'=>'_','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_raw='_' ?><?php $attr8_escape=true ?><?php - if ( isset($attr8_prefix)&& isset($attr8_key)) - $attr8_key = $attr8_prefix.$attr8_key; - if ( isset($attr8_suffix)&& isset($attr8_key)) - $attr8_key = $attr8_key.$attr8_suffix; - if(empty($attr8_title)) - $attr8_title = ''; - if (empty($attr8_type)) - $tmp_tag = 'span'; - else - switch( $attr8_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php - $attr8_title = ''; - if ( $attr8_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr8_array)) - { - $tmpArray = $$attr8_array; - if (!empty($attr8_var)) - $tmp_text = $tmpArray[$attr8_var]; - else - $tmp_text = $langF($tmpArray[$attr8_text]); - } - elseif (!empty($attr8_text)) - $tmp_text = $langF($attr8_text); - elseif (!empty($attr8_textvar)) - $tmp_text = $langF($$attr8_textvar); - elseif (!empty($attr8_key)) - $tmp_text = $langF($attr8_key); - elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; - elseif (!empty($attr8_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr8_raw); - elseif (!empty($attr8_value)) - $tmp_text = $attr8_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); - if (isset($attr8_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_raw) ?><?php unset($attr8_escape) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:9:"monthname";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','var'=>'monthname','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_var='monthname' ?><?php $attr8_escape=true ?><?php - if ( isset($attr8_prefix)&& isset($attr8_key)) - $attr8_key = $attr8_prefix.$attr8_key; - if ( isset($attr8_suffix)&& isset($attr8_key)) - $attr8_key = $attr8_key.$attr8_suffix; - if(empty($attr8_title)) - $attr8_title = ''; - if (empty($attr8_type)) - $tmp_tag = 'span'; - else - switch( $attr8_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php - $attr8_title = ''; - if ( $attr8_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr8_array)) - { - $tmpArray = $$attr8_array; - if (!empty($attr8_var)) - $tmp_text = $tmpArray[$attr8_var]; - else - $tmp_text = $langF($tmpArray[$attr8_text]); - } - elseif (!empty($attr8_text)) - $tmp_text = $langF($attr8_text); - elseif (!empty($attr8_textvar)) - $tmp_text = $langF($$attr8_textvar); - elseif (!empty($attr8_key)) - $tmp_text = $langF($attr8_key); - elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; - elseif (!empty($attr8_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr8_raw); - elseif (!empty($attr8_value)) - $tmp_text = $attr8_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); - if (isset($attr8_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_var) ?><?php unset($attr8_escape) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:1:"_";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','raw'=>'_','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_raw='_' ?><?php $attr8_escape=true ?><?php - if ( isset($attr8_prefix)&& isset($attr8_key)) - $attr8_key = $attr8_prefix.$attr8_key; - if ( isset($attr8_suffix)&& isset($attr8_key)) - $attr8_key = $attr8_key.$attr8_suffix; - if(empty($attr8_title)) - $attr8_title = ''; - if (empty($attr8_type)) - $tmp_tag = 'span'; - else - switch( $attr8_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php - $attr8_title = ''; - if ( $attr8_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr8_array)) - { - $tmpArray = $$attr8_array; - if (!empty($attr8_var)) - $tmp_text = $tmpArray[$attr8_var]; - else - $tmp_text = $langF($tmpArray[$attr8_text]); - } - elseif (!empty($attr8_text)) - $tmp_text = $langF($attr8_text); - elseif (!empty($attr8_textvar)) - $tmp_text = $langF($$attr8_textvar); - elseif (!empty($attr8_key)) - $tmp_text = $langF($attr8_key); - elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; - elseif (!empty($attr8_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr8_raw); - elseif (!empty($attr8_value)) - $tmp_text = $attr8_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); - if (isset($attr8_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_raw) ?><?php unset($attr8_escape) ?><?php $attr8_debug_info = 'a:4:{s:5:"title";s:0:"";s:6:"target";s:5:"_self";s:3:"url";s:16:"var:nextmonthurl";s:5:"class";s:0:"";}' ?><?php $attr8 = array('title'=>'','target'=>'_self','url'=>$nextmonthurl,'class'=>'') ?><?php $attr8_title='' ?><?php $attr8_target='_self' ?><?php $attr8_url=$nextmonthurl ?><?php $attr8_class='' ?><?php - $params = array(); - if (!empty($attr8_var1) && isset($attr8_value1)) - $params[$attr8_var1]=$attr8_value1; - if (!empty($attr8_var2) && isset($attr8_value2)) - $params[$attr8_var2]=$attr8_value2; - if (!empty($attr8_var3) && isset($attr8_value3)) - $params[$attr8_var3]=$attr8_value3; - if (!empty($attr8_var4) && isset($attr8_value4)) - $params[$attr8_var4]=$attr8_value4; - if (!empty($attr8_var5) && isset($attr8_value5)) - $params[$attr8_var5]=$attr8_value5; - if(empty($attr8_class)) - $attr8_class=''; - if(empty($attr8_title)) - $attr8_title = ''; - if(!empty($attr8_url)) - $tmp_url = $attr8_url; - else - $tmp_url = Html::url($attr8_action,$attr8_subaction,!empty($attr8_id)?$attr8_id:$this->getRequestId(),$params); -?><a<?php if (isset($attr8_name)) echo ' name="'.$attr8_name.'"'; else echo ' href="'.$tmp_url.($attr8_anchor?'#'.$attr8_anchor:'').'"' ?> class="<?php echo $attr8_class ?>" target="<?php echo $attr8_target ?>"<?php if (isset($attr8_accesskey)) echo ' accesskey="'.$attr8_accesskey.'"' ?> title="<?php echo encodeHtml($attr8_title) ?>"><?php unset($attr8) ?><?php unset($attr8_title) ?><?php unset($attr8_target) ?><?php unset($attr8_url) ?><?php unset($attr8_class) ?><?php $attr9_debug_info = 'a:2:{s:4:"file";s:5:"right";s:5:"align";s:6:"middle";}' ?><?php $attr9 = array('file'=>'right','align'=>'middle') ?><?php $attr9_file='right' ?><?php $attr9_align='middle' ?><?php -if (isset($attr9_elementtype)) { -?><img src="<?php echo $image_dir.'icon_el_'.$attr9_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php -} elseif (isset($attr9_type)) { -?><img src="<?php echo $image_dir.'icon_'.$attr9_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php -} elseif (isset($attr9_icon)) { -?><img src="<?php echo $image_dir.'icon_'.$attr9_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php -} elseif (isset($attr9_tree)) { -?><img src="<?php echo $image_dir.'tree_'.$attr9_tree.IMG_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php -} elseif (isset($attr9_url)) { -?><img src="<?php echo $attr9_url ?>" border="0" align="<?php echo $attr9_align ?>"><?php -} elseif (isset($attr9_fileext)) { -?><img src="<?php echo $image_dir.$attr9_fileext ?>" border="0" align="<?php echo $attr9_align ?>"><?php -} elseif (isset($attr9_file)) { -?><img src="<?php echo $image_dir.$attr9_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } ?><?php unset($attr9) ?><?php unset($attr9_file) ?><?php unset($attr9_align) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?></a><?php unset($attr7) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:5:"_____";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','raw'=>'_____','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_raw='_____' ?><?php $attr8_escape=true ?><?php - if ( isset($attr8_prefix)&& isset($attr8_key)) - $attr8_key = $attr8_prefix.$attr8_key; - if ( isset($attr8_suffix)&& isset($attr8_key)) - $attr8_key = $attr8_key.$attr8_suffix; - if(empty($attr8_title)) - $attr8_title = ''; - if (empty($attr8_type)) - $tmp_tag = 'span'; - else - switch( $attr8_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php - $attr8_title = ''; - if ( $attr8_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr8_array)) - { - $tmpArray = $$attr8_array; - if (!empty($attr8_var)) - $tmp_text = $tmpArray[$attr8_var]; - else - $tmp_text = $langF($tmpArray[$attr8_text]); - } - elseif (!empty($attr8_text)) - $tmp_text = $langF($attr8_text); - elseif (!empty($attr8_textvar)) - $tmp_text = $langF($$attr8_textvar); - elseif (!empty($attr8_key)) - $tmp_text = $langF($attr8_key); - elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; - elseif (!empty($attr8_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr8_raw); - elseif (!empty($attr8_value)) - $tmp_text = $attr8_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); - if (isset($attr8_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_raw) ?><?php unset($attr8_escape) ?><?php $attr8_debug_info = 'a:4:{s:5:"title";s:0:"";s:6:"target";s:5:"_self";s:3:"url";s:15:"var:lastyearurl";s:5:"class";s:0:"";}' ?><?php $attr8 = array('title'=>'','target'=>'_self','url'=>$lastyearurl,'class'=>'') ?><?php $attr8_title='' ?><?php $attr8_target='_self' ?><?php $attr8_url=$lastyearurl ?><?php $attr8_class='' ?><?php - $params = array(); - if (!empty($attr8_var1) && isset($attr8_value1)) - $params[$attr8_var1]=$attr8_value1; - if (!empty($attr8_var2) && isset($attr8_value2)) - $params[$attr8_var2]=$attr8_value2; - if (!empty($attr8_var3) && isset($attr8_value3)) - $params[$attr8_var3]=$attr8_value3; - if (!empty($attr8_var4) && isset($attr8_value4)) - $params[$attr8_var4]=$attr8_value4; - if (!empty($attr8_var5) && isset($attr8_value5)) - $params[$attr8_var5]=$attr8_value5; - if(empty($attr8_class)) - $attr8_class=''; - if(empty($attr8_title)) - $attr8_title = ''; - if(!empty($attr8_url)) - $tmp_url = $attr8_url; - else - $tmp_url = Html::url($attr8_action,$attr8_subaction,!empty($attr8_id)?$attr8_id:$this->getRequestId(),$params); -?><a<?php if (isset($attr8_name)) echo ' name="'.$attr8_name.'"'; else echo ' href="'.$tmp_url.($attr8_anchor?'#'.$attr8_anchor:'').'"' ?> class="<?php echo $attr8_class ?>" target="<?php echo $attr8_target ?>"<?php if (isset($attr8_accesskey)) echo ' accesskey="'.$attr8_accesskey.'"' ?> title="<?php echo encodeHtml($attr8_title) ?>"><?php unset($attr8) ?><?php unset($attr8_title) ?><?php unset($attr8_target) ?><?php unset($attr8_url) ?><?php unset($attr8_class) ?><?php $attr9_debug_info = 'a:2:{s:4:"file";s:4:"left";s:5:"align";s:6:"middle";}' ?><?php $attr9 = array('file'=>'left','align'=>'middle') ?><?php $attr9_file='left' ?><?php $attr9_align='middle' ?><?php -if (isset($attr9_elementtype)) { -?><img src="<?php echo $image_dir.'icon_el_'.$attr9_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php -} elseif (isset($attr9_type)) { -?><img src="<?php echo $image_dir.'icon_'.$attr9_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php -} elseif (isset($attr9_icon)) { -?><img src="<?php echo $image_dir.'icon_'.$attr9_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php -} elseif (isset($attr9_tree)) { -?><img src="<?php echo $image_dir.'tree_'.$attr9_tree.IMG_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php -} elseif (isset($attr9_url)) { -?><img src="<?php echo $attr9_url ?>" border="0" align="<?php echo $attr9_align ?>"><?php -} elseif (isset($attr9_fileext)) { -?><img src="<?php echo $image_dir.$attr9_fileext ?>" border="0" align="<?php echo $attr9_align ?>"><?php -} elseif (isset($attr9_file)) { -?><img src="<?php echo $image_dir.$attr9_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } ?><?php unset($attr9) ?><?php unset($attr9_file) ?><?php unset($attr9_align) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?></a><?php unset($attr7) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:1:"_";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','raw'=>'_','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_raw='_' ?><?php $attr8_escape=true ?><?php - if ( isset($attr8_prefix)&& isset($attr8_key)) - $attr8_key = $attr8_prefix.$attr8_key; - if ( isset($attr8_suffix)&& isset($attr8_key)) - $attr8_key = $attr8_key.$attr8_suffix; - if(empty($attr8_title)) - $attr8_title = ''; - if (empty($attr8_type)) - $tmp_tag = 'span'; - else - switch( $attr8_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php - $attr8_title = ''; - if ( $attr8_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr8_array)) - { - $tmpArray = $$attr8_array; - if (!empty($attr8_var)) - $tmp_text = $tmpArray[$attr8_var]; - else - $tmp_text = $langF($tmpArray[$attr8_text]); - } - elseif (!empty($attr8_text)) - $tmp_text = $langF($attr8_text); - elseif (!empty($attr8_textvar)) - $tmp_text = $langF($$attr8_textvar); - elseif (!empty($attr8_key)) - $tmp_text = $langF($attr8_key); - elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; - elseif (!empty($attr8_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr8_raw); - elseif (!empty($attr8_value)) - $tmp_text = $attr8_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); - if (isset($attr8_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_raw) ?><?php unset($attr8_escape) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:8:"yearname";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','var'=>'yearname','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_var='yearname' ?><?php $attr8_escape=true ?><?php - if ( isset($attr8_prefix)&& isset($attr8_key)) - $attr8_key = $attr8_prefix.$attr8_key; - if ( isset($attr8_suffix)&& isset($attr8_key)) - $attr8_key = $attr8_key.$attr8_suffix; - if(empty($attr8_title)) - $attr8_title = ''; - if (empty($attr8_type)) - $tmp_tag = 'span'; - else - switch( $attr8_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php - $attr8_title = ''; - if ( $attr8_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr8_array)) - { - $tmpArray = $$attr8_array; - if (!empty($attr8_var)) - $tmp_text = $tmpArray[$attr8_var]; - else - $tmp_text = $langF($tmpArray[$attr8_text]); - } - elseif (!empty($attr8_text)) - $tmp_text = $langF($attr8_text); - elseif (!empty($attr8_textvar)) - $tmp_text = $langF($$attr8_textvar); - elseif (!empty($attr8_key)) - $tmp_text = $langF($attr8_key); - elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; - elseif (!empty($attr8_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr8_raw); - elseif (!empty($attr8_value)) - $tmp_text = $attr8_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); - if (isset($attr8_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_var) ?><?php unset($attr8_escape) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:1:"_";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','raw'=>'_','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_raw='_' ?><?php $attr8_escape=true ?><?php - if ( isset($attr8_prefix)&& isset($attr8_key)) - $attr8_key = $attr8_prefix.$attr8_key; - if ( isset($attr8_suffix)&& isset($attr8_key)) - $attr8_key = $attr8_key.$attr8_suffix; - if(empty($attr8_title)) - $attr8_title = ''; - if (empty($attr8_type)) - $tmp_tag = 'span'; - else - switch( $attr8_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php - $attr8_title = ''; - if ( $attr8_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr8_array)) - { - $tmpArray = $$attr8_array; - if (!empty($attr8_var)) - $tmp_text = $tmpArray[$attr8_var]; - else - $tmp_text = $langF($tmpArray[$attr8_text]); - } - elseif (!empty($attr8_text)) - $tmp_text = $langF($attr8_text); - elseif (!empty($attr8_textvar)) - $tmp_text = $langF($$attr8_textvar); - elseif (!empty($attr8_key)) - $tmp_text = $langF($attr8_key); - elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; - elseif (!empty($attr8_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr8_raw); - elseif (!empty($attr8_value)) - $tmp_text = $attr8_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); - if (isset($attr8_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_raw) ?><?php unset($attr8_escape) ?><?php $attr8_debug_info = 'a:4:{s:5:"title";s:0:"";s:6:"target";s:5:"_self";s:3:"url";s:15:"var:nextyearurl";s:5:"class";s:0:"";}' ?><?php $attr8 = array('title'=>'','target'=>'_self','url'=>$nextyearurl,'class'=>'') ?><?php $attr8_title='' ?><?php $attr8_target='_self' ?><?php $attr8_url=$nextyearurl ?><?php $attr8_class='' ?><?php - $params = array(); - if (!empty($attr8_var1) && isset($attr8_value1)) - $params[$attr8_var1]=$attr8_value1; - if (!empty($attr8_var2) && isset($attr8_value2)) - $params[$attr8_var2]=$attr8_value2; - if (!empty($attr8_var3) && isset($attr8_value3)) - $params[$attr8_var3]=$attr8_value3; - if (!empty($attr8_var4) && isset($attr8_value4)) - $params[$attr8_var4]=$attr8_value4; - if (!empty($attr8_var5) && isset($attr8_value5)) - $params[$attr8_var5]=$attr8_value5; - if(empty($attr8_class)) - $attr8_class=''; - if(empty($attr8_title)) - $attr8_title = ''; - if(!empty($attr8_url)) - $tmp_url = $attr8_url; - else - $tmp_url = Html::url($attr8_action,$attr8_subaction,!empty($attr8_id)?$attr8_id:$this->getRequestId(),$params); -?><a<?php if (isset($attr8_name)) echo ' name="'.$attr8_name.'"'; else echo ' href="'.$tmp_url.($attr8_anchor?'#'.$attr8_anchor:'').'"' ?> class="<?php echo $attr8_class ?>" target="<?php echo $attr8_target ?>"<?php if (isset($attr8_accesskey)) echo ' accesskey="'.$attr8_accesskey.'"' ?> title="<?php echo encodeHtml($attr8_title) ?>"><?php unset($attr8) ?><?php unset($attr8_title) ?><?php unset($attr8_target) ?><?php unset($attr8_url) ?><?php unset($attr8_class) ?><?php $attr9_debug_info = 'a:2:{s:4:"file";s:5:"right";s:5:"align";s:6:"middle";}' ?><?php $attr9 = array('file'=>'right','align'=>'middle') ?><?php $attr9_file='right' ?><?php $attr9_align='middle' ?><?php -if (isset($attr9_elementtype)) { -?><img src="<?php echo $image_dir.'icon_el_'.$attr9_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php -} elseif (isset($attr9_type)) { -?><img src="<?php echo $image_dir.'icon_'.$attr9_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php -} elseif (isset($attr9_icon)) { -?><img src="<?php echo $image_dir.'icon_'.$attr9_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php -} elseif (isset($attr9_tree)) { -?><img src="<?php echo $image_dir.'tree_'.$attr9_tree.IMG_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php -} elseif (isset($attr9_url)) { -?><img src="<?php echo $attr9_url ?>" border="0" align="<?php echo $attr9_align ?>"><?php -} elseif (isset($attr9_fileext)) { -?><img src="<?php echo $image_dir.$attr9_fileext ?>" border="0" align="<?php echo $attr9_align ?>"><?php -} elseif (isset($attr9_file)) { -?><img src="<?php echo $image_dir.$attr9_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } ?><?php unset($attr9) ?><?php unset($attr9_file) ?><?php unset($attr9_align) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?></a><?php unset($attr7) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></tr><?php unset($attr5) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php - $row_class_idx++; - if ($row_class_idx > count($row_classes)) - $row_class_idx=1; - $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr6_class)) - $attr6_class=$row_class; - global $cell_column_nr; - $cell_column_nr=0; - $column_class_idx = 999; -?><tr class="<?php echo $attr6_class ?>"><?php unset($attr6) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr7_class)) - $attr7['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) - $attr7['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:9:"global_nr";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','key'=>'global_nr','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_key='global_nr' ?><?php $attr8_escape=true ?><?php - if ( isset($attr8_prefix)&& isset($attr8_key)) - $attr8_key = $attr8_prefix.$attr8_key; - if ( isset($attr8_suffix)&& isset($attr8_key)) - $attr8_key = $attr8_key.$attr8_suffix; - if(empty($attr8_title)) - $attr8_title = ''; - if (empty($attr8_type)) - $tmp_tag = 'span'; - else - switch( $attr8_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php - $attr8_title = ''; - if ( $attr8_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr8_array)) - { - $tmpArray = $$attr8_array; - if (!empty($attr8_var)) - $tmp_text = $tmpArray[$attr8_var]; - else - $tmp_text = $langF($tmpArray[$attr8_text]); - } - elseif (!empty($attr8_text)) - $tmp_text = $langF($attr8_text); - elseif (!empty($attr8_textvar)) - $tmp_text = $langF($$attr8_textvar); - elseif (!empty($attr8_key)) - $tmp_text = $langF($attr8_key); - elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; - elseif (!empty($attr8_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr8_raw); - elseif (!empty($attr8_value)) - $tmp_text = $attr8_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); - if (isset($attr8_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_key) ?><?php unset($attr8_escape) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr7_debug_info = 'a:4:{s:4:"list";s:8:"weekdays";s:7:"extract";s:5:"false";s:3:"key";s:8:"list_key";s:5:"value";s:7:"weekday";}' ?><?php $attr7 = array('list'=>'weekdays','extract'=>false,'key'=>'list_key','value'=>'weekday') ?><?php $attr7_list='weekdays' ?><?php $attr7_extract=false ?><?php $attr7_key='list_key' ?><?php $attr7_value='weekday' ?><?php - $attr7_list_tmp_key = $attr7_key; - $attr7_list_tmp_value = $attr7_value; - $attr7_list_extract = $attr7_extract; - unset($attr7_key); - unset($attr7_value); - if ( !isset($$attr7_list) || !is_array($$attr7_list) ) - $$attr7_list = array(); - foreach( $$attr7_list as $$attr7_list_tmp_key => $$attr7_list_tmp_value ) - { - if ( $attr7_list_extract ) - { - if ( !is_array($$attr7_list_tmp_value) ) - { - print_r($$attr7_list_tmp_value); - die( 'not an array at key: '.$$attr7_list_tmp_key ); - } - extract($$attr7_list_tmp_value); - } -?><?php unset($attr7) ?><?php unset($attr7_list) ?><?php unset($attr7_extract) ?><?php unset($attr7_key) ?><?php unset($attr7_value) ?><?php $attr8_debug_info = 'a:0:{}' ?><?php $attr8 = array() ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr8_class)) - $attr8['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr8_rowspan) ) - $attr8['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr8 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr8) ?><?php $attr9_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:7:"weekday";s:6:"escape";s:4:"true";}' ?><?php $attr9 = array('class'=>'text','var'=>'weekday','escape'=>true) ?><?php $attr9_class='text' ?><?php $attr9_var='weekday' ?><?php $attr9_escape=true ?><?php - if ( isset($attr9_prefix)&& isset($attr9_key)) - $attr9_key = $attr9_prefix.$attr9_key; - if ( isset($attr9_suffix)&& isset($attr9_key)) - $attr9_key = $attr9_key.$attr9_suffix; - if(empty($attr9_title)) - $attr9_title = ''; - if (empty($attr9_type)) - $tmp_tag = 'span'; - else - switch( $attr9_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 $attr9_class ?>" title="<?php echo $attr9_title ?>"><?php - $attr9_title = ''; - if ( $attr9_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr9_array)) - { - $tmpArray = $$attr9_array; - if (!empty($attr9_var)) - $tmp_text = $tmpArray[$attr9_var]; - else - $tmp_text = $langF($tmpArray[$attr9_text]); - } - elseif (!empty($attr9_text)) - $tmp_text = $langF($attr9_text); - elseif (!empty($attr9_textvar)) - $tmp_text = $langF($$attr9_textvar); - elseif (!empty($attr9_key)) - $tmp_text = $langF($attr9_key); - elseif (!empty($attr9_var)) - $tmp_text = isset($$attr9_var)?$$attr9_var:'?unset:'.$attr9_var.'?'; - elseif (!empty($attr9_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr9_raw); - elseif (!empty($attr9_value)) - $tmp_text = $attr9_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr9_maxlength) && intval($attr9_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr9_maxlength) ); - if (isset($attr9_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr9_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr9) ?><?php unset($attr9_class) ?><?php unset($attr9_var) ?><?php unset($attr9_escape) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?></td><?php unset($attr7) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php } ?><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></tr><?php unset($attr5) ?><?php $attr6_debug_info = 'a:4:{s:4:"list";s:8:"weeklist";s:7:"extract";s:5:"false";s:3:"key";s:6:"weeknr";s:5:"value";s:4:"week";}' ?><?php $attr6 = array('list'=>'weeklist','extract'=>false,'key'=>'weeknr','value'=>'week') ?><?php $attr6_list='weeklist' ?><?php $attr6_extract=false ?><?php $attr6_key='weeknr' ?><?php $attr6_value='week' ?><?php - $attr6_list_tmp_key = $attr6_key; - $attr6_list_tmp_value = $attr6_value; - $attr6_list_extract = $attr6_extract; - unset($attr6_key); - unset($attr6_value); - if ( !isset($$attr6_list) || !is_array($$attr6_list) ) - $$attr6_list = array(); - foreach( $$attr6_list as $$attr6_list_tmp_key => $$attr6_list_tmp_value ) - { - if ( $attr6_list_extract ) - { - if ( !is_array($$attr6_list_tmp_value) ) - { - print_r($$attr6_list_tmp_value); - die( 'not an array at key: '.$$attr6_list_tmp_key ); - } - extract($$attr6_list_tmp_value); - } -?><?php unset($attr6) ?><?php unset($attr6_list) ?><?php unset($attr6_extract) ?><?php unset($attr6_key) ?><?php unset($attr6_value) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?><?php - $row_class_idx++; - if ($row_class_idx > count($row_classes)) - $row_class_idx=1; - $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr7_class)) - $attr7_class=$row_class; - global $cell_column_nr; - $cell_column_nr=0; - $column_class_idx = 999; -?><tr class="<?php echo $attr7_class ?>"><?php unset($attr7) ?><?php $attr8_debug_info = 'a:1:{s:5:"width";s:3:"12%";}' ?><?php $attr8 = array('width'=>'12%') ?><?php $attr8_width='12%' ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr8_class)) - $attr8['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr8_rowspan) ) - $attr8['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr8 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr8) ?><?php unset($attr8_width) ?><?php $attr9_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:6:"weeknr";s:6:"escape";s:4:"true";}' ?><?php $attr9 = array('class'=>'text','var'=>'weeknr','escape'=>true) ?><?php $attr9_class='text' ?><?php $attr9_var='weeknr' ?><?php $attr9_escape=true ?><?php - if ( isset($attr9_prefix)&& isset($attr9_key)) - $attr9_key = $attr9_prefix.$attr9_key; - if ( isset($attr9_suffix)&& isset($attr9_key)) - $attr9_key = $attr9_key.$attr9_suffix; - if(empty($attr9_title)) - $attr9_title = ''; - if (empty($attr9_type)) - $tmp_tag = 'span'; - else - switch( $attr9_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 $attr9_class ?>" title="<?php echo $attr9_title ?>"><?php - $attr9_title = ''; - if ( $attr9_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr9_array)) - { - $tmpArray = $$attr9_array; - if (!empty($attr9_var)) - $tmp_text = $tmpArray[$attr9_var]; - else - $tmp_text = $langF($tmpArray[$attr9_text]); - } - elseif (!empty($attr9_text)) - $tmp_text = $langF($attr9_text); - elseif (!empty($attr9_textvar)) - $tmp_text = $langF($$attr9_textvar); - elseif (!empty($attr9_key)) - $tmp_text = $langF($attr9_key); - elseif (!empty($attr9_var)) - $tmp_text = isset($$attr9_var)?$$attr9_var:'?unset:'.$attr9_var.'?'; - elseif (!empty($attr9_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr9_raw); - elseif (!empty($attr9_value)) - $tmp_text = $attr9_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr9_maxlength) && intval($attr9_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr9_maxlength) ); - if (isset($attr9_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr9_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr9) ?><?php unset($attr9_class) ?><?php unset($attr9_var) ?><?php unset($attr9_escape) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?></td><?php unset($attr7) ?><?php $attr8_debug_info = 'a:4:{s:4:"list";s:4:"week";s:7:"extract";s:4:"true";s:3:"key";s:8:"list_key";s:5:"value";s:10:"list_value";}' ?><?php $attr8 = array('list'=>'week','extract'=>true,'key'=>'list_key','value'=>'list_value') ?><?php $attr8_list='week' ?><?php $attr8_extract=true ?><?php $attr8_key='list_key' ?><?php $attr8_value='list_value' ?><?php - $attr8_list_tmp_key = $attr8_key; - $attr8_list_tmp_value = $attr8_value; - $attr8_list_extract = $attr8_extract; - unset($attr8_key); - unset($attr8_value); - if ( !isset($$attr8_list) || !is_array($$attr8_list) ) - $$attr8_list = array(); - foreach( $$attr8_list as $$attr8_list_tmp_key => $$attr8_list_tmp_value ) - { - if ( $attr8_list_extract ) - { - if ( !is_array($$attr8_list_tmp_value) ) - { - print_r($$attr8_list_tmp_value); - die( 'not an array at key: '.$$attr8_list_tmp_key ); - } - extract($$attr8_list_tmp_value); - } -?><?php unset($attr8) ?><?php unset($attr8_list) ?><?php unset($attr8_extract) ?><?php unset($attr8_key) ?><?php unset($attr8_value) ?><?php $attr9_debug_info = 'a:1:{s:5:"width";s:3:"12%";}' ?><?php $attr9 = array('width'=>'12%') ?><?php $attr9_width='12%' ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr9_class)) - $attr9['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr9_rowspan) ) - $attr9['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr9 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr9) ?><?php unset($attr9_width) ?><?php $attr10_debug_info = 'a:1:{s:5:"empty";s:3:"url";}' ?><?php $attr10 = array('empty'=>'url') ?><?php $attr10_empty='url' ?><?php - if ( isset($attr10_true) ) - { - if (gettype($attr10_true) === '' && gettype($attr10_true) === '1') - $exec = $$attr10_true == true; - else - $exec = $attr10_true == true; - } - elseif ( isset($attr10_false) ) - { - if (gettype($attr10_false) === '' && gettype($attr10_false) === '1') - $exec = $$attr10_false == false; - else - $exec = $attr10_false == false; - } - elseif( isset($attr10_contains) ) - $exec = in_array($attr10_value,explode(',',$attr10_contains)); - elseif( isset($attr10_equals)&& isset($attr10_value) ) - $exec = $attr10_equals == $attr10_value; - elseif( isset($attr10_lessthan)&& isset($attr10_value) ) - $exec = intval($attr10_lessthan) > intval($attr10_value); - elseif( isset($attr10_greaterthan)&& isset($attr10_value) ) - $exec = intval($attr10_greaterthan) < intval($attr10_value); - elseif ( isset($attr10_empty) ) - { - if ( !isset($$attr10_empty) ) - $exec = empty($attr10_empty); - elseif ( is_array($$attr10_empty) ) - $exec = (count($$attr10_empty)==0); - elseif ( is_bool($$attr10_empty) ) - $exec = true; - else - $exec = empty( $$attr10_empty ); - } - elseif ( isset($attr10_present) ) - { - $exec = isset($$attr10_present); - } - else - { - trigger_error("error in IF, assume: FALSE"); - $exec = false; - } - if ( !empty($attr10_invert) ) - $exec = !$exec; - if ( !empty($attr10_not) ) - $exec = !$exec; - unset($attr10_true); - unset($attr10_false); - unset($attr10_notempty); - unset($attr10_empty); - unset($attr10_contains); - unset($attr10_present); - unset($attr10_invert); - unset($attr10_not); - unset($attr10_value); - unset($attr10_equals); - $last_exec = $exec; - if ( $exec ) - { -?> -<?php unset($attr10) ?><?php unset($attr10_empty) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:2:"__";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','raw'=>'__','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_raw='__' ?><?php $attr11_escape=true ?><?php - if ( isset($attr11_prefix)&& isset($attr11_key)) - $attr11_key = $attr11_prefix.$attr11_key; - if ( isset($attr11_suffix)&& isset($attr11_key)) - $attr11_key = $attr11_key.$attr11_suffix; - if(empty($attr11_title)) - $attr11_title = ''; - if (empty($attr11_type)) - $tmp_tag = 'span'; - else - switch( $attr11_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php - $attr11_title = ''; - if ( $attr11_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr11_array)) - { - $tmpArray = $$attr11_array; - if (!empty($attr11_var)) - $tmp_text = $tmpArray[$attr11_var]; - else - $tmp_text = $langF($tmpArray[$attr11_text]); - } - elseif (!empty($attr11_text)) - $tmp_text = $langF($attr11_text); - elseif (!empty($attr11_textvar)) - $tmp_text = $langF($$attr11_textvar); - elseif (!empty($attr11_key)) - $tmp_text = $langF($attr11_key); - elseif (!empty($attr11_var)) - $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; - elseif (!empty($attr11_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr11_raw); - elseif (!empty($attr11_value)) - $tmp_text = $attr11_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); - if (isset($attr11_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_raw) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:2:"nr";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','var'=>'nr','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_var='nr' ?><?php $attr11_escape=true ?><?php - if ( isset($attr11_prefix)&& isset($attr11_key)) - $attr11_key = $attr11_prefix.$attr11_key; - if ( isset($attr11_suffix)&& isset($attr11_key)) - $attr11_key = $attr11_key.$attr11_suffix; - if(empty($attr11_title)) - $attr11_title = ''; - if (empty($attr11_type)) - $tmp_tag = 'span'; - else - switch( $attr11_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php - $attr11_title = ''; - if ( $attr11_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr11_array)) - { - $tmpArray = $$attr11_array; - if (!empty($attr11_var)) - $tmp_text = $tmpArray[$attr11_var]; - else - $tmp_text = $langF($tmpArray[$attr11_text]); - } - elseif (!empty($attr11_text)) - $tmp_text = $langF($attr11_text); - elseif (!empty($attr11_textvar)) - $tmp_text = $langF($$attr11_textvar); - elseif (!empty($attr11_key)) - $tmp_text = $langF($attr11_key); - elseif (!empty($attr11_var)) - $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; - elseif (!empty($attr11_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr11_raw); - elseif (!empty($attr11_value)) - $tmp_text = $attr11_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); - if (isset($attr11_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_var) ?><?php unset($attr11_escape) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:2:"__";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','raw'=>'__','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_raw='__' ?><?php $attr11_escape=true ?><?php - if ( isset($attr11_prefix)&& isset($attr11_key)) - $attr11_key = $attr11_prefix.$attr11_key; - if ( isset($attr11_suffix)&& isset($attr11_key)) - $attr11_key = $attr11_key.$attr11_suffix; - if(empty($attr11_title)) - $attr11_title = ''; - if (empty($attr11_type)) - $tmp_tag = 'span'; - else - switch( $attr11_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php - $attr11_title = ''; - if ( $attr11_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr11_array)) - { - $tmpArray = $$attr11_array; - if (!empty($attr11_var)) - $tmp_text = $tmpArray[$attr11_var]; - else - $tmp_text = $langF($tmpArray[$attr11_text]); - } - elseif (!empty($attr11_text)) - $tmp_text = $langF($attr11_text); - elseif (!empty($attr11_textvar)) - $tmp_text = $langF($$attr11_textvar); - elseif (!empty($attr11_key)) - $tmp_text = $langF($attr11_key); - elseif (!empty($attr11_var)) - $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; - elseif (!empty($attr11_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr11_raw); - elseif (!empty($attr11_value)) - $tmp_text = $attr11_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); - if (isset($attr11_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_raw) ?><?php unset($attr11_escape) ?><?php $attr9_debug_info = 'a:0:{}' ?><?php $attr9 = array() ?><?php } ?><?php unset($attr9) ?><?php $attr10_debug_info = 'a:2:{s:3:"not";s:4:"true";s:5:"empty";s:3:"url";}' ?><?php $attr10 = array('not'=>true,'empty'=>'url') ?><?php $attr10_not=true ?><?php $attr10_empty='url' ?><?php - if ( isset($attr10_true) ) - { - if (gettype($attr10_true) === '' && gettype($attr10_true) === '1') - $exec = $$attr10_true == true; - else - $exec = $attr10_true == true; - } - elseif ( isset($attr10_false) ) - { - if (gettype($attr10_false) === '' && gettype($attr10_false) === '1') - $exec = $$attr10_false == false; - else - $exec = $attr10_false == false; - } - elseif( isset($attr10_contains) ) - $exec = in_array($attr10_value,explode(',',$attr10_contains)); - elseif( isset($attr10_equals)&& isset($attr10_value) ) - $exec = $attr10_equals == $attr10_value; - elseif( isset($attr10_lessthan)&& isset($attr10_value) ) - $exec = intval($attr10_lessthan) > intval($attr10_value); - elseif( isset($attr10_greaterthan)&& isset($attr10_value) ) - $exec = intval($attr10_greaterthan) < intval($attr10_value); - elseif ( isset($attr10_empty) ) - { - if ( !isset($$attr10_empty) ) - $exec = empty($attr10_empty); - elseif ( is_array($$attr10_empty) ) - $exec = (count($$attr10_empty)==0); - elseif ( is_bool($$attr10_empty) ) - $exec = true; - else - $exec = empty( $$attr10_empty ); - } - elseif ( isset($attr10_present) ) - { - $exec = isset($$attr10_present); - } - else - { - trigger_error("error in IF, assume: FALSE"); - $exec = false; - } - if ( !empty($attr10_invert) ) - $exec = !$exec; - if ( !empty($attr10_not) ) - $exec = !$exec; - unset($attr10_true); - unset($attr10_false); - unset($attr10_notempty); - unset($attr10_empty); - unset($attr10_contains); - unset($attr10_present); - unset($attr10_invert); - unset($attr10_not); - unset($attr10_value); - unset($attr10_equals); - $last_exec = $exec; - if ( $exec ) - { -?> -<?php unset($attr10) ?><?php unset($attr10_not) ?><?php unset($attr10_empty) ?><?php $attr11_debug_info = 'a:4:{s:5:"title";s:0:"";s:6:"target";s:5:"_self";s:3:"url";s:7:"var:url";s:5:"class";s:0:"";}' ?><?php $attr11 = array('title'=>'','target'=>'_self','url'=>$url,'class'=>'') ?><?php $attr11_title='' ?><?php $attr11_target='_self' ?><?php $attr11_url=$url ?><?php $attr11_class='' ?><?php - $params = array(); - if (!empty($attr11_var1) && isset($attr11_value1)) - $params[$attr11_var1]=$attr11_value1; - if (!empty($attr11_var2) && isset($attr11_value2)) - $params[$attr11_var2]=$attr11_value2; - if (!empty($attr11_var3) && isset($attr11_value3)) - $params[$attr11_var3]=$attr11_value3; - if (!empty($attr11_var4) && isset($attr11_value4)) - $params[$attr11_var4]=$attr11_value4; - if (!empty($attr11_var5) && isset($attr11_value5)) - $params[$attr11_var5]=$attr11_value5; - if(empty($attr11_class)) - $attr11_class=''; - if(empty($attr11_title)) - $attr11_title = ''; - if(!empty($attr11_url)) - $tmp_url = $attr11_url; - else - $tmp_url = Html::url($attr11_action,$attr11_subaction,!empty($attr11_id)?$attr11_id:$this->getRequestId(),$params); -?><a<?php if (isset($attr11_name)) echo ' name="'.$attr11_name.'"'; else echo ' href="'.$tmp_url.($attr11_anchor?'#'.$attr11_anchor:'').'"' ?> class="<?php echo $attr11_class ?>" target="<?php echo $attr11_target ?>"<?php if (isset($attr11_accesskey)) echo ' accesskey="'.$attr11_accesskey.'"' ?> title="<?php echo encodeHtml($attr11_title) ?>"><?php unset($attr11) ?><?php unset($attr11_title) ?><?php unset($attr11_target) ?><?php unset($attr11_url) ?><?php unset($attr11_class) ?><?php $attr12_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:2:"__";s:6:"escape";s:4:"true";}' ?><?php $attr12 = array('class'=>'text','raw'=>'__','escape'=>true) ?><?php $attr12_class='text' ?><?php $attr12_raw='__' ?><?php $attr12_escape=true ?><?php - if ( isset($attr12_prefix)&& isset($attr12_key)) - $attr12_key = $attr12_prefix.$attr12_key; - if ( isset($attr12_suffix)&& isset($attr12_key)) - $attr12_key = $attr12_key.$attr12_suffix; - if(empty($attr12_title)) - $attr12_title = ''; - if (empty($attr12_type)) - $tmp_tag = 'span'; - else - switch( $attr12_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 $attr12_class ?>" title="<?php echo $attr12_title ?>"><?php - $attr12_title = ''; - if ( $attr12_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr12_array)) - { - $tmpArray = $$attr12_array; - if (!empty($attr12_var)) - $tmp_text = $tmpArray[$attr12_var]; - else - $tmp_text = $langF($tmpArray[$attr12_text]); - } - elseif (!empty($attr12_text)) - $tmp_text = $langF($attr12_text); - elseif (!empty($attr12_textvar)) - $tmp_text = $langF($$attr12_textvar); - elseif (!empty($attr12_key)) - $tmp_text = $langF($attr12_key); - elseif (!empty($attr12_var)) - $tmp_text = isset($$attr12_var)?$$attr12_var:'?unset:'.$attr12_var.'?'; - elseif (!empty($attr12_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr12_raw); - elseif (!empty($attr12_value)) - $tmp_text = $attr12_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr12_maxlength) && intval($attr12_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr12_maxlength) ); - if (isset($attr12_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr12_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr12) ?><?php unset($attr12_class) ?><?php unset($attr12_raw) ?><?php unset($attr12_escape) ?><?php $attr12_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:2:"nr";s:6:"escape";s:4:"true";}' ?><?php $attr12 = array('class'=>'text','var'=>'nr','escape'=>true) ?><?php $attr12_class='text' ?><?php $attr12_var='nr' ?><?php $attr12_escape=true ?><?php - if ( isset($attr12_prefix)&& isset($attr12_key)) - $attr12_key = $attr12_prefix.$attr12_key; - if ( isset($attr12_suffix)&& isset($attr12_key)) - $attr12_key = $attr12_key.$attr12_suffix; - if(empty($attr12_title)) - $attr12_title = ''; - if (empty($attr12_type)) - $tmp_tag = 'span'; - else - switch( $attr12_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 $attr12_class ?>" title="<?php echo $attr12_title ?>"><?php - $attr12_title = ''; - if ( $attr12_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr12_array)) - { - $tmpArray = $$attr12_array; - if (!empty($attr12_var)) - $tmp_text = $tmpArray[$attr12_var]; - else - $tmp_text = $langF($tmpArray[$attr12_text]); - } - elseif (!empty($attr12_text)) - $tmp_text = $langF($attr12_text); - elseif (!empty($attr12_textvar)) - $tmp_text = $langF($$attr12_textvar); - elseif (!empty($attr12_key)) - $tmp_text = $langF($attr12_key); - elseif (!empty($attr12_var)) - $tmp_text = isset($$attr12_var)?$$attr12_var:'?unset:'.$attr12_var.'?'; - elseif (!empty($attr12_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr12_raw); - elseif (!empty($attr12_value)) - $tmp_text = $attr12_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr12_maxlength) && intval($attr12_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr12_maxlength) ); - if (isset($attr12_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr12_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr12) ?><?php unset($attr12_class) ?><?php unset($attr12_var) ?><?php unset($attr12_escape) ?><?php $attr12_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:2:"__";s:6:"escape";s:4:"true";}' ?><?php $attr12 = array('class'=>'text','raw'=>'__','escape'=>true) ?><?php $attr12_class='text' ?><?php $attr12_raw='__' ?><?php $attr12_escape=true ?><?php - if ( isset($attr12_prefix)&& isset($attr12_key)) - $attr12_key = $attr12_prefix.$attr12_key; - if ( isset($attr12_suffix)&& isset($attr12_key)) - $attr12_key = $attr12_key.$attr12_suffix; - if(empty($attr12_title)) - $attr12_title = ''; - if (empty($attr12_type)) - $tmp_tag = 'span'; - else - switch( $attr12_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 $attr12_class ?>" title="<?php echo $attr12_title ?>"><?php - $attr12_title = ''; - if ( $attr12_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr12_array)) - { - $tmpArray = $$attr12_array; - if (!empty($attr12_var)) - $tmp_text = $tmpArray[$attr12_var]; - else - $tmp_text = $langF($tmpArray[$attr12_text]); - } - elseif (!empty($attr12_text)) - $tmp_text = $langF($attr12_text); - elseif (!empty($attr12_textvar)) - $tmp_text = $langF($$attr12_textvar); - elseif (!empty($attr12_key)) - $tmp_text = $langF($attr12_key); - elseif (!empty($attr12_var)) - $tmp_text = isset($$attr12_var)?$$attr12_var:'?unset:'.$attr12_var.'?'; - elseif (!empty($attr12_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr12_raw); - elseif (!empty($attr12_value)) - $tmp_text = $attr12_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr12_maxlength) && intval($attr12_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr12_maxlength) ); - if (isset($attr12_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr12_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr12) ?><?php unset($attr12_class) ?><?php unset($attr12_raw) ?><?php unset($attr12_escape) ?><?php $attr10_debug_info = 'a:0:{}' ?><?php $attr10 = array() ?></a><?php unset($attr10) ?><?php $attr9_debug_info = 'a:0:{}' ?><?php $attr9 = array() ?><?php } ?><?php unset($attr9) ?><?php $attr10_debug_info = 'a:1:{s:4:"true";s:9:"var:today";}' ?><?php $attr10 = array('true'=>$today) ?><?php $attr10_true=$today ?><?php - if ( isset($attr10_true) ) - { - if (gettype($attr10_true) === '' && gettype($attr10_true) === '1') - $exec = $$attr10_true == true; - else - $exec = $attr10_true == true; - } - elseif ( isset($attr10_false) ) - { - if (gettype($attr10_false) === '' && gettype($attr10_false) === '1') - $exec = $$attr10_false == false; - else - $exec = $attr10_false == false; - } - elseif( isset($attr10_contains) ) - $exec = in_array($attr10_value,explode(',',$attr10_contains)); - elseif( isset($attr10_equals)&& isset($attr10_value) ) - $exec = $attr10_equals == $attr10_value; - elseif( isset($attr10_lessthan)&& isset($attr10_value) ) - $exec = intval($attr10_lessthan) > intval($attr10_value); - elseif( isset($attr10_greaterthan)&& isset($attr10_value) ) - $exec = intval($attr10_greaterthan) < intval($attr10_value); - elseif ( isset($attr10_empty) ) - { - if ( !isset($$attr10_empty) ) - $exec = empty($attr10_empty); - elseif ( is_array($$attr10_empty) ) - $exec = (count($$attr10_empty)==0); - elseif ( is_bool($$attr10_empty) ) - $exec = true; - else - $exec = empty( $$attr10_empty ); - } - elseif ( isset($attr10_present) ) - { - $exec = isset($$attr10_present); - } - else - { - trigger_error("error in IF, assume: FALSE"); - $exec = false; - } - if ( !empty($attr10_invert) ) - $exec = !$exec; - if ( !empty($attr10_not) ) - $exec = !$exec; - unset($attr10_true); - unset($attr10_false); - unset($attr10_notempty); - unset($attr10_empty); - unset($attr10_contains); - unset($attr10_present); - unset($attr10_invert); - unset($attr10_not); - unset($attr10_value); - unset($attr10_equals); - $last_exec = $exec; - if ( $exec ) - { -?> -<?php unset($attr10) ?><?php unset($attr10_true) ?><?php $attr11_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:1:"*";s:6:"escape";s:4:"true";}' ?><?php $attr11 = array('class'=>'text','raw'=>'*','escape'=>true) ?><?php $attr11_class='text' ?><?php $attr11_raw='*' ?><?php $attr11_escape=true ?><?php - if ( isset($attr11_prefix)&& isset($attr11_key)) - $attr11_key = $attr11_prefix.$attr11_key; - if ( isset($attr11_suffix)&& isset($attr11_key)) - $attr11_key = $attr11_key.$attr11_suffix; - if(empty($attr11_title)) - $attr11_title = ''; - if (empty($attr11_type)) - $tmp_tag = 'span'; - else - switch( $attr11_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php - $attr11_title = ''; - if ( $attr11_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr11_array)) - { - $tmpArray = $$attr11_array; - if (!empty($attr11_var)) - $tmp_text = $tmpArray[$attr11_var]; - else - $tmp_text = $langF($tmpArray[$attr11_text]); - } - elseif (!empty($attr11_text)) - $tmp_text = $langF($attr11_text); - elseif (!empty($attr11_textvar)) - $tmp_text = $langF($$attr11_textvar); - elseif (!empty($attr11_key)) - $tmp_text = $langF($attr11_key); - elseif (!empty($attr11_var)) - $tmp_text = isset($$attr11_var)?$$attr11_var:'?unset:'.$attr11_var.'?'; - elseif (!empty($attr11_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr11_raw); - elseif (!empty($attr11_value)) - $tmp_text = $attr11_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); - if (isset($attr11_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr11_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_raw) ?><?php unset($attr11_escape) ?><?php $attr9_debug_info = 'a:0:{}' ?><?php $attr9 = array() ?><?php } ?><?php unset($attr9) ?><?php $attr8_debug_info = 'a:0:{}' ?><?php $attr8 = array() ?></td><?php unset($attr8) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?><?php } ?><?php unset($attr7) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></tr><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php } ?><?php unset($attr5) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php - $row_class_idx++; - if ($row_class_idx > count($row_classes)) - $row_class_idx=1; - $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr6_class)) - $attr6_class=$row_class; - global $cell_column_nr; - $cell_column_nr=0; - $column_class_idx = 999; -?><tr class="<?php echo $attr6_class ?>"><?php unset($attr6) ?><?php $attr7_debug_info = 'a:2:{s:5:"class";s:2:"fx";s:7:"colspan";s:1:"2";}' ?><?php $attr7 = array('class'=>'fx','colspan'=>'2') ?><?php $attr7_class='fx' ?><?php $attr7_colspan='2' ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr7_class)) - $attr7['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) - $attr7['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_colspan) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:4:"date";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','key'=>'date','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_key='date' ?><?php $attr8_escape=true ?><?php - if ( isset($attr8_prefix)&& isset($attr8_key)) - $attr8_key = $attr8_prefix.$attr8_key; - if ( isset($attr8_suffix)&& isset($attr8_key)) - $attr8_key = $attr8_key.$attr8_suffix; - if(empty($attr8_title)) - $attr8_title = ''; - if (empty($attr8_type)) - $tmp_tag = 'span'; - else - switch( $attr8_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php - $attr8_title = ''; - if ( $attr8_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr8_array)) - { - $tmpArray = $$attr8_array; - if (!empty($attr8_var)) - $tmp_text = $tmpArray[$attr8_var]; - else - $tmp_text = $langF($tmpArray[$attr8_text]); - } - elseif (!empty($attr8_text)) - $tmp_text = $langF($attr8_text); - elseif (!empty($attr8_textvar)) - $tmp_text = $langF($$attr8_textvar); - elseif (!empty($attr8_key)) - $tmp_text = $langF($attr8_key); - elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; - elseif (!empty($attr8_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr8_raw); - elseif (!empty($attr8_value)) - $tmp_text = $attr8_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); - if (isset($attr8_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_key) ?><?php unset($attr8_escape) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr7_debug_info = 'a:2:{s:5:"class";s:2:"fx";s:7:"colspan";s:1:"5";}' ?><?php $attr7 = array('class'=>'fx','colspan'=>'5') ?><?php $attr7_class='fx' ?><?php $attr7_colspan='5' ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr7_class)) - $attr7['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) - $attr7['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_colspan) ?><?php $attr8_debug_info = 'a:9:{s:4:"list";s:9:"all_years";s:4:"name";s:4:"year";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr8 = array('list'=>'all_years','name'=>'year','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr8_list='all_years' ?><?php $attr8_name='year' ?><?php $attr8_onchange='' ?><?php $attr8_title='' ?><?php $attr8_class='' ?><?php $attr8_addempty=false ?><?php $attr8_multiple=false ?><?php $attr8_size='1' ?><?php $attr8_lang=false ?><?php -if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr8_readonly=true; -if ( $attr8_addempty!==FALSE ) -{ - if ($attr8_addempty===TRUE) - $$attr8_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$$attr8_list; - else - $$attr8_list = array(''=>'- '.lang($attr8_addempty).' -')+$$attr8_list; -} -?><select<?php if ($attr8_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name; if ($attr8_multiple) echo '[]'; ?>" onchange="<?php echo $attr8_onchange ?>" title="<?php echo $attr8_title ?>" class="<?php echo $attr8_class ?>"<?php -if (count($$attr8_list)<=1) echo ' disabled="disabled"'; -if ($attr8_multiple) echo ' multiple="multiple"'; -if (in_array($attr8_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; -echo ' size="'.intval($attr8_size).'"'; -?>><?php - $attr8_tmp_list = $$attr8_list; - if ( isset($$attr8_name) && isset($attr8_tmp_list[$$attr8_name]) ) - $attr8_tmp_default = $$attr8_name; - elseif ( isset($attr8_default) ) - $attr8_tmp_default = $attr8_default; - else - $attr8_tmp_default = ''; - foreach( $attr8_tmp_list as $box_key=>$box_value ) - { - if ( is_array($box_value) ) - { - $box_key = $box_value['key' ]; - $box_title = $box_value['title']; - $box_value = $box_value['value']; - } - elseif( $attr8_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - echo '<option class="'.$attr8_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ($box_key==$attr8_tmp_default) - echo ' selected="selected"'; - echo '>'.$box_value.'</option>'; - } -?></select><?php -if (count($$attr8_list)==0) echo '<input type="hidden" name="'.$attr8_name.'" value="" />'; -if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" value="'.$box_key.'" />' -?><?php unset($attr8) ?><?php unset($attr8_list) ?><?php unset($attr8_name) ?><?php unset($attr8_onchange) ?><?php unset($attr8_title) ?><?php unset($attr8_class) ?><?php unset($attr8_addempty) ?><?php unset($attr8_multiple) ?><?php unset($attr8_size) ?><?php unset($attr8_lang) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:3:"_-_";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','raw'=>'_-_','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_raw='_-_' ?><?php $attr8_escape=true ?><?php - if ( isset($attr8_prefix)&& isset($attr8_key)) - $attr8_key = $attr8_prefix.$attr8_key; - if ( isset($attr8_suffix)&& isset($attr8_key)) - $attr8_key = $attr8_key.$attr8_suffix; - if(empty($attr8_title)) - $attr8_title = ''; - if (empty($attr8_type)) - $tmp_tag = 'span'; - else - switch( $attr8_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php - $attr8_title = ''; - if ( $attr8_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr8_array)) - { - $tmpArray = $$attr8_array; - if (!empty($attr8_var)) - $tmp_text = $tmpArray[$attr8_var]; - else - $tmp_text = $langF($tmpArray[$attr8_text]); - } - elseif (!empty($attr8_text)) - $tmp_text = $langF($attr8_text); - elseif (!empty($attr8_textvar)) - $tmp_text = $langF($$attr8_textvar); - elseif (!empty($attr8_key)) - $tmp_text = $langF($attr8_key); - elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; - elseif (!empty($attr8_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr8_raw); - elseif (!empty($attr8_value)) - $tmp_text = $attr8_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); - if (isset($attr8_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_raw) ?><?php unset($attr8_escape) ?><?php $attr8_debug_info = 'a:9:{s:4:"list";s:10:"all_months";s:4:"name";s:5:"month";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr8 = array('list'=>'all_months','name'=>'month','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr8_list='all_months' ?><?php $attr8_name='month' ?><?php $attr8_onchange='' ?><?php $attr8_title='' ?><?php $attr8_class='' ?><?php $attr8_addempty=false ?><?php $attr8_multiple=false ?><?php $attr8_size='1' ?><?php $attr8_lang=false ?><?php -if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr8_readonly=true; -if ( $attr8_addempty!==FALSE ) -{ - if ($attr8_addempty===TRUE) - $$attr8_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$$attr8_list; - else - $$attr8_list = array(''=>'- '.lang($attr8_addempty).' -')+$$attr8_list; -} -?><select<?php if ($attr8_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name; if ($attr8_multiple) echo '[]'; ?>" onchange="<?php echo $attr8_onchange ?>" title="<?php echo $attr8_title ?>" class="<?php echo $attr8_class ?>"<?php -if (count($$attr8_list)<=1) echo ' disabled="disabled"'; -if ($attr8_multiple) echo ' multiple="multiple"'; -if (in_array($attr8_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; -echo ' size="'.intval($attr8_size).'"'; -?>><?php - $attr8_tmp_list = $$attr8_list; - if ( isset($$attr8_name) && isset($attr8_tmp_list[$$attr8_name]) ) - $attr8_tmp_default = $$attr8_name; - elseif ( isset($attr8_default) ) - $attr8_tmp_default = $attr8_default; - else - $attr8_tmp_default = ''; - foreach( $attr8_tmp_list as $box_key=>$box_value ) - { - if ( is_array($box_value) ) - { - $box_key = $box_value['key' ]; - $box_title = $box_value['title']; - $box_value = $box_value['value']; - } - elseif( $attr8_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - echo '<option class="'.$attr8_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ($box_key==$attr8_tmp_default) - echo ' selected="selected"'; - echo '>'.$box_value.'</option>'; - } -?></select><?php -if (count($$attr8_list)==0) echo '<input type="hidden" name="'.$attr8_name.'" value="" />'; -if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" value="'.$box_key.'" />' -?><?php unset($attr8) ?><?php unset($attr8_list) ?><?php unset($attr8_name) ?><?php unset($attr8_onchange) ?><?php unset($attr8_title) ?><?php unset($attr8_class) ?><?php unset($attr8_addempty) ?><?php unset($attr8_multiple) ?><?php unset($attr8_size) ?><?php unset($attr8_lang) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:3:"_-_";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','raw'=>'_-_','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_raw='_-_' ?><?php $attr8_escape=true ?><?php - if ( isset($attr8_prefix)&& isset($attr8_key)) - $attr8_key = $attr8_prefix.$attr8_key; - if ( isset($attr8_suffix)&& isset($attr8_key)) - $attr8_key = $attr8_key.$attr8_suffix; - if(empty($attr8_title)) - $attr8_title = ''; - if (empty($attr8_type)) - $tmp_tag = 'span'; - else - switch( $attr8_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php - $attr8_title = ''; - if ( $attr8_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr8_array)) - { - $tmpArray = $$attr8_array; - if (!empty($attr8_var)) - $tmp_text = $tmpArray[$attr8_var]; - else - $tmp_text = $langF($tmpArray[$attr8_text]); - } - elseif (!empty($attr8_text)) - $tmp_text = $langF($attr8_text); - elseif (!empty($attr8_textvar)) - $tmp_text = $langF($$attr8_textvar); - elseif (!empty($attr8_key)) - $tmp_text = $langF($attr8_key); - elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; - elseif (!empty($attr8_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr8_raw); - elseif (!empty($attr8_value)) - $tmp_text = $attr8_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); - if (isset($attr8_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_raw) ?><?php unset($attr8_escape) ?><?php $attr8_debug_info = 'a:9:{s:4:"list";s:8:"all_days";s:4:"name";s:3:"day";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr8 = array('list'=>'all_days','name'=>'day','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr8_list='all_days' ?><?php $attr8_name='day' ?><?php $attr8_onchange='' ?><?php $attr8_title='' ?><?php $attr8_class='' ?><?php $attr8_addempty=false ?><?php $attr8_multiple=false ?><?php $attr8_size='1' ?><?php $attr8_lang=false ?><?php -if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr8_readonly=true; -if ( $attr8_addempty!==FALSE ) -{ - if ($attr8_addempty===TRUE) - $$attr8_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$$attr8_list; - else - $$attr8_list = array(''=>'- '.lang($attr8_addempty).' -')+$$attr8_list; -} -?><select<?php if ($attr8_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name; if ($attr8_multiple) echo '[]'; ?>" onchange="<?php echo $attr8_onchange ?>" title="<?php echo $attr8_title ?>" class="<?php echo $attr8_class ?>"<?php -if (count($$attr8_list)<=1) echo ' disabled="disabled"'; -if ($attr8_multiple) echo ' multiple="multiple"'; -if (in_array($attr8_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; -echo ' size="'.intval($attr8_size).'"'; -?>><?php - $attr8_tmp_list = $$attr8_list; - if ( isset($$attr8_name) && isset($attr8_tmp_list[$$attr8_name]) ) - $attr8_tmp_default = $$attr8_name; - elseif ( isset($attr8_default) ) - $attr8_tmp_default = $attr8_default; - else - $attr8_tmp_default = ''; - foreach( $attr8_tmp_list as $box_key=>$box_value ) - { - if ( is_array($box_value) ) - { - $box_key = $box_value['key' ]; - $box_title = $box_value['title']; - $box_value = $box_value['value']; - } - elseif( $attr8_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - echo '<option class="'.$attr8_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ($box_key==$attr8_tmp_default) - echo ' selected="selected"'; - echo '>'.$box_value.'</option>'; - } -?></select><?php -if (count($$attr8_list)==0) echo '<input type="hidden" name="'.$attr8_name.'" value="" />'; -if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" value="'.$box_key.'" />' -?><?php unset($attr8) ?><?php unset($attr8_list) ?><?php unset($attr8_name) ?><?php unset($attr8_onchange) ?><?php unset($attr8_title) ?><?php unset($attr8_class) ?><?php unset($attr8_addempty) ?><?php unset($attr8_multiple) ?><?php unset($attr8_size) ?><?php unset($attr8_lang) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></tr><?php unset($attr5) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php - $row_class_idx++; - if ($row_class_idx > count($row_classes)) - $row_class_idx=1; - $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr6_class)) - $attr6_class=$row_class; - global $cell_column_nr; - $cell_column_nr=0; - $column_class_idx = 999; -?><tr class="<?php echo $attr6_class ?>"><?php unset($attr6) ?><?php $attr7_debug_info = 'a:2:{s:5:"class";s:2:"fx";s:7:"colspan";s:1:"2";}' ?><?php $attr7 = array('class'=>'fx','colspan'=>'2') ?><?php $attr7_class='fx' ?><?php $attr7_colspan='2' ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr7_class)) - $attr7['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) - $attr7['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_colspan) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"key";s:9:"date_time";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','key'=>'date_time','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_key='date_time' ?><?php $attr8_escape=true ?><?php - if ( isset($attr8_prefix)&& isset($attr8_key)) - $attr8_key = $attr8_prefix.$attr8_key; - if ( isset($attr8_suffix)&& isset($attr8_key)) - $attr8_key = $attr8_key.$attr8_suffix; - if(empty($attr8_title)) - $attr8_title = ''; - if (empty($attr8_type)) - $tmp_tag = 'span'; - else - switch( $attr8_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php - $attr8_title = ''; - if ( $attr8_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr8_array)) - { - $tmpArray = $$attr8_array; - if (!empty($attr8_var)) - $tmp_text = $tmpArray[$attr8_var]; - else - $tmp_text = $langF($tmpArray[$attr8_text]); - } - elseif (!empty($attr8_text)) - $tmp_text = $langF($attr8_text); - elseif (!empty($attr8_textvar)) - $tmp_text = $langF($$attr8_textvar); - elseif (!empty($attr8_key)) - $tmp_text = $langF($attr8_key); - elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; - elseif (!empty($attr8_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr8_raw); - elseif (!empty($attr8_value)) - $tmp_text = $attr8_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); - if (isset($attr8_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_key) ?><?php unset($attr8_escape) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr7_debug_info = 'a:2:{s:5:"class";s:2:"fx";s:7:"colspan";s:1:"5";}' ?><?php $attr7 = array('class'=>'fx','colspan'=>'5') ?><?php $attr7_class='fx' ?><?php $attr7_colspan='5' ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr7_class)) - $attr7['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) - $attr7['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_colspan) ?><?php $attr8_debug_info = 'a:9:{s:4:"list";s:9:"all_hours";s:4:"name";s:4:"hour";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr8 = array('list'=>'all_hours','name'=>'hour','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr8_list='all_hours' ?><?php $attr8_name='hour' ?><?php $attr8_onchange='' ?><?php $attr8_title='' ?><?php $attr8_class='' ?><?php $attr8_addempty=false ?><?php $attr8_multiple=false ?><?php $attr8_size='1' ?><?php $attr8_lang=false ?><?php -if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr8_readonly=true; -if ( $attr8_addempty!==FALSE ) -{ - if ($attr8_addempty===TRUE) - $$attr8_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$$attr8_list; - else - $$attr8_list = array(''=>'- '.lang($attr8_addempty).' -')+$$attr8_list; -} -?><select<?php if ($attr8_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name; if ($attr8_multiple) echo '[]'; ?>" onchange="<?php echo $attr8_onchange ?>" title="<?php echo $attr8_title ?>" class="<?php echo $attr8_class ?>"<?php -if (count($$attr8_list)<=1) echo ' disabled="disabled"'; -if ($attr8_multiple) echo ' multiple="multiple"'; -if (in_array($attr8_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; -echo ' size="'.intval($attr8_size).'"'; -?>><?php - $attr8_tmp_list = $$attr8_list; - if ( isset($$attr8_name) && isset($attr8_tmp_list[$$attr8_name]) ) - $attr8_tmp_default = $$attr8_name; - elseif ( isset($attr8_default) ) - $attr8_tmp_default = $attr8_default; - else - $attr8_tmp_default = ''; - foreach( $attr8_tmp_list as $box_key=>$box_value ) - { - if ( is_array($box_value) ) - { - $box_key = $box_value['key' ]; - $box_title = $box_value['title']; - $box_value = $box_value['value']; - } - elseif( $attr8_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - echo '<option class="'.$attr8_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ($box_key==$attr8_tmp_default) - echo ' selected="selected"'; - echo '>'.$box_value.'</option>'; - } -?></select><?php -if (count($$attr8_list)==0) echo '<input type="hidden" name="'.$attr8_name.'" value="" />'; -if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" value="'.$box_key.'" />' -?><?php unset($attr8) ?><?php unset($attr8_list) ?><?php unset($attr8_name) ?><?php unset($attr8_onchange) ?><?php unset($attr8_title) ?><?php unset($attr8_class) ?><?php unset($attr8_addempty) ?><?php unset($attr8_multiple) ?><?php unset($attr8_size) ?><?php unset($attr8_lang) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:3:"_-_";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','raw'=>'_-_','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_raw='_-_' ?><?php $attr8_escape=true ?><?php - if ( isset($attr8_prefix)&& isset($attr8_key)) - $attr8_key = $attr8_prefix.$attr8_key; - if ( isset($attr8_suffix)&& isset($attr8_key)) - $attr8_key = $attr8_key.$attr8_suffix; - if(empty($attr8_title)) - $attr8_title = ''; - if (empty($attr8_type)) - $tmp_tag = 'span'; - else - switch( $attr8_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php - $attr8_title = ''; - if ( $attr8_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr8_array)) - { - $tmpArray = $$attr8_array; - if (!empty($attr8_var)) - $tmp_text = $tmpArray[$attr8_var]; - else - $tmp_text = $langF($tmpArray[$attr8_text]); - } - elseif (!empty($attr8_text)) - $tmp_text = $langF($attr8_text); - elseif (!empty($attr8_textvar)) - $tmp_text = $langF($$attr8_textvar); - elseif (!empty($attr8_key)) - $tmp_text = $langF($attr8_key); - elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; - elseif (!empty($attr8_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr8_raw); - elseif (!empty($attr8_value)) - $tmp_text = $attr8_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); - if (isset($attr8_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_raw) ?><?php unset($attr8_escape) ?><?php $attr8_debug_info = 'a:9:{s:4:"list";s:11:"all_minutes";s:4:"name";s:6:"minute";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr8 = array('list'=>'all_minutes','name'=>'minute','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr8_list='all_minutes' ?><?php $attr8_name='minute' ?><?php $attr8_onchange='' ?><?php $attr8_title='' ?><?php $attr8_class='' ?><?php $attr8_addempty=false ?><?php $attr8_multiple=false ?><?php $attr8_size='1' ?><?php $attr8_lang=false ?><?php -if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr8_readonly=true; -if ( $attr8_addempty!==FALSE ) -{ - if ($attr8_addempty===TRUE) - $$attr8_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$$attr8_list; - else - $$attr8_list = array(''=>'- '.lang($attr8_addempty).' -')+$$attr8_list; -} -?><select<?php if ($attr8_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name; if ($attr8_multiple) echo '[]'; ?>" onchange="<?php echo $attr8_onchange ?>" title="<?php echo $attr8_title ?>" class="<?php echo $attr8_class ?>"<?php -if (count($$attr8_list)<=1) echo ' disabled="disabled"'; -if ($attr8_multiple) echo ' multiple="multiple"'; -if (in_array($attr8_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; -echo ' size="'.intval($attr8_size).'"'; -?>><?php - $attr8_tmp_list = $$attr8_list; - if ( isset($$attr8_name) && isset($attr8_tmp_list[$$attr8_name]) ) - $attr8_tmp_default = $$attr8_name; - elseif ( isset($attr8_default) ) - $attr8_tmp_default = $attr8_default; - else - $attr8_tmp_default = ''; - foreach( $attr8_tmp_list as $box_key=>$box_value ) - { - if ( is_array($box_value) ) - { - $box_key = $box_value['key' ]; - $box_title = $box_value['title']; - $box_value = $box_value['value']; - } - elseif( $attr8_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - echo '<option class="'.$attr8_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ($box_key==$attr8_tmp_default) - echo ' selected="selected"'; - echo '>'.$box_value.'</option>'; - } -?></select><?php -if (count($$attr8_list)==0) echo '<input type="hidden" name="'.$attr8_name.'" value="" />'; -if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" value="'.$box_key.'" />' -?><?php unset($attr8) ?><?php unset($attr8_list) ?><?php unset($attr8_name) ?><?php unset($attr8_onchange) ?><?php unset($attr8_title) ?><?php unset($attr8_class) ?><?php unset($attr8_addempty) ?><?php unset($attr8_multiple) ?><?php unset($attr8_size) ?><?php unset($attr8_lang) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"raw";s:3:"_-_";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','raw'=>'_-_','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_raw='_-_' ?><?php $attr8_escape=true ?><?php - if ( isset($attr8_prefix)&& isset($attr8_key)) - $attr8_key = $attr8_prefix.$attr8_key; - if ( isset($attr8_suffix)&& isset($attr8_key)) - $attr8_key = $attr8_key.$attr8_suffix; - if(empty($attr8_title)) - $attr8_title = ''; - if (empty($attr8_type)) - $tmp_tag = 'span'; - else - switch( $attr8_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php - $attr8_title = ''; - if ( $attr8_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr8_array)) - { - $tmpArray = $$attr8_array; - if (!empty($attr8_var)) - $tmp_text = $tmpArray[$attr8_var]; - else - $tmp_text = $langF($tmpArray[$attr8_text]); - } - elseif (!empty($attr8_text)) - $tmp_text = $langF($attr8_text); - elseif (!empty($attr8_textvar)) - $tmp_text = $langF($$attr8_textvar); - elseif (!empty($attr8_key)) - $tmp_text = $langF($attr8_key); - elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; - elseif (!empty($attr8_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr8_raw); - elseif (!empty($attr8_value)) - $tmp_text = $attr8_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); - if (isset($attr8_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_raw) ?><?php unset($attr8_escape) ?><?php $attr8_debug_info = 'a:9:{s:4:"list";s:11:"all_seconds";s:4:"name";s:6:"second";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr8 = array('list'=>'all_seconds','name'=>'second','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr8_list='all_seconds' ?><?php $attr8_name='second' ?><?php $attr8_onchange='' ?><?php $attr8_title='' ?><?php $attr8_class='' ?><?php $attr8_addempty=false ?><?php $attr8_multiple=false ?><?php $attr8_size='1' ?><?php $attr8_lang=false ?><?php -if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr8_readonly=true; -if ( $attr8_addempty!==FALSE ) -{ - if ($attr8_addempty===TRUE) - $$attr8_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$$attr8_list; - else - $$attr8_list = array(''=>'- '.lang($attr8_addempty).' -')+$$attr8_list; -} -?><select<?php if ($attr8_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name; if ($attr8_multiple) echo '[]'; ?>" onchange="<?php echo $attr8_onchange ?>" title="<?php echo $attr8_title ?>" class="<?php echo $attr8_class ?>"<?php -if (count($$attr8_list)<=1) echo ' disabled="disabled"'; -if ($attr8_multiple) echo ' multiple="multiple"'; -if (in_array($attr8_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; -echo ' size="'.intval($attr8_size).'"'; -?>><?php - $attr8_tmp_list = $$attr8_list; - if ( isset($$attr8_name) && isset($attr8_tmp_list[$$attr8_name]) ) - $attr8_tmp_default = $$attr8_name; - elseif ( isset($attr8_default) ) - $attr8_tmp_default = $attr8_default; - else - $attr8_tmp_default = ''; - foreach( $attr8_tmp_list as $box_key=>$box_value ) - { - if ( is_array($box_value) ) - { - $box_key = $box_value['key' ]; - $box_title = $box_value['title']; - $box_value = $box_value['value']; - } - elseif( $attr8_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - echo '<option class="'.$attr8_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ($box_key==$attr8_tmp_default) - echo ' selected="selected"'; - echo '>'.$box_value.'</option>'; - } -?></select><?php -if (count($$attr8_list)==0) echo '<input type="hidden" name="'.$attr8_name.'" value="" />'; -if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" value="'.$box_key.'" />' -?><?php unset($attr8) ?><?php unset($attr8_list) ?><?php unset($attr8_name) ?><?php unset($attr8_onchange) ?><?php unset($attr8_title) ?><?php unset($attr8_class) ?><?php unset($attr8_addempty) ?><?php unset($attr8_multiple) ?><?php unset($attr8_size) ?><?php unset($attr8_lang) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></tr><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></table><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:2:{s:6:"equals";s:4:"text";s:5:"value";s:8:"var:type";}' ?><?php $attr4 = array('equals'=>'text','value'=>$type) ?><?php $attr4_equals='text' ?><?php $attr4_value=$type ?><?php - if ( isset($attr4_true) ) - { - if (gettype($attr4_true) === '' && gettype($attr4_true) === '1') - $exec = $$attr4_true == true; - else - $exec = $attr4_true == true; - } - elseif ( isset($attr4_false) ) - { - if (gettype($attr4_false) === '' && gettype($attr4_false) === '1') - $exec = $$attr4_false == false; - else - $exec = $attr4_false == false; - } - elseif( isset($attr4_contains) ) - $exec = in_array($attr4_value,explode(',',$attr4_contains)); - elseif( isset($attr4_equals)&& isset($attr4_value) ) - $exec = $attr4_equals == $attr4_value; - elseif( isset($attr4_lessthan)&& isset($attr4_value) ) - $exec = intval($attr4_lessthan) > intval($attr4_value); - elseif( isset($attr4_greaterthan)&& isset($attr4_value) ) - $exec = intval($attr4_greaterthan) < intval($attr4_value); - elseif ( isset($attr4_empty) ) - { - if ( !isset($$attr4_empty) ) - $exec = empty($attr4_empty); - elseif ( is_array($$attr4_empty) ) - $exec = (count($$attr4_empty)==0); - elseif ( is_bool($$attr4_empty) ) - $exec = true; - else - $exec = empty( $$attr4_empty ); - } - elseif ( isset($attr4_present) ) - { - $exec = isset($$attr4_present); - } - else - { - trigger_error("error in IF, assume: FALSE"); - $exec = false; - } - if ( !empty($attr4_invert) ) - $exec = !$exec; - if ( !empty($attr4_not) ) - $exec = !$exec; - unset($attr4_true); - unset($attr4_false); - unset($attr4_notempty); - unset($attr4_empty); - unset($attr4_contains); - unset($attr4_present); - unset($attr4_invert); - unset($attr4_not); - unset($attr4_value); - unset($attr4_equals); - $last_exec = $exec; - if ( $exec ) - { -?> -<?php unset($attr4) ?><?php unset($attr4_equals) ?><?php unset($attr4_value) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php - $row_class_idx++; - if ($row_class_idx > count($row_classes)) - $row_class_idx=1; - $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr5_class)) - $attr5_class=$row_class; - global $cell_column_nr; - $cell_column_nr=0; - $column_class_idx = 999; -?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6_debug_info = 'a:2:{s:5:"class";s:2:"fx";s:7:"colspan";s:1:"2";}' ?><?php $attr6 = array('class'=>'fx','colspan'=>'2') ?><?php $attr6_class='fx' ?><?php $attr6_colspan='2' ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr6_class)) - $attr6['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) - $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7_debug_info = 'a:8:{s:5:"class";s:4:"text";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:4:"text";s:4:"size";s:2:"50";s:9:"maxlength";s:3:"255";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr7 = array('class'=>'text','default'=>'','type'=>'text','name'=>'text','size'=>'50','maxlength'=>'255','onchange'=>'','readonly'=>false) ?><?php $attr7_class='text' ?><?php $attr7_default='' ?><?php $attr7_type='text' ?><?php $attr7_name='text' ?><?php $attr7_size='50' ?><?php $attr7_maxlength='255' ?><?php $attr7_onchange='' ?><?php $attr7_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; - if ($attr7_readonly && empty($$attr7_name)) $$attr7_name = '- '.lang('EMPTY').' -'; - if(!isset($attr7_default)) $attr7_default=''; -?><?php if (!$attr7_readonly || $attr7_type=='hidden') { -?><input<?php if ($attr7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" name="<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" type="<?php echo $attr7_type ?>" size="<?php echo $attr7_size ?>" maxlength="<?php echo $attr7_maxlength ?>" class="<?php echo $attr7_class ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" <?php if (in_array($attr7_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php -if ($attr7_readonly) { -?><input type="hidden" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" /><?php - } } else { ?><span class="<?php echo $attr7_class ?>"><?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?></span><?php } ?><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_default) ?><?php unset($attr7_type) ?><?php unset($attr7_name) ?><?php unset($attr7_size) ?><?php unset($attr7_maxlength) ?><?php unset($attr7_onchange) ?><?php unset($attr7_readonly) ?><?php $attr7_debug_info = 'a:1:{s:5:"field";s:4:"text";}' ?><?php $attr7 = array('field'=>'text') ?><?php $attr7_field='text' ?><?php -if (isset($errors[0])) $attr7_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $attr7_field ?>.focus(); -document.forms[0].<?php echo $attr7_field ?>.select(); -</script> -<?php unset($attr7) ?><?php unset($attr7_field) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:2:{s:6:"equals";s:8:"longtext";s:5:"value";s:8:"var:type";}' ?><?php $attr4 = array('equals'=>'longtext','value'=>$type) ?><?php $attr4_equals='longtext' ?><?php $attr4_value=$type ?><?php - if ( isset($attr4_true) ) - { - if (gettype($attr4_true) === '' && gettype($attr4_true) === '1') - $exec = $$attr4_true == true; - else - $exec = $attr4_true == true; - } - elseif ( isset($attr4_false) ) - { - if (gettype($attr4_false) === '' && gettype($attr4_false) === '1') - $exec = $$attr4_false == false; - else - $exec = $attr4_false == false; - } - elseif( isset($attr4_contains) ) - $exec = in_array($attr4_value,explode(',',$attr4_contains)); - elseif( isset($attr4_equals)&& isset($attr4_value) ) - $exec = $attr4_equals == $attr4_value; - elseif( isset($attr4_lessthan)&& isset($attr4_value) ) - $exec = intval($attr4_lessthan) > intval($attr4_value); - elseif( isset($attr4_greaterthan)&& isset($attr4_value) ) - $exec = intval($attr4_greaterthan) < intval($attr4_value); - elseif ( isset($attr4_empty) ) - { - if ( !isset($$attr4_empty) ) - $exec = empty($attr4_empty); - elseif ( is_array($$attr4_empty) ) - $exec = (count($$attr4_empty)==0); - elseif ( is_bool($$attr4_empty) ) - $exec = true; - else - $exec = empty( $$attr4_empty ); - } - elseif ( isset($attr4_present) ) - { - $exec = isset($$attr4_present); - } - else - { - trigger_error("error in IF, assume: FALSE"); - $exec = false; - } - if ( !empty($attr4_invert) ) - $exec = !$exec; - if ( !empty($attr4_not) ) - $exec = !$exec; - unset($attr4_true); - unset($attr4_false); - unset($attr4_notempty); - unset($attr4_empty); - unset($attr4_contains); - unset($attr4_present); - unset($attr4_invert); - unset($attr4_not); - unset($attr4_value); - unset($attr4_equals); - $last_exec = $exec; - if ( $exec ) - { -?> -<?php unset($attr4) ?><?php unset($attr4_equals) ?><?php unset($attr4_value) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php - $row_class_idx++; - if ($row_class_idx > count($row_classes)) - $row_class_idx=1; - $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr5_class)) - $attr5_class=$row_class; - global $cell_column_nr; - $cell_column_nr=0; - $column_class_idx = 999; -?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6_debug_info = 'a:2:{s:5:"class";s:2:"fx";s:7:"colspan";s:1:"2";}' ?><?php $attr6 = array('class'=>'fx','colspan'=>'2') ?><?php $attr6_class='fx' ?><?php $attr6_colspan='2' ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr6_class)) - $attr6['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) - $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7_debug_info = 'a:2:{s:6:"equals";s:4:"html";s:5:"value";s:10:"var:editor";}' ?><?php $attr7 = array('equals'=>'html','value'=>$editor) ?><?php $attr7_equals='html' ?><?php $attr7_value=$editor ?><?php - if ( isset($attr7_true) ) - { - if (gettype($attr7_true) === '' && gettype($attr7_true) === '1') - $exec = $$attr7_true == true; - else - $exec = $attr7_true == true; - } - elseif ( isset($attr7_false) ) - { - if (gettype($attr7_false) === '' && gettype($attr7_false) === '1') - $exec = $$attr7_false == false; - else - $exec = $attr7_false == false; - } - elseif( isset($attr7_contains) ) - $exec = in_array($attr7_value,explode(',',$attr7_contains)); - elseif( isset($attr7_equals)&& isset($attr7_value) ) - $exec = $attr7_equals == $attr7_value; - elseif( isset($attr7_lessthan)&& isset($attr7_value) ) - $exec = intval($attr7_lessthan) > intval($attr7_value); - elseif( isset($attr7_greaterthan)&& isset($attr7_value) ) - $exec = intval($attr7_greaterthan) < intval($attr7_value); - elseif ( isset($attr7_empty) ) - { - if ( !isset($$attr7_empty) ) - $exec = empty($attr7_empty); - elseif ( is_array($$attr7_empty) ) - $exec = (count($$attr7_empty)==0); - elseif ( is_bool($$attr7_empty) ) - $exec = true; - else - $exec = empty( $$attr7_empty ); - } - elseif ( isset($attr7_present) ) - { - $exec = isset($$attr7_present); - } - else - { - trigger_error("error in IF, assume: FALSE"); - $exec = false; - } - if ( !empty($attr7_invert) ) - $exec = !$exec; - if ( !empty($attr7_not) ) - $exec = !$exec; - unset($attr7_true); - unset($attr7_false); - unset($attr7_notempty); - unset($attr7_empty); - unset($attr7_contains); - unset($attr7_present); - unset($attr7_invert); - unset($attr7_not); - unset($attr7_value); - unset($attr7_equals); - $last_exec = $exec; - if ( $exec ) - { -?> -<?php unset($attr7) ?><?php unset($attr7_equals) ?><?php unset($attr7_value) ?><?php $attr8_debug_info = 'a:2:{s:4:"name";s:4:"text";s:4:"type";s:4:"html";}' ?><?php $attr8 = array('name'=>'text','type'=>'html') ?><?php $attr8_name='text' ?><?php $attr8_type='html' ?><?php - function checkbox( $name,$value=false,$writable=true,$params=Array() ) - { - $src = '<input type="checkbox" name="'.$name.'"'; - foreach( $params as $name=>$val ) - $src .= " $name=\"$val\""; - if ( !$writable ) - $src .= ' disabled="disabled"'; - if ( $value ) - $src .= ' value="1" checked="checked"'; - $src .= ' />'; - return $src; - } - function selectBox( $name,$values,$default='',$params=Array() ) - { - if ( ! is_array($values) ) - $values = array($values); - $src = '<select size="1" name="'.$name.'"'; - foreach( $params as $name=>$value ) - $src .= " $name=\"$value\""; - $src .= '>'; - foreach( $values as $key=>$value ) - { - $src .= '<option value="'.$key.'"'; - if ($key == $default) - $src .= ' selected="selected"'; - $src .= '>'.$value.'</option>'; - } - $src .= '</select>'; - return $src; - } - ?><?php -switch( $attr8_type ) -{ - case 'fckeditor': - case 'html': - include('./editor/fckeditor.php'); - $editor = new FCKeditor( $attr8_name ) ; - $editor->BasePath = defined('OR_BASE_URL')?slashify(OR_BASE_URL).'editor/':'./editor/'; - $editor->Value = $$attr8_name; - $editor->Height = '290'; - $editor->Config['CustomConfigurationsPath'] = '../openrat-fckconfig.js'; - $editor->Create(); - break; - case 'wiki': - $conf_tags = $conf['editor']['text-markup']; - ?> -<script name="Javascript" type="text/javascript" src="<?php echo $tpl_dir ?>../../js/editor.js"></script> -<script name="JavaScript" type="text/javascript"> -function strong() -{ - insert('<?php echo $attr8_name ?>','<?php echo $conf_tags['strong-begin'] ?>','<?php echo $conf_tags['strong-end'] ?>'); -} -function emphatic() -{ - insert('<?php echo $attr8_name ?>','<?php echo $conf_tags['emphatic-begin'] ?>','<?php echo $conf_tags['emphatic-end'] ?>'); -} -function link() -{ - objectid = document.forms[0].objectid.value; - if (objectid=="" ||objectid=="0"||objectid==null) - objectid = window.prompt("Id",""); - if (objectid=="" ||objectid=="0"||objectid==null) - return; - insert('<?php echo $attr8_name ?>','"','"<?php echo $conf_tags['linkto'] ?>"'+objectid+'"'); -} -function image() -{ - objectid = document.forms[0].objectid.value; - if (objectid=="" ||objectid=="0"||objectid==null) - objectid = window.prompt("Id",""); - if (objectid=="" ||objectid=="0"||objectid==null) - return; - insert('<?php echo $attr8_name ?>','','<?php echo $conf_tags['image-begin'] ?>"'+objectid+'"<?php echo $conf_tags['image-end'] ?>'); -} -function list() -{ - insert('<?php echo $attr8_name ?>',"","\n"); - while( true ) - { - t = window.prompt('<?php echo lang('EDITOR_PROMPT_LIST_ENTRY') ?>',''); - if ( t != '' && t != null ) - insert('<?php echo $attr8_name ?>',"<?php echo $conf_tags['list-unnumbered'] ?> "+t+"\n",""); - else - break; - } -} -function numlist() -{ - insert('<?php echo $attr8_name ?>',"\n\n<?php echo $conf_tags['list-numbered'] ?> ","\n<?php echo $conf_tags['list-numbered'] ?> \n<?php echo $conf_tags['list-numbered'] ?> \n"); -} -function table() -{ - column=1; - while( true ) - { - if ( column==1 ) - text='<?php echo lang('EDITOR_PROMPT_TABLE_CELL_FIRST_COLUMN') ?>'; - else - text='<?php echo lang('EDITOR_PROMPT_TABLE_CELL') ?>'; - t = window.prompt(text,''); - if ( t != '' && t != null ) - { - insert('<?php echo $attr8_name ?>',"<?php echo $conf_tags['table-cell-sep'] ?>"+t,""); - column++; - } - else - { - if (column==1) - { - break; - } - else - { - insert('text',"\n",""); - column=1; - } - } - } -} ---> -</script> - <?php - ?> - <?php - ?> -<?php - $doc = new DocumentElement(); - $text = $$attr8_name; - if ( !is_array($text)) - $text = explode("\n",$text); - $doc->parse($text); - echo $doc->render('application/html-dom'); - echo '<hr />'; - echo $doc->render('application/html-editor'); - break; - case 'text': - case 'raw': - echo '<textarea name="'.$attr8_name.'" class="editor" style="width:100%;height:300px;">'.$$attr8_name.'</textarea>'; - break; - default: - echo "Unknown editor type: ".$attr8_type; -} -?><?php unset($attr8) ?><?php unset($attr8_name) ?><?php unset($attr8_type) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php } ?><?php unset($attr6) ?><?php $attr7_debug_info = 'a:2:{s:6:"equals";s:4:"wiki";s:5:"value";s:10:"var:editor";}' ?><?php $attr7 = array('equals'=>'wiki','value'=>$editor) ?><?php $attr7_equals='wiki' ?><?php $attr7_value=$editor ?><?php - if ( isset($attr7_true) ) - { - if (gettype($attr7_true) === '' && gettype($attr7_true) === '1') - $exec = $$attr7_true == true; - else - $exec = $attr7_true == true; - } - elseif ( isset($attr7_false) ) - { - if (gettype($attr7_false) === '' && gettype($attr7_false) === '1') - $exec = $$attr7_false == false; - else - $exec = $attr7_false == false; - } - elseif( isset($attr7_contains) ) - $exec = in_array($attr7_value,explode(',',$attr7_contains)); - elseif( isset($attr7_equals)&& isset($attr7_value) ) - $exec = $attr7_equals == $attr7_value; - elseif( isset($attr7_lessthan)&& isset($attr7_value) ) - $exec = intval($attr7_lessthan) > intval($attr7_value); - elseif( isset($attr7_greaterthan)&& isset($attr7_value) ) - $exec = intval($attr7_greaterthan) < intval($attr7_value); - elseif ( isset($attr7_empty) ) - { - if ( !isset($$attr7_empty) ) - $exec = empty($attr7_empty); - elseif ( is_array($$attr7_empty) ) - $exec = (count($$attr7_empty)==0); - elseif ( is_bool($$attr7_empty) ) - $exec = true; - else - $exec = empty( $$attr7_empty ); - } - elseif ( isset($attr7_present) ) - { - $exec = isset($$attr7_present); - } - else - { - trigger_error("error in IF, assume: FALSE"); - $exec = false; - } - if ( !empty($attr7_invert) ) - $exec = !$exec; - if ( !empty($attr7_not) ) - $exec = !$exec; - unset($attr7_true); - unset($attr7_false); - unset($attr7_notempty); - unset($attr7_empty); - unset($attr7_contains); - unset($attr7_present); - unset($attr7_invert); - unset($attr7_not); - unset($attr7_value); - unset($attr7_equals); - $last_exec = $exec; - if ( $exec ) - { -?> -<?php unset($attr7) ?><?php unset($attr7_equals) ?><?php unset($attr7_value) ?><?php $attr8_debug_info = 'a:1:{s:7:"present";s:12:"preview_text";}' ?><?php $attr8 = array('present'=>'preview_text') ?><?php $attr8_present='preview_text' ?><?php - if ( isset($attr8_true) ) - { - if (gettype($attr8_true) === '' && gettype($attr8_true) === '1') - $exec = $$attr8_true == true; - else - $exec = $attr8_true == true; - } - elseif ( isset($attr8_false) ) - { - if (gettype($attr8_false) === '' && gettype($attr8_false) === '1') - $exec = $$attr8_false == false; - else - $exec = $attr8_false == false; - } - elseif( isset($attr8_contains) ) - $exec = in_array($attr8_value,explode(',',$attr8_contains)); - elseif( isset($attr8_equals)&& isset($attr8_value) ) - $exec = $attr8_equals == $attr8_value; - elseif( isset($attr8_lessthan)&& isset($attr8_value) ) - $exec = intval($attr8_lessthan) > intval($attr8_value); - elseif( isset($attr8_greaterthan)&& isset($attr8_value) ) - $exec = intval($attr8_greaterthan) < intval($attr8_value); - elseif ( isset($attr8_empty) ) - { - if ( !isset($$attr8_empty) ) - $exec = empty($attr8_empty); - elseif ( is_array($$attr8_empty) ) - $exec = (count($$attr8_empty)==0); - elseif ( is_bool($$attr8_empty) ) - $exec = true; - else - $exec = empty( $$attr8_empty ); - } - elseif ( isset($attr8_present) ) - { - $exec = isset($$attr8_present); - } - else - { - trigger_error("error in IF, assume: FALSE"); - $exec = false; - } - if ( !empty($attr8_invert) ) - $exec = !$exec; - if ( !empty($attr8_not) ) - $exec = !$exec; - unset($attr8_true); - unset($attr8_false); - unset($attr8_notempty); - unset($attr8_empty); - unset($attr8_contains); - unset($attr8_present); - unset($attr8_invert); - unset($attr8_not); - unset($attr8_value); - unset($attr8_equals); - $last_exec = $exec; - if ( $exec ) - { -?> -<?php unset($attr8) ?><?php unset($attr8_present) ?><?php $attr9_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:12:"preview_text";s:6:"escape";s:4:"true";}' ?><?php $attr9 = array('class'=>'text','var'=>'preview_text','escape'=>true) ?><?php $attr9_class='text' ?><?php $attr9_var='preview_text' ?><?php $attr9_escape=true ?><?php - if ( isset($attr9_prefix)&& isset($attr9_key)) - $attr9_key = $attr9_prefix.$attr9_key; - if ( isset($attr9_suffix)&& isset($attr9_key)) - $attr9_key = $attr9_key.$attr9_suffix; - if(empty($attr9_title)) - $attr9_title = ''; - if (empty($attr9_type)) - $tmp_tag = 'span'; - else - switch( $attr9_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 $attr9_class ?>" title="<?php echo $attr9_title ?>"><?php - $attr9_title = ''; - if ( $attr9_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr9_array)) - { - $tmpArray = $$attr9_array; - if (!empty($attr9_var)) - $tmp_text = $tmpArray[$attr9_var]; - else - $tmp_text = $langF($tmpArray[$attr9_text]); - } - elseif (!empty($attr9_text)) - $tmp_text = $langF($attr9_text); - elseif (!empty($attr9_textvar)) - $tmp_text = $langF($$attr9_textvar); - elseif (!empty($attr9_key)) - $tmp_text = $langF($attr9_key); - elseif (!empty($attr9_var)) - $tmp_text = isset($$attr9_var)?$$attr9_var:'?unset:'.$attr9_var.'?'; - elseif (!empty($attr9_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr9_raw); - elseif (!empty($attr9_value)) - $tmp_text = $attr9_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr9_maxlength) && intval($attr9_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr9_maxlength) ); - if (isset($attr9_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr9_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr9) ?><?php unset($attr9_class) ?><?php unset($attr9_var) ?><?php unset($attr9_escape) ?><?php $attr9_debug_info = 'a:0:{}' ?><?php $attr9 = array() ?><br/><?php unset($attr9) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?><?php } ?><?php unset($attr7) ?><?php $attr8_debug_info = 'a:2:{s:4:"name";s:4:"text";s:4:"type";s:4:"wiki";}' ?><?php $attr8 = array('name'=>'text','type'=>'wiki') ?><?php $attr8_name='text' ?><?php $attr8_type='wiki' ?><?php - function checkbox( $name,$value=false,$writable=true,$params=Array() ) - { - $src = '<input type="checkbox" name="'.$name.'"'; - foreach( $params as $name=>$val ) - $src .= " $name=\"$val\""; - if ( !$writable ) - $src .= ' disabled="disabled"'; - if ( $value ) - $src .= ' value="1" checked="checked"'; - $src .= ' />'; - return $src; - } - function selectBox( $name,$values,$default='',$params=Array() ) - { - if ( ! is_array($values) ) - $values = array($values); - $src = '<select size="1" name="'.$name.'"'; - foreach( $params as $name=>$value ) - $src .= " $name=\"$value\""; - $src .= '>'; - foreach( $values as $key=>$value ) - { - $src .= '<option value="'.$key.'"'; - if ($key == $default) - $src .= ' selected="selected"'; - $src .= '>'.$value.'</option>'; - } - $src .= '</select>'; - return $src; - } - ?><?php -switch( $attr8_type ) -{ - case 'fckeditor': - case 'html': - include('./editor/fckeditor.php'); - $editor = new FCKeditor( $attr8_name ) ; - $editor->BasePath = defined('OR_BASE_URL')?slashify(OR_BASE_URL).'editor/':'./editor/'; - $editor->Value = $$attr8_name; - $editor->Height = '290'; - $editor->Config['CustomConfigurationsPath'] = '../openrat-fckconfig.js'; - $editor->Create(); - break; - case 'wiki': - $conf_tags = $conf['editor']['text-markup']; - ?> -<script name="Javascript" type="text/javascript" src="<?php echo $tpl_dir ?>../../js/editor.js"></script> -<script name="JavaScript" type="text/javascript"> -function strong() -{ - insert('<?php echo $attr8_name ?>','<?php echo $conf_tags['strong-begin'] ?>','<?php echo $conf_tags['strong-end'] ?>'); -} -function emphatic() -{ - insert('<?php echo $attr8_name ?>','<?php echo $conf_tags['emphatic-begin'] ?>','<?php echo $conf_tags['emphatic-end'] ?>'); -} -function link() -{ - objectid = document.forms[0].objectid.value; - if (objectid=="" ||objectid=="0"||objectid==null) - objectid = window.prompt("Id",""); - if (objectid=="" ||objectid=="0"||objectid==null) - return; - insert('<?php echo $attr8_name ?>','"','"<?php echo $conf_tags['linkto'] ?>"'+objectid+'"'); -} -function image() -{ - objectid = document.forms[0].objectid.value; - if (objectid=="" ||objectid=="0"||objectid==null) - objectid = window.prompt("Id",""); - if (objectid=="" ||objectid=="0"||objectid==null) - return; - insert('<?php echo $attr8_name ?>','','<?php echo $conf_tags['image-begin'] ?>"'+objectid+'"<?php echo $conf_tags['image-end'] ?>'); -} -function list() -{ - insert('<?php echo $attr8_name ?>',"","\n"); - while( true ) - { - t = window.prompt('<?php echo lang('EDITOR_PROMPT_LIST_ENTRY') ?>',''); - if ( t != '' && t != null ) - insert('<?php echo $attr8_name ?>',"<?php echo $conf_tags['list-unnumbered'] ?> "+t+"\n",""); - else - break; - } -} -function numlist() -{ - insert('<?php echo $attr8_name ?>',"\n\n<?php echo $conf_tags['list-numbered'] ?> ","\n<?php echo $conf_tags['list-numbered'] ?> \n<?php echo $conf_tags['list-numbered'] ?> \n"); -} -function table() -{ - column=1; - while( true ) - { - if ( column==1 ) - text='<?php echo lang('EDITOR_PROMPT_TABLE_CELL_FIRST_COLUMN') ?>'; - else - text='<?php echo lang('EDITOR_PROMPT_TABLE_CELL') ?>'; - t = window.prompt(text,''); - if ( t != '' && t != null ) - { - insert('<?php echo $attr8_name ?>',"<?php echo $conf_tags['table-cell-sep'] ?>"+t,""); - column++; - } - else - { - if (column==1) - { - break; - } - else - { - insert('text',"\n",""); - column=1; - } - } - } -} ---> -</script> - <?php - ?> - <?php - ?> -<?php - $doc = new DocumentElement(); - $text = $$attr8_name; - if ( !is_array($text)) - $text = explode("\n",$text); - $doc->parse($text); - echo $doc->render('application/html-dom'); - echo '<hr />'; - echo $doc->render('application/html-editor'); - break; - case 'text': - case 'raw': - echo '<textarea name="'.$attr8_name.'" class="editor" style="width:100%;height:300px;">'.$$attr8_name.'</textarea>'; - break; - default: - echo "Unknown editor type: ".$attr8_type; -} -?><?php unset($attr8) ?><?php unset($attr8_name) ?><?php unset($attr8_type) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php } ?><?php unset($attr6) ?><?php $attr7_debug_info = 'a:2:{s:6:"equals";s:4:"text";s:5:"value";s:10:"var:editor";}' ?><?php $attr7 = array('equals'=>'text','value'=>$editor) ?><?php $attr7_equals='text' ?><?php $attr7_value=$editor ?><?php - if ( isset($attr7_true) ) - { - if (gettype($attr7_true) === '' && gettype($attr7_true) === '1') - $exec = $$attr7_true == true; - else - $exec = $attr7_true == true; - } - elseif ( isset($attr7_false) ) - { - if (gettype($attr7_false) === '' && gettype($attr7_false) === '1') - $exec = $$attr7_false == false; - else - $exec = $attr7_false == false; - } - elseif( isset($attr7_contains) ) - $exec = in_array($attr7_value,explode(',',$attr7_contains)); - elseif( isset($attr7_equals)&& isset($attr7_value) ) - $exec = $attr7_equals == $attr7_value; - elseif( isset($attr7_lessthan)&& isset($attr7_value) ) - $exec = intval($attr7_lessthan) > intval($attr7_value); - elseif( isset($attr7_greaterthan)&& isset($attr7_value) ) - $exec = intval($attr7_greaterthan) < intval($attr7_value); - elseif ( isset($attr7_empty) ) - { - if ( !isset($$attr7_empty) ) - $exec = empty($attr7_empty); - elseif ( is_array($$attr7_empty) ) - $exec = (count($$attr7_empty)==0); - elseif ( is_bool($$attr7_empty) ) - $exec = true; - else - $exec = empty( $$attr7_empty ); - } - elseif ( isset($attr7_present) ) - { - $exec = isset($$attr7_present); - } - else - { - trigger_error("error in IF, assume: FALSE"); - $exec = false; - } - if ( !empty($attr7_invert) ) - $exec = !$exec; - if ( !empty($attr7_not) ) - $exec = !$exec; - unset($attr7_true); - unset($attr7_false); - unset($attr7_notempty); - unset($attr7_empty); - unset($attr7_contains); - unset($attr7_present); - unset($attr7_invert); - unset($attr7_not); - unset($attr7_value); - unset($attr7_equals); - $last_exec = $exec; - if ( $exec ) - { -?> -<?php unset($attr7) ?><?php unset($attr7_equals) ?><?php unset($attr7_value) ?><?php $attr8_debug_info = 'a:5:{s:4:"name";s:4:"text";s:4:"rows";s:2:"25";s:4:"cols";s:2:"70";s:5:"class";s:8:"longtext";s:7:"default";s:0:"";}' ?><?php $attr8 = array('name'=>'text','rows'=>'25','cols'=>'70','class'=>'longtext','default'=>'') ?><?php $attr8_name='text' ?><?php $attr8_rows='25' ?><?php $attr8_cols='70' ?><?php $attr8_class='longtext' ?><?php $attr8_default='' ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr8_readonly=true; - if ( !$attr8_readonly) { -?><textarea <?php if ($attr8_readonly) echo ' disabled="true"' ?> class="<?php echo $attr8_class ?>" name="<?php echo $attr8_name ?>" rows="<?php echo $attr8_rows ?>" cols="<?php echo $attr8_cols ?>"><?php echo htmlentities(isset($$attr8_name)?$$attr8_name:$attr8_default) ?></textarea><?php - } else { -?><span class="<?php echo $attr8_class ?>"><?php echo isset($$attr8_name)?$$attr8_name:$attr8_default ?></span><?php } ?><?php unset($attr8) ?><?php unset($attr8_name) ?><?php unset($attr8_rows) ?><?php unset($attr8_cols) ?><?php unset($attr8_class) ?><?php unset($attr8_default) ?><?php $attr8_debug_info = 'a:1:{s:5:"field";s:4:"text";}' ?><?php $attr8 = array('field'=>'text') ?><?php $attr8_field='text' ?><?php -if (isset($errors[0])) $attr8_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $attr8_field ?>.focus(); -document.forms[0].<?php echo $attr8_field ?>.select(); -</script> -<?php unset($attr8) ?><?php unset($attr8_field) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php } ?><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:2:{s:6:"equals";s:4:"link";s:5:"value";s:8:"var:type";}' ?><?php $attr4 = array('equals'=>'link','value'=>$type) ?><?php $attr4_equals='link' ?><?php $attr4_value=$type ?><?php - if ( isset($attr4_true) ) - { - if (gettype($attr4_true) === '' && gettype($attr4_true) === '1') - $exec = $$attr4_true == true; - else - $exec = $attr4_true == true; - } - elseif ( isset($attr4_false) ) - { - if (gettype($attr4_false) === '' && gettype($attr4_false) === '1') - $exec = $$attr4_false == false; - else - $exec = $attr4_false == false; - } - elseif( isset($attr4_contains) ) - $exec = in_array($attr4_value,explode(',',$attr4_contains)); - elseif( isset($attr4_equals)&& isset($attr4_value) ) - $exec = $attr4_equals == $attr4_value; - elseif( isset($attr4_lessthan)&& isset($attr4_value) ) - $exec = intval($attr4_lessthan) > intval($attr4_value); - elseif( isset($attr4_greaterthan)&& isset($attr4_value) ) - $exec = intval($attr4_greaterthan) < intval($attr4_value); - elseif ( isset($attr4_empty) ) - { - if ( !isset($$attr4_empty) ) - $exec = empty($attr4_empty); - elseif ( is_array($$attr4_empty) ) - $exec = (count($$attr4_empty)==0); - elseif ( is_bool($$attr4_empty) ) - $exec = true; - else - $exec = empty( $$attr4_empty ); - } - elseif ( isset($attr4_present) ) - { - $exec = isset($$attr4_present); - } - else - { - trigger_error("error in IF, assume: FALSE"); - $exec = false; - } - if ( !empty($attr4_invert) ) - $exec = !$exec; - if ( !empty($attr4_not) ) - $exec = !$exec; - unset($attr4_true); - unset($attr4_false); - unset($attr4_notempty); - unset($attr4_empty); - unset($attr4_contains); - unset($attr4_present); - unset($attr4_invert); - unset($attr4_not); - unset($attr4_value); - unset($attr4_equals); - $last_exec = $exec; - if ( $exec ) - { -?> -<?php unset($attr4) ?><?php unset($attr4_equals) ?><?php unset($attr4_value) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php - $row_class_idx++; - if ($row_class_idx > count($row_classes)) - $row_class_idx=1; - $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr5_class)) - $attr5_class=$row_class; - global $cell_column_nr; - $cell_column_nr=0; - $column_class_idx = 999; -?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6_debug_info = 'a:2:{s:5:"class";s:2:"fx";s:7:"colspan";s:1:"2";}' ?><?php $attr6 = array('class'=>'fx','colspan'=>'2') ?><?php $attr6_class='fx' ?><?php $attr6_colspan='2' ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr6_class)) - $attr6['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) - $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7_debug_info = 'a:9:{s:4:"list";s:7:"objects";s:4:"name";s:12:"linkobjectid";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr7 = array('list'=>'objects','name'=>'linkobjectid','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr7_list='objects' ?><?php $attr7_name='linkobjectid' ?><?php $attr7_onchange='' ?><?php $attr7_title='' ?><?php $attr7_class='' ?><?php $attr7_addempty=false ?><?php $attr7_multiple=false ?><?php $attr7_size='1' ?><?php $attr7_lang=false ?><?php -if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; -if ( $attr7_addempty!==FALSE ) -{ - if ($attr7_addempty===TRUE) - $$attr7_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$$attr7_list; - else - $$attr7_list = array(''=>'- '.lang($attr7_addempty).' -')+$$attr7_list; -} -?><select<?php if ($attr7_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name; if ($attr7_multiple) echo '[]'; ?>" onchange="<?php echo $attr7_onchange ?>" title="<?php echo $attr7_title ?>" class="<?php echo $attr7_class ?>"<?php -if (count($$attr7_list)<=1) echo ' disabled="disabled"'; -if ($attr7_multiple) echo ' multiple="multiple"'; -if (in_array($attr7_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; -echo ' size="'.intval($attr7_size).'"'; -?>><?php - $attr7_tmp_list = $$attr7_list; - if ( isset($$attr7_name) && isset($attr7_tmp_list[$$attr7_name]) ) - $attr7_tmp_default = $$attr7_name; - elseif ( isset($attr7_default) ) - $attr7_tmp_default = $attr7_default; - else - $attr7_tmp_default = ''; - foreach( $attr7_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( $attr7_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - echo '<option class="'.$attr7_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ($box_key==$attr7_tmp_default) - echo ' selected="selected"'; - echo '>'.$box_value.'</option>'; - } -?></select><?php -if (count($$attr7_list)==0) echo '<input type="hidden" name="'.$attr7_name.'" value="" />'; -if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" value="'.$box_key.'" />' -?><?php unset($attr7) ?><?php unset($attr7_list) ?><?php unset($attr7_name) ?><?php unset($attr7_onchange) ?><?php unset($attr7_title) ?><?php unset($attr7_class) ?><?php unset($attr7_addempty) ?><?php unset($attr7_multiple) ?><?php unset($attr7_size) ?><?php unset($attr7_lang) ?><?php $attr7_debug_info = 'a:1:{s:5:"field";s:12:"linkobjectid";}' ?><?php $attr7 = array('field'=>'linkobjectid') ?><?php $attr7_field='linkobjectid' ?><?php -if (isset($errors[0])) $attr7_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $attr7_field ?>.focus(); -document.forms[0].<?php echo $attr7_field ?>.select(); -</script> -<?php unset($attr7) ?><?php unset($attr7_field) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:2:{s:6:"equals";s:4:"list";s:5:"value";s:8:"var:type";}' ?><?php $attr4 = array('equals'=>'list','value'=>$type) ?><?php $attr4_equals='list' ?><?php $attr4_value=$type ?><?php - if ( isset($attr4_true) ) - { - if (gettype($attr4_true) === '' && gettype($attr4_true) === '1') - $exec = $$attr4_true == true; - else - $exec = $attr4_true == true; - } - elseif ( isset($attr4_false) ) - { - if (gettype($attr4_false) === '' && gettype($attr4_false) === '1') - $exec = $$attr4_false == false; - else - $exec = $attr4_false == false; - } - elseif( isset($attr4_contains) ) - $exec = in_array($attr4_value,explode(',',$attr4_contains)); - elseif( isset($attr4_equals)&& isset($attr4_value) ) - $exec = $attr4_equals == $attr4_value; - elseif( isset($attr4_lessthan)&& isset($attr4_value) ) - $exec = intval($attr4_lessthan) > intval($attr4_value); - elseif( isset($attr4_greaterthan)&& isset($attr4_value) ) - $exec = intval($attr4_greaterthan) < intval($attr4_value); - elseif ( isset($attr4_empty) ) - { - if ( !isset($$attr4_empty) ) - $exec = empty($attr4_empty); - elseif ( is_array($$attr4_empty) ) - $exec = (count($$attr4_empty)==0); - elseif ( is_bool($$attr4_empty) ) - $exec = true; - else - $exec = empty( $$attr4_empty ); - } - elseif ( isset($attr4_present) ) - { - $exec = isset($$attr4_present); - } - else - { - trigger_error("error in IF, assume: FALSE"); - $exec = false; - } - if ( !empty($attr4_invert) ) - $exec = !$exec; - if ( !empty($attr4_not) ) - $exec = !$exec; - unset($attr4_true); - unset($attr4_false); - unset($attr4_notempty); - unset($attr4_empty); - unset($attr4_contains); - unset($attr4_present); - unset($attr4_invert); - unset($attr4_not); - unset($attr4_value); - unset($attr4_equals); - $last_exec = $exec; - if ( $exec ) - { -?> -<?php unset($attr4) ?><?php unset($attr4_equals) ?><?php unset($attr4_value) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php - $row_class_idx++; - if ($row_class_idx > count($row_classes)) - $row_class_idx=1; - $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr5_class)) - $attr5_class=$row_class; - global $cell_column_nr; - $cell_column_nr=0; - $column_class_idx = 999; -?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6_debug_info = 'a:2:{s:5:"class";s:2:"fx";s:7:"colspan";s:1:"2";}' ?><?php $attr6 = array('class'=>'fx','colspan'=>'2') ?><?php $attr6_class='fx' ?><?php $attr6_colspan='2' ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr6_class)) - $attr6['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) - $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7_debug_info = 'a:9:{s:4:"list";s:7:"objects";s:4:"name";s:12:"linkobjectid";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr7 = array('list'=>'objects','name'=>'linkobjectid','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr7_list='objects' ?><?php $attr7_name='linkobjectid' ?><?php $attr7_onchange='' ?><?php $attr7_title='' ?><?php $attr7_class='' ?><?php $attr7_addempty=false ?><?php $attr7_multiple=false ?><?php $attr7_size='1' ?><?php $attr7_lang=false ?><?php -if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; -if ( $attr7_addempty!==FALSE ) -{ - if ($attr7_addempty===TRUE) - $$attr7_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$$attr7_list; - else - $$attr7_list = array(''=>'- '.lang($attr7_addempty).' -')+$$attr7_list; -} -?><select<?php if ($attr7_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name; if ($attr7_multiple) echo '[]'; ?>" onchange="<?php echo $attr7_onchange ?>" title="<?php echo $attr7_title ?>" class="<?php echo $attr7_class ?>"<?php -if (count($$attr7_list)<=1) echo ' disabled="disabled"'; -if ($attr7_multiple) echo ' multiple="multiple"'; -if (in_array($attr7_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; -echo ' size="'.intval($attr7_size).'"'; -?>><?php - $attr7_tmp_list = $$attr7_list; - if ( isset($$attr7_name) && isset($attr7_tmp_list[$$attr7_name]) ) - $attr7_tmp_default = $$attr7_name; - elseif ( isset($attr7_default) ) - $attr7_tmp_default = $attr7_default; - else - $attr7_tmp_default = ''; - foreach( $attr7_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( $attr7_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - echo '<option class="'.$attr7_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ($box_key==$attr7_tmp_default) - echo ' selected="selected"'; - echo '>'.$box_value.'</option>'; - } -?></select><?php -if (count($$attr7_list)==0) echo '<input type="hidden" name="'.$attr7_name.'" value="" />'; -if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" value="'.$box_key.'" />' -?><?php unset($attr7) ?><?php unset($attr7_list) ?><?php unset($attr7_name) ?><?php unset($attr7_onchange) ?><?php unset($attr7_title) ?><?php unset($attr7_class) ?><?php unset($attr7_addempty) ?><?php unset($attr7_multiple) ?><?php unset($attr7_size) ?><?php unset($attr7_lang) ?><?php $attr7_debug_info = 'a:1:{s:5:"field";s:12:"linkobjectid";}' ?><?php $attr7 = array('field'=>'linkobjectid') ?><?php $attr7_field='linkobjectid' ?><?php -if (isset($errors[0])) $attr7_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $attr7_field ?>.focus(); -document.forms[0].<?php echo $attr7_field ?>.select(); -</script> -<?php unset($attr7) ?><?php unset($attr7_field) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:2:{s:6:"equals";s:6:"number";s:5:"value";s:8:"var:type";}' ?><?php $attr4 = array('equals'=>'number','value'=>$type) ?><?php $attr4_equals='number' ?><?php $attr4_value=$type ?><?php - if ( isset($attr4_true) ) - { - if (gettype($attr4_true) === '' && gettype($attr4_true) === '1') - $exec = $$attr4_true == true; - else - $exec = $attr4_true == true; - } - elseif ( isset($attr4_false) ) - { - if (gettype($attr4_false) === '' && gettype($attr4_false) === '1') - $exec = $$attr4_false == false; - else - $exec = $attr4_false == false; - } - elseif( isset($attr4_contains) ) - $exec = in_array($attr4_value,explode(',',$attr4_contains)); - elseif( isset($attr4_equals)&& isset($attr4_value) ) - $exec = $attr4_equals == $attr4_value; - elseif( isset($attr4_lessthan)&& isset($attr4_value) ) - $exec = intval($attr4_lessthan) > intval($attr4_value); - elseif( isset($attr4_greaterthan)&& isset($attr4_value) ) - $exec = intval($attr4_greaterthan) < intval($attr4_value); - elseif ( isset($attr4_empty) ) - { - if ( !isset($$attr4_empty) ) - $exec = empty($attr4_empty); - elseif ( is_array($$attr4_empty) ) - $exec = (count($$attr4_empty)==0); - elseif ( is_bool($$attr4_empty) ) - $exec = true; - else - $exec = empty( $$attr4_empty ); - } - elseif ( isset($attr4_present) ) - { - $exec = isset($$attr4_present); - } - else - { - trigger_error("error in IF, assume: FALSE"); - $exec = false; - } - if ( !empty($attr4_invert) ) - $exec = !$exec; - if ( !empty($attr4_not) ) - $exec = !$exec; - unset($attr4_true); - unset($attr4_false); - unset($attr4_notempty); - unset($attr4_empty); - unset($attr4_contains); - unset($attr4_present); - unset($attr4_invert); - unset($attr4_not); - unset($attr4_value); - unset($attr4_equals); - $last_exec = $exec; - if ( $exec ) - { -?> -<?php unset($attr4) ?><?php unset($attr4_equals) ?><?php unset($attr4_value) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php - $row_class_idx++; - if ($row_class_idx > count($row_classes)) - $row_class_idx=1; - $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr5_class)) - $attr5_class=$row_class; - global $cell_column_nr; - $cell_column_nr=0; - $column_class_idx = 999; -?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6_debug_info = 'a:2:{s:5:"class";s:2:"fx";s:7:"colspan";s:1:"2";}' ?><?php $attr6 = array('class'=>'fx','colspan'=>'2') ?><?php $attr6_class='fx' ?><?php $attr6_colspan='2' ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr6_class)) - $attr6['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) - $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7_debug_info = 'a:2:{s:4:"name";s:8:"decimals";s:7:"default";s:8:"decimals";}' ?><?php $attr7 = array('name'=>'decimals','default'=>'decimals') ?><?php $attr7_name='decimals' ?><?php $attr7_default='decimals' ?><?php -if (isset($$attr7_name)) - $attr7_tmp_value = $$attr7_name; -elseif ( isset($attr7_default) ) - $attr7_tmp_value = $attr7_default; -else - $attr7_tmp_value = ""; -?><input type="hidden" name="<?php echo $attr7_name ?>" value="<?php echo $attr7_tmp_value ?>" /><?php unset($attr7) ?><?php unset($attr7_name) ?><?php unset($attr7_default) ?><?php $attr7_debug_info = 'a:8:{s:5:"class";s:0:"";s:7:"default";s:0:"";s:4:"type";s:4:"text";s:4:"name";s:6:"number";s:4:"size";s:2:"15";s:9:"maxlength";s:2:"20";s:8:"onchange";s:0:"";s:8:"readonly";s:5:"false";}' ?><?php $attr7 = array('class'=>'','default'=>'','type'=>'text','name'=>'number','size'=>'15','maxlength'=>'20','onchange'=>'','readonly'=>false) ?><?php $attr7_class='' ?><?php $attr7_default='' ?><?php $attr7_type='text' ?><?php $attr7_name='number' ?><?php $attr7_size='15' ?><?php $attr7_maxlength='20' ?><?php $attr7_onchange='' ?><?php $attr7_readonly=false ?><?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; - if ($attr7_readonly && empty($$attr7_name)) $$attr7_name = '- '.lang('EMPTY').' -'; - if(!isset($attr7_default)) $attr7_default=''; -?><?php if (!$attr7_readonly || $attr7_type=='hidden') { -?><input<?php if ($attr7_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" name="<?php echo $attr7_name ?><?php if ($attr7_readonly) echo '_disabled' ?>" type="<?php echo $attr7_type ?>" size="<?php echo $attr7_size ?>" maxlength="<?php echo $attr7_maxlength ?>" class="<?php echo $attr7_class ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" <?php if (in_array($attr7_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php -if ($attr7_readonly) { -?><input type="hidden" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" /><?php - } } else { ?><span class="<?php echo $attr7_class ?>"><?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?></span><?php } ?><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_default) ?><?php unset($attr7_type) ?><?php unset($attr7_name) ?><?php unset($attr7_size) ?><?php unset($attr7_maxlength) ?><?php unset($attr7_onchange) ?><?php unset($attr7_readonly) ?><?php $attr7_debug_info = 'a:1:{s:5:"field";s:6:"number";}' ?><?php $attr7 = array('field'=>'number') ?><?php $attr7_field='number' ?><?php -if (isset($errors[0])) $attr7_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $attr7_field ?>.focus(); -document.forms[0].<?php echo $attr7_field ?>.select(); -</script> -<?php unset($attr7) ?><?php unset($attr7_field) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:2:{s:6:"equals";s:6:"select";s:5:"value";s:8:"var:type";}' ?><?php $attr4 = array('equals'=>'select','value'=>$type) ?><?php $attr4_equals='select' ?><?php $attr4_value=$type ?><?php - if ( isset($attr4_true) ) - { - if (gettype($attr4_true) === '' && gettype($attr4_true) === '1') - $exec = $$attr4_true == true; - else - $exec = $attr4_true == true; - } - elseif ( isset($attr4_false) ) - { - if (gettype($attr4_false) === '' && gettype($attr4_false) === '1') - $exec = $$attr4_false == false; - else - $exec = $attr4_false == false; - } - elseif( isset($attr4_contains) ) - $exec = in_array($attr4_value,explode(',',$attr4_contains)); - elseif( isset($attr4_equals)&& isset($attr4_value) ) - $exec = $attr4_equals == $attr4_value; - elseif( isset($attr4_lessthan)&& isset($attr4_value) ) - $exec = intval($attr4_lessthan) > intval($attr4_value); - elseif( isset($attr4_greaterthan)&& isset($attr4_value) ) - $exec = intval($attr4_greaterthan) < intval($attr4_value); - elseif ( isset($attr4_empty) ) - { - if ( !isset($$attr4_empty) ) - $exec = empty($attr4_empty); - elseif ( is_array($$attr4_empty) ) - $exec = (count($$attr4_empty)==0); - elseif ( is_bool($$attr4_empty) ) - $exec = true; - else - $exec = empty( $$attr4_empty ); - } - elseif ( isset($attr4_present) ) - { - $exec = isset($$attr4_present); - } - else - { - trigger_error("error in IF, assume: FALSE"); - $exec = false; - } - if ( !empty($attr4_invert) ) - $exec = !$exec; - if ( !empty($attr4_not) ) - $exec = !$exec; - unset($attr4_true); - unset($attr4_false); - unset($attr4_notempty); - unset($attr4_empty); - unset($attr4_contains); - unset($attr4_present); - unset($attr4_invert); - unset($attr4_not); - unset($attr4_value); - unset($attr4_equals); - $last_exec = $exec; - if ( $exec ) - { -?> -<?php unset($attr4) ?><?php unset($attr4_equals) ?><?php unset($attr4_value) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php - $row_class_idx++; - if ($row_class_idx > count($row_classes)) - $row_class_idx=1; - $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr5_class)) - $attr5_class=$row_class; - global $cell_column_nr; - $cell_column_nr=0; - $column_class_idx = 999; -?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6_debug_info = 'a:2:{s:5:"class";s:2:"fx";s:7:"colspan";s:1:"2";}' ?><?php $attr6 = array('class'=>'fx','colspan'=>'2') ?><?php $attr6_class='fx' ?><?php $attr6_colspan='2' ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr6_class)) - $attr6['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) - $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7_debug_info = 'a:9:{s:4:"list";s:5:"items";s:4:"name";s:4:"text";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr7 = array('list'=>'items','name'=>'text','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr7_list='items' ?><?php $attr7_name='text' ?><?php $attr7_onchange='' ?><?php $attr7_title='' ?><?php $attr7_class='' ?><?php $attr7_addempty=false ?><?php $attr7_multiple=false ?><?php $attr7_size='1' ?><?php $attr7_lang=false ?><?php -if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; -if ( $attr7_addempty!==FALSE ) -{ - if ($attr7_addempty===TRUE) - $$attr7_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$$attr7_list; - else - $$attr7_list = array(''=>'- '.lang($attr7_addempty).' -')+$$attr7_list; -} -?><select<?php if ($attr7_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name; if ($attr7_multiple) echo '[]'; ?>" onchange="<?php echo $attr7_onchange ?>" title="<?php echo $attr7_title ?>" class="<?php echo $attr7_class ?>"<?php -if (count($$attr7_list)<=1) echo ' disabled="disabled"'; -if ($attr7_multiple) echo ' multiple="multiple"'; -if (in_array($attr7_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; -echo ' size="'.intval($attr7_size).'"'; -?>><?php - $attr7_tmp_list = $$attr7_list; - if ( isset($$attr7_name) && isset($attr7_tmp_list[$$attr7_name]) ) - $attr7_tmp_default = $$attr7_name; - elseif ( isset($attr7_default) ) - $attr7_tmp_default = $attr7_default; - else - $attr7_tmp_default = ''; - foreach( $attr7_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( $attr7_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - echo '<option class="'.$attr7_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ($box_key==$attr7_tmp_default) - echo ' selected="selected"'; - echo '>'.$box_value.'</option>'; - } -?></select><?php -if (count($$attr7_list)==0) echo '<input type="hidden" name="'.$attr7_name.'" value="" />'; -if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" value="'.$box_key.'" />' -?><?php unset($attr7) ?><?php unset($attr7_list) ?><?php unset($attr7_name) ?><?php unset($attr7_onchange) ?><?php unset($attr7_title) ?><?php unset($attr7_class) ?><?php unset($attr7_addempty) ?><?php unset($attr7_multiple) ?><?php unset($attr7_size) ?><?php unset($attr7_lang) ?><?php $attr7_debug_info = 'a:1:{s:5:"field";s:4:"text";}' ?><?php $attr7 = array('field'=>'text') ?><?php $attr7_field='text' ?><?php -if (isset($errors[0])) $attr7_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $attr7_field ?>.focus(); -document.forms[0].<?php echo $attr7_field ?>.select(); -</script> -<?php unset($attr7) ?><?php unset($attr7_field) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:1:{s:7:"present";s:7:"release";}' ?><?php $attr4 = array('present'=>'release') ?><?php $attr4_present='release' ?><?php - if ( isset($attr4_true) ) - { - if (gettype($attr4_true) === '' && gettype($attr4_true) === '1') - $exec = $$attr4_true == true; - else - $exec = $attr4_true == true; - } - elseif ( isset($attr4_false) ) - { - if (gettype($attr4_false) === '' && gettype($attr4_false) === '1') - $exec = $$attr4_false == false; - else - $exec = $attr4_false == false; - } - elseif( isset($attr4_contains) ) - $exec = in_array($attr4_value,explode(',',$attr4_contains)); - elseif( isset($attr4_equals)&& isset($attr4_value) ) - $exec = $attr4_equals == $attr4_value; - elseif( isset($attr4_lessthan)&& isset($attr4_value) ) - $exec = intval($attr4_lessthan) > intval($attr4_value); - elseif( isset($attr4_greaterthan)&& isset($attr4_value) ) - $exec = intval($attr4_greaterthan) < intval($attr4_value); - elseif ( isset($attr4_empty) ) - { - if ( !isset($$attr4_empty) ) - $exec = empty($attr4_empty); - elseif ( is_array($$attr4_empty) ) - $exec = (count($$attr4_empty)==0); - elseif ( is_bool($$attr4_empty) ) - $exec = true; - else - $exec = empty( $$attr4_empty ); - } - elseif ( isset($attr4_present) ) - { - $exec = isset($$attr4_present); - } - else - { - trigger_error("error in IF, assume: FALSE"); - $exec = false; - } - if ( !empty($attr4_invert) ) - $exec = !$exec; - if ( !empty($attr4_not) ) - $exec = !$exec; - unset($attr4_true); - unset($attr4_false); - unset($attr4_notempty); - unset($attr4_empty); - unset($attr4_contains); - unset($attr4_present); - unset($attr4_invert); - unset($attr4_not); - unset($attr4_value); - unset($attr4_equals); - $last_exec = $exec; - if ( $exec ) - { -?> -<?php unset($attr4) ?><?php unset($attr4_present) ?><?php $attr5_debug_info = 'a:1:{s:7:"present";s:7:"publish";}' ?><?php $attr5 = array('present'=>'publish') ?><?php $attr5_present='publish' ?><?php - if ( isset($attr5_true) ) - { - if (gettype($attr5_true) === '' && gettype($attr5_true) === '1') - $exec = $$attr5_true == true; - else - $exec = $attr5_true == true; - } - elseif ( isset($attr5_false) ) - { - if (gettype($attr5_false) === '' && gettype($attr5_false) === '1') - $exec = $$attr5_false == false; - else - $exec = $attr5_false == false; - } - elseif( isset($attr5_contains) ) - $exec = in_array($attr5_value,explode(',',$attr5_contains)); - elseif( isset($attr5_equals)&& isset($attr5_value) ) - $exec = $attr5_equals == $attr5_value; - elseif( isset($attr5_lessthan)&& isset($attr5_value) ) - $exec = intval($attr5_lessthan) > intval($attr5_value); - elseif( isset($attr5_greaterthan)&& isset($attr5_value) ) - $exec = intval($attr5_greaterthan) < intval($attr5_value); - elseif ( isset($attr5_empty) ) - { - if ( !isset($$attr5_empty) ) - $exec = empty($attr5_empty); - elseif ( is_array($$attr5_empty) ) - $exec = (count($$attr5_empty)==0); - elseif ( is_bool($$attr5_empty) ) - $exec = true; - else - $exec = empty( $$attr5_empty ); - } - elseif ( isset($attr5_present) ) - { - $exec = isset($$attr5_present); - } - else - { - trigger_error("error in IF, assume: FALSE"); - $exec = false; - } - if ( !empty($attr5_invert) ) - $exec = !$exec; - if ( !empty($attr5_not) ) - $exec = !$exec; - unset($attr5_true); - unset($attr5_false); - unset($attr5_notempty); - unset($attr5_empty); - unset($attr5_contains); - unset($attr5_present); - unset($attr5_invert); - unset($attr5_not); - unset($attr5_value); - unset($attr5_equals); - $last_exec = $exec; - if ( $exec ) - { -?> -<?php unset($attr5) ?><?php unset($attr5_present) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?><?php - $row_class_idx++; - if ($row_class_idx > count($row_classes)) - $row_class_idx=1; - $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr6_class)) - $attr6_class=$row_class; - global $cell_column_nr; - $cell_column_nr=0; - $column_class_idx = 999; -?><tr class="<?php echo $attr6_class ?>"><?php unset($attr6) ?><?php $attr7_debug_info = 'a:1:{s:7:"colspan";s:1:"2";}' ?><?php $attr7 = array('colspan'=>'2') ?><?php $attr7_colspan='2' ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr7_class)) - $attr7['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) - $attr7['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php unset($attr7_colspan) ?><?php $attr8_debug_info = 'a:1:{s:5:"title";s:15:"message:options";}' ?><?php $attr8 = array('title'=>lang('options')) ?><?php $attr8_title=lang('options') ?><fieldset><?php if(isset($attr8_title)) { ?><legend><?php echo encodeHtml($attr8_title) ?></legend><?php } ?><?php unset($attr8) ?><?php unset($attr8_title) ?><?php $attr7_debug_info = 'a:0:{}' ?><?php $attr7 = array() ?></fieldset><?php unset($attr7) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></tr><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php } ?><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:1:{s:7:"present";s:7:"release";}' ?><?php $attr4 = array('present'=>'release') ?><?php $attr4_present='release' ?><?php - if ( isset($attr4_true) ) - { - if (gettype($attr4_true) === '' && gettype($attr4_true) === '1') - $exec = $$attr4_true == true; - else - $exec = $attr4_true == true; - } - elseif ( isset($attr4_false) ) - { - if (gettype($attr4_false) === '' && gettype($attr4_false) === '1') - $exec = $$attr4_false == false; - else - $exec = $attr4_false == false; - } - elseif( isset($attr4_contains) ) - $exec = in_array($attr4_value,explode(',',$attr4_contains)); - elseif( isset($attr4_equals)&& isset($attr4_value) ) - $exec = $attr4_equals == $attr4_value; - elseif( isset($attr4_lessthan)&& isset($attr4_value) ) - $exec = intval($attr4_lessthan) > intval($attr4_value); - elseif( isset($attr4_greaterthan)&& isset($attr4_value) ) - $exec = intval($attr4_greaterthan) < intval($attr4_value); - elseif ( isset($attr4_empty) ) - { - if ( !isset($$attr4_empty) ) - $exec = empty($attr4_empty); - elseif ( is_array($$attr4_empty) ) - $exec = (count($$attr4_empty)==0); - elseif ( is_bool($$attr4_empty) ) - $exec = true; - else - $exec = empty( $$attr4_empty ); - } - elseif ( isset($attr4_present) ) - { - $exec = isset($$attr4_present); - } - else - { - trigger_error("error in IF, assume: FALSE"); - $exec = false; - } - if ( !empty($attr4_invert) ) - $exec = !$exec; - if ( !empty($attr4_not) ) - $exec = !$exec; - unset($attr4_true); - unset($attr4_false); - unset($attr4_notempty); - unset($attr4_empty); - unset($attr4_contains); - unset($attr4_present); - unset($attr4_invert); - unset($attr4_not); - unset($attr4_value); - unset($attr4_equals); - $last_exec = $exec; - if ( $exec ) - { -?> -<?php unset($attr4) ?><?php unset($attr4_present) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php - $row_class_idx++; - if ($row_class_idx > count($row_classes)) - $row_class_idx=1; - $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr5_class)) - $attr5_class=$row_class; - global $cell_column_nr; - $cell_column_nr=0; - $column_class_idx = 999; -?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6_debug_info = 'a:2:{s:5:"class";s:2:"fx";s:7:"colspan";s:1:"2";}' ?><?php $attr6 = array('class'=>'fx','colspan'=>'2') ?><?php $attr6_class='fx' ?><?php $attr6_colspan='2' ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr6_class)) - $attr6['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) - $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7_debug_info = 'a:3:{s:7:"default";s:5:"false";s:8:"readonly";s:5:"false";s:4:"name";s:7:"release";}' ?><?php $attr7 = array('default'=>false,'readonly'=>false,'name'=>'release') ?><?php $attr7_default=false ?><?php $attr7_readonly=false ?><?php $attr7_name='release' ?><?php - if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; - if ( isset($$attr7_name) ) - $checked = $$attr7_name; - else - $checked = $attr7_default; -?><input type="checkbox" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" <?php if ($attr7_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?><?php if (in_array($attr7_name,$errors)) echo ' style="background-color:red;"' ?> /><?php -if ( $attr7_readonly && $checked ) -{ -?><input type="hidden" name="<?php echo $attr7_name ?>" value="1" /><?php -} -?><?php unset($attr7_name); unset($attr7_readonly); unset($attr7_default); ?><?php unset($attr7) ?><?php unset($attr7_default) ?><?php unset($attr7_readonly) ?><?php unset($attr7_name) ?><?php $attr7_debug_info = 'a:1:{s:3:"for";s:7:"release";}' ?><?php $attr7 = array('for'=>'release') ?><?php $attr7_for='release' ?><label for="id_<?php echo $attr7_for ?><?php if (!empty($attr7_value)) echo '_'.$attr7_value ?>"><?php unset($attr7) ?><?php unset($attr7_for) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:14:"GLOBAL_RELEASE";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','text'=>'GLOBAL_RELEASE','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_text='GLOBAL_RELEASE' ?><?php $attr8_escape=true ?><?php - if ( isset($attr8_prefix)&& isset($attr8_key)) - $attr8_key = $attr8_prefix.$attr8_key; - if ( isset($attr8_suffix)&& isset($attr8_key)) - $attr8_key = $attr8_key.$attr8_suffix; - if(empty($attr8_title)) - $attr8_title = ''; - if (empty($attr8_type)) - $tmp_tag = 'span'; - else - switch( $attr8_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php - $attr8_title = ''; - if ( $attr8_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr8_array)) - { - $tmpArray = $$attr8_array; - if (!empty($attr8_var)) - $tmp_text = $tmpArray[$attr8_var]; - else - $tmp_text = $langF($tmpArray[$attr8_text]); - } - elseif (!empty($attr8_text)) - $tmp_text = $langF($attr8_text); - elseif (!empty($attr8_textvar)) - $tmp_text = $langF($$attr8_textvar); - elseif (!empty($attr8_key)) - $tmp_text = $langF($attr8_key); - elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; - elseif (!empty($attr8_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr8_raw); - elseif (!empty($attr8_value)) - $tmp_text = $attr8_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); - if (isset($attr8_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_text) ?><?php unset($attr8_escape) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></label><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:1:{s:7:"present";s:7:"publish";}' ?><?php $attr4 = array('present'=>'publish') ?><?php $attr4_present='publish' ?><?php - if ( isset($attr4_true) ) - { - if (gettype($attr4_true) === '' && gettype($attr4_true) === '1') - $exec = $$attr4_true == true; - else - $exec = $attr4_true == true; - } - elseif ( isset($attr4_false) ) - { - if (gettype($attr4_false) === '' && gettype($attr4_false) === '1') - $exec = $$attr4_false == false; - else - $exec = $attr4_false == false; - } - elseif( isset($attr4_contains) ) - $exec = in_array($attr4_value,explode(',',$attr4_contains)); - elseif( isset($attr4_equals)&& isset($attr4_value) ) - $exec = $attr4_equals == $attr4_value; - elseif( isset($attr4_lessthan)&& isset($attr4_value) ) - $exec = intval($attr4_lessthan) > intval($attr4_value); - elseif( isset($attr4_greaterthan)&& isset($attr4_value) ) - $exec = intval($attr4_greaterthan) < intval($attr4_value); - elseif ( isset($attr4_empty) ) - { - if ( !isset($$attr4_empty) ) - $exec = empty($attr4_empty); - elseif ( is_array($$attr4_empty) ) - $exec = (count($$attr4_empty)==0); - elseif ( is_bool($$attr4_empty) ) - $exec = true; - else - $exec = empty( $$attr4_empty ); - } - elseif ( isset($attr4_present) ) - { - $exec = isset($$attr4_present); - } - else - { - trigger_error("error in IF, assume: FALSE"); - $exec = false; - } - if ( !empty($attr4_invert) ) - $exec = !$exec; - if ( !empty($attr4_not) ) - $exec = !$exec; - unset($attr4_true); - unset($attr4_false); - unset($attr4_notempty); - unset($attr4_empty); - unset($attr4_contains); - unset($attr4_present); - unset($attr4_invert); - unset($attr4_not); - unset($attr4_value); - unset($attr4_equals); - $last_exec = $exec; - if ( $exec ) - { -?> -<?php unset($attr4) ?><?php unset($attr4_present) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?><?php - $row_class_idx++; - if ($row_class_idx > count($row_classes)) - $row_class_idx=1; - $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr5_class)) - $attr5_class=$row_class; - global $cell_column_nr; - $cell_column_nr=0; - $column_class_idx = 999; -?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6_debug_info = 'a:2:{s:5:"class";s:2:"fx";s:7:"colspan";s:1:"2";}' ?><?php $attr6 = array('class'=>'fx','colspan'=>'2') ?><?php $attr6_class='fx' ?><?php $attr6_colspan='2' ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr6_class)) - $attr6['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) - $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7_debug_info = 'a:3:{s:7:"default";s:5:"false";s:8:"readonly";s:5:"false";s:4:"name";s:7:"publish";}' ?><?php $attr7 = array('default'=>false,'readonly'=>false,'name'=>'publish') ?><?php $attr7_default=false ?><?php $attr7_readonly=false ?><?php $attr7_name='publish' ?><?php - if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr7_readonly=true; - if ( isset($$attr7_name) ) - $checked = $$attr7_name; - else - $checked = $attr7_default; -?><input type="checkbox" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" <?php if ($attr7_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?><?php if (in_array($attr7_name,$errors)) echo ' style="background-color:red;"' ?> /><?php -if ( $attr7_readonly && $checked ) -{ -?><input type="hidden" name="<?php echo $attr7_name ?>" value="1" /><?php -} -?><?php unset($attr7_name); unset($attr7_readonly); unset($attr7_default); ?><?php unset($attr7) ?><?php unset($attr7_default) ?><?php unset($attr7_readonly) ?><?php unset($attr7_name) ?><?php $attr7_debug_info = 'a:1:{s:3:"for";s:7:"publish";}' ?><?php $attr7 = array('for'=>'publish') ?><?php $attr7_for='publish' ?><label for="id_<?php echo $attr7_for ?><?php if (!empty($attr7_value)) echo '_'.$attr7_value ?>"><?php unset($attr7) ?><?php unset($attr7_for) ?><?php $attr8_debug_info = 'a:3:{s:5:"class";s:4:"text";s:4:"text";s:23:"PAGE_PUBLISH_AFTER_SAVE";s:6:"escape";s:4:"true";}' ?><?php $attr8 = array('class'=>'text','text'=>'PAGE_PUBLISH_AFTER_SAVE','escape'=>true) ?><?php $attr8_class='text' ?><?php $attr8_text='PAGE_PUBLISH_AFTER_SAVE' ?><?php $attr8_escape=true ?><?php - if ( isset($attr8_prefix)&& isset($attr8_key)) - $attr8_key = $attr8_prefix.$attr8_key; - if ( isset($attr8_suffix)&& isset($attr8_key)) - $attr8_key = $attr8_key.$attr8_suffix; - if(empty($attr8_title)) - $attr8_title = ''; - if (empty($attr8_type)) - $tmp_tag = 'span'; - else - switch( $attr8_type ) - { - case 'emphatic': - case 'italic': - $tmp_tag = 'em'; - break; - case 'strong': - case 'bold': - $tmp_tag = 'strong'; - break; - case 'tt': - case 'teletype': - $tmp_tag = 'tt'; - break; - default: - $tmp_tag = 'span'; - } -?><<?php echo $tmp_tag ?> class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php - $attr8_title = ''; - if ( $attr8_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr8_array)) - { - $tmpArray = $$attr8_array; - if (!empty($attr8_var)) - $tmp_text = $tmpArray[$attr8_var]; - else - $tmp_text = $langF($tmpArray[$attr8_text]); - } - elseif (!empty($attr8_text)) - $tmp_text = $langF($attr8_text); - elseif (!empty($attr8_textvar)) - $tmp_text = $langF($$attr8_textvar); - elseif (!empty($attr8_key)) - $tmp_text = $langF($attr8_key); - elseif (!empty($attr8_var)) - $tmp_text = isset($$attr8_var)?$$attr8_var:'?unset:'.$attr8_var.'?'; - elseif (!empty($attr8_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr8_raw); - elseif (!empty($attr8_value)) - $tmp_text = $attr8_value; - else - $tmp_text = '&nbsp;'; - if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); - if (isset($attr8_accesskey)) - { - $pos = strpos(strtolower($tmp_text),strtolower($attr8_accesskey)); - if ( $pos !== false ) - $tmp_text = substr($tmp_text,0,max($pos,0)).'<span class="accesskey">'.substr($tmp_text,$pos,1).'</span>'.substr($tmp_text,$pos+1); - } - echo $tmp_text; - unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_text) ?><?php unset($attr8_escape) ?><?php $attr6_debug_info = 'a:0:{}' ?><?php $attr6 = array() ?></label><?php unset($attr6) ?><?php $attr5_debug_info = 'a:0:{}' ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php - $row_class_idx++; - if ($row_class_idx > count($row_classes)) - $row_class_idx=1; - $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr4_class)) - $attr4_class=$row_class; - global $cell_column_nr; - $cell_column_nr=0; - $column_class_idx = 999; -?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5_debug_info = 'a:2:{s:5:"class";s:3:"act";s:7:"colspan";s:1:"2";}' ?><?php $attr5 = array('class'=>'act','colspan'=>'2') ?><?php $attr5_class='act' ?><?php $attr5_colspan='2' ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr5_class)) - $attr5['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) - $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_colspan) ?><?php $attr6_debug_info = 'a:4:{s:4:"type";s:2:"ok";s:5:"class";s:2:"ok";s:5:"value";s:2:"ok";s:4:"text";s:9:"button_ok";}' ?><?php $attr6 = array('type'=>'ok','class'=>'ok','value'=>'ok','text'=>'button_ok') ?><?php $attr6_type='ok' ?><?php $attr6_class='ok' ?><?php $attr6_value='ok' ?><?php $attr6_text='button_ok' ?><?php - if ($attr6_type=='ok') - { - if ($this->isEditable() && !$this->isEditMode()) - $attr6_text = 'MODE_EDIT'; - } - if ($attr6_type=='ok') - $attr6_type = 'submit'; - if (isset($attr6_src)) - $attr6_type = 'image'; - else - $attr6_src = ''; -?><input type="<?php echo $attr6_type ?>"<?php if(isset($attr6_src)) { ?> src="<?php echo $image_dir.'icon_'.$attr6_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $attr6_value ?>" class="<?php echo $attr6_class ?>" title="<?php echo lang($attr6_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo langHtml($attr6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr6_src) ?><?php -?><?php unset($attr6) ?><?php unset($attr6_type) ?><?php unset($attr6_class) ?><?php unset($attr6_value) ?><?php unset($attr6_text) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2_debug_info = 'a:0:{}' ?><?php $attr2 = array() ?> </table> - </td> - </tr> -</table> -</center> -<?php if ($showDuration) - { ?> -<br/> -<center><small>&nbsp; -<?php $dur = time()-START_TIME; - echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> -<?php } ?> -<?php unset($attr2) ?><?php $attr1_debug_info = 'a:0:{}' ?><?php $attr1 = array() ?></form> -<?php unset($attr1) ?><?php $attr2_debug_info = 'a:1:{s:5:"field";s:4:"text";}' ?><?php $attr2 = array('field'=>'text') ?><?php $attr2_field='text' ?><?php -if (isset($errors[0])) $attr2_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $attr2_field ?>.focus(); -document.forms[0].<?php echo $attr2_field ?>.select(); -</script> -<?php unset($attr2) ?><?php unset($attr2_field) ?><?php $attr0_debug_info = 'a:0:{}' ?><?php $attr0 = array() ?></body> -</html><?php unset($attr0) ?>- \ No newline at end of file diff --git a/themes/default/pages/html/pageelement/archive.tpl.php b/themes/default/pages/html/pageelement/archive.tpl.php @@ -1,675 +0,0 @@ -<?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_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 } ?> - <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_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 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($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 $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) ?></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($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($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 $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($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($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 $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) ?></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($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 $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) ?></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($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 $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) ?></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($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 $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) ?></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($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 $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) ?></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 - $a7_tmp_exec = empty( $$a7_empty ); - $a7_tmp_last_exec = $a7_tmp_exec; - if ( $a7_tmp_exec ) - { -?> -<?php unset($a7_empty) ?><?php - $column_idx = 0; -?> -<tr -> -<?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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="8" -><?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 $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($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 ( $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 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 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 $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($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 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($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 - $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 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($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 - $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 unset($a9_header) ?><?php $a10_date=$date; ?><?php - global $conf; - $time = $a10_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($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 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 $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($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 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 $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($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 unset($a9_header) ?><?php $a10_true=$public; ?><?php - if (gettype($a10_true) === '' && gettype($a10_true) === '1') - $a10_tmp_exec = $$a10_true == true; - else - $a10_tmp_exec = $a10_true == true; - $a10_tmp_last_exec = $a10_tmp_exec; - if ( $a10_tmp_exec ) - { -?> -<?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 $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($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($a11_present) ?><?php $a12_title=lang('GLOBAL_RELEASE_DESC');$a12_type='';$a12_url=$releaseUrl;$a12_class='';$a12_frame='_self'; ?><?php - $params = array(); - $tmp_url = ''; - $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 $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($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 $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($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 unset($a9_header) ?><?php $a10_true=$active; ?><?php - if (gettype($a10_true) === '' && gettype($a10_true) === '1') - $a10_tmp_exec = $$a10_true == true; - else - $a10_tmp_exec = $a10_true == true; - $a10_tmp_last_exec = $a10_tmp_exec; - if ( $a10_tmp_exec ) - { -?> -<?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 $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($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($a11_present) ?><?php $a12_title=lang('GLOBAL_USE_DESC');$a12_type='';$a12_url=$useUrl;$a12_class='';$a12_frame='_self'; ?><?php - $params = array(); - $tmp_url = ''; - $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 $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($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($a5_present) ?><?php - $column_idx = 0; -?> -<tr -> -<?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($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/> -<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/pageelement/diff.tpl.php b/themes/default/pages/html/pageelement/diff.tpl.php @@ -1,486 +0,0 @@ -<?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_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 } ?> - <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_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 $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 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 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 $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_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 $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_date=$date_left; ?><?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 $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 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 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 $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_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 $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_date=$date_right; ?><?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></tr><?php - $column_idx = 0; -?> -<tr -> -<?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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="4" -><?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 ( $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='diff'; ?><?php - $column_idx = 0; -?> -<tr - class="diff" -> -<?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($a9_present) ?><?php $a10_width='5%';$a10_class='line';$a10_header=false; ?><?php $column_idx++; ?><td - width="5%" - class="line" -><?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($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($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 $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($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($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 $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($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($a9_present) ?><?php $a10_width='5%';$a10_class='line';$a10_header=false; ?><?php $column_idx++; ?><td - width="5%" - class="line" -><?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($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($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 $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($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($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 $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($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; -?> -</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/> -<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/pageelement/edit.tpl.php b/themes/default/pages/html/pageelement/edit.tpl.php @@ -1,2037 +0,0 @@ -<?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(); - 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='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 ?>" 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 { ?><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 ?>" 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 { ?><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 } ?> - <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_class='help';$a4_var='desc';$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 = isset($$a4_var)?$$a4_var:$langF('UNKNOWN'); - $tmp_text = nl2br($tmp_text); - echo $tmp_text; - unset($tmp_text); -?></<?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 $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 ) - { -?> -<?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; - $column_idx = 0; - $coloumn_widths = array(); - $row_classes = array(); - $column_classes = array(); -?><table class="calendar" cellspacing="0px" width="85%" cellpadding="0px"> -<?php unset($a8_class,$a8_width,$a8_space,$a8_padding) ?><?php - $column_idx = 0; -?> -<tr -> -<?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($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 - $a11_tmp_exec = $a11_true == true; - $a11_tmp_last_exec = $a11_tmp_exec; - if ( $a11_tmp_exec ) - { -?> -<?php unset($a11_true) ?><?php $a12_title='';$a12_type='';$a12_url=$lastmonthurl;$a12_class='';$a12_frame='_self'; ?><?php - $params = array(); - $tmp_url = ''; - $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 $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($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 $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_type,$a11_cut) ?><?php $a11_true=$mode=="edit"; ?><?php - if (gettype($a11_true) === '' && gettype($a11_true) === '1') - $a11_tmp_exec = $$a11_true == true; - else - $a11_tmp_exec = $a11_true == true; - $a11_tmp_last_exec = $a11_tmp_exec; - if ( $a11_tmp_exec ) - { -?> -<?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 $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($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 = ''; - $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 $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($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 - $a11_tmp_exec = $a11_true == true; - $a11_tmp_last_exec = $a11_tmp_exec; - if ( $a11_tmp_exec ) - { -?> -<?php unset($a11_true) ?><?php $a12_title='';$a12_type='';$a12_url=$lastyearurl;$a12_class='';$a12_frame='_self'; ?><?php - $params = array(); - $tmp_url = ''; - $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 $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($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 $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_type,$a11_cut) ?><?php $a11_true=$mode=="edit"; ?><?php - if (gettype($a11_true) === '' && gettype($a11_true) === '1') - $a11_tmp_exec = $$a11_true == true; - else - $a11_tmp_exec = $a11_true == true; - $a11_tmp_last_exec = $a11_tmp_exec; - if ( $a11_tmp_exec ) - { -?> -<?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 $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($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 = ''; - $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 $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 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 $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($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 ( $a10_list_extract ) - { - if ( !is_array($$a10_list_tmp_value) ) - { - print_r($$a10_list_tmp_value); - die( 'not an array at key: '.$$a10_list_tmp_key ); - } - extract($$a10_list_tmp_value); - } -?><?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 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 $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($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 ( $a9_list_extract ) - { - if ( !is_array($$a9_list_tmp_value) ) - { - print_r($$a9_list_tmp_value); - die( 'not an array at key: '.$$a9_list_tmp_key ); - } - extract($$a9_list_tmp_value); - } -?><?php unset($a9_list,$a9_extract,$a9_key,$a9_value) ?><?php - $column_idx = 0; -?> -<tr -> -<?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($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 $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($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 ( $a11_list_extract ) - { - if ( !is_array($$a11_list_tmp_value) ) - { - print_r($$a11_list_tmp_value); - die( 'not an array at key: '.$$a11_list_tmp_key ); - } - extract($$a11_list_tmp_value); - } -?><?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($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 - $a13_tmp_exec = empty( $$a13_empty ); - $a13_tmp_last_exec = $a13_tmp_exec; - if ( $a13_tmp_exec ) - { -?> -<?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 $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($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 $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($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 $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($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 - $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($a13_not,$a13_empty) ?><?php $a14_title='';$a14_type='';$a14_url=$url;$a14_class='';$a14_frame='_self'; ?><?php - $params = array(); - $tmp_url = ''; - $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 $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($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 $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($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 $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($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 - $a13_tmp_exec = $a13_true == true; - $a13_tmp_last_exec = $a13_tmp_exec; - if ( $a13_tmp_exec ) - { -?> -<?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 $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($a14_class,$a14_raw,$a14_escape,$a14_cut) ?><?php } ?></td><?php } ?></tr><?php } ?><?php - $column_idx = $last_column_idx; -?> -</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 - $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='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($$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) ?><?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_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($$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) ?><?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_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($$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 $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 - $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='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($$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) ?><?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_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($$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) ?><?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_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($$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></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 - $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_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 ?>" 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_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; - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) - { -?> -<?php unset($a4_equals,$a4_value) ?><?php $a5_present='preview'; ?><?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='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 $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) ?></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($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.'"'; - foreach( $params as $name=>$val ) - $src .= " $name=\"$val\""; - if ( !$writable ) - $src .= ' disabled="disabled"'; - if ( $value ) - $src .= ' value="1" checked="checked"'; - $src .= ' />'; - return $src; - } - function selectBox( $name,$values,$default='',$params=Array() ) - { - if ( ! is_array($values) ) - $values = array($values); - $src = '<select size="1" name="'.$name.'"'; - foreach( $params as $name=>$value ) - $src .= " $name=\"$value\""; - $src .= '>'; - foreach( $values as $key=>$value ) - { - $src .= '<option value="'.$key.'"'; - if ($key == $default) - $src .= ' selected="selected"'; - $src .= '>'.$value.'</option>'; - } - $src .= '</select>'; - return $src; - } - function add_control($type,$image) - { - global $image_dir; - 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( $a6_type ) -{ - case 'fckeditor': - case 'html': - echo '<textarea name="'.$a6_name.'" class="editor htmleditor" id="pageelement_edit_editor">'.$$a6_name.'</textarea>'; - break; - case 'wiki': - $conf_tags = $conf['editor']['text-markup']; - ?><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="'.$a6_name.'" class="editor" style="width:100%;height:300px;">'.$$a6_name.'</textarea>'; - else - echo nl2br($$a6_name); - break; - case 'dom': - case 'tree': - $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: ".$a6_type; -} -?><?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($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($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 $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) ?></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.'"'; - foreach( $params as $name=>$val ) - $src .= " $name=\"$val\""; - if ( !$writable ) - $src .= ' disabled="disabled"'; - if ( $value ) - $src .= ' value="1" checked="checked"'; - $src .= ' />'; - return $src; - } - function selectBox( $name,$values,$default='',$params=Array() ) - { - if ( ! is_array($values) ) - $values = array($values); - $src = '<select size="1" name="'.$name.'"'; - foreach( $params as $name=>$value ) - $src .= " $name=\"$value\""; - $src .= '>'; - foreach( $values as $key=>$value ) - { - $src .= '<option value="'.$key.'"'; - if ($key == $default) - $src .= ' selected="selected"'; - $src .= '>'.$value.'</option>'; - } - $src .= '</select>'; - return $src; - } - function add_control($type,$image) - { - global $image_dir; - 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( $a6_type ) -{ - case 'fckeditor': - case 'html': - echo '<textarea name="'.$a6_name.'" class="editor htmleditor" id="pageelement_edit_editor">'.$$a6_name.'</textarea>'; - break; - case 'wiki': - $conf_tags = $conf['editor']['text-markup']; - ?><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="'.$a6_name.'" class="editor" style="width:100%;height:300px;">'.$$a6_name.'</textarea>'; - else - echo nl2br($$a6_name); - break; - case 'dom': - case 'tree': - $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: ".$a6_type; -} -?><?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 - $a6_tmp_exec = $a6_true == true; - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) - { -?> -<?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; - $column_idx = 0; - $coloumn_widths = array(); - $row_classes = array(); - $column_classes = array(); -?><table class="%class%" cellspacing="0px" width="100%" cellpadding="0px"> -<?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 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 $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($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 $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) ?><?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 $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($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 $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($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 $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) ?><?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 $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($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 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 $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($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 $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) ?><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 $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($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 $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($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 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 $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($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 $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) ?><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 $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($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 $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($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 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 $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($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 $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) ?><?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 $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($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 $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($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 $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($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 $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($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 $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($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 $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($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 $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($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 $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($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 $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($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 $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($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 $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($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 $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($a10_class,$a10_value,$a10_escape,$a10_cut) ?><br/></td><?php - $column_idx = $last_column_idx; -?> -</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($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 $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($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) ?><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 $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='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()) -{ - 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) ?><?php $a7_field='linkobjectid'; ?><script name="JavaScript" type="text/javascript"><!-- -</script> -<?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 - $a6_tmp_exec = $a6_true == true; - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) - { -?> -<?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 $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) ?></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 ?>" 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) ?></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) ?><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()) -{ - 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) ?><?php $a7_field='linkobjectid'; ?><script name="JavaScript" type="text/javascript"><!-- -</script> -<?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) ?><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()) -{ - 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) ?><?php $a7_field='linkobjectid'; ?><script name="JavaScript" type="text/javascript"><!-- -</script> -<?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) ?><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) ) - $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) ?><?php $a7_class='text';$a7_default='';$a7_type='text';$a7_name='number';$a7_size='15';$a7_maxlength='20';$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_field='number'; ?><script name="JavaScript" type="text/javascript"><!-- -</script> -<?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) ?><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()) -{ - 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) ?><?php $a7_field='text'; ?><script name="JavaScript" type="text/javascript"><!-- -</script> -<?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 - $a4_tmp_exec = $a4_true == true; - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) - { -?> -<?php unset($a4_true) ?><?php $a5_equals='longtext';$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 $a6_equals='wiki';$a6_value=$editor; ?><?php - $a6_tmp_exec = $a6_equals == $a6_value; - $a6_tmp_last_exec = $a6_tmp_exec; - if ( $a6_tmp_exec ) - { -?> -<?php unset($a6_equals,$a6_value) ?><?php $a7_present='languages'; ?><?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=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; - 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 ( $a10_list_extract ) - { - if ( !is_array($$a10_list_tmp_value) ) - { - print_r($$a10_list_tmp_value); - die( 'not an array at key: '.$$a10_list_tmp_key ); - } - extract($$a10_list_tmp_value); - } -?><?php unset($a10_list,$a10_extract,$a10_key,$a10_value) ?><?php $a11_readonly=false;$a11_name='otherlanguageid';$a11_value=$languageid;$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 - $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<?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 - $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($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; - else - $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 $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<?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 - $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) ?></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) ?><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 = $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='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 $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 } ?><?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) ?><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 = $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='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 $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 } ?></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/> -<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/pageelement/export.tpl.php b/themes/default/pages/html/pageelement/export.tpl.php @@ -1,246 +0,0 @@ -<?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_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 } ?> - <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_width,$a4_rowclasses,$a4_columnclasses) ?><?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_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($$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) ?></td></tr><?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_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/> -<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='text'; ?><script name="JavaScript" type="text/javascript"><!-- -</script> -<?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,258 +0,0 @@ -<?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_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 } ?> - <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_width,$a4_rowclasses,$a4_columnclasses) ?><?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_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($$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) ?></td></tr><?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_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 $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_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/> -<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='text'; ?><script name="JavaScript" type="text/javascript"><!-- -</script> -<?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,389 +0,0 @@ -<?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_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 } ?> - <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_width,$a4_rowclasses,$a4_columnclasses) ?><?php - $column_idx = 0; -?> -<tr -> -<?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($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 $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 - $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_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($$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) ?></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 $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 $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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="2" -><?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($a5_present) ?><?php - $column_idx = 0; -?> -<tr -> -<?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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="2" -><?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 = $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 $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 - $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_text='GLOBAL_RELEASE';$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) ?></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($a5_present) ?><?php - $column_idx = 0; -?> -<tr -> -<?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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="2" -><?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 = $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 $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 - $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_text='PAGE_PUBLISH_AFTER_SAVE';$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) ?></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 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='linko'; ?><script name="JavaScript" type="text/javascript"><!-- -</script> -<?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,719 +0,0 @@ -<?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='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 } ?> - <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_icon,$a4_widths,$a4_width,$a4_rowclasses,$a4_columnclasses) ?><?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_class='text';$a7_text='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) ?></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($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 $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 - $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_class='text';$a7_text='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_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_header=false; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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 - $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_class='text';$a7_text='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_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';$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($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 $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 - $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=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 $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='template';$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_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_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_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 $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 } ?></td></tr><?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_class='text';$a7_key='element';$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_present='element_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_main';$a8_url=$element_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_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 $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='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 - $a7_tmp_exec = empty( $$a7_empty ); - $a7_tmp_last_exec = $a7_tmp_exec; - if ( $a7_tmp_exec ) - { -?> -<?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 $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 } ?></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($a5_present) ?><?php - $column_idx = 0; -?> -<tr -> -<?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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="2" -><?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 $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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="2" -><?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.'"'; - foreach( $params as $name=>$val ) - $src .= " $name=\"$val\""; - if ( !$writable ) - $src .= ' disabled="disabled"'; - if ( $value ) - $src .= ' value="1" checked="checked"'; - $src .= ' />'; - return $src; - } - function selectBox( $name,$values,$default='',$params=Array() ) - { - if ( ! is_array($values) ) - $values = array($values); - $src = '<select size="1" name="'.$name.'"'; - foreach( $params as $name=>$value ) - $src .= " $name=\"$value\""; - $src .= '>'; - foreach( $values as $key=>$value ) - { - $src .= '<option value="'.$key.'"'; - if ($key == $default) - $src .= ' selected="selected"'; - $src .= '>'.$value.'</option>'; - } - $src .= '</select>'; - return $src; - } - function add_control($type,$image) - { - global $image_dir; - 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 ) -{ - case 'fckeditor': - case 'html': - echo '<textarea name="'.$a8_name.'" class="editor htmleditor" id="pageelement_edit_editor">'.$$a8_name.'</textarea>'; - break; - case 'wiki': - $conf_tags = $conf['editor']['text-markup']; - ?><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="'.$a8_name.'" class="editor" style="width:100%;height:300px;">'.$$a8_name.'</textarea>'; - else - echo nl2br($$a8_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'); - break; - default: - echo "Unknown editor type: ".$a8_type; -} -?><?php unset($a8_name,$a8_type) ?></td></tr><?php } ?><?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=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 $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_text='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) ?></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_width='100%';$a7_space='0px';$a7_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($a7_width,$a7_space,$a7_padding) ?><?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_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 = $a10_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($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 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 = $$a10_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($a10_user) ?></td></tr><?php - $column_idx = $last_column_idx; -?> -</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/> -<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/pageelement/show.tpl.php b/themes/default/pages/html/pageelement/show.tpl.php @@ -1,250 +0,0 @@ -<?php $attr1_debug_info = 'a:1:{s:5:"class";s:4:"main";}' ?><?php $attr1 = array('class'=>'main') ?><?php $attr1_class='main' ?><?php - if (!headers_sent()) header('Content-Type: text/html; charset='.$charset) -?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<html> -<head> - <title><?php echo isset($attr1_title)?$attr1_title.' - ':(isset($windowTitle)?lang($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" /> - <meta name="MSSmartTagsPreventParsing" content="true" /> - <meta name="robots" content="noindex,nofollow" /> -<?php if (isset($windowMenu) && is_array($windowMenu)) foreach( $windowMenu as $menu ) - { - ?> - <link rel="section" href="<?php echo Html::url($actionName,@$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" /> -<?php - } -?><?php if (isset($metaList) && is_array($metaList)) foreach( $metaList as $meta ) - { - ?> - <link rel="<?php echo $meta['name'] ?>" href="<?php echo $meta['url'] ?>" title="<?php echo lang($meta['title']) ?>" /><?php - } -?><script type="text/javascript" src="themes/default/js/jquery.js"></script> - <script type="text/javascript" src="themes/default/js/jquery-lightbox.js"></script> - <link rel="stylesheet" type="text/css" href="themes/default/js/lightbox/css/jquery-lightbox.css" media="screen" /> - <script type="text/javascript"> - $(function() { - $('a.image').lightBox(); - }); - </script> -<?php if(!empty($root_stylesheet)) { ?> - <link rel="stylesheet" type="text/css" href="<?php echo $root_stylesheet ?>" /> -<?php } ?> -<?php if($root_stylesheet!=$user_stylesheet) { ?> - <link rel="stylesheet" type="text/css" href="<?php echo $user_stylesheet ?>" /> -<?php } ?> -</head> -<body class="<?php echo $attr1_class ?>" <?php if (@$conf['interface']['application_mode']) { ?> style="padding:0px;margin:0px;"<?php } ?> > -<?php unset($attr1) ?><?php unset($attr1_class) ?><?php $attr2_debug_info = 'a:4:{s:4:"name";s:7:"element";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'=>'element','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr2_name='element' ?><?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">'; - echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; - if ($this->isEditable()) { ?> - <?php if ($this->getRequestVar('mode')=='edit') { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo langHtml('MODE_EDIT_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>mode-edit.png" style="vertical-align:top; " border="0" /></a> <?php } else { - ?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php } - ?><?php } - echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; - if ( !isset($path) || is_array($path) ) - $path = array(); - foreach( $path as $pathElement) - { - extract($pathElement); - echo '<a href="'.$url.'" class="path">'.langHtml($name).'</a>'; - echo '&nbsp;&raquo;&nbsp;'; - } - echo '<span class="title">'.langHtml($windowTitle).'</span>'; - ?> - </td> - <?php - } - ?> -<?php ?> <!--<td class="menu" style="align:right;"> - <?php if (isset($windowIcons)) foreach( $windowIcons as $icon ) - { - ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.langHtml($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a>&nbsp;<?php - } - ?> - </td>--> - </tr> - <tr><td class="subaction"> - <?php if ( !isset($windowMenu) || !is_array($windowMenu) ) - $windowMenu = array(); - foreach( $windowMenu as $menu ) - { - $tmp_text = langHtml($menu['text']); - $tmp_key = strtoupper(langHtml($menu['key' ])); - $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); - if ( $tmp_pos !== false ) - $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); - if ( isset($menu['url']) ) - { - ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu<?php echo $this->subActionName==$menu['subaction']?'_highlight':'' ?>"><?php echo $tmp_text ?></a>&nbsp;&nbsp;&nbsp;<?php - } - else - { - ?><span class="menu_disabled" title="<?php echo langHtml($menu['text'].'_DESC') ?>" class="menu_disabled"><?php echo $tmp_text ?></span>&nbsp;&nbsp;&nbsp;<?php - } - } - if (@$conf['help']['enabled'] ) - { - ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo langHtml('MENU_HELP_DESC') ?>" class="menu" style="cursor:help;"><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php - } - ?></td> - </tr> -<?php if (isset($notices) && count($notices)>0 ) - { ?> - <tr> - <td align="center" class="notice"> - <?php foreach( $notices as $notice_idx=>$notice ) { ?> - <br><table class="notice" width="80%"> - <?php if ($notice['name']!='') { ?> - <tr> - <td colspan="2" class="subaction" style="padding:2px; white-space:nowrap; border-bottom:1px solid black;"><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?> - </td> - </tr> -<?php } ?> - <tr class="notice_<?php echo $notice['status'] ?>"> - <td style="padding:10px;" width="30px"><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> - <td style="padding:10px;padding-right:10px;padding-bottom:10px;"><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo langHtml($notice['key'],$notice['vars']) ?><?php if ($notice['status']=='error') { ?></strong><?php } ?> - <?php if (!empty($notice['log'])) { ?><pre><?php echo htmlentities(implode("\n",$notice['log'])) ?></pre><?php } ?> - </td> - </tr> - </table> - <?php } ?> - </td> - </tr> - <tr> - <td colspan="2"><fieldset></fieldset></td> - </tr> -<?php } ?> - <tr> - <td> - <table class="n" cellspacing="0" width="100%" cellpadding="4"> -<?php unset($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:2:{s:5:"class";s:2:"fx";s:7:"colspan";s:1:"2";}' ?><?php $attr4 = array('class'=>'fx','colspan'=>'2') ?><?php $attr4_class='fx' ?><?php $attr4_colspan='2' ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($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) ?><?php unset($attr4_colspan) ?><?php $attr5_debug_info = 'a:3:{s:5:"class";s:4:"text";s:3:"var";s:5:"value";s:6:"escape";s:5:"false";}' ?><?php $attr5 = array('class'=>'text','var'=>'value','escape'=>false) ?><?php $attr5_class='text' ?><?php $attr5_var='value' ?><?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)) - $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 ( $attr5_escape ) - $langF = 'langHtml'; - else - $langF = 'lang'; - if (!empty($attr5_array)) - { - $tmpArray = $$attr5_array; - if (!empty($attr5_var)) - $tmp_text = $tmpArray[$attr5_var]; - else - $tmp_text = $langF($tmpArray[$attr5_text]); - } - elseif (!empty($attr5_text)) - $tmp_text = $langF($attr5_text); - elseif (!empty($attr5_textvar)) - $tmp_text = $langF($$attr5_textvar); - elseif (!empty($attr5_key)) - $tmp_text = $langF($attr5_key); - elseif (!empty($attr5_var)) - $tmp_text = isset($$attr5_var)?$$attr5_var:'?unset:'.$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 ( !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); - } - 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) ?><?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 if ($showDuration) - { ?> -<br/> -<center><small>&nbsp; -<?php $dur = time()-START_TIME; - echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> -<?php } ?> -<?php unset($attr1) ?><?php $attr0_debug_info = 'a:0:{}' ?><?php $attr0 = array() ?></body> -</html><?php unset($attr0) ?>- \ No newline at end of file diff --git a/themes/default/pages/html/profile/confirmmail.tpl.php b/themes/default/pages/html/profile/confirmmail.tpl.php @@ -1,226 +0,0 @@ -<?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='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 } ?> - <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_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='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 $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_text='mail_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) ?></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_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 $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 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/profile/edit.tpl.php b/themes/default/pages/html/profile/edit.tpl.php @@ -1,196 +0,0 @@ -<?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(); - 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('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 - $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('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 - $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='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 $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></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 ?>" 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><?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 ?>" 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><?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 ?>" 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><?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()) -{ - echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; -} -else -{ -if ( $a6_addempty!==FALSE ) -{ - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; - else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_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).'"'; -?>><?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; - else - $a6_tmp_default = ''; - foreach( $a6_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( $a6_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - 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($$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) ?></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,167 +0,0 @@ -<?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 } ?> - <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 unset($a2_name,$a2_icon,$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_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 $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) ?><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 ( $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='text';$a7_var='group';$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 } ?></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/> -<center><small>&nbsp; -<?php $dur = time()-START_TIME; - echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> -<?php } ?> diff --git a/themes/default/pages/html/profile/mail.tpl.php b/themes/default/pages/html/profile/mail.tpl.php @@ -1,237 +0,0 @@ -<?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 } ?> -</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()) - { - $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='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 } ?> - <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_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='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 $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=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 $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) ?></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 $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 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='mail'; ?><script name="JavaScript" type="text/javascript"><!-- -</script> -<?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 @@ -1,109 +0,0 @@ -<?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 @@ -1,71 +0,0 @@ -<?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,206 +0,0 @@ -<?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(); - 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;" - class="<?php echo $a2_action ?>"> -<?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_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 } ?> - <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 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 - } - ?> - </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 - } - ?> -<div 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); - 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') ?>"><img src="<?php echo $image_dir.'icon/'.$menu['subaction'].'.png' ?>" /><?php echo $tmp_text ?></a><?php - } - else - { - ?><div class="noaction"><img src="<?php echo $image_dir.'icon/'.$menu['subaction'].'.png' ?>" /><?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') ?>"><img src="<?php echo $image_dir.'icon/help.png' ?>" /><?php echo @$conf['help']['only_question_mark']?'?':langHtml('MENU_HELP') ?></a><?php - } - ?><br/><?php - ?> -</div> -<?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 } ?> -<?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';$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='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';$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=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 $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><?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 $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><?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 $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><?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';$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'; ?><?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 - } -?><?php unset($a6_type,$a6_class,$a6_value,$a6_text) ?></td></tr><?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='act_password'; ?><?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) ?>- \ 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,244 +0,0 @@ -<?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='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 - $column_idx = 0; -?> -<tr -> -<?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=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 = $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 $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 $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) ?></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 = $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 $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 $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) ?></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()) -{ - 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) ?></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()) -{ - 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) ?></fieldset></td></tr><?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 - $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,321 +0,0 @@ -<?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_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 } ?> - <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_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_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 $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_header=false; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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_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 $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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="3" -><?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 - $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 $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) ?></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 - $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 $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) ?></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($$a9_name)?'- '.lang('EMPTY').' -':$a9_tmp_list[$$a9_name]; -} -else -{ -if ( $a9_addempty!==FALSE ) -{ - if ($a9_addempty===TRUE) - $a9_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a9_tmp_list; - else - $a9_tmp_list = array(''=>'- '.lang($a9_addempty).' -')+$a9_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).'"'; -?>><?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; - else - $a9_tmp_default = ''; - foreach( $a9_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( $a9_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - 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($$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($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 $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($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/> -<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='name'; ?><script name="JavaScript" type="text/javascript"><!-- -</script> -<?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,129 +0,0 @@ -<?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(); - 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('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 ?>" 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></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 ?>" 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><?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 ?>" 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></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 ?>" 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) ?><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; - 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='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; - 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='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; - 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='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,154 +0,0 @@ -<?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 - $column_idx = 0; -?> -<tr -> -<?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($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 $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_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($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($$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) ?></td></tr><?php - $column_idx = 0; -?> -<tr -> -<?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($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,40 +0,0 @@ -<?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 ( $a2_list_extract ) - { - if ( !is_array($$a2_list_tmp_value) ) - { - print_r($$a2_list_tmp_value); - die( 'not an array at key: '.$$a2_list_tmp_key ); - } - extract($$a2_list_tmp_value); - } -?><?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'; -?><<?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_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 $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_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,216 +0,0 @@ -<?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 } ?> - <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_header=false; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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_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 - $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 ( $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/> -<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/project/maintenance.tpl.php b/themes/default/pages/html/project/maintenance.tpl.php @@ -1,113 +0,0 @@ -<?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_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 - $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 $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) ?></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 - $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 $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) ?></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,250 +0,0 @@ -<?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_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 } ?> - <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_width,$a4_rowclasses,$a4_columnclasses) ?><?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_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 $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_header=false; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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='name';$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 - $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 - $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=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 = $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 $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='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 $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($a10_class,$a10_text,$a10_escape,$a10_cut) ?></label></div></fieldset></td></tr><?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 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='delete'; ?><script name="JavaScript" type="text/javascript"><!-- -</script> -<?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 @@ -1,169 +0,0 @@ -<?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 @@ -1,128 +0,0 @@ -<?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,343 +0,0 @@ -<?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_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 } ?> - <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_icon,$a4_width,$a4_rowclasses,$a4_columnclasses) ?><?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=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 $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_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 - $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 $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></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_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($$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) ?></td></tr><?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=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 $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_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 - $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 $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></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_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 $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 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='name'; ?><script name="JavaScript" type="text/javascript"><!-- -</script> -<?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,420 +0,0 @@ -<?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_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 } ?> - <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_icon,$a4_width,$a4_rowclasses,$a4_columnclasses) ?><?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=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 $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_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 - $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 $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><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 - $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 $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></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_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($$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) ?></td></tr><?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=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 $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_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 - $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 $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><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 - $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 $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><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 - $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 $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><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 - $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 $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><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 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($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($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/> -<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='name'; ?><script name="JavaScript" type="text/javascript"><!-- -</script> -<?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,278 +0,0 @@ -<?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 } ?> - <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_widths,$a3_width,$a3_rowclasses,$a3_columnclasses) ?><?php - $column_idx = 0; -?> -<tr -> -<?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,$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 $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 $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,$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 $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='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 ( $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='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?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_title='';$a7_type='';$a7_target='cms_main';$a7_url=$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_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 $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_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 unset($a6_header) ?><?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) ?></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/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 @@ -1,239 +0,0 @@ -<?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 @@ -1,322 +0,0 @@ -<?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,465 +0,0 @@ -<?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_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 } ?> - <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_widths,$a4_width,$a4_rowclasses,$a4_columnclasses) ?><?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_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 $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_header=false; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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_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 $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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="3" -><?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 $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_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 - $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 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 $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></td></tr><?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_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) ?></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_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></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_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($$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) ?></td></tr><?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_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 - $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 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 $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></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_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($$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) ?></td></tr><?php - $column_idx = 0; -?> -<tr -> -<?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($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/> -<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='name'; ?><script name="JavaScript" type="text/javascript"><!-- -</script> -<?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,163 +0,0 @@ -<?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='global_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_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 $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_var='text';$a5_value='text'; ?><?php - if (isset($a5_key)) - $$a5_var = $a5_value[$a5_key]; - else - $$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($$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><?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 = $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_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 $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) ?></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,142 +0,0 @@ -<?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); ?> - <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_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($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/> -<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/el.tpl.php b/themes/default/pages/html/template/el.tpl.php @@ -1,298 +0,0 @@ -<?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_header=false; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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_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 ( $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_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 $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; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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_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 $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_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 - $a5_tmp_exec = empty( $$a5_empty ); - $a5_tmp_last_exec = $a5_tmp_exec; - if ( $a5_tmp_exec ) - { -?> -<?php unset($a5_empty) ?><?php - $column_idx = 0; -?> -<tr -> -<?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 } ?> -<?php if (!empty($column_classes)) { ?> - class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>" -<?php } ?> - colspan="2" -><?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 $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/> -<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/extension.tpl.php b/themes/default/pages/html/template/extension.tpl.php @@ -1,146 +0,0 @@ -<?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_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 - $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_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; - 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_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()) -{ - echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; -} -else -{ -if ( $a6_addempty!==FALSE ) -{ - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; - else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_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).'"'; -?>><?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; - else - $a6_tmp_default = ''; - foreach( $a6_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( $a6_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - 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($$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) ?></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; - 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_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 ?>" 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></fieldset></form> diff --git a/themes/default/pages/html/template/listing.tpl.php b/themes/default/pages/html/template/listing.tpl.php @@ -1,252 +0,0 @@ -<?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 $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/template/name.tpl.php b/themes/default/pages/html/template/name.tpl.php @@ -1,166 +0,0 @@ -<?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(); - 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='TEMPLATE_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><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 $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) ?></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 = ''; - $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 $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></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 $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) ?></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 = ''; - $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 $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></div></div></form> diff --git a/themes/default/pages/html/template/pages.tpl.php b/themes/default/pages/html/template/pages.tpl.php @@ -1,106 +0,0 @@ -<?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='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; - 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_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_type='';$a6_target='cms_main';$a6_class='';$a6_action='main';$a6_subaction='page';$a6_id=$pageid;$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_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 - $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) ?></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 @@ -1,17 +0,0 @@ -<?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,96 +0,0 @@ -<?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_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></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; - 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='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 - $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/template/src.tpl.php b/themes/default/pages/html/template/src.tpl.php @@ -1,239 +0,0 @@ -<?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_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 } ?> - <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_width,$a4_rowclasses,$a4_columnclasses) ?><?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_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 $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 $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($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/> -<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='src'; ?><script name="JavaScript" type="text/javascript"><!-- -</script> -<?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,253 +0,0 @@ -<?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_present='elements'; ?><?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='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 - $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 $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_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($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; -} -else -{ -if ( $a6_addempty!==FALSE ) -{ - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; - else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_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).'"'; -?>><?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; - else - $a6_tmp_default = ''; - foreach( $a6_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( $a6_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - 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($$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) ?></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($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 - $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 $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_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($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; -} -else -{ -if ( $a6_addempty!==FALSE ) -{ - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; - else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_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).'"'; -?>><?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; - else - $a6_tmp_default = ''; - foreach( $a6_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( $a6_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - 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($$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) ?></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 - $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 $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) ?></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 - $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 $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) ?></div></div><?php } ?></form> diff --git a/themes/default/pages/html/templatelist/show.tpl.php b/themes/default/pages/html/templatelist/show.tpl.php @@ -1,254 +0,0 @@ -<?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,330 +0,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 ) - { -?> -<?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 $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($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_class='text';$a3_default='';$a3_type='text';$a3_name='text';$a3_size='';$a3_maxlength='256';$a3_onchange='';$a3_readonly=false;$a3_hint=lang('search');$a3_icon='search'; ?><?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') { -?><div class="inputholder"><input<?php if ($a3_readonly) echo ' disabled="true"' ?><?php if ($a3_hint) echo ' data-hint="'.$a3_hint.'"'; ?> 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_icon) echo '<img class="icon" src="'.$image_dir.'icon_'.$a3_icon.IMG_ICON_EXT.'" width="16" height="16" />'; ?></div><?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 { ?><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,$a3_hint,$a3_icon) ?><?php $a3_class='dropdown'; ?><div class="<?php echo $a3_class ?>"><?php unset($a3_class) ?><?php $a4_class='text';$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($a4_class,$a4_raw,$a4_escape,$a4_cut) ?></div></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 $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($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';$a4_modal=false; ?><?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 'modal': - $tmp_function_call = "modalView(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('Link-attribute type required');"; - } -?><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,$a4_modal) ?><?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 $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 $a4_title=lang('start');$a4_type='post';$a4_class='';$a4_action='start';$a4_subaction='start';$a4_frame='_self';$a4_modal=false; ?><?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 'modal': - $tmp_function_call = "modalView(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('Link-attribute type required');"; - } -?><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,$a4_modal) ?><?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_class='text';$a5_key='start';$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 $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($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';$a5_modal=false; ?><?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 'modal': - $tmp_function_call = "modalView(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('Link-attribute type required');"; - } -?><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,$a5_modal) ?><?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_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 = $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><?php } ?><?php $a4_title=lang('USER_LOGOUT_DESC');$a4_type='post';$a4_class='entry';$a4_action='login';$a4_subaction='logout';$a4_frame='_self';$a4_modal=false; ?><?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 'modal': - $tmp_function_call = "modalView(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('Link-attribute type required');"; - } -?><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,$a4_modal) ?><?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 $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></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';$a5_modal=false; ?><?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 'modal': - $tmp_function_call = "modalView(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('Link-attribute type required');"; - } -?><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,$a5_modal) ?><?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 = 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_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 @@ -1,328 +0,0 @@ -<?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 @@ -1,242 +0,0 @@ -<?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,328 +0,0 @@ -<?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/user/add.tpl.php b/themes/default/pages/html/user/add.tpl.php @@ -1,66 +0,0 @@ -<?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/user/addgroup.tpl.php b/themes/default/pages/html/user/addgroup.tpl.php @@ -1,307 +0,0 @@ -<?php $attr1_debug_info = 'a:1:{s:5:"class";s:4:"main";}' ?><?php $attr1 = array('class'=>'main') ?><?php $attr1_class='main' ?><?php - if (!headers_sent()) header('Content-Type: text/html; charset='.$charset) -?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<html> -<head> - <title><?php echo isset($attr1_title)?$attr1_title.' - ':(isset($windowTitle)?lang($windowTitle).' - ':'') ?><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=<?php echo $charset ?>" /> - <meta name="MSSmartTagsPreventParsing" content="true" /> - <meta name="robots" content="noindex,nofollow" /> -<?php if (isset($windowMenu) && is_array($windowMenu)) foreach( $windowMenu as $menu ) - { - ?> - <link rel="section" href="<?php echo Html::url($actionName,@$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" /> -<?php - } -?><?php if (isset($metaList) && is_array($metaList)) foreach( $metaList as $meta ) - { - ?> - <link rel="<?php echo $meta['name'] ?>" href="<?php echo $meta['url'] ?>" title="<?php echo lang($meta['title']) ?>" /><?php - } -?><script type="text/javascript" src="themes/default/js/jquery.js"></script> - <script type="text/javascript" src="themes/default/js/jquery-lightbox.js"></script> - <link rel="stylesheet" type="text/css" href="themes/default/js/lightbox/css/jquery-lightbox.css" media="screen" /> - <script type="text/javascript"> - $(function() { - $('a.image').lightBox(); - }); - </script> -<?php if(!empty($root_stylesheet)) { ?> - <link rel="stylesheet" type="text/css" href="<?php echo $root_stylesheet ?>" /> -<?php } ?> -<?php if($root_stylesheet!=$user_stylesheet) { ?> - <link rel="stylesheet" type="text/css" href="<?php echo $user_stylesheet ?>" /> -<?php } ?> -</head> -<body class="<?php echo $attr1_class ?>" <?php if (@$conf['interface']['application_mode']) { ?> style="padding:0px;margin:0px;"<?php } ?> > -<?php unset($attr1) ?><?php unset($attr1_class) ?><?php $attr2_debug_info = 'a:4:{s:4:"name";s:0:"";s:6:"target";s:5:"_self";s:6:"method";s:4:"post";s:7:"enctype";s:33:"application/x-www-form-urlencoded";}' ?><?php $attr2 = array('name'=>'','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr2_name='' ?><?php $attr2_target='_self' ?><?php $attr2_method='post' ?><?php $attr2_enctype='application/x-www-form-urlencoded' ?><?php - if (empty($attr2_action)) - $attr2_action = $actionName; - if (empty($attr2_subaction)) - $attr2_subaction = $targetSubActionName; - if (empty($attr2_id)) - $attr2_id = $this->getRequestId(); - if ($this->isEditable() && $this->getRequestVar('mode')!='edit') - $attr2_subaction = $subActionName; -?><form name="<?php echo $attr2_name ?>" - target="<?php echo $attr2_target ?>" - action="<?php echo Html::url( $attr2_action,$attr2_subaction,$attr2_id ) ?>" - method="<?php echo $attr2_method ?>" - enctype="<?php echo $attr2_enctype ?>" style="margin:0px;padding:0px;"> -<?php if ($this->isEditable() && $this->getRequestVar('mode')!='edit') { ?> -<input type="hidden" name="mode" value="edit" /> -<?php } ?> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $attr2_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $attr2_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr2_id ?>" /><?php - if ( $conf['interface']['url_sessionid'] ) - echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($attr2) ?><?php unset($attr2_name) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php $attr3_debug_info = 'a:4:{s:4:"name";s:16:"USER_MEMBERSHIPS";s:5:"width";s:3:"70%";s:10:"rowclasses";s:8:"odd,even";s:13:"columnclasses";s:5:"1,2,3";}' ?><?php $attr3 = array('name'=>'USER_MEMBERSHIPS','width'=>'70%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_name='USER_MEMBERSHIPS' ?><?php $attr3_width='70%' ?><?php $attr3_rowclasses='odd,even' ?><?php $attr3_columnclasses='1,2,3' ?><?php - $coloumn_widths=array(); - if (!empty($attr3_widths)) - { - $column_widths = explode(',',$attr3_widths); - unset($attr3['widths']); - } - if (!empty($attr3_rowclasses)) - { - $row_classes = explode(',',$attr3_rowclasses); - $row_class_idx = 999; - unset($attr3['rowclasses']); - } - if (!empty($attr3_columnclasses)) - { - $column_classes = explode(',',$attr3_columnclasses); - unset($attr3['columnclasses']); - } - global $image_dir; - if (@$conf['interface']['application_mode'] ) - { - echo '<table class="main" cellspacing="0" cellpadding="4" width="100%" style="margin:0px;border:0px; padding:0px;" height_oo="100%">'; - } - else - { - echo '<br/><br/><br/><center>'; - echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr3_width.'">'; - } - if (!@$conf['interface']['application_mode'] ) - { - echo '<tr><td class="menu">'; - echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">'; - echo '<span class="path">'.lang('GLOBAL_'.$actionName).'</span>&nbsp;<strong>&raquo;</strong>&nbsp;'; - if ( !isset($path) || is_array($path) ) - $path = array(); - foreach( $path as $pathElement) - { - extract($pathElement); - echo '<a href="'.$url.'" class="path">'.lang($name).'</a>'; - echo '&nbsp;&raquo;&nbsp;'; - } - echo '<span class="title">'.lang($windowTitle).'</span>'; - if ($this->isEditable()) { ?> - <?php if ($this->getRequestVar('mode')=='edit') { ?> - &nbsp;&nbsp;(<a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId() ) ?>" accesskey="1" title="<?php echo lang('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><?php echo lang('MODE_EDIT_CANCEL') ?></a>) - <?php } else { ?> - <?php } ?> - <?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_'.lang($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a>&nbsp;<?php - } - ?> - </td>--> - </tr> - <tr><td class="subaction"> - <?php if ( !isset($windowMenu) || !is_array($windowMenu) ) - $windowMenu = array(); - foreach( $windowMenu as $menu ) - { - $tmp_text = lang($menu['text']); - $tmp_key = strtoupper(lang($menu['key' ])); - $tmp_pos = strpos(strtolower($tmp_text),strtolower($tmp_key)); - if ( $tmp_pos !== false ) - $tmp_text = substr($tmp_text,0,max($tmp_pos,0)).'<span class="accesskey">'. substr($tmp_text,$tmp_pos,1).'</span>'.substr($tmp_text,$tmp_pos+1); - if ( isset($menu['url']) ) - { - ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" accesskey="<?php echo $tmp_key ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php echo $this->subActionName==$menu['subaction']?'_highlight':'' ?>"><?php echo $tmp_text ?></a>&nbsp;&nbsp;&nbsp;<?php - } - else - { - ?><span class="menu_disabled" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu_disabled"><?php echo $tmp_text ?></span>&nbsp;&nbsp;&nbsp;<?php - } - } - if (@$conf['help']['enabled'] ) - { - ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.@$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('MENU_HELP_DESC') ?>" class="menu" style="cursor:help;"><?php echo @$conf['help']['only_question_mark']?'?':lang('MENU_HELP') ?></a><?php - } - ?></td> - </tr> -<?php if (isset($notices) && count($notices)>0 ) - { ?> - <tr> - <td align="center" class="notice"> - <?php foreach( $notices as $notice_idx=>$notice ) { ?> - <br><table class="notice" width="80%"> - <?php if ($notice['name']!='') { ?> - <tr> - <td colspan="2" class="subaction" style="padding:2px; white-space:nowrap; border-bottom:1px solid black;"><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?> - </td> - </tr> -<?php } ?> - <tr class="notice_<?php echo $notice['status'] ?>"> - <td style="padding:10px;" width="30px"><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> - <td style="padding:10px;padding-right:10px;padding-bottom:10px;"><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?> - <?php if (!empty($notice['log'])) { ?><pre><?php echo htmlentities(implode("\n",$notice['log'])) ?></pre><?php } ?> - </td> - </tr> - </table> - <?php } ?> - </td> - </tr> - <tr> - <td colspan="2"><fieldset></fieldset></td> - </tr> -<?php } ?> - <tr> - <td> - <table class="n" cellspacing="0" width="100%" cellpadding="4"> -<?php unset($attr3) ?><?php unset($attr3_name) ?><?php unset($attr3_width) ?><?php unset($attr3_rowclasses) ?><?php unset($attr3_columnclasses) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php - $row_class_idx++; - if ($row_class_idx > count($row_classes)) - $row_class_idx=1; - $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr4_class)) - $attr4_class=$row_class; - global $cell_column_nr; - $cell_column_nr=0; - $column_class_idx = 999; -?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5_debug_info = 'a:1:{s:5:"class";s:2:"fx";}' ?><?php $attr5 = array('class'=>'fx') ?><?php $attr5_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($attr5_class)) - $attr5['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) - $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6_debug_info = 'a:2:{s:4:"icon";s:5:"group";s:5:"align";s:4:"left";}' ?><?php $attr6 = array('icon'=>'group','align'=>'left') ?><?php $attr6_icon='group' ?><?php $attr6_align='left' ?><?php -if (isset($attr6_elementtype)) { -?><img src="<?php echo $image_dir.'icon_el_'.$attr6_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr6_align ?>"><?php -} elseif (isset($attr6_type)) { -?><img src="<?php echo $image_dir.'icon_'.$attr6_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr6_align ?>"><?php -} elseif (isset($attr6_icon)) { -?><img src="<?php echo $image_dir.'icon_'.$attr6_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr6_align ?>"><?php -} elseif (isset($attr6_url)) { -?><img src="<?php echo $attr6_url ?>" border="0" align="<?php echo $attr6_align ?>"><?php -} elseif (isset($attr6_fileext)) { -?><img src="<?php echo $image_dir.$attr6_fileext ?>" border="0" align="<?php echo $attr6_align ?>"><?php -} elseif (isset($attr6_file)) { -?><img src="<?php echo $image_dir.$attr6_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr6_align ?>"><?php } ?><?php unset($attr6) ?><?php unset($attr6_icon) ?><?php unset($attr6_align) ?><?php $attr6_debug_info = 'a:9:{s:4:"list";s:6:"groups";s:4:"name";s:7:"groupid";s:8:"onchange";s:0:"";s:5:"title";s:0:"";s:5:"class";s:0:"";s:8:"addempty";s:5:"false";s:8:"multiple";s:5:"false";s:4:"size";s:1:"1";s:4:"lang";s:5:"false";}' ?><?php $attr6 = array('list'=>'groups','name'=>'groupid','onchange'=>'','title'=>'','class'=>'','addempty'=>false,'multiple'=>false,'size'=>'1','lang'=>false) ?><?php $attr6_list='groups' ?><?php $attr6_name='groupid' ?><?php $attr6_onchange='' ?><?php $attr6_title='' ?><?php $attr6_class='' ?><?php $attr6_addempty=false ?><?php $attr6_multiple=false ?><?php $attr6_size='1' ?><?php $attr6_lang=false ?><?php -if ($this->isEditable() && $this->getRequestVar('mode')!='edit') $attr6_readonly=true; -if ( $attr6_addempty!==FALSE ) -{ - if ($attr6_addempty===TRUE) - $$attr6_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$$attr6_list; - else - $$attr6_list = array(''=>'- '.lang($attr6_addempty).' -')+$$attr6_list; -} -?><select<?php if ($attr6_readonly) echo ' disabled="disabled"' ?> id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name; if ($attr6_multiple) echo '[]'; ?>" onchange="<?php echo $attr6_onchange ?>" title="<?php echo $attr6_title ?>" class="<?php echo $attr6_class ?>"<?php -if (count($$attr6_list)<=1) echo ' disabled="disabled"'; -if ($attr6_multiple) echo ' multiple="multiple"'; -if (in_array($attr6_name,$errors)) echo ' style="background-color:red; border:2px dashed red;"'; -echo ' size="'.intval($attr6_size).'"'; -?>><?php - $attr6_tmp_list = $$attr6_list; - if ( isset($$attr6_name) && isset($attr6_tmp_list[$$attr6_name]) ) - $attr6_tmp_default = $$attr6_name; - elseif ( isset($attr6_default) ) - $attr6_tmp_default = $attr6_default; - else - $attr6_tmp_default = ''; - foreach( $attr6_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( $attr6_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - echo '<option class="'.$attr6_class.'" value="'.$box_key.'" title="'.$box_title.'"'; - if ($box_key==$attr6_tmp_default) - echo ' selected="selected"'; - echo '>'.$box_value.'</option>'; - } -?></select><?php -if (count($$attr6_list)==0) echo '<input type="hidden" name="'.$attr6_name.'" value="" />'; -if (count($$attr6_list)==1) echo '<input type="hidden" name="'.$attr6_name.'" value="'.$box_key.'" />' -?><?php unset($attr6) ?><?php unset($attr6_list) ?><?php unset($attr6_name) ?><?php unset($attr6_onchange) ?><?php unset($attr6_title) ?><?php unset($attr6_class) ?><?php unset($attr6_addempty) ?><?php unset($attr6_multiple) ?><?php unset($attr6_size) ?><?php unset($attr6_lang) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?><?php - $row_class_idx++; - if ($row_class_idx > count($row_classes)) - $row_class_idx=1; - $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr4_class)) - $attr4_class=$row_class; - global $cell_column_nr; - $cell_column_nr=0; - $column_class_idx = 999; -?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5_debug_info = 'a:1:{s:5:"class";s:3:"act";}' ?><?php $attr5 = array('class'=>'act') ?><?php $attr5_class='act' ?><?php - $column_class_idx++; - if ($column_class_idx > count($column_classes)) - $column_class_idx=1; - $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr5_class)) - $attr5['class']=$column_class; - global $cell_column_nr; - $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) - $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6_debug_info = 'a:4:{s:4:"type";s:2:"ok";s:5:"class";s:2:"ok";s:5:"value";s:2:"ok";s:4:"text";s:9:"button_ok";}' ?><?php $attr6 = array('type'=>'ok','class'=>'ok','value'=>'ok','text'=>'button_ok') ?><?php $attr6_type='ok' ?><?php $attr6_class='ok' ?><?php $attr6_value='ok' ?><?php $attr6_text='button_ok' ?><?php - if ($attr6_type=='ok') - { - if ($this->isEditable() && $this->getRequestVar('mode')!='edit') - $attr6_text = lang('MODE_EDIT'); - } - if ($attr6_type=='ok') - $attr6_type = 'submit'; - if (isset($attr6_src)) - $attr6_type = 'image'; - else - $attr6_src = ''; -?><input type="<?php echo $attr6_type ?>"<?php if(isset($attr6_src)) { ?> src="<?php echo $image_dir.'icon_'.$attr6_src.IMG_ICON_EXT ?>"<?php } ?> name="<?php echo $attr6_value ?>" class="<?php echo $attr6_class ?>" title="<?php echo lang($attr6_text.'_DESC') ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr6_src) ?><?php unset($attr6) ?><?php unset($attr6_type) ?><?php unset($attr6_class) ?><?php unset($attr6_value) ?><?php unset($attr6_text) ?><?php $attr4_debug_info = 'a:0:{}' ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3_debug_info = 'a:0:{}' ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2_debug_info = 'a:0:{}' ?><?php $attr2 = array() ?> </table> - </td> - </tr> -</table> -</center> -<?php if ($showDuration) - { ?> -<br/> -<center><small>&nbsp; -<?php $dur = time()-START_TIME; - echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small></center> -<?php } ?> -<?php unset($attr2) ?><?php $attr1_debug_info = 'a:0:{}' ?><?php $attr1 = array() ?></form> -<?php unset($attr1) ?><?php $attr2_debug_info = 'a:1:{s:5:"field";s:7:"groupid";}' ?><?php $attr2 = array('field'=>'groupid') ?><?php $attr2_field='groupid' ?><?php -if (isset($errors[0])) $attr2_field = $errors[0]; -?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $attr2_field ?>.focus(); -document.forms[0].<?php echo $attr2_field ?>.select(); -</script> -<?php unset($attr2) ?><?php unset($attr2_field) ?><?php $attr0_debug_info = 'a:0:{}' ?><?php $attr0 = array() ?></body> -</html><?php unset($attr0) ?>- \ No newline at end of file diff --git a/themes/default/pages/html/user/edit.tpl.php b/themes/default/pages/html/user/edit.tpl.php @@ -1,187 +0,0 @@ -<?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(); - 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('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 ?>" 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></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 ?>" 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><?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 - $a4_tmp_exec = $a4_true == true; - $a4_tmp_last_exec = $a4_tmp_exec; - if ( $a4_tmp_exec ) - { -?> -<?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 ?>" 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_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 ?>" 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><?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 ?>" 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></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; - 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='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 ?>" 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><?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()) -{ - echo empty($$a6_name)?'- '.lang('EMPTY').' -':$a6_tmp_list[$$a6_name]; -} -else -{ -if ( $a6_addempty!==FALSE ) -{ - if ($a6_addempty===TRUE) - $a6_tmp_list = array(''=>lang('LIST_ENTRY_EMPTY'))+$a6_tmp_list; - else - $a6_tmp_list = array(''=>'- '.lang($a6_addempty).' -')+$a6_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).'"'; -?>><?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; - else - $a6_tmp_default = ''; - foreach( $a6_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( $a6_lang ) - { - $box_title = lang( $box_value.'_DESC'); - $box_value = lang( $box_value ); - } - else - { - $box_title = ''; - } - 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($$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) ?></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,267 +0,0 @@ -<?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()) - { - $a1_method = 'POST'; - } - else - { - $a1_method = 'GET'; - $a1_subaction = $subActionName; - } - } -?><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 $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($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 } ?> - <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_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 } ?> -<?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; - 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='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?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_default=false;$a7_readonly=false;$a7_name=$var; ?><?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) ?></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_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 - $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></td></tr><?php } ?><?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 - $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/info.tpl.php b/themes/default/pages/html/user/info.tpl.php @@ -1,141 +0,0 @@ -<?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,316 +0,0 @@ -<?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 } ?> - <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_header=false; ?><?php $column_idx++; ?><td -<?php if (!empty($column_widths)) { ?> - width="<?php echo $column_widths[($column_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_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_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_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) ?></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 $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($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 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 = ''; - $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 $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></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/> -<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/memberships.tpl.php b/themes/default/pages/html/user/memberships.tpl.php @@ -1,276 +0,0 @@ -<?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,97 +0,0 @@ -<?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_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 $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></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($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 = $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='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 = $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='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; - 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='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($a3_field) ?></form> diff --git a/themes/default/pages/html/user/remove.tpl.php b/themes/default/pages/html/user/remove.tpl.php @@ -1,79 +0,0 @@ -<?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_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 - $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_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; - 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';$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,477 +0,0 @@ -<?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_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=$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 - $a8_tmp_exec = empty( $$a8_empty ); - $a8_tmp_last_exec = $a8_tmp_exec; - if ( $a8_tmp_exec ) - { -?> -<?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 $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($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 - $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($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 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($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 $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($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($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 $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($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($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 $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($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 ( $a11_list_extract ) - { - if ( !is_array($$a11_list_tmp_value) ) - { - print_r($$a11_list_tmp_value); - die( 'not an array at key: '.$$a11_list_tmp_key ); - } - extract($$a11_list_tmp_value); - } -?><?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($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 $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($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 ( $a10_list_extract ) - { - if ( !is_array($$a10_list_tmp_value) ) - { - print_r($$a10_list_tmp_value); - die( 'not an array at key: '.$$a10_list_tmp_key ); - } - extract($$a10_list_tmp_value); - } -?><?php unset($a10_list,$a10_extract,$a10_key,$a10_value) ?><?php $a11_class='data'; ?><?php - $column_idx = 0; -?> -<tr - class="data" -> -<?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 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($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 $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($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($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 $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($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($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($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 $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($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 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 = ''; - $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 $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($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 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 $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($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 ( $a12_list_extract ) - { - if ( !is_array($$a12_list_tmp_value) ) - { - print_r($$a12_list_tmp_value); - die( 'not an array at key: '.$$a12_list_tmp_key ); - } - extract($$a12_list_tmp_value); - } -?><?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 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 - $$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 = $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 $a14_name ?>" value="1" /><?php -} -?><?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/> -<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/userlist/add.tpl.php b/themes/default/pages/html/userlist/add.tpl.php @@ -1,66 +0,0 @@ -<?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 @@ -1,228 +0,0 @@ -<?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 diff --git a/util/Code.class.php b/util/Code.class.php @@ -39,7 +39,7 @@ class Code extends Dynamic if ( substr($this->code,0,5) != '<?php' ) $this->code = "<?php\n".$this->code."\n?>"; - $tmp = Object::getTempDir().'/openratDynamic'; + $tmp = FileUtils::getTempDir().'/openratDynamic'; $tmp .= '.code.php.tmp'; $f = fopen( $tmp,'w' ); diff --git a/util/FileUtils.class.php b/util/FileUtils.class.php @@ -21,18 +21,34 @@ class FileUtils } + /** - * Ermittelt das tempor�re Verzeichnis. - * - * @return String + * Liefert einen Verzeichnisnamen fuer temporaere Dateien. */ function getTempDir() { - $tmpFilename = tempnam(ini_get('upload_tmp_dir'),"bla"); - @unlink($tmpFilename); - return FileUtils::slashify( dirname($tmpFilename) ); + global $conf; + $tmpdir = @$conf['cache']['tmp_dir']; + $tmpfile = @tempnam( $tmpdir,'openrat_tmp' ); + + // 2. Versuch: Temp-Dir aus "upload_tmp_dir". + if ( $tmpfile === FALSE ) + { + $tmpdir = ini_get('upload_tmp_dir'); + $tmpfile = @tempnam( $tmpdir,'openrat_tmp' ); + } + + elseif ( $tmpfile === FALSE ) + { + $tmpfile = @tempnam( '','openrat_tmp' ); + } + + $tmpdir = dirname($tmpfile); + @unlink($tmpfile); + + return FileUtils::slashify( $tmpdir ); } - + /** diff --git a/util/TemplateEngine.class.php b/util/TemplateEngine.class.php @@ -71,10 +71,7 @@ class TemplateEngine // Wenn Vorlage (noch) nicht existiert die( get_class($this).': Template not found: "'.$tplName.'"' ); - if ( config('theme','compiler','compile_to_tmp_dir') ) - $filename = Object::getTempDir().'/'.str_replace('/', '_',$tplName).'.tpl.'.PHP_EXT; - else - $filename = 'themes/default/pages/html/'.$tplName.'.tpl.'.PHP_EXT; + $filename = FileUtils::getTempDir().'/'.'or.cache.tpl.'.str_replace('/', '.',$tplName).'.tpl.'.PHP_EXT; // Wenn Vorlage gaendert wurde, dann Umwandlung erneut ausf�hren. if ( $conf['theme']['compiler']['cache'] && is_file($filename) && filemtime($srcFilename) <= filemtime($filename)) @@ -88,14 +85,6 @@ class TemplateEngine // Vorlage und Zieldatei oeffnen $document = $this->loadDocument( $srcFilename ); - // Prüfen, ob Zielverzeichnis existiert, falls nicht: Anlegen. - if ( ! is_dir(dirname($filename)) ) - { - $rc = mkdir( dirname($filename) ); - if ( ! $rc ) - Http::serverError('Unable to create directory: '.dirname($filename)); - } - $outFile = @fopen($filename,'w'); if ( !is_resource($outFile) )