| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485 |
- <?php require_once 'header.php' ?>
- <link rel="stylesheet" href="/view/kindeditor/themes/default/default.css" />
- <script charset="utf-8" src="/view/kindeditor/kindeditor-all-min.js"></script>
- <script charset="utf-8" src="/view/kindeditor/CN.js"></script>
- <style>
- #DemoArea
- {
- width: 220px;
- height: 150px;
- }
- #DemoArea .box-ribbon {
- color: #fff;
- position: absolute;
- line-height: 24px;
- text-align: center;
- top: 175px;
- right: 592px;
- width: 100px;
- height: 25px;
- padding: 1px;
- border-radius:2px;
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.13);
- background-color: #5DB9E4;
- }
- #DemoArea img{
- border-radius:10px;
- margin:0;
- padding:0;
- margin-left: 10px;
- background-color: #ffffff;
- border: 1px solid #c3c3c3;
- width:100%;
- height:100%;
- }
- </style>
- <script type="text/javascript">
- <!--
- function test_demo_val(strValue)
- {
- var strId="DemoArea"
- document.getElementById(strId).style.borderRadius=strValue;
- document.getElementById("CodeValue").innerHTML=strValue;
- }
- //-->
- </script>
- <script>
- var editor;
- KindEditor.ready(function(K) {
- var editor = K.editor({
- allowFileManager : true
- });
- K('#image3').click(function() {
- editor.loadPlugin('image', function() {
- editor.plugin.imageDialog({
- showRemote : false,
- imageUrl : K('#xuke').val(),
- clickFn : function(url, title, width, height, border, align) {
- K('#xuke').val(url);
- editor.hideDialog();
- K('#image3-img').html("<img widht=200 height=200 src="+url+" />");
-
- }
- });
- });
- });
- K('#image2').click(function() {
- editor.loadPlugin('image', function() {
- editor.plugin.imageDialog({
- showRemote : false,
- imageUrl : K('#yingye').val(),
- clickFn : function(url, title, width, height, border, align) {
- K('#yingye').val(url);
- editor.hideDialog();
- K('#image2-img').html("<img widht=200 height=200 src="+url+" />");
- }
- });
- });
- });
- K('#image1').click(function() {
- editor.loadPlugin('image', function() {
- editor.plugin.imageDialog({
- showRemote : false,
- imageUrl : K('#fanbian').val(),
- clickFn : function(url, title, width, height, border, align) {
- K('#fanbian').val(url);
- editor.hideDialog();
- K('#image1-img').html("<img widht=200 height=200 src="+url+" />");
- }
- });
- });
- });
- K('#image4').click(function() {
- editor.loadPlugin('image', function() {
- editor.plugin.imageDialog({
- showRemote : false,
- imageUrl : K('#shenfen').val(),
- clickFn : function(url, title, width, height, border, align) {
- K('#shenfen').val(url);
- editor.hideDialog();
- K('#image4-img').html("<img widht=200 height=200 src="+url+" />");
- }
- });
- });
- });
- });
- </script>
- <div class="row wrapper wrapper-content">
- <div class="row">
- <div class="col-md-12">
- <div class="panel panel-default">
- <div class="panel-heading">
- <div class="panel-title">
- <em class="fa fa-list">
- </em>
- <?php echo $title ?>
- </div>
- </div>
- <?php if($this->userData['is_state']=='0'):?>
- <div class="alert alert-warning" style="margin-bottom:0;">
- <span class="glyphicon glyphicon-info-sign">
- </span>
- 您当前的账号状态为
- <span class="label label-danger">
- 未审核
- </span>
- ,请继续完善以下信息然后联系客服以便审核。
- </div>
- <?php endif;?>
- <div class="panel-body">
-
-
- <div class="content-box">
- <form class="form-ajax form-horizontal" action="/member/userinfo/editsave"
- method="post">
- <div class="form-group">
- <label class="col-md-2 control-label">
- 注册邮箱:
- </label>
-
- <div class="col-lg-6">
- <div class="input-group">
- <input type="text" class="form-control" value="<?php echo $userinfo['email']?>"
- disabled><span class="input-group-addon" >
- <?php echo $users['is_verify_email']==1 ? '已验证' : '未验证'?>
-
- </span>
- </div> </div>
- </div>
- <div class="form-group">
- <label class="col-md-2 control-label">
- 手机号码:
- </label>
- <div class="col-lg-6">
- <div class="input-group">
-
- <input type="text" name="phone" class="form-control"
- <?php echo $users['is_verify_phone']==1 ? 'value="'.substr_replace($userinfo['phone'],'****',3,4).'"'.' disabled' : 'value="'.$userinfo['phone'].'"'.' required' ?>>
- <span class="input-group-btn">
- <button class="btn btn-default" <?php echo $users['is_verify_phone']==1 ? 'disabled="disabled"' : '' ?> onclick="showContent('手机验证','/member/userinfo/addsms')" type="button">
- <?php echo $users['is_verify_phone']==1 ? '已验证' : '未验证' ?>
-
- </button></span>
- </div>
- </div>
- </div>
- <!---
- input-group-addon"
- --->
- <div class="form-group">
- <label class="col-md-2 control-label">
- 联系QQ:
- </label>
- <div class="col-md-6">
- <input type="text" name="qq" class="form-control" value="<?php echo $userinfo['qq']?>"
- required>
- </div>
- </div>
- <div class="form-group">
- <label class="col-md-2 control-label">
- 真实姓名:
- </label>
- <div class="col-md-6">
- <input type="text" name="realname" class="form-control" value="<?php echo $userinfo['realname']?>"
- required>
- </div>
- </div>
- <div class="form-group">
- <label class="col-md-2 control-label">
- 身份证号:
- </label>
- <div class="col-md-6">
- <input type="text" name="idcard" class="form-control" value="<?php echo $userinfo['idcard']?>"
- required>
- </div>
- </div>
- <div class="form-group">
- <label class="col-md-2 control-label">
- 收款银行:
- </label>
- <div class="col-md-6">
- <select name="batype" class="form-control">
- <?php foreach($this->
- setConfig->shipBank() as $bank):?>
- <option value="<?php echo $bank ?>" <?php echo $userinfo[ 'batype']==$bank ? ' selected' : ''?>
- >
- <?php echo $bank ?>
- </option>
- <?php endforeach;?>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-md-2 control-label">
- 收款银行账号:
- </label>
- <div class="col-md-6">
- <input type="text" name="baname" class="form-control" value="<?php echo $userinfo['baname']?>"
- placeholder="银行卡帐号" required>
- </div>
- </div>
- <div class="form-group">
- <label class="col-md-2 control-label">
- 开户银行地址:
- </label>
- <div class="col-md-6">
- <input type="text" name="baaddr" class="form-control" value="<?php echo $userinfo['baaddr']?>"
- placeholder="省份/城市/分行名称" required>
- </div>
- </div>
- <div class="form-group">
- <label class="col-md-2 control-label">
- 网站名称:
- </label>
- <div class="col-md-6">
- <input type="text" name="sitename" class="form-control" value="<?php echo $userinfo['sitename']?>"
- placeholder="填写网站或平台名称" required>
- </div>
- </div>
- <div class="form-group">
- <label class="col-md-2 control-label">
- 网站地址:
- </label>
- <div class="col-md-6">
- <input type="text" name="siteurl" class="form-control" value="<?php echo $userinfo['siteurl']?>"
- placeholder="http://" required>
- </div>
- </div>
-
-
-
- <div class="form-group">
- <label class="col-md-2 control-label">
- 身份证正面:
- </label>
- <div class="col-md-6">
- <input type="button" id="image4" value="选择图片" />(本地上传)
- <input type="hidden" name="shenfen" id="shenfen" class="form-control" value=""
- required>
- <div id="image4-img">
- <?php
-
- if (!$userinfo['shenfen']){
-
- echo "未上传,请上传身份证正面";
- }else{
-
- echo "<br><div id='DemoArea'><img src='".$userinfo['shenfen']."' width=300 /><div class='box-ribbon'>已通过认证</div></div>";
-
- }
-
- ?>
-
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-md-2 control-label">
- 身份证反面:
- </label>
- <div class="col-md-6">
-
- <input type="button" id="image1" value="选择图片" />(本地上传)
- <input type="hidden" name="fanbian" id="fanbian" class="form-control" value=""
- required>
- <div id="image1-img">
- <?php
-
- if (!$userinfo['fanbian']){
-
- echo "未上传,请上传身份证反面";
- }else{
-
- echo "<br><div id='DemoArea'><img src='".$userinfo['fanbian']."' width=300 /><div class='box-ribbon'>已通过认证</div></div>";
-
- }
-
- ?>
- </div>
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-md-2 control-label">
- 营业执照:
- </label>
- <div class="col-md-6">
- <input type="button" id="image2" value="选择图片" />(本地上传)<span style="color:red">个人用户请上传手持身份证照片</span>
- <input type="hidden" name="yingye" id="yingye" class="form-control" value=""
- required>
- <div id="image2-img">
-
- <?php
-
- if (!$userinfo['yingye']){
-
- echo "未上传,请上传营业执照";
- }else{
-
- echo "<br><div id='DemoArea'><img src='".$userinfo['yingye']."' width=300 /><div class='box-ribbon'>已通过认证</div></div>";
-
- }
-
- ?></div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-md-2 control-label">
- 开户许可证:
- </label>
- <div class="col-md-6">
-
- <input type="button" id="image3" value="选择图片" />(本地上传)<span style="color:red">个人用户请上传结算卡正面照片</span>
- <input type="hidden" name="xuke" id="xuke" class="form-control" value=""
- required>
- <div id="image3-img">
-
- <?php
-
- if (!$userinfo['xuke']){
-
- echo "未上传,请上传开户许可证";
- }else{
-
- echo "<br><div id='DemoArea'><img src='".$userinfo['xuke']."' width=300 /><div class='box-ribbon'>已通过认证</div></div>";
-
- }
-
- ?>
- </div>
- </div>
- </div>
-
- <?php if ($users['is_verify_phone']==1) : ?>
- <div class="form-group">
- <label class="col-md-2 control-label">
- 手机验证码:
- </label>
- <div class="col-lg-6">
- <div class="input-group">
- <input type="text" id="verifycode" name="verifycode" class="form-control" maxlength="5" required>
- <span class="input-group-btn">
-
- <button id="btnSendCode" class="btn btn-default getcode" onClick="getCode(this)" type="button">
- <i class="fa fa-mobile"></i> 获取手机验证码</button>
-
- </button></span>
-
- </div>
- </div>
- </div>
- <?php endif;?>
-
- <div class="form-group">
- <div class="col-md-offset-2 col-md-6">
- <button type="submit" class="btn btn-success">
-
- <i class="fa fa-check-square-o"></i>
- 保存设置
- </button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <script type="text/javascript">
- var InterValObj; //timer变量,控制时间
- var count = 60; //间隔函数,1秒执行
- var curCount;//当前剩余秒数
- var code = ""; //验证码
- var codeLength = 6;//验证码长度
- var tel = <?php echo $userinfo['phone'] ?>;
-
- function getCode(obj) {
- curCount = count;
- if(tel!=''){
- //验证手机有效性
- var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(17[0-9]{1})|(14[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
- alert(tel);
- if(!myreg.test(tel))
- {
- alert('请输入有效的手机号码!');
- return false;
- }
- $("#btnSendCode").attr("disabled", "true");
- $("#btnSendCode").html("请在" + curCount + "秒内输入验证码");
- InterValObj = window.setInterval(SetRemainTime, 1000); //启动计时器,1秒执行一次
- $.ajax({
- url: "/sms.php",
- type: "Post",
- data: "Tel=" + tel,
- success: function(msg) {
- if (msg == "ok") {
- alert("生成成功!请等侍短信提示。")
- return;
- }
- if (msg == "error") {
- alert("生成失败!请联系管理员")
- return;
- }
- alert(msg);
- }
- });
- }else{
- alert('请填写手机号码');
- }
- }
- function SetRemainTime() {
- if (curCount == 0) {
- window.clearInterval(InterValObj);//停止计时器
- $("#btnSendCode").removeAttr("disabled");//启用按钮
- $("#btnSendCode").html("重新发送验证码");
- code = ""; //清除验证码。如果不清除,过时间后,输入收到的验证码依然有效
- }
- else {
- curCount--;
- $("#btnSendCode").html("请在" + curCount + "秒内输入验证码");
- }
- }
- </script>
- <?php require_once 'footer.php' ?>
|