?? s_changeitem.jsp
字號:
}
}
else
{ // month == 2
if ( ( year % 100 ) != 0 && (year % 4 == 0) || ( year % 100 ) == 0 && ( year % 400) == 0 )
{ if ( day > 29 )
{// alert( "日期在1 - 29之間" );
return (false);
}
}
else
{ if ( day > 28 )
{// alert( "日期在1 - 28之間" );
return (false);
}
}
}
}
return (true);
}
function Jtrim(str)
{
var i = 0;
var len = str.length;
if ( str == "" ) return( str );
j = len -1;
flagbegin = true;
flagend = true;
while ( flagbegin == true && i< len)
{
if ( str.charAt(i) == " " )
{
i=i+1;
flagbegin=true;
}
else
{
flagbegin=false;
}
}
while (flagend== true && j>=0)
{
if (str.charAt(j)==" ")
{
j=j-1;
flagend=true;
}
else
{
flagend=false;
}
}
if ( i > j ) return ("")
trimstr = str.substring(i,j+1);
return trimstr;
}
function checktheform()
{
var f1=document.theform;
if (Jtrim(f1.item_name.value) == "")
{
window.alert("您尚未填寫項目名稱。");
f1.item_name.focus();
return false;
}
if ( ! isValidDate(f1.begin_year.value, f1.begin_month.value, "01" ))
{
window.alert("起始日期不合法。");
f1.begin_year.focus();
return false;
}
if ( ! isValidDate(f1.finish_year.value, f1.finish_month.value, "01" ))
{
window.alert("終止日期不合法。");
f1.finish_year.focus();
return false;
}
if (Jtrim(f1.applicant.value) == "")
{
window.alert("您尚未填寫申請者。");
f1.applicant.focus();
return false;
}
if (Jtrim(f1.grade.value) == "")
{
window.alert("您尚未填寫申請者職稱。");
f1.grade.focus();
return false;
}
if (Jtrim(f1.education.value) == "")
{
window.alert("您尚未填寫申請者學歷。");
f1.education.focus();
return false;
}
if (Jtrim(f1.unit_name.value) == "")
{
window.alert("您尚未填寫申請者所在單位。");
f1.unit_name.focus();
return false;
}
if ( ! isValidDate(f1.fill_year.value, f1.fill_month.value, f1.fill_day.value ))
{
window.alert("填報日期不合法。");
f1.fill_year.focus();
return false;
}
if (Jtrim(f1.purport.value) == "")
{
window.alert("您尚未填寫本課題的研究意義。");
f1.purport.focus();
return false;
}
if (Jtrim(f1.status.value) == "")
{
window.alert("您尚未填寫國內外研究現狀述評。");
f1.status.focus();
return false;
}
if (Jtrim(f1.future.value) == "")
{
window.alert("您尚未填寫預期應用前景。");
f1.future.focus();
return false;
}
if (Jtrim(f1.point.value) == "")
{
window.alert("您尚未填寫主要思想、觀點。");
f1.point.focus();
return false;
}
if (Jtrim(f1.analysis.value) == "")
{
window.alert("您尚未填寫主要內容、重點和難點分析。");
f1.analysis.focus();
return false;
}
if (Jtrim(f1.way.value) == "")
{
window.alert("您尚未填寫研究方法。");
f1.way.focus();
return false;
}
if (Jtrim(f1.moment.value) == "")
{
window.alert("您尚未填寫階段及最終預期研究成果。");
f1.moment.focus();
return false;
}
if (Jtrim(f1.result.value) == "")
{
window.alert("您尚未填寫預期研究成果。");
f1.result.focus();
return false;
}
if (Jtrim(f1.outItem1.value) == "")
{
window.alert("您尚未填寫經費預算。");
f1.outItem1.focus();
return false;
}
if (Jtrim(f1.reference.value) == "")
{
window.alert("您尚未填寫本課題前期研究成果,主要的外文參考文獻和參考資料。");
f1.reference.focus();
return false;
}
if (Jtrim(f1.market.value) == "")
{
window.alert("您尚未填寫應用推廣或市場分析。");
f1.market.focus();
return false;
}
if (Jtrim(f1.commend_mind.value) == "")
{
window.alert("您尚未填寫推薦單位意見。");
f1.commend_mind.focus();
return false;
}
}
//-->
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div align="center">
<table border="0" cellspacing="0" cellpadding="0" width="650">
<tr>
<td bgcolor="#000099">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#FFFFFF">
<td colspan="3"> </td>
</tr>
<tr>
<td colspan="3"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="3"> </td>
</tr>
<tr>
<td width="33%"> </td>
<td bgcolor="#FFFFFF">
<div align="center"><img src="../images/s_item1.gif" width="112" height="22"></div>
</td>
<td width="33%"> </td>
</tr>
</table>
<table width="650" border="0" cellspacing="1" cellpadding="0" height="120">
<tr>
<td height="179" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5"> </td>
</tr>
</table>
<table width="95%" border="0" cellspacing="0" cellpadding="0" align="center" height="151">
<tr>
<td>
<form name=theform method=post action="s_checkItem.jsp?itemID=<%=itemID%>" onSubmit="return checktheform(this)">
<table width="95%" border="0" cellspacing="1" cellpadding="1" align="center">
<tr bgcolor="#d9d8dc">
<td colspan="4"> </td>
</tr>
<tr>
<td width="25%" bgcolor="#d9d8dc" align="center"><font color="#000099">項目名稱</font></td>
<td colspan="3">
<input name=item_name size=60 maxlength="60" value="<%=item_name1%>">
</td>
</tr>
<tr>
<td bgcolor="#d9d8dc" align="center" rowspan="2"><font color="#000099">類 別</font></td>
<td colspan="3">
<select name=Sort
onChange=JavaScript:showSubOpt(OptSort,this,theform.SubSort)
style="WIDTH: 150px">
<option selected
value="">----請選擇----</option>
<script language=javascript>showMainOpt(OptSort);</script>
</select>
<font size="2" color="#000099">(可多選,最多兩項) </font>
</td>
</tr>
<tr>
<td width="25%">
<select multiple name=SubSort
size=2 style="WIDTH: 150px">
</select>
</td>
<td width="25%" align="center">
<input name=Input onClick="JavaScript:AddItem('SubSort', 'SelectedIndustry[]', 'Sort')" type=button value="添加>>">
<br>
<input name=Input2 onClick="JavaScript:DeleteItem('SelectedIndustry[]')" type=button value="<<刪除">
</td>
<td>
<select multiple
name=SelectedIndustry[] size=2 style="WIDTH: 150px">
</select>
</td>
</tr>
<tr>
<td bgcolor="#d9d8dc" align="center"><font color="#000099">起止年限</font></td>
<td colspan="3">
<input maxlength=4 name=begin_year size=4 value="<%=begin_year%>">
<font color="#000099">年</font>
<select name=begin_month>
<option value=<%=begin_month%> selected><%=begin_month%></option>
<option value=01>01</option>
<option
value=02>02</option>
<option value=03>03</option>
<option
value=04>04</option>
<option value=05>05</option>
<option
value=06>06</option>
<option value=07>07</option>
<option
value=08>08</option>
<option value=09>09</option>
<option
value=10>10</option>
<option value=11>11</option>
<option
value=12>12</option>
</select>
<font color="#0000CC">月</font> <font color="#000099">——</font>
<input maxlength=4 name=finish_year size=4 value="<%=finish_year%>">
<font color="#000099">年</font>
<select name=finish_month>
<option value=<%=finish_month%> selected><%=finish_month%></option>
<option value=01>01</option>
<option
value=02>02</option>
<option value=03>03</option>
<option
value=04>04</option>
<option value=05>05</option>
<option
value=06>06</option>
<option value=07>07</option>
<option
value=08>08</option>
<option value=09>09</option>
<option
value=10>10</option>
<option value=11>11</option>
<option
value=12>12</option>
</select>
<font color="#000099">月</font> </td>
</tr>
<tr>
<td bgcolor="#d9d8dc" align="center"><font color="#000099">申
請 者</font></td>
<td colspan="3">
<input name=applicant size="20" maxlength="20" value="<%=applicant1%>">
<font color="#000099">(職稱)</font> <font color="#000099">
<input name=grade size="15" maxlength="20" value="<%=grade1%>">
(學歷)
<input name=education size="15" maxlength="20" value="<%=education1%>">
</font> </td>
</tr>
<tr>
<td bgcolor="#d9d8dc" align="center"><font color="#000099">所在單位</font></td>
<td colspan="3">
<input name=unit_name size=60 maxlength="60" value="<%=unit_name1%>">
</td>
</tr>
<tr>
<td bgcolor="#d9d8dc" align="center"><font color="#000099">填報日期</font></td>
<td colspan="3">
<input maxlength=4 name=fill_year size=4 value="<%=fill_year%>">
<font color="#000099">年</font>
<select name=fill_month>
<option value=<%=fill_month%> selected><%=fill_month%></option>
<option value=01>01</option>
<option
value=02>02</option>
<option value=03>03</option>
<option
value=04>04</option>
<option value=05>05</option>
<option
value=06>06</option>
<option value=07>07</option>
<option
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -