영카트 5.4 버전 내용 적용

This commit is contained in:
thisgun
2019-12-02 10:29:31 +09:00
parent 8517e1e31e
commit 9b0078350d
840 changed files with 36442 additions and 28088 deletions

View File

@ -8,10 +8,11 @@ $hresult = sql_query($hsql);
if(sql_num_rows($hresult)) {
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.G5_SHOP_SKIN_URL.'/style.css">', 0);
?>
<div id="sev">
<h2>이벤트</h2>
<header>
<h2>이벤트</h2>
</header>
<ul>
<?php
for ($i=0; $row=sql_fetch_array($hresult); $i++)
@ -22,7 +23,7 @@ if(sql_num_rows($hresult)) {
$event_img = G5_DATA_PATH.'/event/'.$row['ev_id'].'_m'; // 이벤트 이미지
if (file_exists($event_img)) { // 이벤트 이미지가 있다면 이미지 출력
echo '<a href="'.$href.'" class="sev_img "><img src="'.G5_DATA_URL.'/event/'.$row['ev_id'].'_m" alt="'.$row['ev_subject'].'"></a>'.PHP_EOL;
echo '<a href="'.$href.'" class="sev_img"><img src="'.G5_DATA_URL.'/event/'.$row['ev_id'].'_m" alt="'.$row['ev_subject'].'"></a>'.PHP_EOL;
} else { // 없다면 텍스트 출력
echo '<a href="'.$href.'" class="sev_text">';
if ($row['ev_subject_strong']) echo '<strong>';
@ -33,17 +34,17 @@ if(sql_num_rows($hresult)) {
// 이벤트 상품
$sql2 = " select b.*
from `{$g5['g5_shop_event_item_table']}` a left join `{$g5['g5_shop_item_table']}` b on (a.it_id = b.it_id)
where a.ev_id = '{$row['ev_id']}'
order by it_id desc
limit 0, 2 ";
from `{$g5['g5_shop_event_item_table']}` a left join `{$g5['g5_shop_item_table']}` b on (a.it_id = b.it_id)
where a.ev_id = '{$row['ev_id']}'
order by it_id desc
limit 0, 3 ";
$result2 = sql_query($sql2);
for($k=1; $row2=sql_fetch_array($result2); $k++) {
if($k == 1) {
echo '<ul class="ev_prd">'.PHP_EOL;
}
$item_href = G5_SHOP_URL.'/item.php?it_id='.$row2['it_id'];
$item_href = shop_item_url($row2['it_id']);
echo '<li class="ev_prd_'.$k.'">'.PHP_EOL;
echo '<span class="ev_prd_img">'.get_it_image($row2['it_id'], 110, 110, get_text($row2['it_name'])).'</span>'.PHP_EOL;
@ -51,7 +52,7 @@ if(sql_num_rows($hresult)) {
echo '<span class="ev_prd_price">'.display_price(get_price($row2), $row2['it_tel_inq']).'</span></div>'.PHP_EOL;
echo '</li>'.PHP_EOL;
}
echo '<li><a href="'.$href.'" class="sev_more">더보기</a></li>'.PHP_EOL;
if($k > 1) {
echo '</ul>'.PHP_EOL;
}
@ -61,7 +62,9 @@ if(sql_num_rows($hresult)) {
echo '<li class="no_prd">등록된 상품이 없습니다.</li>'.PHP_EOL;
echo '</ul>'.PHP_EOL;
}
echo '</div></li>'.PHP_EOL;
//echo '<a href="'.$href.'" class="sev_more">더보기</a>'.PHP_EOL;
echo '</div>'.PHP_EOL;
echo '</li>'.PHP_EOL;
}