hotcityedit.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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/pushm/city.js");
  10. ?>
  11. <style>
  12. .layui_box {width:80%;margin:0 auto;margin-top:25px;}
  13. .layui-code, .layui-upload-list {margin-top:0;}
  14. hr {width:100%;margin:0 auto;}
  15. .mt {text-align:center;margin-top:15px;}
  16. .The_house {background:#FBFBFB;color:#333;}
  17. .The_house:hover {border:1px solid #a9a9a9;color:#333;}
  18. .xm_xcxqTc_button {margin-top:-20px;}
  19. </style>
  20. <form class="layui-form layui-form-pane">
  21. <div class="layui_box">
  22. <div class="layui-form-item">
  23. <label class="layui-form-label ">区域:</label>
  24. <div class="layui-input-inline" style="width:70%">
  25. <select name="city_id" lay-search="">
  26. <option value="" >请选择区域</option>
  27. <?php foreach ($city as $val){?>
  28. <option value="<?php echo $val['id']?>" <?= $val['checked']?> ><?php echo $val['city_name']?></option>
  29. <?php }?>
  30. </select>
  31. </div>
  32. </div>
  33. <div class="layui-form-item">
  34. <label class="layui-form-label" style="width:110px;"><span style="color:red">*</span>国内外</label>
  35. <div class="layui-input-block" style="width: 70%">
  36. <select name="abroad" lay-filter="aihao">
  37. <option value="">请选择分组</option>
  38. <option value="1" <?php if($model['abroad'] == 1) echo 'selected'; ?> >国内</option>
  39. <option value="2" <?php if($model['abroad'] == 2) echo 'selected'; ?> >国外</option>
  40. </select>
  41. </div>
  42. </div>
  43. <div class="layui-form-item">
  44. <label class="layui-form-label">地址:</label>
  45. <div class="layui-input-inline" style="width:70%">
  46. <input type="text" name="url" value="<?= $model['url'] ?>" placeholder="请输入完整的路径, 例:http://m.yigouf.com" autocomplete="off" class="layui-input">
  47. </div>
  48. </div>
  49. <!-- <div class="layui-form-item">-->
  50. <!-- <label class="layui-form-label ">标题:</label>-->
  51. <!-- <div class="layui-input-inline" style="width:43%">-->
  52. <!-- <input type="text" name="title" class="layui-input">-->
  53. <!-- </div>-->
  54. <!---->
  55. <!-- </div>-->
  56. <!-- <div class="layui-form-item xm_pr">-->
  57. <!-- <div class="layui-inline">-->
  58. <!-- <label class="layui-form-label"><span style="color:red">*</span>缩略图:</label>-->
  59. <!-- <div class="layui-inline">-->
  60. <!-- <div class="layui-upload">-->
  61. <!-- <div class="layui-upload-list lay_p_relative"> <!--低级添加 lay_p_relative-->
  62. <!-- <img class="layui-upload-img layui_magnify" name="img" src="" id="breviary_img" style="width:280px;height:90px;margin-left:10px;border:1px solid #ccc;">-->
  63. <!-- <p id="demoText"></p>-->
  64. <!-- </div>-->
  65. <!-- </div>-->
  66. <!-- </div>-->
  67. <!-- </div>-->
  68. <!-- <button type="button" class="layui-btn layui-btn-primary xm_xcxqTc_button" id="test1">选择图片</button>-->
  69. <!-- </div>-->
  70. <div class="layui-form-item mt">
  71. <input type="hidden" name="id" value="<?php echo $model['id'] ?>">
  72. <button class="layui-btn" lay-submit="" lay-filter="edit">提交</button>
  73. </div>
  74. </div>
  75. </form>