<?php
	session_start();
	include "conn/conn.php";
	$m_sqlstr = "select * from tb_music_user where tb_music_id = ".$_SESSION[id];
	$m_rst = $conn->execute($m_sqlstr);
	if(!$m_rst->EOF){
?>
<script src="js/chk.js"></script>
<link rel="stylesheet" href="css/reg.css"/>
<link rel="stylesheet" href="css/style.css"/>
 
<table width="1004" height="720" border="0" cellpadding="0" cellspacing="0" background="images/115.jpg">
  <tr>
    <td>&nbsp;</td>
    <td height="241" align="center" valign="bottom">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td width="271">&nbsp;</td>
    <td width="440" height="357" align="center" valign="top">

<table width="423" border="0" cellspacing="0" cellpadding="0">
 		<form id="reg" name="reg" method="post" action="mod_vip_chk.php">
 			<tr>
   			   <td width="11" rowspan="18" align="center" valign="top">&nbsp;</td>
   			   <td height="20" colspan="2" align="center" valign="top" class="top_td">&nbsp;</td>
   			   <td width="11" rowspan="18" align="center" valign="top">&nbsp;</td>
  			</tr>
  			<tr>
      			<td width="117" height="20" align="right" valign="middle" class="left_td" scope="col">用户名：</td>
   			  <td width="284" align="left" valign="middle" class="right_td" scope="col"><input type="text" name="name" id="name" class="usual" value="<?php echo $m_rst->fields[1]; ?>" readonly="readonly" onmouseover="this.style.backgroundColor='#deebef'" onmouseout="this.style.backgroundColor=''"/></td>
    		</tr>
    		<tr>
      			<td width="117" height="20" align="right" valign="middle" class="left_td">密码：</td>
   			  <td align="left" valign="middle" class="right_td"><input type="password" name="password" id="password" class="usual" onmouseover="this.style.backgroundColor='#deebef'" onmouseout="this.style.backgroundColor=''"/><span class="STYLE1"> *</span>(最少3位)</td>
    		</tr>
    		<tr>
      			<td width="117" height="20" align="right" valign="middle" class="left_td">确认密码：</td>
   			  <td align="left" valign="middle" class="right_td"><input type="password" name="t_password" id="t_password" class="usual" onmouseover="this.style.backgroundColor='#deebef'" onmouseout="this.style.backgroundColor=''" /><span class="STYLE1"> *</span></td>
    		</tr>
    	
    		<tr>
      			<td width="117" height="20" align="right" valign="middle" class="left_td">性别：</td>
      			<td align="left" valign="middle" class="right_td">
				<?php if($m_rst->fields[7] == "男"){ ?>
				<input name="sex" id="sex" type="radio" value="男" checked />男
				<input name="sex" id="sex" type="radio" value="女"/>女
				<?php }else{?>
				<input name="sex" id="sex" type="radio" value="男" />男
				<input name="sex" id="sex" type="radio" value="女" checked />女
				<?php } ?>
				</td>
    		</tr>
    		<tr>
      			<td width="117" height="20" align="right" valign="middle" class="left_td">E-mail：</td>
      			<td align="left" valign="middle" class="right_td"><input type="text" name="email" id="email" class="usual" value="<?php echo $m_rst->fields[10]; ?>" onmouseover="this.style.backgroundColor='#deebef'" onmouseout="this.style.backgroundColor=''"/></td>
    		</tr>
    		<tr>
      			<td width="117" height="20" align="right" valign="middle" class="left_td">QQ：</td>
      			<td align="left" valign="middle" class="right_td"><input type="text" name="qq" id="qq" class="usual" value="<?php echo $m_rst->fields[13]; ?>" onmouseover="this.style.backgroundColor='#deebef'" onmouseout="this.style.backgroundColor=''" /></td>
    		</tr>
   			<tr>
     			 <td width="117" height="20" align="right" valign="middle" class="left_td">个人主页：</td>
      			<td align="left" valign="middle" class="right_td"><input type="text" name="http" id="http" class="usual" value="<?php echo $m_rst->fields[14]; ?>" onmouseover="this.style.backgroundColor='#deebef'" onmouseout="this.style.backgroundColor=''"/></td>
   		 	</tr>
    		<tr>
      			<td height="30" colspan="2" align="center" valign="middle" class="bottom_td">
				<input type="hidden" name="id" value="<?php echo $_SESSION[id]; ?>">
				<input name="regi" type="submit" id="regi" value="修改" onclick="return reg_chk();" />(<span class="STYLE1">*</span>号为必填项)
   			    <input name="reset" type="reset" id="reset" value="重置" /></td>
	  </tr></form></table>

</td>
    <td width="280">&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td height="122">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<?php
	}
?>
