?? 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 + -