<%@ Page Language="C#" AutoEventWireup="true" CodeFile="StyleSelect.aspx.cs" Inherits="Manage_StyleSelect" %><!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>样式选择</title>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=9;IE=8;IE=7;" />
	<meta http-equiv="X-UA-Compatible" content="edge" /><!--标准模式-->
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">	
	<meta name="renderer" content="webkit"><!--极速模式-->
	<meta name="renderer" content="webkit|ie-comp|ie-stand"> <!--极速模式，兼容模式，IE模式打开-->
	<meta http-equiv="imagetoolbar" content="no" />
    <link href="../Plugins/layui226/css/layui.css" rel="stylesheet" type="text/css" />     
    <link href="../Plugins/eControls/default/style.css?ver=<%=Common.Version %>" rel="stylesheet" type="text/css" />   
    <link href="../Plugins/Theme/default/style.css?ver=<%=Common.Version %>" rel="stylesheet" type="text/css" />   
	<link href="../Plugins/Theme/manage/style.css?ver=<%=Common.Version %>" rel="stylesheet" type="text/css" />
	<script src="../Scripts/Init.js?ver=<%=Common.Version %>"></script>
    <script>
        function style_click(jsonstr)
        {
            var json = decode64(jsonstr);
            var data = JSON.parse(json);
            //alert(json);
            //alert(JSON.stringify(data));
            if (typeof (parent.style_callback) == "function")
            {
                parent.style_callback(data);
            }
            parent.layer.close(parent.arrLayerIndex.pop());
        };
    </script>
</head>
<body>
     <div style="margin:8px;">
          <dl id="eSearchBox" class="ePanel">
<dt><h1 onclick="showPanel(this);" class="search"><a href="javascript:;" class="cur" onfocus="this.blur();"></a>搜索</h1></dt>
<dd style="display:none;">
<form id="frmsearch" name="frmsearch" method="post" onsubmit="return goSearch(this);" action="">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="eDataView">
<colgroup>
<col width="120" />
<col />
<col width="120" />
<col />
</colgroup>
<tr>
<td class="title">名称：</td>
<td class="content"><span class="eform"><ev:eSearchControl ID="s1" Name="s1" ControlType="text" Field="MC" Operator="like" FieldName="名称" DataType="string" Width="300px" runat="server" /></span></td>
<td class="title">ID编号：</td>
<td class="content"><span class="eform"><ev:eSearchControl ID="s2" Name="s2" ControlType="text" Field="ID" Operator="custom" FieldName="ID编号" DataType="string" Width="300px" runat="server" /></span></td>
</tr>
<tr>
<td colspan="4" class="title" style="text-align:left;padding-left:125px;"><a class="button" href="javascript:;" onclick="if(frmsearch.onsubmit()!=false){frmsearch.submit();}"><span><i class="search">搜索</i></span></a></td>
</tr>
</table>
</form>
</dd>
</dl>

    <asp:Repeater id="RepModels" runat="server">
        <headertemplate>
            <table id="eDataTable" class="eDataTable" border="0" cellpadding="0" cellspacing="1" width="100%">
                <thead>
                    <tr bgcolor="#f2f2f2">
                        <td width="280">ID编号</td>
                        <td>名称</td>
                        <td>说明</td>
                    </tr>
                </thead>
                <tbody>
            </headertemplate>
        <itemtemplate>
            <tr onclick="style_click('<%# getJsonObject(Container.DataItem) %>');">
                <td height="32"><%# Eval("StyleID") %></td>
                <td><%# Eval("name") %></td>
                <td><%# Eval("remark") %></td>
            </tr>
        </itemtemplate>
        <footertemplate></tbody></table></footertemplate>
    </asp:Repeater>

          <div style="margin:6px;"><ev:ePageControl ID="ePageControl1" PageSize="15" PageNum="9" runat="server" /></div>
    </div>
</body>
</html>