commit d77bb602b6abc2bc60bd8d5a2c98a6bd49f75ccf
parent ce1a75b09f714b6506ad9b4f85b6461dc2c5e02a
Author: dankert <devnull@localhost>
Date: Sat, 3 Mar 2007 02:01:53 +0100
Korrektur der Ausgabe.
Diffstat:
9 files changed, 1670 insertions(+), 862 deletions(-)
diff --git a/themes/default/pages/html/element/name.tpl.php b/themes/default/pages/html/element/name.tpl.php
@@ -154,6 +154,11 @@
?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php
$attr6_title = '';
+ 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_array))
{
//geht nicht:
@@ -242,6 +247,11 @@
?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php
$attr6_title = '';
+ 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_array))
{
//geht nicht:
diff --git a/themes/default/pages/html/element/properties.tpl.php b/themes/default/pages/html/element/properties.tpl.php
@@ -161,16 +161,17 @@
// Vergleich auf Vorhandensein
elseif ( 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;
+ $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
@@ -182,6 +183,7 @@
}
// Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
if ( !empty($attr4_invert) )
$exec = !$exec;
@@ -242,6 +244,11 @@
?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
$attr7_title = '';
+ 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_array))
{
//geht nicht:
@@ -337,16 +344,17 @@
// Vergleich auf Vorhandensein
elseif ( 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;
+ $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
@@ -358,6 +366,7 @@
}
// Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
if ( !empty($attr7_invert) )
$exec = !$exec;
@@ -440,16 +449,17 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va
// Vergleich auf Vorhandensein
elseif ( 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;
+ $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
@@ -461,6 +471,7 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va
}
// Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
if ( !empty($attr7_invert) )
$exec = !$exec;
@@ -534,16 +545,17 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va
// Vergleich auf Vorhandensein
elseif ( 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;
+ $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
@@ -555,6 +567,7 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va
}
// Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
if ( !empty($attr4_invert) )
$exec = !$exec;
@@ -615,6 +628,11 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va
?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
$attr7_title = '';
+ 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_array))
{
//geht nicht:
@@ -721,16 +739,17 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va
// Vergleich auf Vorhandensein
elseif ( 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;
+ $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
@@ -742,6 +761,7 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va
}
// Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
if ( !empty($attr4_invert) )
$exec = !$exec;
@@ -802,6 +822,11 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va
?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
$attr7_title = '';
+ 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_array))
{
//geht nicht:
@@ -908,16 +933,17 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va
// Vergleich auf Vorhandensein
elseif ( 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;
+ $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
@@ -929,6 +955,7 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va
}
// Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
if ( !empty($attr4_invert) )
$exec = !$exec;
@@ -989,6 +1016,11 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va
?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
$attr7_title = '';
+ 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_array))
{
//geht nicht:
@@ -1095,16 +1127,17 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va
// Vergleich auf Vorhandensein
elseif ( 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;
+ $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
@@ -1116,6 +1149,7 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va
}
// Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
if ( !empty($attr4_invert) )
$exec = !$exec;
@@ -1176,6 +1210,11 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va
?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
$attr7_title = '';
+ 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_array))
{
//geht nicht:
@@ -1274,16 +1313,17 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va
// Vergleich auf Vorhandensein
elseif ( 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;
+ $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
@@ -1295,6 +1335,7 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va
}
// Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
if ( !empty($attr4_invert) )
$exec = !$exec;
@@ -1355,6 +1396,11 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va
?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
$attr7_title = '';
+ 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_array))
{
//geht nicht:
@@ -1453,16 +1499,17 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va
// Vergleich auf Vorhandensein
elseif ( 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;
+ $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
@@ -1474,6 +1521,7 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va
}
// Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
if ( !empty($attr4_invert) )
$exec = !$exec;
@@ -1534,6 +1582,11 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va
?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
$attr7_title = '';
+ 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_array))
{
//geht nicht:
@@ -1644,16 +1697,17 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
// Vergleich auf Vorhandensein
elseif ( 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;
+ $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
@@ -1665,6 +1719,7 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
}
// Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
if ( !empty($attr4_invert) )
$exec = !$exec;
@@ -1725,6 +1780,11 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
$attr7_title = '';
+ 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_array))
{
//geht nicht:
@@ -1831,16 +1891,17 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
// Vergleich auf Vorhandensein
elseif ( 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;
+ $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
@@ -1852,6 +1913,7 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
}
// Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
if ( !empty($attr4_invert) )
$exec = !$exec;
@@ -1912,6 +1974,11 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
$attr7_title = '';
+ 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_array))
{
//geht nicht:
@@ -2018,16 +2085,17 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
// Vergleich auf Vorhandensein
elseif ( 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;
+ $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
@@ -2039,6 +2107,7 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
}
// Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
if ( !empty($attr4_invert) )
$exec = !$exec;
@@ -2099,6 +2168,11 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
$attr7_title = '';
+ 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_array))
{
//geht nicht:
@@ -2197,16 +2271,17 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
// Vergleich auf Vorhandensein
elseif ( 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;
+ $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
@@ -2218,6 +2293,7 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
}
// Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
if ( !empty($attr4_invert) )
$exec = !$exec;
@@ -2278,6 +2354,11 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
$attr7_title = '';
+ 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_array))
{
//geht nicht:
@@ -2376,16 +2457,17 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
// Vergleich auf Vorhandensein
elseif ( 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;
+ $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
@@ -2397,6 +2479,7 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
}
// Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
if ( !empty($attr4_invert) )
$exec = !$exec;
@@ -2457,6 +2540,11 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
$attr7_title = '';
+ 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_array))
{
//geht nicht:
@@ -2555,16 +2643,17 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
// Vergleich auf Vorhandensein
elseif ( 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;
+ $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
@@ -2576,6 +2665,7 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
}
// Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
if ( !empty($attr4_invert) )
$exec = !$exec;
@@ -2636,6 +2726,11 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
$attr7_title = '';
+ 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_array))
{
//geht nicht:
@@ -2734,16 +2829,17 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
// Vergleich auf Vorhandensein
elseif ( 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;
+ $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
@@ -2755,6 +2851,7 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
}
// Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
if ( !empty($attr4_invert) )
$exec = !$exec;
@@ -2815,6 +2912,11 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
$attr7_title = '';
+ 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_array))
{
//geht nicht:
@@ -2913,16 +3015,17 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
// Vergleich auf Vorhandensein
elseif ( 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;
+ $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
@@ -2934,6 +3037,7 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
}
// Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
if ( !empty($attr4_invert) )
$exec = !$exec;
@@ -2994,6 +3098,11 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
$attr7_title = '';
+ 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_array))
{
//geht nicht:
@@ -3118,6 +3227,11 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php
$attr8_title = '';
+ 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_array))
{
//geht nicht:
@@ -3162,6 +3276,11 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php
$attr8_title = '';
+ 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_array))
{
//geht nicht:
@@ -3206,6 +3325,11 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php
$attr8_title = '';
+ 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_array))
{
//geht nicht:
@@ -3250,6 +3374,11 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php
$attr8_title = '';
+ 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_array))
{
//geht nicht:
@@ -3294,6 +3423,11 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php
$attr8_title = '';
+ 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_array))
{
//geht nicht:
@@ -3377,16 +3511,17 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
// Vergleich auf Vorhandensein
elseif ( 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;
+ $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
@@ -3398,6 +3533,7 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
}
// Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
if ( !empty($attr4_invert) )
$exec = !$exec;
@@ -3458,6 +3594,11 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
$attr7_title = '';
+ 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_array))
{
//geht nicht:
@@ -3556,16 +3697,17 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
// Vergleich auf Vorhandensein
elseif ( 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;
+ $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
@@ -3577,6 +3719,7 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
}
// Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
if ( !empty($attr4_invert) )
$exec = !$exec;
@@ -3637,6 +3780,11 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
$attr7_title = '';
+ 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_array))
{
//geht nicht:
@@ -3747,16 +3895,17 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
// Vergleich auf Vorhandensein
elseif ( 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;
+ $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
@@ -3768,6 +3917,7 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
}
// Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
if ( !empty($attr4_invert) )
$exec = !$exec;
@@ -3828,6 +3978,11 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
$attr7_title = '';
+ 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_array))
{
//geht nicht:
@@ -3938,16 +4093,17 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
// Vergleich auf Vorhandensein
elseif ( 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;
+ $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
@@ -3959,6 +4115,7 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
}
// Ergebnis umdrehen
+ // TODO: Bald ausbauen, stattdessen "not" verwenden.
if ( !empty($attr4_invert) )
$exec = !$exec;
@@ -4019,6 +4176,11 @@ if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" va
?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php
$attr7_title = '';
+ 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_array))
{
//geht nicht:
diff --git a/themes/default/pages/html/element/type.tpl.php b/themes/default/pages/html/element/type.tpl.php
@@ -154,6 +154,11 @@
?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php
$attr6_title = '';
+ 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_array))
{
//geht nicht:
diff --git a/themes/default/pages/html/template/addel.tpl.php b/themes/default/pages/html/template/addel.tpl.php
@@ -1,51 +1,71 @@
-<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<?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 $cms_title ?></title>
- <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
+ <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 (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<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>>
+<body class="<?php echo $attr1_class ?>">
-
-<?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('action'=>'','subaction'=>'','id'=>'','name'=>'','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?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();
+<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?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 $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
+?><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_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('title'=>'','name'=>'GLOBAL_TEMPLATES','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='GLOBAL_TEMPLATES' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php
+?><?php unset($attr2) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php $attr3 = array('name'=>'GLOBAL_TEMPLATES','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_name='GLOBAL_TEMPLATES' ?><?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(',',$attr3_widths);
+ unset($attr3['widths']);
+ }
+ if (!empty($attr3_rowclasses))
+ {
+ $row_classes = explode(',',$attr3_rowclasses);
+ $row_class_idx = 999;
+ unset($attr3['rowclasses']);
+ }
+ if (!empty($attr3_columnclasses))
{
- $column_widths = explode(',',$attr_widths);
- unset($attr['widths']);
+ $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 ( !empty($attr3_icon) )
+ echo '<img src="'.$image_dir.'icon_'.$attr3_icon.IMG_ICON_EXT.'" align="left" border="0">';
+ if ( !is_array($path) )
+ $path = array();
foreach( $path as $pathElement)
{
extract($pathElement);
@@ -54,7 +74,13 @@
}
echo '<span class="title">'.lang($windowTitle).'</span>';
?>
- </th>
+ </td><td class="menu" style="align:right;">
+ <?php if (isset($windowIcons)) foreach( $windowIcons as $icon )
+ {
+ ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.lang($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a> <?php
+ }
+ ?>
+ </td>
</tr>
<tr><td class="subaction">
<?php foreach( $windowMenu as $menu )
@@ -90,208 +116,320 @@
<tr>
<td>
- <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_name) ?><?php unset($attr_icon) ?><?php unset($attr_widths) ?><?php unset($attr_width) ?><?php $attr = array() ?><?php
- global $fx;
- if ( $fx =='f1')
- $fx='f2';
- else $fx='f1';
-
+ <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr3) ?><?php unset($attr3_name) ?><?php unset($attr3_width) ?><?php unset($attr3_rowclasses) ?><?php unset($attr3_columnclasses) ?><?php $attr4 = array() ?><?php
+ $row_class_idx++;
+ if ($row_class_idx > count($row_classes))
+ $row_class_idx=1;
+ $row_class=$row_classes[$row_class_idx-1];
+
+ if (empty($attr4_class))
+ $attr4_class=$row_class;
+
global $cell_column_nr;
$cell_column_nr=0;
+
+ $column_class_idx = 999;
-?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='' ?><?php
- global $fx;
- if (!isset($attr_class)) $attr_class='';
- if ($attr_class=='fx') $attr['class']=$fx;
+?><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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'global_name','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_name' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php
- if(empty($attr_title)) $attr_title = $attr_text;
-?><span class="<?php echo $attr_class ?>"><?php
- if (!empty($attr_array))
+?><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_name') ?><?php $attr6_class='text' ?><?php $attr6_text='global_name' ?><?php
+ if(empty($attr6_title))
+ if (!empty($attr6_key))
+ $attr6_title = lang($attr6_key).'_HELP';
+ else
+ $attr6_title = '';
+
+?><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];
+ //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($tmpArray[$attr_text]);
+ $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
+ {
+ $tmp_text = ' ';
+ //Html::debug($attr6);echo 'text error';
}
- elseif (!empty($attr_text))
- $tmp_text = lang($attr_text);
- elseif (!empty($attr_var))
- $tmp_text = isset($$attr_var)?$$attr_var:'error: variable '.$attr_var.' not present';
- elseif (!empty($attr_raw))
- $tmp_text = str_replace('_',' ',$attr_raw);
- else 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_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='' ?><?php
- global $fx;
- if (!isset($attr_class)) $attr_class='';
- if ($attr_class=='fx') $attr['class']=$fx;
+?></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($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('type'=>'text','name'=>'name','size'=>'40','maxlength'=>'256') ?><?php $attr6_type='text' ?><?php $attr6_name='name' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><input id="id<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr6) ?><?php unset($attr6_type) ?><?php unset($attr6_name) ?><?php unset($attr6_size) ?><?php unset($attr6_maxlength) ?><?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($attr4_class))
+ $attr4_class=$row_class;
-?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('class'=>'','default'=>'','type'=>'text','index'=>'','name'=>'name','prefix'=>'','value'=>'','size'=>'40','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='name' ?><?php $attr_prefix='' ?><?php $attr_value='' ?><?php $attr_size='40' ?><?php $attr_maxlength='256' ?><?php $attr_onchange='' ?><input name="<?php echo $attr_name ?>" size="<?php echo $attr_size ?>" maxlength="<?php echo $attr_maxlength ?>" class="<?php echo $attr_class ?>" value="<?php echo isset($$attr_name)?$$attr_name:$attr_default ?>" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_index) ?><?php unset($attr_name) ?><?php unset($attr_prefix) ?><?php unset($attr_value) ?><?php unset($attr_size) ?><?php unset($attr_maxlength) ?><?php unset($attr_onchange) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php
- global $fx;
- if ( $fx =='f1')
- $fx='f2';
- else $fx='f1';
-
global $cell_column_nr;
$cell_column_nr=0;
+
+ $column_class_idx = 999;
-?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='' ?><?php
- global $fx;
- if (!isset($attr_class)) $attr_class='';
- if ($attr_class=='fx') $attr['class']=$fx;
+?><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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'global_description','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_description' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php
- if(empty($attr_title)) $attr_title = $attr_text;
-?><span class="<?php echo $attr_class ?>"><?php
- if (!empty($attr_array))
+?><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_description') ?><?php $attr6_class='text' ?><?php $attr6_text='global_description' ?><?php
+ if(empty($attr6_title))
+ if (!empty($attr6_key))
+ $attr6_title = lang($attr6_key).'_HELP';
+ else
+ $attr6_title = '';
+
+?><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];
+ //echo $$attr6_array[$attr6_var].'%';
+ $tmpArray = $$attr6_array;
+ if (!empty($attr6_var))
+ $tmp_text = $tmpArray[$attr6_var];
else
- $tmp_text = lang($tmpArray[$attr_text]);
+ $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
+ {
+ $tmp_text = ' ';
+ //Html::debug($attr6);echo 'text error';
}
- elseif (!empty($attr_text))
- $tmp_text = lang($attr_text);
- elseif (!empty($attr_var))
- $tmp_text = isset($$attr_var)?$$attr_var:'error: variable '.$attr_var.' not present';
- elseif (!empty($attr_raw))
- $tmp_text = str_replace('_',' ',$attr_raw);
- else 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_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='' ?><?php
- global $fx;
- if (!isset($attr_class)) $attr_class='';
- if ($attr_class=='fx') $attr['class']=$fx;
+?></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($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('name'=>'description','rows'=>'10','cols'=>'40') ?><?php $attr6_name='description' ?><?php $attr6_rows='10' ?><?php $attr6_cols='40' ?><textarea class="<?php echo $attr6_class ?>" name="<?php echo $attr6_name ?>" rows="<?php echo $attr6_rows ?>" cols="<?php echo $attr6_cols ?>"><?php echo htmlentities(isset($$attr6_name)?$$attr6_name:$attr6_default) ?></textarea><?php unset($attr6) ?><?php unset($attr6_name) ?><?php unset($attr6_rows) ?><?php unset($attr6_cols) ?><?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($attr4_class))
+ $attr4_class=$row_class;
-?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('name'=>'description','rows'=>'10','cols'=>'40','value'=>'','index'=>'','onchange'=>'','prefix'=>'','class'=>'','default'=>'') ?><?php $attr_name='description' ?><?php $attr_rows='10' ?><?php $attr_cols='40' ?><?php $attr_value='' ?><?php $attr_index='' ?><?php $attr_onchange='' ?><?php $attr_prefix='' ?><?php $attr_class='' ?><?php $attr_default='' ?><textarea name="<?php echo $attr_name ?>" rows="<?php echo $attr_rows ?>" cols="<?php echo $attr_cols ?>"><?php echo htmlentities(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_rows) ?><?php unset($attr_cols) ?><?php unset($attr_value) ?><?php unset($attr_index) ?><?php unset($attr_onchange) ?><?php unset($attr_prefix) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php
- global $fx;
- if ( $fx =='f1')
- $fx='f2';
- else $fx='f1';
-
global $cell_column_nr;
$cell_column_nr=0;
+
+ $column_class_idx = 999;
-?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='' ?><?php
- global $fx;
- if (!isset($attr_class)) $attr_class='';
- if ($attr_class=='fx') $attr['class']=$fx;
+?><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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'element_type','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='element_type' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php
- if(empty($attr_title)) $attr_title = $attr_text;
-?><span class="<?php echo $attr_class ?>"><?php
- if (!empty($attr_array))
+?><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'=>'element_type') ?><?php $attr6_class='text' ?><?php $attr6_text='element_type' ?><?php
+ if(empty($attr6_title))
+ if (!empty($attr6_key))
+ $attr6_title = lang($attr6_key).'_HELP';
+ else
+ $attr6_title = '';
+
+?><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];
+ //echo $$attr6_array[$attr6_var].'%';
+ $tmpArray = $$attr6_array;
+ if (!empty($attr6_var))
+ $tmp_text = $tmpArray[$attr6_var];
else
- $tmp_text = lang($tmpArray[$attr_text]);
+ $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
+ {
+ $tmp_text = ' ';
+ //Html::debug($attr6);echo 'text error';
}
- elseif (!empty($attr_text))
- $tmp_text = lang($attr_text);
- elseif (!empty($attr_var))
- $tmp_text = isset($$attr_var)?$$attr_var:'error: variable '.$attr_var.' not present';
- elseif (!empty($attr_raw))
- $tmp_text = str_replace('_',' ',$attr_raw);
- else 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_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='' ?><?php
- global $fx;
- if (!isset($attr_class)) $attr_class='';
- if ($attr_class=='fx') $attr['class']=$fx;
+?></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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('var'=>'text','value'=>'text') ?><?php $attr_var='text' ?><?php $attr_value='text' ?><?php $$attr_var = $attr_value ?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php $attr = array('list'=>'types','name'=>'type','default'=>'text','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='types' ?><?php $attr_name='type' ?><?php $attr_default='text' ?><?php $attr_onchange='' ?><?php $attr_title='' ?><?php $attr_class='' ?><select size="1" 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('var'=>'text','value'=>'text') ?><?php $attr6_var='text' ?><?php $attr6_value='text' ?><?php $$attr6_var = $attr6_value ?><?php unset($attr6) ?><?php unset($attr6_var) ?><?php unset($attr6_value) ?><?php $attr6 = array('list'=>'types','name'=>'type','default'=>'text') ?><?php $attr6_list='types' ?><?php $attr6_name='type' ?><?php $attr6_default='text' ?><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_default) ?><?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
- global $fx;
- if ( $fx =='f1')
- $fx='f2';
- else $fx='f1';
-
+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 $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($attr4_class))
+ $attr4_class=$row_class;
+
global $cell_column_nr;
$cell_column_nr=0;
+
+ $column_class_idx = 999;
-?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'act','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='act' ?><?php $attr_colspan='2' ?><?php
- global $fx;
- if (!isset($attr_class)) $attr_class='';
- if ($attr_class=='fx') $attr['class']=$fx;
+?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'act','colspan'=>'2') ?><?php $attr5_class='act' ?><?php $attr5_colspan='2' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('type'=>'ok') ?><?php $attr_type='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 $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>
@@ -305,11 +443,16 @@ 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('field'=>'name') ?><?php $attr_field='name' ?><script name="JavaScript" type="text/javascript"><!--
-document.forms[0].<?php echo $attr_field ?>.focus();
-document.forms[0].<?php echo $attr_field ?>.select();
-//--></script>
-<?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?></form><?php unset($attr) ?><?php $attr = array() ?>
+<?php unset($attr2) ?><?php $attr3 = array('field'=>'name') ?><?php $attr3_field='name' ?>
+<script name="JavaScript" type="text/javascript">
+<!--
+document.forms[0].<?php echo $attr3_field ?>.focus();
+document.forms[0].<?php echo $attr3_field ?>.select();
+// -->
+</script>
+<?php unset($attr3) ?><?php unset($attr3_field) ?><?php $attr1 = array() ?></form>
+
+<?php unset($attr1) ?><?php $attr0 = array() ?>
<!-- $Id$ -->
<?php if ($showDuration) { ?>
@@ -320,4 +463,4 @@ document.forms[0].<?php echo $attr_field ?>.select();
<?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/template/edit.tpl.php b/themes/default/pages/html/template/edit.tpl.php
@@ -1,33 +1,53 @@
-<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<?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 $cms_title ?></title>
- <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
+ <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 (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<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>>
+<body class="<?php echo $attr1_class ?>">
-
-<?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('title'=>'','name'=>'TEMPLATE_SHOW','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='TEMPLATE_SHOW' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php
+<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('name'=>'TEMPLATE_SHOW','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr2_name='TEMPLATE_SHOW' ?><?php $attr2_width='93%' ?><?php $attr2_rowclasses='odd,even' ?><?php $attr2_columnclasses='1,2,3' ?><?php
$coloumn_widths=array();
- if (!empty($attr_widths))
+ if (!empty($attr2_widths))
+ {
+ $column_widths = explode(',',$attr2_widths);
+ unset($attr2['widths']);
+ }
+ if (!empty($attr2_rowclasses))
+ {
+ $row_classes = explode(',',$attr2_rowclasses);
+ $row_class_idx = 999;
+ unset($attr2['rowclasses']);
+ }
+ if (!empty($attr2_columnclasses))
{
- $column_widths = explode(',',$attr_widths);
- unset($attr['widths']);
+ $column_classes = explode(',',$attr2_columnclasses);
+ unset($attr2['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="'.$attr2_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 ( !empty($attr2_icon) )
+ echo '<img src="'.$image_dir.'icon_'.$attr2_icon.IMG_ICON_EXT.'" align="left" border="0">';
+ if ( !is_array($path) )
+ $path = array();
foreach( $path as $pathElement)
{
extract($pathElement);
@@ -36,7 +56,13 @@
}
echo '<span class="title">'.lang($windowTitle).'</span>';
?>
- </th>
+ </td><td class="menu" style="align:right;">
+ <?php if (isset($windowIcons)) foreach( $windowIcons as $icon )
+ {
+ ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.lang($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a> <?php
+ }
+ ?>
+ </td>
</tr>
<tr><td class="subaction">
<?php foreach( $windowMenu as $menu )
@@ -72,53 +98,87 @@
<tr>
<td>
- <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_name) ?><?php unset($attr_icon) ?><?php unset($attr_widths) ?><?php unset($attr_width) ?><?php $attr = array() ?><?php
- global $fx;
- if ( $fx =='f1')
- $fx='f2';
- else $fx='f1';
-
+ <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr2) ?><?php unset($attr2_name) ?><?php unset($attr2_width) ?><?php unset($attr2_rowclasses) ?><?php unset($attr2_columnclasses) ?><?php $attr3 = array() ?><?php
+ $row_class_idx++;
+ if ($row_class_idx > count($row_classes))
+ $row_class_idx=1;
+ $row_class=$row_classes[$row_class_idx-1];
+
+ if (empty($attr3_class))
+ $attr3_class=$row_class;
+
global $cell_column_nr;
$cell_column_nr=0;
+
+ $column_class_idx = 999;
-?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='' ?><?php
- global $fx;
- if (!isset($attr_class)) $attr_class='';
- if ($attr_class=='fx') $attr['class']=$fx;
+?><tr class="<?php echo $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?php
+// if (empty($attr4_class))
+// $attr4['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($attr4_class))
+ $attr4['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($attr4_rowspan) )
+ $attr4['width']=$column_widths[$cell_column_nr-1];
+
+?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><code>
+<?php $attr5 = array('class'=>'text','var'=>'text') ?><?php $attr5_class='text' ?><?php $attr5_var='text' ?><?php
+ if(empty($attr5_title))
+ if (!empty($attr5_key))
+ $attr5_title = lang($attr5_key).'_HELP';
+ else
+ $attr5_title = '';
+
+?><span class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php
+ $attr5_title = '';
+ if ( isset($attr5_prefix)&& isset($attr5_key))
+ $attr5_key = $attr5_prefix.$attr5_key;
+ if ( isset($attr5_suffix)&& isset($attr5_key))
+ $attr5_key = $attr5_key.$attr5_suffix;
-?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><code>
-<?php $attr = array('title'=>'','class'=>'','var'=>'text','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='text' ?><?php $attr_text='' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php
- if(empty($attr_title)) $attr_title = $attr_text;
-?><span class="<?php echo $attr_class ?>"><?php
- if (!empty($attr_array))
+ if (!empty($attr5_array))
{
//geht nicht:
- //echo $$attr_array[$attr_var].'%';
- $tmpArray = $$attr_array;
- if (!empty($attr_var))
- $tmp_text = $tmpArray[$attr_var];
+ //echo $$attr5_array[$attr5_var].'%';
+ $tmpArray = $$attr5_array;
+ if (!empty($attr5_var))
+ $tmp_text = $tmpArray[$attr5_var];
+ else
+ $tmp_text = lang($tmpArray[$attr5_text]);
+ }
+ elseif (!empty($attr5_text))
+ if ( isset($$attr5_text))
+ $tmp_text = lang($$attr5_text);
else
- $tmp_text = lang($tmpArray[$attr_text]);
+ $tmp_text = lang($attr5_text);
+ elseif (!empty($attr5_textvar))
+ $tmp_text = lang($$attr5_textvar);
+ elseif (!empty($attr5_key))
+ $tmp_text = lang($attr5_key);
+ elseif (!empty($attr5_var))
+ $tmp_text = isset($$attr5_var)?htmlentities($$attr5_var):'error: variable '.$attr5_var.' not present';
+ elseif (!empty($attr5_raw))
+ $tmp_text = str_replace('_',' ',$attr5_raw);
+ elseif (!empty($attr5_value))
+ $tmp_text = $attr5_value;
+ else
+ {
+ $tmp_text = ' ';
+ //Html::debug($attr5);echo 'text error';
}
- elseif (!empty($attr_text))
- $tmp_text = lang($attr_text);
- 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);
- else echo 'text error';
- if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 )
- $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) );
+ if ( !empty($attr5_maxlength) && intval($attr5_maxlength)!=0 )
+ $tmp_text = Text::maxLength( $tmp_text,intval($attr5_maxlength) );
echo $tmp_text;
-?></span><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><code>
-<?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?> </table>
+?></span><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_var) ?><code>
+<?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr1 = array() ?> </table>
</td>
</tr>
</table>
@@ -132,7 +192,7 @@
<?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() ?>
+<?php unset($attr1) ?><?php $attr0 = array() ?>
<!-- $Id$ -->
<?php if ($showDuration) { ?>
@@ -143,4 +203,4 @@
<?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/template/el.tpl.php b/themes/default/pages/html/template/el.tpl.php
@@ -1,33 +1,53 @@
-<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<?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 $cms_title ?></title>
- <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
+ <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 (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<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>>
+<body class="<?php echo $attr1_class ?>">
-
-<?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('title'=>'','name'=>'TEMPLATE_ELEMENTS','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='TEMPLATE_ELEMENTS' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php
+<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('name'=>'TEMPLATE_ELEMENTS','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr2_name='TEMPLATE_ELEMENTS' ?><?php $attr2_width='93%' ?><?php $attr2_rowclasses='odd,even' ?><?php $attr2_columnclasses='1,2,3' ?><?php
$coloumn_widths=array();
- if (!empty($attr_widths))
+ if (!empty($attr2_widths))
+ {
+ $column_widths = explode(',',$attr2_widths);
+ unset($attr2['widths']);
+ }
+ if (!empty($attr2_rowclasses))
{
- $column_widths = explode(',',$attr_widths);
- unset($attr['widths']);
+ $row_classes = explode(',',$attr2_rowclasses);
+ $row_class_idx = 999;
+ unset($attr2['rowclasses']);
+ }
+ if (!empty($attr2_columnclasses))
+ {
+ $column_classes = explode(',',$attr2_columnclasses);
+ unset($attr2['columnclasses']);
}
global $image_dir;
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="'.$attr2_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 ( !empty($attr2_icon) )
+ echo '<img src="'.$image_dir.'icon_'.$attr2_icon.IMG_ICON_EXT.'" align="left" border="0">';
+ if ( !is_array($path) )
+ $path = array();
foreach( $path as $pathElement)
{
extract($pathElement);
@@ -36,7 +56,13 @@
}
echo '<span class="title">'.lang($windowTitle).'</span>';
?>
- </th>
+ </td><td class="menu" style="align:right;">
+ <?php if (isset($windowIcons)) foreach( $windowIcons as $icon )
+ {
+ ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.lang($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a> <?php
+ }
+ ?>
+ </td>
</tr>
<tr><td class="subaction">
<?php foreach( $windowMenu as $menu )
@@ -72,218 +98,356 @@
<tr>
<td>
- <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_name) ?><?php unset($attr_icon) ?><?php unset($attr_widths) ?><?php unset($attr_width) ?><?php $attr = array('list'=>'el','extract'=>'true','key'=>'list_key','value'=>'list_value') ?><?php $attr_list='el' ?><?php $attr_extract='true' ?><?php $attr_key='list_key' ?><?php $attr_value='list_value' ?><?php
- $list_tmp_key = $attr_key;
- $list_tmp_value = $attr_value;
- $list_extract = ($attr_extract=='true');
+ <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr2) ?><?php unset($attr2_name) ?><?php unset($attr2_width) ?><?php unset($attr2_rowclasses) ?><?php unset($attr2_columnclasses) ?><?php $attr3 = array('list'=>'el','extract'=>'1','key'=>'list_key','value'=>'list_value') ?><?php $attr3_list='el' ?><?php $attr3_extract='1' ?><?php $attr3_key='list_key' ?><?php $attr3_value='list_value' ?><?php
+ $attr3_list_tmp_key = $attr3_key;
+ $attr3_list_tmp_value = $attr3_value;
+ $attr3_list_extract = ($attr3_extract==true);
+ if ( !is_array($$attr3_list) )
+ $$attr3_list = array();
+// die('not an array in list,var='.$attr3_list);
+// Html::debug($$attr3_list);
- foreach( $$attr_list as $$list_tmp_key => $$list_tmp_value )
+ foreach( $$attr3_list as $$attr3_list_tmp_key => $$attr3_list_tmp_value )
{
- if ( $list_extract )
+ if ( $attr3_list_extract )
{
- if ( !is_array($$list_tmp_value) )
+ if ( !is_array($$attr3_list_tmp_value) )
{
- print_r($$list_tmp_value);
- die( 'not an array at key: '.$$list_tmp_key );
+ print_r($$attr3_list_tmp_value);
+ die( 'not an array at key: '.$$attr3_list_tmp_key );
}
- extract($$list_tmp_value);
+ extract($$attr3_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
- global $fx;
- if ( $fx =='f1')
- $fx='f2';
- else $fx='f1';
-
+?><?php unset($attr3) ?><?php unset($attr3_list) ?><?php unset($attr3_extract) ?><?php unset($attr3_key) ?><?php unset($attr3_value) ?><?php $attr4 = array() ?><?php
+ $row_class_idx++;
+ if ($row_class_idx > count($row_classes))
+ $row_class_idx=1;
+ $row_class=$row_classes[$row_class_idx-1];
+
+ if (empty($attr4_class))
+ $attr4_class=$row_class;
+
global $cell_column_nr;
$cell_column_nr=0;
+
+ $column_class_idx = 999;
-?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='' ?><?php
- global $fx;
- if (!isset($attr_class)) $attr_class='';
- if ($attr_class=='fx') $attr['class']=$fx;
+?><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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'desc','target'=>'','url'=>'url','class'=>'','action'=>'','subaction'=>'','id'=>'','var1'=>'','value1'=>'') ?><?php $attr_title='desc' ?><?php $attr_target='' ?><?php $attr_url='url' ?><?php $attr_class='' ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_var1='' ?><?php $attr_value1='' ?><?php
- if(!empty($attr_url))
- $tmp_url = $$attr_url;
+?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('title'=>$desc,'target'=>'_self','url'=>$url) ?><?php $attr6_title=$desc ?><?php $attr6_target='_self' ?><?php $attr6_url=$url ?><?php
+ if(!empty($attr6_url))
+ $tmp_url = $attr6_url;
else
- $tmp_url = Html::url($attr_action,$attr_subaction,!empty($$attr_id)?$$attr_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:''));
-?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr_class ?>" target="<?php echo $attr_target ?>" title="<?php echo hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_var1) ?><?php unset($attr_value1) ?><?php $attr = array('file'=>'','url'=>'','align'=>'left','type'=>'type','elementtype'=>'') ?><?php $attr_file='' ?><?php $attr_url='' ?><?php $attr_align='left' ?><?php $attr_type='type' ?><?php $attr_elementtype='' ?><?php
-if (!empty($attr_elementtype)) {
-?><img src="<?php echo $image_dir.'icon_el_'.$$attr_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php
-} elseif (!empty($attr_type)) {
-?><img src="<?php echo $image_dir.'icon_'.$$attr_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php
-} elseif (!empty($$attr_url)) {
-?><img src="<?php echo $$attr_url ?>" border="0" align="<?php echo $attr_align ?>"><?php
-} elseif (!empty($attr_file)) {
-?><img src="<?php echo $image_dir.$$attr_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php } ?><?php unset($attr) ?><?php unset($attr_file) ?><?php unset($attr_url) ?><?php unset($attr_align) ?><?php unset($attr_type) ?><?php unset($attr_elementtype) ?><?php $attr = array('title'=>'','class'=>'','var'=>'name','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='name' ?><?php $attr_text='' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php
- if(empty($attr_title)) $attr_title = $attr_text;
-?><span class="<?php echo $attr_class ?>"><?php
- if (!empty($attr_array))
+ $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($$attr6_id)?$$attr6_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:''));
+?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>" title="<?php echo $attr6_title ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php $attr7 = array('align'=>'left','elementtype'=>$type) ?><?php $attr7_align='left' ?><?php $attr7_elementtype=$type ?><?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_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_elementtype) ?><?php $attr7 = array('class'=>'text','text'=>$name) ?><?php $attr7_class='text' ?><?php $attr7_text=$name ?><?php
+ 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 ( 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_array))
{
//geht nicht:
- //echo $$attr_array[$attr_var].'%';
- $tmpArray = $$attr_array;
- if (!empty($attr_var))
- $tmp_text = $tmpArray[$attr_var];
+ //echo $$attr7_array[$attr7_var].'%';
+ $tmpArray = $$attr7_array;
+ if (!empty($attr7_var))
+ $tmp_text = $tmpArray[$attr7_var];
else
- $tmp_text = lang($tmpArray[$attr_text]);
+ $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';
}
- elseif (!empty($attr_text))
- $tmp_text = lang($attr_text);
- elseif (!empty($attr_var))
- $tmp_text = isset($$attr_var)?$$attr_var:'error: variable '.$attr_var.' not present';
- elseif (!empty($attr_raw))
- $tmp_text = str_replace('_',' ',$attr_raw);
- else 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_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></a><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='' ?><?php
- global $fx;
- if (!isset($attr_class)) $attr_class='';
- if ($attr_class=='fx') $attr['class']=$fx;
+?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?php $attr5 = array() ?></a><?php unset($attr5) ?><?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($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','key'=>$type,'prefix'=>'EL_') ?><?php $attr6_class='text' ?><?php $attr6_key=$type ?><?php $attr6_prefix='EL_' ?><?php
+ if(empty($attr6_title))
+ if (!empty($attr6_key))
+ $attr6_title = lang($attr6_key).'_HELP';
+ else
+ $attr6_title = '';
+
+?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php
+ $attr6_title = '';
+ 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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'type','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='type' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php
- if(empty($attr_title)) $attr_title = $attr_text;
-?><span class="<?php echo $attr_class ?>"><?php
- 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];
+ //echo $$attr6_array[$attr6_var].'%';
+ $tmpArray = $$attr6_array;
+ if (!empty($attr6_var))
+ $tmp_text = $tmpArray[$attr6_var];
else
- $tmp_text = lang($tmpArray[$attr_text]);
+ $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
+ {
+ $tmp_text = ' ';
+ //Html::debug($attr6);echo 'text error';
}
- elseif (!empty($attr_text))
- $tmp_text = lang($attr_text);
- elseif (!empty($attr_var))
- $tmp_text = isset($$attr_var)?$$attr_var:'error: variable '.$attr_var.' not present';
- elseif (!empty($attr_raw))
- $tmp_text = str_replace('_',' ',$attr_raw);
- else 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_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php } ?><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'el','present'=>'','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='el' ?><?php $attr_present='' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php
+?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_key) ?><?php unset($attr6_prefix) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2 = array() ?><?php } ?><?php unset($attr2) ?><?php $attr3 = array('empty'=>'el') ?><?php $attr3_empty='el' ?><?php
// Wahr-Vergleich
- if ( !empty($attr_true) )
- $exec = $$attr_true == true;
+// Html::debug($attr3);
+
+ if ( isset($attr3_true) )
+ {
+ if (gettype($attr3_true) === '' && gettype($attr3_true) === '1')
+ $exec = $$attr3_true == true;
+ else
+ $exec = $attr3_true == true;
+ }
// Falsch-Vergleich
- elseif ( !empty($attr_false) )
- $exec = $$attr_false != true;
-
+ elseif ( isset($attr3_false) )
+ {
+ if (gettype($attr3_false) === '' && gettype($attr3_false) === '1')
+ $exec = $$attr3_false == false;
+ else
+ $exec = $attr3_false == false;
+ }
// Inhalt-Vergleich mit Wertliste
- elseif( !empty($attr_contains) )
- $exec = in_array($$attr_var,explode(',',$attr_contains));
+ elseif( isset($attr3_contains) )
+ $exec = in_array($attr3_value,explode(',',$attr3_contains));
// Inhalt-Vergleich
- elseif( !empty($attr_var) )
- $exec = $$attr_var == $attr_value;
+ elseif( isset($attr3_equals)&& isset($attr3_value) )
+ $exec = $attr3_equals == $attr3_value;
// Vergleich auf leer
- elseif ( !empty($attr_empty) )
+ elseif ( isset($attr3_empty) )
{
- if ( !isset($$attr_empty) )
- $exec = true;
- elseif ( is_array($$attr_empty) )
- $exec = (count($$attr_empty)==0);
- elseif ( is_bool($$attr_empty) )
+ if ( !isset($$attr3_empty) )
+ $exec = empty($attr3_empty);
+ elseif ( is_array($$attr3_empty) )
+ $exec = (count($$attr3_empty)==0);
+ elseif ( is_bool($$attr3_empty) )
$exec = true;
else
- $exec = empty( $$attr_empty );
+ $exec = empty( $$attr3_empty );
}
- // Vergleich auf nicht-leer
- elseif ( !empty($attr_present) )
+ // Vergleich auf Vorhandensein
+ elseif ( isset($attr3_present) )
{
- if ( !isset($$attr_present) )
- $exec = false;
- elseif ( is_array($$attr_present) )
- $exec = (count($$attr_present)>0);
- elseif ( is_bool($$attr_present) )
- $exec = true;
- elseif ( is_numeric($$attr_present) )
- $exec = $$attr_present>=0;
- else
- $exec = !empty( $$attr_present );
+ $exec = isset($$attr3_present);
+// if ( !isset($$attr3_present) )
+// $exec = false;
+// elseif ( is_array($$attr3_present) )
+// $exec = (count($$attr3_present)>0);
+// elseif ( is_bool($$attr3_present) )
+// $exec = $$attr3_present;
+// elseif ( is_numeric($$attr3_present) )
+// $exec = $$attr3_present>=0;
+// else
+// $exec = true;
}
+
else
{
- die("error in IF");
+ Html::debug( $attr3 );
+ 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($attr3_invert) )
$exec = !$exec;
+ // Ergebnis umdrehen
+ if ( !empty($attr3_not) )
+ $exec = !$exec;
+
+ unset($attr3_true);
+ unset($attr3_false);
+ unset($attr3_notempty);
+ unset($attr3_empty);
+ unset($attr3_contains);
+ unset($attr3_present);
+ unset($attr3_invert);
+ unset($attr3_not);
+ unset($attr3_value);
+ unset($attr3_equals);
+
+ $last_exec = $exec;
+
if ( $exec )
{
-?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php unset($attr_invert) ?><?php unset($attr_empty) ?><?php unset($attr_present) ?><?php unset($attr_contains) ?><?php unset($attr_true) ?><?php unset($attr_false) ?><?php $attr = array() ?><?php
- global $fx;
- if ( $fx =='f1')
- $fx='f2';
- else $fx='f1';
-
+?><?php unset($attr3) ?><?php unset($attr3_empty) ?><?php $attr4 = array() ?><?php
+ $row_class_idx++;
+ if ($row_class_idx > count($row_classes))
+ $row_class_idx=1;
+ $row_class=$row_classes[$row_class_idx-1];
+
+ if (empty($attr4_class))
+ $attr4_class=$row_class;
+
global $cell_column_nr;
$cell_column_nr=0;
+
+ $column_class_idx = 999;
-?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php
- global $fx;
- if (!isset($attr_class)) $attr_class='';
- if ($attr_class=='fx') $attr['class']=$fx;
+?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'fx','colspan'=>'2') ?><?php $attr5_class='fx' ?><?php $attr5_colspan='2' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_NOT_FOUND','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_NOT_FOUND' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php
- if(empty($attr_title)) $attr_title = $attr_text;
-?><span class="<?php echo $attr_class ?>"><?php
- if (!empty($attr_array))
+?><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','text'=>lang('GLOBAL_NOT_FOUND')) ?><?php $attr6_class='text' ?><?php $attr6_text=lang('GLOBAL_NOT_FOUND') ?><?php
+ if(empty($attr6_title))
+ if (!empty($attr6_key))
+ $attr6_title = lang($attr6_key).'_HELP';
+ else
+ $attr6_title = '';
+
+?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php
+ $attr6_title = '';
+ 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_array))
{
//geht nicht:
- //echo $$attr_array[$attr_var].'%';
- $tmpArray = $$attr_array;
- if (!empty($attr_var))
- $tmp_text = $tmpArray[$attr_var];
+ //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($tmpArray[$attr_text]);
+ $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
+ {
+ $tmp_text = ' ';
+ //Html::debug($attr6);echo 'text error';
}
- elseif (!empty($attr_text))
- $tmp_text = lang($attr_text);
- elseif (!empty($attr_var))
- $tmp_text = isset($$attr_var)?$$attr_var:'error: variable '.$attr_var.' not present';
- elseif (!empty($attr_raw))
- $tmp_text = str_replace('_',' ',$attr_raw);
- else 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_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?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_text) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2 = array() ?><?php
}
-?><?php unset($attr) ?><?php $attr = array() ?> </table>
+
+?><?php unset($attr2) ?><?php $attr1 = array() ?> </table>
</td>
</tr>
</table>
@@ -297,7 +461,7 @@ if (!empty($attr_elementtype)) {
<?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() ?>
+<?php unset($attr1) ?><?php $attr0 = array() ?>
<!-- $Id$ -->
<?php if ($showDuration) { ?>
@@ -308,4 +472,4 @@ if (!empty($attr_elementtype)) {
<?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/template/listing.tpl.php b/themes/default/pages/html/template/listing.tpl.php
@@ -1,33 +1,53 @@
-<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<?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 $cms_title ?></title>
- <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
+ <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 (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<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>>
+<body class="<?php echo $attr1_class ?>">
-
-<?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('title'=>'','name'=>'GLOBAL_TEMPLATES','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='GLOBAL_TEMPLATES' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php
+<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('name'=>'GLOBAL_TEMPLATES','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr2_name='GLOBAL_TEMPLATES' ?><?php $attr2_width='93%' ?><?php $attr2_rowclasses='odd,even' ?><?php $attr2_columnclasses='1,2,3' ?><?php
$coloumn_widths=array();
- if (!empty($attr_widths))
+ if (!empty($attr2_widths))
+ {
+ $column_widths = explode(',',$attr2_widths);
+ unset($attr2['widths']);
+ }
+ if (!empty($attr2_rowclasses))
{
- $column_widths = explode(',',$attr_widths);
- unset($attr['widths']);
+ $row_classes = explode(',',$attr2_rowclasses);
+ $row_class_idx = 999;
+ unset($attr2['rowclasses']);
+ }
+ if (!empty($attr2_columnclasses))
+ {
+ $column_classes = explode(',',$attr2_columnclasses);
+ unset($attr2['columnclasses']);
}
global $image_dir;
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="'.$attr2_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 ( !empty($attr2_icon) )
+ echo '<img src="'.$image_dir.'icon_'.$attr2_icon.IMG_ICON_EXT.'" align="left" border="0">';
+ if ( !is_array($path) )
+ $path = array();
foreach( $path as $pathElement)
{
extract($pathElement);
@@ -36,7 +56,13 @@
}
echo '<span class="title">'.lang($windowTitle).'</span>';
?>
- </th>
+ </td><td class="menu" style="align:right;">
+ <?php if (isset($windowIcons)) foreach( $windowIcons as $icon )
+ {
+ ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.lang($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a> <?php
+ }
+ ?>
+ </td>
</tr>
<tr><td class="subaction">
<?php foreach( $windowMenu as $menu )
@@ -72,175 +98,282 @@
<tr>
<td>
- <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_name) ?><?php unset($attr_icon) ?><?php unset($attr_widths) ?><?php unset($attr_width) ?><?php $attr = array('list'=>'templates','extract'=>'true','key'=>'list_key','value'=>'list_value') ?><?php $attr_list='templates' ?><?php $attr_extract='true' ?><?php $attr_key='list_key' ?><?php $attr_value='list_value' ?><?php
- $list_tmp_key = $attr_key;
- $list_tmp_value = $attr_value;
- $list_extract = ($attr_extract=='true');
+ <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr2) ?><?php unset($attr2_name) ?><?php unset($attr2_width) ?><?php unset($attr2_rowclasses) ?><?php unset($attr2_columnclasses) ?><?php $attr3 = array('list'=>'templates','extract'=>'1','key'=>'list_key','value'=>'list_value') ?><?php $attr3_list='templates' ?><?php $attr3_extract='1' ?><?php $attr3_key='list_key' ?><?php $attr3_value='list_value' ?><?php
+ $attr3_list_tmp_key = $attr3_key;
+ $attr3_list_tmp_value = $attr3_value;
+ $attr3_list_extract = ($attr3_extract==true);
+ if ( !is_array($$attr3_list) )
+ $$attr3_list = array();
+// die('not an array in list,var='.$attr3_list);
+// Html::debug($$attr3_list);
- foreach( $$attr_list as $$list_tmp_key => $$list_tmp_value )
+ foreach( $$attr3_list as $$attr3_list_tmp_key => $$attr3_list_tmp_value )
{
- if ( $list_extract )
+ if ( $attr3_list_extract )
{
- if ( !is_array($$list_tmp_value) )
+ if ( !is_array($$attr3_list_tmp_value) )
{
- print_r($$list_tmp_value);
- die( 'not an array at key: '.$$list_tmp_key );
+ print_r($$attr3_list_tmp_value);
+ die( 'not an array at key: '.$$attr3_list_tmp_key );
}
- extract($$list_tmp_value);
+ extract($$attr3_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
- global $fx;
- if ( $fx =='f1')
- $fx='f2';
- else $fx='f1';
-
+?><?php unset($attr3) ?><?php unset($attr3_list) ?><?php unset($attr3_extract) ?><?php unset($attr3_key) ?><?php unset($attr3_value) ?><?php $attr4 = array() ?><?php
+ $row_class_idx++;
+ if ($row_class_idx > count($row_classes))
+ $row_class_idx=1;
+ $row_class=$row_classes[$row_class_idx-1];
+
+ if (empty($attr4_class))
+ $attr4_class=$row_class;
+
global $cell_column_nr;
$cell_column_nr=0;
+
+ $column_class_idx = 999;
-?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='' ?><?php
- global $fx;
- if (!isset($attr_class)) $attr_class='';
- if ($attr_class=='fx') $attr['class']=$fx;
+?><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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','target'=>'cms_main','url'=>'url','class'=>'','action'=>'','subaction'=>'','id'=>'','var1'=>'','value1'=>'') ?><?php $attr_title='' ?><?php $attr_target='cms_main' ?><?php $attr_url='url' ?><?php $attr_class='' ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_var1='' ?><?php $attr_value1='' ?><?php
- if(!empty($attr_url))
- $tmp_url = $$attr_url;
+?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('target'=>'cms_main','url'=>'url') ?><?php $attr6_target='cms_main' ?><?php $attr6_url='url' ?><?php
+ if(!empty($attr6_url))
+ $tmp_url = $attr6_url;
else
- $tmp_url = Html::url($attr_action,$attr_subaction,!empty($$attr_id)?$$attr_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:''));
-?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr_class ?>" target="<?php echo $attr_target ?>" title="<?php echo hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_var1) ?><?php unset($attr_value1) ?><?php $attr = array('title'=>'','class'=>'','var'=>'name','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='name' ?><?php $attr_text='' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php
- if(empty($attr_title)) $attr_title = $attr_text;
-?><span class="<?php echo $attr_class ?>"><?php
- if (!empty($attr_array))
+ $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($$attr6_id)?$$attr6_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:''));
+?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>" title="<?php echo $attr6_title ?>"><?php unset($attr6) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php $attr7 = array('class'=>'text','var'=>'name') ?><?php $attr7_class='text' ?><?php $attr7_var='name' ?><?php
+ 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 ( 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_array))
{
//geht nicht:
- //echo $$attr_array[$attr_var].'%';
- $tmpArray = $$attr_array;
- if (!empty($attr_var))
- $tmp_text = $tmpArray[$attr_var];
+ //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($tmpArray[$attr_text]);
+ $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';
}
- elseif (!empty($attr_text))
- $tmp_text = lang($attr_text);
- 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);
- else 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_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></a><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php } ?><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'templates','present'=>'','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='templates' ?><?php $attr_present='' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php
+?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_var) ?><?php $attr5 = array() ?></a><?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 $attr3 = array('empty'=>'templates') ?><?php $attr3_empty='templates' ?><?php
// Wahr-Vergleich
- if ( !empty($attr_true) )
- $exec = $$attr_true == true;
+// Html::debug($attr3);
+
+ if ( isset($attr3_true) )
+ {
+ if (gettype($attr3_true) === '' && gettype($attr3_true) === '1')
+ $exec = $$attr3_true == true;
+ else
+ $exec = $attr3_true == true;
+ }
// Falsch-Vergleich
- elseif ( !empty($attr_false) )
- $exec = $$attr_false != true;
-
+ elseif ( isset($attr3_false) )
+ {
+ if (gettype($attr3_false) === '' && gettype($attr3_false) === '1')
+ $exec = $$attr3_false == false;
+ else
+ $exec = $attr3_false == false;
+ }
// Inhalt-Vergleich mit Wertliste
- elseif( !empty($attr_contains) )
- $exec = in_array($$attr_var,explode(',',$attr_contains));
+ elseif( isset($attr3_contains) )
+ $exec = in_array($attr3_value,explode(',',$attr3_contains));
// Inhalt-Vergleich
- elseif( !empty($attr_var) )
- $exec = $$attr_var == $attr_value;
+ elseif( isset($attr3_equals)&& isset($attr3_value) )
+ $exec = $attr3_equals == $attr3_value;
// Vergleich auf leer
- elseif ( !empty($attr_empty) )
+ elseif ( isset($attr3_empty) )
{
- if ( !isset($$attr_empty) )
- $exec = true;
- elseif ( is_array($$attr_empty) )
- $exec = (count($$attr_empty)==0);
- elseif ( is_bool($$attr_empty) )
+ if ( !isset($$attr3_empty) )
+ $exec = empty($attr3_empty);
+ elseif ( is_array($$attr3_empty) )
+ $exec = (count($$attr3_empty)==0);
+ elseif ( is_bool($$attr3_empty) )
$exec = true;
else
- $exec = empty( $$attr_empty );
+ $exec = empty( $$attr3_empty );
}
- // Vergleich auf nicht-leer
- elseif ( !empty($attr_present) )
+ // Vergleich auf Vorhandensein
+ elseif ( isset($attr3_present) )
{
- if ( !isset($$attr_present) )
- $exec = false;
- elseif ( is_array($$attr_present) )
- $exec = (count($$attr_present)>0);
- elseif ( is_bool($$attr_present) )
- $exec = true;
- elseif ( is_numeric($$attr_present) )
- $exec = $$attr_present>=0;
- else
- $exec = !empty( $$attr_present );
+ $exec = isset($$attr3_present);
+// if ( !isset($$attr3_present) )
+// $exec = false;
+// elseif ( is_array($$attr3_present) )
+// $exec = (count($$attr3_present)>0);
+// elseif ( is_bool($$attr3_present) )
+// $exec = $$attr3_present;
+// elseif ( is_numeric($$attr3_present) )
+// $exec = $$attr3_present>=0;
+// else
+// $exec = true;
}
+
else
{
- die("error in IF");
+ Html::debug( $attr3 );
+ 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($attr3_invert) )
$exec = !$exec;
+ // Ergebnis umdrehen
+ if ( !empty($attr3_not) )
+ $exec = !$exec;
+
+ unset($attr3_true);
+ unset($attr3_false);
+ unset($attr3_notempty);
+ unset($attr3_empty);
+ unset($attr3_contains);
+ unset($attr3_present);
+ unset($attr3_invert);
+ unset($attr3_not);
+ unset($attr3_value);
+ unset($attr3_equals);
+
+ $last_exec = $exec;
+
if ( $exec )
{
-?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php unset($attr_invert) ?><?php unset($attr_empty) ?><?php unset($attr_present) ?><?php unset($attr_contains) ?><?php unset($attr_true) ?><?php unset($attr_false) ?><?php $attr = array() ?><?php
- global $fx;
- if ( $fx =='f1')
- $fx='f2';
- else $fx='f1';
-
+?><?php unset($attr3) ?><?php unset($attr3_empty) ?><?php $attr4 = array() ?><?php
+ $row_class_idx++;
+ if ($row_class_idx > count($row_classes))
+ $row_class_idx=1;
+ $row_class=$row_classes[$row_class_idx-1];
+
+ if (empty($attr4_class))
+ $attr4_class=$row_class;
+
global $cell_column_nr;
$cell_column_nr=0;
+
+ $column_class_idx = 999;
-?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'help','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='' ?><?php
- global $fx;
- if (!isset($attr_class)) $attr_class='';
- if ($attr_class=='fx') $attr['class']=$fx;
+?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'help') ?><?php $attr5_class='help' ?><?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($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','text'=>'GLOBAL_NO_TEMPLATES_AVAILABLE_DESC') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_NO_TEMPLATES_AVAILABLE_DESC' ?><?php
+ if(empty($attr6_title))
+ if (!empty($attr6_key))
+ $attr6_title = lang($attr6_key).'_HELP';
+ else
+ $attr6_title = '';
+
+?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php
+ $attr6_title = '';
+ 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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_NO_TEMPLATES_AVAILABLE_DESC','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_NO_TEMPLATES_AVAILABLE_DESC' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php
- if(empty($attr_title)) $attr_title = $attr_text;
-?><span class="<?php echo $attr_class ?>"><?php
- 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];
+ //echo $$attr6_array[$attr6_var].'%';
+ $tmpArray = $$attr6_array;
+ if (!empty($attr6_var))
+ $tmp_text = $tmpArray[$attr6_var];
else
- $tmp_text = lang($tmpArray[$attr_text]);
+ $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
+ {
+ $tmp_text = ' ';
+ //Html::debug($attr6);echo 'text error';
}
- elseif (!empty($attr_text))
- $tmp_text = lang($attr_text);
- 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);
- else 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_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?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_text) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2 = array() ?><?php
}
-?><?php unset($attr) ?><?php $attr = array() ?> </table>
+
+?><?php unset($attr2) ?><?php $attr1 = array() ?> </table>
</td>
</tr>
</table>
@@ -254,7 +387,7 @@
<?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() ?>
+<?php unset($attr1) ?><?php $attr0 = array() ?>
<!-- $Id$ -->
<?php if ($showDuration) { ?>
@@ -265,4 +398,4 @@
<?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/template/name.tpl.php b/themes/default/pages/html/template/name.tpl.php
@@ -1,51 +1,71 @@
-<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<?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 $cms_title ?></title>
- <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
+ <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 (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<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>>
+<body class="<?php echo $attr1_class ?>">
-
-<?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('action'=>'','subaction'=>'','id'=>'','name'=>'','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?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();
+<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?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 $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
+?><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_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('title'=>'','name'=>'GLOBAL_PROP','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='GLOBAL_PROP' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php
+?><?php unset($attr2) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php $attr3 = array('name'=>'GLOBAL_PROP','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_name='GLOBAL_PROP' ?><?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(',',$attr3_widths);
+ unset($attr3['widths']);
+ }
+ if (!empty($attr3_rowclasses))
{
- $column_widths = explode(',',$attr_widths);
- unset($attr['widths']);
+ $row_classes = explode(',',$attr3_rowclasses);
+ $row_class_idx = 999;
+ unset($attr3['rowclasses']);
+ }
+ if (!empty($attr3_columnclasses))
+ {
+ $column_classes = explode(',',$attr3_columnclasses);
+ unset($attr3['columnclasses']);
}
global $image_dir;
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 ( !empty($attr3_icon) )
+ echo '<img src="'.$image_dir.'icon_'.$attr3_icon.IMG_ICON_EXT.'" align="left" border="0">';
+ if ( !is_array($path) )
+ $path = array();
foreach( $path as $pathElement)
{
extract($pathElement);
@@ -54,7 +74,13 @@
}
echo '<span class="title">'.lang($windowTitle).'</span>';
?>
- </th>
+ </td><td class="menu" style="align:right;">
+ <?php if (isset($windowIcons)) foreach( $windowIcons as $icon )
+ {
+ ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.lang($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a> <?php
+ }
+ ?>
+ </td>
</tr>
<tr><td class="subaction">
<?php foreach( $windowMenu as $menu )
@@ -90,88 +116,137 @@
<tr>
<td>
- <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_name) ?><?php unset($attr_icon) ?><?php unset($attr_widths) ?><?php unset($attr_width) ?><?php $attr = array() ?><?php
- global $fx;
- if ( $fx =='f1')
- $fx='f2';
- else $fx='f1';
-
+ <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr3) ?><?php unset($attr3_name) ?><?php unset($attr3_width) ?><?php unset($attr3_rowclasses) ?><?php unset($attr3_columnclasses) ?><?php $attr4 = array() ?><?php
+ $row_class_idx++;
+ if ($row_class_idx > count($row_classes))
+ $row_class_idx=1;
+ $row_class=$row_classes[$row_class_idx-1];
+
+ if (empty($attr4_class))
+ $attr4_class=$row_class;
+
global $cell_column_nr;
$cell_column_nr=0;
+
+ $column_class_idx = 999;
-?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='' ?><?php
- global $fx;
- if (!isset($attr_class)) $attr_class='';
- if ($attr_class=='fx') $attr['class']=$fx;
+?><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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'TEMPLATE_NAME','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='TEMPLATE_NAME' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php
- if(empty($attr_title)) $attr_title = $attr_text;
-?><span class="<?php echo $attr_class ?>"><?php
- if (!empty($attr_array))
+?><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'=>'TEMPLATE_NAME') ?><?php $attr6_class='text' ?><?php $attr6_text='TEMPLATE_NAME' ?><?php
+ if(empty($attr6_title))
+ if (!empty($attr6_key))
+ $attr6_title = lang($attr6_key).'_HELP';
+ else
+ $attr6_title = '';
+
+?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php
+ $attr6_title = '';
+ 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_array))
{
//geht nicht:
- //echo $$attr_array[$attr_var].'%';
- $tmpArray = $$attr_array;
- if (!empty($attr_var))
- $tmp_text = $tmpArray[$attr_var];
+ //echo $$attr6_array[$attr6_var].'%';
+ $tmpArray = $$attr6_array;
+ if (!empty($attr6_var))
+ $tmp_text = $tmpArray[$attr6_var];
else
- $tmp_text = lang($tmpArray[$attr_text]);
+ $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
+ {
+ $tmp_text = ' ';
+ //Html::debug($attr6);echo 'text error';
}
- elseif (!empty($attr_text))
- $tmp_text = lang($attr_text);
- elseif (!empty($attr_var))
- $tmp_text = isset($$attr_var)?$$attr_var:'error: variable '.$attr_var.' not present';
- elseif (!empty($attr_raw))
- $tmp_text = str_replace('_',' ',$attr_raw);
- else 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_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='' ?><?php
- global $fx;
- if (!isset($attr_class)) $attr_class='';
- if ($attr_class=='fx') $attr['class']=$fx;
+?></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($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('type'=>'text','name'=>'name','size'=>'40','maxlength'=>'256') ?><?php $attr6_type='text' ?><?php $attr6_name='name' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><input id="id<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr6) ?><?php unset($attr6_type) ?><?php unset($attr6_name) ?><?php unset($attr6_size) ?><?php unset($attr6_maxlength) ?><?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($attr4_class))
+ $attr4_class=$row_class;
-?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('class'=>'','default'=>'','type'=>'text','index'=>'','name'=>'name','prefix'=>'','value'=>'','size'=>'40','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='name' ?><?php $attr_prefix='' ?><?php $attr_value='' ?><?php $attr_size='40' ?><?php $attr_maxlength='256' ?><?php $attr_onchange='' ?><input name="<?php echo $attr_name ?>" size="<?php echo $attr_size ?>" maxlength="<?php echo $attr_maxlength ?>" class="<?php echo $attr_class ?>" value="<?php echo isset($$attr_name)?$$attr_name:$attr_default ?>" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_index) ?><?php unset($attr_name) ?><?php unset($attr_prefix) ?><?php unset($attr_value) ?><?php unset($attr_size) ?><?php unset($attr_maxlength) ?><?php unset($attr_onchange) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php
- global $fx;
- if ( $fx =='f1')
- $fx='f2';
- else $fx='f1';
-
global $cell_column_nr;
$cell_column_nr=0;
+
+ $column_class_idx = 999;
-?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='' ?><?php $attr_colspan='2' ?><?php
- global $fx;
- if (!isset($attr_class)) $attr_class='';
- if ($attr_class=='fx') $attr['class']=$fx;
+?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('colspan'=>'2') ?><?php $attr5_colspan='2' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('type'=>'ok') ?><?php $attr_type='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_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) ?><!--
+?><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) ?><!--
<tr>
<th colspan="2"><?php echo lang('GLOBAL_PAGES') ?></th>
</tr>
@@ -191,7 +266,7 @@ if ( count($pages)==0)
</table>
</center>
-->
-<?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?> </table>
+<?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2 = array() ?> </table>
</td>
</tr>
</table>
@@ -205,11 +280,16 @@ if ( count($pages)==0)
<?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($attr) ?><?php $attr = array('field'=>'name') ?><?php $attr_field='name' ?><script name="JavaScript" type="text/javascript"><!--
-document.forms[0].<?php echo $attr_field ?>.focus();
-document.forms[0].<?php echo $attr_field ?>.select();
-//--></script>
-<?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?>
+<?php unset($attr2) ?><?php $attr1 = array() ?></form>
+
+<?php unset($attr1) ?><?php $attr2 = array('field'=>'name') ?><?php $attr2_field='name' ?>
+<script name="JavaScript" type="text/javascript">
+<!--
+document.forms[0].<?php echo $attr2_field ?>.focus();
+document.forms[0].<?php echo $attr2_field ?>.select();
+// -->
+</script>
+<?php unset($attr2) ?><?php unset($attr2_field) ?><?php $attr0 = array() ?>
<!-- $Id$ -->
<?php if ($showDuration) { ?>
@@ -220,4 +300,4 @@ document.forms[0].<?php echo $attr_field ?>.select();
<?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/template/src.tpl.php b/themes/default/pages/html/template/src.tpl.php
@@ -1,51 +1,71 @@
-<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<?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 $cms_title ?></title>
- <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
+ <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 (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<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>>
+<body class="<?php echo $attr1_class ?>">
-
-<?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('action'=>'','subaction'=>'','id'=>'','name'=>'','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?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();
+<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?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 $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
+?><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_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('title'=>'','name'=>'TEMPLATE_SOURCE','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='TEMPLATE_SOURCE' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php
+?><?php unset($attr2) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php $attr3 = array('name'=>'TEMPLATE_SOURCE','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_name='TEMPLATE_SOURCE' ?><?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(',',$attr3_widths);
+ unset($attr3['widths']);
+ }
+ if (!empty($attr3_rowclasses))
+ {
+ $row_classes = explode(',',$attr3_rowclasses);
+ $row_class_idx = 999;
+ unset($attr3['rowclasses']);
+ }
+ if (!empty($attr3_columnclasses))
{
- $column_widths = explode(',',$attr_widths);
- unset($attr['widths']);
+ $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 ( !empty($attr3_icon) )
+ echo '<img src="'.$image_dir.'icon_'.$attr3_icon.IMG_ICON_EXT.'" align="left" border="0">';
+ if ( !is_array($path) )
+ $path = array();
foreach( $path as $pathElement)
{
extract($pathElement);
@@ -54,7 +74,13 @@
}
echo '<span class="title">'.lang($windowTitle).'</span>';
?>
- </th>
+ </td><td class="menu" style="align:right;">
+ <?php if (isset($windowIcons)) foreach( $windowIcons as $icon )
+ {
+ ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.lang($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a> <?php
+ }
+ ?>
+ </td>
</tr>
<tr><td class="subaction">
<?php foreach( $windowMenu as $menu )
@@ -90,53 +116,73 @@
<tr>
<td>
- <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_name) ?><?php unset($attr_icon) ?><?php unset($attr_widths) ?><?php unset($attr_width) ?><?php $attr = array() ?><?php
- global $fx;
- if ( $fx =='f1')
- $fx='f2';
- else $fx='f1';
-
+ <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr3) ?><?php unset($attr3_name) ?><?php unset($attr3_width) ?><?php unset($attr3_rowclasses) ?><?php unset($attr3_columnclasses) ?><?php $attr4 = array() ?><?php
+ $row_class_idx++;
+ if ($row_class_idx > count($row_classes))
+ $row_class_idx=1;
+ $row_class=$row_classes[$row_class_idx-1];
+
+ if (empty($attr4_class))
+ $attr4_class=$row_class;
+
global $cell_column_nr;
$cell_column_nr=0;
+
+ $column_class_idx = 999;
-?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='' ?><?php $attr_colspan='' ?><?php
- global $fx;
- if (!isset($attr_class)) $attr_class='';
- if ($attr_class=='fx') $attr['class']=$fx;
+?><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($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 $attr6 = array('name'=>'src','rows'=>'25','cols'=>'80') ?><?php $attr6_name='src' ?><?php $attr6_rows='25' ?><?php $attr6_cols='80' ?><textarea class="<?php echo $attr6_class ?>" name="<?php echo $attr6_name ?>" rows="<?php echo $attr6_rows ?>" cols="<?php echo $attr6_cols ?>"><?php echo htmlentities(isset($$attr6_name)?$$attr6_name:$attr6_default) ?></textarea><?php unset($attr6) ?><?php unset($attr6_name) ?><?php unset($attr6_rows) ?><?php unset($attr6_cols) ?><?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($attr4_class))
+ $attr4_class=$row_class;
-?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('name'=>'src','rows'=>'25','cols'=>'80','value'=>'','index'=>'','onchange'=>'','prefix'=>'','class'=>'','default'=>'') ?><?php $attr_name='src' ?><?php $attr_rows='25' ?><?php $attr_cols='80' ?><?php $attr_value='' ?><?php $attr_index='' ?><?php $attr_onchange='' ?><?php $attr_prefix='' ?><?php $attr_class='' ?><?php $attr_default='' ?><textarea name="<?php echo $attr_name ?>" rows="<?php echo $attr_rows ?>" cols="<?php echo $attr_cols ?>"><?php echo htmlentities(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_rows) ?><?php unset($attr_cols) ?><?php unset($attr_value) ?><?php unset($attr_index) ?><?php unset($attr_onchange) ?><?php unset($attr_prefix) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php
- global $fx;
- if ( $fx =='f1')
- $fx='f2';
- else $fx='f1';
-
global $cell_column_nr;
$cell_column_nr=0;
+
+ $column_class_idx = 999;
-?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'act','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='act' ?><?php $attr_colspan='' ?><?php
- global $fx;
- if (!isset($attr_class)) $attr_class='';
- if ($attr_class=='fx') $attr['class']=$fx;
+?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'act') ?><?php $attr5_class='act' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('type'=>'ok') ?><?php $attr_type='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 $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 $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>
@@ -150,11 +196,16 @@
<?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($attr) ?><?php $attr = array('field'=>'src') ?><?php $attr_field='src' ?><script name="JavaScript" type="text/javascript"><!--
-document.forms[0].<?php echo $attr_field ?>.focus();
-document.forms[0].<?php echo $attr_field ?>.select();
-//--></script>
-<?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?>
+<?php unset($attr2) ?><?php $attr1 = array() ?></form>
+
+<?php unset($attr1) ?><?php $attr2 = array('field'=>'src') ?><?php $attr2_field='src' ?>
+<script name="JavaScript" type="text/javascript">
+<!--
+document.forms[0].<?php echo $attr2_field ?>.focus();
+document.forms[0].<?php echo $attr2_field ?>.select();
+// -->
+</script>
+<?php unset($attr2) ?><?php unset($attr2_field) ?><?php $attr0 = array() ?>
<!-- $Id$ -->
<?php if ($showDuration) { ?>
@@ -165,4 +216,4 @@ document.forms[0].<?php echo $attr_field ?>.select();
<?php } ?>
</body>
-</html><?php unset($attr) ?>-
\ No newline at end of file
+</html><?php unset($attr0) ?>+
\ No newline at end of file