index.php 951 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. require("../../class/connect.php");
  3. require("../../class/db_sql.php");
  4. require("../../class/q_functions.php");
  5. require("../class/user.php");
  6. require "../".LoadLang("pub/fun.php");
  7. $link=db_connect();
  8. $empire=new mysqlquery();
  9. $editor=1;
  10. eCheckCloseMods('member');//关闭模块
  11. //是否登陆
  12. $user=islogin();
  13. $page=(int)$_GET['page'];
  14. $page=RepPIntvar($page);
  15. $start=0;
  16. $line=25;//每页显示条数
  17. $page_line=10;//每页显示链接数
  18. $offset=$page*$line;//总偏移量
  19. $totalquery="select count(*) as total from {$dbtbpre}enewsbuybak where userid='$user[userid]'";
  20. $num=$empire->gettotal($totalquery);//取得总条数
  21. $query="select * from {$dbtbpre}enewsbuybak where userid='$user[userid]'";
  22. $query=$query." order by buytime desc limit $offset,$line";
  23. $sql=$empire->query($query);
  24. $returnpage=page1($num,$line,$page_line,$start,$page,$search);
  25. //导入模板
  26. require(ECMS_PATH.'e/template/member/buybak.php');
  27. db_close();
  28. $empire=null;
  29. ?>