function format_header($col, &$def) { global $SORTCOL; global $SORTDIR; global $MY_GET_NO_SORT; $text = _col($col); if (isset($def['sort'])) { if ($SORTCOL == $col) { if ($SORTDIR) { echo "<a class=\"col_sort_down\"\n href=\"{$MY_GET_NO_SORT}&sort={$col}&order=0\">{$text}</a>"; } else { echo "<a class=\"col_sort_up\"\n href=\"{$MY_GET_NO_SORT}&sort={$col}&order=1\">{$text}</a>"; } } else { echo "<a class=\"col_no_sort\"\n href=\"{$MY_GET_NO_SORT}&sort={$col}&order=0\">{$text}</a>"; } } else { echo "<span class=\"col_no_sort\">{$text}</span>"; } if (isset($def['key']) && !empty($def['key'])) { echo ' <span class="sub">(' . $def['key'] . ')</span>'; } }
id="<?php echo "defaultcols_{$col}"; ?> " value="1" style="vertical-align: middle;" <?php echo $display ? 'checked' : ''; ?> /> <label for="<?php echo "defaultcols_{$col}"; ?> " style="vertical-align: middle;"><?php echo _col($col); ?> </label><br /> <?php } ?> </td> </tr> <tr> <th> <?php echo ucfirst(_('historydisplay')); ?> </th> <td>