Changeset 291 for trunk/includes/global_function.php
- Timestamp:
- Dec 27, 2009, 7:12:44 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/global_function.php
r290 r291 92 92 $OrderArrowImage = array('sort_asc.png', 'sort_desc.png'); 93 93 94 function GetOrderTableHeader($Columns, $DefaultColumn )94 function GetOrderTableHeader($Columns, $DefaultColumn, $DefaultOrder = 0) 95 95 { 96 96 global $OrderDirSQL, $OrderArrowImage, $Config; … … 99 99 if(array_key_exists('OrderDir', $_GET)) $_SESSION['OrderDir'] = $_GET['OrderDir']; 100 100 if(!array_key_exists('OrderCol', $_SESSION)) $_SESSION['OrderCol'] = $DefaultColumn; 101 if(!array_key_exists('OrderDir', $_SESSION)) $_SESSION['OrderDir'] = 0;101 if(!array_key_exists('OrderDir', $_SESSION)) $_SESSION['OrderDir'] = $DefaultOrder; 102 102 103 103 // Check OrderCol
Note:
See TracChangeset
for help on using the changeset viewer.