index.html 2.6 KB
<include file="public@header" />
</head>
<style>
    th,td{
        text-align: center;
    }
</style>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('NoRecycle/index')}">不可回收类型列表</a></li>
        <li><a href="{:url('NoRecycle/add')}">添加不可回收类型</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('NoRecycle/index')}">
        关键字:
        <input type="text" class="form-control" name="keyword" style="width: 150px;" value="{$keyword|default=''}" placeholder="请输入关键字">
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:url('NoRecycle/index')}">清空</a>
    </form>
    <form class="js-ajax-form" action="" method="post">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>ID</th>
                <th>类型名称</th>
                <th>图片</th>
                <th>创建时间</th>
                <th>可回收物操作</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.recycle_name}</td>
                    <td>
                        <notempty name="$vo.thumbnail">
                            <img id="photo2-{$key}-preview"
                                 src="{:cmf_get_image_preview_url($vo['thumbnail'])}"
                                 style="height:36px;width: 36px;"
                                 onclick="parent.imagePreviewDialog(this.src);">
                        </notempty>
                    </td>
                    <td>{:date('Y-m-d H:i:s',$vo.create_time)}</td>
                    <td>
                        <a href='{:url("NoRecycle/addgoods",array("id"=>$vo["id"],"keyword"=>$keyword))}'>添加不可回收物</a>|
                        <a href='{:url("NoRecycle/showgoods",array("id"=>$vo["id"],"keyword"=>$keyword))}'>查看不可回收物</a>
                    </td>
                    <td>
                        <a href='{:url("NoRecycle/edit",array("id"=>$vo["id"],"keyword"=>$keyword))}'>{:lang('EDIT')}</a>|
                        <a class="js-ajax-delete" href="{:url('NoRecycle/delete',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>