} $email = trim($_POST['email']); $endtype = strtotime(intval($_POST['endtype'])); $type = $_POST['type']; $shua = $_POST['shua'] ? $_POST['shua'] : 0; $us_type = $_POST['us_type'] ? $_POST['us_type'] : 1; $logimg = $_POST['logimg']; $xingming = $_POST['xingming']; $alipayid = $_POST['alipayid']; $shenfenzheng = $_POST['shenfenzheng']; $zip = $_POST['zip']; $lifelong = intval($_POST['lifelong']); $Pingbi = strtotime(trim($_POST['Pingbi'])); $authType = intval($_POST['authType']); $taobao = strval($_POST['taobao']); if (Admintype(3)) { if ($_POST['password'] != "") { $sql = "update user set taobao='{$taobao}',auth_type={$authType},wangwang='{$wangwang}',address='{$address}',phone='{$phone}',password='******',email='{$email}',logimg='{$logimg}',\nxingming='{$xingming}',alipayid='{$alipayid}',shenfenzheng='{$shenfenzheng}',zip='{$zip}',`sy_sum`='{$sy_sum}',`hs_sum`='{$hs_sum}',`qq_ua`='{$qq_ua}',`weibo_ua`='{$weibo_ua}',\n`lifelong`='{$lifelong}',Pingbi='{$Pingbi}',endtype='{$endtype}',type={$type},shua={$shua},us_type={$us_type} where id={$id}"; } else { $sql = "update user set taobao='{$taobao}',auth_type={$authType},wangwang='{$wangwang}',address='{$address}',phone='{$phone}',email='{$email}',logimg='{$logimg}',xingming='{$xingming}',\nalipayid='{$alipayid}',shenfenzheng='{$shenfenzheng}',zip='{$zip}',`sy_sum`='{$sy_sum}',`hs_sum`='{$hs_sum}',`qq_ua`='{$qq_ua}',`weibo_ua`='{$weibo_ua}',`lifelong`='{$lifelong}',\nPingbi='{$Pingbi}',endtype='{$endtype}',type={$type},shua={$shua},us_type={$us_type} where id={$id}"; } } else { if ($_POST['password'] != "") { $sql = "update user set taobao='{$taobao}',auth_type={$authType},wangwang='{$wangwang}',address='{$address}',phone='{$phone}',password='******',email='{$email}',logimg='{$logimg}',\nxingming='{$xingming}',alipayid='{$alipayid}',shenfenzheng='{$shenfenzheng}',zip='{$zip}',Pingbi='{$Pingbi}',us_type={$us_type} where id={$id}"; } else { $sql = "update user set taobao='{$taobao}',auth_type={$authType},wangwang='{$wangwang}',address='{$address}',phone='{$phone}',email='{$email}',logimg='{$logimg}',xingming='{$xingming}',alipayid='{$alipayid}',\nshenfenzheng='{$shenfenzheng}',zip='{$zip}',Pingbi='{$Pingbi}',us_type={$us_type} where id={$id}"; } } $result = $pdo->exec($sql); if ($pdo->errorCode() === '00000') { $updateMessage = "修改成功";
$dataName = $_POST['dataName']; $dingdanhao = $_POST['dingdanhao']; $name = $_POST['name']; $status = $_POST['status']; $shouxufei = $_POST['shouxufei']; $mingxi = trim($_POST['mingxi']); $money = round(trim($_POST['money']), 2); } if (isset($_POST['dopost'])) { if ($_POST['dopost'] == 'update') { $xxid = $_POST['xxid']; $status = $_POST['status']; $sresult = mysql_query("select status from user_shiyong where id={$xxid}"); $srow = mysql_fetch_assoc($sresult); $oldstatus = $srow['status']; if (Admintype(3) == false) { unset($status); unset($_POST['status']); $status = $oldstatus; } if ($status == 1 || $status == 2 || $status == 3 || $status == 4 || $status == 5 || $status == 6) { $steptime = $status; } if ($status == -1) { $steptime = 2; } if ($status == -2) { $steptime = 3; } if ($status == -3) { $steptime = 4;
<?php include './../../include/session.php'; include './../../include/conn.php'; include './../../include/myfunction.php'; $manageGroup = 'baseGroup'; $currentPage = 'admin_create'; $dopost = isset($_POST['dopost']) ? $_POST['dopost'] : ''; if ($dopost == 'create' && Admintype(4)) { $name = trim($_POST['name']); $xingming = trim($_POST['xingming']); $invite = trim($_POST['invite']); $type = trim($_POST['type']); $password = trim($_POST['password']); $xpassword = trim($_POST['xpassword']); if ($password != $xpassword || strlen($password) < 5) { if (strlen($password) < 5) { $updateMessage = '密码不能小于六位'; } else { $updateMessage = '你所输入的新密码与确认的新密码输入不一致'; } } else { $password = md5($password); $count = Zbkinsert('skadmin', array('name' => $name, 'create_time' => $CCtimes, 'update_time' => $CCtimes, 'type' => $type, 'invite' => $invite, 'xingming' => $xingming, 'password' => $password, 'status' => 1)); if ($count) { $updateMessage = "管理员添加成功"; } else { $updateMessage = "管理员添加失败"; } } }
<?php include './../../include/session.php'; include './../../include/conn.php'; include './../../include/myfunction.php'; include './../../include/page.class.php'; $currentPage = 'admin_type'; $manageGroup = 'baseGroup'; if (!Admintype(4)) { exit; } if (isset($_GET['del'])) { if ($_GET['del'] == 1) { $delid = $_GET['delid']; Zbkdel('skadmin_type', "id={$delid}") ? $inresult = "删除成功" : ($inresult = "删除失败"); } } $dopost = $_POST['dopost']; if ($dopost == "submit") { $type_value = intval(trim($_POST['type_value'])); $typename = trim($_POST['name']); $content = $_POST['content']; if (!empty($typename) && $type_value != "") { if (isset($_POST['editid'])) { $editid = $_POST['editid']; $count = Zbkupdate('skadmin_type', array('name' => $typename, 'content' => $content, 'type_value' => $type_value), "id={$editid}"); } else { $count = Zbkinsert('skadmin_type', array('name' => $typename, 'content' => $content, 'type_value' => $type_value)); } if ($count) { $inresult = "操作成功";
$count = Zbkupdate('skadmin', array('password' => $password, 'update_time' => $CCtimes, 'invite' => $invite, 'type' => $type, 'xingming' => $xingming, 'status' => $status), "ID={$adminid}"); } else { $count = Zbkupdate('skadmin', array('update_time' => $CCtimes, 'invite' => $invite, 'type' => $type, 'xingming' => $xingming, 'status' => $status), "ID={$adminid}"); } if ($count) { if (!empty($password)) { $updateMessage = "密码及信息修改成功,请记着管理员的新密码{$newpassword}"; } else { $updateMessage = "修改管理员信息成功"; } } else { $updateMessage = "管理员信息修改失败"; } } } if ($dopost == 'update' && !Admintype(4)) { $updateMessage = "您没权限操作"; } $getid = $_GET['id']; $sql = "select * from skadmin where ID={$getid}"; $result = mysql_query($sql); $row = mysql_fetch_assoc($result); ?> <!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 $siteweb['siteName']; ?> </title>