| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <include file="public@header"/>
- <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="{:url('AdminMatchmaker/index')}">红娘管理</a></li>
- <li class="active"><a href="javascript:;">添加红娘</a></li>
- </ul>
- <form action="{:url('AdminMatchmaker/addPost')}" method="post" class="form-horizontal js-ajax-form margin-top-20">
- <div class="row">
- <div class="col-md-9">
- <table class="table table-bordered">
- <tr>
- <th>姓名<span class="form-required">*</span></th>
- <td>
- <input class="form-control" type="text" name="post[name]"
- id="name" required value="" placeholder="请输入姓名"/>
- </td>
- </tr>
- <tr>
- <th>手机号<span class="form-required">*</span></th>
- <td>
- <input class="form-control" type="text" name="post[mobile]"
- id="mobile" required value="" placeholder="请输入手机号"/>
- </td>
- </tr>
- <tr>
- <th>密码<span class="form-required">*</span></th>
- <td>
- <input class="form-control" type="text" name="post[password]"
- id="password" required value="" placeholder="请输入密码"/>
- </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">{:lang('ADD')}</button>
- <a class="btn btn-default" href="{:url('AdminMatchmaker/index')}">{:lang('BACK')}</a>
- </div>
- </div>
- </div>
- <div class="col-md-3">
- <table class="table table-bordered">
- <tr>
- <th><b>主图</b></th>
- </tr>
- <tr>
- <td>
- <div style="text-align: center;">
- <input type="hidden" name="post[avatar]" id="thumbnail" value="">
- <a href="javascript:uploadOneImage('图片上传','#thumbnail');">
- <img src="__TMPL__/public/assets/images/default-thumbnail.png"
- id="thumbnail-preview"
- width="135" style="cursor: pointer"/>
- </a>
- <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
- </div>
- </td>
- </tr>
- </table>
- </div>
- </div>
- </form>
- </div>
- <script type="text/javascript" src="__STATIC__/js/admin.js"></script>
- <script type="text/javascript">
- $(function () {
- $('.btn-cancel-thumbnail').click(function () {
- $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
- $('#thumbnail').val('');
- });
- });
- </script>
- </body>
- </html>
|