<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="java.util.*" %>
<%@ page import="net.sz600.tool.SzConvert" %>
<%@ page import="net.sz600.system.*" %>
<%@ page import="net.sz600.docEngine.*" %>
<%@ include file="/sessionInfo.jsp"%>
<%
  strSkin_SESSION = "../../images/skin2_blue2";
%>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="<%=strSkin_SESSION%>/css2007.css" rel="stylesheet" type="text/css">
</head>

<%
	if (!net.sz600.check.SzHasp.getInstance().checkDocEngine()) {
		out.println("<font color='red'>[提示]本授权的版本不能使用文档引擎</font>");
  		return;
  	}  
    ReadDocEngineXml docEngine = new ReadDocEngineXml();
    Iterator iter = docEngine.getDocList().iterator();
%>
<!-----上面的工具栏------>
<%@ include file="title.jsp"%>
<table width="100%">
  <tr>
    <td>
      <%=SzPageHelp.button("添加", "javascript:FormSubmit(formList, 'update.jsp?OPERATOR=add');")%>
    </td>
  </tr>
  </form>
</table>

<!-----信息列表----->
<table width="100%" border="1" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" class="tableClass" cellpadding="1" cellspacing="0">
  <form name="formList" method="post" >

  <tr class="trClassTitle">
    <td>ID</td>  
    <td>模块</td>
    <td>信息名称</td>
    <td>分类名称</td>
    <td width="40">操作</td>
  </tr>
<%
    String id = ""; 
		DocEngineInfo docEngineInfo = new DocEngineInfo();
    int i = 0;
    String sTemp = "";
    while (iter != null && iter.hasNext()) {
    	docEngineInfo = (DocEngineInfo)iter.next();
    	id = docEngineInfo.getId();
    	sTemp = "";
        if (docEngineInfo.getDesktop() > 0) {
        	sTemp = "<img src='../../images/share2/destop.gif' border='0'>";
        }
            	
    	i++;
%>
  <tr>
    <td><%=id%>&nbsp;</td>  
    <td><%=sTemp%><%=docEngineInfo.getModuleName()%>&nbsp;</td>
    <td><%=docEngineInfo.getInfoName()%>&nbsp;</td>
    <td><%=docEngineInfo.getTypeName()%>&nbsp;</td>
    <td>
      <a href="update.jsp?OPERATOR=update&id=<%=id %>">修改</a>    
      <a href="control.jsp?OPERATOR=delete&id=<%=id %>">删除</a>
      <a href="control.jsp?OPERATOR=gentable&id=<%=id %>">重建表</a>
      <a href="control.jsp?OPERATOR=genpath&id=<%=id %>">加进菜单</a>
    </td>
  </tr>
<%
    }
    out.println(SzPageHelp.outIndexTableTr(i, SzProperties.I_PageSize, 5));
%>
  </form>
</table>

<!-----下面的工具栏------>
<table width="100%" cellpadding="1" cellspacing="0">
  <form name="formPage" method="post">
  <tr>
    <td align="right">
      &nbsp;
    </td>
  </tr>
  </form>
</table>

<!-----这里包含要提交的内容--->
<form name="formHidden" method="post">
</form>
<script language="javascript" src="../../share/js/commonTool.js"></script>
