Changeset 247 for trunk/userlist.php
- Timestamp:
- Jul 15, 2009, 1:36:32 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/userlist.php
r199 r247 19 19 $_SESSION['Where'] = ' WHERE `user`.`user` LIKE "%'.$_GET['search'].'%"'; 20 20 } 21 if(array_key_exists(' Where', $_GET))21 if(array_key_exists('team', $_GET)) 22 22 { 23 $_SESSION['Where'] = ' WHERE '.$_GET['Where'];24 if($_GET[' Where'] == '') $_SESSION['Where'] = '';23 $_SESSION['Where'] = ' WHERE team='.$_GET['team']; 24 if($_GET['team'] == '') $_SESSION['Where'] = ''; 25 25 } 26 26 else if(!array_key_exists('Where', $_SESSION)) $_SESSION['Where'] = ''; 27 27 28 if($_SESSION['Where'] <> '') echo(' <a href="?Where">Zrušit filtr uživatelů</a><br />'); 28 if(array_key_exists('action', $_GET)) 29 { 30 if($_GET['action'] == 'nofilter') $_SESSION['Where'] = ''; 31 } 32 //if($_SESSION['Where'] <> '') echo(' <a href="?action=nofilter">Zrušit filtr uživatelů</a><br />'); 29 33 30 34 ListPaging('?Page=', 'user', $_SESSION['Where'], $Config['Web']['ItemsPerPage'], $_SESSION['Page']); … … 49 53 if($Group['TablePrefix'] != '') 50 54 { 51 55 $Columns .= 'COALESCE(T'.$Group['Id'].'.Count, 0) + '; 52 56 $Joins .= ' LEFT JOIN (SELECT User, COUNT(User) as Count FROM `'.$Group['TablePrefix'].'` WHERE (Complete = 1) AND (Language <> 0) GROUP BY User) as T'.$Group['Id'].' ON user.ID=T'.$Group['Id'].'.User'; 53 57 }
Note:
See TracChangeset
for help on using the changeset viewer.