-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenuSorting.php
More file actions
29 lines (27 loc) · 846 Bytes
/
Copy pathmenuSorting.php
File metadata and controls
29 lines (27 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<ul class='menuList'>
<?php
// add sort menu
$i = 1;
foreach ($sortArr as $menuItem => $value)
{
/*if($_SESSION['sortBy'] == $value){
$html .= "<li class='selectedMenuItem'>".$menuItem."</li>";
}else{*/
echo "\n<li>". getMenuLink($menuItem, "sortForm".$i++, "sortBy", $value) ."</li>";
//}
}
?>
</ul>
<div class='menuPadding'></div>
<ul class='menuList'>
<?php
// add direction of sort menu
//if($_SESSION['sortDir'] == "ASC"){
//$html .= "<li class='selectedMenuItem'>Ascending</li>";
//}else{
echo "\n<li>". getMenuLink("Ascending", "dirFormA", "sortDir", "ASC") ."</li>";
echo "\n<li>". getMenuLink("Descending", "dirFormD", "sortDir", "DESC") ."</li>";
//$html .= "<li class='selectedMenuItem'>Descending</li>";
//}
?>
</ul>