Merge branch 'master' of github.com:gnuboard/yc4s
This commit is contained in:
@ -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}
|
||||
|
||||
@ -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 "<img src='".G4_DATA_URL."/content/{$co_id}_h' border=0><br>";
|
||||
|
||||
if ($is_admin)
|
||||
echo "<p align=center><a href='".G4_ADMIN_URL."/shop_admin/contentform.php?w=u&co_id=$co_id'><img src='".G4_SHOP_URL."/img/btn_admin_modify.gif' border=0></a></p>";
|
||||
|
||||
$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 '<div id="socc_himg" class="socc_img"><img src="'.G4_DATA_URL.'/content/'.$co_id.'_h" alt=""></div>';
|
||||
?>
|
||||
|
||||
$timg = G4_DATA_PATH."/content/{$co_id}_t";
|
||||
if (file_exists($timg))
|
||||
echo "<br><img src='".G4_DATA_URL."/content/{$co_id}_t' border=0><br>";
|
||||
<article id="socc" class="socc_<?=$co_id?>">
|
||||
<header>
|
||||
<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&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&co_id='.$co_id.'" class="btn_admin">내용 수정</a></div>';
|
||||
?>
|
||||
</article>
|
||||
|
||||
<?php
|
||||
$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 ($co['co_include_tail'])
|
||||
@include_once($co['co_include_tail']);
|
||||
else
|
||||
include_once('./_tail.php');
|
||||
|
||||
//include_once("./_tail.php");
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user