openrat-cms

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

commit efbd68f856792ea55cae8bb4e76800151641dbad
parent eab2c36650aeb01a78547b865bc2ac55a279c713
Author: dankert <devnull@localhost>
Date:   Thu, 15 Jun 2006 20:52:26 +0200

Ge?nderte, bzw. hinzugef?gte Seite

Diffstat:
themes/default/pages/html/background/show.tpl.php | 2+-
themes/default/pages/html/border/show.tpl.php | 4++--
themes/default/pages/html/element/properties.tpl.php | 365++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------
themes/default/pages/html/file/extract.tpl.php | 146+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/file/uncompress.tpl.php | 227+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/folder/edit.tpl.php | 616+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/folder/select.tpl.php | 303++++++++++++++++++++++---------------------------------------------------------
themes/default/pages/html/folder/show.tpl.php | 4++--
themes/default/pages/html/link/edit.tpl.php | 292+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/page/changetemplateselectelements.tpl.php | 218+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/pageelement/editdate.tpl.php | 467+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/pageelement/editdatecalendar.tpl.php | 512+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/pageelement/editdateform.tpl.php | 728+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/pageelement/editlink.tpl.php | 479+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/pageelement/editlist.tpl.php | 479+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/pageelement/edittext.tpl.php | 515+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/project/maintenance.tpl.php | 119+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/title/show.tpl.php | 2+-
themes/default/pages/html/tree/show.tpl.php | 4++--
19 files changed, 5216 insertions(+), 266 deletions(-)

diff --git a/themes/default/pages/html/background/show.tpl.php b/themes/default/pages/html/background/show.tpl.php @@ -1,4 +1,4 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'background') ?><?php $attr_class='background' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <!-- $Id$ --> <head> diff --git a/themes/default/pages/html/border/show.tpl.php b/themes/default/pages/html/border/show.tpl.php @@ -1,4 +1,4 @@ -<?php $attr = array('class'=>'css_body_class') ?><?php $attr_class='css_body_class' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'border') ?><?php $attr_class='border' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <!-- $Id$ --> <head> @@ -12,7 +12,7 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_class ?>"> <?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array() ?> diff --git a/themes/default/pages/html/element/properties.tpl.php b/themes/default/pages/html/element/properties.tpl.php @@ -1,4 +1,4 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main') ?><?php $attr_class='main' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <!-- $Id$ --> <head> @@ -12,7 +12,7 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_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 @@ -121,7 +121,7 @@ $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer + // Vergleich auf Vorhandensein elseif ( !empty($attr_present) ) { if ( !isset($$attr_present) ) @@ -133,7 +133,22 @@ elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); } else { @@ -245,7 +260,7 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer + // Vergleich auf Vorhandensein elseif ( !empty($attr_present) ) { if ( !isset($$attr_present) ) @@ -257,7 +272,22 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); } else { @@ -357,7 +387,7 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer + // Vergleich auf Vorhandensein elseif ( !empty($attr_present) ) { if ( !isset($$attr_present) ) @@ -369,7 +399,22 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); } else { @@ -469,7 +514,7 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer + // Vergleich auf Vorhandensein elseif ( !empty($attr_present) ) { if ( !isset($$attr_present) ) @@ -481,7 +526,22 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); } else { @@ -581,7 +641,7 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer + // Vergleich auf Vorhandensein elseif ( !empty($attr_present) ) { if ( !isset($$attr_present) ) @@ -593,7 +653,22 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); } else { @@ -693,7 +768,7 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer + // Vergleich auf Vorhandensein elseif ( !empty($attr_present) ) { if ( !isset($$attr_present) ) @@ -705,7 +780,22 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); } else { @@ -805,7 +895,7 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer + // Vergleich auf Vorhandensein elseif ( !empty($attr_present) ) { if ( !isset($$attr_present) ) @@ -817,7 +907,22 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); } else { @@ -929,7 +1034,7 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer + // Vergleich auf Vorhandensein elseif ( !empty($attr_present) ) { if ( !isset($$attr_present) ) @@ -941,7 +1046,22 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); } else { @@ -1041,7 +1161,7 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer + // Vergleich auf Vorhandensein elseif ( !empty($attr_present) ) { if ( !isset($$attr_present) ) @@ -1053,7 +1173,22 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); } else { @@ -1153,7 +1288,7 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer + // Vergleich auf Vorhandensein elseif ( !empty($attr_present) ) { if ( !isset($$attr_present) ) @@ -1165,7 +1300,22 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); } else { @@ -1265,7 +1415,7 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer + // Vergleich auf Vorhandensein elseif ( !empty($attr_present) ) { if ( !isset($$attr_present) ) @@ -1277,7 +1427,22 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); } else { @@ -1377,7 +1542,7 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer + // Vergleich auf Vorhandensein elseif ( !empty($attr_present) ) { if ( !isset($$attr_present) ) @@ -1389,7 +1554,22 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); } else { @@ -1489,7 +1669,7 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer + // Vergleich auf Vorhandensein elseif ( !empty($attr_present) ) { if ( !isset($$attr_present) ) @@ -1501,7 +1681,22 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); } else { @@ -1601,7 +1796,7 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer + // Vergleich auf Vorhandensein elseif ( !empty($attr_present) ) { if ( !isset($$attr_present) ) @@ -1613,7 +1808,22 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); } else { @@ -1713,7 +1923,7 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer + // Vergleich auf Vorhandensein elseif ( !empty($attr_present) ) { if ( !isset($$attr_present) ) @@ -1725,7 +1935,22 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); } else { @@ -1996,7 +2221,7 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer + // Vergleich auf Vorhandensein elseif ( !empty($attr_present) ) { if ( !isset($$attr_present) ) @@ -2008,7 +2233,22 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); } else { @@ -2108,7 +2348,7 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer + // Vergleich auf Vorhandensein elseif ( !empty($attr_present) ) { if ( !isset($$attr_present) ) @@ -2120,7 +2360,22 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); } else { @@ -2232,7 +2487,7 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer + // Vergleich auf Vorhandensein elseif ( !empty($attr_present) ) { if ( !isset($$attr_present) ) @@ -2244,7 +2499,22 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); } else { @@ -2356,7 +2626,7 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer + // Vergleich auf Vorhandensein elseif ( !empty($attr_present) ) { if ( !isset($$attr_present) ) @@ -2368,7 +2638,22 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); } else { diff --git a/themes/default/pages/html/file/extract.tpl.php b/themes/default/pages/html/file/extract.tpl.php @@ -0,0 +1,145 @@ +<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!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" /> + <meta name="MSSmartTagsPreventParsing" content="true" /> + <meta name="robots" content="noindex,nofollow" /> + <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.'"' ?>> + + +<?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('action'=>'file','subaction'=>'doextract','id'=>'','name'=>'','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_action='file' ?><?php $attr_subaction='doextract' ?><?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(); + +?><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 + 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'=>'asdfdfs','name'=>'asdf','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='asdfdfs' ?><?php $attr_name='asdf' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php + $coloumn_widths=array(); + if (!empty($attr_widths)) + { + $column_widths = explode(',',$attr_widths); + unset($attr['widths']); + } + global $image_dir; + echo '<br/><br/><br/><center>'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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">'; + foreach( $path as $pathElement) + { + extract($pathElement); + echo '<a href="'.$url.'" class="path">'.lang($name).'</a>'; + echo '&nbsp;&raquo;&nbsp;'; + } + echo '<span class="title">'.lang($windowTitle).'</span>'; + ?> + </th> + </tr> + <tr><td class="subaction"> + <?php foreach( $windowMenu as $menu ) + { + ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a>&nbsp;&nbsp;&nbsp;<?php + } + if ($conf['help']['enabled'] ) + { + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('GLOBAL_HELP') ?>" class="menu">?</a><?php + } + ?></td> + </tr> + +<?php if (isset($notices) && count($notices)>0 ) + { ?> + + <tr> + <td><table> + + <?php foreach( $notices as $notice ) { ?> + + <td><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> + <td class="f1"><?php if ($notice['name']!='') { ?><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?>: <?php } ?><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?></td> + </tr> + <?php } ?> + + </table></td> + </tr> + +<?php } ?> + + + + <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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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') + { + $attr_type = 'submit'; + $attr_class = 'ok'; + $attr_text = 'BUTTON_OK'; + $attr_value = 'ok'; + } +?><input type="<?php echo $attr_type ?>" name="<?php echo $attr_value ?>" class="<?php echo $attr_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?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> + </td> + </tr> +</table> + +</center> + +<?php if ($showDuration) + { ?> +<br/> +<small>&nbsp; +<?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() ?> +<!-- $Id$ --> + +<?php if ($showDuration) { ?> +<br/> +<small>&nbsp; +<?php $dur = time()-START_TIME; +// echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> +<?php } ?> + +</body> +</html><?php unset($attr) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/file/uncompress.tpl.php b/themes/default/pages/html/file/uncompress.tpl.php @@ -0,0 +1,226 @@ +<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!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" /> + <meta name="MSSmartTagsPreventParsing" content="true" /> + <meta name="robots" content="noindex,nofollow" /> + <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.'"' ?>> + + +<?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('action'=>'file','subaction'=>'douncompress','id'=>'','name'=>'','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_action='file' ?><?php $attr_subaction='douncompress' ?><?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(); + +?><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 + 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'=>'asdfdfs','name'=>'asdf','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='asdfdfs' ?><?php $attr_name='asdf' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php + $coloumn_widths=array(); + if (!empty($attr_widths)) + { + $column_widths = explode(',',$attr_widths); + unset($attr['widths']); + } + global $image_dir; + echo '<br/><br/><br/><center>'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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">'; + foreach( $path as $pathElement) + { + extract($pathElement); + echo '<a href="'.$url.'" class="path">'.lang($name).'</a>'; + echo '&nbsp;&raquo;&nbsp;'; + } + echo '<span class="title">'.lang($windowTitle).'</span>'; + ?> + </th> + </tr> + <tr><td class="subaction"> + <?php foreach( $windowMenu as $menu ) + { + ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a>&nbsp;&nbsp;&nbsp;<?php + } + if ($conf['help']['enabled'] ) + { + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('GLOBAL_HELP') ?>" class="menu">?</a><?php + } + ?></td> + </tr> + +<?php if (isset($notices) && count($notices)>0 ) + { ?> + + <tr> + <td><table> + + <?php foreach( $notices as $notice ) { ?> + + <td><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> + <td class="f1"><?php if ($notice['name']!='') { ?><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?>: <?php } ?><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?></td> + </tr> + <?php } ?> + + </table></td> + </tr> + +<?php } ?> + + + + <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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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() ?></td><?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; + + 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]; + +?><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'=>'field','value'=>'replace') ?><?php $attr_var='field' ?><?php $attr_value='replace' ?><?php $$attr_var = $attr_value ?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php $attr = array('readonly'=>'','name'=>'field','value'=>'true','default'=>'','prefix'=>'','suffix'=>'') ?><?php $attr_readonly='' ?><?php $attr_name='field' ?><?php $attr_value='true' ?><?php $attr_default='' ?><?php $attr_prefix='' ?><?php $attr_suffix='' ?><?php +?><input type="radio" name="<?php echo $attr_prefix.$attr_name ?>"<?php if ( $attr_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $$attr_value ?>" <?php if( $attr_default ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php unset($attr_default) ?><?php unset($attr_prefix) ?><?php unset($attr_suffix) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'replace','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='replace' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?><br/><?php unset($attr) ?><?php $attr = array('readonly'=>'','name'=>'field','value'=>'false','default'=>'','prefix'=>'','suffix'=>'') ?><?php $attr_readonly='' ?><?php $attr_name='field' ?><?php $attr_value='false' ?><?php $attr_default='' ?><?php $attr_prefix='' ?><?php $attr_suffix='' ?><?php +?><input type="radio" name="<?php echo $attr_prefix.$attr_name ?>"<?php if ( $attr_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $$attr_value ?>" <?php if( $attr_default ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php unset($attr_default) ?><?php unset($attr_prefix) ?><?php unset($attr_suffix) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'createnew','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='createnew' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 + global $fx; + if ( $fx =='f1') + $fx='f2'; + else $fx='f1'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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') + { + $attr_type = 'submit'; + $attr_class = 'ok'; + $attr_text = 'BUTTON_OK'; + $attr_value = 'ok'; + } +?><input type="<?php echo $attr_type ?>" name="<?php echo $attr_value ?>" class="<?php echo $attr_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?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> + </td> + </tr> +</table> + +</center> + +<?php if ($showDuration) + { ?> +<br/> +<small>&nbsp; +<?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() ?> +<!-- $Id$ --> + +<?php if ($showDuration) { ?> +<br/> +<small>&nbsp; +<?php $dur = time()-START_TIME; +// echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> +<?php } ?> + +</body> +</html><?php unset($attr) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/folder/edit.tpl.php b/themes/default/pages/html/folder/edit.tpl.php @@ -0,0 +1,615 @@ +<?php $attr = array('class'=>'main') ?><?php $attr_class='main' ?><!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" /> + <meta name="MSSmartTagsPreventParsing" content="true" /> + <meta name="robots" content="noindex,nofollow" /> + <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> +<?php if($stylesheet!='default') { ?> + <link rel="stylesheet" type="text/css" href="<?php echo $stylesheet ?>" /> +<?php } ?> +</head> + +<body class="<?php echo $attr_class ?>"> + + +<?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('action'=>'folder','subaction'=>'multiple','id'=>'','name'=>'','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_action='folder' ?><?php $attr_subaction='multiple' ?><?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(); + +?><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 + 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('name'=>'ids','default'=>'') ?><?php $attr_name='ids' ?><?php $attr_default='' ?><input type="hidden" name="<?php echo $attr_name ?>" value="<?php echo isset($$attr_name)?$$attr_name:$attr_default ?>" /><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_default) ?><?php $attr = array('name'=>'type','default'=>'') ?><?php $attr_name='type' ?><?php $attr_default='' ?><input type="hidden" name="<?php echo $attr_name ?>" value="<?php echo isset($$attr_name)?$$attr_name:$attr_default ?>" /><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_default) ?><?php $attr = array('title'=>'titelso','name'=>'bla','icon'=>'','widths'=>'5%,75%','width'=>'85%') ?><?php $attr_title='titelso' ?><?php $attr_name='bla' ?><?php $attr_icon='' ?><?php $attr_widths='5%,75%' ?><?php $attr_width='85%' ?><?php + $coloumn_widths=array(); + if (!empty($attr_widths)) + { + $column_widths = explode(',',$attr_widths); + unset($attr['widths']); + } + global $image_dir; + echo '<br/><br/><br/><center>'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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">'; + foreach( $path as $pathElement) + { + extract($pathElement); + echo '<a href="'.$url.'" class="path">'.lang($name).'</a>'; + echo '&nbsp;&raquo;&nbsp;'; + } + echo '<span class="title">'.lang($windowTitle).'</span>'; + ?> + </th> + </tr> + <tr><td class="subaction"> + <?php foreach( $windowMenu as $menu ) + { + ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a>&nbsp;&nbsp;&nbsp;<?php + } + if ($conf['help']['enabled'] ) + { + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('GLOBAL_HELP') ?>" class="menu">?</a><?php + } + ?></td> + </tr> + +<?php if (isset($notices) && count($notices)>0 ) + { ?> + + <tr> + <td><table> + + <?php foreach( $notices as $notice ) { ?> + + <td><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> + <td class="f1"><?php if ($notice['name']!='') { ?><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?>: <?php } ?><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?></td> + </tr> + <?php } ?> + + </table></td> + </tr> + +<?php } ?> + + + + <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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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'=>'','raw'=>'_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'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; + + 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]; + +?><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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('list'=>'objectlist','extract'=>'true','key'=>'list_key','value'=>'list_value') ?><?php $attr_list='objectlist' ?><?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'); + + + foreach( $$attr_list as $$list_tmp_key => $$list_tmp_value ) + { + if ( $list_extract ) + { + if ( !is_array($$list_tmp_value) ) + { + print_r($$list_tmp_value); + die( 'not an array at key: '.$$list_tmp_key ); + } + extract($$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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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('file'=>'','url'=>'','align'=>'left','type'=>'icon','elementtype'=>'') ?><?php $attr_file='' ?><?php $attr_url='' ?><?php $attr_align='left' ?><?php $attr_type='icon' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('title'=>'','class'=>'','var'=>'','text'=>'','raw'=>'_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'','present'=>'folder','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='folder' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + + // Wahr-Vergleich + if ( !empty($attr_true) ) + $exec = $$attr_true == true; + + // Falsch-Vergleich + elseif ( !empty($attr_false) ) + $exec = $$attr_false != true; + + // Inhalt-Vergleich mit Wertliste + elseif( !empty($attr_contains) ) + $exec = in_array($$attr_var,explode(',',$attr_contains)); + + // Inhalt-Vergleich + elseif( !empty($attr_var) ) + $exec = $$attr_var == $attr_value; + + // Vergleich auf leer + elseif ( !empty($attr_empty) ) + { + if ( !isset($$attr_empty) ) + $exec = true; + elseif ( is_array($$attr_empty) ) + $exec = (count($$attr_empty)==0); + elseif ( is_bool($$attr_empty) ) + $exec = true; + else + $exec = empty( $$attr_empty ); + } + + // Vergleich auf Vorhandensein + elseif ( !empty($attr_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 = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); + } + else + { + die("error in IF"); + } + + // Ergebnis umdrehen + if ( !empty($attr_invert) ) + $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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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('list'=>'folder','name'=>'targetobjectid','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='folder' ?><?php $attr_name='targetobjectid' ?><?php $attr_default='' ?><?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"' +?>><?php + foreach( $$attr_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 ' 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 + } +?><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'ask_filename','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='ask_filename' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + + // Wahr-Vergleich + if ( !empty($attr_true) ) + $exec = $$attr_true == true; + + // Falsch-Vergleich + elseif ( !empty($attr_false) ) + $exec = $$attr_false != true; + + // Inhalt-Vergleich mit Wertliste + elseif( !empty($attr_contains) ) + $exec = in_array($$attr_var,explode(',',$attr_contains)); + + // Inhalt-Vergleich + elseif( !empty($attr_var) ) + $exec = $$attr_var == $attr_value; + + // Vergleich auf leer + elseif ( !empty($attr_empty) ) + { + if ( !isset($$attr_empty) ) + $exec = true; + elseif ( is_array($$attr_empty) ) + $exec = (count($$attr_empty)==0); + elseif ( is_bool($$attr_empty) ) + $exec = true; + else + $exec = empty( $$attr_empty ); + } + + // Vergleich auf Vorhandensein + elseif ( !empty($attr_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 = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); + } + else + { + die("error in IF"); + } + + // Ergebnis umdrehen + if ( !empty($attr_invert) ) + $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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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'=>'filename','prefix'=>'','value'=>'','size'=>'40','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='filename' ?><?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 + } +?><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'ask_commit','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='ask_commit' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + + // Wahr-Vergleich + if ( !empty($attr_true) ) + $exec = $$attr_true == true; + + // Falsch-Vergleich + elseif ( !empty($attr_false) ) + $exec = $$attr_false != true; + + // Inhalt-Vergleich mit Wertliste + elseif( !empty($attr_contains) ) + $exec = in_array($$attr_var,explode(',',$attr_contains)); + + // Inhalt-Vergleich + elseif( !empty($attr_var) ) + $exec = $$attr_var == $attr_value; + + // Vergleich auf leer + elseif ( !empty($attr_empty) ) + { + if ( !isset($$attr_empty) ) + $exec = true; + elseif ( is_array($$attr_empty) ) + $exec = (count($$attr_empty)==0); + elseif ( is_bool($$attr_empty) ) + $exec = true; + else + $exec = empty( $$attr_empty ); + } + + // Vergleich auf Vorhandensein + elseif ( !empty($attr_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 = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); + } + else + { + die("error in IF"); + } + + // Ergebnis umdrehen + if ( !empty($attr_invert) ) + $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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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('default'=>'false','readonly'=>'false','name'=>'commit') ?><?php $attr_default='false' ?><?php $attr_readonly='false' ?><?php $attr_name='commit' ?><?php + $attr_name = !empty($$attr_name)?$$attr_name:$attr_name; + $attr_readonly = ( $attr_readonly == 'true' ); + $attr_default = ( $attr_default == 'true' ); + + if ( isset($$attr_name) ) + $checked = isset($$$attr_name)&& $$$attr_name==true; + else + $checked = $attr_default; +?><input type="checkbox" name="<?php echo $attr_name ?>" <?php if ($attr_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php + } +?><?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; + +?><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; + + 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]; + +?><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') + { + $attr_type = 'submit'; + $attr_class = 'ok'; + $attr_text = 'BUTTON_OK'; + $attr_value = 'ok'; + } +?><input type="<?php echo $attr_type ?>" name="<?php echo $attr_value ?>" class="<?php echo $attr_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?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> + </td> + </tr> +</table> + +</center> + +<?php if ($showDuration) + { ?> +<br/> +<small>&nbsp; +<?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() ?><?php unset($attr) ?><?php $attr = array() ?> +<!-- $Id$ --> + +<?php if ($showDuration) { ?> +<br/> +<small>&nbsp; +<?php $dur = time()-START_TIME; +// echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> +<?php } ?> + +</body> +</html><?php unset($attr) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/folder/select.tpl.php b/themes/default/pages/html/folder/select.tpl.php @@ -1,4 +1,4 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main') ?><?php $attr_class='main' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <!-- $Id$ --> <head> @@ -12,10 +12,10 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_class ?>"> -<?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('action'=>'folder','subaction'=>'multiple','id'=>'','name'=>'','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_action='folder' ?><?php $attr_subaction='multiple' ?><?php $attr_id='' ?><?php $attr_name='' ?><?php $attr_target='_self' ?><?php $attr_method='post' ?><?php $attr_enctype='application/x-www-form-urlencoded' ?><?php +<?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('action'=>'folder','subaction'=>'edit','id'=>'','name'=>'','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_action='folder' ?><?php $attr_subaction='edit' ?><?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)) @@ -286,7 +286,7 @@ $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer + // Vergleich auf Vorhandensein elseif ( !empty($attr_present) ) { if ( !isset($$attr_present) ) @@ -298,7 +298,22 @@ elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); } else { @@ -311,7 +326,16 @@ 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('default'=>'false','var'=>'','readonly'=>'false','name'=>'id','prefix'=>'obj') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='id' ?><?php $attr_prefix='obj' ?><input type="checkbox" name="<?php echo !empty($$attr_var)?$attr_prefix.$$attr_var:$attr_name ?>" <?php if ($attr_readonly=='true') echo ' disabled="disabled"' ?> value="1" <?php if( ($attr_default=='true')||(isset($$attr_name)&&$$attr_name) ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_var) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_prefix) ?><?php $attr = array() ?><?php +?><?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('default'=>'false','readonly'=>'false','name'=>'id') ?><?php $attr_default='false' ?><?php $attr_readonly='false' ?><?php $attr_name='id' ?><?php + $attr_name = !empty($$attr_name)?$$attr_name:$attr_name; + $attr_readonly = ( $attr_readonly == 'true' ); + $attr_default = ( $attr_default == 'true' ); + + if ( isset($$attr_name) ) + $checked = isset($$$attr_name)&& $$$attr_name==true; + else + $checked = $attr_default; +?><input type="checkbox" name="<?php echo $attr_name ?>" <?php if ($attr_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php $attr = array() ?><?php } ?><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'','contains'=>'','true'=>'','false'=>'writable') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='writable' ?><?php @@ -344,7 +368,7 @@ $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer + // Vergleich auf Vorhandensein elseif ( !empty($attr_present) ) { if ( !isset($$attr_present) ) @@ -356,7 +380,22 @@ elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); } else { @@ -509,211 +548,24 @@ if (!empty($attr_elementtype)) { if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) $attr['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('readonly'=>'','name'=>'type','value'=>'move','default'=>'','prefix'=>'','suffix'=>'') ?><?php $attr_readonly='' ?><?php $attr_name='type' ?><?php $attr_value='move' ?><?php $attr_default='' ?><?php $attr_prefix='' ?><?php $attr_suffix='' ?><?php -?><input type="radio" name="<?php echo $attr_prefix.$attr_name ?>"<?php if ( $attr_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $$attr_value ?>" <?php if( $attr_default ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php unset($attr_default) ?><?php unset($attr_prefix) ?><?php unset($attr_suffix) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'','raw'=>'_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?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)) - { - //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = lang($tmpArray[$attr_text]); - } - elseif (!empty($attr_text)) - $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('_','&nbsp;',$attr_raw); - else echo 'text error'; - - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_MOVE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_MOVE' ?><?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)) - { - //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = lang($tmpArray[$attr_text]); - } - elseif (!empty($attr_text)) - $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('_','&nbsp;',$attr_raw); - else echo 'text error'; - - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?><br/><?php unset($attr) ?><?php $attr = array('readonly'=>'','name'=>'type','value'=>'copy','default'=>'','prefix'=>'','suffix'=>'') ?><?php $attr_readonly='' ?><?php $attr_name='type' ?><?php $attr_value='copy' ?><?php $attr_default='' ?><?php $attr_prefix='' ?><?php $attr_suffix='' ?><?php -?><input type="radio" name="<?php echo $attr_prefix.$attr_name ?>"<?php if ( $attr_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $$attr_value ?>" <?php if( $attr_default ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php unset($attr_default) ?><?php unset($attr_prefix) ?><?php unset($attr_suffix) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'','raw'=>'_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?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)) - { - //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = lang($tmpArray[$attr_text]); - } - elseif (!empty($attr_text)) - $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('_','&nbsp;',$attr_raw); - else echo 'text error'; - - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_COPY','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_COPY' ?><?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)) - { - //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = lang($tmpArray[$attr_text]); - } - elseif (!empty($attr_text)) - $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('_','&nbsp;',$attr_raw); - else echo 'text error'; - - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?><br/><?php unset($attr) ?><?php $attr = array('readonly'=>'','name'=>'type','value'=>'link','default'=>'','prefix'=>'','suffix'=>'') ?><?php $attr_readonly='' ?><?php $attr_name='type' ?><?php $attr_value='link' ?><?php $attr_default='' ?><?php $attr_prefix='' ?><?php $attr_suffix='' ?><?php -?><input type="radio" name="<?php echo $attr_prefix.$attr_name ?>"<?php if ( $attr_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $$attr_value ?>" <?php if( $attr_default ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php unset($attr_default) ?><?php unset($attr_prefix) ?><?php unset($attr_suffix) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'','raw'=>'_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?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)) - { - //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = lang($tmpArray[$attr_text]); - } - elseif (!empty($attr_text)) - $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('_','&nbsp;',$attr_raw); - else echo 'text error'; - - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_LINK','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_LINK' ?><?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)) - { - //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = lang($tmpArray[$attr_text]); - } - elseif (!empty($attr_text)) - $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('_','&nbsp;',$attr_raw); - else echo 'text error'; - - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?><br/><?php unset($attr) ?><?php $attr = array('readonly'=>'','name'=>'type','value'=>'archive','default'=>'','prefix'=>'','suffix'=>'') ?><?php $attr_readonly='' ?><?php $attr_name='type' ?><?php $attr_value='archive' ?><?php $attr_default='' ?><?php $attr_prefix='' ?><?php $attr_suffix='' ?><?php -?><input type="radio" name="<?php echo $attr_prefix.$attr_name ?>"<?php if ( $attr_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $$attr_value ?>" <?php if( $attr_default ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php unset($attr_default) ?><?php unset($attr_prefix) ?><?php unset($attr_suffix) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'','raw'=>'_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?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)) - { - //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = lang($tmpArray[$attr_text]); - } - elseif (!empty($attr_text)) - $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('_','&nbsp;',$attr_raw); - else echo 'text error'; +?><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('list'=>'actionlist','extract'=>'true','key'=>'list_key','value'=>'list_value') ?><?php $attr_list='actionlist' ?><?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'); + - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_ARCHIVE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_ARCHIVE' ?><?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)) + foreach( $$attr_list as $$list_tmp_key => $$list_tmp_value ) { - //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = lang($tmpArray[$attr_text]); - } - elseif (!empty($attr_text)) - $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('_','&nbsp;',$attr_raw); - else echo 'text error'; - - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?><br/><?php unset($attr) ?><?php $attr = array('readonly'=>'','name'=>'type','value'=>'delete','default'=>'','prefix'=>'','suffix'=>'') ?><?php $attr_readonly='' ?><?php $attr_name='type' ?><?php $attr_value='delete' ?><?php $attr_default='' ?><?php $attr_prefix='' ?><?php $attr_suffix='' ?><?php + if ( $list_extract ) + { + if ( !is_array($$list_tmp_value) ) + { + print_r($$list_tmp_value); + die( 'not an array at key: '.$$list_tmp_key ); + } + extract($$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('readonly'=>'','name'=>'type','value'=>'type','default'=>'','prefix'=>'','suffix'=>'') ?><?php $attr_readonly='' ?><?php $attr_name='type' ?><?php $attr_value='type' ?><?php $attr_default='' ?><?php $attr_prefix='' ?><?php $attr_suffix='' ?><?php ?><input type="radio" name="<?php echo $attr_prefix.$attr_name ?>"<?php if ( $attr_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $$attr_value ?>" <?php if( $attr_default ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php unset($attr_default) ?><?php unset($attr_prefix) ?><?php unset($attr_suffix) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'','raw'=>'_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?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 @@ -739,7 +591,7 @@ if (!empty($attr_elementtype)) { $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_DELETE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_DELETE' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php +?></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('title'=>'','class'=>'','var'=>'type','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='type' ?><?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)) @@ -764,7 +616,7 @@ if (!empty($attr_elementtype)) { $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?><br/><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php +?></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() ?><br/><?php unset($attr) ?><?php $attr = array() ?><?php } ?><?php unset($attr) ?><?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'; @@ -822,7 +674,7 @@ if (!empty($attr_elementtype)) { $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer + // Vergleich auf Vorhandensein elseif ( !empty($attr_present) ) { if ( !isset($$attr_present) ) @@ -834,7 +686,22 @@ if (!empty($attr_elementtype)) { elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); } else { @@ -911,19 +778,19 @@ if (!empty($attr_elementtype)) { <!-- function mark() { -<?php foreach( $object as $id=>$z ) { ?> +<?php foreach( array_keys($object) as $id ) { ?> document.forms[0].obj<?php echo $id ?>.checked=true; <?php } ?> } function unmark() { -<?php foreach( $object as $id=>$z ) { ?> +<?php foreach( array_keys($object) as $id ) { ?> document.forms[0].obj<?php echo $id ?>.checked=false; <?php } ?> } function flip() { -<?php foreach( $object as $id=>$z ) { ?> +<?php foreach( array_keys($object) as $id ) { ?> if (document.forms[0].obj<?php echo $id ?>.checked==false) document.forms[0].obj<?php echo $id ?>.checked=true; else document.forms[0].obj<?php echo $id ?>.checked=false; diff --git a/themes/default/pages/html/folder/show.tpl.php b/themes/default/pages/html/folder/show.tpl.php @@ -1,4 +1,4 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main') ?><?php $attr_class='main' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <!-- $Id$ --> <head> @@ -12,7 +12,7 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_class ?>"> <?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('title'=>'','name'=>'','icon'=>'','widths'=>'75%,25%','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='' ?><?php $attr_icon='' ?><?php $attr_widths='75%,25%' ?><?php $attr_width='85%' ?><?php diff --git a/themes/default/pages/html/link/edit.tpl.php b/themes/default/pages/html/link/edit.tpl.php @@ -0,0 +1,291 @@ +<?php $attr = array('class'=>'main') ?><?php $attr_class='main' ?><!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" /> + <meta name="MSSmartTagsPreventParsing" content="true" /> + <meta name="robots" content="noindex,nofollow" /> + <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> +<?php if($stylesheet!='default') { ?> + <link rel="stylesheet" type="text/css" href="<?php echo $stylesheet ?>" /> +<?php } ?> +</head> + +<body class="<?php echo $attr_class ?>"> + + +<?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(); + +?><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 + 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'=>'global_link','name'=>'GLOBAL_PROP','icon'=>'link','widths'=>'40%,60%','width'=>'90%') ?><?php $attr_title='global_link' ?><?php $attr_name='GLOBAL_PROP' ?><?php $attr_icon='link' ?><?php $attr_widths='40%,60%' ?><?php $attr_width='90%' ?><?php + $coloumn_widths=array(); + if (!empty($attr_widths)) + { + $column_widths = explode(',',$attr_widths); + unset($attr['widths']); + } + global $image_dir; + echo '<br/><br/><br/><center>'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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">'; + foreach( $path as $pathElement) + { + extract($pathElement); + echo '<a href="'.$url.'" class="path">'.lang($name).'</a>'; + echo '&nbsp;&raquo;&nbsp;'; + } + echo '<span class="title">'.lang($windowTitle).'</span>'; + ?> + </th> + </tr> + <tr><td class="subaction"> + <?php foreach( $windowMenu as $menu ) + { + ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a>&nbsp;&nbsp;&nbsp;<?php + } + if ($conf['help']['enabled'] ) + { + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('GLOBAL_HELP') ?>" class="menu">?</a><?php + } + ?></td> + </tr> + +<?php if (isset($notices) && count($notices)>0 ) + { ?> + + <tr> + <td><table> + + <?php foreach( $notices as $notice ) { ?> + + <td><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> + <td class="f1"><?php if ($notice['name']!='') { ?><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?>: <?php } ?><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?></td> + </tr> + <?php } ?> + + </table></td> + </tr> + +<?php } ?> + + + + <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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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('readonly'=>'','name'=>'type','value'=>'url','default'=>'','prefix'=>'','suffix'=>'') ?><?php $attr_readonly='' ?><?php $attr_name='type' ?><?php $attr_value='url' ?><?php $attr_default='' ?><?php $attr_prefix='' ?><?php $attr_suffix='' ?><?php +?><input type="radio" name="<?php echo $attr_prefix.$attr_name ?>"<?php if ( $attr_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $attr_value ?>" <?php if( $attr_value == $$attr_name ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php unset($attr_default) ?><?php unset($attr_prefix) ?><?php unset($attr_suffix) ?><?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; + + 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]; + +?><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'=>'link_url','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='link_url' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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; + + 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]; + +?><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'=>'url','prefix'=>'','value'=>'','size'=>'40','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='url' ?><?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; + +?><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; + + 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]; + +?><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('readonly'=>'','name'=>'type','value'=>'link','default'=>'','prefix'=>'','suffix'=>'') ?><?php $attr_readonly='' ?><?php $attr_name='type' ?><?php $attr_value='link' ?><?php $attr_default='' ?><?php $attr_prefix='' ?><?php $attr_suffix='' ?><?php +?><input type="radio" name="<?php echo $attr_prefix.$attr_name ?>"<?php if ( $attr_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $attr_value ?>" <?php if( $attr_value == $$attr_name ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php unset($attr_default) ?><?php unset($attr_prefix) ?><?php unset($attr_suffix) ?><?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; + + 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]; + +?><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'=>'link_target','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='link_target' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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; + + 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]; + +?><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('list'=>'objects','name'=>'targetobjectid','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='objects' ?><?php $attr_name='targetobjectid' ?><?php $attr_default='' ?><?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"' +?>><?php + foreach( $$attr_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 ' 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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'act','colspan'=>'3') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='act' ?><?php $attr_colspan='3' ?><?php + global $fx; + if (!isset($attr_class)) $attr_class=''; + if ($attr_class=='fx') $attr['class']=$fx; + + 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]; + +?><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') + { + $attr_type = 'submit'; + $attr_class = 'ok'; + $attr_text = 'BUTTON_OK'; + $attr_value = 'ok'; + } +?><input type="<?php echo $attr_type ?>" name="<?php echo $attr_value ?>" class="<?php echo $attr_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?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> + </td> + </tr> +</table> + +</center> + +<?php if ($showDuration) + { ?> +<br/> +<small>&nbsp; +<?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() ?> +<!-- $Id$ --> + +<?php if ($showDuration) { ?> +<br/> +<small>&nbsp; +<?php $dur = time()-START_TIME; +// echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> +<?php } ?> + +</body> +</html><?php unset($attr) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/page/changetemplateselectelements.tpl.php b/themes/default/pages/html/page/changetemplateselectelements.tpl.php @@ -0,0 +1,217 @@ +<?php $attr = array('class'=>'main') ?><?php $attr_class='main' ?><!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" /> + <meta name="MSSmartTagsPreventParsing" content="true" /> + <meta name="robots" content="noindex,nofollow" /> + <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> +<?php if($stylesheet!='default') { ?> + <link rel="stylesheet" type="text/css" href="<?php echo $stylesheet ?>" /> +<?php } ?> +</head> + +<body class="<?php echo $attr_class ?>"> + + +<?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(); + +?><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 + 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('name'=>'newTemplateId','default'=>'newTemplateId') ?><?php $attr_name='newTemplateId' ?><?php $attr_default='newTemplateId' ?><input type="hidden" name="<?php echo $attr_name ?>" value="<?php echo isset($$attr_name)?$$attr_name:$attr_default ?>" /><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_default) ?><?php $attr = array('title'=>'','name'=>'','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php + $coloumn_widths=array(); + if (!empty($attr_widths)) + { + $column_widths = explode(',',$attr_widths); + unset($attr['widths']); + } + global $image_dir; + echo '<br/><br/><br/><center>'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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">'; + foreach( $path as $pathElement) + { + extract($pathElement); + echo '<a href="'.$url.'" class="path">'.lang($name).'</a>'; + echo '&nbsp;&raquo;&nbsp;'; + } + echo '<span class="title">'.lang($windowTitle).'</span>'; + ?> + </th> + </tr> + <tr><td class="subaction"> + <?php foreach( $windowMenu as $menu ) + { + ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a>&nbsp;&nbsp;&nbsp;<?php + } + if ($conf['help']['enabled'] ) + { + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('GLOBAL_HELP') ?>" class="menu">?</a><?php + } + ?></td> + </tr> + +<?php if (isset($notices) && count($notices)>0 ) + { ?> + + <tr> + <td><table> + + <?php foreach( $notices as $notice ) { ?> + + <td><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> + <td class="f1"><?php if ($notice['name']!='') { ?><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?>: <?php } ?><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?></td> + </tr> + <?php } ?> + + </table></td> + </tr> + +<?php } ?> + + + + <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'=>'oldTemplateElements','extract'=>'false','key'=>'oldId','value'=>'oldName') ?><?php $attr_list='oldTemplateElements' ?><?php $attr_extract='false' ?><?php $attr_key='oldId' ?><?php $attr_value='oldName' ?><?php + $list_tmp_key = $attr_key; + $list_tmp_value = $attr_value; + $list_extract = ($attr_extract=='true'); + + + foreach( $$attr_list as $$list_tmp_key => $$list_tmp_value ) + { + if ( $list_extract ) + { + if ( !is_array($$list_tmp_value) ) + { + print_r($$list_tmp_value); + die( 'not an array at key: '.$$list_tmp_key ); + } + extract($$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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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'=>'oldName','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='oldName' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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; + + 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]; + +?><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 $listName = 'newTemplateElementsOf'.$oldId; echo Html::selectBox('from'.$oldId,$$listName) ?> +<?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php } ?><?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; + +?><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; + + 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]; + +?><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') + { + $attr_type = 'submit'; + $attr_class = 'ok'; + $attr_text = 'BUTTON_OK'; + $attr_value = 'ok'; + } +?><input type="<?php echo $attr_type ?>" name="<?php echo $attr_value ?>" class="<?php echo $attr_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?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> + </td> + </tr> +</table> + +</center> + +<?php if ($showDuration) + { ?> +<br/> +<small>&nbsp; +<?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() ?> +<!-- $Id$ --> + +<?php if ($showDuration) { ?> +<br/> +<small>&nbsp; +<?php $dur = time()-START_TIME; +// echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> +<?php } ?> + +</body> +</html><?php unset($attr) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/pageelement/editdate.tpl.php b/themes/default/pages/html/pageelement/editdate.tpl.php @@ -0,0 +1,466 @@ +<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!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" /> + <meta name="MSSmartTagsPreventParsing" content="true" /> + <meta name="robots" content="noindex,nofollow" /> + <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.'"' ?>> + + +<?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(); + +?><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 + 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'=>'element','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='element' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php + $coloumn_widths=array(); + if (!empty($attr_widths)) + { + $column_widths = explode(',',$attr_widths); + unset($attr['widths']); + } + global $image_dir; + echo '<br/><br/><br/><center>'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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">'; + foreach( $path as $pathElement) + { + extract($pathElement); + echo '<a href="'.$url.'" class="path">'.lang($name).'</a>'; + echo '&nbsp;&raquo;&nbsp;'; + } + echo '<span class="title">'.lang($windowTitle).'</span>'; + ?> + </th> + </tr> + <tr><td class="subaction"> + <?php foreach( $windowMenu as $menu ) + { + ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a>&nbsp;&nbsp;&nbsp;<?php + } + if ($conf['help']['enabled'] ) + { + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('GLOBAL_HELP') ?>" class="menu">?</a><?php + } + ?></td> + </tr> + +<?php if (isset($notices) && count($notices)>0 ) + { ?> + + <tr> + <td><table> + + <?php foreach( $notices as $notice ) { ?> + + <td><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> + <td class="f1"><?php if ($notice['name']!='') { ?><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?>: <?php } ?><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?></td> + </tr> + <?php } ?> + + </table></td> + </tr> + +<?php } ?> + + + + <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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'help','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?php + global $fx; + if (!isset($attr_class)) $attr_class=''; + if ($attr_class=='fx') $attr['class']=$fx; + + 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]; + +?><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'=>'desc','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='desc' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 + global $fx; + if ( $fx =='f1') + $fx='f2'; + else $fx='f1'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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'=>'ansidate','default'=>'','type'=>'text','index'=>'','name'=>'ansidate','prefix'=>'','value'=>'','size'=>'25','maxlength'=>'25','onchange'=>'') ?><?php $attr_class='ansidate' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='ansidate' ?><?php $attr_prefix='' ?><?php $attr_value='' ?><?php $attr_size='25' ?><?php $attr_maxlength='25' ?><?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('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'release','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='release' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + + // Wahr-Vergleich + if ( !empty($attr_true) ) + $exec = $$attr_true == true; + + // Falsch-Vergleich + elseif ( !empty($attr_false) ) + $exec = $$attr_false != true; + + // Inhalt-Vergleich mit Wertliste + elseif( !empty($attr_contains) ) + $exec = in_array($$attr_var,explode(',',$attr_contains)); + + // Inhalt-Vergleich + elseif( !empty($attr_var) ) + $exec = $$attr_var == $attr_value; + + // Vergleich auf leer + elseif ( !empty($attr_empty) ) + { + if ( !isset($$attr_empty) ) + $exec = true; + elseif ( is_array($$attr_empty) ) + $exec = (count($$attr_empty)==0); + elseif ( is_bool($$attr_empty) ) + $exec = true; + else + $exec = empty( $$attr_empty ); + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_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 ); + } + else + { + die("error in IF"); + } + + // Ergebnis umdrehen + if ( !empty($attr_invert) ) + $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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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('default'=>'false','var'=>'','readonly'=>'false','name'=>'release','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='release' ?><?php $attr_prefix='' ?><input type="checkbox" name="<?php echo !empty($$attr_var)?$attr_prefix.$$attr_var:$attr_name ?>" <?php if ($attr_readonly=='true') echo ' disabled="disabled"' ?> value="1" <?php if( ($attr_default=='true')||(isset($$attr_name)&&$$attr_name) ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_var) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_prefix) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'','raw'=>'_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_RELEASE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_RELEASE' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'','present'=>'publish','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='publish' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + + // Wahr-Vergleich + if ( !empty($attr_true) ) + $exec = $$attr_true == true; + + // Falsch-Vergleich + elseif ( !empty($attr_false) ) + $exec = $$attr_false != true; + + // Inhalt-Vergleich mit Wertliste + elseif( !empty($attr_contains) ) + $exec = in_array($$attr_var,explode(',',$attr_contains)); + + // Inhalt-Vergleich + elseif( !empty($attr_var) ) + $exec = $$attr_var == $attr_value; + + // Vergleich auf leer + elseif ( !empty($attr_empty) ) + { + if ( !isset($$attr_empty) ) + $exec = true; + elseif ( is_array($$attr_empty) ) + $exec = (count($$attr_empty)==0); + elseif ( is_bool($$attr_empty) ) + $exec = true; + else + $exec = empty( $$attr_empty ); + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_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 ); + } + else + { + die("error in IF"); + } + + // Ergebnis umdrehen + if ( !empty($attr_invert) ) + $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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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('default'=>'false','var'=>'','readonly'=>'false','name'=>'publish','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='publish' ?><?php $attr_prefix='' ?><input type="checkbox" name="<?php echo !empty($$attr_var)?$attr_prefix.$$attr_var:$attr_name ?>" <?php if ($attr_readonly=='true') echo ' disabled="disabled"' ?> value="1" <?php if( ($attr_default=='true')||(isset($$attr_name)&&$$attr_name) ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_var) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_prefix) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'','raw'=>'_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('title'=>'','class'=>'','var'=>'','text'=>'PAGE_PUBLISH_AFTER_SAVE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='PAGE_PUBLISH_AFTER_SAVE' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?><?php + global $fx; + if ( $fx =='f1') + $fx='f2'; + else $fx='f1'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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') + { + $attr_type = 'submit'; + $attr_class = 'ok'; + $attr_text = 'BUTTON_OK'; + $attr_value = 'ok'; + } +?><input type="<?php echo $attr_type ?>" name="<?php echo $attr_value ?>" class="<?php echo $attr_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?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> + </td> + </tr> +</table> + +</center> + +<?php if ($showDuration) + { ?> +<br/> +<small>&nbsp; +<?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'=>'text') ?><?php $attr_field='text' ?><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() ?> +<!-- $Id$ --> + +<?php if ($showDuration) { ?> +<br/> +<small>&nbsp; +<?php $dur = time()-START_TIME; +// echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> +<?php } ?> + +</body> +</html><?php unset($attr) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/pageelement/editdatecalendar.tpl.php b/themes/default/pages/html/pageelement/editdatecalendar.tpl.php @@ -0,0 +1,511 @@ +<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!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" /> + <meta name="MSSmartTagsPreventParsing" content="true" /> + <meta name="robots" content="noindex,nofollow" /> + <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.'"' ?>> + + +<?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(); + +?><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 + 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'=>'element','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='element' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php + $coloumn_widths=array(); + if (!empty($attr_widths)) + { + $column_widths = explode(',',$attr_widths); + unset($attr['widths']); + } + global $image_dir; + echo '<br/><br/><br/><center>'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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">'; + foreach( $path as $pathElement) + { + extract($pathElement); + echo '<a href="'.$url.'" class="path">'.lang($name).'</a>'; + echo '&nbsp;&raquo;&nbsp;'; + } + echo '<span class="title">'.lang($windowTitle).'</span>'; + ?> + </th> + </tr> + <tr><td class="subaction"> + <?php foreach( $windowMenu as $menu ) + { + ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a>&nbsp;&nbsp;&nbsp;<?php + } + if ($conf['help']['enabled'] ) + { + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('GLOBAL_HELP') ?>" class="menu">?</a><?php + } + ?></td> + </tr> + +<?php if (isset($notices) && count($notices)>0 ) + { ?> + + <tr> + <td><table> + + <?php foreach( $notices as $notice ) { ?> + + <td><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> + <td class="f1"><?php if ($notice['name']!='') { ?><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?>: <?php } ?><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?></td> + </tr> + <?php } ?> + + </table></td> + </tr> + +<?php } ?> + + + + <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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'help','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?php + global $fx; + if (!isset($attr_class)) $attr_class=''; + if ($attr_class=='fx') $attr['class']=$fx; + + 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]; + +?><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'=>'desc','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='desc' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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) ?><tr> +<th colspan="7"><?php echo $name ?> (<?php echo $title ?>)</th> +</tr> +<?php +echo '<tr>'; +for ( $wday=0; $wday<=6; $wday++ ) +{ +echo '<td class="help">'.lang('DATE_WEEKDAY'.$wday).'</th>'; +} +echo '</tr>'; +$d = 0; +$begin = false; +do +{ +echo '<tr>'; +for ( $wday=0; $wday<=6; $wday++ ) +{ +if (!$begin) +{ +if ($wday == $first_weekday) +{ +$begin = true; +} +} +if ($begin && $d < $days ) +{ +echo '<td class="f1">'; +$d++; +if ($d == $day) +echo "<strong>$d</strong>"; +else echo '<a href="'.Html::url('pageelement','edit','-',array('year'=>$year,'month'=>$month,'day'=>$d,'hour'=>$hour,'minute'=>$minute,'second'=>$second)).'">'.$d.'</a>'; +echo '</td>'; +} +else echo '<td></td'; +} +echo '</tr>'; +} +while( $d < $days-1 ) +?> +<tr> +<?php +$lastyear = $year-1; +echo '<td colspan="3"><a href="'.Html::url('pageelement','edit','-',array('year'=>$lastyear,'month'=>$month,'day'=>$day,'hour'=>$hour,'minute'=>$minute,'second'=>$second)).'">'.lang('DATE_LAST_YEAR').'</a>&nbsp;&laquo;&nbsp;'; +$lastyear = $year; +$lastmonth = $month - 1; +if ( $lastmonth == 0 ) +{ +$lastyear--; +$lastmonth = 12; +} +echo '&nbsp;&nbsp;<a href="'.Html::url('pageelement','edit','-',array('year'=>$lastyear,'month'=>$lastmonth,'day'=>$day,'hour'=>$hour,'minute'=>$minute,'second'=>$second)).'">'.lang('DATE_LAST_MONTH').'</a>&nbsp;&laquo;&nbsp;</td>'; +echo '<td style="text-align:center"><a href="'.$todayurl.'">'.lang('DATE_TODAY').'</a></td>'; +$nextyear = $year; +$nextmonth = $month + 1; +if ( $nextmonth == 13 ) +{ +$nextyear++; +$nextmonth = 1; +} +echo '<td colspan="3" style="text-align:right">&raquo;&nbsp;<a href="'.Html::url('pageelement','edit','-',array('year'=>$lastyear,'month'=>$nextmonth,'day'=>$day,'hour'=>$hour,'minute'=>$minute,'second'=>$second)).'">'.lang('DATE_NEXT_MONTH').'</a>'; +$nextyear = $year+1; +echo '&nbsp;&nbsp;&raquo;&nbsp;<a href="'.Html::url('pageelement','edit','-',array('year'=>$nextyear,'month'=>$month,'day'=>$day,'hour'=>$hour,'minute'=>$minute,'second'=>$second)).'">'.lang('DATE_NEXT_YEAR').'</a></td>'; +?> +</tr> +<?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'release','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='release' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + + // Wahr-Vergleich + if ( !empty($attr_true) ) + $exec = $$attr_true == true; + + // Falsch-Vergleich + elseif ( !empty($attr_false) ) + $exec = $$attr_false != true; + + // Inhalt-Vergleich mit Wertliste + elseif( !empty($attr_contains) ) + $exec = in_array($$attr_var,explode(',',$attr_contains)); + + // Inhalt-Vergleich + elseif( !empty($attr_var) ) + $exec = $$attr_var == $attr_value; + + // Vergleich auf leer + elseif ( !empty($attr_empty) ) + { + if ( !isset($$attr_empty) ) + $exec = true; + elseif ( is_array($$attr_empty) ) + $exec = (count($$attr_empty)==0); + elseif ( is_bool($$attr_empty) ) + $exec = true; + else + $exec = empty( $$attr_empty ); + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_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 ); + } + else + { + die("error in IF"); + } + + // Ergebnis umdrehen + if ( !empty($attr_invert) ) + $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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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('default'=>'false','var'=>'','readonly'=>'false','name'=>'release','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='release' ?><?php $attr_prefix='' ?><input type="checkbox" name="<?php echo !empty($$attr_var)?$attr_prefix.$$attr_var:$attr_name ?>" <?php if ($attr_readonly=='true') echo ' disabled="disabled"' ?> value="1" <?php if( ($attr_default=='true')||(isset($$attr_name)&&$$attr_name) ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_var) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_prefix) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'','raw'=>'_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_RELEASE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_RELEASE' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'','present'=>'publish','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='publish' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + + // Wahr-Vergleich + if ( !empty($attr_true) ) + $exec = $$attr_true == true; + + // Falsch-Vergleich + elseif ( !empty($attr_false) ) + $exec = $$attr_false != true; + + // Inhalt-Vergleich mit Wertliste + elseif( !empty($attr_contains) ) + $exec = in_array($$attr_var,explode(',',$attr_contains)); + + // Inhalt-Vergleich + elseif( !empty($attr_var) ) + $exec = $$attr_var == $attr_value; + + // Vergleich auf leer + elseif ( !empty($attr_empty) ) + { + if ( !isset($$attr_empty) ) + $exec = true; + elseif ( is_array($$attr_empty) ) + $exec = (count($$attr_empty)==0); + elseif ( is_bool($$attr_empty) ) + $exec = true; + else + $exec = empty( $$attr_empty ); + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_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 ); + } + else + { + die("error in IF"); + } + + // Ergebnis umdrehen + if ( !empty($attr_invert) ) + $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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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('default'=>'false','var'=>'','readonly'=>'false','name'=>'publish','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='publish' ?><?php $attr_prefix='' ?><input type="checkbox" name="<?php echo !empty($$attr_var)?$attr_prefix.$$attr_var:$attr_name ?>" <?php if ($attr_readonly=='true') echo ' disabled="disabled"' ?> value="1" <?php if( ($attr_default=='true')||(isset($$attr_name)&&$$attr_name) ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_var) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_prefix) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'','raw'=>'_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('title'=>'','class'=>'','var'=>'','text'=>'PAGE_PUBLISH_AFTER_SAVE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='PAGE_PUBLISH_AFTER_SAVE' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?><?php + global $fx; + if ( $fx =='f1') + $fx='f2'; + else $fx='f1'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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') + { + $attr_type = 'submit'; + $attr_class = 'ok'; + $attr_text = 'BUTTON_OK'; + $attr_value = 'ok'; + } +?><input type="<?php echo $attr_type ?>" name="<?php echo $attr_value ?>" class="<?php echo $attr_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?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> + </td> + </tr> +</table> + +</center> + +<?php if ($showDuration) + { ?> +<br/> +<small>&nbsp; +<?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'=>'text') ?><?php $attr_field='text' ?><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() ?> +<!-- $Id$ --> + +<?php if ($showDuration) { ?> +<br/> +<small>&nbsp; +<?php $dur = time()-START_TIME; +// echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> +<?php } ?> + +</body> +</html><?php unset($attr) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/pageelement/editdateform.tpl.php b/themes/default/pages/html/pageelement/editdateform.tpl.php @@ -0,0 +1,727 @@ +<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!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" /> + <meta name="MSSmartTagsPreventParsing" content="true" /> + <meta name="robots" content="noindex,nofollow" /> + <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.'"' ?>> + + +<?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(); + +?><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 + 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'=>'element','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='element' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php + $coloumn_widths=array(); + if (!empty($attr_widths)) + { + $column_widths = explode(',',$attr_widths); + unset($attr['widths']); + } + global $image_dir; + echo '<br/><br/><br/><center>'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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">'; + foreach( $path as $pathElement) + { + extract($pathElement); + echo '<a href="'.$url.'" class="path">'.lang($name).'</a>'; + echo '&nbsp;&raquo;&nbsp;'; + } + echo '<span class="title">'.lang($windowTitle).'</span>'; + ?> + </th> + </tr> + <tr><td class="subaction"> + <?php foreach( $windowMenu as $menu ) + { + ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a>&nbsp;&nbsp;&nbsp;<?php + } + if ($conf['help']['enabled'] ) + { + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('GLOBAL_HELP') ?>" class="menu">?</a><?php + } + ?></td> + </tr> + +<?php if (isset($notices) && count($notices)>0 ) + { ?> + + <tr> + <td><table> + + <?php foreach( $notices as $notice ) { ?> + + <td><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> + <td class="f1"><?php if ($notice['name']!='') { ?><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?>: <?php } ?><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?></td> + </tr> + <?php } ?> + + </table></td> + </tr> + +<?php } ?> + + + + <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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'help','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?php + global $fx; + if (!isset($attr_class)) $attr_class=''; + if ($attr_class=='fx') $attr['class']=$fx; + + 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]; + +?><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'=>'desc','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='desc' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 + global $fx; + if ( $fx =='f1') + $fx='f2'; + else $fx='f1'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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'=>'date','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='date' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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; + + 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]; + +?><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('list'=>'all_years','name'=>'year','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='all_years' ?><?php $attr_name='year' ?><?php $attr_default='' ?><?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"' +?>><?php + foreach( $$attr_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 ' 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('title'=>'','class'=>'','var'=>'','text'=>'','raw'=>'_-_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('list'=>'all_months','name'=>'month','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='all_months' ?><?php $attr_name='month' ?><?php $attr_default='' ?><?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"' +?>><?php + foreach( $$attr_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 ' 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('title'=>'','class'=>'','var'=>'','text'=>'','raw'=>'_-_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('list'=>'all_days','name'=>'day','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='all_days' ?><?php $attr_name='day' ?><?php $attr_default='' ?><?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"' +?>><?php + foreach( $$attr_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 ' 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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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'=>'date_time','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='date_time' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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; + + 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]; + +?><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('list'=>'all_hours','name'=>'hour','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='all_hours' ?><?php $attr_name='hour' ?><?php $attr_default='' ?><?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"' +?>><?php + foreach( $$attr_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 ' 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('title'=>'','class'=>'','var'=>'','text'=>'','raw'=>'_:_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('list'=>'all_minutes','name'=>'minute','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='all_minutes' ?><?php $attr_name='minute' ?><?php $attr_default='' ?><?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"' +?>><?php + foreach( $$attr_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 ' 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('title'=>'','class'=>'','var'=>'','text'=>'','raw'=>'_:_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('list'=>'all_seconds','name'=>'second','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='all_seconds' ?><?php $attr_name='second' ?><?php $attr_default='' ?><?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"' +?>><?php + foreach( $$attr_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 ' 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('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'release','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='release' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + + // Wahr-Vergleich + if ( !empty($attr_true) ) + $exec = $$attr_true == true; + + // Falsch-Vergleich + elseif ( !empty($attr_false) ) + $exec = $$attr_false != true; + + // Inhalt-Vergleich mit Wertliste + elseif( !empty($attr_contains) ) + $exec = in_array($$attr_var,explode(',',$attr_contains)); + + // Inhalt-Vergleich + elseif( !empty($attr_var) ) + $exec = $$attr_var == $attr_value; + + // Vergleich auf leer + elseif ( !empty($attr_empty) ) + { + if ( !isset($$attr_empty) ) + $exec = true; + elseif ( is_array($$attr_empty) ) + $exec = (count($$attr_empty)==0); + elseif ( is_bool($$attr_empty) ) + $exec = true; + else + $exec = empty( $$attr_empty ); + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_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 ); + } + else + { + die("error in IF"); + } + + // Ergebnis umdrehen + if ( !empty($attr_invert) ) + $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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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('default'=>'false','var'=>'','readonly'=>'false','name'=>'release','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='release' ?><?php $attr_prefix='' ?><input type="checkbox" name="<?php echo !empty($$attr_var)?$attr_prefix.$$attr_var:$attr_name ?>" <?php if ($attr_readonly=='true') echo ' disabled="disabled"' ?> value="1" <?php if( ($attr_default=='true')||(isset($$attr_name)&&$$attr_name) ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_var) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_prefix) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'','raw'=>'_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_RELEASE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_RELEASE' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'','present'=>'publish','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='publish' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + + // Wahr-Vergleich + if ( !empty($attr_true) ) + $exec = $$attr_true == true; + + // Falsch-Vergleich + elseif ( !empty($attr_false) ) + $exec = $$attr_false != true; + + // Inhalt-Vergleich mit Wertliste + elseif( !empty($attr_contains) ) + $exec = in_array($$attr_var,explode(',',$attr_contains)); + + // Inhalt-Vergleich + elseif( !empty($attr_var) ) + $exec = $$attr_var == $attr_value; + + // Vergleich auf leer + elseif ( !empty($attr_empty) ) + { + if ( !isset($$attr_empty) ) + $exec = true; + elseif ( is_array($$attr_empty) ) + $exec = (count($$attr_empty)==0); + elseif ( is_bool($$attr_empty) ) + $exec = true; + else + $exec = empty( $$attr_empty ); + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_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 ); + } + else + { + die("error in IF"); + } + + // Ergebnis umdrehen + if ( !empty($attr_invert) ) + $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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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('default'=>'false','var'=>'','readonly'=>'false','name'=>'publish','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='publish' ?><?php $attr_prefix='' ?><input type="checkbox" name="<?php echo !empty($$attr_var)?$attr_prefix.$$attr_var:$attr_name ?>" <?php if ($attr_readonly=='true') echo ' disabled="disabled"' ?> value="1" <?php if( ($attr_default=='true')||(isset($$attr_name)&&$$attr_name) ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_var) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_prefix) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'','raw'=>'_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('title'=>'','class'=>'','var'=>'','text'=>'PAGE_PUBLISH_AFTER_SAVE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='PAGE_PUBLISH_AFTER_SAVE' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?><?php + global $fx; + if ( $fx =='f1') + $fx='f2'; + else $fx='f1'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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') + { + $attr_type = 'submit'; + $attr_class = 'ok'; + $attr_text = 'BUTTON_OK'; + $attr_value = 'ok'; + } +?><input type="<?php echo $attr_type ?>" name="<?php echo $attr_value ?>" class="<?php echo $attr_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?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> + </td> + </tr> +</table> + +</center> + +<?php if ($showDuration) + { ?> +<br/> +<small>&nbsp; +<?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'=>'text') ?><?php $attr_field='text' ?><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() ?> +<!-- $Id$ --> + +<?php if ($showDuration) { ?> +<br/> +<small>&nbsp; +<?php $dur = time()-START_TIME; +// echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> +<?php } ?> + +</body> +</html><?php unset($attr) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/pageelement/editlink.tpl.php b/themes/default/pages/html/pageelement/editlink.tpl.php @@ -0,0 +1,478 @@ +<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!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" /> + <meta name="MSSmartTagsPreventParsing" content="true" /> + <meta name="robots" content="noindex,nofollow" /> + <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.'"' ?>> + + +<?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(); + +?><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 + 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'=>'element','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='element' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php + $coloumn_widths=array(); + if (!empty($attr_widths)) + { + $column_widths = explode(',',$attr_widths); + unset($attr['widths']); + } + global $image_dir; + echo '<br/><br/><br/><center>'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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">'; + foreach( $path as $pathElement) + { + extract($pathElement); + echo '<a href="'.$url.'" class="path">'.lang($name).'</a>'; + echo '&nbsp;&raquo;&nbsp;'; + } + echo '<span class="title">'.lang($windowTitle).'</span>'; + ?> + </th> + </tr> + <tr><td class="subaction"> + <?php foreach( $windowMenu as $menu ) + { + ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a>&nbsp;&nbsp;&nbsp;<?php + } + if ($conf['help']['enabled'] ) + { + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('GLOBAL_HELP') ?>" class="menu">?</a><?php + } + ?></td> + </tr> + +<?php if (isset($notices) && count($notices)>0 ) + { ?> + + <tr> + <td><table> + + <?php foreach( $notices as $notice ) { ?> + + <td><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> + <td class="f1"><?php if ($notice['name']!='') { ?><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?>: <?php } ?><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?></td> + </tr> + <?php } ?> + + </table></td> + </tr> + +<?php } ?> + + + + <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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'help','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?php + global $fx; + if (!isset($attr_class)) $attr_class=''; + if ($attr_class=='fx') $attr['class']=$fx; + + 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]; + +?><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'=>'desc','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='desc' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 + global $fx; + if ( $fx =='f1') + $fx='f2'; + else $fx='f1'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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('list'=>'objects','name'=>'linkobjectid','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='objects' ?><?php $attr_name='linkobjectid' ?><?php $attr_default='' ?><?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"' +?>><?php + foreach( $$attr_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 ' 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('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'release','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='release' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + + // Wahr-Vergleich + if ( !empty($attr_true) ) + $exec = $$attr_true == true; + + // Falsch-Vergleich + elseif ( !empty($attr_false) ) + $exec = $$attr_false != true; + + // Inhalt-Vergleich mit Wertliste + elseif( !empty($attr_contains) ) + $exec = in_array($$attr_var,explode(',',$attr_contains)); + + // Inhalt-Vergleich + elseif( !empty($attr_var) ) + $exec = $$attr_var == $attr_value; + + // Vergleich auf leer + elseif ( !empty($attr_empty) ) + { + if ( !isset($$attr_empty) ) + $exec = true; + elseif ( is_array($$attr_empty) ) + $exec = (count($$attr_empty)==0); + elseif ( is_bool($$attr_empty) ) + $exec = true; + else + $exec = empty( $$attr_empty ); + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_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 ); + } + else + { + die("error in IF"); + } + + // Ergebnis umdrehen + if ( !empty($attr_invert) ) + $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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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('default'=>'false','var'=>'','readonly'=>'false','name'=>'release','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='release' ?><?php $attr_prefix='' ?><input type="checkbox" name="<?php echo !empty($$attr_var)?$attr_prefix.$$attr_var:$attr_name ?>" <?php if ($attr_readonly=='true') echo ' disabled="disabled"' ?> value="1" <?php if( ($attr_default=='true')||(isset($$attr_name)&&$$attr_name) ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_var) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_prefix) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'','raw'=>'_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_RELEASE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_RELEASE' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'','present'=>'publish','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='publish' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + + // Wahr-Vergleich + if ( !empty($attr_true) ) + $exec = $$attr_true == true; + + // Falsch-Vergleich + elseif ( !empty($attr_false) ) + $exec = $$attr_false != true; + + // Inhalt-Vergleich mit Wertliste + elseif( !empty($attr_contains) ) + $exec = in_array($$attr_var,explode(',',$attr_contains)); + + // Inhalt-Vergleich + elseif( !empty($attr_var) ) + $exec = $$attr_var == $attr_value; + + // Vergleich auf leer + elseif ( !empty($attr_empty) ) + { + if ( !isset($$attr_empty) ) + $exec = true; + elseif ( is_array($$attr_empty) ) + $exec = (count($$attr_empty)==0); + elseif ( is_bool($$attr_empty) ) + $exec = true; + else + $exec = empty( $$attr_empty ); + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_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 ); + } + else + { + die("error in IF"); + } + + // Ergebnis umdrehen + if ( !empty($attr_invert) ) + $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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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('default'=>'false','var'=>'','readonly'=>'false','name'=>'publish','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='publish' ?><?php $attr_prefix='' ?><input type="checkbox" name="<?php echo !empty($$attr_var)?$attr_prefix.$$attr_var:$attr_name ?>" <?php if ($attr_readonly=='true') echo ' disabled="disabled"' ?> value="1" <?php if( ($attr_default=='true')||(isset($$attr_name)&&$$attr_name) ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_var) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_prefix) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'','raw'=>'_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('title'=>'','class'=>'','var'=>'','text'=>'PAGE_PUBLISH_AFTER_SAVE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='PAGE_PUBLISH_AFTER_SAVE' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?><?php + global $fx; + if ( $fx =='f1') + $fx='f2'; + else $fx='f1'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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') + { + $attr_type = 'submit'; + $attr_class = 'ok'; + $attr_text = 'BUTTON_OK'; + $attr_value = 'ok'; + } +?><input type="<?php echo $attr_type ?>" name="<?php echo $attr_value ?>" class="<?php echo $attr_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?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> + </td> + </tr> +</table> + +</center> + +<?php if ($showDuration) + { ?> +<br/> +<small>&nbsp; +<?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'=>'linkobjectid') ?><?php $attr_field='linkobjectid' ?><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() ?> +<!-- $Id$ --> + +<?php if ($showDuration) { ?> +<br/> +<small>&nbsp; +<?php $dur = time()-START_TIME; +// echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> +<?php } ?> + +</body> +</html><?php unset($attr) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/pageelement/editlist.tpl.php b/themes/default/pages/html/pageelement/editlist.tpl.php @@ -0,0 +1,478 @@ +<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!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" /> + <meta name="MSSmartTagsPreventParsing" content="true" /> + <meta name="robots" content="noindex,nofollow" /> + <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.'"' ?>> + + +<?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(); + +?><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 + 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'=>'element','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='element' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php + $coloumn_widths=array(); + if (!empty($attr_widths)) + { + $column_widths = explode(',',$attr_widths); + unset($attr['widths']); + } + global $image_dir; + echo '<br/><br/><br/><center>'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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">'; + foreach( $path as $pathElement) + { + extract($pathElement); + echo '<a href="'.$url.'" class="path">'.lang($name).'</a>'; + echo '&nbsp;&raquo;&nbsp;'; + } + echo '<span class="title">'.lang($windowTitle).'</span>'; + ?> + </th> + </tr> + <tr><td class="subaction"> + <?php foreach( $windowMenu as $menu ) + { + ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a>&nbsp;&nbsp;&nbsp;<?php + } + if ($conf['help']['enabled'] ) + { + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('GLOBAL_HELP') ?>" class="menu">?</a><?php + } + ?></td> + </tr> + +<?php if (isset($notices) && count($notices)>0 ) + { ?> + + <tr> + <td><table> + + <?php foreach( $notices as $notice ) { ?> + + <td><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> + <td class="f1"><?php if ($notice['name']!='') { ?><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?>: <?php } ?><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?></td> + </tr> + <?php } ?> + + </table></td> + </tr> + +<?php } ?> + + + + <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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'help','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?php + global $fx; + if (!isset($attr_class)) $attr_class=''; + if ($attr_class=='fx') $attr['class']=$fx; + + 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]; + +?><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'=>'desc','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='desc' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 + global $fx; + if ( $fx =='f1') + $fx='f2'; + else $fx='f1'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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('list'=>'objects','name'=>'linkobjectid','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='objects' ?><?php $attr_name='linkobjectid' ?><?php $attr_default='' ?><?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"' +?>><?php + foreach( $$attr_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 ' 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('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'release','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='release' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + + // Wahr-Vergleich + if ( !empty($attr_true) ) + $exec = $$attr_true == true; + + // Falsch-Vergleich + elseif ( !empty($attr_false) ) + $exec = $$attr_false != true; + + // Inhalt-Vergleich mit Wertliste + elseif( !empty($attr_contains) ) + $exec = in_array($$attr_var,explode(',',$attr_contains)); + + // Inhalt-Vergleich + elseif( !empty($attr_var) ) + $exec = $$attr_var == $attr_value; + + // Vergleich auf leer + elseif ( !empty($attr_empty) ) + { + if ( !isset($$attr_empty) ) + $exec = true; + elseif ( is_array($$attr_empty) ) + $exec = (count($$attr_empty)==0); + elseif ( is_bool($$attr_empty) ) + $exec = true; + else + $exec = empty( $$attr_empty ); + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_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 ); + } + else + { + die("error in IF"); + } + + // Ergebnis umdrehen + if ( !empty($attr_invert) ) + $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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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('default'=>'false','var'=>'','readonly'=>'false','name'=>'release','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='release' ?><?php $attr_prefix='' ?><input type="checkbox" name="<?php echo !empty($$attr_var)?$attr_prefix.$$attr_var:$attr_name ?>" <?php if ($attr_readonly=='true') echo ' disabled="disabled"' ?> value="1" <?php if( ($attr_default=='true')||(isset($$attr_name)&&$$attr_name) ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_var) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_prefix) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'','raw'=>'_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_RELEASE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_RELEASE' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'','present'=>'publish','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='publish' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + + // Wahr-Vergleich + if ( !empty($attr_true) ) + $exec = $$attr_true == true; + + // Falsch-Vergleich + elseif ( !empty($attr_false) ) + $exec = $$attr_false != true; + + // Inhalt-Vergleich mit Wertliste + elseif( !empty($attr_contains) ) + $exec = in_array($$attr_var,explode(',',$attr_contains)); + + // Inhalt-Vergleich + elseif( !empty($attr_var) ) + $exec = $$attr_var == $attr_value; + + // Vergleich auf leer + elseif ( !empty($attr_empty) ) + { + if ( !isset($$attr_empty) ) + $exec = true; + elseif ( is_array($$attr_empty) ) + $exec = (count($$attr_empty)==0); + elseif ( is_bool($$attr_empty) ) + $exec = true; + else + $exec = empty( $$attr_empty ); + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_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 ); + } + else + { + die("error in IF"); + } + + // Ergebnis umdrehen + if ( !empty($attr_invert) ) + $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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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('default'=>'false','var'=>'','readonly'=>'false','name'=>'publish','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='publish' ?><?php $attr_prefix='' ?><input type="checkbox" name="<?php echo !empty($$attr_var)?$attr_prefix.$$attr_var:$attr_name ?>" <?php if ($attr_readonly=='true') echo ' disabled="disabled"' ?> value="1" <?php if( ($attr_default=='true')||(isset($$attr_name)&&$$attr_name) ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_var) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_prefix) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'','raw'=>'_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('title'=>'','class'=>'','var'=>'','text'=>'PAGE_PUBLISH_AFTER_SAVE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='PAGE_PUBLISH_AFTER_SAVE' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?><?php + global $fx; + if ( $fx =='f1') + $fx='f2'; + else $fx='f1'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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') + { + $attr_type = 'submit'; + $attr_class = 'ok'; + $attr_text = 'BUTTON_OK'; + $attr_value = 'ok'; + } +?><input type="<?php echo $attr_type ?>" name="<?php echo $attr_value ?>" class="<?php echo $attr_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?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> + </td> + </tr> +</table> + +</center> + +<?php if ($showDuration) + { ?> +<br/> +<small>&nbsp; +<?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'=>'linkobjectid') ?><?php $attr_field='linkobjectid' ?><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() ?> +<!-- $Id$ --> + +<?php if ($showDuration) { ?> +<br/> +<small>&nbsp; +<?php $dur = time()-START_TIME; +// echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> +<?php } ?> + +</body> +</html><?php unset($attr) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/pageelement/edittext.tpl.php b/themes/default/pages/html/pageelement/edittext.tpl.php @@ -0,0 +1,514 @@ +<?php $attr = array('class'=>'main') ?><?php $attr_class='main' ?><!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" /> + <meta name="MSSmartTagsPreventParsing" content="true" /> + <meta name="robots" content="noindex,nofollow" /> + <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> +<?php if($stylesheet!='default') { ?> + <link rel="stylesheet" type="text/css" href="<?php echo $stylesheet ?>" /> +<?php } ?> +</head> + +<body class="<?php echo $attr_class ?>"> + + +<?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(); + +?><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 + 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'=>'element','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='element' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php + $coloumn_widths=array(); + if (!empty($attr_widths)) + { + $column_widths = explode(',',$attr_widths); + unset($attr['widths']); + } + global $image_dir; + echo '<br/><br/><br/><center>'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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">'; + foreach( $path as $pathElement) + { + extract($pathElement); + echo '<a href="'.$url.'" class="path">'.lang($name).'</a>'; + echo '&nbsp;&raquo;&nbsp;'; + } + echo '<span class="title">'.lang($windowTitle).'</span>'; + ?> + </th> + </tr> + <tr><td class="subaction"> + <?php foreach( $windowMenu as $menu ) + { + ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a>&nbsp;&nbsp;&nbsp;<?php + } + if ($conf['help']['enabled'] ) + { + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('GLOBAL_HELP') ?>" class="menu">?</a><?php + } + ?></td> + </tr> + +<?php if (isset($notices) && count($notices)>0 ) + { ?> + + <tr> + <td><table> + + <?php foreach( $notices as $notice ) { ?> + + <td><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> + <td class="f1"><?php if ($notice['name']!='') { ?><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?>: <?php } ?><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?></td> + </tr> + <?php } ?> + + </table></td> + </tr> + +<?php } ?> + + + + <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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'help','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?php + global $fx; + if (!isset($attr_class)) $attr_class=''; + if ($attr_class=='fx') $attr['class']=$fx; + + 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]; + +?><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'=>'desc','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='desc' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 + global $fx; + if ( $fx =='f1') + $fx='f2'; + else $fx='f1'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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'=>'ansidate','default'=>'','type'=>'text','index'=>'','name'=>'text','prefix'=>'','value'=>'','size'=>'50','maxlength'=>'255','onchange'=>'') ?><?php $attr_class='ansidate' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='text' ?><?php $attr_prefix='' ?><?php $attr_value='' ?><?php $attr_size='50' ?><?php $attr_maxlength='255' ?><?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('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'release','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='release' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + + // Wahr-Vergleich + if ( !empty($attr_true) ) + $exec = $$attr_true == true; + + // Falsch-Vergleich + elseif ( !empty($attr_false) ) + $exec = $$attr_false != true; + + // Inhalt-Vergleich mit Wertliste + elseif( !empty($attr_contains) ) + $exec = in_array($$attr_var,explode(',',$attr_contains)); + + // Inhalt-Vergleich + elseif( !empty($attr_var) ) + $exec = $$attr_var == $attr_value; + + // Vergleich auf leer + elseif ( !empty($attr_empty) ) + { + if ( !isset($$attr_empty) ) + $exec = true; + elseif ( is_array($$attr_empty) ) + $exec = (count($$attr_empty)==0); + elseif ( is_bool($$attr_empty) ) + $exec = true; + else + $exec = empty( $$attr_empty ); + } + + // Vergleich auf Vorhandensein + elseif ( !empty($attr_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 = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); + } + else + { + die("error in IF"); + } + + // Ergebnis umdrehen + if ( !empty($attr_invert) ) + $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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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('default'=>'false','readonly'=>'false','name'=>'release') ?><?php $attr_default='false' ?><?php $attr_readonly='false' ?><?php $attr_name='release' ?><?php + $attr_name = !empty($$attr_name)?$$attr_name:$attr_name; + $attr_readonly = ( $attr_readonly == 'true' ); + $attr_default = ( $attr_default == 'true' ); + + if ( isset($$attr_name) ) + $checked = isset($$$attr_name)&& $$$attr_name==true; + else + $checked = $attr_default; +?><input type="checkbox" name="<?php echo $attr_name ?>" <?php if ($attr_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'','raw'=>'_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_RELEASE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_RELEASE' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'','present'=>'publish','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='publish' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + + // Wahr-Vergleich + if ( !empty($attr_true) ) + $exec = $$attr_true == true; + + // Falsch-Vergleich + elseif ( !empty($attr_false) ) + $exec = $$attr_false != true; + + // Inhalt-Vergleich mit Wertliste + elseif( !empty($attr_contains) ) + $exec = in_array($$attr_var,explode(',',$attr_contains)); + + // Inhalt-Vergleich + elseif( !empty($attr_var) ) + $exec = $$attr_var == $attr_value; + + // Vergleich auf leer + elseif ( !empty($attr_empty) ) + { + if ( !isset($$attr_empty) ) + $exec = true; + elseif ( is_array($$attr_empty) ) + $exec = (count($$attr_empty)==0); + elseif ( is_bool($$attr_empty) ) + $exec = true; + else + $exec = empty( $$attr_empty ); + } + + // Vergleich auf Vorhandensein + elseif ( !empty($attr_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 = true; + } + + // Vergleich auf nicht-leer + elseif ( !empty($attr_notempty) ) + { + if ( !isset($$attr_notempty) ) + $exec = false; + elseif ( is_array($$attr_notempty) ) + $exec = (count($$attr_notempty)>0); + elseif ( is_bool($$attr_notempty) ) + $exec = true; + elseif ( is_numeric($$attr_notempty) ) + $exec = $$attr_notempty>=0; + else + $exec = !empty( $$attr_notempty ); + } + else + { + die("error in IF"); + } + + // Ergebnis umdrehen + if ( !empty($attr_invert) ) + $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'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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('default'=>'false','readonly'=>'false','name'=>'publish') ?><?php $attr_default='false' ?><?php $attr_readonly='false' ?><?php $attr_name='publish' ?><?php + $attr_name = !empty($$attr_name)?$$attr_name:$attr_name; + $attr_readonly = ( $attr_readonly == 'true' ); + $attr_default = ( $attr_default == 'true' ); + + if ( isset($$attr_name) ) + $checked = isset($$$attr_name)&& $$$attr_name==true; + else + $checked = $attr_default; +?><input type="checkbox" name="<?php echo $attr_name ?>" <?php if ($attr_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'','raw'=>'_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('title'=>'','class'=>'','var'=>'','text'=>'PAGE_PUBLISH_AFTER_SAVE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='PAGE_PUBLISH_AFTER_SAVE' ?><?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)) + { + //geht nicht: + //echo $$attr_array[$attr_var].'%'; + $tmpArray = $$attr_array; + if (!empty($attr_var)) + $tmp_text = $tmpArray[$attr_var]; + else + $tmp_text = lang($tmpArray[$attr_text]); + } + elseif (!empty($attr_text)) + $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('_','&nbsp;',$attr_raw); + else echo 'text error'; + + if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?><?php + global $fx; + if ( $fx =='f1') + $fx='f2'; + else $fx='f1'; + + global $cell_column_nr; + $cell_column_nr=0; + +?><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; + + 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]; + +?><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') + { + $attr_type = 'submit'; + $attr_class = 'ok'; + $attr_text = 'BUTTON_OK'; + $attr_value = 'ok'; + } +?><input type="<?php echo $attr_type ?>" name="<?php echo $attr_value ?>" class="<?php echo $attr_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?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> + </td> + </tr> +</table> + +</center> + +<?php if ($showDuration) + { ?> +<br/> +<small>&nbsp; +<?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'=>'text') ?><?php $attr_field='text' ?><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() ?> +<!-- $Id$ --> + +<?php if ($showDuration) { ?> +<br/> +<small>&nbsp; +<?php $dur = time()-START_TIME; +// echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> +<?php } ?> + +</body> +</html><?php unset($attr) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/project/maintenance.tpl.php b/themes/default/pages/html/project/maintenance.tpl.php @@ -0,0 +1,118 @@ +<?php $attr = array('class'=>'main') ?><?php $attr_class='main' ?><!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" /> + <meta name="MSSmartTagsPreventParsing" content="true" /> + <meta name="robots" content="noindex,nofollow" /> + <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> +<?php if($stylesheet!='default') { ?> + <link rel="stylesheet" type="text/css" href="<?php echo $stylesheet ?>" /> +<?php } ?> +</head> + +<body class="<?php echo $attr_class ?>"> + + +<?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(); + +?><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 + 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_PROJECT','icon'=>'project','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='GLOBAL_PROJECT' ?><?php $attr_icon='project' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php + $coloumn_widths=array(); + if (!empty($attr_widths)) + { + $column_widths = explode(',',$attr_widths); + unset($attr['widths']); + } + global $image_dir; + echo '<br/><br/><br/><center>'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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">'; + foreach( $path as $pathElement) + { + extract($pathElement); + echo '<a href="'.$url.'" class="path">'.lang($name).'</a>'; + echo '&nbsp;&raquo;&nbsp;'; + } + echo '<span class="title">'.lang($windowTitle).'</span>'; + ?> + </th> + </tr> + <tr><td class="subaction"> + <?php foreach( $windowMenu as $menu ) + { + ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a>&nbsp;&nbsp;&nbsp;<?php + } + if ($conf['help']['enabled'] ) + { + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('GLOBAL_HELP') ?>" class="menu">?</a><?php + } + ?></td> + </tr> + +<?php if (isset($notices) && count($notices)>0 ) + { ?> + + <tr> + <td><table> + + <?php foreach( $notices as $notice ) { ?> + + <td><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> + <td class="f1"><?php if ($notice['name']!='') { ?><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?>: <?php } ?><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?></td> + </tr> + <?php } ?> + + </table></td> + </tr> + +<?php } ?> + + + + <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() ?> </table> + </td> + </tr> +</table> + +</center> + +<?php if ($showDuration) + { ?> +<br/> +<small>&nbsp; +<?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() ?> +<!-- $Id$ --> + +<?php if ($showDuration) { ?> +<br/> +<small>&nbsp; +<?php $dur = time()-START_TIME; +// echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> +<?php } ?> + +</body> +</html><?php unset($attr) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/title/show.tpl.php b/themes/default/pages/html/title/show.tpl.php @@ -1,4 +1,4 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'title') ?><?php $attr_class='title' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <!-- $Id$ --> <head> diff --git a/themes/default/pages/html/tree/show.tpl.php b/themes/default/pages/html/tree/show.tpl.php @@ -1,4 +1,4 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'tree') ?><?php $attr_class='tree' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <!-- $Id$ --> <head> @@ -12,7 +12,7 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_class ?>"> <?php unset($attr) ?><?php unset($attr_class) ?><!-- $Id$ -->