index.aspx
资源名称:xwfbxt.rar [点击查看]
上传用户:tongfeicq
上传日期:2022-07-20
资源大小:2856k
文件大小:7k
源码类别:
.net编程
开发平台:
Visual C++
- <%@ page language="C#" autoeventwireup="true" inherits="_Default, oyaya" %>
- <%@ Register Src="include/top.ascx" TagName="top" TagPrefix="uc1" %>
- <%@ Register Src="include/bottom.ascx" TagName="bottom" TagPrefix="uc0" %>
- <!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>凹丫丫简单新闻系统(ASP.NET2.0+SQL2005)</title>
- <meta content="www.oyaya.cn,版权归凹丫丫所有,凹丫丫设计室提供专业的网站设计维护制作服务" name="author" />
- <link runat="server" href="include/css.css" rel="Stylesheet" type="text/css" />
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <uc1:top id="Top1" runat="server"></uc1:top>
- <div style="width: 903px; padding-right:10px;">
- <table style="margin-top: 10px; padding-left:5px;" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td colspan="3" width="280" valign="top"><iframe width="280" height="220" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="PicsNews.aspx"></iframe>
- <table width="280" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td rowspan="2" style="width:90px; height:54px; background-image: url(./images/search.gif);"> </td>
- <td><asp:TextBox ID="TextBox1" runat="server" Width="160px" Columns="11"></asp:TextBox></td>
- </tr>
- <tr>
- <td><asp:DropDownList ID="DropDownList1" runat="server">
- <asp:ListItem Value="1">文章标题</asp:ListItem>
- <asp:ListItem Value="2">文章内容</asp:ListItem>
- </asp:DropDownList>
- <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="查询" /></td>
- </tr>
- </table>
- </td>
- <td style="width: 10px"></td>
- <td valign="top">
- <table border="0" cellpadding="0" cellspacing="0" class="gonggao" width="350">
- <tr>
- <td class="gonggaoback1"><img src="images/icon_bjb.gif" /></td>
- <td class="gonggaoback2">最新资讯</td>
- <td class="gonggaoback3"><img src="images/new5.gif" /></td>
- </tr>
- <tr>
- <td colspan="3" rowspan="2" style="text-align: left; padding-bottom: 6px;">
- <asp:Repeater ID="Repeater1" runat="server">
- <HeaderTemplate><ul class="newslist1"></HeaderTemplate>
- <ItemTemplate>
- <li><span>[<%# Convert.ToDateTime(Eval("data")).ToString("MM-dd")%>]</span> ● <a href="NewsShow.aspx?id=<%# Eval("id") %>" class="mainlink"><%#((DataBinder.Eval(Container.DataItem, "title" ).ToString().Length<20)?DataBinder.Eval(Container.DataItem, "title" ).ToString():DataBinder.Eval(Container.DataItem, "title" ).ToString().Substring(0,20)+"...")%></a></li>
- </ItemTemplate>
- <FooterTemplate></ul></FooterTemplate>
- </asp:Repeater>
- </td>
- </tr>
- </table>
- </td>
- <td style="width: 10px">
- </td>
- <td valign="top" style="text-align: right; width: 250px;"><table border="0" cellpadding="0" cellspacing="0" class="gonggao">
- <tr>
- <td class="gonggaoback1"> <img src="images/index1_r33_c16.gif" /></td>
- <td class="gonggaoback2"> 热门图片</td>
- <td class="gonggaoback3">>>更多</td>
- </tr>
- <tr>
- <td colspan="3" rowspan="2" style="padding-bottom:5px;">
- <asp:DataList ID="DataList5" runat="server" RepeatColumns="2" RepeatDirection="Horizontal">
- <ItemTemplate>
- <div style="text-align:center;"><a href="NewsShow.aspx?id=<%# Eval("id") %>"><img src="<%# Eval("picurl") %>" height="83" width="113" border="0" vspace="5" /></a>
- <a href="NewsShow.aspx?id=<%# Eval("id") %>"><%#((DataBinder.Eval(Container.DataItem, "title" ).ToString().Length<8)?DataBinder.Eval(Container.DataItem, "title" ).ToString():DataBinder.Eval(Container.DataItem, "title" ).ToString().Substring(0,8)+"...")%></a></div>
- </ItemTemplate>
- </asp:DataList>
- </td>
- </tr>
- <tr>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <img width="900" src="images/AD_985-86.jpg" vspace="2" style="padding-left:5px;" />
- <asp:DataList ID="DataList2" EnableViewState="false" runat="server" RepeatColumns="3" RepeatDirection="Horizontal">
- <ItemTemplate>
- <div class="gonggao indexa">
- <div class="indexb">
- <div class="indexc"><%# Eval("class_name") %></div>
- <div class="indexd"><a href="class.aspx?id=<%# Eval("id") %>">>>更多</a></div>
- </div>
- <ul class="newslist">
- <%#newsindex(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ID").ToString()))%>
- </ul>
- </div>
- </ItemTemplate>
- </asp:DataList>
- </div>
- <table class="link_bot" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td class="link_td" colspan="3">
- </td>
- <td colspan="1" class="link_tdt">友情连接</td>
- <td colspan="1" class="link_td2"></td>
- </tr>
- <tr>
- <td class="link_content" colspan="5" rowspan="2">
- <asp:DataList EnableViewState="false" ID="DataList3" runat="server" RepeatDirection="Horizontal" RepeatColumns="10">
- <ItemTemplate>
- <asp:HyperLink ID="HyperLink1" runat="server" Height="21px" NavigateUrl='<%# Eval("url") %>' Text='<%# Eval("title") %>' style="margin-right: 10px" Target="_blank"></asp:HyperLink>
- </ItemTemplate>
- </asp:DataList>
- <asp:DataList EnableViewState="false" ID="DataList1" runat="server" RepeatDirection="Horizontal" RepeatColumns="10">
- <ItemTemplate>
- <asp:HyperLink ID="HyperLink2" runat="server" Height="35px" ImageUrl='<%# Eval("logo") %>' NavigateUrl='<%# Eval("url") %>' Text='<%# Eval("title") %>' Width="88px" style="margin-right: 10px" Target="_blank"></asp:HyperLink>
- </ItemTemplate>
- </asp:DataList>
- </td>
- </tr>
- </table>
- <uc0:bottom id="bottom" runat="server"></uc0:bottom>
- </div>
- </form>
- </body>
- </html>