示例#1
0
 public function action_add_position_to_department()
 {
     $posname = $_REQUEST["posname"];
     $deptid = $_REQUEST["deptid"];
     $department = new DepartmentObj($deptid);
     if (!$department->loaded) {
         return print "Department cannot be found!";
     }
     $department->add_position($posname);
     return print 1;
 }