<%@ Page Language="C#" AutoEventWireup="true" Inherits="MyITJob.LookNews" Codebehind="LookNews.aspx.cs" EnableViewState="false" %>

<%@ Register TagPrefix="ascx" TagName="PageTop" Src="~/ascx/PageTop.ascx" %>
<%@ Register TagPrefix="ascx" TagName="PageFooter" Src="~/ascx/PageFooter.ascx" %>
<!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>
    <title><%= str_title %>_<%=Application["PageTitle"] %></title>
    <meta name="Keywords" content="<%= str_title %>" />
    <meta name="Description" content="<%= str_title %>,本信息由<%=Application["PageTitleF"] %>提供" />
    <link href="<%=s_style %>" rel="stylesheet" type="text/css" />
<script defer="defer" type="text/javascript">
document.body.oncopy=new Function("setTimeout(addData,300);");
document.oncopy=new Function("setTimeout(addData,300);");
function addData()
{
var d = window.clipboardData.getData('Text');
var now = new Date();
window.clipboardData.setData('Text',d + "\r\n\r\n该原文出自：" + document.title + " ,原文网址：" + document.location.href + "\r\n转载时间：" + now.toLocaleString() + ", 请保留该信息，谢谢合作。");
}
</script>
</head>
<body>
<form id="form1" runat="server" defaultbutton="SearchArticle_Button">
<div id="head">
      <ascx:PageTop ID="PageTop" runat="server"></ascx:PageTop>
</div>
<div style="margin:0 auto; width:992px">
<div>
  <div>
  	<asp:Repeater ID="news" runat="server" OnItemDataBound="news_ItemDataBound">
          <ItemTemplate>
              <div style="margin-top: 2px; line-height: 22px; font-size: 14px;">
                  您所在的位置： <a href="/Default.aspx" style="font-size: 14px;">首页</a> &gt;&gt; <a href="/newsall.aspx" style="font-size: 14px;">查看信息</a> &gt;&gt; <strong>
                      <%#Eval("title")%>
                  </strong> <span class="addthis_org_cn"><a i="0|1|31|22|23|28|4|2|3|43|39|41|74|76|888|40|5" href="http://addthis.org.cn/share/" title="收藏&amp;分享"><img style="border:0px;" src="http://addthis.org.cn/images/a1.gif" alt="分享家:Addthis中文版" align="absmiddle" /></a></span>
              </div>
              <div class="body_news">
                  <div id="Admin_Manage" class="Admin_Manage" visible="false" runat="server">
                      管理员快捷操作栏：<a href="/admin/Admin_Article.aspx?Action=Edit&id=<%#Eval("id") %>" target="_blank">修改文章</a> | <a href="../LookNews.aspx?Action=Del&id=<%#Eval("id") %>" onclick="return confirm('确定要删除此项吗？此操作不可逆。')" target="_blank">删除文章</a>
                       | <a href="../Looknews.aspx?Action=orders&id=<%#Eval("id") %>"><%# str_Order == "0" ? "置顶文章" : "取消置顶" %></a> | <a href="../Looknews.aspx?Action=marquee&id=<%#Eval("id") %>"><%# str_Marquee == "0" ? "滚动文章" : "取消滚动" %></a></div>
                  <div id="news_title" align="center" style="margin-top:5px; line-height:28px; font-size:14px;">
                    <h1 class="H1_title"><%#Eval("title")%></h1>
                  </div>
					<%#Eval("Content")%>
                  <div align="right"><span style="margin-top: 5px; font-family: Verdana; line-height: 28px; font-size: 14px;">来源： <%#Eval("ArticleGet")%><br />
                    作者：<a href="../Default.aspx"><strong><%#Eval("UserName")%></strong></a><br />
                  浏览：<%#Eval("LookCount")%></span><br />
                    <%#Eval("addtime")%></div>
    <div class="up_next">
                      <div>上一篇：<%=upNews %></div>
                      <div>下一篇：<%=NextNews %></div>
                  </div>
                  <div class="closeDiv"><a href="javascript:window.close();">——关闭本窗口——</a></div>
              </div>
          </ItemTemplate>
      </asp:Repeater>
  </div>  
  <div class="body_news_right">
  	<div>
  	  <div class="title_r"><strong>搜索文章</strong></div>
  	  <div class="title_r_d">
        <table cellpadding="4">
          <tr>
            <td>
              <div style="padding-left: 5px;">
                <div style="margin-bottom: 4px;">
                  <asp:DropDownList ID="DropDownList1" runat="server">
                    <asp:ListItem Value="title">搜索文章标题</asp:ListItem>
                    <asp:ListItem Value="content">搜索文章内容</asp:ListItem>
                  </asp:DropDownList>
                </div>
                <div style="margin-bottom: 4px;">
                  <asp:TextBox ID="TextBox1" MaxLength="15" runat="server"></asp:TextBox>
                </div>
                <div style="margin-bottom: 4px;">
                  <asp:Button ID="SearchArticle_Button" runat="server" OnClick="SearchArticle_Button_Click"
                    Text="开始搜索" />
                  &nbsp;</div>
              </div>
            </td>
          </tr>
        </table>
	    </div>
	  </div>
  	<br />
  	<div>
  		<div class="title_r"><strong>最新文章列表</strong></div>
   		<div class="title_r_d">
        <asp:Repeater ID="RNews" runat="server">
        	<ItemTemplate>·<a href="/LookNews/Article-<%#Eval("id") %>.html" target="_blank"><font color='<%#Eval("TitleColor")%>'><%#FormatLeft(Eval("title").ToString(),15,15) %></font></a><br /></ItemTemplate>
      </asp:Repeater></div>
    </div>
    <br />
      	<div>
  		<div class="title_r"><strong>热门文章列表</strong></div>
   		<div class="title_r_d">
        <asp:Repeater ID="RNews2" runat="server">
        	<ItemTemplate>·<a href="/LookNews/Article-<%#Eval("id") %>.html" target="_blank"><font color='<%#Eval("TitleColor")%>'><%#FormatLeft(Eval("title").ToString(),15,15) %></font></a><br /></ItemTemplate>
      </asp:Repeater>
      </div>
    </div>

  </div>
</div>
<div style="clear:both"></div>
<ascx:PageFooter ID="PageFooter" runat="server"></ascx:PageFooter>
</div>
</form>
</body>
</html>