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

This commit is contained in:
chicpro
2013-08-08 16:43:01 +09:00
6 changed files with 19 additions and 19 deletions

View File

@ -6,10 +6,10 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 리스트 타입 쿠키가 있을 경우 바로 적용
if(itemlist_type = get_cookie("ck_itemlist_type")) {
if(itemlist_type == "gallery") {
$("ul.sct").removeClass("sct_13");
$("ul.sct").removeClass("sct_40");
set_cookie("ck_itemlist_type", "gallery", 1, g4_cookie_domain);
} else {
$("ul.sct").addClass("sct_13");
$("ul.sct").addClass("sct_40");
set_cookie("ck_itemlist_type", "list", 1, g4_cookie_domain);
}
}
@ -17,10 +17,10 @@ if(itemlist_type = get_cookie("ck_itemlist_type")) {
$(function() {
$("button.sct_lst_view").on("click", function() {
if($(this).hasClass("sct_lst_gallery")) {
$("ul.sct").removeClass("sct_13");
$("ul.sct").removeClass("sct_40");
set_cookie("ck_itemlist_type", "gallery", 1, g4_cookie_domain);
} else {
$("ul.sct").addClass("sct_13");
$("ul.sct").addClass("sct_40");
set_cookie("ck_itemlist_type", "list", 1, g4_cookie_domain);
}
});

View File

@ -8,8 +8,8 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<?php
for ($i=1; $row=sql_fetch_array($result); $i++) {
if ($this->list_mod >= 2) { // 1줄 이미지 : 2개 이상
if ($i%$this->list_mod == 0) $sct_last = 'sct_last'; // 줄 마지막
else if ($i%$this->list_mod == 1) $sct_last = 'sct_clear'; // 줄 첫번째
if ($i%$this->list_mod == 0) $sct_last = ' sct_last'; // 줄 마지막
else if ($i%$this->list_mod == 1) $sct_last = ' sct_clear'; // 줄 첫번째
else $sct_last = '';
} else { // 1줄 이미지 : 1개
$sct_last = 'sct_clear';
@ -23,7 +23,7 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
}
}
echo "<li class=\"sct_li {$sct_last}\">\n";
echo "<li class=\"sct_li{$sct_last}\" style=\"width:{$this->img_width}px\">\n";
if ($this->href) {
echo "<a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\n";

View File

@ -8,11 +8,11 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<?php
for ($i=1; $row=sql_fetch_array($result); $i++) {
if ($this->list_mod >= 2) { // 1줄 이미지 : 2개 이상
if ($i%$this->list_mod == 0) $sct_last = 'sct_last'; // 줄 마지막
else if ($i%$this->list_mod == 1) $sct_last = 'sct_clear'; // 줄 첫번째
if ($i%$this->list_mod == 0) $sct_last = ' sct_last'; // 줄 마지막
else if ($i%$this->list_mod == 1) $sct_last = ' sct_clear'; // 줄 첫번째
else $sct_last = '';
} else { // 1줄 이미지 : 1개
$sct_last = 'sct_clear';
$sct_last = ' sct_clear';
}
if ($i == 1) {
@ -23,7 +23,7 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
}
}
echo "<li class=\"sct_li {$sct_last}\">\n";
echo "<li class=\"sct_li{$sct_last}\" style=\"width:{$this->img_width}px\">\n";
if ($this->href) {
echo "<a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\n";

View File

@ -9,8 +9,8 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
for ($i=1; $row=sql_fetch_array($result); $i++) {
$href = G4_SHOP_URL.'/item.php?it_id='.$row['it_id'];
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'; // 줄 첫번째
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';
@ -24,7 +24,7 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
}
}
echo "<li class=\"sct_li {$sct_last}\">\n";
echo "<li class=\"sct_li{$sct_last}\" style=\"width:{$this->img_width}px\">\n";
if ($this->href) {
echo "<a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\n";

View File

@ -11,11 +11,11 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
for ($i=1; $row=sql_fetch_array($result); $i++) {
$href = G4_SHOP_URL.'/item.php?it_id='.$row['it_id'];
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'; // 줄 첫번째
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';
$sct_last = ' sct_clear';
}
if ($i == 1) {
@ -26,7 +26,7 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
}
}
echo "<li class=\"sct_li {$sct_last}\">\n";
echo "<li class=\"sct_li{$sct_last}\" style=\"width:{$this->img_width}px\">\n";
if ($this->href) {
echo "<a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\n";

View File

@ -23,7 +23,7 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
}
}
echo "<li class=\"sct_li {$sct_last}\">\n";
echo "<li class=\"sct_li {$sct_last}\" style=\"width:{$this->img_width}px\">\n";
if ($this->href) {
echo "<a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\n";