<%@ page contentType="text/html;charset=gbk" %>
<%@ page import="net.sz600.tool.SzConvert" %>
<%@ page import="net.sz600.system.*" %>
<%@ page import="net.sz600.formEngine2.*" %>
<%@ include file="/xml/formEngine2/sessionInfo2.jsp"%>
<%
    strLevel_SESSION = "../../../";
    strSkin_SESSION = "../../../images/skin2_blue2";
%>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link href="<%=strSkin_SESSION%>/css2007.css" rel="stylesheet" type="text/css">
</head>

<%
    BdReadSelectXML2 readSelectXML = new BdReadSelectXML2();
    int i = 0;
    String s_name[] = readSelectXML.getTableName();
%>
<!-----上面的工具栏------>
<%@ include file="/xml/formEngine2/title.jsp"%>
<table width="100%">
  <tr>
    <td>
      <input type="button" value="添加" onClick="AddWin('');";  class="btnClass">
    </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>关联名称</td>
    <td width="40">操作</td>
  </tr>
<%
    int iLen = 0;
    if (s_name != null) {
    	iLen = s_name.length;	
    }
    String temp = "";
    for (i=0; i<iLen; i++ ) {
    	temp = s_name[i];
%>
  <tr onMouseOver="javascript:this.className='trMouseOver'" onMouseOut="javascript:this.className='trMouseOut'">
    <td><a href="#" OnClick="AddWin('<%=temp%>')"><%=temp%></a>&nbsp;</td>
    <td><a href="#" OnClick="DeleteWin('<%=temp%>')">删除</a>&nbsp;</td>
  </tr>
<%
    }
    out.println(SzPageHelp.outIndexTableTr(i, SzProperties.I_PageSize, 2));
%>
  </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">
  function AddWin(vRelate) {
    //弹出窗口
    var url = "formSelect2.jsp?OPERATOR=add&relate=" + vRelate;
    //window.showModalDialog(url,window,"status=no;dialogWidth=560px;dialogHeight=670px"); 
    window.open(url, '',"left=200,top=20,scrollbars=yes,resizable=yes,status=no,width=570px,height=670px");      
  }
  
  function DeleteWin(vRelate) {
    //弹出窗口
    var url = "formSelectOk2.jsp?OPERATOR=delete2&relateName=" + vRelate;
    //window.showModalDialog(url,window,"status=no;dialogWidth=560px;dialogHeight=670px"); 
    window.open(url, '',"left=200,top=20,scrollbars=yes,resizable=yes,status=no,width=570px,height=670px");      
  }
</script>