<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.user_user_favorite_website" %>
<%On Error Resume Next%>
<script type="Text/JavaScript" language="JavaScript">
	function Check()  {
	 if(document.addnotepad.W_name.value=="" ){
		 alert("请填写网站名称！");
		 document.addnotepad.W_name.focus();
	 return false;
	 }
	 if(document.addnotepad.W_url.value=="" ){
		 alert("请填写网址！");
		 document.addnotepad.W_url.focus();
	 return false;
	 }
	 if(document.addnotepad.W_sm.value=="" ){
		 alert("请填写网站说明！");
		 document.addnotepad.W_sm.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" />
<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_favorite_info.aspx?f_type=1"><img src="images/fav_01.gif" width="50" height="48" border="0" /></a></div></td>
        <td style="width:100"><div align="center"><a href="user_favorite_info.aspx?f_type=2"><img src="images/fav_02.gif" width="50" height="48" border="0" /></a><a href="user_Friend_add.aspx"></a><a href="User_guest_company.aspx"></a></div></td>
        <td style="width:100"><div align="center"><a href="user_favorite_website.aspx"><img src="images/fav_03.gif" width="50" height="48" border="0" /></a><a href="user_Friend_class.aspx"></a><a href="User_guest_Send.aspx"></a></div></td>
        <td style="width:100"><div align="center">
          <div align="center"><a href="user_question_list.aspx"><img height="48" src="images/fav_04.gif" width="50" border="0" /></a></div>
          <a href="User_work_search.aspx"></a></div></td>
        <td style="width:100"><div align="center">
          <div align="center"><a href="user_question_add.aspx"><img height="48" src="images/fav_05.gif" width="50" border="0" /></a></div>
          <a href="User_work_favorite.aspx"></a></div></td>
        <td style="width:100"><div align="center">
          <div align="center"><a href="user_question_all.aspx"><img height="48" src="images/fav_06.gif" width="50" border="0" /></a></div>
          <a href="User_work_person.aspx"></a></div></td>
        <td style="width:100"><div align="center">
          <div align="center"><a href="User_system_main.aspx"><img height="48" src="images/guestbook_06.gif" width="50" border="0" /></a><a href="User_products_add.aspx"></a></div>
          <a href="User_work_search.aspx"></a></div></td>
      </tr>
      <tr>
        <td style="width:100"><div align="center"><strong>我收藏的商机</strong></div></td>
        <td style="width:100"><div align="center">
          <p><strong>我收藏的产品</strong></p>
        </div></td>
        <td style="width:100"><div align="center"><strong>我收藏的网址</strong></div></td>
        <td style="width:100"><div align="center"><strong>我提交的问答</strong><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>
        <td style="height:50" valign="middle" bordercolor="#EDD6CA" class="0008">
            <table style="width:100%"  border="0" cellspacing="1" cellpadding="1">
                <tr style="background-color:#FFEFD7">
                  <td style="height:25; width:34%"><div align="center"><strong>网站名称</strong></div></td>
                  <td style="height:25; width:54%"><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=3><font color='#ff0000'>还没有收藏网址......</font></td></tr><%End If%>
                <%Dim i = 1 : Do While Not Rs.EOF AndAlso i < Rs.PageSize%>
                <tr style="background-color:<%="#ffffff,#f5f5f5".Split(",")(i Mod 2)%>"  onmouseover="this.style.backgroundColor='#f2f2f2'" onmouseout="this.style.backgroundColor=''">
                  <td style="height:25"><div align="center"><a href="<%=rs("W_url").Value%>" target="_blank"><%=rs("w_name").Value%></a></div></td>
                  <td style="height:25"><div align="center" title="<%=rs("w_sm").Value%>"><%=left(rs("w_sm").Value,20)%></div></td>
                  <td><div align="center"> <a href="User_favorite_editwebsite.aspx?id=<%=rs("id").Value%>">修改</a>&nbsp; <a href="javascript:Working('User_favorite_website.aspx?send=Del&id=<%=Rs("id").Value%>','您确定要删除这条信息吗，这将是不可撤消的？')" >删除</a> </div></td>
                </tr>
                <%i = i + 1 : Rs.MoveNext() : Loop%>
              </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>
<form action="" method="POST" name="addnotepad" onsubmit="return Check()">
  <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>
            <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; width:116"><div align="right">网 站 名 称：&nbsp;</div></td>
      <td style="background-color:#FFFFFF; height:12; width:443"><input name="W_name" type="text" id="W_name" size="30" />
      </td>
    </tr>
    <tr>
      <td style="background-color:#FFFFFD; height:25; width:116"><div align="right">网 址：&nbsp;</div></td>
      <td style="background-color:#FFFFFF; height:12"><input name="W_url" type="text" id="W_url" value="http://" size="30" />
      </td>
    </tr>
    <tr>
      <td style="background-color:#FFFFFD; height:12; width:116"><div align="right">说明：&nbsp;</div></td>
      <td style="background-color:#FFFFFF; height:12">
        <textarea name="W_sm" cols="50" rows="6" id="W_sm"></textarea>
      </td>
    </tr>
    <tr>
      <td style="background-color:#FFFFFD; height:24"><div align="right">用户名：&nbsp;</div></td>
      <td style="background-color:#FFFFFF; height:24"><input name="w_userid" type="text" id="w_userid" value="<%=AppConst.CookieUserID%>" size="20" readonly="readonly" /></td>
    </tr>
    <tr>
      <td style="background-color:#FFFFFD; height:35; width:116">&nbsp;</td>
      <td style="background-color:#FFFFFF; height:35">
        <input type="submit" name="Submit" value="提交" />
        <input type="reset" name="Submit" value="重置" />
        <input type="hidden" name="addnotepad" value="ok" />
      </td>
    </tr>
  </table></td>
          </tr>
      </table></td>
    </tr>
  </table>
</form>
</body>
<%Page_Loaded()%></html>
