모바일 상품이미지수 mod 로 수정
This commit is contained in:
@ -238,7 +238,7 @@ $pg_anchor .= '</ul>';
|
||||
<th scope="row"><label for="ca_mobile_list_row">모바일 이미지 수</label></th>
|
||||
<td>
|
||||
<?php echo help("한 페이지에 출력할 이미지 수를 설정합니다."); ?>
|
||||
<input type="text" name="ca_mobile_list_row" value='<?php echo $ca['ca_mobile_list_row']; ?>' id="ca_mobile_list_row" required class="required frm_input" size="3">
|
||||
<input type="text" name="ca_mobile_list_mod" value='<?php echo $ca['ca_mobile_list_mod']; ?>' id="ca_mobile_list_mod" required class="required frm_input" size="3">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -63,7 +63,7 @@ $sql_common = " ca_skin = '$ca_skin',
|
||||
ca_list_row = '$ca_list_row',
|
||||
ca_mobile_img_width = '$ca_mobile_img_width',
|
||||
ca_mobile_img_height = '$ca_mobile_img_height',
|
||||
ca_mobile_list_row = '$ca_mobile_list_row',
|
||||
ca_mobile_list_mod = '$ca_mobile_list_mod',
|
||||
ca_sell_email = '$ca_sell_email',
|
||||
ca_use = '$ca_use',
|
||||
ca_stock_qty = '$ca_stock_qty',
|
||||
|
||||
@ -401,6 +401,12 @@ if (!sql_query(" select de_mobile_type1_list_mod from {$g4['shop_default_table']
|
||||
CHANGE `de_mobile_type5_list_row` `de_mobile_type5_list_mod` INT(11) NOT NULL DEFAULT '0' ", true);
|
||||
}
|
||||
|
||||
// 분류 모바일 필드명 수정
|
||||
if(!sql_query(" select ca_mobile_list_mod from {$g4['shop_category_table']} limit 1 ", false)) {
|
||||
sql_query(" ALTER TABLE `{$g4['shop_category_table']}`
|
||||
CHANGE `ca_mobile_list_row` `ca_mobile_list_mod` INT(11) NOT NULL DEFAULT '0' ", true);
|
||||
}
|
||||
|
||||
// 과세, 비과세 금액 필드 추가
|
||||
if(!sql_query(" select od_tax_mny from {$g4['shop_order_table']} limit 1 ", false)) {
|
||||
sql_query(" ALTER TABLE `{$g4['shop_order_table']}`
|
||||
|
||||
@ -109,7 +109,7 @@ CREATE TABLE IF NOT EXISTS `shop_category` (
|
||||
`ca_mobile_tail_html` text NOT NULL,
|
||||
`ca_list_mod` int(11) NOT NULL DEFAULT '0',
|
||||
`ca_list_row` int(11) NOT NULL DEFAULT '0',
|
||||
`ca_mobile_list_row` int(11) NOT NULL DEFAULT '0',
|
||||
`ca_mobile_list_mod` int(11) NOT NULL DEFAULT '0',
|
||||
`ca_include_head` varchar(255) NOT NULL DEFAULT '',
|
||||
`ca_include_tail` varchar(255) NOT NULL DEFAULT '',
|
||||
`ca_mb_id` varchar(255) NOT NULL DEFAULT '',
|
||||
|
||||
@ -84,14 +84,14 @@ if ($is_admin)
|
||||
echo '</div>';
|
||||
*/
|
||||
|
||||
// 총몇개 = 한줄에 몇개 * 몇줄
|
||||
$items = $ca['ca_list_mod'] * $ca['ca_list_row'];
|
||||
// 총몇개
|
||||
$items = $ca['ca_mobile_list_mod'];
|
||||
// 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page == "") $page = 1;
|
||||
// 시작 레코드 구함
|
||||
$from_record = ($page - 1) * $items;
|
||||
|
||||
$list = new item_list($ca['ca_skin'], $ca['ca_list_mod'], $ca['ca_list_row'], $ca['ca_img_width'], $ca['ca_img_height']);
|
||||
$list = new item_list($ca['ca_mobile_skin'], $ca['ca_mobile_list_mod'], 1, $ca['ca_mobile_img_width'], $ca['ca_mobile_img_height']);
|
||||
$list->set_category($ca['ca_id']);
|
||||
$list->set_is_page(true);
|
||||
$list->set_from_record($from_record);
|
||||
|
||||
Reference in New Issue
Block a user