示例#1
0
 function _questions()
 {
     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);
     }
     // always check dependencies
     if ($exitinfo = $this->missing_dependencies('patient')) {
         return print $exitinfo;
     }
     if ($post_vars["submitquestion"]) {
         history::process_question($menu_id, $post_vars, $get_vars);
     }
     if ($get_vars["moveup"] || $get_vars["movedown"]) {
         print "hello";
         history::process_order($menu_id, $post_vars, $get_vars);
     }
     history::form_question($menu_id, $post_vars, $get_vars);
     history::display_questions($menu_id, $post_vars, $get_vars);
 }