📄 user.php
字号:
<td height="12"><img src="images/spacer.gif" width="1" height="1"></td>
</tr>
<tr>
<td height="25" align="right" nowrap onMouseOver="bgcolor_on(event,'','#FFFFFF')" onMouseOut="bgcolor_off(event,'','#FFF0AE')"><table border="0" cellpadding="0" cellspacing="0" bgcolor="#FDFDFD">
<tr>
<td width="45" height="25" align="center" nowrap class="topnav2" onMouseOver="bgcolor_on(event,'','#FFFFFF')" onMouseOut="bgcolor_off(event,'','#FFF0AE')"><a href="/" >首 页</a></td>
<td width="8" align="center" nowrap> </td>
<td width="75" align="center" nowrap class="topnav" onMouseOver="bgcolor_on(event,'','#FFFFFF')" onMouseOut="bgcolor_off(event,'','#FFF0AE')"><a href="../sites.htm" ><font color="#0000FF">精彩网站</font></a></td>
<td width="8" align="center" nowrap> </td>
<td width="75" align="center" nowrap class="topnav" onMouseOver="bgcolor_on(event,'','#FFFFFF')" onMouseOut="bgcolor_off(event,'','#FFF0AE')"><a href="index.htm" ><font color="#0000FF">流量联盟</font></a></td>
<td width="8" align="center" nowrap> </td>
<td width="75" align="center" nowrap class="topnav" onMouseOver="bgcolor_on(event,'','#FFFFFF')" onMouseOut="bgcolor_off(event,'','#FFF0AE')"><a href="user.php?type=reg" ><font color="#FF0000">新站加入</font></a></td>
<td width="8" align="center" nowrap> </td>
<td width="75" align="center" nowrap class="topnav" onMouseOver="bgcolor_on(event,'','#FFFFFF')" onMouseOut="bgcolor_off(event,'','#FFF0AE')"><a href="user.php?type=login" ><font color="#FF0000">修改资料</font></a></td>
<td width="8" align="center" nowrap> </td>
<td width="75" align="center" nowrap class="topnav" onMouseOver="bgcolor_on(event,'','#FFFFFF')" onMouseOut="bgcolor_off(event,'','#FFF0AE')"><a href="user.php?type=code" ><font color="#0000FF">获取代码</font></a></td>
<td width="8" align="center" nowrap> </td>
<td width="75" align="center" nowrap class="topnav" onMouseOver="bgcolor_on(event,'','#FFFFFF')" onMouseOut="bgcolor_off(event,'','#FFF0AE')"><a href="user.php?type=pwd" >取回密码</a></td>
<td width="8" align="center" nowrap> </td>
</tr>
</table></td>
</tr>
<tr bgcolor="#FF9900">
<td colspan="3"><img src="images/spacer.gif" width="1" height="1"><img src="images/spacer.gif" width="1" height="1"></td>
</tr>
</table>
<table border="0" width="680" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="20"></td>
</tr>
<tr>
<td width="100%">
<? //############################ 新站加入/修改资料 ###############################
if (($_GET['type']=="reg") or($_GET['type']=="edit")) { ;?>
<?
if ($_GET['type']=="edit") {
if ($_GET['user']=="") {
echo "<script>alert('参数错误:用户名不能为空!')</script>";
echo "<meta http-equiv='Refresh' content='0; URL=user.php?type=login'>";
}
if ($jypxlogin==$_GET['user']) {
$editlogin=$jypxlogin;
}
else
{
$editlogin=$_GET['user'];
}
$sql="select * from site where user='".$_GET['user']."'";
$chequery=mysql_query($sql);
$rs=@mysql_fetch_array($chequery);
if($rs['user']==""){
echo "没有该用户!" ;
}
}
;?>
<table border="0" width="100%" cellspacing="1" cellpadding="0" bgcolor="#808080">
<form method="POST" action="save.php?type=<? echo $_GET['type']; ;?><? if ($_GET['type']=="edit") { ;?>&user=<? echo $rs['user']; ;?><? } ;?>">
<tr>
<td width="100%">
<p align="center"><b><font color="#FFFFFF"><? if ($_GET['type']=="edit") { ;?>修改资料
[</font><a href="save.php?type=exit"><font color="#00FF00">退出登陆</font></a><font color="#FFFFFF">]<? }else{ ;?>新站加入<? } ;?></font></b></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF">
<table border="0" width="100%" cellspacing="1" cellpadding="3">
<tr>
<td width="18%" align="right" nowrap>用户名:</td>
<td width="82%" nowrap><? if ($_GET['type']=="edit") { ;?><font color="#FF0000"><? echo $rs['user']; ;?></font><input value="<? echo $rs['user']; ;?>" name="user" type="hidden"><?} else{ ;?><input name="user" size="13">
* 不要有空格<? } ;?>
</td>
</tr>
<tr>
<td width="18%" align="right" nowrap>密 码:</td>
<td width="82%" nowrap><input name="pwd" size="13" value="<? if ($_GET['type']=="edit") { ;?><? echo $rs['pwd']; ;?><? } ;?>" type="password">
* 不要有空格
</td>
</tr>
<tr>
<td width="18%" align="right" nowrap>EMAIL:</td>
<td width="82%" nowrap><input name="email" size="48" value="<? if ($_GET['type']=="edit") { ;?><? echo $rs[email]; ;?><? } ;?>">
*
</td>
</tr>
<tr>
<td width="18%" align="right" nowrap>网站名称:</td>
<td width="82%" nowrap><input name="web" size="19" value="<? if ($_GET['type']=="edit") {
echo $rs['web'];
} ;?>">
*
</td>
</tr>
<tr>
<td width="18%" align="right" nowrap>网站地址:</td>
<td width="82%" nowrap><input name="url" size="48" value="<? if ($_GET['type']=="edit") { ;?><? echo $rs['url']; ;?><?} else{ ;?>http://<? } ;?>">
*
</td>
</tr>
<tr>
<td width="18%" align="right" nowrap>网站类型:</td>
<td width="82%" nowrap>
<select name="typeid">
<?
$select="select * from type";
$qr=mysql_query($select);
while($ar=mysql_fetch_array($qr)){;?>
<option value="<? echo $ar[id];?>"><? echo $ar[typename];?></option>
<?
}
;?>
</select>
* <font color="#FF0000">请选好贵站所属的网站类型.</font>
</td>
</tr>
<tr>
<td align="right" nowrap>站长QQ:</td>
<td nowrap><input name="qq" id="qq" value="<? if ($_GET['type']=="edit") {
echo $rs['qq'];
} ;?>" size="19">
* 留下QQ号码,让我们共同努力!</td>
</tr>
<? if ($_COOKIE['jypxadmin']=='oktop'){ ;?>
<tr>
<td width="18%" align="right" nowrap></td>
<td width="82%" nowrap>点进数:<input name="incount" size="7" value="<? echo $rs['incount']; ;?>" style="color: #FF0000">
点出数:<input name="outcount" size="7" value="<? echo $rs['outcount']; ;?>" style="color: #FF0000"></td>
</tr>
<? } ;?>
<tr>
<td colspan="2" nowrap>
<p align="center">
<input type="submit" value=" <? if ($_GET['type']=="edit") { ;?>修改资料 (修改资料后要待管理员从新审核后方能上榜)<?} else{ ;?>现在加入<? } ;?> ">
</td>
</tr>
<tr>
<td colspan="2" nowrap>
</td>
</tr>
</table>
</td>
</tr>
</form>
</table>
<? //############################ 修改资料登陆 ###########################
}else if ($_GET['type']=="login") { ;?>
<form method="POST" action="save.php?type=login">
<div align="center">
<table border="0" bgcolor="#808080" cellspacing="1">
<tr>
<td width="100%">
<p align="center"><b><font color="#FFFFFF">修改资料</font></b></p>
</td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF">用户名:<input name="user" size="20" style="color: #0000FF"></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF">密 码:<input name="pwd" size="20" style="color: #0000FF" type="password"></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF">
<p align="center"><input type="submit" value="确认登陆"> <a href="user.php?type=pwd"><font color="#0000FF">忘了密码</font></a></td>
</tr>
</table>
</div>
</form>
<? }else if ($_GET['type']=="pwd") { ;?>
<form method="POST" action="save.php?type=pwd">
<div align="center">
<table border="0" bgcolor="#808080" cellspacing="1">
<tr>
<td width="100%">
<p align="center"><b><font color="#FFFFFF">取回密码</font></b></p>
</td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -