<?php
/**
* @author moufer<moufer@163.com>
* @copyright (c)2001-2009 Moufersoft
* @website www.modoer.com
*/
(!defined('IN_ADMIN') || !defined('IN_MUDDER')) && exit('Access Denied');

$_G['db']->from('dbpre_coupons');
$total = $_G['db']->count();
$_G['db']->sql_roll_back('from');
if(!$admin->is_founder) $_G['db']->where('city_id',$_CITY['aid']);
$_G['db']->where('status',0);
$check = $_G['db']->count();
$system[] = array(
    'name' => lang('couponcp_cphome_coupon_title'),
    'content' => $total . '&nbsp;<a href="' . cpurl('coupon','coupon','checklist') . '">'.lang('admincp_cphome_check_title').'</a>: ' . $check,
);
unset($total,$check);
?>