⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.jsp

📁 华东粮油电子交易市场网站源码华东粮油电子交易市场网站源码华东粮油电子交易市场网站源码
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="/inc/pv/super.jsp"%>
<%@ include file="/inc/public/msg.jsp"%>
<%
	String strParentId = request.getParameter("pid");
	if(igec.util.Tool.IsEmpty(strParentId)) strParentId = "0";
	//获取所有的部门列表
	java.util.ArrayList lists = new java.util.ArrayList();
	igec.site.base.bean.SysObj info = new igec.site.base.bean.SysObj();
	info.setStrValue1(strParentId);
	int iFlag = igec.site.base.business.DepartBusiness.getDepartList(lists,info,request);
	if(iFlag<0){
		showError("程序异常!",out);
		return;
	}
	
	java.util.ArrayList pathList = new java.util.ArrayList();
	igec.site.base.bean.PathListObj plo = new igec.site.base.bean.PathListObj();
	plo.setStrTableName("TAB_IGECDEPT");
	plo.setStrIdName("ID");
	plo.setStrParentIdName("PID");
	plo.setStrCurPId(strParentId);
	plo.setStrTitleName("NAME");
	iFlag = igec.site.base.business.DataUtilBusiness.getPathList(pathList,plo);
	if(iFlag<0){
		showError("程序异常!",out);
		return;
	}
%>
<html>
<head>
<title>部门管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" type="text/css" href="<%=strCssPath%>">
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/public.js"></script>
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/check.js"></script>
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/xmlhttp.js"></script>
<script language="javascript" src="<%=strSkinBase%>/js/forbid.js"></script>
<script language="javascript">
<!--
	function openMaxWin(strHref){
		openWindow(strHref,screen.availWidth,screen.availHeight);
	}
	function deleteDepart(){
		var strResult = getSelectRsFromForm("RSID",form1);                                                          	
		if("ERROR"==strResult){
			return;
		}
		delRs("<%=site.bean.SitePara.strVirtualName + site.bean.SitePara.strManageFolder%>/depart.do?action=del&iid=<%=strMenuId%>&id=" + strResult);
	}
//-->
</script>
</head>

<body class="bodycolor" topmargin="5">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="<%=strSkinBase%>/images/notify_new.gif" align="absmiddle"><span class="big3"> 新建部门</span>
    </td>
  </tr>
</table>
<div align="center">
  <input type="button" value="新建部门" class="BigButton" title="新建部门" onclick="openWindow('add.jsp?pid=<%=strParentId%>&iid=<%=strMenuId%>','600','200');">&nbsp;
  <input type="button" value="部门排序" class="BigButton" title="部门排序" onclick="openWindow('<%=strSkinBase%>/system/order.jsp?iid=<%=strMenuId%>&pid=<%=strParentId%>&title=name&table=TAB_IGECDEPT','250','300');">
</div>
<br>

<table width="95%" border="0" cellspacing="0" cellpadding="0" height="3">
 <tr>
   <td background="<%=strSkinBase%>/images/dian1.gif" width="100%"></td>
 </tr>
</table>

<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="<%=strSkinBase%>/images/notify_open.gif" align="absmiddle">&nbsp;<a href="?iid=<%=strMenuId%>"><span class="big3">部门列表</span></a> <%for(int i=0;i<pathList.size();i++){igec.site.base.bean.SysObj so = (igec.site.base.bean.SysObj)pathList.get(i);%> -> <a href="?iid=<%=strMenuId%>&pid=<%=so.getStrValue1()%>"><span class="big3"><%=so.getStrValue2()%></span></a><%}%>
    </td>
  </tr>
</table>

    <table align="center" border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3">
    <form name="form1" id="form1">
   <%
	for(int i=0;i<lists.size();i++){
		igec.site.base.bean.StandSysObj so = (igec.site.base.bean.StandSysObj)lists.get(i);
		if(so!=null){
%> 
    <tr class="TableLine1 TextColor2">
      <td>&nbsp;
        <input type="checkbox" name="RSID" value="<%=so.getStrValue1()%>">
      </td>
      <td nowrap align="center"><%=so.getStrValue1()%></td>
      <td nowrap align="center"><%=so.getStrValue2()%></td>
      <td nowrap align="center"><a href="?pid=<%=so.getStrValue1()%>&iid=<%=strMenuId%>"><%if(!"0".equals(so.getStrValue6())) out.print("<b>");%><%=so.getStrValue3()%></a></td>
      <td nowrap align="center"><%=so.getStrValue4()%></td>
      <td nowrap align="center"><%=so.getStrValue5()%></td>
      <td nowrap align="center">
      <a href="javascript:" onclick="javascript:openWindow('edit.jsp?id=<%=so.getStrValue1()%>&iid=<%=strMenuId%>','600','200');">编辑</a>&nbsp;
      </td>
    </tr>
<%}}%>
    <thead class="TableHeader">
      <td nowrap align="center" width="40">选择</td>
      <td nowrap align="center" width="10%">部门ID</td>
      <td nowrap align="center" width="10%">键值</td>
      <td nowrap align="center">名称</td>
      <td nowrap align="center" width="10%">更新人</td>
      <td nowrap align="center" width="15%">更新时间</td>
      <td nowrap align="center" width="10%">操作</td>
    </thead>
    <tr class="TableControl">
      <td colspan="10">&nbsp;
        <input type="checkbox" name="allbox" id="allbox_for" onClick="checkAll(this,'RSID',form1);">
        <label for="allbox_for">全选</label> &nbsp;
        <input type="button"  value="删除" class="SmallButton" onClick="deleteDepart();" title="删除所选部门"> &nbsp;
      </td>
    </tr>
    </form>
  </table>
  <table border="0" cellspacing="0" width="100%" cellpadding="0">
<tr><td height="40" <%if(lists.size()>0){%>align="right"<%}else{%>align="center"<%}%> valign="middle"><span class="big3"><%=info.getStrValue5()%></span></td></tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -