. */ include("./include/include.php"); include("./include/g_approved.php"); admin_header(); if( !in_array("candidate_viewlist", $_SESSION['sess_functions']) ) { echoln("You are not authorized to see this page."); }else { $title = "Candidates "; if( isset($_REQUEST['sort']) ) { $sort = $_REQUEST['sort']; }else { $sort = ""; } switch( $sort ) { case "fname": $title .= "by first name"; $sqlorder = "ORDER BY `FirstName`, `LastName`, `Created`"; break; case "lname": $title .= "by family name"; $sqlorder = "ORDER BY `LastName`, `FirstName`, `Created`"; break; case "nationality": $title .= "by nationality"; $sqlorder = "ORDER BY `Nationality`, `FirstName`, `LastName`"; break; case "local": $title .= "by local"; $sqlorder = "ORDER BY `BodyName`, `FirstName`, `LastName`"; break; case "position": $title .= "by position"; $sqlorder = "ORDER BY `candidatepost`.`position`, `FirstName`, `LastName`"; break; case "approved": $title .= "by approval status"; $sqlorder = "ORDER BY `Approved`, `FirstName`, `LastName`"; break; case "datemodify": $title .= "by modified date"; $sqlorder = "ORDER BY `Modified`, `FirstName`, `LastName`"; break; case "datecreate": default: $title .= "by candidation date"; $sqlorder = "ORDER BY `Created`, `FirstName`, `LastName`"; break; } echoln("
| "); echoln(" | Created | "); echoln("Modified | "); echoln("First name | "); echoln("Family name | "); echoln("Local | "); echoln("Nationality | "); echoln("Position | "); echoln("Approved | "); echoln("
|---|---|---|---|---|---|---|---|---|
");
if( in_array("candidate_viewdetail", $_SESSION['sess_functions']) ) {
echoln(" ");
}
echoln(" ");
if( in_array("candidate_edit", $_SESSION['sess_functions']) ) {
echoln(" edit");
}
echoln(" | ");
echoln(" ".get_date(substr($row['Created'], 0, 10))." | "); echoln("".get_date(substr($row['Modified'], 0, 10))." | "); echoln("".$row['FirstName']." | "); echoln("".$row['LastName']." | "); echoln("".$row['BodyName']." | "); echoln("".ucwords(strtolower($row['Nationality']))." | "); echoln("".$row['Position']." | "); if( in_array("candidate_approve", $_SESSION['sess_functions']) ) { echoln("