function _notes_templates() { // // main method for notes template library // calls form_template, process_template, display_templates // 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('notes')) { return print($exitinfo); } $n = new notes; if ($post_vars["submittemplate"]) { $n->process_template($menu_id, $post_vars, $get_vars); } $n->display_templates($menu_id); $n->form_template($menu_id, $post_vars, $get_vars); }