Changeset 28 for trunk/lib/TemplateGlue.inc.php
- Timestamp:
- Dec 7, 2005 8:51:24 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/TemplateGlue.inc.php
r27 r28 173 173 if ('allone' == $flag) { 174 174 // Print a cell with multidimentioal array checkboxes. 175 ?><td><input type="checkbox" name="dbcol[<?php echo $db_col; ?>][<?php echo $item; ?>]"<?php echo $checked; ?> /> <?php echo oTxt($item); ?> </td> 176 <?php 177 } else { 175 $html_name = 'dbcol[' . $db_col . '][' . $item . ']'; 176 } else { 178 177 // Print a cell with basic named checkboxes. 179 ?><td><input type="checkbox" name="<?php echo $db_col; ?>[<?php echo $item; ?>]"<?php echo $checked; ?> /> <?php echo oTxt($item); ?> </td> 180 <?php 181 } 178 $html_name = $db_col . '[' . $item . ']'; 179 } 180 ?><td><input type="checkbox" name="<?php echo $html_name ?>" id="<?php echo $html_name ?>"<?php echo $checked; ?> /><label for="<?php echo $html_name ?>"><?php echo oTxt($item); ?></label></td> 181 <?php 182 182 } 183 183 if ($col_cnt < $columns) { … … 250 250 } 251 251 // Print a cell with basic named checkboxes. 252 ?><td><input type="radio" name="<?php echo $db_col; ?>" value="<?php echo $item ?>"<?php echo $checked; ?> /> <?php echo oTxt($item); ?> </td>252 ?><td><input type="radio" name="<?php echo $db_col; ?>" id="<?php echo $db_col; ?>" value="<?php echo $item ?>"<?php echo $checked; ?> /><label for="<?php echo $db_col ?>"><?php echo oTxt($item); ?></label></td> 253 253 <?php 254 254 } … … 366 366 $col_cnt = 0; 367 367 ?> 368 <table border="0" cellspacing="0" cellpadding="0" class="formcheckboxes">368 <table border="0" cellspacing="0" cellpadding="0"> 369 369 <tr> 370 370 <?php … … 394 394 395 395 // Print a cell with basic named checkboxes. 396 ?><td><input type="checkbox" name="<?php echo $val_column; ?>[<?php echo $box[$val_column]; ?>]"<?php echo $checked; ?> /></td><td><?php echo oTxt($box[$key_column]); ?></td> 397 <?php 396 $html_name = $val_column . '[' . $box[$val_column] . ']'; 397 ?> 398 <td><input type="checkbox" name="<?php echo $html_name ?>" id="<?php echo $html_name ?>"<?php echo $checked; ?> /></td> 399 <td><label for="<?php echo $html_name ?>" class="normal"><?php echo oTxt($box[$key_column]); ?></label></td> 400 <?php /// FIXME: class=normal? 398 401 } 399 402
Note: See TracChangeset
for help on using the changeset viewer.