Browse Source

admin fix

xiaoyu 2 years ago
parent
commit
e71f80546c

+ 10 - 0
admin/control/ordersendlist.php

@@ -166,6 +166,7 @@ class ordersendlistControl extends SystemControl
         Tpl::output('order_list', $order_list);
         Tpl::output('merchant_list', $merchant_list);
         Tpl::output('provider_list', $provider_list);
+        Tpl::output('except_stat', $this->except_stat());
         Tpl::output('show_page', $model_refill_order->showpage());
         Tpl::showpage('refill.order.send.index');
     }
@@ -743,6 +744,7 @@ class ordersendlistControl extends SystemControl
         }
         Tpl::output('merchant_list', $merchants);
         Tpl::output('list', $list);
+        Tpl::output('except_stat', $this->except_stat());
         Tpl::output('show_page', $mod_except->showpage());
         Tpl::showpage('refill.order.exception');
     }
@@ -771,4 +773,12 @@ class ordersendlistControl extends SystemControl
         }
         showMessage('操作完成');
     }
+
+    private function except_stat()
+    {
+        $mod_except = Model('refill_exception');
+        $cond['except_state'] = 0;
+        $except_stat = $mod_except->where($cond)->count();
+        return intval($except_stat);
+    }
 }

+ 7 - 1
admin/templates/default/refill.order.exception.php

@@ -90,7 +90,13 @@
                 <li><a href="index.php?act=ordersendlist&op=monitor_notify"><span>渠道回调超时监控</span></a></li>
                 <li><a href="index.php?act=ordersendlist&op=neterr_order"><span>网络错误订单监控</span></a></li>
                 <li><a href="index.php?act=ordersendlist&op=notify_err_order"><span>未回调订单监控</span></a></li>
-                <li><a href="JavaScript:void(0);" class="current"><span>异常订单监控</span><span class="badge">1</span></a></li>
+                <li>
+                    <a href="JavaScript:void(0);" class="current"><span>异常订单监控</span>
+                        <?php if($output['except_stat'] > 0){?>
+                        <span class="badge"><?php echo $output['except_stat'];?></span>
+                        <?php }?>
+                    </a>
+                </li>
             </ul>
         </div>
     </div>

+ 7 - 1
admin/templates/default/refill.order.send.index.php

@@ -71,7 +71,13 @@
                 <li><a href="index.php?act=ordersendlist&op=monitor_notify"><span>渠道回调超时监控</span></a></li>
                 <li><a href="index.php?act=ordersendlist&op=neterr_order"><span>网络错误订单监控</span></a></li>
                 <li><a href="index.php?act=ordersendlist&op=notify_err_order"><span>未回调订单监控</span></a></li>
-                <li><a href="index.php?act=ordersendlist&op=order_exception"><span>异常订单监控</span></a></li>
+                <li>
+                    <a href="index.php?act=ordersendlist&op=order_exception"><span>异常订单监控</span>
+                        <?php if($output['except_stat'] > 0){?>
+                            <span class="badge"><?php echo $output['except_stat'];?></span>
+                        <?php }?>
+                    </a>
+                </li>
             </ul>
         </div>
     </div>