Changeset 254 for trunk/lib


Ignore:
Timestamp:
May 5, 2007 8:56:36 AM (17 years ago)
Author:
quinn
Message:

Various bug fixes to make compatible with Trendease 2.0.

  • Minor CSS admin tweaks.
  • PHP Notice warnings.
  • Minor bugs fixed.
Location:
trunk/lib
Files:
2 edited

Legend:

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

    r242 r254  
    183183        // - there isn't a default.
    184184        // - the new value is different than the default
    185         // - there is a previously existing pesistent key.
     185        // - there is a previously existing persistent key.
    186186        if (!isset($_SESSION['_prefs'][$this->_ns]['defaults'][$key]) || $_SESSION['_prefs'][$this->_ns]['defaults'][$key] != $val || isset($_SESSION['_prefs'][$this->_ns]['persistent'][$key])) {
    187187            $_SESSION['_prefs'][$this->_ns]['persistent'][$key] = $val;           
  • trunk/lib/TemplateGlue.inc.php

    r253 r254  
    422422        // Print a cell with basic named checkboxes.
    423423        $html_name = $val_column . '[' . $box[$val_column] . ']';
     424        $html_id = $val_column . '-' . $box[$val_column] . '';
    424425        ?>
    425         <td><input type="checkbox" name="<?php echo $html_name ?>" id="<?php echo $html_name ?>"<?php echo $checked; ?> /></td>
    426         <td><label for="<?php echo $html_name ?>" class="normal"><?php echo oTxt($box[$key_column]); ?></label></td>
    427         <?php /// FIXME: class=normal?
     426        <td><input type="checkbox" name="<?php echo $html_name ?>" id="<?php echo $html_id ?>"<?php echo $checked; ?> /></td>
     427        <td><label for="<?php echo $html_id ?>" class="sc-normal"><?php echo oTxt($box[$key_column]); ?></label></td>
     428        <?php
    428429    }
    429430
Note: See TracChangeset for help on using the changeset viewer.