Merge branch 'master' of github.com:gnuboard/yc4s
This commit is contained in:
@ -34,7 +34,6 @@ $colspan = 4;
|
||||
<th scope="col">그룹아이디</th>
|
||||
<th scope="col">그룹</th>
|
||||
<th scope="col">처리일시</th>
|
||||
<th scope="col">삭제</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -54,7 +53,6 @@ $colspan = 4;
|
||||
<td class="td_grid"><a href="<?php echo $g4['bbs_path'] ?>/group.php?gr_id=<?php echo $row['gr_id'] ?>"><?php echo $row['gr_id'] ?></a></td>
|
||||
<td class="td_category"><?php echo $row['gr_subject'] ?></td>
|
||||
<td class="td_time"><?php echo $row['gm_datetime'] ?></td>
|
||||
<td class="td_mng"><?php echo $s_del ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
@ -210,7 +210,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
<input type="checkbox" name="de_type1_list_use" value="1" id="de_type1_list_use" <?php echo $default['de_type1_list_use']?"checked":""; ?>>
|
||||
<label for="de_type1_list_skin">스킨</label>
|
||||
<select name="de_type1_list_skin" id="de_type1_list_skin">
|
||||
<?php echo get_list_skin_options("^list.[^\.]+\.skin\.php", G4_SHOP_SKIN_PATH, $default['de_type1_list_skin']); ?>
|
||||
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G4_SHOP_SKIN_PATH, $default['de_type1_list_skin']); ?>
|
||||
</select>
|
||||
<label for="de_type1_list_row">출력할 줄 수</label>
|
||||
<input type="text" name="de_type1_list_row" value="<?php echo $default['de_type1_list_row']; ?>" id="de_type1_list_row" class="frm_input" size="3">
|
||||
@ -229,7 +229,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
<input type="checkbox" name="de_type2_list_use" value="1" id="de_type2_list_use" <?php echo $default['de_type2_list_use']?"checked":""; ?>>
|
||||
<label for="de_type2_list_skin">스킨</label>
|
||||
<select name="de_type2_list_skin" id="de_type2_list_skin">
|
||||
<?php echo get_list_skin_options("^list.[^\.]+\.skin\.php", G4_SHOP_SKIN_PATH, $default['de_type2_list_skin']); ?>
|
||||
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G4_SHOP_SKIN_PATH, $default['de_type2_list_skin']); ?>
|
||||
</select>
|
||||
<label for="de_type2_list_row">출력할 줄 수</label>
|
||||
<input type="text" name="de_type2_list_row" value="<?php echo $default['de_type2_list_row']; ?>" id="de_type2_list_row" class="frm_input" size="3">
|
||||
@ -248,7 +248,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
<input type="checkbox" name="de_type3_list_use" value="1" id="de_type3_list_use" <?php echo $default['de_type3_list_use']?"checked":""; ?>>
|
||||
<label for="de_type3_list_skin">스킨</label>
|
||||
<select name="de_type3_list_skin" id="de_type3_list_skin">
|
||||
<?php echo get_list_skin_options("^list.[^\.]+\.skin\.php", G4_SHOP_SKIN_PATH, $default['de_type3_list_skin']); ?>
|
||||
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G4_SHOP_SKIN_PATH, $default['de_type3_list_skin']); ?>
|
||||
</select>
|
||||
<label for="de_type3_list_row">출력할 줄 수</label>
|
||||
<input type="text" name="de_type3_list_row" value="<?php echo $default['de_type3_list_row']; ?>" id="de_type3_list_row" class="frm_input" size="3">
|
||||
@ -267,7 +267,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
<input type="checkbox" name="de_type4_list_use" value="1" id="de_type4_list_use" <?php echo $default['de_type4_list_use']?"checked":""; ?>>
|
||||
<label for="de_type4_list_skin">스킨</label>
|
||||
<select name="de_type4_list_skin" id="de_type4_list_skin">
|
||||
<?php echo get_list_skin_options("^list.[^\.]+\.skin\.php", G4_SHOP_SKIN_PATH, $default['de_type4_list_skin']); ?>
|
||||
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G4_SHOP_SKIN_PATH, $default['de_type4_list_skin']); ?>
|
||||
</select>
|
||||
<label for="de_type4_list_row">출력할 줄 수</label>
|
||||
<input type="text" name="de_type4_list_row" value="<?php echo $default['de_type4_list_row']; ?>" id="de_type4_list_row" class="frm_input" size="3">
|
||||
@ -286,7 +286,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
<input type="checkbox" name="de_type5_list_use" value="1" id="de_type5_list_use" <?php echo $default['de_type5_list_use']?"checked":""; ?>>
|
||||
<label for="de_type5_list_skin">스킨</label>
|
||||
<select name="de_type5_list_skin" id="de_type5_list_skin">
|
||||
<?php echo get_list_skin_options("^list.[^\.]+\.skin\.php", G4_SHOP_SKIN_PATH, $default['de_type5_list_skin']); ?>
|
||||
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G4_SHOP_SKIN_PATH, $default['de_type5_list_skin']); ?>
|
||||
</select>
|
||||
<label for="de_type5_list_row">출력할 줄 수</label>
|
||||
<input type="text" name="de_type5_list_row" value="<?php echo $default['de_type5_list_row']; ?>" id="de_type5_list_row" class="frm_input" size="3">
|
||||
@ -322,7 +322,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
<input type="checkbox" name="de_mobile_type1_list_use" value="1" id="de_mobile_type1_list_use" <?php echo $default['de_mobile_type1_list_use']?"checked":""; ?>>
|
||||
<label for="de_mobile_type1_list_skin">스킨</label>
|
||||
<select name="de_mobile_type1_list_skin" id="de_mobile_type1_list_skin">
|
||||
<?php echo get_list_skin_options("^list.[^\.]+\.skin\.php", G4_MSHOP_SKIN_PATH, $default['de_mobile_type1_list_skin']); ?>
|
||||
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G4_MSHOP_SKIN_PATH, $default['de_mobile_type1_list_skin']); ?>
|
||||
</select>
|
||||
<label for="de_mobile_type1_list_mod">출력할 이미지 수</label>
|
||||
<input type="text" name="de_mobile_type1_list_mod" value="<?php echo $default['de_mobile_type1_list_mod']; ?>" id="de_mobile_type1_list_mod" class="frm_input" size="3">
|
||||
@ -338,7 +338,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
<label for="de_mobile_type2_list_use">출력</label> <input type="checkbox" name="de_mobile_type2_list_use" value="1" id="de_mobile_type2_list_use" <?php echo $default['de_mobile_type2_list_use']?"checked":""; ?>>
|
||||
<label for="de_mobile_type2_list_skin">스킨 </label>
|
||||
<select name="de_mobile_type2_list_skin" id="de_mobile_type2_list_skin">
|
||||
<?php echo get_list_skin_options("^list.[^\.]+\.skin\.php", G4_MSHOP_SKIN_PATH, $default['de_mobile_type2_list_skin']); ?>
|
||||
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G4_MSHOP_SKIN_PATH, $default['de_mobile_type2_list_skin']); ?>
|
||||
</select>
|
||||
<label for="de_mobile_type2_list_mod">출력할 이미지 수</label>
|
||||
<input type="text" name="de_mobile_type2_list_mod" value="<?php echo $default['de_mobile_type2_list_mod']; ?>" id="de_mobile_type2_list_mod" class="frm_input" size="3">
|
||||
@ -355,7 +355,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
<input type="checkbox" name="de_mobile_type3_list_use" value="1" id="de_mobile_type3_list_use" <?php echo $default['de_mobile_type3_list_use']?"checked":""; ?>>
|
||||
<label for="de_mobile_type3_list_skin">스킨</label>
|
||||
<select name="de_mobile_type3_list_skin" id="de_mobile_type3_list_skin">
|
||||
<?php echo get_list_skin_options("^list.[^\.]+\.skin\.php", G4_MSHOP_SKIN_PATH, $default['de_mobile_type3_list_skin']); ?>
|
||||
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G4_MSHOP_SKIN_PATH, $default['de_mobile_type3_list_skin']); ?>
|
||||
</select>
|
||||
<label for="de_mobile_type3_list_mod">출력할 이미지 수</label>
|
||||
<input type="text" name="de_mobile_type3_list_mod" value="<?php echo $default['de_mobile_type3_list_mod']; ?>" id="de_mobile_type3_list_mod" class="frm_input" size="3">
|
||||
@ -372,7 +372,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
<input type="checkbox" name="de_mobile_type4_list_use" value="1" id="de_mobile_type4_list_use" <?php echo $default['de_mobile_type4_list_use']?"checked":""; ?>>
|
||||
<label for="de_mobile_type4_list_skin">스킨</label>
|
||||
<select name="de_mobile_type4_list_skin" id="de_mobile_type4_list_skin">
|
||||
<?php echo get_list_skin_options("^list.[^\.]+\.skin\.php", G4_MSHOP_SKIN_PATH, $default['de_mobile_type4_list_skin']); ?>
|
||||
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G4_MSHOP_SKIN_PATH, $default['de_mobile_type4_list_skin']); ?>
|
||||
</select>
|
||||
<label for="de_mobile_type4_list_mod">출력할 이미지 수</label>
|
||||
<input type="text" name="de_mobile_type4_list_mod" value="<?php echo $default['de_mobile_type4_list_mod']; ?>" id="de_mobile_type4_list_mod" class="frm_input" size="3">
|
||||
@ -389,7 +389,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
<input type="checkbox" name="de_mobile_type5_list_use" value="1" id="de_mobile_type5_list_use" <?php echo $default['de_mobile_type5_list_use']?"checked":""; ?>>
|
||||
<label for="de_mobile_type5_list_skin">스킨</label>
|
||||
<select id="de_mobile_type5_list_skin" name="de_mobile_type5_list_skin">
|
||||
<?php echo get_list_skin_options("^list.[^\.]+\.skin\.php", G4_MSHOP_SKIN_PATH, $default['de_mobile_type5_list_skin']); ?>
|
||||
<?php echo get_list_skin_options("^main.[^\.]+\.skin\.php", G4_MSHOP_SKIN_PATH, $default['de_mobile_type5_list_skin']); ?>
|
||||
</select>
|
||||
<label for="de_mobile_type5_list_mod">출력할 이미지 수</label>
|
||||
<input type="text" name="de_mobile_type5_list_mod" value="<?php echo $default['de_mobile_type5_list_mod']; ?>" id="de_mobile_type5_list_mod" class="frm_input" size="3">
|
||||
@ -681,7 +681,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
<tr>
|
||||
<th scope="row">관련상품출력</th>
|
||||
<td>
|
||||
<?php echo help(G4_SHOP_DIR.'/item.php 에서 '.G4_SHOP_DIR.'/maintype10.inc.php 를 include 하여 출력합니다.'); ?>
|
||||
<?php echo help(G4_SHOP_DIR.'/item.php 에서 스킨설정에서 설정된 스킨의 list.10.skin.php 를 include 하여 출력합니다.'); ?>
|
||||
<label for="de_rel_list_mod">1줄당 이미지 수</label>
|
||||
<input type="text" name="de_rel_list_mod" value="<?php echo $default['de_rel_list_mod']; ?>" id="de_rel_list_mod" class="frm_input" size="3">
|
||||
<label for="de_rel_img_width">이미지폭</label>
|
||||
|
||||
@ -3,6 +3,16 @@ include_once('./_common.php');
|
||||
include_once(G4_PATH.'/head.sub.php');
|
||||
?>
|
||||
|
||||
<script>
|
||||
var conf = "<?php echo strip_tags($msg); ?>";
|
||||
if (confirm(conf)) {
|
||||
document.location.replace("<?php echo $url1; ?>");
|
||||
} else {
|
||||
document.location.replace("<?php echo $url2; ?>");
|
||||
}
|
||||
</script>
|
||||
|
||||
<noscript>
|
||||
<article id="confirm_check">
|
||||
<header>
|
||||
<hgroup>
|
||||
@ -18,6 +28,7 @@ include_once(G4_PATH.'/head.sub.php');
|
||||
<a href="<?php echo $url2; ?>">취소</a><br><br>
|
||||
<a href="<?php echo $url3; ?>">돌아가기</a>
|
||||
</article>
|
||||
</noscript>
|
||||
|
||||
<?php
|
||||
include_once(G4_PATH.'/tail.sub.php');
|
||||
|
||||
@ -13,7 +13,7 @@ if ($mb_md5)
|
||||
{
|
||||
sql_query(" update {$g4['member_table']} set mb_email_certify = '".G4_TIME_YMDHIS."' where mb_id = '{$mb_id}' ");
|
||||
|
||||
alert('E-mail 인증 처리를 완료 하였습니다.', G4_URL);
|
||||
alert("메일인증 처리를 완료 하였습니다.\\n\\n지금부터 {$mb_id} 아이디로 로그인 가능합니다.", G4_URL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -30,8 +30,9 @@ if ($mb['mb_leave_date'] && $mb['mb_leave_date'] <= date("Ymd", G4_SERVER_TIME))
|
||||
alert('탈퇴한 아이디이므로 접근하실 수 없습니다.\n탈퇴일 : '.$date);
|
||||
}
|
||||
|
||||
if ($config['cf_use_email_certify'] && !preg_match("/[1-9]/", $mb['mb_email_certify']))
|
||||
alert('메일인증을 받으셔야 로그인 하실 수 있습니다.\\n회원님의 메일주소는 '.$mb['mb_email'].' 입니다.');
|
||||
if ($config['cf_use_email_certify'] && !preg_match("/[1-9]/", $mb['mb_email_certify'])) {
|
||||
confirm("{$mb['mb_email']} 메일로 메일인증을 받으셔야 로그인 가능합니다. 다른 메일주소로 인증하시려면 취소를 클릭하시기 바랍니다.", G4_URL, G4_BBS_URL.'/register_email.php?mb_id='.$mb_id);
|
||||
}
|
||||
|
||||
@include_once($member_skin_path.'/login_check.skin.php');
|
||||
|
||||
|
||||
27
bbs/move.php
27
bbs/move.php
@ -26,10 +26,9 @@ else {
|
||||
}
|
||||
}
|
||||
|
||||
$sql = " select * from {$g4['board_table']} a,
|
||||
{$g4['group_table']} b
|
||||
where a.gr_id = b.gr_id
|
||||
and bo_table <> '$bo_table' ";
|
||||
//$sql = " select * from {$g4['board_table']} a, {$g4['group_table']} b where a.gr_id = b.gr_id and bo_table <> '$bo_table' ";
|
||||
// 원본 게시판을 선택 할 수 있도록 함.
|
||||
$sql = " select * from {$g4['board_table']} a, {$g4['group_table']} b where a.gr_id = b.gr_id ";
|
||||
if ($is_admin == 'group')
|
||||
$sql .= " and b.gr_admin = '{$member['mb_id']}' ";
|
||||
else if ($is_admin == 'board')
|
||||
@ -59,7 +58,10 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
<caption><?php echo $act ?>할 게시판을 한개 이상 선택하여 주십시오.</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">선택</th>
|
||||
<th scope="col">
|
||||
<label for="chkall" class="sound_only">현재 페이지 게시물 전체</label>
|
||||
<input type="checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);">
|
||||
</th>
|
||||
<th scope="col">게시판</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -67,6 +69,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
<?php for ($i=0; $i<count($list); $i++) { ?>
|
||||
<tr>
|
||||
<td class="td_chk">
|
||||
<label for="chk<?php echo $i ?>" class="sound_only"><?php echo $list[$i]['bo_table'] ?></label>
|
||||
<input type="checkbox" id="chk<?php echo $i ?>" name="chk_bo_table[]" value="<?php echo $list[$i]['bo_table'] ?>">
|
||||
</td>
|
||||
<td>
|
||||
@ -76,6 +79,11 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$save_gr_subject = $list[$i]['gr_subject'];
|
||||
?>
|
||||
<?php echo $list[$i]['bo_subject'] ?> (<?php echo $list[$i]['bo_table'] ?>)
|
||||
<?php
|
||||
if ($list[$i]['bo_table'] == $bo_table) {
|
||||
echo " <- 원본 게시판";
|
||||
}
|
||||
?>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
@ -99,6 +107,15 @@ $(function() {
|
||||
});
|
||||
});
|
||||
|
||||
function all_checked(sw) {
|
||||
var f = document.fboardmoveall;
|
||||
|
||||
for (var i=0; i<f.length; i++) {
|
||||
if (f.elements[i].name == "chk_bo_table[]")
|
||||
f.elements[i].checked = sw;
|
||||
}
|
||||
}
|
||||
|
||||
function fboardmoveall_submit(f)
|
||||
{
|
||||
var check = false;
|
||||
|
||||
@ -68,6 +68,7 @@ while ($row = sql_fetch_array($result))
|
||||
wr_email = '".addslashes($row2['wr_email'])."',
|
||||
wr_homepage = '".addslashes($row2['wr_homepage'])."',
|
||||
wr_datetime = '{$row2['wr_datetime']}',
|
||||
wr_file = '{$row2['wr_file']}',
|
||||
wr_last = '{$row2['wr_last']}',
|
||||
wr_ip = '{$row2['wr_ip']}',
|
||||
wr_1 = '".addslashes($row2['wr_1'])."',
|
||||
|
||||
45
bbs/register_email.php
Normal file
45
bbs/register_email.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php');
|
||||
|
||||
$sql = " select mb_email, mb_datetime, mb_email_certify from {$g4['member_table']} where mb_id = '{$mb_id}' ";
|
||||
$mb = sql_fetch($sql);
|
||||
if (substr($mb['mb_email_certify'],0,1)!=0) {
|
||||
alert("이미 메일인증 하신 회원입니다.", G4_URL);
|
||||
}
|
||||
|
||||
$g4['title'] = '메일인증 메일주소 변경';
|
||||
include_once('./_head.php');
|
||||
?>
|
||||
|
||||
<p>메일인증을 받지 못한 경우 회원정보의 메일주소를 변경 할 수 있습니다.</p>
|
||||
|
||||
<form method="post" name="fregister_email" onsubmit="return fregister_email_submit(this);">
|
||||
<input type="hidden" name="mb_id" value="<?php echo $mb_id; ?>">
|
||||
<table class="frm_tbl">
|
||||
<caption>사이트 이용정보 입력</caption>
|
||||
<tr>
|
||||
<th scope="row"><label for="reg_mb_email">E-mail<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="text" name="mb_email" id="reg_mb_email" required class="frm_input email required" size="50" maxlength="100" value="<?php echo $mb['mb_email']; ?>"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">자동등록방지</th>
|
||||
<td><?php echo captcha_html(); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" id="btn_submit" class="btn_submit" value="인증메일변경">
|
||||
<a href="<?php echo G4_URL ?>" class="btn_cancel">취소</a>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
function fregister_email_submit(f)
|
||||
{
|
||||
<?php echo chk_captcha_js(); ?>
|
||||
|
||||
f.action = "<?php echo G4_HTTPS_BBS_URL.'/register_email_update.php'; ?>";
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<?
|
||||
include_once('./_tail.php');
|
||||
?>
|
||||
44
bbs/register_email_update.php
Normal file
44
bbs/register_email_update.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php');
|
||||
include_once(G4_LIB_PATH.'/mailer.lib.php');
|
||||
|
||||
$mb_id = escape_trim($_POST['mb_id']);
|
||||
$mb_email = escape_trim($_POST['mb_email']);
|
||||
|
||||
$sql = " select mb_datetime from {$g4['member_table']} where mb_id = '{$mb_id}' and mb_email_certify <> '' ";
|
||||
$mb = sql_fetch($sql);
|
||||
if (!$mb) {
|
||||
alert("이미 메일인증 하신 회원입니다.", G4_URL);
|
||||
}
|
||||
|
||||
if (!chk_captcha()) {
|
||||
alert('자동등록방지 숫자가 틀렸습니다.');
|
||||
}
|
||||
|
||||
$sql = " select count(*) as cnt from {$g4['member_table']} where mb_id <> '{$mb_id}' and mb_email = '$mb_email' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['cnt']) {
|
||||
alert("{$mb_email} 메일은 이미 존재하는 메일주소 입니다.\\n\\n다른 메일주소를 입력해 주십시오.");
|
||||
}
|
||||
|
||||
// 인증메일 발송
|
||||
$subject = '['.$config['cf_title'].'] 인증확인 메일입니다.';
|
||||
|
||||
$mb_datetime = $mb['mb_datetime'] ? $mb['mb_datetime'] : G4_TIME_YMDHIS;
|
||||
$mb_md5 = md5($mb_id.$mb_email.$mb_datetime);
|
||||
$certify_href = G4_BBS_URL.'/email_certify.php?mb_id='.$mb_id.'&mb_md5='.$mb_md5;
|
||||
|
||||
ob_start();
|
||||
include_once ('./register_form_update_mail3.php');
|
||||
$content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
$admin = get_admin('super');
|
||||
mailer($admin['mb_nick'], $admin['mb_email'], $mb_email, $subject, $content, 1);
|
||||
|
||||
$sql = " update {$g4['member_table']} set mb_email = '$mb_email' where mb_id = '$mb_id' ";
|
||||
sql_query($sql);
|
||||
|
||||
alert("인증메일을 {$mb_email} 메일로 다시 보내 드렸습니다.\\n\\n{$mb_email} 메일을 확인하여 주십시오.", G4_URL);
|
||||
?>
|
||||
@ -321,21 +321,23 @@ if ($w == '') {
|
||||
{$sql_hp_certify}
|
||||
where mb_id = '$mb_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
// 인증메일 발송
|
||||
if ($old_email != $mb_email && $config['cf_use_email_certify']) {
|
||||
$subject = '['.$config['cf_title'].'] 인증확인 메일입니다.';
|
||||
|
||||
$mb_md5 = md5($mb_id.$mb_email.$member['mb_datetime']);
|
||||
$certify_href = G4_BBS_URL.'/email_certify.php?mb_id='.$mb_id.'&mb_md5='.$mb_md5;
|
||||
// 인증메일 발송
|
||||
if ($config['cf_use_email_certify'] && $old_email != $mb_email) {
|
||||
$subject = '['.$config['cf_title'].'] 인증확인 메일입니다.';
|
||||
|
||||
ob_start();
|
||||
include_once ('./register_form_update_mail3.php');
|
||||
$content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
$mb_datetime = $member['mb_datetime'] ? $member['mb_datetime'] : G4_TIME_YMDHIS;
|
||||
$mb_md5 = md5($mb_id.$mb_email.$mb_datetime);
|
||||
$certify_href = G4_BBS_URL.'/email_certify.php?mb_id='.$mb_id.'&mb_md5='.$mb_md5;
|
||||
|
||||
mailer($admin['mb_nick'], $admin['mb_email'], $mb_email, $subject, $content, 1);
|
||||
}
|
||||
ob_start();
|
||||
include_once ('./register_form_update_mail3.php');
|
||||
$content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
mailer($admin['mb_nick'], $admin['mb_email'], $mb_email, $subject, $content, 1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -570,6 +570,7 @@ function html_purifier($html)
|
||||
$config->set('HTML.SafeObject', true);
|
||||
$config->set('HTML.SafeIframe', true);
|
||||
$config->set('URI.SafeIframeRegexp','%^(https?:)?//('.$safeiframe.')%');
|
||||
$config->set('Attr.AllowedFrameTargets', array('_blank'));
|
||||
$purifier = new HTMLPurifier($config);
|
||||
return $purifier->purify($html);
|
||||
}
|
||||
|
||||
@ -281,7 +281,7 @@ class item_list
|
||||
if ($this->ca_id3) {
|
||||
$where_ca_id[] = " ca_id3 like '{$this->ca_id3}%' ";
|
||||
}
|
||||
$where[] = implode(" or ", $where_ca_id);
|
||||
$where[] = "( ".implode(" or ", $where_ca_id)." )";
|
||||
}
|
||||
|
||||
if ($this->order_by) {
|
||||
|
||||
@ -604,32 +604,12 @@ else
|
||||
|
||||
<div class="sct_wrap">
|
||||
<?php
|
||||
/*
|
||||
$img_width = 230;
|
||||
$img_height = 230;
|
||||
|
||||
$sql = " select b.*
|
||||
from {$g4['shop_item_relation_table']} a
|
||||
left join {$g4['shop_item_table']} b on (a.it_id2=b.it_id)
|
||||
where a.it_id = '{$it['it_id']}'
|
||||
and b.it_use='1' ";
|
||||
$result = sql_query($sql);
|
||||
$num = @mysql_num_rows($result);
|
||||
*/
|
||||
|
||||
$sql = " select b.* from {$g4['shop_item_relation_table']} a left join {$g4['shop_item_table']} b on (a.it_id2=b.it_id) where a.it_id = '{$it['it_id']}' and b.it_use='1' ";
|
||||
|
||||
$list = new item_list("list.10.skin.php", 3, 1, 150, 0);
|
||||
$list = new item_list("list.10.skin.php", $default['de_rel_list_mod'], 1, $default['de_rel_img_width'], $default['de_rel_img_height']);
|
||||
$list->set_mobile(true);
|
||||
$list->set_query($sql);
|
||||
echo $list->run();
|
||||
|
||||
/*
|
||||
if ($num)
|
||||
include G4_MSHOP_PATH.'/maintype10.inc.php';
|
||||
else
|
||||
echo '<p class="sit_empty">이 상품과 관련된 상품이 없습니다.</p>';
|
||||
*/
|
||||
?>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@ -48,42 +48,14 @@ if ($is_admin)
|
||||
echo '<div id="sct_hhtml">'.stripslashes($ca['ca_mobile_head_html']).'</div>';
|
||||
|
||||
// 상품 출력순서가 있다면
|
||||
if ($sort != "") {
|
||||
$order_by = $sort . ' '.$sortodr. ' , ';
|
||||
}
|
||||
|
||||
// 상품 (하위 분류의 상품을 모두 포함한다.)
|
||||
$sql_list1 = " select * ";
|
||||
$sql_list2 = " order by $order_by it_order, it_id desc ";
|
||||
|
||||
// 하위분류 포함
|
||||
// 판매가능한 상품만
|
||||
$sql_common = " from {$g4['shop_item_table']}
|
||||
where (ca_id like '{$ca_id}%'
|
||||
or ca_id2 like '{$ca_id}%'
|
||||
or ca_id3 like '{$ca_id}%')
|
||||
and it_use = '1' ";
|
||||
if ($sort != "")
|
||||
$order_by = $sort.' '.$sortodr.' , it_order, it_id desc';
|
||||
|
||||
$error = '<p class="sct_noitem">등록된 상품이 없습니다.</p>';
|
||||
|
||||
// 리스트 유형별로 출력
|
||||
$list_file = G4_MSHOP_SKIN_PATH.'/'.$ca['ca_mobile_skin'];
|
||||
if (file_exists($list_file)) {
|
||||
/*
|
||||
$list_row = $ca['ca_mobile_list_row'];
|
||||
$img_width = $ca['ca_mobile_img_width'];
|
||||
$img_height = $ca['ca_mobile_img_height'];
|
||||
|
||||
include G4_MSHOP_PATH.'/list.sub.php';
|
||||
|
||||
$sql = $sql_list1 . $sql_common . $sql_list2 . " limit $from_record, $items ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
echo '<div class="sct_wrap">';
|
||||
include $list_file;
|
||||
echo '</div>';
|
||||
*/
|
||||
|
||||
// 총몇개
|
||||
$items = $ca['ca_mobile_list_mod'];
|
||||
// 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
@ -92,8 +64,12 @@ if ($is_admin)
|
||||
$from_record = ($page - 1) * $items;
|
||||
|
||||
$list = new item_list($ca['ca_mobile_skin'], $ca['ca_mobile_list_mod'], 1, $ca['ca_mobile_img_width'], $ca['ca_mobile_img_height']);
|
||||
$list->set_category($ca['ca_id']);
|
||||
$list->set_category($ca['ca_id'], 1);
|
||||
$list->set_category($ca['ca_id'], 2);
|
||||
$list->set_category($ca['ca_id'], 3);
|
||||
$list->set_is_page(true);
|
||||
$list->set_mobile(true);
|
||||
$list->set_order_by($order_by);
|
||||
$list->set_from_record($from_record);
|
||||
echo $list->run();
|
||||
|
||||
|
||||
@ -2,11 +2,11 @@
|
||||
include_once('./_common.php');
|
||||
|
||||
$type = $_REQUEST['type'];
|
||||
if ($type == 1) $g4['title'] = "히트상품";
|
||||
else if ($type == 2) $g4['title'] = "추천상품";
|
||||
else if ($type == 3) $g4['title'] = "최신상품";
|
||||
else if ($type == 4) $g4['title'] = "인기상품";
|
||||
else if ($type == 5) $g4['title'] = "할인상품";
|
||||
if ($type == 1) $g4['title'] = '히트상품';
|
||||
else if ($type == 2) $g4['title'] = '추천상품';
|
||||
else if ($type == 3) $g4['title'] = '최신상품';
|
||||
else if ($type == 4) $g4['title'] = '인기상품';
|
||||
else if ($type == 5) $g4['title'] = '할인상품';
|
||||
else
|
||||
alert('상품유형이 아닙니다.');
|
||||
|
||||
@ -16,45 +16,47 @@ include_once(G4_MSHOP_PATH.'/_head.php');
|
||||
$list_mod = 3; // 한줄에 이미지 몇개씩 출력?
|
||||
$list_row = 5; // 한 페이지에 몇라인씩 출력?
|
||||
|
||||
$img_width = 230; // 출력이미지 폭
|
||||
$img_height = 230; // 출력이미지 높이
|
||||
$img_width = $default['de_type'.$type.'_img_width']; // 출력이미지 폭
|
||||
$img_height = $default['de_type'.$type.'_img_height']; // 출력이미지 높이
|
||||
?>
|
||||
|
||||
<?php
|
||||
// 상품 출력순서가 있다면
|
||||
if ($sort != "")
|
||||
$order_by = $sort . " , ";
|
||||
$order_by = ' it_order, it_id desc ';
|
||||
if ($sort != '')
|
||||
$order_by = $sort.' '.$sortodr.' , it_order, it_id desc';
|
||||
|
||||
// 상품 (하위 분류의 상품을 모두 포함한다.)
|
||||
$sql_list1 = " select * ";
|
||||
$sql_list2 = " order by $order_by it_order, it_id desc ";
|
||||
|
||||
$sql_common = " from {$g4['shop_item_table']}
|
||||
where it_type{$type} = '1'
|
||||
and it_use = '1' ";
|
||||
if ($ca_id) {
|
||||
$sql_common .= " and ca_id = '$ca_id' ";
|
||||
}
|
||||
|
||||
$error = "<img src='".G4_MSHOP_URL."/img/no_item.gif' border=0>";
|
||||
$error = '<img src="'.G4_SHOP_URL.'/img/no_item.gif">';
|
||||
|
||||
if (!$skin)
|
||||
$skin = "list.skin.10.php";
|
||||
|
||||
$td_width = (int)($mod / 100);
|
||||
$skin = "list.10.skin.php";
|
||||
|
||||
// 리스트 유형별로 출력
|
||||
$list_file = G4_MSHOP_PATH.'/'.$skin;
|
||||
$list_file = G4_SHOP_SKIN_PATH.'/'.$skin;
|
||||
if (file_exists($list_file)) {
|
||||
// 총몇개 = 한줄에 몇개 * 몇줄
|
||||
$items = $list_mod * $list_row;
|
||||
// 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page == "") $page = 1;
|
||||
// 시작 레코드 구함
|
||||
$from_record = ($page - 1) * $items;
|
||||
|
||||
include G4_MSHOP_PATH."/list.sub.php";
|
||||
//include "$cart_dir/list.sort.php";
|
||||
|
||||
$sql = $sql_list1 . $sql_common . $sql_list2 . " limit $from_record, $items ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
include $list_file;
|
||||
$list = new item_list();
|
||||
$list->set_type($type);
|
||||
$list->set_list_skin('list.10.skin.php');
|
||||
$list->set_list_mod($list_mod);
|
||||
$list->set_list_row($list_row);
|
||||
$list->set_img_size($img_width, $img_height);
|
||||
$list->set_is_page(true);
|
||||
$list->set_mobile(true);
|
||||
$list->set_order_by($order_by);
|
||||
$list->set_from_record($from_record);
|
||||
echo $list->run();
|
||||
|
||||
// where 된 전체 상품수
|
||||
$total_count = $list->total_count;
|
||||
// 전체 페이지 계산
|
||||
$total_page = ceil($total_count / $items);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -71,26 +73,7 @@ if ($i==0)
|
||||
|
||||
<?php
|
||||
$qstr .= '&type='.$type.'&sort='.$sort;
|
||||
echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");
|
||||
?>
|
||||
|
||||
<?php
|
||||
// 테스트
|
||||
// 분류를 링크하는 코드
|
||||
/*
|
||||
$bar = "";
|
||||
$sql = " select ca_id from $g4[shop_item_table]
|
||||
where it_type{$type} = '1'
|
||||
and it_use = '1'
|
||||
group by ca_id
|
||||
order by ca_id ";
|
||||
$result = sql_query($sql);
|
||||
for($i=0;$row=sql_fetch_array($result);$i++) {
|
||||
$row2 = sql_fetch(" select ca_name from $g4[shop_category_table] where ca_id = '$row[ca_id]' ");
|
||||
echo $bar . "<a href='$g4[shop_path]/list.php?ca_id=$row[ca_id]'>$row2[ca_name]</a>";
|
||||
$bar = " | ";
|
||||
}
|
||||
*/
|
||||
echo get_paging($config['cf_mobile_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
75
mobile/skin/shop/basic/main.10.skin.php
Normal file
75
mobile/skin/shop/basic/main.10.skin.php
Normal file
@ -0,0 +1,75 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo G4_MSHOP_SKIN_URL; ?>/style.css">
|
||||
|
||||
<!-- 상품진열 10 시작 { -->
|
||||
<?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'; // 줄 첫번째
|
||||
else $sct_last = '';
|
||||
} else { // 1줄 이미지 : 1개
|
||||
$sct_last = ' sct_clear';
|
||||
}
|
||||
|
||||
if ($i == 1) {
|
||||
if ($this->css) {
|
||||
echo "<ul class=\"{$this->css}\">\n";
|
||||
} else {
|
||||
echo "<ul class=\"sct sct_10\">\n";
|
||||
}
|
||||
}
|
||||
|
||||
echo "<li class=\"sct_li{$sct_last}\">\n";
|
||||
|
||||
if ($this->href) {
|
||||
echo "<a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_img) {
|
||||
echo "<span class=\"sct_img\">".get_it_image($row['it_id'], $this->img_width, $this->img_height)."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_id) {
|
||||
echo "<b>".stripslashes($row['it_id'])."</b>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_name) {
|
||||
echo "<b>".stripslashes($row['it_name'])."</b>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_cust_price) {
|
||||
echo "<span class=\"sct_cost\">".display_price($row['it_cust_price'])."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_price) {
|
||||
echo "<span class=\"sct_cost\">".display_price(get_price($row), $row['it_tel_inq'])."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<span class=\"sct_icon\">".item_icon($row)."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_sns) {
|
||||
echo "<div class=\"sct_sns\">";
|
||||
echo get_sns_share_link('facebook', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_fb.png');
|
||||
echo get_sns_share_link('twitter', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_twt.png');
|
||||
echo get_sns_share_link('googleplus', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_goo.png');
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo "</a>\n";
|
||||
}
|
||||
|
||||
echo "</li>\n";
|
||||
}
|
||||
|
||||
if ($i > 1) echo "</ul>\n";
|
||||
|
||||
if($i == 1) echo "<p class=\"sct_noitem\">등록된 상품이 없습니다.</p>\n";
|
||||
?>
|
||||
<!-- } 상품진열 10 끝 -->
|
||||
@ -37,25 +37,6 @@ if ($skin)
|
||||
$list_file = G4_SHOP_SKIN_PATH."/{$ev['ev_skin']}";
|
||||
if (file_exists($list_file))
|
||||
{
|
||||
/*
|
||||
$list_mod = $ev['ev_list_mod'];
|
||||
$list_row = $ev['ev_list_row'];
|
||||
$img_width = $ev['ev_img_width'];
|
||||
$img_height = $ev['ev_img_height'];
|
||||
|
||||
include G4_SHOP_PATH.'/list.sub.php';
|
||||
include G4_SHOP_PATH.'/list.sort.php';
|
||||
|
||||
$sql = $sql_list1 . $sql_common . $sql_list2 . " limit $from_record, $items ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
include $list_file;
|
||||
*/
|
||||
|
||||
$list_mod = $ev['ev_list_mod'];
|
||||
$list_row = $ev['ev_list_row'];
|
||||
|
||||
include G4_SHOP_PATH.'/list.sub.php';
|
||||
include G4_SHOP_PATH.'/list.sort.php';
|
||||
|
||||
// 총몇개 = 한줄에 몇개 * 몇줄
|
||||
@ -65,7 +46,7 @@ if (file_exists($list_file))
|
||||
// 시작 레코드 구함
|
||||
$from_record = ($page - 1) * $items;
|
||||
|
||||
$list = new item_list($ev['ev_skin'], $list_mod, $list_row, $ev['ev_img_width'], $ev['ev_img_height']);
|
||||
$list = new item_list($ev['ev_skin'], $ev['ev_list_mod'], $ev['ev_list_row'], $ev['ev_img_width'], $ev['ev_img_height']);
|
||||
$list->set_event($ev['ev_id']);
|
||||
$list->set_is_page(true);
|
||||
$list->set_order_by($order_by);
|
||||
|
||||
@ -51,7 +51,7 @@ exit;
|
||||
<h2><a href="<?php echo G4_SHOP_URL; ?>/listtype.php?type=1">히트상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 히트상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_type(1);
|
||||
echo $list->run();
|
||||
@ -65,7 +65,7 @@ exit;
|
||||
<h2><a href="<?php echo G4_SHOP_URL; ?>/listtype.php?type=2">추천상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 추천상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_type(2);
|
||||
echo $list->run();
|
||||
@ -79,7 +79,7 @@ exit;
|
||||
<h2><a href="<?php echo G4_SHOP_URL; ?>/listtype.php?type=3">최신상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 최신상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_type(3);
|
||||
echo $list->run();
|
||||
@ -93,7 +93,7 @@ exit;
|
||||
<h2><a href="<?php echo G4_SHOP_URL; ?>/listtype.php?type=4">인기상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 인기상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_type(4);
|
||||
echo $list->run();
|
||||
@ -107,7 +107,7 @@ exit;
|
||||
<h2><a href="<?php echo G4_SHOP_URL; ?>/listtype.php?type=5">할인상품</a></h2>
|
||||
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 할인상품 모음</p>
|
||||
</header>
|
||||
<?php
|
||||
<?php
|
||||
$list = new item_list();
|
||||
$list->set_type(5);
|
||||
echo $list->run();
|
||||
|
||||
@ -615,25 +615,11 @@ else
|
||||
|
||||
<div class="sct_wrap">
|
||||
<?php
|
||||
/*
|
||||
$list_mod = 3;
|
||||
$img_width = 230;
|
||||
$img_height = 230;
|
||||
*/
|
||||
|
||||
$sql = " select b.* from {$g4['shop_item_relation_table']} a left join {$g4['shop_item_table']} b on (a.it_id2=b.it_id) where a.it_id = '{$it['it_id']}' and b.it_use='1' ";
|
||||
|
||||
$list = new item_list("list.10.skin.php", 3, 1, 150, 0);
|
||||
$list->set_mobile(true);
|
||||
$list = new item_list("list.10.skin.php", $default['de_rel_list_mod'], 1, $default['de_rel_img_width'], $default['de_rel_img_height']);
|
||||
$list->set_query($sql);
|
||||
echo $list->run();
|
||||
|
||||
/*
|
||||
if ($num)
|
||||
include G4_SHOP_PATH.'/maintype10.inc.php';
|
||||
else
|
||||
echo '<p class="sit_empty">이 상품과 관련된 상품이 없습니다.</p>';
|
||||
*/
|
||||
?>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@ -65,42 +65,16 @@ if ($is_admin)
|
||||
include G4_SHOP_PATH.'/listcategory3.inc.php';
|
||||
|
||||
// 상품 출력순서가 있다면
|
||||
if ($sort != "") {
|
||||
$order_by = $sort . ' '.$sortodr. ' , ';
|
||||
}
|
||||
|
||||
// 상품 (하위 분류의 상품을 모두 포함한다.)
|
||||
$sql_list1 = " select * ";
|
||||
$sql_list2 = " order by $order_by it_order, it_id desc ";
|
||||
|
||||
// 하위분류 포함
|
||||
// 판매가능한 상품만
|
||||
$sql_common = " from {$g4['shop_item_table']} where (ca_id like '{$ca_id}%' or ca_id2 like '{$ca_id}%' or ca_id3 like '{$ca_id}%') and it_use = '1' ";
|
||||
if ($sort != "")
|
||||
$order_by = $sort.' '.$sortodr.' , it_order, it_id desc';
|
||||
|
||||
$error = '<p class="sct_noitem">등록된 상품이 없습니다.</p>';
|
||||
|
||||
// 리스트 유형별로 출력
|
||||
$list_file = G4_SHOP_SKIN_PATH.'/'.$ca['ca_skin'];
|
||||
if (file_exists($list_file)) {
|
||||
//display_type(2, "maintype10.inc.php", 4, 2, 100, 100, $ca[ca_id]);
|
||||
|
||||
/*
|
||||
$list_mod = $ca['ca_list_mod'];
|
||||
$list_row = $ca['ca_list_row'];
|
||||
$img_width = $ca['ca_img_width'];
|
||||
$img_height = $ca['ca_img_height'];
|
||||
|
||||
include G4_SHOP_PATH.'/list.sub.php';
|
||||
include G4_SHOP_PATH.'/list.sort.php';
|
||||
|
||||
$sql = $sql_list1 . $sql_common . $sql_list2 . " limit $from_record, $items ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
echo '<div class="sct_wrap">';
|
||||
include $list_file;
|
||||
echo '</div>';
|
||||
*/
|
||||
|
||||
// 총몇개 = 한줄에 몇개 * 몇줄
|
||||
$items = $ca['ca_list_mod'] * $ca['ca_list_row'];
|
||||
// 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
@ -109,8 +83,11 @@ if ($is_admin)
|
||||
$from_record = ($page - 1) * $items;
|
||||
|
||||
$list = new item_list($ca['ca_skin'], $ca['ca_list_mod'], $ca['ca_list_row'], $ca['ca_img_width'], $ca['ca_img_height']);
|
||||
$list->set_category($ca['ca_id']);
|
||||
$list->set_category($ca['ca_id'], 1);
|
||||
$list->set_category($ca['ca_id'], 2);
|
||||
$list->set_category($ca['ca_id'], 3);
|
||||
$list->set_is_page(true);
|
||||
$list->set_order_by($order_by);
|
||||
$list->set_from_record($from_record);
|
||||
echo $list->run();
|
||||
|
||||
|
||||
@ -10,9 +10,6 @@ $sct_sort_href .= '&ev_id='.$ev_id.'&sort=';
|
||||
<!-- 상품 정렬 선택 시작 { -->
|
||||
<section id="sct_sort">
|
||||
<h2>상품 정렬</h2>
|
||||
<div>
|
||||
상품 <b><?php echo number_format($total_count); ?></b>개
|
||||
</div>
|
||||
|
||||
<ul>
|
||||
<li><a href="<?php echo $sct_sort_href; ?>it_price&sortodr=asc" class="btn01">낮은가격순</a></li>
|
||||
|
||||
@ -7,11 +7,11 @@ if (G4_IS_MOBILE) {
|
||||
}
|
||||
|
||||
$type = $_REQUEST['type'];
|
||||
if ($type == 1) $g4['title'] = "히트상품";
|
||||
else if ($type == 2) $g4['title'] = "추천상품";
|
||||
else if ($type == 3) $g4['title'] = "최신상품";
|
||||
else if ($type == 4) $g4['title'] = "인기상품";
|
||||
else if ($type == 5) $g4['title'] = "할인상품";
|
||||
if ($type == 1) $g4['title'] = '히트상품';
|
||||
else if ($type == 2) $g4['title'] = '추천상품';
|
||||
else if ($type == 3) $g4['title'] = '최신상품';
|
||||
else if ($type == 4) $g4['title'] = '인기상품';
|
||||
else if ($type == 5) $g4['title'] = '할인상품';
|
||||
else
|
||||
alert('상품유형이 아닙니다.');
|
||||
|
||||
@ -21,43 +21,46 @@ include_once('./_head.php');
|
||||
$list_mod = 3; // 한줄에 이미지 몇개씩 출력?
|
||||
$list_row = 5; // 한 페이지에 몇라인씩 출력?
|
||||
|
||||
$img_width = 230; // 출력이미지 폭
|
||||
$img_height = 230; // 출력이미지 높이
|
||||
$img_width = $default['de_type'.$type.'_img_width']; // 출력이미지 폭
|
||||
$img_height = $default['de_type'.$type.'_img_height']; // 출력이미지 높이
|
||||
?>
|
||||
|
||||
<?php
|
||||
// 상품 출력순서가 있다면
|
||||
if ($sort != "")
|
||||
$order_by = $sort . " , ";
|
||||
$order_by = ' it_order, it_id desc ';
|
||||
if ($sort != '')
|
||||
$order_by = $sort.' '.$sortodr.' , it_order, it_id desc';
|
||||
|
||||
// 상품 (하위 분류의 상품을 모두 포함한다.)
|
||||
$sql_list1 = " select * ";
|
||||
$sql_list2 = " order by $order_by it_order, it_id desc ";
|
||||
|
||||
$sql_common = " from {$g4['shop_item_table']} where it_type{$type} = '1' and it_use = '1' ";
|
||||
if ($ca_id) {
|
||||
$sql_common .= " and ca_id = '$ca_id' ";
|
||||
}
|
||||
|
||||
$error = "<img src='".G4_SHOP_URL."/img/no_item.gif' border=0>";
|
||||
$error = '<img src="'.G4_SHOP_URL.'/img/no_item.gif">';
|
||||
|
||||
if (!$skin)
|
||||
$skin = "list.skin.10.php";
|
||||
|
||||
$td_width = (int)($mod / 100);
|
||||
$skin = "list.10.skin.php";
|
||||
|
||||
// 리스트 유형별로 출력
|
||||
$list_file = G4_SHOP_PATH.'/'.$skin;
|
||||
$list_file = G4_SHOP_SKIN_PATH.'/'.$skin;
|
||||
if (file_exists($list_file)) {
|
||||
// 총몇개 = 한줄에 몇개 * 몇줄
|
||||
$items = $list_mod * $list_row;
|
||||
// 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page == "") $page = 1;
|
||||
// 시작 레코드 구함
|
||||
$from_record = ($page - 1) * $items;
|
||||
|
||||
include G4_SHOP_PATH."/list.sub.php";
|
||||
//include "$cart_dir/list.sort.php";
|
||||
|
||||
$sql = $sql_list1 . $sql_common . $sql_list2 . " limit $from_record, $items ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
include $list_file;
|
||||
$list = new item_list();
|
||||
$list->set_type($type);
|
||||
$list->set_list_skin('list.10.skin.php');
|
||||
$list->set_list_mod($list_mod);
|
||||
$list->set_list_row($list_row);
|
||||
$list->set_img_size($img_width, $img_height);
|
||||
$list->set_is_page(true);
|
||||
$list->set_order_by($order_by);
|
||||
$list->set_from_record($from_record);
|
||||
echo $list->run();
|
||||
|
||||
// where 된 전체 상품수
|
||||
$total_count = $list->total_count;
|
||||
// 전체 페이지 계산
|
||||
$total_page = ceil($total_count / $items);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -77,21 +80,6 @@ $qstr .= '&type='.$type.'&sort='.$sort;
|
||||
echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");
|
||||
?>
|
||||
|
||||
<?php
|
||||
// 테스트
|
||||
// 분류를 링크하는 코드
|
||||
/*
|
||||
$bar = "";
|
||||
$sql = " select ca_id from $g4[shop_item_table] where it_type{$type} = '1' and it_use = '1' group by ca_id order by ca_id ";
|
||||
$result = sql_query($sql);
|
||||
for($i=0;$row=sql_fetch_array($result);$i++) {
|
||||
$row2 = sql_fetch(" select ca_name from $g4[shop_category_table] where ca_id = '$row[ca_id]' ");
|
||||
echo $bar . "<a href='$g4[shop_path]/list.php?ca_id=$row[ca_id]'>$row2[ca_name]</a>";
|
||||
$bar = " | ";
|
||||
}
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php
|
||||
include_once('./_tail.php');
|
||||
?>
|
||||
|
||||
75
skin/shop/basic/main.10.skin.php
Normal file
75
skin/shop/basic/main.10.skin.php
Normal file
@ -0,0 +1,75 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo G4_SHOP_SKIN_URL; ?>/style.css">
|
||||
|
||||
<!-- 상품진열 10 시작 { -->
|
||||
<?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'; // 줄 첫번째
|
||||
else $sct_last = '';
|
||||
} else { // 1줄 이미지 : 1개
|
||||
$sct_last = 'sct_clear';
|
||||
}
|
||||
|
||||
if ($i == 1) {
|
||||
if ($this->css) {
|
||||
echo "<ul class=\"{$this->css}\">\n";
|
||||
} else {
|
||||
echo "<ul class=\"sct sct_10\">\n";
|
||||
}
|
||||
}
|
||||
|
||||
echo "<li class=\"sct_li {$sct_last}\">\n";
|
||||
|
||||
if ($this->href) {
|
||||
echo "<a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_img) {
|
||||
echo "<span class=\"sct_img\">".get_it_image($row['it_id'], $this->img_width, $this->img_height)."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_id) {
|
||||
echo "<b>".stripslashes($row['it_id'])."</b>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_name) {
|
||||
echo "<b>".stripslashes($row['it_name'])."</b>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_cust_price) {
|
||||
echo "<span class=\"sct_cost\">".display_price($row['it_cust_price'])."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_price) {
|
||||
echo "<span class=\"sct_cost\">".display_price(get_price($row), $row['it_tel_inq'])."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<span class=\"sct_icon\">".item_icon($row)."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_sns) {
|
||||
echo "<div class=\"sct_sns\">";
|
||||
echo get_sns_share_link('facebook', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_fb.png');
|
||||
echo get_sns_share_link('twitter', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_twt.png');
|
||||
echo get_sns_share_link('googleplus', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_goo.png');
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo "</a>\n";
|
||||
}
|
||||
|
||||
echo "</li>\n";
|
||||
}
|
||||
|
||||
if ($i > 1) echo "</ul>\n";
|
||||
|
||||
if($i == 1) echo "<p class=\"sct_noitem\">등록된 상품이 없습니다.</p>\n";
|
||||
?>
|
||||
<!-- } 상품진열 10 끝 -->
|
||||
146
skin/shop/basic/main.20.skin.php
Normal file
146
skin/shop/basic/main.20.skin.php
Normal file
@ -0,0 +1,146 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
/*
|
||||
상품리스트가 일정 시간마다 위로 롤링되는 스킨
|
||||
롤링되기 위해서는 상품이 2줄 이상이어야 함
|
||||
*/
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo G4_SHOP_SKIN_URL; ?>/style.css">
|
||||
|
||||
<!-- 상품진열 20 시작 { -->
|
||||
<?php
|
||||
$itemtype = $this->type;
|
||||
|
||||
for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
$sct_last = '';
|
||||
if($i>1 && $i%$this->list_mod == 0)
|
||||
$sct_last = ' sct_last'; // 줄 마지막
|
||||
|
||||
if ($i == 1) {
|
||||
if ($this->css) {
|
||||
echo "<ul id=\"smt_{$itemtype}\" class=\"{$this->css}\">\n";
|
||||
} else {
|
||||
echo "<ul id=\"smt_{$itemtype}\" class=\"sct smt_20\">\n";
|
||||
}
|
||||
echo "<li class=\"sct_li sct_li_first\">\n";
|
||||
}
|
||||
|
||||
if ($i > 1 && $i%$this->list_mod == 1) {
|
||||
echo "</li>\n";
|
||||
echo "<li class=\"sct_li\">\n";
|
||||
}
|
||||
|
||||
echo "<div class=\"sct_div{$sct_last}\">";
|
||||
|
||||
if ($this->href) {
|
||||
echo "<a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_img) {
|
||||
echo "<span class=\"sct_img\">".get_it_image($row['it_id'], $this->img_width, $this->img_height)."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_id) {
|
||||
echo "<b>".stripslashes($row['it_id'])."</b>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_name) {
|
||||
echo "<b>".stripslashes($row['it_name'])."</b>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_cust_price) {
|
||||
echo "<span class=\"sct_cost\">".display_price($row['it_cust_price'])."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_price) {
|
||||
echo "<span class=\"sct_cost\">".display_price(get_price($row), $row['it_tel_inq'])."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<span class=\"sct_icon\">".item_icon($row)."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_sns) {
|
||||
echo "<div class=\"sct_sns\">";
|
||||
echo get_sns_share_link('facebook', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_fb.png');
|
||||
echo get_sns_share_link('twitter', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_twt.png');
|
||||
echo get_sns_share_link('googleplus', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_goo.png');
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo "</a>\n";
|
||||
}
|
||||
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
if ($i > 1) {
|
||||
echo "</li>\n";
|
||||
echo "</ul>\n";
|
||||
}
|
||||
|
||||
if($i == 1) echo "<p class=\"sct_noitem\">등록된 상품이 없습니다.</p>\n";
|
||||
?>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
var $smt<?php echo $itemtype; ?> = $("#smt_<?php echo $itemtype; ?> li.sct_li");
|
||||
var $smt<?php echo $itemtype; ?>_a = $("#smt_<?php echo $itemtype; ?> li.sct_li a");
|
||||
var smt<?php echo $itemtype; ?>_height = $smt<?php echo $itemtype; ?>.closest("ul").height();
|
||||
var smt<?php echo $itemtype; ?>_count = $smt<?php echo $itemtype; ?>.size();
|
||||
var smt<?php echo $itemtype; ?>_c_idx = smt<?php echo $itemtype; ?>_o_idx = 0;
|
||||
var smt<?php echo $itemtype; ?>_time = 5000;
|
||||
var smt<?php echo $itemtype; ?>_a_time = 800;
|
||||
var smt<?php echo $itemtype; ?>_interval = null;
|
||||
|
||||
if(smt<?php echo $itemtype; ?>_count > 1)
|
||||
smt<?php echo $itemtype; ?>_interval = setInterval(top_rolling, smt<?php echo $itemtype; ?>_time);
|
||||
|
||||
$smt<?php echo $itemtype; ?>.hover(
|
||||
function() {
|
||||
if(smt<?php echo $itemtype; ?>_interval != null)
|
||||
clearInterval(smt<?php echo $itemtype; ?>_interval);
|
||||
},
|
||||
function() {
|
||||
if(smt<?php echo $itemtype; ?>_interval != null)
|
||||
clearInterval(smt<?php echo $itemtype; ?>_interval);
|
||||
|
||||
if(smt<?php echo $itemtype; ?>_count > 1)
|
||||
smt<?php echo $itemtype; ?>_interval = setInterval(top_rolling, smt<?php echo $itemtype; ?>_time);
|
||||
}
|
||||
);
|
||||
|
||||
$smt<?php echo $itemtype; ?>_a.on("focusin", function() {
|
||||
if(smt<?php echo $itemtype; ?>_interval != null)
|
||||
clearInterval(smt<?php echo $itemtype; ?>_interval);
|
||||
});
|
||||
|
||||
$smt<?php echo $itemtype; ?>_a.on("focusout", function() {
|
||||
if(smt<?php echo $itemtype; ?>_interval != null)
|
||||
clearInterval(smt<?php echo $itemtype; ?>_interval);
|
||||
|
||||
if(smt<?php echo $itemtype; ?>_count > 1)
|
||||
smt<?php echo $itemtype; ?>_interval = setInterval(top_rolling, smt<?php echo $itemtype; ?>_time);
|
||||
});
|
||||
|
||||
function top_rolling() {
|
||||
$smt<?php echo $itemtype; ?>.eq(smt<?php echo $itemtype; ?>_o_idx).animate(
|
||||
{ top: "-="+smt<?php echo $itemtype; ?>_height+"px" }, smt<?php echo $itemtype; ?>_a_time
|
||||
);
|
||||
|
||||
smt<?php echo $itemtype; ?>_c_idx = (smt<?php echo $itemtype; ?>_o_idx + 1) % smt<?php echo $itemtype; ?>_count;
|
||||
|
||||
$smt<?php echo $itemtype; ?>.eq(smt<?php echo $itemtype; ?>_c_idx).css("display", "block").animate(
|
||||
{ top: "-="+smt<?php echo $itemtype; ?>_height+"px" }, smt<?php echo $itemtype; ?>_a_time,
|
||||
function() {
|
||||
$smt<?php echo $itemtype; ?>.eq(smt<?php echo $itemtype; ?>_o_idx).css("display", "none").css("top", smt<?php echo $itemtype; ?>_height+"px");
|
||||
smt<?php echo $itemtype; ?>_o_idx = smt<?php echo $itemtype; ?>_c_idx;
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<!-- } 상품진열 20 끝 -->
|
||||
142
skin/shop/basic/main.30.skin.php
Normal file
142
skin/shop/basic/main.30.skin.php
Normal file
@ -0,0 +1,142 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
/*
|
||||
상품리스트가 일정 시간마다 좌로 롤링되는 스킨
|
||||
롤링되기 위해서는 상품이 2줄 이상이어야 함
|
||||
*/
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo G4_SHOP_SKIN_URL; ?>/style.css">
|
||||
|
||||
<!-- 상품유형 30 시작 { -->
|
||||
<?php
|
||||
$itemtype = $this->type;
|
||||
|
||||
for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
if ($i == 1) {
|
||||
if ($this->css) {
|
||||
echo "<ul id=\"smt_{$itemtype}\" class=\"{$this->css}\">\n";
|
||||
} else {
|
||||
echo "<ul id=\"smt_{$itemtype}\" class=\"sct smt_30\">\n";
|
||||
}
|
||||
echo "<li class=\"sct_li sct_li_first\">\n";
|
||||
}
|
||||
|
||||
if ($i > 1 && $i%$this->list_mod == 1) {
|
||||
echo "</li>\n";
|
||||
echo "<li class=\"sct_li\">\n";
|
||||
}
|
||||
|
||||
echo "<div class=\"sct_div\">";
|
||||
|
||||
if ($this->href) {
|
||||
echo "<a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_img) {
|
||||
echo "<span class=\"sct_img\">".get_it_image($row['it_id'], $this->img_width, $this->img_height)."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_id) {
|
||||
echo "<b>".stripslashes($row['it_id'])."</b>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_name) {
|
||||
echo "<b>".stripslashes($row['it_name'])."</b>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_cust_price) {
|
||||
echo "<span class=\"sct_cost\">".display_price($row['it_cust_price'])."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_price) {
|
||||
echo "<span class=\"sct_cost\">".display_price(get_price($row), $row['it_tel_inq'])."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<span class=\"sct_icon\">".item_icon($row)."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_sns) {
|
||||
echo "<div class=\"sct_sns\">";
|
||||
echo get_sns_share_link('facebook', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_fb.png');
|
||||
echo get_sns_share_link('twitter', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_twt.png');
|
||||
echo get_sns_share_link('googleplus', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_goo.png');
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo "</a>\n";
|
||||
}
|
||||
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
if ($i > 1) {
|
||||
echo "</li>\n";
|
||||
echo "</ul>\n";
|
||||
}
|
||||
|
||||
if($i == 1) echo "<p class=\"sct_noitem\">등록된 상품이 없습니다.</p>\n";
|
||||
?>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
var $smt<?php echo $itemtype; ?> = $("#smt_<?php echo $itemtype; ?> li.sct_li");
|
||||
var $smt<?php echo $itemtype; ?>_a = $("#smt_<?php echo $itemtype; ?> li.sct_li a");
|
||||
var smt<?php echo $itemtype; ?>_width = $smt<?php echo $itemtype; ?>.width();
|
||||
var smt<?php echo $itemtype; ?>_count = $smt<?php echo $itemtype; ?>.size();
|
||||
var smt<?php echo $itemtype; ?>_c_idx = smt<?php echo $itemtype; ?>_o_idx = 0;
|
||||
var smt<?php echo $itemtype; ?>_time = 7000;
|
||||
var smt<?php echo $itemtype; ?>_a_time = 1500;
|
||||
var smt<?php echo $itemtype; ?>_interval = null;
|
||||
|
||||
if(smt<?php echo $itemtype; ?>_count > 1)
|
||||
smt<?php echo $itemtype; ?>_interval = setInterval(left_rolling, smt<?php echo $itemtype; ?>_time);
|
||||
|
||||
$smt<?php echo $itemtype; ?>.hover(
|
||||
function() {
|
||||
if(smt<?php echo $itemtype; ?>_interval != null)
|
||||
clearInterval(smt<?php echo $itemtype; ?>_interval);
|
||||
},
|
||||
function() {
|
||||
if(smt<?php echo $itemtype; ?>_interval != null)
|
||||
clearInterval(smt<?php echo $itemtype; ?>_interval);
|
||||
|
||||
if(smt<?php echo $itemtype; ?>_count > 1)
|
||||
smt<?php echo $itemtype; ?>_interval = setInterval(left_rolling, smt<?php echo $itemtype; ?>_time);
|
||||
}
|
||||
);
|
||||
|
||||
$smt<?php echo $itemtype; ?>_a.on("focusin", function() {
|
||||
if(smt<?php echo $itemtype; ?>_interval != null)
|
||||
clearInterval(smt<?php echo $itemtype; ?>_interval);
|
||||
});
|
||||
|
||||
$smt<?php echo $itemtype; ?>_a.on("focusout", function() {
|
||||
if(smt<?php echo $itemtype; ?>_interval != null)
|
||||
clearInterval(smt<?php echo $itemtype; ?>_interval);
|
||||
|
||||
if(smt<?php echo $itemtype; ?>_count > 1)
|
||||
smt<?php echo $itemtype; ?>_interval = setInterval(left_rolling, smt<?php echo $itemtype; ?>_time);
|
||||
});
|
||||
|
||||
function left_rolling() {
|
||||
$smt<?php echo $itemtype; ?>.eq(smt<?php echo $itemtype; ?>_o_idx).animate(
|
||||
{ left: "-="+smt<?php echo $itemtype; ?>_width+"px" }, smt<?php echo $itemtype; ?>_a_time
|
||||
);
|
||||
|
||||
smt<?php echo $itemtype; ?>_c_idx = (smt<?php echo $itemtype; ?>_o_idx + 1) % smt<?php echo $itemtype; ?>_count;
|
||||
|
||||
$smt<?php echo $itemtype; ?>.eq(smt<?php echo $itemtype; ?>_c_idx).css("display", "block").animate(
|
||||
{ left: "-="+smt<?php echo $itemtype; ?>_width+"px" }, smt<?php echo $itemtype; ?>_a_time,
|
||||
function() {
|
||||
$smt<?php echo $itemtype; ?>.eq(smt<?php echo $itemtype; ?>_o_idx).css("display", "none").css("left", smt<?php echo $itemtype; ?>_width+"px");
|
||||
smt<?php echo $itemtype; ?>_o_idx = smt<?php echo $itemtype; ?>_c_idx;
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<!-- } 상품진열 30 끝 -->
|
||||
135
skin/shop/basic/main.40.skin.php
Normal file
135
skin/shop/basic/main.40.skin.php
Normal file
@ -0,0 +1,135 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
/*
|
||||
상품리스트가 일정 시간마다 바뀜
|
||||
롤링되기 위해서는 상품이 2줄 이상이어야 함
|
||||
*/
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo G4_SHOP_SKIN_URL; ?>/style.css">
|
||||
|
||||
<!-- 상품진열 40 시작 { -->
|
||||
<?php
|
||||
$itemtype = $this->type;
|
||||
|
||||
for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
$sct_last = '';
|
||||
if($i>1 && $i%$this->list_mod == 0)
|
||||
$sct_last = ' sct_last'; // 줄 마지막
|
||||
|
||||
if ($i == 1) {
|
||||
if ($this->css) {
|
||||
echo "<ul id=\"smt_{$itemtype}\" class=\"{$this->css}\">\n";
|
||||
} else {
|
||||
echo "<ul id=\"smt_{$itemtype}\" class=\"sct smt_40\">\n";
|
||||
}
|
||||
echo "<li class=\"sct_li sct_li_first\">\n";
|
||||
}
|
||||
|
||||
if ($i > 1 && $i%$this->list_mod == 1) {
|
||||
echo "</li>\n";
|
||||
echo "<li class=\"sct_li\">\n";
|
||||
}
|
||||
|
||||
echo "<div class=\"sct_div{$sct_last}\">";
|
||||
|
||||
if ($this->href) {
|
||||
echo "<a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_img) {
|
||||
echo "<span class=\"sct_img\">".get_it_image($row['it_id'], $this->img_width, $this->img_height)."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_id) {
|
||||
echo "<b>".stripslashes($row['it_id'])."</b>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_name) {
|
||||
echo "<b>".stripslashes($row['it_name'])."</b>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_cust_price) {
|
||||
echo "<span class=\"sct_cost\">".display_price($row['it_cust_price'])."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_price) {
|
||||
echo "<span class=\"sct_cost\">".display_price(get_price($row), $row['it_tel_inq'])."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<span class=\"sct_icon\">".item_icon($row)."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_sns) {
|
||||
echo "<div class=\"sct_sns\">";
|
||||
echo get_sns_share_link('facebook', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_fb.png');
|
||||
echo get_sns_share_link('twitter', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_twt.png');
|
||||
echo get_sns_share_link('googleplus', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_goo.png');
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo "</a>\n";
|
||||
}
|
||||
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
if ($i > 1) {
|
||||
echo "</li>\n";
|
||||
echo "</ul>\n";
|
||||
}
|
||||
|
||||
if($i == 1) echo "<p class=\"sct_noitem\">등록된 상품이 없습니다.</p>\n";
|
||||
?>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
var $smt<?php echo $itemtype; ?> = $("#smt_<?php echo $itemtype; ?> li.sct_li");
|
||||
var $smt<?php echo $itemtype; ?>_a = $("#smt_<?php echo $itemtype; ?> li.sct_li a");
|
||||
var smt<?php echo $itemtype; ?>_count = $smt<?php echo $itemtype; ?>.size();
|
||||
var smt<?php echo $itemtype; ?>_c_idx = smt<?php echo $itemtype; ?>_o_idx = 0;
|
||||
var smt<?php echo $itemtype; ?>_time = 3000;
|
||||
var smt<?php echo $itemtype; ?>_interval = null;
|
||||
|
||||
if(smt<?php echo $itemtype; ?>_count > 1)
|
||||
smt<?php echo $itemtype; ?>_interval = setInterval(itemlist_show, smt<?php echo $itemtype; ?>_time);
|
||||
|
||||
$smt<?php echo $itemtype; ?>.hover(
|
||||
function() {
|
||||
if(smt<?php echo $itemtype; ?>_interval != null)
|
||||
clearInterval(smt<?php echo $itemtype; ?>_interval);
|
||||
},
|
||||
function() {
|
||||
if(smt<?php echo $itemtype; ?>_interval != null)
|
||||
clearInterval(smt<?php echo $itemtype; ?>_interval);
|
||||
|
||||
if(smt<?php echo $itemtype; ?>_count > 1)
|
||||
smt<?php echo $itemtype; ?>_interval = setInterval(itemlist_show, smt<?php echo $itemtype; ?>_time);
|
||||
}
|
||||
);
|
||||
|
||||
$smt<?php echo $itemtype; ?>_a.on("focusin", function() {
|
||||
if(smt<?php echo $itemtype; ?>_interval != null)
|
||||
clearInterval(smt<?php echo $itemtype; ?>_interval);
|
||||
});
|
||||
|
||||
$smt<?php echo $itemtype; ?>_a.on("focusout", function() {
|
||||
if(smt<?php echo $itemtype; ?>_interval != null)
|
||||
clearInterval(smt<?php echo $itemtype; ?>_interval);
|
||||
|
||||
if(smt<?php echo $itemtype; ?>_count > 1)
|
||||
smt<?php echo $itemtype; ?>_interval = setInterval(itemlist_show, smt<?php echo $itemtype; ?>_time);
|
||||
});
|
||||
|
||||
function itemlist_show() {
|
||||
$smt<?php echo $itemtype; ?>.eq(smt<?php echo $itemtype; ?>_o_idx).css("display", "none");
|
||||
smt<?php echo $itemtype; ?>_c_idx = (smt<?php echo $itemtype; ?>_o_idx + 1) % smt<?php echo $itemtype; ?>_count;
|
||||
$smt<?php echo $itemtype; ?>.eq(smt<?php echo $itemtype; ?>_c_idx).css("display", "block");
|
||||
smt<?php echo $itemtype; ?>_o_idx = smt<?php echo $itemtype; ?>_c_idx;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<!-- } 상품진열 40 끝 -->
|
||||
160
skin/shop/basic/main.50.skin.php
Normal file
160
skin/shop/basic/main.50.skin.php
Normal file
@ -0,0 +1,160 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
/*
|
||||
리스트의 상품이 순차적으로 위에서 내려옴
|
||||
*/
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo G4_SHOP_SKIN_URL; ?>/style.css">
|
||||
|
||||
<!-- 상품진열 50 시작 { -->
|
||||
<?php
|
||||
$itemtype = $this->type;
|
||||
|
||||
for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
$sct_last = '';
|
||||
if($i>1 && $i%$this->list_mod == 0)
|
||||
$sct_last = ' sct_last'; // 줄 마지막
|
||||
|
||||
if ($i == 1) {
|
||||
if ($this->css) {
|
||||
echo "<ul id=\"smt_{$itemtype}\" class=\"{$this->css}\">\n";
|
||||
} else {
|
||||
echo "<ul id=\"smt_{$itemtype}\" class=\"sct smt_50\">\n";
|
||||
}
|
||||
echo "<li class=\"sct_li sct_li_first\">\n";
|
||||
}
|
||||
|
||||
if ($i > 1 && $i%$this->list_mod == 1) {
|
||||
echo "</li>\n";
|
||||
echo "<li class=\"sct_li\">\n";
|
||||
}
|
||||
|
||||
echo "<div class=\"sct_div{$sct_last}\">";
|
||||
|
||||
if ($this->href) {
|
||||
echo "<a href=\"{$this->href}{$row['it_id']}\" class=\"sct_a\">\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_img) {
|
||||
echo "<span class=\"sct_img\">".get_it_image($row['it_id'], $this->img_width, $this->img_height)."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_id) {
|
||||
echo "<b>".stripslashes($row['it_id'])."</b>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_name) {
|
||||
echo "<b>".stripslashes($row['it_name'])."</b>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_cust_price) {
|
||||
echo "<span class=\"sct_cost\">".display_price($row['it_cust_price'])."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_price) {
|
||||
echo "<span class=\"sct_cost\">".display_price(get_price($row), $row['it_tel_inq'])."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_it_icon) {
|
||||
echo "<span class=\"sct_icon\">".item_icon($row)."</span>\n";
|
||||
}
|
||||
|
||||
if ($this->view_sns) {
|
||||
echo "<div class=\"sct_sns\">";
|
||||
echo get_sns_share_link('facebook', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_fb.png');
|
||||
echo get_sns_share_link('twitter', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_twt.png');
|
||||
echo get_sns_share_link('googleplus', $sns_url, $sns_title, G4_SHOP_URL.'/img/sns_goo.png');
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
if ($this->href) {
|
||||
echo "</a>\n";
|
||||
}
|
||||
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
if ($i > 1) {
|
||||
echo "</li>\n";
|
||||
echo "</ul>\n";
|
||||
}
|
||||
|
||||
if($i == 1) echo "<p class=\"sct_noitem\">등록된 상품이 없습니다.</p>\n";
|
||||
?>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
var $smt<?php echo $itemtype; ?> = $("#smt_<?php echo $itemtype; ?> li.sct_li");
|
||||
var $smt<?php echo $itemtype; ?>_a = $("#smt_<?php echo $itemtype; ?> li.sct_li a");
|
||||
var smt<?php echo $itemtype; ?>_count = $smt<?php echo $itemtype; ?>.size();
|
||||
var $smt<?php echo $itemtype; ?>_height = $smt<?php echo $itemtype; ?>.height();
|
||||
var smt<?php echo $itemtype; ?>_c_idx = smt<?php echo $itemtype; ?>_o_idx = 0;
|
||||
var smt<?php echo $itemtype; ?>_time = 6000;
|
||||
var smt<?php echo $itemtype; ?>_a_time = 800;
|
||||
var smt<?php echo $itemtype; ?>_delay = 300;
|
||||
var smt<?php echo $itemtype; ?>_interval = null;
|
||||
var delay = 0;
|
||||
|
||||
// 초기실행
|
||||
if(smt<?php echo $itemtype; ?>_count > 0) {
|
||||
$smt<?php echo $itemtype; ?>.eq(0).find("div").each(function() {
|
||||
$(this).delay(delay).animate(
|
||||
{ top: "+="+$smt<?php echo $itemtype; ?>_height+"px" }, smt<?php echo $itemtype; ?>_a_time
|
||||
);
|
||||
|
||||
delay += smt<?php echo $itemtype; ?>_delay;
|
||||
});
|
||||
}
|
||||
|
||||
if(smt<?php echo $itemtype; ?>_count > 1)
|
||||
smt<?php echo $itemtype; ?>_interval = setInterval(item_drop, smt<?php echo $itemtype; ?>_time);
|
||||
|
||||
$smt<?php echo $itemtype; ?>.hover(
|
||||
function() {
|
||||
if(smt<?php echo $itemtype; ?>_interval != null)
|
||||
clearInterval(smt<?php echo $itemtype; ?>_interval);
|
||||
},
|
||||
function() {
|
||||
if(smt<?php echo $itemtype; ?>_interval != null)
|
||||
clearInterval(smt<?php echo $itemtype; ?>_interval);
|
||||
|
||||
if(smt<?php echo $itemtype; ?>_count > 1)
|
||||
smt<?php echo $itemtype; ?>_interval = setInterval(item_drop, smt<?php echo $itemtype; ?>_time);
|
||||
}
|
||||
);
|
||||
|
||||
$smt<?php echo $itemtype; ?>_a.on("focusin", function() {
|
||||
if(smt<?php echo $itemtype; ?>_interval != null)
|
||||
clearInterval(smt<?php echo $itemtype; ?>_interval);
|
||||
});
|
||||
|
||||
$smt<?php echo $itemtype; ?>_a.on("focusout", function() {
|
||||
if(smt<?php echo $itemtype; ?>_interval != null)
|
||||
clearInterval(smt<?php echo $itemtype; ?>_interval);
|
||||
|
||||
if(smt<?php echo $itemtype; ?>_count > 1)
|
||||
smt<?php echo $itemtype; ?>_interval = setInterval(item_drop, smt<?php echo $itemtype; ?>_time);
|
||||
});
|
||||
|
||||
function item_drop() {
|
||||
delay = 0;
|
||||
$smt<?php echo $itemtype; ?>.eq(smt<?php echo $itemtype; ?>_o_idx).css("display", "none");
|
||||
$smt<?php echo $itemtype; ?>.eq(smt<?php echo $itemtype; ?>_o_idx).find("div").css("top", "-"+$smt<?php echo $itemtype; ?>_height+"px");
|
||||
|
||||
smt<?php echo $itemtype; ?>_c_idx = (smt<?php echo $itemtype; ?>_o_idx + 1) % smt<?php echo $itemtype; ?>_count;
|
||||
|
||||
$smt<?php echo $itemtype; ?>.eq(smt<?php echo $itemtype; ?>_c_idx).css("display", "block");
|
||||
$smt<?php echo $itemtype; ?>.eq(smt<?php echo $itemtype; ?>_c_idx).find("div").each(function() {
|
||||
$(this).delay(delay).animate(
|
||||
{ top: "+="+$smt<?php echo $itemtype; ?>_height+"px" }, smt<?php echo $itemtype; ?>_a_time
|
||||
);
|
||||
|
||||
delay += smt<?php echo $itemtype; ?>_delay;
|
||||
});
|
||||
smt<?php echo $itemtype; ?>_o_idx = smt<?php echo $itemtype; ?>_c_idx;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<!-- } 상품진열 50 끝 -->
|
||||
@ -1,5 +1,5 @@
|
||||
|
||||
/* ##### maintype(nn).inc.php, list.skin.(nn).php 공통 적용 시작 ##### */
|
||||
/* ##### main(nn).skin.php, list.(nn).skin..php 공통 적용 시작 ##### */
|
||||
/* 공통 */
|
||||
.sct_wrap {margin:0 0 30px;zoom:1}
|
||||
.sct_wrap:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
@ -76,4 +76,68 @@
|
||||
.sct_13 .sct_rel_ul {margin:0;padding:0;list-style:none}
|
||||
.sct_13 .sct_rel_li {float:left;margin:0 0 0 10px}
|
||||
.sct_13 .sct_sns {position:absolute;top:20px;right:20px}
|
||||
/* ##### maintype(nn).inc.php, list.skin.(nn).php 공통 적용 끝 ##### */
|
||||
|
||||
/* 메인 상품 목록 스킨 20 */
|
||||
.smt_20 {position:relative;height:306px;overflow-y:hidden}
|
||||
.smt_20 .sct_li {position:absolute;top:306px;left:0;display:none}
|
||||
.smt_20 .sct_li_first {top:0;display:block}
|
||||
.smt_20 .sct_div {float:left;margin:0 25px 15px 0;}
|
||||
.smt_20 .sct_last {margin:0 0 15px !important}
|
||||
.smt_20 .sct_a {display:block;position:relative;text-decoration:none}
|
||||
.smt_20 .sct_a:focus, .smt_20 .sct_a:hover {text-decoration:none}
|
||||
.smt_20 .sct_img {display:block;margin:0 0 15px}
|
||||
.smt_20 b {display:block;margin:0 0 8px;font-weight:normal}
|
||||
.smt_20 s {display:block}
|
||||
.smt_20 .sct_cost {display:block;margin:0 0 10px;font-weight:bold}
|
||||
.smt_20 .sct_icon {}
|
||||
.smt_20 .sct_icon img {}
|
||||
.smt_20 .sct_sns {position:absolute;top:190px;right:20px}
|
||||
|
||||
/* 메인 상품 목록 스킨 30 */
|
||||
.smt_30 {position:relative;width:740px;height:308px;overflow-x:hidden}
|
||||
.smt_30 .sct_li {position:absolute;top:0;left:765px;width:765px;display:none}
|
||||
.smt_30 .sct_li_first {left:0;display:block}
|
||||
.smt_30 .sct_div {float:left;margin:0 25px 15px 0;}
|
||||
.smt_30 .sct_a {display:block;position:relative;text-decoration:none}
|
||||
.smt_30 .sct_a:focus, .smt_30 .sct_a:hover {text-decoration:none}
|
||||
.smt_30 .sct_img {display:block;margin:0 0 15px}
|
||||
.smt_30 b {display:block;margin:0 0 8px;font-weight:normal}
|
||||
.smt_30 s {display:block}
|
||||
.smt_30 .sct_cost {display:block;margin:0 0 10px;font-weight:bold}
|
||||
.smt_30 .sct_icon {}
|
||||
.smt_30 .sct_icon img {}
|
||||
.smt_30 .sct_sns {position:absolute;top:190px;right:20px}
|
||||
|
||||
/* 메인 상품 목록 스킨 40 */
|
||||
.smt_40 {position:relative;height:306px}
|
||||
.smt_40 .sct_li {position:absolute;top:0;left:0;display:none}
|
||||
.smt_40 .sct_li_first {display:block}
|
||||
.smt_40 .sct_div {float:left;margin:0 25px 15px 0;}
|
||||
.smt_40 .sct_last {margin:0 0 15px !important}
|
||||
.smt_40 .sct_a {display:block;position:relative;text-decoration:none}
|
||||
.smt_40 .sct_a:focus, .smt_40 .sct_a:hover {text-decoration:none}
|
||||
.smt_40 .sct_img {display:block;margin:0 0 15px}
|
||||
.smt_40 b {display:block;margin:0 0 8px;font-weight:normal}
|
||||
.smt_40 s {display:block}
|
||||
.smt_40 .sct_cost {display:block;margin:0 0 10px;font-weight:bold}
|
||||
.smt_40 .sct_icon {}
|
||||
.smt_40 .sct_icon img {}
|
||||
.smt_40 .sct_sns {position:absolute;top:190px;right:20px}
|
||||
|
||||
/* 메인 상품 목록 스킨 50 */
|
||||
.smt_50 {position:relative;height:306px}
|
||||
.smt_50 .sct_li {position:absolute;top:0;left:0;height:306px;display:none;overflow-y:hidden}
|
||||
.smt_50 .sct_li_first {display:block}
|
||||
.smt_50 .sct_div {float:left;position:relative;top:-306px;margin:0 25px 15px 0}
|
||||
.smt_50 .sct_last {margin:0 0 15px}
|
||||
.smt_50 .sct_a {display:block;position:relative;text-decoration:none}
|
||||
.smt_50 .sct_a:focus, .smt_50 .sct_a:hover {text-decoration:none}
|
||||
.smt_50 .sct_img {display:block;margin:0 0 15px}
|
||||
.smt_50 b {display:block;margin:0 0 8px;font-weight:normal}
|
||||
.smt_50 s {display:block}
|
||||
.smt_50 .sct_cost {display:block;margin:0 0 10px;font-weight:bold}
|
||||
.smt_50 .sct_icon {}
|
||||
.smt_50 .sct_icon img {}
|
||||
.smt_50 .sct_sns {position:absolute;top:190px;right:20px}
|
||||
|
||||
/* ##### main(nn).skin.php, list.(nn).skin..php 공통 적용 끝 ##### */
|
||||
|
||||
Reference in New Issue
Block a user