newspllist.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. $getstr=$_GET[str];
  5. $id=intval(returnsx("i"));
  6. $sqluser="select * from yjcode_user where id=".$id;mysql_query("SET NAMES 'GBK'");$resuser=mysql_query($sqluser);
  7. if(!$rowuser=mysql_fetch_array($resuser)){php_toheader("./");}
  8. if(returnsx("p")!=-1){$page=returnsx("p");}else{$page=1;}
  9. ?>
  10. <html>
  11. <head>
  12. <meta http-equiv="x-ua-compatible" content="ie=7" />
  13. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  14. <title><?=$rowuser[nc]?>的个人主页 - <?=webname?></title>
  15. <? include("../tem/cssjs.html");?>
  16. </head>
  17. <body>
  18. <? include("../tem/top.html");?>
  19. <? include("top.php");?>
  20. <script language="javascript">
  21. document.getElementById("mytopa5").className="a1";
  22. </script>
  23. <div class="yjcode">
  24. <? include("left.php");?>
  25. <!--右B-->
  26. <div class="myright">
  27. <div class="myinflist myinflist1">
  28. <ul class="u1">
  29. <li class="l1">
  30. <a href="javascript:void(0);">资讯评论</a>
  31. </li>
  32. <li class="l2"></li>
  33. </ul>
  34. <ul class="u2">
  35. <?
  36. pagef(" where zt=0 and userid=".$rowuser[id]."",20,"yjcode_newspj","order by sj desc");while($row=mysql_fetch_array($res)){
  37. while2("*","yjcode_news where bh='".$row[newsbh]."'");$row2=mysql_fetch_array($res2);
  38. ?>
  39. <li class="l1"><a href="../news/txtlist_i<?=$row2[id]?>v.html" target="_blank">【点评】 <?=$row2[tit]?></a></li>
  40. <li class="l2"><?=$row[sj]?></li>
  41. <li class="l3"><?=$row[txt]?></li>
  42. <? }?>
  43. </ul>
  44. <div class="npa">
  45. <?
  46. $nowurl="newspllist";
  47. $nowwd="";
  48. require("../tem/page.html");
  49. ?>
  50. </div>
  51. </div>
  52. </div>
  53. <!--右E-->
  54. </div>
  55. <? include("../tem/bottom.html");?>
  56. </body>
  57. </html>