. */ class CandidateUI { private $rowcount; private $candidate_id; private $SaveAction; public function __construct($candidate_id) { $this->rowcount=0; $this->candidate_id=$candidate_id; } public function __destruct() { } public function Open($noedit=false) { $ret = ""; if( $noedit ) { $ret .= "

Field labels in bold writing indicate required information.

"; $ret .= "
"; $ret .= "candidate_id."\" />"; } $ret .= ""; return $ret; } public function Add($title, $value, $error=false, $compulsory=false) { $ret = ""; $this->rowcount++; if( ($this->rowcount%2)==0 ) { $ret .= ""; }else { $ret .= ""; } $ret .= ""; $ret .= ""; return $ret; } public function Separator() { $ret = ""; if( $this->rowcount>0 ) { $ret .= ""; $this->rowcount=0; } return $ret; } public function Close($noedit=false) { global $setup; $ret = "
"; $ret .= "".$value."
 
"; if( $noedit ) { ///// Show buttons ///// if( !isset($this->PersonID) || $this->PersonID==0 ) { // New $ret .= "   "; $ret .= ""; }else { // Edit $ret .= "   "; $ret .= ""; } $ret .= "

Please click only once and wait for the form being processed and the whole page being displayed before going on. Only if you see a confirmation "; $ret .= "on the screen you have candidated. As long as you get back to this form, your candidature has not been accepted."; if( $setup['CandidateMailApplicantNew'] ) { $ret .= "
You will receive a copy of your candidature in the specified mailbox. If you fail to receive this mail within two days, please log in again and check "; $ret .= "the e-mail address in your candidature. If your e-mail address disappeared, the mail send was undeliverable (most probably because you filled in an invalid e-mail address)."; } if( $setup['CandidateMailApplicantStatus'] ) { $ret .= "
When your candidature is approved or rejected by the Juridical Commission, you'll get a notification by e-mail."; } $ret .= "

"; } return $ret; } } ?>