📄 top.php
字号:
<?php
session_start ();
include_once '../public/function.php';
if (empty ($_SESSION['admin_username']))
{
fun_alert ('请先登陆再使用本功能!');
fun_goto ('../admin/');
exit ();
}
include_once '../public/db_conn.php';
$sqlmenu = 'select * from menu where s_id=0 order by sort';
$rsmenu = mysql_query ($sqlmenu);
$menustr = '';
while ($rowmenu = mysql_fetch_array ($rsmenu))
{
$menustr .= '' . '
<td width=13% class="topindex" onClick="location=\'admin.php?tm=' . $rowmenu['id'] . '\'" onMouseOver="this.bgColor=\'000000\'" onMouseOut="this.bgColor=\'\'"><span class="topindex"><strong>' . $rowmenu['item'] . '</strong></span></td>';
}
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>';
echo $cfg_site_name;
echo ' - 后台管理</title>
<link href="../public/index.css" rel="stylesheet" type="text/css">
';
echo '<s';
echo 'cript src="../public/check.js"></script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="998" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="../index/img/head.gif"></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> <table width="100%" border="0" cellpadding="3" cellspacing="1">
<tr align="center" valign="center" ';
echo 'bgcolor="#666666" height="18">
<td width=11% class="topindex" onClick="location=\'admin.php\'" onMouseOver="this.bgColor=\'000000\'" onMouseOut="this.bgColor=\'\'">';
echo '<s';
echo 'pan class="topindex">';
echo '<s';
echo 'trong>首页<br>
Index</strong></span></td>
';
echo $menustr;
echo ' <td width=11% class="topindex" onClick="location=\'../public/logout.php\'" onMouseOver="this.bgColor=\'000000\'" onMouseOut="this.bgColor=\'\'">';
echo '<s';
echo 'pan class="topindex">';
echo '<s';
echo 'trong>退出<br>
Exit</strong></span></td>
</tr>
</table></td>
</tr>
</table>
';
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -