dc7c33b8fcee7e7bd31c0dbd8af651e4.php 5.4 KB
<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:52:"themes/admin_simpleboot3/admin\audit\audit_edit.html";i:1558748700;s:43:"themes/admin_simpleboot3/public\header.html";i:1547883254;}*/ ?>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <!-- Set render engine for 360 browser -->
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->


    <link href="__TMPL__/public/assets/themes/<?php echo cmf_get_admin_style(); ?>/bootstrap.min.css" rel="stylesheet">
    <link href="__TMPL__/public/assets/simpleboot3/css/simplebootadmin.css" rel="stylesheet">
    <link href="__STATIC__/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <style>
        form .input-order {
            margin-bottom: 0px;
            padding: 0 2px;
            width: 42px;
            font-size: 12px;
        }

        form .input-order:focus {
            outline: none;
        }

        .table-actions {
            margin-top: 5px;
            margin-bottom: 5px;
            padding: 0px;
        }

        .table-list {
            margin-bottom: 0px;
        }

        .form-required {
            color: red;
        }
    </style>
    <script type="text/javascript">
        //全局变量
        var GV = {
            ROOT: "__ROOT__/",
            WEB_ROOT: "__WEB_ROOT__/",
            JS_ROOT: "static/js/",
            APP: '<?php echo \think\Request::instance()->module(); ?>'/*当前应用名*/
        };
    </script>
    <script src="__TMPL__/public/assets/js/jquery-1.10.2.min.js"></script>
    <script src="__STATIC__/js/wind.js"></script>
    <script src="__TMPL__/public/assets/js/bootstrap.min.js"></script>
    <script>
        Wind.css('artDialog');
        Wind.css('layer');
        $(function () {
            $("[data-toggle='tooltip']").tooltip();
            $("li.dropdown").hover(function () {
                $(this).addClass("open");
            }, function () {
                $(this).removeClass("open");
            });
        });
    </script>
    <?php if(APP_DEBUG): ?>
        <style>
            #think_page_trace_open {
                z-index: 9999;
            }
        </style>
    <?php endif; ?>
<style type="text/css">
    .pic-list li {
        margin-bottom: 5px;
    }
</style>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="<?php echo url('Audit/audit_list'); ?>">审核列表</a></li>
        <li class="active"><a href="#">编辑审核</a></li>
    </ul>
    <form action="<?php echo url('Audit/audit_edit'); ?>" method="post" class="form-horizontal js-ajax-form margin-top-20">
        <div class="row">
            <div class="col-md-9">
                <table class="table table-bordered">
                    <input type="hidden" name="id" value="<?php echo $data['id']; ?>">
                    <input type="hidden" name="uid" value="<?php echo $data['uid']; ?>">
                    <tr>
                        <th>姓名</th>
                        <td>
                            <input class="form-control" type="text" name="name"
                                   id="title" required value="<?php echo $data['name']; ?>" placeholder="请输入姓名" disabled/>
                        </td>
                    </tr>
                    <tr>
                        <th>手机号</th>
                        <td><input class="form-control" type="text" name="phone" id="source" disabled value="<?php echo $data['phone']; ?>"
                                   placeholder="请输入手机号"></td>
                    </tr>
                    <tr>
                        <th>身份证号</th>
                        <td><input class="form-control" type="text" name="id_number" disabled  value="<?php echo $data['id_number']; ?>"
                                   placeholder="请输入身份证号"></td>
                    </tr>
                    <tr>
                        <th>身份证正面</th>
                        <td><img src="<?php echo cmf_get_image_url($data['img_front']); ?>" alt=""></td>
                    </tr>
                    <tr>
                        <th>身份证反面</th>
                        <td><img src="<?php echo cmf_get_image_url($data['img_back']); ?>" alt=""></td>
                    </tr>
                </table>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-primary js-ajax-submit">审核通过</button>
                        <button type="button" class="btn btn-primary js-ajax-submit" onclick="turn_down(<?php echo $data['id']; ?>,<?php echo $data['uid']; ?>)">审核驳回</button>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
<script>
    /**
     *点击驳回
     */
    function turn_down(id,uid){
        $.post("<?php echo url('Audit/turn_down'); ?>",{uid:uid},function(data){
            if(data){
                window.location.href = "<?php echo url('Audit/audit_list'); ?>";
            }else{
                alert('驳回失败');
            }
        });
    }
</script>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>
</html>