You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
114 lines
2.7 KiB
114 lines
2.7 KiB
3 years ago
|
|
||
|
<?php
|
||
|
header('Content-Type: text/html; charset=utf-8');
|
||
|
error_reporting(0);
|
||
|
?>
|
||
|
<?php
|
||
|
session_start();
|
||
|
?>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>学生管理</title>
|
||
|
</head>
|
||
|
<body >
|
||
|
<?php
|
||
|
$XM = $_SESSION['XM'];
|
||
|
$XB = $_SESSION['XB'];
|
||
|
$CSSJ = $_SESSION['CSSJ'];
|
||
|
$KCS = $_SESSION['KCS'];
|
||
|
$StuName = $_SESSION['StuName'];
|
||
|
?>
|
||
|
<form method="post" action="studentAction.php" enctype="multipart/form-data">
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td>姓名:</td><td><input type="text" name="xm" value="<?php echo @$XM;?>"/></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>出生年月:</td><td><input type="text" name="cssj" value="<?php echo @$CSSJ;?>"/></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>性别:</td><td>
|
||
|
<?php
|
||
|
if(@$XB == 1) {
|
||
|
?>
|
||
|
|
||
|
<input type="radio" name="xb" value="1" checked="checked">男
|
||
|
<input type="radio" name="xb" value="0">女
|
||
|
|
||
|
<?php
|
||
|
}else {
|
||
|
?>
|
||
|
|
||
|
<input type="radio" name="xb" value="1">男
|
||
|
<input type="radio" name="xb" value="0" checked="checked">女
|
||
|
|
||
|
<?php
|
||
|
}
|
||
|
?>
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td>照片:</td><td><input name="photo" type="file"></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>
|
||
|
<?php
|
||
|
echo "<img src='showpicture.php?studentname=$StuName&time=".time()."' width=90 height=120 />";
|
||
|
?>
|
||
|
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>
|
||
|
<input name="btn" type="submit" value="录入">
|
||
|
<input name="btn" type="submit" value="删除">
|
||
|
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>
|
||
|
|
||
|
<input name="btn" type="submit" value="更新">
|
||
|
<input name="btn" type="submit" value="查询">
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td>已跑天数<input type="text" name="kcs" size="6" value="<?php echo @$KCS;?>" disabled/></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td align="left">
|
||
|
<?php
|
||
|
include "fun.php";
|
||
|
$cj_sql = "call CJ_PROC('$StuName')";
|
||
|
$result = $db->query(iconv('UTF-8', 'UTF-8', $cj_sql));
|
||
|
$xmcj_sql = "select * from XMCJ_VIEW";
|
||
|
$cj_rs = $db->query($xmcj_sql);
|
||
|
echo "<table border=1>";
|
||
|
echo "<tr bgcolor=#CCCCC0>";
|
||
|
echo "<td>时间</td><td align=center>步数</td></tr>";
|
||
|
while(list($KCM, $CJ) = $cj_rs->fetch(PDO::FETCH_NUM)) {
|
||
|
$KC = iconv('UTF-8', 'UTF-8', $KCM);
|
||
|
echo "<tr><td>$KC </td><td align=center>$CJ</td></tr>";
|
||
|
}
|
||
|
echo "</table>";
|
||
|
?>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</form>
|
||
|
</body>
|
||
|
</html>
|