📄 index.php
字号:
<?php
include_once( "inc/conn.php" );
include_once( "inc/auth.php" );
$PAGE_SIZE = 10;
echo "\r\n<html>\r\n<head>\r\n<title>图片管理</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\">\r\n <tr class=\"tablehead1\">\r\n <td><img src=\"/images/menu/picture.gif\" WIDTH=\"22\" HEIGHT=\"20\" align=\"absmiddle\">图片管理\r\n </td>\r\n </tr>\r\n</table>\r\n<hr width=\"95%\" height=\"1\" ali";
echo "gn=\"left\" color=\"#FFFFFF\">\r\n";
$connection = openconnection( );
$querys = "SELECT * from PICTURE";
$cursors = exequery( $connection, $querys );
while ( $rows = mysql_fetch_array( $cursors ) )
{
$paths = $rows['PIC_PATH'];
if ( is_dir( $paths ) )
{
}
else
{
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n <tr>\r\n <td nowrap style=\"color:#FF0000\">灰色目录的地址不存在!</td>\r\n </tr>\r\n</table>\r\n";
break;
}
}
$query = "SELECT * from PICTURE";
$cursor = exequery( $connection, $query );
$PIC_COUNT = 0;
while ( $ROW = mysql_fetch_array( $cursor ) )
{
++$PIC_COUNT;
$PIC_ID = $ROW['PIC_ID'];
$PIC_NAME = $ROW['PIC_NAME'];
$PIC_PATH = $ROW['PIC_PATH'];
$PIC_NAME = str_replace( "<", "<", $PIC_NAME );
$PIC_NAME = str_replace( ">", ">", $PIC_NAME );
$PIC_NAME = stripslashes( $PIC_NAME );
if ( $PIC_COUNT == 1 )
{
echo "\r\n<table border=\"0\" cellspacing=\"1\" width=\"100%\" class=\"small\" cellpadding=\"5\">\r\n <tr class=\"TableHeader\">\r\n <td nowrap>图片目录名</td>\r\n </tr>\r\n";
}
if ( $PIC_COUNT % 2 == 1 )
{
$TableLine = "TableLine1";
}
else
{
$TableLine = "TableLine2";
}
echo " <tr class=\"";
echo $TableLine;
echo "\">\r\n <td nowrap>";
if ( is_dir( $PIC_PATH ) )
{
echo "<a href=\"picture.php?PIC_ID=".$PIC_ID."\"><img src=\"/images/disk_share.gif\" border=\"0\"><br>".$PIC_NAME."</a>";
}
else
{
echo "<img src=\"/images/disk_share.gif\" border=\"0\" style=\"filter:gray()\"><br><span style=\"color:#999999\">".$PIC_NAME."</span>";
}
echo "</td>\r\n </tr>\r\n";
}
if ( 0 < $PIC_COUNT )
{
echo " </table>\r\n";
}
else
{
message( "", "<br>无图片目录" );
}
echo "\r\n</table>\r\n\r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -