|
@@ -0,0 +1,65 @@
|
|
|
+<include file="public@header"/>
|
|
|
+<style>
|
|
|
+ .lw-block {
|
|
|
+ width:15px;
|
|
|
+ height:15px;
|
|
|
+ border:1px solid;
|
|
|
+ }
|
|
|
+</style>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+<div class="wrap js-check-wrap">
|
|
|
+ <ul class="nav nav-tabs">
|
|
|
+ <li class="active"><a href="javascript:;">所有奖品</a></li>
|
|
|
+ <li><a href="{:url('AdminLottery/add')}">添加奖品</a></li>
|
|
|
+ </ul>
|
|
|
+ <form class="js-ajax-form" action="" method="post">
|
|
|
+ <table class="table table-hover table-bordered table-list">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th width="50">ID</th>
|
|
|
+ <th>奖品名称</th>
|
|
|
+ <th width="160">奖品数量</th>
|
|
|
+ <th width="160">中奖概率</th>
|
|
|
+ <th width="160">主图</th>
|
|
|
+ <th width="160">奖品背景色</th>
|
|
|
+ <th width="160">操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <foreach name="list" item="vo">
|
|
|
+ <tr>
|
|
|
+ <td><b>{$vo.id}</b></td>
|
|
|
+ <td>{$vo.name}</td>
|
|
|
+ <td>{$vo.number}</td>
|
|
|
+ <td>{$vo.odds}</td>
|
|
|
+ <td>
|
|
|
+ <notempty name="vo.image">
|
|
|
+ <a href="javascript:parent.imagePreviewDialog('{:cmf_get_image_preview_url($vo.image)}');">
|
|
|
+ <i class="fa fa-photo fa-fw"></i>
|
|
|
+ </a>
|
|
|
+ <else/>
|
|
|
+ <i class="fa fa-close fa-fw"></i>
|
|
|
+ </notempty>
|
|
|
+ </td>
|
|
|
+ <td><div class="lw-block" style="background:{$vo.bg};"></div></td>
|
|
|
+ <td>
|
|
|
+ <a class="btn btn-xs btn-primary" href="{:url('AdminLottery/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
|
|
|
+ <a class="btn btn-xs btn-danger js-ajax-delete"
|
|
|
+ href="{:url('AdminLottery/delete',array('id'=>$vo['id']))}">删除</a>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </foreach>
|
|
|
+ </table>
|
|
|
+ <ul class="pagination">{$page|default=''}</ul>
|
|
|
+ </form>
|
|
|
+</div>
|
|
|
+<script src="__STATIC__/js/admin.js"></script>
|
|
|
+<script>
|
|
|
+
|
|
|
+ function reloadPage(win) {
|
|
|
+ win.location.reload();
|
|
|
+ }
|
|
|
+
|
|
|
+</script>
|
|
|
+</body>
|
|
|
+</html>
|