¾È³çÇϼ¼¿ä? asp±â¹Ý ¿Ü±¹¾î ¼îÇθô¼Ò½ºÀε¥ ¿øȸ¦ us$·Î Ç¥±âÇÏ°í,¼ýÀÚ´Â ¼Ò¼ö ¾Æ·¡ 2ÀÚ¸®±îÁöÀÔ´Ï´Ù.
¼Ò½º ¼öÁ¤ÀÌ °¡´ÉÇϽźР¿¬¶ôÁֽñ⠹ٶø´Ï´Ù.ÀÌ°Í ¿Ü¿¡µµ ¸î°¡Áö ¼öÁ¤ÇÒ ºÎºÐÀÌ Àִµ¥ ÇùÀÇÈÄ ÀÇ·ÚÇÏ°í
½Í½À´Ï´Ù.¸¸¾à ½Ã°£ÀÌ ÀÖÀ¸½Å ºÐÀ̶ó¸é ¾Æ¸£¹ÙÀÌÆ®·Î ¸çÄ¥ °°ÀÌ ÀÛ¾÷ÇÒ ¼ö ÀÖÀ¸¸é ÁÁ°Ú½À´Ï´Ù.
<!--#include virtual="/_include/config.asp"-->
<!--#include virtual="/_lib/function.Goods.asp"-->
<!--#include virtual="/_lib/function.UserNavi.asp"-->
<%
Const PAGE_CODE = "goods"
Call noCache
' »óÇ°¾ÆÀÌÄÜ
Dim arrIcon(5), arrIsIcon(5)
guid = checkNumeric(getRequest("guid", Null))
cate = checkNumeric(getRequest("cate", Null))
part = getRequest("part", Null)
params = getRequest("params", Null)
' # »óÇ° ±âº» Á¤º¸ : ½ÃÀÛ
sql = "SELECT"& _
" GoodsType, DealerID, GoodsCode, Title, SubTitle, ImgB, ImgM, ImgS, Price, OriginalPrice, MarketPrice, PriceSplit,"& _
" CmsType, Margin, Cmoney, Stock, Product, PlaceOfOrigin, ContentFile, IsSurtax, IsTax, IsCashReceipt,"& _
" DeliveryPolicy, DeliveryMethod, DeliveryFee, DeliveryLimit, OptionKind, OptionTxt,"& _
" IsIconA, IsIconB, IsIconC, IsIconD, IsIconE, IsIconF, IsDisplay, IsSoldOut, Content, DeliveryContent,"& _
" (SELECT Name FROM T_BRAND WHERE SiteID=G.SiteID AND Uid=G.BrandUid) AS Brand"
sql = sql &" FROM V_GOODS AS G JOIN T_GOODS_CONTENT AS GC ON G.Uid=GC.Uid"
sql = sql &" WHERE G.SiteID='"& siteID &"' AND G.State=? AND G.Uid=?"
arrParams = Array( _
Db.makeParam("@State", adVarchar, adParamInput, 20, CM_GDSTATE_NOR), _
Db.makeParam("@Uid", adBigInt, adParamInput, 8, guid) _
)
Set Rs = Db.execRs(sql, DB_CMDTYPE_TEXT, arrParams, Nothing)
If Not Rs.bof And Not Rs.eof Then
flagRs = True
goodsType = Rs("GoodsType")
goodsDealerID = Rs("DealerID")
goodsCode = Rs("GoodsCode")
goodstitle = Rs("Title")
subTitle = null2Blank(Rs("SubTitle"))
imgB = Rs("ImgB")
imgM = Rs("ImgM")
imgS = Rs("ImgS")
price = checkNumeric(Rs("Price"))
originalPrice = checkNumeric(Rs("OriginalPrice"))
marketPrice = checkNumeric(Rs("MarketPrice"))
priceSplit = Rs("PriceSplit")
goodsCmsType = Rs("CmsType")
margin = checkNumeric(Rs("Margin"))
cmoney = checkNumeric(Rs("Cmoney"))
stock = Rs("Stock")
product = null2Blank(Rs("Product"))
placeOfOrigin = null2Blank(Rs("PlaceOfOrigin"))
contentFile = null2Blank(Rs("ContentFile"))
isSurtax = Rs("IsSurtax")
isTax = Rs("IsTax")
isCashReceipt = Rs("IsCashReceipt")
deliveryPolicy = null2Blank(Rs("DeliveryPolicy"))
deliveryMethod = null2Blank(Rs("DeliveryMethod"))
deliveryFee = checkNumeric(Rs("DeliveryFee"))
deliveryLimit = checkNumeric(Rs("DeliveryLimit"))
optionKind = null2Blank(Rs("OptionKind"))
optionTxt = null2Blank(Rs("OptionTxt"))
arrIsIcon(0) = Rs("IsIconA")
arrIsIcon(1) = Rs("IsIconB")
arrIsIcon(2) = Rs("IsIconC")
arrIsIcon(3) = Rs("IsIconD")
arrIsIcon(4) = Rs("IsIconE")
arrIsIcon(5) = Rs("IsIconF")
isDisplay = Rs("IsDisplay")
isSoldOut = Rs("IsSoldOut")
content = null2Blank(Rs("Content"))
deliveryContent = null2Blank(Rs("DeliveryContent"))
brand = null2Blank(Rs("Brand"))
End If
Call closeRs(Rs)
' # »óÇ° ±âº» Á¤º¸ : ³¡
If Not flagRs Or (authAdminID = "" And authDealerID = "" And Not flag2Bool(isDisplay)) Then
Call jsmsg("»óÇ°Á¤º¸°¡ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù.", "B")
End If
' # »óÇ°ºÐ·ù È®ÀÎ : ½ÃÀÛ
If goodsType = CM_GDTYPE_GNG Then
Call closeDb
Response.Redirect "/gonggu/content.asp?cate="& cate &"&guid="& guid &"¶ms="& params
Response.End
ElseIf goodsType = CM_GDTYPE_AUC Then
Call closeDb
Response.Redirect "/auction/content.asp?cate="& cate &"&guid="& guid &"¶ms="& params
Response.End
End If
' # »óÇ°ºÐ·ù È®ÀÎ : ³¡
' # Ä«Å×°í¸® È®ÀÎ : ½ÃÀÛ
sql = "SELECT CateCode, Depth FROM T_CATEGORY WHERE CateCode=dbo.fnGetGoodsCate(?, ?, ?)"
arrParams = Array( _
Db.makeParam("@siteID", adVarchar, adParamInput, 20, siteID), _
Db.makeParam("@guid", adBigInt, adParamInput, 8, guid), _
Db.makeParam("@cate", adInteger, adParamInput, 4, cate) _
)
Set Rs = Db.execRs(sql, DB_CMDTYPE_TEXT, arrParams, Nothing)
cate = 0
If Not Rs.bof And Not Rs.eof Then
cate = Rs("CateCode")
cateDepth = Rs("Depth")
End If
Call closeRs(Rs)
If cate = 0 Then Call jsmsg("ÇØ´ç Ä«Å×°í¸®°¡ ¾ø½À´Ï´Ù.", "B")
' # Ä«Å×°í¸® È®ÀÎ : ³¡
' # »óÇ°·Î±× ÀúÀå : ½ÃÀÛ
logGoodsUids = Trim(Request.Cookies(COOKIE_GOODS_LOG))
If InStr(DELIMITER & logGoodsUids, DELIMITER & guid & DELIMITER) = 0 Then
arrParams = Array(_
Db.makeParam("@siteID", adVarchar, adParamInput, 20, siteID), _
Db.makeParam("@uid", adBigInt, adParamInput, 8, guid) _
)
Call Db.exec("spGoodsLog", DB_CMDTYPE_SP, arrParams, Nothing)
Response.Cookies(COOKIE_GOODS_LOG) = logGoodsUids & guid & DELIMITER
Response.Cookies(COOKIE_GOODS_LOG).Domain = siteDomain
End If
' # »óÇ°·Î±× ÀúÀå : ³¡
' # »óÇ° ´Ù¸¥ À̹ÌÁö Á¤º¸ : ½ÃÀÛ
sql = "SELECT ImgPath, ImgFName FROM T_GOODS_IMAGE WHERE GoodsUid=? ORDER BY Sort ASC"
arrParams = Array( _
Db.makeParam("@GoodsUid", adBigInt, adParamInput, 8, guid) _
)
arrListI = Db.execRsList(sql, DB_CMDTYPE_TEXT, arrParams, listLenI, Nothing)
' # »óÇ° ´Ù¸¥ À̹ÌÁö Á¤º¸ : ³¡
' # »óÇ°¿É¼Ç Á¤º¸ : ½ÃÀÛ
If optionKind = CM_OPTIONKIND_NORMAL Or optionKind = CM_OPTIONKIND_EAZY Then
sql = "SELECT Uid, Title, Items, IsRequire FROM T_GOODS_OPTION WHERE GoodsUid=? ORDER BY Sort ASC"
arrParams = Array( _
Db.makeParam("@GoodsUid", adBigInt, adParamInput, 8, guid) _
)
arrListO = Db.execRsList(sql, DB_CMDTYPE_TEXT, arrParams, listLenO, Nothing)
ElseIf optionKind = CM_OPTIONKIND_STOCK Then
Dim arrOptUid(1), arrOptTitle(1)
Dim arrOptItemList(1), arrOptItemLen(1)
For i=0 To 1
arrOptUid(i) = 0
arrOptTitle(i) = ""
arrOptItemList(i) = Null
arrOptItemLen(i) = -1
Next
sql = "SELECT Uid, Title FROM T_GOODS_OPTION WHERE GoodsUid=? ORDER BY Sort ASC"
arrParams = Array( _
Db.makeParam("@GoodsUid", adBigInt, adParamInput, 8, guid) _
)
arrListO = Db.execRsList(sql, DB_CMDTYPE_TEXT, arrParams, listLenO, Nothing)
If IsArray(arrListO) Then
For i=0 To listLenO
Select Case i
Case 0
arrOptUid(0) = CLng(arrListO(0, i))
arrOptTitle(0) = Trim(arrListO(1, i))
Case 1
arrOptUid(1) = CLng(arrListO(0, i))
arrOptTitle(1) = Trim(arrListO(1, i))
End Select
Next
End If
If arrOptUid(0) > 0 Then
sql = "SELECT Uid, Item, Price FROM T_GOODS_OPTION_ITEM WHERE OptionUid=? ORDER BY Sort ASC"
arrParams = Array( _
Db.makeParam("@OptionUid", adBigInt, adParamInput, 8, arrOptUid(0)) _
)
arrOptItemList(0) = Db.execRsList(sql, DB_CMDTYPE_TEXT, arrParams, arrOptItemLen(0), Nothing)
End If
If arrOptUid(1) > 0 Then
sql = "SELECT Uid, Item, Price FROM T_GOODS_OPTION_ITEM WHERE OptionUid=? ORDER BY Sort ASC"
arrParams = Array( _
Db.makeParam("@OptionUid", adBigInt, adParamInput, 8, arrOptUid(1)) _
)
arrOptItemList(1) = Db.execRsList(sql, DB_CMDTYPE_TEXT, arrParams, arrOptItemLen(1), Nothing)
End If
End If
' # »óÇ°¿É¼Ç Á¤º¸ : ³¡
' # ÀÌÀü»óÇ°, ´ÙÀ½»óÇ° Á¤º¸ : ½ÃÀÛ
sql = "SELECT MAX(PrevUid) AS PrevUid, MAX(NextUid) AS NextUid FROM ("
sql = sql &" SELECT TOP 1 GP.Uid AS PrevUid, 0 AS NextUid, GP.Sort"
sql = sql &" FROM T_GOODS AS GP JOIN V_GOODS_CATEGORY AS CP ON GP.Uid=CP.GoodsUid"
sql = sql &" WHERE GP.SiteID='"& siteID &"' AND GP.GoodsType=? AND GP.State=? AND CP.CateCode=? AND GP.Uid>? AND GP.IsDisplay='T' AND CP.IsHidden='F'"
sql = sql &" ORDER BY GP.Sort ASC"
sql = sql &" UNION ALL"
sql = sql &" SELECT TOP 1 0 AS PrevUid, GN.Uid AS NextUid, GN.Sort"
sql = sql &" FROM T_GOODS AS GN JOIN V_GOODS_CATEGORY AS CN ON GN.Uid=CN.GoodsUid"
sql = sql &" WHERE GN.SiteID='"& siteID &"' AND GN.GoodsType=? AND GN.State=? AND CN.CateCode=? AND GN.Uid<? AND GN.IsDisplay='T' AND CN.IsHidden='F'"
sql = sql &" ORDER BY GN.Sort DESC"
sql = sql &" ) T"
arrParams = Array( _
Db.makeParam("@GoodsType", adVarchar, adParamInput, 20, CM_GDTYPE_NOR), _
Db.makeParam("@State", adVarchar, adParamInput, 20, CM_GDSTATE_NOR), _
Db.makeParam("@CateCode", adInteger, adParamInput, 4, cate), _
Db.makeParam("@Uid", adBigInt, adParamInput, 8, guid), _
Db.makeParam("@GoodsType", adVarchar, adParamInput, 20, CM_GDTYPE_NOR), _
Db.makeParam("@State", adVarchar, adParamInput, 20, CM_GDSTATE_NOR), _
Db.makeParam("@CateCode", adInteger, adParamInput, 4, cate), _
Db.makeParam("@Uid", adBigInt, adParamInput, 8, guid) _
)
Set Rs = Db.execRs(sql, DB_CMDTYPE_TEXT, arrParams, Nothing)
prevUid = checkNumeric(Rs("PrevUid"))
nextUid = checkNumeric(Rs("NextUid"))
Call closeRs(Rs)
' # ÀÌÀü»óÇ°, ´ÙÀ½»óÇ° Á¤º¸ : ³¡
' # »óÇ° ¾ÆÀÌÄÜ Á¤º¸ : ½ÃÀÛ
sql = "SELECT IconA, IconB, IconC, IconD, IconE, IconF FROM T_GOODS_ICON WHERE SiteID='"& siteID &"'"
Set Rs = Db.execRs(sql, DB_CMDTYPE_TEXT, Null, Nothing)
If Not Rs.bof And Not Rs.bof Then
arrIcon(0) = null2Blank(Rs("IconA"))
arrIcon(1) = null2Blank(Rs("IconB"))
arrIcon(2) = null2Blank(Rs("IconC"))
arrIcon(3) = null2Blank(Rs("IconD"))
arrIcon(4) = null2Blank(Rs("IconE"))
arrIcon(5) = null2Blank(Rs("IconF"))
End If
Call closeRs(Rs)
' # »óÇ° ¾ÆÀÌÄÜ Á¤º¸ : ³¡
' # ¹è¼ÛÁ¤º¸(ȯ°æ¼³Á¤, ÆǸÅÀÚ) µ¥ÀÌÅÍ : ½ÃÀÛ
If goodsDealerID = siteID Then
sql = "SELECT DeliveryMethod, DeliveryFee, DeliveryLimit FROM T_CONFIG_MANAGE WHERE SiteID='"& siteID &"'"
Set Rs = Db.execRs(sql, DB_CMDTYPE_TEXT, Null, Nothing)
If Not Rs.bof And Not Rs.eof Then
cfgDeliveryMethod = null2Blank(Rs("DeliveryMethod"))
cfgDeliveryFee = checkNumeric(Rs("DeliveryFee"))
cfgDeliveryLimit = checkNumeric(Rs("DeliveryLimit"))
End If
Call closeRs(Rs)
End If
' # ¹è¼ÛÁ¤º¸(ȯ°æ¼³Á¤, ÆǸÅÀÚ) µ¥ÀÌÅÍ : ³¡
' # ȸ¿ø µî±Þ(T_MEMBER_LEVEL.Uid) : ½ÃÀÛ
If authUserID <> "" Then
sql = "SELECT LevelUid FROM T_MEMBER WHERE SiteID='"& siteID &"' AND State=? AND UserID=?"
arrParams = Array( _
Db.makeParam("@State", adVarchar, adParamInput, 20, CM_USERSTATE_NOR), _
Db.makeParam("@UserID", adVarchar, adParamInput, getTxtLen(authUserID), authUserID) _
)
authUserLevelUid = checkNumeric(Db.execRsData(sql, DB_CMDTYPE_TEXT, arrParams, Nothing))
End If
' # ȸ¿ø µî±Þ(T_MEMBER_LEVEL.Uid) : ³¡
' ±âº» À̹ÌÁö
mainImgURL = imgURL & iif(getExt(imgM)="gif", pathGoodsBig &"/"& imgB, pathGoodsMiddle &"/"& imgM)
' Àç°í¾øÀ½ ¾ÆÀÌÄÜ
If stock = "0" Then strImgSoldOut = " <img src='"& imgURL & pathSite &"/soldout.jpg' border='0' align='absmiddle'>"
' »óÇ° ¾ÆÀÌÄÜ
strGoodsIcon = ""
For i=0 To 5
If arrIcon(i) <> "" And flag2Bool(arrIsIcon(i)) Then
strGoodsIcon = strGoodsIcon &"<img src='"& imgURL & pathIcon &"/"& arrIcon(i) &"' align='absmiddle' style='margin-right:5px;'>"
End If
Next
%>
<!--#include virtual="/_include/header.asp"-->
<script type="text/javascript">
<!--
function overOtherImg(img) {
var mainImg = document.getElementById('mainImg');
mainImg.src = img.src;
}
function outOtherImg() {
var mainImg = document.getElementById('mainImg');
mainImg.src = mainImg.getAttribute('orgsrc');
}
//-->
</script>
<script type="text/javascript">
<!--
function showCmoneyInfo(isshow) {
var objDiv = document.getElementById('divCmoneyInfo');
objDiv.style.display = (isshow == 1) ? "" : "none";
}
function openMyCoupon() {
<%If authUserID = "" Then%>
alert('·Î±×ÀÎ ÈÄ È®ÀÎÀÌ °¡´ÉÇÕ´Ï´Ù');
gotoLogin();
<%Else%>
openPopup("/my/pop_myCoupon.asp", "MyCoupon", 700, 500, "scrollbars=1");
<%End If%>
}
function checkOptionValue(item) {
if (item.value == "0") item.value = "";
}
function download(filename) {
hiddenZone.location.replace("<%=fileURL%>/download/goods.asp?file="+filename);
}
function openFriendMail() {
<%If authUserID <> "" Then%>
openPopup("/goods/pop_friendmail.asp?guid=<%=guid%>", "FriendMail", 500, 620);
<%Else%>
alert('·Î±×ÀÎ ÇÏ¼Å¾ß ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.');
gotoLogin();
<%End If%>
}
function checkCoupon(cuid) {
hiddenZone.location.replace("/goods/issueCouponOk.asp?cuid="+cuid);
}
//-->
</script>
<script type="text/javascript">
<!--
defineAjax();
// ÁÖ¹®,Àå¹Ù±¸´Ï´ã±â,°ü½É¸®½ºÆ® È®ÀÎ
function checkGoods(method) {
var f = document.Frm
var i, len;
<%If checkBlockGoods(guid) Then%>
alert("±¸¸Å Á¦ÇÑµÈ »óÇ°ÀÔ´Ï´Ù.");
return false;
<%End If%>
<%If flag2Bool(isSoldOut) Then%>
alert("ÀϽÃÀûÀ¸·Î ÁßÁöµÇ¾ú°Å³ª Ç°ÀýµÈ »óÇ°ÀÔ´Ï´Ù.");
return false;
<%End If%>
if (parseInt(f.price.value, 10) == 0) {
alert("°¡°ÝÀÌ ¾ÆÁ÷ Á¤ÇØÁöÁö ¾Ê¾Ò½À´Ï´Ù.");
return false;
}
if (checkEmpty(f.ea) || f.ea.value == "0") {
alert("ÁÖ¹® »óÇ°ÀÇ ¼ö·®À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
f.ea.focus();
return false;
}
if (f.stock.value != "00") {
if (parseInt(f.stock.value, 10) == 0) {
alert("Ç°ÀýµÈ »óÇ°ÀÔ´Ï´Ù.");
return false;
}
if (parseInt(f.ea.value, 10) > parseInt(f.stock.value, 10)) {
alert("ÁغñµÈ Àç°í¼ö·®º¸´Ù ¸¹ÀÌ ½ÅûÇϼ̽À´Ï´Ù.");
f.ea.focus();
return false;
}
}
// ÀϹݿɼÇ, Àç°í/°¡°Ý¿É¼Ç, °¡°Ý°£´Ü¿É¼Ç °æ¿ì
if (f.optionKind.value != "" && f.optionKind.value != "<%=CM_OPTIONKIND_TEXT%>") {
var objOption = f.goodsOption;
var optionCnt = parseInt(f.goodsOptionCnt.value, 10);
if (optionCnt == 1) {
if (objOption.getAttribute('isrequire') == 'T' && checkEmpty(objOption)) {
alert(objOption.getAttribute('title')+"Àº Çʼö¼±Åà ¿É¼ÇÀÔ´Ï´Ù.\n¿É¼ÇÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
objOption.focus();
return false;
}
}
else {
for (i=0, len=objOption.length; i<len; i++) {
if (objOption[i].getAttribute('isrequire') == 'T' && checkEmpty(objOption[i])) {
alert(objOption[i].getAttribute('title')+"Àº Çʼö¼±Åà ¿É¼ÇÀÔ´Ï´Ù.\n¿É¼ÇÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
objOption[i].focus();
return false;
}
}
}
}
// ¼¼úÇü¿É¼Ç °æ¿ì
else if (f.optionKind.value != "" && f.optionKind.value == "<%=CM_OPTIONKIND_TEXT%>") {
if (checkEmpty(f.goodsOptionTxt)) {
alert("»óÇ° ¿É¼ÇÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
f.goodsOptionTxt.focus();
return false;
}
}
// Àç°í/°¡°Ý¿É¼Ç °æ¿ì Àç°íÈ®ÀÎ
if (f.optionKind.value == "<%=CM_OPTIONKIND_STOCK%>") {
checkOptionStock(method);
}
else {
eval(method+"();");
}
}
// Àç°í/°¡°Ý¿É¼Ç °æ¿ì Àç°íÈ®ÀÎ
function checkOptionStock(method) {
var f = document.Frm;
var arrOption;
var optionCnt = parseInt(f.goodsOptionCnt.value, 10);
var params = "guid=<%=guid%>&method="+method;
if (optionCnt == 1) {
arrOption = f.goodsOption.value.split("<%=DELIMITER_OPTION%>");
params += "&goodsOption="+arrOption[1];
}
else {
for (i=0, len=f.goodsOption.length; i<len; i++) {
arrOption = f.goodsOption[i].value.split("<%=DELIMITER_OPTION%>");
params += "&goodsOption="+arrOption[1];
}
}
var url = "<%=siteURL%>/common/ajax/exec_getGoodsOptionStock.asp";
var returnExec = "execCheckOptionStock";
ajax.execute("POST", url, params, returnExec);
}
function execCheckOptionStock(value) {
var f = document.Frm;
var objOption = f.goodsOption;
var optionCnt = parseInt(f.goodsOptionCnt.value, 10);
var method = "";
var stock = 0;
var ea = parseInt(f.ea.value, 10);
if (value.stripspace() != "") {
objJson = JSON.parse(value);
if (objJson != false){
method = objJson.item.method;
stock = parseInt(objJson.item.stock, 10);
}
objJson = null;
if (ea > stock) {
var msg = "¢Æ ¼±Åà »óÇ°¿É¼Ç ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ\n\n";
if (optionCnt == 1) {
msg += " ¡¤ "+objOption.getAttribute('title')+" : "+objOption.options[objOption.selectedIndex].text+"\n";
}
else {
for (i=0, len=objOption.length; i<len; i++) {
msg += " ¡¤ "+objOption[i].getAttribute('title')+" : "+objOption[i].options[objOption[i].selectedIndex].text+"\n";
}
}
msg += "\n¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ\n\n"
+ "ÇöÀç Àç°í ¼ö·® : "+stock+"°³\n\n"
+ "ÁغñµÈ Àç°í ¼ö·®º¸´Ù ¸¹ÀÌ ½ÅûÇϼ̽À´Ï´Ù."
alert(msg);
f.ea.focus();
return false;
}
else if (method != "") {
eval(method+"();");
}
else {
alert("Àç°í È®ÀÎÀ» ½ÇÆÐÇÏ¿´½À´Ï´Ù.");
return false;
}
}
}
// ¹Ù·Î±¸¸Å
function direct() {
var f = document.Frm;
f.target = "_self";
f.action = "/goods/order_direct.asp";
f.submit();
}
// Àå¹Ù±¸´Ï´ã±â
function addCart() {
var f = document.Frm;
f.mode.value = "ADD";
f.target = "_self";
f.action = "/goods/cartOk.asp";
f.submit();
}
// °ü½É¸®½ºÆ®
function addWishList() {
var f = document.Frm;
openPopup("/dummy.asp", "WishList", 100, 100, "left=500, top=50");
f.mode.value = "ADD";
f.target = "WishList";
f.action = "/my/wishlistOk.asp";
f.submit();
}
//-->
</script>
<form name="Frm" method="post">
<input type="hidden" name="mode">
<input type="hidden" name="guid" value="<%=guid%>">
<input type="hidden" name="cate" value="<%=cate%>">
<input type="hidden" name="params" value="<%=params%>">
<input type="hidden" name="stock" value="<%=stock%>">
<input type="hidden" name="optionKind" value="<%=optionKind%>">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="<%=NAVI_BGCOLOR%>">
<%
' ´Ù¸¥¸ÅÀåÀ̵¿/ÇöÀçÀ§Ä¡
Call makeUserNaviCate(CM_GDTYPE_NOR, cate, Null)
%></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="15"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="2" cellpadding="8" bgcolor="#cccccc">
<tr>
<td height="33" class="gray_3_15px" bgcolor="#f9f9f9"><strong><%=goodstitle%></strong> <%=strImgSoldOut%>
<%If strGoodsIcon <> "" Then%><%=strGoodsIcon%><%End If%></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="15"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<!-- Á¦Ç°Á¤º¸ : ½ÃÀÛ -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="272" valign="top" align="left">
<table border="0" cellspacing="0" cellpadding="0">
<!-- Á¦Ç°À̹ÌÁö : ½ÃÀÛ -->
<tr>
<td align="center">
<!-- ±âº» À̹ÌÁö : ½ÃÀÛ -->
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#FFFFFF"><img id="mainImg" src="<%=mainImgURL%>" orgsrc="<%=mainImgURL%>" width="<%=cfgImgMWidth%>" height="<%=cfgImgMHeight%>" border="0"<%=iif(flag2Bool(cfgIsImgLine), " style='border:1px solid #CCCCCC;'", "")%> onClick="openZoomGoodsImg('<%=guid%>', '<%=cate%>')" style="cursor:pointer;"></td>
</tr>
</table>
<!-- ±âº» À̹ÌÁö : ³¡ -->
</td>
</tr>
<tr>
<td height="6"></td>
</tr>
<tr>
<td align="center"><img src="<%=imgURL & pathSite%>/button/content_zoom.gif" alt="È®´ëº¸±â" onClick="openZoomGoodsImg('<%=guid%>', '<%=cate%>')" style="cursor:pointer;"></td>
</tr>
<tr>
<td height="7"></td>
</tr>
<tr>
<td align="center"><!-- ´Ù¸¥À̹ÌÁö(size : 50*50) : ½ÃÀÛ --><%
If IsArray(arrListI) Then
print "<table border='0' cellpadding='2' cellspacing='0'><tr>"
For i=0 To listLenI
imgPath = arrListI(0, i)
imgFName = arrListI(1, i)
otherImgURL = imgURL & imgPath &"/"& imgFName
If i > 0 And i Mod 5 = 0 Then print "</tr><tr>"
print "<td><img src='"& otherImgURL &"' width='50' height='50' style='border:1px solid #CCCCCC;' onMouseOver='overOtherImg(this)' onMouseOut='outOtherImg()' onClick=""openZoomGoodsImg('"& guid &"', '"& cate &"')"" style='cursor:pointer;'></td>"
Next
print "</tr></table>"
End If
%><!-- ´Ù¸¥À̹ÌÁö(size : 50*50) : ³¡ --></td>
</tr>
<!-- Á¦Ç°À̹ÌÁö : ³¡ -->
<tr><td height="10"></td></tr>
<!-- ÀÌÀü/¸ñ·Ï/´ÙÀ½ ¹öÆ° : ½ÃÀÛ -->
<tr>
<td align="center"><%
If prevUid > 0 Then
print "<a href='content.asp?guid="& prevUid &"&cate="& cate &"¶ms="& params &"'><img src='"& imgURL & pathSite &"/button/content_preview.gif' alt='ÀÌÀü»óÇ°' border='0'></a>"& vbCrLf
Else
print "<img src='"& imgURL & pathSite &"/previous.gif' alt='ÀÌÀü»óÇ°' border='0' onClick=""alert('ÀÌÀü»óÇ°ÀÌ ¾ø½À´Ï´Ù.')"" style='cursor:pointer;'>"& vbCrLf
End If
print "<a href='"& getGoodsListPath(CM_GDTYPE_NOR, cateDepth) &"?cate="& cate &"&"& filterParams(decParams(params), "cate") &"'><img src='"& imgURL & pathSite &"/button/content_list.gif' alt='¸ñ·Ï' border='0'></a>"& vbCrLf
If nextUid > 0 Then
print "<a href='content.asp?guid="& nextUid &"&cate="& cate &"¶ms="& params &"'><img src='"& imgURL & pathSite &"/button/content_next.gif' alt='´ÙÀ½»óÇ°' border='0'></a>"& vbCrLf
Else
print "<img src='"& imgURL & pathSite &"/button/content_next.gif' alt='´ÙÀ½»óÇ°' border='0' onClick=""alert('´ÙÀ½»óÇ°ÀÌ ¾ø½À´Ï´Ù.')"" style='cursor:pointer;'>"& vbCrLf
End If
%></td>
</tr>
<!-- ÀÌÀü/¸ñ·Ï/´ÙÀ½ ¹öÆ° : ³¡ -->
</table>
</td>
<td valign="top" align="left">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" style="padding:10px;">
<!-- Á¦Ç°±âº»Á¤º¸ : ½ÃÀÛ -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<%If subTitle <> "" Then%>
<tr>
<!-- °£´Ü¼³¸í -->
<td class="gray_6"><%=subTitle%></td>
</tr>
<tr>
<td height="10"></td>
</tr>
<%End If%>
<tr>
<td align="left">
<table border="0" cellspacing="0" cellpadding="0">
<%If marketPrice > 0 Then%>
<tr>
<td width="100" height="25" class=".nomalfont"><img src="<%=imgURL & pathSite%>/icon_green.gif" align="absmiddle"> ½ÃÁß°¡</td>
<td width="15" class=".nomalfont"><strong>:</strong></td>
<td>
<span class="orange_15pt"><strike><%=num2Cur(marketPrice)%></strike> </span>
</td>
</tr>
<%End If%>
<tr>
<td width="100" height="25" class=".nomalfont"><img src="<%=imgURL & pathSite%>/icon_green.gif" align="absmiddle"> ÆǸŰ¡</td>
<td width="15" class=".nomalfont"><strong>:</strong></td>
<td class="object">
<%
print "<b>"& setPriceStyle(price) &"</b>"& vbCrLf
' ȸ¿ø µî±Þº° ÇÒÀÎÁ¤º¸
strUserLevelDiscount = getUserLevelDiscount()
If price > 0 And strUserLevelDiscount <> "" Then
print "<img src='"& imgURL & pathSite &"/membersale.gif' align='absmiddle'> <span style='color:red;'>"& strUserLevelDiscount &"</span>"
End If
%>
<input type="hidden" name="price" value="<%=price%>">
</td>
</tr>
<%If cfgNoInterest <> "" Then%>
<tr>
<td width="100" height="25" class=".nomalfont"><img src="<%=imgURL & pathSite%>/icon_green.gif" align="absmiddle">
¹«ÀÌÀÚÇÒºÎÁ¤º¸</td>
<td width="15" class=".nomalfont"><strong>:</strong></td>
<td>
<span class="orange_15pt">
<img src="<%=imgURL & pathSite%>/icon_card.gif" hspace="2" align="absmiddle">
<span class=".nomalfont"><%=cfgNoInterest%></span>
</span>
</td>
</tr>
<%End If%>
<tr>
<td height="25" class=".nomalfont"><img src="<%=imgURL & pathSite%>/icon_green.gif" align="absmiddle"> Àû¸³±Ý</td>
<td width="15" class=".nomalfont"><strong>:</strong></td>
<td class=".nomalfont">
<%
' ȸ¿ø µî±Þº° Àû¸³±ÝÁ¤º¸
cmoney = getUserLevelCmoney(price, cmoney)
If cmoney = 0 Then
print "0 ¿ø"
Else
print "<img src='"& imgURL & pathSite &"/icon_CyberMoney.gif' align='absmiddle'>"& vbCrLf
print num2Cur(cmoney) &" ¿ø"& vbCrLf
print "<img src='"& imgURL & pathSite &"/button/btn_CyberMoneySave.gif' border='0' onMouseOver='showCmoneyInfo(1);' onMouseOut='showCmoneyInfo(0);' style='cursor:pointer;'>"& vbCrLf
End If
%>
<input type="hidden" name="cmoney" value="<%=cmoney%>">
</td>
</tr>
<tr>
<td colspan="2"></td>
<td>
<div id="divCmoneyInfo" style="position:absolute; display:none;">
<iframe src="/goods/ifrm_cmoneyInfo.asp" style="margin:0; height:150; width:280;" frameborder="0" scrolling="no" border="0" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"></iframe>
</div>
</td>
</tr>
<tr>
<td width="100" height="25" class=".nomalfont"><img src="<%=imgURL & pathSite%>/icon_green.gif" align="absmiddle">
ÇÒÀÎÄíÆù</td>
<td width="15" class=".nomalfont"><strong>:</strong></td>
<td>
<span class="orange_15pt">
<img src="<%=imgURL & pathSite%>/coupon.gif" onClick="openMyCoupon()" style="cursor:pointer;" align="baseline" >
</span>
</td>
</tr>
<tr>
<td height="25" class=".nomalfont"><img src="<%=imgURL & pathSite%>/icon_green.gif" align="absmiddle"> ¹è¼Ûºñ</td>
<td width="15" class=".nomalfont"><strong>:</strong></td>
<td class=".nomalfont">
<%
' ¹è¼Ûºñ È®ÀÎ
Select Case deliveryPolicy
Case CM_DELIVERY_DEALER, CM_DELIVERY_DEFAULT
print "[±âº»Á¤Ã¥] "& makeDeliveryInfoContent(cfgDeliveryMethod, cfgDeliveryFee, cfgDeliveryLimit)
Case Else
print makeDeliveryInfoContent(deliveryMethod, deliveryFee, deliveryLimit)
End Select
%>
</td>
</tr>
<%
' »óÇ°¿É¼Ç °¹¼ö
goodsOptionCnt = 0
' »óÇ°¿É¼Ç : ÀϹݿɼÇ, °¡°Ý°£´Ü¿É¼Ç
If optionKind = CM_OPTIONKIND_NORMAL Or optionKind = CM_OPTIONKIND_EAZY Then
If IsArray(arrListO) Then
For i=0 To listLenO
optUid = arrListO(0, i)
optTitle = arrListO(1, i)
optItems = arrListO(2, i)
optIsRequire = arrListO(3, i)
arrOptItem = Split(optItems, ",")
%>
<tr>
<td height="25" class=".nomalfont"><img src="<%=imgURL & pathSite%>/icon_green.gif" align="absmiddle"> <%=optTitle%></td>
<td width="15" class=".nomalfont"><strong>:</strong></td>
<td>
<%
print "<select id='goodsOption' name='goodsOption' isrequire='"& optIsRequire &"' title='"& Replace(optTitle, "'", "\'") &"' onChange='checkOptionValue(this)'>"& vbCrLf
print "<option value=''>¼±ÅÃÇϼ¼¿ä.</option>"& vbCrLf
print "<option value='0'>--------------------</option>"& vbCrLf
For m=0 To UBound(arrOptItem)
optText = Trim(arrOptItem(m))
optPrice = 0
If optionKind = CM_OPTIONKIND_EAZY Then
arrOptText = Split(optText, "/")
optText = Trim(arrOptText(0))
If UBound(arrOptText) = 1 Then
optPrice = checkNumeric(arrOptText(1))
If optPrice > 0 Then
optText = optText &" (+"& num2Cur(Abs(optPrice)) &")"
ElseIf optPrice < 0 Then
optText = optText &" (-"& num2Cur(Abs(optPrice)) &")"
End If
End If
End If
' ¿É¼Ç : ¿É¼ÇŸÀÌƲ [DELIMITER] ¿É¼ÇÇ׸ñUid [DELIMITER] ¿É¼ÇÇ׸ñ³»¿ë [DELIMITER] ¿É¼Ç°¡°Ý
optValue = optTitle & DELIMITER_OPTION &"0"& DELIMITER_OPTION & optText & DELIMITER_OPTION & optPrice
print "<option value='"& encQuote(optValue) &"'>"& optText &"</option>"& vbCrLf
Next
print "</select>"& vbCrLf
goodsOptionCnt = goodsOptionCnt + 1
%>
</td>
</tr>
<%
Next
End If
' »óÇ°¿É¼Ç : Àç°í/°¡°Ý¿É¼Ç
ElseIf optionKind = CM_OPTIONKIND_STOCK Then
For i=0 To 1
If IsArray(arrOptItemList(i)) Then
%>
<tr>
<td height="25" class=".nomalfont"><img src="<%=imgURL & pathSite%>/icon_green.gif" align="absmiddle">
<%=arrOptTitle(i)%></td>
<td width="15" class=".nomalfont"><strong>:</strong></td>
<td>
<%
print "<select id='goodsOption' name='goodsOption' isrequire='T' title='"& Replace(arrOptTitle(i), "'", "\'") &"' onChange='checkOptionValue(this)'>"& vbCrLf
print "<option value=''>¼±ÅÃÇϼ¼¿ä.</option>"& vbCrLf
print "<option value='0'>--------------------</option>"& vbCrLf
For m=0 To arrOptItemLen(i)
optItemUid = checkNumeric(arrOptItemList(i)(0, m))
optText = Trim(arrOptItemList(i)(1, m))
optPrice = checkNumeric(arrOptItemList(i)(2, m))
If optPrice > 0 Then
optText = optText &" (+"& num2Cur(Abs(optPrice)) &")"
ElseIf optPrice < 0 Then
optText = optText &" (-"& num2Cur(Abs(optPrice)) &")"
End If
' ¿É¼Ç : ¿É¼ÇŸÀÌƲ [DELIMITER] ¿É¼ÇÇ׸ñUid [DELIMITER] ¿É¼ÇÇ׸ñ³»¿ë [DELIMITER] ¿É¼Ç°¡°Ý
optValue = arrOptTitle(i) & DELIMITER_OPTION & optItemUid & DELIMITER_OPTION & optText & DELIMITER_OPTION & optPrice
print "<option value='"& encQuote(optValue) &"'>"& optText &"</option>"& vbCrLf
Next
print "</select>"& vbCrLf
goodsOptionCnt = goodsOptionCnt + 1
%>
</td>
</tr>
<%
End If
Next
' »óÇ°¿É¼Ç : ¼¼úÇü¿É¼Ç
ElseIf optionKind = CM_OPTIONKIND_TEXT Then
%>
<tr>
<td height="25" class=".nomalfont"><img src="<%=imgURL & pathSite%>/icon_green.gif" align="absmiddle"> ¿É¼Ç</td>
<td width="15" class=".nomalfont"><strong>:</strong></td>
<td>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td><%=tag2Text(optionTxt)%></td>
</tr>
<tr height="5">
<td><textarea name="goodsOptionTxt" class="input_gray" style="width:100%; height:27px;" onKeyUp="checkTextLen(this, 250)"></textarea></td>
</tr>
</table>
</td>
</tr>
<%
End If
%>
<input type="hidden" name="goodsOptionCnt" value="<%=goodsOptionCnt%>">
<%If contentFile <> "" Then%>
<tr>
<td height="25" class=".nomalfont"><img src="<%=imgURL & pathSite%>/icon_green.gif" align="absmiddle"> ÷ºÎÆÄÀÏ</td>
<td width="15" class=".nomalfont"><strong>:</strong></td>
<td>
<img src="<%=imgURL & pathIcon%>/<%=getFileExtIcon(contentFile)%>" align="absmiddle">
<span onClick="download('<%=contentFile%>')" style="cursor:pointer;"><%=contentFile%></span>
</td>
</tr>
<%End If%>
<tr>
<td height="25" class=".nomalfont"><img src="<%=imgURL & pathSite%>/icon_green.gif" align="absmiddle"> ¼ö·®</td>
<td width="15" class=".nomalfont"><strong>:</strong></td>
<td>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td rowspan="2"><input type="text" name="ea" value="1" size="2" class="input_gray" onKeyPress="blockNotNumber(event)" onKeyUp="numberOnly(this)" onBlur="numberOnly(this)"></td>
<td style="padding:0 3px 0 3px;"><img src="<%=imgURL & pathIcon%>/num_p.gif" border="0" onClick="controllNum(ea, '+');" style="cursor:pointer;"></td>
<td rowspan="2" class=".nomalfontt">EA</td>
</tr>
<tr>
<td style="padding:0 3px 0 3px;"><img src="<%=imgURL & pathIcon%>/num_m.gif" border="0" onClick="controllNum(ea, '-');" style="cursor:pointer;"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td align="left" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#f5f5f5">
<tr>
<td align="center" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#f5f5f5">
<tr>
<td align="center" style="padding:10px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#f5f5f5">
<tr>
<td width="100" height="25" class=".nomalfont"><img src="<%=imgURL & pathSite%>/icon_green.gif" align="absmiddle"> Á¦Á¶»ç/¿ø»êÁö</td>
<td width="15"><strong>:</strong></td>
<td width="318"class=".nomalfont">
<%
If product <> "" And placeOfOrigin <> "" Then
print product &" / "& placeOfOrigin
Else
print product & placeOfOrigin
End If
%></td>
</tr>
<tr>
<td height="25" class=".nomalfont"><img src="<%=imgURL & pathSite%>/icon_green.gif" align="absmiddle"> ºê·£µå</td>
<td width="15"><strong>:</strong></td>
<td class=".nomalfont"><%=brand%></td>
</tr>
<tr>
<td height="25" class=".nomalfont"><img src="<%=imgURL & pathSite%>/icon_green.gif" align="absmiddle"> »óÇ°ÄÚµå</td>
<td width="15"><strong>:</strong></td>
<td class="darkblue"><%=goodsCode%></td>
</tr>
<tr>
<td height="25"class=".nomalfont"><img src="<%=imgURL & pathSite%>/icon_green.gif" align="absmiddle"> °í°´»óÇ°Æò</td>
<td width="15"><strong>:</strong></td>
<td>
<%
sql = "SELECT COUNT(*), ISNULL(AVG(ParPoint), 0) FROM T_GOODS_OPINION"
sql = sql &" WHERE SiteID='"& siteID &"' AND GoodsUid=? AND CateCode=? AND OrderInfoUid>0"
arrParams = Array( _
Db.makeParam("@GoodsUid", adBigInt, adParamInput, 8, guid), _
Db.makeParam("@CateCode", adInteger, adParamInput, 4, cate) _
)
Set Rs = Db.execRs(sql, DB_CMDTYPE_TEXT, arrParams, Nothing)
opinionCnt = checkNumeric(Rs(0))
opinionAvg = checkNumeric(Rs(1))
Call closeRs(Rs)
strOpinionAvg = ""
For i=1 To opinionAvg
strOpinionAvg = strOpinionAvg &"¡Ú"
Next
%>
<span class="red"><%=strOpinionAvg%></span> <span class=".nomalfont" align="absmiddle">»óÇ°Æò<%=opinionCnt%>°³<img src="/images/blank.gif" align="baseline"> <a href="#04"><img src="<%=imgURL & pathSite%>/btn_stargo.gif" alt="»óÇ°Æò" border="0" align="absmiddle"></a> <a href="#05"><img src="<%=imgURL & pathSite%>/button/content_qanda.gif" alt="»óÇ°¹®ÀÇ" border="0" align="absmiddle"></a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr><td height="10"></td></tr>
<tr>
<td>
<!-- ¼îÇιöÆ° : ½ÃÀÛ -->
<table width="100%" height="35" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="125"><img src="<%=imgURL & pathSite%>/button/content_direct.gif" alt="¹Ù·Î±¸¸Å" onClick="checkGoods('direct')" style="cursor:pointer;"></td>
<td width="125"><img src="<%=imgURL & pathSite%>/button/content_cartin.gif" alt="Àå¹Ù±¸´Ï´ã±â" onClick="checkGoods('addCart')" style="cursor:pointer;"></td>
<td width="108"><img src="<%=imgURL & pathSite%>/button/content_wishlist.gif" alt="°ü½É¸®½ºÆ®" onClick="checkGoods('addWishList')" style="cursor:pointer;"></td>
<td align="right" style="padding-left:2;">
<table align="left" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left"><img src="<%=imgURL & pathSite%>/button/content_chuchun_mail.gif" alt="Ãßõ¸ÞÀÏ"
border="0" onClick="openFriendMail();" style="cursor:pointer;"></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- ¼îÇιöÆ° : ³¡ -->
<%
' # Çà»çÄíÆù
Call printCouponEvent(guid, cate)
%>
</td>
</tr>
</table>
<!-- Á¦Ç°±âº»Á¤º¸ : ³¡ -->
</td>
</tr>
</table>
<!-- Á¦Ç°Á¤º¸ : ³¡ --></td>
</tr>
<tr><td height="20"></td></tr>
</table>
</form>
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout:fixed">
<tr>
<td>
<!-- Á¦Ç°»ó¼¼Á¤º¸ & °ü·Ã»óÇ° : ½ÃÀÛ -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<!-- TAB_01 : Á¦Ç°»ó¼¼Á¤º¸ : ½ÃÀÛ -->
<a name="01"></a>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="/images/detail_tab_bg.gif">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="#01" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_12.gif" border="0"></a></td>
<td width="1"></td>
<td><a href="#02" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_21.gif" border="0"></a></td>
<td><a href="#03" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_31.gif" border="0"></a></td>
<td><a href="#04" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_41.gif" border="0"></a></td>
<td><a href="#05" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_51.gif" border="0"></a></td>
<td><a href="#06" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_61.gif" border="0"></a></td>
</tr>
</table>
</td>
</tr>
<tr><td height="10"></td></tr>
<%
' # »óÇ°ÄíÆù
Call printCouponGoods(guid, cate)
%>
<tr>
<td style="padding:0 0 0 0px;">
<table id="tbContent" cellpadding="0" cellspacing="0" border="0" width="100%" style="table-layout:fixed;">
<tr>
<td style="word-wrap:break-word; word-break:break-all;" valign="top">
<!--<div style="margin-bottom:10px;"><img src="<%=imgURL & pathSite%>/content_sangsebar.gif"></div>-->
<div style="overflow:auto; width:100%;"><%=decQuote(content)%></div>
<!--<%
' # ±âŸ À̹ÌÁö : ½ÃÀÛ
If IsArray(arrListI) Then
print "<div style='margin-top:20px;'><img src='"& imgURL & pathSite &"/content_otherimage.gif'></div>"& vbCrLf
For i=0 To listLenI
imgPath = arrListI(0, i)
imgFName = arrListI(1, i)
print "<div style='margin-top:10px;'><img src='"& imgURL & imgPath &"/"& imgFName &"'></div>"& vbCrLf
Next
End If
' # ±âŸ À̹ÌÁö : ³¡
%>-->
</td>
</tr>
</table>
<script type="text/javascript">addEvent(window, 'load', function() { resizeImageAll('tbContent'); });</script>
</td>
</tr>
</table>
<!-- TAB_01 : Á¦Ç°»ó¼¼Á¤º¸ : ³¡ -->
</td>
</tr>
<tr><td height="20"></td></tr>
<tr>
<td>
<!-- TAB_02 : ¹è¼Û°ü·ÃÁ¤º¸ : ½ÃÀÛ -->
<a name="02"></a>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="/images/detail_tab_bg.gif">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="#01" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_11.gif" border="0"></a></td>
<td><a href="#02" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_22.gif" border="0"></a></td>
<td><a href="#03" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_31.gif" border="0"></a></td>
<td><a href="#04" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_41.gif" border="0"></a></td>
<td><a href="#05" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_51.gif" border="0"></a></td>
<td><a href="#06" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_61.gif" border="0"></a></td>
</tr>
</table>
</td>
</tr>
<tr><td height="10"></td></tr>
<%
If goodsDealerID = siteID Then
If deliveryContent <> "" Then
deliveryHeadLine = "<span style='color:red'>¹è¼Ûºñ´Â ¾÷üÀÇ ±âº»¹è¼ÛÁ¤Ã¥°ú »óÇ°¸¶´Ù ¹è¼ÛÁ¤Ã¥ÀÌ ´Ù¸¦¼ö°¡ ÀÖ½À´Ï´Ù.<br>"& _
"»óÇ°¿¡ Àû¿ëµÈ ¹è¼ÛÁ¤Ã¥Àº »óÇ°¿¡°Ô¸¸ Àû¿ëµÇ¸ç ±âº» ¹è¼ÛÁ¤Ã¥¿¡´Â ¿µÇâÀ» ¹ÞÁö ¾Ê½À´Ï´Ù.</span>"
Else
sql = "SELECT Content FROM T_TEXT_MANAGER WHERE SiteID='"& siteID &"' AND Code=?"
arrParams = Array( _
Db.makeParam("@Code", adVarchar, adParamInput, 20, CM_TXTCODE_DELIVERY) _
)
Set Rs = Db.execRs(sql, DB_CMDTYPE_TEXT, arrParams, Nothing)
If Not Rs.bof And Not Rs.eof Then
deliveryContent = Rs("Content")
End If
Call closeRs(Rs)
End If
deliveryContent = Replace(deliveryContent, "[»çÀÌÆ®¸í]", cfgSiteName)
deliveryContent = Replace(deliveryContent, "[±¸¸Å»óÇÑ°¡]", num2Cur(cfgDeliveryLimit) &"¿ø ")
deliveryContent = Replace(deliveryContent, "[¹è¼Û·á]", num2Cur(cfgDeliveryFee) &"¿ø ")
deliveryContent = Replace(deliveryContent, "[¿Õº¹¹è¼Û·á]", num2Cur(cfgDeliveryFee * 2) &"¿ø ")
End If
%>
<tr>
<td style="padding:0 0 0 0;">
<table id="tbDeliveryContent" cellpadding="0" cellspacing="0" border="0" width="100%" style="table-layout:fixed;">
<tr>
<td style="word-wrap:break-word; word-break:break-all;" valign="top">
<div><%=deliveryHeadLine%></div>
<div style="overflow:auto; width:100%;"><%=decQuote(deliveryContent)%></div>
</td>
</tr>
</table>
<script type="text/javascript">addEvent(window, 'load', function() { resizeImageAll('tbDeliveryContent'); });</script>
</td>
</tr>
</table>
<!-- TAB_02 : ¹è¼Û°ü·ÃÁ¤º¸ : ³¡ -->
</td>
</tr>
<tr><td height="20"></td></tr>
<tr>
<td>
<!-- TAB_03 : ±³È¯È¯ºÒÁ¤º¸ : ½ÃÀÛ -->
<a name="03"></a>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="/images/detail_tab_bg.gif">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="#01" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_11.gif" border="0"></a></td>
<td><a href="#02" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_21.gif" border="0"></a></td>
<td><a href="#03" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_32.gif" border="0"></a></td>
<td><a href="#04" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_41.gif" border="0"></a></td>
<td><a href="#05" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_51.gif" border="0"></a></td>
<td><a href="#06" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_61.gif" border="0"></a></td>
</tr>
</table>
</td>
</tr>
<tr><td height="10"></td></tr>
<%
If dealerRefundContent <> "" Then
refundContent = dealerRefundContent
Else
sql = "SELECT Content FROM T_TEXT_MANAGER WHERE SiteID='"& siteID &"' AND Code=?"
arrParams = Array( _
Db.makeParam("@Code", adVarchar, adParamInput, 20, CM_TXTCODE_RETURN) _
)
Set Rs = Db.execRs(sql, DB_CMDTYPE_TEXT, arrParams, Nothing)
If Not Rs.bof And Not Rs.eof Then
refundContent = Rs("Content")
End If
Call closeRs(Rs)
End If
%>
<tr>
<td style="padding:0 0 0 0;">
<table id="tbRefundContent" cellpadding="0" cellspacing="0" border="0" width="100%" style="table-layout:fixed;">
<tr>
<td style="word-wrap:break-word; word-break:break-all;" valign="top">
<div style="overflow:auto; width:100%;"><%=decQuote(refundContent)%></div>
</td>
</tr>
</table>
<script type="text/javascript">addEvent(window, 'load', function() { resizeImageAll('tbRefundContent'); });</script>
</td>
</tr>
</table>
<!-- TAB_03 : ±³È¯È¯ºÒÁ¤º¸ : ³¡ -->
</td>
</tr>
<tr><td height="20"></td></tr>
<tr>
<td>
<!-- TAB_04 : »óÇ°Æò : ½ÃÀÛ -->
<a name="04"></a>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="/images/detail_tab_bg.gif">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="#01" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_11.gif" border="0"></a></td>
<td><a href="#02" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_21.gif" border="0"></a></td>
<td><a href="#03" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_31.gif" border="0"></a></td>
<td><a href="#04" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_42.gif" border="0"></a></td>
<td><a href="#05" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_51.gif" border="0"></a></td>
<td><a href="#06" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_61.gif" border="0"></a></td>
</tr>
</table>
</td>
</tr>
<tr><td height="10"></td></tr>
<tr>
<!--#include file="../goods/content_opinion.asp"-->
</tr>
</table>
<!-- TAB_04 : »óÇ°Æò : ³¡ -->
</td>
</tr>
<tr><td height="20"></td></tr>
<tr>
<td>
<!-- TAB_05 : »óÇ°Q/A : ½ÃÀÛ -->
<a name="05"></a>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="/images/detail_tab_bg.gif">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="#01" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_11.gif" border="0"></a></td>
<td><a href="#02" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_21.gif" border="0"></a></td>
<td><a href="#03" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_31.gif" border="0"></a></td>
<td><a href="#04" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_41.gif" border="0"></a></td>
<td><a href="#05" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_52.gif" border="0"></a></td>
<td><a href="#06" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_61.gif" border="0"></a></td>
</tr>
</table>
</td>
</tr>
<tr><td height="10"></td></tr>
<tr>
<td>
<!--#include file="../goods/content_qna.asp"-->
</td>
</tr>
</table>
<!-- TAB_05 : »óÇ°Q/A : ³¡ -->
</td>
</tr>
<tr><td height="20"></td></tr>
<tr>
<td>
<!-- TAB_06 : °ü·Ã»óÇ° : ½ÃÀÛ -->
<a name="06"></a>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="/images/detail_tab_bg.gif">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="#01" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_11.gif" border="0"></a></td>
<td><a href="#02" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_21.gif" border="0"></a></td>
<td><a href="#03" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_31.gif" border="0"></a></td>
<td><a href="#04" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_41.gif" border="0"></a></td>
<td><a href="#05" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_51.gif" border="0"></a></td>
<td><a href="#06" onFocus="this.blur()"><img src="<%=imgURL & pathSite%>/protap_62.gif" border="0"></a></td>
</tr>
</table>
</td>
</tr>
<tr><td height="10"></td></tr>
<tr>
<td>
<!--#include file="../goods/content_relate.asp"-->
</td>
</tr>
</table>
<!-- TAB_06 : °ü·Ã»óÇ° : ³¡ -->
</td>
</tr>
</table>
<!-- Á¦Ç°»ó¼¼Á¤º¸ & °ü·Ã»óÇ° : ³¡ -->
</td>
</tr>
</table>
<script type="text/javascript">
<!--
<%If part = "opinion" Then%>
location.href="#04";
<%ElseIf part = "qna" Then%>
location.href="#05";
<%End If%>
//-->
</script>
<!--#include virtual="/_include/copyright.asp"-->