edit.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/3/6
  6. * Time: 下午5:49
  7. */
  8. use backend\assets\AppAsset;
  9. AppAsset::addScript($this,Yii::$app->request->baseUrl.'/js/zt/zt.js')
  10. ?>
  11. <style>
  12. .layui_w_t {margin:25px auto 0;width:70%;}
  13. </style>
  14. <form class="layui-form layui-form-pane" id="signupForm">
  15. <div class="layui_w_t">
  16. <div class="layui-form-item">
  17. <div class="layui-inline">
  18. <label class="layui-form-label"><span style="color:red">*</span>专题名</label>
  19. <div class="layui-input-block" style="width:270px;">
  20. <!-- id="EventDate"-->
  21. <input type="text" name="zt_name" value="<?=empty($model['zt_name'])? '' : $model['zt_name']; ?>" lay-verify="required" placeholder="请输入专题名称" autocomplete="off" class="layui-input">
  22. </div>
  23. </div>
  24. </div>
  25. <div class="layui-form-item">
  26. <div class="layui-inline">
  27. <label class="layui-form-label"><span style="color:red">*</span>专题有效期</label>
  28. <div class="layui-input-block" style="width:270px;">
  29. <!-- id="EventDate"-->
  30. <input type="text" name="expiration_date" value="<?=empty($model['expiration_date'])? '' : $model['expiration_date']; ?>" lay-verify="required" placeholder="请输入有效期" autocomplete="off" class="layui-input">
  31. </div>
  32. </div>
  33. </div>
  34. <div style="height:20px"></div>
  35. <div class="layui-form-item xm_pr">
  36. <div class="layui-inline">
  37. <label class="layui-form-label" style="width:135px">PC图片:</label>
  38. <div class="layui-inline">
  39. <div class="layui-upload">
  40. <div class="layui-upload-list xm_xcxqTc_img">
  41. <img class="layui-upload-img" name="img[]" id="demo1" style="width:100px;height:80px;margin-left:10px;" src="<?=$model['pc_img']?>">
  42. <p id="demoText"></p>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. <button type="button" class="layui-btn xm_xcxqTc_button" id="test1">上传图片</button>
  48. </div>
  49. <div style="height:20px"></div>
  50. <div class="layui-form-item xm_pr">
  51. <div class="layui-inline">
  52. <label class="layui-form-label" style="width:135px">M封面图:</label>
  53. <div class="layui-inline">
  54. <div class="layui-upload">
  55. <div class="layui-upload-list xm_xcxqTc_img">
  56. <img class="layui-upload-img" id="demo2" style="width:100px;height:80px;margin-left:10px;" src="<?=$model['m_img']?>">
  57. <p id="demoText"></p>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. <button type="button" class="layui-btn xm_xcxqTc_button" id="test2">上传图片</button>
  63. </div>
  64. <div class="layui-form-item">
  65. <div class="layui-inline"><a class="layui-btn layui-btn-primary The_house" href="javascript:;">选择所属楼盘</a></div>
  66. </div>
  67. <div id="feng_houseall"> <!-- ;楼盘容器 -->
  68. <?php if(!empty($house)):?>
  69. <table class="layui-table">
  70. <colgroup>
  71. <col width="150">
  72. <col width="50">
  73. <col>
  74. </colgroup>
  75. <thead>
  76. <tr>
  77. <th>楼盘名称</th>
  78. <th>操作</th>
  79. </tr>
  80. <?php foreach ($house as $val):?>
  81. <tr>
  82. <tr>
  83. <td><?=$val['name']?><input type="hidden" name="hid[]" value="<?=$val['id']?>" ></td>
  84. <td class="feng_houseallnamedel"> <a class="layui-btn layui-btn-danger layui-btn-xs" >删除</a></td>
  85. </tr>
  86. </tr>
  87. <?php endforeach;?>
  88. </thead>
  89. <tbody>
  90. </tbody>
  91. </table>
  92. <?php endif;?>
  93. </div>
  94. <div class="layui-form-item">
  95. <div class="layui-input-block xm_xcxqTc_tj" style="margin:20px 0 0 0;text-align:center;">
  96. <input type="hidden" name="id" value="<?=$model['id']?>">
  97. <button class="layui-btn" lay-submit="" lay-filter="edittel">提交</button>
  98. <!-- <input type="checkbox" class="xm_xcxqTc_button" name="like[write]" title="水印">-->
  99. </div>
  100. </div>
  101. </div>
  102. </form>