분류 스킨 경로관련 코드 수정
This commit is contained in:
@ -109,6 +109,17 @@ if(!sql_query(" select ca_order from {$g5['g5_shop_category_table']} limit 1 ",
|
|||||||
ADD `ca_order` int(11) NOT NULL DEFAULT '0' AFTER `ca_name` ", true);
|
ADD `ca_order` int(11) NOT NULL DEFAULT '0' AFTER `ca_name` ", true);
|
||||||
sql_query(" ALTER TABLE `{$g5['g5_shop_category_table']}` ADD INDEX(`ca_order`) ", true);
|
sql_query(" ALTER TABLE `{$g5['g5_shop_category_table']}` ADD INDEX(`ca_order`) ", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 스킨 Path
|
||||||
|
if(!$ca['ca_skin_dir'])
|
||||||
|
$g5_shop_skin_path = G5_SHOP_SKIN_PATH;
|
||||||
|
else
|
||||||
|
$g5_shop_skin_path = G5_PATH.'/'.G5_SKIN_DIR.'/shop/'.$ca['ca_skin_dir'];
|
||||||
|
|
||||||
|
if(!$ca['ca_mobile_skin_dir'])
|
||||||
|
$g5_mshop_skin_path = G5_MSHOP_SKIN_PATH;
|
||||||
|
else
|
||||||
|
$g5_mshop_skin_path = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$ca['ca_mobile_skin_dir'];
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form name="fcategoryform" action="./categoryformupdate.php" onsubmit="return fcategoryformcheck(this);" method="post" enctype="multipart/form-data">
|
<form name="fcategoryform" action="./categoryformupdate.php" onsubmit="return fcategoryformcheck(this);" method="post" enctype="multipart/form-data">
|
||||||
@ -219,9 +230,9 @@ if(!sql_query(" select ca_order from {$g5['g5_shop_category_table']} limit 1 ",
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="ca_skin">출력스킨</label></th>
|
<th scope="row"><label for="ca_skin">출력스킨</label></th>
|
||||||
<td>
|
<td>
|
||||||
<?php echo help('기본으로 제공하는 스킨은 '.str_replace(G5_PATH.'/', '', G5_SHOP_SKIN_PATH).'/list.*.skin.php 입니다.'); ?>
|
<?php echo help('기본으로 제공하는 스킨은 '.str_replace(G5_PATH.'/', '', $g5_shop_skin_path).'/list.*.skin.php 입니다.'); ?>
|
||||||
<select id="ca_skin" name="ca_skin">
|
<select id="ca_skin" name="ca_skin">
|
||||||
<?php echo get_list_skin_options("^list.[0-9]+\.skin\.php", G5_SHOP_SKIN_PATH, $ca['ca_skin']); ?>
|
<?php echo get_list_skin_options("^list.[0-9]+\.skin\.php", $g5_shop_skin_path, $ca['ca_skin']); ?>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -256,9 +267,9 @@ if(!sql_query(" select ca_order from {$g5['g5_shop_category_table']} limit 1 ",
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="ca_mobile_skin">모바일 출력스킨</label></th>
|
<th scope="row"><label for="ca_mobile_skin">모바일 출력스킨</label></th>
|
||||||
<td>
|
<td>
|
||||||
<?php echo help('기본으로 제공하는 스킨은 '.str_replace(G5_PATH.'/', '', G5_MSHOP_SKIN_PATH).'/list.*.skin.php 입니다.'); ?>
|
<?php echo help('기본으로 제공하는 스킨은 '.str_replace(G5_PATH.'/', '', $g5_mshop_skin_path).'/list.*.skin.php 입니다.'); ?>
|
||||||
<select id="ca_mobile_skin" name="ca_mobile_skin">
|
<select id="ca_mobile_skin" name="ca_mobile_skin">
|
||||||
<?php echo get_list_skin_options("^list.[0-9]+\.skin\.php", G5_MSHOP_SKIN_PATH, $ca['ca_mobile_skin']); ?>
|
<?php echo get_list_skin_options("^list.[0-9]+\.skin\.php", $g5_mshop_skin_path, $ca['ca_mobile_skin']); ?>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@ -160,6 +160,17 @@ $listall = '<a href="'.$_SERVER['PHP_SELF'].'" class="ov_listall">전체목록</
|
|||||||
or ca_id3 = '{$row['ca_id']}' ";
|
or ca_id3 = '{$row['ca_id']}' ";
|
||||||
$row1 = sql_fetch($sql1);
|
$row1 = sql_fetch($sql1);
|
||||||
|
|
||||||
|
// 스킨 Path
|
||||||
|
if(!$row['ca_skin_dir'])
|
||||||
|
$g5_shop_skin_path = G5_SHOP_SKIN_PATH;
|
||||||
|
else
|
||||||
|
$g5_shop_skin_path = G5_PATH.'/'.G5_SKIN_DIR.'/shop/'.$row['ca_skin_dir'];
|
||||||
|
|
||||||
|
if(!$row['ca_mobile_skin_dir'])
|
||||||
|
$g5_mshop_skin_path = G5_MSHOP_SKIN_PATH;
|
||||||
|
else
|
||||||
|
$g5_mshop_skin_path = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$row['ca_mobile_skin_dir'];
|
||||||
|
|
||||||
$bg = 'bg'.($i%2);
|
$bg = 'bg'.($i%2);
|
||||||
?>
|
?>
|
||||||
<tr class="<?php echo $bg; ?>">
|
<tr class="<?php echo $bg; ?>">
|
||||||
@ -192,7 +203,7 @@ $listall = '<a href="'.$_SERVER['PHP_SELF'].'" class="ov_listall">전체목록</
|
|||||||
</select>
|
</select>
|
||||||
<label for="ca_skin<?php echo $i; ?>" class="sound_only">PC스킨파일</label>
|
<label for="ca_skin<?php echo $i; ?>" class="sound_only">PC스킨파일</label>
|
||||||
<select id="ca_skin<?php echo $i; ?>" name="ca_skin[<?php echo $i; ?>]" required class="required">
|
<select id="ca_skin<?php echo $i; ?>" name="ca_skin[<?php echo $i; ?>]" required class="required">
|
||||||
<?php echo get_list_skin_options("^list.[0-9]+\.skin\.php", G5_SHOP_SKIN_PATH, $row['ca_skin']); ?>
|
<?php echo get_list_skin_options("^list.[0-9]+\.skin\.php", $g5_shop_skin_path, $row['ca_skin']); ?>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
<td class="td_mng" rowspan="2">
|
<td class="td_mng" rowspan="2">
|
||||||
@ -239,7 +250,7 @@ $listall = '<a href="'.$_SERVER['PHP_SELF'].'" class="ov_listall">전체목록</
|
|||||||
</select>
|
</select>
|
||||||
<label for="ca_mobile_skin<?php echo $i; ?>" class="sound_only">모바일스킨파일</label>
|
<label for="ca_mobile_skin<?php echo $i; ?>" class="sound_only">모바일스킨파일</label>
|
||||||
<select id="ca_mobile_skin<?php echo $i; ?>" name="ca_mobile_skin[<?php echo $i; ?>]" required class="required">
|
<select id="ca_mobile_skin<?php echo $i; ?>" name="ca_mobile_skin[<?php echo $i; ?>]" required class="required">
|
||||||
<?php echo get_list_skin_options("^list.[0-9]+\.skin\.php", G5_MSHOP_SKIN_PATH, $row['ca_mobile_skin']); ?>
|
<?php echo get_list_skin_options("^list.[0-9]+\.skin\.php", $g5_mshop_skin_path, $row['ca_mobile_skin']); ?>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user