commit 82326661fd6f23db8fa75dd860904fa7a3f0b28a
parent 6256cd1a4beaa430ec9150a79ca712666cd84180
Author: dankert <devnull@localhost>
Date: Fri, 4 Aug 2006 22:38:28 +0200
CSS-Klassen pro Zeile schon in Tabelle/Fenster festlegen.
Diffstat:
6 files changed, 35 insertions(+), 25 deletions(-)
diff --git a/themes/default/include/elements.ini.php b/themes/default/include/elements.ini.php
@@ -32,8 +32,8 @@ row =
selectbox=list:*,name:*,default,onchange,title,class
listbox =list:*,name:*,default,onchange,title,class
set = var:*,value:*
-table = class,width:100%,space:0px,padding:0px,widths
+table = class,width:100%,space:0px,padding:0px,widths,classes:oddCOMMAeven
text = title,class,var,text,textvar,raw,maxlength
upload = name:*,class:upload
user = user
-window = title,name,icon,widths,width:93%-
\ No newline at end of file
+window = title,name,icon,widths,width:93%,classes:oddCOMMAeven+
\ No newline at end of file
diff --git a/themes/default/include/html/cell.inc.php b/themes/default/include/html/cell.inc.php
@@ -1,7 +1,6 @@
<?php
- global $fx;
- if (!isset($attr_class)) $attr_class='';
- if ($attr_class=='fx') $attr['class']=$fx;
+ if (empty($attr_class))
+ $attr['class']=$row_class;
global $cell_column_nr;
$cell_column_nr++;
diff --git a/themes/default/include/html/row.inc.php b/themes/default/include/html/row.inc.php
@@ -1,9 +1,9 @@
<?php
- global $fx;
- if ( $fx =='f1')
- $fx='f2';
- else $fx='f1';
-
+ $row_class_idx++;
+ if ($row_class_idx > count($row_classes))
+ $row_class_idx=1;
+ $row_class=$row_classes[$row_class_idx-1];
+
global $cell_column_nr;
$cell_column_nr=0;
diff --git a/themes/default/include/html/table.inc.php b/themes/default/include/html/table.inc.php
@@ -5,4 +5,10 @@
$column_widths = explode(',',$attr_widths);
unset($attr['widths']);
}
+ if (!empty($attr_classes))
+ {
+ $row_classes = explode(',',$attr_classes);
+ $row_class_idx = 999;
+ unset($attr['classes']);
+ }
?><table class="<?php echo $attr_class ?>" cellspacing="<?php echo $attr_space ?>" width="<?php echo $attr_width ?>" cellpadding="<?php echo $attr_padding ?>">
\ No newline at end of file
diff --git a/themes/default/include/html/window.inc.php b/themes/default/include/html/window.inc.php
@@ -5,6 +5,12 @@
$column_widths = explode(',',$attr_widths);
unset($attr['widths']);
}
+ if (!empty($attr_classes))
+ {
+ $row_classes = explode(',',$attr_classes);
+ $row_class_idx = 999;
+ unset($attr['classes']);
+ }
global $image_dir;
echo '<br/><br/><br/><center>';
echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_width.'">';
diff --git a/themes/default/templates/file/prop.tpl.src.php b/themes/default/templates/file/prop.tpl.src.php
@@ -1,27 +1,26 @@
page
-
form
- window icon:folder widths:50%,50%
+ window icon:folder widths:50%,50% classes:f1,f2
row
- cell class:fx
+ cell
text text:global_name
- cell class:fx
- input name:name size:50
+ cell
+ input name:name size:50 class:name
row
- cell class:fx
+ cell
text text:global_filename
- cell class:fx
- input name:filename
+ cell
+ input name:filename class:filename
row
- cell class:fx
+ cell
text text:file_extension
- cell class:fx
- input name:extension size:10
+ cell
+ input name:extension size:10 class:extension
row
- cell class:fx
+ cell
text text:global_description
- cell class:fx
- inputarea name:description
+ cell
+ inputarea name:description class:description
row
cell colspan:2
button type:ok