$smarty->assign("error_text","An error occurred generating a signup ID. Report the following message to the admins:<br /><pre>".$sucsDB->ErrorMsg()."</pre>");
// let them know they are already signed up and renewed
}else{
message_flash("You are a numpty and have already signed up and paid for this year.");
$smarty->assign('slipid',$id);
// else if check to see if they have signedup and paid for the new year but haven't renewed
$smarty->assign("error_text","An error occurred generating a signup ID. Report the following message to the admins:<br /><pre>".$sucsDB->ErrorMsg()."</pre>");
}else{
$smarty->assign('slipid',$id);
$smarty->assign('slippass',$pass);
$smarty->assign('sid',$_REQUEST['sid']);
}
}else{
$mode='error';
$smarty->assign("error_text","Student does not appear to have paid. Extract fees");