function _ptgroup() {
        //
        // main method for ptgroup
        // calls form_ptgroup, process_ptgroup, display_ptgroup
        //
        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];
        }
        // always check dependencies
        if ($exitinfo = $this->missing_dependencies('ptgroup')) {
            return print($exitinfo);
        }

        if ($post_vars["submitptgroup"]) {
            $this->process_ptgroup($menu_id, $post_vars, $get_vars);
        }
        ptgroup::display_ptgroup($menu_id, $post_vars, $get_vars);
        ptgroup::form_ptgroup($menu_id, $post_vars, $get_vars);
    }
Esempio n. 2
0
 function _ptgroup()
 {
     //
     // main method for ptgroup
     // calls form_ptgroup, process_ptgroup, display_ptgroup
     //
     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];
     }
     // always check dependencies
     if ($exitinfo = $this->missing_dependencies('ptgroup')) {
         return print $exitinfo;
     }
     if ($post_vars["submitptgroup"]) {
         $this->process_ptgroup($menu_id, $post_vars, $get_vars);
         //header("location: ".$_SERVER["PHP_SELF"]."?page=LIBRARIES&menu_id=$menu_id");
     }
     ptgroup::display_ptgroup($menu_id);
     ptgroup::form_ptgroup($menu_id, $post_vars, $get_vars);
 }