Registration Data Display Page zhuce.php
<! DOCTYPE html Public"-//w3c//dtd XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >nbsp;<a href= "main.php" ><input type= "button" value= "View"/></a></div></form></body> View CodeRegistration Data processing Page zhucechuli.php
<?PHP$uid=$_post["UID"];$pwd=$_post["PWD"];$name=$_post["Name"];$sex=$_post["Sex"];$birthday=$_post["Birthday"];//dealing with gender$s= 1;if($sex= = "female"){ $s= 0; }include(".. /dbda.php ");$db=NewDbda ();$sql= "INSERT into users values (' {$uid}‘,‘{$pwd}‘,‘{$name}‘,{$s},‘{$birthday} ', ', false) ';//echo $sql;if($db->query ($sql, 1)){ Header("location:zhuce.php"); }
View Codepage Display effect
Login Data Display page login.php
Public "-//w3c//dtd XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >nbsp; <a href= "main.php" ><input type= "button" value= "Go to audit"/><a></div></form></body>
View CodeLogin Data processing page loginchuli.php
<?PHPSession_Start();$uid=$_post["UID"];$pwd=$_post["PWD"];include(".. /dbda.php ");$db=NewDbda ();$sql= "SELECT count (*) from the users where Uid = ' {$uid} ' and Pwd = ' {$pwd} ' and Isok =true ';$r=$db->strquery ($sql);if($r==1){ $_session["UID"] =$uid; Header("location:main.php");}Else{ Header("location:login.php");}
View CodePage Display effect
Audit Data Display Page main.php
<! DOCTYPE html Public"-//w3c//dtd XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >PHPinclude(".. /dbda.php ");$db=NewDbda ();$sql= "SELECT * from Users"; $attr=$db->query ($sql);foreach($attr as $v){ //status of the review $zt= ""; if($v[6]) { $zt= "<span style= ' color:red ' > Approved <a href= ' chexiao.php?uid={$v[0]} ' > Undo </a></span> "; } Else { $zt= "<a href= ' mainchuli.php?uid={$v[0]} ' > Audit </a> "; } Echo"<tr> <td>{$v[2]}</td> <td>{$v[3]}</td> <td>{$v[4]}</td> <td>{$zt}</td> </tr>"; }?> </table></body>View CodeAudit Quantity Processing page mainchuli.php
<?PHP$uid=$_get["UID"];include(".. /dbda.php ");$db=NewDbda ();$sql= "Update users set Isok = TRUE where Uid = ' {$uid}‘";if($db->query ($sql, 1)){ Header("location:main.php"); }Else{ Echo"Audit Failed"; }
View CodeRevoke Audit Processing page chexiao.php
<?PHP$uid=$_get["UID"];include(".. /dbda.php ");$db=NewDbda ();$sql= "Update users set Isok = false where Uid = ' {$uid}‘";if($db->query ($sql, 1)){ Header("location:main.php"); }Else{ Echo"Undo Failed"; }
View CodePage Display effect
May 23 Registration Review