📄 meetinfo.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<title>会议纪要操作管理</title>
<script src="${pageContext.request.contextPath}/Jsp_file/meet/Calendar.js"></script>
<script src="${pageContext.request.contextPath}/Js_file/addmeet.js"></script>
<link href="${pageContext.request.contextPath}/Css_file/oa.css" rel="stylesheet" type="text/css" />
</head>
<script>
var FileMaxSize =5120;
function addFile(){
var Rows=tableFiles.rows;//类似数组的Rows
if (tableFiles.rows.length==3) {
document.getElementById("file").innerHTML="<font color=\"red\">最多只能传三个附件</font>";
return;
}else if(!(tableFiles.rows.length==3)){
document.getElementById("file").innerHTML="";
}
var newRow=tableFiles.insertRow(tableFiles.rows.length);//插入新的一行
var Cells=newRow.cells;//类似数组的Cells
var newCell=Rows(newRow.rowIndex).insertCell(Cells.length);
newCell.align="left";
newCell.innerHTML= "<input type=file name=uploadFile["+(tableFiles.rows.length-1) + "].file value=''/> <input type=button name=\"btndele\" value=\"删除\" onclick=delFile(tableFiles.rows.length-1)>";
}
function delFile(id){
tableFiles.deleteRow(tableFiles.rows.length-1);
document.getElementById("file").innerHTML="";
}
function checkfile(thisfile,id){
var fso, f, s;
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.GetFile(thisfile);
if (f.size>1024*FileMaxSize) {
alert("添加的附件大小不能大于5M!");
delFile(id);
}
}
function dele(path,name,rmid){
if(confirm("确认要删除?")){
window.location.href="${pageContext.request.contextPath}/meet.do?task=delpath&path="+path+"&name="+name+"&rmid="+rmid;
}
}
</script>
<script>
function check(){
var mpeople=form1.mepeople.value;
var mistarttime=form1.mistarttime.value;
var miendtime=form1.miendtime.value;
var rmid = form1.rmid.value;
var addmeet =meetinfoForm.addmeet;
var minfoname = form1.minfoname.value;
if(mpeople==0){
document.getElementById("people").innerHTML="<font color=\"red\">请选择一个主持人</font>";
form1.mpeople.focus();
return;
}else{
document.getElementById("people").innerHTML="";
}
if(mistarttime==''){
document.getElementById("starttime").innerHTML="<font color=\"red\">开始时间不能为空</font>";
form1.mistarttime.focus();
return;
}else{
document.getElementById("starttime").innerHTML="";
}
if(miendtime==''){
document.getElementById("endtime").innerHTML="<font color=\"red\">结束时间不能为空</font>";
form1.miendtime.focus();
return ;
}else{
document.getElementById("endtime").innerHTML="";
}
if(mistarttime>=miendtime){
document.getElementById("starttime").innerHTML="<font color=\"red\">结束时间不能小于或等于开始时间</font>";
miendtime.focus();
return;
}else{
document.getElementById("starttime").innerHTML="";
}
if(addmeet.options.length==0){
document.getElementById("unos").innerHTML="<font color=\"red\">参与人员不能为空</font>";
form1.addmeet.focus();
return ;
}else{
document.getElementById("unos").innerHTML="";
for(var i=0;i<addmeet.options.length;i++){
addmeet.options[i].selected=true;
}
}
if(rmid==""){
document.getElementById("addr").innerHTML="<font color=\"red\">请选择会议地点</font>";
form1.rmid.focus();
return;
}else{
document.getElementById("addr").innerHTML="";
}
if(minfoname==""){
document.getElementById("infoname").innerHTML="<font color=\"red\">会议主题不能为空</font>";
form1.minfoname.focus();
return;
}
form1.submit();
}
</script>
<body>
<div class="t">
<html:form action="/meetinfo" enctype="multipart/form-data" styleId="form1">
<table width="100%" border="1" cellspacing="1" class="tr3 f_one">
<html:hidden property="miid" />
<html:hidden property="task" />
<html:hidden property="miisdel" value="0" />
<tr>
<th>
会议主题
</th>
<th>
<html:text property="miinfo" onfocus="this.blur();" />
</th>
</tr>
<tr class="tr3 f_one">
<th>
会议主持人:
</th>
<th>
<html:select property="mepeople" name="meetinfoForm" onfocus="this.blur();" >
<html:option value="0">===请选择==</html:option>
<logic:present name="listuser1" scope="request">
<logic:iterate id="plan" name="listuser1" scope="request">
<html:option value="${plan.uno}">${plan.uname}</html:option>
</logic:iterate>
</logic:present>
</html:select>
<SPAN id="people"></span>
</th>
</tr>
<tr>
<th>
会议实际时间
</th>
<th>
<html:text property="mistarttime" readonly="true" onclick="javascript:setDayHM(this);" />
至
<html:text property="miendtime" readonly="true" onclick="javascript:setDayHM(this);" />
<SPAN id="starttime"></span><SPAN id="endtime"></span>
</th>
</tr>
<tr class="tr3 f_one">
<th>
会议参与者:
</th>
<th>
<table>
<tr>
<th width=3%>
<FONT style="color: blue" size="2">所有员工列表:</font>
<html:select property="arryusername" multiple="true" style="width: 120px;height: 100px">
<logic:present name="userlist" scope="request">
<logic:iterate id="plan" name="userlist" scope="request">
<html:option value="${plan.uno}">${plan.uname}</html:option>
</logic:iterate>
</logic:present>
</html:select>
</th>
<th width=3%>
<input type="button" name="rightmove" value=">>" style="width=60px">
<br>
<br>
<input type="button" name="leftmove" value="<<" style=" width=60px">
</th>
<th>
<FONT style="color: blue" size="2">要参与的员工列表:</font>
<br>
<html:select property="addmeet" multiple="true" style="width: 120px;height: 100px" name="meetinfoForm">
<logic:equal name="meetinfoForm" property="task" value="edit">
<logic:present name="addmeet" scope="request">
<logic:iterate id="plan" name="addmeet" scope="request">
<html:option value="${plan.uno}">${plan.uname}</html:option>
</logic:iterate>
</logic:present>
</logic:equal>
</html:select>
</th>
</tr>
</table>
<SPAN id="unos"></span>
</th>
</tr>
<tr>
<th>
开会地点
</th>
<th>
<html:select property="rmid" style="width:120px">
<html:optionsCollection name="roomlist" label="rname" value="rmid" />
</html:select>
<SPAN id="addr"></span>
</th>
</tr>
<tr>
<th>
会议纪要主题
</th>
<th>
<html:text property="minfoname" /><SPAN id="infonam"></span>
</th>
</tr>
<tr>
<th>
会议纪要内容
</th>
<th>
<html:textarea property="minfocontent" cols="50" rows="5" />
</th>
</tr>
<tr>
<th>
上传附件
</th>
<th>
<logic:equal name="meetinfoForm" property="task" value="edit">
<logic:lessThan name="size" value="3">
<input type="button" name="hh" value="添加附件" onClick="addFile()" />
<span id="file"></span>
<table align="left" id="tableFiles"></table>
</logic:lessThan>
</logic:equal>
</br>
<logic:equal name="meetinfoForm" property="task" value="edit">
<logic:present name="filelist" scope="request">
<logic:iterate id="files" name="filelist">
<html:link href="${pageContext.request.contextPath}/downLoadServlet?filepath=${files.miaffixpath}">${files.miaffixname}</html:link>
<input type="button" name="btndele" value="删除" onclick="dele('${files.miaffixpath}','${files.miaffixname}','<bean:write property='miid' name='meetinfoForm' />');" />
<br>
</logic:iterate>
</logic:present>
</logic:equal>
</th>
</tr>
</table>
</html:form>
</div>
<br>
<div style="text-align:center;margin-bottom:25px;">
<input type="button" class="btn" value=" 保存 " onclick="check();">
<input type="button" class="btn" value=" 返回 " onclick="javascript:window.history.back();" />
</div>
<script>
init();
var moveright =document.getElementById("rightmove");
moveright.onclick=right;
var moveleft= document.getElementById("leftmove");
moveleft.onclick=left;
</script>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -