<%@ 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>
<%
    String sObject = SzConvert.toZeroStr(request.getParameter("Object"));
    String cssArray[][] = {
	{"txtClass","单行标准"},
	{"txtClassR","单行标准灰色"},
	{"txtClass2","单行加长"},
	{"txtClass2R","单行加长灰"},

	{"areaClass","多行标准"},
	{"areaClassR","多行标准灰色"},
	{"areaClass2","多行加长"},
	{"areaClass2R","多行加长灰"}
   };
%>
<!-----上面的工具栏------>
<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="trClassTitle2">
    <td>序号</td>
    <td>样式名称</td>
    <td>样式说明</td>
    <td>确定</td>
  </tr>
<%
		String temp = "";
		String str[]=null;
		int iLen = cssArray.length;
		int j = 0;
    for (int i=0; i<iLen; i++ ) {
%>
  <tr onMouseOver="javascript:this.className='trMouseOver'" onMouseOut="javascript:this.className='trMouseOut'">
    <td width="30"><%=i + 1%>&nbsp;</td>
    <td><%=cssArray[i][0]%>&nbsp;</td>
    <td><%=cssArray[i][1]%>&nbsp;</td>       
    <td width="30"><a href="#"  OnClick="javascript:Save('<%=cssArray[i][0]%>');">确定</a></td>
  </tr>
<%
    }

%>
  </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>

