温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:小白留言板源码
当前文件:
XiaobaiLiuyanban/showmessage.aspx[8K,2009-6-12 11:59:24],打开代码结构图
XiaobaiLiuyanban/showmessage.aspx[8K,2009-6-12 11:59:24],打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="showmessage.aspx.cs" Inherits="showmessage" %> 2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4
5
<html xmlns="http://www.w3.org/1999/xhtml" > 6
<head id="Head1" runat="server"> 7
<title>小白留言板|-51aspx.com</title> 8
<script language="javascript" type="text/javascript"> 9
function check() 10
{ 11
var shu ="[^0-9]";//是否为数字 12
13
if(document.getElementById("ye").value.match(shu)) 14
{ 15
alert('请输入数字'); 16
document.getElementById("ye").value=""; 17
document.getElementById("ye").focus(); 18
return false; 19
} 20
if(parseInt(document.getElementById("ye").value) > parseInt(document.getElementById("lblsum").innerText)) 21
{ 22
alert('请输入正确的范围!'); 23
document.getElementById("ye").value=""; 24
document.getElementById("ye").focus(); 25
return false; 26
} 27
28
29
} 30
31
</script> 32
</head> 33
<body> 34
<form id="form1" runat="server"> 35
<div> 36
37
<table style="width: 75%" align="center"> 38
<tr> 39
<td style="height: 74px; width: 740px;"> 40
<table width="100%"> 41
<tr> 42
<td width="50%" style="height: 67px"><p style="background-color:#A1D1C3;width:70%; height:100%; color:green; font-size:35px; border-bottom:solid 6px #A1D1C3" align="center"> 43
<span style="font-family: 楷体_GB2312; color: white;">小白留言板</span></p></td> 44
<td style="text-align: right; height: 67px;"> 45
<asp:HyperLink ID="Hl1" runat="server" ForeColor="Teal" NavigateUrl="~/liuyanban.aspx">留言</asp:HyperLink> 46
<asp:HyperLink ID="hl2" runat="server" ForeColor="Teal" NavigateUrl="~/login.aspx">管理员登录</asp:HyperLink> 47
<asp:HyperLink ID="hl3" runat="server" ForeColor="Teal" NavigateUrl="~/admin.aspx">管理留言</asp:HyperLink></td> 48
</tr> 49
</table></td> 50
</tr> 51
<tr> 52
<td style=" background-color:#A1D1C3; width: 740px;" align="center"> 53
<table style="width: 95%; background-color:White" cellpadding="0" cellspacing="0" > 54
<tr> 55
<td style="text-align: left; height: 100%;" class="td"> 56
<asp:DataList ID="DataList1" Width="100%" runat="server"> 57
<ItemTemplate> 58
<table width="100%"> 59
<tr> 60
<td style="background-color:#A1D1C3" width="15%" class="td">发表人</td> 61
<td style="background-color:#A1D1C3" class="td"><B><%# Eval("m_subject") %></B></td> 62
<td style="background-color:#A1D1C3" width="7%" class="td"><a href="messagereplay.aspx?m_id=<%# Eval("m_id") %>"><img src="img/reply.gif" alt="管理员回复" border="0" /></a></td> 63
</tr> 64
<tr> 65
<td class="td"> 66
<B><%# Eval("m_name") %></B><br /> 67
表情:<img src="image/<%# Eval("m_face") %>" border="0" /><br /> 68
<a href='mailto:<%#("m_mail") %>'><img src="img/mail.gif" alt="发送邮件" border="0" /></a> 69
<a href="<%# Eval("m_http") %>"><img src="img/index.gif" alt="网址:<%# Eval("m_http") %>" border="0"/></a> 70
<a href="http://bbs.qq.com/cgi-bin/bbs/friend/user_info_show?ln=<%# Eval("m_qq") %>" target="_blank"><img src="img/qq.gif" border="0" alt="查看QQ用户资料" /></a> 71
<img src="img/phone.gif" border="0" alt="电话号码:<%# Eval("m_phone") %>" /> 72
</td> 73
<td colspan="2" class="td"> 74
<img src="img/messages.gif" alt="留言内容" border="0"/>发表于:<%# Eval("m_datetime") %><hr /> 75
<%# Eval("m_content") %><hr /> 76
<font style="color:#829FF1">管理员回复:<asp:label runat="server" ID="l1" text='<%# Eval("m_replay") %>'></asp:label><br /> 77
回复时间:<%# Eval("m_replaytime")%> </font> 78
</td> 79
</tr> 80
</table> 81
</ItemTemplate> 82
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" 83
Font-Underline="False" VerticalAlign="Top" /> 84
</asp:DataList></td> 85
</tr> 86
<tr> 87
<td style="height: 44px"> 88
<hr style="color:#A1D1C3" /> 89
<table border="0" width="100%"> 90
<tr> 91
<td><asp:ImageButton ID="imgsy" runat="server" ImageUrl="~/img/bfirst.gif" Style="position: relative" OnClick="imgsy_Click" /></td> 92
<td><asp:ImageButton ID="imgnext" runat="server" ImageUrl="~/img/bnext.gif" Style="left: 62px; position: relative; top: 1px" OnClick="imgnext_Click" /></td> 93
<td><asp:ImageButton ID="imgpro" runat="server" ImageUrl="~/img/bprev.gif" Style="left: -62px; position: relative; top: 1px" Enabled="False" OnClick="imgpro_Click" /></td> 94
<td><asp:ImageButton ID="imgmo" runat="server" ImageUrl="~/img/btail.gif" 95
OnClick="imgmo_Click" Style="left: 2px; position: relative; top: 1px" Width="54px" /></td> 96
<td> 每页显示<asp:DropDownList ID="DropDownList1" 97
runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" 98
Style="position: relative"> 99
<asp:ListItem Selected="True">1</asp:ListItem> 100
<asp:ListItem>2</asp:ListItem> 101
<asp:ListItem>3</asp:ListItem> 102
<asp:ListItem>4</asp:ListItem> 103
<asp:ListItem>5</asp:ListItem> 104
<asp:ListItem>6</asp:ListItem> 105
<asp:ListItem>7</asp:ListItem> 106
</asp:DropDownList> 107
条记录</td> 108
<td>第 109
<asp:TextBox ID="ye" runat="server" Style="position: relative" Width="17px" onblur="check();" EnableViewState="False" ToolTip="跳转页数"></asp:TextBox>页<asp:ImageButton ID="ImageButton1" runat="server" Height="20px" ImageUrl="~/img/go.gif" 110
Style="position: relative; top: 1px" OnClick="ImageButton1_Click" /></td> 111
<td>当前第<asp:Label ID="lbldq" runat="server" Style="position: relative" Text="1"></asp:Label>页</td> 112
113
<td>共<asp:Label ID="lblsum" runat="server" Style="position: relative"></asp:Label>页</td></td> 114
</tr> 115
</table> 116
117
</td> 118
</tr> 119
</table> 120
</div> 121
</TD></TR></TABLE></DIV> 122
</form> 123
<a href="http://www.51aspx.com/" target="_blank" title="Asp.net源码下载专业站">download from 51aspx.com</a> 124
125
</body> 126
</html> 127





}
