Merge branch 'master' of github.com:gnuboard/yc4s

This commit is contained in:
chicpro
2013-05-06 17:52:32 +09:00
5 changed files with 66 additions and 101 deletions

View File

@ -26,9 +26,11 @@ else
// 1.03.00
// 입력일 경우 기본값으로 대체
$ev['ev_img_width'] = $default['de_simg_width'];
$ev['ev_img_height'] = $default['de_simg_height'];
$ev['ev_list_mod'] = 4;
//$ev['ev_img_width'] = $default['de_simg_width'];
//$ev['ev_img_height'] = $default['de_simg_height'];
$ev['ev_img_width'] = 230;
$ev['ev_img_height'] = 230;
$ev['ev_list_mod'] = 3;
$ev['ev_list_row'] = 5;
}

View File

@ -169,7 +169,7 @@ a:active {color:#000;text-decoration:underline}
.sanchor a {display:inline-block;border:1px solid #e9e9e9;background:#f5f6fa;padding:0 7px;height:30px;text-decoration:none;line-height:2.6em}
.sanchor a:focus,
.sanchor a:hover {background:#626870;color:#fff;text-decoration:none}
a.sanchor_on {background:#626870;color:#fff;text-decoration:none}
a.sanchor_on {background:#626870;color:#fff !important;text-decoration:none}
/* 하단 레이아웃 */
#ft {clear:both;padding:0 0 40px;border-top:1px solid #e9e9e9}
@ -389,6 +389,8 @@ input.required:focus {padding:3px 3px 4px;border:0;background:#21272e !important
.sct_10 .sct_last {margin:0 !important}
.sct_10 .sct_clear {clear:both}
.sct_10 .sct_a {display:block;position:relative;text-decoration:none}
.sct_10 .sct_a:focus,
.sct_10 .sct_a:hover {text-decoration:none}
.sct_10 .sct_img {display:block;margin:0 0 15px}
.sct_10 b {display:block;margin:0 0 8px;font-weight:normal}
.sct_10 s {display:block}
@ -402,6 +404,8 @@ input.required:focus {padding:3px 3px 4px;border:0;background:#21272e !important
.sct_11 .sct_last {margin:0 !important}
.sct_11 .sct_clear {clear:both}
.sct_11 .sct_a {display:block;position:relative;padding:0 0 5px;background:#f5f6fa;text-decoration:none}
.sct_11 .sct_a:focus,
.sct_11 .sct_a:hover {text-decoration:none}
.sct_11 .sct_img {display:block;margin:0 0 15px}
.sct_11 b {display:block;margin:0 0 8px;padding:0 5px;font-weight:normal}
.sct_11 s {display:block}
@ -416,6 +420,8 @@ input.required:focus {padding:3px 3px 4px;border:0;background:#21272e !important
.sct_12 .sct_clear {clear:both}
.sct_12 .sct_arw_toleft {display:block;z-index:2;position:absolute;top:20px;left:221px;width:10px;height:19px;background:url('../img/shop/icon_arw_toleft.gif') no-repeat}
.sct_12 .sct_a {display:block;position:relative;padding:20px 10px 20px 240px;width:110px;height:190px;border:1px solid #e9e9e9;background:#f5f6fa;text-decoration:none}
.sct_12 .sct_a:focus,
.sct_12 .sct_a:hover {text-decoration:none}
.sct_12 .sct_img {position:absolute;top:0;left:0}
.sct_12 b {display:block;margin:0 0 15px;font-size:1.2em;letter-spacing:-0.1em}
.sct_12 p {margin:0 0 15px;padding:0;line-height:1.5em}
@ -431,6 +437,8 @@ input.required:focus {padding:3px 3px 4px;border:0;background:#21272e !important
.sct_13 .sct_clear {clear:both}
.sct_13 .sct_arw_toleft {display:block;z-index:2;position:absolute;top:20px;left:221px;width:10px;height:19px;background:url('../img/shop/icon_arw_toleft.gif') no-repeat}
.sct_13 .sct_a {display:block;position:relative;padding:20px 10px 20px 240px;height:190px;border:1px solid #e9e9e9;background:#f5f6fa;text-decoration:none}
.sct_13 .sct_a:focus,
.sct_13 .sct_a:hover {text-decoration:none}
.sct_13 .sct_img {position:absolute;top:0;left:0}
.sct_13 b {display:block;margin:0 0 15px;font-size:1.2em;letter-spacing:-0.1em}
.sct_13 p {margin:0 0 15px;padding:0;line-height:1.5em}
@ -603,3 +611,7 @@ input.required:focus {padding:3px 3px 4px;border:0;background:#21272e !important
.ssch_it_img {width:100px;text-align:center}
.ssch_it_img img {width:100px;height:100px}
#ssch .ssch_num {width:150px;text-align:right}
/* 쇼핑몰 이벤트 */
#sev {}
.sev_admin {text-align:right}

View File

@ -11,21 +11,17 @@ if (!$ev['ev_id'])
$g4['title'] = $ev['ev_subject'];
include_once('./_head.php');
$himg = G4_DATA_PATH."/event/{$ev_id}_h";
if (file_exists($himg))
echo "<img src='".G4_DATA_URL."/event/{$ev_id}_h' border=0><br>";
if ($is_admin)
echo "<p align=center><a href='".G4_ADMIN_URL."/shop_admin/itemeventform.php?w=u&ev_id={$ev['ev_id']}'><img src='".G4_SHOP_URL."/img/btn_admin_modify.gif' border=0></a></p>";
echo '<div class="sev_admin"><a href="'.G4_ADMIN_URL.'/shop_admin/itemeventform.php?w=u&amp;ev_id='.$ev['ev_id'].'" class="btn_admin">이벤트 관리</a></div>';
$himg = G4_DATA_PATH.'/event/'.$ev_id.'_h';
if (file_exists($himg))
echo '<div id="sev_himg" class="sev_img"><img src="'.G4_DATA_URL.'/event/'.$ev_id.'_h" alt=""></div>';
// 상단 HTML
echo stripslashes($ev['ev_head_html']);
echo '<div id="sev_hhtml">'.stripslashes($ev['ev_head_html']).'</div>';
?>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td>
<?php
// 상품 출력순서가 있다면
if ($sort != "")
@ -105,25 +101,18 @@ if ($i==0)
}
?>
</td>
</tr>
</table>
<br>
<div align=center>
<?php
$qstr .= "ca_id=$ca_id&skin=$skin&ev_id=$ev_id&sort=$sort";
echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");
$qstr .= 'ca_id='.$ca_id.'&amp;skin='.$skin.'&amp;ev_id='.$ev_id.'&amp;sort='.$sort;
echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page=");
?>
</div><br>
<?php
// 하단 HTML
echo stripslashes($ev['ev_tail_html']);
echo '<div id="sev_thtml">'.stripslashes($ev['ev_tail_html']).'</div>';
$timg = G4_DATA_PATH."/event/{$ev_id}_t";
$timg = G4_DATA_PATH.'/event/'.$ev_id.'_t';
if (file_exists($timg))
echo "<br><img src='".G4_DATA_URL."/event/{$ev_id}_t' border=0><br>";
echo '<div id="sev_timg" class="sev_img"><img src="'.G4_DATA_URL.'/event/'.$ev_id.'_t" alt=""></div>';
include_once('./_tail.php');
?>

View File

@ -493,7 +493,7 @@ else
if ($num)
include G4_SHOP_PATH.'/maintype10.inc.php';
else
echo '이 상품과 관련된 상품이 없습니다.';
echo '<p class="sit_empty">이 상품과 관련된 상품이 없습니다.</p>';
?>
</div>
</section>

View File

@ -14,90 +14,52 @@ if (!$it['it_name'])
alert_close("등록된 상품이 아닙니다.");
$g4['title'] = $it['it_name'].' - 추천하기';
define('_SHOP_', true);
include_once(G4_PATH.'/head.sub.php');
?>
<table width="600" height="50" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle" bgcolor="#EBEBEB">
<table width="590" height="40" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25" align="center" bgcolor="#FFFFFF" ><img src="<?php echo G4_SHOP_URL; ?>/img/icon_01.gif" width="5" height="5"></td>
<td width="490" align="left" bgcolor="#FFFFFF" ><font color="#666666"><b><?php echo get_text($g4['title']); ?></b></font></td>
<td width="75" bgcolor="#FFFFFF" ></td>
</tr>
</table></td>
</tr>
</table>
<div id="sit_rec_new" class="new_win">
<h1><?php echo $g4['title']; ?></h1>
<div class="cbox">
<form name="fitemrecommend" method="post" action="./itemrecommendmail.php" autocomplete="off" onsubmit="return fitemrecommend_check(this);">
<input type="hidden" name="token" value="<?php echo $token; ?>">
<input type="hidden" name="it_id" value="<?php echo $it_id; ?>">
<table class="frm_tbl">
<colgroup>
<col class="grid_3">
<col>
</colgroup>
<tbody>
<tr>
<th scope="row"><label for="to_email">추천받는 분 E-mail</label></th>
<td><input type="text" name="to_email" id="to_email" required class="frm_input" size="51"></td>
</tr>
<tr>
<th scope="row"><label for="subject">제목</label></th>
<td><input type="text" name="subject" id="subject" required class="frm_input" size="51"></td>
</tr>
<tr>
<th scope="row"><label for="content">내용</label></th>
<td><textarea name="content" id="content" required></textarea></td>
</tr>
</tbody>
</table>
<form name="fitemrecommend" method="post" action="./itemrecommendmail.php" onsubmit="return fitemrecommend_check(this);" style='margin:0px;' autocomplete='off'>
<input type=hidden name=token value='<?php echo $token; ?>'>
<input type=hidden name=it_id value='<?php echo $it_id; ?>'>
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="300" align="center" valign="top">
<table width="540" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20"></td>
</tr>
<tr>
<td height="2" bgcolor="#808080"></td>
</tr>
<tr>
<td width="540" height="2" align="center" valign="top" bgcolor="#FFFFFF">
<table width=100% cellpadding=0 cellspacing=0 border=0 height=40 bgcolor='#F6F6F6'>
<colgroup width=130>
<colgroup width=''>
<tr>
<td height="24" rowspan="2">&nbsp; 추천하실 분 E-mail</td>
<td><input type=text id='to_email' name='to_email' required itemname='추천하실 분 E-mail' class=ed style="width:97%;"></td>
</tr>
<!-- <tr align=center>
<td>※ 추천하실 분이 여러명인 경우 E-mail을 컴마(,)로 구분하세요. 최대 3명</td>
</tr> -->
</table>
</td>
</tr>
<tr>
<td bgcolor="#F6F6F6">
<table width=100% cellpadding=0 cellspacing=0>
<colgroup width=130>
<colgroup width=''>
<tr style='padding-top:7px; padding-bottom:7px;'>
<td>&nbsp; 제목</td>
<td><input type=text name='subject' class=ed style='width:97%;' required itemname='제목'></td>
</tr>
<tr style='padding-top:7px; padding-bottom:7px;'>
<td>&nbsp; 내용</td>
<td><textarea name='content' rows=10 style='width:97%;' required itemname='내용' class=ed></textarea></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="2" align="center" valign="top" bgcolor="#D5D5D5"></td>
</tr>
<tr>
<td height="2" align="center" valign="top" bgcolor="#E6E6E6"></td>
</tr>
<tr>
<td height="40" align="center" valign="bottom">
<input id=btn_submit type=image src="<?php echo G4_SHOP_URL; ?>/img/btn_confirm.gif" border=0>&nbsp;
<a href="javascript:window.close();"><img src="<?php echo G4_SHOP_URL; ?>/img/btn_close.gif" border="0"></a>
</td>
</tr>
</table>
</form>
<div class="btn_win">
<input type="submit" id="btn_submit" value="보내기" class="btn_submit">
<a href="javascript:window.close();">창닫기</a>
</div>
</form>
</div>
<script language="javascript">
</div>
<script>
function fitemrecommend_check(f)
{
return true;
}
document.getElementById('to_email').focus();
</script>
<?php