Changeset 254


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
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/css/admin.inc.css

    r106 r254  
    3434
    3535.help,
     36.sc-help,
    3637.commandtext { font-size: 70%; }
    3738
     
    172173td {
    173174    vertical-align: top;
    174     padding: 8px 6px 0 0;
     175/* 
     176    padding: 8px 6px 0 0;
     177    Why was this here? ///
     178*/
    175179}
    176180
     
    193197    border-bottom: 1px dotted #000;
    194198}
     199
     200table.list tr:hover {
     201    background: #FAF8C7;
     202}
     203
    195204
    196205/* BEAU: The old stuff that was here...
  • trunk/css/utilities.inc.css

    r168 r254  
    4040.sc-padright { padding: 0 10px 0 0; }
    4141.sc-right { text-align: right; }
     42.sc-normal { font-weight: normal; }
    4243
    4344/* .sc-pkg class wraps enclosing block element around inner floated elements */
  • 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
  • trunk/services/logs.php

    r247 r254  
    4343    'log_file' => $app->getParam('log_filename')
    4444));
    45 $tmp_prefs->set('log_file', getFormData('log'));
     45if (getFormData('log', false)) {
     46    $tmp_prefs->set('log_file', getFormData('log'));   
     47}
    4648
    4749// Titles and navigation header.
     
    230232    $app =& App::getInstance();
    231233
     234    $log = array();
     235
    232236    if (!is_file($app->getParam('log_directory') . '/' . $log_file)) {
    233237        $app->raiseMsg(sprintf(_("Log file %s not found."), $log_file), MSG_WARNING, __FILE__, __LINE__);
    234238        $app->logMsg(sprintf('Log file %s not found.', $app->getParam('log_directory') . '/' . $log_file), LOG_WARNING, __FILE__, __LINE__);
    235         return false;
     239        return $log;
    236240    }
    237241    $log = file($app->getParam('log_directory') . '/' . $log_file);
     
    244248        }
    245249    }
    246     return array_values($log);
     250    $log = array_values($log);
     251    return $log;
    247252}
    248253
     
    266271    if (is_array($list) && !empty($list)) {
    267272        sort($list);
    268         return $list;
    269     } else {
    270         return false;
    271     }
     273    }
     274    return $list;
    272275}
    273276
  • trunk/services/templates/versions_view.ihtml

    r136 r254  
    11<div id="commandbox">
     2<span class="sc-nowrap commandtext"><a href="<?php echo $app->ohref(oTxt($_SERVER['PHP_SELF'])); ?>"><?php echo _("Back to the Versions List"); ?></a></span>
    23<?php if (!getFormData('current', false)) { ?>
    34    <span class="sc-nowrap commandtext"><a href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . '?op=restore', array('version_id', 'version_title')); ?>"><?php echo _("Restore this saved version"); ?></a></span>
    4 <?php } else { ?>
    5     <span class="sc-nowrap commandtext">&nbsp;</span>
    65<?php } ?>
    76</div>
Note: See TracChangeset for help on using the changeset viewer.