?? index.aspx
字號:
?<%@ 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 runat="server">
<title>無標題頁</title>
<style type="text/css">
<!--
.STYLE1 {
color: #000000;
font-family: "幼圓";
font-size: 40px;
font-weight: bold;
}
.STYLE4 {font-size: 12pt}
.STYLE5 {
font-size: 12px;
font-family: "黑體";
}
.STYLE7 {
font-size: 16px;
font-family: "宋體";
}
body {
background-color: #E0E8FA;
}
.STYLE8 {
font-family: "宋體";
font-size: 16px;
color: #333333;
}
.STYLE13 {font-family: "宋體"; font-size: 14px; }
.STYLE17 {
font-size: 25px;
font-family: "宋體";
color: #000099;
}
.STYLE18 {font-size: 16px; font-family: "黑體"; }
.STYLE24 {
color: #FFFFFF;
font-family: "黑體";
font-size: 14px;
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body>
<form runat=server>
<table width="930" border="0" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
<!--DWLayoutTable-->
<tr>
<td width="997" bgcolor="#E0E8FA" style="width: 995px; height: 93px"><span class="STYLE1">簡單校園新聞發布系統</span></td>
</tr>
</table>
<table width="930" border="1" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
<!--DWLayoutTable-->
<tr>
<td valign="top" style="height: 300px; width: 401px;"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="img/011-1.gif" style="height: 17px; width: 128px;"><div align="center"><span class="STYLE5" style="font-size: 14pt">公告</span></div></td>
</tr>
<tr>
<td height="194" bgcolor="#E0E8FA" style="width: 128px"><p align="center" class="STYLE7">
<div align="center">網站測試
</div>
<p class="STYLE7"> 簡單校園新聞發布系統!制作人——05軟件3班!
</p></td>
</tr>
</table></td>
<td valign="top" style="width: 205px; height: 300px; text-align: left;"><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:loginConnectionString %>"
SelectCommand="SELECT * FROM [news]"></asp:SqlDataSource>
<table style="width: 100%">
<tr>
<td style="width: 100px; height: 140px;">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" Width="569px" style="font-size: 10pt; font-family: 宋體, 黑體" OnSelectedIndexChanged="Page_Load" OnSelectedIndexChanging="GridView1_SelectedIndexChanging" AllowSorting="True">
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:HyperLinkField DataNavigateUrlFields="newsid" DataNavigateUrlFormatString="~\detail.aspx?newsid={0}"
DataTextField="newsbiaoti" HeaderText="新聞標題" />
<asp:BoundField DataField="newstime" HeaderText="發表時間" />
<asp:BoundField DataField="newsid" HeaderText="newsid" Visible="False" />
</Columns>
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<EditRowStyle BackColor="#999999" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
</asp:GridView>
</td>
</tr>
</table>
<span style="font-size: 10pt"><span style="font-family: 宋體"><span style="color: #3300ff">
>>></span> </span></span> <a href="detail.aspx" target="_blank"><span style="font-size: 10pt; font-family: 宋體">[更多新聞]</span></a></td>
<td valign="top" style="height: 300px; width: 253px;">
<table style="width: 100%">
<tr>
<td style="width: 95px; height: 88px"><table height="156" border="0" cellpadding="0" cellspacing="0" style="width: 203%">
<tr>
<th bgcolor="#0033FF" style="height: 19px; text-align: left;" scope="col" colspan="2"><span class="STYLE24"> 用戶登陸>></span> </th>
</tr>
<tr>
<td style="width: 55px; text-align: right; height: 2px;"><span class="STYLE13">
用戶名</span></td>
<td style="width: 39px; height: 2px;"><asp:TextBox ID="TextBox1" runat="server" Width="94px"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 55px; height: 31px; text-align: right"><span class="STYLE13"> 密碼</span></td>
<td style="width: 39px; height: 31px"><asp:TextBox ID="TextBox2" runat="server" Width="94px" TextMode="Password"></asp:TextBox></td>
</tr>
<tr>
<td height="59" style="width: 55px; height: 1px"> </td>
<td style="width: 39px; height: 1px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th scope="col" style="width: 30px; height: 43px">
<asp:Button ID="Button2" runat="server" Text="登陸" OnClick="Button2_Click" /></th>
<th scope="col" style="width: 1px; height: 43px"> </th>
<th scope="col" style="width: 27px; height: 43px"><asp:Button ID="Button3" runat="server" Text="管理" OnClick="Button3_Click" /></th>
</tr>
</table> </td>
</tr>
<tr>
<td style="height: 27px;" colspan="2"><asp:Label ID="Label1" runat="server" ForeColor="Red" Height="30px" Width="150px" style="font-size: 8pt; font-family: 宋體"></asp:Label></td>
</tr>
</table>
<asp:LinkButton ID="LinkButton1" runat="server" Width="129px" style="font-size: 14px; font-family: 宋體" Font-Size="Smaller" PostBackUrl="~/register.aspx">注冊...</asp:LinkButton></td>
</tr>
<tr>
<td style="width: 95px; height: 105px">
<table width="232%" height="100" border="1" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#E0E8FA">
<tr>
<td class="STYLE4" style="height: 104px"><div align="center" style="text-align: left">
<span style="font-size: 12pt; color: blue; font-family: 黑體; text-decoration: underline">
您覺得本站還有哪方面需要改進?</span><asp:RadioButtonList ID="RadioButtonList1" runat="server" Width="148px">
<asp:ListItem>布局</asp:ListItem>
<asp:ListItem>色彩</asp:ListItem>
<asp:ListItem>樣式</asp:ListItem>
</asp:RadioButtonList><span style="text-decoration: underline"> </span>
<asp:Button ID="Button1" runat="server" Font-Size="Small" OnClick="Button1_Click"
Text="投票" Width="98px" /><span style="text-decoration: underline"> </span>
</div></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="3" valign="top" style="height: 50px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="height: 29px">
<MARQUEE onmouseover=this.stop(); onmouseout=this.start();
scrollAmount=2 scrollDelay=10 direction=right height=10>
<span class="STYLE17">歡迎光臨簡單新聞發布系統,這是廣告欄目。。。歡迎來電洽談!</span></marquee></td>
</tr>
</table></td>
</tr>
<tr>
<td style="height: 153px; width: 401px;"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#66FFFF" bgcolor="#E0E8FA">
<tr>
<td height="19" colspan="3" class="STYLE18"><div align="center">新聞圖片</div></td>
</tr>
<tr>
<td width="7%"> </td>
<td width="87%"> </td>
<td width="6%"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table></td>
<td style="width: 205px; text-align: left; height: 153px;">
<span style="font-size: 10pt"><span style="font-family: 宋體">
<span style="color: #3300ff"></span> </span></span>
<table width="100%" style="width: 100%">
<tr>
<td width="479" style="width: 100px; height: 139px;">
<asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" CellPadding="4"
DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" Width="578px" style="font-size: 10pt; font-family: 宋體, 黑體" OnSelectedIndexChanged="Page_Load" OnSelectedIndexChanging="GridView1_SelectedIndexChanging">
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:HyperLinkField DataNavigateUrlFields="newsid" DataNavigateUrlFormatString="~\detail.aspx?newsid={0}"
DataTextField="newsbiaoti" HeaderText="新聞標題" />
<asp:BoundField DataField="newstime" HeaderText="發表時間" />
<asp:BoundField DataField="newsid" HeaderText="newsid" Visible="False" />
</Columns>
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<EditRowStyle BackColor="#999999" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
</asp:GridView>
<span style="font-size: 10pt"><span style="font-family: 宋體"><span style="color: #3300ff">
</span></span></span>
</td>
</tr>
</table>
<span><span style="font-family: 宋體"><span style="color: #3300ff">
</span> </span></span><span style="font-size: 10pt"><span style="font-family: 宋體"><span
style="color: #3300ff">>>></span></span></span><a href="detail.aspx" target="_blank"><span style="font-size: 10pt; font-family: 宋體">[更多新聞]</span></a><a href="detail.aspx" target="_blank"><span></span></a></td>
<td style="width: 253px; height: 153px;">
<div style="z-index: 101; left: 750px; width: 184px; position: absolute; top: 508px;
height: 108px">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bgcolor="#E0E8FA">
<tr>
<td colspan="3" background="img/yqlj.gif" style="height: 17px"><div align="center"><span class="STYLE8">友 情 鏈 接</span></div></td>
</tr>
<tr>
<td style="width: 84px; height: 19px"><span class="STYLE13">財大</span></td>
<td width="164" style="height: 19px"><div align="center"><a href="www.jxufe.cn">www.jxufe.cn</a></div></td>
<td style="height: 19px; width: 42px;"> </td>
</tr>
<tr>
<td style="width: 84px; height: 17px;"><span class="STYLE13">搜狐</span></td>
<td style="height: 17px"><div align="center"><a href="www.sohu.com">www.sohu.com</a></div></td>
<td style="height: 17px; width: 42px;"> </td>
</tr>
<tr>
<td style="width: 84px; height: 19px"><span class="STYLE13">網易</span></td>
<td style="height: 19px"><div align="center"><a href="www.163.com">www.163.com</a></div></td>
<td style="height: 19px; width: 42px;"> </td>
</tr>
</table>
</div>
</td>
</tr>
<tr><td style="width: 401px; height: 36px;"></td><td style="width: 205px; text-align: center; height: 36px;">
<p style="text-align: center"><span class="STYLE4" style="font-family: 宋體"> All Rights reserved ©<br />
新聞發布系統 版權所有</span></p>
</td>
<td style="width: 253px; height: 36px;"></td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -