add.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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('AdminMatchmaker/index')}">红娘管理</a></li>
  12. <li class="active"><a href="javascript:;">添加红娘</a></li>
  13. </ul>
  14. <form action="{:url('AdminMatchmaker/addPost')}" method="post" class="form-horizontal js-ajax-form margin-top-20">
  15. <div class="row">
  16. <div class="col-md-9">
  17. <table class="table table-bordered">
  18. <tr>
  19. <th>姓名<span class="form-required">*</span></th>
  20. <td>
  21. <input class="form-control" type="text" name="post[name]"
  22. id="name" required value="" placeholder="请输入姓名"/>
  23. </td>
  24. </tr>
  25. <tr>
  26. <th>手机号<span class="form-required">*</span></th>
  27. <td>
  28. <input class="form-control" type="text" name="post[mobile]"
  29. id="mobile" required value="" placeholder="请输入手机号"/>
  30. </td>
  31. </tr>
  32. <tr>
  33. <th>密码<span class="form-required">*</span></th>
  34. <td>
  35. <input class="form-control" type="text" name="post[password]"
  36. id="password" required value="" placeholder="请输入密码"/>
  37. </td>
  38. </tr>
  39. </table>
  40. <div class="form-group">
  41. <div class="col-sm-offset-2 col-sm-10">
  42. <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
  43. <a class="btn btn-default" href="{:url('AdminMatchmaker/index')}">{:lang('BACK')}</a>
  44. </div>
  45. </div>
  46. </div>
  47. <div class="col-md-3">
  48. <table class="table table-bordered">
  49. <tr>
  50. <th><b>主图</b></th>
  51. </tr>
  52. <tr>
  53. <td>
  54. <div style="text-align: center;">
  55. <input type="hidden" name="post[avatar]" id="thumbnail" value="">
  56. <a href="javascript:uploadOneImage('图片上传','#thumbnail');">
  57. <img src="__TMPL__/public/assets/images/default-thumbnail.png"
  58. id="thumbnail-preview"
  59. width="135" style="cursor: pointer"/>
  60. </a>
  61. <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
  62. </div>
  63. </td>
  64. </tr>
  65. </table>
  66. </div>
  67. </div>
  68. </form>
  69. </div>
  70. <script type="text/javascript" src="__STATIC__/js/admin.js"></script>
  71. <script type="text/javascript">
  72. $(function () {
  73. $('.btn-cancel-thumbnail').click(function () {
  74. $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
  75. $('#thumbnail').val('');
  76. });
  77. });
  78. </script>
  79. </body>
  80. </html>