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

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

set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from pic",conn,1,3
rs.AddNew
rs("girlname")=trim(request("girlname"))  '信息名称
rs("sort")=int(request("sort"))'分类
rs("girlpic")=trim(request("girlpic"))  '信息图片
rs("viewcount")=0 
rs("adddate")=now()  '加入日期
rs.Update
id=rs("id")
rs.Close
set rs=nothing
response.Write "<script language=javascript>alert('图库添加成功！');window.location.href='managegirl2.asp?id="&id&"';</script>"
response.End
end if
%>
<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 height="25" bgcolor="#E8F1FF" colspan=3>
<p align="center">添加香车美女</td>
</tr>

    <div align="center">

<form name="formpub" method="post" action="addgirl.asp?action=add">
  <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"><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">国内美女</option>
     <option value="2">亚洲美女</option>
     <option value="3">欧美风采</option>
     <option value="4">赛车女郎</option>
     <option value="5">车展美女</option>
      <option value="6">汽车宝贝</option>
      <option value="7">首页推荐</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"><%
					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" bgcolor="#F7F7F7" colspan="3"><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>
