| @@ -11,7 +11,6 @@ | |||
| require_once(dirname(__FILE__).'/config.php'); | |||
| CheckPurview('member_Type'); | |||
| if (empty($dopost)) $dopost = ""; | |||
| //保存修改 | |||
| if ($dopost == "save") { | |||
| $startID = 1; | |||
| @@ -36,7 +35,6 @@ if ($dopost == "save") { | |||
| $dsql->ExecuteNoneQuery($query); | |||
| } | |||
| } | |||
| //增加新记录 | |||
| if (isset($check_new) && $pname_new != '') { | |||
| $query = "INSERT INTO `#@__moneycard_type` (num,pname,money) VALUES ('{$num_new}','{$pname_new}','{$money_new}');"; | |||
| @@ -3,7 +3,7 @@ | |||
| <head> | |||
| <meta charset="utf-8"> | |||
| <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | |||
| <title>积分生成向导</title> | |||
| <title>生成积分</title> | |||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | |||
| @@ -16,7 +16,7 @@ | |||
| <td bgcolor="#f5f5f5" colspan="4"> | |||
| <table cellspacing="0" cellpadding="0" class="table table-borderless w-100"> | |||
| <tr> | |||
| <td width="30%">积分生成向导</td> | |||
| <td width="30%">生成积分</td> | |||
| <td width="70%" align="right"> | |||
| <button type="button" name="ss1" onclick="location='cards_type.php';" class="btn btn-success btn-sm">积分产品分类</button> | |||
| <button type="button" name="ss2" onclick="location='cards_manage.php';" class="btn btn-success btn-sm">积分使用记录</button> | |||
| @@ -63,8 +63,8 @@ | |||
| <tr bgcolor="#e9ecef" align="center"> | |||
| <td width="6%">选择</td> | |||
| <td width="6%">mid</td> | |||
| <td width="16%">头像/用户名/类型</td> | |||
| <td width="8%">公司名/昵称</td> | |||
| <td width="16%">头像/用户名</td> | |||
| <td width="8%">昵称</td> | |||
| <td width="8%">等级</td> | |||
| <td width="16%">钱包积分</td> | |||
| <td width="6%">投稿限制</td> | |||
| @@ -76,14 +76,7 @@ | |||
| <td><input type="checkbox" name="mid" id="mid" value="{dede:field.mid/}"></td> | |||
| <td>{dede:field.mid/}</td> | |||
| <td align="left"> | |||
| <span class="mr-1"> | |||
| <?php | |||
| if (!empty($fields['face'])) {echo "<img src='{$fields['face']}' class='user-img'>";}; | |||
| echo ''.$fields['userid'].''; | |||
| if ($fields['spacesta']==-2) echo " <span class='btn btn-outline-danger btn-sm'>禁言</span>"; | |||
| if ($fields['spacesta']==-1) echo " <span class='btn btn-outline-danger btn-sm'>未审核</span>"; | |||
| ?> | |||
| </span> | |||
| <span class="mr-1"><?php if (!empty($fields['face'])) {echo "<img src='{$fields['face']}' class='user-img'>";};echo ''.$fields['userid'].'';if ($fields['spacesta']==-2) echo " <span class='btn btn-outline-danger btn-sm'>禁言</span>";if ($fields['spacesta']==-1) echo " <span class='btn btn-outline-danger btn-sm'>未审核</span>";?></span> | |||
| <span>{dede:field.matt function="GetMAtt(@me)"/}</span> | |||
| </td> | |||
| <td>{dede:field.uname/}</td> | |||
| @@ -38,19 +38,15 @@ | |||
| <input type="hidden" name="dopost" value="edituser"> | |||
| <input type="hidden" name="id" value="<?php echo $id?>"> | |||
| <tr> | |||
| <td width="260" class="admin-td">头像/用户名/类型:</td> | |||
| <td width="260" class="admin-td">头像/用户名:</td> | |||
| <td> | |||
| <span class="mr-1"> | |||
| <?php | |||
| if ($row['face']!='') {echo "<img src='{$row['face']}' class='user-img'>";}; | |||
| echo "".$row['userid'].""; | |||
| ?> | |||
| </span> | |||
| <span class="btn btn-outline-success btn-sm"><?php echo $row['mtype'];?></span> | |||
| <span class="mr-1"><?php if ($row['face']!='') {echo "<img src='{$row['face']}' class='user-img'>";};echo "".$row['userid']."";?></span> | |||
| <span class="btn btn-outline-success btn-sm">高级会员</span> | |||
| <span class="btn btn-outline-warning btn-sm">少尉</span> | |||
| </td> | |||
| </tr> | |||
| <tr> | |||
| <td class="admin-td">公司名/昵称:</td> | |||
| <td class="admin-td">昵称:</td> | |||
| <td class="admin-td"><input type="text" name="uname" id="uname" class="admin-input-sm" value="<?php echo $row['uname']?>"></td> | |||
| </tr> | |||
| <tr> | |||
| @@ -11,7 +11,7 @@ | |||
| <script src="../static/web/js/popper.min.js"></script> | |||
| <script src="../static/web/js/bootstrap.min.js"></script> | |||
| <script src="../static/web/js/style.js"></script> | |||
| <style>*{margin:0;padding:0;letter-spacing:.6px;box-sizing:border-box}body{line-height:1.6;font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#545b62;background:#f5f5f5}a{color:#545b62}h2{font-size:24px}legend{font-size:18px}h2,legend{line-height:1.6;color:#393d49;font-weight:600}input,select,.btn{font-size:14px!important}.install-box{margin:0 auto;width:860px}.admin-head{padding:1rem 0;background:#fff}.logo{height:36px}.admin-nav{height:36px;line-height:36px}.admin-nav-a{padding-right:30px}.admin-btn{color:#545b62}.dropdown-menu{min-width:8rem;font-size:14px}.dropdown-item{padding:0 1rem;height:36px;line-height:36px;font-size:14px;color:#545b62!important}.fa{font-size:14px!important;color:inherit;cursor:pointer}@media (max-width:760px){.install-box{width:100%}.admin-head{padding:1rem 15px}.admin-nav-a{display:none!important}}</style> | |||
| <style>body{line-height:1.6;letter-spacing:.6px;font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#545b62;background:#f5f5f5}a{color:#545b62}h2,legend{line-height:1.6;font-size:18px;font-weight:600;color:#393d49}label{margin-bottom:10px;line-height:18px}input,select,.btn{font-size:14px!important}.install-box{margin:0 auto;width:860px}.admin-head{padding:1rem 0;background:#fff}.logo{height:36px}.admin-nav{height:36px;line-height:36px}.admin-nav-a{padding-right:30px}.admin-btn{color:#545b62}.dropdown-menu{min-width:8rem;font-size:14px}.dropdown-item{padding:0 1rem;height:36px;line-height:36px;font-size:14px;color:#545b62!important}.fa{font-size:14px!important;color:inherit;cursor:pointer}@media (max-width:760px){.install-box{width:100%}.admin-head{padding:1rem 15px}.admin-nav-a{display:none!important}}</style> | |||
| </head> | |||
| <body> | |||
| <div class="d-flex flex-md-row align-items-center shadow-sm admin-head mb-5"> | |||
| @@ -28,7 +28,7 @@ h1,h2,h3,h4,h5,h6 { | |||
| color:#393d49 | |||
| } | |||
| h1 { | |||
| font-size:32px | |||
| font-size:36px | |||
| } | |||
| h2 { | |||
| font-size:24px | |||
| @@ -300,7 +300,7 @@ input[type=file] { | |||
| .form-control,.btn,.fa { | |||
| font-size:14px!important | |||
| } | |||
| .form-control { | |||
| .form-control,.input-text { | |||
| height:36px; | |||
| line-height:36px | |||
| } | |||
| @@ -383,12 +383,6 @@ input[type=file] { | |||
| max-width:260px; | |||
| max-height:156px | |||
| } | |||
| .file-relative { | |||
| position:relative | |||
| } | |||
| .file-absolute { | |||
| display: none; | |||
| } | |||
| #btnScrollTop { | |||
| display:none; | |||
| position:fixed; | |||
| @@ -9,7 +9,7 @@ if (!defined('DEDEINC')) exit('dedebiz'); | |||
| * @license https://www.dedebiz.com/license | |||
| * @link https://www.dedebiz.com | |||
| */ | |||
| //显示类似Bootstrap系统提示 | |||
| //显示类似Bootstrap警告框 | |||
| define('ALERT_PRIMARY', 1); | |||
| define('ALERT_SECONDARY', 2); | |||
| define('ALERT_SUCCESS', 3); | |||
| @@ -93,7 +93,7 @@ function get_mime_type($filename) | |||
| if (!function_exists('finfo_open')) { | |||
| return 'unknow/octet-stream'; | |||
| } | |||
| $finfo = finfo_open(FILEINFO_MIME_TYPE); | |||
| $finfo = finfo_open(FILEINFO_MIME_TYPE); | |||
| $mimeType = finfo_file($finfo, $filename); | |||
| finfo_close($finfo); | |||
| return $mimeType; | |||
| @@ -108,9 +108,7 @@ function is_all_numeric(array $array) | |||
| function make_hash() | |||
| { | |||
| $rand = dede_random_bytes(16); | |||
| $_SESSION['token'] = ($rand === FALSE) | |||
| ? md5(uniqid(mt_rand(), TRUE)) | |||
| : bin2hex($rand); | |||
| $_SESSION['token'] = ($rand === FALSE) ? md5(uniqid(mt_rand(), TRUE)) : bin2hex($rand); | |||
| return $_SESSION['token']; | |||
| } | |||
| function dede_random_bytes($length) | |||
| @@ -154,7 +152,6 @@ if (!function_exists('CheckSql')) { | |||
| //如果是普通查询语句,直接过滤一些特殊语法 | |||
| if ($querytype == 'select') { | |||
| $notallow1 = "[^0-9a-z@\._-]{1,}(union|sleep|benchmark|load_file|outfile)[^0-9a-z@\.-]{1,}"; | |||
| //$notallow2 = "--|/\*"; | |||
| if (preg_match("/".$notallow1."/i", $db_string)) { | |||
| fputs(fopen($log_file, 'a+'), "$userIP||$getUrl||$db_string||SelectBreak\r\n"); | |||
| exit("<span>Safe Alert: Request Error step 1 !</span>"); | |||
| @@ -493,7 +490,6 @@ function GetUpdateSQL() | |||
| $query = preg_replace('/,([\t\s ]+)PRIMARY KEY([\t\s ]+)\(`([0-9a-zA-Z]+)`\)/i','',$query); | |||
| } | |||
| $sqls[] = $query; | |||
| // $db->exec($query); | |||
| } else { | |||
| if (preg_match('#CREATE#i', $query)) { | |||
| $sqls[] = preg_replace("#TYPE=MyISAM#i",$sql4tmp,$query); | |||
| @@ -676,7 +672,6 @@ function HideEmail($email) | |||
| $em = explode("@",$email); | |||
| $name = implode('@', array_slice($em, 0, count($em)-1)); | |||
| $len = floor(strlen($name)/2); | |||
| return substr($name,0, $len) . str_repeat('*', $len) . "@" . end($em); | |||
| } | |||
| //自定义函数接口 | |||
| @@ -21,8 +21,8 @@ while ($row = $dsql->GetObject('mct')) { | |||
| $moneycards .= "<tr> | |||
| <td><input type='radio' name='pid' value='{$row->tid}'></td> | |||
| <td>{$row->pname}</td> | |||
| <td>{$row->num}个</td> | |||
| <td>{$row->money}元</td> | |||
| <td>{$row->num}</td> | |||
| <td>{$row->money}</td> | |||
| </tr> | |||
| "; | |||
| } | |||
| @@ -35,7 +35,7 @@ while ($row = $dsql->GetObject('mt')) { | |||
| <td>{$row->pname}</td> | |||
| <td>{$row->membername}</td> | |||
| <td>{$row->exptime}</td> | |||
| <td>{$row->money}元</td> | |||
| <td>{$row->money}</td> | |||
| </tr> | |||
| "; | |||
| } | |||
| @@ -32,7 +32,6 @@ if ($dopost == 'save') { | |||
| ShowMsg('您两次输入的新密码不一致', '-1'); | |||
| exit(); | |||
| } | |||
| $addupquery = ''; | |||
| $admaddupquery = ''; | |||
| $pp = "pwd"; | |||
| @@ -83,7 +82,6 @@ if ($dopost == 'save') { | |||
| } | |||
| } | |||
| } | |||
| //修改安全问题 | |||
| if ($newsafequestion != 0 && $newsafeanswer != '') { | |||
| if (strlen($newsafeanswer) > 30) { | |||
| @@ -39,7 +39,7 @@ | |||
| <label class="col-sm-2 col-form-label">缩略图</label> | |||
| <div class="col-sm-10"> | |||
| <img src="/static/web/img/thumbnail.jpg" class="thumbnail-md mr-3"> | |||
| <span class="btn btn-success btn-sm file-relative">上传缩略图<input type="file" name="" class="file-absolute"></span> | |||
| <span class="btn btn-success btn-sm">上传缩略图</span> | |||
| </div> | |||
| </div> | |||
| <div class="form-group row"> | |||
| @@ -88,7 +88,7 @@ | |||
| </script> | |||
| <!--上传图片新样式--> | |||
| <span class="btn btn-success btn-sm file-relative">上传图片(支持多选)<input type="file" name="" class="file-absolute"></span> | |||
| <span class="btn btn-success btn-sm">上传图片(支持多选)</span> | |||
| <div class="album-imgs text-center my-3"> | |||
| <div class="row"> | |||
| <div class="col-md-3"> | |||
| @@ -43,7 +43,7 @@ | |||
| <label class="col-sm-2 col-form-label">缩略图</label> | |||
| <div class="col-sm-10"> | |||
| <img src="/static/web/img/thumbnail.jpg" class="thumbnail-md mr-3"> | |||
| <span class="btn btn-success btn-sm file-relative">修改缩略图<input type="file" name="" class="file-absolute"></span> | |||
| <span class="btn btn-success btn-sm">修改缩略图</span> | |||
| </div> | |||
| </div> | |||
| <div class="form-group row"> | |||
| @@ -38,7 +38,7 @@ | |||
| <label class="col-sm-2 col-form-label">缩略图</label> | |||
| <div class="col-sm-10"> | |||
| <img src="/static/web/img/thumbnail.jpg" class="thumbnail-md mr-3"> | |||
| <span class="btn btn-success btn-sm file-relative">上传缩略图<input type="file" name="" class="file-absolute"></span> | |||
| <span class="btn btn-success btn-sm">上传缩略图</span> | |||
| </div> | |||
| </div> | |||
| <div class="form-group row"> | |||
| @@ -38,7 +38,7 @@ | |||
| <label class="col-sm-2 col-form-label">缩略图</label> | |||
| <div class="col-sm-10"> | |||
| <img src="/static/web/img/thumbnail.jpg" class="thumbnail-md mr-3"> | |||
| <span class="btn btn-success btn-sm file-relative">修改缩略图<input type="file" name="" class="file-absolute"></span> | |||
| <span class="btn btn-success btn-sm">修改缩略图</span> | |||
| </div> | |||
| </div> | |||
| <div class="form-group row"> | |||
| @@ -38,7 +38,7 @@ | |||
| <label class="col-sm-2 col-form-label">缩略图</label> | |||
| <div class="col-sm-10"> | |||
| <img src="/static/web/img/thumbnail.jpg" class="thumbnail-md mr-3"> | |||
| <span class="btn btn-success btn-sm file-relative">上传缩略图<input type="file" name="" class="file-absolute"></span> | |||
| <span class="btn btn-success btn-sm">上传缩略图</span> | |||
| </div> | |||
| </div> | |||
| <div class="form-group row"> | |||
| @@ -38,7 +38,7 @@ | |||
| <label class="col-sm-2 col-form-label">缩略图</label> | |||
| <div class="col-sm-10"> | |||
| <img src="/static/web/img/thumbnail.jpg" class="thumbnail-md mr-3"> | |||
| <span class="btn btn-success btn-sm file-relative">修改缩略图<input type="file" name="" class="file-absolute"></span> | |||
| <span class="btn btn-success btn-sm">修改缩略图</span> | |||
| </div> | |||
| </div> | |||
| <div class="form-group row"> | |||
| @@ -38,7 +38,7 @@ | |||
| <label class="col-sm-2 col-form-label">缩略图</label> | |||
| <div class="col-sm-10"> | |||
| <img src="/static/web/img/thumbnail.jpg" class="thumbnail-md mr-3"> | |||
| <span class="btn btn-success btn-sm file-relative">上传缩略图<input type="file" name="" class="file-absolute"></span> | |||
| <span class="btn btn-success btn-sm">上传缩略图</span> | |||
| </div> | |||
| </div> | |||
| <div class="form-group row"> | |||
| @@ -42,7 +42,7 @@ | |||
| <label class="col-sm-2 col-form-label">缩略图</label> | |||
| <div class="col-sm-10"> | |||
| <img src="/static/web/img/thumbnail.jpg" class="thumbnail-md mr-3"> | |||
| <span class="btn btn-success btn-sm file-relative">修改缩略图<input type="file" name="" class="file-absolute"></span> | |||
| <span class="btn btn-success btn-sm">修改缩略图</span> | |||
| </div> | |||
| </div> | |||
| <div class="form-group row"> | |||
| @@ -75,9 +75,9 @@ | |||
| <table width="100%" cellpadding="0" cellspacing="0" class="table"> | |||
| <tr> | |||
| <th width="8%">选择</th> | |||
| <th width="30%">积分类型</th> | |||
| <th width="30%">金币数量</th> | |||
| <th>购买价格</th> | |||
| <th width="30%">产品名称</th> | |||
| <th width="30%">金币数量(个)</th> | |||
| <th>价格(元)</th> | |||
| </tr> | |||
| <tbody> | |||
| <?php echo $moneycards;?> | |||
| @@ -93,10 +93,10 @@ | |||
| <table width="100%" cellpadding="0" cellspacing="0" class="table"> | |||
| <tr> | |||
| <th width="8%">选择</th> | |||
| <th width="23">产品名称</th> | |||
| <th width="23%">产品名称</th> | |||
| <th width="23%">会员类型</th> | |||
| <th width="23%">时限(天)</th> | |||
| <th width="23%">价格</th> | |||
| <th>价格(元)</th> | |||
| </tr> | |||
| <tbody> | |||
| <?php echo $membertypes?> | |||
| @@ -48,92 +48,70 @@ | |||
| <?php include(DEDEMEMBER."/templets/menu.htm");?> | |||
| <div class="col-md-9"> | |||
| <div class="pannel-main-container shadow-sm rounded"> | |||
| <input id="iptNewface" type="file" name="iptNewface" class="file-absolute"> | |||
| <form action="edit_baseinfo.php" method="post" enctype="multipart/form-data" name="form2" | |||
| onsubmit="return checkSubmit();"> | |||
| <form action="edit_baseinfo.php" method="post" enctype="multipart/form-data" name="form2" onsubmit="return checkSubmit();"> | |||
| <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>"> | |||
| <input type="hidden" name="dopost" value="save"> | |||
| <input type="hidden" id="newface" name="newface" value=""> | |||
| <div class="form-group row"> | |||
| <label class="col-sm-3 col-form-label">修改头像</label> | |||
| <label class="col-sm-3 col-form-label">用户名:</label> | |||
| <div class="col-sm-9 input-text"><?php echo $cfg_ml->M_LoginID;?></div> | |||
| </div> | |||
| <div class="form-group row"> | |||
| <label for="iptUname" class="col-sm-3 col-form-label">昵称:</label> | |||
| <div class="col-sm-9"><input type="text" name="uname" class="form-control d-inline-block w-75" id="iptUname" value="<?php echo $row['uname'];?>" placeholder="企业会员为公司名,个人会员为昵称"></div> | |||
| </div> | |||
| <div class="form-group row"> | |||
| <label class="col-sm-3 col-form-label">修改头像:</label> | |||
| <div class="col-sm-9"> | |||
| <input id="iptNewface" type="file" name="iptNewface" class="d-none"> | |||
| <img id="face" src="<?php echo empty($row['face'])? $cfg_staticurl.'/web/img/admin.png' : $row['face'];?>" class="user-img mr-1"> | |||
| <span class="btn btn-success btn-sm" id="btnChangeFace">修改头像</span> | |||
| </div> | |||
| </div> | |||
| <div class="form-group row"> | |||
| <label class="col-sm-3 col-form-label">用户名/类型</label> | |||
| <div class="col-sm-9"> | |||
| <span class="mr-1"> | |||
| <?php echo $cfg_ml->M_LoginID;?> | |||
| </span> | |||
| <span class="btn btn-outline-success btn-sm"> | |||
| <?php echo $row['mtype'];?> | |||
| </span> | |||
| </div> | |||
| <label for="iptOldpwd" class="col-sm-3 col-form-label">原登录密码:</label> | |||
| <div class="col-sm-9"><input type="password" name="oldpwd" id="iptOldpwd" class="form-control w-75"></div> | |||
| </div> | |||
| <div class="form-group row"> | |||
| <label for="iptUname" class="col-sm-3 col-form-label">公司名/昵称</label> | |||
| <div class="col-sm-9"><input type="text" name="uname" | |||
| class="form-control d-inline-block w-75" id="iptUname" | |||
| value="<?php echo $row['uname'];?>" placeholder="企业会员为公司名,个人会员为昵称"></div> | |||
| <label for="iptUserpwd" class="col-sm-3 col-form-label">新密码:</label> | |||
| <div class="col-sm-9"><input type="password" name="userpwd" id="iptUserpwd" class="form-control w-75" placeholder="不修改密码请保留此项为空"></div> | |||
| </div> | |||
| <div class="form-group row"> | |||
| <label for="iptOldpwd" class="col-sm-3 col-form-label">原登录密码</label> | |||
| <div class="col-sm-9"><input type="password" name="oldpwd" id="iptOldpwd" | |||
| class="form-control w-75"></div> | |||
| <label for="iptUserpwdok" class="col-sm-3 col-form-label">确认新密码:</label> | |||
| <div class="col-sm-9"><input type="password" name="userpwdok" id="iptUserpwdok" class="form-control w-75" placeholder="不修改密码请保留此项为空"></div> | |||
| </div> | |||
| <div class="form-group row"> | |||
| <label for="iptUserpwd" class="col-sm-3 col-form-label">新密码</label> | |||
| <div class="col-sm-9"><input type="password" name="userpwd" id="iptUserpwd" | |||
| class="form-control w-75" placeholder="不修改密码请保留此项为空"></div> | |||
| <label class="col-sm-3 col-form-label">原安全问题:</label> | |||
| <div class="col-sm-9"><?php echo GetSafequestion($row['safequestion'],'safequestion');?></div> | |||
| </div> | |||
| <div class="form-group row"> | |||
| <label for="iptUserpwdok" class="col-sm-3 col-form-label">确认新密码</label> | |||
| <div class="col-sm-9"><input type="password" name="userpwdok" id="iptUserpwdok" | |||
| class="form-control w-75" placeholder="不修改密码请保留此项为空"></div> | |||
| <label for="iptSafeanswer" class="col-sm-3 col-form-label">原问题答案:</label> | |||
| <div class="col-sm-9"><input type="text" name="safeanswer" id="iptSafeanswer" class="form-control"></div> | |||
| </div> | |||
| <div class="form-group row"> | |||
| <label class="col-sm-3 col-form-label">原安全问题</label> | |||
| <div class="col-sm-9"> | |||
| <?php echo GetSafequestion($row['safequestion'],'safequestion');?> | |||
| </div> | |||
| <label class="col-sm-3 col-form-label">新安全问题:</label> | |||
| <div class="col-sm-9"><?php echo GetSafequestion(0,'newsafequestion');?></div> | |||
| </div> | |||
| <div class="form-group row"> | |||
| <label for="iptSafeanswer" class="col-sm-3 col-form-label">原问题答案</label> | |||
| <div class="col-sm-9"><input type="text" name="safeanswer" id="iptSafeanswer" | |||
| class="form-control"></div> | |||
| <label for="iptNewsafeanswer" class="col-sm-3 col-form-label">新问题答案:</label> | |||
| <div class="col-sm-9"><input type="text" name="newsafeanswer" id="iptNewsafeanswer" class="form-control"></div> | |||
| </div> | |||
| <div class="form-group row"> | |||
| <label class="col-sm-3 col-form-label">新安全问题</label> | |||
| <label for="iptEmail" class="col-sm-3 col-form-label">邮箱:</label> | |||
| <div class="col-sm-9"> | |||
| <?php echo GetSafequestion(0,'newsafequestion');?> | |||
| </div> | |||
| </div> | |||
| <div class="form-group row"> | |||
| <label for="iptNewsafeanswer" class="col-sm-3 col-form-label">新问题答案</label> | |||
| <div class="col-sm-9"><input type="text" name="newsafeanswer" id="iptNewsafeanswer" | |||
| class="form-control"></div> | |||
| </div> | |||
| <div class="form-group row"> | |||
| <label for="iptEmail" class="col-sm-3 col-form-label">邮箱</label> | |||
| <div class="col-sm-9"> | |||
| <span id="spEmail"> | |||
| <?php echo HideEmail($row['email']);?> <span class="btn btn-success btn-sm" | |||
| id="btnChangeEmail">修改邮箱</span> | |||
| </span> | |||
| <div id="spEmail"> | |||
| <span class="input-text"><?php echo HideEmail($row['email']);?></span> | |||
| <span class="btn btn-success btn-sm ml-3" id="btnChangeEmail">修改邮箱</span> | |||
| </div> | |||
| <span id="iptEmail"></span> | |||
| </div> | |||
| </div> | |||
| <div class="form-group row"> | |||
| <label for="iptEmail" class="col-sm-3 col-form-label">性别</label> | |||
| <div class="col-sm-9"> | |||
| <label><input type="radio" name="sex" value="男" <?php if ($row['sex']=='男' ) | |||
| echo " checked='checked' " ;?>> 男</label> | |||
| <label><input type="radio" name="sex" value="女" <?php if ($row['sex']=='女' ) | |||
| echo " checked='checked' " ;?>> 女</label> | |||
| <label><input type="radio" name="sex" value="保密" <?php if ($row['sex']=='保密' ) | |||
| echo " checked='checked' " ;?>> 保密</label> | |||
| <label for="iptEmail" class="col-sm-3 col-form-label">性别:</label> | |||
| <div class="col-sm-9 input-text"> | |||
| <label><input type="radio" name="sex" value="男" <?php if ($row['sex']=='男') echo " checked='checked' " ;?>> 男</label> | |||
| <label><input type="radio" name="sex" value="女" <?php if ($row['sex']=='女') echo " checked='checked' " ;?>> 女</label> | |||
| <label><input type="radio" name="sex" value="保密" <?php if ($row['sex']=='保密') echo " checked='checked' " ;?>> 保密</label> | |||
| </div> | |||
| </div> | |||
| <div class="text-center"><button type="submit" class="btn btn-success btn-sm">保存</button></div> | |||
| @@ -161,11 +139,9 @@ | |||
| } | |||
| }); | |||
| }) | |||
| $("#btnChangeFace").click(function(){ | |||
| $("#iptNewface").click(); | |||
| }) | |||
| $("#iptNewface").change(function (val) { | |||
| var formData = new FormData(); | |||
| var fileData = $('#iptNewface')[0].files[0]; | |||
| @@ -188,8 +164,6 @@ | |||
| }); | |||
| }); | |||
| }); | |||
| </script> | |||
| </body> | |||
| </html> | |||
| @@ -23,9 +23,10 @@ | |||
| <div class="media-body row"> | |||
| <div class="col-12 text-center"> | |||
| <img src="<?php echo $cfg_ml->fields['face'];?>" title="<?php echo $cfg_ml->M_LoginID;?>" class="user-logo mb-2"> | |||
| <div class="mb-2"> | |||
| <div class="my-3"> | |||
| <h3 class="d-inline-block mr-1 mb-2"><?php echo $cfg_ml->M_LoginID;?></h3> | |||
| <span class="btn btn-outline-success btn-sm"><?php echo $cfg_ml->M_MbType;?></span> | |||
| <span class="btn btn-outline-success btn-sm">高级会员</span> | |||
| <span class="btn btn-outline-warning btn-sm">少尉</span> | |||
| </div> | |||
| <p class="mb-0"> | |||
| <span class="mr-1">积分:<?php echo $cfg_ml->M_Scores;?></span> | |||
| @@ -55,7 +55,7 @@ | |||
| <label class="col-sm-2 col-form-label">缩略图</label> | |||
| <div class="col-sm-10"> | |||
| <img src="/static/web/img/thumbnail.jpg" class="thumbnail-md mr-3"> | |||
| <span class="btn btn-success btn-sm">上传缩略图<input type="file" name="" class="file-absolute"></span> | |||
| <span class="btn btn-success btn-sm">上传缩略图</span> | |||
| </div> | |||
| </div> | |||
| <div class="form-group row"> | |||
| @@ -58,7 +58,7 @@ | |||
| <label class="col-sm-2 col-form-label">缩略图</label> | |||
| <div class="col-sm-10"> | |||
| <img src="/static/web/img/thumbnail.jpg" class="thumbnail-md mr-3"> | |||
| <span class="btn btn-success btn-sm">修改缩略图<input type="file" name="" class="file-absolute"></span> | |||
| <span class="btn btn-success btn-sm">修改缩略图</span> | |||
| </div> | |||
| </div> | |||
| <div class="form-group row"> | |||