Changeset 7247 for temp/trunk/html
- Timestamp:
- 2006/11/01 19:05:57 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/admin/total/index.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/admin/total/index.php
r7246 r7247 78 78 $arrRet = $objFormParam->getHashArray(); 79 79 80 sfprintr($objFormParam->getHashArray());81 sfprintr($objPage);82 exit();83 84 80 // ÆþÎÏ¥¨¥é¡¼¤Ê¤· 85 81 if (count($objPage->arrErr) == 0) { … … 90 86 switch ($key) { 91 87 case 'search_startyear': 92 $sdate = $ _POST['search_startyear'] . "/" . $_POST['search_startmonth'] . "/" . $_POST['search_startday'];88 $sdate = $objFormParam->getValue('search_startyear') . "/" . $objFormParam->getValue('search_startmonth') . "/" . $objFormParam->getValue('search_startday'); 93 89 break; 94 90 case 'search_endyear': 95 $edate = $ _POST['search_endyear'] . "/" . $_POST['search_endmonth'] . "/" . $_POST['search_endday'];91 $edate = $objFormParam->getValue('search_endyear') . "/" . $objFormParam->getValue('search_endmonth') . "/" . $objFormParam->getValue('search_endday'); 96 92 break; 97 93 case 'search_startyear_m': 98 list($sdate, $edate) = sfTermMonth($ _POST['search_startyear_m'], $_POST['search_startmonth_m'], CLOSE_DAY);94 list($sdate, $edate) = sfTermMonth($objFormParam->getValue('search_startyear_m'), $objFormParam->getValue('search_startmonth_m'), CLOSE_DAY); 99 95 break; 100 96 default: … … 118 114 lfRealTimeDailyTotal($sdate, $edate); 119 115 // ¸¡º÷·ë²Ì¤Î¼èÆÀ 120 $objPage = lfGetOrderProducts($type, $sdate, $edate, $objPage );116 $objPage = lfGetOrderProducts($type, $sdate, $edate, $objPage, true, $mode); 121 117 break; 122 118 // ¿¦¶ÈÊ̽¸·× … … 168 164 } 169 165 170 if($ _POST['mode']== 'csv') {166 if($mode == 'csv') { 171 167 // CSV½ÐÎÏ¥¿¥¤¥È¥ë¹Ô¤Î¼èÆÀ 172 168 list($arrTitleCol, $arrDataCol) = lfGetCSVColum($page, $objPage->keyname); … … 178 174 } 179 175 180 if($ _POST['mode']== 'pdf') {176 if($mode == 'pdf') { 181 177 // CSV½ÐÎÏ¥¿¥¤¥È¥ë¹Ô¤Î¼èÆÀ 182 178 list($arrTitleCol, $arrDataCol, $arrColSize, $arrAlign, $title) = lfGetPDFColum($page, $type, $objPage->keyname); … … 185 181 // PDF½ÐÎÏÍÑ 186 182 $graph_name = basename($objPage->tpl_image); 187 lfPDFDownload($graph_name, $head . $data, $arrColSize, $arrAlign, $sdate, $edate, $title );188 exit; 183 lfPDFDownload($graph_name, $head . $data, $arrColSize, $arrAlign, $sdate, $edate, $title, $page); 184 exit; 189 185 } 190 186 } … … 218 214 //--------------------------------------------------------------------------------------------------------------------------- 219 215 /* PDF½ÐÎÏ */ 220 function lfPDFDownload($image, $table, $arrColSize, $arrAlign, $sdate, $edate, $title ) {216 function lfPDFDownload($image, $table, $arrColSize, $arrAlign, $sdate, $edate, $title, $page = "") { 221 217 222 218 $objPdf = new SC_Pdf(); … … 253 249 $objPdf->writeBlock(); 254 250 // ºÇ½ª¥Ú¡¼¥¸¤Î¤ß¡¢¾¦ÉÊÊ̽¸·×¤Ï¹ç·×¤¬¤Ê¤¤¤Î¤ÇºÇ½ª¹Ô¤Î¿§¤òÊѹ¹¤·¤Ê¤¤¡£ 255 if($page == $page_max && $ _POST['page']!= 'products') {251 if($page == $page_max && $page != 'products') { 256 252 $last_color_flg = true; 257 253 } else { … … 602 598 603 599 /** ¾¦ÉÊÊ̽¸·× **/ 604 function lfGetOrderProducts($type, $sdate, $edate, $objPage, $graph = true ) {600 function lfGetOrderProducts($type, $sdate, $edate, $objPage, $graph = true, $mode = "") { 605 601 list($where, $arrval) = lfGetWhereMember('create_date', $sdate, $edate, $type); 606 602 … … 616 612 $sql.= "AS T1 LEFT JOIN dtb_products AS T2 USING (product_id) WHERE T2.name IS NOT NULL AND status = 1 ORDER BY T1.total DESC "; 617 613 618 if($ _POST['mode']!= "csv") {614 if($mode != "csv") { 619 615 $sql.= "LIMIT " . PRODUCTS_TOTAL_MAX; 620 616 }
Note: See TracChangeset
for help on using the changeset viewer.
