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

<!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 " />
    <link rel="stylesheet" type="text/css" href="css/homepage.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> 

    <link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
        rel="stylesheet" type="text/css" />
</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" class="height700">

  <!-- #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="Label2" runat="server" Text="欢迎您：" ForeColor="#CCCCCC"></asp:Label>
          <asp:Label ID="Label3" runat="server" ForeColor="#CCCCCC" Text="游客" Width="34px"></asp:Label>
          &nbsp;&nbsp; &nbsp;<asp:Button ID="Button2" runat="server" OnClick="Button2_Click"
              Text="进入管理中心" /></div>

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


  <!-- #headerImg: holds the main header image or flash -->
  <div id="homepageHeaderImg" class="width">
  
  <div class="floatRight width50" style="height:30px;margin:230px 5px 20px 0; text-align: right;">
      &nbsp;<asp:TextBox ID="TextBox1" runat="server" ValidationGroup="search"></asp:TextBox>
      <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
          ErrorMessage="*" ValidationGroup="search"></asp:RequiredFieldValidator>
      <asp:DropDownList ID="DropDownList1" runat="server" ValidationGroup="search">
          <asp:ListItem Value="0">按博客名</asp:ListItem>
          <asp:ListItem Value="1">按日志名</asp:ListItem>
          <asp:ListItem Value="2">按作者名</asp:ListItem>
      </asp:DropDownList>&nbsp;
      <asp:Button ID="Button1" runat="server" Text="搜索" OnClick="Button1_Click" ValidationGroup="search" /></div>
      &nbsp;</div>




  



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



    <!-- #columns: holds the columns of the page -->
   <div id="leftpart" class="floatLeft">
  <div class="floatLeft" style="height:50px; margin:60px 5px 0 0; width:100px;">
  <ul class="navmenu2">
  <li style="text-align: right">
      <asp:LoginStatus ID="LoginStatus1" runat="server" OnLoggedOut="LoginStatus1_LoggedOut" />
  </li>
  <li style="text-align: right">
      <a href="CreatUser.aspx"><asp:Label ID="Label1" runat="server" Text="注册"></asp:Label></a>
  </li> 
  </ul>
   </div>
  
  <div class="floatRight" style="height: 217px; margin:50px 5px 0 0;"> 
  <ul class="navmenu">
  <li><!--<a href="index.aspx">首页</a>--></li>
  <li><a href="CollegeList.aspx">院系</a></li> 
  <li><a href="HotBlogView.aspx">博客</a></li>
  <li><a href="ResourceCenter.aspx">资源</a></li> 
  </ul>
  </div>
  </div>  
      <div id="rightpart" class="floatLeft">
     <div class="rows floatRight" style="width: 90%; text-align: center;">
     <img style="margin:5px;" src="images/latestnotice.gif" alt="`最新通知" /> 
         <div class="floatRight" style="margin:0 70px 0 0">         
         <asp:DataList ID="DataList5" runat="server" DataSourceID="SqlDataSource1" Width="300px">
             <ItemTemplate>
                 <a href="Notice.aspx?notice_id=<%# Eval("notice_id") %>"><%# Eval("title") %></a>
             </ItemTemplate>
         </asp:DataList>
          <a href="NoticeList.aspx">more...</a>
          </div>
     </div>
     <div class="rows floatRight" style="width:80%;border-bottom:solid 1px">
     <div style="width:10%; height:90%; text-align: center;" class="floatLeft bordertopleft">
     <img src="images/tuijian.gif" alt="`推荐博客" />
     </div>
     <div style="width:300; height:90%" class="floatLeft">
         <asp:DataList ID="DataList2" runat="server" DataSourceID="SqlDataSource2" Width="300px">
         <ItemTemplate>
            <a href="LogView.aspx?bb=<%# Eval("bloger_name") %>"><%# Eval("bloger_title") %></a>
            &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;点击量(<%# Eval("click_count") %>)
         </ItemTemplate>
         </asp:DataList>
         <span class="alignRight"><a href="RecommendedBlogView.aspx">more...</a></span>
         </div>
        <div class="floatLeft" style="width:122px;height:100%;border-left:dotted 1px;"></div> 
     </div>
     <div class="rows floatRight" style="width:70%">
     
     <div style="width:250px; height:90%" class="floatLeft">
         <asp:DataList ID="DataList3" runat="server" DataSourceID="SqlDataSource3">
             <ItemTemplate>
                 <a href="LogView.aspx?bb=<%# Eval("bloger_name") %>"><%# Eval("bloger_title") %></a>
                 &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;点击(<%# Eval("click_count") %>)
             </ItemTemplate>
         </asp:DataList>
         <a href="HotBlogView.aspx">more...</a>
     </div>
    
     <div class="floatLeft" style="width:122px;height:100%;border-left:dotted 1px;"></div> 
        <div style="width:10%; height:90%; text-align: center;" class="floatLeft borderbottomright">
     <img src="images/renqi.gif" alt="`人气博客" />
     </div> 
     </div>
     <div class="rows">
     <div class="floatLeft" style="width:39%; height:100%;">
         <asp:DataList ID="DataList4" runat="server" DataSourceID="SqlDataSource4" Width="235px">
             <ItemTemplate>
             <a href="LogDetail.aspx?log_id=<%# Eval("log_id") %>"><%# Eval("log_title") %></a>             
             </ItemTemplate>
         </asp:DataList>
         <a href="NewLogView.aspx">more...</a>
     </div>
     <div class="floatLeft" style="width:19%; height:100%; text-align: left;">
     <img src="images/xinzeng.gif" alt="`新增日志" style="margin:5px"/>
     <img src="images/colledge.gif" alt="`院系列表"/>
    </div>
     <div class="floatLeft"  style="width:39%; height:100%;">
      <asp:DataList ID="DataList6" runat="server" DataSourceID="SqlDataSource5"  Width="235px">
          <ItemTemplate>
              <a href="BlogList.aspx?aa=<%# Eval("college_id") %>"><%# Eval("college_name") %></a>
              &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;博客量(<%# Eval("bloger_count") %>)
          </ItemTemplate>
         </asp:DataList>
         <a href="CollegeList.aspx">more...</a>
     </div>
     
     </div> 
      </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 TOP 5 [title], [pubdate], [notice_id] FROM [DE_notice] ORDER BY [pubdate] DESC"></asp:SqlDataSource>
    <br />
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:DesertEagleConnectionString %>" SelectCommand="SELECT TOP 5 [bloger_name], [bloger_title], [is_top], [click_count] FROM [DE_bloger] WHERE ([is_top] = @is_top)">
        <SelectParameters>
            <asp:Parameter DefaultValue="True" Name="is_top" Type="Boolean" />
        </SelectParameters>
    </asp:SqlDataSource>
    <br />
    <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:DesertEagleConnectionString %>" SelectCommand="SELECT TOP 5 [bloger_name], [bloger_title], [click_count], [bloger_enable], [is_forbid] FROM [DE_bloger] WHERE (([bloger_enable] = @bloger_enable) AND ([is_forbid] = @is_forbid)) ORDER BY [click_count] DESC">
        <SelectParameters>
            <asp:Parameter DefaultValue="True" Name="bloger_enable" Type="Boolean" />
            <asp:Parameter DefaultValue="False" Name="is_forbid" Type="Boolean" />
        </SelectParameters>
    </asp:SqlDataSource>
    <br />
    <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:DesertEagleConnectionString %>" SelectCommand="SELECT TOP 5 [log_id], [log_title], [pub_date], [is_hide] FROM [DE_logs] WHERE ([is_hide] = @is_hide) ORDER BY [pub_date] DESC">
        <SelectParameters>
            <asp:Parameter DefaultValue="False" Name="is_hide" Type="Boolean" />
        </SelectParameters>
    </asp:SqlDataSource>
    <br />
    <asp:SqlDataSource ID="SqlDataSource5" runat="server" ConnectionString="<%$ ConnectionStrings:DesertEagleConnectionString %>" SelectCommand="SELECT [college_name], [bloger_count], [college_id] FROM [DE_college] ORDER BY [bloger_count] DESC"></asp:SqlDataSource>

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

    </form>
</body>
</html>
