?? chmod_sinfo.php
字號(hào):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>chmod</title>
</head>
<body>
<?php
require("dbconnect.php");
include("head.php");
$id =$_GET["id"];
$sqlStr="select * from user_info where id = '$id'";
$result=mysql_db_query("score_manager",$sqlStr);
$ar=mysql_fetch_array($result);
$chmod = $ar["chmod"];
if( $chmod == "student")
echo("<script type = 'text/javascript'> alert('你沒有此權(quán)限!') ;". " location.href='welcome.php'; </script> ");
if( $chmod == "teacher")
echo("<script type = 'text/javascript'> alert('輸入學(xué)生個(gè)人信息!') ;". " location.href='insert_Sinfo.php'; </script> ");
?>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -