You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zhishifufei_php/application/admin/view/article/consult/index.php

1 line
5.0 KiB

11 months ago
{extend name="public/container"} {block name="content"} <div class="row"> <div class="col-sm-12"> <div class="ibox float-e-margins"> <div class="ibox-title"> <button type="button" class="btn btn-w-m btn-primary add-filed">添加文章</button> </div> <div class="ibox-content"> <div class="row"> <div class="m-b m-l"> <form action="" class="form-inline"> <select name="consult_type" aria-controls="editable" class="form-control input-sm" style="padding-top: 4px;"> <option value="0">全部</option> <option value="1" {eq name="$where.consult_type" value="1"}selected="selected"{/eq}>图片</option> <option value="2" {eq name="$where.consult_type" value="2"}selected="selected"{/eq}>视频</option> </select> <div class="input-group" style="margin-top: 5px"> <input type="text" placeholder="请输入关键词" class="input-sm form-control" name="title" value="{$where.title}"> <span class="input-group-btn"><button type="submit" class="btn btn-sm btn-primary"> <i class="fa fa-search" ></i>搜索</button> </span> </div> </form> </div> </div> <div class="table-responsive"> <table class="table table-striped table-bordered"> <thead> <tr> <th class="text-center">编号</th> <th class="text-center">文章标题</th> <th class="text-center">状态</th> <th class="text-center">浏览量</th> <th class="text-center">排序</th> <th class="text-center">查看文章</th> <th class="text-center">操作</th> </tr> </thead> <tbody class=""> {volist name="list" id="vo"} <tr> <td class="text-center"> {$vo.id} </td> <td class="text-center"> {$vo.title} </td> <td class="text-center"> {if condition="$vo['status'] eq 1"} <i class="fa fa-check text-navy"></i> {else/} <i class="fa fa-close text-danger"></i> {/if} </td> <td class="text-center"> {$vo.visit} </td> <td class="text-center"> {$vo.sort} </td> <td class="text-center"> <button type="button" class="btn btn-xs btn-primary" onclick="$eb.createModalFrame(this.innerText,'{:Url('edit_content',array('id'=>$vo['id'],'type'=>'content'))}')"><i class="fa fa-pencil"></i> 编辑内容</button> </td> <td class="text-center"> <button class="btn btn-info btn-xs" type="button" onclick="$eb.createModalFrame('编辑','{:Url('edit',array('id'=>$vo['id']))}')"><i class="fa fa-paste"></i> 编辑</button> <button class="btn btn-warning btn-xs del_config_tab" data-id="{$vo.id}" type="button" data-url="{:Url('delete',array('id'=>$vo['id']))}" ><i class="fa fa-warning"></i> 删除 </button>