⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sort.php

📁 1.上传所有文件到你的空间。 2.把数据库文件FORUM.sql导入数据库。 3.修改config.php 和 data文件夹属性为0777。 4.后台管理地址:/admin/login.php
💻 PHP
字号:
<?php
require "../articlelib.php";
$total = readnum();
$num_row = $page1;
$nowpage = intval($_GET['nowpage']);
$num_page = ceil($total/$num_row);
if ($total > 0)
{
if (empty($nowpage))
{
$nowpage = 1;
}
readborder_all();
$content = $info_content;
$family = $info_family;
}
?>
<?
session_start();
require "../config.php";
require "../fun.php";

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><?=$sys_site_name?>--电影管理</title>
<link href="template/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="768" height="361" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="30" rowspan="2" valign="top" bgcolor="#f8f8f8">&nbsp;</td>
    <td width="607" bgcolor="#f8f8f8" valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td bgcolor="#f8f8f8" valign="top">
	<?php
if($_SESSION['login_status']=="adminstrator1")
{
?>
<table border=0 cellSpacing=1 width="100%">
<tbody>
<tr>
<tbody>
<tr bgColor="#aeaeae">
<th align="left">
  <div align="center">序号  </div></th>
<th align="left">
  <div align="center">分类  </div></th>
<th align="left">
<div align="center">主题/简介/种子          </div></th>
<th align="left">
  <div align="center">操作</div></th>
</tr>
<?php
if (is_array($content))
{
$begin = ($nowpage-1) * $num_row;
$end = $nowpage * $num_row;
$nums = count($content);
if ($end >= $nums)
{
$end = $nums;
}
for ($i=$begin; $i<$end; $i++)
{
$num = $i+1;
$id = $content[$i]["id"];
$title = $content[$i]["title"];

$fl= $content[$i]["fl"];
if (file_exists("../$sys_data_dir/fl/$fl.php"))
{
	$sort_data=file("../$sys_data_dir/fl/$fl.php");
	$songer_num=count($sort_data);
	$sort_info=explode("|",$sort_data[$songer_num-1]);


}
else
{
	echo "分类不存在!可能已经删除,请联系站长!";
}
if (is_array($family))
{
$space = $family[$i];
}
else
{
$space = 0;
}
//调用文章列表显示格式
?>
<TR bgColor='#CCCCFF'>
<TD width='4%'><div align="center"><span class="STYLE3">
  <?=$num;?>
</span> </div></TD>
<TD width='7%'>
 <div align="center"><span class="STYLE3">
<?=$sort_info[0];?></span></div></TD>
<TD width='44%'>
<span class="STYLE3">
<? print $title;?></TD>

<TD width='15%'>
<div align="center">
<a href='del.php?id=<? print $id;?>'>删除</A></span></TD></div></TD>
</TR>
<?php
}
}
?>
<tr >
<?php
pri_page("sort", $fll, $nowpage, $num_page);
?>
<?php
}
else
{
	echo "您还没有登录,请您先登录,<a href=login.php>点这里进入登录页面</a>";
}
?>
	</td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -