<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.user_user_Friend_List" %>
<%On Error Resume Next%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="<%=AppConst.SiteUrl%>/<%=AppConst.Skinpath%>/style.css" rel="stylesheet" type="text/css" />
<title>我的商业伙伴管理</title>
<script type="Text/JavaScript" language="javascript">
function TableMouseClick(Url){
	window.location=Url;
}
//提示信息
function Working(URL,Msg){
	if(confirm(Msg)){
		window.location=URL;
	}
}
//全选对应的组成员
function selectall(Me,Obj){
	if(Obj.length){
		for(i=0;i!=Obj.length;i++){
			Obj[i].checked=Me.checked;
		}
	}else{
		Obj.checked=Me.checked;
	}
}
//展开与关闭对应组
function showtable_msg(Obj,PicObj){
	if(Obj.style.display=="none"){
		Obj.style.display="inline";
		PicObj.src="images/On.gif";
	}else{
		Obj.style.display="none";
		PicObj.src="images/Off.gif";
	}
}
//全选所有
function aselectall(){
	for(i=0;i!=document.form.elements.length;i++){
		document.form.elements[i].checked=!document.form.elements[i].checked;
	}
}
//表单验证

function getcountcheck(){
	var intcount=0;
	for(i=0;i!=document.form.ID.length;i++){
		if(document.form.ID[i].checked){
			intcount++;
		}
	}
	return intcount;
}
</script>
</head>
<body>
<table style="width:100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table style="width:700" border="0" align="center" cellpadding="0" cellspacing="0">
      <!--tr>
        <td style="width:100"><div align="center"><a href="user_Friend_List.aspx"><img src="images/Friends_001.gif" width="50" height="48" border="0" /></a></div></td>
        <td style="width:100"><div align="center"><a href="user_Friend_add.aspx"><img src="images/Friends_002.gif" width="50" height="48" border="0" /></a><a href="User_guest_company.aspx"></a></div></td>
        <td style="width:100"><div align="center"><a href="user_Friend_class.aspx"><img src="images/Friends_003.gif" width="50" height="48" border="0" /></a></div></td>
        <td style="width:100"><div align="center"><a href="user_Friend_addclass.aspx"><img src="images/Friends_004.gif" width="50" height="48" border="0" /></a></div></td>
        <td style="width:100"><div align="center"><a href="user_notepad_list.aspx"><img height="48" src="images/j_position_supply.gif" width="50" border="0" /></a></div></td>
        <td style="width:100"><div align="center"><a href="user_Friend_address.aspx"><img height="48" src="images/m_draft.gif" width="50" border="0" /></a></div></td>
        <td style="width:100"><div align="center"><a href="User_system_main.aspx"><img height="48" src="images/guestbook_06.gif" width="50" border="0" /></a></div></td>
      </tr>
      <tr>
        <td style="width:100"><div align="center"><strong>我的商业伙伴</strong></div></td>
        <td style="width:100"><div align="center"><strong>添加商业伙伴</strong></div></td>
        <td style="width:100"><div align="center"><strong>我的伙伴分组</strong></div></td>
        <td style="width:100"><div align="center"><strong>添加伙伴分组</strong></div></td>
        <td style="width:100"><div align="center"><strong>我的记事本</strong></div></td>
        <td style="width:100"><div align="center"><strong>我的通讯录</strong></div></td>
        <td style="width:100"><div align="center"><strong>返回用户中心</strong></div></td>
      </tr-->
      <tr>
        <td style="width:100"><div align="center"><a href="user_Friend_List.aspx"><img src="images/Friends_001.gif" width="50" height="48" border="0" /></a></div></td>
        <td style="width:100"><div align="center"><a href="user_Friend_add.aspx"><img src="images/Friends_002.gif" width="50" height="48" border="0" /></a><a href="User_guest_company.aspx"></a></div></td>
        <td style="width:100"><div align="center"><a href="user_notepad_list.aspx"><img height="48" src="images/j_position_supply.gif" width="50" border="0" /></a></div></td>
        <td style="width:100"><div align="center"><a href="user_Friend_address.aspx"><img height="48" src="images/m_draft.gif" width="50" border="0" /></a></div></td>
        <td style="width:100"><div align="center"><a href="User_system_main.aspx"><img height="48" src="images/guestbook_06.gif" width="50" border="0" /></a></div></td>
      </tr>
      <tr>
        <td style="width:100"><div align="center"><strong>我的商业伙伴</strong></div></td>
        <td style="width:100"><div align="center"><strong>添加商业伙伴</strong></div></td>
        <td style="width:100"><div align="center"><strong>我的记事本</strong></div></td>
        <td style="width:100"><div align="center"><strong>我的通讯录</strong></div></td>
        <td style="width:100"><div align="center"><strong>返回用户中心</strong></div></td>
      </tr>
    </table></td>
  </tr>
</table>
<table style="width:100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table style="width:100%; height:24" cellspacing="0" cellpadding="0"  border="0">
  <tr>
    <td style="background-color:#FFF1EB; height:24; width:142" align="center" valign="bottom" class="TDBG1"><strong><span #invalid_attr_id="none"><strong>我的商业伙伴</strong></span></strong></td>
    <td class="bottom"><div align="right"><span class="note"> 注意： 好友信息删除后不可恢复 </span><span class="note">！ </span></div></td>
  </tr>
</table>
<table style="width:100%"  border="0" cellpadding="0" cellspacing="0" class="topnone">
  <tr>
    <td style="background-color:#FFFFFF"><table style="width:100%; height:50" bordercolor="#FFF1EB" cellspacing="0" cellpadding="4" align="center" border="6">
      <tr>
        <form name="form" method="post">
          <td style="height:50" valign="middle" bordercolor="#EDD6CA" class="0008">
            <%Do While Not cRs.EOF%>
            <table style="background-color:#AAE3FF; width:100%"  border="0" cellpadding="0" cellspacing="1">
              <tr>
                <td style="background-color:#CEEFFF; height:21"><table style="width:100%"  border="0" cellspacing="0" cellpadding="0">
                    <tr style="background-color:#EEF5F9">
                      <td style="height:23; width:4%" align="center"><img src="images/OFF.gif" width="16" height="12" name="P<%=cRs("id").Value%>" /></td>
                      <td style="width:75%; cursor:hand " class="000011" onclick="showtable_msg(T<%=cRs("id").Value%>,P<%=cRs("id").Value%>)"><%=cRs("C_Name").Value%></td>
                      <td style="width:16%; cursor:hand " align="center" onclick="showtable_msg(T<%=cRs("id").Value%>,P<%=cRs("id").Value%>)">成员数 <%=GetCountAddMyFriend(cRs("id").Value)%></td>
                    </tr>
                </table></td>
              </tr>
            </table>
            <table style="background-color:#AAE3FF; width:100%; display:none "  border="0" cellpadding="0" cellspacing="1" id="T<%=cRs("id").Value%>">
              <% Dim Rs = GetGroupFriend() : Do While Not Rs.EOF%>
              <tr style="background-color:#FFFFFF" onmouseover="this.style.backgroundColor='#f7f7f7';" onmouseout="this.style.backgroundColor='#FFFFFF';">
                <td style="height:23"><table style="width:100%"  border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td style="width:3%" align="center"></td>
                      <td style="width:4%" align="center"><input name="ID" type="checkbox" id="ID<%=cRs("id").Value%>" value="<%=Rs("Id").Value%>" /></td>
                      <td><%=rs("M_userid").Value%> [<%=rs("M_Province").Value%>·<%=rs("M_City").Value%>] 销售:<%=GetFriendInfosale(rs("M_userid").Value)%> 采购:<%=GetFriendInfobuy(rs("M_userid").Value)%></td>
                      <td style="width:150px"><script type="Text/JavaScript" src="<%=AppConst.SiteUrl%>/Include/online_style1.aspx?Aseanec_userid=<%=rs("M_userid").Value%>"></script></td>
                    </tr>
                </table></td>
              </tr>
              <%Rs.MoveNext() : Loop : Rs.Close() : Rs=Nothing%>
            </table>
            <table style="height:16; width:100%"  border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td style="height:10"></td>
              </tr>
            </table>
            <%cRs.MoveNext() : Loop%>
            <table style="height:25; width:100%"  border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td style="height:25" align="right"><input type="hidden" name="Strsend" value="isok" />
                    <input name="Submit" type="button" class="TextBox" onclick="aselectall()" value="反选" />
                    <input name="Submit4" type="submit" class="TextBox" value="删除所选商友" /></td>
              </tr>
            </table></td>
        </form>
      </tr>
    </table></td>
  </tr>
</table>
</body>
<%Page_Loaded()%>
</html>
