⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 members.htm

📁 程序安装简便容易
💻 HTM
字号:
<!--
<?php
if(empty($_GET['do'])) {
print <<<EOT
-->
<div align="center">
  <center>
  <table cellspacing="0" cellpadding="0" width="760" height="20" align=center border=0 bgcolor="#FFFFFF">
    <tr>
      <td height=20 align="left">您的位置:<a href="{$mainurl}">首页</a>&nbsp;&gt;&nbsp;修改个人资料&nbsp;&gt;</td>
    </tr>
  </table>
  </center>
</div>
<div align="center">
  <center>
  <table width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
    <tr>
      <td height="20"><p align="center">【修改个人资料】</p></td>
    </tr>
  </table>
</div>
<form action="members.php?do=change" method="post" onsubmit="return regcheck(this)">
<div align="center">
  <center>
  <table width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
    <tr>
      <td>
<div align="center">
  <table width="500" border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC" bgcolor="#FFFFFF">
    <tr bgcolor="#FFFFFF">
      <td width="30%"><font color=red>*</font>用户名:</td><td>{$rs['username']}<input type="hidden" name="username" value="{$rs['username']}"></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width="30%"><font color=red>*</font>新密码:</td><td><input type='password' maxlength='75' name='password' size='25'><br>英文字母或数字等不少于6位</td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width="30%"><font color=red>*</font>确认新密码:</td><td><input type='password' maxlength='75' name='repeatpassword' size='25'></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width="30%"><font color=red>*</font>Email:</td><td><input type='text' maxlength='75' value='{$rs['email']}' name='email' size='25'></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width="30%">性别:</td><td><select name=gender><option value="1"{$select_a}>男</option><option value="2"{$select_b}>女</option><option value="3"{$select_c}>保密</option></select></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width="30%">生日:</td><td>
<select name=birthyear>
<option value=''></option>
<!--
EOT;
for($i=1945;$i<2002;$i++) {
	$select_d=$birthyear==$i ? ' selected' : '';
print <<<EOT
-->
<option value={$i}{$select_d}>{$i}</option>
<!--
EOT;
}
print <<<EOT
-->
</select>年 
<select name=birthmonth>
<option value=''></option>
<!--
EOT;
for($i=1;$i<12;$i++) {
	$select_e=$birthmonth==$i ? ' selected' : '';
print <<<EOT
-->
<option value={$i}{$select_e}>{$i}</option>
<!--
EOT;
}
print <<<EOT
-->
</select>月 
<select name=birthday>
<option value=''></option>
<!--
EOT;
for($i=1;$i<31;$i++) {
	$select_f=$birthday==$i ? ' selected' : '';
print <<<EOT
-->
<option value={$i}{$select_f}>{$i}</option>
<!--
EOT;
}
print <<<EOT
-->
</select>日</td>
    </tr>
    <tr bgcolor='#FFFFFF'>
      <td valign='top'>QQ:</td><td><input type='text' maxlength=14 name='qq' value='{$rs['qq']}' size='25'></td>
    </tr>
    <tr bgcolor='#FFFFFF'>
      <td valign='top'>个人主页:</td><td><input type='text' maxlength=75 name='site' value='{$rs['site']}' size='25'></td>
    </tr>
    <tr bgcolor='#FFFFFF'>
      <td valign='top'>自我介绍:</td><td><textarea name="introduce" rows='5' cols='45'>{$rs['introduce']}</textarea></td>
    </tr>
  </table>
</div>
<br>
<center><input type='submit' value='提交'><input type='reset' value='重置'></center>
</form>
<br>
<script language="JavaScript">
function regcheck(formct) {
	if(formct.password.value!=formct.repeatpassword.value) {
		alert('两次输入的密码不一致,请检查后重试。');
		return false;
	}
	if(formct.password.value.length<6) {
		alert('密码太少,请用6位以上');
		return false;
	}
	if(formct.email.value=='') {
		alert('电子邮箱地址为空,请填写');
		return false;
	}
}
</script>
      </td>
    </tr>
  </table>
  </center>
</div>
<!--
EOT;
} elseif(!empty($_GET['do'])) {
	if($_GET['do']=='showinfo') {
print <<<EOT
-->
<div align="center">
  <center>
  <table cellspacing="0" cellpadding="0" width="760" height="20" align=center border=0 bgcolor="#FFFFFF">
    <tr>
      <td height=20 align="left">您的位置:<a href="{$mainurl}">首页</a>&nbsp;&gt;&nbsp;[{$username}]个人资料&nbsp;&gt;</td>
    </tr>
  </table>
  </center>
</div>
<div align="center">
  <center>
  <table width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
    <tr>
      <td height="20"><p align="center">【{$username}个人资料】</p></td>
    </tr>
  </table>
</div>
<div align="center">
  <center>
  <table width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
    <tr>
      <td>
<div align="center">
  <table width="500" border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC" bgcolor="#FFFFFF">
    <tr bgcolor="#FFFFFF">
      <td width="30%"><font color=red>*</font>用户名:</td><td>{$username}</td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width="30%">Email:</td><td>{$email}</td>
    </tr>
    <tr bgcolor='#FFFFFF'>
      <td valign='top'>QQ:</td><td>{$qq}</td>
    </tr>
    <tr bgcolor='#FFFFFF'>
      <td valign='top'>其它:</td><td><textarea name="introduce" rows='5' cols='45'>{$introduce}</textarea></td>
    </tr>
  </table>
</div>
      </td>
    </tr>
  </table>
  </center>
</div>
<!--
EOT;
	}
}
?>
-->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -