Changeset 554 for trunk/includes/global.php
- Timestamp:
- Jul 29, 2013, 9:25:33 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/global.php
r552 r554 232 232 233 233 if(array_key_exists('OrderCol', $_GET)) $_SESSION['OrderCol'] = $_GET['OrderCol']; 234 if(array_key_exists('OrderDir', $_GET)) $_SESSION['OrderDir'] = $_GET['OrderDir']; 234 if(array_key_exists('OrderDir', $_GET) and (array_key_exists($_GET['OrderDir'], $OrderArrowImage))) 235 $_SESSION['OrderDir'] = $_GET['OrderDir']; 235 236 if(!array_key_exists('OrderCol', $_SESSION)) $_SESSION['OrderCol'] = $DefaultColumn; 236 if(!array_key_exists('OrderDir', $_SESSION)) $_SESSION['OrderDir'] = $DefaultOrder; 237 if(!array_key_exists('OrderDir', $_SESSION)) $_SESSION['OrderDir'] = $DefaultOrder; 237 238 238 239 // Check OrderCol … … 260 261 $QueryItems['OrderCol'] = $Column['Name']; 261 262 $QueryItems['OrderDir'] = 1 - $_SESSION['OrderDir']; 262 if($Column['Name'] == $_SESSION['OrderCol']) $ArrowImage = '<img style="vertical-align: middle; border: 0px;" src="'.$System->Link('/images/'.$OrderArrowImage[$_SESSION['OrderDir']]).'" alt="order arrow">'; 263 if($Column['Name'] == $_SESSION['OrderCol']) $ArrowImage = '<img style="vertical-align: middle; border: 0px;" src="'. 264 $System->Link('/images/'.$OrderArrowImage[$_SESSION['OrderDir']]).'" alt="order arrow">'; 263 265 else $ArrowImage = ''; 264 266 if($Column['Name'] == '') $Result .= '<th>'.$Column['Title'].'</th>';
Note:
See TracChangeset
for help on using the changeset viewer.