📄 index.php
字号:
<?php
require("../../class/connect.php");
include("../../class/config.php");
include("../../class/q_functions.php");
include("../../class/db_sql.php");
include("../../class/user.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
$user=islogin();
$email=GetUserEmail($user[userid],$user[username]);
$addr=$empire->fetch1("select truename,oicq,msn,`call`,phone,address,zip from {$dbtbpre}enewsmemberadd where userid='$user[userid]' limit 1");
db_close();
$empire=null;
$url="<a href=../../../>首页</a> > <a href=../cp>控制面板</a> > 修改资料";
include("../../data/template/cp_1.php");
?>
<table width='100%' border='0' align='center' cellpadding='3' cellspacing='1' class="tableborder">
<form name=editinfo method=post action=../../enews/index.php>
<input type=hidden name=enews value=EditInfo>
<tr class="header">
<td height="25" colspan="2">修改资料</td>
</tr>
<tr bgcolor="#EFEFEF">
<td height="25" colspan="2"><strong>其本信息</strong></td>
</tr>
<tr>
<td width='25%' height="25" bgcolor="#FFFFFF"> <div align='left'>用户名 </div></td>
<td width='75%' height="25" bgcolor="#FFFFFF">
<?=$user[username]?>
</td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"> <div align='left'>旧密码</div></td>
<td height="25" bgcolor="#FFFFFF"> <input name='oldpassword' type='password' id='oldpassword' maxlength='20'>
(不想修改请留空)</td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"> <div align='left'>新密码</div></td>
<td height="25" bgcolor="#FFFFFF"> <input name='password' type='password' id='password' maxlength='20'>
(不想修改请留空)</td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"> <div align='left'>重复新密码</div></td>
<td height="25" bgcolor="#FFFFFF"> <input name='repassword' type='password' id='repassword' maxlength='20'>
(不想修改请留空)</td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"> <div align='left'>邮箱</div></td>
<td height="25" bgcolor="#FFFFFF"> <input name='email' type='text' id='email' maxlength='50' value='<?=$email?>'></td>
</tr>
<tr bgcolor="#EFEFEF">
<td height="25" colspan="2"><strong>其他信息</strong></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="25%" height="25">真实姓名:</td>
<td width="75%" height="25"> <input name="truename" type="text" id="truename" value="<?=$addr[truename]?>"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">OICQ:</td>
<td height="25"> <input name="oicq" type="text" id="oicq" value="<?=$addr[oicq]?>"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">MSN:</td>
<td height="25"> <input name="msn" type="text" id="msn" value="<?=$addr[msn]?>"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">固定电话:</td>
<td height="25"> <input name="call" type="text" id="call" value="<?=$addr[call]?>">
(区号+电话号码)</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">移动电话:</td>
<td height="25"> <input name="phone" type="text" id="phone" value="<?=$addr[phone]?>"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">联系地址:</td>
<td height="25"> <input name="address" type="text" id="call3" value="<?=$addr[address]?>" size="60"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">邮编:</td>
<td height="25"> <input name="zip" type="text" id="zip" value="<?=$addr[zip]?>" size="8"></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"> </td>
<td height="25" bgcolor="#FFFFFF"> <input type='submit' name='Submit' value='修改信息'>
<input type='button' name='Submit2' value='返回' onclick='history.go(-1)'></td>
</tr>
</form>
</table>
<?
include("../../data/template/cp_2.php");
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -