g4를 g5로 변경
This commit is contained in:
@ -2,12 +2,12 @@
|
||||
include_once('./_common.php');
|
||||
|
||||
// 내용
|
||||
$sql = " select * from {$g4['shop_content_table']} where co_id = '$co_id' ";
|
||||
$sql = " select * from {$g5['shop_content_table']} where co_id = '$co_id' ";
|
||||
$co = sql_fetch($sql);
|
||||
if (!$co['co_id'])
|
||||
alert('등록된 내용이 없습니다.');
|
||||
|
||||
$g4['title'] = $co['co_subject'];
|
||||
$g5['title'] = $co['co_subject'];
|
||||
|
||||
if ($co['co_include_head'])
|
||||
@include_once($co['co_include_head']);
|
||||
@ -50,19 +50,19 @@ $dst[] = $default['de_admin_info_email'];
|
||||
$str = preg_replace($src, $dst, $str);
|
||||
|
||||
if ($is_admin)
|
||||
echo '<div class="socc_admin"><a href="'.G4_ADMIN_URL.'/shop_admin/contentform.php?w=u&co_id='.$co_id.'" class="btn_admin">내용 수정</a></div>';
|
||||
echo '<div class="socc_admin"><a href="'.G5_ADMIN_URL.'/shop_admin/contentform.php?w=u&co_id='.$co_id.'" class="btn_admin">내용 수정</a></div>';
|
||||
?>
|
||||
|
||||
<!-- 등록내용 시작 { -->
|
||||
<?php
|
||||
$himg = G4_DATA_PATH.'/content/'.$co_id.'_h';
|
||||
$himg = G5_DATA_PATH.'/content/'.$co_id.'_h';
|
||||
if (file_exists($himg)) // 상단 이미지
|
||||
echo '<div id="socc_himg" class="socc_img"><img src="'.G4_DATA_URL.'/content/'.$co_id.'_h" alt=""></div>';
|
||||
echo '<div id="socc_himg" class="socc_img"><img src="'.G5_DATA_URL.'/content/'.$co_id.'_h" alt=""></div>';
|
||||
?>
|
||||
|
||||
<article id="socc" class="socc_<?php echo $co_id; ?>">
|
||||
<header>
|
||||
<h1><?php echo $g4['title']; ?></h1>
|
||||
<h1><?php echo $g5['title']; ?></h1>
|
||||
</header>
|
||||
|
||||
<div id="socc_con">
|
||||
@ -72,12 +72,12 @@ if (file_exists($himg)) // 상단 이미지
|
||||
</article>
|
||||
|
||||
<?php
|
||||
$timg = G4_DATA_PATH.'/content/'.$co_id.'_t';
|
||||
$timg = G5_DATA_PATH.'/content/'.$co_id.'_t';
|
||||
if (file_exists($timg)) // 하단 이미지
|
||||
echo '<div id="socc_timg" class="socc_img"><img src="'.G4_DATA_URL.'/content/'.$co_id.'_t" alt=""></div>';
|
||||
echo '<div id="socc_timg" class="socc_img"><img src="'.G5_DATA_URL.'/content/'.$co_id.'_t" alt=""></div>';
|
||||
|
||||
if ($is_admin)
|
||||
echo '<div class="socc_admin"><a href="'.G4_ADMIN_URL.'/shop_admin/contentform.php?w=u&co_id='.$co_id.'" class="btn_admin">내용 수정</a></div>';
|
||||
echo '<div class="socc_admin"><a href="'.G5_ADMIN_URL.'/shop_admin/contentform.php?w=u&co_id='.$co_id.'" class="btn_admin">내용 수정</a></div>';
|
||||
?>
|
||||
<!-- } 등록내용 끝 -->
|
||||
|
||||
|
||||
Reference in New Issue
Block a user