<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_SiteMap.aspx.cs" Inherits="MyITJob.Admin.Admin_SiteMap" %>

<!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 id="Head1" runat="server">
    <title>SietMap 蜘蛛爬行设置</title>
    <link href="../images/Admin_Style.css" rel="stylesheet" type="text/css" />
</head>

<script language="javascript" type="text/javascript">
function textnum(){
    var text = document.getElementById("TextBox1");
	if(isNaN(text.value) || text.value < 1 || text.value > 20000){
		alert('生成的页面数量非法。请输入最小1，最大20000的值。');
		text.value = 100;
		text.focus();
		return false;
	}
}
</script>

<body style="font-family:Verdana;">
    <form id="form1" runat="server">
        <table width="100%" border='0' align='center' cellpadding='2' cellspacing='1' class='border'>
            <tr class='topbg'>
                <td height='22' colspan='10'>
                    <table width='100%'>
                        <tr class='topbg'>
                            <td align='center'>
                                <b>网 站 SiteMap 管 理</b></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr class='tdbg'>
                <td width='70' height='30'>
                    <strong>管理导航：</strong></td>
                <td>
                    <ul>
                        <li><a href="#">生成SiteMap地图</a></li>
                    </ul>
                </td>
            </tr>
        </table>
        <br />
        <div id="div_1">
            <table width="100%" border='0' align='center' cellpadding='4' cellspacing='1' class='border'>
                <tr class='topbg2'>
                    <td colspan="2" align='center'>
                        <strong class="Glow">SietMap 蜘蛛爬行工具设置</strong></td>
                </tr>
                <tr class='tdbg'>
                    <td class="tdbg2">
                        <strong>更新页面数量：</strong></td>
                    <td width="76%">
                        <input id="TextBox1" type="text" value="100" runat="server" onblur="textnum();" />
                        </td>
                </tr>
                <tr class='tdbg'>
                    <td class="tdbg2">
                        <strong>网站更新频率：</strong></td>
                    <td>
                        <asp:DropDownList ID="DropDownList1" runat="server">
                            <asp:ListItem>always</asp:ListItem>
                            <asp:ListItem>hourly</asp:ListItem>
                            <asp:ListItem Selected="True">daily</asp:ListItem>
                            <asp:ListItem>weekly</asp:ListItem>
                            <asp:ListItem>monthly</asp:ListItem>
                            <asp:ListItem>yearly</asp:ListItem>
                            <asp:ListItem>never</asp:ListItem>
                        </asp:DropDownList></td>
                </tr>
                <tr class='tdbg'>
                    <td class="tdbg2">
                        </td>
                    <td>
                        <asp:Button ID="siteMap_All" runat="server" Text="生成整站SiteMap" OnClick="siteMap_All_Click" /></td>
                </tr>
            </table>
        </div>
        <span class="style4">备注：</span>生成整站SiteMap时，无视设置的数量。只会生成20000条
    </form>
</body>
</html>