www.gusucode.com > 仿51.com的php源码 1.1 > myie/index.php
<?php include("../include/dbclass.php"); $dbc=new DbConn(); $user=$_GET["user"]; $key=$_GET["key"]; $sql="select id from userdata where User_Account='$user' and FavKey='$key'"; $rs=$dbc->getRs($sql); if ($rs["id"]=="") { header("Location:../404.php?id=4"); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>我的网址导航</title> <style> td{ font-size:14px; } a{ font-size:14px;color:#000000;text-decoration:none; } a:hover{ font-size:14px;color:#ff0000;text-decoration:underline; } </style> </head> <body> <center> <table border="0" width="690"><tr><td width="50%"><img src="top.jpg"></td><td width="50%" valign="bottom" style="padding:2pt" align="right"><img src="5.gif"> <a href="#" style="color:#7e7e7e;font-size:9pt;letter-spacing:1pt" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage(location.href)">设为上网首页</a> <img src="5.gif"> <a href="http://www.wu-liao.com" style="color:#7e7e7e;font-size:9pt;letter-spacing:1pt">登陆管理</a> </td></tr></table> <table width="690" border="0" cellpadding="0" cellspacing="1" bgcolor="#5a5a5a"> <tr> <td bgcolor="#ffffff"> <table width='100%' border='0' cellpadding='5' cellspacing='2'> <tr bgcolor="#6699cc"> <td height="20" width="15%" align="center"><font color="#ffffff">网 址 分 类</font></td><td height="20" width="85%" align="center" style="color:#ffffff">相 关 链 接</td> </tr> <?php $sql1="select GroupName from FavGroup where User_Account='$user'"; $result=$dbc->query($sql1); $i=1; while ($row=@mysql_fetch_array($result)) { $GroupName=$row["GroupName"]; ?> <tr <?php if(($i % 2)=="0"){?>bgcolor='#99ccff'<?php }else{?> bgcolor='#E6F3FF'<?php }?>><td align='right' height=20 width='15%'><font color='#484848'><?php echo $row["GroupName"];?>:</font></td><td width=85% style='line-height:150%' align="left"> <?php $sql2="select Fav_Url,Fav_Title,Fav_IsAddRed,Fav_Memo from fav where User_Account='$user' and Fav_Group='$GroupName'"; $result1=$dbc->query($sql2); while ($row1=@mysql_fetch_array($result1)) {?><a href='<?php if (substr($row1["Fav_Url"],0,7) !="http://"){ echo "http://".$row1["Fav_Url"];}else { echo $row1["Fav_Url"];}?>' target='_blank'><font color='<?php echo $row1["Fav_IsAddRed"]; ?>'> <?php if ($row1["Fav_Title"]==""){?>无标题<?php }else{?><?php echo $row1["Fav_Title"];?><?php }?> </font></a> <?php }?></td></tr> <?php $i=$i+1; }?> </table></td> </tr> </table><br> <br> <p align="center" style="font-size:9pt;color:#7e7e7e">重要提示:请勿在网址导航中收藏色情、反动等非法网站网址!如有发现,立即删除用户。</p> </center> </body> </html>