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

<!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="css/common.css" type=text/css rel=stylesheet>
</head>
<body>
    <form id="form1" runat="server">
    <div class="m73" style="width:450px; height:520px; margin-left:10px; overflow-y:auto; overflow-x:hidden;">
      <table width="400" border="0" cellspacing="0" cellpadding="0">
	    <tr>
		  <td>
		    <div align="left" style="padding-left:10px">
                <asp:Label ID="bigtitle" runat="server" Text="日志栏→" Font-Bold="True" Font-Size="Larger" ForeColor="#51300C"></asp:Label>
                <asp:Label ID="lbclass" runat="server" Font-Bold="True" Font-Size="Larger" ForeColor="#51300C"
                    Text="Label"></asp:Label></div>
					<hr style="height:1px; width:400px" align="left"/></td>
		</tr>
        <tr>
          <td height="460" valign="top">
          
          <asp:DataList ID="DataList2" runat="server" DataKeyField="ID">
            <itemtemplate>
              <table width="450" height="25" border="0" cellpadding="0" cellspacing="0" style=" margin-bottom:20px">
                <tr>
                  <td width="241" style="padding-left:10px"><img src="images/arrow_gray.gif" width="4" height="7" border="0"/> [置顶] <a href="dairy_see.aspx?id=<%# Eval("id").ToString() %>" class="daititle"> <%# strcut(Eval("dtitle").ToString(),15)%></a> <%# isnew(short_time(Eval("dtime")))%> </td>
                  <td width="24">&nbsp;</td>
                  <td width="185"><div align="right" class="dairy" style="padding-right:65px">
                    <%# short_time(Eval("dtime"))%>
                  </div></td>
                </tr>
                <tr>
                  <td style="padding-left:10px">&nbsp;</td>
                  <td>&nbsp;</td>
                  <td><div align="right" class="dairy" style="padding-right:65px"><a href="dairy_see.aspx?id=<%# Eval("id").ToString() %>" class="daiother">阅读(<%# DataBinder.Eval(Container.DataItem,"dbit")%>)</a><strong> | </strong> <a href="#" class="daiother">评论(<%# coupl(Convert.ToInt16(Eval("id")))%>)</a></div></td>
                </tr>
              </table>
            </itemtemplate>
           </asp:DataList>
          <asp:DataList ID="DataList1" runat="server" DataKeyField="ID">
            <itemtemplate>
              <table width="450" height="25" border="0" cellpadding="0" cellspacing="0" style=" margin-bottom:20px">
                <tr>
                  <td width="241" style="padding-left:10px"><img src="images/arrow_gray.gif" width="4" height="7" border="0"/> <a href="dairy_see.aspx?id=<%# Eval("id").ToString() %>" class="daititle"><%# strcut(Eval("dtitle").ToString(),15)%></a> <%# isnew(short_time(Eval("dtime")))%> </td>
                  <td width="24">&nbsp;</td>
                  <td width="185"><div align="right" class="dairy" style="padding-right:65px">
                      <%# short_time(Eval("dtime"))%>
                  </div></td>
                </tr>
                <tr>
                  <td style="padding-left:10px">&nbsp;</td>
                  <td>&nbsp;</td>
                  <td class="dairy">
				  <div align="right" class="dairy" style="padding-right:65px">
				  <a href="dairy_see.aspx?id=<%# Eval("id").ToString() %>" class="daiother">阅读(<%# DataBinder.Eval(Container.DataItem,"dbit")%>)</a><strong> | </strong> <a href="#" class="daiother">评论(<%# coupl(Convert.ToInt16(Eval("id")))%>)</a>
				  </div>
				  </td>
                </tr>
              </table>
            </itemtemplate>
          </asp:DataList></td>
        </tr>
        <tr>
          <td><table cellpadding="0" cellspacing="0" class="m73" style="margin-left: 70px">
            <tr>
              <td style="padding-top: 8px"> 当前
                <asp:Label ID="curpage" runat="server" Text="1"></asp:Label>
                /
                <asp:Label ID="allpage" runat="server" Text="Label"></asp:Label>
                页
                <asp:LinkButton ID="first" runat="server" OnClick="first_Click">首页</asp:LinkButton>
                <asp:LinkButton ID="pre" runat="server" OnClick="pre_Click">上一页</asp:LinkButton>
                <asp:LinkButton ID="next" runat="server" OnClick="next_Click">下一页</asp:LinkButton>
                <asp:LinkButton ID="last" runat="server" OnClick="last_Click">尾页</asp:LinkButton>
                &nbsp; 转到: </td>
              <td><asp:DropDownList ID="pagelist" runat="server" AutoPostBack="True" BackColor="White"
                        Font-Size="XX-Small" ForeColor="#736f57" Height="8px" OnSelectedIndexChanged="downchange"> </asp:DropDownList>              </td>
            </tr>
          </table></td>
        </tr>
      </table>
      </div>
    </form>
</body>
</html>
