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

This commit is contained in:
chicpro
2014-11-21 11:27:24 +09:00

View File

@ -5,24 +5,18 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
add_stylesheet('<link rel="stylesheet" href="'.G5_MSHOP_SKIN_URL.'/style.css">', 0);
?>
<script src="<?php echo G5_JS_URL ?>/jquery.fancylist.js"></script>
<!-- 개인결제진열 시작 { -->
<?php
for ($i=1; $row=sql_fetch_array($result); $i++) {
if ($list_mod >= 2) { // 1줄 이미지 : 2개 이상
if ($i%$list_mod == 0) $sct_last = ' sct_last'; // 줄 마지막
else if ($i%$list_mod == 1) $sct_last = ' sct_clear'; // 줄 첫번째
else $sct_last = '';
} else { // 1줄 이미지 : 1개
$sct_last = 'sct_clear';
}
if ($i == 1) {
echo "<ul class=\"sct sct_pv\">\n";
for ($i=0; $row=sql_fetch_array($result); $i++) {
if ($i == 0) {
echo "<ul id=\"sct_wrap\" class=\"sct sct_pv\">\n";
}
$href = G5_SHOP_URL.'/personalpayform.php?pp_id='.$row['pp_id'].'&amp;page='.$page;
?>
<li class="sct_li<?php echo $sct_last; ?>" style="width:<?php echo $img_width; ?>px">
<li class="sct_li" style="width:<?php echo $img_width; ?>px">
<div class="sct_img"><a href="<?php echo $href; ?>" class="sct_a"><img src="<?php echo G5_MSHOP_SKIN_URL; ?>/img/personal.jpg" alt=""></a></div>
<div class="sct_txt"><a href="<?php echo $href; ?>" class="sct_a"><?php echo get_text($row['pp_name']).'님 개인결제'; ?></a></div>
<div class="sct_cost"><?php echo display_price($row['pp_price']); ?></div>
@ -30,8 +24,14 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
<?php
}
if ($i > 1) echo "</ul>\n";
if ($i > 0) echo "</ul>\n";
if($i == 1) echo "<p class=\"sct_noitem\">등록된 개인결제가 없습니다.</p>\n";
if($i == 0) echo "<p class=\"sct_noitem\">등록된 개인결제가 없습니다.</p>\n";
?>
<!-- } 개인결제진열 끝 -->
<!-- } 개인결제진열 끝 -->
<script>
$(function() {
$("#sct_wrap").fancyList("li.sct_li", "sct_clear");
});
</script>