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

📄 display.jsp

📁 企业员工信息管理系统
💻 JSP
📖 第 1 页 / 共 3 页
字号:
			flgbmchg = false;
		}
		if(flgbmchg)
		{
%>
  <TR bgColor="#FFFFFF" height=20>
    <TD colspan="7" align=left><font style='COLOR:#000000;FONT-FAMILY: 楷体_GB2312;font-size: 14;'><%=bmchgmax%></font></TD><!--部门名称-->
  </TR>
<%
		}
%>
  <TR bgColor="<%=bgcolor%>" height=20>
    <!--TD width=70 align=center><%=strBH%></TD--><!--部门名称-->
	<TD width=60 align=center><font style='COLOR:#000000;FONT-FAMILY: 楷体_GB2312;font-size: 14;'><%=strGH%></font></TD>
  <%
  if(right1)
  {
  %>  
	<TD width=90 title="查看详细信息" align=center><A onclick="viewinf('<%=strBH1%>');" style="cursor:hand;"><font style='COLOR:#000000;FONT-FAMILY: 楷体_GB2312;font-size: 14;'><%=strXM%></font></a></TD>
   <%}
  else
  {
  %>  
	<TD width=90 align=center><font style='COLOR:#000000;FONT-FAMILY: 楷体_GB2312;font-size: 14;'><%=strXM%></font></TD>
<%}%>	
	<TD width=40 align=center><font style='COLOR:#000000;FONT-FAMILY: 楷体_GB2312;font-size: 14;'><%=strXB%></font></TD>

 
	<TD align=center>
	<FONT color="#000000">
  <%
  if(right5)
  {
  %>
	  <A title="修改成员"onclick="mod('<%=strBH1%>');" style="cursor:hand;">修改</A>
  <%}  
  if(right7)
  {
  %>
	  <A title="删除人员"onclick="delps('<%=strBH1%>')" style="cursor:hand;">删除</A>
  <%}%>
	</FONT>
	</TD>

  </TR>
<%
	}

int t =-1;
int s = -1;
%>
	<tr height=25>
		<TD align=right colspan=8 bgColor=#FFFFFF>
		共有记录数:<%=recsum%>&nbsp;&nbsp;&nbsp;&nbsp;
<%if(vect.size()>1){%>
		当前<%=cur%>/<%=sum%>页&nbsp&nbsp&nbsp<a onclick="firsrpg()" style="cursor:hand">第一页&nbsp&nbsp&nbsp </a> <!--href="index.jsp?txt_type=3&bm=1"-->
		<%if(cur>1){ t=cur-1;%>
		<a onclick="lastpg()" style="cursor:hand">上一页&nbsp&nbsp&nbsp </a><%}%><!--href="index.jsp?txt_type=3&bm=<%=t%>"-->
		<%if(cur<sum){ s=cur+1;%>
		<a onclick="nextpg()" style="cursor:hand">下一页&nbsp&nbsp&nbsp</a><%}%>&nbsp&nbsp
		<!--href="index.jsp?txt_type=3&bm=<%=s%>"-->
		<a onclick="finalpg()" style="cursor:hand">最后页&nbsp&nbsp&nbsp </a><!--href="index.jsp?txt_type=3&bm=<%=sum%>"-->  
		直接<input type=image src="../images/hand.gif" name="gotof" onclick="return chkdata()">
		<input type=text size=5 name=bm class=formcolor>页</TD>
<%}%>
	</tr>

  </TBODY></TABLE>
  <script>
	function firsrpg()
	{
		document.all.txt_type.value = "3";
		document.all.txt_edit.value = "";
		document.all.form1.action = "index.jsp?bm=1";
		document.all.form1.submit();
	}
	function lastpg()
	{
		document.all.txt_type.value = "3";
		document.all.txt_edit.value = "";
		document.all.form1.action = "index.jsp?bm="+<%=t%>;
		document.all.form1.submit();
	}
	function nextpg()
	{
		document.all.txt_type.value = "3";
		document.all.txt_edit.value = "";
		document.all.form1.action = "index.jsp?bm="+<%=s%>;
		document.all.form1.submit();
	}
	function finalpg()
	{
		document.all.txt_type.value = "3";
		document.all.txt_edit.value = "";
		document.all.form1.action = "index.jsp?bm="+<%=sum%>;
		document.all.form1.submit();
	}

	function add()
	{
		document.all.txt_type.value = "3";
		document.all.txt_edit.value = "1";
		document.all.txt_orgno.value = "<%=strOrgNO%>";

		document.all.txt_page.value = "1";

		document.all.form1.action = "index.jsp";
		document.all.form1.submit();
	}

	function mod(personno)
	{
		document.all.txt_type.value = "3";
		document.all.txt_personno.value = personno;
		document.all.txt_edit.value = "2";
		document.all.form1.action = "index.jsp";
		document.all.form1.submit();
	}

	function delps(personno)
	{
		if(!confirm("是否真的要删除?"))
		{
		}
		else
		{
			document.all.txt_type.value = "3";
			document.all.txt_personno.value = personno;
			document.all.txt_edit.value = "3";
			document.all.form1.action = "../../Org";
			document.all.form1.submit();
		}
	}
	function viewinf(personno)
	{
		document.all.txt_type.value = "3";
		document.all.txt_edit.value = "4";
		document.all.txt_personno.value = personno;
		document.all.form1.action = "index.jsp";
		document.all.form1.submit();

	}
	function todutypg(personno)
	{
		document.all.txt_type.value = "4";
		document.all.txt_edit.value = "";
		document.all.txt_personno.value = personno;
		document.all.form1.action = "index.jsp";
		document.all.form1.submit();
	}
	function viewcont(strcont)
	{

		document.all.txt_cont.value = strcont;
		var url = "viewqx.jsp";			
		var hWnd = window.open(url,"HelpWindow","width=300,height=235,resizable=yes,scrollbars=yes");
	   if ((document.window != null) && (!hWnd.opener)) 
		   hWnd.opener = document.window;
	   hWnd.focus();
	}
	function onchgss(selobj)
	{
		var choice = selobj.selectedIndex;
		document.all.txt_srch.value = selobj.options[choice].value;
		selobj.options[choice].selected;
	}
	function onpaixubm()
	{
		var imgname="";
		document.all.txt_type.value = 3;
		document.all.txt_edit.value = "";
		if(document.all.txt_paixu.value !="0" && document.all.txt_paixu.value !="1")
			document.all.txt_paixu.value ="0";
		if(document.all.txt_paixu.value =="1")
		{
			document.all.txt_paixu.value ="0";
			imgname = "../images/arrowup.gif";
		}
		else if(document.all.txt_paixu.value =="0")
		{
			document.all.txt_paixu.value ="1";
			imgname = "../images/arrowdown.gif";
		}
		document.all.form1.action = "index.jsp?imgname0="+imgname;
		document.all.form1.submit();
	}
	function onpaixuno()
	{
		document.all.txt_type.value = 3;
		document.all.txt_edit.value = "";
		if(document.all.txt_paixu.value !="3" && document.all.txt_paixu.value !="2")
			document.all.txt_paixu.value ="2";
		
		if(document.all.txt_paixu.value =="3")
		{
			document.all.txt_paixu.value ="2";
			imgname = "../images/arrowup.gif";
		}

		else if(document.all.txt_paixu.value =="2")
		{
			document.all.txt_paixu.value ="3";
			imgname = "../images/arrowdown.gif";
		}
		
		document.all.form1.action = "index.jsp?imgname1="+imgname;
		document.all.form1.submit();
	}
	function onpaixuxm()
	{
		document.all.txt_type.value = 3;
		document.all.txt_edit.value = "";
		if(document.all.txt_paixu.value !="4" && document.all.txt_paixu.value !="5")
			document.all.txt_paixu.value ="4";
		
		if(document.all.txt_paixu.value =="5")
		{
			document.all.txt_paixu.value ="4";
			imgname = "../images/arrowup.gif";
		}
		else if(document.all.txt_paixu.value =="4")
		{
			document.all.txt_paixu.value ="5";
			imgname = "../images/arrowdown.gif";
		}
		
		document.all.form1.action = "index.jsp?imgname2="+imgname;
		document.all.form1.submit();
	}
	function onpaixuxb()
	{
		document.all.txt_type.value = 3;
		document.all.txt_edit.value = "";
		if(document.all.txt_paixu.value !="6" && document.all.txt_paixu.value !="7")
			document.all.txt_paixu.value ="6";
		
		if(document.all.txt_paixu.value =="7")
		{
			document.all.txt_paixu.value ="6";
			imgname = "../images/arrowup.gif";
		}
		else if(document.all.txt_paixu.value =="6")
		{
			document.all.txt_paixu.value ="7";
			imgname = "../images/arrowdown.gif";
		}
		
		document.all.form1.action = "index.jsp?imgname3="+imgname;
		document.all.form1.submit();
	}
	function chkdata()
	{
		document.all.txt_type.value = 3;
		if(!isDigit(document.all.bm.value))
        {
			alert("输入的页码不是数字!");
			document.all.bm.value="";
			document.all.bm.focus();
			return false;
		}
		if(document.all.bm.value=="")
		{
			alert("请输入页码!");
			document.all.bm.value="";
			document.all.bm.focus();
			return false;
		}
		else
		{
			var t = document.all.bm.value;
			var cur = <%=cur%>;
			var sum = <%=sum%>;

			while(t.length>cur.length)
            {
				alert("请跳至1和"+sum+"之间!");
				document.all.bm.value="";
				document.all.bm.focus();
				return false;
			}
			if(t==cur){return false;}
            
			
			while(t.length>sum.length)
			{
				alert("请跳至1和"+sum+"之间!");
				document.all.bm.value="";
				document.all.bm.focus();
				return false;
			}
			if(t<1||t>sum)
			{
				alert("请跳至1和"+sum+"之间!");
				document.all.bm.value="";
				document.all.bm.focus();
				return false;
			}
		}
		return true;
	}
</script>
<%}finally{
	if(myBean!=null)myBean.closeConn();
}%>

⌨️ 快捷键说明

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