Skip to content

Commit

Permalink
그누컨텐츠 1.0.b3 수정내역 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
chicpro committed Jul 13, 2015
1 parent f858be1 commit b109ee7
Show file tree
Hide file tree
Showing 38 changed files with 517 additions and 330 deletions.
20 changes: 17 additions & 3 deletions adm/contents_admin/categoryform.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
$ca['ca_mobile_img_height'] = $setting['de_simg_height'];
$ca['ca_list_mod'] = 3;
$ca['ca_list_row'] = 5;
$ca['ca_mobile_list_mod'] = 10;
$ca['ca_mobile_list_mod'] = 3;
$ca['ca_mobile_list_mod'] = 5;
}
$ca['ca_skin'] = "list.10.skin.php";
$ca['ca_mobile_skin'] = "list.10.skin.php";
Expand Down Expand Up @@ -89,6 +90,12 @@
<a href="./categorylist.php?'.$qstr.'">목록</a>
</div>';

// 모바일 상품 출력줄수 필드 추가
if(!sql_query(" select ca_mobile_list_row from {$g5['g5_contents_category_table']} limit 1 ", false)) {
sql_query(" ALTER TABLE `{$g5['g5_contents_category_table']}`
ADD `ca_mobile_list_row` int(11) NOT NULL DEFAULT '0' AFTER `ca_mobile_list_mod` ", true);
}

// 스킨 Path
if(!$ca['ca_skin_dir'])
$g5_contents_skin_path = G5_CONTENTS_SKIN_PATH;
Expand Down Expand Up @@ -266,12 +273,19 @@
</td>
</tr>
<tr>
<th scope="row"><label for="ca_mobile_list_mod">모바일 이미지 수</label></th>
<th scope="row"><label for="ca_mobile_list_mod">모바일 1줄당 이미지 수</label></th>
<td>
<?php echo help("페이지에 출력할 이미지 수를 설정합니다."); ?>
<?php echo help("줄에 설정한 값만큼의 상품을 출력하지만 스킨에 따라 한 줄에 하나의 상품만 출력할 수도 있습니다."); ?>
<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>
<th scope="row"><label for="ca_mobile_list_row">모바일 이미지 줄 수</label></th>
<td>
<?php echo help("한 페이지에 출력할 이미지 줄 수를 설정합니다.\n한 페이지에서 표시하는 상품수는 (1줄당 이미지 수 x 줄 수) 입니다."); ?>
<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">
</td>
</tr>
<tr>
<th scope="row"><label for="ca_sell_email">판매자 E-mail</label></th>
<td>
Expand Down
1 change: 1 addition & 0 deletions adm/contents_admin/categoryformupdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
ca_mobile_img_width = '$ca_mobile_img_width',
ca_mobile_img_height = '$ca_mobile_img_height',
ca_mobile_list_mod = '$ca_mobile_list_mod',
ca_mobile_list_row = '$ca_mobile_list_row',
ca_sell_email = '$ca_sell_email',
ca_use = '$ca_use',
ca_explan_html = '$ca_explan_html',
Expand Down
16 changes: 8 additions & 8 deletions adm/contents_admin/categorylist.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
<th scope="col" id="sct_imgw">이미지 폭</th>
<th scope="col" id="sct_imgh">이미지 높이</th>
<th scope="col" id="sct_imgcol">1행이미지수</th>
<th scope="col" id="sct_mobileimg">모바일이미지수</th>
<th scope="col" id="sct_mobilemod">모바일 1행이미지수</th>
<th scope="col" id="sct_pcskin">PC스킨지정</th>
<th scope="col" rowspan="2">관리</th>
</tr>
Expand All @@ -121,7 +121,7 @@
<th scope="col" id="sct_hpcert">본인인증</th>
<th scope="col" id="sct_adultcert">성인인증</th>
<th scope="col" id="sct_imgrow">이미지 행수</th>
<th scope="col" id="sct_order">순서</th>
<th scope="col" id="sct_mobilerow">모바일 이미지 행수</th>
<th scope="col" id="sct_mskin">모바일스킨지정</th>
</tr>
</thead>
Expand Down Expand Up @@ -192,9 +192,9 @@
<label for="ca_lineimg_num<?php echo $i; ?>" class="sound_only">1줄당 이미지 수</label>
<input type="text" name="ca_list_mod[<?php echo $i; ?>]" size="3" value="<?php echo $row['ca_list_mod']; ?>" id="ca_lineimg_num<?php echo $i; ?>" required class="required frm_input"> <span class="sound_only"></span>
</td>
<td headers="sct_mobileimg" class="td_output">
<label for="ca_mobileimg_num<?php echo $i; ?>" class="sound_only">모바일 이미지 수</label>
<input type="text" name="ca_mobile_list_mod[<?php echo $i; ?>]" size="3" value="<?php echo $row['ca_mobile_list_mod']; ?>" id="ca_mobileimg_num<?php echo $i; ?>" required class="required frm_input"> <span class="sound_only"></span>
<td headers="sct_mobilemod" class="td_output">
<label for="ca_mobileimg_mod<?php echo $i; ?>" class="sound_only">모바일 1줄당 이미지 수</label>
<input type="text" name="ca_mobile_list_mod[<?php echo $i; ?>]" size="3" value="<?php echo $row['ca_mobile_list_mod']; ?>" id="ca_mobileimg_mod<?php echo $i; ?>" required class="required frm_input"> <span class="sound_only"></span>
</td>
<td headers="sct_pcskin">
<label for="ca_skin_dir<?php echo $i; ?>" class="sound_only">PC스킨폴더</label>
Expand Down Expand Up @@ -239,9 +239,9 @@
<label for="ca_imgline_num<?php echo $i; ?>" class="sound_only">이미지 줄 수</label>
<input type="text" name="ca_list_row[<?php echo $i; ?>]" value='<?php echo $row['ca_list_row']; ?>' id="ca_imgline_num<?php echo $i; ?>" required class="required frm_input" size="3"> <span class="sound_only"></span>
</td>
<td headers="sct_order" class="td_output">
<label for="ca_order<?php echo $i; ?>" class="sound_only">출력순서</label>
<input type="text" name="ca_order[<?php echo $i; ?>]" value='<?php echo $row['ca_order']; ?>' id="ca_order<?php echo $i; ?>" required class="required frm_input" size="3">
<td headers="sct_mobilerow" class="td_imgline">
<label for="ca_mobile_row<?php echo $i; ?>" class="sound_only">모바일 이미지 줄 수</label>
<input type="text" name="ca_mobile_list_row[<?php echo $i; ?>]" value='<?php echo $row['ca_mobile_list_row']; ?>' id="ca_mobile_num<?php echo $i; ?>" required class="required frm_input" size="3"> <span class="sound_only"></span>
</td>
<td headers="sct_mskin">
<label for="ca_mobile_skin_dir<?php echo $i; ?>" class="sound_only">모바일스킨폴더</label>
Expand Down
3 changes: 2 additions & 1 deletion adm/contents_admin/categorylistupdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
ca_img_height = '{$_POST['ca_img_height'][$i]}',
ca_list_mod = '{$_POST['ca_list_mod'][$i]}',
ca_list_row = '{$_POST['ca_list_row'][$i]}',
ca_mobile_list_mod = '{$_POST['ca_mobile_list_mod'][$i]}'
ca_mobile_list_mod = '{$_POST['ca_mobile_list_mod'][$i]}',
ca_mobile_list_row = '{$_POST['ca_mobile_list_row'][$i]}'
where ca_id = '{$_POST['ca_id'][$i]}' ";
sql_query($sql);

Expand Down
43 changes: 38 additions & 5 deletions adm/contents_admin/configform.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,27 @@
$userinfo = get_icode_userinfo($config['cf_icode_id'], $config['cf_icode_pw']);
}

// 모바일 초기화면 이미지 줄 수 필드 추가
if(!isset($setting['de_mobile_type1_list_row'])) {
sql_query(" ALTER TABLE `{$g5['g5_contents_default_table']}`
ADD `de_mobile_type1_list_row` int(11) NOT NULL DEFAULT '0' AFTER `de_mobile_type1_list_mod`,
ADD `de_mobile_type2_list_row` int(11) NOT NULL DEFAULT '0' AFTER `de_mobile_type2_list_mod`,
ADD `de_mobile_type3_list_row` int(11) NOT NULL DEFAULT '0' AFTER `de_mobile_type3_list_mod`,
ADD `de_mobile_type4_list_row` int(11) NOT NULL DEFAULT '0' AFTER `de_mobile_type4_list_mod` ", true);
}

// 모바일 관련상품 이미지 줄 수 필드 추가
if(!isset($setting['de_mobile_rel_list_mod'])) {
sql_query(" ALTER TABLE `{$g5['g5_contents_default_table']}`
ADD `de_mobile_rel_list_mod` int(11) NOT NULL DEFAULT '0' AFTER `de_mobile_rel_list_skin` ", true);
}

// 모바일 검색상품 이미지 줄 수 필드 추가
if(!isset($setting['de_mobile_search_list_row'])) {
sql_query(" ALTER TABLE `{$g5['g5_contents_default_table']}`
ADD `de_mobile_search_list_row` int(11) NOT NULL DEFAULT '0' AFTER `de_mobile_search_list_mod` ", true);
}

$g5['title'] = '컨텐츠몰설정';
include_once (G5_ADMIN_PATH.'/admin.head.php');

Expand Down Expand Up @@ -356,8 +377,10 @@
<select name="de_mobile_type1_list_skin" id="de_mobile_type1_list_skin">
<?php echo cm_get_list_skin_options("^main.[0-9]+\.skin\.php", G5_MCONTENTS_SKIN_PATH, $setting['de_mobile_type1_list_skin']); ?>
</select>
<label for="de_mobile_type1_list_mod">출력할 이미지 수</label>
<label for="de_mobile_type1_list_mod">1줄당 이미지 수</label>
<input type="text" name="de_mobile_type1_list_mod" value="<?php echo $setting['de_mobile_type1_list_mod']; ?>" id="de_mobile_type1_list_mod" class="frm_input" size="3">
<label for="de_mobile_type1_list_row">출력할 줄 수</label>
<input type="text" name="de_mobile_type1_list_row" value="<?php echo $setting['de_mobile_type1_list_row']; ?>" id="de_mobile_type1_list_row" class="frm_input" size="3">
<label for="de_mobile_type1_img_width">이미지 폭</label>
<input type="text" name="de_mobile_type1_img_width" value="<?php echo $setting['de_mobile_type1_img_width']; ?>" id="de_mobile_type1_img_width" class="frm_input" size="3">
<label for="de_mobile_type1_img_height">이미지 높이</label>
Expand All @@ -372,8 +395,10 @@
<select name="de_mobile_type2_list_skin" id="de_mobile_type2_list_skin">
<?php echo cm_get_list_skin_options("^main.[0-9]+\.skin\.php", G5_MCONTENTS_SKIN_PATH, $setting['de_mobile_type2_list_skin']); ?>
</select>
<label for="de_mobile_type2_list_mod">출력할 이미지 수</label>
<label for="de_mobile_type2_list_mod">1줄당 이미지 수</label>
<input type="text" name="de_mobile_type2_list_mod" value="<?php echo $setting['de_mobile_type2_list_mod']; ?>" id="de_mobile_type2_list_mod" class="frm_input" size="3">
<label for="de_mobile_type2_list_row">출력할 줄 수</label>
<input type="text" name="de_mobile_type2_list_row" value="<?php echo $setting['de_mobile_type2_list_row']; ?>" id="de_mobile_type2_list_row" class="frm_input" size="3">
<label for="de_mobile_type2_img_width">이미지 폭</label>
<input type="text" name="de_mobile_type2_img_width" value="<?php echo $setting['de_mobile_type2_img_width']; ?>" id="de_mobile_type2_img_width" class="frm_input" size="3">
<label for="de_mobile_type2_img_height">이미지 높이</label>
Expand All @@ -389,8 +414,10 @@
<select name="de_mobile_type3_list_skin" id="de_mobile_type3_list_skin">
<?php echo cm_get_list_skin_options("^main.[0-9]+\.skin\.php", G5_MCONTENTS_SKIN_PATH, $setting['de_mobile_type3_list_skin']); ?>
</select>
<label for="de_mobile_type3_list_mod">출력할 이미지 수</label>
<label for="de_mobile_type3_list_mod">1줄당 이미지 수</label>
<input type="text" name="de_mobile_type3_list_mod" value="<?php echo $setting['de_mobile_type3_list_mod']; ?>" id="de_mobile_type3_list_mod" class="frm_input" size="3">
<label for="de_mobile_type3_list_row">출력할 줄 수</label>
<input type="text" name="de_mobile_type3_list_row" value="<?php echo $setting['de_mobile_type3_list_row']; ?>" id="de_mobile_type3_list_row" class="frm_input" size="3">
<label for="de_mobile_type3_img_width">이미지 폭</label>
<input type="text" name="de_mobile_type3_img_width" value="<?php echo $setting['de_mobile_type3_img_width']; ?>" id="de_mobile_type3_img_width" class="frm_input" size="3">
<label for="de_mobile_type3_img_height">이미지 높이</label>
Expand All @@ -406,8 +433,10 @@
<select name="de_mobile_type4_list_skin" id="de_mobile_type4_list_skin">
<?php echo cm_get_list_skin_options("^main.[0-9]+\.skin\.php", G5_MCONTENTS_SKIN_PATH, $setting['de_mobile_type4_list_skin']); ?>
</select>
<label for="de_mobile_type4_list_mod">출력할 이미지 수</label>
<label for="de_mobile_type4_list_mod">1줄당 이미지 수</label>
<input type="text" name="de_mobile_type4_list_mod" value="<?php echo $setting['de_mobile_type4_list_mod']; ?>" id="de_mobile_type4_list_mod" class="frm_input" size="3">
<label for="de_mobile_type4_list_row">출력할 줄 수</label>
<input type="text" name="de_mobile_type4_list_row" value="<?php echo $setting['de_mobile_type4_list_row']; ?>" id="de_mobile_type4_list_row" class="frm_input" size="3">
<label for="de_mobile_type4_img_width">이미지 폭</label>
<input type="text" name="de_mobile_type4_img_width" value="<?php echo $setting['de_mobile_type4_img_width']; ?>" id="de_mobile_type4_img_width" class="frm_input" size="3">
<label for="de_mobile_type4_img_height">이미지 높이</label>
Expand Down Expand Up @@ -796,6 +825,8 @@
<input type="text" name="de_mobile_rel_img_width" value="<?php echo $setting['de_mobile_rel_img_width']; ?>" id="de_mobile_rel_img_width" class="frm_input" size="3">
<label for="de_mobile_rel_img_height">이미지높이</label>
<input type="text" name="de_mobile_rel_img_height" value="<?php echo $setting['de_mobile_rel_img_height']; ?>" id="de_mobile_rel_img_height" class="frm_input" size="3">
<label for="de_mobile_rel_list_mod">1줄당 이미지 수</label>
<input type="text" name="de_mobile_rel_list_mod" value="<?php echo $setting['de_mobile_rel_list_mod']; ?>" id="de_mobile_rel_list_mod" class="frm_input" size="3">
<label for="de_mobile_rel_list_use">출력</label>
<input type="checkbox" name="de_mobile_rel_list_use" value="1" id="de_mobile_rel_list_use" <?php echo $setting['de_mobile_rel_list_use']?"checked":""; ?>>
</td>
Expand Down Expand Up @@ -828,8 +859,10 @@
<input type="text" name="de_mobile_search_img_width" value="<?php echo $setting['de_mobile_search_img_width']; ?>" id="de_mobile_search_img_width" class="frm_input" size="3">
<label for="de_mobile_search_img_height">이미지높이</label>
<input type="text" name="de_mobile_search_img_height" value="<?php echo $setting['de_mobile_search_img_height']; ?>" id="de_mobile_search_img_height" class="frm_input" size="3">
<label for="de_mobile_search_list_mod">이미지 수</label>
<label for="de_mobile_search_list_mod">1줄당 이미지 수</label>
<input type="text" name="de_mobile_search_list_mod" value="<?php echo $setting['de_mobile_search_list_mod']; ?>" id="de_mobile_search_list_mod" class="frm_input" size="3">
<label for="de_mobile_search_list_row">출력할 줄 수</label>
<input type="text" name="de_mobile_search_list_row" value="<?php echo $setting['de_mobile_search_list_row']; ?>" id="de_mobile_search_list_row" class="frm_input" size="3">
</td>
</tr>
<tr>
Expand Down

0 comments on commit b109ee7

Please sign in to comment.