www.gusucode.com > 凡人网络购物系统 2008源码程序 > Admin/ad_totime.asp

    <!--#include file="conn.asp"-->
<!--#include file="ad_chk.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href=inc/css.css rel=STYLESHEET type=text/css>
<body topmargin="5" leftmargin="5" rightmargin="5" bottommargin="5">

<%
if Request.Cookies("venshop")("admin_class")<>0 then
response.write "你没有这个权限!"
response.end
end if
%>
<%
id=request("id")
if request("action")="add" then
set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from venshop_totime",conn,1,3
rs.AddNew
rs("totime")=request("totime")
rs.Update
rs.Close
set rs=nothing
call addok(addt,"ad_totime.asp","ad_totime.asp")
end if

if request("action")="edit" then
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from venshop_totime where id="&id&"",conn,1,3
rs("totime")=request("totime")
rs.update
rs.close
set rs=nothing
call editok(editt,"ad_totime.asp","ad_totime.asp")
end if

if request("action")="del" then
conn.execute "delete from venshop_totime where id="&id
call deleok(delet,"ad_totime.asp")
end if
%>
<table border="0" cellpadding="5" cellspacing="0" class="st">
  <tr><td class="sa">送货时间</td><td class="sa">操作</td></tr>
<%
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from venshop_totime",conn,1,1
i=0
do while not rs.eof
i=i+1%><form method="post" action="ad_totime.asp?action=edit&id=<%=rs("id")%>">
  <tr><td class="s<%=i mod 2%>"><input name="totime" type="text" size="49" value="<%=rs("totime")%>"></td>
	  <td class="s<%=i mod 2%>"><input type="submit" name="Submit" value="修改">&nbsp;&nbsp;<a href=ad_totime.asp?action=del&id=<%=rs("id")%> onClick="return confirm('您确定进行删除操作吗?')">删除</a></td>
</tr></form>
<%rs.movenext
loop
rs.close
set rs=nothing
%></table>
<br>
<table border="0" cellpadding="5" cellspacing="0" class="st"><form method="post"  action="ad_totime.asp?action=add">
<tr><td class="sa">
	添加送货时间</td><td class="sa"></td></tr>
<tr><td bgcolor="#FFFFFF"><input name="totime" type="text" size="39"></td>
	<td bgcolor="#FFFFFF"><input type="submit" name="Submit2" value="添 加"></td></tr></form></table>
<br><div class="help">
备注:<br>1. 此送货时间对应前台客户下订单时选择的送货时间,客户可以选择适当的送货时间。<br>
2. 送货时间的意义:客户方便收货的时间,如果客户设置的地址是公司地址,就会相应选择上班时间送到,而周末或者晚上快递到了可能找不到人。</div>
<!--#include file="ad_bottom.asp"-->