addhome.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/city.js');
  10. AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/pinyinjs/dict/pinyin_dict_notone.js");
  11. AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/pinyinjs/dict/pinyin_dict_withtone.js");
  12. AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/pinyinjs/pinyinUtil.js");
  13. AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/pinyinjs/simple-input-method/simple-input-method.js");
  14. ?>
  15. <style>
  16. .xm_qytc_box{width:650px;margin:auto;margin-top:20px;}
  17. .layui-form-item{margin-bottom:0;}
  18. .xm_qytc_input{width:429px;}
  19. .mt{margin-top:20px;}
  20. </style>
  21. <div class="xm_qytc_box">
  22. <!-- <hr class="layui-bg-blue">-->
  23. <form class="layui-form layui-form-pane" action="" enctype="multipart/form-data">
  24. <!-- <div class="layui-form-item">-->
  25. <!-- <label class="layui-form-label">区域所属</label>-->
  26. <!-- <div class="layui-input-inline">-->
  27. <!-- <select name="cityid" lay-filter="aihao" >-->
  28. <!-- <option value="">请选择</option>-->
  29. <!-- --><?php //foreach ($model as $val){?>
  30. <!-- <option value="--><?php //echo $val['id']?><!--">--><?php //echo $val['city_name']?><!-- </option>-->
  31. <!-- --><?php //}?>
  32. <!-- </select>-->
  33. <!---->
  34. <!-- </div>-->
  35. <!-- </div>-->
  36. <?php if(isset($city_info['name'])){ ?>
  37. <div class="layui-form-item">
  38. <label class="layui-form-label"><span style="color:red">*</span>主区域:</label>
  39. <div class="layui-input-inline">
  40. <input type="text" name="aaaaaaa" disabled="disabled" value="<?= $city_info['name'] ?>" placeholder="" autocomplete="off" class="layui-input layui_w_name">
  41. <input type="hidden" value="<?= $city_info['id'] ?>" name="pid">
  42. </div>
  43. </div>
  44. <?php } ?>
  45. <div style="height:20px"></div>
  46. <div class="layui-form-item">
  47. <label class="layui-form-label"><span style="color:red">*</span>区域名称:</label>
  48. <div class="layui-input-inline">
  49. <input type="text" name="city_name" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input layui_w_name">
  50. </div>
  51. </div>
  52. <div style="height:20px"></div>
  53. <div class="layui-form-item">
  54. <label class="layui-form-label"><span style="color:red">*</span>区域拼音:</label>
  55. <div class="layui-input-inline">
  56. <input type="text" name="pinyin" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input layui_w_spell">
  57. </div>
  58. </div>
  59. <div style="height:20px"></div>
  60. <div class="layui-form-item">
  61. <label class="layui-form-label"><span style="color:red">*</span>经纬度:</label>
  62. <div class="layui-input-inline">
  63. <input type="text" name="ll" autocomplete="off" class="layui-input">
  64. </div>
  65. </div>
  66. <div style="height:20px"></div>
  67. <div class="layui-form-item">
  68. <label class="layui-form-label"><span style="color:red">*</span>所属国籍</label>
  69. <div class="layui-input-inline">
  70. <select name="abroad" lay-filter="aihao" >
  71. <option value="">请选择</option>
  72. <option value="1">国内</option>
  73. <option value="2">国外</option>
  74. </select>
  75. </div>
  76. </div>
  77. <?php if(Yii::$app->session['user_info']['user'] == 'admin'){ ?>
  78. <div style="height:20px"></div>
  79. <div class="layui-form-item">
  80. <label class="layui-form-label"><span style="color:red">*</span>A记录:</label>
  81. <div class="layui-input-inline">
  82. <input type="text" name="a" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input layui_w_spell">
  83. </div>
  84. </div>
  85. <?php } ?>
  86. <div style="height:20px"></div>
  87. <div class="layui-form-item" style="margin-bottom:-5px">
  88. <div class="layui-inline" style="width:60%">
  89. <label class="layui-form-label">商务通:</label>
  90. <div class="layui-input-block">
  91. <textarea rows="6" name="dialogue" placeholder="请输入商务通" class="layui-textarea"></textarea>
  92. </div>
  93. </div>
  94. </div>
  95. <div class="layui-form-item mt">
  96. <button class="layui-btn" lay-submit="" lay-filter="addcity">提交</button>
  97. </div>
  98. </form>
  99. </div>