- Timestamp:
- 2007/07/20 15:58:59 (17 years ago)
- Location:
- branches/feature-module-update
- Files:
-
- 1 edited
- 2 copied
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/products/product_select.php
r12157 r15078 15 15 $this->tpl_subnavi = ''; 16 16 $this->tpl_subno = ""; 17 $this->tpl_subtitle = ' ¾¦ÉÊÁªÂò';17 $this->tpl_subtitle = '商品選択'; 18 18 } 19 19 } … … 24 24 $objSess = new SC_Session(); 25 25 26 // ǧ¾Ú²ÄÈݤÎȽÄê26 // 認証可否の判定 27 27 sfIsSuccess($objSess); 28 28 29 29 if ($_POST['mode'] == "search") { 30 30 31 // POST Ãͤΰú¤·Ñ¤®31 // POST値の引き継ぎ 32 32 $objPage->arrForm = $_POST; 33 // ÆþÎÏʸ»ú¤Î¶¯À©ÊÑ´¹33 // 入力文字の強制変換 34 34 lfConvertParam(); 35 35 36 36 $where = "del_flg = 0"; 37 37 38 /* ÆþÎÏ¥¨¥é¡¼¤Ê¤·*/38 /* 入力エラーなし */ 39 39 foreach ($objPage->arrForm as $key => $val) { 40 40 if($val == "") { … … 48 48 break; 49 49 case 'search_category_id': 50 // »Ò¥«¥Æ¥´¥êID¤Î¼èÆÀ50 // 子カテゴリIDの取得 51 51 $arrRet = sfGetChildsID("dtb_category", "parent_category_id", "category_id", $val); 52 52 $tmp_where = ""; … … 72 72 $order = "update_date DESC, product_id DESC "; 73 73 74 // Æɤ߹þ¤àÎó¤È¥Æ¡¼¥Ö¥ë¤Î»ØÄê74 // 読み込む列とテーブルの指定 75 75 $col = "product_id, name, category_id, main_list_image, status, product_code, price01, stock, stock_unlimited"; 76 76 $from = "vw_products_nonclass AS noncls "; 77 77 78 78 $objQuery = new SC_Query(); 79 // ¹Ô¿ô¤Î¼èÆÀ79 // 行数の取得 80 80 $linemax = $objQuery->count("dtb_products", $where, $arrval); 81 $objPage->tpl_linemax = $linemax; // ²¿·ï¤¬³ºÅö¤·¤Þ¤·¤¿¡£É½¼¨ÍÑ81 $objPage->tpl_linemax = $linemax; // 何件が該当しました。表示用 82 82 83 // ¥Ú¡¼¥¸Á÷¤ê¤Î½èÍý83 // ページ送りの処理 84 84 if(is_numeric($_POST['search_page_max'])) { 85 85 $page_max = $_POST['search_page_max']; … … 88 88 } 89 89 90 // ¥Ú¡¼¥¸Á÷¤ê¤Î¼èÆÀ90 // ページ送りの取得 91 91 $objNavi = new SC_PageNavi($_POST['search_pageno'], $linemax, $page_max, "fnNaviSearchOnlyPage", NAVI_PMAX); 92 $objPage->tpl_strnavi = $objNavi->strnavi; // ɽ¼¨Ê¸»úÎó92 $objPage->tpl_strnavi = $objNavi->strnavi; // 表示文字列 93 93 $startno = $objNavi->start_row; 94 94 95 // ¼èÆÀÈϰϤλØÄê(³«»Ï¹ÔÈֹ桢¹Ô¿ô¤Î¥»¥Ã¥È)95 // 取得範囲の指定(開始行番号、行数のセット) 96 96 if(DB_TYPE != "mysql") $objQuery->setlimitoffset($page_max, $startno); 97 // ɽ¼¨½ç½ø97 // 表示順序 98 98 $objQuery->setorder($order); 99 99 100 // view ¤â¹Ê¹þ¤ß¤ò¤«¤±¤ë(mysqlÍÑ)100 // viewも絞込みをかける(mysql用) 101 101 sfViewWhere("&&noncls_where&&", $where, $arrval, $objQuery->order . " " . $objQuery->setlimitoffset($page_max, $startno, true)); 102 102 103 // ¸¡º÷·ë²Ì¤Î¼èÆÀ103 // 検索結果の取得 104 104 $objPage->arrProducts = $objQuery->select($col, $from, $where, $arrval); 105 105 106 106 } 107 107 108 // ¥«¥Æ¥´¥ê¼èÆÀ108 // カテゴリ取得 109 109 $objPage->arrCatList = sfGetCategoryList(); 110 110 … … 114 114 115 115 116 //---- ¡¡¥Ú¡¼¥¸É½¼¨116 //---- ページ表示 117 117 $objView->assignobj($objPage); 118 118 $objView->display($objPage->tpl_mainpage); … … 125 125 //--------------------------------------------------------------------------------------------------------------------------------------------------------- 126 126 127 /* ¼èÆÀʸ»úÎó¤ÎÊÑ´¹*/127 /* 取得文字列の変換 */ 128 128 function lfConvertParam() { 129 129 global $objPage; 130 130 /* 131 * ʸ»úÎó¤ÎÊÑ´¹132 * K : ¡ÖȾ³Ñ(Êݶ¸)ÊÒ²¾Ì¾¡×¤ò¡ÖÁ´³ÑÊÒ²¾Ì¾¡×¤ËÊÑ´¹133 * C : ¡ÖÁ´³Ñ¤Ò¤é²¾Ì¾¡×¤ò¡ÖÁ´³Ñ¤«¤¿²¾Ì¾¡×¤ËÊÑ´¹134 * V : ÂùÅÀÉÕ¤¤Îʸ»ú¤ò°ìʸ»ú¤ËÊÑ´¹¡£"K","H"¤È¶¦¤Ë»ÈÍѤ·¤Þ¤¹135 * n : ¡ÖÁ´³Ñ¡×¿ô»ú¤ò¡ÖȾ³Ñ(Êݶ¸)¡×¤ËÊÑ´¹131 * 文字列の変換 132 * K : 「半角(ハンカク)片仮名」を「全角片仮名」に変換 133 * C : 「全角ひら仮名」を「全角かた仮名」に変換 134 * V : 濁点付きの文字を一文字に変換。"K","H"と共に使用します 135 * n : 「全角」数字を「半角(ハンカク)」に変換 136 136 */ 137 137 $arrConvList['search_name'] = "KVa"; 138 138 $arrConvList['search_product_code'] = "KVa"; 139 139 140 // ʸ»úÊÑ´¹140 // 文字変換 141 141 foreach ($arrConvList as $key => $val) { 142 // POST ¤µ¤ì¤Æ¤¤¿ÃͤΤßÊÑ´¹¤¹¤ë¡£142 // POSTされてきた値のみ変換する。 143 143 if(isset($objPage->arrForm[$key])) { 144 144 $objPage->arrForm[$key] = mb_convert_kana($objPage->arrForm[$key] ,$val);
Note: See TracChangeset
for help on using the changeset viewer.