<%@page contentType="text/html; charset=GBK"%><%@include file="../../include/Admin.jsp"%><%@include file="../../include/DBCon.jsp"%><%if(!StrFormat.isNull(request.getParameter("act"))){if(StrFormat.isNum(request.getParameter("id")) && request.getParameter("act").equals("del")){try{DBSql="delete from scope where id="+request.getParameter("id").trim();DBStmt = DBCon.createStatement();DBStmt.executeUpdate(DBSql);MesStr = "删除成功！";}catch(Exception ie){MesStr = "修改失败！";if(isShowErr!=0){MesStr += "\\r\\nErrInfo:"+ie;}}finally{if(DBStmt!=null)DBStmt.close();}}else{MesStr = "删除失败！";}out.print("<script language=\"javascript\">alert(\""+MesStr+"\");history.back();</script>");}else{%><html><head><meta http-equiv="Content-Type" content="text/html; charset=GBK" /><meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache,must-revalidate"> <meta http-equiv="expires" content="mon,23 jan 1978 12:52:30 gmt"><meta name="keywords" content="向继根,Xiang Jigen,QQ,190582560"><meta name="description" content="Programmer:向继根 QQ:190582560 Email:190582560@qq.com"><meta name="author" content="向继根,Xiang Jigen" /><title><%=TitleStr%>权限管理</title><link rel="stylesheet" type="text/css" href="../images/Style.css"/><script type="text/javascript" src="../../js/min.js"></script><script type="text/javascript" src="../../js/common.js"></script><script type="text/javascript" src="../../js/css.js"></script><script type="text/javascript">function doDel(id){	confirmurl('ScopeList.jsp?act=del&id='+id,'确认要 删除 此权限吗？');	return false;}</script></head><body><table cellpadding="0" cellspacing="1" class="table_list"><caption>权限管理</caption><tr><td><a href="AddScope.jsp"><span class="red">添加权限</span></a>&nbsp;</td></tr></table><table cellpadding="0" cellspacing="1" class="table_list"><caption>权限列表</caption><tr><th width="5%" class="align_c"><strong>序号</strong></th><th width="25%" class="align_c"><strong>名 称</strong></th><th width="40%" class="align_c"><strong>备 注</strong></th><th width="20%" class="align_c"><strong>添加时间</strong></th><th width="10%" class="align_c"><strong>管理操作</strong></th></tr><%String NowPage="",FileName="",Footer="",WhereStr="";NowPage = request.getParameter("page");	FileName="ScopeList.jsp?do=list";if(StrFormat.isNull(NowPage)||!StrFormat.isNum(NowPage)){NowPage="1";}DBSql="select * from scope order by id desc";GenPages pages=new GenPages(DBCon);pages.setPageSize(PageSize);pages.setNowPage(Integer.parseInt(NowPage));pages.setFileName(FileName);try{	pages.setQuery(DBSql); 	Footer=pages.getFooter();if(pages.getCountPage()>0){ 		DBRs=pages.getResult();	int i=pages.StartRows();		while(DBRs.next()){i++;%><tr><td class="align_c"><%=i%></td><td>&nbsp;<%=StrFormat.isNull(DBRs.getString("name"),"")%></td><td>&nbsp;<span class="black"><%=StrFormat.isNull(DBRs.getString("note"),"")%></span></td><td class="align_c"><span class="black"><%=StrFormat.isNull(DBRs.getString("time"),"")%></span></td><td class="align_c"><a href="ModScope.jsp?id=<%=DBRs.getInt("id")%>">修改</a>&nbsp;<span class="black">|</span>&nbsp;<a href="javascript:void(0);" onClick="doDel('<%=DBRs.getInt("id")%>');return false;">删除</a></td></tr><%	 	}	}else{		out.print("<tr><td colspan=\"5\" class=\"align_c\" valign=\"middle\">暂时没有内容</td></tr>");}}finally{if(DBRs!=null)DBRs.close();if(DBStmt!=null)DBStmt.close();}%></table><div id="pages"><%=Footer%></div></body></html><%}%><%@include file="../../include/DBConClose.jsp"%>