<!--#include file="mdb.asp"-->
<!--#include file="config.asp"-->
<!--#include file="chklogin.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>我的网址收藏夹</title>
<style type="text/css">
<!--
a {
	font-size: 12px;
	color: #6A6A6A;
}
a:visited {
	color: #4F4F4F;
	text-decoration: none;
}
a:active {
	color: #F97C00;
	text-decoration: none;
}
a:link {
	color: #4F4F4F;
	text-decoration: none;
}
a:hover {
	text-decoration: none;
	color: #F97C00;
}
body,td,th {
	font-size: 12px;
	color: #4F4F4F;
}
.greenborder {border:1px solid #7EC8EA;}
.greenborder1 {border-right:1px solid #7EC8EA; background-color:#EFF8FC}
.inp {width:154px;border:1px solid #7f9db9;color:#052A5C}
.inp1 {width:66px;border:1px solid #7f9db9;color:#052A5C;font-size:9px;height:15px;margin-right:2px}
.slct {width:158px}
.sub {width:36px}
body {
	margin-top: 0px;
}
.style1 {font-weight: bold}
-->
</style>
<script>
function searchcheck()
{
    var form = document.searchForm;
	if (form.vKey.value =="")
	{
		alert("请输入关键字!");
		form.vKey.focus();
		return false;
	}
	return true;
}
function searchsitecheck()
{
    var form = document.searchsiteForm;
	if (form.vKey.value =="")
	{
		alert("请输入关键字!");
		form.vKey.focus();
		return false;
	}
	return true;
}
</script>

</head>

<body>
<%
set rs=server.createobject("adodb.recordset")
set rss=server.createobject("adodb.recordset")
rs.open "select * from 84wz_my_url where username='"&username&"'",conn,1,3
rss.open "select * from 84wz_my_class where username='"&username&"'",conn,1,3
if username="test" then
%>
<table width="100%"  border="0" cellpadding="3" cellspacing="1" bgcolor="#62B0FF">
  <tr>
    <td bgcolor="#BFDFFF"> <div align="center"><a href="reg.htm"><font color="#FF0000" size="4">欢迎体验试用网址收藏夹，您试用期间收藏的网站无法保存，请点此注册正式帐户！ </font></a> </div></td>
  </tr>
</table>
<%end if%>
<table width="100%"  border="0" cellspacing="1" cellpadding="0">
  <tr>
    <td colspan="2"><table width="100%"  border="0" cellpadding="0" cellspacing="1" bgcolor="#62B0FF">
      <tr>
        <td height="20" bgcolor="#BFDFFF"><strong>→ 方便快捷的网址收藏夹，收藏你喜欢！ </strong></td>
        <td bgcolor="#BFDFFF"></td>
      </tr>
      <tr>
        <td colspan="2" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td>&nbsp;&nbsp;<b><%=username%></b> 欢迎使用收藏夹！</td>
            <td>+ <a href="url.asp?menu=addurl" target="main">添加网址</a>&nbsp;&nbsp;+ <a href="class.asp?menu=addclass" target="main">添加分类</a></td>
            <td><form action="search.asp" style="margin-bottom:0px;" target="main" name="searchForm" onSubmit="return searchcheck();">
              <select name="by">
			  <option value="title" selected>标题</option>
			  <option value="url">链接</option>
			  <option value="memo">备注</option>
              </select>
			  <input type="text" name="vKey" size="10">
              <input type="submit" name="Submit" value="搜索收藏">
            </form></td>
            <td><a href="logout.asp">退出</a></td>
          </tr>
        </table></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td width="17%" vAlign=top>  
<table width="100%"  border="0" cellpadding="2" cellspacing="0">
<tr><td>
	<table width="100%"  border="0" cellpadding="0" cellspacing="1" bgcolor="#62B0FF">
      <tr>
        <td height="20" bgcolor="#BFDFFF">&nbsp;&nbsp;<a href="main.asp" target="main"><b><font size="4">全部</font></b>(<%=rs.recordcount%>)</a></td>
      </tr>
	</table></td></tr>
<%
rs.close
while not rss.eof
rs.open "select * from 84wz_my_url where username='"&username&"' and classid="&rss("id"),conn,1,3
%>
   <tr>
   <td>
    <table width="100%"  border="0" cellpadding="0" cellspacing="1" bgcolor="#62B0FF">
      <tr>
        <td bgcolor="#FFFFFF">&nbsp;&nbsp;<a href='main.asp?menu=classmain&id=<%=rss("id")%>' target='main'><%=rss("classname")%>(<%=rs.recordcount%>)</a></td>
      </tr>
	</table></td></tr>
<%rs.close
rss.movenext
wend
rss.close%>
    <tr><td>
      <table width="100%"  border="0" cellpadding="0" cellspacing="1" bgcolor="#F0F0F0">
        <tr>
          <td bgcolor="#F0F0F0">&nbsp;&nbsp;+ <a href="class.asp?menu=addclass" target="main">添加分类</a></td>
        </tr>
        <tr>
          <td>&nbsp;&nbsp;+ <a href="class.asp" target="main">分类管理</a></td>
        </tr>
        <tr>
          <td>&nbsp;&nbsp;+ <a href="pw.asp" target="main">修改密码</a></td>
        </tr>
      </table></td></tr></table></td>
    <td width="83%" vAlign=top>
	<iframe width=100% height=500px align="center" MARGINWIDTH="0" Name="main" MARGINHEIGHT="0" HSPACE="0" VSPACE="0" FRAMEBORDER="0" SCROLLING="no" src="main.asp"></iframe></td>
  </tr>
</table>
</body>
</html>

