📄 classmsg.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="classmsg.aspx.cs" Inherits="classmsg" %>
<%@ Register Src="LeadHead.ascx" TagName="LeadHead" TagPrefix="uc1" %>
<!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>
</head>
<body style="background-image: url(PICTURE/back.gif); text-align: center">
<form id="form1" runat="server">
<div>
<uc1:LeadHead ID="LeadHead1" runat="server" />
<table border="0" cellpadding="0" cellspacing="0" style="width: 928px; background-color: #f4faed">
<tr>
<td style="width: 100px; background-color: #f4faed">
</td>
<td style="width: 100px">
<table border="0" cellpadding="0" cellspacing="0" style="width: 864px; height: 4px;
background-color: #cfeee4">
<tr>
<td style="width: 214px">
<asp:ImageButton ID="ToSendMsg" runat="server" ImageUrl="~/PICTURE/newthread.gif" OnClick="ToSendMsg_Click"
/>
</td>
<td style="width: 100px">
<asp:Image ID="Image1" runat="server" Height="68px" ImageUrl="~/PICTURE/liuyan.gif"
Width="130px" /></td>
<td style="vertical-align: bottom; width: 100px; text-align: right">
<table id="TABLE1" border="0" cellpadding="0" cellspacing="0" onclick="return TABLE1_onclick()"
style="width: 235px">
<tr>
<td style="width: 55px; height: 26px">
<asp:Image ID="Image3" runat="server" Height="25px" ImageUrl="~/PICTURE/obj_count.gif"
Width="67px" /></td>
<td style="width: 76px; height: 26px">
<asp:Label ID="countlab" runat="server" Font-Bold="True" Font-Size="X-Large" ForeColor="#FF8080"
Height="25px" Text="0" Width="74px"></asp:Label></td>
<td style="width: 100px; height: 26px">
<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="#0000C0"
Height="22px" Text="条记录"></asp:Label></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td style="width: 100px">
</td>
</tr>
<tr>
<td style="width: 100px; background-color: #f4faed">
</td>
<td style="width: 100px">
</td>
<td style="width: 100px">
</td>
</tr>
<tr>
<td style="width: 100px; background-color: #f4faed">
</td>
<td style="width: 100px">
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
BackColor="#F5FBFF" DataSourceID="SqlDataSource1" OnDataBound="GridView1_DataBound"
OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCommand="GridView1_RowCommand"
OnRowDataBound="GridView1_RowDataBound" OnRowDeleted="GridView1_RowDeleted" Width="1px">
<PagerSettings FirstPageText="[首页]" LastPageText="[末页]" Mode="NextPreviousFirstLast"
NextPageText="[下一页]" Position="TopAndBottom" PreviousPageText="[上一页]" />
<Columns>
<asp:TemplateField HeaderText="用户名" SortExpression="UserID">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</EditItemTemplate>
<ItemStyle BorderColor="#C0FFFF" HorizontalAlign="Center" VerticalAlign="Top" />
<ItemTemplate>
<table border="0" cellpadding="0" cellspacing="0" style="display: block; vertical-align: top;
position: static;">
<tr>
<td style="width: 99px">
<asp:Label ID="BBsNum" runat="server" Text='<%# Eval("BBSNum") %>' Visible="False"></asp:Label></td>
</tr>
<tr>
<td style="width: 99px">
<asp:Image ID="Image4" runat="server" ImageUrl='<%# Eval("PicName") %>' /></td>
</tr>
<tr>
<td style="width: 99px">
<asp:Image ID="Image5" runat="server" Height="11px" ImageUrl="~/PICTURE/level0.gif"
Width="96px" /></td>
</tr>
<tr>
<td style="width: 99px">
<div style="float: left; width: 120px; filter: glow(color='#A6BA98',strength='2');">
<font color="#61b713" face="Verdana"><b>
<asp:Label ID="UserLab" runat="server" Text='<%# Eval("UserID") %>'></asp:Label></b></font></div>
</td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="内容" SortExpression="Title">
<EditItemTemplate>
<asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Title") %>'></asp:TextBox>
</EditItemTemplate>
<ItemStyle BorderColor="#C0FFFF" HorizontalAlign="Center" VerticalAlign="Top" />
<ItemTemplate>
<table border="0" cellpadding="0" cellspacing="0" style="width: 682px">
<tr>
<td style="width: 1163px; height: 19px; background-color: #b8e4ef; text-align: left">
<asp:Image ID="Image6" runat="server" ImageUrl="~/PICTURE/face1.gif" />
<asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="Blue"
Text='<%# Bind("Title") %>'></asp:Label>
<asp:Label ID="Accept" runat="server" Text='<%# Eval("AcceptMan") %>' Visible="False"></asp:Label></td>
<td style="width: 100px; height: 19px; background-color: #b8e4ef; text-align: right">
<asp:Label ID="Label3" runat="server" Font-Bold="True" Text='<%# Eval("SubTime") %>'></asp:Label></td>
</tr>
<tr>
<td colspan="2" style="width: 100px">
<div style="text-align: center">
<center style="display: block; word-break: break-all; position: static; word-wrap: break-word">
<table border="0" cellpadding="0" cellspacing="0" style="width: 230px">
<tr>
<td style="width: 100px; text-align: left">
<span id="PreView" style="vertical-align: top; width: 400px; text-align: left">
<asp:Label ID="ViewLab" runat="server" Text='<%# UToH(Eval("Content") ) %>' Width="680px"></asp:Label></span>
</td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="留言" ShowHeader="False">
<ItemStyle BorderColor="#C0FFFF" />
<ItemTemplate>
<asp:ImageButton ID="Msgsend" runat="server" CommandName="smsg" Height="31px" ImageUrl="~/PICTURE/message.gif" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="删除" ShowHeader="False">
<ItemTemplate>
<asp:ImageButton ID="DelBtn" runat="server" CommandName="DelMsg" ImageUrl="~/PICTURE/m_delete.gif" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
<HeaderStyle BackColor="#BCDDFF" Font-Names="华文行楷" Font-Size="X-Large" ForeColor="#C000C0" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
</td>
<td style="width: 100px">
</td>
</tr>
<tr>
<td style="width: 100px; background-color: #f4faed">
</td>
<td style="width: 100px">
</td>
<td style="width: 100px">
</td>
</tr>
</table>
<br />
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ChinaRenConnectionString %>"
OnSelected="SqlDataSource1_Selected" SelectCommand="SELECT UserInfo.PicName, MsgInfo.BBSNum, MsgInfo.UserID, MsgInfo.Title, MsgInfo.Content, MsgInfo.SubTime, MsgInfo.AcceptMan FROM UserInfo INNER JOIN MsgInfo ON UserInfo.UserID = MsgInfo.UserID">
</asp:SqlDataSource>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -