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

📄 p_mind.jsp

📁 项目申报系统项目申报系统项目申报系统项目申报系统
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ page language="java" import="java.sql.*" contentType="text/html;charset=GB2312"%>

<%
    String getLoginmessage=(String)session.getValue("p_loginSign");
    String identityID=(String)session.getValue("identityID");    
    if(getLoginmessage!="OK")
    {
        response.sendRedirect("index3.jsp");
    }
%>
<jsp:useBean id="p_mind" scope="page" class="firm.firm"/>
<%
    String ssql="select * from I_itemSetup";
    ResultSet srs=p_mind.executeQuery(ssql);
    java.util.Date today=new java.util.Date();
    java.util.Date p_beginDate=new java.util.Date();
    java.util.Date p_finishDate=new java.util.Date();
    if(srs.next())
    {
	p_beginDate=srs.getDate("p_beginDate");
	p_finishDate=srs.getDate("p_finishDate");
    }
    if(today.before(p_beginDate) || today.after(p_finishDate))
    {
        response.sendRedirect("timeOut.jsp");
    }
%>

<%
    String itemID=request.getParameter("itemID");  
    String sql1="select * from I_distribute where itemID='"+itemID+"' and identityID='"+identityID+"'";
    ResultSet rs1=p_mind.executeQuery(sql1);
    String item_name="";
	String score0="";
	String score1="";
	String score2="";
	String score3="";
	String score4="";
	String score5="";
	String score6="";
	String mind="";
	String expert_mind="";
    if(rs1.next()){
        item_name=rs1.getString("item_name");
        score0=rs1.getString("score0");
        score1=rs1.getString("score1");
        score2=rs1.getString("score2");
        score3=rs1.getString("score3");
        score4=rs1.getString("score4");
        score5=rs1.getString("score5");
        score6=rs1.getString("score6");
        mind=rs1.getString("mind");
        expert_mind=rs1.getString("expert_mind");
    }
%>

<html>
<head>
<title>专家意见表</title>
<script language="JavaScript" type="text/javascript">
<!--
  function addUp()
  {
    document.form1.score6.value=parseInt(document.form1.score0.value)+parseInt(document.form1.score1.value)+parseInt(document.form1.score2.value)+parseInt(document.form1.score3.value)+parseInt(document.form1.score4.value)+parseInt(document.form1.score5.value);
  }
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.form1;
	
	if (!(parseInt(f1.score0.value)>=0 && parseInt(f1.score0.value)<=5))
	{
		window.alert("分数应在0-5之间。");
		f1.score0.focus();
		return false;
	}
	
	if (!(parseInt(f1.score1.value)>=0 && parseInt(f1.score1.value)<=25))
	{
		window.alert("分数应在0-25之间。");
		f1.score1.focus();
		return false;
	}
	
	if (!(parseInt(f1.score2.value)>=0 && parseInt(f1.score2.value)<=20))
	{
		window.alert("分数应在0-20之间。");
		f1.score2.focus();
		return false;
	}
	
	if (!(parseInt(f1.score3.value)>=0 && parseInt(f1.score3.value)<=15))
	{
		window.alert("分数应在0-15之间。");
		f1.score3.focus();
		return false;
	}
	
	if (!(parseInt(f1.score4.value)>=0 && parseInt(f1.score4.value)<=10))
	{
		window.alert("分数应在0-10之间。");
		f1.score4.focus();
		return false;
	}
	
	if (!(parseInt(f1.score5.value)>=0 && parseInt(f1.score5.value)<=25))
	{
		window.alert("分数应在0-25之间。");
		f1.score5.focus();
		return false;
	}

	if (Jtrim(f1.expert_mind.value) == "")
	{
		window.alert("您尚未填写评语。");
		f1.expert_mind.focus();
		return false;
	}
}
//-->
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000">
<table border="0" cellspacing="0" cellpadding="0" width="650" align="center">
  <tr> 
    <td bgcolor="#000099"> 
      <table width="650" border="0" cellspacing="0" cellpadding="0">
        <tr bgcolor="#FFFFFF"> 
          <td colspan="3" height="20">&nbsp;</td>
        </tr>
        <tr> 
          <td colspan="3"></td>
        </tr>
        <tr bgcolor="#FFFFFF"> 
          <td colspan="3">&nbsp;</td>
        </tr>
        <tr> 
          <td width="33%">&nbsp;</td>
          <td bgcolor="#FFFFFF"> 
            <div align="center"><img src="../images/p_item2.gif" width="112" height="22"></div>
          </td>
          <td width="33%">&nbsp;</td>
        </tr>
      </table>
      <table width="650" border="0" cellspacing="1" cellpadding="0">
        <tr> 
          <td bgcolor="#FFFFFF"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="5">&nbsp;</td>
              </tr>
            </table>
            <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
              <tr> 
                <td align="center">
				<form name=form1 method=post action="p_checkMind.jsp?itemID=<%=itemID%>" onSubmit="return checktheform(this)">

⌨️ 快捷键说明

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