. */ class PersonsMemberlistConfirmed extends Persons { private $showshort = false; public function __construct($dummy=0) { $this->name = "MemberlistConfirmed"; } public function get_print_name() { return "On memberlist"; } public function get_print_name_short() { $this->showshort = true; return "On memberlist"; } public function display($value, $ApplicationID=0, &$allvalues="") { $OnMemList_img = array(); $OnMemList_text = array(); $OnMemList_img['-'] = "./image/minus.gif"; $OnMemList_text['-'] = "Not checked"; $OnMemList_img['yes'] = "./image/check.gif"; $OnMemList_text['yes'] = "Yes"; $OnMemList_img['no'] = "./image/nocheck.gif"; $OnMemList_text['no'] = "No"; $OnMemList_img['pending'] = "./image/pending.png"; $OnMemList_text['pending'] = "Pending"; if( $this->get_access()==self::ACCESS_RW ) { return "\"".$OnMemList_text["; }else { return "\"".$OnMemList_text["; } } public function displaytext($value, $ApplicationID=0, &$allvalues="") { $OnMemList_text = array(); $OnMemList_text['-'] = "Not checked"; $OnMemList_text['yes'] = "Yes"; $OnMemList_text['no'] = "No"; $OnMemList_text['pending'] = "Pending"; return $OnMemList_text[ $value ]; } public function displayoptions($ApplicationID=0) { return " align=\"center\" id=\"MemberlistConfirmed_".$ApplicationID."\""; } public function get_access($dummy=0) { if( in_array("application_editonmemlist", $_SESSION['sess_functions']) ) return self::ACCESS_RW; elseif( in_array("application_viewonmemlist", $_SESSION['sess_functions']) ) return self::ACCESS_R; else return self::ACCESS_NO; } } ?>