123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <?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="" >
- <?php if($model['pid'] != 0){ ?>
- <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 ($all as $val){?>
- <?php if($val['id'] != $model['id']){?>
- <option value="<?php echo $val['id']?>" <?php if($val['id'] == $model['pid']) echo 'selected' ?>><?php echo $val['city_name']?> </option>
- <?php } }?>
- </select>
- </div>
- <p style="color: red;">格式:主区域所属:海南省 区域名称:三亚市 </p>
- </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" value="<?php echo $model['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" value="<?php echo $model['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">经纬度:</label>
- <div class="layui-input-inline">
- <input type="text" name="ll" value="<?php echo $model['ll'] ?>" 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" <?php if($model['abroad'] == 1) echo 'selected'; ?> >国内</option>
- <option value="2" <?php if($model['abroad'] == 2) echo 'selected'; ?> >国外</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" value="<?= $model['a'] ?>" lay-verify="required" 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"><?= $model['dialogue'] ?></textarea>
- </div>
- </div>
- </div>
- <div class="layui-form-item mt">
- <input type="hidden" name="id" value="<?php echo $model['id']?>">
- <button class="layui-btn" lay-submit="" lay-filter="editcity">修 改</button>
- </div>
- </form>
- </div>
|