commit 1b1f218455a2a96f7648dcf43c715803f0a74e5c
parent 6d30e0427c9f3df35e682f173eec109ce80e62fb
Author: dankert <devnull@localhost>
Date: Mon, 13 Dec 2010 21:43:54 +0100
Alle Template umgewandelt.
Diffstat:
2 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/themes/default/pages/html/object/aclform.tpl.php b/themes/default/pages/html/object/aclform.tpl.php
@@ -62,6 +62,7 @@
echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n";
?><?php unset($a2_name,$a2_target,$a2_method,$a2_enctype) ?><?php $a3_title='GLOBAL_ADD';$a3_width='93%';$a3_rowclasses='odd,even';$a3_columnclasses='1,2,3'; ?><?php
$coloumn_widths=array();
+ $icon=$actionName;
$row_classes = explode(',',$a3_rowclasses);
$row_class_idx = 999;
$column_classes = explode(',',$a3_columnclasses);
@@ -80,7 +81,7 @@
if (!@$conf['interface']['application_mode'] )
{
echo '<tr class="title"><td>';
- echo '<img src="'.$image_dir.'icon_'.$actionName.IMG_ICON_EXT.'" align="left" border="0">';
+ 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 }
@@ -88,7 +89,7 @@
?><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /> <?php } else {
?><a href="<?php echo Html::url($actionName,$subActionName,$this->getRequestId(),array('mode'=>'edit') ) ?>" accesskey="1" title="<?php echo langHtml('MODE_SHOW_DESC') ?>" class="path" style="text-align:right;font-weight:bold;font-weight:bold;"><img src="<?php echo $image_dir ?>readonly.png" style="vertical-align:top; " border="0" /></a> <?php }
?><?php }
- echo '<span class="path">'.langHtml('GLOBAL_'.$actionName).'</span> <strong>»</strong> ';
+ echo '<span class="path">'.langHtml($actionName).'</span> <strong>»</strong> ';
if ( !isset($path) || is_array($path) )
$path = array();
foreach( $path as $pathElement)
@@ -185,7 +186,7 @@
class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>"
<?php } ?>
colspan="3"
-><?php unset($a5_colspan) ?><?php $a6_title=lang('users'); ?><fieldset><?php if(isset($a6_title)) { ?><legend><?php echo encodeHtml($a6_title) ?></legend><?php } ?><?php unset($a6_title) ?></fieldset></td></tr><?php
+><?php unset($a5_colspan) ?><?php $a6_title=lang('users'); ?><fieldset><?php if(isset($a6_title)) { ?><legend><?php if(isset($a6_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a6_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a6_title) ?></legend><?php } ?><?php unset($a6_title) ?></fieldset></td></tr><?php
$row_idx++;
$column_idx = 0;
?>
@@ -451,7 +452,7 @@ if (count($$a7_list)==1) echo '<input type="hidden" name="'.$a7_name.'" value="'
class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>"
<?php } ?>
colspan="3"
-><?php unset($a5_colspan) ?><?php $a6_title=lang('language'); ?><fieldset><?php if(isset($a6_title)) { ?><legend><?php echo encodeHtml($a6_title) ?></legend><?php } ?><?php unset($a6_title) ?></fieldset></td></tr><?php
+><?php unset($a5_colspan) ?><?php $a6_title=lang('language'); ?><fieldset><?php if(isset($a6_title)) { ?><legend><?php if(isset($a6_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a6_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a6_title) ?></legend><?php } ?><?php unset($a6_title) ?></fieldset></td></tr><?php
$row_idx++;
$column_idx = 0;
?>
@@ -562,7 +563,7 @@ if (count($$a6_list)==1) echo '<input type="hidden" name="'.$a6_name.'" value="'
class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>"
<?php } ?>
colspan="3"
-><?php unset($a5_colspan) ?><?php $a6_title=lang('acl'); ?><fieldset><?php if(isset($a6_title)) { ?><legend><?php echo encodeHtml($a6_title) ?></legend><?php } ?><?php unset($a6_title) ?></fieldset></td></tr><?php $a4_list='show';$a4_extract=false;$a4_key='k';$a4_value='t'; ?><?php
+><?php unset($a5_colspan) ?><?php $a6_title=lang('acl'); ?><fieldset><?php if(isset($a6_title)) { ?><legend><?php if(isset($a6_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a6_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a6_title) ?></legend><?php } ?><?php unset($a6_title) ?></fieldset></td></tr><?php $a4_list='show';$a4_extract=false;$a4_key='k';$a4_value='t'; ?><?php
$a4_list_tmp_key = $a4_key;
$a4_list_tmp_value = $a4_value;
$a4_list_extract = $a4_extract;
diff --git a/themes/default/pages/html/object/rights.tpl.php b/themes/default/pages/html/object/rights.tpl.php
@@ -529,7 +529,7 @@ if ( $a8_readonly && $checked )
class="<?php echo $column_classes[($column_idx-1)%count($column_classes)] ?>"
<?php } ?>
colspan="15"
-><?php unset($a7_colspan) ?><?php $a8_title=lang('options'); ?><fieldset><?php if(isset($a8_title)) { ?><legend><?php echo encodeHtml($a8_title) ?></legend><?php } ?><?php unset($a8_title) ?></fieldset></td></tr><?php
+><?php unset($a7_colspan) ?><?php $a8_title=lang('options'); ?><fieldset><?php if(isset($a8_title)) { ?><legend><?php if(isset($a8_icon)) { ?><image src="<?php echo $image_dir.'icon_'.$a8_icon.IMG_ICON_EXT ?>" align="left" border="0"><?php } ?><?php echo encodeHtml($a8_title) ?></legend><?php } ?><?php unset($a8_title) ?></fieldset></td></tr><?php
$row_idx++;
$column_idx = 0;
?>
@@ -551,11 +551,12 @@ if ( $a8_readonly && $checked )
?><?php unset($a8_var,$a8_value) ?><?php $a8_class='text';$a8_default='';$a8_type='checkbox';$a8_name='inherit';$a8_size='40';$a8_maxlength='256';$a8_onchange='';$a8_readonly=false; ?><?php if ($this->isEditable() && !$this->isEditMode()) $a8_readonly=true;
if ($a8_readonly && empty($$a8_name)) $$a8_name = '- '.lang('EMPTY').' -';
if(!isset($a8_default)) $a8_default='';
+ $tmp_value = Text::encodeHtml(isset($$a8_name)?$$a8_name:$a8_default);
?><?php if (!$a8_readonly || $a8_type=='hidden') {
-?><input<?php if ($a8_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a8_name ?><?php if ($a8_readonly) echo '_disabled' ?>" name="<?php echo $a8_name ?><?php if ($a8_readonly) echo '_disabled' ?>" type="<?php echo $a8_type ?>" size="<?php echo $a8_size ?>" maxlength="<?php echo $a8_maxlength ?>" class="<?php echo $a8_class ?>" value="<?php echo isset($$a8_name)?$$a8_name:$a8_default ?>" <?php if (in_array($a8_name,$errors)) echo 'style="border-rightx:10px solid red; background-colorx:yellow; border:2px dashed red;"' ?> /><?php
+?><input<?php if ($a8_readonly) echo ' disabled="true"' ?> id="id_<?php echo $a8_name ?><?php if ($a8_readonly) echo '_disabled' ?>" name="<?php echo $a8_name ?><?php if ($a8_readonly) echo '_disabled' ?>" type="<?php echo $a8_type ?>" 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 isset($$a8_name)?$$a8_name:$a8_default ?>" /><?php
- } } else { ?><span class="<?php echo $a8_class ?>"><?php echo isset($$a8_name)?$$a8_name:$a8_default ?></span><?php } ?><?php unset($a8_class,$a8_default,$a8_type,$a8_name,$a8_size,$a8_maxlength,$a8_onchange,$a8_readonly) ?><?php $a8_for='inherit'; ?><label for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>"><?php unset($a8_for) ?><?php $a9_class='text';$a9_key='inherit_rights';$a9_escape=true;$a9_cut='both'; ?><?php
+?><input type="hidden" id="id_<?php echo $a8_name ?>" name="<?php echo $a8_name ?>" value="<?php echo $tmp_value ?>" /><?php
+ } } else { ?><span class="<?php echo $a8_class ?>"><?php echo $tmp_value ?></span><?php } ?><?php unset($a8_class,$a8_default,$a8_type,$a8_name,$a8_size,$a8_maxlength,$a8_onchange,$a8_readonly) ?><?php $a8_for='inherit'; ?><label for="id_<?php echo $a8_for ?><?php if (!empty($a8_value)) echo '_'.$a8_value ?>"><?php unset($a8_for) ?><?php $a9_class='text';$a9_key='inherit_rights';$a9_escape=true;$a9_cut='both'; ?><?php
$a9_title = '';
$tmp_tag = 'span';
?><<?php echo $tmp_tag ?> class="<?php echo $a9_class ?>" title="<?php echo $a9_title ?>"><?php