MyFriends.aspx
上传用户:tree100901
上传日期:2007-06-03
资源大小:2295k
文件大小:4k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="MyFriends.aspx.cs" AutoEventWireup="false" Inherits="OA.MyFriends" %>
  2. <%@ Register TagPrefix="uc1" TagName="Mymenu" Src="MENU/Mymenu.ascx" %>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  4. <HTML>
  5. <HEAD>
  6. <title>MySenderMessage</title>
  7. <style type="text/css">TABLE { FONT-SIZE: 9pt }
  8. BODY { FONT-SIZE: 9pt }
  9. </style>
  10. <LINK href="baseStyle.css" type="text/css" rel="stylesheet">
  11. <LINK href="MENU/menuStyle.css" type="text/css" rel="stylesheet">
  12. <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
  13. <meta content="C#" name="CODE_LANGUAGE">
  14. <meta content="JavaScript" name="vs_defaultClientScript">
  15. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  16. <script language="javascript">
  17. function SelectFriend_onclick(){
  18. var BackValue = window.showModalDialog("SelectCaller.aspx","","scroll:0;status:0;help:0;resizable:0;dialogWidth:400px;dialogHeight:380px")
  19. if(BackValue != null)
  20. document.all.Friend.value=BackValue["name"];
  21. // document.all.AccepterID.value=BackValue["id"];
  22. }
  23. </script>
  24. </HEAD>
  25. <body topmargin="5" oncontextmenu='return false'>
  26. <form id="Form1" method="post" runat="server">
  27. <uc1:mymenu id="Mymenu1" runat="server" MenuData="MENU/MenuData.xml"></uc1:mymenu>
  28. <TABLE id="Table1" style="Z-INDEX: 103; LEFT: 8px; TOP: 100px; HEIGHT: 158px" cellSpacing="1"
  29. cellPadding="1" width="80%" border="1" align="center">
  30. <TR>
  31. <TD style="HEIGHT: 30px" vAlign="middle" align="left" width="20%"><FONT face="宋体">好友列表:</FONT></TD>
  32. <TD style="HEIGHT: 30px" vAlign="middle" align="right" width="20%">
  33. <asp:label id="stats" runat="server"></asp:label></TD>
  34. <TD style="HEIGHT: 30px" vAlign="middle" align="center" width="40%" colSpan="2"><FONT face="宋体">添加新友</FONT></TD>
  35. </TR>
  36. <TR>
  37. <TD vAlign="top" width="40%" colSpan="2" align="center">
  38. <asp:datagrid id="MyDataGrid" runat="server" Width="100%" OnDeleteCommand="MyDataGrid_Delete"
  39. PagerStyle-PrevPageText="<< 上页" PagerStyle-NextPageText="下页 >>" PagerStyle-HorizontalAlign="Right"
  40. ItemStyle-CssClass="normal" HeaderStyle-HorizontalAlign="center" AlternatingItemStyle-BackColor="#f0f8ff"
  41. HeaderStyle-BackColor="#d0d8df" OnPageIndexChanged="MyDataGrid_PageIndexChanged" PageSize="4"
  42. AllowPaging="True" AllowSorting="false" AutoGenerateColumns="False" DataKeyField="PersonID"
  43. OnItemDataBound="MyDataGrid_ItemDataBound">
  44. <AlternatingItemStyle BackColor="AliceBlue"></AlternatingItemStyle>
  45. <ItemStyle CssClass="normal"></ItemStyle>
  46. <HeaderStyle HorizontalAlign="Center" BorderStyle="Outset" BackColor="#D0D8DF"></HeaderStyle>
  47. <Columns>
  48. <asp:BoundColumn DataField="PersonID" HeaderText="编号">
  49. <HeaderStyle Width="20%"></HeaderStyle>
  50. </asp:BoundColumn>
  51. <asp:BoundColumn DataField="FriendName" HeaderText="好友姓名">
  52. <HeaderStyle></HeaderStyle>
  53. </asp:BoundColumn>
  54. <asp:ButtonColumn Text="取消好友" HeaderText="取消好友" CommandName="Delete">
  55. <HeaderStyle Width="40%"></HeaderStyle>
  56. </asp:ButtonColumn>
  57. </Columns>
  58. <PagerStyle NextPageText="下页 &gt;&gt;" PrevPageText="&lt;&lt; 上页" HorizontalAlign="Right"></PagerStyle>
  59. </asp:datagrid></TD>
  60. <TD vAlign="middle" align="center" width="40%" colSpan="2"><FONT face="宋体">
  61. <P>
  62. <asp:TextBox id="Friend" runat="server" Width="312px" ReadOnly="True"></asp:TextBox><INPUT onclick="SelectFriend_onclick()" style="WIDTH: 94px; HEIGHT: 24px" type="button"
  63. value="浏览"></P>
  64. <P><INPUT style="COLOR: background; BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BACKGROUND-COLOR: transparent; BORDER-BOTTOM-STYLE: none"
  65. type="button" value="添加新友" id="AddFriend" name="Button1" runat="server">
  66. </P>
  67. </FONT>
  68. </TD>
  69. </TR>
  70. </TABLE>
  71. </form>
  72. </body>
  73. </HTML>