<%@ Page language="c#" Codebehind="CreateStaticPage.aspx.cs" AutoEventWireup="false" Inherits="wqeshop.Admin.CreateStaticPage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>CreateStaticPage</title>
<LINK href="inc/style.css" type="text/css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="progressbar/progressbar.css"/>
<script language="javascript" src="progressbar/progressbar.js"></script>
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
  <table width="100%" height="550" style="border:1px #619ADF solid; border-left:0;margin-top:6px; margin-right:7px;background:#F2F7FD;" cellspacing="0" cellpadding="0">
    <tr>
      <td valign="top"><div class="top">
          <table width="100%" align="center" cellspacing="0" cellpadding="0">
            <tr>
              <td class="tl"></td>
              <td class="tm"><span class="tt">系统设置 &gt;&gt; 生成静态页面
                <asp:Label id="lblAction" runat="server" CssClass="tableHeaderText"></asp:Label>
                </span></td>
              <td class="tm2"><span class="tt"><a href="http://www.wangqi.com" target="_blank"><img src="Images/admin_help.gif" border="0" alt="帮助"></a></span></td>
              <td class="tr"></td>
            </tr>
          </table>
        </div>
        <div class="mframe">
          <table width="100%" align="center" cellspacing="0" cellpadding="0">
            <tr>
              <td class="tl"></td>
              <td class="tm"><div class="tt" style="font-size:12px;">&nbsp; 生成静态页面</div></td>
              <td class="tr"></td>
            </tr>
          </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td class="ml"></td>
              <td  class="mm" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td bgcolor="#EBF3FE" valign="top" style=" border-right:1px #77ABE5 solid;"><table width="90%"  cellspacing="0" cellpadding="0">
                        <tr>
                          <td class="ml1"></td>
                          <td class="mm1"><table class="tableBorder" cellSpacing="1" cellPadding="1" width="640" align="center" border="0">
                              <tr>
                                <td width="50%" style="line-height:13pt; padding-left:36px; padding-right:6px; vertical-align:top; padding-top:20px; height:350px"><asp:Button id="btnCreateHomes" runat="server" Text="生成所有栏目静态首页" width="250px" height="25px" Font-Size="10pt"></asp:Button>
                                  <br/>
                                  <br style="line-height:10px"/>
                                  <asp:Button id="btnCreateCategory" runat="server" Text="生成商品类别静态页面" width="250px" height="25px" Font-Size="10pt"></asp:Button>
                                  <br/>
                                  <br style="line-height:10px"/>
                                  <asp:Button id="btnCreateNews" runat="server" Text="生成新闻类别静态页面" width="250px" height="25px" Font-Size="10pt"></asp:Button>
                                  <br/>
                                  <br style="line-height:10px"/>
                                  <asp:Button id="btnCreateNewsDetails" runat="server" Text="生成新闻静态页面" width="250px" height="25px" Font-Size="10pt"></asp:Button>
                                  <br/>
                                  <br style="line-height:10px"/>
                                  <asp:Button id="btnCreateHelpDetails" runat="server" Text="生成帮助静态页面" width="250px" height="25px" Font-Size="10pt"></asp:Button>
                                  <br/>
                                  <br style="line-height:10px"/>
                                  <asp:Button id="btnBulletinDetails" runat="server" Text="生成公告静态页面" width="250px" height="25px" Font-Size="10pt"></asp:Button>
                                  <br/>
                                  <br style="line-height:10px"/>
                                  <div id="DIY" style="border:1px dashed blue 1px; width:70%">
                                    <table>
                                      <tr>
                                        <td height="10px"></td>
                                      </tr>
                                      <tr>
                                        <td>共有
                                          <asp:Label ID="lbltotal" runat="server" Visible="True" ForeColor="Red">0</asp:Label>
                                          件商品</td>
                                      </tr>
                                      <tr>
                                        <td style="line-height:13pt">从第&nbsp;
                                          <asp:TextBox ID="txt_1" BorderStyle="Solid" Width="40px" style="text-align:center" onkeyup='this.value=this.value.replace(/\D/gi,"")' runat="server"></asp:TextBox>
                                          件商品到第&nbsp;
                                          <asp:TextBox ID="txt_2" BorderStyle="Solid" Width="40px" style="text-align:center" onkeyup='this.value=this.value.replace(/\D/gi,"")' runat="server"></asp:TextBox>
                                          &nbsp;件商品<br/>
                                          每次生成的页面不能超过<font color=red style="font-size: 9pt;">1000</font>个</td>
                                      </tr>
                                      <tr>
                                        <td><asp:Button id="btnCreateProductDetails" runat="server" Text="生成商品静态页面" width="250px" height="25px" Font-Size="10pt"></asp:Button>
                                          <br/>
                                        </td>
                                      </tr>
                                    </table>
                                  </div>
                                  <asp:Button id="btnCreateAll" runat="server" Text="整站静态化" width="250px" height="25px" Font-Size="10pt"></asp:Button>
                                  <br/>
                                  <br style="line-height:10px"/>
                                  <asp:Label ID="lblMessage" Visible="False" ForeColor="Red" runat="server"></asp:Label>
                                </td>
                                <td style="line-height:13pt; padding-left:6px; padding-right:16px; vertical-align:top; padding-top:20px"><span style="padding-left:80px; color:Red; font-size:14px;">生成HTML静态的说明</span><br/>
                                  生成静态页面可以使网页浏览的速度加快，也更加容易被搜索引擎搜索到。<br/>
                                  <span style="font-size:9pt; color:Purple">生成静态页面时必须先在系统管理里的系统设置里面将【是否使用静态页面】设置为【是】并保存后再静态化页面。</span><br />
                                  当添加了商品，或者改变了商品的类别，那很多前台的页面数据都改变了，就需要去初始化相应的栏目业务。例如，我们添加的一个热卖商品，那么在热卖商品的栏目里就应该显示我们刚才添加的商品，就需要点击【生成所有栏目首页】、【生成商品详细页面】和【生成商品类别页面】等按钮重新生成静态页面。<br/>
                                  又如，我们将一个最新商品改为热卖商品，我们也需要对所有栏目的首页、商品详细页面和商品类别页面等重新生成静态页面。<br/>
                                  当对新闻进行更新后，需要点击【生成新闻详细页面】来生成新闻详细页面的静态页面。当添加或更新帮助后，也需要要点击【生成商品类别页面】按钮生成相应的静态页面。<br/>
                                  在生成静态页面时会需要几分钟的时间，请耐心等待。<br />
                                  <br />
                                  <br /></td>
                              </tr>
                            </table></td>
                          <td class="mr1"></td>
                        </tr>
                      </table></td>
                  </tr>
                </table>
                <table width="100%" align="center" cellspacing="0" cellpadding="0">
                  <tr>
                    <td class="bl"></td>
                    <td class="bm">&nbsp;</td>
                    <td class="br"></td>
                  </tr>
                </table></td>
              <td  class="mr"></td>
            </tr>
          </table>
          <table width="100%" align="center" cellspacing="0" cellpadding="0">
            <tr>
              <td class="bl"></td>
              <td class="bm">&nbsp;</td>
              <td class="br"></td>
            </tr>
          </table>
        </div></td>
    </tr>
  </table>
</form>
</body>
</HTML>
