쇼핑몰: #112 내용관리 문서구조 보완

This commit is contained in:
whitedot
2013-05-02 11:05:56 +09:00
parent e2f3027ee8
commit 743705a791
2 changed files with 8 additions and 11 deletions

View File

@ -339,7 +339,7 @@ input.required:focus {padding:3px 3px 4px;border:0;background:#21272e !important
#sbn_idx li {margin:0 0 1px}
/* 내용관리 */
#socc {padding:10px;border:1px solid #e9e9e9}
#socc {margin:10px 0;padding:10px;border:1px solid #e9e9e9}
#socc header h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#socc_con {padding:10px 0}
.socc_admin {text-align:right}
@ -348,7 +348,7 @@ input.required:focus {padding:3px 3px 4px;border:0;background:#21272e !important
/* FAQ 관리 */
#sfaq {}
#sfaq header h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#sfaq_wrap {padding:10px 0}
#sfaq_wrap {margin:10px 0}
#sfaq_wrap h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#sfaq_wrap ol {margin:0;padding:0;list-style:none}
#sfaq_list {margin:0 0 10px;border:1px solid #ccc}

View File

@ -49,6 +49,9 @@ $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&amp;co_id='.$co_id.'" class="btn_admin">내용 수정</a></div>';
$himg = G4_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>';
@ -59,19 +62,10 @@ if (file_exists($himg)) // 상단 이미지
<h1><?php echo $g4['title']; ?></h1>
</header>
<?php
if ($is_admin)
echo '<div class="socc_admin"><a href="'.G4_ADMIN_URL.'/shop_admin/contentform.php?w=u&amp;co_id='.$co_id.'" class="btn_admin">내용 수정</a></div>';
?>
<div id="socc_con">
<?php echo $str; ?>
</div>
<?php
if ($is_admin)
echo '<div class="socc_admin"><a href="'.G4_ADMIN_URL.'/shop_admin/contentform.php?w=u&amp;co_id='.$co_id.'" class="btn_admin">내용 수정</a></div>';
?>
</article>
<?php
@ -79,6 +73,9 @@ $timg = G4_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>';
if ($is_admin)
echo '<div class="socc_admin"><a href="'.G4_ADMIN_URL.'/shop_admin/contentform.php?w=u&amp;co_id='.$co_id.'" class="btn_admin">내용 수정</a></div>';
if ($co['co_include_tail'])
@include_once($co['co_include_tail']);
else