parent
8c551b7d7b
commit
ed25a67d07
@ -0,0 +1,114 @@
|
||||
|
||||
<?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>
|
Loading…
Reference in new issue