📄 index_nopass.php
字号:
</td>
</tr>
<tr>
<td align="center">信息简介</td>
<?$xline[4]=ereg_replace("<br>","\r\n",$xline[4]);$xline[4]=ereg_replace("<br>","\r",$xline[4]);?>
<td bgcolor="#FFFFFF" colspan="3">
<textarea class=stedit cols=40 name=msg rows=3><?echo $xline[4];?></textarea>
</td>
</tr>
<tr>
<td align="center">审核状态</td>
<td bgcolor="#FFFFFF" colspan="3">
<select name="passok">
<option value="0">激活-0</option>
<option value="nopass">冻结-nopass</option>
<option value="本站推荐">本站推荐</option>
</select>
</td>
</tr>
<tr>
<td align="center">点击数</td>
<td bgcolor="#FFFFFF" colspan="3">
<input type="text" name="clickcount" size="15" maxlength="10" value="<?echo $xline[10];?>">
</td>
</tr>
<tr>
<td align="center">旧的密码</td>
<td bgcolor="#FFFFFF" colspan="3">
<input type="text" name="password" size="15" maxlength="10" value="<?echo $xx[3];?>">
</td>
</tr>
<tr>
<td align="center">新的密码</td>
<td bgcolor="#FFFFFF" colspan="3">
<input type="text" name="password2" size="15" maxlength="10" value="<?echo $xx[3];?>">
</td>
</tr>
<tr>
<td align="center"></td>
<td bgcolor="#FFFFFF" colspan="3">
<input type="hidden" name="id" value="<? echo $id;?>"><input type="submit" value="我修改好了!" name="editsub" class="stbtm">
<input type="button" value="全部删除" onClick="location.href='?action=del&id=<? echo $id;?>&password=<?echo $admin[password];?>&delsub=删除';" name="button2">
</td>
</tr>
</table></form>
<?
pagedown();
}
}elseif($searchsub or $action=="search"){
if($keyword=="")error("怎么不写关键字?");
else{
pagetop();
$xx=0;
$list=fopen($admin[downpath]."/main.dat","r");
while(!(feof($list))){
$line=getline($list);
if(strpos($line,$keyword)){
$xx++;
}
}
fclose($list);
$ii=0; $xj=$xx;
while ($xj > 0) {
$xj=$xj-$admin[page];
$ii++;
}
flush();
if(empty($page))$page=1;
$start=($page-1)*$admin[page]; #得到起始帖子
$list=fopen($admin[downpath]."/main.dat","r");
if($page!=1 and $page!=0){
$i=1;
while($i<=$start and !(feof($list))){
$line=getline($list);
if(strpos($line,$keyword)){
$i++;
}
}
}
$i=1;
while($i<=$admin[page] and !(feof($list))){
$line=getline($list);
if(strpos($line,$keyword)){
if($line!="") output($line,$i+$start);
$i++;
}
}
fclose($list);
echo "<div align='center'>
<center><br><br>
<table border='0' width='95%' cellspacing='0' cellpadding='0'>
<tr>
<td width='100%'>关于 <font color=red><b>[$keyword]</b></font> 的信息共找到 <font color=red><b>[$xx]</b></font> 个,共分 <font color=red><b>[$ii]</b></font> 页显示,这是第 <font color=red><b>[$page]</b></font> 页</td>
</tr>
<tr>
<td width='100%'><br>";
$xj=$xx;
while ($xj > 0) {
if ($page <> $ii){echo " <a href=$PHP_SELF?action=search&page=$ii&keyword=$keyword>" ;}
echo "[$ii]";
if ($page <> $ii){echo "</a> " ;}
$xj=$xj-$admin[page];
$ii--;
}
echo "</td></tr></table></center></div>";
pagedown();
}}
elseif($action=="type"){
if($type=="")error("请输入分类");
else{
pagetop();
$xx=0;
$list=fopen($admin[downpath]."/main.dat","r");
$num=chop(fgets($list,15));
$ii=0; $xj=$num;
while ($xj > 0) {
$xj=$xj-$admin[page];
$ii++;
}
$end=$start+$admin[page];
for($i=$start;$i<$end;$i++){
if($line<>"") output($line,$i);
}
while(!(feof($list))){
$line=getline($list);
$xline=explode("|!:!|",$line);
$xtype=explode("--",$xline[8]);
if($xtype[0]==$type) $xx++;
elseif($xtype[1]==$type) $xx++;
elseif($xline[8]==$type) $xx++;
}
fclose($list);
$ii=0; $xj=$num;
while ($xj > 0) {
$xj=$xj-$admin[page];
$ii++;
}
flush();
if(empty($page))$page=1;
$start=($page-1)*$admin[page]; #得到起始帖子
$list=fopen($admin[downpath]."/main.dat","r");
if($page!=1 and $page!=0){
$i=1;
while($i<=$start and !(feof($list))){
$line=getline($list);
$xline=explode("|!:!|",$line);
$xtype=explode("--",$xline[8]);
if($xtype[0]==$type) $i++;
elseif($xtype[1]==$type) $i++;
elseif($xline[8]==$type) $i++;
}
}
$i=1;
while($i<=$admin[page] and !(feof($list))){
$line=getline($list);
$xline=explode("|!:!|",$line);
$xtype=explode("--",$xline[8]);
if($xtype[0]==$type)
{ output($line,$i+$start);
$i++; }
elseif($xtype[1]==$type)
{ output($line,$i+$start);
$i++; }
elseif($xline[8]==$type)
{ output($line,$i+$start);
$i++;}
}
$ii=round($xx/$admin[page]);
fclose($list);
echo "<div align='center'>
<center><br><br>
<table border='0' width='95%' cellspacing='0' cellpadding='0'>
<tr>
<td width='100%'><font color=red><b>[$type]</b></font> 类别共有 <font color=red><b>[$xx]</b></font> 个信息,共分 <font color=red><b>[$ii]</b></font> 页显示,这是第 <font color=red><b>[$page]</b></font> 页</td>
</tr>
<tr>
<td width='100%'><br>";
while ($ii > 0) {
if ($page <> $ii){echo " <a href=$PHP_SELF?action=type&page=$ii&type=$type>" ;}
echo "[$ii]";
if ($page <> $ii){echo "</a> " ;}
$xj=$xj-$admin[page];
$ii--;
}
echo "</td></tr></table></center></div>";
pagedown();
}
}
elseif($action=="top"){
$file="$admin[downpath]/main.dat";
$data=fopen($file,"r");
$num=chop(fgets($data,15))+1;
fclose($data);
if ($num<>0)
{pagetop();
$data=fopen($file,"r");
for($i=0;$i<$num;){
$line[$i]=getline($data);
$xdata = explode('|!:!|',$line[$i]);
$click[]= $xdata[10]; $i++;
}
arsort($click);
$xxx=1;
for( reset($click); $key = key($click);next($click)) {
$xkey[]=$key;
}
$ii=0; $xj=$num;
while ($xj > 0) {
$xj=$xj-$admin[page];
$ii++;
}
if(empty($page)){$page=1;}
$start=($page-1)*$admin[page];
$end=$start+$admin[page];
for($i=$start;$i<$end;$i++){
if($line[$xkey[$i]]<>"") output($line[$xkey[$i]],$i+1);
}
echo "<div align='center'>
<center><br><br>
<table border='0' width='95%' cellspacing='0' cellpadding='0'>
<tr>
<td width='100%'>总共有 <font color=red><b>[$ii]</b></font> 页 这是第 <font color=red><b>[$page]</b></font> 页 ";
$xj=$num;
while ($xj > 0) {
if ($page <> $ii){echo "<a href=$PHP_SELF?action=top&page=$ii>" ;}
echo "[$ii]";
if ($page <> $ii){echo "</a>" ;}
$xj=$xj-$admin[page];
$ii--;
}
echo "</td></tr></table></center></div>";
pagedown();
}
else {
echo "因无数据所以无TOP表!!!";
}
}
elseif($action=="show2win"){
if ($id<>"")
{
flush();
$file="$admin[downpath]/main.dat";
$data=fopen($file,"r");
$headdata="";$sign=1;$id="$id";
While($sign){
$headdata=$headdata.$temp;
$temp=fgets($data,5000);
$line=explode("|!:!|",$temp);
if($line[0]==$id) $sign=0;
if(feof($data)){error("没有找到链接!!!"); exit;}
}
$xi=explode("|!|",$line[3]);
$xx=explode("|#|",$line[5]);
$xxcount=$xx[0]+$xx[1]+$xx[2];
$line[10]=$line[10]+1;
$temp2=implode("|!:!|",$line);
$footdata=fread($data,filesize($file));
fclose($data);
$writemsg=$headdata.$temp2.$footdata;
$data=fopen($file,"w");
flock($data,LOCK_EX);
fwrite($data,$writemsg);
fclose($data);
?>
<html>
<head>
<title>爱爱医</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">#wdbplocation {
position: absolute;
visibility: hidden;
height: 1;
width: 1;
top: 0;
left: 0;
}
<!--
p,input,select{font-size:12px; color:333333; FONT-FAMILY: 宋体}
TABLE{BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 2px }
td{BORDER-RIGHT: 1px; BORDER-TOP: 0px; FONT-SIZE: 12px; color:#000000; font-family:宋体}
td{word-break:break-all}
a {text-decoration:none; }
a:hover {color:#0066cc;text-decoration: underline;}
BODY {FONT-SIZE: 12px; FONT-FAMILY: 宋体 COLOR: #CCAAAA;SCROLLBAR-BASE-COLOR: 6699cc}
TEXTAREA {FONT-SIZE: 12px; FONT-FAMILY: 宋体}
.menu {
FILTER: revealTrans(transition=23,duration=0.5) blendTrans(duration=0.5); VISIBILITY: hidden; POSITION: absolute;
height:20px; z-index:1; background-color: #FEFEFF; layer-background-color: #FEFEFF; border: 1px none #500000;
}
.title { color:ffffff }
.cau { color:990000 }
.xb {FONT-SIZE: 14.8px; FONT-FAMILY: 宋体}
.bot {
BORDER-BOTTOM: BORDER-BOTTOM: medium none; BORDER-LEFT: rgb(0,0,0) 1px solid; BORDER-RIGHT: rgb(0,0,0) 1px solid; BORDER-TOP: rgb(0,0,0) 1px solid}
.bot2 { border: solid; border-width: 0px 1px 1px; border-color: black #000000 #000000}
.bot4 { border: #000000; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}
.bot3 { border-color: #000000 #000000 black; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-left-width: 1px}-->
</style>
</head>
<body bgcolor=ffffff background="ffffff" vlink=333333 link=333333 alink=333333>
<table border="0" width="100%" cellspacing="1" cellpadding="2" align="center" bgcolor=#000000>
<tr>
<td colspan="4" bgcolor="#6699cc" class=xb height=25>
<table width=100%><tr><td><font color=white class=xb>◎ <?echo $line[1];?></font></td><td width=45 align=right><a href=?action=edit&id=<?echo $line[0];?>><img src=images/edit.gif border=0 alt=修改></a> <a href=?action=del&id=<?echo $line[0];?>><img src=images/del.gif border=0 alt=删除></a></td></tr></table></td>
</tr>
<?
$forumlogofile="$admin[upload]/".$line[0].".gif";
if(file_exists($forumlogofile))
$forumlogo="<tr bgcolor=#ffffff><td height=25 colspan=4 align=center><img src='$forumlogofile' border=0></td></tr>";
echo "$forumlogo";
$forumlogofile2="$admin[upload]/".$line[0].".jpg";
if(file_exists($forumlogofile2))
$forumlogo2="<tr bgcolor=#ffffff><td height=25 colspan=4 align=center><img src='$forumlogofile2' border=0></td></tr>";
echo "$forumlogo2";
?>
<tr bgcolor="#efefef">
<td width="15%" height=25>
<div align="center"><font color=blue>类别:</font> </div>
</td>
<td width="35%">
<?echo $line[8];?>
</td>
<td width="15%">
<div align="center"><font color="blue">注册日期:</font> </div>
</td>
<td width="35%">
<?echo $line[9];?>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="15%" height=25>
<div align="center"><font color=blue> 联系人:</font> </div>
</td>
<td colspan="3">
<?echo$xi[0];?></a>
</td>
</tr>
<tr bgcolor="#efefef">
<td width="15%" height=25>
<div align="center"><font color=blue>电话:</font> </div>
</td>
<td colspan="3">
<?echo $line[7];?>
</td>
</tr>
<tr bgcolor="#ffffff">
<td width="15%" height=25>
<div align="center"><font color=blue>地址:</font> </div>
</td>
<td colspan="3">
<?echo$xi[1];?>
</td>
</tr>
<tr bgcolor="#efefef">
<td width="15%" height=25>
<div align="center"><font color=blue>摘要</font> </div>
</td>
<td colspan="3">
<?echo$xi[2];?>
</td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -