<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="net.sz600.tool.SzConvert" %>
<%@ page import="net.sz600.system.*" %>
<%@ page import="net.sz600.formEngine.*" %>
<%@ page import="net.sz600.formEngine2.*" %>
<%@ page import="java.util.*" %>
<%@ include file="/xml/formEngine2/sessionInfo2.jsp"%>
<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>
<%
	BdOptions bdOptions = new BdOptions();
	int i = 0;
	int iLen = 0;
	ArrayList list = bdOptions.getList();
    String sObject = SzConvert.toZeroStr(request.getParameter("Object"));
%>
<!-----上面的工具栏------>
<table width="100%">
  <form name="formBar" method="post">
  <input type="hidden" name="name" value="">
  <input type="hidden" name="Object" value="<%=sObject%>">
  <tr>
    <td>
    基础选项选择
    </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 width="30">&nbsp;</td>  
    <td>名称</td>
    <td>说明</td>
    <td>选项(value)/选项(text)</td>

    <td width="40">操作</td>
  </tr>
<%
		String temp = "";
		String str[]=null;
		iLen = list.size();
		int j = 0;
    for (i=0; i<iLen; i++ ) {
    	str = (String[])list.get(i);
    	j++;
    	str[3] = str[3].replaceAll("'","‘");
%>
  <tr onMouseOver="javascript:this.className='trMouseOver'" onMouseOut="javascript:this.className='trMouseOut'">
  	<td width="30" align="center"><%=j%></td>   
    <td><%=str[0]%>&nbsp;</td>
    <td><%=str[1]%>&nbsp;</td>
    <td><%=str[2]%><br><%=str[3]%>&nbsp;</td>     
    <td width="30"><a href="#"  OnClick="javascript:Save('<%=str[0]%>');">确定</a></td>
  </tr>
<%
    }

    out.println(SzPageHelp.outIndexTableTr(j, SzProperties.I_PageSize, 5));
%>
  </form>
</table>

<!-----下面的工具栏------>
<script language="javascript">
  function Save(name) { 
  	//name = name.replace(/(')/g, "\'"); 
  	var vObject = formBar.Object.value;
  	if (vObject != null) {
  		//var oWindow = window.dialogArguments;
  		var oWindow = window.opener;
  		eval("oWindow." + vObject + ".value='" + name + "';"); 
  	}
    window.close();
  }
</script>

