| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <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('AdminLock/index')}">茶室列表</a></li>
- <li><a href="{:url('AdminLock/add')}">添加茶室</a></li>
- <li class="active"><a href="javascript:;">编辑茶室</a></li>
- </ul>
- <form action="{:url('AdminLock/editPost')}" method="post" class="form-horizontal js-ajax-form margin-top-20">
- <input type="hidden" name="id" value="{$info.id}">
- <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="name"
- id="name" required value="{$info.name}" placeholder="请输入茶室名"/>
- </td>
- </tr>
- <tr>
- <th>锁ID<span class="form-required">*</span></th>
- <td><input class="form-control" type="text" name="lock_id" id="lock_id" value="{$info.lock_id}"
- required placeholder="请输入锁ID"></td>
- </tr>
- <tr>
- <th>地址<span class="form-required">*</span></th>
- <td><input class="form-control" type="text" name="address" id="address" value="{$info.address}"
- required placeholder="请输入地址"></td>
- </tr>
- <tr>
- <th>备注</th>
- <td>
- <textarea class="form-control" name="comment" style="height: 50px;"
- placeholder="请填写备注">{$info.comment}</textarea>
- </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('EDIT')}</button>
- <a class="btn btn-default" href="{:url('AdminLock/index')}">{:lang('BACK')}</a>
- </div>
- </div>
- </div>
- <div class="col-md-3">
- <table class="table table-bordered">
- <tr>
- <th><b>缩略图</b>(建议284*150)</th>
- </tr>
- <tr>
- <td>
- <div style="text-align: center;">
- <input type="hidden" name="image" id="thumbnail" value="{$info.image}">
- <a href="javascript:uploadOneImage('图片上传','#thumbnail');">
- <if condition="empty($info.image)">
- <img src="__TMPL__/public/assets/images/default-thumbnail.png"
- id="thumbnail-preview"
- width="135" style="cursor: pointer"/>
- <else/>
- <img src="{:cmf_get_image_preview_url($info.image)}"
- id="thumbnail-preview"
- width="135" style="cursor: pointer"/>
- </if>
- </a>
- </div>
- </td>
- </tr>
- <tr>
- <th><b>状态<span class="form-required">*</span></b></th>
- </tr>
- <tr>
- <td>
- <label class="radio-inline">
- <input type="radio" name="is_show" value="1"
- <eq name="info.is_show" value="1">checked</eq>
- > 显示
- </label>
- <label class="radio-inline">
- <input type="radio" name="is_show" value="2"
- <eq name="info.is_show" value="2">checked</eq>
- > 隐藏
- </label>
- </td>
- </tr>
- </table>
- </div>
- </div>
- </form>
- </div>
- <script type="text/javascript" src="__STATIC__/js/admin.js"></script>
- </body>
- </html>
|