www.gusucode.com > 仿51.com的php源码 1.1 > vip_image.php
<?php include("home_top.php");?> <?php include("include/page.php");?> <?php $group=$_GET["group"]; $page=(int)$_GET["page"]; $deferentparameter="&group=".$group."&go=3&user=".$user; $maxline = 10; ?> <?php if($group==null){ $sqlf="select GroupName from ImageGroup where User_Account='$user' and hiddenGroup='0' order by GroupOrder desc limit 0,1"; $rs=$dbc->getRs($sqlf); if($rs!=null) { ?> <script> try{ if(top!=window){ document.domain ="51.com"; }else{ //top.location.href="http://my.51.com/webim/main.php?refer=%2F%2FDiary%2FDiaryList.php"; top.location.href="vip_image.php?user=<?php echo $user; ?>&go=3&group=<?php echo $rs["GroupName"]; ?>"; } }catch(e){} function showNewMessage(user){ top.showNewMessage(user); } </script> <?php } }?> <div id="main"> <div id="nyle"> <div id="ml"> <div id='photo_style_head' class="nyti t"> <TABLE> <TR> <TD> <div id='photo_style_head_font' class="nynav">我的图库</div> </TD> </TR> </TABLE> </div> <div id='photo_style_body' class="nybo t"> <table border="0" align="center" cellspacing="0" cellpadding="0" id="mll"> <?php $sql1="select * from ImageGroup where User_Account='$user' and hiddenGroup='0' order by GroupOrder desc"; $result=$dbc->query($sql1); while ($row=@mysql_fetch_array($result)) { ?> <TR><TD style='width:18px;height:16px;'><?php if($group==$row["GroupName"]){?><IMG SRC='images/folder_open.gif'><?php }else{?><IMG SRC='images/folder_close.gif'><?php }?> </TD> <TD ><A href='vip_image.php?user=<?php echo $rs["User_Account"];?>&go=3&group=<?php echo $row["GroupName"]; ?>'><?php if($group==$row["GroupName"]){?><span style='text-decoration:none;'><b><?php echo $row["GroupName"]; ?></b></span><?php }else{?><?php echo $row["GroupName"]; ?><?php }?></A></TD></TR> <?php }?> </table> </div> </div> <div id="pinglun" class="c"> <div id='photo_style_head' class="nyti t"> <TABLE> <TR> <TD> <div id='photo_style_head_font' class="nynav">最新评论</div> </TD> </TR> </TABLE> </div> <div id='photo_style_body' class="nybo t"> <table border="0" align="center" cellpadding="0" cellspacing="0"id="ping"> <?php $sql1="select * from ImageComment where ImageComment_UserName='$user' order by ImageComment_AddDate desc limit 0,8"; $result=$dbc->query($sql1); while ($row44=@mysql_fetch_array($result)) { ?> <tr> <td> ·<A target='_blank' href='home/Image_photo.php?user=<?php echo $user; ?>&id=<?php echo $row44["PhotoComment_CommentObjId"]; ?>'> <?php echo substr($row44["ImageComment_ObjTitle"],0,16).".."; ?></A> </td> </tr> <?php }?> </table> </div> </div> </div> <div id="nyri"> <div id='photo_style_body' class="riri t"> <TABLE> <TR> <TD style='height:40px;'><span style='font-size:14px;font-weight:bold;'> 当前分类:<?php echo $group; ?></span></TD> </TR> </TABLE> </br> <!-- 用户最新相册:Jonava:2006-5-20 --> <table width="90%" align="center" border="0" cellpadding="0" cellspacing="0"></tr><tr> <?php if ($group=="") { $sql="select * from image where User_Account='$user' order by MyOrder desc,Up_AddDate desc"; } else { $sql="select * from image where User_Account='$user' and Image_Group='$group' order by MyOrder desc,Up_AddDate desc"; } $news = $dbc->getGopageRs($sql,$maxline); //echo "$sql"; $gopage = new GoPage($dbc->tpages,$dbc->total);//建立翻页程序 $backurl = "vip_image.php?".$dbc->getParameter(); if ($dbc->num_rows==0) {?> <br><span style='font-size:14px;text-align:center;'><br>此分类下暂无内容。</span></td></tr> <?php }$j=1; for($i=0;$i<$dbc->num_rows;$i++) {?> <TD> <div align="center"> <DIV ID="pho"> <DIV ID="phol"> <div style="text-align:center"> <a target="_blank" href="home/show_image.php?user=<?php echo $news[$i]["User_Account"]; ?>&id=<?php echo $news[$i]["id"]; ?>"> <img onload="reloadImage(this)" src="User/<?php echo $news[$i]["Image_Sma_Url"]; ?>" border="1" style="border-color:#ffffff"> </a> <br/> <a target="_blank" href="home/show_image.php?user=<?php echo $news[$i]["User_Account"]; ?>&id=<?php echo $news[$i]["id"]; ?>"><?php echo $news[$i]["Image_Title"]; ?> </a> </DIV> </DIV> </DIV> </DIV> </div> <br/><br/> </TD> <?php if ($j % 1==0){?> <td></td> <?php }if ($j % 2==0){?> </tr><tr><td colspan=6 height=5></td></tr> </tr><tr> <?php }$j++;}?> </table> <BR/> <BR/> </div> <div class="fenye"> <?=$gopage->style(3)?> </div> </div> <BR/> <BR/> </div> </div> </body> </html> <?php include("home_bottom.php"); ?>