huanggang пре 8 година
родитељ
комит
8ddaf966ec

+ 16 - 0
admin/control/stat_collection.php

@@ -0,0 +1,16 @@
+<?php
+
+defined('InShopNC') or exit('Access Invalid!');
+
+class stat_collectionControl extends SystemControl
+{
+
+    public function __construct(){
+        parent::__construct();
+    }
+
+    public function indexOp()
+    {
+        Tpl::showpage('stat.collection.list');
+    }
+}

+ 1 - 1
admin/language/zh_cn/layout.php

@@ -136,7 +136,7 @@ $lang['nc_statgoods']				= '商品分析';
 $lang['nc_statmarketing']			= '营销分析';
 $lang['nc_stataftersale']			= '售后分析';
 $lang['nc_statindustry']	        = '行业分析';
-$lang['nc_arrivalnotice']           = '到货通知分析';
+$lang['nc_arrivalnotice']           = '到货通知和收藏分析';
 
 $lang['nc_web_index']				= '首页管理';
 $lang['nc_product_recd']				= '商品推荐类型';

+ 2 - 1
admin/templates/default/stat.anotice.list.php

@@ -7,7 +7,8 @@
         <div class="item-title">
             <h3>到货通知分析</h3>
             <ul class="tab-base">
-                <li><a href=" " class="current"><span>到货通知分析</span></a ></li>
+                <li><a href="javascript:void(0)" class="current"><span>到货通知分析</span></a ></li>
+                <li><a href="index.php?act=stat_collection&op=index"><span>商品收藏分析</span></a ></li>
             </ul>
         </div>
     </div>

+ 99 - 0
admin/templates/default/stat.collection.list.php

@@ -0,0 +1,99 @@
+<?php defined('InShopNC') or exit('Access Invalid!');?>
+
+<!—收藏分析—>
+<div class="page">
+    <!— 页面导航 —>
+    <div class="fixed-bar">
+        <div class="item-title">
+            <h3>收藏分析</h3>
+            <ul class="tab-base">
+                <li><a href="index.php?act=stat_anotice&op=index"><span>到货通知分析</span></a ></li>
+                <li><a href="javascript:void(0)" class="current"><span>商品收藏分析</span></a ></li>
+            </ul>
+        </div>
+    </div>
+    <!— 帮助 —>
+    <table class="table tb-type2" id="prompt">
+        <tbody>
+        <tr class="space odd">
+            <th colspan="12" class="nobg"> <div class="title nomargin">
+                    <h5><?php echo $lang['nc_prompts'];?></h5>
+                    <span class="arrow"></span> </div>
+            </th>
+        </tr>
+        <tr>
+            <td>
+                <ul>
+                    <li>可以查询每个商品的被收藏的次数</li>
+                    <li>可以通过筛选条件查询品牌或商品被收藏的次数</li>
+                </ul>
+            </td>
+        </tr>
+        </tbody>
+    </table>
+    <form method="post" id="serch_collection" name="serch_collection">
+        <input type="hidden" name="form_submit" value="ok">
+        <table class="tb-type1 noborder search">
+            <tbody>
+            <tr>
+                <td>
+                    <label>被收藏次数:
+                        <select name="sort" id="sort">
+                            <option value="descending">从大到小</option>
+                            <option value="ascending">从小到大</option>
+                        </select>
+                    </label>
+                </td>
+            </tr>
+            <tr>
+                <td>
+                    <label>商品名称:<input type="text" name="goods_name"></label>
+                    <a href="javascript:void(0);" id="ncsubmit" class="btn-search" title="查询">&nbsp;</a >
+                </td>
+            </tr>
+            </tbody>
+        </table>
+    </form>
+    <script type="text/javascript">
+        $('#ncsubmit').on('click',function(){
+            $('#serch_collection').submit();
+        })
+    </script>
+
+    <form method="post">
+        <table class="table tb-type2">
+            <thead>
+            <tr class="space">
+                <th colspan="15" class="nobg"><?php echo $lang['nc_list'];?></th>
+            </tr>
+            <tr class="thead">
+                <th class="align-center">商品ID</th>
+                <th class="align-center">商品名称</th>
+                <th class="align-center">被收藏次数</th>
+            </tr>
+            </thead>
+            <tbody>
+            <?php if(!empty($output['list']) && is_array($output['list'])){ ?>
+                <?php foreach($output['list'] as $item){ ?>
+                    <tr class="hover">
+                        <td class="align-center"><?php echo $item['goods_id'];?></td>
+                        <td class="align-center"><?php echo $item['goods_name'];?></td>
+                        <td class="nowrap align-center"><?php echo $item['nc_count'];?></td>
+                    </tr>
+                <?php } ?>
+            <?php }else { ?>
+                <tr class="no_data">
+                    <td colspan="16"><?php echo $lang['nc_no_record'];?></td>
+                </tr>
+            <?php } ?>
+            </tbody>
+            <?php if(!empty($output['list']) && is_array($output['list'])){ ?>
+                <tfoot>
+                <tr class="tfoot">
+                    <td colspan="16"><div class="pagination"> <?php echo $output['page'];?> </div></td>
+                </tr>
+                </tfoot>
+            <?php } ?>
+        </table>
+    </form>
+</div>