edit.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <include file="public@header"/>
  2. <style type="text/css">
  3. .pic-list li {
  4. margin-bottom: 5px;
  5. }
  6. </style>
  7. </head>
  8. <body>
  9. <div class="wrap js-check-wrap">
  10. <ul class="nav nav-tabs">
  11. <li><a href="{:url('AdminLock/index')}">茶室列表</a></li>
  12. <li><a href="{:url('AdminLock/add')}">添加茶室</a></li>
  13. <li class="active"><a href="javascript:;">编辑茶室</a></li>
  14. </ul>
  15. <form action="{:url('AdminLock/editPost')}" method="post" class="form-horizontal js-ajax-form margin-top-20">
  16. <input type="hidden" name="id" value="{$info.id}">
  17. <div class="row">
  18. <div class="col-md-9">
  19. <table class="table table-bordered">
  20. <tr>
  21. <th>茶室名<span class="form-required">*</span></th>
  22. <td>
  23. <input class="form-control" type="text" name="name"
  24. id="name" required value="{$info.name}" placeholder="请输入茶室名"/>
  25. </td>
  26. </tr>
  27. <tr>
  28. <th>锁ID<span class="form-required">*</span></th>
  29. <td><input class="form-control" type="text" name="lock_id" id="lock_id" value="{$info.lock_id}"
  30. required placeholder="请输入锁ID"></td>
  31. </tr>
  32. <tr>
  33. <th>地址<span class="form-required">*</span></th>
  34. <td><input class="form-control" type="text" name="address" id="address" value="{$info.address}"
  35. required placeholder="请输入地址"></td>
  36. </tr>
  37. <tr>
  38. <th>备注</th>
  39. <td>
  40. <textarea class="form-control" name="comment" style="height: 50px;"
  41. placeholder="请填写备注">{$info.comment}</textarea>
  42. </td>
  43. </tr>
  44. </table>
  45. <div class="form-group">
  46. <div class="col-sm-offset-2 col-sm-10">
  47. <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('EDIT')}</button>
  48. <a class="btn btn-default" href="{:url('AdminLock/index')}">{:lang('BACK')}</a>
  49. </div>
  50. </div>
  51. </div>
  52. <div class="col-md-3">
  53. <table class="table table-bordered">
  54. <tr>
  55. <th><b>缩略图</b>(建议284*150)</th>
  56. </tr>
  57. <tr>
  58. <td>
  59. <div style="text-align: center;">
  60. <input type="hidden" name="image" id="thumbnail" value="{$info.image}">
  61. <a href="javascript:uploadOneImage('图片上传','#thumbnail');">
  62. <if condition="empty($info.image)">
  63. <img src="__TMPL__/public/assets/images/default-thumbnail.png"
  64. id="thumbnail-preview"
  65. width="135" style="cursor: pointer"/>
  66. <else/>
  67. <img src="{:cmf_get_image_preview_url($info.image)}"
  68. id="thumbnail-preview"
  69. width="135" style="cursor: pointer"/>
  70. </if>
  71. </a>
  72. </div>
  73. </td>
  74. </tr>
  75. <tr>
  76. <th><b>状态<span class="form-required">*</span></b></th>
  77. </tr>
  78. <tr>
  79. <td>
  80. <label class="radio-inline">
  81. <input type="radio" name="is_show" value="1"
  82. <eq name="info.is_show" value="1">checked</eq>
  83. > 显示
  84. </label>
  85. <label class="radio-inline">
  86. <input type="radio" name="is_show" value="2"
  87. <eq name="info.is_show" value="2">checked</eq>
  88. > 隐藏
  89. </label>
  90. </td>
  91. </tr>
  92. </table>
  93. </div>
  94. </div>
  95. </form>
  96. </div>
  97. <script type="text/javascript" src="__STATIC__/js/admin.js"></script>
  98. </body>
  99. </html>