.
*/
include("../include/include.php");
#include("./include/g_accepted.php");
#include("./include/g_body.php");
admin_header(true);
if( isset($_GET['id']) ) $_SESSION['editcand_candidateID'] = get_int("id");
if( isset($_GET['new']) ) $_SESSION['editcand_candidateID'] = 0;
if( isset($_SESSION['editcand_candidateID']) ) {
$candidate_id = $_SESSION['editcand_candidateID'];
if( @mysql_num_rows( $res = doquery("SELECT `Position` FROM `candidates` WHERE `id` = " . addslashes($candidate_id)) ) == 1 ) {
$row = mysql_fetch_assoc($res);
$Position = $row['Position'];
include("./include/candidate.php");
}else {
echoln("Unable to find candidature to edit.");
}
}else {
echoln("You have to select a candidature to edit.");
}
admin_footer(true);
?>