경로 수정 작업 중

This commit is contained in:
chicpro
2013-03-14 17:56:20 +09:00
parent 8ba59fe9b0
commit 1a60978568
1212 changed files with 39023 additions and 33180 deletions

View File

@ -1,32 +1,32 @@
<?
// 배너 출력
$sql = " select * from $g4[yc4_banner_table]
where '$g4[time_ymdhis]' between bn_begin_time and bn_end_time
$sql = " select * from {$g4['yc4_banner_table']}
where '".G4_TIME_YMDHIS."' between bn_begin_time and bn_end_time
and bn_position = '$position'
order by bn_order, bn_id desc ";
$result = sql_query($sql);
?>
<table width=100% cellpadding=0 cellspacing=0>
<?
for ($i=0; $row=sql_fetch_array($result); $i++)
for ($i=0; $row=sql_fetch_array($result); $i++)
{
//print_r2($row);
// 테두리 있는지
$bn_border = $row[bn_border];
$bn_border = $row['bn_border'];
// 새창 띄우기인지
$bn_new_win = ($row[bn_new_win]) ? "target=".$row[bn_new_win] : "";
$bn_new_win = ($row['bn_new_win']) ? "target=".$row['bn_new_win'] : "";
$bimg = "$g4[path]/data/banner/$row[bn_id]";
if (file_exists($bimg))
$bimg = G4_DATA_PATH."/banner/{$row['bn_id']}";
if (file_exists($bimg))
{
$size = getimagesize($bimg);
echo "<tr><td>";
if ($row[bn_url][0] == "#")
echo "<a href='$row[bn_url]'>";
else if ($row[bn_url] && $row[bn_url] != "http://") {
echo "<a href='$g4[shop_path]/bannerhit.php?bn_id={$row[bn_id]}&url=".urlencode($row[bn_url])."' $bn_new_win>";
if ($row['bn_url'][0] == "#")
echo "<a href='{$row['bn_url']}'>";
else if ($row['bn_url'] && $row['bn_url'] != "http://") {
echo "<a href=\"".G4_SHOP_URL."/bannerhit.php?bn_id={$row['bn_id']}&url=".urlencode($row['bn_url'])."\" $bn_new_win>";
}
echo "<img src='$bimg' border='{$bn_border}' alt='{$row[bn_alt]}' width='$size[0]' height='$size[1]'></a>";
echo "<img src=\"$bimg\" border=\"{$bn_border}\" alt=\"{$row[bn_alt]}\" width=\"{$size[0]}\" height=\"{$size[1]}\"></a>";
echo "</td></tr>\n";
}
}

127
shop/index.php Normal file
View File

@ -0,0 +1,127 @@
<?
include_once("./_common.php");
include_once(G4_LIB_PATH.'/latest.lib.php');
define("_INDEX_", TRUE);
$g4[title] = "";
include_once(G4_SHOP_PATH.'/shop.head.php');
?>
<script src="<?=G4_JS_PATH?>/shop.js"></script>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td valign=top>
<img src="<?=G4_DATA_URL?>/common/main_img" border="0"><br><br>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td colspan=2>
<?
// 히트상품
$type = 1;
if ($default["de_type{$type}_list_use"])
{
echo "<a href=\"".G4_SHOP_URL."/listtype.php?type={$type}\"><img src=\"".G4_SHOP_URL."/img/bar_type{$type}.gif\" border=\"0\"></a><br>";
display_type($type, $default["de_type{$type}_list_skin"], $default["de_type{$type}_list_mod"], $default["de_type{$type}_list_row"], $default["de_type{$type}_img_width"], $default["de_type{$type}_img_height"]);
}
?>
</td>
</tr>
<tr><td colspan=2 height=20></td></tr>
<tr>
<td colspan=2>
<?
// 추천상품
$type = 2;
if ($default["de_type{$type}_list_use"])
{
echo "<a href=\"".G4_SHOP_URL."/listtype.php?type={$type}\"><img src=\"".G4_SHOP_URL."/img/bar_type{$type}.gif\" border=\"0\"></a><br>";
display_type($type, $default["de_type{$type}_list_skin"], $default["de_type{$type}_list_mod"], $default["de_type{$type}_list_row"], $default["de_type{$type}_img_width"], $default["de_type{$type}_img_height"]);
}
?>
</td>
</tr>
<tr><td colspan=2 height=20></td></tr>
<tr>
<td colspan=2>
<?
// 인기상품
$type = 4;
if ($default["de_type{$type}_list_use"])
{
echo "<a href=\"".G4_SHOP_URL."/listtype.php?type={$type}\"><img src=\"".G4_SHOP_URL."/img/bar_type{$type}.gif\" border=\"0\"></a><br>";
display_type($type, $default["de_type{$type}_list_skin"], $default["de_type{$type}_list_mod"], $default["de_type{$type}_list_row"], $default["de_type{$type}_img_width"], $default["de_type{$type}_img_height"]);
}
?>
</td>
</tr>
<tr><td colspan=2 height=20></td></tr>
<tr>
<td colspan=2>
<?
// 할인상품
$type = 5;
if ($default["de_type{$type}_list_use"])
{
echo "<a href=\"".G4_SHOP_URL."/listtype.php?type={$type}\"><img src=\"".G4_SHOP_URL."/img/bar_type{$type}.gif\" border=\"0\"></a><br>";
display_type($type, $default["de_type{$type}_list_skin"], $default["de_type{$type}_list_mod"], $default["de_type{$type}_list_row"], $default["de_type{$type}_img_width"], $default["de_type{$type}_img_height"]);
}
?>
</td>
</tr>
<tr><td colspan=2 height=20></td></tr>
<tr>
<td valign=top width=50% align=center>
<table width=95% cellpadding=0 cellspacing=0>
<tr><td><?=latest('basic', 'qa', 5, 30);?></td></tr>
</table></td>
<td valign=top width=50% align=center>
<table width=95% cellpadding=0 cellspacing=0>
<tr><td><?=latest('basic', 'free', 5, 30);?></td></tr>
</table></td>
</tr>
</table>
</td>
<td valign=top>
<!-- 공지사항 -->
<table width=177 bgcolor=#DEDEDE cellpadding=1 cellspacing=0>
<tr><td align=center>
<table cellpadding=0 cellspacing=0 bgcolor=#FFFFFF height=97>
<tr><td height=28><a href='<?=$g4[bbs_path]?>/board.php?bo_table=notice'><img src='<?=$g4[shop_img_path]?>/bar_notice.gif' border=0></a></td></tr>
<tr>
<td><?=latest('shop_notice', 'notice', 3, 25);?></td>
</tr>
</table>
</td></tr>
</table><BR>
<?
// 최신상품
$type = 3;
if ($default["de_type{$type}_list_use"])
{
echo "<a href=\"".G4_SHOP_URL."/listtype.php?type={$type}\"><img src=\"".G4_SHOP_URL."/img/bar_type{$type}.gif\" border=\"0\"></a><br>";
display_type($type, $default["de_type{$type}_list_skin"], $default["de_type{$type}_list_mod"], $default["de_type{$type}_list_row"], $default["de_type{$type}_img_width"], $default["de_type{$type}_img_height"]);
}
?><br><br>
<!-- 온라인 투표 -->
<?=poll('shop_poll');?><br>
<!-- 방문자 수 -->
<?=visit('shop_visit');?><br>
<!-- 메인 배너 -->
<?=display_banner('메인');?><br>
</td>
</tr>
</table>
<BR><BR>
<?
include G4_SHOP_PATH.'/newwin.inc.php'; // 새창띄우기
include_once(G4_SHOP_PATH.'/shop.tail.php');
?>

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
<?
include_once('./_common.php');
if ($w == '' || $w == 'u')
{
@ -25,19 +25,19 @@ if ($w == '' || $w == 'u')
}
*/
if (!$is_member)
if (!$is_member)
{
if (!trim($_POST[is_name])) alert("이름을 입력하여 주십시오.");
if (!trim($_POST[is_password])) alert("패스워드를 입력하여 주십시오.");
if (!trim($_POST['is_name'])) alert("이름을 입력하여 주십시오.");
if (!trim($_POST['is_password'])) alert("패스워드를 입력하여 주십시오.");
}
else
{
$is_name = $member[mb_name];
$is_password = $member[mb_password];
$is_name = $member['mb_name'];
$is_password = $member['mb_password'];
}
if (!trim($_POST[is_subject])) alert("제목을 입력하여 주십시오.");
if (!trim($_POST[is_content])) alert("내용을 입력하여 주십시오.");
if (!trim($_POST['is_subject'])) alert("제목을 입력하여 주십시오.");
if (!trim($_POST['is_content'])) alert("내용을 입력하여 주십시오.");
$is_password = sql_password($is_password);
}
@ -46,44 +46,44 @@ $url = "./item.php?it_id=$it_id";
if ($w == '')
{
$sql = " select max(is_id) as max_is_id from $g4[yc4_item_ps_table] ";
$sql = " select max(is_id) as max_is_id from {$g4['yc4_item_ps_table']} ";
$row = sql_fetch($sql);
$max_is_id = $row[max_is_id];
$max_is_id = $row['max_is_id'];
$sql = " select max(is_id) as max_is_id from $g4[yc4_item_ps_table]
$sql = " select max(is_id) as max_is_id from {$g4['yc4_item_ps_table']}
where it_id = '$it_id'
and mb_id = '$member[mb_id]' ";
and mb_id = '{$member['mb_id']}' ";
$row = sql_fetch($sql);
if ($row[max_is_id] && $row[max_is_id] == $max_is_id)
if ($row['max_is_id'] && $row['max_is_id'] == $max_is_id)
alert("같은 상품에 대하여 계속해서 평가하실 수 없습니다.");
$sql = "insert $g4[yc4_item_ps_table]
$sql = "insert {$g4['yc4_item_ps_table']}
set it_id = '$it_id',
mb_id = '$member[mb_id]',
mb_id = '{$member['mb_id']}',
is_score = '$is_score',
is_name = '$is_name',
is_password = '$is_password',
is_subject = '$is_subject',
is_content = '$is_content',
is_time = '$g4[time_ymdhis]',
is_ip = '$_SERVER[REMOTE_ADDR]' ";
if (!$default[de_item_ps_use])
is_time = '".G4_TIME_YMDHIS."',
is_ip = '{$_SERVER['REMOTE_ADDR']}' ";
if (!$default['de_item_ps_use'])
$sql .= ", is_confirm = '1' ";
sql_query($sql);
if ($default[de_item_ps_use])
if ($default['de_item_ps_use'])
alert("평가하신 글은 관리자가 확인한 후에 표시됩니다.", $url);
else
goto_url($url);
}
}
else if ($w == 'u')
{
$sql = " select is_password from $g4[yc4_item_ps_table] where is_id = '$is_id' ";
$sql = " select is_password from {$g4['yc4_item_ps_table']} where is_id = '$is_id' ";
$row = sql_fetch($sql);
if ($row[is_password] != $is_password)
if ($row['is_password'] != $is_password)
alert("패스워드가 틀리므로 수정하실 수 없습니다.");
$sql = " update $g4[yc4_item_ps_table]
$sql = " update {$g4['yc4_item_ps_table']}
set is_subject = '$is_subject',
is_content = '$is_content',
is_score = '$is_score'
@ -96,22 +96,22 @@ else if ($w == 'd')
{
if ($is_member)
{
$sql = " select count(*) as cnt from $g4[yc4_item_ps_table] where mb_id = '$member[mb_id]' and is_id = '$is_id' ";
$sql = " select count(*) as cnt from {$g4['yc4_item_ps_table']} where mb_id = '{$member['mb_id']}' and is_id = '$is_id' ";
$row = sql_fetch($sql);
if (!$row[cnt])
if (!$row['cnt'])
alert("자신의 사용후기만 삭제하실 수 있습니다.");
}
else
{
$is_password = sql_password($is_password);
$sql = " select is_password from $g4[yc4_item_ps_table] where is_id = '$is_id' ";
$sql = " select is_password from {$g4['yc4_item_ps_table']} where is_id = '$is_id' ";
$row = sql_fetch($sql);
if ($row[is_password] != $is_password)
if ($row['is_password'] != $is_password)
alert("패스워드가 틀리므로 삭제하실 수 없습니다.");
}
$sql = " delete from $g4[yc4_item_ps_table] where mb_id = '$member[mb_id]' and is_id = '$is_id' ";
$sql = " delete from {$g4['yc4_item_ps_table']} where mb_id = '{$member['mb_id']}' and is_id = '$is_id' ";
sql_query($sql);
goto_url($url);

View File

@ -12,23 +12,23 @@ if (!$is_member) {
if ($w == "") {
$is_score = 10;
} else if ($w == "u") {
$ps = sql_fetch(" select * from $g4[yc4_item_ps_table] where is_id = '$is_id' ");
$ps = sql_fetch(" select * from {$g4['yc4_item_ps_table']} where is_id = '$is_id' ");
if (!$ps) {
alert_close("사용후기 정보가 없습니다.");
}
$it_id = $ps[it_id];
$is_score = $ps[is_score];
$it_id = $ps['it_id'];
$is_score = $ps['is_score'];
}
if ($w == "u") {
if (!$is_admin && $ps[mb_id] != $member[mb_id]) {
if (!$is_admin && $ps['mb_id'] != $member['mb_id']) {
alert_close("자신의 사용후기만 수정이 가능합니다.");
}
}
include_once("$g4[path]/lib/cheditor4.lib.php");
include_once("$g4[path]/head.sub.php");
include_once(G4_LIB_PATH."/cheditor4.lib.php");
include_once(G4_PATH.'/head.sub.php');
echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
echo cheditor1('is_content', '100%', '250');
@ -48,19 +48,19 @@ label {width:130px;vertical-align:top;padding:3px 0;}
<ul style="padding:10px;">
<li>
<label for="is_subject">제목</label>
<input type='text' id='is_subject' name='is_subject' size='100' class='ed' minlength='2' required itemname='제목' value='<?=get_text($ps[is_subject])?>'>
<input type='text' id='is_subject' name='is_subject' size='100' class='ed' minlength='2' required itemname='제목' value='<?=get_text($ps['is_subject'])?>'>
</li>
<li>
<label for="" style="width:200px;">내용</label>
<?=cheditor2('is_content', $ps[is_content]);?>
<?=cheditor2('is_content', $ps['is_content']);?>
</li>
<li>
<label>평가</label>
<input type=radio name=is_score value='10' <?=($is_score==10)?"checked='checked'":"";?>><img src='<?=$g4[shop_img_path]?>/star5.gif' align=absmiddle>
<input type=radio name=is_score value='8' <?=($is_score==8)?"checked='checked'":"";?>><img src='<?=$g4[shop_img_path]?>/star4.gif' align=absmiddle>
<input type=radio name=is_score value='6' <?=($is_score==6)?"checked='checked'":"";?>><img src='<?=$g4[shop_img_path]?>/star3.gif' align=absmiddle>
<input type=radio name=is_score value='4' <?=($is_score==4)?"checked='checked'":"";?>><img src='<?=$g4[shop_img_path]?>/star2.gif' align=absmiddle>
<input type=radio name=is_score value='2' <?=($is_score==2)?"checked='checked'":"";?>><img src='<?=$g4[shop_img_path]?>/star1.gif' align=absmiddle>
<input type=radio name=is_score value='10' <?=($is_score==10)?"checked='checked'":"";?>><img src='<?=G4_SHOP_URL?>/img/star5.gif' align=absmiddle>
<input type=radio name=is_score value='8' <?=($is_score==8)?"checked='checked'":"";?>><img src='<?=G4_SHOP_URL?>/img/star4.gif' align=absmiddle>
<input type=radio name=is_score value='6' <?=($is_score==6)?"checked='checked'":"";?>><img src='<?=G4_SHOP_URL?>/img/star3.gif' align=absmiddle>
<input type=radio name=is_score value='4' <?=($is_score==4)?"checked='checked'":"";?>><img src='<?=G4_SHOP_URL?>/img/star2.gif' align=absmiddle>
<input type=radio name=is_score value='2' <?=($is_score==2)?"checked='checked'":"";?>><img src='<?=G4_SHOP_URL?>/img/star1.gif' align=absmiddle>
</li>
<li>
<label style="vertical-align:middle;"><img id='kcaptcha_image_use' /></label>
@ -82,11 +82,11 @@ function fitemuse_submit(f)
if (document.getElementById('tx_is_content')) {
var len = ed_is_content.inputLength();
if (len == 0) {
alert('내용을 입력하십시오.');
alert('내용을 입력하십시오.');
ed_is_content.returnFalse();
return false;
} else if (len > 5000) {
alert('내용은 5000글자 까지만 입력해 주세요.');
alert('내용은 5000글자 까지만 입력해 주세요.');
ed_is_content.returnFalse();
return false;
}
@ -118,5 +118,5 @@ $(function() {
});
</script>
<?
include_once("$g4[path]/tail.sub.php");
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -1,23 +1,23 @@
<?
include_once("./_common.php");
<?
include_once('./_common.php');
if (!$is_member) {
alert_close("사용후기는 회원만 평가가 가능합니다.");
}
$is_subject = trim($_REQUEST[is_subject]);
$is_content = trim($_REQUEST[is_content]);
$is_subject = trim($_REQUEST['is_subject']);
$is_content = trim($_REQUEST['is_content']);
if ($w == '' || $w == 'u') {
$key = get_session("captcha_keystring");
if (!($key && $key == $_POST[is_key])) {
if (!($key && $key == $_POST['is_key'])) {
//session_unregister("captcha_keystring");
unset($_SESSION['captcha_keystring']);
alert("정상적인 접근이 아닌것 같습니다.");
}
$is_name = $member[mb_name];
$is_password = $member[mb_password];
$is_name = $member['mb_name'];
$is_password = $member['mb_password'];
if (!$is_subject) alert("제목을 입력하여 주십시오.");
if (!$is_content) alert("내용을 입력하여 주십시오.");
@ -25,45 +25,45 @@ if ($w == '' || $w == 'u') {
$url = "./item.php?it_id=$it_id";
if ($w == '')
if ($w == '')
{
$sql = " select max(is_id) as max_is_id from $g4[yc4_item_ps_table] ";
$sql = " select max(is_id) as max_is_id from {$g4['yc4_item_ps_table']} ";
$row = sql_fetch($sql);
$max_is_id = $row[max_is_id];
$max_is_id = $row['max_is_id'];
$sql = " select max(is_id) as max_is_id from $g4[yc4_item_ps_table] where it_id = '$it_id' and mb_id = '$member[mb_id]' ";
$sql = " select max(is_id) as max_is_id from {$g4['yc4_item_ps_table']} where it_id = '$it_id' and mb_id = '{$member['mb_id']}' ";
$row = sql_fetch($sql);
if ($row[max_is_id] && $row[max_is_id] == $max_is_id)
if ($row['max_is_id'] && $row['max_is_id'] == $max_is_id)
alert("같은 상품에 대하여 계속해서 평가하실 수 없습니다.");
$sql = "insert $g4[yc4_item_ps_table]
$sql = "insert {$g4['yc4_item_ps_table']}
set it_id = '$it_id',
mb_id = '$member[mb_id]',
mb_id = '{$member['mb_id']}',
is_score = '$is_score',
is_name = '$is_name',
is_password = '$is_password',
is_subject = '$is_subject',
is_content = '$is_content',
is_time = '$g4[time_ymdhis]',
is_ip = '$_SERVER[REMOTE_ADDR]' ";
if (!$default[de_item_ps_use])
is_time = '".G4_TIME_YMDHIS."',
is_ip = '{$_SERVER['REMOTE_ADDR']}' ";
if (!$default['de_item_ps_use'])
$sql .= ", is_confirm = '1' ";
sql_query($sql);
if ($default[de_item_ps_use]) {
if ($default['de_item_ps_use']) {
alert_opener("평가하신 글은 관리자가 확인한 후에 표시됩니다.", $url);
} else {
alert_opener("사용후기가 등록 되었습니다.", $url);
}
}
else if ($w == 'u')
}
else if ($w == 'u')
{
$sql = " select is_password from $g4[yc4_item_ps_table] where is_id = '$is_id' ";
$sql = " select is_password from {$g4['yc4_item_ps_table']} where is_id = '$is_id' ";
$row = sql_fetch($sql);
if ($row[is_password] != $is_password)
if ($row['is_password'] != $is_password)
alert("패스워드가 틀리므로 수정하실 수 없습니다.");
$sql = " update $g4[yc4_item_ps_table]
$sql = " update {$g4['yc4_item_ps_table']}
set is_subject = '$is_subject',
is_content = '$is_content',
is_score = '$is_score'

View File

@ -1,29 +1,29 @@
<?
include_once("./_common.php");
include_once('./_common.php');
$sql = " select it_name from $g4[yc4_item_table] where it_id='$it_id' ";
$sql = " select it_name from {$g4['yc4_item_table']} where it_id='$it_id' ";
$row = sql_fetch_array(sql_query($sql));
$imagefile = "$g4[path]/data/item/$img";
$imagefile = G4_DATA_PATH."/item/$img";
$size = getimagesize($imagefile);
$g4[title] = "$row[it_name] ($it_id)";
include_once("$g4[path]/head.sub.php");
$g4['title'] = "{$row['it_name']} ($it_id)";
include_once(G4_PATH.'/head.sub.php');
?>
<br>
<div align=center>
<a href='#' onclick='window.close();'><img id='largeimage' src='<?=$imagefile?>' width='<?=$size[0]?>' height='<?=$size[1]?>' alt='<?=$row[it_name]?>' border=0 style='border:1 solid #E4E4E4;'></a>
<a href='#' onclick='window.close();'><img id='largeimage' src='<?=$imagefile?>' width='<?=$size[0]?>' height='<?=$size[1]?>' alt='<?=$row['it_name']?>' border=0 style='border:1 solid #E4E4E4;'></a>
</div>
<p>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=30% align=center><a href='#' onclick='window.close();'><img src='<? echo "$g4[shop_img_path]/" ?>/btn_close.gif' border=0 alt="창닫기"></a></td>
<td width=30% align=center><a href='#' onclick='window.close();'><img src='<?=G4_SHOP_URL?>/img/btn_close.gif' border=0 alt="창닫기"></a></td>
<td width=70% align=right>
<?
for ($i=1; $i<=5; $i++)
{
if (file_exists("$g4[path]/data/item/{$it_id}_l{$i}"))
echo "<img id='large{$i}' src='$g4[path]/data/item/{$it_id}_l{$i}' border=0 width=50 height=50 style='border:1 solid #E4E4E4;'
if (file_exists(G4_DATA_PATH."/item/{$it_id}_l{$i}"))
echo "<img id='large{$i}' src='".G4_DATA_URL."/item/{$it_id}_l{$i}' border=0 width=50 height=50 style='border:1 solid #E4E4E4;'
onmouseover=\"document.getElementById('largeimage').src=document.getElementById('large{$i}').src;\"> &nbsp;";
}
?>
@ -31,5 +31,5 @@ include_once("$g4[path]/head.sub.php");
</tr>
</table>
<?
include_once("$g4[path]/tail.sub.php");
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -2,38 +2,38 @@
include_once("./_common.php");
$sql = " select *
from $g4[yc4_category_table]
from {$g4['yc4_category_table']}
where ca_id = '$ca_id'
and ca_use = '1' ";
$ca = sql_fetch($sql);
if (!$ca[ca_id])
if (!$ca['ca_id'])
alert("등록된 분류가 없습니다.");
$g4[title] = $ca[ca_name] . " 상품리스트";
$g4['title'] = $ca['ca_name'] . " 상품리스트";
if ($ca[ca_include_head])
@include_once($ca[ca_include_head]);
if ($ca['ca_include_head'])
@include_once($ca['ca_include_head']);
else
include_once("./_head.php");
include_once('./_head.php');
// 스킨을 지정했다면 지정한 스킨을 사용함 (스킨의 다양화)
//if ($skin) $ca[ca_skin] = $skin;
$nav_ca_id = $ca_id;
include "$g4[shop_path]/navigation1.inc.php";
include G4_SHOP_PATH.'/navigation1.inc.php';
$himg = "$g4[path]/data/category/{$ca_id}_h";
$himg = G4_DATA_URL."/category/{$ca_id}_h";
if (file_exists($himg)) {
echo "<img src='$himg' border=0><br>";
}
// 상단 HTML
echo stripslashes($ca[ca_head_html]);
echo stripslashes($ca['ca_head_html']);
if ($is_admin)
echo "<p align=center><a href='$g4[shop_admin_path]/categoryform.php?w=u&ca_id=$ca_id'><img src='$g4[shop_img_path]/btn_admin_modify.gif' border=0></a></p>";
echo "<p align=center><a href='".G4_ADMIN_URL."/shop_admin/categoryform.php?w=u&ca_id=$ca_id'><img src='".G4_SHOP_URL."/img/btn_admin_modify.gif' border=0></a></p>";
include "$g4[shop_path]/listcategory2.inc.php";
include G4_SHOP_PATH.'/listcategory2.inc.php';
?>
<table width=100% cellpadding=0 cellspacing=0>
@ -51,40 +51,40 @@ $sql_list1 = " select * ";
$sql_list2 = " order by $order_by it_order, it_id desc ";
// 하위분류 포함
// 판매가능한 상품만
$sql_common = " from $g4[yc4_item_table]
where (ca_id like '{$ca_id}%'
// 판매가능한 상품만
$sql_common = " from {$g4['yc4_item_table']}
where (ca_id like '{$ca_id}%'
or ca_id2 like '{$ca_id}%'
or ca_id3 like '{$ca_id}%')
and it_use = '1' ";
$error = "<img src='$g4[shop_img_path]/no_item.gif' border=0>";
$error = "<img src='".G4_SHOP_URL."/img/no_item.gif' border=0>";
// 리스트 유형별로 출력
$list_file = "$g4[shop_path]/$ca[ca_skin]";
$list_file = G4_SHOP_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];
$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";
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;
}
else
}
else
{
$i = 0;
$error = "<p>$ca[ca_skin] 파일을 찾을 수 없습니다.<p>관리자에게 알려주시면 감사하겠습니다.";
$error = "<p>{$ca['ca_skin']} 파일을 찾을 수 없습니다.<p>관리자에게 알려주시면 감사하겠습니다.";
}
@ -103,22 +103,22 @@ if ($i==0)
<div align=center style='clear:both;'>
<?
$qstr1 .= "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]?$qstr1&page=");
echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr1&page=");
?>
</div><br>
<?
// 하단 HTML
echo stripslashes($ca[ca_tail_html]);
echo stripslashes($ca['ca_tail_html']);
$timg = "$g4[path]/data/category/{$ca_id}_t";
$timg = G4_DATA_PATH."/category/{$ca_id}_t";
if (file_exists($timg))
echo "<br><img src='$timg' border=0>";
echo "<br><img src='".G4_DATA_URL."/category/{$ca_id}_t' border=0>";
if ($ca[ca_include_tail])
@include_once($ca[ca_include_tail]);
if ($ca['ca_include_tail'])
@include_once($ca['ca_include_tail']);
else
include_once("./_tail.php");
include_once('./_tail.php');
echo "\n<!-- $ca[ca_skin] -->\n";
echo "\n<!-- {$ca['ca_skin']} -->\n";
?>

View File

@ -1,16 +1,16 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=2 cellspacing=0>
<tr>
<?
for ($i=0; $row=sql_fetch_array($result); $i++)
for ($i=0; $row=sql_fetch_array($result); $i++)
{
if ( ($i>0) && (($i%$list_mod)==0) )
if ( ($i>0) && (($i%$list_mod)==0) )
{
echo "</tr>\n\n";
echo "<tr><td colspan='$list_mod' background='$g4[shop_img_path]/line_h.gif' height=1></td></tr>\n\n";
echo "<tr><td colspan='$list_mod' background='".G4_SHOP_URL."/img/line_h.gif' height=1></td></tr>\n\n";
echo "<tr>\n";
}
@ -18,16 +18,16 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
<td width='{$td_width}%' align=center valign=top>
<br>
<table width=98% cellpadding=2 cellspacing=0>
<tr><td align=center>".get_it_image($row[it_id]."_s", $img_width , $img_height, $row[it_id])."</td></tr>
<tr><td align=center>".get_it_image($row['it_id']."_s", $img_width , $img_height, $row['it_id'])."</td></tr>
<tr><td align=center>".it_name_icon($row)."</td></tr>";
if ($row[it_cust_amount] && !$row[it_gallery])
echo "<tr><td align=center><strike>".display_amount($row[it_cust_amount])."</strike></td></tr>";
if ($row['it_cust_amount'] && !$row['it_gallery'])
echo "<tr><td align=center><strike>".display_amount($row['it_cust_amount'])."</strike></td></tr>";
echo "<tr><td align=center>";
if (!$row[it_gallery])
echo "<span class=amount>".display_amount(get_amount($row), $row[it_tel_inq])."</span>";
if (!$row['it_gallery'])
echo "<span class=amount>".display_amount(get_amount($row), $row['it_tel_inq'])."</span>";
echo "</td></tr></table></td>";
}

View File

@ -1,111 +0,0 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
/*
** 1.00.03
** 여러가지 상품을 선택하여 한꺼번에 바로구매 및 장바구니에 담기할 수 있는 페이지 입니다.
** 그러나 옵션이 있는 상품, 경매 또는 공동구매가 진행중인 상품은 선택할 수 없습니다.
*/
?>
<table width=100% cellpadding=2 cellspacing=0>
<form name=flist3 method=post action="./cartupdate.php">
<input type=hidden name=w value="multi">
<input type=hidden name=sw_direct value="">
<tr>
<?
for ($i=0; $row=mysql_fetch_array($result); $i++) {
if ( ($i>0) && (($i%$list_mod)==0) ) {
echo "</tr>\n\n";
echo "<tr><td colspan='$list_mod' height=1></td></tr>\n\n";
echo "<tr>\n";
}
echo "
<td width='{$td_width}%' align=center valign=top>
<br>
<table width=100% cellpadding=2 cellspacing=0>
<tr><td align=center>".get_it_image($row[it_id]."_s", $img_width , $img_height, $row[it_id])."</td></tr>
<tr><td align=center>".it_name_icon($row)."</td></tr>";
if ($row[it_cust_amount] && !$row[it_gallery])
{
echo "<tr><td align=center><strike>".display_amount($row[it_cust_amount], $row[it_tel_inq])."</strike></td></tr>";
}
$onclick_str = "";
// 옵션이 있는 상품은 선택할 수 없음
if (preg_match("/;|\\r/", trim($row[it_opt1]).trim($row[it_opt2]).trim($row[it_opt3]).trim($row[it_opt4]).trim($row[it_opt5]).trim($row[it_opt6]))) {
$onclick_str = "옵션이 있는 상품은 선택하실 수 없습니다.";
}
if ($onclick_str) {
$onclick_str = "onclick=\"alert('$onclick_str'); this.checked=false;\"";
} else {
$onclick_str = "onclick=\"document.flist3.elements['ct_qty[$i]'].value = this.checked ? '1' : '0';\"";
}
$it_amount = get_amount($row);
echo "<tr><td align=center>\n";
echo "<input type=hidden name=it_name[$i] value='".stripslashes($row[it_name])."'>\n";
echo "<input type=hidden name=it_amount[$i] value='$it_amount'>\n";
echo "<input type=hidden name=it_point[$i] value='$row[it_point]'>\n";
echo "<input type=hidden name=ct_qty[$i] value='0'>";
echo "<input type=hidden name=it_id[$i] value='$row[it_id]' ".$onclick_str.">\n";
echo "<input type=checkbox name=chk[$i] ".$onclick_str.">\n";
if (!$row[it_gallery])
echo "<span class=amount>".display_amount($it_amount)."</span>";
echo "</td></tr>";
echo "</table></td>";
}
// 나머지 td 를 채운다.
if (($cnt = $i%$list_mod) != 0)
for ($k=$cnt; $k<$list_mod; $k++)
echo " <td>&nbsp;</td>\n";
$length = $i;
?>
</tr>
<tr>
<td colspan="<?=$list_mod?>" align=right height=40 valign=bottom>
<a href="javascript:flist3_check('buy');"><img src="<?=$g4[shop_img_path]?>/btn_buy.gif" border=0 alt="구매하기"></a>
&nbsp;
<a href="javascript:flist3_check('cart');"><img src="<?=$g4[shop_img_path]?>/btn_cart_in.gif" border=0 alt="장바구니에 담기"></a>
&nbsp;
</td>
</tr>
</form>
</table>
<script language="JavaScript">
function flist3_check(act)
{
var f = document.flist3;
if (act == 'buy') // 바로 구매
f.sw_direct.value = '1';
else // 장바구니에 담기
f.sw_direct.value = '0';
checked = false;
for (i=0; i<<? echo $length ?>; i++)
{
if (f.elements['chk['+i+']'].checked)
{
checked = true;
break;
}
}
if (checked == false) {
alert("상품을 한개 이상 선택하여 주십시오.");
return;
}
f.submit();
}
</script>

View File

@ -1,49 +0,0 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<script language="JavaScript" src="<?=$g4[path]?>/js/shop.js"></script>
<table width=100% cellpadding=2 cellspacing=0>
<tr>
<?
for ($i=0; $row=sql_fetch_array($result); $i++)
{
if ( ($i>0) && (($i%$list_mod)==0) )
{
echo "</tr>\n\n";
echo "<tr><td colspan='$list_mod' background='$g4[shop_img_path]/line_h.gif' height=1></td></tr>\n\n";
echo "<tr>\n";
}
echo "
<td width='{$td_width}%' align=center valign=top>
<br>
<table width=98% cellpadding=2 cellspacing=0>
<tr><td align=center>".get_it_image($row[it_id]."_s", $img_width , $img_height, $row[it_id])."</td></tr>";
$large_image = get_large_image($row[it_id]."_l1", $row[it_id]);
if ($large_image)
echo "<tr><td align=center>$large_image</td></tr>";
echo "<tr><td align=center>".it_name_icon($row)."</td></tr>";
if ($row[it_cust_amount] && !$row[it_gallery])
echo "<tr><td align=center><strike>".display_amount($row[it_cust_amount])."</strike></td></tr>";
echo "<tr><td align=center>";
if (!$row[it_gallery])
echo "<span class=amount>".display_amount(get_amount($row), $row[it_tel_inq])."</span>";
echo "</td></tr>";
echo "</table></td>";
}
// 나머지 td 를 채운다.
if (($cnt = $i%$list_mod) != 0)
for ($k=$cnt; $k<$list_mod; $k++)
echo " <td>&nbsp;</td>\n";
?>
</tr>
</table>

View File

@ -1,88 +0,0 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 배열에 저장
unset($arr);
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$order = substr("0000000000" . (int)(1000000000 + $row[it_order]),-10);
if ($sort)
{
if (preg_match("/^it_amount/", $sort))
{
$order = substr("0000000000" . get_amount($row), -10) . "." . $order;
}
else if (preg_match("/^it_type/", $sort))
{
$type = substr($sort, 0, 8);
$order = (1 - $row[$type]) . "." . $order;
}
}
$key = $row[ca_id] . "." . $order . "." . $row[it_id];
$arr[$key] = $row;
}
?>
<table width=100% cellpadding=4 cellspacing=1>
<?
if (count($arr) > 0)
{
ksort($arr);
$i=0;
$save_ca_id = "";
while (list($key, $row) = each ($arr))
{
// 1라인에 설정한 수만큼의 상품이 출력되면 행을 바꿈
if ( ($i>0) && (($i%$list_mod)==0) )
{
echo "</tr>\n\n";
echo "<tr><td colspan='$list_mod' background='$g4[shop_img_path]/line_h.gif' height=1></td></tr>\n\n";
echo "<tr>\n";
}
// 임시저장한 분류코드와 다르다면 분류명을 출력
if ($save_ca_id != $row[ca_id])
{
$sql = " select ca_name from $g4[yc4_category_table] where ca_id = '$row[ca_id]' ";
$tmp_ca = sql_fetch($sql);
echo "<tr height=30>";
echo "<td bgcolor=#EEEEEE colspan='$list_mod'>&nbsp;<img src='$g4[shop_img_path]/icon3.gif'> <b><a href='./list.php?ca_id=$row[ca_id]'>$tmp_ca[ca_name]</a></b></td>";
echo "</tr>";
$save_ca_id = $row[ca_id];
$i=0;
}
echo "<td width='{$td_width}%' align=center valign=top>";
echo "<br>";
echo "<table width=98% cellpadding=2 cellspacing=0>";
echo "<tr><td align=center>".get_it_image($row[it_id]."_s", $img_width , $img_height, $row[it_id])."</td></tr>";
echo "<tr><td align=center>".it_name_icon($row)."</td></tr>";
if ($row[it_cust_amount] && !$row[it_gallery])
echo "<tr><td align=center><strike>".display_amount($row[it_cust_amount])."</strike></td></tr>";
echo "<tr><td align=center>";
if (!$row[it_gallery])
echo "<span class=amount>".display_amount(get_amount($row), $row[it_tel_inq])."</span>";
echo "</td></tr>";
echo "</table></td>\n";
$i++;
}
}
else
{
echo "<tr><td align=center height='100'><span class=point>자료가 한건도 없습니다.</span></td></tr>\n";
}
// 나머지 td 를 채운다.
if (($cnt = $i%$list_mod) != 0)
for ($k=$cnt; $k<$list_mod; $k++)
echo "<td>&nbsp;</td>\n";
?>
<tr><td colspan='<?=$list_mod?>' background='<?="$g4[shop_img_path]/line_h.gif"?>' height=1></td></tr>
</table>

View File

@ -1,45 +0,0 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=2 cellspacing=0 border=0>
<tr>
<?
for ($i=0; $row=sql_fetch_array($result); $i++)
{
if ( ($i>0) && (($i%$list_mod)==0) )
{
echo "</tr>\n\n";
echo "<tr><td colspan=" . ($list_mod + $list_mod - 1) . " height=1></td></tr>\n\n";
echo "<tr>\n";
}
$image = get_it_image($row[it_id]."_s", $img_width , $img_height, $row[it_id]);
echo "
<td width='$td_width%' align=center valign=top>
<table width=100% cellpadding=2 cellspacing=0 border=0>
<tr>
<td align=center width=40>&nbsp;$image</td>
<td>".it_name_icon($row)."</td>
<td width=80 align=right>";
if (!$row[it_gallery])
echo "<span class=amount>" . display_amount(get_amount($row), $row[it_tel_inq]) . "</span>";
echo "</td></td>
</tr>
</table>
</td>";
// 세로줄
if (($i%$list_mod) != ($list_mod-1))
echo "<td width=10 align=center></td>";
}
// 나머지 td 를 colspan 으로 채운다.
$cnt = $list_mod - ($i % $list_mod);
$cnt = $cnt + $cnt - 1;
echo "<td colspan=$cnt>&nbsp;</td>\n";
?>
</tr>
</table>

View File

@ -1,44 +0,0 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=4 cellspacing=1>
<?
for ($i=0; $row=sql_fetch_array($result); $i++) {
// 가로줄
if ($i>0)
echo "<tr><td colspan=5 background='$g4[shop_img_path]/line_h.gif' height=1></td></tr>\n";
echo "
<tr>
<td>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width='".($img_width+10)."' align=center>".get_it_image($row[it_id]."_s", $img_width , $img_height, $row[it_id])."</td>
<td>".it_name_icon($row)."</td>
</tr>
</table>
</td>
<td align=center>$row[it_maker]</td>
<td align=right>";
if (!$row[it_gallery])
{
echo "<span class=amount>".display_amount(get_amount($row), $row[it_tel_inq])."</span>";
echo "<br>".display_point($row[it_point]);
}
echo "</td>";
echo "<td align=center>";
echo "<a href='./wishupdate.php?it_id=$row[it_id]'><img src='$g4[shop_img_path]/btn_wish2.gif' border=0 alt='보관함'></a>";
echo "</td></tr>";
}
mysql_free_result($result);
if ($i == 0)
echo "<tr><td colspan=5 align=center><span class=point>자료가 한건도 없습니다.</span></td></tr>\n";
?>
<tr><td colspan=5 background='<?="$g4[shop_img_path]/line_h.gif"?>' height=1></td></tr>
</table>

View File

@ -1,91 +0,0 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
/******************************************************
** 1.03.01 추가
** 사용방법 :
** 분류관리 > 출력스킨에서 list.skin.4.php 를 선택하십시오.
** 출력이미지 폭과 높이는 적당하게 입력하십시오.
** 1라인 이미지수는 1 로 입력하십시오.
** 총라인수는 분류에 속한 상품수만큼 입력하십시오.
** 상품수를 모르신다면 100000 을 입력하십시오.
** 주의) 이 스킨은 분류하단에 페이지수를 출력하지 않습니다.
******************************************************/
// 배열에 저장
unset($arr);
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$order = substr("0000000000" . (int)(1000000000 + $row[it_order]),-10);
//$arr[$row[ca_id]."_".$order.$i] = $row;
if ($sort)
{
if (preg_match("/^it_amount/", $sort))
{
$order = substr("0000000000" . get_amount($row), -10) . "." . $order;
}
else if (preg_match("/^it_type/", $sort))
{
$type = substr($sort, 0, 8);
$order = (1 - $row[$type]) . "." . $order;
}
}
$key = $row[ca_id] . "." . $order . "." . $row[it_id];
$arr[$key] = $row;
}
?>
<table width=100% cellpadding=4 cellspacing=1>
<?
if (count($arr) > 0)
{
ksort($arr);
$i=0;
$save_ca_id = "";
while (list($key, $row) = each ($arr))
{
// 가로줄
if ($i>0)
echo "<tr><td colspan=4 background='$g4[shop_img_path]/line_h.gif' height=1></td></tr>\n";
if ($save_ca_id != $row[ca_id])
{
$sql = " select ca_name from $g4[yc4_category_table] where ca_id = '$row[ca_id]' ";
$tmp_ca = sql_fetch($sql);
echo "
<tr height=30>
<td bgcolor='#EEEEEE' colspan=4>&nbsp;<img src='$g4[shop_img_path]/icon3.gif'> <b><a href='./list.php?ca_id=$row[ca_id]'>$tmp_ca[ca_name]</a></b></td>
</tr>";
$save_ca_id = $row[ca_id];
}
echo "
<tr>
<td>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=".($img_width+10).">".get_it_image($row[it_id]."_s", $img_width , $img_height, $row[it_id])."</td>
<td><a href='./item.php?it_id=$row[it_id]' class=item>".it_name_icon($row)."</a></td>
</tr>
</table>
</td>
<td align=center>$row[it_maker]</td>
<td align=right>";
if (!$row[it_gallery])
{
echo "<span class=amount>".display_amount(get_amount($row), $row[it_tel_inq])."</span>";
echo "<br>".display_point($row[it_point]);
}
echo "</td></tr>";
$i++;
}
} else {
echo "<tr><td align=center><span class=point>자료가 한건도 없습니다.</span></td></tr>\n";
}
?>
<tr><td colspan=4 background='<?="$g4[shop_img_path]/line_h.gif"?>' height=1></td></tr>
</table>

View File

@ -1,68 +0,0 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=4 cellspacing=1>
<?
$btn_img = "<img src='$g4[shop_img_path]/btn_cart_in.gif' border=0 alt='장바구니 담기'>";
for ($i=0; $row=sql_fetch_array($result); $i++)
{
// 가로줄
if ($i>0)
echo "<tr><td colspan=5 background='$g4[shop_img_path]/line_h.gif' height=1></td></tr>\n";
$onclick_str = "";
// 옵션이 있는 상품은 선택할 수 없음
if (preg_match("/;|\\r/", trim($row['it_opt1']).trim($row['it_opt2']).trim($row['it_opt3']).trim($row['it_opt4']).trim($row['it_opt5']).trim($row['it_opt6']))) {
$onclick_str = "옵션이 있는 상품이므로 바로 장바구니에 담을 수 없습니다.";
}
$it_amount = get_amount($row);
echo "
<form name='flistskin7_$i' method='post' action='./cartupdate.php'>
<input type='hidden' name='sw_direct' value='0'>
<input type='hidden' name='it_id' value='$row[it_id]'>
<input type='hidden' name='it_name' value='".stripslashes($row[it_name])."'>
<input type='hidden' name='it_amount' value='$it_amount'>
<input type='hidden' name='it_point' value='$row[it_point]'>
<input type='hidden' name='ct_qty' value='1'>
<tr>
<td>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width='".($img_width+20)."' align=center>".get_it_image($row[it_id]."_s", $img_width , $img_height, $row[it_id])."</td>
<td>
<a href='./item.php?it_id=$row[it_id]' class=item>".it_name_icon($row)."</a><br>
".get_text($row['it_basic'])."
</td>
</tr>
</table>
</td>
<td align=center>$row[it_maker]</td>
<td align=right>";
if (!$row['it_gallery']) {
echo "
<span class=amount>".display_amount($it_amount, $row['it_tel_inq'])."</span>
<br>".display_point($row['it_point'])."</td>";
}
echo "<td align=center>";
if (!$row['it_gallery']) {
if ($onclick_str)
echo "<a href=\"javascript:alert('$onclick_str'); location.href='./item.php?it_id=$row[it_id]';\">$btn_img</a>";
else
echo "<a href=\"javascript:document.flistskin7_$i.submit();\">$btn_img</a>";
}
echo "</td></tr></form>";
}
if ($i == 0)
echo "<tr><td colspan=5 align=center><span class=point>자료가 한건도 없습니다.</span></td></tr>\n";
?>
<tr><td colspan=5 background='<?="$g4[shop_img_path]/line_h.gif"?>' height=1></td></tr>
</table>

View File

@ -1,5 +1,5 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<br>
@ -7,7 +7,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<tr>
<td width=50%>총 <span class=point><b><? echo number_format($total_count) ?></b></span>개의 상품이 있습니다.</td>
<td width=50% align=right style='padding-top:3px; padding-bottom:3px;'>
<select id=it_sort name=sort onchange="if (this.value=='') return; document.location = '<? echo "$_SERVER[PHP_SELF]?ca_id=$ca_id&skin=$skin&ev_id=$ev_id&sort=" ?>'+this.value;" class=small>
<select id=it_sort name=sort onchange="if (this.value=='') return; document.location = '<? echo "{$_SERVER['PHP_SELF']}?ca_id=$ca_id&skin=$skin&ev_id=$ev_id&sort=" ?>'+this.value;" class=small>
<option value=''>출력 순서
<option value=''>---------
<option value='it_amount asc'>낮은가격순
@ -21,7 +21,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
</select>
</td>
</tr>
<tr><td colspan="2" background='<? echo "$g4[shop_img_path]/line_h.gif" ?>' height=1></td></tr>
<tr><td colspan="2" background='<?=G4_SHOP_URL?>/img/line_h.gif' height=1></td></tr>
</table>
<script language='JavaScript'>

View File

@ -1,5 +1,5 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 총몇개 = 한줄에 몇개 * 몇줄
$items = $list_mod * $list_row;
@ -8,7 +8,7 @@ $td_width = (int)(100 / $list_mod);
$sql = "select COUNT(*) as cnt $sql_common ";
$row = sql_fetch($sql);
$total_count = $row[cnt];
$total_count = $row['cnt'];
// 전체 페이지 계산
$total_page = ceil($total_count / $items);

View File

@ -7,32 +7,32 @@ $len2 = $ca_id_len + 2;
$len4 = $ca_id_len + 4;
// 차차기 분류의 건수를 얻음
$sql = " select count(*) as cnt from $g4[yc4_category_table]
$sql = " select count(*) as cnt from {$g4['yc4_category_table']}
where ca_id like '$ca_id%'
and length(ca_id) = $len4
and length(ca_id) = $len4
and ca_use = '1' ";
$row = sql_fetch($sql);
$cnt = $row['cnt'];
if (!$cnt)
$str .= "<tr><td width=11 background='$g4[shop_img_path]/ca_bg02.gif'></td><td>";
if (!$cnt)
$str .= "<tr><td width=11 background='".G4_SHOP_URL."/img/ca_bg02.gif'></td><td>";
$sql = " select ca_id, ca_name from $g4[yc4_category_table]
$sql = " select ca_id, ca_name from {$g4['yc4_category_table']}
where ca_id like '$ca_id%'
and length(ca_id) = $len2
and length(ca_id) = $len2
and ca_use = '1'
order by ca_id ";
$result = sql_query($sql);
$str .= "<tr><td width=11 background='$g4[shop_img_path]/ca_bg02.gif'></td>";
$str .= "<tr><td width=11 background='".G4_SHOP_URL."/img/ca_bg02.gif'></td>";
$str .= "<td><table width=100% border=0><tr><td>";
while ($row=sql_fetch_array($result)) {
//$row2 = sql_fetch(" select count(*) as cnt from $g4[yc4_category_table] where ca_id like '$row[ca_id]%' ");
$row2 = sql_fetch(" select count(*) as cnt from $g4[yc4_item_table] where (ca_id like '$row[ca_id]%' or ca_id2 like '$row[ca_id]%' or ca_id3 like '$row[ca_id]%') and it_use = '1' ");
$row2 = sql_fetch(" select count(*) as cnt from {$g4['yc4_item_table']} where (ca_id like '{$row['ca_id']}%' or ca_id2 like '{$row['ca_id']}%' or ca_id3 like '{$row['ca_id']}%') and it_use = '1' ");
$str .= "<a href='./list.php?ca_id=$row[ca_id]'>$row[ca_name] ($row2[cnt])</a> &nbsp; ";
$str .= "<a href='./list.php?ca_id={$row['ca_id']}'>{$row['ca_name']} ({$row2['cnt']})</a> &nbsp; ";
$exists = true;
}
$str .= "</td></tr></table></td><td width=11 background='$g4[shop_img_path]/ca_bg03.gif'></td>";
$str .= "</td></tr></table></td><td width=11 background='".G4_SHOP_URL."/img/ca_bg03.gif'></td>";
if ($exists) {
echo "
@ -42,15 +42,15 @@ if ($exists) {
<colgroup width=''>
<colgroup width=11>
<tr>
<td width=11><img src='$g4[shop_img_path]/ca_box01.gif'></td>
<td background='$g4[shop_img_path]/ca_bg01.gif'></td>
<td width=11><img src='$g4[shop_img_path]/ca_box02.gif'></td>
<td width=11><img src='".G4_SHOP_URL."/img/ca_box01.gif'></td>
<td background='".G4_SHOP_URL."/img/ca_bg01.gif'></td>
<td width=11><img src='".G4_SHOP_URL."/img/ca_box02.gif'></td>
</tr>
$str
<tr>
<td width=11><img src='$g4[shop_img_path]/ca_box03.gif'></td>
<td background='$g4[shop_img_path]/ca_bg04.gif'></td>
<td width=11><img src='$g4[shop_img_path]/ca_box04.gif'></td>
<td width=11><img src='".G4_SHOP_URL."/img/ca_box03.gif'></td>
<td background='".G4_SHOP_URL."/img/ca_bg04.gif'></td>
<td width=11><img src='".G4_SHOP_URL."/img/ca_box04.gif'></td>
</tr>
</table><br>";
}

View File

@ -16,30 +16,30 @@ if (!$exists) {
$len4 = $tmp_ca_id_len + 4;
// 차차기 분류의 건수를 얻음
$sql = " select count(*) as cnt from $g4[yc4_category_table]
$sql = " select count(*) as cnt from {$g4['yc4_category_table']}
where ca_id like '$tmp_ca_id%'
and ca_use = '1'
and length(ca_id) = $len4 ";
$row = sql_fetch($sql);
$cnt = $row['cnt'];
if (!$cnt)
$str .= "<tr><td width=11 background='$g4[shop_img_path]/ca_bg02.gif'></td><td>";
if (!$cnt)
$str .= "<tr><td width=11 background='".G4_SHOP_URL."/img/ca_bg02.gif'></td><td>";
$sql = " select ca_id, ca_name from $g4[yc4_category_table]
$sql = " select ca_id, ca_name from {$g4['yc4_category_table']}
where ca_id like '$tmp_ca_id%'
and ca_use = '1'
and length(ca_id) = $len2 order by ca_id ";
$result = sql_query($sql);
while ($row=sql_fetch_array($result)) {
$style = "";
if ($ca_id == $row[ca_id])
if ($ca_id == $row['ca_id'])
$style = " class='accent' ";
if ($cnt) {
$str .= "<tr><td width=11 background='$g4[shop_img_path]/ca_bg02.gif'></td>";
$str .= "<td><table width=100% border=0><tr><td width=120><b>· <a href='./list.php?ca_id=$row[ca_id]'><span $style>$row[ca_name]</span></a></b></td>";
$sql2 = " select ca_id, ca_name from $g4[yc4_category_table]
where ca_id like '$row[ca_id]%'
$str .= "<tr><td width=11 background='".G4_SHOP_URL."/img/ca_bg02.gif'></td>";
$str .= "<td><table width=100% border=0><tr><td width=120><b>· <a href='./list.php?ca_id={$row['ca_id']}'><span $style>$row[ca_name]</span></a></b></td>";
$sql2 = " select ca_id, ca_name from {$g4['yc4_category_table']}
where ca_id like '{$row['ca_id']}%'
and ca_use = '1'
and length(ca_id) = $len4 order by ca_id ";
$result2 = sql_query($sql2);
@ -47,19 +47,19 @@ if (!$exists) {
while ($row2=sql_fetch_array($result2)) {
if (!$k)
$str .= "<td width=20 align=center>|</td><td class=lh>";
$str .= "<a href='./list.php?ca_id=$row2[ca_id]'>$row2[ca_name]</a> &nbsp; ";
$str .= "<a href='./list.php?ca_id={$row2['ca_id']}'>{$row2['ca_name']}</a> &nbsp; ";
$k++;
}
//if (!$k) $str .= "<td></td><td>";
$str .= "</td></tr></table></td><td width=11 background='$g4[shop_img_path]/ca_bg03.gif'></td>";
$str .= "</td></tr></table></td><td width=11 background='".G4_SHOP_URL."/img/ca_bg03.gif'></td>";
} else {
$str .= "<a href='./list.php?ca_id=$row[ca_id]'><span $style>$row[ca_name]</span></a> &nbsp; ";
$str .= "<a href='./list.php?ca_id={$row['ca_id']}'><span $style>{$row['ca_name']}</span></a> &nbsp; ";
}
$exists = true;
}
if (!$cnt)
$str .= "</td><td width=11 background='$g4[shop_img_path]/ca_bg03.gif'></td></tr>";
if (!$cnt)
$str .= "</td><td width=11 background='".G4_SHOP_URL."/img/ca_bg03.gif'></td></tr>";
}
@ -71,15 +71,15 @@ if ($exists) {
<colgroup width=''>
<colgroup width=11>
<tr>
<td width=11><img src='$g4[shop_img_path]/ca_box01.gif'></td>
<td background='$g4[shop_img_path]/ca_bg01.gif'></td>
<td width=11><img src='$g4[shop_img_path]/ca_box02.gif'></td>
<td width=11><img src='".G4_SHOP_URL."/img/ca_box01.gif'></td>
<td background='".G4_SHOP_URL."/img/ca_bg01.gif'></td>
<td width=11><img src='".G4_SHOP_URL."/img/ca_box02.gif'></td>
</tr>
$str
<tr>
<td width=11><img src='$g4[shop_img_path]/ca_box03.gif'></td>
<td background='$g4[shop_img_path]/ca_bg04.gif'></td>
<td width=11><img src='$g4[shop_img_path]/ca_box04.gif'></td>
<td width=11><img src='".G4_SHOP_URL."/img/ca_box03.gif'></td>
<td background='".G4_SHOP_URL."/img/ca_bg04.gif'></td>
<td width=11><img src='".G4_SHOP_URL."/img/ca_box04.gif'></td>
</tr>
</table><br>";
}

View File

@ -4,23 +4,23 @@ $exists = false;
$depth2_ca_id = substr($ca_id, 0, 2);
$sql = " select ca_id, ca_name from $g4[yc4_category_table]
$sql = " select ca_id, ca_name from {$g4['yc4_category_table']}
where ca_id like '${depth2_ca_id}%'
and length(ca_id) = 4
and ca_use = '1'
order by ca_id ";
$result = sql_query($sql);
$str .= "<tr><td width=11 background='$g4[shop_img_path]/ca_bg02.gif'></td>";
$str .= "<tr><td width=11 background='".G4_SHOP_PATH."/img/ca_bg02.gif'></td>";
$str .= "<td><table width=100% border=0><tr><td>";
while ($row=sql_fetch_array($result)) {
if (preg_match("/^$row[ca_id]/", $ca_id))
if (preg_match("/^{$row['ca_id']}/", $ca_id))
$span = "<span style='font-weight:bold;'>";
else
$span = "<span>";
$str .= "<a href='./list.php?ca_id=$row[ca_id]'>{$span}$row[ca_name]</span></a> &nbsp; ";
$str .= "<a href='./list.php?ca_id={$row['ca_id']}'>{$span}{$row['ca_name']}</span></a> &nbsp; ";
$exists = true;
}
$str .= "</td></tr></table></td><td width=11 background='$g4[shop_img_path]/ca_bg03.gif'></td>";
$str .= "</td></tr></table></td><td width=11 background='".G4_SHOP_URL."/img/ca_bg03.gif'></td>";
if ($exists) {
echo "
@ -30,15 +30,15 @@ if ($exists) {
<colgroup width=''>
<colgroup width=11>
<tr>
<td width=11><img src='$g4[shop_img_path]/ca_box01.gif'></td>
<td background='$g4[shop_img_path]/ca_bg01.gif'></td>
<td width=11><img src='$g4[shop_img_path]/ca_box02.gif'></td>
<td width=11><img src='".G4_SHOP_URL."/img/ca_box01.gif'></td>
<td background='".G4_SHOP_URL."/img/ca_bg01.gif'></td>
<td width=11><img src='".G4_SHOP_URL."/img/ca_box02.gif'></td>
</tr>
$str
<tr>
<td width=11><img src='$g4[shop_img_path]/ca_box03.gif'></td>
<td background='$g4[shop_img_path]/ca_bg04.gif'></td>
<td width=11><img src='$g4[shop_img_path]/ca_box04.gif'></td>
<td width=11><img src='".G4_SHOP_URL."/img/ca_box03.gif'></td>
<td background='".G4_SHOP_URL."/img/ca_bg04.gif'></td>
<td width=11><img src='".G4_SHOP_URL."/img/ca_box04.gif'></td>
</tr>
</table><br>";
}

View File

@ -1,25 +1,25 @@
<?
include_once("./_common.php");
include_once("./_head.php");
include_once('./_common.php');
include_once('./_head.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("상품유형이 아닙니다.");
alert('상품유형이 아닙니다.');
// 한페이지에 출력하는 이미지수 = $list_mod * $list_row
$list_mod = 4; // 한줄에 이미지 몇개씩 출력?
$list_row = 5; // 한 페이지에 몇라인씩 출력?
$list_row = 5; // 한 페이지에 몇라인씩 출력?
$img_width = 100; // 출력이미지 폭
$img_height = 100; // 출력이미지 높이
?>
<img src="<?="$g4[shop_img_path]/top_type{$type}.jpg"?>" border="0"><p>
<img src="<?=G4_SHOP_URL."/img/top_type{$type}.jpg"?>" border="0"><p>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
@ -34,25 +34,25 @@ if ($sort != "")
$sql_list1 = " select * ";
$sql_list2 = " order by $order_by it_order, it_id desc ";
$sql_common = " from $g4[yc4_item_table]
$sql_common = " from {$g4['yc4_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_img_path]/no_item.gif' border=0>";
$error = "<img src='".G4_SHOP_URL."/img/no_item.gif' border=0>";
if (!$skin)
if (!$skin)
$skin = "list.skin.10.php";
$td_width = (int)($mod / 100);
// 리스트 유형별로 출력
$list_file = "$g4[shop_path]/$skin";
$list_file = G4_SHOP_PATH.'/'.$skin;
if (file_exists($list_file)) {
include "$g4[shop_path]/list.sub.php";
include G4_SHOP_PATH."/list.sub.php";
//include "$cart_dir/list.sort.php";
$sql = $sql_list1 . $sql_common . $sql_list2 . " limit $from_record, $items ";
@ -60,8 +60,8 @@ if (file_exists($list_file)) {
include $list_file;
}
else
}
else
{
$i = 0;
$error = "<p>$skin 파일을 찾을 수 없습니다.<p>관리자에게 알려주시면 감사하겠습니다.";
@ -82,7 +82,7 @@ if ($i==0)
<div align=center>
<?
$qstr .= "&type=$type&sort=$sort";
echo get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?$qstr&page=");
echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");
?>
</div><br>
@ -94,7 +94,7 @@ $bar = "";
$sql = " select ca_id from $g4[yc4_item_table]
where it_type{$type} = '1'
and it_use = '1'
group by ca_id
group by ca_id
order by ca_id ";
$result = sql_query($sql);
for($i=0;$row=sql_fetch_array($result);$i++) {
@ -106,5 +106,5 @@ for($i=0;$row=sql_fetch_array($result);$i++) {
?>
<?
include_once("./_tail.php");
include_once('./_tail.php');
?>

View File

@ -1,5 +1,5 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=0 cellspacing=0 border=0>
@ -10,15 +10,15 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
echo "</tr>\n\n<tr>\n";
}
$href = "<a href='$g4[shop_path]/item.php?it_id=$row[it_id]' class=item>";
$href = "<a href='".G4_SHOP_URL."/item.php?it_id={$row['it_id']}' class=item>";
?>
<td width="<?=$td_width?>%" align=center valign=top>
<table width=98% cellpadding=1 cellspacing=0 border=0>
<tr><td height=5></td></tr>
<tr><td align=center><?=$href?><?=get_it_image($row[it_id]."_s", $img_width, $img_height)?></a></td></tr>
<tr><td align=center><?=$href?><?=stripslashes($row[it_name])?></a></td></tr>
<tr><td align=center><?=$href?><?=get_it_image($row['it_id']."_s", $img_width, $img_height)?></a></td></tr>
<tr><td align=center><?=$href?><?=stripslashes($row['it_name'])?></a></td></tr>
<!--시중가격<tr><td align=center><strike><?=display_amount($row[it_cust_amount])?></strike></td></tr>-->
<tr><td align=center><span class=amount><?=display_amount(get_amount($row), $row[it_tel_inq])?></span></td></tr>
<tr><td align=center><span class=amount><?=display_amount(get_amount($row), $row['it_tel_inq'])?></span></td></tr>
</table></td>
<?
/*

View File

@ -1,43 +0,0 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
/*
** maintype1.inc.php 에 이미지 크게 보기 기능만 추가
*/
?>
<script language="JavaScript" src="<?=$g4[path]?>/js/shop.js"></script>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<?
for ($i=0; $row=sql_fetch_array($result); $i++)
{
if ($i > 0 && $i % $list_mod == 0)
echo "</tr>\n\n<tr>\n";
$href = "<a href='$g4[shop_path]/item.php?it_id=$row[it_id]' class=item>";
?>
<td width="<?=$td_width?>%" align=center valign=top>
<table width=98% cellpadding=1 cellspacing=0 border=0>
<tr><td height=5></td></tr>
<tr><td align=center><?=$href?><?=get_it_image($row[it_id]."_s", $img_width, $img_height)?></a></td></tr>
<tr><td align=center><?=$href?><?=stripslashes($row[it_name])?></a></td></tr>
<!--시중가격<tr><td align=center><strike><?=display_amount($row[it_cust_amount])?></strike></td></tr>-->
<tr><td align=center><span class=amount><?=display_amount(get_amount($row), $row[it_tel_inq])?></span></td></tr>
<?
$large_image = get_large_image($row[it_id]."_l1", $row[it_id]);
if ($large_image)
echo "<tr><td align=center>$large_image</td></tr>";
?>
</table></td>
<?
}
// 나머지 td 를 채운다.
if (($cnt = $i%$list_mod) != 0)
for ($k=$cnt; $k<$list_mod; $k++)
echo " <td>&nbsp;</td>\n";
?>
</tr>
</table>

View File

@ -1,57 +0,0 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<?
for ($i=0; $row=sql_fetch_array($result); $i++)
{
if ($i > 0 && $i % $list_mod == 0)
echo "</tr>\n\n<tr>\n";
$href = "<a href='$g4[shop_path]/item.php?it_id=$row[it_id]' class=item>";
// 고객선호도
$star = "";
if ($score = get_star_image($row[it_id]))
$star = "<img src='$g4[shop_img_path]/star{$score}.gif' border=0>";
$sql2 = " select * from $g4[yc4_item_table] where it_id = '$row[it_id]' ";
$row2 = sql_fetch($sql2);
// 특정상품아이콘
$icon = "";
if ($row2[it_type1]) $icon .= " <img src='$g4[shop_img_path]/icon_type1.gif' border=0 align=absmiddle>";
if ($row2[it_type2]) $icon .= " <img src='$g4[shop_img_path]/icon_type2.gif' border=0 align=absmiddle>";
if ($row2[it_type3]) $icon .= " <img src='$g4[shop_img_path]/icon_type3.gif' border=0 align=absmiddle>";
if ($row2[it_type4]) $icon .= " <img src='$g4[shop_img_path]/icon_type4.gif' border=0 align=absmiddle>";
if ($row2[it_type5]) $icon .= " <img src='$g4[shop_img_path]/icon_type5.gif' border=0 align=absmiddle>";
?>
<td width="<?=$td_width?>%" align=center valign=top>
<table width=98% cellpadding=1 cellspacing=0 border=0>
<tr><td height=5></td></tr>
<tr><td align=center><?=$href?><?=get_it_image($row[it_id]."_s", $img_width, $img_height)?></a></td></tr>
<tr><td align=center><?=$href?><?=stripslashes($row[it_name])?></a></td></tr>
<!--시중가격<tr><td align=center><strike><?=display_amount($row[it_cust_amount])?></strike></td></tr>-->
<tr><td align=center><span class=amount><?=display_amount(get_amount($row), $row[it_tel_inq])?></span></td></tr>
<tr><td align=center><?=$star?></td></tr>
<tr><td align=center><?=$row2[it_maker]?></td></tr>
<tr><td align=center><?=$icon?></td></tr>
<tr><td align=center><?=number_format($row2[it_point])?> 점</td></tr>
<?
$large_image = get_large_image($row[it_id]."_l1", $row[it_id]);
if ($large_image)
echo "<tr><td align=center>$large_image</td></tr>";
?>
</table></td>
<?
}
// 나머지 td 를 채운다.
if (($cnt = $i%$list_mod) != 0)
for ($k=$cnt; $k<$list_mod; $k++)
echo " <td>&nbsp;</td>\n";
?>
</tr>
</table>

View File

@ -1,35 +0,0 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<?
for ($i=0; $row=sql_fetch_array($result); $i++)
{
if ($i > 0 && $i % $list_mod == 0)
echo "</tr><tr>";
$href = "<a href='$g4[shop_path]/item.php?it_id=$row[it_id]' class=item>";
?>
<td width="<? echo $td_width ?>%" align=left valign=top>
<table width=98% cellpadding=2 cellspacing=0 border=0>
<tr>
<td rowspan=2 width='' align=center>&nbsp;<?=$href?><?=get_it_image($row[it_id]."_s", $img_width, $img_height)?></a>&nbsp;</td>
<td width=50%><?=$href?><?=stripslashes($row[it_name])?></a></td>
<td width=30% align=right valign=bottom><span class=amount><?=display_amount(get_amount($row), $row[it_tel_inq])?></span>&nbsp;</td>
</tr>
<tr>
<td colspan=2><?=$row[it_basic]?>&nbsp;</td>
</tr>
</table></td>
<?
}
// 나머지 td 를 채운다.
if (($cnt = $i%$list_mod) != 0)
for ($k=$cnt; $k<$list_mod; $k++)
echo "<td>&nbsp;</td>\n";
?>
</tr>
</table>

View File

@ -1,155 +0,0 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// marquee 태그를 사용하지 않고 자바스크립트로 이미지가 여러개씩 롤링되도록 함
// 출력되는 테이블의 높이
$marquee[height] = 170;
// include 될때 마다 다른 아이디를 부여 (여러곳에서 이 페이지를 include 할 경우를 대비함)
$uni = uniqid("");
?>
<script language="javascript">
var roll_height_<?=$uni?> = <?=$marquee[height]?>;
var total_area_<?=$uni?> = 0;
var wait_flag_<?=$uni?> = true;
var bMouseOver_<?=$uni?> = 1;
var roll_speed_<?=$uni?> = 1;
var waitingtime_<?=$uni?> = 3000;
var s_tmp_<?=$uni?> = 0;
var s_amount_<?=$uni?> = <?=$marquee[height]?>;
var roll_text_<?=$uni?> = new Array();
var startPanel_<?=$uni?> = 0;
var n_panel_<?=$uni?> = 0;
var i_<?=$uni?> = 0;
function start_roll_<?=$uni?>()
{
i_<?=$uni?> = 0;
for (i_<?=$uni?> in roll_text_<?=$uni?>)
n_panel_<?=$uni?>++;
n_panel_<?=$uni?> = n_panel_<?=$uni?> -1 ;
startPanel_<?=$uni?> = Math.round(Math.random()*n_panel_<?=$uni?>);
if(startPanel_<?=$uni?> == 0)
{
i_<?=$uni?> = 0;
for (i_<?=$uni?> in roll_text_<?=$uni?>)
insert_area_<?=$uni?>(total_area_<?=$uni?>, total_area_<?=$uni?>++); // area 삽입
}
else if(startPanel_<?=$uni?> == n_panel_<?=$uni?>)
{
insert_area_<?=$uni?>(startPanel_<?=$uni?>, total_area_<?=$uni?>);
total_area_<?=$uni?>++;
for (i_<?=$uni?>=0; i_<?=$uni?><startPanel_<?=$uni?>; i_<?=$uni?>++)
{
insert_area_<?=$uni?>(i_<?=$uni?>, total_area_<?=$uni?>); // area 삽입
total_area_<?=$uni?>++;
}
}
else if((startPanel_<?=$uni?> > 0) || (startPanel_<?=$uni?> < n_panel_<?=$uni?>))
{
insert_area_<?=$uni?>(startPanel_<?=$uni?>, total_area_<?=$uni?>);
total_area_<?=$uni?>++;
for (i_<?=$uni?>=startPanel_<?=$uni?>+1; i_<?=$uni?><=n_panel_<?=$uni?>; i_<?=$uni?>++)
{
insert_area_<?=$uni?>(i_<?=$uni?>, total_area_<?=$uni?>); // area 삽입
total_area_<?=$uni?>++;
}
for (i_<?=$uni?>=0; i_<?=$uni?><startPanel_<?=$uni?>; i_<?=$uni?>++)
{
insert_area_<?=$uni?>(i_<?=$uni?>, total_area_<?=$uni?>); // area 삽입
total_area_<?=$uni?>++;
}
}
if ( navigator.appName == "Microsoft Internet Explorer" )
{
if ( navigator.appVersion.indexOf ( "MSIE 4" ) > -1 )
return ;
}
window.setTimeout("rolling_<?=$uni?>()",waitingtime_<?=$uni?>);
}
function rolling_<?=$uni?>()
{
if (bMouseOver_<?=$uni?> && wait_flag_<?=$uni?>)
{
for (i_<?=$uni?>=0;i_<?=$uni?><total_area_<?=$uni?>;i_<?=$uni?>++){
tmp_<?=$uni?> = document.getElementById('scroll_area_<?=$uni?>'+i_<?=$uni?>).style;
tmp_<?=$uni?>.top = parseInt(tmp_<?=$uni?>.top)-roll_speed_<?=$uni?>;
if (parseInt(tmp_<?=$uni?>.top) <= -roll_height_<?=$uni?>){
tmp_<?=$uni?>.top = roll_height_<?=$uni?>*(total_area_<?=$uni?>-1);
}
if (s_tmp_<?=$uni?>++ > (s_amount_<?=$uni?>-1)*roll_text_<?=$uni?>.length){
wait_flag_<?=$uni?>=false;
window.setTimeout("wait_flag_<?=$uni?>=true;s_tmp_<?=$uni?>=0;",waitingtime_<?=$uni?>);
}
}
}
window.setTimeout("rolling_<?=$uni?>()", 1);
}
function insert_area_<?=$uni?>(idx_<?=$uni?>, n_<?=$uni?>)
{
document.write('<div style="left: 0px; width: 100%; position: absolute; top: '+(roll_height_<?=$uni?>*n_<?=$uni?>)+'px" id="scroll_area_<?=$uni?>'+n_<?=$uni?>+'">\n'+roll_text_<?=$uni?>[idx_<?=$uni?>]+'\n</div>\n');
}
<?
$width = (int)(100 / $list_mod);
for ($i=0; $i<10000; $i++)
{
$roll_text[$i] = "";
$roll_text[$i] .= "<table width='100%' height='$marquee[height]px' cellpadding=1 cellspacing=0 border=0>";
$roll_text[$i] .= "<tr>";
$k=0;
while ($row=sql_fetch_array($result))
{
if (!$row) break;
$href = "<a href='$g4[shop_path]/item.php?it_id=$row[it_id]' class=item>";
$roll_text[$i] .= "<td width='$width%' valign=top>";
$roll_text[$i] .= "<table width='100%' cellpadding=1 cellspacing=0 border=0>";
$roll_text[$i] .= "<tr><td align=center>$href".get_it_image($row[it_id]."_s", $img_width, $img_height)."</a></td></tr>";
$roll_text[$i] .= "<tr><td align=center>$href".addslashes($row[it_name])."</a></td></tr>";
$roll_text[$i] .= "<tr><td align=center><span class=amount>".display_amount(get_amount($row), $row[it_tel_inq])."</span></td></tr>";
$roll_text[$i] .= "</table>";
$roll_text[$i] .= "</td>";
$k++;
if ($k==$list_mod) break;
}
if (($cnt = $k%$list_mod) != 0)
for ($m=$cnt; $m<$list_mod; $m++)
$roll_text[$i] .= "<td>&nbsp;</td>";
$roll_text[$i] .= "</tr>";
$roll_text[$i] .= "</table>";
if ($k > 0)
echo "roll_text_{$uni}[$i] = \"{$roll_text[$i]}\";\n";
if (!$row) break;
}
?>
</script>
<div style="left: 0px; width: 100%; position: relative; top: 0px; height: <?=$marquee[height]?>px; overflow:hidden;" onMouseover="bMouseOver_<?=$uni?>=0" onMouseout="bMouseOver_<?=$uni?>=1" id="scroll_image_<?=$uni?>">
<script>
var no_script_flag_<?=$uni?> = false ;
if ( navigator.appName == "Microsoft Internet Explorer" )
{
if ( navigator.appVersion.indexOf ( "MSIE 4" ) > -1 )
{
document.write ( roll_text_<?=$uni?>[0] ) ;
no_script_flag_<?=$uni?> = true ;
}
}
if ( no_script_flag_<?=$uni?> == false )
start_roll_<?=$uni?>();
</script>
</div>

View File

@ -1,144 +0,0 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// marquee 태그를 사용하지 않고 자바스크립트로 이미지가 여러개씩 위로 롤링되도록 함
// 출력되는 총이미지수는 환경설정의 1라인이미지수 x 총라인수 입니다.
// 출력되는 테이블의 높이
$marquee[height] = 170 * $list_mod;
// include 될때 마다 다른 아이디를 부여 (여러곳에서 이 페이지를 include 할 경우를 대비함)
$uniqinc = uniqid((int)get_microtime());
?>
<script language="javascript">
var roll_height_<?=$uniqinc?> = <?=$marquee[height]?>;
var total_area_<?=$uniqinc?> = 0;
var wait_flag_<?=$uniqinc?> = true;
var bMouseOver_<?=$uniqinc?> = 1;
var roll_speed_<?=$uniqinc?> = 1;
var waitingtime_<?=$uniqinc?> = 3000;
var s_tmp_<?=$uniqinc?> = 0;
var s_amount_<?=$uniqinc?> = <?=$marquee[height]?>;
var roll_text_<?=$uniqinc?> = new Array();
var startPanel_<?=$uniqinc?> = 0;
var n_panel_<?=$uniqinc?> = 0;
var i_<?=$uniqinc?> = 0;
function start_roll_<?=$uniqinc?>()
{
i_<?=$uniqinc?> = 0;
for (i_<?=$uniqinc?> in roll_text_<?=$uniqinc?>)
n_panel_<?=$uniqinc?>++;
n_panel_<?=$uniqinc?> = n_panel_<?=$uniqinc?> -1 ;
startPanel_<?=$uniqinc?> = Math.round(Math.random()*n_panel_<?=$uniqinc?>);
if(startPanel_<?=$uniqinc?> == 0)
{
i_<?=$uniqinc?> = 0;
for (i_<?=$uniqinc?> in roll_text_<?=$uniqinc?>)
insert_area_<?=$uniqinc?>(total_area_<?=$uniqinc?>, total_area_<?=$uniqinc?>++); // area 삽입
}
else if(startPanel_<?=$uniqinc?> == n_panel_<?=$uniqinc?>)
{
insert_area_<?=$uniqinc?>(startPanel_<?=$uniqinc?>, total_area_<?=$uniqinc?>);
total_area_<?=$uniqinc?>++;
for (i_<?=$uniqinc?>=0; i_<?=$uniqinc?><startPanel_<?=$uniqinc?>; i_<?=$uniqinc?>++)
{
insert_area_<?=$uniqinc?>(i_<?=$uniqinc?>, total_area_<?=$uniqinc?>); // area 삽입
total_area_<?=$uniqinc?>++;
}
}
else if((startPanel_<?=$uniqinc?> > 0) || (startPanel_<?=$uniqinc?> < n_panel_<?=$uniqinc?>))
{
insert_area_<?=$uniqinc?>(startPanel_<?=$uniqinc?>, total_area_<?=$uniqinc?>);
total_area_<?=$uniqinc?>++;
for (i_<?=$uniqinc?>=startPanel_<?=$uniqinc?>+1; i_<?=$uniqinc?><=n_panel_<?=$uniqinc?>; i_<?=$uniqinc?>++)
{
insert_area_<?=$uniqinc?>(i_<?=$uniqinc?>, total_area_<?=$uniqinc?>); // area 삽입
total_area_<?=$uniqinc?>++;
}
for (i_<?=$uniqinc?>=0; i_<?=$uniqinc?><startPanel_<?=$uniqinc?>; i_<?=$uniqinc?>++)
{
insert_area_<?=$uniqinc?>(i_<?=$uniqinc?>, total_area_<?=$uniqinc?>); // area 삽입
total_area_<?=$uniqinc?>++;
}
}
if ( navigator.appName == "Microsoft Internet Explorer" )
{
if ( navigator.appVersion.indexOf ( "MSIE 4" ) > -1 )
return ;
}
window.setTimeout("rolling_<?=$uniqinc?>()",waitingtime_<?=$uniqinc?>);
}
function rolling_<?=$uniqinc?>()
{
if (bMouseOver_<?=$uniqinc?> && wait_flag_<?=$uniqinc?>)
{
for (i_<?=$uniqinc?>=0;i_<?=$uniqinc?><total_area_<?=$uniqinc?>;i_<?=$uniqinc?>++){
tmp_<?=$uniqinc?> = document.getElementById('scroll_area_<?=$uniqinc?>'+i_<?=$uniqinc?>).style;
tmp_<?=$uniqinc?>.top = parseInt(tmp_<?=$uniqinc?>.top)-roll_speed_<?=$uniqinc?>;
if (parseInt(tmp_<?=$uniqinc?>.top) <= -roll_height_<?=$uniqinc?>){
tmp_<?=$uniqinc?>.top = roll_height_<?=$uniqinc?>*(total_area_<?=$uniqinc?>-1);
}
if (s_tmp_<?=$uniqinc?>++ > (s_amount_<?=$uniqinc?>-1)*roll_text_<?=$uniqinc?>.length){
wait_flag_<?=$uniqinc?>=false;
window.setTimeout("wait_flag_<?=$uniqinc?>=true;s_tmp_<?=$uniqinc?>=0;",waitingtime_<?=$uniqinc?>);
}
}
}
window.setTimeout("rolling_<?=$uniqinc?>()", 1);
}
function insert_area_<?=$uniqinc?>(idx_<?=$uniqinc?>, n_<?=$uniqinc?>)
{
document.write('<div style="left: 0px; width: 100%; position: absolute; top: '+(roll_height_<?=$uniqinc?>*n_<?=$uniqinc?>)+'px" id="scroll_area_<?=$uniqinc?>'+n_<?=$uniqinc?>+'">\n'+roll_text_<?=$uniqinc?>[idx_<?=$uniqinc?>]+'\n</div>\n');
}
<?
$i = 0;
while (1) {
$str = "";
for ($k=0; $k<$list_mod; $k++) {
$row = sql_fetch_array($result);
if (!$row[it_id]) break;
$href = "<a href='$g4[shop_path]/item.php?it_id=$row[it_id]' class=item>";
$str .= "<table width='100%' cellpadding=1 cellspacing=0 border=0>";
$str .= "<tr><td align=center>$href".get_it_image($row[it_id]."_s", $img_width, $img_height)."</a></td></tr>";
$str .= "<tr><td align=center>$href".addslashes($row[it_name])."</a></td></tr>";
$str .= "<tr><td align=center><span class=amount>".display_amount(get_amount($row), $row[it_tel_inq])."</span></td></tr>";
$str .= "</table>";
}
if ($str) {
$str = "<table width='100%' height='$marquee[height]px' cellpadding=1 cellspacing=0 border=0><tr><td>$str</td></tr></table>";
echo "roll_text_{$uniqinc}[$i] = \"{$str}\";\n";
}
if (!$row[it_id]) break;
$i++;
}
?>
</script>
<div style="left: 0px; width: 100%; position: relative; top: 0px; height: <?=$marquee[height]?>px; overflow:hidden;" onMouseover="bMouseOver_<?=$uniqinc?>=0" onMouseout="bMouseOver_<?=$uniqinc?>=1" id="scroll_image_<?=$uniqinc?>">
<script>
var no_script_flag_<?=$uniqinc?> = false ;
if ( navigator.appName == "Microsoft Internet Explorer" )
{
if ( navigator.appVersion.indexOf ( "MSIE 4" ) > -1 )
{
document.write ( roll_text_<?=$uniqinc?>[0] ) ;
no_script_flag_<?=$uniqinc?> = true ;
}
}
if ( no_script_flag_<?=$uniqinc?> == false )
start_roll_<?=$uniqinc?>();
</script>
</div>

View File

@ -1,148 +0,0 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// marquee 태그를 사용하지 않고 자바스크립트로 이미지가 여러개씩 왼쪽으로 롤링되도록 함
// 출력되는 총이미지수는 환경설정의 1라인이미지수 x 총라인수 입니다.
// 출력되는 테이블의 높이, 폭
$scroll[h] = 170;
$scroll[w] = 175 * $list_mod;
$scroll[td] = (int)($scroll['w'] / $list_mod);
// include 될때 마다 다른 아이디를 부여 (여러곳에서 이 페이지를 include 할 경우를 대비함)
$uni = uniqid("");
?>
<script language="javascript">
var roll_width_<?=$uni?> = <?=$scroll[w]?>;
var total_area_<?=$uni?> = 0;
var wait_flag_<?=$uni?> = true;
var bMouseOver_<?=$uni?> = 1;
var roll_speed_<?=$uni?> = 1;
var waitingtime_<?=$uni?> = 3000;
var s_tmp_<?=$uni?> = 0;
var s_amount_<?=$uni?> = <?=$scroll[w]?>;
var roll_text_<?=$uni?> = new Array();
var startPanel_<?=$uni?> = 0;
var n_panel_<?=$uni?> = 0;
var i_<?=$uni?> = 0;
function start_roll_<?=$uni?>()
{
i_<?=$uni?> = 0;
for (i_<?=$uni?> in roll_text_<?=$uni?>)
n_panel_<?=$uni?>++;
n_panel_<?=$uni?> = n_panel_<?=$uni?> -1 ;
startPanel_<?=$uni?> = Math.round(Math.random()*n_panel_<?=$uni?>);
if(startPanel_<?=$uni?> == 0)
{
i_<?=$uni?> = 0;
for (i_<?=$uni?> in roll_text_<?=$uni?>)
insert_area_<?=$uni?>(total_area_<?=$uni?>, total_area_<?=$uni?>++); // area 삽입
}
else if(startPanel_<?=$uni?> == n_panel_<?=$uni?>)
{
insert_area_<?=$uni?>(startPanel_<?=$uni?>, total_area_<?=$uni?>);
total_area_<?=$uni?>++;
for (i_<?=$uni?>=0; i_<?=$uni?><startPanel_<?=$uni?>; i_<?=$uni?>++)
{
insert_area_<?=$uni?>(i_<?=$uni?>, total_area_<?=$uni?>); // area 삽입
total_area_<?=$uni?>++;
}
}
else if((startPanel_<?=$uni?> > 0) || (startPanel_<?=$uni?> < n_panel_<?=$uni?>))
{
insert_area_<?=$uni?>(startPanel_<?=$uni?>, total_area_<?=$uni?>);
total_area_<?=$uni?>++;
for (i_<?=$uni?>=startPanel_<?=$uni?>+1; i_<?=$uni?><=n_panel_<?=$uni?>; i_<?=$uni?>++)
{
insert_area_<?=$uni?>(i_<?=$uni?>, total_area_<?=$uni?>); // area 삽입
total_area_<?=$uni?>++;
}
for (i_<?=$uni?>=0; i_<?=$uni?><startPanel_<?=$uni?>; i_<?=$uni?>++)
{
insert_area_<?=$uni?>(i_<?=$uni?>, total_area_<?=$uni?>); // area 삽입
total_area_<?=$uni?>++;
}
}
if ( navigator.appName == "Microsoft Internet Explorer" )
{
if ( navigator.appVersion.indexOf ( "MSIE 4" ) > -1 )
return ;
}
window.setTimeout("rolling_<?=$uni?>()",waitingtime_<?=$uni?>);
}
function rolling_<?=$uni?>()
{
if (bMouseOver_<?=$uni?> && wait_flag_<?=$uni?>)
{
for (i_<?=$uni?>=0;i_<?=$uni?><total_area_<?=$uni?>;i_<?=$uni?>++){
tmp_<?=$uni?> = document.getElementById('scroll_area_<?=$uni?>'+i_<?=$uni?>).style;
tmp_<?=$uni?>.left = parseInt(tmp_<?=$uni?>.left)-roll_speed_<?=$uni?>;
if (parseInt(tmp_<?=$uni?>.left) <= -roll_width_<?=$uni?>){
tmp_<?=$uni?>.left = roll_width_<?=$uni?>*(total_area_<?=$uni?>-1);
}
if (s_tmp_<?=$uni?>++ > (s_amount_<?=$uni?>-1)*roll_text_<?=$uni?>.length){
wait_flag_<?=$uni?>=false;
window.setTimeout("wait_flag_<?=$uni?>=true;s_tmp_<?=$uni?>=0;",waitingtime_<?=$uni?>);
}
}
}
window.setTimeout("rolling_<?=$uni?>()", 1);
}
function insert_area_<?=$uni?>(idx_<?=$uni?>, n_<?=$uni?>)
{
document.write('<div style="left: 0px; width: 100%; position: absolute; left: '+(roll_width_<?=$uni?>*n_<?=$uni?>)+'px" id="scroll_area_<?=$uni?>'+n_<?=$uni?>+'">\n'+roll_text_<?=$uni?>[idx_<?=$uni?>]+'\n</div>\n');
}
<?
$i = 0;
while (1)
{
$str = $str2 = "";
for ($k=0; $k<$list_mod; $k++)
{
$row = sql_fetch_array($result);
if (!$row[it_id]) break;
$href = "<a href='$g4[shop_path]/item.php?it_id=$row[it_id]' class=item>";
$str .= "<td width='$scroll[td]' valign=top align=center><table width='98%' cellpadding=0 cellspacing=0 border=0>";
$str .= "<tr><td align=center>$href".get_it_image($row[it_id]."_s", $img_width, $img_height)."</a></td></tr>";
$str .= "<tr><td align=center>$href".addslashes($row[it_name])."</a></td></tr>";
$str .= "<tr><td align=center><span class=amount>".display_amount(get_amount($row), $row[it_tel_inq])."</span></td></tr>";
$str .= "</table></td>";
}
if ($str)
{
$str2 = "<table width='100%' cellpadding=0 cellspacing=0 border=0><tr>$str</tr></table>";
echo "roll_text_{$uni}[$i] = \"{$str2}\";\n";
}
if (!$row[it_id]) break;
$i++;
}
?>
</script>
<div style="left: 0px; width: <?=$scroll[w]?>px; position: relative; top: 15px; height:<?=$scroll[h]?>px; overflow:hidden;" onMouseover="bMouseOver_<?=$uni?>=0" onMouseout="bMouseOver_<?=$uni?>=1" id="scroll_image_<?=$uni?>">
<script language="javascript">
var no_script_flag_<?=$uni?> = false ;
if ( navigator.appName == "Microsoft Internet Explorer" )
{
if ( navigator.appVersion.indexOf ( "MSIE 4" ) > -1 )
{
document.write ( roll_text_<?=$uni?>[0] ) ;
no_script_flag_<?=$uni?> = true ;
}
}
if ( no_script_flag_<?=$uni?> == false )
start_roll_<?=$uni?>();
</script>
</div>

View File

@ -1,102 +0,0 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// marquee 태그를 사용하지 않고 자바스크립트로 이미지가 여러개씩 롤링되도록 함
// include 될때 마다 다른 아이디를 부여 (여러곳에서 이 페이지를 include 할 경우를 대비함)
$uniqinc = uniqid((int)get_microtime());
// 출력되는 테이블의 높이
$marquee["height_$uniqinc"] = 170;
?>
<script language="javascript">
var htmlstr_<?=$uniqinc?> = "";
var mouse_<?=$uniqinc?> = 1;
var wait_<?=$uniqinc?> = 4000;
var iheight_<?=$uniqinc?> = 88;
var ctnt_i_<?=$uniqinc?> = new Array();
var m_OldImg_<?=$uniqinc?> = -1;
var k_<?=$uniqinc?> = 0;
var newi_<?=$uniqinc?> = 0;
var newj_<?=$uniqinc?> = 0;
var befTmp_<?=$uniqinc?>;
<?
$width = (int)(100 / $list_mod);
for ($i=0; $i<10000; $i++)
{
$roll_text[$i] = "";
$roll_text[$i] .= "<table width='100%' height='{$marquee["height_$uniqinc"]}px' cellpadding=1 cellspacing=0 border=0>";
$roll_text[$i] .= "<tr>";
$k=0;
while ($row=sql_fetch_array($result))
{
if (!$row) break;
$href = "<a href='$g4[shop_path]/item.php?it_id=$row[it_id]' class=item>";
$roll_text[$i] .= "<td width='$width%' valign=top align=center>";
$roll_text[$i] .= "<table width='100%' cellpadding=1 cellspacing=0 border=0>";
$roll_text[$i] .= "<tr><td align=center>$href".get_it_image($row[it_id]."_s", $img_width, $img_height)."</a></td></tr>";
$roll_text[$i] .= "<tr><td align=center>$href".addslashes($row[it_name])."</a></td></tr>";
$roll_text[$i] .= "<tr><td align=center><span class=amount>".display_amount(get_amount($row), $row[it_tel_inq])."</span></td></tr>";
$roll_text[$i] .= "</table>";
$roll_text[$i] .= "</td>";
$k++;
if ($k==$list_mod) break;
}
$roll_text[$i] .= "</tr>";
$roll_text[$i] .= "</table>";
if ($k > 0)
echo "ctnt_i_{$uniqinc}[$i] = \"{$roll_text[$i]}\";\n";
if (!$row) break;
}
?>
function ImgBannerStart_<?=$uniqinc?>()
{
for (k_<?=$uniqinc?> = 0; k_<?=$uniqinc?> < ctnt_i_<?=$uniqinc?>.length; k_<?=$uniqinc?>++) {
insertImg_<?=$uniqinc?>(k_<?=$uniqinc?>);
}
newj_<?=$uniqinc?> = Math.round(Math.random()*(ctnt_i_<?=$uniqinc?>.length - 1));
tmp_<?=$uniqinc?> = document.getElementById('img_area_<?=$uniqinc?>'+ newj_<?=$uniqinc?>).style;
tmp_<?=$uniqinc?>.display = '';
befTmp_<?=$uniqinc?> = tmp_<?=$uniqinc?>;
window.setTimeout("scrollimg_<?=$uniqinc?>()", wait_<?=$uniqinc?>);
}
function scrollimg_<?=$uniqinc?>()
{
if (mouse_<?=$uniqinc?>) {
befTmp_<?=$uniqinc?>.display = 'none';
newj_<?=$uniqinc?>++;
newi_<?=$uniqinc?> = newj_<?=$uniqinc?> % ctnt_i_<?=$uniqinc?>.length;
newj_<?=$uniqinc?> = newi_<?=$uniqinc?>;
tmp_<?=$uniqinc?> = document.getElementById('img_area_<?=$uniqinc?>'+ newj_<?=$uniqinc?>).style;
tmp_<?=$uniqinc?>.display = '';
m_OldImg_<?=$uniqinc?> = newj_<?=$uniqinc?>;
befTmp_<?=$uniqinc?> = tmp_<?=$uniqinc?>;
}
window.setTimeout("scrollimg_<?=$uniqinc?>()",wait_<?=$uniqinc?>);
}
function insertImg_<?=$uniqinc?>(n)
{
htmlstr_<?=$uniqinc?> = '<div style="left: 0px; width: 100%; display=none;" onMouseover="mouse_<?=$uniqinc?> = 0" onMouseout="mouse_<?=$uniqinc?> = 1" id="img_area_<?=$uniqinc?>'+n+'">\n';
htmlstr_<?=$uniqinc?> += ctnt_i_<?=$uniqinc?>[n] + '\n' + '</div>\n';
document.write(htmlstr_<?=$uniqinc?>);
}
</script>
<div style="left: 0px; width: 100%; position: relative; top: 0px; height: <?=$marquee["height_$uniqinc"]?>px; overflow:hidden;" onMouseover="mouse_<?=$uniqinc?> = 0" onMouseout="mouse_<?=$uniqinc?> = 1" id="img_div_<?=$uniqinc?>">
<script language="JavaScript">ImgBannerStart_<?=$uniqinc?>();</script>
</div>

View File

@ -1,70 +1,70 @@
<?
include_once("./_common.php");
include_once('./_common.php');
if (!$is_member)
goto_url("$g4[path]/bbs/login.php?url=".urlencode("$g4[shop_path]/mypage.php"));
goto_url(G4_BBS_URL."/login.php?url=".urlencode(G4_SHOP_URL."/mypage.php"));
$g4[title] = "마이페이지";
include_once("./_head.php");
$g4['title'] = '마이페이지';
include_once('./_head.php');
//$str = $g4[title];
//include("./navigation2.inc.php");
?>
<img src="<?=$g4[shop_img_path]?>/top_mypage.gif" border=0><p>
<img src="<?=G4_SHOP_URL?>/img/top_mypage.gif" border=0><p>
<table align=center width=100%>
<tr>
<td><B><?=$member[mb_name]?></B> 님의 마이페이지입니다.</td>
<td><B><?=$member['mb_name']?></B> 님의 마이페이지입니다.</td>
<td align=right>
<? if ($is_admin == 'super') { echo "<a href='$g4[admin_path]/'><img src='$g4[shop_img_path]/btn_admin.gif' border=0 align='absmiddle'></a>"; } ?>
<a href='<?=$g4[bbs_path]?>/member_confirm.php?url=register_form.php'><img src='<?=$g4[shop_img_path]?>/my_modify.gif' border=0 align='absmiddle'></a>
<a href="javascript:member_leave();"><img src='<?=$g4[shop_img_path]?>/my_leave.gif' border=0 align='absmiddle'></a></td>
<? if ($is_admin == 'super') { echo "<a href='".G4_ADMIN_URL."/'><img src='".G4_SHOP_URL."/img/btn_admin.gif' border=0 align='absmiddle'></a>"; } ?>
<a href='<?=G4_BBS_URL?>/member_confirm.php?url=register_form.php'><img src='<?=G4_SHOP_URL?>/img/my_modify.gif' border=0 align='absmiddle'></a>
<a href="javascript:member_leave();"><img src='<?=G4_SHOP_URL?>/img/my_leave.gif' border=0 align='absmiddle'></a></td>
</tr>
</table>
<script language="JavaScript">
function member_leave()
function member_leave()
{
if (confirm("정말 회원에서 탈퇴 하시겠습니까?"))
location.href = "<?=$g4[bbs_path]?>/member_confirm.php?url=member_leave.php";
if (confirm("정말 회원에서 탈퇴 하시겠습니까?"))
location.href = "<?=G4_BBS_URL?>/member_confirm.php?url=member_leave.php";
}
</script>
<table cellpadding=0 cellspacing=0 align=center background='<?=$g4[shop_img_path]?>/my_bg.gif'>
<tr><td colspan=4><img src='<?=$g4[shop_img_path]?>/my_box01.gif'></td></tr>
<table cellpadding=0 cellspacing=0 align=center background='<?=G4_SHOP_URL?>/img/my_bg.gif'>
<tr><td colspan=4><img src='<?=G4_SHOP_URL?>/img/my_box01.gif'></td></tr>
<tr>
<td height=25>&nbsp;&nbsp;&nbsp;보유포인트 </td>
<td>: <a href="javascript:win_point();"><?=number_format($member[mb_point])?>점</a></td>
<td>: <a href="javascript:win_point();"><?=number_format($member['mb_point'])?>점</a></td>
<td>쪽지함</td>
<td>: <a href="javascript:win_memo();">쪽지보기</a></td>
</tr>
<tr>
<td height=25>&nbsp;&nbsp;&nbsp;주소</td>
<td>: <?=sprintf("(%s-%s) %s %s", $member[mb_zip1], $member[mb_zip2], $member[mb_addr1], $member[mb_addr2]);?></td>
<td>: <?=sprintf("(%s-%s) %s %s", $member['mb_zip1'], $member['mb_zip2'], $member['mb_addr1'], $member['mb_addr2']);?></td>
<td>회원권한</td>
<td>: <?=$member[mb_level]?></td>
<td>: <?=$member['mb_level']?></td>
</tr>
<tr>
<td height=25>&nbsp;&nbsp;&nbsp;연락처</td>
<td>: <?=$member[mb_tel]?></td>
<td>: <?=$member['mb_tel']?></td>
<td>최종접속일시</td>
<td>: <?=$member[mb_today_login]?></td>
<td>: <?=$member['mb_today_login']?></td>
</tr>
<tr>
<td height=25>&nbsp;&nbsp;&nbsp;E-mail</td>
<td>: <?=$member[mb_email]?></td>
<td>: <?=$member['mb_email']?></td>
<td>회원가입일시</td>
<td>: <?=$member[mb_datetime]?></td>
<td>: <?=$member['mb_datetime']?></td>
</tr>
<tr><td colspan=4><img src='<?=$g4[shop_img_path]?>/my_box02.gif'></td></tr>
<tr><td colspan=4><img src='<?=G4_SHOP_URL?>/img/my_box02.gif'></td></tr>
</table><BR><BR>
<table width=98% cellpadding=0 cellspacing=0 align=center>
<tr>
<td height=35><img src='<?=$g4[shop_img_path]?>/my_title01.gif'></td>
<td align=right><a href='./orderinquiry.php'><img src='<?=$g4[shop_img_path]?>/icon_more.gif' border=0></a></td>
<td height=35><img src='<?=G4_SHOP_URL?>/img/my_title01.gif'></td>
<td align=right><a href='./orderinquiry.php'><img src='<?=G4_SHOP_URL?>/img/icon_more.gif' border=0></a></td>
</tr>
</table>
@ -73,14 +73,14 @@ function member_leave()
define("_ORDERINQUIRY_", true);
$limit = " limit 0, 5 ";
include "$g4[shop_path]/orderinquiry.sub.php";
include G4_SHOP_PATH.'/orderinquiry.sub.php';
?>
<br>
<table width=98% cellpadding=0 cellspacing=0 align=center>
<tr>
<td height=35 colspan=2><img src='<?=$g4[shop_img_path]?>/my_title02.gif'></td>
<td align=right><a href='./wishlist.php'><img src='<?=$g4[shop_img_path]?>/icon_more.gif' border=0></a></td>
<td height=35 colspan=2><img src='<?=G4_SHOP_URL?>/img/my_title02.gif'></td>
<td align=right><a href='./wishlist.php'><img src='<?=G4_SHOP_URL?>/img/icon_more.gif' border=0></a></td>
</tr>
<tr><td height=2 colspan=3 class=c1></td></tr>
<tr align=center height=25 class=c2>
@ -89,24 +89,24 @@ include "$g4[shop_path]/orderinquiry.sub.php";
</tr>
<tr><td height=1 colspan=3 class=c1></td></tr>
<?
$sql = " select *
from $g4[yc4_wish_table] a,
$g4[yc4_item_table] b
where a.mb_id = '$member[mb_id]'
$sql = " select *
from {$g4['yc4_wish_table']} a,
{$g4['yc4_item_table']} b
where a.mb_id = '{$member['mb_id']}'
and a.it_id = b.it_id
order by a.wi_id desc
order by a.wi_id desc
limit 0, 3 ";
$result = sql_query($sql);
for ($i=0; $row = sql_fetch_array($result); $i++)
for ($i=0; $row = sql_fetch_array($result); $i++)
{
if ($i>0)
echo "<tr><td colspan=3 height=1 background='$g4[shop_img_path]/dot_line.gif'></td></tr>";
echo "<tr><td colspan=3 height=1 background='".G4_SHOP_URL."/img/dot_line.gif'></td></tr>";
$image = get_it_image($row[it_id]."_s", 50, 50, $row[it_id]);
$image = get_it_image($row['it_id']."_s", 50, 50, $row['it_id']);
echo "<tr align=center height=60>";
echo "<td width=100>$image</td>";
echo "<td align=left><a href='./item.php?it_id=$row[it_id]'>".stripslashes($row[it_name])."</a></td>";
echo "<td align=left><a href='./item.php?it_id={$row['it_id']}'>".stripslashes($row['it_name'])."</a></td>";
echo "<td>$row[wi_time]</td>";
echo "</tr>";
}

View File

@ -2,29 +2,29 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if ($ca_id)
{
{
$str = $bar = "";
$len = strlen($ca_id) / 2;
for ($i=1; $i<=$len; $i++)
for ($i=1; $i<=$len; $i++)
{
$code = substr($ca_id,0,$i*2);
$sql = " select ca_name from $g4[yc4_category_table] where ca_id = '$code' ";
$sql = " select ca_name from {$g4['yc4_category_table']} where ca_id = '$code' ";
$row = sql_fetch($sql);
$style = "";
if ($ca_id == $code)
$style = "style='font-weight:bold;'";
$str .= $bar . "<a href='./list.php?ca_id=$code' $style>$row[ca_name]</a>";
$str .= $bar . "<a href='./list.php?ca_id=$code' $style>{$row['ca_name']}</a>";
$bar = " > ";
}
}
else
$str = $g4[title];
$str = $g4['title'];
//if ($it_id) $str .= " > $it[it_name]";
include("./navigation2.inc.php");
include('./navigation2.inc.php');
?>

View File

@ -5,7 +5,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<!-- 네비게이션 -->
<table width='100%' cellpadding=0 cellspacing=0 align=center>
<tr><td height=2></td>
<tr><td height=20 valign=top style='padding-left:2px;'><img src='<?=$g4[shop_img_path]?>/navi_icon.gif' align=absmiddle>
현재위치 : <a href='<?=$g4[path]?>/'>Home</a> > <?=$str?></td></tr>
<tr><td height=20 valign=top style='padding-left:2px;'><img src='<?=G4_SHOP_URL?>/img/navi_icon.gif' align=absmiddle>
현재위치 : <a href='<?=G4_SHOP_URL?>/'>Home</a> > <?=$str?></td></tr>
<tr><td height=1 bgcolor=#EFEFEF></td></tr>
</table>

View File

@ -1,18 +1,18 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$sql = " select * from $g4[yc4_new_win_table]
where '$g4[time_ymdhis]' between nw_begin_time and nw_end_time
$sql = " select * from {$g4['yc4_new_win_table']}
where '".G4_TIME_YMDHIS."' between nw_begin_time and nw_end_time
order by nw_id asc ";
$result = sql_query($sql);
for ($i=0; $row_nw=sql_fetch_array($result); $i++)
for ($i=0; $row_nw=sql_fetch_array($result); $i++)
{
// 이미 체크 되었다면 Continue
if ($_COOKIE["ck_notice_{$row_nw[nw_id]}"])
if ($_COOKIE["ck_notice_{$row_nw['nw_id']}"])
continue;
?>
<script language="JavaScript">
var opt = "scrollbars=yes,width=<?=$row_nw[nw_width]+20?>,height=<?=($row_nw[nw_height]+5)?>,top=<?=$row_nw[nw_top]?>,left=<?=$row_nw[nw_left]?>";
popup_window("<?=$g4[shop_path]?>/newwinpop.php?nw_id=<?=$row_nw[nw_id]?>", "WINDOW_<?=$row_nw[nw_id]?>", opt);
var opt = "scrollbars=yes,width=<?=$row_nw['nw_width']+20?>,height=<?=($row_nw['nw_height']+5)?>,top=<?=$row_nw['nw_top']?>,left=<?=$row_nw['nw_left']?>";
popup_window("<?=G4_SHOP_URL?>/newwinpop.php?nw_id=<?=$row_nw['nw_id']?>", "WINDOW_<?=$row_nw['nw_id']?>", opt);
</script>
<? } ?>

View File

@ -1,38 +1,38 @@
<?
include_once("./_common.php");
include_once('./_common.php');
$sql = " select * from $g4[yc4_new_win_table] where nw_id = '$nw_id' ";
$sql = " select * from {$g4['yc4_new_win_table']} where nw_id = '$nw_id' ";
$nw = sql_fetch($sql);
$g4[title] = $nw[nw_subject];
$g4['title'] = $nw['nw_subject'];
$nw[nw_subject] = get_text($nw[nw_subject]);
$nw[nw_content] = conv_content($nw[nw_content], 1);
$nw['nw_subject'] = get_text($nw['nw_subject']);
$nw['nw_content'] = conv_content($nw['nw_content'], 1);
include_once("$g4[path]/head.sub.php");
include_once(G4_PATH.'/head.sub.php');
?>
<script language="JavaScript">
function div_close_<? echo $nw[nw_id] ?>()
function div_close_<? echo $nw['nw_id'] ?>()
{
if (check_notice_<? echo $nw[nw_id] ?>.checked == true) {
set_cookie("ck_notice_<? echo $nw[nw_id] ?>", "1" , <? echo $nw[nw_disable_hours] ?>);
if (check_notice_<? echo $nw['nw_id'] ?>.checked == true) {
set_cookie("ck_notice_<? echo $nw[nw_id] ?>", "1" , <? echo $nw['nw_disable_hours'] ?>);
}
window.close();
}
</script>
<div id="div_notice_<? echo $nw[nw_id] ?>">
<table width="<? echo $nw[nw_width] ?>" height="<? echo $nw[nw_height] ?>" cellpadding="0" cellspacing="0">
<tr>
<td valign=top><?=conv_content($nw[nw_content], $nw[nw_content_html]);?></td>
<div id="div_notice_<? echo $nw['nw_id'] ?>">
<table width="<? echo $nw['nw_width'] ?>" height="<? echo $nw['nw_height'] ?>" cellpadding="0" cellspacing="0">
<tr>
<td valign=top><?=conv_content($nw['nw_content'], $nw['nw_content_html']);?></td>
</tr>
<tr>
<td height=30 align=center><input type=checkbox id='check_notice_<?=$nw[nw_id]?>' name='check_notice_<?=$nw[nw_id]?>' value='1' onclick="div_close_<? echo $nw[nw_id] ?>();"><font color="<? echo $nw[nw_font_color] ?>">&nbsp;<label for='check_notice_<?=$nw[nw_id]?>'>오늘 하루 이창을 열지 않습니다.</label><!-- <? echo $nw[nw_disable_hours] ?> 시간동안 이창을 다시 띄우지 않겠습니다. --></font></td>
</tr>
<td height=30 align=center><input type=checkbox id='check_notice_<?=$nw['nw_id']?>' name='check_notice_<?=$nw['nw_id']?>' value='1' onclick="div_close_<? echo $nw['nw_id'] ?>();"><font color="<? echo $nw['nw_font_color'] ?>">&nbsp;<label for='check_notice_<?=$nw['nw_id']?>'>오늘 하루 이창을 열지 않습니다.</label><!-- <? echo $nw[nw_disable_hours] ?> 시간동안 이창을 다시 띄우지 않겠습니다. --></font></td>
</tr>
</table>
</div>
<?
include_once("$g4[path]/tail.sub.php");
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
// 장바구니가 비어있는가?
$tmp_on_uid = get_session('ss_temp_on_uid');
@ -8,38 +8,38 @@ if (get_cart_count($tmp_on_uid) == 0)// 장바구니에 담기
set_session("ss_on_uid_inquiry", $tmp_on_uid);
$sql = " select * from $g4[yc4_order_table] where on_uid = '$tmp_on_uid' ";
$sql = " select * from {$g4['yc4_order_table']} where on_uid = '$tmp_on_uid' ";
$od = sql_fetch($sql);
//print_r2($od);
$g4[title] = "주문 및 결제완료";
$g4['title'] = '주문 및 결제완료';
include_once("./_head.php");
include_once('./_head.php');
// 상품명만들기
$sql = " select a.it_id, b.it_name
from $g4[yc4_cart_table] a, $g4[yc4_item_table] b
where a.it_id = b.it_id
and a.on_uid = '$tmp_on_uid'
$sql = " select a.it_id, b.it_name
from {$g4['yc4_cart_table']} a, {$g4['yc4_item_table']} b
where a.it_id = b.it_id
and a.on_uid = '$tmp_on_uid'
order by ct_id
limit 1 ";
$row = sql_fetch($sql);
?>
<img src="<?=$g4[shop_img_path]?>/top_orderreceipt.gif" border=0><p>
<img src="<?=G4_SHOP_URL?>/img/top_orderreceipt.gif" border=0><p>
<?
$s_page = '';
$s_on_uid = $tmp_on_uid;
$od_id = $od[od_id];
include_once("./cartsub.inc.php");
$od_id = $od['od_id'];
include_once('./cartsub.inc.php');
?>
<br>
<table width=100% align=center cellpadding=0 cellspacing=10 border=0>
<tr>
<td><img src='<?=$g4[shop_img_path]?>/my_icon.gif' align=absmiddle> <B>주문번호 : <FONT COLOR="#D60B69"><?=$od[od_id]?></FONT></B></td>
<td><img src='<?=G4_SHOP_URL?>/img/my_icon.gif' align=absmiddle> <B>주문번호 : <FONT COLOR="#D60B69"><?=$od['od_id']?></FONT></B></td>
</tr>
</table>
@ -48,36 +48,36 @@ include_once("./cartsub.inc.php");
<colgroup width=140>
<colgroup width=''>
<tr>
<td bgcolor=#F3F2FF align=center><img src='<?=$g4[shop_img_path]?>/t_data01.gif'></td>
<td bgcolor=#F3F2FF align=center><img src='<?=G4_SHOP_URL?>/img/t_data01.gif'></td>
<td bgcolor=#FAFAFA style='padding-left:10px'>
<table cellpadding=3>
<colgroup width=120>
<colgroup width=''>
<tr height=25>
<td>이름</td>
<td><? echo $od[od_name] ?></td>
<td><? echo $od['od_name'] ?></td>
</tr>
<tr height=25>
<td>전화번호</td>
<td><? echo $od[od_tel] ?></td>
<td><? echo $od['od_tel'] ?></td>
</tr>
<tr height=25>
<td>핸드폰</td>
<td><? echo $od[od_hp] ?></td>
<td><? echo $od['od_hp'] ?></td>
</tr>
<tr height=25>
<td>주소</td>
<td><? echo sprintf("(%s-%s) %s %s", $od[od_zip1], $od[od_zip2], $od[od_addr1], $od[od_addr2]); ?></td>
<td><? echo sprintf("(%s-%s) %s %s", $od['od_zip1'], $od['od_zip2'], $od['od_addr1'], $od['od_addr2']); ?></td>
</tr>
<tr height=25>
<td>E-mail</td>
<td><? echo $od[od_email] ?></td>
<td><? echo $od['od_email'] ?></td>
</tr>
<? if ($default[de_hope_date_use]) { // 희망배송일 사용한다면 ?>
<? if ($default['de_hope_date_use']) { // 희망배송일 사용한다면 ?>
<tr height=25>
<td>희망배송일</td>
<td><?=$od[od_hope_date]?> (<?=get_yoil($od[od_hope_date])?>)</td>
<td><?=$od['od_hope_date']?> (<?=get_yoil($od['od_hope_date'])?>)</td>
</tr>
<? } ?>
</table>
@ -91,30 +91,30 @@ include_once("./cartsub.inc.php");
<colgroup width=140>
<colgroup width=''>
<tr>
<td bgcolor=#F3F2FF align=center><img src='<?=$g4[shop_img_path]?>/t_data03.gif'></td>
<td bgcolor=#F3F2FF align=center><img src='<?=G4_SHOP_URL?>/img/t_data03.gif'></td>
<td bgcolor=#FAFAFA style='padding-left:10px'>
<table cellpadding=3>
<colgroup width=120>
<colgroup width=''>
<tr height=25>
<td>이름</td>
<td><? echo $od[od_b_name]; ?></td>
<td><? echo $od['od_b_name']; ?></td>
</tr>
<tr height=25>
<td>전화번호</td>
<td><? echo $od[od_b_tel] ?></td>
<td><? echo $od['od_b_tel'] ?></td>
</tr>
<tr height=25>
<td>핸드폰</td>
<td><? echo $od[od_b_hp] ?>&nbsp;</td>
<td><? echo $od['od_b_hp'] ?>&nbsp;</td>
</tr>
<tr height=25>
<td>주소</td>
<td><? echo sprintf("(%s-%s) %s %s", $od[od_b_zip1], $od[od_b_zip2], $od[od_b_addr1], $od[od_b_addr2]); ?></td>
<td><? echo sprintf("(%s-%s) %s %s", $od['od_b_zip1'], $od['od_b_zip2'], $od['od_b_addr1'], $od['od_b_addr2']); ?></td>
</tr>
<tr height=25>
<td>전하실말씀</td>
<td><? echo nl2br(htmlspecialchars2($od[od_memo])); ?>&nbsp;</td>
<td><? echo nl2br(htmlspecialchars2($od['od_memo'])); ?>&nbsp;</td>
</tr>
</table>
</td>
@ -126,47 +126,47 @@ include_once("./cartsub.inc.php");
<colgroup width=140>
<colgroup width=''>
<tr>
<td bgcolor=#FFEFFD align=center height=50><img src='<?=$g4[shop_img_path]?>/t_data04.gif'></td>
<td bgcolor=#FFEFFD align=center height=50><img src='<?=G4_SHOP_URL?>/img/t_data04.gif'></td>
<td bgcolor=#FAFAFA style='padding-left:10px'>
<table cellpadding=3>
<colgroup width=120>
<colgroup width=''>
<? if ($od[od_temp_point] > 0) { ?>
<? if ($od['od_temp_point'] > 0) { ?>
<tr height=25>
<td>포인트사용</td>
<td><? echo display_point($od[od_temp_point]) ?></td>
<td><? echo display_point($od['od_temp_point']) ?></td>
</tr>
<? } ?>
<? if ($od['od_temp_bank'] > 0) { ?>
<tr height=25>
<td><?=$od[od_settle_case]?></td>
<td><? echo display_amount($od[od_temp_bank]) ?> (결제하실 금액)</td>
<td><?=$od['od_settle_case']?></td>
<td><? echo display_amount($od['od_temp_bank']) ?> (결제하실 금액)</td>
</tr>
<? if ($od[od_settle_case] == '무통장') { ?>
<? if ($od['od_settle_case'] == '무통장') { ?>
<tr height=25>
<td>계좌번호</td>
<td><? echo $od[od_bank_account]; ?></td>
<td><? echo $od['od_bank_account']; ?></td>
</tr>
<? } ?>
<tr height=25>
<td>입금자 이름</td>
<td><? echo $od[od_deposit_name]; ?></td>
<td><? echo $od['od_deposit_name']; ?></td>
</tr>
<? } ?>
<? if ($od[od_temp_card] > 0) { ?>
<? if ($od['od_temp_card'] > 0) { ?>
<tr height=25>
<td>신용카드</td>
<td><? echo display_amount($od[od_temp_card]) ?> (결제하실 금액)</td>
<td><? echo display_amount($od['od_temp_card']) ?> (결제하실 금액)</td>
</tr>
<? } ?>
<? if ($od[od_temp_hp] > 0) { ?>
<? if ($od['od_temp_hp'] > 0) { ?>
<tr height=25>
<td>휴대폰결제</td>
<td><? echo display_amount($od[od_temp_hp]) ?> (결제하실 금액)</td>
<td><? echo display_amount($od['od_temp_hp']) ?> (결제하실 금액)</td>
</tr>
<? } ?>
@ -175,9 +175,9 @@ include_once("./cartsub.inc.php");
</tr>
</table>
<?
<?
// 파일이 존재한다면 ...
if (file_exists("./settle_{$default[de_card_pg]}.inc.php"))
if (file_exists("./settle_{$default['de_card_pg']}.inc.php"))
{
$settle_case = $od['od_settle_case'];
if ($settle_case == '')
@ -186,9 +186,9 @@ if (file_exists("./settle_{$default[de_card_pg]}.inc.php"))
}
else if ($settle_case == '무통장')
{
echo "<p align=center><a href='./orderinquiryview.php?od_id=$od[od_id]&on_uid=$od[on_uid]'><img src='{$g4[shop_img_path]}/btn_order_end.gif' border=0></a>";
echo "<p align=center><a href='./orderinquiryview.php?od_id={$od['od_id']}&on_uid={$od['on_uid']}'><img src='".G4_SHOP_URL."/img/btn_order_end.gif' border=0></a>";
}
else
else
{
if ($settle_case == '신용카드')
$settle_amount = $od['od_temp_card'];
@ -197,28 +197,28 @@ if (file_exists("./settle_{$default[de_card_pg]}.inc.php"))
else
$settle_amount = $od['od_temp_bank'];
include "./settle_{$default[de_card_pg]}.inc.php";
include "./settle_{$default['de_card_pg']}.inc.php";
//echo "<p align=center><input type='image' src='$g4[shop_img_path]/btn_settle.gif' border=0 onclick='OpenWindow();'>";
echo "<p align=left>&nbsp; &middot; 결제가 제대로 되지 않은 경우 [<a href='./orderinquiryview.php?od_id=$od[od_id]&on_uid=$od[on_uid]'><u>주문상세조회 페이지</u></a>] 에서 다시 결제하실 수 있습니다.</p>";
echo "<p align=left>&nbsp; &middot; 결제가 제대로 되지 않은 경우 [<a href='./orderinquiryview.php?od_id={$od['od_id']}&on_uid={$od['on_uid']}'><u>주문상세조회 페이지</u></a>] 에서 다시 결제하실 수 있습니다.</p>";
}
}
else
{
if ($od[od_temp_card]) {
include "./ordercard{$default[de_card_pg]}.inc.php";
echo "<p align=center><input type='image' src='$g4[shop_img_path]/btn_card.gif' border=0 onclick='OpenWindow();'></p>";
echo "<p align=left>&nbsp; &middot; 결제가 제대로 되지 않은 경우 <a href='./orderinquiryview.php?od_id=$od[od_id]&on_uid=$od[on_uid]'><u>주문상세조회 페이지</u></a>에서 다시 결제하실 수 있습니다.</p>";
} else if ($od[od_temp_bank] && $od[od_bank_account] == "계좌이체") {
include "./orderiche{$default[de_card_pg]}.inc.php";
echo "<p align=center><input type='image' src='$g4[shop_img_path]/btn_iche.gif' border=0 onclick='OpenWindow();'></p>";
echo "<p align=left>&nbsp; &middot; 결제가 제대로 되지 않은 경우 [<a href='./orderinquiryview.php?od_id=$od[od_id]&on_uid=$od[on_uid]'><u>주문상세조회 페이지</u></a>] 에서 다시 결제하실 수 있습니다.</p>";
if ($od['od_temp_card']) {
include "./ordercard{$default['de_card_pg']}.inc.php";
echo "<p align=center><input type='image' src='".G4_SHOP_URL."/img/btn_card.gif' border=0 onclick='OpenWindow();'></p>";
echo "<p align=left>&nbsp; &middot; 결제가 제대로 되지 않은 경우 <a href='./orderinquiryview.php?od_id={$od['od_id']}&on_uid={$od['on_uid']}'><u>주문상세조회 페이지</u></a>에서 다시 결제하실 수 있습니다.</p>";
} else if ($od['od_temp_bank'] && $od['od_bank_account'] == "계좌이체") {
include "./orderiche{$default['de_card_pg']}.inc.php";
echo "<p align=center><input type='image' src='".G4_SHOP_URL."/img/btn_iche.gif' border=0 onclick='OpenWindow();'></p>";
echo "<p align=left>&nbsp; &middot; 결제가 제대로 되지 않은 경우 [<a href='./orderinquiryview.php?od_id={$od['od_id']}&on_uid={$od['on_uid']}'><u>주문상세조회 페이지</u></a>] 에서 다시 결제하실 수 있습니다.</p>";
} else {
echo "<p align=center><a href='{$g4[path]}'><img src='{$g4[shop_img_path]}/btn_order_end.gif' border=0></a>";
echo "<p align=center><a href='".G4_SHOP_URL."'><img src='".G4_SHOP_URL."/img/btn_order_end.gif' border=0></a>";
}
}
?>
<br><br>
<?
include_once("./_tail.php");
include_once('./_tail.php');
?>

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
set_session("ss_direct", $sw_direct);
// 장바구니가 비어있는가?
@ -10,23 +10,23 @@ else {
$tmp_on_uid = get_session("ss_on_uid");
}
if (get_cart_count($tmp_on_uid) == 0)
if (get_cart_count($tmp_on_uid) == 0)
alert("장바구니가 비어 있습니다.", "./cart.php");
// 포인트 결제 대기 필드 추가
//sql_query(" ALTER TABLE `$g4[yc4_order_table]` ADD `od_temp_point` INT NOT NULL AFTER `od_temp_card` ", false);
$g4[title] = "주문서 작성";
$g4['title'] = '주문서 작성';
include_once("./_head.php");
include_once('./_head.php');
?>
<img src="<?=$g4[shop_img_path]?>/top_orderform.gif" border="0"><p>
<img src="<?=G4_SHOP_URL?>/img/top_orderform.gif" border="0"><p>
<?
$s_page = 'orderform.php';
$s_on_uid = $tmp_on_uid;
include_once("./cartsub.inc.php");
include_once('./cartsub.inc.php');
?>
<form name=forderform method=post action="#" onsubmit="return forderform_check(this);" autocomplete=off>
@ -38,14 +38,14 @@ include_once("./cartsub.inc.php");
<colgroup width=140>
<colgroup width=''>
<tr>
<td bgcolor=#F3F2FF align=center><img src='<?=$g4[shop_img_path]?>/t_data01.gif'></td>
<td bgcolor=#F3F2FF align=center><img src='<?=G4_SHOP_URL?>/img/t_data01.gif'></td>
<td bgcolor=#FAFAFA style='padding-left:10px'>
<table cellpadding=3>
<colgroup width=100>
<colgroup width=''>
<tr>
<td>이름</td>
<td><input type=text id=od_name name=od_name value='<?=$member[mb_name]?>' maxlength=20 class=ed></td>
<td><input type=text id=od_name name=od_name value='<?=$member['mb_name']?>' maxlength=20 class=ed></td>
</tr>
<? if (!$is_member) { // 비회원이면 ?>
@ -58,41 +58,41 @@ include_once("./cartsub.inc.php");
<tr>
<td>전화번호</td>
<td><input type=text name=od_tel value='<?=$member[mb_tel]?>' maxlength=20 class=ed></td>
<td><input type=text name=od_tel value='<?=$member['mb_tel']?>' maxlength=20 class=ed></td>
</tr>
<tr>
<td>핸드폰</td>
<td><input type=text name=od_hp value='<?=$member[mb_hp]?>' maxlength=20 class=ed></td>
<td><input type=text name=od_hp value='<?=$member['mb_hp']?>' maxlength=20 class=ed></td>
</tr>
<tr>
<td rowspan=2>주 소</td>
<td>
<input type=text name=od_zip1 size=3 maxlength=3 value='<?=$member[mb_zip1]?>' class=ed readonly>
<input type=text name=od_zip1 size=3 maxlength=3 value='<?=$member['mb_zip1']?>' class=ed readonly>
-
<input type=text name=od_zip2 size=3 maxlength=3 value='<?=$member[mb_zip2]?>' class=ed readonly>
<a href="javascript:;" onclick="win_zip('forderform', 'od_zip1', 'od_zip2', 'od_addr1', 'od_addr2');"><img
src="<?=$g4[shop_img_path]?>/btn_zip_find.gif" border="0" align=absmiddle></a>
<input type=text name=od_zip2 size=3 maxlength=3 value='<?=$member['mb_zip2']?>' class=ed readonly>
<a href="javascript:;" onclick="win_zip('forderform', 'od_zip1', 'od_zip2', 'od_addr1', 'od_addr2');"><img
src="<?=G4_SHOP_URL?>/img/btn_zip_find.gif" border="0" align=absmiddle></a>
</td>
</tr>
<tr>
<td>
<input type=text name=od_addr1 size=35 maxlength=50 value='<?=$member[mb_addr1]?>' class=ed readonly>
<input type=text name=od_addr2 size=20 maxlength=50 value='<?=$member[mb_addr2]?>' class=ed> (상세주소)
<input type=text name=od_addr1 size=35 maxlength=50 value='<?=$member['mb_addr1']?>' class=ed readonly>
<input type=text name=od_addr2 size=20 maxlength=50 value='<?=$member['mb_addr2']?>' class=ed> (상세주소)
</td>
</tr>
<tr>
<td>E-mail</td>
<td><input type=text name=od_email size=35 maxlength=100 value='<?=$member[mb_email]?>' class=ed></td>
<td><input type=text name=od_email size=35 maxlength=100 value='<?=$member['mb_email']?>' class=ed></td>
</tr>
<? if ($default[de_hope_date_use]) { // 배송희망일 사용 ?>
<? if ($default['de_hope_date_use']) { // 배송희망일 사용 ?>
<tr>
<td>희망배송일</td>
<td><select name=od_hope_date>
<option value=''>선택하십시오.
<?
<?
for ($i=0; $i<7; $i++) {
$sdate = date("Y-m-d", time()+86400*($default[de_hope_date_after]+$i));
$sdate = date("Y-m-d", time()+86400*($default['de_hope_date_after']+$i));
echo "<option value='$sdate'>$sdate (".get_yoil($sdate).")\n";
}
?>
@ -109,14 +109,14 @@ include_once("./cartsub.inc.php");
<colgroup width=140>
<colgroup width=''>
<tr>
<td bgcolor=#F3F2FF align=center><img src='<?=$g4[shop_img_path]?>/t_data03.gif'></td>
<td bgcolor=#F3F2FF align=center><img src='<?=G4_SHOP_URL?>/img/t_data03.gif'></td>
<td bgcolor=#FAFAFA style='padding-left:10px'>
<table cellpadding=3>
<colgroup width=100>
<colgroup width=''>
<tr height=30>
<td colspan=2>
<input type=checkbox id=same name=same onclick="javascript:gumae2baesong(document.forderform);">
<input type=checkbox id=same name=same onclick="javascript:gumae2baesong(document.forderform);">
<label for='same'><b>주문하시는 분과 받으시는 분의 정보가 동일한 경우 체크하세요.</b></label></td></tr>
<tr>
<tr>
@ -139,8 +139,8 @@ include_once("./cartsub.inc.php");
<input type=text name=od_b_zip1 size=3 maxlength=3 class=ed readonly>
-
<input type=text name=od_b_zip2 size=3 maxlength=3 class=ed readonly>
<a href="javascript:;" onclick="win_zip('forderform', 'od_b_zip1', 'od_b_zip2', 'od_b_addr1', 'od_b_addr2');"><img
src="<?=$g4[shop_img_path]?>/btn_zip_find.gif" border="0" align=absmiddle></a>
<a href="javascript:;" onclick="win_zip('forderform', 'od_b_zip1', 'od_b_zip2', 'od_b_addr1', 'od_b_addr2');"><img
src="<?=G4_SHOP_URL?>/img/btn_zip_find.gif" border="0" align=absmiddle></a>
</a>
</td>
</tr>
@ -164,7 +164,7 @@ include_once("./cartsub.inc.php");
<colgroup width=140>
<colgroup width=''>
<tr>
<td bgcolor=#FFEFFD align=center><img src='<?=$g4[shop_img_path]?>/t_data04.gif'></td>
<td bgcolor=#FFEFFD align=center><img src='<?=G4_SHOP_URL?>/img/t_data04.gif'></td>
<td bgcolor=#FAFAFA style='padding-left:10px'>
<table cellpadding=3>
<tr>
@ -174,40 +174,40 @@ include_once("./cartsub.inc.php");
$checked = "";
$escrow_title = "";
if ($default[de_escrow_use]) {
if ($default['de_escrow_use']) {
$escrow_title = "에스크로 ";
}
// 무통장입금 사용
if ($default[de_bank_use]) {
if ($default['de_bank_use']) {
$multi_settle++;
echo "<input type='radio' id=od_settle_bank name='od_settle_case' value='무통장' $checked><label for='od_settle_bank'>무통장입금</label> &nbsp;&nbsp;&nbsp;";
$checked = "";
}
// 가상계좌 사용
if ($default[de_vbank_use]) {
if ($default['de_vbank_use']) {
$multi_settle++;
echo "<input type='radio' id=od_settle_vbank name=od_settle_case value='가상계좌' $checked><label for='od_settle_vbank'>{$escrow_title} 가상계좌</label> &nbsp;&nbsp;&nbsp;";
$checked = "";
}
// 계좌이체 사용
if ($default[de_iche_use]) {
if ($default['de_iche_use']) {
$multi_settle++;
echo "<input type='radio' id=od_settle_iche name=od_settle_case value='계좌이체' $checked><label for='od_settle_iche'>{$escrow_title} 계좌이체</label> &nbsp;&nbsp;&nbsp;";
$checked = "";
}
// 휴대폰 사용
if ($default[de_hp_use]) {
if ($default['de_hp_use']) {
$multi_settle++;
echo "<input type='radio' id=od_settle_hp name=od_settle_case value='휴대폰' $checked><label for='od_settle_hp'>휴대폰</label> &nbsp;&nbsp;&nbsp;";
$checked = "";
}
// 신용카드 사용
if ($default[de_card_use]) {
if ($default['de_card_use']) {
$multi_settle++;
echo "<input type='radio' id=od_settle_card name=od_settle_case value='신용카드' $checked><label for='od_settle_card'>신용카드</label> &nbsp;&nbsp;&nbsp;";
$checked = "";
@ -215,20 +215,20 @@ include_once("./cartsub.inc.php");
// 회원이면서 포인트사용이면
$temp_point = 0;
if ($is_member && $config[cf_use_point])
if ($is_member && $config['cf_use_point'])
{
// 포인트 결제 사용 포인트보다 회원의 포인트가 크다면
if ($member[mb_point] >= $default[de_point_settle])
if ($member['mb_point'] >= $default['de_point_settle'])
{
$temp_point = $tot_amount * ($default[de_point_per] / 100); // 포인트 결제 % 적용
$temp_point = $tot_amount * ($default['de_point_per'] / 100); // 포인트 결제 % 적용
$temp_point = (int)((int)($temp_point / 100) * 100); // 100점 단위
$member_point = (int)((int)($member[mb_point] / 100) * 100); // 100점 단위
if ($temp_point > $member_point)
$member_point = (int)((int)($member['mb_point'] / 100) * 100); // 100점 단위
if ($temp_point > $member_point)
$temp_point = $member_point;
echo "<div style='margin-top:20px;'>결제포인트 : <input type=text id=od_temp_point name=od_temp_point value='0' size=10 class=ed>점 (100점 단위로 입력하세요.)</div>";
echo "<div style='margin-top:10px;'>회원님의 보유포인트(".display_point($member[mb_point]).")중 <strong>".display_point($temp_point)."</strong>(주문금액 {$default[de_point_per]}%) 내에서 결제가 가능합니다.</div>";
echo "<div style='margin-top:10px;'>회원님의 보유포인트(".display_point($member['mb_point']).")중 <strong>".display_point($temp_point)."</strong>(주문금액 {$default['de_point_per']}%) 내에서 결제가 가능합니다.</div>";
$multi_settle++;
}
}
@ -236,7 +236,7 @@ include_once("./cartsub.inc.php");
if ($multi_settle == 0)
echo "<br><span class=point>결제할 방법이 없습니다.<br>운영자에게 알려주시면 감사하겠습니다.</span>";
if (!$default[de_card_point])
if (!$default['de_card_point'])
echo "<br><br>· '무통장입금' 이외의 결제 수단으로 결제하시는 경우 포인트를 적립해드리지 않습니다.";
?>
</td>
@ -244,14 +244,14 @@ include_once("./cartsub.inc.php");
</table>
<?
if ($default[de_bank_use]) {
if ($default['de_bank_use']) {
// 은행계좌를 배열로 만든후
$str = explode("\n", trim($default[de_bank_account]));
$str = explode("\n", trim($default['de_bank_account']));
if (count($str) <= 1)
{
$bank_account = "<input type=hidden name='od_bank_account' value='$str[0]'>$str[0]\n";
}
else
else
{
$bank_account = "\n<select name=od_bank_account>\n";
$bank_account .= "<option value=''>--------------- 선택하십시오 ---------------\n";
@ -283,13 +283,13 @@ include_once("./cartsub.inc.php");
</table>
<p align=center>
<input type="image" src="<?=$g4[shop_img_path]?>/btn_next2.gif" border=0 alt="다음">&nbsp;
<a href='javascript:history.go(-1);'><img src="<?=$g4[shop_img_path]?>/btn_back1.gif" alt="뒤로" border=0></a>
<input type="image" src="<?=G4_SHOP_URL?>/img/btn_next2.gif" border=0 alt="다음">&nbsp;
<a href='javascript:history.go(-1);'><img src="<?=G4_SHOP_URL?>/img/btn_back1.gif" alt="뒤로" border=0></a>
</form>
<!-- <? if ($default[de_card_use] || $default[de_iche_use]) { echo "결제대행사 : $default[de_card_pg]"; } ?> -->
<? if ($default[de_escrow_use]) { ?>
<? if ($default['de_escrow_use']) { ?>
<script type="text/javascript">
function escrow_foot_check()
{
@ -308,18 +308,18 @@ function escrow_foot_check()
<input type="hidden" name="site_cd" value="SR<?=$default['de_kcp_mid']?>">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td align='center'><img src="<?=$g4[shop_path]?>/img/marks_escrow/escrow_foot.gif" width="290" height="92" border="0" usemap="#Map"></td>
<td align='center'><img src="<?=G4_SHOP_URL?>/img/marks_escrow/escrow_foot.gif" width="290" height="92" border="0" usemap="#Map"></td>
</tr>
<tr>
<td style='line-height:150%;'>
<br>
<strong>에스크로(escrow) 제도란?</strong>
<br>상거래 시에, 판매자와 구매자의 사이에 신뢰할 수 있는 중립적인 제삼자(여기서는 <a href='http://kcp.co.kr' target='_blank'>KCP</a>)가 중개하여
<br>상거래 시에, 판매자와 구매자의 사이에 신뢰할 수 있는 중립적인 제삼자(여기서는 <a href='http://kcp.co.kr' target='_blank'>KCP</a>)가 중개하여
금전 또는 물품을 거래를 하도록 하는 것, 또는 그러한 서비스를 말한다. 거래의 안전성을 확보하기 위해 이용된다.
(2006.4.1 전자상거래 소비자보호법에 따른 의무 시행)
<br><br>
5만원 이상의 현금 거래에만 해당(에스크로 결제를 선택했을 경우에만 해당)되며,
신용카드로 구매하는 거래, 배송이 필요하지 않은 재화 등을 구매하는 거래(컨텐츠 등),
5만원 이상의 현금 거래에만 해당(에스크로 결제를 선택했을 경우에만 해당)되며,
신용카드로 구매하는 거래, 배송이 필요하지 않은 재화 등을 구매하는 거래(컨텐츠 등),
5만원 미만의 현금 거래에는 해당되지 않는다.
<br>
<br>
@ -331,9 +331,9 @@ function escrow_foot_check()
</map>
</form>
<? } ?>
<script type='text/javascript'>
function forderform_check(f)
function forderform_check(f)
{
errmsg = "";
errfld = "";
@ -356,10 +356,10 @@ function forderform_check(f)
if(f.od_email.value=='' || f.od_email.value.search(/(\S+)@(\S+)\.(\S+)/) == -1)
error_field(f.od_email, "E-mail을 바르게 입력해 주십시오.");
if (typeof(f.od_hope_date) != "undefined")
if (typeof(f.od_hope_date) != "undefined")
{
clear_field(f.od_hope_date);
if (!f.od_hope_date.value)
if (!f.od_hope_date.value)
error_field(f.od_hope_date, "희망배송일을 선택하여 주십시오.");
}
@ -381,7 +381,7 @@ function forderform_check(f)
// 배송비를 받지 않거나 더 받는 경우 아래식에 + 또는 - 로 대입
f.od_send_cost.value = parseInt(f.od_send_cost.value);
if (errmsg)
if (errmsg)
{
alert(errmsg);
errfld.focus();
@ -409,7 +409,7 @@ function forderform_check(f)
var temp_point = 0;
if (typeof(f.od_temp_point) != "undefined") {
if (f.od_temp_point.value)
if (f.od_temp_point.value)
{
temp_point = parseInt(f.od_temp_point.value);
@ -430,7 +430,7 @@ function forderform_check(f)
f.od_temp_point.select();
return false;
}
if (temp_point > max_point) {
alert(max_point + "점 이상 결제할 수 없습니다.");
f.od_temp_point.select();
@ -473,8 +473,8 @@ function forderform_check(f)
}
<?
if ($g4[https_url])
echo "f.action = '$g4[https_url]/$g4[shop]/orderformupdate.php';";
if (G4_HTTPS_DOMAIN)
echo "f.action = '".G4_HTTPS_DOMAIN."/".G4_SHOP_DIR."/orderformupdate.php';";
else
echo "f.action = './orderformupdate.php';";
?>
@ -497,7 +497,7 @@ function gumae2baesong(f)
$(function() {
$("#od_settle_bank").bind("click", function() {
$('[name=od_deposit_name]').val( $('[name=od_b_name]').val() );
$("[name=od_deposit_name]").val( $("[name=od_b_name]").val() );
$("#settle_bank").show();
});
@ -508,5 +508,5 @@ $(function() {
</script>
<?
include_once("./_tail.php");
include_once('./_tail.php');
?>

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
if(get_magic_quotes_gpc())
{
@ -24,18 +24,18 @@ $error = "";
$sql = " select a.it_id,
a.ct_qty,
b.it_name
from $g4[yc4_cart_table] a,
$g4[yc4_item_table] b
from {$g4['yc4_cart_table']} a,
{$g4['yc4_item_table']} b
where a.on_uid = '$tmp_on_uid'
and a.it_id = b.it_id ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
// 상품에 대한 현재고수량
$it_stock_qty = (int)get_it_stock_qty($row[it_id]);
$it_stock_qty = (int)get_it_stock_qty($row['it_id']);
// 장바구니 수량이 재고수량보다 많다면 오류
if ($row[ct_qty] > $it_stock_qty)
$error .= "$row[it_name] 의 재고수량이 부족합니다. 현재고수량 : $it_stock_qty\\n\\n";
if ($row['ct_qty'] > $it_stock_qty)
$error .= "{$row['it_name']} 의 재고수량이 부족합니다. 현재고수량 : $it_stock_qty\\n\\n";
}
if ($error != "")
@ -44,27 +44,27 @@ if ($error != "")
alert($error);
}
$i_amount = (int)$_POST[od_amount];
$i_send_cost = (int)$_POST[od_send_cost];
$i_temp_point = (int)$_POST[od_temp_point];
$i_amount = (int)$_POST['od_amount'];
$i_send_cost = (int)$_POST['od_send_cost'];
$i_temp_point = (int)$_POST['od_temp_point'];
// 주문금액이 상이함
$sql = " select SUM(ct_amount * ct_qty) as od_amount from $g4[yc4_cart_table] where on_uid = '$tmp_on_uid' ";
$sql = " select SUM(ct_amount * ct_qty) as od_amount from {$g4['yc4_cart_table']} where on_uid = '$tmp_on_uid' ";
$row = sql_fetch($sql);
if ((int)$row[od_amount] !== $i_amount) {
if ((int)$row['od_amount'] !== $i_amount) {
die("Error.");
}
// 배송비가 상이함
$tot_sell_amount = $row[od_amount];
$tot_sell_amount = $row['od_amount'];
// 배송비 계산
if ($default[de_send_cost_case] == "없음") {
if ($default['de_send_cost_case'] == "없음") {
$send_cost = 0;
} else {
// 배송비 상한 : 여러단계의 배송비 적용 가능
$send_cost_limit = explode(";", $default[de_send_cost_limit]);
$send_cost_list = explode(";", $default[de_send_cost_list]);
$send_cost_limit = explode(";", $default['de_send_cost_limit']);
$send_cost_list = explode(";", $default['de_send_cost_list']);
$send_cost = 0;
for ($k=0; $k<count($send_cost_limit); $k++) {
// 총판매금액이 배송비 상한가 보다 작다면
@ -82,21 +82,21 @@ if ((int)$send_cost !== $i_send_cost) {
$tot_amount = $tot_sell_amount + $send_cost;
// 회원이면서 포인트사용이면
$temp_point = 0;
if ($is_member && $config[cf_use_point])
if ($is_member && $config['cf_use_point'])
{
// 포인트 결제 사용 포인트보다 회원의 포인트가 크다면
if ($member[mb_point] >= $default[de_point_settle])
if ($member['mb_point'] >= $default['de_point_settle'])
{
$temp_point = $tot_amount * ($default[de_point_per] / 100); // 포인트 결제 % 적용
$temp_point = $tot_amount * ($default['de_point_per'] / 100); // 포인트 결제 % 적용
$temp_point = (int)((int)($temp_point / 100) * 100); // 100점 단위
$member_point = (int)((int)($member[mb_point] / 100) * 100); // 100점 단위
if ($temp_point > $member_point)
$member_point = (int)((int)($member['mb_point'] / 100) * 100); // 100점 단위
if ($temp_point > $member_point)
$temp_point = $member_point;
}
}
if (($i_temp_point > (int)$temp_point || $i_temp_point < 0) && $config[cf_use_point])
if (($i_temp_point > (int)$temp_point || $i_temp_point < 0) && $config['cf_use_point'])
die("Error...");
$i_amount = $i_amount + $i_send_cost - $i_temp_point;
@ -128,30 +128,30 @@ else if ($od_settle_case == "신용카드")
$od_temp_point = $i_temp_point;
$od_receipt_point = 0;
}
else
else
{
die("od_settle_case Error!!!");
}
if ($od_temp_point)
{
if ($member[mb_point] < $od_temp_point)
if ($member['mb_point'] < $od_temp_point)
alert("회원님의 포인트가 부족하여 포인트로 결제 할 수 없습니다.");
}
if ($member[mb_id])
$od_pwd = $member[mb_pwd];
if ($member['mb_id'])
$od_pwd = $member['mb_pwd'];
else
$od_pwd = sql_password($_POST[od_pwd]);
$od_pwd = sql_password($_POST['od_pwd']);
// 새로운 주문번호를 얻는다.
$od_id = get_new_od_id();
// 주문서에 입력
$sql = " insert $g4[yc4_order_table]
$sql = " insert {$g4['yc4_order_table']}
set od_id = '$od_id',
on_uid = '$tmp_on_uid',
mb_id = '$member[mb_id]',
mb_id = '{$member['mb_id']}',
od_pwd = '$od_pwd',
od_name = '$od_name',
od_email = '$od_email',
@ -182,7 +182,7 @@ $sql = " insert $g4[yc4_order_table]
od_bank_account = '$od_bank_account',
od_shop_memo = '',
od_hope_date = '$od_hope_date',
od_time = '$g4[time_ymdhis]',
od_time = '".G4_TIME_YMDHIS."',
od_ip = '$REMOTE_ADDR',
od_settle_case = '$od_settle_case'
";
@ -192,45 +192,45 @@ sql_query($sql);
// 신용카드로 주문하면서 신용카드 포인트 사용하지 않는다면 포인트 부여하지 않음
$sql_card_point = "";
//if ($od_receipt_card > 0 && $default[de_card_point] == false) {
if (($od_receipt_card > 0 || $od_receipt_hp > 0) && $default[de_card_point] == false) {
if (($od_receipt_card > 0 || $od_receipt_hp > 0) && $default['de_card_point'] == false) {
$sql_card_point = " , ct_point = '0' ";
}
$sql = "update $g4[yc4_cart_table]
$sql = "update {$g4['yc4_cart_table']}
set ct_status = '주문'
$sql_card_point
where on_uid = '$tmp_on_uid' ";
sql_query($sql);
// 회원이면서 포인트를 사용했다면 포인트 테이블에 사용을 추가
if ($member[mb_id] && $od_receipt_point) {
insert_point($member[mb_id], (-1) * $od_receipt_point, "주문번호 $od_id 결제");
if ($member['mb_id'] && $od_receipt_point) {
insert_point($member['mb_id'], (-1) * $od_receipt_point, "주문번호 $od_id 결제");
}
$od_memo = nl2br(htmlspecialchars2(stripslashes($od_memo))) . "&nbsp;";
include_once("./ordermail1.inc.php");
include_once('./ordermail1.inc.php');
if ($od_settle_case == "무통장")
include_once("./ordermail2.inc.php");
include_once('./ordermail2.inc.php');
// SMS BEGIN --------------------------------------------------------
// 쇼핑몰 운영자가 수신자가 됨
$receive_number = preg_replace("/[^0-9]/", "", $default[de_sms_hp]); // 수신자번호
$receive_number = preg_replace("/[^0-9]/", "", $default['de_sms_hp']); // 수신자번호
$send_number = preg_replace("/[^0-9]/", "", $od_hp); // 발신자번호
$sms_contents = $default[de_sms_cont2];
$sms_contents = $default['de_sms_cont2'];
$sms_contents = preg_replace("/{이름}/", $od_name, $sms_contents);
$sms_contents = preg_replace("/{보낸분}/", $od_name, $sms_contents);
$sms_contents = preg_replace("/{받는분}/", $od_b_name, $sms_contents);
$sms_contents = preg_replace("/{주문번호}/", $od_id, $sms_contents);
$sms_contents = preg_replace("/{주문금액}/", number_format($ttotal_amount), $sms_contents);
$sms_contents = preg_replace("/{회원아이디}/", $member[mb_id], $sms_contents);
$sms_contents = preg_replace("/{회사명}/", $default[de_admin_company_name], $sms_contents);
$sms_contents = preg_replace("/{회원아이디}/", $member['mb_id'], $sms_contents);
$sms_contents = preg_replace("/{회사명}/", $default['de_admin_company_name'], $sms_contents);
if ($default[de_sms_use2] && $receive_number)
if ($default['de_sms_use2'] && $receive_number)
{
include_once("$g4[path]/lib/icode.sms.lib.php");
include_once(G4_LIB_PATH.'/icode.sms.lib.php');
$SMS = new SMS; // SMS 연결
$SMS->SMS_con($default['de_icode_server_ip'], $default['de_icode_id'], $default['de_icode_pw'], $default['de_icode_server_port']);
$SMS->Add($receive_number, $send_number, $default['de_icode_id'], stripslashes($sms_contents), "");
@ -248,5 +248,5 @@ if (get_session("ss_direct"))
else
set_session("ss_on_uid", "");
goto_url("$g4[url]/$g4[shop]/orderconfirm.php");
goto_url(G4_SHOP_URL.'/orderconfirm.php');
?>

View File

@ -8,33 +8,33 @@ $od_pwd = sql_password($od_pwd);
// 회원인 경우
if ($is_member)
{
$sql_common = " from $g4[yc4_order_table] where mb_id = '$member[mb_id]' ";
$sql_common = " from {$g4['yc4_order_table']} where mb_id = '{$member['mb_id']}' ";
}
else if ($od_id && $od_pwd) // 비회원인 경우 주문서번호와 비밀번호가 넘어왔다면
{
$sql_common = " from $g4[yc4_order_table] where od_id = '$od_id' and od_pwd = '$od_pwd' ";
$sql_common = " from {$g4['yc4_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
}
else // 그렇지 않다면 로그인으로 가기
{
goto_url("$g4[bbs_path]/login.php?url=".urlencode("$g4[shop_path]/orderinquiry.php"));
goto_url(G4_BBS_URL."/login.php?url=".urlencode(G4_SHOP_URL."/orderinquiry.php"));
}
// 테이블의 전체 레코드수만 얻음
$sql = " select count(*) as cnt " . $sql_common;
$row = sql_fetch($sql);
$total_count = $row[cnt];
$total_count = $row['cnt'];
// 비회원 주문확인시 비회원의 모든 주문이 다 출력되는 오류 수정
// 조건에 맞는 주문서가 없다면
if ($total_count == 0)
{
if ($is_member) // 회원일 경우는 메인으로 이동
alert("주문이 존재하지 않습니다.", $g4[path]);
alert("주문이 존재하지 않습니다.", G4_SHOP_URL);
else // 비회원일 경우는 이전 페이지로 이동
alert("주문이 존재하지 않습니다.");
}
$rows = $config[cf_page_rows];
$rows = $config['cf_page_rows'];
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
@ -43,19 +43,19 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
// 비회원 주문확인의 경우 바로 주문서 상세조회로 이동
if (!$is_member)
{
$sql = " select od_id, on_uid from $g4[yc4_order_table] where od_id = '$od_id' and od_pwd = '$od_pwd' ";
$sql = " select od_id, on_uid from {$g4['yc4_order_table']} where od_id = '$od_id' and od_pwd = '$od_pwd' ";
$row = sql_fetch($sql);
if ($row[od_id]) {
set_session("ss_on_uid_inquiry", $row[on_uid]);
goto_url("$g4[shop_path]/orderinquiryview.php?od_id=$row[od_id]&on_uid=$row[on_uid]");
if ($row['od_id']) {
set_session("ss_on_uid_inquiry", $row['on_uid']);
goto_url(G4_ShOP_URL."/orderinquiryview.php?od_id={$row['od_id']}&on_uid={$row['on_uid']}");
}
}
$g4[title] = "주문내역";
include_once("./_head.php");
$g4['title'] = "주문내역";
include_once('./_head.php');
?>
<img src="<?=$g4[shop_img_path]?>/top_orderinquiry.gif" border=0><p>
<img src="<?=G4_SHOP_URL?>/img/top_orderinquiry.gif" border=0><p>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
@ -77,10 +77,10 @@ include_once("./_head.php");
<table width=98%>
<tr>
<td width=50%>&nbsp;</td>
<td width=50% align=right><?=get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?$qstr&page=");?></td>
<td width=50% align=right><?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?></td>
</tr>
</table>
<?
include_once("./_tail.php");
include_once('./_tail.php');
?>

View File

@ -1,7 +1,7 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_ORDERINQUIRY_")) exit; // 개별 페이지 접근 불가
if (!defined("_ORDERINQUIRY_")) exit; // 개별 페이지 접근 불가
?>
<table width=98% align=center cellpadding=0 cellspacing=0 border=0>
@ -23,29 +23,29 @@ if (!defined("_ORDERINQUIRY_")) exit; // 개별 페이지 접근 불가
</tr>
<tr><td height=1 colspan=6 class=c1></td></tr>
<?
$sql = " select a.od_id,
$sql = " select a.od_id,
a.*, "._MISU_QUERY_."
from $g4[yc4_order_table] a
left join $g4[yc4_cart_table] b on (b.on_uid=a.on_uid)
where mb_id = '$member[mb_id]'
group by a.od_id
order by a.od_id desc
from {$g4['yc4_order_table']} a
left join {$g4['yc4_cart_table']} b on (b.on_uid=a.on_uid)
where mb_id = '{$member['mb_id']}'
group by a.od_id
order by a.od_id desc
$limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
if ($i > 0)
echo "<tr><td colspan=6 height=1 background='$g4[shop_img_path]/dot_line.gif'></td></tr>\n";
echo "<tr><td colspan=6 height=1 background='".G4_SHOP_URL."/img/dot_line.gif'></td></tr>\n";
echo "<tr height=28>\n";
echo "<td align=center>";
echo "<input type=hidden name='ct_id[$i]' value='$row[ct_id]'>\n";
echo "<a href='./orderinquiryview.php?od_id=$row[od_id]&on_uid=$row[on_uid]'><U>$row[od_id]</U></a></td>\n";
echo "<td align=center>".substr($row[od_time],0,16)." (".get_yoil($row[od_time]).")</td>\n";
echo "<input type=hidden name='ct_id[$i]' value='{$row['ct_id']}'>\n";
echo "<a href='./orderinquiryview.php?od_id={$row['od_id']}&on_uid={$row['on_uid']}'><U>{$row['od_id']}</U></a></td>\n";
echo "<td align=center>".substr($row['od_time'],0,16)." (".get_yoil($row['od_time']).")</td>\n";
echo "<td align=center>$row[itemcount]</td>\n";
echo "<td align=right>".display_amount($row[orderamount])."&nbsp;&nbsp;</td>\n";
echo "<td align=right>".display_amount($row[receiptamount])."&nbsp;&nbsp;</td>\n";
echo "<td align=right>".display_amount($row[misu])."&nbsp;&nbsp;</td>\n";
echo "<td align=right>".display_amount($row['orderamount'])."&nbsp;&nbsp;</td>\n";
echo "<td align=right>".display_amount($row['receiptamount'])."&nbsp;&nbsp;</td>\n";
echo "<td align=right>".display_amount($row['misu'])."&nbsp;&nbsp;</td>\n";
echo "</tr>\n";
}

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
// 세션에 저장된 토큰과 폼으로 넘어온 토큰을 비교하여 틀리면 에러
if ($token && get_session("ss_token") == $token) {
@ -9,30 +9,30 @@ if ($token && get_session("ss_token") == $token) {
alert_close("토큰 에러");
}
$od = sql_fetch(" select * from $g4[yc4_order_table] where od_id = '$od_id' and on_uid = '$on_uid' and mb_id = '$member[mb_id]' ");
$od = sql_fetch(" select * from {$g4['yc4_order_table']} where od_id = '$od_id' and on_uid = '$on_uid' and mb_id = '{$member['mb_id']}' ");
if (!$od[od_id]) {
if (!$od['od_id']) {
alert("존재하는 주문이 아닙니다.");
}
if (($od[od_temp_bank] > 0 && $od[od_receipt_bank] == 0) ||
($od[od_temp_card] > 0 && $od[od_receipt_card] == 0)) {
if (($od['od_temp_bank'] > 0 && $od['od_receipt_bank'] == 0) ||
($od['od_temp_card'] > 0 && $od['od_receipt_card'] == 0)) {
;
} else {
alert("취소할 수 있는 주문이 아닙니다.");
}
// 장바구니 자료 취소
sql_query(" update $g4[yc4_cart_table] set ct_status = '취소' where on_uid = '$on_uid' ");
sql_query(" update {$g4['yc4_cart_table']} set ct_status = '취소' where on_uid = '$on_uid' ");
// 주문 취소
$cancel_memo = addslashes($cancel_memo);
//sql_query(" update $g4[yc4_order_table] set od_temp_point = '0', od_receipt_point = '0', od_shop_memo = concat(od_shop_memo,\"\\n주문자 본인 직접 취소 - {$g4['time_ymdhis']} (취소이유 : {$cancel_memo})\") where on_uid = '$on_uid' ");
sql_query(" update $g4[yc4_order_table] set od_send_cost = '0', od_temp_point = '0', od_receipt_point = '0', od_shop_memo = concat(od_shop_memo,\"\\n주문자 본인 직접 취소 - {$g4['time_ymdhis']} (취소이유 : {$cancel_memo})\") where on_uid = '$on_uid' ");
sql_query(" update {$g4['yc4_order_table']} set od_send_cost = '0', od_temp_point = '0', od_receipt_point = '0', od_shop_memo = concat(od_shop_memo,\"\\n주문자 본인 직접 취소 - ".G4_TIME_YMDHIS." (취소이유 : {$cancel_memo})\") where on_uid = '$on_uid' ");
// 주문취소 회원의 포인트를 되돌려 줌
if ($od[od_receipt_point] > 0) {
insert_point($member[mb_id], $od[od_receipt_point], "주문번호 $od_id 본인 취소");
if ($od['od_receipt_point'] > 0) {
insert_point($member['mb_id'], $od['od_receipt_point'], "주문번호 $od_id 본인 취소");
}
goto_url("./orderinquiryview.php?od_id=$od_id&on_uid=$on_uid");

View File

@ -1,5 +1,5 @@
<?
include_once("./_common.php");
include_once('./_common.php');
// 불법접속을 할 수 없도록 세션에 아무값이나 저장하여 hidden 으로 넘겨서 다음 페이지에서 비교함
$token = md5(uniqid(rand(), true));
@ -10,73 +10,73 @@ if (!$is_member) {
alert("직접 링크로는 주문서 조회가 불가합니다.\\n\\n주문조회 화면을 통하여 조회하시기 바랍니다.");
}
$sql = "select * from $g4[yc4_order_table] where od_id = '$od_id' and on_uid = '$on_uid' ";
$sql = "select * from {$g4['yc4_order_table']} where od_id = '$od_id' and on_uid = '$on_uid' ";
$od = sql_fetch($sql);
if (!$od[od_id]) {
if (!$od['od_id']) {
echo "$od_id $on_uid $MxIssueNO";
alert("조회하실 주문서가 없습니다.", $g4[path]);
alert("조회하실 주문서가 없습니다.", G4_URL);
}
// 결제방법
$settle_case = $od[od_settle_case];
$settle_case = $od['od_settle_case'];
set_session('ss_temp_on_uid', $on_uid);
$g4[title] = "주문상세내역 : 주문번호 - $od_id";
include_once("./_head.php");
$g4['title'] = "주문상세내역 : 주문번호 - $od_id";
include_once('./_head.php');
?>
<img src="<?=$g4[shop_img_path]?>/top_orderinquiryview.gif" border=0><p>
<img src="<?=G4_SHOP_URL?>/img/top_orderinquiryview.gif" border=0><p>
<?
$s_on_uid = $od[on_uid];
$s_page = "orderinquiryview.php";
include "./cartsub.inc.php";
$s_on_uid = $od['on_uid'];
$s_page = 'orderinquiryview.php';
include './cartsub.inc.php';
?>
<br>
<div align=right><img src='<?=$g4[shop_img_path]?>/status01.gif' align=absmiddle> : 주문대기, <img src='<?=$g4[shop_img_path]?>/status02.gif' align=absmiddle> : 상품준비중, <img src='<?=$g4[shop_img_path]?>/status03.gif' align=absmiddle> : 배송중, <img src='<?=$g4[shop_img_path]?>/status04.gif' align=absmiddle> : 배송완료</div>
<div align=right><img src='<?=G4_SHOP_URL?>/img/status01.gif' align=absmiddle> : 주문대기, <img src='<?=G4_SHOP_URL?>/img/status02.gif' align=absmiddle> : 상품준비중, <img src='<?=G4_SHOP_URL?>/img/status03.gif' align=absmiddle> : 배송중, <img src='<?=G4_SHOP_URL?>/img/status04.gif' align=absmiddle> : 배송완료</div>
<table width=98% cellpadding=0 cellspacing=7 align=center>
<tr><td colspan=2>
<img src='<?=$g4[shop_img_path]?>/my_icon.gif' align=absmiddle> <B>주문번호 : <FONT COLOR="#D60B69"><?=$od[od_id]?></FONT></B></td></tr>
<img src='<?=G4_SHOP_URL?>/img/my_icon.gif' align=absmiddle> <B>주문번호 : <FONT COLOR="#D60B69"><?=$od['od_id']?></FONT></B></td></tr>
<tr><td colspan=2 height=2 bgcolor=#94A9E7></td></tr>
<tr><td align=center bgcolor=#F3F2FF><img src='<?=$g4[shop_img_path]?>/t_data02.gif'></td>
<tr><td align=center bgcolor=#F3F2FF><img src='<?=G4_SHOP_URL?>/img/t_data02.gif'></td>
<td style='padding:20px'>
<table cellpadding=4 cellspacing=0>
<colgroup width=120>
<colgroup width=''>
<tr><td>· 주문일시</td><td>: <b><? echo $od[od_time] ?></b></td></tr>
<tr><td>· 이 름</td><td>: <? echo $od[od_name] ?></td></tr>
<tr><td>· 전화번호</td><td>: <? echo $od[od_tel] ?></td></tr>
<tr><td>· 핸드폰</td><td>: <? echo $od[od_hp] ?></td></tr>
<tr><td>· 주 소</td><td>: <?=sprintf("(%s-%s)&nbsp;%s %s", $od[od_zip1], $od[od_zip2], $od[od_addr1], $od[od_addr2])?></td></tr>
<tr><td>· E-mail</td><td>: <? echo $od[od_email] ?></td></tr>
<tr><td>· 주문일시</td><td>: <b><? echo $od['od_time'] ?></b></td></tr>
<tr><td>· 이 름</td><td>: <? echo $od['od_name'] ?></td></tr>
<tr><td>· 전화번호</td><td>: <? echo $od['od_tel'] ?></td></tr>
<tr><td>· 핸드폰</td><td>: <? echo $od['od_hp'] ?></td></tr>
<tr><td>· 주 소</td><td>: <?=sprintf("(%s-%s)&nbsp;%s %s", $od['od_zip1'], $od['od_zip2'], $od['od_addr1'], $od['od_addr2'])?></td></tr>
<tr><td>· E-mail</td><td>: <? echo $od['od_email'] ?></td></tr>
</table></td></tr>
<tr><td colspan=2 height=1 bgcolor=#738AC6></td></tr>
<tr><td align=center bgcolor=#F3F2FF><img src='<?=$g4[shop_img_path]?>/t_data03.gif'></td>
<tr><td align=center bgcolor=#F3F2FF><img src='<?=G4_SHOP_URL?>/img/t_data03.gif'></td>
<td style='padding:20px'>
<table cellpadding=4 cellspacing=0>
<colgroup width=120>
<colgroup width=''>
<tr><td>· 이 름</td><td>: <? echo $od[od_b_name] ?></td></tr>
<tr><td>· 전화번호</td><td>: <? echo $od[od_b_tel] ?></td></tr>
<tr><td>· 핸드폰</td><td>: <? echo $od[od_b_hp] ?></td></tr>
<tr><td>· 주 소</td><td>: <?=sprintf("(%s-%s)&nbsp;%s %s", $od[od_b_zip1], $od[od_b_zip2], $od[od_b_addr1], $od[od_b_addr2])?></td></tr>
<tr><td>· 이 름</td><td>: <? echo $od['od_b_name'] ?></td></tr>
<tr><td>· 전화번호</td><td>: <? echo $od['od_b_tel'] ?></td></tr>
<tr><td>· 핸드폰</td><td>: <? echo $od['od_b_hp'] ?></td></tr>
<tr><td>· 주 소</td><td>: <?=sprintf("(%s-%s)&nbsp;%s %s", $od['od_b_zip1'], $od['od_b_zip2'], $od['od_b_addr1'], $od['od_b_addr2'])?></td></tr>
<?
// 희망배송일을 사용한다면
if ($default[de_hope_date_use])
if ($default['de_hope_date_use'])
{
echo "<tr>";
echo "<td>· 희망배송일</td>";
echo "<td>: ".substr($od[od_hope_date],0,10)." (".get_yoil($od[od_hope_date]).")</td>";
echo "<td>: ".substr($od['od_hope_date'],0,10)." (".get_yoil($od['od_hope_date']).")</td>";
echo "</tr>";
}
if ($od[od_memo]) {
if ($od['od_memo']) {
echo "<tr>";
echo "<td>· 전하실 말씀</td>";
echo "<td>".conv_content($od[od_memo], 0)."</td>";
echo "<td>".conv_content($od['od_memo'], 0)."</td>";
echo "</tr>";
}
?>
@ -85,22 +85,22 @@ include "./cartsub.inc.php";
<?
// 배송회사 정보
$dl = sql_fetch(" select * from $g4[yc4_delivery_table] where dl_id = '$od[dl_id]' ");
$dl = sql_fetch(" select * from {$g4['yc4_delivery_table']} where dl_id = '{$od['dl_id']}' ");
if ($od[od_invoice] || !$od[misu])
if ($od['od_invoice'] || !$od['misu'])
{
echo "<tr><td align=center bgcolor='#F3F2FF'><img src='$g4[shop_img_path]/t_data05.gif'></td>";
echo "<tr><td align=center bgcolor='#F3F2FF'><img src=\"".G4_SHOP_URL."/img/t_data05.gif\"></td>";
echo "<td style='padding:20px'>";
if (is_array($dl))
{
// get 으로 날리는 경우 운송장번호를 넘김
if (strpos($dl[dl_url], "=")) $invoice = $od[od_invoice];
if (strpos($dl['dl_url'], "=")) $invoice = $od['od_invoice'];
echo "<table cellpadding=4 cellspacing=0>";
echo "<colgroup width=120><colgroup width=''>";
echo "<tr><td>· 배송회사</td><td>: $dl[dl_company] &nbsp;&nbsp;[<a href='$dl[dl_url]{$invoice}' target=_new>배송조회하기</a>]</td></tr>";
echo "<tr><td>· 운송장번호</td><td>: $od[od_invoice]</td></tr>";
echo "<tr><td>· 배송일시</td><td>: $od[od_invoice_time]</td></tr>";
echo "<tr><td>· 고객센터 전화</td><td>: $dl[dl_tel]</td></tr>";
echo "<tr><td>· 배송회사</td><td>: {$dl['dl_company']} &nbsp;&nbsp;[<a href=\"{$dl['dl_url']}{$invoice}' target=_new>배송조회하기</a>]</td></tr>";
echo "<tr><td>· 운송장번호</td><td>: {$od['od_invoice']}</td></tr>";
echo "<tr><td>· 배송일시</td><td>: {$od['od_invoice_time']}</td></tr>";
echo "<tr><td>· 고객센터 전화</td><td>: {$dl['dl_tel']}</td></tr>";
echo "</table>";
}
else
@ -112,12 +112,12 @@ if ($od[od_invoice] || !$od[misu])
?><p>
<?
$receipt_amount = $od[od_receipt_bank]
+ $od[od_receipt_card]
+ $od[od_receipt_hp]
+ $od[od_receipt_point]
- $od[od_cancel_card]
- $od[od_refund_amount];
$receipt_amount = $od['od_receipt_bank']
+ $od['od_receipt_card']
+ $od['od_receipt_hp']
+ $od['od_receipt_point']
- $od['od_cancel_card']
- $od['od_refund_amount'];
$misu = true;
@ -131,14 +131,14 @@ if ($tot_amount - $tot_cancel_amount == $receipt_amount) {
$misu_amount = $tot_amount - $receipt_amount - $od[od_dc_amount];
echo "<tr>";
echo "<td align=center bgcolor=#FFEFFD height=60><img src='$g4[shop_img_path]/t_data04.gif'></td>";
echo "<td align=center bgcolor=#FFEFFD height=60><img src=\"".G4_SHOP_URL."/t_data04.gif\"></td>";
echo "<td style='padding:20px'>";
if ($od[od_settle_case] == '신용카드')
if ($od['od_settle_case'] == '신용카드')
{
if ($od[od_receipt_card] > 0)
if ($od['od_receipt_card'] > 0)
{
$sql = " select * from $g4[yc4_card_history_table] where od_id = '$od[od_id]' order by cd_id desc ";
$sql = " select * from {$g4['yc4_card_history_table']} where od_id = '{$od['od_id']}' order by cd_id desc ";
$result = sql_query($sql);
$cd = mysql_fetch_array($result);
}
@ -147,21 +147,21 @@ if ($od[od_settle_case] == '신용카드')
echo "<colgroup width=120><colgroup width=''>";
echo "<tr><td>· 결제방식</td><td>: 신용카드 결제</td></tr>";
if ($od[od_receipt_card])
if ($od['od_receipt_card'])
{
echo "<tr><td>· 결제금액</td><td class=amount>: " . display_amount($cd[cd_amount]) . "</td></tr>";
echo "<tr><td>· 승인일시</td><td>: $cd[cd_trade_ymd] $cd[cd_trade_hms]</td>";
echo "<tr><td>· 승인번호</td><td>: $cd[cd_app_no]</td></tr>";
echo "<tr><td>· 영수증</td><td>: <a href='javascript:;' onclick=\"window.open('http://admin.kcp.co.kr/Modules/Sale/Card/ADSA_CARD_BILL_Receipt.jsp?c_trade_no=$od[od_escrow1]', 'winreceipt', 'width=620,height=670')\">영수증 출력</a></td></tr>";
echo "<tr><td>· 결제금액</td><td class=amount>: " . display_amount($cd['cd_amount']) . "</td></tr>";
echo "<tr><td>· 승인일시</td><td>: {$cd['cd_trade_ymd']} {$cd['cd_trade_hms']}</td>";
echo "<tr><td>· 승인번호</td><td>: {$cd['cd_app_no']}</td></tr>";
echo "<tr><td>· 영수증</td><td>: <a href='javascript:;' onclick=\"window.open('http://admin.kcp.co.kr/Modules/Sale/Card/ADSA_CARD_BILL_Receipt.jsp?c_trade_no={$od['od_escrow1']}', 'winreceipt', 'width=620,height=670')\">영수증 출력</a></td></tr>";
}
else if ($default[de_card_use] && $tot_cancel_amount == 0)
else if ($default['de_card_use'] && $tot_cancel_amount == 0)
{
$settle_amount = $od['od_temp_card'];
echo "<tr><td>· 결제정보</td><td>: 아직 승인되지 않았거나 승인을 확인하지 못하였습니다.</td>";
echo "<tr><td colspan=2>";
if ((int)$member[mb_point] >= $od[od_temp_point]) {
include "./settle_{$default[de_card_pg]}.inc.php";
echo "<input type='image' src='$g4[shop_img_path]/btn_settle.gif' border=0 onclick='OpenWindow();'>";
if ((int)$member['mb_point'] >= $od['od_temp_point']) {
include "./settle_{$default['de_card_pg']}.inc.php";
echo "<input type='image' src=\"".G4_SHOP_URL."/img/btn_settle.gif\" border=0 onclick='OpenWindow();'>";
} else {
echo "<font color=red>· 보유포인트가 모자라서 결제할 수 없습니다. 주문후 다시 결제하시기 바랍니다.</font>";
}
@ -169,11 +169,11 @@ if ($od[od_settle_case] == '신용카드')
}
echo "</table><br>";
}
else if ($od[od_settle_case] == '휴대폰')
else if ($od['od_settle_case'] == '휴대폰')
{
if ($od[od_receipt_hp] > 0)
if ($od['od_receipt_hp'] > 0)
{
$sql = " select * from $g4[yc4_card_history_table] where od_id = '$od[od_id]' order by cd_id desc ";
$sql = " select * from {$g4['yc4_card_history_table']} where od_id = '{$od['od_id']}' order by cd_id desc ";
$result = sql_query($sql);
$cd = mysql_fetch_array($result);
}
@ -182,22 +182,22 @@ else if ($od[od_settle_case] == '휴대폰')
echo "<colgroup width=120><colgroup width=''>";
echo "<tr><td>· 결제방식</td><td>: 휴대폰 결제</td></tr>";
if ($od[od_receipt_hp])
if ($od['od_receipt_hp'])
{
echo "<tr><td>· 결제금액</td><td class=amount>: " . display_amount($cd[cd_amount]) . "</td></tr>";
echo "<tr><td>· 승인일시</td><td>: $cd[cd_trade_ymd] $cd[cd_trade_hms]</td>";
echo "<tr><td>· 휴대폰번호</td><td>: $cd[cd_opt02]</td></tr>";
echo "<tr><td>· 결제금액</td><td class=amount>: " . display_amount($cd['cd_amount']) . "</td></tr>";
echo "<tr><td>· 승인일시</td><td>: {$cd['cd_trade_ymd']} {$cd['cd_trade_hms']}</td>";
echo "<tr><td>· 휴대폰번호</td><td>: {$cd['cd_opt02']}</td></tr>";
//echo "<tr><td>· 영수증</td><td>: <a href='javascript:;' onclick=\"window.open('http://admin.kcp.co.kr/Modules/Sale/Card/ADSA_CARD_BILL_Receipt.jsp?c_trade_no=$od[od_escrow1]', 'winreceipt', 'width=620,height=670')\">영수증 출력</a></td></tr>";
echo "<tr><td>· 영수증</td><td>: <a href='javascript:;' onclick=\"window.open('https://admin.kcp.co.kr/Modules/Bill/ADSA_MCASH_N_Receipt.jsp?a_trade_no=$od[od_escrow1]', 'winreceipt', 'width=370,height=550')\">영수증 출력</a></td></tr>";
echo "<tr><td>· 영수증</td><td>: <a href='javascript:;' onclick=\"window.open('https://admin.kcp.co.kr/Modules/Bill/ADSA_MCASH_N_Receipt.jsp?a_trade_no={$od['od_escrow1']}', 'winreceipt', 'width=370,height=550')\">영수증 출력</a></td></tr>";
}
else if ($default[de_hp_use])
else if ($default['de_hp_use'])
{
$settle_amount = $od['od_temp_card'];
echo "<tr><td>· 결제정보</td><td>: 아직 승인되지 않았거나 승인을 확인하지 못하였습니다.</td>";
echo "<tr><td colspan=2>";
if ((int)$member[mb_point] >= $od[od_temp_point]) {
include "./settle_{$default[de_card_pg]}.inc.php";
echo "<input type='image' src='$g4[shop_img_path]/btn_settle.gif' border=0 onclick='OpenWindow();'>";
if ((int)$member['mb_point'] >= $od['od_temp_point']) {
include "./settle_{$default['de_card_pg']}.inc.php";
echo "<input type='image' src=\"".G4_SHOP_URL."/img/btn_settle.gif\" border=0 onclick='OpenWindow();'>";
} else {
echo "<font color=red>· 보유포인트가 모자라서 결제할 수 없습니다. 주문후 다시 결제하시기 바랍니다.</font>";
}
@ -211,46 +211,46 @@ else
echo "<colgroup width=120><colgroup width=''>";
echo "<tr><td>· 결제방식</td><td>: {$od['od_settle_case']}</td></tr>";
if ($od[od_receipt_bank])
if ($od['od_receipt_bank'])
{
echo "<tr><td>· 입금액</td><td>: " . display_amount($od[od_receipt_bank]) . "</td></tr>";
echo "<tr><td>· 입금확인일시</td><td>: $od[od_bank_time]</td></tr>";
echo "<tr><td>· 입금액</td><td>: " . display_amount($od['od_receipt_bank']) . "</td></tr>";
echo "<tr><td>· 입금확인일시</td><td>: {$od['od_bank_time']}</td></tr>";
}
else
{
echo "<tr><td>· 입금액</td><td>: 아직 입금되지 않았거나 입금정보를 입력하지 못하였습니다.</td></tr>";
}
if ($od[od_settle_case] != '계좌이체')
echo "<tr><td>· 계좌번호</td><td>: $od[od_bank_account]</td></tr>";
if ($od['od_settle_case'] != '계좌이체')
echo "<tr><td>· 계좌번호</td><td>: {$od['od_bank_account']}</td></tr>";
echo "<tr><td>· 입금자명</td><td>: $od[od_deposit_name]</td></tr>";
echo "<tr><td>· 입금자명</td><td>: {$od['od_deposit_name']}</td></tr>";
if ($od[od_escrow1])
echo "<tr><td>· KCP 거래번호</td><td>: $od[od_escrow1]</td></tr>";
if ($od['od_escrow1'])
echo "<tr><td>· KCP 거래번호</td><td>: {$od['od_escrow1']}</td></tr>";
if ($od[od_receipt_bank] == 0 && $tot_cancel_amount == 0)
if ($od['od_receipt_bank'] == 0 && $tot_cancel_amount == 0)
{
if ($od['od_settle_case'] == '계좌이체' && $default[de_iche_use])
if ($od['od_settle_case'] == '계좌이체' && $default['de_iche_use'])
{
$settle_amount = $od['od_temp_bank'];
echo "<tr><td colspan=2>";
if ((int)$member[mb_point] >= $od[od_temp_point]) {
include "./settle_{$default[de_card_pg]}.inc.php";
echo "<input type='image' src='$g4[shop_img_path]/btn_settle.gif' border=0 onclick='OpenWindow();'>";
if ((int)$member['mb_point'] >= $od['od_temp_point']) {
include "./settle_{$default['de_card_pg']}.inc.php";
echo "<input type='image' src=\"".G4_SHOP_URL."/img/btn_settle.gif\" border=0 onclick='OpenWindow();'>";
} else {
echo "<font color=red>· 보유포인트가 모자라서 결제할 수 없습니다. 주문후 다시 결제하시기 바랍니다.</font>";
}
echo "</td></tr>";
}
if ($od['od_settle_case'] == '가상계좌' && $od['od_bank_account'] == '가상계좌' && $default[de_vbank_use])
if ($od['od_settle_case'] == '가상계좌' && $od['od_bank_account'] == '가상계좌' && $default['de_vbank_use'])
{
$settle_amount = $od['od_temp_bank'];
echo "<tr><td colspan=2>";
if ((int)$member[mb_point] >= $od[od_temp_point]) {
include "./settle_{$default[de_card_pg]}.inc.php";
echo "<input type='image' src='$g4[shop_img_path]/btn_settle.gif' border=0 onclick='OpenWindow();'>";
if ((int)$member['mb_point'] >= $od['od_temp_point']) {
include "./settle_{$default['de_card_pg']}.inc.php";
echo "<input type='image' src=\"".G4_SHOP_URL."/img/btn_settle.gif\" border=0 onclick='OpenWindow();'>";
} else {
echo "<font color=red>· 보유포인트가 모자라서 결제할 수 없습니다. 주문후 다시 결제하시기 바랍니다.</font>";
}
@ -261,50 +261,50 @@ else
echo "</table><br>";
}
if ($od[od_receipt_point] > 0)
if ($od['od_receipt_point'] > 0)
{
echo "<table cellpadding=4 cellspacing=0 width=100%>";
echo "<colgroup width=120><colgroup width=''>";
echo "<tr><td>· 포인트사용</td><td>: " . display_point($od[od_receipt_point]) . "</td></tr>";
echo "<tr><td>· 포인트사용</td><td>: " . display_point($od['od_receipt_point']) . "</td></tr>";
echo "</table>";
//} else if ($od[od_temp_point] > 0) {
} else if ($od[od_temp_point] > 0 && $member[mb_point] >= $od[od_temp_point]) {
} else if ($od['od_temp_point'] > 0 && $member['mb_point'] >= $od['od_temp_point']) {
echo "<table cellpadding=4 cellspacing=0 width=100%>";
echo "<colgroup width=120><colgroup width=''>";
echo "<tr><td>· 포인트사용</td><td>: " . display_point($od[od_temp_point]) . "</td></tr>";
echo "<tr><td>· 포인트사용</td><td>: " . display_point($od['od_temp_point']) . "</td></tr>";
echo "</table>";
}
if ($od[od_cancel_card] > 0)
if ($od['od_cancel_card'] > 0)
{
echo "<table cellpadding=4 cellspacing=0 width=100%>";
echo "<colgroup width=120><colgroup width=''>";
echo "<tr><td><b>· 승인취소 금액</td><td>: " . display_amount($od[od_cancel_card]) . "</td></tr>";
echo "<tr><td><b>· 승인취소 금액</td><td>: " . display_amount($od['od_cancel_card']) . "</td></tr>";
echo "</table>";
}
if ($od[od_refund_amount] > 0)
if ($od['od_refund_amount'] > 0)
{
echo "<table cellpadding=4 cellspacing=0 width=100%>";
echo "<colgroup width=120><colgroup width=''>";
echo "<tr><td>· 환불 금액</td><td>: " . display_amount($od[od_refund_amount]) . "</td></tr>";
echo "<tr><td>· 환불 금액</td><td>: " . display_amount($od['od_refund_amount']) . "</td></tr>";
echo "</table>";
}
// 취소한 내역이 없다면
if ($tot_cancel_amount == 0) {
if (($od[od_temp_bank] > 0 && $od[od_receipt_bank] == 0) ||
($od[od_temp_card] > 0 && $od[od_receipt_card] == 0)) {
if (($od['od_temp_bank'] > 0 && $od['od_receipt_bank'] == 0) ||
($od['od_temp_card'] > 0 && $od['od_receipt_card'] == 0)) {
echo "<br><form method='post' action='./orderinquirycancel.php' style='margin:0;'>";
echo "<input type=hidden name=od_id value='$od[od_id]'>";
echo "<input type=hidden name=on_uid value='$od[on_uid]'>";
echo "<input type=hidden name=od_id value='{$od['od_id']}'>";
echo "<input type=hidden name=on_uid value='{$od['on_uid']}'>";
echo "<input type=hidden name=token value='$token'>";
echo "<br><table cellpadding=4 cellspacing=0 width=100%>";
echo "<colgroup width=120><colgroup width=''>";
echo "<tr><td>· 주문취소</td><td>: <a href='javascript:;' onclick=\"document.getElementById('_ordercancel').style.display='block';\">위의 주문을 취소합니다.</a></td></tr>";
echo "<tr id='_ordercancel' style='display:none;'><td>· 취소사유</td><td>: <input type=text name='cancel_memo' size=40 maxlength=100 required itemname='취소사유'></textarea> <input type=submit value='확인'></td></tr>";
echo "</table></form>";
} else if ($od[od_invoice] == "") {
} else if ($od['od_invoice'] == "") {
echo "<br><table cellpadding=4 cellspacing=0 width=100%>";
echo "<colgroup width=120><colgroup width=''>";
echo "<tr><td style='color:blue;'>· 이 주문은 직접 취소가 불가하므로 상점에 전화 연락 후 취소해 주십시오.</td></tr>";
@ -321,18 +321,18 @@ if ($tot_cancel_amount == 0) {
// 현금영수증 발급을 사용하는 경우에만
if ($default[de_taxsave_use]) {
if ($default['de_taxsave_use']) {
// 미수금이 없고 현금일 경우에만 현금영수증을 발급 할 수 있습니다.
if ($misu_amount == 0 && $od[od_receipt_bank]) {
if ($default[de_card_pg] == 'kcp') {
if ($misu_amount == 0 && $od['od_receipt_bank']) {
if ($default['de_card_pg'] == 'kcp') {
echo "<br />";
echo "<table cellpadding=4 cellspacing=0 width=100%>";
echo "<colgroup width=120><colgroup width=''>";
echo "<tr><td>· 현금영수증</td><td>: ";
if ($od["od_cash"])
echo "<a href=\"javascript:;\" onclick=\"window.open('https://admin.kcp.co.kr/Modules/Service/Cash/Cash_Bill_Common_View.jsp?cash_no=$od[od_cash_no]', 'taxsave_receipt', 'width=360,height=647,scrollbars=0,menus=0');\">현금영수증 확인하기</a>";
if ($od['od_cash'])
echo "<a href=\"javascript:;\" onclick=\"window.open('https://admin.kcp.co.kr/Modules/Service/Cash/Cash_Bill_Common_View.jsp?cash_no={$od['od_cash_no']}', 'taxsave_receipt', 'width=360,height=647,scrollbars=0,menus=0');\">현금영수증 확인하기</a>";
else
echo "<a href=\"javascript:;\" onclick=\"window.open('taxsave_kcp.php?od_id=$od_id&on_uid=$od[on_uid]', 'taxsave', 'width=550,height=400,scrollbars=1,menus=0');\">현금영수증을 발급하시려면 클릭하십시오.</a>";
echo "<a href=\"javascript:;\" onclick=\"window.open('taxsave_kcp.php?od_id=$od_id&on_uid={$od['on_uid']}', 'taxsave', 'width=550,height=400,scrollbars=1,menus=0');\">현금영수증을 발급하시려면 클릭하십시오.</a>";
echo "</td></tr>";
echo "</table>";
}
@ -345,8 +345,8 @@ if ($default[de_taxsave_use]) {
<td colspan=2 align=right bgcolor=#E7EBF7 height=70>
<b>결제 합계</b> <? echo $wanbul ?> : <b><? echo display_amount($receipt_amount) ?></b></span>&nbsp;&nbsp;<br>
<?
if ($od[od_dc_amount] > 0) {
echo "<br>DC : ". display_amount($od[od_dc_amount]) . "&nbsp;&nbsp;";
if ($od['od_dc_amount'] > 0) {
echo "<br>DC : ". display_amount($od['od_dc_amount']) . "&nbsp;&nbsp;";
}
if ($misu_amount > 0) {
@ -358,5 +358,5 @@ if ($default[de_taxsave_use]) {
<br><br>
<?
include_once("./_tail.php");
include_once('./_tail.php');
?>

View File

@ -1,5 +1,5 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
unset($list);
@ -11,7 +11,7 @@ $ttotal_point = 0;
//------------------------------------------------------------------------------
// Loop 배열 자료를 만들고
$sql = " select b.it_sell_email,
a.it_id,
a.it_id,
b.it_name,
b.it_origin,
a.it_opt1,
@ -23,25 +23,25 @@ $sql = " select b.it_sell_email,
a.ct_qty,
a.ct_amount,
a.ct_point
from $g4[yc4_cart_table] a, $g4[yc4_item_table] b
where a.on_uid = '$tmp_on_uid'
from {$g4['yc4_cart_table']} a, {$g4['yc4_item_table']} b
where a.on_uid = '$tmp_on_uid'
and a.it_id = b.it_id ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$list[$i][g_dir] = $g4[url];
$list[$i][it_id] = $row[it_id];
$list[$i][it_simg] = get_it_image("$row[it_id]_s", $default[de_simg_width], $default[de_simg_height]);
$list[$i][it_name] = $row[it_name];
$list[$i][it_origin] = $row[it_origin];
$list[$i][it_opt] = print_item_options($row[it_id], $row[it_opt1], $row[it_opt2], $row[it_opt3], $row[it_opt4], $row[it_opt5], $row[it_opt6]);
$list[$i][ct_qty] = $row[ct_qty];
$list[$i][ct_amount] = $row[ct_amount];
$list[$i][stotal_amount] = $row[ct_amount] * $row[ct_qty];
$list[$i][stotal_point] = $row[ct_point] * $row[ct_qty];
$list[$i]['g_dir'] = G4_URL;
$list[$i]['it_id'] = $row['it_id'];
$list[$i]['it_simg'] = get_it_image("{$row['it_id']}_s", $default['de_simg_width'], $default['de_simg_height']);
$list[$i]['it_name'] = $row['it_name'];
$list[$i]['it_origin'] = $row['it_origin'];
$list[$i]['it_opt'] = print_item_options($row['it_id'], $row['it_opt1'], $row['it_opt2'], $row['it_opt3'], $row['it_opt4'], $row['it_opt5'], $row['it_opt6']);
$list[$i]['ct_qty'] = $row['ct_qty'];
$list[$i]['ct_amount'] = $row['ct_amount'];
$list[$i]['stotal_amount'] = $row['ct_amount'] * $row['ct_qty'];
$list[$i]['stotal_point'] = $row['ct_point'] * $row['ct_qty'];
$ttotal_amount += $list[$i][stotal_amount];
$ttotal_point += $list[$i][stotal_point];
$ttotal_amount += $list[$i]['stotal_amount'];
$ttotal_point += $list[$i]['stotal_point'];
}
//------------------------------------------------------------------------------

View File

@ -1,32 +1,32 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/lib/mailer.lib.php");
include_once(G4_LIB_PATH.'/mailer.lib.php');
$admin = get_admin('super');
//------------------------------------------------------------------------------
// 운영자에게 메일보내기
//------------------------------------------------------------------------------
$subject = "{$config[cf_title]}에서 주문이 들어 왔습니다. ($od_name)";
$subject = "{$config['cf_title']}에서 주문이 들어 왔습니다. ($od_name)";
ob_start();
include "./mail/orderupdate1.mail.php";
$content = ob_get_contents();
ob_end_clean();
mailer($od_name, $od_email, $admin[mb_email], $subject, $content, 1);
mailer($od_name, $od_email, $admin['mb_email'], $subject, $content, 1);
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
// 주문자에게 메일보내기
//------------------------------------------------------------------------------
$subject = "{$config[cf_title]}에서 다음과 같이 주문하셨습니다.";
$subject = "{$config['cf_title']}에서 다음과 같이 주문하셨습니다.";
ob_start();
include "./mail/orderupdate2.mail.php";
$content = ob_get_contents();
ob_end_clean();
mailer($config[cf_title], $admin[mb_email], $od_email, $subject, $content, 1);
mailer($config['cf_title'], $admin['mb_email'], $od_email, $subject, $content, 1);
//------------------------------------------------------------------------------
@ -35,7 +35,7 @@ mailer($config[cf_title], $admin[mb_email], $od_email, $subject, $content, 1);
//------------------------------------------------------------------------------
$sql = " select b.it_sell_email,
a.it_id,
a.it_id,
b.it_name,
a.it_opt1,
a.it_opt2,
@ -44,8 +44,8 @@ $sql = " select b.it_sell_email,
a.it_opt5,
a.it_opt6,
a.ct_qty
from $g4[yc4_cart_table] a, $g4[yc4_item_table] b
where a.on_uid = '$tmp_on_uid'
from {$g4['yc4_cart_table']} a, {$g4['yc4_item_table']} b
where a.on_uid = '$tmp_on_uid'
and a.it_id = b.it_id
and b.it_sell_email <> '' ";
$result = sql_query($sql);
@ -53,19 +53,19 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
{
unset($list);
$list[it_id] = $row[it_id];
$list[it_simg] = get_it_image("$row[it_id]_s", $default[de_simg_width], $default[de_simg_height]);
$list[it_name] = $row[it_name];
$list[it_opt] = print_item_options($row[it_id], $row[it_opt1], $row[it_opt2], $row[it_opt3], $row[it_opt4], $row[it_opt5], $row[it_opt6]);
$list[ct_qty] = $row[ct_qty];
$list['it_id'] = $row['it_id'];
$list['it_simg'] = get_it_image("{$row['it_id']}_s", $default['de_simg_width'], $default['de_simg_height']);
$list['it_name'] = $row['it_name'];
$list['it_opt'] = print_item_options($row['it_id'], $row['it_opt1'], $row['it_opt2'], $row['it_opt3'], $row['it_opt4'], $row['it_opt5'], $row['it_opt6']);
$list['ct_qty'] = $row['ct_qty'];
$subject = "{$config[cf_title]}에서 다음과 같이 주문서가 접수 되었습니다. (주문자 {$od_name}님)";
$subject = "{$config['cf_title']}에서 다음과 같이 주문서가 접수 되었습니다. (주문자 {$od_name}님)";
ob_start();
include "./mail/orderupdate3.mail.php";
$content = ob_get_contents();
ob_end_clean();
mailer($config[cf_title], $admin[mb_email], $row[it_sell_email], $subject, $content, 1);
mailer($config['cf_title'], $admin['mb_email'], $row['it_sell_email'], $subject, $content, 1);
}
//==============================================================================
?>

View File

@ -1,15 +1,15 @@
<?
include_once("./_common.php");
include_once('./_common.php');
// 상품이미지 사이즈(폭, 높이)를 몇배 축소 할것인지를 설정
// 0 으로 설정하면 오류남 : 기본 2
$image_rate = 2;
$g4[title] = "상품 검색";
include_once("./_head.php");
$g4['title'] = "상품 검색";
include_once('./_head.php');
?>
<img src="<?=$g4[shop_img_path]?>/top_search.gif" border="0"><p>
<img src="<?=G4_SHOP_URL?>/img/top_search.gif" border="0"><p>
<table width=100% cellpadding=0 cellspacing=0 align=center border=0>
<tr>
@ -19,14 +19,14 @@ include_once("./_head.php");
<?
// QUERY 문에 공통적으로 들어가는 내용
// 상품명에 검색어가 포한된것과 상품판매가능인것만
$sql_common = " from $g4[yc4_item_table] a,
$g4[yc4_category_table] b
$sql_common = " from {$g4['yc4_item_table']} a,
{$g4['yc4_category_table']} b
where a.ca_id=b.ca_id
and a.it_use = 1
and a.it_use = 1
and b.ca_use = 1
/* 중복검색에 대한 오류로 인해 막음 : where (a.ca_id=b.ca_id or a.ca_id2=b.ca_id or a.ca_id3=b.ca_id) */ ";
if ($search_str) {
$sql_common .= " and ( a.it_id like '$search_str%' or
$sql_common .= " and ( a.it_id like '$search_str%' or
a.it_name like '%$search_str%' or
a.it_basic like '%$search_str%' or
a.it_explan like '%$search_str%' ) ";
@ -52,7 +52,7 @@ include_once("./_head.php");
// 검색된 내용이 몇행인지를 얻는다
$sql = " select COUNT(*) as cnt $sql_common ";
$row = sql_fetch($sql);
$total_count = $row[cnt];
$total_count = $row['cnt'];
echo "&nbsp;&nbsp; 입력하신 검색어로 총 <b>{$total_count}건</b>의 상품이 검색 되었습니다.<br><br>";
// 임시배열에 저장해 놓고 분류별로 출력한다.
@ -60,29 +60,29 @@ include_once("./_head.php");
if ($total_count > 0) {
if (trim($search_str)) {
// 인기검색어
$sql = " insert into $g4[popular_table]
$sql = " insert into {$g4['popular_table']}
set pp_word = '$search_str',
pp_date = '$g4[time_ymd]',
pp_ip = '$_SERVER[REMOTE_ADDR]' ";
pp_date = '".G4_TIME_YMD."',
pp_ip = '{$_SERVER['REMOTE_ADDR']}' ";
sql_query($sql, FALSE);
}
unset($save); // 임시 저장 배열
$sql = " select a.ca_id,
$sql = " select a.ca_id,
a.it_id
$sql_common
order by a.ca_id, a.it_id desc ";
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++) {
if ($save[ca_id] != $row[ca_id]) {
if ($save[ca_id]) {
if ($save['ca_id'] != $row['ca_id']) {
if ($save['ca_id']) {
write_search_save($save);
unset($save);
}
$save[ca_id] = $row[ca_id];
$save[cnt] = 0;
$save['ca_id'] = $row['ca_id'];
$save['cnt'] = 0;
}
$save[it_id][$save[cnt]] = $row[it_id];
$save['it_id'][$save['cnt']] = $row['it_id'];
$save[cnt]++;
}
mysql_free_result($result);
@ -94,11 +94,11 @@ include_once("./_head.php");
</table>
<?
function write_search_save($save)
function write_search_save($save)
{
global $g4, $search_str , $default , $image_rate , $cart_dir;
$sql = " select ca_name from $g4[yc4_category_table] where ca_id = '$save[ca_id]' ";
$sql = " select ca_name from {$g4['yc4_category_table']} where ca_id = '{$save['ca_id']}' ";
$row = sql_fetch($sql);
/*
@ -122,9 +122,9 @@ function write_search_save($save)
$ca_temp = "";
if(strlen($save['ca_id']) > 2) // 중분류 이하일 경우
{
$sql2 = " select ca_name from $g4[yc4_category_table] where ca_id='".substr($save[ca_id],0,2)."' ";
$sql2 = " select ca_name from $g4[yc4_category_table] where ca_id='".substr($save['ca_id'],0,2)."' ";
$row2 = sql_fetch($sql2);
$ca_temp = "<b><a href='./list.php?ca_id=".substr($save[ca_id],0,2)."'>$row2[ca_name]</a></b> &gt; ";
$ca_temp = "<b><a href='./list.php?ca_id=".substr($save['ca_id'],0,2)."'>{$row2['ca_name']}</a></b> &gt; ";
}
echo "
<table width=98% cellpadding=0 cellspacing=0 border=0 align=center>
@ -134,15 +134,15 @@ function write_search_save($save)
<colgroup width=100>
<tr><td colspan=4 height=2 bgcolor=#0E87F9></td></tr>
<tr>
<td colspan=2 height='28'>&nbsp;{$ca_temp}<b><a href='./list.php?ca_id={$save[ca_id]}'>$row[ca_name]</a></b> ($save[cnt])</td>
<td colspan=2 height='28'>&nbsp;{$ca_temp}<b><a href='./list.php?ca_id={$save['ca_id']}'>{$row['ca_name']}</a></b> ({$save['cnt']})</td>
<td align=center>판매가격</td>
<td align=center>포인트</td>
</tr>
<tr><td colspan=4 height=1 bgcolor=#CCCCCC></td></tr>";
for ($i=0; $i<$save[cnt]; $i++) {
for ($i=0; $i<$save['cnt']; $i++) {
$sql = " select it_id,
it_name,
it_name,
it_amount,
it_amount2,
it_amount3,
@ -153,10 +153,10 @@ function write_search_save($save)
it_type3,
it_type4,
it_type5
from $g4[yc4_item_table] where it_id = '{$save[it_id][$i]}' ";
from {$g4['yc4_item_table']} where it_id = '{$save['it_id'][$i]}' ";
$row = sql_fetch($sql);
$image = get_it_image("$row[it_id]_s", (int)($default[de_simg_width] / $image_rate), (int)($default[de_simg_height] / $image_rate), $row[it_id]);
$image = get_it_image("{$row['it_id']}_s", (int)($default['de_simg_width'] / $image_rate), (int)($default['de_simg_height'] / $image_rate), $row['it_id']);
if ($i > 0)
echo "<tr><td height=1></td><td bgcolor=#CCCCCC colspan=3></td></tr>";
@ -165,14 +165,14 @@ function write_search_save($save)
<tr>
<td align=center style='padding-top:7px; padding-bottom:7px;'>$image</td>
<td>&nbsp;".it_name_icon($row)."</td>
<!-- <td align=right class=amount>".display_amount($row[it_amount])."&nbsp;</td> -->
<td align=right class=amount>".display_amount(get_amount($row), $row[it_tel_inq])."&nbsp;</td>
<td align=right>".display_point($row[it_point])."&nbsp;</td>
<!-- <td align=right class=amount>".display_amount($row['it_amount'])."&nbsp;</td> -->
<td align=right class=amount>".display_amount(get_amount($row), $row['it_tel_inq'])."&nbsp;</td>
<td align=right>".display_point($row['it_point'])."&nbsp;</td>
</tr>";
}
}
echo "<tr><td colspan=4 height=1 bgcolor=#CCCCCC></td></tr>";
echo "</table><br><br>\n";
}
include_once("./_tail.php");
include_once('./_tail.php');
?>

View File

@ -1,15 +1,15 @@
<?
include_once("./_common.php");
include_once('./_common.php');
// 상품이미지 사이즈(폭, 높이)를 몇배 축소 할것인지를 설정
// 0 으로 설정하면 오류남 : 기본 2
$image_rate = 2;
$g4[title] = "상품 검색";
include_once("./_head.php");
$g4['title'] = "상품 검색";
include_once('./_head.php');
?>
<img src="<?=$g4[shop_img_path]?>/top_search.gif" border="0"><p>
<img src="<?=G4_SHOP_URL?>/img/top_search.gif" border="0"><p>
<table width=100% cellpadding=0 cellspacing=0 align=center border=0>
<tr>
@ -19,13 +19,13 @@ include_once("./_head.php");
<?
// QUERY 문에 공통적으로 들어가는 내용
// 상품명에 검색어가 포한된것과 상품판매가능인것만
$sql_common = " from $g4[yc4_item_table] a,
$g4[yc4_category_table] b
$sql_common = " from {$g4['yc4_item_table']} a,
{$g4['yc4_category_table']} b
where a.ca_id = b.ca_id
and ( a.it_name like '%$search_str%' or
a.it_basic like '%$search_str%' or
a.it_explan like '%$search_str%' )
and a.it_use = 1
and a.it_use = 1
and b.ca_use = 1 ";
// 분류선택이 있다면 특정 분류만
@ -35,9 +35,9 @@ include_once("./_head.php");
// 검색된 내용이 몇행인지를 얻는다
$sql = " select COUNT(*) as cnt $sql_common ";
$row = sql_fetch($sql);
$total_count = $row[cnt];
$total_count = $row['cnt'];
$rows = $config[cf_page_rows];
$rows = $config['cf_page_rows'];
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
@ -48,23 +48,23 @@ include_once("./_head.php");
// write_serarch_save() 함수가 임시배열에 있는 내용을 출력함
if ($total_count > 0) {
unset($save); // 임시 저장 배열
$sql = " select a.ca_id,
$sql = " select a.ca_id,
a.it_id
$sql_common
order by a.ca_id, a.it_id desc
limit $from_record, $rows ";
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++) {
if ($save[ca_id] != $row[ca_id]) {
if ($save[ca_id]) {
if ($save['ca_id'] != $row['ca_id']) {
if ($save['ca_id']) {
write_search_save($save);
unset($save);
}
$save[ca_id] = $row[ca_id];
$save[cnt] = 0;
$save['ca_id'] = $row['ca_id'];
$save['cnt'] = 0;
}
$save[it_id][$save[cnt]] = $row[it_id];
$save[cnt]++;
$save['it_id'][$save['cnt']] = $row['it_id'];
$save['cnt']++;
}
mysql_free_result($result);
write_search_save($save);
@ -75,11 +75,11 @@ include_once("./_head.php");
</table>
<?
function write_search_save($save)
function write_search_save($save)
{
global $g4, $search_str , $default , $image_rate , $cart_dir;
$sql = " select ca_name from $g4[yc4_category_table] where ca_id = '$save[ca_id]' ";
$sql = " select ca_name from {$g4['yc4_category_table']} where ca_id = '{$save['ca_id']}' ";
$row = sql_fetch($sql);
echo "
@ -90,17 +90,17 @@ function write_search_save($save)
<colgroup width=100>
<tr><td colspan=4 height=2 bgcolor=#0E87F9></td></tr>
<tr>
<td colspan=2 height='28'>&nbsp;<b><a href='./list.php?ca_id={$save[ca_id]}'>$row[ca_name]</a></b></td>
<td colspan=2 height='28'>&nbsp;<b><a href='./list.php?ca_id={$save['ca_id']}'>{$row['ca_name']}</a></b></td>
<td align=center>판매가격</td>
<td align=center>포인트</td>
</tr>
<tr><td colspan=4 height=1 bgcolor=#CCCCCC></td></tr>
";
for ($i=0; $i<$save[cnt]; $i++)
for ($i=0; $i<$save['cnt']; $i++)
{
$sql = " select it_id,
it_name,
it_name,
it_amount,
it_amount2,
it_amount3,
@ -111,10 +111,10 @@ function write_search_save($save)
it_type3,
it_type4,
it_type5
from $g4[yc4_item_table] where it_id = '{$save[it_id][$i]}' ";
from {$g4['yc4_item_table']} where it_id = '{$save['it_id'][$i]}' ";
$row = sql_fetch($sql);
$image = get_it_image("$row[it_id]_s", (int)($default[de_simg_width] / $image_rate), (int)($default[de_simg_height] / $image_rate), $row[it_id]);
$image = get_it_image("{$row['it_id']}_s", (int)($default['de_simg_width'] / $image_rate), (int)($default['de_simg_height'] / $image_rate), $row['it_id']);
if ($i > 0)
echo "<tr><td height=1></td><td bgcolor=#CCCCCC colspan=3></td></tr>";
@ -123,16 +123,16 @@ function write_search_save($save)
<tr>
<td align=center style='padding-top:7px; padding-bottom:7px;'>$image</td>
<td>&nbsp;".it_name_icon($row)."</td>
<!-- <td align=right class=amount>".display_amount($row[it_amount])."&nbsp;</td> -->
<td align=right class=amount>".display_amount(get_amount($row), $row[it_tel_inq])."&nbsp;</td>
<td align=right>".display_point($row[it_point])."&nbsp;</td>
<!-- <td align=right class=amount>".display_amount($row['it_amount'])."&nbsp;</td> -->
<td align=right class=amount>".display_amount(get_amount($row), $row['it_tel_inq'])."&nbsp;</td>
<td align=right>".display_point($row['it_point'])."&nbsp;</td>
</tr>";
}
}
echo "<tr><td colspan=4 height=1 bgcolor=#CCCCCC></td></tr>";
echo "</table><br><br>\n";
}
echo get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?search_str=$search_str&page=");
echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?search_str=$search_str&page=");
include_once("./_tail.php");
include_once('./_tail.php');
?>

View File

@ -1,15 +1,15 @@
<?
include_once("./_common.php");
include_once('./_common.php');
// 상품이미지 사이즈(폭, 높이)를 몇배 축소 할것인지를 설정
// 0 으로 설정하면 오류남 : 기본 2
$image_rate = 2;
$g4[title] = "상품 검색";
include_once("./_head.php");
$g4['title'] = '상품 검색';
include_once('./_head.php');
?>
<img src="<?=$g4[shop_img_path]?>/top_search.gif" border="0"><p>
<img src="<?=G4_SHOP_URL?>/img/top_search.gif" border="0"><p>
<table width=100% cellpadding=0 cellspacing=0 align=center border=0>
<tr>
@ -19,14 +19,14 @@ include_once("./_head.php");
<?
// QUERY 문에 공통적으로 들어가는 내용
// 상품명에 검색어가 포한된것과 상품판매가능인것만
$sql_common = " from $g4[yc4_item_table] a,
$g4[yc4_category_table] b
$sql_common = " from {$g4['yc4_item_table']} a,
{$g4['yc4_category_table']} b
where a.ca_id=b.ca_id
and a.it_use = 1
and a.it_use = 1
and b.ca_use = 1
/* 중복검색에 대한 오류로 인해 막음 : where (a.ca_id=b.ca_id or a.ca_id2=b.ca_id or a.ca_id3=b.ca_id) */ ";
if ($search_str) {
$sql_common .= " and ( a.it_id like '$search_str%' or
$sql_common .= " and ( a.it_id like '$search_str%' or
a.it_name like '%$search_str%' or
a.it_basic like '%$search_str%' or
a.it_explan like '%$search_str%' ) ";
@ -39,36 +39,36 @@ include_once("./_head.php");
// 검색된 내용이 몇행인지를 얻는다
$sql = " select COUNT(*) as cnt $sql_common ";
$row = sql_fetch($sql);
$total_count = $row[cnt];
$total_count = $row['cnt'];
echo "&nbsp;&nbsp; 입력하신 검색어로 총 <b>{$total_count}건</b>의 상품이 검색 되었습니다.<br><br>";
// 임시배열에 저장해 놓고 분류별로 출력한다.
// write_serarch_save() 함수가 임시배열에 있는 내용을 출력함
if ($total_count > 0) {
// 인기검색어
$sql = " insert into $g4[popular_table]
$sql = " insert into {$g4['popular_table']}
set pp_word = '$search_str',
pp_date = '$g4[time_ymd]',
pp_ip = '$_SERVER[REMOTE_ADDR]' ";
pp_date = '"G4_TIME_YMD."',
pp_ip = '{$_SERVER['REMOTE_ADDR']}' ";
sql_query($sql, FALSE);
unset($save); // 임시 저장 배열
$sql = " select a.ca_id,
$sql = " select a.ca_id,
a.it_id
$sql_common
order by a.ca_id, a.it_id desc ";
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++) {
if ($save[ca_id] != $row[ca_id]) {
if ($save[ca_id]) {
if ($save['ca_id'] != $row['ca_id']) {
if ($save['ca_id']) {
write_search_save($save);
unset($save);
}
$save[ca_id] = $row[ca_id];
$save[cnt] = 0;
$save['ca_id'] = $row['ca_id'];
$save['cnt'] = 0;
}
$save[it_id][$save[cnt]] = $row[it_id];
$save[cnt]++;
$save['it_id'][$save['cnt']] = $row['it_id'];
$save['cnt']++;
}
mysql_free_result($result);
write_search_save($save);
@ -79,11 +79,11 @@ include_once("./_head.php");
</table>
<?
function write_search_save($save)
function write_search_save($save)
{
global $g4, $search_str , $default , $image_rate , $cart_dir;
$sql = " select ca_name from $g4[yc4_category_table] where ca_id = '$save[ca_id]' ";
$sql = " select ca_name from {$g4['yc4_category_table']} where ca_id = '{$save['ca_id']}' ";
$row = sql_fetch($sql);
/*
@ -107,26 +107,26 @@ function write_search_save($save)
$ca_temp = "";
if(strlen($save['ca_id']) > 2) // 중분류 이하일 경우
{
$sql2 = " select ca_name from $g4[yc4_category_table] where ca_id='".substr($save[ca_id],0,2)."' ";
$sql2 = " select ca_name from {$g4['yc4_category_table']} where ca_id='".substr($save['ca_id'],0,2)."' ";
$row2 = sql_fetch($sql2);
$ca_temp = "<b><a href='./list.php?ca_id=".substr($save[ca_id],0,2)."'>$row2[ca_name]</a></b> &gt; ";
$ca_temp = "<b><a href=\"./list.php?ca_id=".substr($save['ca_id'],0,2)."\">{$row2['ca_name']}</a></b> &gt; ";
}
$list_mod = 4;
$td_width = (int)(100 / $list_mod);
$img_width = $default[de_simg_width];
$img_height = $default[de_simg_height];
$img_width = $default['de_simg_width'];
$img_height = $default['de_simg_height'];
echo "
<table width=98% cellpadding=0 cellspacing=0 border=0 align=center>
<tr>
<td colspan='$list_mod' height='28'>&nbsp;{$ca_temp}<b><a href='./list.php?ca_id={$save[ca_id]}'>$row[ca_name]</a></b> ($save[cnt])</td>
<td colspan='$list_mod' height='28'>&nbsp;{$ca_temp}<b><a href='./list.php?ca_id={$save['ca_id']}'>{$row['ca_name']}</a></b> ({$save['cnt']})</td>
</tr>
<tr><td colspan='$list_mod' height=1 bgcolor=#CCCCCC></td></tr>";
for ($i=0; $i<$save[cnt]; $i++) {
for ($i=0; $i<$save['cnt']; $i++) {
$sql = " select it_id,
it_name,
it_name,
it_amount,
it_amount2,
it_amount3,
@ -139,15 +139,15 @@ function write_search_save($save)
it_type3,
it_type4,
it_type5
from $g4[yc4_item_table] where it_id = '{$save[it_id][$i]}' ";
from {$g4['yc4_item_table']} where it_id = '{$save['it_id'][$i]}' ";
$row = sql_fetch($sql);
//$image = get_it_image("$row[it_id]_s", (int)($default[de_simg_width] / $image_rate), (int)($default[de_simg_height] / $image_rate), $row[it_id]);
if ( ($i>0) && (($i%$list_mod)==0) )
if ( ($i>0) && (($i%$list_mod)==0) )
{
echo "</tr>\n\n";
echo "<tr><td colspan='$list_mod' background='$g4[shop_img_path]/line_h.gif' height=1></td></tr>\n\n";
echo "<tr><td colspan=\"$list_mod\" background=\"".G4_SHOP_URL."/img/line_h.gif\" height=\"1\"></td></tr>\n\n";
echo "<tr>\n";
}
@ -155,20 +155,20 @@ function write_search_save($save)
<td width='{$td_width}%' align=center valign=top>
<br>
<table width=98% cellpadding=2 cellspacing=0>
<tr><td align=center>".get_it_image($row[it_id]."_s", $img_width , $img_height, $row[it_id])."</td></tr>
<tr><td align=center>".get_it_image($row['it_id']."_s", $img_width , $img_height, $row['it_id'])."</td></tr>
<tr><td align=center>".it_name_icon($row)."</td></tr>";
if ($row[it_cust_amount] && !$row[it_gallery])
echo "<tr><td align=center><strike>".display_amount($row[it_cust_amount])."</strike></td></tr>";
if ($row['it_cust_amount'] && !$row['it_gallery'])
echo "<tr><td align=center><strike>".display_amount($row['it_cust_amount'])."</strike></td></tr>";
echo "<tr><td align=center>";
if (!$row[it_gallery])
echo "<span class=amount>".display_amount(get_amount($row), $row[it_tel_inq])."</span>";
if (!$row['it_gallery'])
echo "<span class=amount>".display_amount(get_amount($row), $row['it_tel_inq'])."</span>";
echo "</td></tr></table></td>";
}
}
// 나머지 td 를 채운다.
if (($cnt = $i%$list_mod) != 0)
@ -179,5 +179,5 @@ function write_search_save($save)
echo "</table><br><br>\n";
}
include_once("./_tail.php");
include_once('./_tail.php');
?>

View File

@ -1,16 +1,16 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$test = "";
if ($default['de_card_test']) {
if ($default['de_escrow_use'] == 1) {
if ($default['de_escrow_use'] == 1) {
// 일반결제 테스트
$default['de_kcp_mid'] = "T0007";
$default['de_kcp_mid'] = "T0007";
$default['de_kcp_site_key'] = '2.mDT7R4lUIfHlHq4byhYjf__';
}
else {
}
else {
// 에스크로결제 테스트
$default['de_kcp_mid'] = "T0000";
$default['de_kcp_mid'] = "T0000";
$default['de_kcp_site_key'] = '3grptw1.zW0GSo4PQdaGvsF__';
}
@ -31,18 +31,18 @@ else
* hashdata 암호화 적용( site_cd + ordr_idxx + good_mny + timestamp + site_key )
* site_cd : 사이트코드
* ordr_idxx : 주문번호
* good_mny : 결제금액
* good_mny : 결제금액
* timestamp : 타임스탬프
* site_key : 사이트키
*
* hashdata 검증을 위한
* hashdata 검증을 위한
* KCP에서 발급한 사이트키(site_key)를 반드시 입력해 주시기 바랍니다.
*/
*/
$site_cd = trim($default['de_kcp_mid']);
$ordr_idxx = trim($od['od_id']);
$good_mny = (int)$settle_amount;
$timestamp = $g4['server_time'];
$timestamp = G4_SERVER_TIME;
$serverkey = $_SERVER['SERVER_SOFTWARE'].$_SERVER['SERVER_ADDR']; // 사용자가 알수 없는 고유한 값들
//echo $serverkey;
$hashdata = md5($site_cd.$ordr_idxx.$good_mny.$timestamp.$serverkey);
@ -54,7 +54,7 @@ $hashdata = md5($site_cd.$ordr_idxx.$good_mny.$timestamp.$serverkey);
StartSmartUpdate();
/*
function OpenWindow()
function OpenWindow()
{
var form = document.order_info;
@ -81,7 +81,7 @@ function jsf__pay( form )
openwin = window.open( './kcp/proc_win.php', 'proc_win', 'width=420, height=100, top=300, left=300' );
RetVal = true ;
}
else
{
/* res_cd와 res_msg변수에 해당 오류코드와 오류메시지가 설정됩니다.
@ -122,10 +122,10 @@ switch ($settle_case)
break;
}
?>
<!--
<!--
2012.08.18 부터 개정 시행되는 '전자상거래 등에서의 소비자보호에 관한 법률'에 따른 코드 변경
이용기간이 제한되는 컨텐츠 상품이나 정기 과금 상품 등에 한하여 '용역의 제공기간'을
표기/적용하여야 하며 이와 무관한 실물 배송상품 등의 결제에는 해당되지 않습니다.
이용기간이 제한되는 컨텐츠 상품이나 정기 과금 상품 등에 한하여 '용역의 제공기간'을
표기/적용하여야 하며 이와 무관한 실물 배송상품 등의 결제에는 해당되지 않습니다.
0 : 일반결제
good_expr의 나머지 적용 방식에 대해서는 KCP에서 제공하는 매뉴얼을 참고해 주세요.
-->
@ -166,13 +166,13 @@ $sql = " select a.ct_id,
b.it_id,
b.it_name,
b.ca_id
from $g4[yc4_cart_table] a,
$g4[yc4_item_table] b
from {$g4['yc4_cart_table']} a,
{$g4['yc4_item_table']} b
where a.on_uid = '$s_on_uid'
and a.it_id = b.it_id
order by a.ct_id ";
$result = sql_query($sql);
for ($i=1; $row=mysql_fetch_array($result); $i++)
for ($i=1; $row=mysql_fetch_array($result); $i++)
{
if ($i>1)
$good_info .= chr(30);
@ -192,7 +192,7 @@ for ($i=1; $row=mysql_fetch_array($result); $i++)
<input type='hidden' name='site_cd' value='<?=$site_cd?>'>
<!-- MPI 결제창에서 사용 한글 사용 불가 -->
<input type='hidden' name='site_name' value='<?=$default[de_admin_company_name]?>'>
<input type='hidden' name='site_name' value='<?=$default['de_admin_company_name']?>'>
<!-- http://testpay.kcp.co.kr/Pay/Test/site_key.jsp 로 접속하신후 부여받은 사이트코드를 입력하고 나온 값을 입력하시기 바랍니다. -->
<input type='hidden' name='site_key' value='<?=$default['de_kcp_site_key']?>'>
@ -207,7 +207,7 @@ for ($i=1; $row=mysql_fetch_array($result); $i++)
<input type='hidden' name='escw_used' value='Y'>
<!-- 에스크로 결제처리 모드 : 에스크로: Y, 일반: N, KCP 설정 조건: O -->
<input type='hidden' name='pay_mod' value='<?=($default[de_escrow_use]?"O":"N");?>'>
<input type='hidden' name='pay_mod' value='<?=($default['de_escrow_use']?"O":"N");?>'>
<!-- 배송 소요일 : 예상 배송 소요일을 입력 -->
<input type='hidden' name='deli_term' value='03'>
@ -249,5 +249,5 @@ for ($i=1; $row=mysql_fetch_array($result); $i++)
<!-- 결제제외 카드 -->
<input type="hidden" name="not_used_card" value="">
<p align="center"><input type="image" src="<?=$g4['shop_img_path']?>/btn_settle.gif" border="0" onclick="return jsf__pay(this.form);" /></p>
<p align="center"><input type="image" src="<?=G4_SHOP_URL?>/img/btn_settle.gif" border="0" onclick="return jsf__pay(this.form);" /></p>
</form>

View File

@ -1,14 +1,14 @@
<?
include_once("./_common.php");
include_once("$g4[path]/lib/etc.lib.php");
include_once("$g4[path]/lib/mailer.lib.php");
include_once('./_common.php');
include_once(G4_LIB_PATH.'/etc.lib.php');
include_once(G4_LIB_PATH..'/mailer.lib.php');
/*------------------------------------------------------------------------------
※ KCP 에서 가맹점의 결과처리 페이지로 데이터를 전송할 때에, 아래와 같은
IP 에서 전송을 합니다. 따라서 가맹점측께서 전송받는 데이터에 대해 KCP
에서 전송된 건이 맞는지 체크하는 부분을 구현할 때에, 아래의 IP 에 대해
REMOTE ADDRESS 체크를 하여, 아래의 IP 이외의 다른 경로를 통해서 전송된
데이터에 대해서는 결과처리를 하지 마시기 바랍니다.
※ KCP 에서 가맹점의 결과처리 페이지로 데이터를 전송할 때에, 아래와 같은
IP 에서 전송을 합니다. 따라서 가맹점측께서 전송받는 데이터에 대해 KCP
에서 전송된 건이 맞는지 체크하는 부분을 구현할 때에, 아래의 IP 에 대해
REMOTE ADDRESS 체크를 하여, 아래의 IP 이외의 다른 경로를 통해서 전송된
데이터에 대해서는 결과처리를 하지 마시기 바랍니다.
------------------------------------------------------------------------------*/
switch ($_SERVER['REMOTE_ADDR']) {
case '203.238.36.58' :
@ -24,7 +24,7 @@ switch ($_SERVER['REMOTE_ADDR']) {
. "POST[" . serialize($_POST) . "]"
. "COOKIE[" . serialize($_COOKIE) . "]"
. "SESSION[" . serialize($_SESSION) . "]";
mailer('경고', 'waring', $super_admin[mb_email], '올바르지 않은 접속 보고', "$_SERVER[PHP_SELF]$_SERVER[REMOTE_ADDR]$g4[time_ymdhis] 에 접속을 시도하였습니다.\n\n" . $egpcs_str, 2);
mailer('경고', 'waring', $super_admin['mb_email'], '올바르지 않은 접속 보고', "{$_SERVER['PHP_SELF']}{$_SERVER['REMOTE_ADDR']}".G4_TIME_YMDHIS." 에 접속을 시도하였습니다.\n\n" . $egpcs_str, 2);
exit;
}
@ -140,7 +140,7 @@ switch ($_SERVER['REMOTE_ADDR']) {
if ( $tx_cd == "TX00" )
{
// 주문서 UPDATE
$sql = " update $g4[yc4_order_table]
$sql = " update {$g4['yc4_order_table']}
set od_receipt_bank = '$ipgm_mnyx',
od_bank_time = '$tx_tm'
where od_id = '$order_no'

View File

@ -1,17 +1,17 @@
<?
include_once("./_common.php");
include_once('./_common.php');
$html_title = "결제 결과";
include_once("./_head.php");
$html_title = '결제 결과';
include_once('./_head.php');
if (get_session('ss_temp_on_uid') != $on_uid)
alert("정상적인 방법으로 확인하실 수 있습니다.", $g4[path]);
alert('정상적인 방법으로 확인하실 수 있습니다.', G4_URL);
$sql = " select * from $g4[yc4_card_history_table] where on_uid = '$on_uid' ";
$sql = " select * from {$g4['yc4_card_history_table']} where on_uid = '$on_uid' ";
$cd = sql_fetch($sql);
if ($cd[cd_id] == "")
alert("값이 제대로 전달되지 않았습니다.");
if ($cd['cd_id'] == "")
alert('값이 제대로 전달되지 않았습니다.');
/*
// 포인트 결제를 했다면 실제 포인트 결제한 것으로 수정합니다.
@ -24,34 +24,34 @@ if ($row[od_receipt_point] == 0 && $row[od_temp_point] != 0)
}
*/
$sql = " select * from $g4[yc4_order_table] where on_uid = '$on_uid' ";
$sql = " select * from {$g4['yc4_order_table']} where on_uid = '$on_uid' ";
$od = sql_fetch($sql);
// 이곳에서 정상 결제되었다는 메일도 같이 발송합니다.
@extract($od);
$tmp_on_uid = $on_uid;
if ($od[od_settle_case] == '가상계좌')
if ($od['od_settle_case'] == '가상계좌')
$od_receipt_bank = $od_temp_bank;
include_once("ordermail1.inc.php");
include_once("ordermail2.inc.php");
if ($od[od_settle_case] == '가상계좌')
if ($od['od_settle_case'] == '가상계좌')
{
$msg_settle_amount = '결제하실 금액';
$settle_amount = $od[od_temp_bank];
$settle_amount = $od['od_temp_bank'];
$msg_trade_time = '처리일시';
}
else
{
$msg_settle_amount = '결제금액';
$settle_amount = $cd[cd_amount];
$settle_amount = $cd['cd_amount'];
$msg_trade_time = '결제일시';
}
?>
<img src="<?=$g4[shop_img_path]?>/top_orderconfirm.gif" border="0"><p>
<img src="<?=G4_SHOP_URL?>/img/top_orderconfirm.gif" border="0"><p>
<table width=500 align=center cellpadding=0 cellspacing=0>
<tr><td align=center height=50><!-- 결제를 정상적으로 처리하였습니다. --></td></tr>
@ -60,28 +60,28 @@ else
<tr>
<td style='padding-left:10px'>
<table cellpadding=5>
<tr><td> · 주문번호</td><td>: <?=$cd[od_id]?></td></tr>
<? if ($od[od_settle_case] == '신용카드') { ?><tr><td width=100> · 승인번호</td><td><font color="#7f3ca2">: <b><?=$cd[cd_app_no]?></b></font></td></tr><? } ?>
<tr><td> · 주문번호</td><td>: <?=$cd['od_id']?></td></tr>
<? if ($od['od_settle_case'] == '신용카드') { ?><tr><td width=100> · 승인번호</td><td><font color="#7f3ca2">: <b><?=$cd['cd_app_no']?></b></font></td></tr><? } ?>
<tr><td> · <?=$msg_settle_amount?></td><td>: <span class=amount><?=display_amount($settle_amount)?></span></td></tr>
<? if ($od[od_settle_case] == '가상계좌') { ?><tr><td width=100> · 계좌번호</td><td><font color="#7f3ca2">: <b><?=$od[od_bank_account]?></b></font></td></tr><? } ?>
<? if ($od[od_settle_case] == '휴대폰') { ?><tr><td width=100> · 휴대폰번호</td><td>: <?=$od[od_escrow2]?></td></tr><? } ?>
<tr><td> · <?=$msg_trade_time?></td><td>: <?=$cd[cd_trade_ymd]?> <?=$cd[cd_trade_hms]?></td></tr>
<? if ($od['od_settle_case'] == '가상계좌') { ?><tr><td width=100> · 계좌번호</td><td><font color="#7f3ca2">: <b><?=$od['od_bank_account']?></b></font></td></tr><? } ?>
<? if ($od['od_settle_case'] == '휴대폰') { ?><tr><td width=100> · 휴대폰번호</td><td>: <?=$od['od_escrow2']?></td></tr><? } ?>
<tr><td> · <?=$msg_trade_time?></td><td>: <?=$cd['cd_trade_ymd']?> <?=$cd['cd_trade_hms']?></td></tr>
</table>
</td></tr>
<tr><td height=2 bgcolor=#94a9e7></td></tr>
</table><br><br>
<? if ($od[od_settle_case] == '가상계좌' && $default[de_card_test] && $is_admin) { ?>
<? if ($od['od_settle_case'] == '가상계좌' && $default['de_card_test'] && $is_admin) { ?>
<center>
<div style="width:500px">
<fieldset>
<legend>모의입금처리</legend>
<p>관리자가 가상계좌 테스트를 한 경우에만 보입니다.</p>
<form method="post" action="http://devadmin.kcp.co.kr/Modules/Noti/TEST_Vcnt_Noti_Proc.jsp" target="_blank">
<input type="text" name="e_trade_no" value="<?=$od[od_escrow1]?>" size="80"><br />
<input type="text" name="deposit_no" value="<?=preg_replace("/^(.*\s)/", "", $od[od_bank_account])?>" size="80"><br />
<input type="text" name="req_name" value="<?=$od[od_name]?>" size="80"><br />
<input type="text" name="noti_url" value="<?=$g4[shop_url]?>/settle_kcp_common.php" size="80"><br /><br />
<input type="text" name="e_trade_no" value="<?=$od['od_escrow1']?>" size="80"><br />
<input type="text" name="deposit_no" value="<?=preg_replace("/^(.*\s)/", "", $od['od_bank_account'])?>" size="80"><br />
<input type="text" name="req_name" value="<?=$od['od_name']?>" size="80"><br />
<input type="text" name="noti_url" value="<?=G4_SHOP_URL?>/settle_kcp_common.php" size="80"><br /><br />
<input type="submit" value="입금통보 테스트">
</form>
</fieldset>
@ -90,9 +90,9 @@ else
<? } ?>
<p align=center>
<a href='<?="$g4[shop_path]/orderinquiryview.php?od_id=$od[od_id]&on_uid=$od[on_uid]";?>'><img src='<?=$g4[shop_img_path]?>/btn_confirm.gif' border=0></a>
<a href='<?=G4_SHOP_URL."/orderinquiryview.php?od_id={$od['od_id']}&on_uid={$od['on_uid']}";?>'><img src='<?=G4_SHOP_URL?>/img/btn_confirm.gif' border=0></a>
<!-- <a href="javascript:;" onclick="window.open('http://admin.kcp.co.kr/Modules/Sale/Card/ADSA_CARD_BILL_Receipt.jsp?c_trade_no=<?=$_POST[trace_no]?>', 'winreceipt', 'width=620,height=670')">영수증 출력</a> -->
<?
include_once("./_tail.php");
include_once('./_tail.php');
?>

143
shop/shop.head.php Normal file
View File

@ -0,0 +1,143 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once(G4_PATH.'/head.sub.php');
include_once(G4_LIB_PATH.'/outlogin.lib.php');
include_once(G4_LIB_PATH.'/poll.lib.php');
include_once(G4_LIB_PATH.'/visit.lib.php');
include_once(G4_LIB_PATH.'/connect.lib.php');
include_once(G4_LIB_PATH.'/popular.lib.php');
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
$table_width = 900;
//print_r2($g4);
//$dir = dirname($HTTP_SERVER_VARS["PHP_SELF"]);
?>
<style>
.amount { color:#2266BB; font-weight:bold; font-family:Verdana; }
.c1 { background-color:#94D7E7; }
.c2 { background-color:#E7F3F7; }
</style>
<!-- 전체 -->
<table align=center cellpadding=0 cellspacing=0 border=0>
<tr>
<td width='900'>
<!-- 오늘본 상품 {-->
<div style="position:relative">
<div style='position:absolute; top:70px; left:<?=($table_width+10)?>px'>
<?include(G4_SHOP_PATH.'/boxtodayview.inc.php');?>
</div>
</div>
<!-- 오늘본 상품 }-->
<!-- 상단 -->
<table align=center width='<?=$table_width?>' cellpadding=0 cellspacing=0 border=0>
<tr><td colspan=2 height=4 bgcolor=#DCDCDB></td></tr>
<tr>
<td rowspan=2 align=left width=200 height=60><a href='<?=G4_SHOP_URL?>/'><img src='<?=G4_DATA_URL?>/common/logo_img' border=0></a></td>
<td align=right class=small>
<? if ($is_member) { ?>
<a href='<?=G4_BBS_URL?>/logout.php'>로그아웃</a> |
<a href='<?=G4_BBS_URL?>/member_confirm.php?url=register_form.php'>정보수정</a> |
<? } else { ?>
<a href='<?=G4_BBS_URL?>/login.php?url=<?=$urlencode?>'>로그인</a> |
<a href='<?=G4_BBS_URL?>/register.php'>회원가입</a> |
<? } ?>
<a href='<?=G4_SHOP_URL?>/cart.php'>장바구니<span class=small>(<?=get_cart_count(get_session('ss_on_uid'));?>)</span></a> |
<a href='<?=G4_SHOP_URL?>/orderinquiry.php'>주문조회</a> |
<a href='<?=G4_SHOP_URL?>/faq.php'>FAQ</a> |
<a href='<?=G4_SHOP_URL?>/itemuselist.php'>사용후기</a> |
<a href='<?=G4_SHOP_URL?>/mypage.php'>마이페이지</a>&nbsp;
</td>
</tr>
<tr>
<td colspan=2 align=right height=30>
<!-- 검색 시작 -->
<form name='frmsearch1' style='margin:0px;' onsubmit='return search_submit(this);'>
<input type='hidden' name='sfl' value='wr_subject||wr_content'>
<input type='hidden' name='sop' value='and'>
<input type='hidden' name='stx' value=''>
<select name='search_flag' id='search_flag' class='small'>
<option value='상품'>상품
<option value='게시판'>게시판
</select>
<input type=text name=search_str class='ed' value='<?=stripslashes(get_text($search_str))?>'>
<input type=image src='<?=G4_IMG_URL?>/btn_search.gif' border=0 align=absmiddle>&nbsp;
</form>
<script>
function search_submit(f) {
if (f.search_flag.value == '상품') {
f.action = '<?=G4_SHOP_URL?>/search.php';
} else {
f.stx.value = f.search_str.value;
f.action = '<?=G4_BBS_URL?>/search.php';
}
}
<?
if ($search_flag) {
echo "document.getElementById('search_flag').value = '$search_flag';";
}
?>
</script>
<!-- 검색 끝 -->
</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#DCDCDC></td></tr>
<tr><td colspan=2 height=5></td></tr>
</table>
<!-- 상단끝 -->
<!-- 중간 -->
<table align=center width='<?=$table_width?>' cellpadding=0 cellspacing=0 border=0>
<tr>
<td align=center valign=top width=185>
<?=outlogin("shop_outlogin"); // 외부 로그인 ?>
<br>
<!-- 상품분류 -->
<table bgcolor=#CCCCCC width=185 cellpadding=1 cellspacing=0>
<tr><td><?include_once(G4_SHOP_PATH.'/boxcategory.inc.php');?></td></tr>
</table><br>
<!-- 이벤트 -->
<table bgcolor=#CCCCCC width=185 cellpadding=1 cellspacing=0>
<tr><td><?include_once(G4_SHOP_PATH.'/boxevent.inc.php');?></td></tr>
</table><br>
<!-- 커뮤니티 -->
<table bgcolor=#CCCCCC width=185 cellpadding=1 cellspacing=0>
<tr><td><?include_once(G4_SHOP_PATH.'/boxcommunity.inc.php');?></td></tr>
</table><br>
<!-- 장바구니 -->
<table cellpadding=1 cellspacing=0 bgcolor=#D2D2D2>
<tr><td><?include_once(G4_SHOP_PATH.'/boxcart.inc.php');?></td></tr>
</table><br>
<!-- 보관함 -->
<table cellpadding=1 cellspacing=0 bgcolor=#D2D2D2>
<tr><td><?include_once(G4_SHOP_PATH.'/boxwish.inc.php');?></td></tr>
</table><br>
<!-- 왼쪽 배너 -->
<?=display_banner('왼쪽');?><br>
</td>
<td width=5></td>
<td valign=top width='<?=((int)$table_width-190)?>'>

60
shop/shop.tail.php Normal file
View File

@ -0,0 +1,60 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$admin = get_admin("super");
// 사용자 화면 우측과 하단을 담당하는 페이지입니다.
// 우측, 하단 화면을 꾸미려면 이 파일을 수정합니다.
?>
</td></tr></table>
<!-- 중간끝 -->
<!-- 하단 -->
<table align=center width='<?=$table_width?>' cellpadding=0 cellspacing=0>
<tr>
<td width=180 bgcolor=#EBEBEB><a href='<?=G4_SHOP_URL?>/'><img src='<?=G4_DATA_URL?>/common/logo_img' border=0 style="filter:gray();"></a></td>
<td><img src='<?=G4_SHOP_URL?>/img/tail_img01.gif'></td>
<td width=10></td>
<td><img src='<?=G4_SHOP_URL?>/img/tail_img02.gif'></td>
<td width=770 bgcolor=#EBEBEB style='padding-left:10px;'>
<table width=98% cellpadding=0 cellspacing=0 border=0>
<tr><td height=30>
<a href="<?=G4_SHOP_URL?>/content.php?co_id=company">회사소개</a> |
<a href="<?=G4_SHOP_URL?>/content.php?co_id=provision">서비스이용약관</a> |
<a href="<?=G4_SHOP_URL?>/content.php?co_id=privacy">개인정보 취급방침</a>
</td></tr>
<tr><td height=1 bgcolor=#CBCBCB></td></tr>
<tr><td height=60 style='line-height:150%'>
<FONT COLOR="#46808F">
<?=$default['de_admin_company_addr']?> /
전화 : <?=$default['de_admin_company_tel']?> /
팩스 : <?=$default['de_admin_company_fax']?> /
운영자 : <?=$admin['mb_name']?> <BR>
사업자 등록번호 : <?=$default['de_admin_company_saupja_no']?> /
대표 : <?=$default['de_admin_company_owner']?> /
개인정보관리책임자 : <?=$default['de_admin_info_name']?> <br>
통신판매업신고번호 : <?=$default['de_admin_tongsin_no']?>
<? if ($default['de_admin_buga_no']) echo " / 부가통신사업신고번호 : {$default['de_admin_buga_no']}"; ?>
<br>Copyright &copy; 2001-2013 <?=$default['de_admin_company_name']?>. All Rights Reserved. </FONT></td></tr></table>
</td>
</tr>
</table>
<!-- 하단끝 -->
<?
$sec = get_microtime() - $begin_time;
$file = $_SERVER['PHP_SELF'];
?>
</td>
</tr>
</table><br/>
<!-- 전체끝 -->
<?
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -1,9 +1,9 @@
<?
include_once("./_common.php");
include_once('./_common.php');
// 로그를 남김
$fp = fopen("$g4[path]/data/log/sms.log", "a+");
$msg = "$g4[time_ymdhis]|$_SERVER[REMOTE_ADDR]|return_value=$return_value|success_value=$success_value|fail_value=$fail_value|";
$fp = fopen(G4_DATA_PATH.'/log/sms.log', "a+");
$msg = G4_TIME_YMDHIS."|{$_SERVER['REMOTE_ADDR']}|return_value=$return_value|success_value=$success_value|fail_value=$fail_value|";
$msg .= "error_code=$error_code|error_msg=$error_msg|unique_num=$unique_num|";
$msg .= "process_type=$process_type|usrdata1=$usrdata1|usrdata2=$usrdata2|usrdata3=$usrdata3\n";
fwrite($fp, $msg);

View File

@ -1,20 +1,20 @@
<?
include_once("./_common.php");
include_once('./_common.php');
$g4[title] = "현금영수증 발행";
include_once("$g4[path]/head.sub.php");
$g4['title'] = "현금영수증 발행";
include_once(G4_PATH.'/head.sub.php');
$od = sql_fetch(" select * from $g4[yc4_order_table] where od_id = '$od_id' and on_uid = '$on_uid' ");
if (!$od)
$od = sql_fetch(" select * from {$g4['yc4_order_table']} where od_id = '$od_id' and on_uid = '$on_uid' ");
if (!$od)
die("주문서가 존재하지 않습니다.");
$goods = get_goods($od[on_uid]);
$goods_name = $goods[full_name];
$goods = get_goods($od['on_uid']);
$goods_name = $goods['full_name'];
//if ($goods[count] > 1) $goods_name .= ' 외 '.$goods[count].'건';
$trad_time = date("YmdHis");
$amt_tot = (int)$od[od_receipt_bank];
$amt_tot = (int)$od['od_receipt_bank'];
$amt_sup = (int)round(($amt_tot * 10) / 11);
$amt_svc = 0;
$amt_tax = (int)($amt_tot - $amt_sup);
@ -59,7 +59,7 @@ $amt_tax = (int)($amt_tot - $amt_sup);
return;
}
form.ordr_idxx.value = "<?=$od[od_id]?>";
form.ordr_idxx.value = "<?=$od['od_id']?>";
form.amt_tot.value = "<?=$amt_tot?>";
form.amt_sup.value = "<?=$amt_sup?>";
form.amt_svc.value = "<?=$amt_svc?>";
@ -155,9 +155,9 @@ $amt_tax = (int)($amt_tot - $amt_sup);
<input type="hidden" name="corp_type" value="0"> <!-- 사업자 구분 - 0:직접판매 , 1:입점몰판매 -->
<input type="hidden" name="ordr_idxx">
<input type="hidden" name="good_name" value="<?=addslashes($goods_name)?>">
<input type="hidden" name="buyr_name" value="<?=$od[od_name]?>">
<input type="hidden" name="buyr_mail" value="<?=$od[od_email]?>">
<input type="hidden" name="buyr_tel1" value="<?=$od[od_tel]?>">
<input type="hidden" name="buyr_name" value="<?=$od['od_name']?>">
<input type="hidden" name="buyr_mail" value="<?=$od['od_email']?>">
<input type="hidden" name="buyr_tel1" value="<?=$od['od_tel']?>">
<input type="hidden" name="trad_time" value="<?=$trad_time?>">
<input type="hidden" name="amt_tot">
@ -182,7 +182,7 @@ $amt_tax = (int)($amt_tot - $amt_sup);
<table width="90%" align="center">
<tr>
<td>주문 번호</td>
<td><?=$od[od_id]?></td>
<td><?=$od['od_id']?></td>
</tr>
<tr>
<td>상품 정보</td>
@ -190,15 +190,15 @@ $amt_tax = (int)($amt_tot - $amt_sup);
</tr>
<tr>
<td>주문자 이름</td>
<td><?=$od[od_name]?></td>
<td><?=$od['od_name']?></td>
</tr>
<tr>
<td>주문자 E-Mail</td>
<td><?=$od[od_email]?></td>
<td><?=$od['od_email']?></td>
</tr>
<tr>
<td>주문자 전화번호</td>
<td><?=$od[od_tel]?></td>
<td><?=$od['od_tel']?></td>
</tr>
<tr>
<td>&nbsp;</td>
@ -274,5 +274,5 @@ $amt_tax = (int)($amt_tot - $amt_sup);
</form>
<?
include_once("$g4[path]/tail.sub.php");
include_once(G4_PATH.'/tail.sub.php');
?>

View File

@ -1,14 +1,14 @@
<?
include_once("./_common.php");
include_once('./_common.php');
if (!$is_member)
goto_url("$g4[bbs_path]/login.php?url=".urlencode("$g4[shop_path]/mypage.php"));
goto_url(G4_BBS_URL."/login.php?url=".urlencode(G4_SHOP_URL.'/mypage.php'));
$g4[title] = "보관함";
include_once("./_head.php");
$g4['title'] = "보관함";
include_once('./_head.php');
?>
<img src="<?=$g4[shop_img_path]?>/top_wishlist.gif" border="0"><p>
<img src="<?=G4_SHOP_URL?>/img/top_wishlist.gif" border="0"><p>
<form name=fwishlist method=post action="" style="padding:0px;">
<input type=hidden name=w value="multi">
@ -24,10 +24,10 @@ include_once("./_head.php");
</tr>
<tr><td colspan=6 height=1 class=c1></td></tr>
<?
$sql = " select *
from $g4[yc4_wish_table] a,
$g4[yc4_item_table] b
where a.mb_id = '$member[mb_id]'
$sql = " select *
from {$g4['yc4_wish_table']} a,
{$g4['yc4_item_table']} b
where a.mb_id = '{$member['mb_id']}'
and a.it_id = b.it_id
order by a.wi_id desc ";
$result = sql_query($sql);
@ -44,32 +44,32 @@ for ($i=0; $row = mysql_fetch_array($result); $i++) {
$it_amount = get_amount($row);
if ($row[it_tel_inq]) $out_cd = "tel_inq";
if ($row['it_tel_inq']) $out_cd = "tel_inq";
if ($i > 0)
echo "<tr><td colspan=20 height=1 background='$g4[shop_img_path]/dot_line.gif'></td></tr>\n";
echo "<tr><td colspan=\"20\" height=\"1\" background=\"".G4_SHOP_URL."/dot_line.gif\"></td></tr>\n";
$image = get_it_image($row[it_id]."_s", 50, 50, $row[it_id]);
$image = get_it_image($row['it_id']."_s", 50, 50, $row['it_id']);
$s_del = "<a href='./wishupdate.php?w=d&wi_id=$row[wi_id]'><img src='$g4[shop_img_path]/btn_del.gif' border='0' align=absmiddle alt='삭제'></a>";
$s_del = "<a href=\"./wishupdate.php?w=d&wi_id={$row['wi_id']}\"><img src=\"".G4_SHOP_URL."/img/btn_del.gif\" border=\"0\" align=\"absmiddle\" alt=\"삭제\"></a>";
echo "<tr>\n";
echo "<td align=center style='padding-top:5px; padding-bottom:5px;'>$image</td>\n";
echo "<td><a href='./item.php?it_id=$row[it_id]'>".stripslashes($row[it_name])."</a></td>\n";
echo "<td align=center>$row[wi_time]</td>\n";
echo "<td><a href=\"./item.php?it_id={$row['it_id']}\">".stripslashes($row['it_name'])."</a></td>\n";
echo "<td align=center>{$row['wi_time']}</td>\n";
echo "<td align=center>";
// 품절검사
$it_stock_qty = get_it_stock_qty($row[it_id]);
if($it_stock_qty <= 0)
$it_stock_qty = get_it_stock_qty($row['it_id']);
if($it_stock_qty <= 0)
{
echo "<img src='$g4[shop_img_path]/icon_pumjul.gif' border=0 align=absmiddle>";
echo "<img src=\"".G4_SHOP_URL."/img/icon_pumjul.gif\" border=\"0\" align=\"absmiddle\">";
echo "<input type=hidden name=it_id[$i] >";
} else { //품절이 아니면 체크할수 있도록한다
echo "<input type=checkbox name=it_id[$i] value='$row[it_id]' onclick=\"out_cd_check(this, '$out_cd');\">";
}
echo "<input type=hidden name=it_name[$i] value='$row[it_name]'>";
echo "<input type=hidden name=it_name[$i] value='{$row['it_name']}'>";
echo "<input type=hidden name=it_amount[$i] value='$it_amount'>";
echo "<input type=hidden name=it_point[$i] value='$row[it_point]'>";
echo "<input type=hidden name=it_point[$i] value='{$row['it_point']}'>";
echo "<input type=hidden name=ct_qty[$i] value='1'>";
echo "</td>\n";
echo "<td align=center>$s_del</td>\n";
@ -85,20 +85,20 @@ if ($i == 0)
</form>
<div align=right>
<a href="javascript:fwishlist_check(document.fwishlist,'');"><img src='<?=$g4[shop_img_path]?>/btn_cart_in.gif' border=0></a>
<a href="javascript:fwishlist_check(document.fwishlist,'direct_buy');"><img src='<?=$g4[shop_img_path]?>/btn_buy.gif' border=0></a>&nbsp;
<a href="javascript:fwishlist_check(document.fwishlist,'');"><img src='<?=G4_SHOP_URL?>/img/btn_cart_in.gif' border=0></a>
<a href="javascript:fwishlist_check(document.fwishlist,'direct_buy');"><img src='<?=G4_SHOP_URL?>/img/btn_buy.gif' border=0></a>&nbsp;
</div>
<script language="JavaScript">
<!--
function out_cd_check(fld, out_cd)
function out_cd_check(fld, out_cd)
{
if (out_cd == 'no'){
alert("옵션이 있는 상품입니다.\n\n상품을 클릭하여 상품페이지에서 옵션을 선택한 후 주문하십시오.");
fld.checked = false;
return;
}
if (out_cd == 'tel_inq'){
alert("이 상품은 전화로 문의해 주십시오.\n\n장바구니에 담아 구입하실 수 없습니다.");
fld.checked = false;
@ -106,22 +106,22 @@ if ($i == 0)
}
}
function fwishlist_check(f, act)
function fwishlist_check(f, act)
{
var k = 0;
var length = f.elements.length;
for(i=0; i<length; i++) {
if (f.elements[i].checked) {
k++;
}
}
if(k == 0)
{
alert("상품을 하나 이상 체크 하십시오");
return;
}
}
if (act == "direct_buy")
{
@ -133,12 +133,12 @@ if ($i == 0)
}
f.action="./cartupdate.php";
f.submit();
}
//-->
</script>
<?
include_once("./_tail.php");
include_once('./_tail.php');
?>

View File

@ -1,45 +1,45 @@
<?
include_once("./_common.php");
include_once('./_common.php');
if (!$is_member)
alert("회원 전용 서비스 입니다.", "$g4[bbs_path]/login.php?url=".urlencode("$_SERVER[PHP_SELF]?it_id=$it_id"));
if (!$is_member)
alert("회원 전용 서비스 입니다.", G4_BBS_URL."/login.php?url=".urlencode("$_SERVER['PHP_SELF']?it_id=$it_id"));
if ($w == "d")
if ($w == "d")
{
$wi_id = trim($_GET[wi_id]);
$sql = " delete from $g4[yc4_wish_table]
$wi_id = trim($_GET['wi_id']);
$sql = " delete from {$g4['yc4_wish_table']}
where wi_id = '$wi_id'
and mb_id = '$member[mb_id]' ";
and mb_id = '{$member['mb_id']}' ";
sql_query($sql);
}
else if ($w == "alldelete")
}
else if ($w == "alldelete")
{
$sql = " delete from $g4[yc4_wish_table]
where mb_id = '$member[mb_id]' ";
$sql = " delete from {$g4['yc4_wish_table']
where mb_id = '{$member['mb_id']}' ";
sql_query($sql);
}
else
}
else
{
$sql_common = " set mb_id = '$member[mb_id]',
$sql_common = " set mb_id = '{$member['mb_id']}',
it_id = '$it_id',
wi_time = '$g4[time_ymdhis]',
wi_time = '".G4_TIME_YMDHIS."',
wi_ip = '$REMOTE_ADDR' ";
$sql = " select wi_id from $g4[yc4_wish_table]
where mb_id = '$member[mb_id]' and it_id = '$it_id' ";
$sql = " select wi_id from {$g4['yc4_wish_table']}
where mb_id = '{$member['mb_id']}' and it_id = '$it_id' ";
$row = sql_fetch($sql);
if ($row[wi_id]) { // 이미 있다면 삭제함
$sql = " delete from $g4[yc4_wish_table] where wi_id = '$row[wi_id]' ";
if ($row['wi_id']) { // 이미 있다면 삭제함
$sql = " delete from {$g4['yc4_wish_table']} where wi_id = '{$row['wi_id']}' ";
sql_query($sql);
}
$sql = " insert $g4[yc4_wish_table]
set mb_id = '$member[mb_id]',
$sql = " insert {$g4['yc4_wish_table']}
set mb_id = '{$member['mb_id']}',
it_id = '$it_id',
wi_time = '$g4[time_ymdhis]',
wi_time = '".G4_TIME_YMDHIS."',
wi_ip = '$REMOTE_ADDR' ";
sql_query($sql);
}
goto_url("./wishlist.php");
goto_url('./wishlist.php');
?>