www.gusucode.com > 仿51.com的php源码 1.1 > index1.php
<?php include("include/dbclass.php"); $dbc=new DbConn(); ?> <!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 type="text/css">a:link{color:#2265b2;text-decoration:none}a:visited{color:#2265b2;text-decoration:none}a:hover{color:#2265b2;text-decoration:underline}body{font-size:12px;line-height:20px;margin:0;text-align:center}img{border:0}.input{border:1px solid #a4bcd5;width:100px;height:16px;margin:0 0 3px 0}#main{width:774px;margin:0 auto;text-align:left}#logo{position:absolute;top:24px;width:140px;margin-left:25px}#nav1{position:absolute;top:28px;background-image:url(images/bg_nav1.gif);background-repeat:no-repeat;width:260px;height:18px;padding:3px 0 0 34px;color:#72A4D7;margin-left:483px;word-spacing:1px}#nav1 span{padding:0 3px;}#nav1 a{color:#72A4D7;font-weight:bold;}#nav2{position:absolute;top:72px;height:23px;margin-left:160px;font-size:14px}#nav2 ul{list-style-type:none;margin:0;padding:0}#nav2 ul li{float:left;margin-left:1px;height:23px;display:block}#nav2 ul li a{background-repeat:no-repeat;color:#fff;display:block}#nav2 ul li a:hover{padding-bottom:7px;text-decoration:none}#link1 a, #link2 a, #link3 a, #link4 a{background-image:url(images/mh2.gif);padding:2px 5px 0 10px;width:32px}#link1 a:hover, #link2 a:hover, #link3 a:hover, #link4 a:hover{background-image:url(images/mh1.gif)}#link5 a{background-image:url(images/ma2.gif);padding:2px 5px 0 8px;width:44px}#link8 a{background-image:url(images/ma2.gif);padding:2px 5px 0 11px;width:41px}#link8 a:hover, #link5 a:hover{background-image:url(images/ma1.gif)}#link6 a{background-image:url(images/mc2.gif);padding:2px 5px 0 27px;width:68px}#link6 a:hover{background-image:url(images/mc1.gif)}#link7 a{background-image:url(images/bg_nav2_5a.gif);padding:2px 5px 0 11px;width:73px}#link7 a:hover{background-image:url(images/bg_nav2_5b.gif)}#link9 a{background-image:url(images/bg_nav2_6a.gif);padding:2px 5px 0 10px;width:87px}#link9 a:hover{background-image:url(images/bg_nav2_6b.gif)}#link6 a, #link7 a, #link8 a{font-size:12px;} #ht{position:relative;top:95px;background-color:#367dc6;width:774px;height:23px}#mb{position:absolute;top:123px;width:192px;height:156px;border:1px solid #a3bad6;background-color:#f7f7f7}#mb_t{width:180px;height:21px;padding:5px 0 0 10px;margin:1px;background-image:url(images/bg_title_login.jpg);background-repeat:repeat-x;color:#fff;font-size:14px;font-weight:bold}#mb_main{width:165px;margin:8px 0 8px 16px}#left2{position:absolute;top:286px;width:170px;height:118px;border:1px solid #a3bad6;background-color:#f7f7f7;padding:10px 6px 8px 16px}#left2 ul{margin:0;padding:0;list-style-type:none;margin-bottom:12px}#left2 ul a{text-decoration:underline}#left2 ul a:hover{text-decoration:none}#left2 ul li{background-image:url(images/bg_arrow1.gif);background-repeat:no-repeat;background-position:0 5px;padding:0 0 0 12px;margin-bottom:3px}#link_red{color:#f30}#link_black{}#left3{position:absolute;top:428px;width:192px;height:148px;border:1px solid #a3bad6;background-color:#f7f7f7}#left3_t{width:180px;height:21px;padding:5px 0 0 10px;margin:1px;background-color:#367dc6;color:#fff;font-size:14px;font-weight:bold}#left3_t a{color:#fff;text-decoration:underline}#left3_t a:hover{color:#fff;text-decoration:none}#left3 ul{margin:0;padding:0;list-style-type:none;margin:10px 6px 8px 16px}#left3 ul a{text-decoration:underline}#left3 ul a:hover{text-decoration:none}#left3 ul li{background-image:url(images/icon_love.jpg);background-repeat:no-repeat;background-position:0 3px;padding:0 0 0 14px;margin-bottom:1px}#mainpic{position:absolute;top:123px;margin-left:199px}#newer{position:absolute;top:286px;margin-left:199px;width:573px;height:168spx;border:1px solid #a3bad6}#newer img{width:80px;height:90px}#newer_title{width:561px;height:21px;color:#2266af;font-size:14px;font-weight:bold;padding:4px 0 0 10px;margin:1px;background-image:url(images/bg_title_newer.jpg);background-repeat:repeat-x}#newer ul{padding:0;margin:12px 0 0 22px; list-style-type:none}#newer ul li{display:block;float:left;width:106px;line-height:22px;text-align:center}#newer ul li img{padding:6px;border:#999 1px solid;background-color:#fff}#etc{position:absolute;top:470px;margin-left:199px}#etc img{margin-left:5px}#etc2{margin-right:90px}#foot{width:774px;border-top:8px solid #367dc6;text-align:center;color:#2265b2;padding:20px 0}#foot img{margin:10px 0} .btn{font-size:12px;BORDER:1px solid #002D96;PADDING:2px 2px 0;FONT-SIZE:12px;FILTER:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#FFFFFF, EndColorStr=#9DBCEA);CURSOR:hand;COLOR:black;;background-color:#BFEFFF}#link2 a{background-image:url(images/me2.gif);padding:2px 0px 0 15px;width:73px}#link2 a:hover{background-image:url(images/me1.gif)}</style> <SCRIPT LANGUAGE="JavaScript"> /*********Js Function Begin*********/ function AppPopRandFriend() { var win1 = window.open("about:blank"); if(win1) { win1.document.open(); win1.document.write("<DIV style=\"font-size: 12px; line-height: 18px;\">正在打开对方主页,请稍候...</DIV>"); win1.document.close(); win1.location.href = "http://www.wu-liao.com/RandomUser/RandomUser.php?user=<?php echo $_COOKIE['uid']; ?>"; win1.focus(); } } /*********Js Function End*********/ function check() { if(document.form1.passport_51_user.value=="") { alert("请输入用户名!"); document.form1.passport_51_user.focus(); return false } if(/[^a-zA-Z0-9_]/g.test(document.form1.passport_51_user.value) || /[^a-zA-Z]/g.test(document.form1.passport_51_user.value.substr(0,1))) { alert("用户名只能用数字或英文,并且必须为英文字母开头!"); document.form1.passport_51_password.focus(); return false; } if(document.form1.passport_51_password.value=="") { alert("请输入密码!"); document.form1.passport_51_password.focus(); return false } //document.form1.submit(); return true; } function check_username() { document.form1.passport_51_user.value = document.form1.passport_51_user.value.replace(/\s/g,""); } </SCRIPT> </head> <body> <div id="main"> <div id="logo"><img src="images/logo.gif" width="124" height="65" /></div> <div id="nav1"> <a href="http://www.wu-liao.com">网站首页</a><span>|</span><a href="http://www.wu-liao.com/Online/Online.php">用户列表</a><span>|</span><a href="javascript:AppPopRandFriend()">乱弹一下</a> </div> <div id="nav2"> <ul><li id="link9"><a href="/User/Main.php">用户管理中心</a></li><li id="link2"><a href="/Diary/DiaryList.php">日记文集</a></li><li id="link1"><a href="/Photo/PhotoList.php">相册</a></li><li id="link3"><a href="/image/imageList.php">图库</a></li><li id="link5"><a href="/Music/MusicList.php"> 音乐 </a></li> <li id="link6"><a href="/Memo/MemoList.php"> 秘密记事本</a></li><li id="link7"><a href="/Fav/FavList.php">网址收藏夹</a></li><li id="link8"><a href="/Addr/AddrList.php">通讯录</a></li></ul> </div> <div id="ht"></div> <?php if($_COOKIE["uid"]=="") {?> <form name="form1" action="login.php?action=login" method="post"> <div id="mb"> <div id="mb_t">用户登录</div> <div id="mb_main">用户名: <input name="passport_51_user" class="input" onblur="check_username();"/> <br/>密 码: <input name="passport_51_password" type="password" class="input" /> <input type="image" src="images/btn_login.jpg" alt="登录" width="94" height="19" border="0" style="vertical-align:middle" onclick="return check();"/> <img src="images/img_member_1.gif" alt="" width="156" height="22" /><img src="images/bg_arrow1.gif" width="12" height="7" /><a href="User/Reg1.php" >立即注册</a> <img src="images/bg_arrow1.gif" width="12" height="7" /><a href="UserPasswd/PasswdReSet.php" >忘记密码</a> </div> </div> </form> <?php }else { ?> <form> <div id="mb"> <div id="mb_t">欢迎登录</div> <div id="mb_main">用户名:<?php echo $_COOKIE["uid"]; ?></div> <div id="mb_main">昵 称:<?php echo $_COOKIE["nickname"]; ?></div> <div > <a href='http://www.wu-liao.com/User/Main.php'><input onclick="location.replace('http://www.wu-liao.com/User/Main.php')" name="Submit" type="button" class="btn" value="进入管理中心" /></a> <a href='http://www.wu-liao.com/login.php?action=logout'><input name="Submit" onclick="location.replace('http://www.wu-liao.com/login.php?action=logout')" type="button" class="btn" value="退出" /></a></div> </div> </form> <?php }?> <div id="left2"> <ul> <li><a href="/User/Online.php" ><strong>用户列表</strong></a></li> <li><a href="javascript:AppPopRandFriend()">每次来,乱弹一下</a></li> <li><a href="User/GoSearch.php" ><strong>交友搜索</strong></a></li> <li><a href="#link" onclick="alert('问题报告,请联系Q号:46006924');" id="link_black">问题报告</a> | <a href="/yijian/index.php" id="link_black" >意见反馈</a></li> </ul> </div> <div id="left3"> <div id="left3_t"><span id="etc2">网站公告</span></div> <marquee direction='up' scrollamount='1' height='100'> <ul><li><a href="/yijian/index.php" target="_blank" >本站正在测试中,有好的点子请与管理员联系!</a></li></ul> <!-- cached at 2006-11-17 11:01:02 by mayer --> </marquee> </div> <div id="mainpic"> <img src="http://www.wu-liao.com/images/hl_index_2.jpg" alt="" width="575" height="158" border="0" usemap="#Map" /> <map name="Map" id="Map"> <area shape="rect" coords="235,33,347,65" href="http://www.wu-liao.com/User/Reg1.php" /> </map> </div> <div id="newer"> <div id="newer_title">新人推荐<span style="margin-left:360px;font-size:12px;"> </span></div> <ul> <?php $sql="select User_Account,face from userdata where face<>'images/nophoto.gif' and Show_Default='0' and IsHomepageClose='0' order by rand() desc limit 0,10"; $query_id=$dbc->query($sql); while($row=@mysql_fetch_array($query_id)) { ?> <li> <a href="home.php?user=<?php echo $row["User_Account"]; ?>" target="_blank"> <img src="User/<?php echo $row["face"]; ?>" alt="" width="80" height="90" /><br /> <?php echo $row["User_Account"]; ?></a> </li> <?php }?> </ul> </div></div> <div id="etc"></div> <div style="padding-top:547px;"> <style type=text/css> #linknav { width:160px; padding-top:3px; line-height:24px; height:24px; color:#FFF; font-size:10.5pt; text-align:center; background-color:#1B7BCE; float:left; } .whitelink a:link,.whitelink a:visited,.whitelink a:active{ color:#fff; font-weight:bolder; font-size:10.5pt; text-decoration: none; line-height:22px; } .whitelink a:hover{ color:#fff; text-decoration:underline; } #linknav-r { width:610px; background-color:#e5e5e5; float:right; padding-top:3px; line-height:24px; height:28px; } </style> <table width="778" border="0" style="border:1px solid #bbb;margin-top:10px;" align=center> <tr> <td colspan="5"> <div id="linknav" class="whitelink">合作伙伴·友情链接</div> <div id="linknav-r" class="whitelink"></div> </td> </tr> <tr align=center> <td width="25%" height=43><a href="http://www.supei.com" target="_blank"><img src="/images/link/logo1.jpg" width="80" height="31" ></a></td> <td width="25%"></td> <td width="25%"></td> <td width="25%"></td> <td width="25%"></td> </tr> </table> <table width="776" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td bgcolor="#4798ED" height="3" colspan="2"></td> </tr> <tr> <td height="31" align="center" background="/images/bottombg.gif" colspan="2"> <table width="600" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="8"><img src="/images/bottom_01.gif" width="8" height="34"></td> <td background="/images/bottom_02.gif" align="center">关于本站 | 联系我们 | 业务合作 | 广告合作 | <a href="#" onclick="window.external.AddFavorite(document.location.href,document.title)" onmousemove="status='收藏本页';" onmouseout="status='';">收藏本站</a></td> <td width="9"><img src="/images/bottom_03.gif" width="9" height="34"></td> </tr> </table> </td> </tr> <tr> <td height="24" valign="bottom" width="100%" style="line-height:150%"><br> <img src="/images/pic_foot.gif" alt="" width="192" height="27" /> </td> </tr> </table> <div style="display:none"> <script language="javascript" src="http://count29.51yes.com/click.aspx?id=291726836&logo=1"></script> </div> </div> </body> </html>