123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- <?php
- /**
- * Created by PhpStorm.
- * User: xiaofeng
- * Date: 2018/3/6
- * Time: 下午5:49
- */
- use backend\assets\AppAsset;
- AppAsset::addScript($this,Yii::$app->request->baseUrl.'/js/city.js');
- AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/pinyinjs/dict/pinyin_dict_notone.js");
- AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/pinyinjs/dict/pinyin_dict_withtone.js");
- AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/pinyinjs/pinyinUtil.js");
- AppAsset::addScript($this,Yii::$app->request->baseUrl."/static/pinyinjs/simple-input-method/simple-input-method.js");
- ?>
- <style>
- .xm_qytc_box{width:650px;margin:auto;margin-top:20px;}
- .layui-form-item{margin-bottom:0;}
- .xm_qytc_input{width:429px;}
- .mt{margin-top:20px;}
- </style>
- <div class="xm_qytc_box">
- <!-- <hr class="layui-bg-blue">-->
- <form class="layui-form layui-form-pane" action="" enctype="multipart/form-data">
- <!-- <div class="layui-form-item">-->
- <!-- <label class="layui-form-label">区域所属</label>-->
- <!-- <div class="layui-input-inline">-->
- <!-- <select name="cityid" lay-filter="aihao" >-->
- <!-- <option value="">请选择</option>-->
- <!-- --><?php //foreach ($model as $val){?>
- <!-- <option value="--><?php //echo $val['id']?><!--">--><?php //echo $val['city_name']?><!-- </option>-->
- <!-- --><?php //}?>
- <!-- </select>-->
- <!---->
- <!-- </div>-->
- <!-- </div>-->
- <?php if(isset($city_info['name'])){ ?>
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:red">*</span>主区域:</label>
- <div class="layui-input-inline">
- <input type="text" name="aaaaaaa" disabled="disabled" value="<?= $city_info['name'] ?>" placeholder="" autocomplete="off" class="layui-input layui_w_name">
- <input type="hidden" value="<?= $city_info['id'] ?>" name="pid">
- </div>
- </div>
- <?php } ?>
- <div style="height:20px"></div>
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:red">*</span>区域名称:</label>
- <div class="layui-input-inline">
- <input type="text" name="city_name" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input layui_w_name">
- </div>
- </div>
- <div style="height:20px"></div>
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:red">*</span>区域拼音:</label>
- <div class="layui-input-inline">
- <input type="text" name="pinyin" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input layui_w_spell">
- </div>
- </div>
- <div style="height:20px"></div>
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:red">*</span>经纬度:</label>
- <div class="layui-input-inline">
- <input type="text" name="ll" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div style="height:20px"></div>
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:red">*</span>所属国籍</label>
- <div class="layui-input-inline">
- <select name="abroad" lay-filter="aihao" >
- <option value="">请选择</option>
- <option value="1">国内</option>
- <option value="2">国外</option>
- </select>
- </div>
- </div>
- <?php if(Yii::$app->session['user_info']['user'] == 'admin'){ ?>
- <div style="height:20px"></div>
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:red">*</span>A记录:</label>
- <div class="layui-input-inline">
- <input type="text" name="a" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input layui_w_spell">
- </div>
- </div>
- <?php } ?>
- <div style="height:20px"></div>
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline" style="width:60%">
- <label class="layui-form-label">商务通:</label>
- <div class="layui-input-block">
- <textarea rows="6" name="dialogue" placeholder="请输入商务通" class="layui-textarea"></textarea>
- </div>
- </div>
- </div>
- <div class="layui-form-item mt">
- <button class="layui-btn" lay-submit="" lay-filter="addcity">提交</button>
- </div>
- </form>
- </div>
|