日期:2014-05-16 浏览次数:21236 次
<SCRIPT LANGUAGE="JavaScript">
function checksubmit()
{
for(var i = 0; i < document.form.pcdept.length; i++){
if(document.form.lznl_score[k].value==”“ ){
alert("请给所有部门评完分数后再进行提交!");
document.form.lznl_score[k].focus();return false;
}
}
return true;
}
</SCRIPT>
<form name=form method='post' action='/monthsco/sort2_result2.asp' onsubmit='return checksubmit();' >
<%
sqls="select deptid,deptname from deptcp where deptid not in (select deptid from score_cp where dt='"&t&"' and scorer='"&user_id&"')"
set rss=conn2.execute(sqls)
do while not rss.eof
%>
<tr bgcolor='#ffd5d4' align='center'>
<td ><%=rss("deptname")%><input type='hidden' name='pcdept' value='<%=rss("deptid")%>'></input></td>
<td ><input type='text' name='lznl_score' class='1' onkeydown='if(event.keyCode==13)event.keyCode=9' onkeydown='if(event.keyCode==13)event.keyCode=9' onfocus='this.select()''></input></td>
function checksubmit() {
if (document.form.pcdept.length)///////判断是否有多个
&nb