<%@ page language="C#" autoeventwireup="true" inherits="admin_excel_SetImport, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Import Namespace="D.Common" %>
<!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>
    <script src="../../js/lhgdialog/lhgcore.lhgdialog.min.js?self=true&skin=<%=Function.GetCssNameColor()%>" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server" onkeydown="Save()">
    <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> >> <a href="ImportList.aspx">Excel导入列表</a> >> 设置Excel导入
            </td>
        </tr>
    </table>
    <table class="border" cellspacing="1" cellpadding="0" width="99%" border="0" align="center">
        <tr>
            <td class="bqleft">
                Excel导入名称：
            </td>
            <td class="bqright">
                <asp:TextBox ID="txtName" runat="server" CssClass="in1"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                指定模型：
            </td>
            <td class="bqright">
                <asp:DropDownList ID="DropModel" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                Excel模板：
            </td>
            <td class="bqright"><asp:TextBox ID="txtTemplate" runat="server" Columns="50" CssClass="in1"></asp:TextBox>
                <input id="Button2" type="button" value="选择Excel文件" class="btn" onclick="WinOpenLhgDialog('选择Excel文件','../template/SelectTemplate.aspx?ControlId=txtTemplate',650,450,'')" />
                <input id="Button1" type="button" value="上传Excel文件" class="btn" onclick="WinOpenLhgDialog('上传Excel文件','../common/uploadfile.aspx?ControlId=txtTemplate',500,120,'')" />
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                指定工作薄(表)：
            </td>
            <td class="bqright">
                <asp:TextBox ID="txtSheet" runat="server" Text="Sheet1" CssClass="in1"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                导入方式：
            </td>
            <td class="bqright">
                <asp:RadioButtonList ID="RadImportType" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="1" Selected="True">追加导入</asp:ListItem>
                    <asp:ListItem Value="2">重新导入</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                导入描述：
            </td>
            <td class="bqright">
                <asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine" Rows="6" Columns="40"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
            </td>
            <td class="bqright" height="40"><asp:TextBox ID="FilePicPath" runat="server" style="display:none">excel|0</asp:TextBox>
                <asp:Button ID="DianCMS_Submit" runat="server" Text=" 提交并创建字段(Ctrl+s) " CssClass="btn radius30 pad_0_30" 
                    onclick="Button1_Click" /><asp:Button ID="Button3" runat="server" Text=" 提交不创建字段 " CssClass="btn radius30 pad_0_30" 
                    onclick="Button1_Click" style="margin-left:10px;" />
            </td>
        </tr>
        </table>
    </form>
</body>
</html>
