Changeset 17500 for branches/version-2/data/class/pages/admin/contents/LC_Page_Admin_Contents_CampaignCreateTag.php
- Timestamp:
- 2008/08/06 11:33:47 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2/data/class/pages/admin/contents/LC_Page_Admin_Contents_CampaignCreateTag.php
r16582 r17500 87 87 break; 88 88 case 'search_category_id': 89 // 子カテゴリIDの取得 90 $arrRet = $objDb->sfGetChildsID("dtb_category", "parent_category_id", "category_id", $val); 91 $tmp_where = ""; 92 foreach ($arrRet as $val) { 93 if($tmp_where == "") { 94 $tmp_where.= " AND ( category_id = ?"; 95 } else { 96 $tmp_where.= " OR category_id = ?"; 97 } 98 $arrval[] = $val; 89 list($tmp_where, $tmp_arrval) = $objDb->sfGetCatWhere($val); 90 if($tmp_where != "") { 91 $where.= " AND product_id IN (SELECT product_id FROM dtb_product_categories WHERE " . $tmp_where . ")"; 92 $arrval = array_merge((array)$arrval, (array)$tmp_arrval); 99 93 } 100 $where.= $tmp_where . " )";101 94 break; 102 95 case 'search_product_id': … … 169 162 } 170 163 171 /* 取得文字列の変換 */ 164 165 /** 166 * 取得する文字数の変換を行うメソッド 167 * 168 * @return void 169 */ 172 170 function lfConvertParam() { 173 171 /* … … 190 188 } 191 189 192 /* タグを生成 */ 190 /** 191 * キャンペーンページのための商品用タグを生成するメソッド 192 * 193 * @param string $product_id 商品ID 194 * @return void 195 */ 196 193 197 function lfGetCreateTag($product_id) { 194 198 // 書き込みタグ
Note: See TracChangeset
for help on using the changeset viewer.