>  기사  >  백엔드 개발  >  [php] 4. 학생 관리 시스템 - 인터페이스 수정

[php] 4. 학생 관리 시스템 - 인터페이스 수정

WBOY
WBOY원래의
2016-08-08 09:25:161510검색
<!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=utf-8" />
	<title>学生成绩管理系统</title>
	</head>	
	<?php 
        include_once &#39;stuService.class.php&#39;;
        include_once &#39;student.class.php&#39;;
    	session_start();
    	$name = $_SESSION[&#39;student_name&#39;];
    	
    	if($name == "")
    	{
    	    header("Location: stu_login.php?error=1");
    	    exit();
    	}
    	
    	$service = new stuservice();
    	$stu = new student();
    	$stu = $service->getstu($name);
    	
    	if(!empty($_GET['error']))
    	{
    	    $error = $_GET['error'];
    	    if($error==1)
    	    {
    	        echo "修改失败";
    	    }
    	}
    	
	?>
	<body background="pic/bg.gif">
        <form action="studentchangeok.php" method="post">
            <table width="767" height="644" border="0" align="center">
                <tr>
                    <td height="228" colspan="5" background="pic/top.gif">    </td>
                </tr>
                <tr>
                    <td height="22" colspan="5" background="pic/in_01.gif"></td>
                </tr>
                <tr>
                    <td background="pic/in_20.gif" >用户id:<input name="stu_id" value="<?php echo $stu->getStu_id();?>" /></td>
                    <td background="pic/in_20.gif" >用户名:<input name="stu_name" value="<?php echo $stu->getStu_name();?>" /></td>
                    <td background="pic/in_20.gif" >用户密码:<input name="stu_password" value="<?php echo $stu->getStu_password();?>" /></td>
                </tr>
                <tr>
    				<td> </td>
			        <td width="48"> </td>
			        <td width="135"><input name="submit" type="submit" value="确认修改" />
					<input type="reset" value="清空" /></td>
    			</tr>
            </table>
        </form>
    </body>
</html>

미리보기:


위 내용은 [php] 4. 학생 관리 시스템 수정 인터페이스에 대한 내용을 포함하여, PHP 튜토리얼에 관심이 있는 친구들에게 도움이 되기를 바랍니다.

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.