Changeset 15078 for branches/feature-module-update/html/admin/home.php
- Timestamp:
- 2007/07/20 15:58:59 (19 years ago)
- Location:
- branches/feature-module-update
- Files:
-
- 1 edited
- 2 copied
-
. (copied) (copied from branches/rel) (1 prop)
-
html (copied) (copied from branches/rel/html)
-
html/admin/home.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update
-
Property
svn:ignore
set to
.cache
.settings
.projectOptions
-
Property
svn:ignore
set to
-
branches/feature-module-update/html/admin/home.php
r12157 r15078 19 19 $objSess = new SC_Session(); 20 20 21 // ǧ¾Ú²ÄÈݤÎȽÄê21 // 認証可否の判定 22 22 sfIsSuccess($objSess); 23 23 24 // DB ¥Ð¡¼¥¸¥ç¥ó¤Î¼èÆÀ24 // DBバージョンの取得 25 25 $objPage->db_version = sfGetDBVersion(); 26 26 27 // PHP ¥Ð¡¼¥¸¥ç¥ó¤Î¼èÆÀ27 // PHPバージョンの取得 28 28 $objPage->php_version = "PHP " . phpversion(); 29 29 30 // ¸½ºß¤Î²ñ°÷¿ô30 // 現在の会員数 31 31 $objPage->customer_cnt = lfGetCustomerCnt($conn); 32 32 33 // ºòÆü¤ÎÇä¾å¹â33 // 昨日の売上高 34 34 $objPage->order_yesterday_amount = lfGetOrderYesterday($conn, "SUM"); 35 35 36 // ºòÆü¤ÎÇä¾å·ï¿ô36 // 昨日の売上件数 37 37 $objPage->order_yesterday_cnt = lfGetOrderYesterday($conn, "COUNT"); 38 38 39 // º£·î¤ÎÇä¾å¹â39 // 今月の売上高 40 40 $objPage->order_month_amount = lfGetOrderMonth($conn, "SUM"); 41 41 42 // º£·î¤ÎÇä¾å·ï¿ô42 // 今月の売上件数 43 43 $objPage->order_month_cnt = lfGetOrderMonth($conn, "COUNT"); 44 44 45 // ¸ÜµÒ¤ÎÎ߷ץݥ¤¥ó¥È45 // 顧客の累計ポイント 46 46 $objPage->customer_point = lfGetTotalCustomerPoint(); 47 47 48 // ºòÆü¤Î¥ì¥Ó¥å¡¼½ñ¤¹þ¤ß¿ô48 //昨日のレビュー書き込み数 49 49 $objPage->review_yesterday_cnt = lfGetReviewYesterday($conn); 50 50 51 // ¥ì¥Ó¥å¡¼½ñ¤¹þ¤ßÈóɽ¼¨¿ô51 //レビュー書き込み非表示数 52 52 $objPage->review_nondisp_cnt = lfGetReviewNonDisp($conn); 53 53 54 // ÉÊÀڤ쾦ÉÊ54 // 品切れ商品 55 55 $objPage->arrSoldout = lfGetSoldOut(); 56 56 57 // ¿·µ¬¼õÉÕ°ìÍ÷57 // 新規受付一覧 58 58 $arrNewOrder = lfGetNewOrder(); 59 59 … … 64 64 $objPage->arrNewOrder = $arrNewOrder; 65 65 66 // ¤ªÃΤ餻°ìÍ÷¤Î¼èÆÀ66 // お知らせ一覧の取得 67 67 $objPage->arrInfo = lfGetInfo(); 68 68 … … 71 71 //--------------------------------------------------------- 72 72 73 // ²ñ°÷¿ô73 // 会員数 74 74 function lfGetCustomerCnt($conn){ 75 75 … … 79 79 } 80 80 81 // ºòÆü¤ÎÇä¾å¹â¡¦Çä¾å·ï¿ô81 // 昨日の売上高・売上件数 82 82 function lfGetOrderYesterday($conn, $method){ 83 83 if ( $method == 'SUM' or $method == 'COUNT'){ 84 // postgresql ¤È mysql ¤È¤ÇSQL¤ò¤ï¤±¤ë84 // postgresql と mysql とでSQLをわける 85 85 if (DB_TYPE == "pgsql") { 86 86 $sql = "SELECT ".$method."(total) FROM dtb_order … … 100 100 101 101 if ( $method == 'SUM' or $method == 'COUNT'){ 102 // postgresql ¤È mysql ¤È¤ÇSQL¤ò¤ï¤±¤ë102 // postgresql と mysql とでSQLをわける 103 103 if (DB_TYPE == "pgsql") { 104 104 $sql = "SELECT ".$method."(total) FROM dtb_order … … 125 125 126 126 function lfGetReviewYesterday($conn){ 127 // postgresql ¤È mysql ¤È¤ÇSQL¤ò¤ï¤±¤ë127 // postgresql と mysql とでSQLをわける 128 128 if (DB_TYPE == "pgsql") { 129 129 $sql = "SELECT COUNT(*) FROM dtb_review AS A LEFT JOIN dtb_products AS B ON A.product_id = B.product_id … … 145 145 } 146 146 147 // ÉÊÀڤ쾦ÉÊÈÖ¹æ¤Î¼èÆÀ147 // 品切れ商品番号の取得 148 148 function lfGetSoldOut() { 149 149 $objQuery = new SC_Query(); … … 153 153 } 154 154 155 // ¿·µ¬¼õÉÕ°ìÍ÷155 // 新規受付一覧 156 156 function lfGetNewOrder() { 157 157 $objQuery = new SC_Query(); … … 197 197 } 198 198 199 // ¤ªÃΤ餻¼èÆÀ199 // お知らせ取得 200 200 function lfGetInfo() { 201 // ¹¹¿·¾ðÊó¤òºÇ¿·¤Ë¤¹¤ë201 // 更新情報を最新にする 202 202 $objQuery = new SC_Query(); 203 203 $path = UPDATE_HTTP . "info.txt"; … … 206 206 $arrRet = array(); 207 207 if(!$fp) { 208 sfErrorHeader(">> " . $path . " ¤Î¼èÆÀ¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£");208 sfErrorHeader(">> " . $path . "の取得に失敗しました。"); 209 209 } else { 210 210 while (!feof($fp)) {
Note: See TracChangeset
for help on using the changeset viewer.
