<!--#include file="../inclub/function.asp" -->
<%
dim showid
showid = request.querystring("showid")
%>
<!--#include file="../conn.asp" -->
<%
if request.form("send") = "添加栏目" then
dim rs,sql,gtname,gtnum,hotelbt,Hotelfenlei,Hotelxingji,gtmsj,gtdj,gtimg,Hotelmeet,gtinfo,gtcontent,gtkeyword,sid
gtname = request.form("gtname")
gtnum = request.form("gtnum")
hotelbt = request.form("hotelbt")
Hotelfenlei = request.form("Hotelfenlei")
Hotelxingji = request.form("Hotelxingji")
gtmsj = request.form("gtmsj")
gtdj = request.form("gtdj")
gtimg = request.form("gtimg")
Hotelmeet = request.form("Hotelmeet")
gtinfo = request.form("gtinfo")
gtcontent = request.form("gtcontent")
gtkeyword = request.form("gtkeyword")
showid = request.querystring("ID")
set rs = server.createobject("adodb.recordset")
sql = "select * from gt where showid='"&ID&"'"
rs.open sql,conn,1,1
call close_rs
set rs = server.createobject("adodb.recordset")
sql = "select * from gt"
rs.open sql,conn,1,3
'1,1表示只读,1,3表示可写
rs.addnew
rs("gtname") = gtname
rs("gtnum") = gtnum
rs("hotelbt") = hotelbt
rs("Hotelfenlei") = Hotelfenlei
rs("Hotelxingji") = Hotelxingji
rs("gtmsj") = gtmsj
rs("gtdj") = gtdj
rs("gtimg") = gtimg
rs("Hotelmeet") = Hotelmeet
rs("gtinfo") = gtinfo
rs("gtcontent") = gtcontent
rs("gtkeyword") = gtkeyword
rs("HotelSid") = sid
rs("gtdate") = now()
rs.update
call close_rs '关闭
call close_conn '关闭销毁数据库
call sussLoctionHref("栏目新增成功","admin_hotel.asp")
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
-->
</style>
<script language="javascript">
// 参数说明
// s_Type : 文件类型,可用值为"image","flash","media","file"
// s_Link : 文件上传后,用于接收上传文件路径文件名的表单名
// s_Thumbnail : 文件上传后,用于接收上传图片时所产生的缩略图文件的路径文件名的表单名,当未生成缩略图时,返回空值,原图用s_Link参数接收,此参数专用于缩略图
function showUploadDialog(s_Type, s_Link, s_Thumbnail){
//以下style=coolblue,值可以依据实际需要修改为您的样式名,通过此样式的后台设置来达到控制允许上传文件类型及文件大小
var arr = showModalDialog("../ewebeditor/dialog/i_upload.htm?style=coolblue&type="+s_Type+"&link="+s_Link+"&thumbnail="+s_Thumbnail, window, "dialogWidth:0px;dialogHeight:0px;help:no;scroll:no;status:no");
}
</script>
</head>
<body>
<%
dim location,name,id
set rs = server.createobject("adodb.recordset")
sql = "select * from gt where ID="&showid
rs.open sql,conn,1,1
%>
<form action="admin_hotel_tj.asp" method="post" name="add">
<input type="hidden" value="<%=showid%>" name="showid" />
<table width="90%" border="0" align="center" cellpadding="5" cellspacing="0">
<tr>
<td width="14%" align="center" valign="middle">名称:</td>
<td width="86%" align="left" valign="middle">
<input name="gtname" type="text" /></td>
</tr>
<tr>
<td align="center" valign="middle">区域划分:</td>
<td align="left" valign="middle"><label>
<input type="radio" name="Hotelfenlei" value="1" />亚龙湾
</label>
<input type="radio" name="Hotelfenlei" value="2" />三亚湾
</label>
<input type="radio" name="Hotelfenlei" value="3" />大东海
</label>
<input type="radio" name="Hotelfenlei" value="4" />市区
</label>
<input type="radio" name="Hotelfenlei" value="5" />海棠湾
</label>
<input type="radio" name="Hotelfenlei" value="6" />海口
</label>
<input type="radio" name="Hotelfenlei" value="7" />其他地区
</label>
</td>
</tr>
<tr>
<td align="center" valign="middle">星级:</td>
<td align="left" valign="middle"><label>
<input type="radio" name="Hotelxingji" value="0" />家庭旅馆
</label>
<input type="radio" name="Hotelxingji" value="3" />三星级
</label>
<input type="radio" name="Hotelxingji" value="4" />四星级
</label>
<input type="radio" name="Hotelxingji" value="5" />五星级
</label>
</td>
</tr>
<tr>
<td align="center" valign="middle">请选择添加类别:</td>
<td align="left" valign="middle"><label>
<input type="radio" name="hotelbt" value="1" />房间
</label>
<input type="radio" name="hotelbt" value="2" />套餐
</label>
</td>
</tr>
<tr>
<td align="center" valign="middle">是否有会场:</td>
<td align="left" valign="middle"><label>
<input type="radio" name="Hotelmeet" value="1" />有
</label>
<input type="radio" name="Hotelmeet" value="2" />没
</label>
</td>
</tr>
<tr>
<td align="center" valign="middle">价格:</td>
<td align="left" valign="middle"><input name="gtmsj" type="text" />
>>门市价
<input name="gtdj" type="text" />
>>优惠价</td>
</tr>
<tr>
<td align="center" valign="middle">图片:</td>
<td align="left" valign="middle"><input type=text name=gtimg size=50> <input type=button value="上传图片..." onClick="showUploadDialog('image', 'add.gtimg', '')">
</td>
</tr>
<tr>
<td align="center" valign="middle">简介:</td>
<td align="left" valign="middle">
<textarea cols="50" rows="5" name="gtinfo" ></textarea>
</td>
</tr>
<tr>
<td align="center" valign="middle">内容:</td>
<td align="left" valign="middle">
<input type="hidden" name="gtcontent" value=""
/>
<IFRAME ID="eWebEditor1" SRC="../ewebeditor/ewebeditor.htm?id=gtcontent&style=standard650" FRAMEBORDER="0" SCROLLING="no" WIDTH="650" HEIGHT="350"></IFRAME>
</tr>
<tr>
<td align="center" valign="middle">关键字</td>
<td align="left" valign="middle"><input type="text" name="gtkeyword"/>
(多个关键字请使用英文逗号“,”隔开)</td>
</tr>
<tr>
<td align="center" valign="middle"> </td>
<td align="left" valign="middle"><input type="submit" onclick="return check();" name="send" value="添加内容" /></td>
</tr>
</table>
</form>
</body>
</html>
<%
call close_rs
call close_conn
%>
斑竹帮我看一下 为什么我的 showid没有值啊...麻烦麻烦你了