<%@ page language="C#" autoeventwireup="true" inherits="admin_excel_ImportList, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link id="CssName" rel="stylesheet" type="text/css" runat="server" />

    <script src="../../js/Common.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td>
                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                您现在的位置：<a href="../info.aspx">后台管理</a> >> Excel导入列表
            </td>
        </tr>
    </table>
    <table align="center" cellpadding="2" cellspacing="1" width="99%" class="border">
        <asp:Repeater ID="RepExcelList" runat="server" OnItemCommand="RepExcelList_ItemCommand">
            <HeaderTemplate>
                <tr class="title">
                    <td align="center" class="t1">
                        编号
                    </td>
                    <td>
                        导入名称
                    </td>
                    <td>
                        模型名称
                    </td>
                    <td>
                        表名
                    </td>
                    <td>
                        Excel模板
                    </td>
                    <td>
                        指定工作薄(表)
                    </td>
                    <td>
                        导入方式
                    </td>
                    <td>
                        操作
                    </td>
                </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'">
                    <td align="center" class="t1">
                        <asp:Label ID="InfoId" runat="server" Text='<%# Eval("Id") %>'></asp:Label>
                    </td>
                    <td>
                        <%# Eval("Name") %>
                    </td>
                    <td>
                        <%# Eval("ModelName") %>
                    </td>
                    <td>
                        <%# Eval("TableName") %>
                    </td>
                    <td>
                        <%# Eval("Template") %>
                    </td>
                    <td>
                        <%# Eval("Sheet") %>
                    </td>
                    <td>
                        <%# ImportType(Eval("ImportType","{0}"))%>
                    </td>
                    <td>
                        <asp:LinkButton ID="LinkButton2" runat="server" CommandName="Import" CommandArgument='<%#Eval("Id") %>'>导入数据</asp:LinkButton>
                        ┊ <a href='SetImport.aspx?Id=<%# Eval("Id") %>'>编辑</a> ┊
                        <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Delete" CommandArgument='<%#Eval("Id") %>'
                            OnClientClick="return confirm('您确定要移除该条信息吗?')">移除</asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
    </form>
</body>
</html>
