openrat-cms

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

commit 748f6bdb9b468ca82366ddcbfdab8ed3cdd10c19
parent ab6d93760ba1583ba049a58f0f9eb4b1c08c2ac9
Author: Jan Dankert <devnull@localhost>
Date:   Wed, 21 Mar 2012 21:56:26 +0100

Fix: Sprache hinzuf├╝gen.

Diffstat:
themes/default/pages/html/languagelist/show.tpl.php | 348+++++++++++++++++++++++++++++++------------------------------------------------
themes/default/templates/languagelist/show.tpl.src.xml | 58++++++++++++++++++++++++++++++++++++++++++++++++++++++----
2 files changed, 191 insertions(+), 215 deletions(-)

diff --git a/themes/default/pages/html/languagelist/show.tpl.php b/themes/default/pages/html/languagelist/show.tpl.php @@ -1,321 +1,247 @@ -<?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 +<?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($a4_width,$a4_space,$a4_padding) ?><?php $a5_class='headline'; ?><?php +<?php unset($a2_width,$a2_space,$a2_padding) ?><?php $a3_class='headline'; ?><?php $column_idx = 0; ?> <tr class="headline" > -<?php unset($a5_class) ?><?php $a6_header=false; ?><?php $column_idx++; ?><td +<?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($a6_header) ?><?php $a7_class='text';$a7_key='name';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?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 $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = $langF($a7_key); +?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php + $langF = $a5_escape?'langHtml':'lang'; + $tmp_text = $langF($a5_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_key,$a7_escape,$a7_cut) ?></td><?php $a6_header=false; ?><?php $column_idx++; ?><td +?></<?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($a6_header) ?><?php $a7_class='text';$a7_raw='';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?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 $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = str_replace('_','&nbsp;',$a7_raw); +?><<?php echo $tmp_tag ?> class="<?php echo $a5_class ?>" title="<?php echo $a5_title ?>"><?php + $langF = $a5_escape?'langHtml':'lang'; + $tmp_text = $langF($a5_key); $tmp_text = nl2br($tmp_text); echo $tmp_text; unset($tmp_text); -?></<?php echo $tmp_tag ?>><?php unset($a7_class,$a7_raw,$a7_escape,$a7_cut) ?></td><?php $a6_header=false; ?><?php $column_idx++; ?><td +?></<?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($a6_header) ?><?php $a7_class='text';$a7_raw='';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?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 $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = str_replace('_','&nbsp;',$a7_raw); +?><<?php echo $tmp_tag ?> class="<?php echo $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($a7_class,$a7_raw,$a7_escape,$a7_cut) ?></td><?php $a6_header=false; ?><?php $column_idx++; ?><td +?></<?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($a6_header) ?><?php $a7_class='text';$a7_raw='';$a7_escape=true;$a7_cut='both'; ?><?php - $a7_title = ''; +><?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 $a7_class ?>" title="<?php echo $a7_title ?>"><?php - $langF = $a7_escape?'langHtml':'lang'; - $tmp_text = str_replace('_','&nbsp;',$a7_raw); +?><<?php echo $tmp_tag ?> class="<?php echo $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($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 ) +?></<?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 ( $a5_list_extract ) + if ( $a3_list_extract ) { - if ( !is_array($$a5_list_tmp_value) ) + if ( !is_array($$a3_list_tmp_value) ) { - print_r($$a5_list_tmp_value); - die( 'not an array at key: '.$$a5_list_tmp_key ); + print_r($$a3_list_tmp_value); + die( 'not an array at key: '.$$a3_list_tmp_key ); } - extract($$a5_list_tmp_value); + extract($$a3_list_tmp_value); } -?><?php unset($a5_list,$a5_extract,$a5_key,$a5_value) ?><?php $a6_class='data'; ?><?php +?><?php unset($a3_list,$a3_extract,$a3_key,$a3_value) ?><?php $a4_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 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 $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 = ''; + 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 $a8_class ?>" title="<?php echo $a8_title ?>"><?php - $langF = $a8_escape?'langHtml':'lang'; - $tmp_text = isset($$a8_var)?$$a8_var:$langF('UNKNOWN'); - $tmp_text = Text::maxLength( $tmp_text,intval($a8_maxlength),'..',constant('STR_PAD_'.strtoupper($a8_cut)) ); +?><<?php echo $tmp_tag ?> class="<?php echo $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($a8_class,$a8_var,$a8_maxlength,$a8_escape,$a8_cut) ?></td><?php $a7_header=false; ?><?php $column_idx++; ?><td +?></<?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($a7_header) ?><?php $a8_class='text';$a8_var='isocode';$a8_escape=true;$a8_cut='both'; ?><?php - $a8_title = ''; +><?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 $a8_class ?>" title="<?php echo $a8_title ?>"><?php - $langF = $a8_escape?'langHtml':'lang'; - $tmp_text = isset($$a8_var)?$$a8_var:$langF('UNKNOWN'); +?><<?php echo $tmp_tag ?> class="<?php echo $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($a8_class,$a8_var,$a8_escape,$a8_cut) ?></td><?php $a7_header=false;$a7_url=$default_url; ?><?php $column_idx++; ?><td +?></<?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 $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 = ''; + 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 $a9_class ?>" title="<?php echo $a9_title ?>"><?php - $langF = $a9_escape?'langHtml':'lang'; - $tmp_text = $langF($a9_text); +?><<?php echo $tmp_tag ?> class="<?php echo $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($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 = ''; +?></<?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 $a9_class ?>" title="<?php echo $a9_title ?>"><?php - $langF = $a9_escape?'langHtml':'lang'; - $tmp_text = $langF($a9_text); +?><<?php echo $tmp_tag ?> class="<?php echo $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($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 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 $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 = ''; + 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 $a9_class ?>" title="<?php echo $a9_title ?>"><?php - $langF = $a9_escape?'langHtml':'lang'; - $tmp_text = $langF($a9_text); +?><<?php echo $tmp_tag ?> class="<?php echo $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($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 = ''; +?></<?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 $a9_class ?>" title="<?php echo $a9_title ?>"><?php - $langF = $a9_escape?'langHtml':'lang'; - $tmp_text = $langF($a9_text); +?><<?php echo $tmp_tag ?> class="<?php echo $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($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 +?></<?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><?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 +</table>+ \ No newline at end of file diff --git a/themes/default/templates/languagelist/show.tpl.src.xml b/themes/default/templates/languagelist/show.tpl.src.xml @@ -1,3 +1,53 @@ -<output xmlns="http://www.openrat.de/template" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"><dummy><window icon="language"><table><row class="headline"><cell><text key="name"></text></cell><cell><text raw=""></text></cell><cell><text raw=""></text></cell><cell><text raw=""></text></cell></row><list list="el" extract="true"><row class="data"><cell url="var:url"><image file="icon_language"></image><text var="name" maxlength="25"></text></cell><cell><text var="isocode"></text></cell><cell url="var:default_url"><if present="default_url"><text text="GLOBAL_make_default"></text></if><else><text text="GLOBAL_is_default"></text></else></cell><cell url="var:select_url"><if present="select_url"><text text="GLOBAL_select"></text></if><else><text text="GLOBAL_selected"></text></else></cell></row><set var="select_url"></set><set var="default_url"></set></list></table></window></dummy></output>- \ No newline at end of file +<output xmlns="http://www.openrat.de/template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"> + <header views="add"></header> + <table> + <row class="headline"> + <cell> + <text key="NAME"></text> + </cell> + <cell> + <text key="LANGUAGE_ISOCODE"></text> + </cell> + <cell> + <text raw=""></text> + </cell> + <cell> + <text raw=""></text> + </cell> + </row> + <list list="el" extract="true"> + <row class="data"> + <cell url="var:url"> + <image file="icon_language"></image> + <text var="name" maxlength="25"></text> + </cell> + <cell> + <text var="isocode"></text> + </cell> + <if present="default_url"> + <cell url="var:default_url"> + <text text="GLOBAL_make_default"></text> + </cell> + </if> + <else> + <cell> + <text text="GLOBAL_is_default"></text> + </cell> + </else> + <if present="select_url"> + <cell url="var:select_url"> + <text text="GLOBAL_select"></text> + </cell> + </if> + <else> + <cell> + <text text="GLOBAL_selected"></text> + </cell> + </else> + </row> + <set var="select_url"></set> + <set var="default_url"></set> + </list> + </table> +</output>+ \ No newline at end of file