Changeset 16808
- Timestamp:
- 2007/11/27 20:32:49 (19 years ago)
- Location:
- branches/feature-module-update/data
- Files:
-
- 2 edited
-
Smarty/templates/default/list.tpl (modified) (1 diff)
-
class/pages/products/LC_Page_Products_List.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/Smarty/templates/default/list.tpl
r16583 r16808 139 139 <div class="in_cart"> 140 140 <dl> 141 142 <!--{assign var=class1 value=classcategory_id`$id`_1}--> 143 <!--{assign var=class2 value=classcategory_id`$id`_2}--> 141 144 <!--{if $tpl_classcat_find1[$id]}--> 142 <!--{assign var=class1 value=classcategory_id`$id`_1}-->143 <!--{assign var=class2 value=classcategory_id`$id`_2}-->144 145 <dt><!--{$tpl_class_name1[$id]|escape}-->:</dt> 145 <dd><select name="<!--{$class1}-->" style="<!--{$arrErr[$class1]|sfGetErrorColor}-->" onchange="lnSetSelect('<!--{$class1}-->', '<!--{$class2}-->', '<!--{$id}-->','');"> 146 <dd> 147 <select name="<!--{$class1}-->" style="<!--{$arrErr[$class1]|sfGetErrorColor}-->" onchange="lnSetSelect('<!--{$class1}-->', '<!--{$class2}-->', '<!--{$id}-->','');"> 146 148 <option value="">選択してください</option> 147 149 <!--{html_options options=$arrClassCat1[$id] selected=$arrForm[$class1]}--> 148 </select>150 </select> 149 151 <!--{if $arrErr[$class1] != ""}--> 150 152 <br /><span class="attention">※ <!--{$tpl_class_name1[$id]}-->を入力して下さい。</span> 151 153 <!--{/if}--> 152 154 </dd> 153 154 <!--{/if}-->155 < !--{if $tpl_classcat_find2[$id]}-->156 <dt><!--{$tpl_class_name2[$id]|escape}-->:</dt>157 < dd><select name="<!--{$class2}-->" style="<!--{$arrErr[$class2]|sfGetErrorColor}-->">158 <option value="">選択してください</option>155 <!--{/if}--> 156 <!--{if $tpl_classcat_find2[$id]}--> 157 <dt><!--{$tpl_class_name2[$id]|escape}-->:</dt> 158 <dd> 159 <select name="<!--{$class2}-->" style="<!--{$arrErr[$class2]|sfGetErrorColor}-->"> 160 <option value="">選択してください</option> 159 161 </select> 160 161 162 <!--{if $arrErr[$class2] != ""}--> 162 163 <br /><span class="attention">※ <!--{$tpl_class_name2[$id]}-->を入力して下さい。</span> 163 164 <!--{/if}--> 164 </dd> 165 166 <!--{/if}--> 167 <!--{assign var=quantity value=quantity`$id`}--> 168 165 </dd> 166 <!--{/if}--> 167 168 <!--{assign var=quantity value=quantity`$id`}--> 169 169 <dt>個数:</dt> 170 170 <dd><input type="text" name="<!--{$quantity}-->" size="3" class="box54" value="<!--{$arrForm[$quantity]|default:1}-->" maxlength="<!--{$smarty.const.INT_LEN}-->" style="<!--{$arrErr[$quantity]|sfGetErrorColor}-->" /> -
branches/feature-module-update/data/class/pages/products/LC_Page_Products_List.php
r16777 r16808 382 382 //価格順 383 383 case 'price': 384 $distinct = "DISTINCT ON (price02_min, product_id)"; 385 $col = $distinct . " *"; 386 $from = "vw_products_allclass "; 387 $order = "price02_min ASC, product_id ASC"; 384 $col = "DISTINCT price02_min, product_id, product_code_min, product_code_max," 385 . " price01_min, price01_max, price02_max," 386 . " stock_min, stock_max, stock_unlimited_min," 387 . " stock_unlimited_max, del_flg, status, name, comment1," 388 . " comment2, comment3, main_list_comment, main_image," 389 . " main_list_image, product_flag, deliv_date_id, sale_limit," 390 . " point_rate, sale_unlimited, create_date, deliv_fee"; 391 $from = "vw_products_allclass AS T1"; 392 $order = "price02_min, product_id"; 388 393 break; 389 394 390 395 //新着順 391 396 case 'date': 392 $distinct = "DISTINCT ON (create_date, product_id)"; 393 $col = $distinct . " *"; 394 $from = "vw_products_allclass "; 395 $order = "create_date DESC, product_id ASC"; 397 $col = "DISTINCT create_date, product_id, product_code_min, product_code_max," 398 . " price01_min, price01_max, price02_min, price02_max," 399 . " stock_min, stock_max, stock_unlimited_min," 400 . " stock_unlimited_max, del_flg, status, name, comment1," 401 . " comment2, comment3, main_list_comment, main_image," 402 . " main_list_image, product_flag, deliv_date_id, sale_limit," 403 . " point_rate, sale_unlimited, create_date, deliv_fee"; 404 $from = "vw_products_allclass AS T1"; 405 $order = "create_date DESC, product_id"; 396 406 break; 397 407 398 408 default: 399 409 $col = "DISTINCT T1.product_id, product_code_min, product_code_max," 400 . " price01_min, price01_max, price02_min, price02_max, "401 . " stock_min, stock_max, stock_unlimited_min, "402 . " stock_unlimited_max, del_flg, status, name, comment1, "403 . " comment2, comment3, main_list_comment, main_image, "410 . " price01_min, price01_max, price02_min, price02_max," 411 . " stock_min, stock_max, stock_unlimited_min," 412 . " stock_unlimited_max, del_flg, status, name, comment1," 413 . " comment2, comment3, main_list_comment, main_image," 404 414 . " main_list_image, product_flag, deliv_date_id, sale_limit," 405 415 . " point_rate, sale_unlimited, create_date, deliv_fee, " 406 416 . " T4.product_rank, T4.category_rank"; 407 $from = "vw_products_allclass AS T1 "417 $from = "vw_products_allclass AS T1" 408 418 . " JOIN (" 409 . " SELECT max(T3.rank) AS category_rank, "410 . " max(T2.rank) AS product_rank, "419 . " SELECT max(T3.rank) AS category_rank," 420 . " max(T2.rank) AS product_rank," 411 421 . " T2.product_id" 412 . " FROM dtb_product_categories T2 "413 . " JOIN dtb_category T3 USING (category_id) "422 . " FROM dtb_product_categories T2" 423 . " JOIN dtb_category T3 USING (category_id)" 414 424 . " GROUP BY product_id) AS T4 USING (product_id)"; 415 425 $order = "T4.category_rank DESC, T4.product_rank DESC"; … … 588 598 589 599 $classcategory_id_2 = $classcategory_id . "_2"; 590 if (!isset($ $classcategory_id_2)) $$classcategory_id_2 = "";591 if (!isset($_POST[$ $classcategory_id_2])) $_POST[$$classcategory_id_2] = "";600 if (!isset($classcategory_id_2)) $classcategory_id_2 = ""; 601 if (!isset($_POST[$classcategory_id_2])) $_POST[$classcategory_id_2] = ""; 592 602 593 603 $this->tpl_onload .= "lnSetSelect('" . $classcategory_id ."_1', " 594 . "'" . $ $classcategory_id_2 . "',"604 . "'" . $classcategory_id_2 . "'," 595 605 . "'" . $product_id . "'," 596 . "'" . $_POST[$ $classcategory_id_2] ."'); ";606 . "'" . $_POST[$classcategory_id_2] ."'); "; 597 607 598 608 // 規格1が設定されている
Note: See TracChangeset
for help on using the changeset viewer.
