Changeset 869 for trunk/Common/Global.php
- Timestamp:
- Apr 1, 2020, 12:43:07 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Global.php
r825 r869 212 212 global $OrderDirSQL, $OrderArrowImage, $Config, $System; 213 213 214 if(array_key_exists('ObjectName', $_GET) and ($_GET['ObjectName'] == $ObjectName)) 214 if(array_key_exists('ObjectName', $_GET) and ($_GET['ObjectName'] == $ObjectName)) 215 215 { 216 216 if(array_key_exists('OrderCol', $_GET)) $_SESSION[$ObjectName.'OrderCol'] = $_GET['OrderCol']; … … 219 219 if(!array_key_exists($ObjectName.'OrderCol', $_SESSION)) $_SESSION[$ObjectName.'OrderCol'] = $DefaultColumn; 220 220 if(!array_key_exists($ObjectName.'OrderDir', $_SESSION) ) $_SESSION[$ObjectName.'OrderDir'] = $DefaultOrder; 221 221 222 222 // Check OrderCol 223 223 $Found = false; … … 236 236 } 237 237 // Check OrderDir 238 if(($_SESSION[$ObjectName.'OrderDir'] != 0) and ($_SESSION[$ObjectName.'OrderDir'] != 1)) 238 if(($_SESSION[$ObjectName.'OrderDir'] != 0) and ($_SESSION[$ObjectName.'OrderDir'] != 1)) 239 239 $_SESSION[$ObjectName.'OrderDir'] = 0; 240 240 … … 246 246 $QueryItems['OrderCol'] = $Column['Name']; 247 247 $QueryItems['OrderDir'] = 1 - $_SESSION[$ObjectName.'OrderDir']; 248 if($Column['Name'] == $_SESSION[$ObjectName.'OrderCol']) 248 if($Column['Name'] == $_SESSION[$ObjectName.'OrderCol']) 249 249 $ArrowImage = '<img style="vertical-align: middle; border: 0px;" src="'. 250 250 $System->Link('/images/'.$OrderArrowImage[$_SESSION[$ObjectName.'OrderDir']]).'" alt="order arrow">'; … … 317 317 function RouterOSIdent($Name) 318 318 { 319 return(strtr(strtolower(trim($Name)), array(' ' => '-', '.' => '', '(' => '-', ')' => '-', 319 return(strtr(strtolower(trim($Name)), array(' ' => '-', '.' => '', '(' => '-', ')' => '-', ',' => '-', 320 320 'č' => 'c', 'š' => 's', 'ě' => 'e', 'ř' => 'r', 'ž' => 'z', 'ý' => 'y', 321 321 'á' => 'a', 'í' => 'i', 'é' => 'e', 'ů' => 'u', 'ú' => 'u', 'ď' => 'd',
Note:
See TracChangeset
for help on using the changeset viewer.