📄 index.php
字号:
<?
require("../../class/connect.php");
include("../../class/db_sql.php");
include("../../class/q_functions.php");
include("../../class/user.php");
include("../../class/class.php");
include("../../data/language/fun.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
//是否登陆
$user=islogin();
$userid=$_GET['userid'];
$page=$_GET['page'];
$start=$_GET['start'];
$line=25;//每页显示条数
$page_line=12;//每页显示链接数
if(empty($page))
{$page=0;}
if(empty($start))
{$start=0;}
$offset=$start+$page*$line;//总偏移量
$query="select * from phome_enewsdownrecord where userid='$user[userid]'";
$num=$empire->num($query);//取得总条数
$query=$query." order by downid desc limit $offset,$line";
$sql=$empire->query($query);
$returnpage=page1($num,$line,$page_line,$start,$page,$search);
$url="<a href=../../../>首页</a> > <a href=../cp>控制面板</a> > 我的下载记录";
@include("../../data/template/cp_1.php");
?><br>
<table width="98%%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#4791C5">
<tr>
<td width="34%" height="25"><div align="center"><font color="#FFFFFF">软件名</font></div></td>
<td width="18%" height="25"><div align="center"><font color="#FFFFFF">扣除点数</font></div></td>
<td width="27%" height="25"><div align="center"><font color="#FFFFFF">下载时间</font></div></td>
</tr>
<?
while($r=$empire->fetch($sql))
{
if(empty($class_r[$r[classid]][tbname]))
{continue;}
$nr=$empire->fetch1("select title,titleurl,groupid,filename,newspath,classid from phome_ecms_".$class_r[$r[classid]][tbname]." where id='$r[id]'");
//标题链接
$titlelink=sys_ReturnBqTitleLink($nr);
?>
<tr bgcolor="#FFFFFF">
<td height="25"><div align="center">
<a href=<?=$titlelink?> target=_blank><?=$r[title]?></a>
</div></td>
<td height="25"><div align="center">
<?=$r[cardfen]?>
</div></td>
<td height="25"><div align="center">
<?=$r[downtime]?>
</div></td>
</tr>
<?
}
db_close();
$empire=null;
?>
<tr bgcolor="#FFFFFF">
<td height="25" colspan="3">
<?=$returnpage?>
</td>
</tr>
</table>
<?
@include("../../data/template/cp_2.php");
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -