<!--#include file="conn.asp"-->
<%
if session("admin")="" then
conn.close
set conn = nothing
response.Write "<script language='javascript'>alert('请先登录！');history.go(-1);</script>"
response.End
else
if request.cookies("timesshop")("admin")="" then
conn.close
set conn = nothing
response.Write "<script language='javascript'>alert('请先登录！');history.go(-1);</script>"
response.End
end if
end if

if request.form("action")="save" then
if session("rank")>1 then
conn.close
set conn = nothing
response.Write "<script language='javascript'>alert('你无权编辑商品属性！');history.go(-1);</script>"
response.End
end if
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from TimesProList",conn,1,3
rs("ProList1")=trim(request.form("ProList1"))
rs("ProList2")=trim(request.form("ProList2"))
rs("ProList3")=trim(request.form("ProList3"))
rs("ProList4")=trim(request.form("ProList4"))
rs("ProList5")=trim(request.form("ProList5"))
rs("ProList6")=trim(request.form("ProList6"))
rs("ProList7")=trim(request.form("ProList7"))
rs("ProList8")=trim(request.form("ProList8"))
rs("ProList9")=trim(request.form("ProList9"))
rs("ProList10")=trim(request.form("ProList10"))
rs("ProList11")=trim(request.form("ProList11"))
rs("ProList12")=trim(request.form("ProList12"))
rs("ProList13")=trim(request.form("ProList13"))
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
response.write "<script language=javascript>alert('修改成功！');history.go(-1);</script>"
response.End
end if
%>
<title>广告设置</title>
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#6699cc">
  <tr> 
    <td align="center"><font color="#FFFFFF">商品属性设置</font></td>
  </tr>
  <tr> 
    <td height="200" valign="top" bgcolor="#FFFFFF"> 
	<form name="form1" method="post" action="">
        <table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
          <%set rs=server.CreateObject("adodb.recordset")
rs.open "select * from TimesProlist",conn,1,1%>
          <tr bgcolor="#FFFFFF"> 
            <td width="17%">商品属性一：</td>
            <td width="83%"><input name="prolist1" type="text" size="28" value=<%=trim(rs("prolist1"))%>></td>
          </tr>
		  <tr bgcolor="#FFFFFF"> 
            <td>商品属性二：</td>
            <td><input name="prolist2" type="text" size="28" value=<%=trim(rs("prolist2"))%>></td>
          </tr>
		  <tr bgcolor="#FFFFFF"> 
            <td>商品属性三：</td>
            <td><input name="prolist3" type="text" size="28" value=<%=trim(rs("prolist3"))%>></td>
          </tr>
		  <tr bgcolor="#FFFFFF"> 
            <td>商品属性四：</td>
            <td><input name="prolist4" type="text" size="28" value=<%=trim(rs("prolist4"))%>></td>
          </tr>
		  <tr bgcolor="#FFFFFF"> 
            <td>商品属性五：</td>
            <td><input name="prolist5" type="text" id="prolist5" size="28" value=<%=trim(rs("prolist5"))%>></td>
          </tr>
		  <tr bgcolor="#FFFFFF"> 
            <td>商品属性六：</td>
            <td><input name="prolist6" type="text" size="28" value=<%=trim(rs("prolist6"))%>></td>
          </tr>
		  <tr bgcolor="#FFFFFF"> 
            <td>商品属性七：</td>
            <td><input name="prolist7" type="text" size="28" value=<%=trim(rs("prolist7"))%>></td>
          </tr>
		  <tr bgcolor="#FFFFFF"> 
            <td>商品属性八：</td>
            <td><input name="prolist8" type="text" size="28" value=<%=trim(rs("prolist8"))%>></td>
          </tr>
		  <tr bgcolor="#FFFFFF"> 
            <td>商品属性九：</td>
            <td><input name="prolist9" type="text" size="28" value=<%=trim(rs("prolist9"))%>></td>
          </tr>
		  <tr bgcolor="#FFFFFF"> 
            <td>商品属性十：</td>
            <td><input name="prolist10" type="text" size="28" value=<%=trim(rs("prolist10"))%>></td>
          </tr>
		  <tr bgcolor="#FFFFFF"> 
            <td>商品属性十一：</td>
            <td><input name="prolist11" type="text" size="28" value=<%=trim(rs("prolist11"))%>></td>
          </tr>
		  <tr bgcolor="#FFFFFF"> 
            <td>商品属性十二：</td>
            <td><input name="prolist12" type="text" size="28" value=<%=trim(rs("prolist12"))%>></td>
          </tr>
		  <tr bgcolor="#FFFFFF"> 
            <td>商品属性十三：</td>
            <td><input name="prolist13" type="text" size="28" value=<%=trim(rs("prolist13"))%>></td>
          </tr>
		  <% rs.close
		  	set rs=nothing 
			conn.Close
        set conn = nothing %>
          <tr bgcolor="#FFFFFF" align="center"> 
            <td height="32" colspan="2"><input name="action" type="hidden" id="action" value="save"> 
              <input type="submit" name="Submit" value="提 交"></td>
          </tr>
        </table>
      </form></td>
  </tr>
</table>
<!--#include file="footer.asp"-->
