Changeset 155 for trunk/team.php
- Timestamp:
- Mar 12, 2009, 1:27:34 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/team.php
r142 r155 75 75 echo('<table class="BaseTable">'); 76 76 77 if(array_key_exists('search', $_GET)) $_SESSION['Where'] = ' WHERE `name` LIKE "%'.$_GET['search'].'%" OR `description` LIKE "%'.$_GET['search'].'%"'; 78 if(array_key_exists('Where', $_GET)) { 79 $_SESSION['Where'] = ' WHERE '.$_GET['Where']; 80 if($_GET['Where'] == '') $_SESSION['Where'] = ''; 81 } 82 else if(!array_key_exists('Where', $_SESSION)) $_SESSION['Where'] = ''; 83 84 if ($_SESSION['Where'] <> '') echo (' <a href="?Where">Zrušit filtr týmů</a><br />'); 85 86 77 87 $desc = $_SESSION['Desc']; 78 88 if($desc == '') $desc = 'DESC'; else $desc = ''; … … 91 101 echo ('</tr>'); 92 102 93 $ID = $Database->SQLCommand('SELECT *,(SELECT count(*) FROM user WHERE team = team.ID) as numberuser FROM team ORDER BY '.$_SESSION['Order'].' '.$_SESSION['Desc'].' LIMIT '.($_SESSION['Page'] - 1) * $Config['Web']['ItemsPerPage'].','.$Config['Web']['ItemsPerPage']);103 $ID = $Database->SQLCommand('SELECT *,(SELECT count(*) FROM user WHERE team = team.ID) as numberuser FROM team '.$_SESSION['Where'].' ORDER BY '.$_SESSION['Order'].' '.$_SESSION['Desc'].' LIMIT '.($_SESSION['Page'] - 1) * $Config['Web']['ItemsPerPage'].','.$Config['Web']['ItemsPerPage']); 94 104 while($Line = mysql_fetch_assoc($ID)) 95 105 {
Note:
See TracChangeset
for help on using the changeset viewer.