<?include('sys.php');?>
<html>
<head>
<title>warmsun留言板</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="font.css" type="text/css">
<style type="text/css">
<!--
.ffff {
	font-family: "宋体";
	font-size: 9pt;
	color: #FFFFFF;
}
-->
</style>
</head>

<body text="#000000" topmargin="2">
<?include('head.php');?>
<table width="760" border="0" cellspacing="0" cellpadding="0" >
    <tr>
      
    <td height="20" background="images/td-bg.gif">&nbsp;</td>
    </tr>
  </table>
  
<table width="760" height="336" border="0" cellpadding="2" cellspacing="1" bgcolor="#a4b6d7">
  <tr> 
      
    <td height="334" align="center" bgcolor="<?echo"$color2";?>" class="font"> 
      <form name="form1" method="post" action="post.php">
          
        <table width="84%" border="0" cellpadding="0" cellspacing="0" class="ffff">
          <tr> 
            <td><font color="#000000">你的大名：</font><font color="#000000"><font color="#CC0000">★</font></font> 
            </td>
            <td><input type="text" name="name" size="15"  maxlength="10"> &nbsp; 
            </td>
            <td>&nbsp; </td>
            <td rowspan="5" width="39%"><input type="hidden" name="ip" value="<?
$ip = getenv("REMOTE_ADDR");
echo"$ip";
?>"></td>
          </tr>
          <tr> 
            <td height="28"><img src="images/oicq.gif" width="45" height="16"></td>
            <td height="28">
<input type="text" name="oicp" size="15"  maxlength="15"> 
            </td>
            <td width="25%" rowspan="4"><img name=id src=images/face/001.gif alt="头像" > 
            </td>
          </tr>
          <tr> 
            <td height="25"><img src="images/email.gif" width="45" height="18"></td>
            <td height="25"> 
              <input type="text" name="mail" size="15" ></td>
          </tr>
          <tr> 
            <td width="12%" height="36"><img src="images/homepage.gif"> </td>
            <td height="36"> 
              <input type="text" name="homepage"  value="http://">
            </td>
          </tr>
          <tr> 
            <td width="12%" height="2"><font color="#000000">头像：</font></td>
            <td width="24%" height="2"> <select name="face" onChange="document.id.src=options[selectedIndex].value;" >
                <? $dh=opendir("images/face");
while ($imagefile=readdir($dh)) {
	if (($imagefile!=".") && ($imagefile!="..") && ($imagefile!=""))
	  if ($imagefile==$id[0]) echo "<option selected value=\"$imagefile\">$imagefile</option>";
	    else echo "<option value=";
		echo"images\face/";
		echo"$imagefile>$imagefile</option>";
}
closedir($dh);
			  ?>
              </select> </td>
          </tr>
          <tr> 
            <td height="2" colspan="4"><font color="#000000">留言内容：<font color="#CC0000">★</font></font></td>
          </tr>
        </table>
          
        
          <textarea name="text" cols="80" rows="10"  ></textarea>
          <br>
          <br>
          <input type="submit" name="Submit" value="提交" >
          <input type="reset" name="Submit2" value="重置" >
        
          </form>
      </td>
    </tr>
  </table>
  
<?include('copyright.php');?></center>
</body>
</html>
