【php】4、学生管理系统-修改界面

<!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 'stuService.class.php';
        include_once 'student.class.php';
    	session_start();
    	$name = $_SESSION['student_name'];
    	
    	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>


预览:







评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值