?? rate_mark.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" import="java.util.*"
language="java"%>
<jsp:directive.page import="crqs.infobeans.*" />
<jsp:directive.page import="crqs.dboperation.*" />
<jsp:directive.page import="crqs.util.*" />
<jsp:directive.page import="java.sql.SQLException" />
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>CRQS--醫(yī)生頁面</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<link href="/CRQS/img/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<%session.setAttribute("navbar",null); %>
<table width="800" height="841" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="206" colspan="2" align="center">
<jsp:include page="../head.jsp" flush="true" />
</td>
</tr>
<tr>
<td width="25%" height="550" valign="top">
<jsp:include page="doctor_left.jsp" flush="true" />
</td>
<td width="75%" align="center" valign="top"><table width="100%" height="560" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="139" align="center" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"><table width="94%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="66" height="55"><img src="/CRQS/img/leaf.gif" alt="leaf" width="60"
height="40"> </td>
<td width="133" align="center" valign="middle"
class="cyan_big">預(yù)約率查詢</td>
<td width="342"><img src="/CRQS/img/bar.gif" alt="bar" width="342"
height="40"></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top"><form name="searchblock" method="post"
action="/CRQS/doctor/RateAndMark">
<%
Date d=new Date();
Calendar cal=Calendar.getInstance();
cal.setTime(d);
int year=cal.get(Calendar.YEAR);
int month=cal.get(Calendar.MONTH)+1;
int date=cal.get(Calendar.DATE);
int fyear=(request.getParameter("fyear")==null)?year:Integer.parseInt(request.getParameter("fyear"));
int fmonth=(request.getParameter("fmonth")==null)?month:Integer.parseInt(request.getParameter("fmonth"));
int fdate=(request.getParameter("fdate")==null)?date:Integer.parseInt(request.getParameter("fdate"));
int tyear=(request.getParameter("tyear")==null)?year:Integer.parseInt(request.getParameter("tyear"));
int tmonth=(request.getParameter("tmonth")==null)?month:Integer.parseInt(request.getParameter("tmonth"));
int tdate=(request.getParameter("tdate")==null)?date:Integer.parseInt(request.getParameter("tdate"));
%>
<table width="80%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="132" height="30" align="center"
valign="middle" class="gray"> 起始時間 </td>
<td width="315" class="gray"><label>
<select name="fyear" id="fyear">
<%
for (int i = 2000; i <= year; i++) {
%>
<option value="<%=i%>"
<%=(i == fyear) ? "selected='selected'" : ""%>> <%=i%> </option>
<%
}
%>
</select>
<span class="gray">年</span>
<select name="fmonth" id="fmonth">
<%
for (int i = 1; i < 13; i++) {
%>
<option value="<%=i%>"
<%=(i == fmonth) ? "selected='selected'" : ""%>> <%=i%> </option>
<%
}
%>
</select>
<span class="gray">月</span>
<select name="fdate" id="fdate">
<%
for (int i = 1; i < 32; i++) {
%>
<option value="<%=i%>"
<%=(i == fdate) ? "selected='selected'" : ""%>> <%=i%> </option>
<%
}
%>
</select>
<span class="gray">日</span> </label> </td>
<td width="113" align="center" valign="middle"><table width="54" height="26" border="0"
background="/CRQS/img/search_button.gif"
onClick="javascript:document.searchblock.submit()">
<tr>
<td width="50" height="23" align="center"
valign="middle" background="img/search_button.gif"
class="white_big"> 搜索 </td>
</tr>
</table></td>
</tr>
<tr>
<td height="30" align="center" valign="middle"
class="gray"> 截止時間 </td>
<td colspan="3" class="gray"><label>
<select name="tyear" id="tyear">
<%
for (int i = 2000; i <= year; i++) {
%>
<option value="<%=i%>"
<%=(i == tyear) ? "selected='selected'" : ""%>> <%=i%> </option>
<%
}
%>
</select>
<span class="gray">年</span>
<select name="tmonth" id="tmonth">
<%
for (int i = 1; i < 13; i++) {
%>
<option value="<%=i%>"
<%=(i == tmonth) ? "selected='selected'" : ""%>> <%=i%> </option>
<%
}
%>
</select>
<span class="gray">月</span>
<select name="tdate" id="tdate">
<%
for (int i = 1; i < 32; i++) {
%>
<option value="<%=i%>"
<%=(i == tdate) ? "selected='selected'" : ""%>> <%=i%> </option>
<%
}
%>
</select>
<span class="gray">日</span> </label> </td>
</tr>
</table>
</form></td>
</tr>
</table></td>
</tr>
<tr>
<td height="346" align="center" valign="top"><%
String display=(String)request.getAttribute("display");
if (display != null && display.equals("y")) {
%>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="48" align="center" valign="top"><table width="91%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="60" height="45" align="center"
valign="middle"><img src="/CRQS/img/leaf.gif" alt="leaf" width="60"
height="40"> </td>
<td width="80" align="center" valign="middle"
class="cyan_big"> 結(jié)果 </td>
<td width="438" align="center" valign="middle"><img src="/CRQS/img/bar.gif" alt="bar" width="400"
height="40"> </td>
</tr>
</table></td>
</tr>
<%
int c=((Integer)request.getAttribute("count")).intValue();
if (c != 0) {
ArrayList rts = (ArrayList) request.getAttribute("results");
String avRate=(String)request.getAttribute("avRate");
String mark=(String)request.getAttribute("mark");
%>
<tr>
<td height="15" align="center" valign="top"><table width="90%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="25%" height="30" align="right" valign="middle" class="cyan_big">平均預(yù)約率:</td>
<td width="25%" align="left" valign="middle" class="cyan_big"><%=avRate %></td>
<td width="25%" align="right" valign="middle" class="cyan_big">平均分?jǐn)?shù):</td>
<td width="25%" align="left" valign="middle" class="cyan_big"><%=mark %></td>
</tr>
</table></td>
</tr>
<tr>
<td height="210" align="center" valign="top"><table width="100%" height="57" border="1"
bordercolor="#DCF4F4">
<tr>
<td width="20%" nowrap class="tablehead">日期</td>
<td width="20%" nowrap class="tablehead"> 最大預(yù)約量 </td>
<td width="10%" nowrap class="tablehead"> 實際預(yù)約數(shù) </td>
<td width="20%" nowrap class="tablehead"> 預(yù)約率 </td>
</tr>
<%
Rate r=null;
for (int i = 0; i < rts.size(); i++) {
r = (Rate) rts.get(i);
%>
<tr align="center" valign="middle">
<td height="36" nowrap class="tablecontent"><%=r.getDate()%> </td>
<td height="36" nowrap class="tablecontent"><%=r.getMax()%> </td>
<td nowrap class="tablecontent"><%=r.getReserved()%> </td>
<%String ra=null;
if(r.getMax()==0)
ra="--";
else
ra=FormatDouble.formatDouble(r.getResRate(),2); %>
<td nowrap class="tablecontent"><%=ra %></td>
</tr>
<%
}
%>
</table></td>
</tr>
<tr>
<td height="43" align="right" valign="middle"><form action="/CRQS/doctor/RateAndMark" method="post" name="page"
id="page">
<table border="0">
<tr>
<td width="86" height="36" class="tablehead"><input name="fyear" type="hidden" id="name"
value="<%=request.getParameter("fyear")%>">
<input name="fmonth" type="hidden" id="gender"
value="<%=request.getParameter("fmonth")%>">
<input name="fdate" type="hidden" id="fdate"
<input name="tyear" type="hidden" id="tyear"
value="<%=request.getParameter("tyear")%>">
<input name="tmonth" type="hidden" id="tmonth" value="<%=request.getParameter("tmonth")%>">
<input name="tdate" type="hidden" id="tdate" value="<%=request.getParameter("tdate")%>"></td>
<td width="150" align="center" valign="middle"><span class="tablehead">第
<select name="index"
onchange="document.page.submit()" id="index">
<%
int cur = ((Integer) request.getAttribute("current"))
.intValue();
for (int i = 1; i <= c; i++) {
if (i == cur) {
%>
<option selected="selected" value="<%="" + i%>"> <%="" + i%> </option>
<%
} else {
%>
<option value="<%="" + i%>"> <%="" + i%> </option>
<%
}
}
%>
</select>
頁 </span> </td>
<td width="150" align="center" valign="middle"
class="tablehead"><label> 共 <%="" + c%> 頁 </label> </td>
</tr>
</table>
</form></td>
</tr>
<%
} else {
%>
<tr>
<td height="20" align="center" valign="top" class="cyan_big"> 沒有符合條件的結(jié)果! </td>
</tr>
<%
}
%>
</table>
<%
}
%></td>
</tr>
</table></td>
</tr>
<tr>
<td height="73" colspan="2" align="center" valign="middle">
<jsp:include page="../copyright.jsp" flush="true" />
</td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -