G4 경로 설정 수정
This commit is contained in:
@ -41,7 +41,7 @@ if(!$ct_count) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$g4['title'] = '선택사항/수량 변경';
|
$g4['title'] = '선택사항/수량 변경';
|
||||||
include_once ($g4['path'].'/head.sub.php');
|
include_once (G4_PATH.'/head.sub.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
@ -193,10 +193,10 @@ $(function() {
|
|||||||
|
|
||||||
if((idx + 1) < option_count) {
|
if((idx + 1) < option_count) {
|
||||||
if(val == '') {
|
if(val == '') {
|
||||||
var $gt_select = $("select[name^=item-option-]:gt(" + idx + ")");
|
$("select[name^=item-option-]:gt(" + idx + ")").val("").attr("disabled", true);
|
||||||
$gt_select.val("");
|
|
||||||
$gt_select.attr("disabled", true);
|
|
||||||
} else {
|
} else {
|
||||||
|
$("select[name^=item-option-]:gt(" + idx + ")").val("").attr("disabled", true);
|
||||||
|
|
||||||
var $next_select = $option_select.eq(idx + 1);
|
var $next_select = $option_select.eq(idx + 1);
|
||||||
|
|
||||||
// 옵션정보갱신
|
// 옵션정보갱신
|
||||||
@ -510,5 +510,5 @@ function calculatePrice()
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
include_once($g4['path'] . '/tail.sub.php');
|
include_once(G4_PATH.'/tail.sub.php');
|
||||||
?>
|
?>
|
||||||
@ -8,13 +8,13 @@ if (!$is_member)
|
|||||||
$token = md5(uniqid(rand(), true));
|
$token = md5(uniqid(rand(), true));
|
||||||
set_session("ss_token", $token);
|
set_session("ss_token", $token);
|
||||||
|
|
||||||
$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' ";
|
||||||
$it = sql_fetch($sql);
|
$it = sql_fetch($sql);
|
||||||
if (!$it[it_name])
|
if (!$it['it_name'])
|
||||||
alert_close("등록된 상품이 아닙니다.");
|
alert_close("등록된 상품이 아닙니다.");
|
||||||
|
|
||||||
$g4[title] = "$it[it_name] - 추천하기";
|
$g4['title'] = "$it[it_name] - 추천하기";
|
||||||
include_once("$g4[path]/head.sub.php");
|
include_once(G4_PATH.'/head.sub.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<table width="600" height="50" border="0" cellpadding="0" cellspacing="0">
|
<table width="600" height="50" border="0" cellpadding="0" cellspacing="0">
|
||||||
@ -22,8 +22,8 @@ include_once("$g4[path]/head.sub.php");
|
|||||||
<td align="center" valign="middle" bgcolor="#EBEBEB">
|
<td align="center" valign="middle" bgcolor="#EBEBEB">
|
||||||
<table width="590" height="40" border="0" cellspacing="0" cellpadding="0">
|
<table width="590" height="40" border="0" cellspacing="0" cellpadding="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td width="25" align="center" bgcolor="#FFFFFF" ><img src="<?=$g4[shop_img_path]?>/icon_01.gif" width="5" height="5"></td>
|
<td width="25" align="center" bgcolor="#FFFFFF" ><img src="<?=G4_SHOP_IMG_URL?>/icon_01.gif" width="5" height="5"></td>
|
||||||
<td width="490" align="left" bgcolor="#FFFFFF" ><font color="#666666"><b><?=get_text($g4[title])?></b></font></td>
|
<td width="490" align="left" bgcolor="#FFFFFF" ><font color="#666666"><b><?=get_text($g4['title'])?></b></font></td>
|
||||||
<td width="75" bgcolor="#FFFFFF" ></td>
|
<td width="75" bgcolor="#FFFFFF" ></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table></td>
|
</table></td>
|
||||||
@ -32,8 +32,8 @@ include_once("$g4[path]/head.sub.php");
|
|||||||
|
|
||||||
|
|
||||||
<form name="fitemrecommend" method="post" action="./itemrecommendmail.php" onsubmit="return fitemrecommend_check(this);" style='margin:0px;' autocomplete='off'>
|
<form name="fitemrecommend" method="post" action="./itemrecommendmail.php" onsubmit="return fitemrecommend_check(this);" style='margin:0px;' autocomplete='off'>
|
||||||
<input type=hidden name=token value='<?=$token?>'>
|
<input type="hidden" name="token" value='<?=$token?>'>
|
||||||
<input type=hidden name=it_id value='<?=$it_id?>'>
|
<input type="hidden" name="it_id" value='<?=$it_id?>'>
|
||||||
<table width="600" border="0" cellspacing="0" cellpadding="0">
|
<table width="600" border="0" cellspacing="0" cellpadding="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td height="300" align="center" valign="top">
|
<td height="300" align="center" valign="top">
|
||||||
@ -46,9 +46,9 @@ include_once("$g4[path]/head.sub.php");
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td width="540" height="2" align="center" valign="top" bgcolor="#FFFFFF">
|
<td width="540" height="2" align="center" valign="top" bgcolor="#FFFFFF">
|
||||||
<table width=100% cellpadding=0 cellspacing=0 border=0 height=40 bgcolor='#F6F6F6'>
|
<table width="100%" cellpadding="0" cellspacing="0" border="0" height="40" bgcolor="#F6F6F6">
|
||||||
<colgroup width=130>
|
<colgroup width="130">
|
||||||
<colgroup width=''>
|
<colgroup width="">
|
||||||
<tr>
|
<tr>
|
||||||
<td height="24" rowspan="2"> 추천하실 분 E-mail</td>
|
<td height="24" rowspan="2"> 추천하실 분 E-mail</td>
|
||||||
<td><input type=text id='to_email' name='to_email' required itemname='추천하실 분 E-mail' class=ed style="width:97%;"></td>
|
<td><input type=text id='to_email' name='to_email' required itemname='추천하실 분 E-mail' class=ed style="width:97%;"></td>
|
||||||
@ -84,8 +84,8 @@ include_once("$g4[path]/head.sub.php");
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td height="40" align="center" valign="bottom">
|
<td height="40" align="center" valign="bottom">
|
||||||
<input id=btn_submit type=image src="<?=$g4[shop_img_path]?>/btn_confirm.gif" border=0>
|
<input id=btn_submit type=image src="<?=G4_SHOP_IMG_URL?>/btn_confirm.gif" border=0>
|
||||||
<a href="javascript:window.close();"><img src="<?=$g4[shop_img_path]?>/btn_close.gif" border="0"></a>
|
<a href="javascript:window.close();"><img src="<?=G4_SHOP_IMG_URL?>/btn_close.gif" border="0"></a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@ -101,5 +101,5 @@ document.getElementById('to_email').focus();
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
include_once("$g4[path]/tail.sub.php");
|
include_once(G4_PATH.'/tail.sub.php');
|
||||||
?>
|
?>
|
||||||
@ -1,6 +1,6 @@
|
|||||||
<?
|
<?
|
||||||
include_once("./_common.php");
|
include_once("./_common.php");
|
||||||
include_once("$g4[path]/lib/mailer.lib.php");
|
include_once(G4_LIB_PATH.'/mailer.lib.php');
|
||||||
|
|
||||||
if (!$is_member)
|
if (!$is_member)
|
||||||
alert_close('회원만 메일을 발송할 수 있습니다.');
|
alert_close('회원만 메일을 발송할 수 있습니다.');
|
||||||
@ -9,9 +9,9 @@ if (!$is_member)
|
|||||||
//if (substr_count($to_email, "@") > 3) alert("최대 3명까지만 메일을 발송할 수 있습니다.");
|
//if (substr_count($to_email, "@") > 3) alert("최대 3명까지만 메일을 발송할 수 있습니다.");
|
||||||
if (substr_count($to_email, "@") > 1) alert('메일 주소는 하나씩만 입력해 주십시오.');
|
if (substr_count($to_email, "@") > 1) alert('메일 주소는 하나씩만 입력해 주십시오.');
|
||||||
|
|
||||||
if ($_SESSION["ss_recommend_datetime"] >= ($g4[server_time] - 120))
|
if ($_SESSION["ss_recommend_datetime"] >= ($g4['server_time'] - 120))
|
||||||
alert("너무 빠른 시간내에 메일을 연속해서 보낼 수 없습니다.");
|
alert("너무 빠른 시간내에 메일을 연속해서 보낼 수 없습니다.");
|
||||||
set_session("ss_recommend_datetime", $g4[server_time]);
|
set_session("ss_recommend_datetime", $g4['server_time']);
|
||||||
|
|
||||||
$recommendmail_count = (int)get_session('ss_recommendmail_count') + 1;
|
$recommendmail_count = (int)get_session('ss_recommendmail_count') + 1;
|
||||||
if ($recommendmail_count > 3)
|
if ($recommendmail_count > 3)
|
||||||
@ -28,19 +28,19 @@ if ($_POST["token"] && get_session("ss_token") == $_POST["token"]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 상품
|
// 상품
|
||||||
$sql = " select * from $g4[yc4_item_table] where it_id = '$it_id' ";
|
$sql = " select * from {$g4['yc4_item_table']} where it_id = '$it_id' ";
|
||||||
$it = sql_fetch($sql);
|
$it = sql_fetch($sql);
|
||||||
if (!$it[it_id])
|
if (!$it['it_id'])
|
||||||
alert("등록된 상품이 아닙니다.");
|
alert("등록된 상품이 아닙니다.");
|
||||||
|
|
||||||
$subject = stripslashes($subject);
|
$subject = stripslashes($subject);
|
||||||
$content = nl2br(stripslashes($content));
|
$content = nl2br(stripslashes($content));
|
||||||
|
|
||||||
$from_name = $member[mb_name];
|
$from_name = $member['mb_name'];
|
||||||
$from_email = $member[mb_email];
|
$from_email = $member['mb_email'];
|
||||||
$it_id = $it[it_id];
|
$it_id = $it['it_id'];
|
||||||
$it_name = $it[it_name];
|
$it_name = $it['it_name'];
|
||||||
$it_mimg = $it[it_id]."_m";
|
$it_mimg = $it['it_id']."_m";
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
include "./mail/itemrecommend.mail.php";
|
include "./mail/itemrecommend.mail.php";
|
||||||
|
|||||||
Reference in New Issue
Block a user