⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 roominfo.asp

📁 会议事务系统
💻 ASP
字号:
<!--#include file="meetdb.inc"-->
<%
	if "" & request.QueryString("name") = "" then
		raiseErr "缺少参数name"
	end if
	dim strName,strView
	dim boolFlag
	dim adoRS
	strName = "" & Trim(request.QueryString("name"))
	strView = "" & Trim(request.QueryString("view"))
	if 	checkRoomNameConflict(strName) = 0 then
		raiseErr "无此会议室"
	end if
	if getUserRank() = 1 and strView = "" then
		boolFlag = 1
	else
		boolFlag = 0
	end if
	set adoRS = getRoomRSByName(strName)
%>
<html>

<head>
<title>会议室内容</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript" src="../include/tools.js"></script>
<script language="JavaScript">
function Validata(){
if (document.form.name.value=="")
{
  document.form.name.focus();
  window.alert("请填写会议室名称");
  return false;
}
else if (document.form.pos.value=="")
{
  document.form.pos.focus();
  window.alert("请填写会议室所在地点");
  return false;
}
else if (document.form.content.value=="")
{
  document.form.content.focus();
  window.alert("请填写会议室可容纳人数");
  return false;
}
return true;
}
</script>
</head>

<body>
<form name="form" method="post" action="action.asp" onSubmit="return Validata();">
  <table width="85%" border="1">
    <tr> 
      <td width="50%"><div align="right">会议室名称:</div></td>
      <td width="50%"><div align="left">
          <%=adoRS("roomname")%>
        </div></td>
    </tr>
    <tr> 
      <td><div align="right">会议室所在地点:</div></td>
      <td><div align="left">
	  <%
	  	if boolFlag = 1 then
	  %>
          <input name="pos" type="text" id="pos" size="30" value="<%=adoRS("roompos")%>">
		  <%
		  else
		  	response.Write adoRS("roompos")
			end if
		  %>
        </div></td>
    </tr>
    <tr> 
      <td><div align="right">可容纳人数:</div></td>
      <td><div align="left">
	  <%
	  if boolFlag = 1 then
	  %>
          <input name="content" type="text" id="content" size="10" value="<%=adoRS("content")%>">
		<%
		else
			response.Write adoRS("content")
		end if
		%>
        </div></td>
    </tr>
    <tr> 
      <td><div align="right">会议室描述:</div></td>
      <td><div align="left">
	  <%
	  if boolFlag = 1 then
	  %>
          <textarea name="note" cols="45" rows="12" id="note"><%=adoRS("note")%></textarea>
		<%
		else
		%>
		<textarea name="note" cols="45" rows="12" id="note" readonly><%=adoRS("note")%></textarea>
		<%
		end if
		%>
        </div></td>
    </tr>
    <tr> 
      <td><div align="right"></div></td>
      <td><div align="left">
	  <%
	  if boolFlag = 1 then
	  %>
	  <input name="name" type="hidden" value="<%=strName%>"><input name="op" type="hidden" value="updateRoom">
          <input type="submit" name="Submit" value="更新">  
		  <input type="button" name="goroomlist" value="返回列表" onClick="javascript:gotourl('roommng.asp')">		  
		  <%
		else
		%>
		<input type="button" name="back" value="返回" onClick="goback()">
		<%
		  end if
		  %>
		  
        </div></td>
    </tr>
  </table>
</form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -