芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/rentandbuyrealty.com/ProZigzagbus Web Admin 1.2/daily.php
fetchData($query); $query = "select count(*) as total_complete from tbl_book where book_date='".$timestamp."' and book_status='Completed' and operator_id=".$sdata["id"]; $totalcom = $h->fetchData($query); $query = "select count(*) as total_complete from tbl_book where book_date='".$timestamp."' and book_status='Cancelled' and operator_id=".$sdata["id"]; $totalcan = $h->fetchData($query); $query = "SELECT sum((subtotal -(cou_amt+commission)) - ((subtotal -cou_amt) * ope_commission/100)) as total_earning FROM `tbl_book` where book_status='Completed' and operator_id=".$sdata["id"]." and book_date='".$timestamp."'"; $sales = $h->fetchData($query); $bs=0; if(empty($sales['total_earning'])){}else {$bs = number_format((float)($sales['total_earning']), 2, '.', ''); } } else { $bs=0; if(empty($sales['total_earning'])){}else {$bs = number_format((float)($sales['total_earning']), 2, '.', ''); } $query = "select count(*) as total_book from tbl_book where book_date='".$timestamp."'"; $totalbook = $h->fetchData($query); $query = "select count(*) as total_complete from tbl_book where book_date='".$timestamp."' and book_status='Completed' "; $totalcom = $h->fetchData($query); $query = "select count(*) as total_complete from tbl_book where book_date='".$timestamp."' and book_status='Cancelled'"; $totalcan = $h->fetchData($query); $query = "SELECT sum((subtotal -(cou_amt+commission)) - ((subtotal -cou_amt) * ope_commission/100)) as total_earning FROM `tbl_book` where book_status='Completed' and book_date='".$timestamp."'"; $sales = $h->fetchData($query); $bs=0; if(empty($sales['total_earning'])){}else {$bs = number_format((float)($sales['total_earning']), 2, '.', ''); } } ?>