user_board_message.aspx
上传用户:scene123
上传日期:2010-02-19
资源大小:3311k
文件大小:7k
源码类别:

.net编程

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="user_board_message.aspx.cs" AutoEventWireup="false" Inherits="kuangren.user_board_message" %>
  2. <%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  4. <HTML>
  5. <HEAD>
  6. <TITLE>狂人论坛-用户短信管理</TITLE>
  7. <meta content="False" name="vs_showGrid">
  8. <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
  9. <meta content="C#" name="CODE_LANGUAGE">
  10. <meta content="JavaScript" name="vs_defaultClientScript">
  11. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  12. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  13. <LINK href="skin/dvbbs/style.css" type="text/css" rel="stylesheet">
  14. <script Language="JavaScript">
  15. <!--
  16. //全选复选框
  17. function CheckAll(form)  {
  18.   for (var i=0;i<form.elements.length;i++)    {
  19.     var e = form.elements[i];
  20.     if (e.name != 'chkall')       e.checked = form.chkall.checked; 
  21.    }
  22.   }
  23. function MM_openBrWindow(theURL,winName,features) { //v2.0
  24.   window.open(theURL,winName,features);
  25. }
  26. //-->
  27. </script>
  28. </HEAD>
  29. <body leftMargin="0" topMargin="0">
  30. <!--#include file="sitehead.aspx" -->
  31. <div align="center">
  32. <table cellSpacing="1" cellPadding="3" width="97%" align="center" bgColor="#6595d6" border="0">
  33. <tr>
  34.       <td bgColor="#F0F0F0" height="25"><IMG height="9" hspace="3" src="skin/dvbbs/images/nav_position.gif" width="9" align="absMiddle">
  35.   <uc1:jianinclude2 id="Jianinclude21" runat="server"></uc1:jianinclude2>→ <A href="user_board.aspx">
  36. <%=usercookies%>的控制面板</A> → 用户短信管理</td>
  37. </tr>
  38. </table>
  39.   <br>
  40. <table style="BORDER-COLLAPSE: collapse" borderColor="#6595d6" cellSpacing="0" cellPadding="4"
  41. width="97%" align="center" border="1">
  42. <tr class="title_link">
  43. <td class="title">
  44. <div align="center"><strong><A href="user_board.aspx">控制面板首页</A></strong>
  45. </div>
  46. </td>
  47. <td class="title">
  48. <div align="center"><strong><A href="user_board_inforup.aspx">基本资料修改</A></strong>
  49. </div>
  50. </td>
  51. <td class="title">
  52. <div align="center"><strong><A href="user_board_passup.aspx">用户密码修改</A></strong>
  53. </div>
  54. </td>
  55. <td class="title">
  56. <div align="center"><strong><A href="modifyadd.asp"></A><A href="user_board_message.aspx">用户短信服务</A></strong>
  57. </div>
  58. </td>
  59. <td class="title">
  60. <div align="center"><strong><A href="user_board_upload.aspx">我的附件箱</A></strong>
  61. </div>
  62. </td>
  63. <td class="title">
  64. <div align="center"><strong><A href="user_board_favord.aspx">用户收藏管理</A></strong>
  65. </div>
  66. </td>
  67. <td class="title">
  68. <div align="center"><A href="user_board_post.aspx"><strong>我所发表的文章</strong></A>
  69. </div>
  70. </td>
  71. </tr>
  72. </table>
  73.   <table width="97%" height="19" border="0" cellpadding="2" cellspacing="0">
  74.     <tr>
  75.       <td height="19"><div align="center">〉》<a href="#" onclick="MM_openBrWindow('messagesend.aspx','','scrollbars=yes,resizable=yes,width=520,height=400')">撰写短消息</a>《〈</div></td>
  76.     </tr>
  77.   </table>
  78.   <table class="table" style="BORDER-COLLAPSE: collapse" borderColor="#6595d6" cellSpacing="0"
  79. cellPadding="3" width="97%" border="1">
  80.     <FORM name=inbox  action="user_board_messagedel.aspx" method="post" runat="server">
  81.       <tr class="title_link"> 
  82.         <td class="title" width="15%"> <div align="center">状态</div></td>
  83.         <td class="title" width="16%"> <div align="center">发件人</div></td>
  84.         <td class="title" width="31%"> <div align="center">主题</div></td>
  85.         <td class="title" width="17%"> <div align="center">日期</div></td>
  86.         <td class="title" width="9%"> <div align="center">大小</div></td>
  87.         <td class="title" width="12%"> <div align="center">操作</div></td>
  88.       </tr>
  89.       <asp:repeater id="Repeater1" runat="server"> 
  90.         <itemtemplate>  
  91.           <tr > 
  92.             <td height="15" bgColor="#ffffff" > 
  93.               <div align="center"> <img src="images/<%# JudgeImage(DataBinder.Eval(Container.DataItem,"p_yn"))%>.gif"> 
  94.               </div></td>
  95.             <td bgColor="#ffffff" height="15"><div align="center"> 
  96.                 <a href="user_infor.aspx?u_user=<%# Server.HtmlEncode((DataBinder.Eval(Container.DataItem,"p_send")).ToString())%>" target="_blank">
  97.                 <%# Server.HtmlEncode((DataBinder.Eval(Container.DataItem,"p_send")).ToString())%>
  98.                 </a> </div></td>
  99.             <td height="15"> 
  100.               <div align="center"> <a href="#" onclick="MM_openBrWindow('user_board_messagedetail.aspx?p_id=<%# DataBinder.Eval(Container.DataItem,"p_id")%>&j_take=<%# Server.HtmlEncode((DataBinder.Eval(Container.DataItem,"p_send")).ToString())%>','','scrollbars=yes,resizable=yes,width=520,height=400')">
  101.                 <%# Server.HtmlEncode((DataBinder.Eval(Container.DataItem,"p_title")).ToString())%>
  102.                 </a> </div></td>
  103.             <td height="15" > 
  104.               <div align="left"> &nbsp; 
  105.                 <%# DataBinder.Eval(Container.DataItem,"p_stime")%>
  106.               </div></td>
  107.             <td height="15" ><table width="100%" border="0" cellspacing="0" cellpadding="2">
  108.                 <tr>
  109.                   <td width="50%"> <div align="right">
  110.                       <%# Server.HtmlEncode((DataBinder.Eval(Container.DataItem,"p_content")).ToString()).Length%>
  111.                       &nbsp;</div></td>
  112.                   <td width="50%">字符</td>
  113.                 </tr>
  114.               </table></td>
  115.             <td height="15"  ><div align="center">
  116.                 <input name="P_id" type="checkbox" id="P_id2" value="<%# DataBinder.Eval(Container.DataItem,"p_id")%>">
  117.               </div></td>
  118.           </tr>
  119.         </itemtemplate>
  120.       </asp:repeater>    
  121.     <%=shownone%>
  122.       <tr > 
  123.         <td height="7" colspan="6" bgColor="#ffffff" >
  124. <div align="center">
  125. <table width="99%" border="0" cellspacing="0" cellpadding="2">
  126.               <tr> 
  127.                 <td width="86%"><div align="right">节省每一分空间,请及时删除无用信息 选中所有显示记录</div></td>
  128.                 <td width="14%"> <div align="right">
  129.                     <input type=checkbox name=chkall value=on onClick="CheckAll(this.form)">
  130.                     <input type=submit name=action onClick="{if(confirm('确定删除选定的纪录吗?')){this.document.inbox.submit();return true;}return false;}" value="删除收件">
  131.                   </div></td>
  132.               </tr>
  133.             </table>
  134.           </div>
  135.  </td>  
  136.       </tr>  
  137.       <tr >
  138.         <td height="8" colspan="6" bgColor="#ffffff" ><div align="center"><WEBDIYER:ASPNETPAGER id="AspNetPager1" runat="server" AlwaysShow="True" UrlPageIndexName="pageindex"
  139. UrlPaging="True" ShowCustomInfoSection="Left" Width="100%" NumericButtonTextFormatString="-{0}-" PagingButtonSpacing="8"
  140. NextPageText=">>" PrevPageText="<<" LastPageText=">>|" FirstPageText="|<<" NumericButtonCount="8" PageSize="20"
  141. CssClass="mypager" HorizontalAlign="Right" ShowBoxThreshold="5"></WEBDIYER:ASPNETPAGER></div></td>
  142.       </tr>
  143.     </FORM>
  144.   </table>
  145.   <br>
  146. </div>
  147. <!--#include file="sitefloor.aspx" --></body>
  148. </HTML>