commit f88016dbaf9eb68f28db2545c66ae4e7ccd11ecd
parent 120b79c1cef302af61e11879ca537ff018274320
Author: dankert <devnull@localhost>
Date: Sun, 8 Apr 2007 16:56:04 +0200
Korrektur der Masken f?r Berechtigungsanzeige
Diffstat:
2 files changed, 1777 insertions(+), 559 deletions(-)
diff --git a/themes/default/pages/html/object/aclform.tpl.php b/themes/default/pages/html/object/aclform.tpl.php
@@ -1,63 +1,69 @@
-<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?php header('Content-Type: text/html; charset='.lang('CHARSET'))
+<?php $attr1 = array('class'=>'main','title'=>$cms_title) ?><?php $attr1_class='main' ?><?php $attr1_title=$cms_title ?><?php header('Content-Type: text/html; charset='.lang('CHARSET'))
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
-<!-- $Id$ -->
<head>
- <title><?php echo $attr_title ?></title>
+ <title><?php echo $attr1_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
+ }
+?>
<link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" />
<?php if($stylesheet!='default') { ?>
<link rel="stylesheet" type="text/css" href="<?php echo $stylesheet ?>" />
<?php } ?>
</head>
-<body class="<?php echo $attr_class ?>">
+<body class="<?php echo $attr1_class ?>">
-<?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_title) ?><?php $attr = array('name'=>'','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_name='' ?><?php $attr_target='_self' ?><?php $attr_method='post' ?><?php $attr_enctype='application/x-www-form-urlencoded' ?><?php
- if (empty($attr_action))
- $attr_action = $actionName;
- if (empty($attr_subaction))
- $attr_subaction = $targetSubActionName;
- if (empty($attr_id))
- $attr_id = $this->getRequestId();
-
-?><form name="<?php echo $attr_name ?>"
- target="<?php echo $attr_target ?>"
- action="<?php echo Html::url( $attr_action,$attr_subaction,$attr_id ) ?>"
- method="<?php echo $attr_method ?>"
- enctype="<?php echo $attr_enctype ?>">
-<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $attr_action ?>" />
-<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $attr_subaction ?>" />
-<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_id ?>" /><?php
+<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?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 ?>">
+<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($attr) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('title'=>'GLOBAL_ADD','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_title='GLOBAL_ADD' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php
+?><?php unset($attr2) ?><?php unset($attr2_name) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php $attr3 = array('title'=>'GLOBAL_ADD','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_title='GLOBAL_ADD' ?><?php $attr3_width='93%' ?><?php $attr3_rowclasses='odd,even' ?><?php $attr3_columnclasses='1,2,3' ?><?php
$coloumn_widths=array();
- if (!empty($attr_widths))
+ if (!empty($attr3_widths))
{
- $column_widths = explode(',',$attr_widths);
- unset($attr['widths']);
+ $column_widths = explode(',',$attr3_widths);
+ unset($attr3['widths']);
}
- if (!empty($attr_rowclasses))
+ if (!empty($attr3_rowclasses))
{
- $row_classes = explode(',',$attr_rowclasses);
+ $row_classes = explode(',',$attr3_rowclasses);
$row_class_idx = 999;
- unset($attr['rowclasses']);
+ unset($attr3['rowclasses']);
}
- if (!empty($attr_columnclasses))
+ if (!empty($attr3_columnclasses))
{
- $column_classes = explode(',',$attr_columnclasses);
- unset($attr['columnclasses']);
+ $column_classes = explode(',',$attr3_columnclasses);
+ unset($attr3['columnclasses']);
}
global $image_dir;
echo '<br/><br/><br/><center>';
- echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_width.'">';
+ echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr3_width.'">';
echo '<tr><td class="menu">';
- if ( !empty($attr_icon) )
- echo '<img src="'.$image_dir.'icon_'.$attr_icon.IMG_ICON_EXT.'" align="left" border="0">';
- if ( !is_array($path) )
+ 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)
{
@@ -76,7 +82,10 @@
</td>
</tr>
<tr><td class="subaction">
- <?php foreach( $windowMenu as $menu )
+
+ <?php if ( !isset($windowMenu) || !is_array($windowMenu) )
+ $windowMenu = array();
+ foreach( $windowMenu as $menu )
{
?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a> <?php
}
@@ -109,838 +118,1153 @@
<tr>
<td>
- <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = array() ?><?php
+ <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr3) ?><?php unset($attr3_title) ?><?php unset($attr3_width) ?><?php unset($attr3_rowclasses) ?><?php unset($attr3_columnclasses) ?><?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($attr_class))
- $attr_class=$row_class;
+ if (empty($attr4_class))
+ $attr4_class=$row_class;
global $cell_column_nr;
$cell_column_nr=0;
$column_class_idx = 999;
-?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php
-// if (empty($attr_class))
-// $attr['class']=$row_class;
+?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'fx') ?><?php $attr5_class='fx' ?><?php
+// if (empty($attr5_class))
+// $attr5['class']=$row_class;
$column_class_idx++;
if ($column_class_idx > count($column_classes))
$column_class_idx=1;
$column_class=$column_classes[$column_class_idx-1];
- if (empty($attr_class))
- $attr['class']=$column_class;
+ if (empty($attr5_class))
+ $attr5['class']=$column_class;
global $cell_column_nr;
$cell_column_nr++;
- if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) )
- $attr['width']=$column_widths[$cell_column_nr-1];
+ if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) )
+ $attr5['width']=$column_widths[$cell_column_nr-1];
-?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('class'=>'text','text'=>'GLOBAL_ALL') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_ALL' ?><?php
- if(empty($attr_title))
- if (!empty($attr_key))
- $attr_title = lang($attr_key).'_HELP';
+?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_ALL') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_ALL' ?><?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
- $attr_title = '';
+ $attr6_title = '';
+
+?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php
+ $attr6_title = '';
-?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php
- $attr_title = '';
- if (!empty($attr_array))
+ if (!empty($attr6_array))
{
//geht nicht:
- //echo $$attr_array[$attr_var].'%';
- $tmpArray = $$attr_array;
- if (!empty($attr_var))
- $tmp_text = $tmpArray[$attr_var];
- else
- $tmp_text = lang($tmpArray[$attr_text]);
- }
- elseif (!empty($attr_text))
- if ( isset($$attr_text))
- $tmp_text = lang($$attr_text);
- else
- $tmp_text = lang($attr_text);
- elseif (!empty($attr_textvar))
- $tmp_text = lang($$attr_textvar);
- elseif (!empty($attr_key))
- $tmp_text = lang($attr_key);
- elseif (!empty($attr_var))
- $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present';
- elseif (!empty($attr_raw))
- $tmp_text = str_replace('_',' ',$attr_raw);
- elseif (!empty($attr_value))
- $tmp_text = $attr_value;
+ //echo $$attr6_array[$attr6_var].'%';
+ $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)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present';
+ elseif (!empty($attr6_raw))
+ $tmp_text = str_replace('_',' ',$attr6_raw);
+ elseif (!empty($attr6_value))
+ $tmp_text = $attr6_value;
else
- { Html::debug($attr);echo 'text error';
+ {
+ $tmp_text = ' ';
+ //Html::debug($attr6);echo 'text error';
}
- if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 )
- $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) );
+ if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 )
+ $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) );
echo $tmp_text;
-?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php
-// if (empty($attr_class))
-// $attr['class']=$row_class;
+?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5 = array('class'=>'fx') ?><?php $attr5_class='fx' ?><?php
+// if (empty($attr5_class))
+// $attr5['class']=$row_class;
$column_class_idx++;
if ($column_class_idx > count($column_classes))
$column_class_idx=1;
$column_class=$column_classes[$column_class_idx-1];
- if (empty($attr_class))
- $attr['class']=$column_class;
+ if (empty($attr5_class))
+ $attr5['class']=$column_class;
global $cell_column_nr;
$cell_column_nr++;
- if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) )
- $attr['width']=$column_widths[$cell_column_nr-1];
+ if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) )
+ $attr5['width']=$column_widths[$cell_column_nr-1];
-?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('var'=>'type','value'=>'all') ?><?php $attr_var='type' ?><?php $attr_value='all' ?><?php $$attr_var = $attr_value ?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php $attr = array('name'=>'type','value'=>'type','default'=>'1') ?><?php $attr_name='type' ?><?php $attr_value='type' ?><?php $attr_default='1' ?><?php
-?><input type="radio" name="<?php echo $attr_prefix.$attr_name ?>"<?php if ( $attr_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $attr_value ?>" <?php if( $attr_value == $$attr_name ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php unset($attr_default) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php
-// if (empty($attr_class))
-// $attr['class']=$row_class;
+?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('readonly'=>false,'name'=>'type','value'=>'all','default'=>true,'prefix'=>'','suffix'=>'','class'=>'','onchange'=>'') ?><?php $attr6_readonly=false ?><?php $attr6_name='type' ?><?php $attr6_value='all' ?><?php $attr6_default=true ?><?php $attr6_prefix='' ?><?php $attr6_suffix='' ?><?php $attr6_class='' ?><?php $attr6_onchange='' ?><input type="radio" id="id_<?php echo $attr6_name.'_'.$attr6_value ?>" name="<?php echo $attr6_prefix.$attr6_name ?>"<?php if ( $attr6_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $attr6_value ?>" <?php if($attr6_value==$attr6_default) echo 'checked="checked"' ?> /><?php unset($attr6) ?><?php unset($attr6_readonly) ?><?php unset($attr6_name) ?><?php unset($attr6_value) ?><?php unset($attr6_default) ?><?php unset($attr6_prefix) ?><?php unset($attr6_suffix) ?><?php unset($attr6_class) ?><?php unset($attr6_onchange) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5 = array('class'=>'fx') ?><?php $attr5_class='fx' ?><?php
+// if (empty($attr5_class))
+// $attr5['class']=$row_class;
$column_class_idx++;
if ($column_class_idx > count($column_classes))
$column_class_idx=1;
$column_class=$column_classes[$column_class_idx-1];
- if (empty($attr_class))
- $attr['class']=$column_class;
+ if (empty($attr5_class))
+ $attr5['class']=$column_class;
global $cell_column_nr;
$cell_column_nr++;
- if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) )
- $attr['width']=$column_widths[$cell_column_nr-1];
+ 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 = array('class'=>'text','raw'=>'_') ?><?php $attr6_class='text' ?><?php $attr6_raw='_' ?><?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;
-?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('class'=>'text','raw'=>'_') ?><?php $attr_class='text' ?><?php $attr_raw='_' ?><?php
- if(empty($attr_title))
- if (!empty($attr_key))
- $attr_title = lang($attr_key).'_HELP';
+ if(empty($attr6_title))
+ if (!empty($attr6_key))
+ $attr6_title = lang($attr6_key.'_HELP');
else
- $attr_title = '';
+ $attr6_title = '';
-?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php
- $attr_title = '';
- if (!empty($attr_array))
+?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php
+ $attr6_title = '';
+
+ if (!empty($attr6_array))
{
//geht nicht:
- //echo $$attr_array[$attr_var].'%';
- $tmpArray = $$attr_array;
- if (!empty($attr_var))
- $tmp_text = $tmpArray[$attr_var];
- else
- $tmp_text = lang($tmpArray[$attr_text]);
- }
- elseif (!empty($attr_text))
- if ( isset($$attr_text))
- $tmp_text = lang($$attr_text);
- else
- $tmp_text = lang($attr_text);
- elseif (!empty($attr_textvar))
- $tmp_text = lang($$attr_textvar);
- elseif (!empty($attr_key))
- $tmp_text = lang($attr_key);
- elseif (!empty($attr_var))
- $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present';
- elseif (!empty($attr_raw))
- $tmp_text = str_replace('_',' ',$attr_raw);
- elseif (!empty($attr_value))
- $tmp_text = $attr_value;
+ //echo $$attr6_array[$attr6_var].'%';
+ $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)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present';
+ elseif (!empty($attr6_raw))
+ $tmp_text = str_replace('_',' ',$attr6_raw);
+ elseif (!empty($attr6_value))
+ $tmp_text = $attr6_value;
else
- { Html::debug($attr);echo 'text error';
+ {
+ $tmp_text = ' ';
+ //Html::debug($attr6);echo 'text error';
}
- if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 )
- $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) );
+ if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 )
+ $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) );
echo $tmp_text;
-?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php
+?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_raw) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?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($attr_class))
- $attr_class=$row_class;
+ if (empty($attr4_class))
+ $attr4_class=$row_class;
global $cell_column_nr;
$cell_column_nr=0;
$column_class_idx = 999;
-?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php
-// if (empty($attr_class))
-// $attr['class']=$row_class;
+?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'fx') ?><?php $attr5_class='fx' ?><?php
+// if (empty($attr5_class))
+// $attr5['class']=$row_class;
$column_class_idx++;
if ($column_class_idx > count($column_classes))
$column_class_idx=1;
$column_class=$column_classes[$column_class_idx-1];
- if (empty($attr_class))
- $attr['class']=$column_class;
+ if (empty($attr5_class))
+ $attr5['class']=$column_class;
global $cell_column_nr;
$cell_column_nr++;
- if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) )
- $attr['width']=$column_widths[$cell_column_nr-1];
+ if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) )
+ $attr5['width']=$column_widths[$cell_column_nr-1];
-?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('class'=>'text','text'=>'GLOBAL_USER') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_USER' ?><?php
- if(empty($attr_title))
- if (!empty($attr_key))
- $attr_title = lang($attr_key).'_HELP';
+?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_USER') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_USER' ?><?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
- $attr_title = '';
+ $attr6_title = '';
+
+?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php
+ $attr6_title = '';
-?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php
- $attr_title = '';
- if (!empty($attr_array))
+ if (!empty($attr6_array))
{
//geht nicht:
- //echo $$attr_array[$attr_var].'%';
- $tmpArray = $$attr_array;
- if (!empty($attr_var))
- $tmp_text = $tmpArray[$attr_var];
- else
- $tmp_text = lang($tmpArray[$attr_text]);
- }
- elseif (!empty($attr_text))
- if ( isset($$attr_text))
- $tmp_text = lang($$attr_text);
- else
- $tmp_text = lang($attr_text);
- elseif (!empty($attr_textvar))
- $tmp_text = lang($$attr_textvar);
- elseif (!empty($attr_key))
- $tmp_text = lang($attr_key);
- elseif (!empty($attr_var))
- $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present';
- elseif (!empty($attr_raw))
- $tmp_text = str_replace('_',' ',$attr_raw);
- elseif (!empty($attr_value))
- $tmp_text = $attr_value;
+ //echo $$attr6_array[$attr6_var].'%';
+ $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)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present';
+ elseif (!empty($attr6_raw))
+ $tmp_text = str_replace('_',' ',$attr6_raw);
+ elseif (!empty($attr6_value))
+ $tmp_text = $attr6_value;
else
- { Html::debug($attr);echo 'text error';
+ {
+ $tmp_text = ' ';
+ //Html::debug($attr6);echo 'text error';
}
- if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 )
- $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) );
+ if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 )
+ $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) );
echo $tmp_text;
-?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php
-// if (empty($attr_class))
-// $attr['class']=$row_class;
+?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5 = array('class'=>'fx') ?><?php $attr5_class='fx' ?><?php
+// if (empty($attr5_class))
+// $attr5['class']=$row_class;
$column_class_idx++;
if ($column_class_idx > count($column_classes))
$column_class_idx=1;
$column_class=$column_classes[$column_class_idx-1];
- if (empty($attr_class))
- $attr['class']=$column_class;
+ if (empty($attr5_class))
+ $attr5['class']=$column_class;
global $cell_column_nr;
$cell_column_nr++;
- if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) )
- $attr['width']=$column_widths[$cell_column_nr-1];
+ if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) )
+ $attr5['width']=$column_widths[$cell_column_nr-1];
-?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('var'=>'type','value'=>'user') ?><?php $attr_var='type' ?><?php $attr_value='user' ?><?php $$attr_var = $attr_value ?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php $attr = array('name'=>'type','value'=>'type') ?><?php $attr_name='type' ?><?php $attr_value='type' ?><?php
-?><input type="radio" name="<?php echo $attr_prefix.$attr_name ?>"<?php if ( $attr_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $attr_value ?>" <?php if( $attr_value == $$attr_name ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php
-// if (empty($attr_class))
-// $attr['class']=$row_class;
+?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('readonly'=>false,'name'=>'type','value'=>'user','default'=>false,'prefix'=>'','suffix'=>'','class'=>'','onchange'=>'') ?><?php $attr6_readonly=false ?><?php $attr6_name='type' ?><?php $attr6_value='user' ?><?php $attr6_default=false ?><?php $attr6_prefix='' ?><?php $attr6_suffix='' ?><?php $attr6_class='' ?><?php $attr6_onchange='' ?><input type="radio" id="id_<?php echo $attr6_name.'_'.$attr6_value ?>" name="<?php echo $attr6_prefix.$attr6_name ?>"<?php if ( $attr6_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $attr6_value ?>" <?php if($attr6_value==$attr6_default) echo 'checked="checked"' ?> /><?php unset($attr6) ?><?php unset($attr6_readonly) ?><?php unset($attr6_name) ?><?php unset($attr6_value) ?><?php unset($attr6_default) ?><?php unset($attr6_prefix) ?><?php unset($attr6_suffix) ?><?php unset($attr6_class) ?><?php unset($attr6_onchange) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5 = array('class'=>'fx') ?><?php $attr5_class='fx' ?><?php
+// if (empty($attr5_class))
+// $attr5['class']=$row_class;
$column_class_idx++;
if ($column_class_idx > count($column_classes))
$column_class_idx=1;
$column_class=$column_classes[$column_class_idx-1];
- if (empty($attr_class))
- $attr['class']=$column_class;
+ if (empty($attr5_class))
+ $attr5['class']=$column_class;
global $cell_column_nr;
$cell_column_nr++;
- if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) )
- $attr['width']=$column_widths[$cell_column_nr-1];
+ if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) )
+ $attr5['width']=$column_widths[$cell_column_nr-1];
-?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('list'=>'users','name'=>'userid','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='users' ?><?php $attr_name='userid' ?><?php $attr_onchange='' ?><?php $attr_title='' ?><?php $attr_class='' ?><select size="1" id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" onchange="<?php echo $attr_onchange ?>" title="<?php echo $attr_title ?>" class="<?php echo $attr_class ?>"<?php
-if (count($$attr_list)==1) echo ' disabled="disabled"'
+?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('list'=>'users','name'=>'userid','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr6_list='users' ?><?php $attr6_name='userid' ?><?php $attr6_default='' ?><?php $attr6_onchange='' ?><?php $attr6_title='' ?><?php $attr6_class='' ?><select size="1" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" onchange="<?php echo $attr6_onchange ?>" title="<?php echo $attr6_title ?>" class="<?php echo $attr6_class ?>"<?php
+if (count($$attr6_list)==1) echo ' disabled="disabled"'
?>><?php
- foreach( $$attr_list as $box_key=>$box_value )
+ foreach( $$attr6_list as $box_key=>$box_value )
{
- echo '<option class="'.$attr_class.'" value="'.$box_key.'"';
- if (isset($$attr_name)&&$box_key==$$attr_name || isset($attr_default)&&$box_key == $attr_default)
+ echo '<option class="'.$attr6_class.'" value="'.$box_key.'"';
+ if (isset($$attr6_name)&&$box_key==$$attr6_name || isset($attr6_default)&&$box_key == $attr6_default)
echo ' selected="selected"';
echo '>'.$box_value.'</option>';
}
?></select><?php
-if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" value="'.$box_key.'" />'
-?><?php unset($attr) ?><?php unset($attr_list) ?><?php unset($attr_name) ?><?php unset($attr_onchange) ?><?php unset($attr_title) ?><?php unset($attr_class) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array('present'=>'groups') ?><?php $attr_present='groups' ?><?php
+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_default) ?><?php unset($attr6_onchange) ?><?php unset($attr6_title) ?><?php unset($attr6_class) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4 = array('present'=>'groups') ?><?php $attr4_present='groups' ?><?php
// Wahr-Vergleich
-// Html::debug($attr);
+// Html::debug($attr4);
- if ( isset($attr_true) )
+ if ( isset($attr4_true) )
{
- if (gettype($attr_true) === '' && gettype($attr_true) === '1')
- $exec = $$attr_true == true;
+ if (gettype($attr4_true) === '' && gettype($attr4_true) === '1')
+ $exec = $$attr4_true == true;
else
- $exec = $attr_true == true;
+ $exec = $attr4_true == true;
}
// Falsch-Vergleich
- elseif ( isset($attr_false) )
+ elseif ( isset($attr4_false) )
{
- if (gettype($attr_false) === '' && gettype($attr_false) === '1')
- $exec = $$attr_false == false;
+ if (gettype($attr4_false) === '' && gettype($attr4_false) === '1')
+ $exec = $$attr4_false == false;
else
- $exec = $attr_false == false;
+ $exec = $attr4_false == false;
}
// Inhalt-Vergleich mit Wertliste
- elseif( isset($attr_contains) )
- $exec = in_array($$attr_var,explode(',',$attr_contains));
+ elseif( isset($attr4_contains) )
+ $exec = in_array($attr4_value,explode(',',$attr4_contains));
// Inhalt-Vergleich
- elseif( isset($attr_var) )
- $exec = $$attr_var == $attr_value;
+ elseif( isset($attr4_equals)&& isset($attr4_value) )
+ $exec = $attr4_equals == $attr4_value;
// Vergleich auf leer
- elseif ( isset($attr_empty) )
+ elseif ( isset($attr4_empty) )
{
- if ( !isset($$attr_empty) )
- $exec = empty($attr_empty);
- elseif ( is_array($$attr_empty) )
- $exec = (count($$attr_empty)==0);
- elseif ( is_bool($$attr_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( $$attr_empty );
+ $exec = empty( $$attr4_empty );
}
// Vergleich auf Vorhandensein
- elseif ( isset($attr_present) )
+ elseif ( isset($attr4_present) )
{
- if ( !isset($$attr_present) )
- $exec = false;
- elseif ( is_array($$attr_present) )
- $exec = (count($$attr_present)>0);
- elseif ( is_bool($$attr_present) )
- $exec = $$attr_present;
- elseif ( is_numeric($$attr_present) )
- $exec = $$attr_present>=0;
- else
- $exec = true;
+ $exec = isset($$attr4_present);
+// if ( !isset($$attr4_present) )
+// $exec = false;
+// elseif ( is_array($$attr4_present) )
+// $exec = (count($$attr4_present)>0);
+// elseif ( is_bool($$attr4_present) )
+// $exec = $$attr4_present;
+// elseif ( is_numeric($$attr4_present) )
+// $exec = $$attr4_present>=0;
+// else
+// $exec = true;
}
else
{
- Html::debug( $attr );
+ Html::debug( $attr4 );
echo("error in IF line ".__LINE__);
echo("assume: FALSE");
$exec = false;
}
// Ergebnis umdrehen
- if ( !empty($attr_invert) )
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
+ if ( !empty($attr4_invert) )
$exec = !$exec;
// Ergebnis umdrehen
- if ( !empty($attr_not) )
+ if ( !empty($attr4_not) )
$exec = !$exec;
- unset($attr_true);
- unset($attr_false);
- unset($attr_notempty);
- unset($attr_empty);
- unset($attr_contains);
- unset($attr_present);
- unset($attr_invert);
- unset($attr_not);
- unset($attr_value);
- unset($attr_var);
+ 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($attr) ?><?php unset($attr_present) ?><?php $attr = array() ?><?php
+?><?php unset($attr4) ?><?php unset($attr4_present) ?><?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($attr_class))
- $attr_class=$row_class;
+ if (empty($attr5_class))
+ $attr5_class=$row_class;
global $cell_column_nr;
$cell_column_nr=0;
$column_class_idx = 999;
-?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php
-// if (empty($attr_class))
-// $attr['class']=$row_class;
+?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6 = array('class'=>'fx') ?><?php $attr6_class='fx' ?><?php
+// if (empty($attr6_class))
+// $attr6['class']=$row_class;
$column_class_idx++;
if ($column_class_idx > count($column_classes))
$column_class_idx=1;
$column_class=$column_classes[$column_class_idx-1];
- if (empty($attr_class))
- $attr['class']=$column_class;
+ if (empty($attr6_class))
+ $attr6['class']=$column_class;
global $cell_column_nr;
$cell_column_nr++;
- if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) )
- $attr['width']=$column_widths[$cell_column_nr-1];
+ if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) )
+ $attr6['width']=$column_widths[$cell_column_nr-1];
-?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('class'=>'text','text'=>'GLOBAL_GROUP') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_GROUP' ?><?php
- if(empty($attr_title))
- if (!empty($attr_key))
- $attr_title = lang($attr_key).'_HELP';
+?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7 = array('class'=>'text','text'=>'GLOBAL_GROUP') ?><?php $attr7_class='text' ?><?php $attr7_text='GLOBAL_GROUP' ?><?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))
+ if (!empty($attr7_key))
+ $attr7_title = lang($attr7_key.'_HELP');
else
- $attr_title = '';
+ $attr7_title = '';
+
+?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
+ $attr7_title = '';
-?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php
- $attr_title = '';
- if (!empty($attr_array))
+ if (!empty($attr7_array))
{
//geht nicht:
- //echo $$attr_array[$attr_var].'%';
- $tmpArray = $$attr_array;
- if (!empty($attr_var))
- $tmp_text = $tmpArray[$attr_var];
- else
- $tmp_text = lang($tmpArray[$attr_text]);
- }
- elseif (!empty($attr_text))
- if ( isset($$attr_text))
- $tmp_text = lang($$attr_text);
- else
- $tmp_text = lang($attr_text);
- elseif (!empty($attr_textvar))
- $tmp_text = lang($$attr_textvar);
- elseif (!empty($attr_key))
- $tmp_text = lang($attr_key);
- elseif (!empty($attr_var))
- $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present';
- elseif (!empty($attr_raw))
- $tmp_text = str_replace('_',' ',$attr_raw);
- elseif (!empty($attr_value))
- $tmp_text = $attr_value;
+ //echo $$attr7_array[$attr7_var].'%';
+ $tmpArray = $$attr7_array;
+ if (!empty($attr7_var))
+ $tmp_text = $tmpArray[$attr7_var];
+ else
+ $tmp_text = lang($tmpArray[$attr7_text]);
+ }
+ elseif (!empty($attr7_text))
+ if ( isset($$attr7_text))
+ $tmp_text = lang($$attr7_text);
+ else
+ $tmp_text = lang($attr7_text);
+ elseif (!empty($attr7_textvar))
+ $tmp_text = lang($$attr7_textvar);
+ elseif (!empty($attr7_key))
+ $tmp_text = lang($attr7_key);
+ elseif (!empty($attr7_var))
+ $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present';
+ elseif (!empty($attr7_raw))
+ $tmp_text = str_replace('_',' ',$attr7_raw);
+ elseif (!empty($attr7_value))
+ $tmp_text = $attr7_value;
else
- { Html::debug($attr);echo 'text error';
+ {
+ $tmp_text = ' ';
+ //Html::debug($attr7);echo 'text error';
}
- if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 )
- $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) );
+ if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 )
+ $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) );
echo $tmp_text;
-?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php
-// if (empty($attr_class))
-// $attr['class']=$row_class;
+?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr6 = array('class'=>'fx') ?><?php $attr6_class='fx' ?><?php
+// if (empty($attr6_class))
+// $attr6['class']=$row_class;
$column_class_idx++;
if ($column_class_idx > count($column_classes))
$column_class_idx=1;
$column_class=$column_classes[$column_class_idx-1];
- if (empty($attr_class))
- $attr['class']=$column_class;
+ if (empty($attr6_class))
+ $attr6['class']=$column_class;
global $cell_column_nr;
$cell_column_nr++;
- if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) )
- $attr['width']=$column_widths[$cell_column_nr-1];
+ if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) )
+ $attr6['width']=$column_widths[$cell_column_nr-1];
-?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('var'=>'type','value'=>'group') ?><?php $attr_var='type' ?><?php $attr_value='group' ?><?php $$attr_var = $attr_value ?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php $attr = array('name'=>'type','value'=>'type') ?><?php $attr_name='type' ?><?php $attr_value='type' ?><?php
-?><input type="radio" name="<?php echo $attr_prefix.$attr_name ?>"<?php if ( $attr_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $attr_value ?>" <?php if( $attr_value == $$attr_name ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php
-// if (empty($attr_class))
-// $attr['class']=$row_class;
+?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7 = array('readonly'=>false,'name'=>'type','value'=>'group','default'=>false,'prefix'=>'','suffix'=>'','class'=>'','onchange'=>'') ?><?php $attr7_readonly=false ?><?php $attr7_name='type' ?><?php $attr7_value='group' ?><?php $attr7_default=false ?><?php $attr7_prefix='' ?><?php $attr7_suffix='' ?><?php $attr7_class='' ?><?php $attr7_onchange='' ?><input type="radio" id="id_<?php echo $attr7_name.'_'.$attr7_value ?>" name="<?php echo $attr7_prefix.$attr7_name ?>"<?php if ( $attr7_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $attr7_value ?>" <?php if($attr7_value==$attr7_default) echo 'checked="checked"' ?> /><?php unset($attr7) ?><?php unset($attr7_readonly) ?><?php unset($attr7_name) ?><?php unset($attr7_value) ?><?php unset($attr7_default) ?><?php unset($attr7_prefix) ?><?php unset($attr7_suffix) ?><?php unset($attr7_class) ?><?php unset($attr7_onchange) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr6 = array('class'=>'fx') ?><?php $attr6_class='fx' ?><?php
+// if (empty($attr6_class))
+// $attr6['class']=$row_class;
$column_class_idx++;
if ($column_class_idx > count($column_classes))
$column_class_idx=1;
$column_class=$column_classes[$column_class_idx-1];
- if (empty($attr_class))
- $attr['class']=$column_class;
+ if (empty($attr6_class))
+ $attr6['class']=$column_class;
global $cell_column_nr;
$cell_column_nr++;
- if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) )
- $attr['width']=$column_widths[$cell_column_nr-1];
+ if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) )
+ $attr6['width']=$column_widths[$cell_column_nr-1];
-?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('list'=>'groups','name'=>'groupid','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='groups' ?><?php $attr_name='groupid' ?><?php $attr_onchange='' ?><?php $attr_title='' ?><?php $attr_class='' ?><select size="1" id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" onchange="<?php echo $attr_onchange ?>" title="<?php echo $attr_title ?>" class="<?php echo $attr_class ?>"<?php
-if (count($$attr_list)==1) echo ' disabled="disabled"'
+?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7 = array('list'=>'groups','name'=>'groupid','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr7_list='groups' ?><?php $attr7_name='groupid' ?><?php $attr7_default='' ?><?php $attr7_onchange='' ?><?php $attr7_title='' ?><?php $attr7_class='' ?><select size="1" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" onchange="<?php echo $attr7_onchange ?>" title="<?php echo $attr7_title ?>" class="<?php echo $attr7_class ?>"<?php
+if (count($$attr7_list)==1) echo ' disabled="disabled"'
?>><?php
- foreach( $$attr_list as $box_key=>$box_value )
+ foreach( $$attr7_list as $box_key=>$box_value )
{
- echo '<option class="'.$attr_class.'" value="'.$box_key.'"';
- if (isset($$attr_name)&&$box_key==$$attr_name || isset($attr_default)&&$box_key == $attr_default)
+ echo '<option class="'.$attr7_class.'" value="'.$box_key.'"';
+ if (isset($$attr7_name)&&$box_key==$$attr7_name || isset($attr7_default)&&$box_key == $attr7_default)
echo ' selected="selected"';
echo '>'.$box_value.'</option>';
}
?></select><?php
-if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" value="'.$box_key.'" />'
-?><?php unset($attr) ?><?php unset($attr_list) ?><?php unset($attr_name) ?><?php unset($attr_onchange) ?><?php unset($attr_title) ?><?php unset($attr_class) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php
+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_default) ?><?php unset($attr7_onchange) ?><?php unset($attr7_title) ?><?php unset($attr7_class) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php
}
-?><?php unset($attr) ?><?php $attr = array() ?><?php
+?><?php unset($attr3) ?><?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($attr_class))
- $attr_class=$row_class;
+ if (empty($attr4_class))
+ $attr4_class=$row_class;
global $cell_column_nr;
$cell_column_nr=0;
$column_class_idx = 999;
-?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'help','colspan'=>'3') ?><?php $attr_class='help' ?><?php $attr_colspan='3' ?><?php
-// if (empty($attr_class))
-// $attr['class']=$row_class;
+?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'help','colspan'=>'3') ?><?php $attr5_class='help' ?><?php $attr5_colspan='3' ?><?php
+// if (empty($attr5_class))
+// $attr5['class']=$row_class;
$column_class_idx++;
if ($column_class_idx > count($column_classes))
$column_class_idx=1;
$column_class=$column_classes[$column_class_idx-1];
- if (empty($attr_class))
- $attr['class']=$column_class;
+ if (empty($attr5_class))
+ $attr5['class']=$column_class;
global $cell_column_nr;
$cell_column_nr++;
- if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) )
- $attr['width']=$column_widths[$cell_column_nr-1];
+ 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 = array('class'=>'text','raw'=>'_') ?><?php $attr6_class='text' ?><?php $attr6_raw='_' ?><?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;
-?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('class'=>'text','raw'=>'_') ?><?php $attr_class='text' ?><?php $attr_raw='_' ?><?php
- if(empty($attr_title))
- if (!empty($attr_key))
- $attr_title = lang($attr_key).'_HELP';
+ if(empty($attr6_title))
+ if (!empty($attr6_key))
+ $attr6_title = lang($attr6_key.'_HELP');
else
- $attr_title = '';
+ $attr6_title = '';
-?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php
- $attr_title = '';
- if (!empty($attr_array))
+?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php
+ $attr6_title = '';
+
+ if (!empty($attr6_array))
{
//geht nicht:
- //echo $$attr_array[$attr_var].'%';
- $tmpArray = $$attr_array;
- if (!empty($attr_var))
- $tmp_text = $tmpArray[$attr_var];
- else
- $tmp_text = lang($tmpArray[$attr_text]);
- }
- elseif (!empty($attr_text))
- if ( isset($$attr_text))
- $tmp_text = lang($$attr_text);
- else
- $tmp_text = lang($attr_text);
- elseif (!empty($attr_textvar))
- $tmp_text = lang($$attr_textvar);
- elseif (!empty($attr_key))
- $tmp_text = lang($attr_key);
- elseif (!empty($attr_var))
- $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present';
- elseif (!empty($attr_raw))
- $tmp_text = str_replace('_',' ',$attr_raw);
- elseif (!empty($attr_value))
- $tmp_text = $attr_value;
+ //echo $$attr6_array[$attr6_var].'%';
+ $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)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present';
+ elseif (!empty($attr6_raw))
+ $tmp_text = str_replace('_',' ',$attr6_raw);
+ elseif (!empty($attr6_value))
+ $tmp_text = $attr6_value;
else
- { Html::debug($attr);echo 'text error';
+ {
+ $tmp_text = ' ';
+ //Html::debug($attr6);echo 'text error';
}
- if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 )
- $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) );
+ if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 )
+ $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) );
echo $tmp_text;
-?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php
+?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_raw) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?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($attr_class))
- $attr_class=$row_class;
+ if (empty($attr4_class))
+ $attr4_class=$row_class;
global $cell_column_nr;
$cell_column_nr=0;
$column_class_idx = 999;
-?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php
-// if (empty($attr_class))
-// $attr['class']=$row_class;
+?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'fx') ?><?php $attr5_class='fx' ?><?php
+// if (empty($attr5_class))
+// $attr5['class']=$row_class;
$column_class_idx++;
if ($column_class_idx > count($column_classes))
$column_class_idx=1;
$column_class=$column_classes[$column_class_idx-1];
- if (empty($attr_class))
- $attr['class']=$column_class;
+ if (empty($attr5_class))
+ $attr5['class']=$column_class;
global $cell_column_nr;
$cell_column_nr++;
- if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) )
- $attr['width']=$column_widths[$cell_column_nr-1];
+ if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) )
+ $attr5['width']=$column_widths[$cell_column_nr-1];
-?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('class'=>'text','text'=>'GLOBAL_LANGUAGE') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_LANGUAGE' ?><?php
- if(empty($attr_title))
- if (!empty($attr_key))
- $attr_title = lang($attr_key).'_HELP';
+?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_LANGUAGE') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_LANGUAGE' ?><?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
- $attr_title = '';
+ $attr6_title = '';
+
+?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php
+ $attr6_title = '';
-?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php
- $attr_title = '';
- if (!empty($attr_array))
+ if (!empty($attr6_array))
{
//geht nicht:
- //echo $$attr_array[$attr_var].'%';
- $tmpArray = $$attr_array;
- if (!empty($attr_var))
- $tmp_text = $tmpArray[$attr_var];
- else
- $tmp_text = lang($tmpArray[$attr_text]);
- }
- elseif (!empty($attr_text))
- if ( isset($$attr_text))
- $tmp_text = lang($$attr_text);
- else
- $tmp_text = lang($attr_text);
- elseif (!empty($attr_textvar))
- $tmp_text = lang($$attr_textvar);
- elseif (!empty($attr_key))
- $tmp_text = lang($attr_key);
- elseif (!empty($attr_var))
- $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present';
- elseif (!empty($attr_raw))
- $tmp_text = str_replace('_',' ',$attr_raw);
- elseif (!empty($attr_value))
- $tmp_text = $attr_value;
+ //echo $$attr6_array[$attr6_var].'%';
+ $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)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present';
+ elseif (!empty($attr6_raw))
+ $tmp_text = str_replace('_',' ',$attr6_raw);
+ elseif (!empty($attr6_value))
+ $tmp_text = $attr6_value;
else
- { Html::debug($attr);echo 'text error';
+ {
+ $tmp_text = ' ';
+ //Html::debug($attr6);echo 'text error';
}
- if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 )
- $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) );
+ if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 )
+ $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) );
echo $tmp_text;
-?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php
-// if (empty($attr_class))
-// $attr['class']=$row_class;
+?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5 = array('class'=>'fx') ?><?php $attr5_class='fx' ?><?php
+// if (empty($attr5_class))
+// $attr5['class']=$row_class;
$column_class_idx++;
if ($column_class_idx > count($column_classes))
$column_class_idx=1;
$column_class=$column_classes[$column_class_idx-1];
- if (empty($attr_class))
- $attr['class']=$column_class;
+ if (empty($attr5_class))
+ $attr5['class']=$column_class;
global $cell_column_nr;
$cell_column_nr++;
- if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) )
- $attr['width']=$column_widths[$cell_column_nr-1];
+ 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 = array('class'=>'text','raw'=>'_') ?><?php $attr6_class='text' ?><?php $attr6_raw='_' ?><?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;
-?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('class'=>'text','raw'=>'_') ?><?php $attr_class='text' ?><?php $attr_raw='_' ?><?php
- if(empty($attr_title))
- if (!empty($attr_key))
- $attr_title = lang($attr_key).'_HELP';
+ if(empty($attr6_title))
+ if (!empty($attr6_key))
+ $attr6_title = lang($attr6_key.'_HELP');
else
- $attr_title = '';
+ $attr6_title = '';
-?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php
- $attr_title = '';
- if (!empty($attr_array))
+?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php
+ $attr6_title = '';
+
+ if (!empty($attr6_array))
{
//geht nicht:
- //echo $$attr_array[$attr_var].'%';
- $tmpArray = $$attr_array;
- if (!empty($attr_var))
- $tmp_text = $tmpArray[$attr_var];
- else
- $tmp_text = lang($tmpArray[$attr_text]);
- }
- elseif (!empty($attr_text))
- if ( isset($$attr_text))
- $tmp_text = lang($$attr_text);
- else
- $tmp_text = lang($attr_text);
- elseif (!empty($attr_textvar))
- $tmp_text = lang($$attr_textvar);
- elseif (!empty($attr_key))
- $tmp_text = lang($attr_key);
- elseif (!empty($attr_var))
- $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present';
- elseif (!empty($attr_raw))
- $tmp_text = str_replace('_',' ',$attr_raw);
- elseif (!empty($attr_value))
- $tmp_text = $attr_value;
+ //echo $$attr6_array[$attr6_var].'%';
+ $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)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present';
+ elseif (!empty($attr6_raw))
+ $tmp_text = str_replace('_',' ',$attr6_raw);
+ elseif (!empty($attr6_value))
+ $tmp_text = $attr6_value;
else
- { Html::debug($attr);echo 'text error';
+ {
+ $tmp_text = ' ';
+ //Html::debug($attr6);echo 'text error';
}
- if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 )
- $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) );
+ if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 )
+ $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) );
echo $tmp_text;
-?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php
-// if (empty($attr_class))
-// $attr['class']=$row_class;
+?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_raw) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5 = array('class'=>'fx') ?><?php $attr5_class='fx' ?><?php
+// if (empty($attr5_class))
+// $attr5['class']=$row_class;
$column_class_idx++;
if ($column_class_idx > count($column_classes))
$column_class_idx=1;
$column_class=$column_classes[$column_class_idx-1];
- if (empty($attr_class))
- $attr['class']=$column_class;
+ if (empty($attr5_class))
+ $attr5['class']=$column_class;
global $cell_column_nr;
$cell_column_nr++;
- if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) )
- $attr['width']=$column_widths[$cell_column_nr-1];
+ if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) )
+ $attr5['width']=$column_widths[$cell_column_nr-1];
-?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('list'=>'languages','name'=>'languageid','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='languages' ?><?php $attr_name='languageid' ?><?php $attr_onchange='' ?><?php $attr_title='' ?><?php $attr_class='' ?><select size="1" id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" onchange="<?php echo $attr_onchange ?>" title="<?php echo $attr_title ?>" class="<?php echo $attr_class ?>"<?php
-if (count($$attr_list)==1) echo ' disabled="disabled"'
+?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('list'=>'languages','name'=>'languageid','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr6_list='languages' ?><?php $attr6_name='languageid' ?><?php $attr6_default='' ?><?php $attr6_onchange='' ?><?php $attr6_title='' ?><?php $attr6_class='' ?><select size="1" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" onchange="<?php echo $attr6_onchange ?>" title="<?php echo $attr6_title ?>" class="<?php echo $attr6_class ?>"<?php
+if (count($$attr6_list)==1) echo ' disabled="disabled"'
?>><?php
- foreach( $$attr_list as $box_key=>$box_value )
+ foreach( $$attr6_list as $box_key=>$box_value )
{
- echo '<option class="'.$attr_class.'" value="'.$box_key.'"';
- if (isset($$attr_name)&&$box_key==$$attr_name || isset($attr_default)&&$box_key == $attr_default)
+ echo '<option class="'.$attr6_class.'" value="'.$box_key.'"';
+ if (isset($$attr6_name)&&$box_key==$$attr6_name || isset($attr6_default)&&$box_key == $attr6_default)
echo ' selected="selected"';
echo '>'.$box_value.'</option>';
}
?></select><?php
-if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" value="'.$box_key.'" />'
-?><?php unset($attr) ?><?php unset($attr_list) ?><?php unset($attr_name) ?><?php unset($attr_onchange) ?><?php unset($attr_title) ?><?php unset($attr_class) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php
+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_default) ?><?php unset($attr6_onchange) ?><?php unset($attr6_title) ?><?php unset($attr6_class) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?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($attr_class))
- $attr_class=$row_class;
+ if (empty($attr4_class))
+ $attr4_class=$row_class;
global $cell_column_nr;
$cell_column_nr=0;
$column_class_idx = 999;
-?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'help','colspan'=>'3') ?><?php $attr_class='help' ?><?php $attr_colspan='3' ?><?php
-// if (empty($attr_class))
-// $attr['class']=$row_class;
+?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'help','colspan'=>'3') ?><?php $attr5_class='help' ?><?php $attr5_colspan='3' ?><?php
+// if (empty($attr5_class))
+// $attr5['class']=$row_class;
$column_class_idx++;
if ($column_class_idx > count($column_classes))
$column_class_idx=1;
$column_class=$column_classes[$column_class_idx-1];
- if (empty($attr_class))
- $attr['class']=$column_class;
+ if (empty($attr5_class))
+ $attr5['class']=$column_class;
global $cell_column_nr;
$cell_column_nr++;
- if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) )
- $attr['width']=$column_widths[$cell_column_nr-1];
+ if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) )
+ $attr5['width']=$column_widths[$cell_column_nr-1];
-?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('class'=>'text','raw'=>'_') ?><?php $attr_class='text' ?><?php $attr_raw='_' ?><?php
- if(empty($attr_title))
- if (!empty($attr_key))
- $attr_title = lang($attr_key).'_HELP';
+?><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 = array('class'=>'text','raw'=>'_') ?><?php $attr6_class='text' ?><?php $attr6_raw='_' ?><?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
- $attr_title = '';
+ $attr6_title = '';
+
+?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php
+ $attr6_title = '';
-?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php
- $attr_title = '';
- if (!empty($attr_array))
+ if (!empty($attr6_array))
{
//geht nicht:
- //echo $$attr_array[$attr_var].'%';
- $tmpArray = $$attr_array;
- if (!empty($attr_var))
- $tmp_text = $tmpArray[$attr_var];
- else
- $tmp_text = lang($tmpArray[$attr_text]);
- }
- elseif (!empty($attr_text))
- if ( isset($$attr_text))
- $tmp_text = lang($$attr_text);
- else
- $tmp_text = lang($attr_text);
- elseif (!empty($attr_textvar))
- $tmp_text = lang($$attr_textvar);
- elseif (!empty($attr_key))
- $tmp_text = lang($attr_key);
- elseif (!empty($attr_var))
- $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present';
- elseif (!empty($attr_raw))
- $tmp_text = str_replace('_',' ',$attr_raw);
- elseif (!empty($attr_value))
- $tmp_text = $attr_value;
+ //echo $$attr6_array[$attr6_var].'%';
+ $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)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present';
+ elseif (!empty($attr6_raw))
+ $tmp_text = str_replace('_',' ',$attr6_raw);
+ elseif (!empty($attr6_value))
+ $tmp_text = $attr6_value;
else
- { Html::debug($attr);echo 'text error';
+ {
+ $tmp_text = ' ';
+ //Html::debug($attr6);echo 'text error';
}
- if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 )
- $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) );
+ if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 )
+ $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) );
echo $tmp_text;
-?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array('list'=>'show','extract'=>'','key'=>'list_key','value'=>'t') ?><?php $attr_list='show' ?><?php $attr_extract='' ?><?php $attr_key='list_key' ?><?php $attr_value='t' ?><?php
- $list_tmp_key = $attr_key;
- $list_tmp_value = $attr_value;
- $list_extract = ($attr_extract==true);
+?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_raw) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4 = array('list'=>'show','extract'=>false,'key'=>'k','value'=>'t') ?><?php $attr4_list='show' ?><?php $attr4_extract=false ?><?php $attr4_key='k' ?><?php $attr4_value='t' ?><?php
+ $attr4_list_tmp_key = $attr4_key;
+ $attr4_list_tmp_value = $attr4_value;
+ $attr4_list_extract = $attr4_extract;
+ if ( !isset($$attr4_list) || !is_array($$attr4_list) )
+ $$attr4_list = array();
- foreach( $$attr_list as $$list_tmp_key => $$list_tmp_value )
+ foreach( $$attr4_list as $$attr4_list_tmp_key => $$attr4_list_tmp_value )
{
- if ( $list_extract )
+ if ( $attr4_list_extract )
{
- if ( !is_array($$list_tmp_value) )
+ if ( !is_array($$attr4_list_tmp_value) )
{
- print_r($$list_tmp_value);
- die( 'not an array at key: '.$$list_tmp_key );
+ print_r($$attr4_list_tmp_value);
+ die( 'not an array at key: '.$$attr4_list_tmp_key );
}
- extract($$list_tmp_value);
+ extract($$attr4_list_tmp_value);
}
-?><?php unset($attr) ?><?php unset($attr_list) ?><?php unset($attr_extract) ?><?php unset($attr_key) ?><?php unset($attr_value) ?><?php $attr = array() ?><?php
+?><?php unset($attr4) ?><?php unset($attr4_list) ?><?php unset($attr4_extract) ?><?php unset($attr4_key) ?><?php unset($attr4_value) ?><?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($attr_class))
- $attr_class=$row_class;
+ if (empty($attr5_class))
+ $attr5_class=$row_class;
global $cell_column_nr;
$cell_column_nr=0;
$column_class_idx = 999;
-?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><td class="<?php echo $fx ?>"><?php echo lang('ACL_'.strtoupper($t)) ?></td>
-<td class="<?php echo $fx ?>" width="20"><?php echo lang('ACL_'.strtoupper($t).'_ABBREV') ?></td>
-<td class="<?php echo $fx ?>"><?php echo Html::checkBox($t,($t=='read'),($t!='read'),array('title'=>lang('ACL_'.strtoupper($t) )) ) ?></td>
-<?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php } ?><?php unset($attr) ?><?php $attr = array() ?><?php
+?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6 = array() ?><?php
+// if (empty($attr6_class))
+// $attr6['class']=$row_class;
+ $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 $attr7 = array('class'=>'text','key'=>$t,'prefix'=>'acl_') ?><?php $attr7_class='text' ?><?php $attr7_key=$t ?><?php $attr7_prefix='acl_' ?><?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))
+ if (!empty($attr7_key))
+ $attr7_title = lang($attr7_key.'_HELP');
+ else
+ $attr7_title = '';
+
+?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
+ $attr7_title = '';
+
+ if (!empty($attr7_array))
+ {
+ //geht nicht:
+ //echo $$attr7_array[$attr7_var].'%';
+ $tmpArray = $$attr7_array;
+ if (!empty($attr7_var))
+ $tmp_text = $tmpArray[$attr7_var];
+ else
+ $tmp_text = lang($tmpArray[$attr7_text]);
+ }
+ elseif (!empty($attr7_text))
+ if ( isset($$attr7_text))
+ $tmp_text = lang($$attr7_text);
+ else
+ $tmp_text = lang($attr7_text);
+ elseif (!empty($attr7_textvar))
+ $tmp_text = lang($$attr7_textvar);
+ elseif (!empty($attr7_key))
+ $tmp_text = lang($attr7_key);
+ elseif (!empty($attr7_var))
+ $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present';
+ elseif (!empty($attr7_raw))
+ $tmp_text = str_replace('_',' ',$attr7_raw);
+ elseif (!empty($attr7_value))
+ $tmp_text = $attr7_value;
+ else
+ {
+ $tmp_text = ' ';
+ //Html::debug($attr7);echo 'text error';
+ }
+
+ if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 )
+ $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) );
+
+ echo $tmp_text;
+?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_key) ?><?php unset($attr7_prefix) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr6 = array('width'=>'20px') ?><?php $attr6_width='20px' ?><?php
+// if (empty($attr6_class))
+// $attr6['class']=$row_class;
+ $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_width) ?><?php $attr7 = array('class'=>'text','key'=>$t,'suffix'=>'_abbrev','prefix'=>'acl_') ?><?php $attr7_class='text' ?><?php $attr7_key=$t ?><?php $attr7_suffix='_abbrev' ?><?php $attr7_prefix='acl_' ?><?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))
+ if (!empty($attr7_key))
+ $attr7_title = lang($attr7_key.'_HELP');
+ else
+ $attr7_title = '';
+
+?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
+ $attr7_title = '';
+
+ if (!empty($attr7_array))
+ {
+ //geht nicht:
+ //echo $$attr7_array[$attr7_var].'%';
+ $tmpArray = $$attr7_array;
+ if (!empty($attr7_var))
+ $tmp_text = $tmpArray[$attr7_var];
+ else
+ $tmp_text = lang($tmpArray[$attr7_text]);
+ }
+ elseif (!empty($attr7_text))
+ if ( isset($$attr7_text))
+ $tmp_text = lang($$attr7_text);
+ else
+ $tmp_text = lang($attr7_text);
+ elseif (!empty($attr7_textvar))
+ $tmp_text = lang($$attr7_textvar);
+ elseif (!empty($attr7_key))
+ $tmp_text = lang($attr7_key);
+ elseif (!empty($attr7_var))
+ $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present';
+ elseif (!empty($attr7_raw))
+ $tmp_text = str_replace('_',' ',$attr7_raw);
+ elseif (!empty($attr7_value))
+ $tmp_text = $attr7_value;
+ else
+ {
+ $tmp_text = ' ';
+ //Html::debug($attr7);echo 'text error';
+ }
+
+ if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 )
+ $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) );
+
+ echo $tmp_text;
+?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_key) ?><?php unset($attr7_suffix) ?><?php unset($attr7_prefix) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr6 = array() ?><?php
+// if (empty($attr6_class))
+// $attr6['class']=$row_class;
+ $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 $attr7 = array('equals'=>'read','value'=>$t) ?><?php $attr7_equals='read' ?><?php $attr7_value=$t ?><?php
+
+ // Wahr-Vergleich
+// Html::debug($attr7);
+
+ if ( isset($attr7_true) )
+ {
+ if (gettype($attr7_true) === '' && gettype($attr7_true) === '1')
+ $exec = $$attr7_true == true;
+ else
+ $exec = $attr7_true == true;
+ }
+
+ // Falsch-Vergleich
+ elseif ( isset($attr7_false) )
+ {
+ if (gettype($attr7_false) === '' && gettype($attr7_false) === '1')
+ $exec = $$attr7_false == false;
+ else
+ $exec = $attr7_false == false;
+ }
+ // Inhalt-Vergleich mit Wertliste
+ elseif( isset($attr7_contains) )
+ $exec = in_array($attr7_value,explode(',',$attr7_contains));
+
+ // Inhalt-Vergleich
+ elseif( isset($attr7_equals)&& isset($attr7_value) )
+ $exec = $attr7_equals == $attr7_value;
+
+ // Vergleich auf leer
+ 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 );
+ }
+
+ // Vergleich auf Vorhandensein
+ elseif ( isset($attr7_present) )
+ {
+ $exec = isset($$attr7_present);
+// if ( !isset($$attr7_present) )
+// $exec = false;
+// elseif ( is_array($$attr7_present) )
+// $exec = (count($$attr7_present)>0);
+// elseif ( is_bool($$attr7_present) )
+// $exec = $$attr7_present;
+// elseif ( is_numeric($$attr7_present) )
+// $exec = $$attr7_present>=0;
+// else
+// $exec = true;
+ }
+
+ else
+ {
+ Html::debug( $attr7 );
+ echo("error in IF line ".__LINE__);
+ echo("assume: FALSE");
+ $exec = false;
+ }
+
+ // Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
+ if ( !empty($attr7_invert) )
+ $exec = !$exec;
+
+ // Ergebnis umdrehen
+ 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 = array('var'=>$t,'value'=>true) ?><?php $attr8_var=$t ?><?php $attr8_value=true ?><?php $$attr8_var = $attr8_value ?><?php unset($attr8) ?><?php unset($attr8_var) ?><?php unset($attr8_value) ?><?php $attr8 = array('default'=>false,'readonly'=>true,'name'=>$t) ?><?php $attr8_default=false ?><?php $attr8_readonly=true ?><?php $attr8_name=$t ?><?php
+ if ( isset($$attr8_name) )
+ $checked = $$attr8_name;
+ else
+ $checked = $attr8_default;
+?><input type="checkbox" id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name ?>" <?php if ($attr8_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr8_name); unset($attr8_readonly); unset($attr8_default); ?><?php unset($attr8) ?><?php unset($attr8_default) ?><?php unset($attr8_readonly) ?><?php unset($attr8_name) ?><?php $attr6 = array() ?><?php
+ }
+
+?><?php unset($attr6) ?><?php $attr7 = array() ?><?php
+ if ( !$last_exec )
+ {
+?><?php unset($attr7) ?><?php $attr8 = array('var'=>$t,'value'=>false) ?><?php $attr8_var=$t ?><?php $attr8_value=false ?><?php $$attr8_var = $attr8_value ?><?php unset($attr8) ?><?php unset($attr8_var) ?><?php unset($attr8_value) ?><?php $attr8 = array('default'=>false,'readonly'=>false,'name'=>$t) ?><?php $attr8_default=false ?><?php $attr8_readonly=false ?><?php $attr8_name=$t ?><?php
+ if ( isset($$attr8_name) )
+ $checked = $$attr8_name;
+ else
+ $checked = $attr8_default;
+?><input type="checkbox" id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name ?>" <?php if ($attr8_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr8_name); unset($attr8_readonly); unset($attr8_default); ?><?php unset($attr8) ?><?php unset($attr8_default) ?><?php unset($attr8_readonly) ?><?php unset($attr8_name) ?><?php $attr6 = array() ?><?php
+ }
+?><?php unset($attr6) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?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($attr_class))
- $attr_class=$row_class;
+ if (empty($attr4_class))
+ $attr4_class=$row_class;
global $cell_column_nr;
$cell_column_nr=0;
$column_class_idx = 999;
-?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'act','colspan'=>'3') ?><?php $attr_class='act' ?><?php $attr_colspan='3' ?><?php
-// if (empty($attr_class))
-// $attr['class']=$row_class;
+?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'act','colspan'=>'3') ?><?php $attr5_class='act' ?><?php $attr5_colspan='3' ?><?php
+// if (empty($attr5_class))
+// $attr5['class']=$row_class;
$column_class_idx++;
if ($column_class_idx > count($column_classes))
$column_class_idx=1;
$column_class=$column_classes[$column_class_idx-1];
- if (empty($attr_class))
- $attr['class']=$column_class;
+ if (empty($attr5_class))
+ $attr5['class']=$column_class;
global $cell_column_nr;
$cell_column_nr++;
- if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) )
- $attr['width']=$column_widths[$cell_column_nr-1];
+ if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) )
+ $attr5['width']=$column_widths[$cell_column_nr-1];
-?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('type'=>'ok','class'=>'ok','value'=>'ok','text'=>'button_ok') ?><?php $attr_type='ok' ?><?php $attr_class='ok' ?><?php $attr_value='ok' ?><?php $attr_text='button_ok' ?><?php
- if ($attr_type=='ok')
+?><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 = 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')
{
- $attr_type = 'submit';
-// $attr_class = 'ok';
-// $attr_text = 'BUTTON_OK';
-// $attr_value = 'ok';
+ $attr6_type = 'submit';
+// $attr6_class = 'ok';
+// $attr6_text = 'BUTTON_OK';
+// $attr6_value = 'ok';
}
-?><input type="<?php echo $attr_type ?>" name="<?php echo $attr_value ?>" class="<?php echo $attr_class ?>" value=" <?php echo lang($attr_text) ?> " /><?php unset($attr) ?><?php unset($attr_type) ?><?php unset($attr_class) ?><?php unset($attr_value) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?> </table>
+?><input type="<?php echo $attr6_type ?>" name="<?php echo $attr6_value ?>" class="<?php echo $attr6_class ?>" value=" <?php echo lang($attr6_text) ?> " /><?php unset($attr6) ?><?php unset($attr6_type) ?><?php unset($attr6_class) ?><?php unset($attr6_value) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2 = array() ?> </table>
</td>
</tr>
</table>
@@ -954,9 +1278,9 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu
<?php $dur = time()-START_TIME;
echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small>
<?php } ?>
-<?php unset($attr) ?><?php $attr = array() ?></form>
+<?php unset($attr2) ?><?php $attr1 = array() ?></form>
-<?php unset($attr) ?><?php $attr = array() ?>
+<?php unset($attr1) ?><?php $attr0 = array() ?>
<!-- $Id$ -->
<?php if ($showDuration) { ?>
@@ -967,4 +1291,4 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu
<?php } ?>
</body>
-</html><?php unset($attr) ?>-
\ No newline at end of file
+</html><?php unset($attr0) ?>+
\ No newline at end of file
diff --git a/themes/default/pages/html/object/rights.tpl.php b/themes/default/pages/html/object/rights.tpl.php
@@ -6,10 +6,10 @@
<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 (is_array($windowMenu)) foreach( $windowMenu as $menu )
+<?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']) ?>" />
+ <link rel="section" href="<?php echo Html::url($actionName,@$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" />
<?php
}
?>
@@ -45,7 +45,7 @@
echo '<tr><td class="menu">';
if ( !empty($attr2_icon) )
echo '<img src="'.$image_dir.'icon_'.$attr2_icon.IMG_ICON_EXT.'" align="left" border="0">';
- if ( !is_array($path) )
+ if ( !isset($path) || is_array($path) )
$path = array();
foreach( $path as $pathElement)
{
@@ -64,7 +64,10 @@
</td>
</tr>
<tr><td class="subaction">
- <?php foreach( $windowMenu as $menu )
+
+ <?php if ( !isset($windowMenu) || !is_array($windowMenu) )
+ $windowMenu = array();
+ foreach( $windowMenu as $menu )
{
?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a> <?php
}
@@ -269,7 +272,7 @@
?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2 = array() ?><?php
}
-?><?php unset($attr2) ?><?php $attr3 = array('invert'=>'y','empty'=>'acls') ?><?php $attr3_invert='y' ?><?php $attr3_empty='acls' ?><?php
+?><?php unset($attr2) ?><?php $attr3 = array('not'=>true,'empty'=>'acls') ?><?php $attr3_not=true ?><?php $attr3_empty='acls' ?><?php
// Wahr-Vergleich
// Html::debug($attr3);
@@ -359,7 +362,7 @@
if ( $exec )
{
-?><?php unset($attr3) ?><?php unset($attr3_invert) ?><?php unset($attr3_empty) ?><?php $attr4 = array() ?><?php
+?><?php unset($attr3) ?><?php unset($attr3_not) ?><?php unset($attr3_empty) ?><?php $attr4 = array() ?><?php
$row_class_idx++;
if ($row_class_idx > count($row_classes))
$row_class_idx=1;
@@ -503,10 +506,91 @@
$tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) );
echo $tmp_text;
-?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php foreach( $show as $t ) { ?>
-<td class="help"><span title="<?php echo lang('ACL_'.strtoupper($t)) ?>"><strong><?php echo lang('ACL_'.strtoupper($t).'_ABBREV') ?></strong></span></td>
-<?php } ?>
-<?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5 = array('class'=>'help') ?><?php $attr5_class='help' ?><?php
+?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5 = array('list'=>'show','extract'=>false,'key'=>'list_key','value'=>'t') ?><?php $attr5_list='show' ?><?php $attr5_extract=false ?><?php $attr5_key='list_key' ?><?php $attr5_value='t' ?><?php
+ $attr5_list_tmp_key = $attr5_key;
+ $attr5_list_tmp_value = $attr5_value;
+ $attr5_list_extract = $attr5_extract;
+
+ 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) ?><?php unset($attr5_list) ?><?php unset($attr5_extract) ?><?php unset($attr5_key) ?><?php unset($attr5_value) ?><?php $attr6 = array('class'=>'help') ?><?php $attr6_class='help' ?><?php
+// if (empty($attr6_class))
+// $attr6['class']=$row_class;
+ $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 $attr7 = array('class'=>'text','key'=>$t,'suffix'=>'_abbrev','prefix'=>'acl_') ?><?php $attr7_class='text' ?><?php $attr7_key=$t ?><?php $attr7_suffix='_abbrev' ?><?php $attr7_prefix='acl_' ?><?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))
+ if (!empty($attr7_key))
+ $attr7_title = lang($attr7_key.'_HELP');
+ else
+ $attr7_title = '';
+
+?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
+ $attr7_title = '';
+
+ if (!empty($attr7_array))
+ {
+ //geht nicht:
+ //echo $$attr7_array[$attr7_var].'%';
+ $tmpArray = $$attr7_array;
+ if (!empty($attr7_var))
+ $tmp_text = $tmpArray[$attr7_var];
+ else
+ $tmp_text = lang($tmpArray[$attr7_text]);
+ }
+ elseif (!empty($attr7_text))
+ if ( isset($$attr7_text))
+ $tmp_text = lang($$attr7_text);
+ else
+ $tmp_text = lang($attr7_text);
+ elseif (!empty($attr7_textvar))
+ $tmp_text = lang($$attr7_textvar);
+ elseif (!empty($attr7_key))
+ $tmp_text = lang($attr7_key);
+ elseif (!empty($attr7_var))
+ $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present';
+ elseif (!empty($attr7_raw))
+ $tmp_text = str_replace('_',' ',$attr7_raw);
+ elseif (!empty($attr7_value))
+ $tmp_text = $attr7_value;
+ else
+ {
+ $tmp_text = ' ';
+ //Html::debug($attr7);echo 'text error';
+ }
+
+ if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 )
+ $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) );
+
+ echo $tmp_text;
+?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_key) ?><?php unset($attr7_suffix) ?><?php unset($attr7_prefix) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?><?php } ?><?php unset($attr4) ?><?php $attr5 = array('class'=>'help') ?><?php $attr5_class='help' ?><?php
// if (empty($attr5_class))
// $attr5['class']=$row_class;
$column_class_idx++;
@@ -574,15 +658,13 @@
?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2 = array() ?><?php
}
-?><?php unset($attr2) ?><?php $attr3 = array('list'=>'acls','extract'=>'1','key'=>'aclid','value'=>'z') ?><?php $attr3_list='acls' ?><?php $attr3_extract='1' ?><?php $attr3_key='aclid' ?><?php $attr3_value='z' ?><?php
+?><?php unset($attr2) ?><?php $attr3 = array('list'=>'acls','extract'=>true,'key'=>'aclid','value'=>'acl') ?><?php $attr3_list='acls' ?><?php $attr3_extract=true ?><?php $attr3_key='aclid' ?><?php $attr3_value='acl' ?><?php
$attr3_list_tmp_key = $attr3_key;
$attr3_list_tmp_value = $attr3_value;
- $attr3_list_extract = ($attr3_extract==true);
+ $attr3_list_extract = $attr3_extract;
- if ( !is_array($$attr3_list) )
+ if ( !isset($$attr3_list) || !is_array($$attr3_list) )
$$attr3_list = array();
-// die('not an array in list,var='.$attr3_list);
-// Html::debug($$attr3_list);
foreach( $$attr3_list as $$attr3_list_tmp_key => $$attr3_list_tmp_value )
{
@@ -609,19 +691,580 @@
$column_class_idx = 999;
-?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php if ( $z['username'] != '' )
-{ ?>
-<td width="50%" class="<?php echo $fx ?>"><img src="<?php echo $image_dir.'icon_user'.IMG_ICON_EXT ?>" align="left"><?php echo $z['username'] ?></td>
-<?php }
-elseif ( $z['groupname'] != '' )
-{ ?>
-<td width="50%" class="<?php echo $fx ?>"><img src="<?php echo $image_dir.'icon_group'.IMG_ICON_EXT ?>" align="left"><?php echo $z['groupname'] ?></td>
-<?php }
-else
-{ ?>
-<td width="50%" class="<?php echo $fx ?>"><img src="<?php echo $image_dir.'icon_group'.IMG_ICON_EXT ?>" align="left"><?php echo lang('GLOBAL_ALL') ?></td>
-<?php } ?>
-<?php $attr5 = array() ?><?php
+?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array() ?><?php
+// if (empty($attr5_class))
+// $attr5['class']=$row_class;
+ $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 = array('present'=>'username') ?><?php $attr6_present='username' ?><?php
+
+ // Wahr-Vergleich
+// Html::debug($attr6);
+
+ if ( isset($attr6_true) )
+ {
+ if (gettype($attr6_true) === '' && gettype($attr6_true) === '1')
+ $exec = $$attr6_true == true;
+ else
+ $exec = $attr6_true == true;
+ }
+
+ // Falsch-Vergleich
+ elseif ( isset($attr6_false) )
+ {
+ if (gettype($attr6_false) === '' && gettype($attr6_false) === '1')
+ $exec = $$attr6_false == false;
+ else
+ $exec = $attr6_false == false;
+ }
+ // Inhalt-Vergleich mit Wertliste
+ elseif( isset($attr6_contains) )
+ $exec = in_array($attr6_value,explode(',',$attr6_contains));
+
+ // Inhalt-Vergleich
+ elseif( isset($attr6_equals)&& isset($attr6_value) )
+ $exec = $attr6_equals == $attr6_value;
+
+ // Vergleich auf leer
+ elseif ( isset($attr6_empty) )
+ {
+ if ( !isset($$attr6_empty) )
+ $exec = empty($attr6_empty);
+ elseif ( is_array($$attr6_empty) )
+ $exec = (count($$attr6_empty)==0);
+ elseif ( is_bool($$attr6_empty) )
+ $exec = true;
+ else
+ $exec = empty( $$attr6_empty );
+ }
+
+ // Vergleich auf Vorhandensein
+ elseif ( isset($attr6_present) )
+ {
+ $exec = isset($$attr6_present);
+// if ( !isset($$attr6_present) )
+// $exec = false;
+// elseif ( is_array($$attr6_present) )
+// $exec = (count($$attr6_present)>0);
+// elseif ( is_bool($$attr6_present) )
+// $exec = $$attr6_present;
+// elseif ( is_numeric($$attr6_present) )
+// $exec = $$attr6_present>=0;
+// else
+// $exec = true;
+ }
+
+ else
+ {
+ Html::debug( $attr6 );
+ echo("error in IF line ".__LINE__);
+ echo("assume: FALSE");
+ $exec = false;
+ }
+
+ // Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
+ if ( !empty($attr6_invert) )
+ $exec = !$exec;
+
+ // Ergebnis umdrehen
+ if ( !empty($attr6_not) )
+ $exec = !$exec;
+
+ unset($attr6_true);
+ unset($attr6_false);
+ unset($attr6_notempty);
+ unset($attr6_empty);
+ unset($attr6_contains);
+ unset($attr6_present);
+ unset($attr6_invert);
+ unset($attr6_not);
+ unset($attr6_value);
+ unset($attr6_equals);
+
+ $last_exec = $exec;
+
+ if ( $exec )
+ {
+?><?php unset($attr6) ?><?php unset($attr6_present) ?><?php $attr7 = array('align'=>'left','type'=>'user') ?><?php $attr7_align='left' ?><?php $attr7_type='user' ?><?php
+if (isset($attr7_elementtype)) {
+?><img src="<?php echo $image_dir.'icon_el_'.$attr7_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php
+} elseif (isset($attr7_type)) {
+?><img src="<?php echo $image_dir.'icon_'.$attr7_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php
+} elseif (isset($attr7_icon)) {
+?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php
+} elseif (isset($attr7_url)) {
+?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php
+} elseif (isset($attr7_fileext)) {
+?><img src="<?php echo $image_dir.$attr7_fileext ?>" border="0" align="<?php echo $attr7_align ?>"><?php
+} elseif (isset($attr7_file)) {
+?><img src="<?php echo $image_dir.$attr7_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } ?><?php unset($attr7) ?><?php unset($attr7_align) ?><?php unset($attr7_type) ?><?php $attr7 = array('class'=>'text','text'=>$username) ?><?php $attr7_class='text' ?><?php $attr7_text=$username ?><?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))
+ if (!empty($attr7_key))
+ $attr7_title = lang($attr7_key.'_HELP');
+ else
+ $attr7_title = '';
+
+?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
+ $attr7_title = '';
+
+ if (!empty($attr7_array))
+ {
+ //geht nicht:
+ //echo $$attr7_array[$attr7_var].'%';
+ $tmpArray = $$attr7_array;
+ if (!empty($attr7_var))
+ $tmp_text = $tmpArray[$attr7_var];
+ else
+ $tmp_text = lang($tmpArray[$attr7_text]);
+ }
+ elseif (!empty($attr7_text))
+ if ( isset($$attr7_text))
+ $tmp_text = lang($$attr7_text);
+ else
+ $tmp_text = lang($attr7_text);
+ elseif (!empty($attr7_textvar))
+ $tmp_text = lang($$attr7_textvar);
+ elseif (!empty($attr7_key))
+ $tmp_text = lang($attr7_key);
+ elseif (!empty($attr7_var))
+ $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present';
+ elseif (!empty($attr7_raw))
+ $tmp_text = str_replace('_',' ',$attr7_raw);
+ elseif (!empty($attr7_value))
+ $tmp_text = $attr7_value;
+ else
+ {
+ $tmp_text = ' ';
+ //Html::debug($attr7);echo 'text error';
+ }
+
+ if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 )
+ $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) );
+
+ echo $tmp_text;
+?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?php $attr5 = array() ?><?php
+ }
+
+?><?php unset($attr5) ?><?php $attr6 = array('present'=>'groupname') ?><?php $attr6_present='groupname' ?><?php
+
+ // Wahr-Vergleich
+// Html::debug($attr6);
+
+ if ( isset($attr6_true) )
+ {
+ if (gettype($attr6_true) === '' && gettype($attr6_true) === '1')
+ $exec = $$attr6_true == true;
+ else
+ $exec = $attr6_true == true;
+ }
+
+ // Falsch-Vergleich
+ elseif ( isset($attr6_false) )
+ {
+ if (gettype($attr6_false) === '' && gettype($attr6_false) === '1')
+ $exec = $$attr6_false == false;
+ else
+ $exec = $attr6_false == false;
+ }
+ // Inhalt-Vergleich mit Wertliste
+ elseif( isset($attr6_contains) )
+ $exec = in_array($attr6_value,explode(',',$attr6_contains));
+
+ // Inhalt-Vergleich
+ elseif( isset($attr6_equals)&& isset($attr6_value) )
+ $exec = $attr6_equals == $attr6_value;
+
+ // Vergleich auf leer
+ elseif ( isset($attr6_empty) )
+ {
+ if ( !isset($$attr6_empty) )
+ $exec = empty($attr6_empty);
+ elseif ( is_array($$attr6_empty) )
+ $exec = (count($$attr6_empty)==0);
+ elseif ( is_bool($$attr6_empty) )
+ $exec = true;
+ else
+ $exec = empty( $$attr6_empty );
+ }
+
+ // Vergleich auf Vorhandensein
+ elseif ( isset($attr6_present) )
+ {
+ $exec = isset($$attr6_present);
+// if ( !isset($$attr6_present) )
+// $exec = false;
+// elseif ( is_array($$attr6_present) )
+// $exec = (count($$attr6_present)>0);
+// elseif ( is_bool($$attr6_present) )
+// $exec = $$attr6_present;
+// elseif ( is_numeric($$attr6_present) )
+// $exec = $$attr6_present>=0;
+// else
+// $exec = true;
+ }
+
+ else
+ {
+ Html::debug( $attr6 );
+ echo("error in IF line ".__LINE__);
+ echo("assume: FALSE");
+ $exec = false;
+ }
+
+ // Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
+ if ( !empty($attr6_invert) )
+ $exec = !$exec;
+
+ // Ergebnis umdrehen
+ if ( !empty($attr6_not) )
+ $exec = !$exec;
+
+ unset($attr6_true);
+ unset($attr6_false);
+ unset($attr6_notempty);
+ unset($attr6_empty);
+ unset($attr6_contains);
+ unset($attr6_present);
+ unset($attr6_invert);
+ unset($attr6_not);
+ unset($attr6_value);
+ unset($attr6_equals);
+
+ $last_exec = $exec;
+
+ if ( $exec )
+ {
+?><?php unset($attr6) ?><?php unset($attr6_present) ?><?php $attr7 = array('align'=>'left','type'=>'group') ?><?php $attr7_align='left' ?><?php $attr7_type='group' ?><?php
+if (isset($attr7_elementtype)) {
+?><img src="<?php echo $image_dir.'icon_el_'.$attr7_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php
+} elseif (isset($attr7_type)) {
+?><img src="<?php echo $image_dir.'icon_'.$attr7_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php
+} elseif (isset($attr7_icon)) {
+?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php
+} elseif (isset($attr7_url)) {
+?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php
+} elseif (isset($attr7_fileext)) {
+?><img src="<?php echo $image_dir.$attr7_fileext ?>" border="0" align="<?php echo $attr7_align ?>"><?php
+} elseif (isset($attr7_file)) {
+?><img src="<?php echo $image_dir.$attr7_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } ?><?php unset($attr7) ?><?php unset($attr7_align) ?><?php unset($attr7_type) ?><?php $attr7 = array('class'=>'text','text'=>$groupname) ?><?php $attr7_class='text' ?><?php $attr7_text=$groupname ?><?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))
+ if (!empty($attr7_key))
+ $attr7_title = lang($attr7_key.'_HELP');
+ else
+ $attr7_title = '';
+
+?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
+ $attr7_title = '';
+
+ if (!empty($attr7_array))
+ {
+ //geht nicht:
+ //echo $$attr7_array[$attr7_var].'%';
+ $tmpArray = $$attr7_array;
+ if (!empty($attr7_var))
+ $tmp_text = $tmpArray[$attr7_var];
+ else
+ $tmp_text = lang($tmpArray[$attr7_text]);
+ }
+ elseif (!empty($attr7_text))
+ if ( isset($$attr7_text))
+ $tmp_text = lang($$attr7_text);
+ else
+ $tmp_text = lang($attr7_text);
+ elseif (!empty($attr7_textvar))
+ $tmp_text = lang($$attr7_textvar);
+ elseif (!empty($attr7_key))
+ $tmp_text = lang($attr7_key);
+ elseif (!empty($attr7_var))
+ $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present';
+ elseif (!empty($attr7_raw))
+ $tmp_text = str_replace('_',' ',$attr7_raw);
+ elseif (!empty($attr7_value))
+ $tmp_text = $attr7_value;
+ else
+ {
+ $tmp_text = ' ';
+ //Html::debug($attr7);echo 'text error';
+ }
+
+ if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 )
+ $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) );
+
+ echo $tmp_text;
+?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?php $attr5 = array() ?><?php
+ }
+
+?><?php unset($attr5) ?><?php $attr6 = array('not'=>true,'present'=>'username') ?><?php $attr6_not=true ?><?php $attr6_present='username' ?><?php
+
+ // Wahr-Vergleich
+// Html::debug($attr6);
+
+ if ( isset($attr6_true) )
+ {
+ if (gettype($attr6_true) === '' && gettype($attr6_true) === '1')
+ $exec = $$attr6_true == true;
+ else
+ $exec = $attr6_true == true;
+ }
+
+ // Falsch-Vergleich
+ elseif ( isset($attr6_false) )
+ {
+ if (gettype($attr6_false) === '' && gettype($attr6_false) === '1')
+ $exec = $$attr6_false == false;
+ else
+ $exec = $attr6_false == false;
+ }
+ // Inhalt-Vergleich mit Wertliste
+ elseif( isset($attr6_contains) )
+ $exec = in_array($attr6_value,explode(',',$attr6_contains));
+
+ // Inhalt-Vergleich
+ elseif( isset($attr6_equals)&& isset($attr6_value) )
+ $exec = $attr6_equals == $attr6_value;
+
+ // Vergleich auf leer
+ elseif ( isset($attr6_empty) )
+ {
+ if ( !isset($$attr6_empty) )
+ $exec = empty($attr6_empty);
+ elseif ( is_array($$attr6_empty) )
+ $exec = (count($$attr6_empty)==0);
+ elseif ( is_bool($$attr6_empty) )
+ $exec = true;
+ else
+ $exec = empty( $$attr6_empty );
+ }
+
+ // Vergleich auf Vorhandensein
+ elseif ( isset($attr6_present) )
+ {
+ $exec = isset($$attr6_present);
+// if ( !isset($$attr6_present) )
+// $exec = false;
+// elseif ( is_array($$attr6_present) )
+// $exec = (count($$attr6_present)>0);
+// elseif ( is_bool($$attr6_present) )
+// $exec = $$attr6_present;
+// elseif ( is_numeric($$attr6_present) )
+// $exec = $$attr6_present>=0;
+// else
+// $exec = true;
+ }
+
+ else
+ {
+ Html::debug( $attr6 );
+ echo("error in IF line ".__LINE__);
+ echo("assume: FALSE");
+ $exec = false;
+ }
+
+ // Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
+ if ( !empty($attr6_invert) )
+ $exec = !$exec;
+
+ // Ergebnis umdrehen
+ if ( !empty($attr6_not) )
+ $exec = !$exec;
+
+ unset($attr6_true);
+ unset($attr6_false);
+ unset($attr6_notempty);
+ unset($attr6_empty);
+ unset($attr6_contains);
+ unset($attr6_present);
+ unset($attr6_invert);
+ unset($attr6_not);
+ unset($attr6_value);
+ unset($attr6_equals);
+
+ $last_exec = $exec;
+
+ if ( $exec )
+ {
+?><?php unset($attr6) ?><?php unset($attr6_not) ?><?php unset($attr6_present) ?><?php $attr7 = array('not'=>true,'present'=>'groupname') ?><?php $attr7_not=true ?><?php $attr7_present='groupname' ?><?php
+
+ // Wahr-Vergleich
+// Html::debug($attr7);
+
+ if ( isset($attr7_true) )
+ {
+ if (gettype($attr7_true) === '' && gettype($attr7_true) === '1')
+ $exec = $$attr7_true == true;
+ else
+ $exec = $attr7_true == true;
+ }
+
+ // Falsch-Vergleich
+ elseif ( isset($attr7_false) )
+ {
+ if (gettype($attr7_false) === '' && gettype($attr7_false) === '1')
+ $exec = $$attr7_false == false;
+ else
+ $exec = $attr7_false == false;
+ }
+ // Inhalt-Vergleich mit Wertliste
+ elseif( isset($attr7_contains) )
+ $exec = in_array($attr7_value,explode(',',$attr7_contains));
+
+ // Inhalt-Vergleich
+ elseif( isset($attr7_equals)&& isset($attr7_value) )
+ $exec = $attr7_equals == $attr7_value;
+
+ // Vergleich auf leer
+ 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 );
+ }
+
+ // Vergleich auf Vorhandensein
+ elseif ( isset($attr7_present) )
+ {
+ $exec = isset($$attr7_present);
+// if ( !isset($$attr7_present) )
+// $exec = false;
+// elseif ( is_array($$attr7_present) )
+// $exec = (count($$attr7_present)>0);
+// elseif ( is_bool($$attr7_present) )
+// $exec = $$attr7_present;
+// elseif ( is_numeric($$attr7_present) )
+// $exec = $$attr7_present>=0;
+// else
+// $exec = true;
+ }
+
+ else
+ {
+ Html::debug( $attr7 );
+ echo("error in IF line ".__LINE__);
+ echo("assume: FALSE");
+ $exec = false;
+ }
+
+ // Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
+ if ( !empty($attr7_invert) )
+ $exec = !$exec;
+
+ // Ergebnis umdrehen
+ 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_not) ?><?php unset($attr7_present) ?><?php $attr8 = array('align'=>'left','type'=>'group') ?><?php $attr8_align='left' ?><?php $attr8_type='group' ?><?php
+if (isset($attr8_elementtype)) {
+?><img src="<?php echo $image_dir.'icon_el_'.$attr8_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php
+} elseif (isset($attr8_type)) {
+?><img src="<?php echo $image_dir.'icon_'.$attr8_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php
+} elseif (isset($attr8_icon)) {
+?><img src="<?php echo $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php
+} elseif (isset($attr8_url)) {
+?><img src="<?php echo $attr8_url ?>" border="0" align="<?php echo $attr8_align ?>"><?php
+} elseif (isset($attr8_fileext)) {
+?><img src="<?php echo $image_dir.$attr8_fileext ?>" border="0" align="<?php echo $attr8_align ?>"><?php
+} elseif (isset($attr8_file)) {
+?><img src="<?php echo $image_dir.$attr8_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } ?><?php unset($attr8) ?><?php unset($attr8_align) ?><?php unset($attr8_type) ?><?php $attr8 = array('class'=>'text','key'=>'global_all') ?><?php $attr8_class='text' ?><?php $attr8_key='global_all' ?><?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))
+ if (!empty($attr8_key))
+ $attr8_title = lang($attr8_key.'_HELP');
+ else
+ $attr8_title = '';
+
+?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php
+ $attr8_title = '';
+
+ if (!empty($attr8_array))
+ {
+ //geht nicht:
+ //echo $$attr8_array[$attr8_var].'%';
+ $tmpArray = $$attr8_array;
+ if (!empty($attr8_var))
+ $tmp_text = $tmpArray[$attr8_var];
+ else
+ $tmp_text = lang($tmpArray[$attr8_text]);
+ }
+ elseif (!empty($attr8_text))
+ if ( isset($$attr8_text))
+ $tmp_text = lang($$attr8_text);
+ else
+ $tmp_text = lang($attr8_text);
+ elseif (!empty($attr8_textvar))
+ $tmp_text = lang($$attr8_textvar);
+ elseif (!empty($attr8_key))
+ $tmp_text = lang($attr8_key);
+ elseif (!empty($attr8_var))
+ $tmp_text = isset($$attr8_var)?htmlentities($$attr8_var):'error: variable '.$attr8_var.' not present';
+ elseif (!empty($attr8_raw))
+ $tmp_text = str_replace('_',' ',$attr8_raw);
+ elseif (!empty($attr8_value))
+ $tmp_text = $attr8_value;
+ else
+ {
+ $tmp_text = ' ';
+ //Html::debug($attr8);echo 'text error';
+ }
+
+ if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 )
+ $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) );
+
+ echo $tmp_text;
+?></span><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_key) ?><?php $attr6 = array() ?><?php
+ }
+
+?><?php unset($attr6) ?><?php $attr5 = array() ?><?php
+ }
+
+?><?php unset($attr5) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5 = array() ?><?php
// if (empty($attr5_class))
// $attr5['class']=$row_class;
$column_class_idx++;
@@ -686,18 +1329,269 @@ else
$tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) );
echo $tmp_text;
-?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_var) ?><?php foreach( $show as $t ) { ?>
-<td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z[$t],false,array('title'=>lang('ACL_'.strtoupper($t))) ) ?></td>
-<?php } ?>
-<?php if (isset($z['delete_url']))
-{ ?>
-<td class="<?php echo $fx ?>"><a href="<?php echo $z['delete_url'] ?>"><?php echo lang('GLOBAL_DELETE') ?></a></td>
-<?php }
-else
-{ ?>
-<td class="<?php echo $fx ?>"><?php echo lang('ACL_INHERITED') ?></td>
-<?php } ?>
-<?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2 = array() ?><?php } ?><?php unset($attr2) ?><?php $attr1 = array() ?> </table>
+?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_var) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5 = array('list'=>'show','extract'=>false,'key'=>'list_key','value'=>'t') ?><?php $attr5_list='show' ?><?php $attr5_extract=false ?><?php $attr5_key='list_key' ?><?php $attr5_value='t' ?><?php
+ $attr5_list_tmp_key = $attr5_key;
+ $attr5_list_tmp_value = $attr5_value;
+ $attr5_list_extract = $attr5_extract;
+
+ 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) ?><?php unset($attr5_list) ?><?php unset($attr5_extract) ?><?php unset($attr5_key) ?><?php unset($attr5_value) ?><?php $attr6 = array() ?><?php
+// if (empty($attr6_class))
+// $attr6['class']=$row_class;
+ $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 $attr7 = array('default'=>false,'readonly'=>true,'name'=>$t) ?><?php $attr7_default=false ?><?php $attr7_readonly=true ?><?php $attr7_name=$t ?><?php
+ 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 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 $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?><?php } ?><?php unset($attr4) ?><?php $attr5 = array() ?><?php
+// if (empty($attr5_class))
+// $attr5['class']=$row_class;
+ $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 = array('present'=>'delete_url') ?><?php $attr6_present='delete_url' ?><?php
+
+ // Wahr-Vergleich
+// Html::debug($attr6);
+
+ if ( isset($attr6_true) )
+ {
+ if (gettype($attr6_true) === '' && gettype($attr6_true) === '1')
+ $exec = $$attr6_true == true;
+ else
+ $exec = $attr6_true == true;
+ }
+
+ // Falsch-Vergleich
+ elseif ( isset($attr6_false) )
+ {
+ if (gettype($attr6_false) === '' && gettype($attr6_false) === '1')
+ $exec = $$attr6_false == false;
+ else
+ $exec = $attr6_false == false;
+ }
+ // Inhalt-Vergleich mit Wertliste
+ elseif( isset($attr6_contains) )
+ $exec = in_array($attr6_value,explode(',',$attr6_contains));
+
+ // Inhalt-Vergleich
+ elseif( isset($attr6_equals)&& isset($attr6_value) )
+ $exec = $attr6_equals == $attr6_value;
+
+ // Vergleich auf leer
+ elseif ( isset($attr6_empty) )
+ {
+ if ( !isset($$attr6_empty) )
+ $exec = empty($attr6_empty);
+ elseif ( is_array($$attr6_empty) )
+ $exec = (count($$attr6_empty)==0);
+ elseif ( is_bool($$attr6_empty) )
+ $exec = true;
+ else
+ $exec = empty( $$attr6_empty );
+ }
+
+ // Vergleich auf Vorhandensein
+ elseif ( isset($attr6_present) )
+ {
+ $exec = isset($$attr6_present);
+// if ( !isset($$attr6_present) )
+// $exec = false;
+// elseif ( is_array($$attr6_present) )
+// $exec = (count($$attr6_present)>0);
+// elseif ( is_bool($$attr6_present) )
+// $exec = $$attr6_present;
+// elseif ( is_numeric($$attr6_present) )
+// $exec = $$attr6_present>=0;
+// else
+// $exec = true;
+ }
+
+ else
+ {
+ Html::debug( $attr6 );
+ echo("error in IF line ".__LINE__);
+ echo("assume: FALSE");
+ $exec = false;
+ }
+
+ // Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
+ if ( !empty($attr6_invert) )
+ $exec = !$exec;
+
+ // Ergebnis umdrehen
+ if ( !empty($attr6_not) )
+ $exec = !$exec;
+
+ unset($attr6_true);
+ unset($attr6_false);
+ unset($attr6_notempty);
+ unset($attr6_empty);
+ unset($attr6_contains);
+ unset($attr6_present);
+ unset($attr6_invert);
+ unset($attr6_not);
+ unset($attr6_value);
+ unset($attr6_equals);
+
+ $last_exec = $exec;
+
+ if ( $exec )
+ {
+?><?php unset($attr6) ?><?php unset($attr6_present) ?><?php $attr7 = array('title'=>'','target'=>'_self','url'=>$delete_url,'class'=>'') ?><?php $attr7_title='' ?><?php $attr7_target='_self' ?><?php $attr7_url=$delete_url ?><?php $attr7_class='' ?><?php
+ if(empty($attr7_class))
+ $attr7_class='';
+ if(empty($attr7_title))
+ $attr7_title = '';
+
+ if(!empty($attr7_url))
+ $tmp_url = $attr7_url;
+ else
+ $tmp_url = Html::url($attr7_action,$attr7_subaction,!empty($$attr7_id)?$$attr7_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:''));
+?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>" title="<?php echo $attr7_title ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php unset($attr7_class) ?><?php $attr8 = array('class'=>'text','key'=>'GLOBAL_DELETE') ?><?php $attr8_class='text' ?><?php $attr8_key='GLOBAL_DELETE' ?><?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))
+ if (!empty($attr8_key))
+ $attr8_title = lang($attr8_key.'_HELP');
+ else
+ $attr8_title = '';
+
+?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php
+ $attr8_title = '';
+
+ if (!empty($attr8_array))
+ {
+ //geht nicht:
+ //echo $$attr8_array[$attr8_var].'%';
+ $tmpArray = $$attr8_array;
+ if (!empty($attr8_var))
+ $tmp_text = $tmpArray[$attr8_var];
+ else
+ $tmp_text = lang($tmpArray[$attr8_text]);
+ }
+ elseif (!empty($attr8_text))
+ if ( isset($$attr8_text))
+ $tmp_text = lang($$attr8_text);
+ else
+ $tmp_text = lang($attr8_text);
+ elseif (!empty($attr8_textvar))
+ $tmp_text = lang($$attr8_textvar);
+ elseif (!empty($attr8_key))
+ $tmp_text = lang($attr8_key);
+ elseif (!empty($attr8_var))
+ $tmp_text = isset($$attr8_var)?htmlentities($$attr8_var):'error: variable '.$attr8_var.' not present';
+ elseif (!empty($attr8_raw))
+ $tmp_text = str_replace('_',' ',$attr8_raw);
+ elseif (!empty($attr8_value))
+ $tmp_text = $attr8_value;
+ else
+ {
+ $tmp_text = ' ';
+ //Html::debug($attr8);echo 'text error';
+ }
+
+ if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 )
+ $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) );
+
+ echo $tmp_text;
+?></span><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_key) ?><?php $attr6 = array() ?></a><?php unset($attr6) ?><?php $attr5 = array() ?><?php
+ }
+
+?><?php unset($attr5) ?><?php $attr6 = array() ?><?php
+ if ( !$last_exec )
+ {
+?><?php unset($attr6) ?><?php $attr7 = array('class'=>'text','key'=>'ACL_INHERITED') ?><?php $attr7_class='text' ?><?php $attr7_key='ACL_INHERITED' ?><?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))
+ if (!empty($attr7_key))
+ $attr7_title = lang($attr7_key.'_HELP');
+ else
+ $attr7_title = '';
+
+?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
+ $attr7_title = '';
+
+ if (!empty($attr7_array))
+ {
+ //geht nicht:
+ //echo $$attr7_array[$attr7_var].'%';
+ $tmpArray = $$attr7_array;
+ if (!empty($attr7_var))
+ $tmp_text = $tmpArray[$attr7_var];
+ else
+ $tmp_text = lang($tmpArray[$attr7_text]);
+ }
+ elseif (!empty($attr7_text))
+ if ( isset($$attr7_text))
+ $tmp_text = lang($$attr7_text);
+ else
+ $tmp_text = lang($attr7_text);
+ elseif (!empty($attr7_textvar))
+ $tmp_text = lang($$attr7_textvar);
+ elseif (!empty($attr7_key))
+ $tmp_text = lang($attr7_key);
+ elseif (!empty($attr7_var))
+ $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present';
+ elseif (!empty($attr7_raw))
+ $tmp_text = str_replace('_',' ',$attr7_raw);
+ elseif (!empty($attr7_value))
+ $tmp_text = $attr7_value;
+ else
+ {
+ $tmp_text = ' ';
+ //Html::debug($attr7);echo 'text error';
+ }
+
+ if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 )
+ $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) );
+
+ echo $tmp_text;
+?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_key) ?><?php $attr5 = array() ?><?php
+ }
+?><?php unset($attr5) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2 = array() ?><?php } ?><?php unset($attr2) ?><?php $attr1 = array() ?> </table>
</td>
</tr>
</table>