Exemplo n.º 1
0
<?php

require_once 'include.php';
$act = $_REQUEST['act'];
$id = $_REQUEST['id'];
if ($act === "reg") {
    $mes = reg();
} elseif ($act === "login") {
    $mes = login();
} elseif ($act === "userOut") {
    userOut();
} elseif ($act === "userApply") {
    $mes = userApply();
} elseif ($act === "cancelApply") {
    $mes = cancelApply($id);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<?php 
if ($mes) {
    echo $mes;
}
?>
</body>
</html>
Exemplo n.º 2
0
			</div>
			<span id="repwd1_msg" class="col-sm-4" style="color:red;"></span>
		</div>
		<div class="form-group">
			<label for="confirm_password" class="control-label col-sm-4">确认密码:</label>
			<div class="col-sm-4">
				<input id="repwd2" type="password" class="form-control">
			</div>
			<span id="repwd2_msg" class="col-sm-4" style="color:red;"></span> 
		</div>
		<div class="col-sm-8">
			<button id="user_submit" type="submit" class="btn btn-default pull-right">修改密码</button>
		</div>
    </div>
	
</div>
<?php 
}
?>


<?php 
if ($_GET['num'] == 2) {
    //调用userapply.php页面进行处理用户申请页面
    userApply();
}
if ($_GET['num'] == 3) {
    //调用userlist.php页面进行处理用户列表页面
    userList();
}
include "footer.php";