<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Allproducts.aspx.cs" Inherits="_Default" %>

<%@ Register Src="include/Userlogin.ascx" TagName="Userlogin" TagPrefix="uc4" %>

<%@ Register Src="include/Productlist.ascx" TagName="Productlist" TagPrefix="uc3" %>

<%@ Register Src="bottom.ascx" TagName="bottom" TagPrefix="uc2" %>

<%@ Register Src="Top.ascx" TagName="Top" 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>   
    <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body style="text-align: center" text="#000000" topmargin="0">


    <form id="form1" runat="server">
    <div>
        <table style="width: 991px">
            <tr>
                <td colspan="3" style="height: 136px">
                    <uc1:Top ID="Top1" runat="server" />
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <table width="100%" style="border-right: sandybrown 1px solid; border-top: sandybrown 1px solid; border-left: sandybrown 1px solid; border-bottom-width: 1px; border-bottom-color: sandybrown;">
                        <tr>
                            <td style="width: 211px; border-right: darkorange 1px solid; text-align: left; border-bottom: darkorange 1px solid;" rowspan="6" valign="top">
                                <table style="width: 218px">
                                    <tr>
                                        <td colspan="3" style="background-image: url(pics/login.gif); width: 210px; height: 33px">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3" style="width: 210px; height: 82px; text-align: center;" valign="top" visible="true">
                                            <uc4:Userlogin ID="Userlogin1" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3" style="width: 210px; background-image: url(pics/lie.gif); height: 35px;">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3" style="width: 210px; height: 183px; text-align: left;" valign="top">
                                           <uc3:Productlist ID="Productlist1" runat="server" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td style="width: 6px;" rowspan="6">
                            </td>
                            <td style="border-top-width: 1px; border-left: darkorange 1px solid; border-top-color: darkorange; border-right-width: 1px; border-right-color: darkorange; border-bottom: darkorange 1px solid;" rowspan="6" valign="top">
                                <table width="100%" style="height: 500px">
                                    <tr>
                                        <td colspan="3" style="border-bottom: darkorange thick double; height: 4px; text-align: left">
                                            <img src="pics/product.gif" /></td>
                                    </tr>
                                    <tr>
                                        <td colspan="3" style="height: 350px; text-align: center" valign="top">
                                            <asp:DataList ID="ProductDataList" runat="server" CellPadding="4" CellSpacing="1"
                                                RepeatColumns="5" RepeatDirection="Horizontal" ShowFooter="False" ShowHeader="False" Height="134px">
                                                <ItemTemplate>
                                                    <table cellpadding="4" cellspacing="4" style="border-left-color: #cccc66; border-bottom-color: #cccc66;
                                                        border-top-color: #cccc66; border-right-color: #cccc66" width="100%">
                                                        <tr>
                                                            <td style="background-color: #ccffff" valign="top">
                                                                <a href='showproduct.aspx?ShowID=<%#DataBinder.Eval(Container.DataItem,"ProductID") %>'
                                                                    target="_blank">
                                                                    <img src='<%#Myimg((string)DataBinder.Eval(Container.DataItem,"Imgurl")) %>'alt='<%#DataBinder.Eval(Container.DataItem,"Title") %>' border="0" height="85" width="120" /></a></td>
                                                        </tr>
                                                        <tr>
                                                            <td style="height: 17px">
                                                                <asp:Label ID="lblTitle" runat="server" Text='<%#Mytitle((string)DataBinder.Eval(Container.DataItem,"Title")) %>'></asp:Label></td>
                                                        </tr>
                                                    </table>
                                                </ItemTemplate>
                                                <SeparatorStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                    Font-Underline="False" ForeColor="Aqua" />
                                            </asp:DataList></td>
                                    </tr>
                                    <tr>
                                        <td colspan="3" style="height: 7px; text-align: center; border-top: darkgray 1px dotted;">
                                            <asp:LinkButton ID="FirstPage" runat="server" OnClick="FirstPage_Click">首 页</asp:LinkButton>&nbsp;&nbsp;
                                            <asp:LinkButton ID="PrePage" runat="server" OnClick="PrePage_Click">上一页</asp:LinkButton>&nbsp;&nbsp;
                                            <asp:LinkButton ID="NextPage" runat="server" OnClick="NextPage_Click">下一页</asp:LinkButton>&nbsp;&nbsp;
                                            <asp:LinkButton ID="LastPage" runat="server" OnClick="LastPage_Click">尾 页</asp:LinkButton>
                                            &nbsp; &nbsp;&nbsp; 第<asp:Label ID="lblCurrent" runat="server" Font-Bold="True"></asp:Label><strong>
                                                / </strong>
                                            <asp:Label ID="lblTotal"
                                                runat="server" Font-Bold="True"></asp:Label>页&nbsp; 转到<asp:DropDownList ID="drpPage" runat="server"
                                                    Width="40px" AutoPostBack="True" Height="20px" OnSelectedIndexChanged="drpPage_SelectedIndexChanged">
                                                </asp:DropDownList>页</td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                        </tr>
                        <tr>
                        </tr>
                        <tr>
                        </tr>
                        <tr>
                        </tr>
                        <tr>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="height: 21px" colspan="3">
                    <uc2:bottom ID="Bottom1" runat="server" />
                    
                </td>
            </tr>
        </table>
       </div>
    </form>
    

</body>
</html>
