chengkun
2025-04-18 1bb985f32f2efe0f9dd69f3cf29a1c809b1cf96d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<?php /* Smarty version Smarty-3.1.21-dev, created on 2025-04-16 17:16:01
         compiled from "E:\ishangstudywebs\zhaopin\app\template\admin\admin_reward.htm" */ ?>
<?php /*%%SmartyHeaderCode:1565767ff7551a7c5c7-86259727%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'df1c9da67eefc370faf1f7d60a3e2a65a54b0759' => 
    array (
      0 => 'E:\\ishangstudywebs\\zhaopin\\app\\template\\admin\\admin_reward.htm',
      1 => 1634883866,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1565767ff7551a7c5c7-86259727',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'config' => 0,
    'pytoken' => 0,
    'rows' => 0,
    'key' => 0,
    'v' => 0,
    'total' => 0,
    'pagenum' => 0,
    'pages' => 0,
    'pagenav' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.21-dev',
  'unifunc' => 'content_67ff7551ac5505_95202580',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67ff7551ac5505_95202580')) {function content_67ff7551ac5505_95202580($_smarty_tpl) {?><?php if (!is_callable('smarty_function_searchurl')) include 'E:\\ishangstudywebs\\zhaopin\\app\\include\\libs\\plugins\\function.searchurl.php';
?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
        <link href="images/reset.css?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" rel="stylesheet" type="text/css" />
        <link href="images/system.css?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" rel="stylesheet" type="text/css" />
        <link href="images/table_form.css?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" rel="stylesheet" type="text/css" />
        <?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/js/jquery-1.8.0.min.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
"><?php echo '</script'; ?>
>
        <link href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/js/layui/css/layui.css?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" rel="stylesheet"
         type="text/css" />
        <?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/js/layui/layui.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
"><?php echo '</script'; ?>
>
        <?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/js/layui/phpyun_layer.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
"><?php echo '</script'; ?>
>
        <?php echo '<script'; ?>
 src="js/admin_public.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" language="javascript"><?php echo '</script'; ?>
>
        <title>后台管理</title>
    </head>
    <body class="body_ifm">
        <div class="infoboxp">
            
            <div class="tty-tishi_top">
            <div class="admin_new_search_box">
                <form action="index.php" name="myform" method="get">
                    <input name="m" value="reward" type="hidden" />
                    <div class="admin_new_search_name">搜索类型:</div>
 
                    <div class="admin_Filter_text formselect" did="dctype">
                        <input type="button" <?php if ($_GET['ctype']=='2') {?> value="兑换<?php echo $_smarty_tpl->tpl_vars['config']->value['integral_pricename'];?>
"
                         <?php } else { ?> value="商品名称" <?php }?> class="admin_Filter_but" id="bctype">
                        <input type="hidden" name="ctype" id="ctype" />
                        <div class="admin_Filter_text_box" style="display:none" id="dctype">
                            <ul>
                                <li><a href="javascript:void(0)" onClick="formselect('1','ctype','商品名称')">商品名称</a></li>
                                <li><a href="javascript:void(0)" onClick="formselect('2','ctype','兑换<?php echo $_smarty_tpl->tpl_vars['config']->value['integral_pricename'];?>
')">兑换<?php echo $_smarty_tpl->tpl_vars['config']->value['integral_pricename'];?>
</a></li>
                            </ul>
                        </div>
                    </div>
                    <input type="text" placeholder="输入你要搜索的关键字" value="<?php echo $_GET['keyword'];?>
" name='keyword' class="admin_Filter_search">
                    <input type="submit" name='search' value="搜索" class="admin_Filter_bth">
                    <a href="javascript:void(0)" onclick="$('.admin_screenlist_box').toggle();" class="admin_new_search_gj">高级搜索</a>
                    <a href="index.php?m=reward&c=add" class="admin_new_cz_tj">+ 添加商品</a>
                </form>
                <?php echo $_smarty_tpl->getSubTemplate ("admin/admin_search.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
 
            </div>
            <div class="clear"></div>
            </div>
 
            <div class="tty_table-bom">
            <div class="table-list">
                <div class="admin_table_border">
                    <iframe id="supportiframe" name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
                    <form action="index.php" name="myform" method="get" id='myform' target="supportiframe">
                        <input type="hidden" name="m" value="reward">
                        <input type="hidden" name="c" value="del">
                        <input type="hidden" name="pytoken" id='pytoken' value="<?php echo $_smarty_tpl->tpl_vars['pytoken']->value;?>
">
                        <table width="100%">
                            <thead>
                                <tr class="admin_table_top">
                                    <th width="5%"><label for="chkall">
                                            <input type="checkbox" id='chkAll' onclick='CheckAll(this.form)' />
                                        </label></th>
                                    <th> <?php if ($_GET['t']=="id"&&$_GET['order']=="asc") {?> <a href="<?php echo smarty_function_searchurl(array('order'=>'desc','t'=>'id','m'=>'reward','untype'=>'order,t'),$_smarty_tpl);?>
">编号<img
                                             src="images/sanj.jpg" /></a> <?php } else { ?> <a href="<?php echo smarty_function_searchurl(array('order'=>'asc','t'=>'id','m'=>'reward','untype'=>'order,t'),$_smarty_tpl);?>
">编号<img
                                             src="images/sanj2.jpg" /></a> <?php }?> </th>
                                    <th align="left">商品名称</th>
                                    <th>类别</th>
                                    <th>兑换<?php echo $_smarty_tpl->tpl_vars['config']->value['integral_pricename'];?>
</th>
                                    <th>限购数量</th>
                                    <th>库存</th>
                                    <th>排序</th>
                                    <th>状态</th>
                                    <th>推荐</th>
                                    <th>热门</th>
                                    <th class="admin_table_th_bg" width="120">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['rows']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
                                <tr align="center" <?php if (($_smarty_tpl->tpl_vars['key']->value+1)%2=='0') {?>class="admin_com_td_bg"<?php }?> id="list<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
">
                                    <td><input type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" name='del[]' onclick='unselectall()' rel="del_chk" /></td>
                                    <td><span><?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
</span></td>
                                    <td align="left"><?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
</td>
                                    <td><?php echo $_smarty_tpl->tpl_vars['v']->value['classname'];?>
</td>
                                    <td><?php echo $_smarty_tpl->tpl_vars['v']->value['integral'];?>
</td>
                                    <td><?php if ($_smarty_tpl->tpl_vars['v']->value['restriction']=="0") {?>不限<?php } else {
echo $_smarty_tpl->tpl_vars['v']->value['restriction'];
}?></td>
                                    <td><?php echo $_smarty_tpl->tpl_vars['v']->value['stock'];?>
</td>
                                    <td><?php echo $_smarty_tpl->tpl_vars['v']->value['sort'];?>
</td>
                                    <td id="status<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
"><?php if ($_smarty_tpl->tpl_vars['v']->value['status']=="1") {?><a href="javascript:void(0);" onClick="rec_up('index.php?m=reward&c=status','<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
','0','status');"><img
                                             src="../config/ajax_img/doneico.gif"></a><?php } else { ?><a href="javascript:void(0);" onClick="rec_up('index.php?m=reward&c=status','<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
','1','status');"><img
                                             src="../config/ajax_img/errorico.gif"></a><?php }?></td>
                                    <td id="rec<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
"><?php if ($_smarty_tpl->tpl_vars['v']->value['rec']=="1") {?><a href="javascript:void(0);" onClick="rec_up('index.php?m=reward&c=rec','<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
','0','rec');"><img
                                             src="../config/ajax_img/doneico.gif"></a><?php } else { ?><a href="javascript:void(0);" onClick="rec_up('index.php?m=reward&c=rec','<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
','1','rec');"><img
                                             src="../config/ajax_img/errorico.gif"></a><?php }?></td>
                                    <td id="hot<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
"><?php if ($_smarty_tpl->tpl_vars['v']->value['hot']=="1") {?><a href="javascript:void(0);" onClick="rec_up('index.php?m=reward&c=hot','<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
','0','hot');"><img
                                             src="../config/ajax_img/doneico.gif"></a><?php } elseif ($_smarty_tpl->tpl_vars['v']->value['hot']=="0") {?><a href="javascript:void(0);"
                                         onClick="rec_up('index.php?m=reward&c=hot','<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
','1','hot');"><img src="../config/ajax_img/errorico.gif"></a><?php }?></td>
                                    <td><a href="index.php?m=reward&c=add&id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" class="admin_new_c_bth admin_n_sc mt5">修改</a> <a
                                         href="javascript:void(0)" class="admin_new_c_bth admin_new_c_bth_sc" onClick="layer_del('确定要删除?', 'index.php?m=reward&c=del&del=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
');">删除</a></td>
                                </tr>
                                <?php } ?>
                                <tr>
                                    <td align="center"><input type="checkbox" id='chkAll2' onclick='CheckAll2(this.form)' /></td>
                                    <td colspan="11"><label for="chkAll2">全选</label>
                                        &nbsp;
                                        <input class="admin_button" type="button" name="delsub" value="删除所选" onclick="return really('del[]')" /></td>
                                </tr>
                                <?php if ($_smarty_tpl->tpl_vars['total']->value>$_smarty_tpl->tpl_vars['config']->value['sy_listnum']) {?>
                                <tr>
                                    <?php if ($_smarty_tpl->tpl_vars['pagenum']->value==1) {?>
                                    <td colspan="3"> 从 1 到 <?php echo $_smarty_tpl->tpl_vars['config']->value['sy_listnum'];?>
 ,总共 <?php echo $_smarty_tpl->tpl_vars['total']->value;?>
 条</td>
                                    <?php } elseif ($_smarty_tpl->tpl_vars['pagenum']->value>1&&$_smarty_tpl->tpl_vars['pagenum']->value<$_smarty_tpl->tpl_vars['pages']->value) {?> <td colspan="3"> 从 <?php echo ($_smarty_tpl->tpl_vars['pagenum']->value-1)*$_smarty_tpl->tpl_vars['config']->value['sy_listnum']+1;?>
 到 <?php echo $_smarty_tpl->tpl_vars['pagenum']->value*$_smarty_tpl->tpl_vars['config']->value['sy_listnum'];?>
 ,总共 <?php echo $_smarty_tpl->tpl_vars['total']->value;?>
 条</td>
                                        <?php } elseif ($_smarty_tpl->tpl_vars['pagenum']->value==$_smarty_tpl->tpl_vars['pages']->value) {?>
                                        <td colspan="3"> 从 <?php echo ($_smarty_tpl->tpl_vars['pagenum']->value-1)*$_smarty_tpl->tpl_vars['config']->value['sy_listnum']+1;?>
 到 <?php echo $_smarty_tpl->tpl_vars['total']->value;?>
 ,总共
                                            <?php echo $_smarty_tpl->tpl_vars['total']->value;?>
 条</td>
                                        <?php }?>
                                        <td colspan="9" class="digg"><?php echo $_smarty_tpl->tpl_vars['pagenav']->value;?>
</td>
                                </tr>
                                <?php }?>
                            </tbody>
                        </table>
                    </form>
                </div>
            </div>
            </div>
        </div>
        </div>
        <div id="bg" class="admin_bg"></div>
    </body>
</html>
<?php }} ?>