?? nextnum_ok.asp
字號:
<!--#include file="../manage_user/checkuser.asp" -->
<%
m_ver = Trim(request("ver"))
if m_ver="cn" then
tmpstr_t="[中文版]"
elseif m_ver="en" then
tmpstr_t="[英文版]"
else
response.write "錯誤訪問頁面,請重試"
response.end
End If%>
<!--#include file="../../include/db_conn.asp" -->
<!--#include file="../../include/pub_func.asp" -->
<!--#include file="include/const.asp" -->
<%
news_str=request.form("released_news_str")
strSort = Request.form("sorttype")
if strSort = "1" then
'推薦
strField = "isComm"
strField2 = "InfoClsComm"
strTitle = "推薦產品順序排列"
elseif strSort = "2" then
'促銷
strField = "isOnSale"
strField2 = "InfoClsSale"
strTitle = "促銷產品順序排列"
else
Response.Write "參數傳輸不正確!"
Response.End
end if
news_str=left(news_str,len(news_str)-1)
news_list=split(news_str,",")
a=ubound(news_list)
for i=0 to a
is_id=news_list(i)
sqlstr="UPDATE ys_product2_catalog " & " SET " & orderid & "=" & i & " WHERE ProductID=" & is_id
conn.execute sqlstr
next
if err.number <> 0 then
call closedb
call showMsg("數據庫錯誤,排序未成功!")
else
call closedb
call showMsg("排序完成!")
end if
%>
<%sub showMsg(msg)%>
<script language="javascript">
alert('<%=msg%>');
window.close();
</script>
<%end sub%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -