1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <?php
- use backend\assets\AppAsset;
- AppAsset::addScript($this, Yii::$app->request->baseUrl . "/js/daytoutiao/daytoutiao.js");
- ?>
- <style>
- body {
- padding: 15px;
- }
- .layui-elem-quote {
- margin-bottom: 0;
- border-left: none;
- padding: 10px;
- }
- .layui-table-page .layui-laypage {
- float: right;
- margin-right: 1%;
- }
- .layui-table-view .layui-form-switch {
- right: 0px
- }
- </style>
- <form action="" class="layui-form">
- <fieldset class="layui-elem-field">
- <legend>搜索信息</legend>
- <div class="layui-field-box">
- <blockquote class="quoteBox demoTable">
- <div class="layui-inline">
- <div class="layui-input-inline">
- <input type="text" name="input_name" class="layui-input searchVal" placeholder="请输入搜索的内容"/>
- </div>
- </div>
- <div class="layui-inline">
- <div class="layui-input-inline">
- <select name="input_list_id" id="">
- <option value="">选择头条栏目</option>
- <?php if(!empty($data)){ foreach ($data as $val){?>
- <option value="<?=$val['id']?>"><?=$val['day_title']?></option>
- <?php }} ?>
- </select>
- </div>
- </div>
- <div class="layui-inline">
- <!-- <label class="layui-form-label">是否有效</label>-->
- <div class="layui-input-inline">
- <select name="input_efficacious" id="">
- <option value="">是否有效</option>
- <option value="1">未知</option>
- <option value="2">有效</option>
- </select>
- </div>
- </div>
- <div class="layui-inline">
- <!-- <label class="layui-form-label">是否发送</label>-->
- <div class="layui-input-inline">
- <select name="input_send_state" id="">
- <option value="">是否发送邮件</option>
- <option value="1">未发送</option>
- <option value="2">已发送</option>
- </select>
- </div>
- </div>
- <div class="layui-inline">
- <a class="layui-btn search_btn" data-type="reload"><i class="layui-icon layui-icon-search"></i>搜索</a>
- </div>
- </blockquote>
- </div></fieldset>
- </form>
- <blockquote class="layui-elem-quote quoteBox demoTable">
- <div class="layui-btn-group demoTable">
- <a class="layui-btn" data-type="addData">新增</a>
- </div>
- <div class="layui-btn-group demoTable">
- <a class="layui-btn layui-btn-warm" data-type="setWx">设为有效</a>
- </div>
- </blockquote>
- <table id="toutiaolist" lay-filter="toutiaolist"></table>
- <script type="text/html" id="toutiaofunc">
- <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
- <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
- </script>
|