?? addplaninput.jsp
字號:
<!-- 系統名稱:光大花園物業管理系統 -->
<!-- 程序名稱:AddPlanInput.jsp -->
<!-- 程序類型:jsp文件 -->
<!-- 功能簡述:增加計劃輸入頁面 -->
<!-- 作 者:韓立鋒 -->
<!-- 公 司:長春中聯 -->
<!-- 完成時間:2001/09/12 -->
<!-- 修 改 人:畢鋒 -->
<!-- 修改內容:頁面 -->
<!-- 修改時間:2001/11/19 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="/pmsApp/css/wuye.css" type="text/css">
<title>增加計劃</title>
<script language="JavaScript" src="/pmsApp/common/wuye.js"></script>
<script lanuage="JavaScript">
<!--
function MM_swapImgRestore() {// v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() {// v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) {// v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_swapImage() {// v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
//獲取系統時間
function existedData() {
now=new Date();
y=now.getYear();
m=1+now.getMonth();
d=now.getDate();
for(var i = 0; i < 10; i++) {
if(document.form1.planyear[i].value == y) {
document.form1.planyear[i].selected = true;
break;
}
}
for(var i = 0; i < 12; i++) {
if(document.form1.planmonth[i].value == m) {
document.form1.planmonth[i].selected = true;
break;
}
}
for(var i = 0; i < 31; i++) {
if(document.form1.planday[i].value == d)
{
document.form1.planday[i].selected = true;
break;
}
}
for(var i = 0; i < 10; i++) {
if(document.form1.startyear[i].value == y) {
document.form1.startyear[i].selected = true;
break;
}
}
for(var i = 0; i < 12; i++) {
if(document.form1.startmonth[i].value == m) {
document.form1.startmonth[i].selected = true;
break;
}
}
for(var i = 0; i < 31; i++) {
if(document.form1.startday[i].value == d)
{
document.form1.startday[i].selected = true;
break;
}
}
for(var i = 0; i < 10; i++) {
if(document.form1.endyear[i].value == y) {
document.form1.endyear[i].selected = true;
break;
}
}
for(var i = 0; i < 12; i++) {
if(document.form1.endmonth[i].value == m) {
document.form1.endmonth[i].selected = true;
break;
}
}
for(var i = 0; i < 31; i++) {
if(document.form1.endday[i].value == d)
{
document.form1.endday[i].selected = true;
break;
}
}
}
function handleForm(inputForm) {
var str="";
var del2="☆";
var del ="※";
for (i=0; i<inputForm.elements.length; i++)
{
if ((inputForm.elements[i].name.toUpperCase() != "RESET") &&
(inputForm.elements[i].name.toUpperCase() != "SUBMIT"))
{
if ((inputForm.elements[i].type == "radio") ||
(inputForm.elements[i].type == "checkbox"))
{
if (inputForm.elements[i].checked)
{
str = str+inputForm.elements[i].name+del2+inputForm.elements[i].value+del;
}
}
else if (inputForm.elements[i].type == "select-one")
{
str = str+inputForm.elements[i].name
+del2+inputForm.elements[i].options[inputForm.elements[i].selectedIndex].value+del;
}
else
{
str = str+inputForm.elements[i].name+del2+inputForm.elements[i].value+del;
}
}
}
str=str.substr(0,str.length-del.length);
inputStr=str;
document.hiddenForm.inputString.value=str;
document.hiddenForm.submit();
}
function Audit(){
alert("您此時不能批閱計劃");
}
function ModAud(){
alert("您此時不能修改審批內容");
}
function CheckForm(inputForm)
{
if (inputForm.planname.value==""){
alert("請輸入計劃名稱");
inputForm.planname.focus();
return false;
}
if (inputForm.plancontent.value==""){
alert("請輸入計劃內容");
inputForm.plancontent.focus();
return false;
}
if (inputForm.plancontent.value.length>500){
alert("您輸入的計劃內容不能多于500個漢字");
inputForm.plancontent.focus();
return false;
}
if (inputForm.doplan.value.length>500){
alert("您輸入的工作進度內容不能多于500個漢字");
inputForm.doplan.focus();
return false;
}
if (inputForm.auditcontent.value.length>100){
alert("您輸入的批閱內容不能多于100個漢字");
inputForm.auditcontent.focus();
return false;
}
inputForm.plandate.value=inputForm.planyear.value+'-'+inputForm.planmonth.value+'-'+inputForm.planday.value;
inputForm.startdate.value=inputForm.startyear.value+'-'+inputForm.startmonth.value+'-'+inputForm.startday.value;
inputForm.enddate.value=inputForm.endyear.value+'-'+inputForm.endmonth.value+'-'+inputForm.endday.value;
inputForm.auditdate.value=inputForm.audityear.value+'-'+inputForm.auditmonth.value+'-'+inputForm.auditday.value;
handleForm(form1);
}
</script>
<%
String deptnum = (String)request.getParameter("number");
String plandept = (String)request.getParameter("plandept");
%>
</head>
<body bgColor="#FFFFFF" leftMargin="0" topMargin="0" vLink="#003399" marginwidth="0" marginheight="0" background="/pmsApp/images/bg2.gif" onLoad="this.focus();MM_preloadImages('/pmsApp/images/button_new_over.gif','/pmsApp/images/button_save_over.gif','/pmsApp/images/button_modify_over.gif','/pmsApp/images/button_del_over.gif','/pmsApp/images/button_query_over.gif','/pmsApp/images/button_cancel_over.gif')" >
<form name="form1">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td height="28" background="/pmsApp/images/toolbar2.gif" valign="top"><img src="/pmsApp/images/blank.gif" width="10" height="1"><img src="/pmsApp/images/button_new_gray.gif" width="55" height="20"><img src="/pmsApp/images/button_modify_gray.gif" width="55" height="20"><img src="/pmsApp/images/button_del_gray.gif" width="55" height="20"><img src="/pmsApp/images/button_split.gif" width="8" height="20"><img src="/pmsApp/images/button_query_gray.gif" width="55" height="20"><img src="/pmsApp/images/button_split.gif" width="8" height="20"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" background="/pmsApp/images/tab_mid.gif" height="25">
<table width="300" border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td width="82" background="/pmsApp/images/tab_up.gif" height="25">部門計劃</td>
<td width="82" background="/pmsApp/images/tab_down_right.gif" height="25"><a href="javascript:Audit()">批閱計劃</a></td>
<td width="82" background="/pmsApp/images/tab_down.gif" height="25"><a href="javascript:ModAud()">修改審批內容</a></td>
</tr>
</table>
</td>
</tr>
</table><br>
<table width="251" border="1" align="center" bgcolor="#FFFFFF" bordercolorlight="#808080" bordercolordark="#FFFFFF" cellspacing="0" cellpadding="0" height="22">
<tr>
<td align="center" bgcolor="#eeffee">增加計劃</td>
</tr>
</table><br>
<input type="hidden" name="deptname" value="<%=plandept%>">
<table border="1" width="98%" height="160" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#808080" bordercolordark="#FFFFFF">
<tr>
<td width="82" height="27" align="center">計劃名稱 </td>
<td width="213" height="27">
<input type="text" name="planname" size="25" maxlength="20">
<font color="#FF3300">*</font>
</td>
<td width="82" height="27" align="center">計劃類別 </td>
<td width="213" height="27">
<input type="radio" name="plantype" value="0">年
<input type="radio" name="plantype" value="1">月
<input type="radio" name="plantype" value="2" checked>周
</td>
</tr>
<tr>
<td align="center" width="82">制訂日期</td>
<td width="213">
<select name="planyear">
<option value="2001">2001</option>
<option value="2002">2002</option>
<option value="2003">2003</option>
<option value="2004">2004</option>
<option value="2005">2005</option>
<option value="2006">2006</option>
<option value="2007">2007</option>
<option value="2008">2008</option>
<option value="2009">2009</option>
<option value="2010">2010</option>
</select>
年
<select name="planmonth">
<option value="01">1</option>
<option value="02">2</option>
<option value="03">3</option>
<option value="04">4</option>
<option value="05">5</option>
<option value="06">6</option>
<option value="07">7</option>
<option value="08">8</option>
<option value="09">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select>
月
<select name="planday">
<option value="01" >1</option>
<option value="02" >2</option>
<option value="03" >3</option>
<option value="04" >4</option>
<option value="05" >5</option>
<option value="06" >6</option>
<option value="07" >7</option>
<option value="08" >8</option>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -