Example #1
0
 function _ntp_appointments()
 {
     //
     // main submodule for appointment
     // calls form_ntp_appointment()
     //       display_ntp_appointment()
     //       process_ntp_appointment()
     //
     // always check dependencies
     if ($exitinfo = $this->missing_dependencies('ntp')) {
         return print $exitinfo;
     }
     if (func_num_args() > 0) {
         $arg_list = func_get_args();
         $menu_id = $arg_list[0];
         $post_vars = $arg_list[1];
         $get_vars = $arg_list[2];
         $validuser = $arg_list[3];
         $isadmin = $arg_list[4];
         //print_r($arg_list);
     }
     $n = new ntp();
     if ($post_vars["submitappt"]) {
         $n->process_ntp_appointment($menu_id, $post_vars, $get_vars);
     }
     $n->display_ntp_appointment($menu_id, $post_vars, $get_vars);
     $n->form_ntp_appointment($menu_id, $post_vars, $get_vars);
 }