<%@ page language="C#" autoeventwireup="true" inherits="admin_html, aoshuosoft" %>

<!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 rel="stylesheet" href="admin.css" type="text/css" />
</head>
<script language="javascript">
function ac()
{
sctb.style.display="none";
}
</script>
<body>
    <form id="form1" runat="server">
    <div>     
        <asp:Panel ID="make" runat="server" Height="50px" Width="100%" Visible="false">
            <br />
            <br />
            <table class="adminmaintable" id="sctb" border="0" cellpadding="3" cellspacing="1">
                <tr>
                    <td style="text-align: center; height: 35px;" colspan="2" >
                        <asp:Literal ID="acbt" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td style="width: 164px">
                        分类选择：</td>
                    <td >
                        <asp:DropDownList ID="sort" runat="server">
                        </asp:DropDownList>如果选择全部分类，将生成全部新闻分类页面或新闻内容页面。</td>
                </tr>
                <tr>
                    <td style="text-align: center" colspan="2" >
                        <asp:Button ID="makesorthtml" runat="server" Text="生成中文列表" Width="120px" OnClientClick="ac()" OnClick="makesorthtml_Click" />
                        <asp:Button ID="makeftsorthtml" runat="server" Text="生成繁体列表" Width="120px" OnClientClick="ac()" OnClick="makeftsorthtml_Click"  />
                        <asp:Button ID="makesortenhtml" runat="server" Text="生成英文列表" Width="120px" OnClientClick="ac()" OnClick="makesortenhtml_Click"/>
                        <asp:Button ID="makecontenthtml" runat="server" Text="生成中文内容" Width="120px" OnClick="makecontenthtml_Click"  />
                        <asp:Button ID="makeftcontent" runat="server" Text="生成繁体内容" Width="120px" OnClick="makeftcontent_Click"  />
                        <asp:Button ID="makeencontenthtml" runat="server" Text="生成英文内容" Width="120px" OnClick="makeencontenthtml_Click"  />&nbsp;
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Panel ID="config" runat="server" Height="50px" Width="100%" Visible="false">
            <br />
            <br />
            <table border="0" class="adminmaintable" cellpadding="3" cellspacing="1">
                <tr>
                    <td colspan="2" style="height: 35px; text-align: center">
                        <strong>静态生成参数配置</strong></td>
                </tr>
                <tr>
                    <td style="width: 142px; height: 15px">
                        静态生成：</td>
                    <td style="height: 15px">
                        <asp:DropDownList ID="yesno" runat="server">
                            <asp:ListItem Value="yes">开启</asp:ListItem>
                            <asp:ListItem Value="no">关闭</asp:ListItem>
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td style="height: 15px; width: 142px;">
                        静态页面扩展名：</td>
                    <td style="height: 15px">
                        <asp:DropDownList ID="kzm" runat="server">
                            <asp:ListItem>.asp</asp:ListItem>
                            <asp:ListItem Value=".aspx">.aspx</asp:ListItem>
                            <asp:ListItem>.htm</asp:ListItem>
                            <asp:ListItem>.html</asp:ListItem>
                            <asp:ListItem>.shtm</asp:ListItem>
                            <asp:ListItem>.shtml</asp:ListItem>
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td style="height: 15px; width: 142px;">
                        简体页面生成目录：</td>
                    <td style="height: 15px">
                        <asp:TextBox ID="cndirectory" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 142px; height: 15px">
                        繁体页面生成目录：</td>
                    <td style="height: 15px">
                        <asp:TextBox ID="ft" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="height: 15px; width: 142px;">
                        英文页面生成目录：</td>
                    <td style="height: 15px">
                        <asp:TextBox ID="endirectory" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="height: 10px; text-align: center;" colspan="2">
                        <asp:Button ID="save" runat="server" Text="保存配置" Width="120px" OnClick="save_Click" /></td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Panel ID="share" Visible="false" runat="server" Height="50px" Width="100%">         
            <br />
            <br />
            <table width="100%" class="adminmaintable" border="0" cellpadding="3" cellspacing="1">
                <tr>
                    <td style="text-align: center; height: 24px;" >
                        <asp:Button ID="cnshare" runat="server" Text="生成简体单页" Width="120px" OnClick="cnshare_Click" />
                        <asp:Button ID="ftshare" runat="server" Text="生成繁体单页" Width="120px" OnClick="ftshare_Click"  />
                        <asp:Button ID="enshare" runat="server" Text="生成英文单页" Width="120px" OnClick="enshare_Click" /></td>
                </tr>
            </table>
        </asp:Panel>    
        <asp:Panel ID="scdefault" runat="server" Visible="false" Height="50px" Width="100%">
            <br />
            <br />
            <table width="100%" class="adminmaintable" border="0" cellpadding="3" cellspacing="1">
                <tr>
                    <td style="text-align: center; height: 24px;" >
                        <asp:Button ID="cndefault" runat="server" Text="生成简体首页" Width="120px" OnClick="cndefault_Click" />
                        <asp:Button ID="ftdefault" runat="server" Text="生成繁体首页" Width="120px" OnClick="ftdefault_Click" />
                        <asp:Button ID="endefault" runat="server" Text="生成英文首页" Width="120px" OnClick="endefault_Click" /></td>
                </tr>
            </table>
        </asp:Panel>
    </div>
    </form>
</body>
</html>
