<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SiteMap.aspx.cs" Inherits="TopWinCMS.WebUI.Admin.ContentRelease.SiteMap" %>

<%@ Register Assembly="TopWinCMS.WebControls" Namespace="TopWinCMS.WebControls" TagPrefix="cc1" %>
<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc1" %>
<!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>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <meta content="no-cache" http-equiv="Pragma" />

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

    <link href="../Style.css" rel="stylesheet" type="text/css" />

    <script language="javascript" src="../../Images/skysoft.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">
    function HideAndDisplay(TabIndex,o)
    {
        document.getElementById("current").id="";
        for(i=0;i<2;i++)
        {
            if( i== TabIndex)
            {
		        o.id="current";
                document.getElementById("Tab"+i).style.display = "block";
            }
            else
            {
                document.getElementById("Tab"+i).style.display = "none";
            }
        }
        return false;
    }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
        <ProgressTemplate>
            <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <div id="tabs">
        <ul>
            <li id="current" onclick="return HideAndDisplay(0,this);"><a href="#"><span>Google</span></a></li>
            <li onclick="return HideAndDisplay(1,this);"><a href="#"><span>百度</span></a></li>
        </ul>
    </div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table style="width: 500px;" cellspacing="8" id="Tab0">
                <tr>
                    <td>
                        &nbsp; &nbsp; &nbsp; <a href="https://www.google.com/webmasters/tools" target="_blank">
                            <img alt="" src="https://www.google.com/webmasters/tools/images/sitemaps-logo.gif" /></a>网站管理员工具
                    </td>
                </tr>
                <tr>
                    <td>
                        更新频率：<asp:DropDownList ID="DDL_changefreq" runat="server">
                            <asp:ListItem Value="always ">频繁的更新</asp:ListItem>
                            <asp:ListItem Value="hourly">每小时更新</asp:ListItem>
                            <asp:ListItem Value="daily" Selected="True">每日更新</asp:ListItem>
                            <asp:ListItem Value="weekly">每周更新</asp:ListItem>
                            <asp:ListItem Value="monthly">每月更新</asp:ListItem>
                            <asp:ListItem Value="yearly">每年更新</asp:ListItem>
                            <asp:ListItem Value="never">从不更新</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        调用前<cc1:NumericTextBox ID="NTB_Top" runat="server">20</cc1:NumericTextBox>
                        条数据(最多50条) ，说明：会调用所有频道</td>
                </tr>
                <tr>
                    <td>
                        地图默认文件名：<asp:TextBox ID="TB_FileName" runat="server">sitemap</asp:TextBox>
                        .xml
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <asp:Button ID="BT_GoogleXML" runat="server" CssClass="btn" Text="生成" 
                            onclick="BT_GoogleXML_Click" />
                    </td>
                </tr>
            </table>
            <table style="width: 500px; display: none" cellspacing="8" id="Tab1">
                <tr>
                    <td>
                        &nbsp; &nbsp; &nbsp; <a href="http://news.baidu.com/newsop.html#kg" target="_blank">
                            <img alt="" src="http://img.baidu.com/img/logo-news.gif" /></a><br />遵照《互联网新闻开放协议》制作的XML格式的网页
                        遵照《互联网新闻开放协议》制作的XML格式的网页
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp; 更新频率：<cc1:NumericTextBox ID="NTB_updatePeri" runat="server">15</cc1:NumericTextBox>分钟&nbsp;
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp; 调用前<cc1:NumericTextBox ID="NTB_Top2" runat="server">20</cc1:NumericTextBox>
                        条数据(最多100条) ，说明：只会调用文章模型的频道</td>
                </tr>
                <tr>
                    <td>
                        地图默认文件名：<asp:TextBox ID="TB_FileName2" runat="server">news</asp:TextBox>
                        .xml
                    </td>
                </tr>
                <tr>
                    <td>
                        <a href="http://news.baidu.com/newsop.html#kg" target="_blank">点击查看百度说明</a>
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <asp:Button ID="BT_BaiduXML" runat="server" CssClass="btn" Text="生成" 
                            onclick="BT_BaiduXML_Click" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
