<%@ Page Language="C#" MasterPageFile="~/index.Master" AutoEventWireup="true" CodeBehind="ShowLove.aspx.cs" Inherits="LoveWeb.ShowLove" %>

<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<asp:Content ID="content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">


    <title>爱心展示</title>


    <div class="page_love">
    
    <asp:DataList ID="DataList1" runat="server" Width="467px">
        <ItemTemplate>
            <table width="394" border="0" align="left" 
                style="float: left; border: 1px solid #FFFF99; margin-left: 20px;">
  <tr>
    <td colspan="2">标题:<%# Eval("goodsname")%></td>
  </tr>
  <tr>
    <td width="126" height="26">作者:<%# Eval("author")%></td>
    <td width="252" align="right">时间:<%# Eval("goodstime")%>
    </td>
  </tr>
  <tr>
    <td width="126" height="26" colspan="2" style="width: 378px">
        <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("goodsImage") %>' />
      </td>
        <caption>
            <br />
            <tr>
                <td colspan="2">
                    介绍:<%# GetPartString(Eval("introduce").ToString(),50)%></td>
            </tr>
            <tr>
                <td align="right" colspan="2">
                    <a href='ShowLoveView.aspx?id=<%# Eval("goodsid") %>'>查看全文</a></td>
            </tr>
      </caption>
  </tr>
</table>
        </ItemTemplate>
    </asp:DataList>
    
    </div>
    <p>&nbsp;</p>
    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" 
        FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" 
        CssClass="paginator" CurrentPageButtonClass="cpb" 
        onpagechanged="AspNetPager1_PageChanged" PageSize="5">
    </webdiyer:AspNetPager>
    </asp:Content>
<asp:Content ID="Content2" runat="server" contentplaceholderid="head">

 <script src="js/jquery.js" type="text/javascript"></script>
    <style type="text/css">
        .page_love
        {
            float: left;
        }
    </style>

</asp:Content>
