<!--#include file="pysjzx_conn.asp"-->
<!--#include file="session.asp"-->

<%

if request("action") ="edit" then
if  request("girlname")="" then
response.Write "对不起，添加信息失败！"
response.End
end if 

id=request("id")
set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from pic where id="&id,conn,1,3
rs("girlname")=trim(request("girlname"))  '信息名称
rs("sort")=int(request("sort"))'分类
rs("girlpic")=trim(request("girlpic"))  '信息图片
rs.Update
id=rs("id")
rs.Close
set rs=nothing
response.Write "<script language=javascript>alert('图库修改成功！');window.location.href='editgirl.asp?id="&id&"';</script>"
response.End
end if
%><%
id=request("id")
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from pic where id="&id,conn,1,1
%>

<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div align="center">
<table class="tableBorder" width="100%" border="1" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF" style="border-collapse: collapse" bordercolor="#C0C0C0">
<tr> 
<td colspan=3 align="center" height="25" bgcolor="#E8F1FF">修改香车美女</span></td>
</tr>

    <div align="center">

<form name="formpub" method="post" action="editgirl.asp?action=edit&id=<%=id%>">
  <tr>
   <td width="242" bgcolor="#F7F7F7">　</td>
   <td width="132" bgcolor="#F7F7F7">信息名称</td>
   <td width="583" bgcolor="#F7F7F7">
   <input name="girlname" type="text" size="20" maxlength="20" value=<%=trim(rs("girlname"))%>><span lang="en-us">
	</span>*(<span lang="zh-cn">如：赛拉图汽车宝贝</span>)</td>
  </tr>
 
  <tr> 
   <td height="18" width="242" bgcolor="#F7F7F7"></td>
   <td height="18" width="132" bgcolor="#F7F7F7">信息类型 </td>
   <td height="18" width="583" bgcolor="#F7F7F7"> 
   <select name="sort"  selected>
     <option value="1" <%if int(rs("sort"))=1 then%> selected<%end if%>>国内美女</option>
     <option value="2" <%if int(rs("sort"))=2 then%> selected<%end if%>>亚洲美女</option>
     <option value="3" <%if int(rs("sort"))=3 then%> selected<%end if%>>欧美风采</option>
     <option value="4" <%if int(rs("sort"))=4 then%> selected<%end if%>>赛车女郎</option>
     <option value="5" <%if int(rs("sort"))=5 then%> selected<%end if%>>车展美女</option>
     <option value="6" <%if int(rs("sort"))=6 then%> selected<%end if%>>汽车宝贝</option>
     <option value="7" <%if int(rs("sort"))=7 then%> selected<%end if%>>首页推荐</option>
   
   </select></td>
 </tr>
 
  <tr> 
   <td height="18" width="242" bgcolor="#F7F7F7">　</td>
   <td height="18" width="132" bgcolor="#F7F7F7">信息图片</td>
   <td height="18" width="583" bgcolor="#F7F7F7"> 
   <input name="girlpic" type="text" id="pic" size="30" value=<%=trim(rs("girlpic"))%>><%
					ServerName1=Cstr(Request.ServerVariables("HTTP_REFERER"))
					%>
   &nbsp;<input  type="button" name="Submit2" value="上传图片" onClick="window.open('../Up_byshopPic2.asp?formname=formpub&editname=pic&byshopuppath=upload/girl&filelx=jpg&picclass=2&ServerName1=<%=ServerName1%>','','status=no,scrollbars1=no,top=20,left=110,width=420,height=165')" class="go-wenbenkuang">
   </td>
 </tr>
 <tr> 
  <td height="32" colspan="3" bgcolor="#F7F7F7"><div align="center"> </div><div align="center">&nbsp;
  　　<input type="submit" name="Submit" value="修 改" > 
											<input type="reset" value="清 除" name="Reset" class="unnamed5">
											<input type="button" value="返回上一页" onClick="javascript:history.go(-1)" class="unnamed5" name="button"></div>
	</td>
   </tr>
   </form>


</table>

</div>

</body>
</html>

  