Changeset 1783 for temp/trunk/html/admin
- Timestamp:
- 2006/08/24 18:42:57 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/admin/products/index_test.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/admin/products/index_test.php
r1782 r1783 2 2 3 3 require_once("../require.php"); 4 //require_once("./index_csv.php"); 4 5 5 6 class LC_Page { … … 15 16 $this->tpl_pager = ROOT_DIR . 'data/Smarty/templates/admin/pager.tpl'; 16 17 $this->tpl_subtitle = '¾¦ÉÊ¥Þ¥¹¥¿'; 18 19 global $arrPageMax; 20 $this->arrPageMax = $arrPageMax; 21 global $arrDISP; 22 $this->arrDISP = $arrDISP; 23 global $arrSTATUS; 24 $this->arrSTATUS = $arrSTATUS; 25 global $arrPRODUCTSTATUS_COLOR; 26 $this->arrPRODUCTSTATUS_COLOR = $arrPRODUCTSTATUS_COLOR; 27 17 28 } 18 29 } … … 33 44 34 45 //--------------------------------------------------------------------------------------------------------------------------------------------------------- 46 47 // ¼èÆÀʸ»úÎó¤ÎÊÑ´¹ 48 function lfConvertParam() { 49 global $objPage; 50 /* 51 * ʸ»úÎó¤ÎÊÑ´¹ 52 * K : ¡ÖȾ³Ñ(Êݶ¸)ÊÒ²¾Ì¾¡×¤ò¡ÖÁ´³ÑÊÒ²¾Ì¾¡×¤ËÊÑ´¹ 53 * C : ¡ÖÁ´³Ñ¤Ò¤é²¾Ì¾¡×¤ò¡ÖÁ´³Ñ¤«¤¿²¾Ì¾¡×¤ËÊÑ´¹ 54 * V : ÂùÅÀÉÕ¤¤Îʸ»ú¤ò°ìʸ»ú¤ËÊÑ´¹¡£"K","H"¤È¶¦¤Ë»ÈÍѤ·¤Þ¤¹ 55 * n : ¡ÖÁ´³Ñ¡×¿ô»ú¤ò¡ÖȾ³Ñ(Êݶ¸)¡×¤ËÊÑ´¹ 56 */ 57 $arrConvList['search_name'] = "KVa"; 58 $arrConvList['search_product_code'] = "KVa"; 59 60 // ʸ»úÊÑ´¹ 61 foreach ($arrConvList as $key => $val) { 62 // POST¤µ¤ì¤Æ¤¤¿ÃͤΤßÊÑ´¹¤¹¤ë¡£ 63 if(isset($objPage->arrForm[$key])) { 64 $objPage->arrForm[$key] = mb_convert_kana($objPage->arrForm[$key] ,$val); 65 } 66 } 67 } 68 69 // ¥¨¥é¡¼¥Á¥§¥Ã¥¯ 70 // ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯ 71 function lfCheckError() { 72 $objErr = new SC_CheckError(); 73 $objErr->doFunc(array("³«»ÏÆü", "search_startyear", "search_startmonth", "search_startday"), array("CHECK_DATE")); 74 $objErr->doFunc(array("½ªÎ»Æü", "search_endyear", "search_endmonth", "search_endday"), array("CHECK_DATE")); 75 $objErr->doFunc(array("³«»ÏÆü", "½ªÎ»Æü", "search_startyear", "search_startmonth", "search_startday", "search_endyear", "search_endmonth", "search_endday"), array("CHECK_SET_TERM")); 76 return $objErr->arrErr; 77 } 78 79 // ¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹ÍÑWHEREʸºîÀ® 80 function lfGetCBWhere($key, $max) { 81 $str = ""; 82 $find = false; 83 for ($cnt = 1; $cnt <= $max; $cnt++) { 84 if ($_POST[$key . $cnt] == "1") { 85 $str.= "1"; 86 $find = true; 87 } else { 88 $str.= "_"; 89 } 90 } 91 if (!$find) { 92 $str = ""; 93 } 94 return $str; 95 } 96 97 // ¥«¥Æ¥´¥êID¤ò¥¡¼¡¢¥«¥Æ¥´¥ê̾¤òÃͤˤ¹¤ëÇÛÎó¤òÊÖ¤¹¡£ 98 function lfGetIDName($arrCatList) { 99 $max = count($arrCatList); 100 for ($cnt = 0; $cnt < $max; $cnt++ ) { 101 $key = $arrCatList[$cnt]['category_id']; 102 $val = $arrCatList[$cnt]['category_name']; 103 $arrRet[$key] = $val; 104 } 105 return $arrRet; 106 } 107 35 108 ?>
Note: See TracChangeset
for help on using the changeset viewer.
