123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- <include file="public@header" />
- </head>
- <body>
- <div class="wrap js-check-wrap">
- <ul class="nav nav-tabs">
- <li class="active"><a href="{:url('Adminpost/index')}">文章管理</a></li>
- <li><a href="{:url('Adminpost/add')}">添加文章</a></li>
- </ul>
- <form class="well form-inline margin-top-20" method="post" action="{:url('Adminpost/index')}">
- 分类:
- <select name="termid" class="form-control" style="width: 150px;">
- <option value="">全部</option>
- <volist name="terms_list" id="vo">
- <option value="{$vo['id']}" <if condition="$_GET['termid'] eq $vo['id']"> selected</if>>{$vo['name']}</option>
- </volist>
- </select>
- 文章ID:
- <input type="text" class="form-control" name="id" style="width: 200px;" value="{$_GET['id']}" placeholder="请输入文章ID..." oninput = "value=value.replace(/[^\d]/g,'')">
- 关键字:
- <input type="text" class="form-control" name="keyword" style="width: 200px;" value="{$_GET['keyword']}" placeholder="请输入标题、关键词...">
- <input type="submit" class="btn btn-primary" value="搜索" />
- <a class="btn btn-danger" href="{:url('Adminpost/index')}">清空</a>
- </form>
- <form class="js-ajax-form" action="" method="post">
- <div class="table-actions">
- <button class="btn btn-primary btn-small js-ajax-submit" data-action="{:url('Adminpost/listordersset')}" type="submit">{:lang('SORT')}</button>
-
- <!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:url('Adminpost/check',array('check'=>1))}" data-subcheck="true">审核</button>
- <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:url('Adminpost/check',array('check'=>0))}" data-subcheck="true">取消审核</button>
-
- <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:url('Adminpost/tops',array('top'=>1))}" data-subcheck="true">置顶</button>
- <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:url('Adminpost/tops',array('top'=>0))}" data-subcheck="true">取消置顶</button>-->
- <button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:url('Adminpost/deletes')}" data-subcheck="true" data-msg="您确定删除吗?">{:lang('DELETE')}</button>
-
-
-
- </div>
- <table class="table table-hover table-bordered">
- <thead>
- <tr>
- <th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
- <th>序号</th>
- <th width="50">ID</th>
- <th>标题</th>
- <th>地址</th>
- <th>作者</th>
- <th>分类</th>
- <!-- <th>点击量</th> -->
- <!-- <th>关键字/来源/摘要/缩略图</th> -->
- <!-- <th>相关阅读</th> -->
- <th>发布时间</th>
- <!-- <th>状态</th> -->
- <th width="140">{:lang('ACTIONS')}</th>
- </tr>
- </thead>
- <tbody>
- <foreach name="posts" item="vo">
- <tr>
- <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}" title="ID:{$vo.id}"></td>
- <td><input name="listordersset[{$vo['id']}]" type="text" size="3" value="{$vo['orderno']}" class="input input-order"></td>
- <td><b>{$vo.id}</b></td>
- <td>{$vo.post_title}</td>
- <td><a href="{$site}/Appapi/page/news?id={$vo.id}" target="_blank">{$site}/Appapi/page/news?id={$vo.id}</a></td>
- <td>{$vo['userinfo']['user_nicename']}</td>
- <td>{$vo['termsinfo']['name']}</td>
- <!-- <td>{$vo.post_hits}</td>
- <td>
- <notempty name="vo.post_keywords">
- <i class="fa fa-check fa-fw"></i>
- <else/>
- <i class="fa fa-close fa-fw"></i>
- </notempty>
- <notempty name="vo.post_source">
- <i class="fa fa-check fa-fw"></i>
- <else/>
- <i class="fa fa-close fa-fw"></i>
- </notempty>
- <notempty name="vo.post_excerpt">
- <i class="fa fa-check fa-fw"></i>
- <else/>
- <i class="fa fa-close fa-fw"></i>
- </notempty>
-
- <notempty name="vo.smeta">
- <a onclick="image_preview_dialog('{:cmf_get_image_url($vo.smeta)}');">
- <i class="fa fa-photo fa-fw"></i>
- </a>
- </notempty>
- </td>
- <td>{$vo['post_relevant']}</td> -->
- <td>{:date('Y-m-d H:i:s',$vo['post_date'])}</td>
-
- <!--<td>
- <notempty name="vo.post_status">
- <a data-toggle="tooltip" title="已审核"><i class="fa fa-check"></i></a>
- <else/>
- <a data-toggle="tooltip" title="未审核"><i class="fa fa-close"></i></a>
- </notempty>
- <notempty name="vo.istop">
- <a data-toggle="tooltip" title="已置顶"><i class="fa fa-arrow-up"></i></a>
- <else />
- <a data-toggle="tooltip" title="未置顶"><i class="fa fa-arrow-down"></i></a>
- </notempty>
- </td>-->
- <td>
- <a class="btn btn-xs btn-primary" href="{:url('Adminpost/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
- <a class="btn btn-xs btn-danger js-ajax-delete" class="" href="{:url('Adminpost/del',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
- </td>
- </tr>
- </foreach>
- </tbody>
- </table>
- <div class="pagination">{$page}</div>
- </form>
- </div>
- <script src="__STATIC__/js/admin.js"></script>
- </body>
- </html>
|