edit.php 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. use backend\assets\AppAsset;
  3. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/js/housenumber/housenumber.js')
  4. ?>
  5. <style>
  6. .layui_w_t {
  7. margin: 25px auto 0;
  8. width: 70%;
  9. }
  10. </style>
  11. <form class="layui-form layui-form-pane" id="signupForm">
  12. <div class="layui_w_t">
  13. <div class="layui-form-item">
  14. <div class="layui-inline">
  15. <label class="layui-form-label"><span style="color:red">*</span>楼盘号码</label>
  16. <div class="layui-input-block" style="width:270px;">
  17. <input type="text" name="number" value="<?= $model['number']; ?>"
  18. lay-verify="required" placeholder="多个号码以英文逗号,隔开" autocomplete="off" class="layui-input">
  19. </div>
  20. </div>
  21. </div>
  22. <div class="layui-form-item">
  23. <div class="layui-inline">
  24. <label class="layui-form-label"><span style="color:red">*</span>号码说明</label>
  25. <div class="layui-input-block" style="width:270px;">
  26. <input type="text" name="explain"
  27. value="<?= $model['explain']; ?>"
  28. lay-verify="required" placeholder="请输入号码说明" autocomplete="off" class="layui-input">
  29. </div>
  30. </div>
  31. </div>
  32. <div style="height:20px"></div>
  33. <div class="layui-form-item">
  34. <div class="layui-inline">
  35. <a class="layui-btn layui-btn-primary The_house" href="javascript:;">选择所属楼盘</a>
  36. </div>
  37. </div>
  38. <div id="feng_houseall"> <!-- ;楼盘容器 -->
  39. <?php if (!empty($house)): ?>
  40. <table class="layui-table">
  41. <colgroup>
  42. <col width="150">
  43. <col width="50">
  44. <col>
  45. </colgroup>
  46. <thead>
  47. <tr>
  48. <th>楼盘名称</th>
  49. <th>操作</th>
  50. </tr>
  51. <?php foreach ($house as $val): ?>
  52. <tr>
  53. <tr>
  54. <td><?= $val['name'] ?><input type="hidden" name="hid[]" value="<?= $val['id'] ?>"></td>
  55. <td class="feng_houseallnamedel"><a class="layui-btn layui-btn-danger layui-btn-xs">删除</a>
  56. </td>
  57. </tr>
  58. </tr>
  59. <?php endforeach; ?>
  60. </thead>
  61. <tbody>
  62. </tbody>
  63. </table>
  64. <?php endif; ?>
  65. </div>
  66. <div class="layui-form-item">
  67. <div class="layui-input-block xm_xcxqTc_tj" style="margin:20px 0 0 0;text-align:center;">
  68. <input type="hidden" name="id" value="<?= $model['id'] ?>">
  69. <button class="layui-btn" lay-submit="" lay-filter="edittel">提 交</button>
  70. </div>
  71. </div>
  72. </div>
  73. </form>