📄 index.php
字号:
<?
include('session.php');
include('../function.php');
if (!islogin($_SESSION['username'],$_SESSION['userpass'])||!isadmin($_SESSION['username'],1))
{
echo "<meta http-equiv=\"refresh\" content=\"0;URL=../index.php\">";
exit;
if (islogin($_POST['workername'],$_POST['workerpass'])&&isadmin($_POST['workername'],1))
{
$_SESSION['username']=$_POST['workername'];
$_SESSION['userpass']=$_POST['workerpass'];
setcookie("PHPSESSID",session_id());
$accept=true;
}
else $url="../template/welcome.php";
}
else $accept=true;
//echo $_POST['workername'].$_POST['workerpass']."<BR>";
//echo $_SESSION['username'].$_SESSION['userpass'];
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>办公网络后台管理</title>
<link href="../css.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#F3F7FC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="96%" height="60" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="2%" height="18"><img src="../images/tleft.jpg" width="50" height="18"></td>
<td width="95%" background="../images/dmid.jpg"> </td>
<td width="3%"><img src="../images/tright.jpg" width="50" height="18"></td>
</tr>
<tr background="../images/d2.jpg">
<td colspan="3"><font class="size10">(此处仅主管可见)</font><? include('../js.php');?></td>
</tr>
</table>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_kuang">
<tr>
<td colspan="2" class="tian4"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_kuang">
<tr>
<td class="tianchong"><a href="#" onClick=openw("<? if ($accept) echo "classmod.php"; else echo $url; ?>")>
</a><a href="../index.php">返回首页</a> <a href="#" onClick=openw("<? if ($accept) echo "classmod.php"; else echo $url; ?>")>|
部门操作</a> | <a href="#" onClick=openw("<? if ($accept) echo "workermod.php"; else echo $url; ?>")>人员操作</a>
| <a href="#" onClick=openw("<? if ($accept) echo "addnewer.php"; else echo $url; ?>")>添加新会员</a>
| <a href="../announce.php"> 管理公司通知 </a>| <a href="fileset.php" onClick="return call(this.href)">个人文件参数设置
</a>| <a href="#" onClick=openw("<? if ($accept) echo "setdiscuss.php?count=0"; else echo $url; ?>")>讨论组管理</a></td>
</tr>
</table></td>
</tr>
<tr>
<td width="410" class="tian4"><table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><iframe scrolling="yes" width="400" frameborder="0" height="0" id="jiaohuan"src="<? if ($accept) echo "classmod.php"; else echo $url; ?>" ></iframe>
</td>
</tr>
<tr>
<td> <iframe id="tihuan" height="400" frameborder="0"scrolling="yes" src="<? if ($accept) echo "classmod.php"; else echo $url; ?>" width="400">
</iframe>
</td>
</tr>
</table></td>
<td width="557" class="tian4" valign="top"><? if ($accept) require('welcome.php'); else require('../template/login.php'); ?></td>
</tr>
</table>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center"><? require('../template/temp_footer.php'); ?></div></td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -