<?php require_once "../../include/session.class.php"; require_once "syst_adduser.class.php"; require_once "syst_addorg.class.php"; $operuser = new operadd(); $addorg = new addSchOrg(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php echo $title; ?> </title> <?php if (isset($_POST['submit'])) { $addorg->add_org(); } ?> <script type="text/javascript"> function loadb(){ document.forms[0].elements['dept_name1'].focus(); return true; } function checkdata() { var f1 = document.forms[0]; var flag = 1; if ( (f1.dept_name1.value == "" || f1.dept_name1.value == " ") && (f1.dept_name2.value == "" || f1.dept_name2.value == " ") && (f1.dept_name3.value == "" || f1.dept_name3.value == " ") && (f1.dept_name4.value == "" || f1.dept_name4.value == " ") && (f1.dept_name5.value == "" || f1.dept_name5.value == " ") ) { alert("请至少填写一个部门/机构");
<?php require_once "../../include/session.class.php"; require_once "syst_adduser.class.php"; $operuser = new operadd(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="../css/stat.css" media="screen" /> <title><?php echo $title; ?> </title> <?php if (isset($_POST['submit'])) { $operuser->addoper(); } ?> <script type="text/javascript"> function loadb(){ document.forms[0].elements['username'].focus(); return true; } function checkspace(checkstr) { var str = ''; for(i = 0; i < checkstr.length; i++) {