📄 rcap_add.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" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-template" prefix="template" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %>
<html:html>
<html:base/>
<head>
<title>日程安排--新增</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">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<link href="/YZOA/include/style.css" rel="stylesheet" type="text/css"/>
<link href="/YZOA/include/text.css" rel="stylesheet" type="text/css"/>
<script language="javascript" src="/YZOA/js/common.js"></script>
<script language="javascript" src="/YZOA/include/calendar.js"></script>
<script language="javascript">
function add(){
if(document.getElementById("start_select1").options.selectedIndex < 8||document.getElementById("start_select1").options.selectedIndex >23){
alert("开始时间不能小于8和大于22");
return false;
}else if(document.getElementById("end_select1").options.selectedIndex >23||document.getElementById("end_select1").options.selectedIndex <8){
alert("结束时间不能大于22和小于8");
return false;
}
var start_select1 = document.getElementById("start_select1").options[document.getElementById("start_select1").options.selectedIndex].text;
var start_select2 = document.getElementById("start_select2").options[document.getElementById("start_select2").options.selectedIndex].text;
document.doArrangeDateForm.start_time.value=document.doArrangeDateForm.start_time_hour.value+" "+start_select1+start_select2;
var end_select1 = document.getElementById("end_select1").options[document.getElementById("end_select1").options.selectedIndex].text;
var end_select2 = document.getElementById("end_select2").options[document.getElementById("end_select2").options.selectedIndex].text;
document.doArrangeDateForm.end_time.value=document.doArrangeDateForm.end_time_hour.value+" "+end_select1+end_select2;
//if(document.doArrangeDateForm.start_time.value>document.doArrangeDateForm.end_time.value){
// alert("开始时间要小于结束时间");
// return false;
// }
document.doArrangeDateForm.action='/YZOA/doArrangeDateAction.do?action=save';
document.doArrangeDateForm.submit();
}
</script>
<logic:present name="save" scope="request">
<script>
alert('成功添加安排!');
window.opener.location.reload();
window.close();
</script>
</logic:present>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="BACKGROUND-COLOR: transparent">
<html:form action="/doArrangeDateAction.do">
<html:hidden property="start_time"/>
<html:hidden property="end_time"/>
<table>
<tr>
<td><a href="rcap.html"><font size="-1">主页</font></a>>> <font size="-1">日程安排-添加</font></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<table width="100%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolorlight="#cccccc" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
<tr>
<td width="100" class="bg-2">事件名称 <font size="1" color="red">*</font></td>
<td bgcolor="#f9f9f9" colspan="3">
<html:text property="name" styleClass="textfield2" size="60" maxlength="50"></html:text>
</td>
</tr>
<tr>
<td width="100" class="bg-2">事件地点</td>
<td bgcolor="#f9f9f9" colspan="3">
<html:text property="place" styleClass="textfield2" size="60" maxlength="200" />
</td>
</tr>
<tr><td width="100" class="bg-2">事件类型<font size="1" color="red">*</font></td>
<td bgcolor="#f3f3f3" colspan="3"><html:select property="type">
<option value="">请选择</option>
<option value="1">会议</option>
<option value="2">评审</option>
</html:select></td>
</tr>
<tr>
<td width="100" class="bg-2" >事件描述</td>
<td bgcolor="#f9f9f9" colspan=3>
<html:textarea rows="5" property="content" cols="60" rows="8" styleClass="textfield2"></html:textarea>
</td>
</tr>
<tr>
<td width="100" class="bg-2">开始日期 <font size="1" color="red">*</font></td>
<td width="135" bgcolor="#f3f3f3">
<html:text property="start_time_hour" styleClass="textfield2" style="cursor:hand" onclick="showCal()" size="10" readonly="true"/>
</td>
<td width="100" class="bg-2">结束日期 <font size="1" color="red">*</font></td>
<td width="135" bgcolor="#f3f3f3">
<html:text property="end_time_hour" styleClass="textfield2" style="cursor:hand" onclick="showCal()" size="10" readonly="true"/>
</td>
</tr>
<tr>
<td width="100" class="bg-2">开始时间</td>
<td width="135" bgcolor="#f9f9f9">
<select name="start_select1" id="start_select1">
<script>
for(var i=0;i<=23;i++)
{
if(i<10)i="0"+i;
document.write("<option >"+i+"</option>");
}
</script>
</select>
<select name="start_select2" id="start_select2">
<script>
for(var i=0;i<=59;i++)
{
if(i<10)i="0"+i;
document.write("<option >:"+i+"</option>");
}
</script>
</select>
</td>
<td width="100" class="bg-2">结束时间</td>
<td width="135" bgcolor="#f9f9f9">
<select name="end_select1" id="end_select1">
<script>
for(var i=0;i<=23;i++)
{
if(i<10)i="0"+i;
document.write("<option >"+i+"</option>");
}
</script>
</select>
<select name="end_select2" id="end_select2">
<script>
for(var i=0;i<=59;i++)
{
if(i<10)i="0"+i;
document.write("<option >:"+i+"</option>");
}
</script>
</select> </td>
</tr>
<tr>
<td width="100" class="bg-2" >是否提醒</td>
<td bgcolor="#f3f3f3" colspan=3><input id="tx" value="提醒" type="button" onClick="showDetail('../tree/txtz.htm','',500,250)"></td>
</tr>
<!--tr>
<td width="100" class="bg-2" >是否提醒</td>
<td bgcolor="#f3f3f3" colspan=3><input id="tx" type="checkbox" onclick="do_tx()"/>提醒</td>
</tr>
<tr>
<td class="bg-2" >提醒方式</td>
<td bgcolor="#f3f3f3" colspan=3><input type="checkbox" id="tx2" disabled/>短信<input type="checkbox" id="tx3" disabled/>系统消息</td>
</tr>
<tr>
<td class="bg-2" >提醒时间</td>
<td bgcolor="#f3f3f3" colspan=3><input type="checkbox" id="tx4" disabled/>提前一天<input type="checkbox" id="tx5" disabled/>提前一小时
<input type="checkbox" id="tx6" disabled />定时提醒 <input type="text" style="cursor:hand" onClick="showCal()" size=10 readonly/>
<select name="select">
<script>
for(var i=0;i<=23;i++)
{
if(i<10)i="0"+i;
document.write("<option >"+i+"</option>");
}
</script>
</select>
<select name="select2">
<script>
for(var i=0;i<=59;i++)
{
if(i<10)i="0"+i;
document.write("<option >:"+i+"</option>");
}
</script>
</select>
<select name="select3">
<script>
for(var i=0;i<=59;i++)
{
if(i<10)i="0"+i;
document.write("<option >:"+i+"</option>");
}
</script>
</select></td>
</tr> -->
</table>
<table width="300" border="0" align="center" cellpadding="4" cellspacing="0">
<tr>
<td align="center">
<input type="button" value="保存返回" onClick="add()">
<input name="fanhui" type="button" value="保存继续添加" >
<input type="button" value="取消" onClick="javascript:history.back();">
</td></tr>
</table>
</td>
</tr>
</table>
</html:form>
</body>
<script language="javascript">
function do_tx()
{
var tx = document.getElementById("tx");
var aa = document.getElementById("tx2");
var bb = document.getElementById("tx3");
var cc = document.getElementById("tx4");
var dd = document.getElementById("tx5");
var ee = document.getElementById("tx6");
aa.disabled=true;
bb.disabled=true;
cc.disabled=true;
dd.disabled=true;
ee.disabled=true;
if(tx.checked==true)
{
aa.disabled=false;
bb.disabled=false;
cc.disabled=false;
dd.disabled=false;
ee.disabled=false;
}
}
</script>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -