📄 index.jsp
字号:
<%@page language="java" contentType="text/html;charset=GBK"%>
<%@page import="java.util.*"%>
<%@page import="oa.main.DealString"%>
<%@include file="../../inc.jsp"%>
<%
oa.bean.OrgMenuBean orgmenuBean = null;
oa.bean.ArticleBean myBean = null;
oa.bean.MenuBean menuBean = null;
try{
DealString ds = new DealString();
myBean = new oa.bean.ArticleBean();
orgmenuBean = new oa.bean.OrgMenuBean();
//取得菜单类别
String strType = ds.toString((String)request.getParameter("txt_type"));
if(strType.equals(""))strType = "1";
//错误码
String errcode = ds.toString((String)request.getParameter("errcode"));
if(errcode.equals(""))errcode = "0";
if(!errcode.equals("0"))response.sendRedirect("../err.jsp?ip=manage/index.jsp&txt_type="+strType+"&errcode="+errcode);
String currentBM = null;//分版面管理
//编号
String strID = ds.toString((String)request.getParameter("txt_id"));
String strbmbh = "";
String strbmbh_t = "";
String strwzlx = "";
String strmenuID1 = "";
String zgbh = "";
String[] strbmno = null;
String[] strBMMC = null;
//增删改类型
String strEdit = ds.toString((String)request.getParameter("txt_edit"));
String childfile = "";
String txt = "";
String addr = "?txt_id="+strID+"&txt_type="+strType+"&txt_edit="+strEdit;
///////////////////////////////////////////////
if(strType.equals("18")||strType.equals("19")){
zgbh = (String)session.getAttribute("zgbh");
Hashtable htorgqx = (Hashtable)myBean.getorgqx(zgbh);
String orgqx = (String)htorgqx.get("GL");
strbmno = orgqx.split(",");
strBMMC = new String[strbmno.length];
if(orgqx.equals(""))
orgqx="-1";
strbmbh = ds.toString((String)request.getParameter("bmbh"));
strwzlx = ds.toString((String)request.getParameter("wzlx"));
if(strbmbh.equals("")&&orgqx.length()>=20)
{
strbmbh = orgqx.substring(0,20);
}
}
////////////////////////////////////////////////// 12-11
if(strType.equals("1"))
{
childfile = "article.jsp"+addr+"&t=1";
txt = "文章管理>>我发表的文章";
if(strEdit.equals("1")||strEdit.equals("2"))childfile = "article_edit.jsp"+addr;
}
else if(strType.equals("2"))
{
childfile = "article.jsp"+addr+"&t=2";
txt = "文章管理>>所有文章";
}
else if(strType.equals("3"))
{
childfile = "article.jsp"+addr+"&t=3";
txt = "文章管理>>所有焦点";
}
else if(strType.equals("4"))
{
childfile = "article.jsp"+addr+"&t=4";
txt = "文章管理>>所有首页";
}
else if(strType.equals("5"))
{
childfile = "article.jsp"+addr+"&t=5";
txt = "文章管理>>所有图片";
}
else if(strType.equals("6"))
{
childfile = "article.jsp"+addr+"&t=6";
txt = "文章管理>>所有待审";
}
else if(strType.equals("99"))
{
childfile = "allarticle.jsp"+addr+"&t=1";
txt = "所有文章";
}
else if(strType.equals("7"))
{
childfile = "pers.jsp"+addr;
txt = "个人信息";
if(strEdit.equals("1")||strEdit.equals("2"))childfile = "pers_edit.jsp"+addr;
if(strEdit.equals("3")||strEdit.equals("4"))childfile = "pers_pwd.jsp"+addr;
}
else if(strType.equals("8"))
{
childfile = "user.jsp"+addr;
txt = "用户管理";
if(strEdit.equals("1"))childfile = "user_edit.jsp"+addr;
if(strEdit.equals("3")||strEdit.equals("4"))childfile = "user_right.jsp"+addr;
if(strEdit.equals("2"))childfile = "user_edit.jsp"+addr;
}
else if(strType.equals("9"))
{
childfile = "comm.jsp"+addr;
txt = "站务交流";
if(strEdit.equals("1")||strEdit.equals("2"))childfile = "comm_edit.jsp"+addr;
}
else if(strType.equals("10"))
{
strmenuID1 = ds.toString(request.getParameter("txt_menuID1"));
childfile = "menu.jsp" + addr + "txt_menuID1=" + strmenuID1;
txt = "版面管理";
if(strEdit.equals("1")||strEdit.equals("2"))childfile = "menu_edit.jsp"+addr;
}
/* else if(strType.equals("23"))
{
childfile = "menuchild.jsp"+addr;
txt = "子版面管理";
if(strEdit.equals("1")||strEdit.equals("2"))childfile = "menuchild_edit.jsp"+addr;
}
*/
else if(strType.equals("11"))
{
childfile = "fastadd.jsp"+addr;
txt = "发表文章";
}
else if(strType.equals("12"))
{
childfile = "topic.jsp"+addr;
txt = "专题列表";
if(strEdit.equals("1")||strEdit.equals("2"))childfile = "topic_edit.jsp"+addr;
}
else if(strType.equals("13"))
{
childfile = "piconf.jsp"+addr;
txt = "系统设置>>图片设置";
}
else if(strType.equals("14"))
{
childfile = "hpconf.jsp"+addr;
txt = "系统设置>>主页新闻设置";
if(strEdit.equals("1")||strEdit.equals("2"))childfile = "hpconf_edit.jsp"+addr;
//if(strEdit.equals("1")||strEdit.equals("2"))childfile = "menu_edit.jsp"+addr;
}
else if(strType.equals("15"))
{
childfile = "cssconf.jsp"+addr;
txt = "系统设置>>CSS设置";
if(strEdit.equals("1")||strEdit.equals("2"))childfile = "cssconf_edit.jsp"+addr;
}
else if(strType.equals("16"))
{
childfile = "ftpconf.jsp"+addr;
txt = "系统设置>>FTP设置";
}
else if(strType.equals("17"))
{
childfile = "comconf.jsp"+addr;
txt = "系统设置>>评论设置";
}
else if(strType.equals("18"))
{
childfile = "article_dep.jsp"+addr+"&t=1";
txt = "信息维护>>我发表的文章";
if(!strbmbh.equals(""))
txt += "("+myBean.toName("ZZ_BMB","BMBH","BMMC",strbmbh)+")";
}
else if(strType.equals("19"))
{
childfile = "article_dep.jsp"+addr+"&t=2";
txt = "信息维护>>所有文章";
if(!strbmbh.equals(""))
txt += "("+myBean.toName("ZZ_BMB","BMBH","BMMC",strbmbh)+")";
}
else if(strType.equals("20"))
{
childfile = "menulist.jsp"+addr;
txt = "文章管理>>版面浏览";
}
else if(strType.equals("21"))
{
childfile = "link.jsp"+addr;
txt = "系统设置>>主页链接设置";
if(strEdit.equals("1")||strEdit.equals("2"))childfile = "link_edit.jsp"+addr;
}
String color[] = {"#006600","#006600","#006600","#006600","#006600","#006600"};
if(Integer.parseInt(strType)<=6)
color[Integer.parseInt(strType)-1] = "#CC0000";
if(strType.equals("18")||strType.equals("19"))////////////////////////////////////////// 12-11
color[Integer.parseInt(strType)-18] = "#CC0000";
strbmbh_t = strbmbh ;
if ( strbmbh_t.equals("") ) strbmbh_t = "-1" ;
// String edit = request.getParameter("edit");
// String pwd = request.getParameter("pwd");
/* oa.bean.RightBean rightbean = new oa.bean.RightBean();
rightbean.setUID(uid);
Vector mkqx = (Vector)rightbean.getRightMode();
String strmkqx[] = new String[6];
strmkqx[0] = rightbean.getExist(mkqx,"用户管理");
strmkqx[1] = rightbean.getExist(mkqx,"站务交流");
strmkqx[2] = rightbean.getExist(mkqx,"版面管理");
strmkqx[3] = rightbean.getExist(mkqx,"发表文章");
strmkqx[4] = rightbean.getExist(mkqx,"专题列表");
strmkqx[5] = rightbean.getExist(mkqx,"系统设置");
rightbean.closeConn();
oa.bean.SysConfBean mybean = new oa.bean.SysConfBean();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -