1个回答
展开全部
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="admin.aspx.vb" Inherits="Mboard.admin"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>留言管理</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<SCRIPT language="JavaScript">
//展开和关闭时候显示/隐藏子表信息
function showDiv(img,div)
{
var picName = img.src;
picName = picName.substring(picName.lastIndexOf("/")+1);
if (picName.toLowerCase() == "open.gif")
{
div.style.display ="block";
img.src = "image/close.gif";
}
else
{
div.style.display ="none";
img.src = "image/open.gif";
}
}
function AddRemoveValues(oChk)
{
//在处理这个地方需要注意的是:你保存的值应该具有唯一性,这样才能不会替换错误的项。
if(oChk.checked)
Form1.HdnSelectedValues.value += "," + oChk.value;
else
Form1.HdnSelectedValues.value = Form1.HdnSelectedValues.value.replace("," + oChk.value,"");
}
</SCRIPT>
</HEAD>
<body background="image/bookbg.gif" MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<FONT face="宋体">
<TABLE id="Table1" style="Z-INDEX: 101; LEFT: 80px; WIDTH: 797px; POSITION: absolute; TOP: 8px"
cellSpacing="0" cellPadding="0" width="797" align="center" border="0">
<TR>
<TD style="FONT-SIZE: 20px; COLOR: #505050; HEIGHT: 16px" align="center" vAlign="top"><b>后台管理</b><br>
<HR width="100%" color="#000066" SIZE="2">
<TABLE id="Table2" style="WIDTH: 600px; HEIGHT: 16px" cellSpacing="0" cellPadding="0" width="600"
border="0">
<TR>
<TD align="center"><A href="admin.aspx">留言管理</A>
</TD>
<TD align="center"> <A href="changepsw.aspx">修改密码</A></TD>
<TD align="center"> <A href="logout.aspx">退出登录</A></TD>
</TR>
</TABLE>
<br>
<TABLE id="Table2" cellSpacing="0" cellPadding="0" width="760" border="0">
<TR>
<TD vAlign="top" align="center"><asp:datagrid id="dgword" runat="server" Width="656px" AutoGenerateColumns="False" BackColor="#FFFFF6"
Height="96px" ShowHeader="False" Font-Size="9pt" AllowPaging="True" OnPageIndexChanged="dgword_SelectedIndexChanged" OnItemCommand="dgword_DeleteComand">
<FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedItemStyle>
<ItemStyle ForeColor="#000066"></ItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#006699"></HeaderStyle>
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<TABLE height="1" width="767" border="0">
<TR>
<TD width="30">
<asp:Label id=LblId Font-Size="9pt" Visible="False" Height="4px" text='<%# DataBinder.Eval(Container.DataItem,"id")%>' Runat="server">
</asp:Label>
<asp:Image id="ImgOpen" style="CURSOR: hand" open="true" Runat="server" ImageUrl="image/open.gif"></asp:Image></TD>
<TD align="left" width="300">
<INPUT type="checkbox" onClick="AddRemoveValues(this)" value='<%#DataBinder.Eval(Container.DataItem,"id")%>' NAME="chkSelect">
<asp:Label id="Label1" runat="server" Font-Size="9pt">留言人:</asp:Label>
<asp:Label id=LblName Font-Size="9pt" Text='<%# DataBinder.Eval(Container.DataItem,"Name")%>' Runat="server">
</asp:Label></TD>
<TD align="left" width="317">
<asp:Label id="Label3" runat="server" Font-Size="9pt">日期:</asp:Label>
<asp:Label id=Label4 runat="server" Font-Size="9pt" Text='<%# DataBinder.Eval(Container.DataItem,"date")%>'>lbltime</asp:Label></TD>
<TD align="right" width="120">
<asp:LinkButton id="LbtnDel" Font-Size="9pt" Text="删除" Runat="server" CommandName="Delete"></asp:LinkButton></TD>
</TR>
<TR>
<TD align="center" bgColor="#fefefe" colSpan="4">
<asp:Panel id="PnlContent" style="DISPLAY: none" BackColor="Silver" Border="0" Runat="server">
<table width="660" cellpadding="2" cellspacing="1" border="0" bgcolor="#3a97eb" style="FONT-SIZE: 9pt; WORD-BREAK: break-all">
<tr bgcolor="#ffffff">
<td height="120" width="120" rowspan="2" align="center" valign="top">
<%# DataBinder.Eval(Container.DataItem,"img")%>
<br>
<br>
<%# DataBinder.Eval(Container.DataItem,"name")%>
<br>
<br>
<%# DataBinder.Eval(Container.DataItem,"date")%>
</td>
<td height="25">
<%# DataBinder.Eval(Container.DataItem,"title")%>
</td>
</tr>
<tr bgcolor="#ffffff">
<td height="95" valign="top" rowspan="1" colspan="1">
<%# DataBinder.Eval(Container.DataItem,"message")%>
</td>
</tr>
</table>
</asp:Panel></TD>
</TR>
</TABLE>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
<PagerStyle HorizontalAlign="Right" ForeColor="#000066" Position="TopAndBottom" BackColor="White"
Mode="NumericPages"></PagerStyle>
</asp:datagrid>
<asp:Button id="btndel" runat="server" Text="删除所选项"></asp:Button></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
<INPUT id="HdnSelectedValues" type="hidden" name="HdnSelectedValues" runat="server">
</FONT>
</form>
</body>
</HTML>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>留言管理</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<SCRIPT language="JavaScript">
//展开和关闭时候显示/隐藏子表信息
function showDiv(img,div)
{
var picName = img.src;
picName = picName.substring(picName.lastIndexOf("/")+1);
if (picName.toLowerCase() == "open.gif")
{
div.style.display ="block";
img.src = "image/close.gif";
}
else
{
div.style.display ="none";
img.src = "image/open.gif";
}
}
function AddRemoveValues(oChk)
{
//在处理这个地方需要注意的是:你保存的值应该具有唯一性,这样才能不会替换错误的项。
if(oChk.checked)
Form1.HdnSelectedValues.value += "," + oChk.value;
else
Form1.HdnSelectedValues.value = Form1.HdnSelectedValues.value.replace("," + oChk.value,"");
}
</SCRIPT>
</HEAD>
<body background="image/bookbg.gif" MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<FONT face="宋体">
<TABLE id="Table1" style="Z-INDEX: 101; LEFT: 80px; WIDTH: 797px; POSITION: absolute; TOP: 8px"
cellSpacing="0" cellPadding="0" width="797" align="center" border="0">
<TR>
<TD style="FONT-SIZE: 20px; COLOR: #505050; HEIGHT: 16px" align="center" vAlign="top"><b>后台管理</b><br>
<HR width="100%" color="#000066" SIZE="2">
<TABLE id="Table2" style="WIDTH: 600px; HEIGHT: 16px" cellSpacing="0" cellPadding="0" width="600"
border="0">
<TR>
<TD align="center"><A href="admin.aspx">留言管理</A>
</TD>
<TD align="center"> <A href="changepsw.aspx">修改密码</A></TD>
<TD align="center"> <A href="logout.aspx">退出登录</A></TD>
</TR>
</TABLE>
<br>
<TABLE id="Table2" cellSpacing="0" cellPadding="0" width="760" border="0">
<TR>
<TD vAlign="top" align="center"><asp:datagrid id="dgword" runat="server" Width="656px" AutoGenerateColumns="False" BackColor="#FFFFF6"
Height="96px" ShowHeader="False" Font-Size="9pt" AllowPaging="True" OnPageIndexChanged="dgword_SelectedIndexChanged" OnItemCommand="dgword_DeleteComand">
<FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedItemStyle>
<ItemStyle ForeColor="#000066"></ItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#006699"></HeaderStyle>
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<TABLE height="1" width="767" border="0">
<TR>
<TD width="30">
<asp:Label id=LblId Font-Size="9pt" Visible="False" Height="4px" text='<%# DataBinder.Eval(Container.DataItem,"id")%>' Runat="server">
</asp:Label>
<asp:Image id="ImgOpen" style="CURSOR: hand" open="true" Runat="server" ImageUrl="image/open.gif"></asp:Image></TD>
<TD align="left" width="300">
<INPUT type="checkbox" onClick="AddRemoveValues(this)" value='<%#DataBinder.Eval(Container.DataItem,"id")%>' NAME="chkSelect">
<asp:Label id="Label1" runat="server" Font-Size="9pt">留言人:</asp:Label>
<asp:Label id=LblName Font-Size="9pt" Text='<%# DataBinder.Eval(Container.DataItem,"Name")%>' Runat="server">
</asp:Label></TD>
<TD align="left" width="317">
<asp:Label id="Label3" runat="server" Font-Size="9pt">日期:</asp:Label>
<asp:Label id=Label4 runat="server" Font-Size="9pt" Text='<%# DataBinder.Eval(Container.DataItem,"date")%>'>lbltime</asp:Label></TD>
<TD align="right" width="120">
<asp:LinkButton id="LbtnDel" Font-Size="9pt" Text="删除" Runat="server" CommandName="Delete"></asp:LinkButton></TD>
</TR>
<TR>
<TD align="center" bgColor="#fefefe" colSpan="4">
<asp:Panel id="PnlContent" style="DISPLAY: none" BackColor="Silver" Border="0" Runat="server">
<table width="660" cellpadding="2" cellspacing="1" border="0" bgcolor="#3a97eb" style="FONT-SIZE: 9pt; WORD-BREAK: break-all">
<tr bgcolor="#ffffff">
<td height="120" width="120" rowspan="2" align="center" valign="top">
<%# DataBinder.Eval(Container.DataItem,"img")%>
<br>
<br>
<%# DataBinder.Eval(Container.DataItem,"name")%>
<br>
<br>
<%# DataBinder.Eval(Container.DataItem,"date")%>
</td>
<td height="25">
<%# DataBinder.Eval(Container.DataItem,"title")%>
</td>
</tr>
<tr bgcolor="#ffffff">
<td height="95" valign="top" rowspan="1" colspan="1">
<%# DataBinder.Eval(Container.DataItem,"message")%>
</td>
</tr>
</table>
</asp:Panel></TD>
</TR>
</TABLE>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
<PagerStyle HorizontalAlign="Right" ForeColor="#000066" Position="TopAndBottom" BackColor="White"
Mode="NumericPages"></PagerStyle>
</asp:datagrid>
<asp:Button id="btndel" runat="server" Text="删除所选项"></asp:Button></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
<INPUT id="HdnSelectedValues" type="hidden" name="HdnSelectedValues" runat="server">
</FONT>
</form>
</body>
</HTML>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询