diff --git a/css/default_shop.css b/css/default_shop.css index c9062a428..64bae2a55 100644 --- a/css/default_shop.css +++ b/css/default_shop.css @@ -158,6 +158,13 @@ a:active {color:#000;text-decoration:underline} #container {z-index:4;position:relative;float:left;width:740px;min-height:500px;height:auto !important;height:500px;background:#fff;zoom:1} #container:after {display:block;visibility:hidden;clear:both;content:""} +/* 텍스트 크기 조절 */ +#text_size {display:none;position:absolute;top:-31px;left:-1px} +#text_size button {padding:0 10px;height:30px;border:1px solid #cfded8;border-bottom:0;background:#000;color:#fff;cursor:pointer} + +/* 인덱스 이미지 출력 */ +#sidx_img {margin:0 0 20px} + /* 인덱스 상품 출력 */ /* 공통 */ .sidx_it_wrap {margin:0 0 30px;zoom:1} @@ -190,11 +197,12 @@ a:active {color:#000;text-decoration:underline} #sbn_idx ul {margin:0;padding:0;border:0;list-style:none} #sbn_idx li {margin:0 0 1px} -/* 텍스트 크기 조절 */ -#text_size {display:none;position:absolute;top:-31px;left:-1px} -#text_size button {padding:0 10px;height:30px;border:1px solid #cfded8;border-bottom:0;background:#000;color:#fff;cursor:pointer} - -#sidx_img {margin:0 0 20px} +/* 내용관리 */ +#socc {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} +.socc_img {text-align:center} /* 하단 레이아웃 */ #ft {clear:both;padding:0 0 40px;border-top:1px solid #e9e9e9} diff --git a/shop/content.php b/shop/content.php index 1f1963135..c11dd6542 100644 --- a/shop/content.php +++ b/shop/content.php @@ -5,23 +5,15 @@ include_once('./_common.php'); $sql = " select * from {$g4['shop_content_table']} where co_id = '$co_id' "; $co = sql_fetch($sql); if (!$co['co_id']) - alert("등록된 내용이 없습니다."); + alert('등록된 내용이 없습니다.'); $g4['title'] = $co['co_subject']; -//include_once("./_head.php"); if ($co['co_include_head']) @include_once($co['co_include_head']); else include_once('./_head.php'); -$himg = G4_DATA_PATH."/content/{$co_id}_h"; -if (file_exists($himg)) - echo "
"; - -if ($is_admin) - echo "

"; - $str = conv_content($co['co_content'], $co['co_html']); // $src 를 $dst 로 변환 @@ -57,16 +49,38 @@ $dst[] = $default['de_admin_info_email']; $str = preg_replace($src, $dst, $str); -echo $str; +$himg = G4_DATA_PATH.'/content/'.$co_id.'_h'; +if (file_exists($himg)) // 상단 이미지 + echo '
'; +?> -$timg = G4_DATA_PATH."/content/{$co_id}_t"; -if (file_exists($timg)) - echo "

"; +
+
+

+
+ + 내용 수정'; + ?> + +
+ +
+ + 내용 수정'; + ?> +
+ +'; if ($co['co_include_tail']) @include_once($co['co_include_tail']); else include_once('./_tail.php'); - -//include_once("./_tail.php"); ?>