<%@ page language="C#" autoeventwireup="true" inherits="admin_sitemap_SetSitemap, 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>
    <script type="text/javascript" src="../../js/Dragdrop.js"></script>

</head>
<body onmousemove="dragmove();" onmouseup="dragclear()">
    <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> >> <a href="SitemapList.aspx">Sitemap列表</a>
                >> 设置Sitemap
            </td>
        </tr>
    </table>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table class="border" cellspacing="1" cellpadding="0" width="99%" border="0" align="center">
                <tr>
                    <td class="bqleft">
                        名称：
                    </td>
                    <td class="bqright">
                        <asp:TextBox ID="txtName" runat="server" CssClass="in1"></asp:TextBox><font color="red">*</font>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        指定模型：
                    </td>
                    <td class="bqright">
                        <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" 
                            onselectedindexchanged="DropDownList1_SelectedIndexChanged">
                            <asp:ListItem Value="0">请选择</asp:ListItem>
                        </asp:DropDownList><font color="red">*</font>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        显示条数：
                    </td>
                    <td class="bqright">
                        <asp:TextBox ID="txtInfoNum" runat="server" CssClass="in1">1000</asp:TextBox>
                        条<font color="red">*</font></td>
                </tr>
                <tr>
                    <td class="bqleft">
                        模型字段：
                    </td>
                    <td class="bqright">
                        <asp:DataList ID="DataList1" runat="server" RepeatColumns="6" RepeatDirection="Horizontal"
                    Width="100%">
                    <ItemStyle Width="13%" />
                    <ItemTemplate>
                        <div id='{D_F_<%# Eval("Name") %>}' onmousedown='DragStart()' onclick='SetValue("txtXML")'
                            style='cursor: hand; border: solid 1px #9c9c9c; text-align: center; width: 100%;
                            height: 20; padding-top: 3px' title="点击选择该字段到录入界面">
                            <%# Eval("Alias")%>
                        </div>
                    </ItemTemplate>
                </asp:DataList>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        类型：
                    </td>
                    <td class="bqright">
                        <asp:RadioButtonList ID="RadType" runat="server" 
                            RepeatDirection="Horizontal" AutoPostBack="True" 
                            onselectedindexchanged="RadType_SelectedIndexChanged">
                            <asp:ListItem Selected="True">google</asp:ListItem>
                            <asp:ListItem>baidu</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        备用代码：
                    </td>
                    <td class="bqright" style="line-height:150%">
                        <asp:Literal ID="LitCode" runat="server"></asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        XML Sitemaps：
                    </td>
                    <td class="bqright">
                        <asp:Literal ID="LitxmlStart" runat="server"></asp:Literal><br />
                        <asp:TextBox ID="txtXML" runat="server" TextMode="MultiLine" Style="width: 99%; height: 150px;margin-left: 10px"></asp:TextBox>
                        <br />
                        <asp:Literal ID="LitxmlEnd" runat="server"></asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        文件名称：
                    </td>
                    <td class="bqright">
                        <asp:TextBox ID="txtFileName" runat="server" CssClass="in1">Sitemap</asp:TextBox>.xml<font color="red">*</font>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        保存路径：
                    </td>
                    <td class="bqright">
                        /<asp:TextBox ID="txtPath" runat="server" CssClass="in1"></asp:TextBox> <font color="red">*</font>绝对根路径,不带虚拟目录
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        备注：
                    </td>
                    <td class="bqright">
                        <asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine" Columns="40" Rows="3"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                    </td>
                    <td class="bqright" height="40">
                        <asp:Button ID="Button1" runat="server" Text=" 提交 " CssClass="btn radius30 pad_0_30" 
                            onclick="Button1_Click" /><asp:Button ID="Button2" runat="server"
                            Text=" 提交并生成 " CssClass="btn radius30 pad_0_30" style="margin-left:20px" 
                            onclick="Button1_Click" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
