<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.user_user_Friend_editaddress" %>
<%On Error Resume Next%>
<script type="Text/JavaScript" language="JavaScript">
	function Check()  {
	 if(document.addnotepad.friendname.value=="" ){
		 alert("请填写联系人！");
		 document.addnotepad.friendname.focus();
	 return false;
	 }
	 if(document.addnotepad.selectclass.value=="" ){
		 alert("联系人类型不能为空，请选择一个！");
		 document.addnotepad.selectclass.focus();
	 return false;
	 }
	 if(document.addnotepad.tel.value=="" ){
		 alert("请填写联系电话！");
		 document.addnotepad.tel.focus();
	 return false;
	 }
} 
//提示信息
function Working(URL,Msg){
	if(confirm(Msg)){
		window.location=URL;
	}
}
</script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>会员中心</title>
<link href="<%=AppConst.SiteUrl%>/<%=AppConst.Skinpath%>/style.css" rel="stylesheet" type="text/css" />
<script src="tools/Images/WebJs.js" language="JavaScript" type="text/JavaScript"></script>
<link href="tools/images/member.css" rel="stylesheet" type="text/css" />
<meta http-equiv=Content-Type content="text/html; charset=gb2312" />
</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_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">注意：通讯录删除后不能恢复，请谨慎使用！</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>
        <td style="height:50" valign="middle" bordercolor="#EDD6CA" class="0008"><table style="width:100%"  border="0" cellpadding="0" cellspacing="0">
                          <tr>
                            <td valign="top">
                              <table style="width:100%"  border="0" cellspacing="1" cellpadding="1">
                                <tr style="background-color:#FFEFD7">
                                  <td style="height:25; width:13%"><div align="center"><strong>姓 名</strong></div></td>
                                  <td style="height:25; width:17%"><div align="center"><strong>电 话</strong></div></td>
                                  <td style="height:25; width:19%"><div align="center"><strong>传 真</strong></div></td>
                                  <td style="height:25; width:19%"><div align="center"><strong>手 机</strong></div></td>
                                  <td style="height:25; width:20%"><div align="center"><strong>联 系 地 址</strong></div></td>
                                  <td style="width:12%"><div align="center"><strong>操 作</strong></div></td>
                                </tr>
                                <%If Rs.EOF Then%><tr><td align=center colspan=6><font color='#ff0000'>您还没有添加联系人信息......</font></td></tr><%End If%>
                                <%Dim i = 0 : Do While Not rs.EOF And i < rs.PageSize %>
                                <tr onmouseover="this.style.backgroundColor='#FFFFCC';" onmouseout="this.style.backgroundColor='';">
                                  <td style="height:23"><div align="center"><a href="User_friend_editaddress.aspx?id=<%=rs("id").Value%>"><b><font color="#CC0000"><%=rs("friendname").Value%></font></b></a></div></td>
                                  <td><div align="center"><a href="User_friend_viewaddress.aspx?id=<%=rs("id").Value%>"><%=rs("tel").Value%></a></div></td>
                                  <td><div align="center"><a href="User_friend_viewaddress.aspx?id=<%=rs("id").Value%>"><%=rs("Fax").Value%></a></div></td>
                                  <td><div align="center"><a href="User_friend_viewaddress.aspx?id=<%=rs("id").Value%>"><%=left(rs("mobile").Value,11)%></a></div></td>
                                  <td><div align="center"><a href="User_friend_viewaddress.aspx?id=<%=rs("id").Value%>"><%=left(rs("address").Value,8)%></a></div></td>
                                  <td><div align="center"> <a href="user_Friend_editaddress.aspx?id=<%=rs("id").Value%>">修改</a>&nbsp; <a href="javascript:Working('user_Friend_address.aspx?send=Del&id=<%=Rs("ID").Value%>','您确定要删除这条信息吗，这将是不可撤消的？')" >删除</a> </div></td>
                                </tr>
                                <%i = i + 1 : rs.MoveNext(): Loop %>
                              </table>
                              <table style="width:100%"  border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td>&nbsp;</td>
                                </tr>
                              </table>
                              <table style="width:100%" border="0" cellpadding="3" cellspacing="0">
                                <tbody>
                                  <tr style="background-color:#EFEFEF">
                                    <td style="background-color:#F6F6F6; height:18" align="middle"><%=Pagination(rs.pagecount,IsNull(Request("page"),1),rs.recordcount,rs.pagesize,"")%></td>
                                  </tr>
                                </tbody>
                            </table></td>
                          </tr>
                      </table></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">注意： 带 *   号的为必填项！</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 action="" method="POST" name="addnotepad" onsubmit="return Check()">
          <td style="height:50" valign="middle" bordercolor="#EDD6CA" class="0008"><table style="background-color:#F6F6F6; width:100%"  border="0" cellpadding="0" cellspacing="1" bordercolor="#FFFFFF">
            <tr>
              <td style="background-color:#FFFFFD; height:25" align="right"><div align="right">联系人：</div></td>
              <td style="background-color:#FFFFFF; height:25"><input name="friendname" type="text" id="friendname" size="15" maxlength="15" value="<%=aRs("friendname").Value%>" />
                  <span class="style1">*</span>
              <td style="background-color:#FFFDF7; height:25"><div align="right">类　型：</div></td>
              <td style="background-color:#FFFFFF; height:25">
                  <select name="selectclass" id="selectclass">
                    <option selected>=类型=</option>
                    <option value="我的好友">我的好友</option>
                    <option value="普通朋友">普通朋友</option>
                    <option value="商业伙伴">商业伙伴</option>
                    <option value="我的家人">我的家人</option>
                    <option value="其他朋友">其他朋友</option>
                  </select>
                  <div align="right"></div></td>
                  <script type="text/javascript">document.all.selectclass.value="<%=aRs("selectclass").Value%>";</script>
            </tr>
            <tr>
              <td style="background-color:#FFFFFD; height:25" align="right"><div align="right">电　话：</div></td>
              <td style="background-color:#FFFFFF; height:25"><input name="tel" type="text" id="tel" value="<%=aRs("tel").Value%>" size="15" maxlength="15" />
                  <span class="style1">*</span> </td>
              <td style="background-color:#FFFDF7; height:25"><div align="right">性　别：</div></td>
              <td style="background-color:#FFFFFF; height:25"><select name="sex" id="sex">
                  <option value="1" <%If IsTrue(aRs("sex").Value) Then%>selected<%End If%>>男</option>
                  <option value="0" <%If Not IsTrue(aRs("sex").Value) Then%>selected<%End If%>>女</option>
                </select>
                  <span class="style1">*</span> </td>
            </tr>
            <tr>
              <td style="background-color:#FFFFFD; height:25"><div align="right">手　机：</div></td>
              <td style="background-color:#FFFFFF; height:12"><input name="mobile" type="text" id="mobile" value="<%=aRs("mobile").Value%>" size="15" maxlength="15" /></td>
              <td style="background-color:#FFFDF7; height:25"><div align="right">传　真：</div></td>
              <td style="background-color:#FFFFFF; height:12"><input name="fax" type="text" id="fax" value="<%=aRs("fax").Value%>" size="15" maxlength="15" /></td>
            </tr>
            <tr>
              <td style="background-color:#FFFFFD; height:25"><div align="right">E_mail：</div></td>
              <td style="background-color:#FFFFFF; height:12"><input name="Email" type="text" id="Email" value="<%=aRs("Email").Value%>" size="15" maxlength="25" /></td>
              <td style="background-color:#FFFDF7; height:12"><div align="right">QQ或MSN：</div></td>
              <td style="background-color:#FFFFFF; height:12"><input name="qq" type="text" id="qq" value="<%=aRs("qq").Value%>" size="15" maxlength="15" /></td>
            </tr>
            <tr>
              <td style="background-color:#FFFFFD; height:25"><div align="right">网　址：</div></td>
              <td style="background-color:#FFFFFF; height:12" colspan="3"><input name="website" type="text" id="website" value="<%=aRs("website").Value%>" size="44" maxlength="30" /></td>
            </tr>
            <tr>
              <td style="background-color:#FFFFFD; height:25"><div align="right">联系地址：</div></td>
              <td style="background-color:#FFFFFF; height:12" colspan="3"><input name="address" type="text" id="address" value="<%=aRs("address").Value%>" size="44" /></td>
            </tr>
            <tr>
              <td style="background-color:#FFFFFD; height:25"><div align="right">公司名称：</div></td>
              <td style="background-color:#FFFFFF; height:12" colspan="3"><input name="company" type="text" id="company" value="<%=aRs("company").Value%>" size="44" />
              </td>
            </tr>
            <tr>
              <td style="background-color:#FFFFFD; height:25"><div align="right">公司联系方式：</div></td>
              <td style="background-color:#FFFFFF; height:12" colspan="3"><input name="comaddre" type="text" id="comaddre" value="<%=aRs("comaddre").Value%>" size="44" /></td>
            </tr>
            <tr>
              <td style="background-color:#FFFFFD; height:12" valign="top"><div align="right">备　注：</div></td>
              <td style="background-color:#FFFFFF; height:12" colspan="3"><textarea name="remark" cols="50" rows="6" id="remark"><%=aRs("remark").Value%></textarea>
              </td>
            </tr>
            <tr>
              <td style="background-color:#FFFFFD; height:35">&nbsp;</td>
              <td style="background-color:#FFFFFF; height:35" colspan="3">
                  <input type="submit" name="Submit" value="提交" />
                  <input type="reset" name="Submit" value="重置" />
                  <input type="hidden" name="addnotepad" value="ok" /><span>&nbsp;添加时间：<%=String.Format("{0:yyyy/M/d HH:mm:ss}", aRs("adddatetime").Value)%></span>
              </td>
            </tr>
          </table></td>
        </form>
      </tr>
    </table></td>
  </tr>
</table>
</body>
<%Page_Loaded()%>
</html>
