<!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>
<style type="text/css">
.aaa {
	font-size: 36px;
	color: #066;
	font-weight: bolder;
	background-image: url(image/1.jpg);
	border: thick outset #06F;
}
.bbb {font-size: 18px;
	font-weight: bold;
	color: #900;
}
.qqq {
	border: thick outset #C60;
	font-weight: bolder;
	color: #309;
}
.qqq {
	background-color: #FFF;
}
.ccc {
	border: thick outset #969;
	background-color: #FDE;
	font-weight: bolder;
	color: #900;
}
body {
	background-color: #FFFFE1;
	background-image: url(image/16.jpg);
}
</style></head>

<body>



<?php

require("connect.php");

$schnum=$_POST['schnum'];
//echo $schnum;
//echo $_POST['schnum'];
//echo "123456";;

$sql="select * from classmate where schnum = '$schnum'";
//echo $sql;
$result=mysql_query($sql);
$object=mysql_fetch_object($result);
//echo $object->schnum;

?>


<table width="980" height="818" border="1" align="center">
  <tr>
    <td height="112" colspan="3" align="center" class="aaa">班級通信錄後台管理程式</td>
  </tr>
  <tr>
    <td width="182" valign="baseline" class="ccc"><?php require("left_menu.php");?></td>
    <td width="782" colspan="2" valign="baseline" class="qqq"><p>&nbsp;</p>
      <table width="450" border="0" align="center">
      <tr>
        <td colspan="2" align="right" class="bbb"><img src="image/11.jpg" width="30" height="30" />　修改資料</td>
        <td width="295" align="center" class="bbb">&nbsp;</td>
      </tr>
    </table>
      <br />
      <form id="form1" name="form1" method="post" action="post_add.php">
        <table width="450" height="199" border="0" align="center" cellpadding="2" cellspacing="2">
          <tr>
            <td width="52" height="32">學號：</td>
            <td width="384"><input type="text" name="schnum" id="schnum" value=<?php echo $object->schnum;?>>
            </td>
          </tr>
          <tr>
            <td height="32">姓名：</td>
            <td><input type="text" name="name" id="textfield"  value=<?php echo $object->name;?>></td>
          </tr>
          <tr>
            <td height="32">姓別：</td>
            <td><input name="gender" type="radio" id="radio" value="b" />
              男生　
              <input name="gender" type="radio" id="radio2" value="g" checked="checked" />
              女生</td>
          </tr>
          <tr>
            <td height="32">Email：</td>
            <td><label for="email"></label>
              <input type="text" name="email" id="email"  value=<?php echo $object->email;?>></td>
          </tr>
          <tr>
            <td height="32">&nbsp;</td>
            <td><input type="submit" name="button" id="button" value="確定" />
              <input type="reset" name="button2" id="button2" value="重設" /></td>
          </tr>
        </table>
    </form><p></p>
    <p></p>
    <p></p>
    <p></p>
    <p></p>
    <p></p>
    <p></p>
    <p></p>
    <p></p>
    <p></p>
    <p></p>
    <p></p>
    <p></p>
    <p></p>
    <p></p>
    <p></p>
    <p></p>
    <p></p>
    <p><img src="image/14.jpg" width="245" height="206" align="right" /></p>
    <p></p></td>
  </tr>
</table>
</body>
</html>