?? operatortask.jsp
字號:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<jsp:directive.page import="domain.Task"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'TrailTask.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<style type="text/css">
<!--
#Layer1 {
position:absolute;
left:133px;
top:234px;
width:69px;
height:16px;
z-index:1;
}
#Layer2 {
position:absolute;
left:133px;
top:185px;
width:71px;
height:15px;
z-index:2;
}
#Layer3 {
position:absolute;
left:133px;
top:282px;
width:72px;
height:15px;
z-index:3;
}
#Layer4 {
position:absolute;
left:133px;
top:324px;
width:72px;
height:15px;
z-index:4;
}
#Layer5 {
position:absolute;
left:133px;
top:370px;
width:70px;
height:17px;
z-index:5;
}
.STYLE3 {font-family: "宋體"; font-size: 12px; }
.STYLE4 {font-size: 12px; }
#Layer6 {
position:absolute;
left:10px;
top:15px;
width:770px;
height:136px;
z-index:6;
}
#Layer7 {
position:absolute;
left:11px;
top:15px;
width:769px;
height:136px;
z-index:6;
}
.STYLE13 {
color: #FFFFFF;
font-size: 12px;
font-weight: bold;
}
.STYLE15 {
font-size: 16px;
color: #990000;
font-weight: bold;
}
-->
</style>
</head>
<script type="text/javascript">
function checkform(obj){
var flag ;
var taskid=document.all("taskid");
if(taskid.length >= 2){
for(var i = 0 ; i < taskid.length ; i++){
if(taskid[i].checked == true){
flag = true;
}
}
}else{
if(taskid.checked == true){
flag=true;
}
}
if(flag){
return true;
}else{
alert("請選擇要查詢的記錄");
return false;
}
}
</script>
<body>
<td width="30"><img src="" alt="" name="a" width="30" height="1" id="a" /></td>
<td width="648" valign="top"/>
<form action="<%=request.getContextPath() %>/planInfo.do" onsubmit="return checkform(this)">
<input type="hidden" name="flag" value="page">
<table width="514" height="268" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="6"> </td>
</tr>
<tr>
<td colspan="6" background="images/line_r2_c2.gif"><img src="" alt="" name="b1" width="1" height="1" id="b1" /></td>
</tr>
<tr>
<td height="33" colspan="6"><span class="STYLE15">任務信息:</span></td>
</tr>
<tr>
<td colspan="6" background="images/line_r2_c2.gif"><img src="" alt="" name="b2" width="1" height="1" id="b2" /></td>
</tr>
<tr>
<td width="79" bgcolor="#990000"><span class="STYLE13">任務名稱△</span></td>
<td width="80" bgcolor="#990000"><span class="STYLE13">指定人</span></td>
<td width="97" bgcolor="#990000"><span class="STYLE13">開始時間△</span></td>
<td width="86" bgcolor="#990000"><span class="STYLE13">結束時間△</span></td>
<td width="79" bgcolor="#990000"><span class="STYLE13">任務狀態△</span></td>
<td width="93" bgcolor="#990000"> </td>
</tr>
<logic:iterate id="task" name="operatorTask">
<tr>
<td colspan="6" background="images/line_r2_c2.gif"><img src="" alt="" name="b3" width="1" height="1" id="b3" /></td>
</tr>
<tr>
<td height="30" bgcolor="#999999"><span class="STYLE4">${task.taskname}</span></td>
<td bgcolor="#999999"><span class="STYLE4">${task.operator }</span></td>
<td bgcolor="#999999"><span class="STYLE4">${task.begintime }</span></td>
<td bgcolor="#999999"><span class="STYLE4">${task.endtime }</span></td>
<td bgcolor="#999999"><span class="STYLE4">${task.state }</span></td>
<td bgcolor="#999999"><div align="right">
<label>
<logic:equal value="Undo" property="state" name="task">
<input type="radio" name="taskid" value="${task.id }" />
</logic:equal>
</label>
</div></td>
</tr>
<tr>
<td colspan="6" background="images/line_r2_c2.gif"><img src="" alt="" name="b4" width="1" height="1" id="b4" /></td>
</tr>
</logic:iterate>
<tr>
<td height="2" colspan="6" background="images/line_r2_c2.gif"><img src="" alt="" name="b5" width="1" height="1" id="b5" /></td>
</tr>
<tr>
<td colspan="6"><div align="right">
<label>
<input type="submit" name="Submit" value="制定計劃"/>
</label>
</div></td>
</tr>
<tr>
<td height="14" colspan="6"> </td>
</tr>
<tr>
<td colspan="6" background="images/line_r2_c2.gif"><img src="" alt="" name="b6" width="1" height="1" id="b6" /></td>
</tr>
<tr>
<td colspan="6"> </td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -