. */ class ApplicationUI { private $rowcount; private $applicationID; private $SaveAction; public function __construct($applicationID) { $this->rowcount=0; $this->applicationID=$applicationID; } public function __destruct() { } public function Open($noedit=false) { $ret = ""; if( $noedit ) { $ret .= "Field labels in bold writing indicate required information."; if( substr($_SERVER['PHP_SELF'], -10) == "invite.php" ) $ret .= "

"; else { if( isset($_REQUEST['edit']) ) $ret .= "

"; else $ret .= "

"; } $ret .= "applicationID."\" />"; } $ret .= ""; return $ret; } public function Add($title, $value, $error=false, $compulsory=false, $displayOptions="") { $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( $this->applicationID==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 applied. As long as you get back to this form, your application has not been accepted.

"; if( $setup['InformMailParticipantNew'] ) { $ret .= "
You will receive a copy of your application 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 application. If it disappeared, the mail send was undeliverable (most probably because you filled in an invalid e-mail address)."; } $ret .= "
"; } return $ret; } } ?>