|
@@ -296,6 +296,19 @@ class Whlabel_bh extends Start_Controller {
|
|
|
}
|
|
|
**/
|
|
|
}
|
|
|
+
|
|
|
+ $start_time = time() - 3600*24*29;
|
|
|
+ $end_time = time() + 3600*24;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ $count_list = $this->whlabel_bh->find_all("extra_type = 1 and time > ".$start_time." and time < ".$end_time);
|
|
|
+ $wdysl = 0;
|
|
|
+ foreach($count_list as $k=>$v){
|
|
|
+ $wdysl = $wdysl + ($v['bhnum'] - $v['printsl']);
|
|
|
+ }
|
|
|
+ $this->data['wdysl'] = $wdysl;
|
|
|
if(isset($_SESSION['api']))
|
|
|
{
|
|
|
$user = $this->user->get_api($_SESSION['api']);
|