123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <?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/other/link.js')
- ?>
- <style>
- .xm_qytc_box {width:75%;margin:20px auto 0;}
- .xm_xcxqTc_tj {margin:30px 0 0 0;text-align:center;}
- .layui-form-pane .layui-input-block {margin-left:0;}
- </style>
- <div class="xm_qytc_box">
- <form class="layui-form layui-form-pane" id="signupForm">
- <div class="layui-form-item">
- <label class="layui-form-label">位置:</label>
- <div class="layui-input-inline" style="width:270px;">
- <select name="linktype" >
- <option value="">请选择</option>
- <?php foreach($menu as $val){?>
- <option value="<?php echo $val['id'] ?>" <?php if($val['id'] == $model['linktype']) echo 'selected' ?> ><?php echo $val['name']?></option>
- <?php }?>
- </select>
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">区域:</label>
- <div class="layui-input-inline" style="width:270px;">
- <select name="city" >
- <option value="">请选择</option>
- <?php foreach($city as $val){?>
- <option value="<?php echo $val['id'] ?>" <?php if($val['id'] == $model['city']) echo 'selected' ?> ><?php echo $val['city_name']?></option>
- <?php }?>
- </select>
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">标题:</label>
- <div class="layui-input-inline" style="width:270px;">
- <input type="text" name="title" lay-verify="required" value="<?php echo $model['title'] ?>" placeholder="请输入" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">链接:</label>
- <div class="layui-input-inline" style="width:270px;">
- <input type="text" name="url" lay-verify="required" value="<?php echo $model['url'] ?>" placeholder="来源地址" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">状态</label>
- <div class="layui-input-block">
- <input type="radio" name="state" value="1" title="正常" <?php if($model['state'] == 1) echo 'checked' ?>>
- <input type="radio" name="state" value="2" title="禁用" <?php if($model['state'] == 2) echo 'checked' ?>>
- </div>
- </div>
- <div class="layui-form-item">
- <div class="layui-input-block xm_xcxqTc_tj">
- <input type="hidden" name="id" value="<?php echo $model['id'] ?>">
- <button class="layui-btn" lay-submit="" lay-filter="save_link">提交</button>
- <!-- <input type="checkbox" class="xm_xcxqTc_button" name="like[write]" title="水印">-->
- </div>
- </div>
- </form>
- </div>
|