Changeset 13452
- Timestamp:
- 2007/05/25 15:17:41 (16 years ago)
- Location:
- branches/rel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/rel/data/Smarty/templates/admin/total/index.tpl
r12157 r13452 170 170 <table width="740" border="0" cellspacing="0" cellpadding="0" summary=" "> 171 171 <tr><td height="15"></td></tr> 172 <!--{if $install_GD}--> 172 173 <tr> 173 174 <td align="center"> … … 177 178 </tr> 178 179 <tr><td height="15"></td></tr> 179 </table> 180 <!--{* ¥°¥é¥Õɽ¼¨ *}--> 180 <!--{/if}--> 181 </table> 182 <!--{* ¥°¥é¥Õɽ¼¨ *}--> 181 183 <table width="840" border="0" cellspacing="0" cellpadding="0" summary=" "> 182 184 <tr> -
branches/rel/html/admin/total/index.php
r13449 r13452 12 12 require_once("./class/SC_GraphLine.php"); 13 13 require_once("./class/SC_GraphBar.php"); 14 15 // GD¥é¥¤¥Ö¥é¥ê¤Î¥¤¥ó¥¹¥È¡¼¥ëȽÄê 16 $install_GD = (function_exists("gd_info"))?true:false; 14 17 15 18 class LC_Page { … … 104 107 105 108 $page = $objFormParam->getValue('page'); 109 106 110 switch($page) { 107 111 // ¾¦ÉÊÊ̽¸·× … … 116 120 } 117 121 // ¸¡º÷·ë²Ì¤Î¼èÆÀ 118 $objPage = lfGetOrderProducts($type, $sdate, $edate, $objPage, true, $mode);122 $objPage = lfGetOrderProducts($type, $sdate, $edate, $objPage, $install_GD, $mode); 119 123 break; 120 124 // ¿¦¶ÈÊ̽¸·× … … 129 133 } 130 134 // ¸¡º÷·ë²Ì¤Î¼èÆÀ 131 $objPage = lfGetOrderJob($type, $sdate, $edate, $objPage );135 $objPage = lfGetOrderJob($type, $sdate, $edate, $objPage, $install_GD); 132 136 break; 133 137 // ²ñ°÷Ê̽¸·× … … 142 146 } 143 147 // ¸¡º÷·ë²Ì¤Î¼èÆÀ 144 $objPage = lfGetOrderMember($type, $sdate, $edate, $objPage );148 $objPage = lfGetOrderMember($type, $sdate, $edate, $objPage, $install_GD); 145 149 break; 146 150 // ǯÂåÊ̽¸·× … … 156 160 } 157 161 // ¸¡º÷·ë²Ì¤Î¼èÆÀ 158 $objPage = lfGetOrderAge($type, $sdate, $edate, $objPage );162 $objPage = lfGetOrderAge($type, $sdate, $edate, $objPage, $install_GD); 159 163 break; 160 164 // ´ü´ÖÊ̽¸·× … … 169 173 } 170 174 // ¸¡º÷·ë²Ì¤Î¼èÆÀ 171 $objPage = lfGetOrderTerm($type, $sdate, $edate, $objPage );175 $objPage = lfGetOrderTerm($type, $sdate, $edate, $objPage, $install_GD); 172 176 173 177 break; … … 198 202 default: 199 203 if(count($_GET) == 0) { 200 // ¥Ð¥Ã¥Á¥â¡¼¥É¤Î¾ì¹ç¤Î¤ß¼Â¹Ô¤¹¤ë 204 // ¥Ð¥Ã¥Á¥â¡¼¥É¤Î¾ì¹ç¤Î¤ß¼Â¹Ô¤¹¤ë¡ÊÅöÆü¤Î½¸·×¤ò¹Ô¤¦¤¿¤á¡Ë 201 205 if(DAILY_BATCH_MODE) { 202 206 // 3ÆüÁ°¤Þ¤Ç¤Î½¸·× … … 206 210 break; 207 211 } 212 213 214 $objPage->install_GD = $install_GD; 208 215 209 216 // ÅÐÏ¿¡¦¹¹¿·Æü¸¡º÷ÍÑ … … 616 623 function lfGetOrderProducts($type, $sdate, $edate, $objPage, $graph = true, $mode = "") { 617 624 list($where, $arrval) = lfGetWhereMember('create_date', $sdate, $edate, $type); 618 625 619 626 $where .= " and del_flg=0 and status <> " . ORDER_CANCEL; 620 621 $sql = "SELECT T1.product_id, T1.product_code, T1.product_name , T1.products_count, T1.order_count, T1.price, T1.total ";627 628 $sql = "SELECT T1.product_id, T1.product_code, T1.product_name as name, T1.products_count, T1.order_count, T1.price, T1.total "; 622 629 $sql.= "FROM ( "; 623 630 $sql.= "SELECT product_id, product_name, product_code, price, "; … … 653 660 654 661 $sql = "SELECT job, count(*) AS order_count, SUM(total) AS total, (AVG(total)) AS total_average "; 655 662 $sql.= "FROM dtb_customer AS T1 LEFT JOIN dtb_order AS T2 USING ( customer_id ) WHERE $where AND T2.del_flg = 0 and T2.status <> " . ORDER_CANCEL; 656 663 $sql.= " GROUP BY job ORDER BY total DESC"; 657 664 658 665 $objQuery = new SC_Query(); 659 666 $objPage->arrResults = $objQuery->getall($sql, $arrval); 660 667 661 668 $max = count($objPage->arrResults); 662 669 for($i = 0; $i < $max; $i++) {
Note: See TracChangeset
for help on using the changeset viewer.