温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:三层新闻发布管理系统源码
当前文件:
TreeLayerNews/news2005/ascx/Left.ascx,打开代码结构图
TreeLayerNews/news2005/ascx/Left.ascx,打开代码结构图1<style type="text/css"> 2
<!-- 3
body,td,th { 4
font-family: 宋体; 5
font-size: 12px; 6
color: #000000; 7
} 8
body { 9
margin-left: 0px; 10
margin-top: 0px; 11
margin-right: 0px; 12
margin-bottom: 0px; 13
} 14
a { 15
font-size: 12px; 16
color: #000000; 17
} 18
a:link { 19
text-decoration: none; 20
} 21
a:visited { 22
text-decoration: none; 23
color: #000000; 24
} 25
a:hover { 26
text-decoration: none; 27
color: #000000; 28
} 29
a:active { 30
text-decoration: none; 31
color: #000000; 32
} 33
--> 34
</style><%@ Control Language="C#" AutoEventWireup="true" CodeFile="Left.ascx.cs" Inherits="ascx_Left" %> 35
<table width="164" height="110" border="0" cellpadding="0" cellspacing="0"> 36
<tr> 37
<td colspan="2" align="center" bgColor="#0066cc" height="26"><font color="#ffffff">新闻搜索</font></td> 38
</tr> 39
<tr> 40
<td align="center" colspan="2" style="height: 11px"> 41
<asp:TextBox ID="tb_value" runat="server" BorderColor="#804000"></asp:TextBox></td> 42
</tr> 43
<tr> 44
<td align="center" height="24"> <asp:DropDownList ID="DL_Type" runat="server"> 45
<asp:ListItem Value="title">新闻标题</asp:ListItem> 46
<asp:ListItem Value="newinfo">新闻内容</asp:ListItem> 47
</asp:DropDownList></td> 48
<td align="center"> 49
<asp:Button ID="Search" runat="server" Text="搜索" OnClick="Search_Click" /> </td> 50
</tr> 51
<tr bgColor="#9999cc"> 52
<td height="22" bgColor="#0066cc"><div align="center"><font color="#ffffff">热门新闻标题</font></div></td> 53
<td bgColor="#0066cc"><div align="right"><font color="#ffffff">Top10</font></div></td> 54
</tr> 55
<tr> 56
<td colspan="2"> 57
<table width="100%" border="0" cellpadding="0" cellspacing="0"> 58
<asp:Repeater ID="RepHits" runat="server" EnableTheming="True"> 59
<ItemTemplate> 60
<tr bgColor="#efefef"> 61
<td width="82%" onmousemove="style.backgroundColor='#CCCCCC'" onmouseout="style.backgroundColor='#efefef'" > <a href='ListView.aspx?cid=<%# DataBinder.Eval(Container.DataItem,"id")%>' title="<%# DataBinder.Eval(Container.DataItem,"title")%>" target=_blank><%# cutString(DataBinder.Eval(Container.DataItem,"title").ToString(),14)%></a></td> 62
<td width="18%" height="22" align="center"><%# DataBinder.Eval(Container.DataItem,"hits")%></font></td> 63
</tr> 64
</ItemTemplate> 65
</asp:Repeater> 66
</table> 67
</td> 68
</tr> 69
</table> 70
<script language="javascript"> 71
function Checktb_value() 72
{ 73
if(document.all.tb_value.value=="") 74
{ 75
alert('请输入查询关键字!'); 76
} 77
} 78
</script>



<!--

body,td,th 
-->

