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

📄 rcap_update.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" %>
<%@ 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/>
	<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">
<head>
<title>日程安排--修改、删除界面</title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk"/>
<link href="../../include/style.css" rel="stylesheet" type="text/css"/>
<link href="../../include/text.css" rel="stylesheet" type="text/css"/>
<script language="javascript" src="../../include/common.js"></script>
<script language="javascript" src="../../include/calendar.js"></script>
<script language="javascript">
       function update(){
         //if(document.doArrangeDateForm.name.value == ''){
		 //    alert('事件名称不能为空!');
		 //    return false;
	     // }
	     //  if(document.doArrangeDateForm.place.value == ''){
		 //    alert('事件地点不能为空!');
		 //    return false;
	     // }
	     // if(document.doArrangeDateForm.type.value == ''){
		 //    alert('事件类型不能为空!');
		 //    return false;
	     // }
	     // if(document.doArrangeDateForm.start_time.value == ''){
		//     alert('事件开始时间不能为空!');
		//     return false;
	   //   }
	    //  if(document.doArrangeDateForm.end_time.value == ''){
		//     alert('事件结束时间不能为空!');
		//     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;
	    
	    document.doArrangeDateForm.action='/YZOA/doArrangeDateAction.do?action=deal';
	    document.doArrangeDateForm.submit();
	    }
    </script>
 
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="BACKGROUND-COLOR: transparent">
<html:form action="/doArrangeDateAction.do">
<html:hidden property="id"/>
<html:hidden property="start_time"/>
<html:hidden property="end_time"/>

<table>
 <tr> 
    <td><a href="rcap.html"><font size="-1">主页</font></a>&gt;&gt; <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">事件名称&nbsp;<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">
			    		<html:option value="">选择类型</html:option>
			    		<html:option value="0">会议</html:option>
			    		<html:option value="1">评审</html: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">
              	<bean:write name="doArrangeDateForm" property="content"/>
              </html:textarea>
            </td>
          </tr>
          <tr> 
            <td width="100" class="bg-2">开始日期&nbsp;<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">结束日期&nbsp;<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"> 
              <html:select property="start_select1">
			<%for(int i=0;i<23;i++){ 
			if(i<10){%>
				<html:option value="<%=("0"+String.valueOf(i)) %>"><%=("0"+String.valueOf(i)) %></html:option>
			<%}else{ %>
				<html:option value="<%=String.valueOf(i) %>"><%=i %></html:option>
			<%}} %>
			</html:select>
			<html:select property="start_select2">
			<%for(int i=0;i<59;i++){ 
			if(i<10){%>
				<html:option value="<%=("0"+String.valueOf(i)) %>"><%=("0"+String.valueOf(i)) %></html:option>
			<%}else{ %>
				<html:option value="<%=String.valueOf(i) %>"><%=i %></html:option>
			<%}}%>
            </html:select>
         </td>
            <td width="100" class="bg-2">结束时间</td>
            <td width="135" bgcolor="#f9f9f9"> 
              <html:select property="end_select1">
			<%for(int i=0;i<23;i++){ 
			if(i<10){%>
				<html:option value="<%=("0"+String.valueOf(i)) %>"><%=("0"+String.valueOf(i)) %></html:option>
			<%}else{ %>
				<html:option value="<%=String.valueOf(i) %>"><%=i %></html:option>
			<%}} %>
			</html:select>
			<html:select property="end_select2">
			<%for(int i=0;i<59;i++){ 
			if(i<10){%>
				<html:option value="<%=("0"+String.valueOf(i)) %>"><%=("0"+String.valueOf(i)) %></html:option>
			<%}else{ %>
				<html:option value="<%=String.valueOf(i) %>"><%=i %></html:option>
			<%}} %>
            </html: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 name="tx" type="checkbox" id="tx2" onclick="do_tx()" value="1" checked="checked" />
            提醒</td>
          </tr>
		  <tr>
		  	<td  class="bg-2" >提醒方式</td>
			<td bgcolor="#f3f3f3" colspan=3><input name="tx" type="checkbox" id="tx2" value="1" onclick="do_tx()" />短信<input name="tx" type="checkbox" id="tx2" value="1" onclick="do_tx()" />系统消息</td>
		  </tr>
		  <tr>
		  	<td  class="bg-2" >提醒时间</td>
			<td bgcolor="#f3f3f3" colspan=3><input name="tx" type="checkbox" id="tx2" value="1" onclick="do_tx()" />提前一天<input name="tx" type="checkbox" id="tx2" value="1" onclick="do_tx()" />提前一小时
			<input name="tx" type="checkbox" id="tx2" onclick="do_tx()" value="1" checked="checked" />
			定时提醒&nbsp;<input type="text" style="cursor:hand" onClick="showCal()" value="2007-04-27" size=10 readonly/>
			<select name="select">
			<script>
				for(var i=0;i<=23;i++)
				{
					var st="<option>";
					if(i<10)i="0"+i;
					if(i==16)st="<option selected='selected'>"; 
					document.write(st+i+"</option>");
				}
			</script>
			</select>
			<select name="select2">
			<script>
				for(var i=0;i<=59;i++)
				{
					var st="<option>:";
					if(i<10)i="0"+i;
					if(i==14)st="<option selected='selected'>:";
					document.write(st+i+"</option>");
				}
			</script>
            </select>
			<select name="select3">
			<script>
				for(var i=0;i<=59;i++)
				{
					var st="<option>:";
					if(i<10)i="0"+i;
					if(i==31)st="<option selected='selected'>:";
					document.write(st+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="update()">
			  <input type="button" value="删除" onClick="return deleteConfirm('你确定要删除该记录吗?')">
			  <input type="button" value="返回"onClick="javascript:history.back();">
		    </td></tr>
        </table>
      </td>
    </tr>
  </table><script language="javascript">
function deleteConfirm(msg)
{
	var agree;
	agree = confirm(msg);
	if(agree == 0){ //选择“取消”,不删除;
		return false;
	}else{
		document.doArrangeDateForm.action='/YZOA/doArrangeDateAction.do?action=delete';
	    document.doArrangeDateForm.submit();
	}
	return true;
}
</script>
</html:form>
</body>

</html:html>

⌨️ 快捷键说明

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