?? sort.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"> </td>
<td width="607" bgcolor="#f8f8f8" valign="top"> </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 + -