<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="myfriend.aspx.cs" Inherits="Webdisk.myfriend" %>
	<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>
<%@ Register Src="~/userleft.ascx" TagPrefix="uc1" TagName="userleft" %>
<%@ Register Src="~/usertop.ascx" TagPrefix="uc1" TagName="usertop" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>我加的好友</title>
     <link rel="stylesheet" href="css/bootstrap.min.css">
	<link rel="stylesheet" href="css/atlantis.css">
	
</head>
<body>
<div class="wrapper">
    <!-- begin::navigation -->
         <uc1:usertop runat="server" ID="usertop" />
    <uc1:userleft runat="server" ID="userleft" />
    <!-- end::navigation -->

   <div class="main-panel">

        <div class="content">
            <div class="page-inner">

        <div >

           <div class="card">
			    <div class="card-body">
							<div class="row">&nbsp;&nbsp;&nbsp;&nbsp;<img src="pics/users.gif" width="16" height="16" align="absMiddle">&nbsp;&nbsp;&nbsp;&nbsp;<h5><b>我加的好友</b></h5></div>
					<form id="Form1" method="post" runat="server">
						 <div class="<%=Webdisk.DAL.Config.IsMobile %>">
			   <asp:datagrid id="DataGrid" runat="server" AutoGenerateColumns="False" Width="100%" PageSize="20"
												CssClass="table-hover" AllowSorting="True" BorderStyle="None" BorderWidth="0px" GridLines="None" AlternatingItemStyle-CssClass="GridMove">
												<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>
															<div class="custom-control custom-checkbox mr-0">
												<input type="checkbox" class="custom-control-input" id="customCheckAll">
												<label class="custom-control-label" for="customCheckAll"></label>
											</div>
														</HeaderTemplate>
														<ItemTemplate>
															 <div class="custom-control custom-checkbox mr-0">
											<INPUT id='chkSelect<%# Eval("id") %>' onclick=AddRemoveValues(this) class='custom-control-input' name="checkbox" type=checkbox value='<%#DataBinder.Eval(Container.DataItem,"FriendName")%>'>
												 <label class="custom-control-label" for="chkSelect<%# Eval("id") %>"></label></div>
														
														</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><INPUT id="HdnSelectedValues" type="hidden" name="HdnSelectedValues" runat="server"><br></div>	
													 <div class="hidden-sm hidden-md hidden-lg text-center"><%=sjinfo %><p></div>
						<webdiyer:aspnetpager CssClass="paginator" PagingButtonSpacing="0"  CurrentPageButtonClass="cpb" id="Pager" runat="server" PageSize="20" NumericButtonCount="5"
												ShowCustomInfoSection="Left" AlwaysShow="True" HorizontalAlign="Right" FirstPageText="|<" PrevPageText="<" NextPageText=">" LastPageText=">|" Height="20px" onpagechanged="Pager_PageChanged" CustomInfoTextAlign="Left"></webdiyer:aspnetpager><br>
											
											<table width="100%" border="0">
												<tr>
													<td><div class="row align-items-center justify-content-center">&nbsp;&nbsp;&nbsp;&nbsp;对勾选好友： <input class="btn btn-outline-light" id="butdel" type="button" value=" 删 除 " name="butdel" runat="server" onserverclick="butdel_ServerClick"> &nbsp;&nbsp;
														<input class="btn btn-outline-light" id="butmsg" type="button" value="发短消息" name="butmsg" onclick="showly(document.all.HdnSelectedValues.value);">&nbsp;

														 <div class="col-auto my-1">
      <select class="form-control" id="friendteam" runat="server">
      
      </select>
    </div>
														<INPUT class="btn btn-outline-light" id="move" type="button" value="转移分组" name="move" runat="server" onserverclick="move_ServerClick">
														</div></td>
												</tr>
												<tr>
												  <td><p></td>
												<tr>
												  <td>
													  <div class="row align-items-center justify-content-center">&nbsp;&nbsp;&nbsp;&nbsp;查找好友：&nbsp;<input type="text" id="key" name="key" runat="server" class="form-control" style="width:20%" size="15" placeholder="输入用户名">&nbsp;&nbsp;
															<input class="btn btn-outline-light" id="Button2" type="button" value=" 查 找 " name="Button2" runat="server" onserverclick="Button2_ServerClick">&nbsp;&nbsp;
															<div class="custom-control custom-checkbox mr-3">
												<input type="checkbox" class="custom-control-input" id="mo" value="1" runat="server">
												<label class="custom-control-label" for="mo">模糊查找</label>
											</div>
														</div></td>
	  </tr>
											</table></form>
			    </div>
			    </div>

     </div> </div> </div>
    <!-- end::main content -->
</body>
</html>			
  <script type="text/javascript" src="js/calendar.js"></script>
<script src="js/jquery.3.2.1.min.js"></script>
	<script src="js/popper.min.js"></script>
	<script src="js/bootstrap.min.js"></script>
	<!-- jQuery UI -->
	<script src="js/jquery-ui.min.js"></script>
	<script src="js/jquery.ui.touch-punch.min.js"></script>
	
	<!-- jQuery Scrollbar -->
	<script src="js/jquery.scrollbar.min.js"></script>
	<!-- Atlantis JS -->
	<script src="js/webfont.min.js"></script>
	<script src="js/atlantis.js"></script>
<script src="js/function.js"></script>
			<script>
function edit(id){
	document.all.HdnSelectedValues.value = "`" +document.getElementById("chkSelect"+id).value; 
	document.getElementById("editbtn").click();
}
function cancel(id){
	document.all.HdnSelectedValues.value = "`" +document.getElementById("chkSelect"+id).value; 
	document.getElementById("cancelbtn").click();
}			
                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=650,height=400');
                }
            </script>

