From: Lo?c C. <lo...@us...> - 2001-05-20 11:48:58
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv20190/chat Modified Files: admin.php3 Log Message: Improved the sorting feature Index: admin.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/admin.php3,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** admin.php3 2001/05/05 17:26:17 1.1 --- admin.php3 2001/05/20 11:48:55 1.2 *************** *** 135,150 **** { $dbSessionVars['adminSheet'] = $adminSheet; } ! if (isset($sortBy)) { ! $dbSessionVars['sortBy'] = $sortBy; ! } ! if (isset($sortOrder)) ! { ! $dbSessionVars['sortOrder'] = $sortOrder; ! } ! if (isset($offset)) ! { ! $dbSessionVars['offset'] = $offset; } // Load the frame when the $whichFrame var indicate one --- 135,156 ---- { $dbSessionVars['adminSheet'] = $adminSheet; + $dbSessionVars['sortBy'] = 'username'; + $dbSessionVars['sortOrder'] = 'ASC'; + $dbSessionVars['offset'] = 0; } ! else { ! if (isset($sortBy)) ! { ! $dbSessionVars['sortBy'] = $sortBy; ! } ! if (isset($sortOrder)) ! { ! $dbSessionVars['sortOrder'] = $sortOrder; ! } ! if (isset($offset)) ! { ! $dbSessionVars['offset'] = $offset; ! } } // Load the frame when the $whichFrame var indicate one |