Ignore:
Timestamp:
Dec 7, 2005 8:51:24 AM (18 years ago)
Author:
scdev
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/TemplateGlue.inc.php

    r27 r28  
    173173        if ('allone' == $flag) {
    174174            // Print a cell with multidimentioal array checkboxes.
    175             ?><td><input type="checkbox" name="dbcol[<?php echo $db_col; ?>][<?php echo $item; ?>]"<?php echo $checked; ?> />&nbsp;<?php echo oTxt($item); ?>&nbsp;</td>
    176             <?php
    177          } else {
     175            $html_name = 'dbcol[' . $db_col . '][' . $item . ']';
     176        } else {
    178177            // Print a cell with basic named checkboxes.
    179             ?><td><input type="checkbox" name="<?php echo $db_col; ?>[<?php echo $item; ?>]"<?php echo $checked; ?> />&nbsp;<?php echo oTxt($item); ?>&nbsp;</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
    182182    }
    183183    if ($col_cnt < $columns) {
     
    250250        }
    251251        // Print a cell with basic named checkboxes.
    252         ?><td><input type="radio" name="<?php echo $db_col; ?>" value="<?php echo $item ?>"<?php echo $checked; ?> />&nbsp;<?php echo oTxt($item); ?>&nbsp;</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>
    253253        <?php
    254254    }
     
    366366    $col_cnt = 0;
    367367    ?>
    368     <table border="0" cellspacing="0" cellpadding="0" class="formcheckboxes">
     368    <table border="0" cellspacing="0" cellpadding="0">
    369369        <tr>
    370370    <?php
     
    394394       
    395395        // 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?
    398401    }
    399402   
Note: See TracChangeset for help on using the changeset viewer.