1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <?php
- use backend\assets\AppAsset;
- AppAsset::addScript($this, Yii::$app->request->baseUrl . "/js/pusha/discount.js");
- $get = Yii::$app->request->get();
- ?>
- <style>
- .layui_box {
- width: 80%;
- margin: 0 auto;
- margin-top: 25px;
- }
- .layui-code, .layui-upload-list {
- margin-top: 0;
- }
- hr {
- width: 100%;
- margin: 0 auto;
- }
- .mt {
- text-align: center;
- margin-top: 15px;
- }
- .The_house {
- background: #FBFBFB;
- color: #333;
- }
- .The_house:hover {
- border: 1px solid #a9a9a9;
- color: #333;
- }
- .xm_xcxqTc_button {
- margin-top: -20px;
- }
- </style>
- <form class="layui-form layui-form-pane">
- <div class="layui_box">
- <div class="layui-form-item">
- <label class="layui-form-label ">所属楼盘:</label>
- <div class="layui-input-inline" style="width:44.8%">
- <input type="text" id="house_name" name="house_name" disabled placeholder="请选择所属楼盘" autocomplete="off"
- <?php echo !empty($get['house_name']) ? 'value=' . $get['house_name'] : ''; ?> class="layui-input">
- </div>
- <div class="layui-inline"><a class="layui-btn layui-btn-primary The_house" href="javascript:;">选择所属楼盘</a>
- </div>
- </div>
- <?php if ((!empty($get['type']) && $get['type'] == 1) || (!empty($row) && $row['type'] == 1)) { ?>
- <div class="layui-form-item">
- <label class="layui-form-label">链接:</label>
- <div class="layui-input-inline" style="width:64%">
- <input type="text" name="url" <?php echo !empty($row) ? 'value=' . $row['url'] : ''; ?>
- 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:64%">
- <input type="text" name="title" <?php echo !empty($row) ? 'value=' . $row['title'] : ''; ?>
- placeholder="请输入标题内容" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">优惠:</label>
- <div class="layui-input-inline" style="width:64%">
- <input type="text" name="subject" <?php echo !empty($row) ? 'value=' . $row['subject'] : ''; ?>
- placeholder="请输入优惠信息" autocomplete="off" class="layui-input">
- </div>
- </div>
- <?php } ?>
- <div class="layui-form-item mt">
- <?php if (!empty($get['type'])) { ?>
- <input type="hidden" name="type" value="<?php echo $get['type'] ?>">
- <?php } ?>
- <?php if (!empty($row)) { ?>
- <input type="hidden" name="id" value="<?php echo $row['id'] ?>">
- <input type="hidden" name="hid" value="<?php echo $row['hid'] ?>" id="hiddenBox">
- <?php } ?>
- <button class="layui-btn" lay-submit="" lay-filter="edit-row">提交</button>
- </div>
- </div>
- </form>
|