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

📄 index.jsp

📁 有关医院方向的开发
💻 JSP
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
	prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
	prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"
	prefix="logic"%>
<%@ page import="com.dc.common.*"%>
<%
	String querytype = (String) request.getAttribute("querytype");
	String RenCode = (String) session.getAttribute(SysConstant.RETCODE);
%>
<html:html>
<head>
	<title>短信提醒信息查询</title>
	<link href="<%=request.getContextPath()%>/css/style.css"
		rel="stylesheet" type="text/css">
	<script language="javaScript"
		src="<%=request.getContextPath()%>/scripts/check.js"></script>
	<script language="javaScript"
		src="<%=request.getContextPath()%>/scripts/page.js"></script>
	<script language="javaScript" src="/scripts/dialog.js"></script>
	<script language="javaScript" src="/scripts/pagination.js"></script>
	<script language="javaScript" src="/scripts/selectOption.js"></script>
	<meta http-equiv="Content-Type" content="text/html; charset=GBK">
	<style>
input.button1 {
	font-size: 9pt;
	color: #195793;
	background-color: white;
	border: 2px #EEECFA dash;
	background: url(<%=request.getContextPath()%>/images/newbutton.gif) no repeat;
	width: 40px;
	height: 20px;
	border: 0px;
	cursor: hand;
}


</style>
</head>
<script language="javascript">

</script>
<%
		if (RenCode != null) {
		if (SysConstant.SUCRETCODE.equals(RenCode)) {
%>
<script language="javascript">
		    alert("短信发送成功!");
		    window.close();
	        </script>
<%
} else {
%>
<script language="javascript">
		    alert("短信发送失败,请联系管理员!");
	        </script>
<%
		}
		session.removeAttribute(SysConstant.RETCODE);
	}
%>
<body class="navtree">
	<html:form action="/HoteOrderDetailAction" method="post">

		<table cellpadding="1" cellspacing="0" class="nav01">
			<tr>
				<td>
					<img src="<%=request.getContextPath()%>/images/b1.gif" width="12"
						height="12" />
					您现在的位置:酒店餐饮管理>>客户短信提醒
					<br>
				</td>
			</tr>
		</table>
		<html:errors />
		<table id="info" border="1" bordercolor="#7FB0DE"
			bordercolordark="#ffffff" cellpadding="1" cellspacing="0"
			class="content01">

			<tr class="listHead">
				<td align=left colspan=4>
					客户预订信息
				</td>
			<tr class="listContent">
				<td align=right>
					查询类型:
				</td>
				<td align=left colspan=3>
					<select name="querytype" style="width:120">
						<option value="0">
							预订客房
						</option>
						<option value="1">
							预订包间
						</option>
					</select>
				</td>
			</tr>
			<tr class="listContent">
				<td align=left colspan=4>
					<input type="button" class="query" onClick="query();">
				</td>
			</tr>
		</table>
		<%
		if ("0".equals(querytype)) {
		%>
		<logic:present name="hotelList">
			<div id="biaoge">
				<table class="content01">
					<tr class="listHead">
						<td align=center>
							选择
						</td>
						<td align=center>
							客房名称
						</td>
						<td align=center>
							客房大小
						</td>
						<td align="center">
							客房价格
						</td>
						<td align="center">
							客房级别
						</td>
						<td align=center>
							所属楼层
						</td>
						<td align=center>
							预订客户
						</td>
						<td align=center>
							客户类型
						</td>
						<td align=center>
							身份证号码
						</td>
						<td align=center>
							手机号码
						</td>
						<td align=center>
							预订时间
						</td>
						<td align=center>
							预退时间
						</td>
						<td align=center>
							其他信息
						</td>
					</tr>
					<logic:iterate id="hotel" name="hotelList" indexId="index">
						<tr class="listContent">
							<td align=center>
								<input type="checkbox" name="CHECKBOXVAL"
									value="<bean:write name="hotel" property="hotelInfo.hotelsId" />:<bean:write name="hotel" property="custphone" />"
									class="noborder" />
							</td>
							<td align=center>
								<bean:write name="hotel" property="hotelInfo.hotelname" />
								&nbsp;
							</td>
							<td align=center>
								<bean:write name="hotel" property="hotelInfo.hotelsize" />
								&nbsp;
							</td>
							<td align="center">
								<bean:write name="hotel" property="hotelInfo.hotelprice" />
							</td>
							<td align="center">
								<bean:write name="hotel" property="hotelInfo.hotellevel" />
							</td>
							<td align=center>
								<bean:write name="hotel" property="hotelInfo.hotelfloor" />
								&nbsp;
							</td>
							<td align=center>
								<bean:write name="hotel" property="custname" />
								&nbsp;
							</td>
							<td align=center>
								<bean:write name="hotel" property="clubInfo.clubLevelName" />
								&nbsp;
							</td>
							<td align=center>
								<bean:write name="hotel" property="custcertid" />
								&nbsp;
							</td>
							<td align=center>
								<bean:write name="hotel" property="custphone" />
								&nbsp;
							</td>
							<td align=center>
								<bean:write name="hotel" property="begintime" />
								&nbsp;
							</td>
							<td align=center>
								<bean:write name="hotel" property="endtime" />
								&nbsp;
							</td>
							<td align=center>
								<bean:write name="hotel" property="remark" />
								&nbsp;
							</td>
						</tr>
					</logic:iterate>

					<tr class="listContent">
						<td align=left colspan=13>
							<input type="button" class="button1" value="发送"
								onClick="checkinfo();">
						</td>
					</tr>

				</table>

			</div>
		</logic:present>
		<%
		}
		%>


		<%
		if ("1".equals(querytype)) {
		%>
		<logic:present name="hotelList">
			<div id="biaoge">
				<table class="content01">
					<tr class="listHead">
						<td align=center>
							选择
						</td>
						<td align=center>
							包间名称
						</td>
						<td align=center>
							大厅桌号
						</td>
						<td align="center">
							客座数
						</td>
						<td align="center">
							楼层
						</td>
						<td align=center>
							所属分店
						</td>
						<td align=center>
							预订客户
						</td>
						<td align=center>
							客户类型
						</td>
						<td align=center>
							身份证号码
						</td>
						<td align=center>
							手机号码
						</td>
						<td align=center>
							预订类型
						</td>
						<td align=center>
							预订时间
						</td>
						<td align=center>
							其他信息
						</td>
					</tr>
					<logic:iterate id="hotel" name="hotelList" indexId="index">
						<tr class="listContent">
							<td align=center>
								<input type="checkbox" name="CHECKBOXVAL"
									value="<bean:write name="hotel" property="roomInfo.roomsId" />:<bean:write name="hotel" property="custphone" />"
									class="noborder" />
							</td>
							<td align=center>
								<bean:write name="hotel" property="roomInfo.roomsName" />
								&nbsp;
							</td>
							<td align=center>
								<bean:write name="hotel" property="roomInfo.roomstableid" />
								&nbsp;
							</td>
							<td align="center">
								<bean:write name="hotel" property="roomInfo.roomsSize" />
							</td>
							<td align="center">
								<bean:write name="hotel" property="roomInfo.hotelfloor" />
							</td>
							<td align=center>
								<bean:write name="hotel" property="roomInfo.hoteltype" />
								&nbsp;
							</td>

							<td align=center>
								<bean:write name="hotel" property="custname" />
								&nbsp;
							</td>
							<td align=center>
								<bean:write name="hotel" property="clubInfo.clubLevelName" />
								&nbsp;
							</td>
							<td align=center>
								<bean:write name="hotel" property="custcertid" />
								&nbsp;
							</td>
							<td align=center>
								<bean:write name="hotel" property="custphone" />
								&nbsp;
							</td>
							<td align=center>
								<bean:write name="hotel" property="orderType" />
								&nbsp;
							</td>
							<td align=center>
								<bean:write name="hotel" property="begintime" />
								&nbsp;
							</td>
							<td align=center>
								<bean:write name="hotel" property="remark" />
								&nbsp;
							</td>
						</tr>
					</logic:iterate>

					<tr class="listContent">
						<td align=left colspan=13>
							<input type="button" class="button1" value="发送"
								onClick="checkinfo();">
						</td>
					</tr>

				</table>

			</div>
		</logic:present>
		<%
		}
		%>




		<logic:present name="hotelList">
			<%@ include file="../../../common/page.jsp"%>
		</logic:present>
	</html:form>

</body>
</html:html>
<script language="javascript">
function query(){

	document.forms[0].action="HoteOrderDetailAction.do?method=queryOrderalert";
    document.forms[0].submit();
}


 function checkinfo(){
 
  var boxes = document.getElementsByName("CHECKBOXVAL");
	   var cn = 0;
	   var i=0;
	   var value;
	   for (i = 0; i < boxes.length; i++){
	 	  	if (boxes[i].checked){
	 	  	value = boxes[i].value;
	 	  	cn++;           	
        	}
    	}

		if (cn==0){
			alert('请选择客户预订信息,谢谢!');
			return false;
		}
    document.forms[0].action="HoteOrderDetailAction.do?method=sendInfo";
    document.forms[0].submit();
 
 
 
 }
 
 

	function gotoPage(pageNo){
		window.location.href="HoteOrderDetailAction.do?method=queryOrderalert&pageNo="+pageNo;
	}


<%
if (null != querytype ){
%>
  document.forms[0].elements["querytype"].value =<%=querytype%>;
 <%
}
%>
     
</script>




⌨️ 快捷键说明

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