<%@ Page Language="C#" AutoEventWireup="true" CodeFile="layoutDataSelect.aspx.cs" Inherits="Manage_layoutDataSelect" %><!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 setData(text,value)
    {

        /*
        parent.select_btn.parentNode.setAttribute('data-text', value);
        var spans = parent.select_btn.parentNode.getElementsByTagName("span");
        if (spans.length == 0) {
            parent.select_btn.insertAdjacentHTML('beforebegin', '<span style="margin-right:8px;">' + text + '</span>');
        }
        else {
            spans[0].innerText = text;
        }
        parent.layer.close(parent.arrLayerIndex.pop());
        */
        if (typeof (parent.bindcontrols_callback) == "function") {
            parent.bindcontrols_callback(text, value);
        }
        parent.layer.close(parent.arrLayerIndex.pop());
    };
</script>
</head>
<body>
    <div style="margin:8px;">
    <div class="esearchgroup" style="margin: 0px 0px 8px 0px;"> 
        <a href="?type=0" onfocus="this.blur();"<%=(type=="0" ? " class=\"cur\"" : "") %>>模块</a>
        <a href="?type=1" onfocus="this.blur();"<%=(type=="1" ? " class=\"cur\"" : "") %>>图表</a>
        <a href="?type=2" onfocus="this.blur();"<%=(type=="2" ? " class=\"cur\"" : "") %>>静态数据</a>
        <a href="?type=3" onfocus="this.blur();"<%=(type=="3" ? " class=\"cur\"" : "") %>>动态数据</a>
    </div>

    <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="setData('模块:<%# Eval("modelid") %>','{model:<%# Eval("modelid") %>}');">
                <td height="32"><%# Eval("modelid") %></td>
                <td><%# Eval("mc") %></td>
                <td><%# Eval("sm") %></td>
            </tr>
        </itemtemplate>
        <footertemplate></tbody></table></footertemplate>
    </asp:Repeater>

     <asp:Repeater id="RepReports" 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>
                        <td>说明</td>
                    </tr>
                </thead>
                <tbody>
            </headertemplate>
        <itemtemplate>
            <tr onclick="setData('图表:<%# Eval("ReportID") %>','{report:<%# Eval("ReportID") %>}');">
                <td height="32"><%# Eval("ReportID") %></td>
                <td><%# Eval("mc") %></td>
                <td><%# eBase.getReportControlTypeText(Eval("ControlType").ToString())%></td>
                <td><%# Eval("sm") %></td>
            </tr>
        </itemtemplate>
        <footertemplate></tbody></table></footertemplate>
    </asp:Repeater>


       <asp:Repeater id="RepDataContents" 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="setData('静态数据:<%# Eval("DataContentID") %>','{content:<%# Eval("DataContentID") %>}');">
                <td height="32"><%# Eval("DataContentID") %></td>
                <td><%# Eval("mc") %></td>
                <td><%# Eval("bz") %></td>
            </tr>
        </itemtemplate>
        <footertemplate></tbody></table></footertemplate>
    </asp:Repeater>

      <asp:Repeater id="RepViews" 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="setData('动态数据:<%# Eval("DataViewID") %>','{view:<%# Eval("DataViewID") %>}');">
                <td height="32"><%# Eval("DataViewID") %></td>
                <td><%# Eval("mc") %></td>
                <td><%# Eval("sm") %></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>