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

<!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 id="Head1" runat="server">
    <title>无标题页</title>
   <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
  <meta name="author" content="fullahead.org - studio7designs.com" />
  <meta name="description" content="4U blog" />
  <meta name="keywords" content="blog system" />
  <meta name="robots" content="index, follow, noarchive" />
  <meta name="googlebot" content="noarchive" />

  <link rel="stylesheet" type="text/css" href="css/layout.css" media="screen, projection, tv " />
  <link rel="stylesheet" type="text/css" href="css/html.css" media="screen, projection, tv " />

  
  <style type="text/css">
<!--
.style2 {color: #627E9A}
.style3 {color: #62CC3C}
.style6 {color: #5C8096}
-->
  </style>
<script language="javascript" type="text/javascript">
// <!CDATA[

function boarderhead_onclick() {

}



// ]]>
</script> 
</head>
<body>
    <form id="form1" runat="server">
    <!-- #content: holds all except site footer - causes footer to stick to bottom -->
<div id="content" style="left: 0px; top: 0px">

  <!-- #header: holds the logo and top links -->   
  <div id="header" class="width" style="left: 1px; top: 0px; width: 900px;">
  
  
    <ul>      
      <li></li>        
      <li><asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="~/Index.aspx">首页</asp:LinkButton></li> 
      <li><asp:LinkButton ID="LinkButton2" runat="server" PostBackUrl="~/login.aspx">登陆</asp:LinkButton></li> 
      <li><asp:LinkButton ID="LinkButton3" runat="server" PostBackUrl="~/CreatUser.aspx">注册</asp:LinkButton></li> 
      <li class="last"><asp:LinkButton ID="LinkButton4" runat="server" PostBackUrl="~/Help.aspx" >帮助</asp:LinkButton></li> 
    </ul>
      <div style="z-index: 101; left: 487px; width: 263px; position: absolute; top: 36px;
          height: 23px">
          <asp:Label ID="Label1" runat="server" Text="欢迎您：" ForeColor="#CCCCCC"></asp:Label>
          <asp:LoginName ID="LoginName1" runat="server" ForeColor="#CCCCCC" />
          &nbsp;&nbsp; &nbsp;<asp:Button ID="Button1" runat="server" OnClick="Button1_Click"
              Text="进入管理中心" /></div>

  </div>
  <!-- #header end -->


  <!-- #headerImg: holds the main header image or flash -->
  <div id="headerImg" class="width" style="width: 900px"></div>




  



  <!-- #page: holds the page content -->
  <div id="page" class="widthPad">



    <!-- #columns: holds the columns of the page -->
    <div id="columns" class="widthPad">
    
    <!-- Left thumbnail column -->
    <div class="floatLeft width8">

      <h2>
          &nbsp;</h2>
   
		 <p> <a href="Index.aspx" class="thumb"><img src="images/buttonHome.gif" alt="thumbnail"/></a>&nbsp;</p>
        <p>
            &nbsp;&nbsp;
        </p>

    </div>
    <!-- Left thumbnails end -->



    <!-- Center news column -->
    <div class="floatLeft width62 board">
   <div id="boarderhead" class="width100" onclick="return boarderhead_onclick()">
  
  </div>
  <div id="boardermid" class="width100 height800">
      <h1><img src="images/bloglistpic.gif" alt="日志列表" /></h1>

<!--Datalist Test-->
<div class="post">
    <asp:DataList ID="DataList1" runat="server" DataKeyField="log_id" DataSourceID="SqlDataSource1">
        
        <ItemTemplate>
        <div class="post"> 

        <p style="width:500px">
          <span class="title"><a href="LogDetail.aspx?log_id=<%# Eval("log_id") %>&bb=<%# Eval("bloger_name") %>"><%# Eval("log_title") %></a></span>
          <h4><%# Eval("pub_date") %>&nbsp<%# Eval("click_count") %></h4>
          
          <%# Eval("contents") %>
	    </p>
	    <p class="alignRight">
	      <a href="LogDetail.aspx?log_id=<%# Eval("log_id") %>&bb=<%# Eval("bloger_name") %>">Read More</a>
	    </p> 
	    <br />            
           </div> 
        </ItemTemplate>
    </asp:DataList></div>
<!--End Test-->
      <!-- Start Post -->
      <!-- End Post -->
      <!-- Start Post -->
      <!-- End Post -->
      <!-- Start Post -->
     <!-- End Post -->
      
     <div>
     <h4 style="text-align: right">
     <a></a>
     </h4>
     
     </div> 
      
</div>
    </div>
    <!-- Center news column end -->
	
    <!-- Right link column -->
    <div class="floatRight width25 blueBg horzPad alignLeft" id="DIV1" onclick="return DIV1_onclick()" style="left: -9px; position: relative; top: 3px">

      <h2 style="border: none" class="light"><img src="images/dkbluebutton.gif" alt="`" /><span class="light">个人资料</span></h2>

        <h3>
            <asp:DataList ID="DataList3" runat="server" DataKeyField="bloger_name" DataSourceID="SqlDataSource2">
                <ItemTemplate>
                    地盘：<%# Eval("bloger_title") %><br />
                    宣言：<%# Eval("description") %><br />
                    人气：<%# Eval("click_count") %><br />
                    生辰：<%# Eval("pub_date") %>
                </ItemTemplate>
            </asp:DataList>&nbsp;</h3>

      



      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

      <h2 style="border: none"><img src="images/dkbluebutton.gif" alt="`" /><span class="light">友情连接</span></h2>

      <ul class="submenu2">
            <asp:DataList ID="DataList2" runat="server" DataKeyField="link_id" DataSourceID="SqlDataSource3">
                <ItemTemplate>
                    <li>
                    <a href="http://<%# Eval("link_url") %>"><%# Eval("link_name") %></a>
                    </li>
                </ItemTemplate>
            </asp:DataList>
	  </ul>

    </div>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:DesertEagleConnectionString %>" SelectCommand="SELECT [click_count], [pub_date], [description], [bloger_title], [bloger_name] FROM [DE_bloger] WHERE ([bloger_name] = @bloger_name)" OnSelecting="SqlDataSource2_Selecting">
            <SelectParameters>
                <asp:Parameter Name="bloger_name" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
    <!-- Right links column end -->
        <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:DesertEagleConnectionString %>"
            OnSelecting="SqlDataSource3_Selecting" SelectCommand="SELECT * FROM [DE_link] WHERE ([bloger_name] = @bloger_name)">
            <SelectParameters>
                <asp:Parameter Name="bloger_name" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>


    </div>
    <!-- #columns end -->
	

  </div>
  <!-- #page end -->

</div>
<!-- #content end -->




<!-- #footer: holds the site footer (logo and links) -->
<div id="footer">

  <!-- #bg: applies the site width and footer background -->
  <div id="bg" class="width">
  
  
    <ul>
      <li><a href="">Sitemap</a></li>
      <li><a href="">Register</a></li>
      <li><a href="">Design inspired by</a></li>
      <li><a href="http://www.studio7designs.com" class="last">studio7designs.com</a></li>
	</ul>

  </div>
  <!-- #bg end -->
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DesertEagleConnectionString %>"
        SelectCommand="SELECT [log_id], [log_title], [contents], [pub_date], [bloger_name], [click_count] FROM [DE_logs] WHERE (([is_hide] = @is_hide) AND ([bloger_name] = @bloger_name))" OnSelecting="SqlDataSource1_Selecting">
        <SelectParameters>
            <asp:Parameter DefaultValue="False" Name="is_hide" Type="Boolean" />
            <asp:Parameter Name="bloger_name" Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>

</div>
<!-- #footer end -->
    </form>
</body>
</html>
