$range = 30; } if (isset($_REQUEST['lowerlimit'])) { $lowerlimit = intval($_REQUEST['lowerlimit']); } else { $lowerlimit = 0; } if ($lowerlimit < 0) { $lowerlimit = 0; } $limit = " limit {$lowerlimit},{$range}"; $query = "\n\tSELECT\n\t\tuser_id,user_uname,user_fname,user_email,user_type,user_authtype\n\tFROM\n\t\tuser\n\tWHERE\n\t\t{$where}\n\tORDER BY\n\t\tuser_uname ASC\n\t{$limit}\n\t"; $r = db_query($query); } } printerr(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Users</title> <?php include "themes/common/logs_css.inc.php"; ?> </head> <!-- <body onload="document.addform.uname.focus()"> --> <body onload="document.searchform.name.focus()"> <?php
/** * The semorder function returns what order througout the calender year the * semesters occur, this information can then be used to determine if * a semester has yet to occur * * @param string $semester * @return integer, the order of the semester * @access public * @date 9/8/04 */ function semorder($semester) { global $cfg; $order = 1; foreach (array_keys($cfg['semesters']) as $semesterKey) { if ($semester == $semesterKey) { return $order; } else { $order++; } } printerr("Semester, '{$semester}', is not specified in the config."); }