index.php 1002 B

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