jflog.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?
  2. include("../../config/conn.php");
  3. include("../../config/function.php");
  4. sesCheck_m();
  5. ?>
  6. <html>
  7. <head>
  8. <meta http-equiv="x-ua-compatible" content="ie=7" />
  9. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  10. <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
  11. <title>会员中心 <?=webname?></title>
  12. <? include("../tem/cssjs.html");?>
  13. <link href="css/buy.css" rel="stylesheet" type="text/css" />
  14. </head>
  15. <body>
  16. <? include("topuser.php");?>
  17. <div class="bfbtop1 box">
  18. <div class="d1" onClick="gourl('index.php')"><img src="img/topleft.png" height="21" /></div>
  19. <div class="d2">积分记录</div>
  20. <div class="d3"></div>
  21. </div>
  22. <?
  23. $ses=" where jfnum<>0 and userid=".$rowuser[id];
  24. $page=$_GET["page"];if($page==""){$page=1;}else{$page=intval($_GET["page"]);}
  25. if(1==$page){
  26. $jf1=returnsum("jfnum","yjcode_jfrecord where jfnum>0 and userid=".$rowuser[id]);
  27. $jf2=returnsum("jfnum","yjcode_jfrecord where jfnum<0 and userid=".$rowuser[id]);
  28. ?>
  29. <div class="jftj box">
  30. <div class="d1">收入<br><?=$jf1?></div>
  31. <div class="d2">支出<br><?=$jf2?></div>
  32. <div class="d3">剩余<br><?=$jf1+$jf2?></div>
  33. </div>
  34. <? }?>
  35. <?
  36. pagef($ses,30,"yjcode_jfrecord","order by sj desc");while($row=mysql_fetch_array($res)){
  37. if($row[jfnum]>0){$jf="+".abs($row[jfnum]);}
  38. elseif($row[jfnum]<0){$jf="-".abs($row[jfnum]);}
  39. ?>
  40. <div class="jflog box">
  41. <div class="d1"><?=$row[tit]?><br><span class="hui"><?=$row[sj]?></span></div>
  42. <div class="d2"><?=$jf?></div>
  43. </div>
  44. <? }?>
  45. <div class="npa">
  46. <?
  47. $nowurl="jflog.php";
  48. $nowwd="";
  49. require("page.html");
  50. ?>
  51. </div>
  52. </body>
  53. </html>