<%@ Page CodeBehind="myfriend.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Webdisk.myfriend" %>
<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<META http-equiv="Content-Type" content="text/html; charset=gb2312">
		<% @ Import Namespace="Webdisk" %>
		<link href="<%=xml.GetStyle()%>" rel="stylesheet" type="text/css">
		<script type="text/javascript" language="javascript" src="js/function.js"></script>
			<script language="JAVASCRIPT">
function showly(id)
{
var url='sms_input.aspx?username='+id;
window.open(url,'','scrollbars=yes,resizable=no,status=no,toolbar=no,menubar=no,location=no,width=550,height=300');
}
			</script>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<br>
			<div align="center">
				<TABLE cellSpacing="0" cellPadding="0" width="98%" align="center">
					<TR>
						<TD width="5" background="pics/wenbenkuan_02.gif"><IMG height="5" src="pics/wenbenkuan_01.gif" width="5"></TD>
						<TD width="874" background="pics/wenbenkuan_02.gif"><IMG height="5" src="pics/wenbenkuan_02.gif" width="5"></TD>
						<TD><IMG height="5" src="pics/wenbenkuan_03.gif" width="5"></TD>
					</TR>
					<TR>
						<TD background="pics/wenbenkuan_04.gif">&nbsp;</TD>
						<TD background="pics/wenbenkuan_05.gif" bgColor="#ffffff"><TABLE width="100%">
								<TR>
									<TD class="tabletop"><img src="pics/users.gif" width="18" height="18" align="absmiddle"> 我加的好友&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:history.go(-1);"><img src="pics/link_back.gif" border="0" align="absmiddle"></a></TD>
								<TR class="tablebg">
									<TD><div align="center">
											<asp:datagrid id="DataGrid" runat="server" AutoGenerateColumns="False" Width="100%" PageSize="20"
												CssClass="GridBody" AllowSorting="True">
												<AlternatingItemStyle CssClass="GridLine"></AlternatingItemStyle>
												<ItemStyle CssClass="GridItem"></ItemStyle>
												<HeaderStyle CssClass="GridHead"></HeaderStyle>
												<Columns>
													<asp:BoundColumn Visible="False" DataField="id"></asp:BoundColumn>
													<asp:TemplateColumn HeaderText="选择">
														<HeaderStyle HorizontalAlign="Center" Width="2%"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<HeaderTemplate>
															<input type="checkbox" name="chkSelect" id="chkSelect" onClick='checkAll();' />
														</HeaderTemplate>
														<ItemTemplate>
															<INPUT id=chkSelect onclick=AddRemoveValues(this) type=checkbox value='<%#DataBinder.Eval(Container.DataItem,"FriendName")%>' name=checkbox>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:HyperLinkColumn DataNavigateUrlField="FriendName" DataNavigateUrlFormatString="userinfo.aspx?username={0}"
														DataTextField="FriendName" SortExpression="FriendName" HeaderText="好友用户名">
														<HeaderStyle HorizontalAlign="Center" Width="20%"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:HyperLinkColumn>
													<asp:TemplateColumn SortExpression="Team" HeaderText="所属组">
														<HeaderStyle HorizontalAlign="Center" Width="20%"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<%# showteam(DataBinder.Eval(Container, "DataItem.team").ToString()) %>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:TemplateColumn HeaderText="发短消息">
														<HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<a href="javascript:void(0)" onClick='showly("<%# DataBinder.Eval(Container.DataItem, "FriendName").ToString()%>");'>
																发短消息</a>
														</ItemTemplate>
													</asp:TemplateColumn>
													<asp:HyperLinkColumn Text="查看共享" DataNavigateUrlField="FriendName" DataNavigateUrlFormatString="allshare.aspx?friend={0}"
														HeaderText="查看共享">
														<HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:HyperLinkColumn>
													<asp:ButtonColumn Text="删除好友" HeaderText="删除好友" CommandName="Delete">
														<HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:ButtonColumn>
												</Columns>
												<PagerStyle Visible="False" PageButtonCount="20" Mode="NumericPages"></PagerStyle>
											</asp:datagrid>
											<webdiyer:aspnetpager id="Pager" runat="server" PageSize="20" HorizontalAlign="Right" AlwaysShow="True"
												ShowCustomInfoSection="Left" NumericButtonCount="15" ShowBoxThreshold="21" FirstPageText="<font face=webdings>9</font>"
												PrevPageText="<font face=webdings>3</font>" NextPageText="<font face=webdings>4</font>" LastPageText="<font face=webdings>:</font>"
												Height="20px" onpagechanged="Pager_PageChanged"></webdiyer:aspnetpager><br>
											<table width="100%" border="0">
												<tr>
													<td>对勾选好友： <input class="btn" id="butdel" type="button" value=" 删 除 " name="butdel" runat="server" onserverclick="butdel_ServerClick">
														<input class="btn" id="butmsg" type="button" value="发短消息" name="butmsg" onClick="showly(document.all.HdnSelectedValues.value);">&nbsp;
														<select name="friendteam" id="friendteam" runat="server">
														</select>
														<INPUT class="btn" id="move" type="button" value="转移分组" name="move" runat="server" onserverclick="move_ServerClick">
														<INPUT id="HdnSelectedValues" type="hidden" name="HdnSelectedValues" runat="server"></td>
													<td><div align="right"><strong>查找好友：</strong> <input type="text" id="key" name="key" runat="server" class="kuan" size="15">
															<input class="btn" id="Button2" type="button" value=" 查 找 " name="Button2" runat="server" onserverclick="Button2_ServerClick">
															<strong><input name="mo" type="checkbox" id="mo" value="1" runat="server"> 模糊查找</strong>
														</div>
													</td>
												</tr>
											</table>
										</div>
									</TD>
								</TR>
							</TABLE>
						</TD>
						<TD width="5" background="pics/wenbenkuan_06.gif"><IMG height="5" src="pics/wenbenkuan_06.gif" width="5"></TD>
					</TR>
					<TR>
						<TD background="pics/wenbenkuan_08.gif"><IMG height="5" src="pics/wenbenkuan_07.gif" width="5"></TD>
						<TD background="pics/wenbenkuan_08.gif"><IMG height="5" src="pics/wenbenkuan_08.gif" width="5"></TD>
						<TD><IMG height="5" src="pics/wenbenkuan_09.gif" width="5"></TD>
					</TR>
				</TABLE>
			</div>
		</form>
	</body>
</HTML>
