📄 index.jsp
字号:
String userType = (String)mybean.isWho(uid);
if(userType.equals("bmadmin"))
{
for(int i=0;i<5;i++)
{
strmkqx[i] = "增删改";
}
}
mybean.closeConn();
String zgbh=(String)session.getAttribute("zgbh");
//= myPersonBean.getZGMC();
String zgsf = myDepartmentBean.isWho(zgbh);//身份验证
if(zgsf.equals("bmadmin"))
zgsf="管理员";//部门
else if(zgsf.equals("bmws"))
zgsf="文书";//部门
else if(zgsf.equals("person"))
zgsf="普通员工";
String yhm = myDepartmentBean.toName("ZZ_ZGB","ZGBH","YHM",zgbh)+"";
*/
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>极限空间企业信息管理系统</TITLE>
<META http-equiv=Content-Type content="text/html; charset=GBK">
<LINK href="../css/main.css" rel=stylesheet>
<link href="../css/person.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2800.1226" name=GENERATOR>
</HEAD>
<script>
</script>
<form name=form1 action="index.jsp" method=post>
<input type=hidden name="txt_type" value="<%=strType%>">
<input type=hidden name="txt_id" value="<%=strID%>">
<input type=hidden name="txt_edit" value="<%=strEdit%>">
<input type=hidden name="txt_uid" value="<%=zgbh%>">
<%if(strType.equals("18")||strType.equals("19")){%>
<input type=hidden name="bmbh" value="<%=strbmbh%>">
<input type=hidden name="wzlx" value="<%=strwzlx%>">
<%}if(strType.equals("10")||strType.equals("20")){%>
<input type=hidden name="txt_menuID1" value="<%=strmenuID1%>">
<%}%>
<!--
<table width="100%" cellspacing="0" cellpadding="0" height=20><tr>
<td background="../images/mu_bg.gif">
<a onclick="changepage('9','<%//=strmkqx[1]%>');" style="cursor:hand;"><img src="../images/mu5.gif" border=0></a>
<a onclick="changepage('10','<%//=strmkqx[2]%>');" style="cursor:hand;"><img src="../images/mu10.gif" border=0></a>
<a onclick="changepage('11','<%//=strmkqx[3]%>');"style="cursor:hand;"><img src="../images/mu6.gif" border=0></a>
<a onclick="changepage('12','<%//=strmkqx[4]%>');"style="cursor:hand;"><img src="../images/mu4.gif" border=0></a>
<a onclick="changepage('13','1');" style="cursor:hand;"><img src="../images/mu14.gif" border=0></a> <a style="cursor:hand;" onclick="if(!confirm('是否关闭该系统管理主页?')){}else{window.close();}"><img src="../images/mu_logout.gif" border=0></a>
</td>
</tr></table>
//-->
<%
if(strType.equals("1")||strType.equals("2")||strType.equals("3")||strType.equals("4")||strType.equals("5")||strType.equals("6"))
{
currentBM = ds.toString((String)request.getParameter("menuid"));
if(currentBM.equals("")){
childfile="";
response.sendRedirect("index.jsp?txt_type=20");
}
else{
menuBean = new oa.bean.MenuBean();
menuBean.setID(Integer.parseInt(currentBM));
txt+="(<font color='#FF0000'>"+menuBean.toname()+"</font>)";
}
}
%>
<%if(!strType.equals("18")&&!strType.equals("19")){%>
<table width="95%" border="0" cellspacing="3" cellpadding="3" align=center><tr><td height="20">当前位置:主页管理>><%=txt%></a></td></tr></table>
<br>
<%}
else{%>
<table width="95%" border="0" cellspacing="3" cellpadding="3" align=center><tr><td height="20">当前位置:<%=txt%></a></td></tr></table>
<br>
<table width="95%" border="0" cellspacing="0" cellpadding="0" align=center><tr><td>
<%
if(!strbmbh.equals("")){
for(int i=0;i<strbmno.length;i++){
String uid = (String)session.getAttribute("zgbh");
boolean right2 = true;
if(!right2){
if(strbmbh.equals(strbmno[i])&&i+1<strbmno.length)
strbmbh = strbmno[i+1];
continue;
}
strBMMC[i] = myBean.toName("ZZ_BMB","BMBH","BMMC",strbmno[i]);
%> <%if(strbmno.length!=1){%><input type=radio onclick="changeBM('<%=strbmno[i]%>')"<%if(strbmbh.equals(strbmno[i])){out.print("checked");}%>><a style="cursor:hand" onclick="changeBM('<%=strbmno[i]%>')"><%}%><font color=<%if(strbmbh.equals(strbmno[i])){%>#CC0000<%}else{%>#006600<%}%>><%=strBMMC[i]%></font></a>
<%}
%>
</td>
<td align=right>选择类别:</td>
<td align=right width=5>
<select name="selwzlx" onchange="changewzlx(selwzlx)"><option id="0">所有类别</option>
<%
Vector vect=orgmenuBean.getData(strbmbh);
int n=vect.size();
for(int i=0;i<n;i++){
if(i%2==0){
Hashtable hash = (Hashtable)vect.get(i);
String mc = (String)hash.get("MC");
int bh = Integer.parseInt((String)hash.get("BH"));
out.print("<option id="+bh);
if(strwzlx.equals(""+bh))
out.print(" selected");
out.print(">"+mc+"</option>");
}
else{
Vector v = (Vector)vect.get(i);
int n1 = v.size();
for(int j=0;j<n1;j++){
Hashtable hash = (Hashtable)v.get(j);
String mc = (String)hash.get("MC");
int bh = Integer.parseInt((String)hash.get("BH"));
out.print("<option id="+bh);
if(strwzlx.equals(""+bh))
out.print(" selected");
out.print("> "+mc+"</option>");
}
}
}%>
</select></td></tr></table>
<%}
}
if(strType.equals("1")||strType.equals("2")||strType.equals("3")||strType.equals("4")||strType.equals("5")||strType.equals("6"))
{
%>
<input type=hidden value="<%=currentBM%>" name="menuid">
<table width="95%" cellspacing="0" cellpadding="0" align=center>
<tr>
<td align=center>
<!-- <a href=http://10.0.0.98 target=_blank><img src="../images/logo_98.gif" border=0></a></td>
<td ><font color=ffcc00>欢迎您,<font face="Verdana, Arial, sans-serif"><b><%//=yhm%></b></font>
<font color=cccccc>[<%//=zgsf%>]</font> |
//-->
<A onclick="changepage('1','1');" style="cursor:hand;"><font color="<%=color[0]%>">【我发表的文章】</font></a>
<a onclick="changepage('2','1');" style="cursor:hand;"><font color="<%=color[1]%>">【所有文章】</font></a>
<a onclick="changepage('3','1');" style="cursor:hand;"><font color="<%=color[2]%>">【所有焦点】</font></a>
<a onclick="changepage('4','1');" style="cursor:hand;"><font color="<%=color[3]%>">【所有首页】</font></a>
<a onclick="changepage('5','1');" style="cursor:hand;"><font color="<%=color[4]%>">【所有图片】</font></a>
<a onclick="changepage('6','1');" style="cursor:hand;"><font color="<%=color[5]%>">【所有待审】</font></a></font><br>
</font></td></tr></table>
<%}%>
<%if(strType.equals("18")||strType.equals("19")){%>
<hr>
<table width="95%" cellspacing="0" cellpadding="0" align=center>
<tr>
<td align=left>
<A onclick="changepage('18','1');" style="cursor:hand;"><font color="<%=color[0]%>">【我发表的文章】</font></a>
<%
String uid = (String)session.getAttribute("zgbh");
boolean right1 = true;
if(right1){
%>
<a onclick="changepage('19','1');" style="cursor:hand;"><font color="<%=color[1]%>">【所有文章】</font></a><%}%></font><br>
</font></td></tr></table>
<%}%>
<%if(strType.equals("13")||strType.equals("14")||strType.equals("15")||strType.equals("16")||strType.equals("17")||strType.equals("21")){%><table width="95%" bgcolor=#999999 cellspacing="1" cellpadding="5" align=center>
<tr bgcolor=#eeeeee>
<td colspan=2 align=right> <a onclick="changepage('13');" style="cursor:hand;">图片设置</a> | <a onclick="changepage('14');" style="cursor:hand;">主页新闻设置</a> | <a onclick="changepage('21');" style="cursor:hand;">主页链接设置</a> | <a onclick="changepage('15');" style="cursor:hand;">CSS代码设置</a> | <a onclick="changepage('16');" style="cursor:hand;">FTP设置</a>| <a onclick="changepage('17');" style="cursor:hand;">评论设置</a>
</td>
</tr>
</table>
<%}%>
<jsp:include page="<%=childfile%>"/>
<script>
function changepage(type,right)
{
if(right=="")
{
alert("您没有该模块的操作权限!");
}
else
{
document.all.txt_type.value = type;
document.all.txt_id.value = "";
document.all.txt_edit.value = "";
document.all.form1.action = "index.jsp";
document.all.form1.submit();
}
}
<%if(strType.equals("18")||strType.equals("19")){%>
function changewzlx(selwzlx){
document.all.txt_type.value = <%=strType%>;
document.all.txt_id.value = "";
document.all.txt_edit.value = "";
document.all.bmbh.value = "<%=strbmbh%>";
document.all.wzlx.value = selwzlx.options[selwzlx.selectedIndex].id;
document.all.form1.action = "index.jsp";
document.all.form1.submit();
}
<%}%>
</script>
<br>
<HR width="90%" size=1>
</DIV>
<CENTER><FONT size=2>Copyright ©2003 All rights reserved. Powered by qingqing
</FONT></CENTER></DIV>
</form>
</BODY></HTML>
<%}
finally{
if(myBean!=null) myBean.closeConn();
if(orgmenuBean!=null) orgmenuBean.closeConn();
if(menuBean!=null) menuBean.closeConn();
}%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -