📄 display.jsp
字号:
String strJB = ds.toString((String)hash.get("MLEVEL"));
if(strJB.equals("1"))
strJB = "一级";
else if(strJB.equals("2"))
strJB = "二级";
else if(strJB.equals("3"))
strJB = "三级";
else
strJB = "未知";
String strGH = (String)hash.get("GH");
String strConf = (String)hash.get("PZCS");
String strOper1="",strFlow1="",strConf1="";
myBean.setPersonNO(strBH1);
strOper1 = "模块操作权限";
strFlow1 = "流程操作权限";
strConf1 = "网络资源配置";
%>
<%
if(!strBH0.equals(bmchg))
{
flgbmchg = true;
bmchg = strBH0;
bmchgmax = myBean.getFatherName(strBH0);
if(bmchgmax!=null && !bmchgmax.equals(""))
bmchgmax +=strBH;
else if(bmchgmax==null || bmchgmax.equals(""))
bmchgmax = strBH;
}
else if(strBH0.equals(bmchg))
{
flgbmchg = false;
}
if(flgbmchg)
{
%>
<TR bgColor="#E7F2FF" height=20>
<TD colspan="8" align=left><%=bmchgmax%></TD><!--部门名称-->
</TR>
<%
}
%>
<TR bgColor="<%=bgcolor%>" height=20>
<TD width=60 align=center><%=strGH%></TD>
<%
if(right1)
{
%>
<TD width=90 title="查看详细信息" align=center><A onclick="viewinf('<%=strBH1%>');" style="cursor:hand;"><font color="#000000"><%=strXM%></font></a></TD>
<%}
else
{
%>
<TD width=90 align=center><%=strXM%></TD>
<%}%>
<TD width=40 align=center><%=strXB%></TD>
<TD align=center>
<FONT color="#6600CC">
<%
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=#E7F2FF>
共有记录数:<%=recsum%>
<%if(vect.size()>1){%>
当前<%=cur%>/<%=sum%>页   <a onclick="firsrpg()" style="cursor:hand">第一页    </a> <!--href="index.jsp?txt_type=3&bm=1"-->
<%if(cur>1){ t=cur-1;%>
<a onclick="lastpg()" style="cursor:hand">上一页    </a><%}%><!--href="index.jsp?txt_type=3&bm=<%=t%>"-->
<%if(cur<sum){ s=cur+1;%>
<a onclick="nextpg()" style="cursor:hand">下一页   </a><%}%>  
<!--href="index.jsp?txt_type=3&bm=<%=s%>"-->
<a onclick="finalpg()" style="cursor:hand">最后页    </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_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(personid,type)
{
var url = "viewqx.jsp?txt_personno="+personid+"&type="+type;
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>
<%}catch(Exception e){oa.main.Logger.log("ERROR:oa.organization.display.jsp=>");e.printStackTrace(oa.main.Logger.log);}
finally{
if(myBean!=null)myBean.closeConn();
if(rtBean!=null)rtBean.closeConn();
}%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -