<html xmlns="http://www.w3.org/1999/xhtml">
<!--#include file="../Inc/Conn.asp" -->
<!--#include file="../Inc/SK.Session.asp" -->
<!--#include file="../Inc/SK.Funtion.asp" -->
<%if Not (Getconfig("SK_Sales")="0" AND (Session("Manager")="1" OR (JudgePopedomTF(Session("UserName"),"SK300000000") AND JudgePopedomTF(Session("UserName"),"SK300000402")))) then Call ReturnError()%>
<%
if F("ID")="" then Call ReturnError7()

'Mod
if RQ("Action")="Mod" and F("ID")<>"" then
str2=split(F("ID"),",")
for i=0 to ubound(str2)
set rs=server.createobject("adodb.recordset")
sql="select * from SK_SalesOrders where SK_Del=0 and SK_ShFeet=1 and OrdersID="&trim(str2(i))
rs.open sql,conn,1,3

if F("S_Feet")<>"" then
rs("SK_Feet")=NoCSSHackInput(F("S_Feet"))
rs("SK_Editor")=Session("UserName")
rs("SK_ETime")=Now()
end if

rs.Update
rs.Close 
set rs=Nothing
next

'Event Begin
if getconfig("SK_Event")=0 then
set rsEvent=server.createobject("adodb.recordset")
sqlEvent="select * from SK_SystemEvent"
rsEvent.open sqlEvent,conn,1,3
rsEvent.AddNew
rsEvent("SK_Title")="批量修改订单状态"
rsEvent("SK_User")=Session("UserName")
rsEvent("SK_Time")=Now()
rsEvent("SK_IP")=request.ServerVariables("Remote_Addr")
rsEvent.Update
rsEvent.Close 
set rsEvent=Nothing
end if
'Event End

Call Returnoktoback()
end if
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<title>批量修改订单状态</title>
<META http-equiv=Page-Enter content=SKCRM>
<META http-equiv=Page-Exit content=SKCRM>
<META content="MSHTML 6.00.3790.2858" name=GENERATOR>
<LINK href="../images/style.css" type=text/css rel=stylesheet>
<script language="javascript" src="../Inc/Check.js"></script>
<script language="javascript" src="../Inc/Calendar.js"></script>
<script language="javascript" src="../Inc/jquery.js"></script>
<style type="text/css">
<!--
body {
margin: 5px 0px 5px 0px;
overflow-x: hidden;
}
-->
</style>
</head>
<body>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<TBODY>
<tr>
<td class="SK_Td_Top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="12" height="25"><img src="../images/tab_03.gif" width="12" height="25" /></td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="46%" valign="middle">批量修改订单状态</td>
<td width="54%"></td>
</tr>
</table></td>
<td width="16"><img src="../images/tab_07.gif" width="16" height="25" /></td>
</tr>
</table></td>
</tr>
<tr>
<td>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="8" background="../images/tab_12.gif"></td>
<td>

<form name="thisForm" id="form1" method="post" action="?Action=Mod" onSubmit="return Form1_Validator(this)"> 
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="b5d6e6">
<tr>
  <td class="SK_Text2">订单状态</td>
  <td class="SK_Text1"><select name="S_Feet">
<option value="" selected>---请选择---</option>
<%
Set rs2=Server.CreateObject("ADODB.RecordSet") 
sql2="SELECT * from SK_SystemCategory where SK_Di=45 order by CategoryID asc" 
rs2.Open sql2,conn,1,1
do while not rs2.eof
%><option value="<%=rs2("CategoryID")%>"><%=rs2("SK_Name")%></option>
<%
rs2.movenext
loop
rs2.close
set rs2=Nothing
%></select> <font color=red>不修改不选择</font></td>
</tr>

<tr>
<td colspan="2" class="SK_Text">
<input type="hidden" name="ID" value="<%=F("id")%>">
<INPUT class="button1" type="submit" value=" 保存 "> 
<input type="button" value=" 返回 " onClick="javascript:history.back(-1);" class="button1" /></td>
</tr>
</table>
</form>

</td>
<td width="8" background="../images/tab_15.gif"></td>
</tr>
</table></td>
</tr>
<tr>
<td class="SK_Td_Foot">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1%" height="20"><img src="../images/tab_18.gif" width="12" height="20" /></td>
<td width="98%" class="SK_Td_Page"></td>
<td width="1%"><img src="../images/tab_20.gif" width="16" height="20" /></td>
</tr>
</table>

</td>
</tr>
</TBODY>
</table>
</body>
<%
Call CloseDB()
%>
</html>