<%@ Page language="c#" Codebehind="Main.aspx.cs" AutoEventWireup="false" Inherits="wqeshop.Admin.Main" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>Main</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<LINK href="inc/style.css" type="text/css" rel="stylesheet">
<style type="text/css">
body {
	margin:0px;
	height:768px;
	color:#174A9D;
}
a:link {  color: #174A9D;text-decoration:none}
a:visited {  color: #174A9D;text-decoration:none}
a:hover {  color: #FF0000;}
</style>
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
  <table width="98%" 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; 管理首页</span></td>
              <td class="tm2"><span class="tt">
                <asp:ImageButton id="imbRss" runat="server" ImageUrl="../images/creatrss.jpg"></asp:ImageButton>
                </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">&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="97%"  cellspacing="0" cellpadding="0">
                        <tr>
                          <td class="ml1"></td>
                          <td class="mm1"><table width="100%" border="0" cellspacing="7" cellpadding="0">
                              <tr>
                                <td colspan="3" class="b1"><table>
                                    <tr>
                                      <td width="3%"><img src="images/icons_settings.gif"></td>
                                      <td><a href="Review.aspx?type=product">商品评论<font color="#FF6600"><%=GetCount(1)%></font></a></td>
                                      <td width="3%"><img src="images/icons_settings.gif"></td>
                                      <td><a href="OrderReview.aspx">订单留言<font color="#FF6600"><%=GetCount(2)%></font></a></td>
                                      <td width="3%"><img src="images/icons_settings.gif"></td>
                                      <td><a href="Review.aspx?type=guest">留言版<font color="#FF6600"><%=GetCount(3)%></font></a></td>
                                    </tr>
                                  </table></td>
                              </tr>
                              <tr>
                                <td height="19"><img src="images/icons_orders.gif"><b><a href="OrderList.aspx">新进订单</a></b></td>
                                <td><img src="images/icons_customers.gif"><b><a href="Member.aspx">最新会员</a></b></td>
                                <td style="display:none"><img src="images/icons_links.gif"><b><a href="Link.aspx?type=nopass">新申请友情链接</a></b></td>
                              </tr>
                              <tr valign="top">
                                <td width="50%"><%BindOrder(10);%>
                                  <asp:datagrid id="dgOrderList" runat="server" AllowPaging="False" AutoGenerateColumns="False"
										DataKeyField="OrderID" Width="100%" HorizontalAlign="Center" BorderWidth="1" BorderColor="#76A8E3"
										ItemStyle-BackColor="#F8FBFF">
                                    <HeaderStyle BackColor="#E4E3E1"></HeaderStyle>
                                    <Columns>
                                    <asp:TemplateColumn HeaderText="单号">
                                      <HeaderStyle HorizontalAlign="Center" BackColor="#DBE8FB" Height="30"></HeaderStyle>
                                      <ItemStyle HorizontalAlign="Center" Height="30"></ItemStyle>
                                      <ItemTemplate> <a href='OrderModify.aspx?OrderID=<%# DataBinder.Eval(Container.DataItem, "OrderID") %>'> <%# DataBinder.Eval(Container.DataItem, "OrderID") %> </a> </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="所属会员">
                                      <HeaderStyle HorizontalAlign="Center"  BackColor="#DBE8FB"></HeaderStyle>
                                      <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                      <ItemTemplate> <a href='OrderModify.aspx?OrderID=<%# DataBinder.Eval(Container.DataItem, "OrderID") %>'> <%# GetMemberName(DataBinder.Eval(Container.DataItem, "MemberID").ToString()) %> </a> </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:BoundColumn HeaderText="下订时间" DataField="OrderTime" DataFormatString="{0:yyyy-MM-dd HH:mm}">
                                      <HeaderStyle HorizontalAlign="Center"  BackColor="#DBE8FB"></HeaderStyle>
                                      <ItemStyle HorizontalAlign="Center" />
                                    </asp:BoundColumn>
                                    </Columns>
                                  </asp:datagrid>
                                </td>
                                <td width="50%"><asp:datagrid id="dgMember" runat="server" AllowPaging="False" AutoGenerateColumns="False" DataKeyField="MemberID"
										Width="100%" HorizontalAlign="Center" BorderWidth="1" BorderColor="#76A8E3" ItemStyle-BackColor="#F8FBFF">
                                    <ItemStyle BackColor="#F8FBFF"></ItemStyle>
                                    <HeaderStyle BackColor="#E4E3E1"></HeaderStyle>
                                    <Columns>
                                    <asp:TemplateColumn HeaderText="会员帐户">
                                      <HeaderStyle HorizontalAlign="Center" BackColor="#DBE8FB" Height="30"></HeaderStyle>
                                      <ItemStyle HorizontalAlign="Center" Height="30"></ItemStyle>
                                      <ItemTemplate> <a href='MemberAdd.aspx?MemberID=<%# DataBinder.Eval(Container.DataItem, "MemberID") %>'> <%# DataBinder.Eval(Container.DataItem, "Name") %> </a> </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="真实名字">
                                      <HeaderStyle HorizontalAlign="Center"  BackColor="#DBE8FB"></HeaderStyle>
                                      <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                      <ItemTemplate> <a href='MemberAdd.aspx?MemberID=<%# DataBinder.Eval(Container.DataItem, "MemberID") %>'> <%# DataBinder.Eval(Container.DataItem, "Realname") %> </a> </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:BoundColumn DataField="AddDate" HeaderText="注册时间" DataFormatString="{0:yyyy-MM-dd}">
                                      <HeaderStyle HorizontalAlign="Center"  BackColor="#DBE8FB"></HeaderStyle>
                                      <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                    </asp:BoundColumn>
                                    </Columns>
                                  </asp:datagrid>
                                </td>
                                <td style="display:none"><asp:DataGrid ID="dgLink" runat="server" AllowPaging="False" AutoGenerateColumns="False" DataKeyField="LinkID"
										Width="100%" HorizontalAlign="Center" BorderWidth="1" BorderColor="#CCCCCC" ItemStyle-BackColor="#F8FBFF">
                                    <itemstyle BackColor="#F8FBFF"></itemstyle>
                                    <headerstyle BackColor="#E4E3E1"></headerstyle>
                                    <columns>
                                    <asp:TemplateColumn HeaderText="网站名称">
                                      <headerstyle HorizontalAlign="Center"  BackColor="#C3DBFD"></headerstyle>
                                      <itemstyle HorizontalAlign="Center"></itemstyle>
                                      <itemtemplate> <a href='<%#DataBinder.Eval(Container.DataItem,"Url")%>' target=_blank> <%#DataBinder.Eval(Container.DataItem,"Name")%> </a> </itemtemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="简介">
                                      <headerstyle HorizontalAlign="Center"  BackColor="#C3DBFD"></headerstyle>
                                      <itemstyle HorizontalAlign="Center"></itemstyle>
                                      <itemtemplate> <%#DataBinder.Eval(Container.DataItem,"Remark")%> </itemtemplate>
                                    </asp:TemplateColumn>
                                    <asp:BoundColumn DataField="AddTime" HeaderText="申请时间" DataFormatString="{0:yyyy-MM-dd}">
                                      <headerstyle HorizontalAlign="Center" BackColor="#C3DBFD"></headerstyle>
                                      <itemstyle HorizontalAlign="Center"></itemstyle>
                                    </asp:BoundColumn>
                                    </columns>
                                  </asp:DataGrid>
                                </td>
                              </tr>
                              <tr>
                                <td colspan=3 valign=top style="display:none">
                                 <table width="100%" cellspacing="0" cellpadding="0">
                                    <TBODY>
                                      <tr>
                                        <td class="b1" width="100%" cellspacing="0" cellpadding="0">
                                         <table>
                                            <tr>
                                              <td><br>
                                                <b>开店步骤：</b></td>
                                            </tr>
                                            <tr>
                                              <td><br>
                                                1 <a href="MemberPassModify.aspx?MemberName=admin" class="step" title="点击进入">修改管理员密码</a> - 不要忘了修改默认的管理员密码哦。</td>
                                            </tr>
                                            <tr>
                                              <td><br>
                                                2 <a href="SystemConfig.aspx" class="step" title="点击进入">系统设置</a> － 包括网店店名，LOGO设置，邮件设置，推荐商品显示条数，缺货处理等网店的基本设置都在这里。</td>
                                            </tr>
                                            <tr>
                                              <td><br>
                                                3 <a href="CategoryAdd.aspx" class="step" title="点击进入">添加商品类别</a>、<a href="Category.aspx" class="step" title="点击进入">管理商品类别</a>、<a href="ProductAdd.aspx" class="step" title="点击进入">添加商品</a>、<a href="Product.aspx" class="step" title="点击进入">管理商品</a>。( 注意：不要删除现有产品类别，只可修改类别名称。)</td>
                                            </tr>
                                            <tr>
                                              <td><br>
                                                4 物流管理 － 包括<a href="ProductAdd.aspx" class="step" title="点击进入">支付方式添加</a>、<a href="ProductAdd.aspx" class="step" title="点击进入">配送方式添加</a>、<a href="ProductAdd.aspx" class="step" title="点击进入">配送地址添加</a>等。<br>
                                                &nbsp;</td>
                                            </tr>
                                          </table></td>
                                        <td></td>
                                      </tr>
                                    </tbody>
                                  </table></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>
