index.html 1.9 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('rgoods/index')}">回收商品列表</a></li>
        <li><a href="{:url('rgoods/add')}">添加商品</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('rgoods/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('rgoods/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>
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.rgoods_name}</td>
                    <td>{$vo.recycle_type_name}</td>
                    <td>
                        <a href='{:url("rgoods/selectAttr",array("id"=>$vo["id"],"keyword"=>$keyword))}'>查看商品属性</a>|
                        <a href='{:url("rgoods/edit",array("id"=>$vo["id"],"keyword"=>$keyword))}'>{:lang('EDIT')}</a>|
                        <a class="js-ajax-delete" href="{:url('rgoods/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>