<!--#include file="conn.asp"-->
<!--#include file="inc/cookies_check.asp"-->
<!--#include file="inc/Page_cls.asp"-->
<!--#include file="../include/lebi_config.asp"-->
<%
'*****************************************
'* 软件名称 乐彼网上开店软件(56770 EShop)
'* 软件开发 http://www.56770.com
'* 版权所有 http://www.56770.com
'* 文件名称 Admin_score.asp
'* 最后更新 2013-01-25 by 56770.kingdge
'*****************************************
Dim admin_flag
admin_flag=",2.7,"
include "lang/"& LangFilePath &"/lang_sys.inc"
include "lang/"& LangFilePath &"/lang_menu.inc"
include "lang/"& LangFilePath &"/lang_score.inc"
CurrentId = 1
CurrentUrl = "admin_score.asp"
LB_Head()
LB_Menu()
id = checknum(request("id"),0)
%>
<div class="tabmenu mainwidth">
      <ul>
        <li <%If request("action") <> "add" Then Response.Write("class=""current""") End If%>><a href="admin_score.asp"><span><%=Lang_Menu(72)%></span></a></li>
        <li <%If request("action") = "add" Then Response.Write("class=""current""") End If%>><a href="?action=add"><span><%=Lang_Score(17)%></span></a></li>
      </ul>
</div>
<%
Response.Write("<div class=""tab-mainbody"">")
Response.Write("<div class=""tab-mainbody2"">")
If Eshop_Lebi_name="" Or instr(","&Eshop_Lebi_flag&",",admin_flag)=0 Then
	    adminflag()
Else
		If OutSubmit = 1 Then CheckOutSubmit()
        Select Case Request("action")
	           Case "add_ok" : add_ok()
	           Case "add" : add()
	           Case "del" : del()
	           Case "edit_ok" : edit_ok()
	           Case "edit" : edit()
	           Case Else
	                list()
        End Select
End If
Response.Write("</div>")
Response.Write("</div>")
LB_Footer()

sub add_ok
        If OnlyRead = 1 Then OnlyReadMessage()
        product_name=Safereplace(request("product_name"))
        jifen=CheckNum(request("jifen"),100)
        info=replace(request("info"), "'","&#180;")
        pic=Safereplace(request("pic"))
        if pic="" then pic="pic/noimages.gif"
        cpic=Safereplace(request("cpic"))
        if cpic="" then cpic="pic/nonegif.gif"
        addtime=Safereplace(request("addtime"))
        endtime=Safereplace(request("endtime"))
        kucun=CheckNum(request("kucun"),100)
		rem 增加礼品重量 用于计算配送费用 2006-5-4 by 56770.kingdge
		p_weight=CheckNum(request("p_weight"),0)
		set rs = conn.execute("select * from [Lebi_vipproduct] where product_name='"&product_name&"' order by id desc")
		if not(rs.eof or rs.bof) then
       			response.write"<SCRIPT lang1uage=JavaScript>alert('"& Lang_Score(1) &"');javascript:history.go(-1)</SCRIPT>"
				response.End
		end If
		rs.close:set rs=nothing
		set rs=server.createobject("adodb.recordset")
		sql="select * from [Lebi_vipproduct] where (id is null)"
		rs.open sql, conn, 1, 3
		rs.addnew
		For LangT = 1 To TotalLang
				rs("product_name" & LanguageTxt(LangT))=safereplace(request("product_name" & LanguageTxt(LangT)))
				If request("savepic" & LanguageTxt(LangT)) = "1" Then
						FilesPath="../pic/userfiles/image/"
						rs("info" & LanguageTxt(LangT))=ReplaceSaveRemoteFile(Replace(request("info" & LanguageTxt(LangT)),"'","&#180;"),False,True,True,FilesPath,Eshop_url)
				Else
						rs("info" & LanguageTxt(LangT))=Replace(request("info" & LanguageTxt(LangT)),"'","&#180;")
				End If
		Next
		rs("jifen")=jifen
		rs("cpic")=cpic
		rs("pic")=pic
		rs("endtime")=endtime
		rs("kucun")=kucun
		rs("addtime")=Now()
		rs("p_weight") = p_weight
		rs.update
		rs.close:set rs=Nothing
		ManageLog Lang_Score(2)
		Call Up_mes(Lang_sys(45),"·"& Lang_sys(44),0,"?",0,0,2,1)
End Sub

sub edit_ok
        If OnlyRead = 1 Then OnlyReadMessage()
		id=CheckNum(request("id"),0)
		product_name=Safereplace(request("product_name"))
		product_name1=Safereplace(request("product_name1"))
        jifen=CheckNum(request("jifen"),100)
        info=replace(request("info"), "'","&#180;")
        pic=Safereplace(trim(request("pic")))
        if pic="" then pic="pic/noimages.gif"
        cpic=Safereplace(Trim(request("cpic")))
        if cpic="" then cpic="pic/nonegif.gif"
        cinfo=Safereplace(trim(request("cinfo")))
        addtime=Safereplace(request("addtime"))
        endtime=Safereplace(request("endtime"))
        kucun=CheckNum(request("kucun"),100)
		rem 增加礼品重量 用于计算配送费用 2006-5-4 by 56770.kingdge
		p_weight=CheckNum(request("p_weight"),0)
		if product_name1<>product_name then
				set rs = conn.execute("select * from [Lebi_vipproduct] where product_name='"&product_name&"' order by id desc")
				if not(rs.eof or rs.bof) then
						response.write"<SCRIPT lang1uage=JavaScript>alert('"& Lang_Score(1) &"');javascript:history.go(-1)</SCRIPT>"
						response.End
				End If
				rs.close:set rs=nothing
		End If
		set rs=server.createobject("adodb.recordset")
		sql="select * from [Lebi_vipproduct] where id=" & id &""
		rs.open sql, conn, 1, 3
		For LangT = 1 To TotalLang
				rs("product_name" & LanguageTxt(LangT))=safereplace(request("product_name" & LanguageTxt(LangT)))
				If request("savepic" & LanguageTxt(LangT)) = "1" Then
						FilesPath="../pic/userfiles/image/"
						rs("info" & LanguageTxt(LangT))=ReplaceSaveRemoteFile(Replace(request("info" & LanguageTxt(LangT)),"'","&#180;"),False,True,True,FilesPath,Eshop_url)
				Else
						rs("info" & LanguageTxt(LangT))=Replace(request("info" & LanguageTxt(LangT)),"'","&#180;")
				End If
		Next
		rs("jifen")=jifen
		rs("cpic")=cpic
		rs("pic")=pic
		rs("endtime")=endtime
		rs("kucun")=kucun
		rs("addtime")=Now()
		rs("p_weight") = p_weight
		rs.update
		rs.close:set rs=Nothing
		ManageLog Lang_Score(3) &" ["&product_name&"]"
		Call Up_mes(Lang_sys(48),"·"& Lang_sys(47),0,"?",0,0,2,1)
end sub

sub del
        If OnlyRead = 1 Then OnlyReadMessage()
		id=Safereplace(request("id"))
		if id="" then
				response.write"<SCRIPT lang1uage=JavaScript>alert('"& Lang_sys(41) &"');javascript:history.go(-1)</SCRIPT>"
				response.end
		end if
		'删除图片
		If Right(id,1)="," Then id = id &"0"
		sql="select id,pic,cpic from [Lebi_vipproduct] where id in ("&id&") "
        set rs=conn.execute(sql)
		If Not rs.eof Then
		Do While Not rs.eof
        cpic=LCase(Trim(rs("cpic")))
        pic=LCase(Trim(rs("pic")))
        filepath_pic="../"&pic
        filepath_cpic="../"&cpic
        path_pic= server.MapPath(filepath_pic)
        path_cpic= server.MapPath(filepath_cpic)
        set objfso = server.createobject("scripting.FileSystemObject")
        if objfso.FileExists(path_pic) or objfso.FileExists(path_cpic) then
                If pic<>"pic/noimages.gif" And cpic<>"pic/nonegif.gif" And objfso.FileExists(path_pic) then
                        objfso.DeleteFile(path_pic)
				End If
                If cpic<>"pic/nonegif.gif" And cpic<>"pic/noimages.gif"  And objfso.FileExists(path_cpic) then
                        objfso.DeleteFile(path_cpic)
				End If
                set objfso = Nothing
        end if
        conn.execute "delete from [Lebi_vipproduct] where id="&rs("id")&""
		rs.movenext
		Loop
		End If
		rs.close:set rs=Nothing
		ManageLog Lang_Score(4) &" ["&id&"]"
		m_u="?page="& request("page") &"&keyword="& request("keyword") &"&DateFrom="& request("DateFrom") &"&DateTo="& request("DateTo") &"&pagenum="& request("pagenum") &"&lang="& request("lang")
		Call Up_mes(Lang_sys(43),"·"& Lang_sys(42),0,m_u,0,0,2,1)
end sub
%>
<script language="JavaScript">
function CheckForm()
{
	if (CheckEmpty('product_name<%= LanguageTxt(1) %>')){ShowMessage('product_name<%= LanguageTxt(1) %>','<%=Lang_Score(5)%>');return false;}
	if (CheckEmpty('jifen')){ShowMessage('jifen','<%=Lang_Score(6)%>');return false;}
	if (CheckEmpty('pic')){ShowMessage('pic','<%=Lang_Score(7)%>');return false;}
	if (CheckEmpty('cpic')){ShowMessage('cpic','<%=Lang_Score(8)%>');return false;}
}
</script>
<%
sub list
		page = CheckNum(request("page"),1)
		pagenum = CheckNum(request("pagenum"),15)
		datefrom=safeReplace(request("datefrom"))
		dateto=safeReplace(request("dateto"))
		keyword=safereplace(Trim(request("keyword")))
		lang = safereplace(request("lang"))
		If lang = "" Then lang = LanguageTxt(0)
		Dim ors
		Set ors=new Cls_vbsPage
		Set ors.Conn=conn
		With ors
		.PageSize=pagenum
		.PageName="Page"
		If IsSqlDataBase = 0 Then
				.DbType="AC"
		Else
				.DbType="MSSQL"
		End If
		.RecType=0
		.Pkey="id"
		.Field="id,product_name"& lang &",jifen,kucun,addtime,endtime"
		.Table="[Lebi_vipproduct]"
		sql = "1=1"
		if keyword<>"" then sql=sql + " and product_name"& lang &" like '%"&keyword&"%'"
		If IsSqlDataBase = 1 And datefrom<>"" And dateto<>"" Then sql=sql + " and DateDiff(d,addtime,'"& datefrom &"')<=0 and DateDiff(d,addtime,'"& dateto &"')>=0"
		If IsSqlDataBase = 0 And datefrom<>"" And dateto<>"" Then sql=sql + " and DateDiff('d',addtime,'"& datefrom &"')<=0 and DateDiff('d',addtime,'"& dateto &"')>=0"
		.Condition=sql
		.OrderBy="id desc"
		End With
		DataCount=ors.RecCount()
		DataList=ors.ResultSet()
%>
<script language="javascript" src="inc/js/MyCalendar.js"></script>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="classtable-top">
<form  method="get" action="?">
<tbody>
<tr>
<td align="left" height="30" class="classhead">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<select name="lang">
<option value="" selected>┌ <%=Lang_sys(67)%></option>
<%For LangT = 1 To TotalLang%>
<option value="<%= LanguageTxt(LangT) %>"<%=judge2(LanguageTxt(LangT),Lang)%>>├ <%= LanguageName(LangT) %></option>
<%Next%>
</select>
</td>
<td style="padding-left:5px;">
<input type="text" name="dateFrom" value="<%=dateFrom%>" size="12" class="form_calendar" onclick="setday(this)" /> - <input type="text" name="dateTo" value="<%=dateTo%>" size="12" class="form_calendar" onclick="setday(this)" />
</td>
<td style="padding-left:5px;"><input name="keyword" id="keyword" type="text" value="<%=keyword%>" class="form_query" size="15" autocomplete="off" onkeyup="search_suggest('keyword','Lebi_vipproduct','<%=lang%>')"><input name="Submit" type="submit" value="" title="<%=Lang_sys(25)%>" align="absmiddle" class="btn_query"><input type="hidden" name="pagenum" value="<%= pagenum %>"><br /><div id="search_suggest_keyword" class="search_suggest" style="display:none"></div>
</td>
</tr>
</table>
</td>
</form>
<td align="right" class="classhead">
<%=QuickMenu("Admin_product_unite.asp|"& Lang_Menu(72) &"","Admin_sort.asp|"& Lang_Menu(75) &"")%>
</td>
</tr>
</tbody>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="list" class="classtable2">
<tbody>
<form name="myform" action="?action=del" method="post">
<tr>
<td align="left" colspan="3" height="30" class="classhead">
<input type="image" name="Submit" title=" <%=Lang_sys(15)%> " onClick="return confirm('<%=Lang_sys(64)%>')" src="lang/<%=LangFilePath%>/images/bt_delete.gif" align="absmiddle">
<input type="hidden" name="page" value="<%=page%>">
<input type="hidden" name="keyword" value="<%=keyword%>">
<input type="hidden" name="dateFrom" value="<%=dateFrom%>">
<input type="hidden" name="dateTo" value="<%=dateTo%>">
<input type="hidden" name="Lang" value="<%=Lang%>">
<input type="hidden" name="pagenum" value="<%= pagenum %>">
</td>
<td colspan="4" align="right" class="classhead">
<%=ors.ShowPageHead(page)%>
</td>
</tr>
<tr>
<td class="classtop" height="30" width="5%" title="<%=Lang_sys(4)%>" style="cursor:pointer;" onclick="location.href='javascript:selectall();';return false;"><%=Lang_sys(50)%></td>
<td class="classtop" width="15%"><%=Lang_Score(9)%></td>
<td class="classtop" width="15%"><%=Lang_Score(10)%></td>
<td class="classtop" width="40%"><%=Lang_Score(11)%></td>
<td class="classtop" width="10%"><%=Lang_Score(12)%></td>
<td class="classtop" width="10%"><%=Lang_Score(13)%></td>
<td class="classtop"><%=Lang_Score(14)%></td>
</tr>
<%
If DataCount >0 Then
		For i = 0 To Ubound(DataList,2)
%>
<tr class="classrow">
<td height="30" class="classrow"><input name="id" type="checkbox" value="<%=DataList(0,i)%>"></td>
<td class="classrow"><%=formatdatetime(DataList(4,i),2)%></td>
<td class="classrow"><%if DataList(5,i)>date() then response.write DataList(5,i) else response.write("<font color=red>"& Lang_Score(15) &"</font>") end if%></td>
<td class="classrow"><%=DataList(1,i)%></td>
<td class="classrow"><%=DataList(2,i)%></td>
<td class="classrow"><%=DataList(3,i)%></td>
<td class="classrow"><a href="?action=edit&id=<%=DataList(0,i)%>"><img src="images/icon_edit.gif" border="0" title="<%=Lang_sys(51)%>"></a></a>
</td>
</tr>
<%
        Next
End If
%>
</form>
<tr>
	<td height="30" class="classfooter" colspan="2"><%=GetPageNum(15,pagenum)%></td>
	<td height="30" class="classfooter" align="right" colspan="5"><%=ors.ShowPageFoot(page)%></td>
</tr>
</tbody>
<tfoot>
<tr>
<td height="30" class="classfaq" colspan="7">
  <div class="faq_main">
  <p class="faq_title"><%=Lang_sys(49)%></p>
   <%=Lang_Score(16)%>
</td>
</tr>
</tfoot>
</table>
<script type="text/javascript">tdshow("list");</script>
<%
end sub

sub add
%>
<script language="javascript" type="text/javascript" src="ckeditor/ckeditor.js"></script>
<script language="javascript" type="text/javascript" src="ckfinder/ckfinder.js"></script>
<script language="javascript" type="text/javascript" src="inc/js/MyCalendar.js"></script>
<script language="javascript" type="text/javascript" src="Upfile/js/Upload_Other.js"></script>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="classtable">
<form action="?action=add_ok" method="post" name="add_okduct" onSubmit="return CheckForm();">
<tr>
	<td height="30" align="left" class="classhead">
	<input name="submit" type="image" src="lang/<%=LangFilePath%>/images/bt_app.gif" align="absmiddle" title=" <%=Lang_sys(1)%> ">&nbsp;<input type="image" src="lang/<%=LangFilePath%>/images/bt_res.gif" title=" <%=Lang_sys(2)%> " onclick="reset();return false;" align="absmiddle">
	</td>
	<td class="classhead" align="right">
	<%=QuickMenu("","")%>
	</td>
</tr>
<tr>
<td height="30" colspan="2" class="classtop"><%=Lang_Score(17)%></td>
</tr>
	<tr>
	<td class="classbg" colspan="2">
	<ul id="tablist">
	   <%For LangT = 1 To TotalLang%>
	   <li<%If LangT = 1 Then response.write(" class=""selected""") End If%>><a rel="tcontent<%= LangT %>" style="CURSOR:hand;"><%= LanguageName(LangT) %></a></li>
	   <%Next%>
	</ul>
	<div id="tabcontentcontainer">
	<%For LangT = 1 To TotalLang%>
	   <div id="tcontent<%= LangT %>" class="tabcontent">
	   <table cellspacing="0" cellpadding="4" width="100%" border="0" id="add_<%= LangT %>">
<tr class="classrow">
<td height="30" width="15%" class="classrow"><%=Lang_Score(18)%>
</td>
<td class="classrow"><input type="text" id="product_name<%= LanguageTxt(LangT) %>" name="product_name<%= LanguageTxt(LangT) %>" size="50" value="" class="form"> <span id="mes_product_name<%= LanguageTxt(LangT) %>"></span>
</td>
</tr>
<tr class="classrow">
<td height="30" class="classrow" valign="top" style="padding-top:6px;"><%=Lang_Score(19)%><div class="autosave"><span id="timemsg<%= LanguageTxt(LangT) %>"></span><br /><span id="msg2<%= LanguageTxt(LangT) %>"></span><br /><span id="msg<%= LanguageTxt(LangT) %>"></span></div><div class="autosave"><input type="checkbox" name="savepic" value="1"><%=Lang_sys(71)%></div><br /></td>
<td class="classrow">
<textarea name="info<%= LanguageTxt(LangT) %>" id="info<%= LanguageTxt(LangT) %>" rows="12" cols="80" class="text"><%= details %></textarea>
<span id="btn_showFCK<%= LanguageTxt(LangT) %>"><br /><input type="button" value="<%=Lang_sys(65)%>" onclick="showFCK<%= LanguageTxt(LangT) %>()" class="button"></span>
<span id="ReHeightFCK<%= LanguageTxt(LangT) %>"><a href="javascript:u_Size(-10,'info<%= LanguageTxt(LangT) %>')"><img src="lang/<%=LangFilePath%>/images/tab/bt_close.gif" border='0'></a>&nbsp;<a href="javascript:u_Size(10,'info<%= LanguageTxt(LangT) %>')"><img src="lang/<%=LangFilePath%>/images/tab/bt_open.gif" border='0'></a></span>
<script type="text/javascript">
function showFCK<%= LanguageTxt(LangT) %>(){
	document.getElementById("btn_showFCK<%= LanguageTxt(LangT) %>").style.display = 'none' ;
	document.getElementById("ReHeightFCK<%= LanguageTxt(LangT) %>").style.display = 'none' ;
	CKEDITOR.replace('info<%= LanguageTxt(LangT) %>',{height:300});
	CKFinder.SetupCKEditor(editor, 'ckfinder/'); 
}
</script>
<%If Config_Lebi_Eshop(19) = "0" Then%><script type="text/javascript">showFCK<%= LanguageTxt(LangT) %>()</script><%End If%>
<SCRIPT LANGUAGE="JavaScript" src="Admin_autosave.asp?act=edit&type=gift<%= LanguageTxt(LangT) %>&Lang=<%= LanguageTxt(LangT) %>&mode=<%If Config_Lebi_Eshop(19) = "0" Then response.write("0") Else response.write("1") End If%>"></SCRIPT>
</td>
</tr>
		</table>
		</div>
		<script type="text/javascript">tdshow("add_<%= LangT %>");</script>
	<%Next%>
	</div>
	<script type="text/javascript">showtabcontent("tablist")</script>
	<ul id="tablistmain">
	   <li class="selected"><a rel=""><%=Lang_sys(66)%></a></li>
	</ul>
	<div id="tabcontentcontainer">
	<table cellspacing="0" cellpadding="4" width="100%" border="0" id="add_other">
<tr class="classrow">
<td height="30" width="15%" class="classrow"><%=Lang_Score(20)%></td>
<td class="classrow"><input type="text" id="jifen" name="jifen" size="5" value="0" onkeyup="value=value.replace(/[^\d\.]/g,'');" class="form"> <span id="mes_jifen"></span>
</td>
</tr>
<tr class="classrow">
<td height="30" class="classrow"><%=Lang_Score(21)%></td>
<td class="classrow"><input type="text" name="kucun" size="5" value="1" onkeyup="value=value.replace(/[^\d\.]/g,'');" class="form">
</td>
</tr>
<tr class="classrow">
<td height="30" class="classrow"><%=Lang_Score(22)%></td>
<td class="classrow"><input type="text" name="p_weight" size="5" value="0" class="form"> <img src="images/help.gif" align="absmiddle" onmouseover="showhintinfo(this,0,0,'','<%=Lang_Score(23)%>','50','up');" onmouseout="hidehintinfo();">
</td>
</tr>
<tr class="classrow">
<td height="30" class="classrow"><%=Lang_Score(24)%></td>
<td class="classrow"><input type="text" name="endtime" value="<%=date()+30%>" size="15" class="calendar" onclick="setday(this)" />
</td>
</tr>
<tr class="classrow">
<td height="30" class="classrow"><%=Lang_Score(25)%></td>
<td class="classrow"><input type="text" id="pic" name="pic" size="30" class="form">
 <input type="button" name="Upload_pic" id="Upload_pic" value="<%=Lang_sys(52)%>" onclick="uploadpanel('add_okduct','pic','score')" class="btn_upload"> <span id="mes_pic"></span>
</td>
</tr>
<tr class="classrow">
<td height="30" class="classrow"><%=Lang_Score(26)%></td>
<td class="classrow"><input type="text" id="cpic" name="cpic" size="30" class="form">
 <input type="button" name="Upload_cpic" id="Upload_cpic" value="<%=Lang_sys(52)%>" onclick="uploadpanel('add_okduct','cpic','score')" class="btn_upload"> <span id="mes_cpic"></span>
</td>
</tr>
</table>
</div>
<script type="text/javascript">tdshow("add_other");</script>
</td>
</tr>
<tr>
<td height="30" align="left" colspan="2" class="classfooter">
<input name="submit" type="image" src="lang/<%=LangFilePath%>/images/bt_app.gif" align="absmiddle" title=" <%=Lang_sys(1)%> ">&nbsp;<input type="image" src="lang/<%=LangFilePath%>/images/bt_res.gif" title=" <%=Lang_sys(2)%> " onclick="reset();return false;" align="absmiddle">
</td>
</tr>
</form>
</table>
<%
end Sub

sub edit
id=CLng(request("id"))
sql="select * from [Lebi_vipproduct] where id=" & id
set rss = conn.execute(sql)
%>
<script language="javascript" type="text/javascript" src="ckeditor/ckeditor.js"></script>
<script language="javascript" type="text/javascript" src="inc/js/js_link.js"></script>
<script language="javascript" type="text/javascript" src="inc/js/MyCalendar.js"></script>
<script language="javascript" type="text/javascript" src="Upfile/js/Upload_Other.js"></script>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="classtable">
<form action="Admin_score.asp" method="post" name="add_okduct" onSubmit="return CheckForm();">
<tr>
	<td height="30" align="left" class="classhead">
	<input name="submit" type="image" src="lang/<%=LangFilePath%>/images/bt_app.gif" align="absmiddle" title=" <%=Lang_sys(1)%> ">
	<input type="image" src="lang/<%=LangFilePath%>/images/bt_res.gif" title=" <%=Lang_sys(2)%> " onclick="reset();return false;" align="absmiddle">
	</td>
	<td class="classhead" align="right">
	<%=QuickMenu("","")%>
	</td>
</tr>
<tr>
<td height="30" colspan="2" class="classtop"><%=Lang_Score(27)%></td>
</tr>
	<tr>
	<td class="classbg" colspan="2">
	<ul id="tablist">
	   <%For LangT = 1 To TotalLang%>
	   <li<%If LangT = 1 Then response.write(" class=""selected""") End If%>><a rel="tcontent<%= LangT %>" style="CURSOR:hand;"><%= LanguageName(LangT) %></a></li>
	   <%Next%>
	</ul>
	<div id="tabcontentcontainer">
	<%For LangT = 1 To TotalLang%>
	   <div id="tcontent<%= LangT %>" class="tabcontent">
	   <table cellspacing="0" cellpadding="4" width="100%" border="0" id="edit_<%= LangT %>">
<tr class="classrow">
<td height="30" width="15%" class="classrow"><%=Lang_Score(18)%>
</td>
<td class="classrow"><input type="text" id="product_name<%= LanguageTxt(LangT) %>" name="product_name<%= LanguageTxt(LangT) %>" size="50" value="<%=rss("product_name"& LanguageTxt(LangT))%>" class="form"> <img src='images/img.gif' align='absmiddle' onMouseover="javascript:ddrivetip('<img src=../<%=trim(rss("pic"))%> height=100>', '#ffffff', '100')" onMouseout="hideddrivetip()"> <span id="mes_product_name<%= LanguageTxt(LangT) %>"></span>
</td>
</tr>
<tr>
<td height="30" valign="top" class="classrow"><%=Lang_Score(19)%><div class="autosave"><span id="timemsg<%= LanguageTxt(LangT) %>"></span><br /><span id="msg2<%= LanguageTxt(LangT) %>"></span><br /><span id="msg<%= LanguageTxt(LangT) %>"></span></div><div class="autosave"><input type="checkbox" name="savepic" value="1"><%=Lang_sys(71)%></div><br /></td>
<td class="classrow">
<textarea name="info<%= LanguageTxt(LangT) %>" id="info<%= LanguageTxt(LangT) %>" rows="12" cols="80" class="text"><%= rss("info"& LanguageTxt(LangT)) %></textarea>
<span id="btn_showFCK<%= LanguageTxt(LangT) %>"><br /><input type="button" value="<%=Lang_sys(65)%>" onclick="showFCK<%= LanguageTxt(LangT) %>()" class="button"></span>
<span id="ReHeightFCK<%= LanguageTxt(LangT) %>"><a href="javascript:u_Size(-10,'info<%= LanguageTxt(LangT) %>')"><img src="lang/<%=LangFilePath%>/images/tab/bt_close.gif" border='0'></a>&nbsp;<a href="javascript:u_Size(10,'info<%= LanguageTxt(LangT) %>')"><img src="lang/<%=LangFilePath%>/images/tab/bt_open.gif" border='0'></a></span>
<script type="text/javascript">
function showFCK<%= LanguageTxt(LangT) %>(){
	document.getElementById("btn_showFCK<%= LanguageTxt(LangT) %>").style.display = 'none' ;
	document.getElementById("ReHeightFCK<%= LanguageTxt(LangT) %>").style.display = 'none' ;
	CKEDITOR.replace('info<%= LanguageTxt(LangT) %>',{height:300});
}
</script>
<%If Config_Lebi_Eshop(19) = "0" Then%><script type="text/javascript">showFCK<%= LanguageTxt(LangT) %>()</script><%End If%>
<SCRIPT LANGUAGE="JavaScript" src="Admin_autosave.asp?act=edit&type=gift<%= LanguageTxt(LangT) %>&Lang=<%= LanguageTxt(LangT) %>"></SCRIPT>
</td>
</tr>
		</table>
		</div>
		<script type="text/javascript">tdshow("edit_<%= LangT %>");</script>
	<%Next%>
	</div>
	<script type="text/javascript">showtabcontent("tablist")</script>
	<ul id="tablistmain">
	   <li class="selected"><a rel=""><%=Lang_sys(66)%></a></li>
	</ul>
	<div id="tabcontentcontainer">
	<table cellspacing="0" cellpadding="4" width="100%" border="0" id="edit_other">
<tr class="classrow">
<td height="30" width="15%" class="classrow"><%=Lang_Score(20)%></td>
<td class="classrow"><input type="text" id="jifen" name="jifen" size="5" value="<%=rss("jifen")%>" onkeyup="value=value.replace(/[^\d\.]/g,'');" class="form"> <span id="mes_jifen"></span>
</td>
</tr>
<tr class="classrow">
<td height="30" class="classrow"><%=Lang_Score(21)%></td>
<td class="classrow"><input type="text" name="kucun" size="5" value="<%=rss("kucun")%>" onkeyup="value=value.replace(/[^\d\.]/g,'');" class="form">
</td>
</tr>
<tr class="classrow">
<td height="30" class="classrow"><%=Lang_Score(22)%></td>
<td class="classrow"><input type="text" name="p_weight" size="5" value="<%=rss("p_weight")%>" class="form"> <img src="images/help.gif" align="absmiddle" onmouseover="showhintinfo(this,0,0,'','<%=Lang_Score(23)%>','50','up');" onmouseout="hidehintinfo();" />
</td>
</tr>
<tr class="classrow">
<td height="30" valign="top" class="classrow"><%=Lang_Score(24)%></td>
<td class="classrow"><input type="text" name="endtime" value="<%=rss("endtime")%>" size="15" class="calendar" onclick="setday(this)" />
</td>
</tr>
<tr class="classrow">
<td height="30" class="classrow"><%=Lang_Score(25)%></td>
<td class="classrow"><input type="text" id="pic" name="pic" size="30" class="form" value="<%=rss("pic")%>">
 <input type="button" name="Upload_pic" id="Upload_pic" value="<%=Lang_sys(52)%>" onclick="uploadpanel('add_okduct','pic','score')" class="button"> <span id="mes_pic"></span>
</td>
</tr>
<tr>
<td height="30" class="classrow"><%=Lang_Score(26)%></td>
<td class="classrow"><input type="text" id="cpic" name="cpic" size="30" class="form" value="<%=rss("cpic")%>">
 <input type="button" name="Upload_cpic" id="Upload_cpic" value="<%=Lang_sys(52)%>" onclick="uploadpanel('add_okduct','cpic','score')" class="button"> <span id="mes_cpic"></span>
</td>
</tr>
</table>
</div>
<script type="text/javascript">tdshow("edit_other");</script>
</td>
</tr>
<tr>
<td height="30" align="left" colspan="2" class="classfooter">
<input name="submit" type="image" src="lang/<%=LangFilePath%>/images/bt_app.gif" align="absmiddle" title=" <%=Lang_sys(1)%> ">
<input type="image" src="lang/<%=LangFilePath%>/images/bt_res.gif" title=" <%=Lang_sys(2)%> " onclick="reset();return false;" align="absmiddle">
<input type="hidden" name="action" value="edit_ok">
<input type="hidden" name="id" value="<%=rss("id")%>">
<input type="hidden" name="product_name1" value="<%=rss("product_name")%>">
</td>
</tr>
</form>
</table>
<%
rss.close
set rss=nothing
end sub
%>