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

📄 fun_admin.php

📁 一个简单的人才信息交流版
💻 PHP
📖 第 1 页 / 共 2 页
字号:
<meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
<meta name='keywords' content='<?echo "$admin[keyword]"?>'>
<meta name='description' content='<?echo "$admin[description]"?>'>
<title><?echo "$admin[title]"?></title><link rel='stylesheet' href='./images/style.css'>
<script language='JavaScript1.2'>
window.status='<?echo "$admin[head]"?>';
</script>
<script language="JavaScript">
<!--
   function mouseOver(src,colorOver)
   {
   src.style.cursor = 'hand'; src.bgColor = colorOver;
   }
   function mouseOut(src,colorIn)
   {
   src.style.cursor = 'default';
   src.bgColor = colorIn;
   }
// -->
</script>
</head>

<body>
<br>
<table width=718 cellpadding=0 cellspacing=0><tr><td class=dh></table>
<table border="0" cellpadding="0" cellspacing="0" width=720 bgcolor="" height=20></table>
<br>




<?
}

####<显示每页下部功能>####
function pagedown(){
global $admin;
?>
      </td>
    </tr>
  </table>
  </center>
</div>
<br><br>
<?echo $admin[ad];?>
<br>
<TABLE cellSpacing=0 cellPadding=0 width=720 border=0 align=center>
  <TR>
    <TD bgColor=#dddddd><IMG height=1 src="<IMG src="<?echo$admin[img];?>/spc.gif" border=0></TD></TR>
</TABLE>
<table border="0" cellpadding="3" cellspacing="0" width="720" bgcolor="#efefef" align=center>
      <tr>
        <td align="center"><a href="<?echo$admin[downphp];?>?"><font class=d>最新消息</font></a> | <a href='<?echo$PHP_SELF;?>?action=add'><font class=d>信息登记</font></a> | <a href='<?echo$PHP_SELF;?>?action=top'><font class=d>热门信息</font></a>
        </td></tr>
    </table>
<TABLE cellSpacing=0 cellPadding=0 width=720 border=0 align=center>
  <TR>
    <TD bgColor=#dddddd><IMG height=1 src="<IMG src="<?echo$admin[img];?>/spc.gif" border=0></TD></TR>
</TABLE>
<center>
<br> <br> <span style="color: #000000; font-size: 11px; font-family: Tahoma, Arial">
&copy; 2004, <b><a href="<?php echo $admin[url];?>" target="_blank" style="color: #000000"><?php echo $admin[title];?>.</a></a></b>
Powered by <a href="http://www.iiyi.com" style="color: #000000" target="_blank"><b style='color: #FF9900'>IIYI</b></a>
</span><br><br> 
</center>


<?
}
####<显示下载搜索功能>####
function search(){
global $admin;
?>
<table border='0' width='100%' cellspacing='1' cellpadding='0'>
          <tr><form method='POST' action='<?echo$PHP_SELF;?>?action=search'>
            <td width='100%'><p align='center'>关键词: <input size='24' name='keyword'>&nbsp;&nbsp;&nbsp;<INPUT TYPE="submit" VALUE=" 搜 索 ">&nbsp;&nbsp;&nbsp;<a href='<?echo$PHP_SELF;?>?action=add'>资源登记</a> <IMG src="<?echo$admin[img];?>/newmail.gif" border=0></p></td></form>
          </tr>
</table>

<br>
<table border="0" cellpadding="3" cellspacing="0" width="720" bgcolor="#ffffff" align=center>
      <tr>
        <td align="center"><a href=index.php?><b>全国</b></a> ← <a href=<?echo$PHP_SELF;?>?action=search&keyword=北京><b>北京</b></a> <a href=<?echo$PHP_SELF;?>?action=search&keyword=上海><b>上海</b></a> <a href=<?echo$PHP_SELF;?>?action=search&keyword=大连><b>大连</b></a> <a href=<?echo$PHP_SELF;?>?action=search&keyword=沈阳><b>沈阳</b></a> <a href=<?echo$PHP_SELF;?>?action=search&keyword=青岛><b>青岛</b></a> <a href=<?echo$PHP_SELF;?>?action=search&keyword=重庆><b>重庆</b></a> <a href=<?echo$PHP_SELF;?>?action=search&keyword=哈尔滨><b>哈尔滨</b></a> <a href=<?echo$PHP_SELF;?>?action=search&keyword=广州><b>广州</b></a> <a href=<?echo$PHP_SELF;?>?action=search&keyword=济南><b>济南</b></a> <a href=<?echo$PHP_SELF;?>?action=search&keyword=昆明><b>昆明</b></a> <a href=<?echo$PHP_SELF;?>?action=search&keyword=南京><b>南京</b></a> <a href=<?echo$PHP_SELF;?>?action=search&keyword=成都><b>成都</b></a> <a href=<?echo$PHP_SELF;?>?action=search&keyword=杭州><b>杭州</b></a> <a href=<?echo$PHP_SELF;?>?action=search&keyword=武汉><b>武汉</b></a> <a href=<?echo$PHP_SELF;?>?action=search&keyword=西安><b>西安</b></a> <a href=<?echo$PHP_SELF;?>?action=search&keyword=苏州><b>苏州</b></a> <a href=<?echo$PHP_SELF;?>?action=search&keyword=深圳><b>深圳</b> </a> → <a href=index.php?><b>各地</b></a>
</td></tr>
    </table>





<?

}
####<显示每行下载资源功能>####
function output($line,$no){
global $admin;
$info=explode("|!:!|",$line);
$inxo=explode("|!|",$line);
$unew=explode(".",$info[9]);
$today=date("Y-m-d");
if ($unew[0]==$today)$new="<img border='0' src='$admin[img]/new.gif'>";
if (is_file("$admin[upload]/$info[0].gif") or is_file("$admin[upload]/$info[0].jpg"))$fpic="<img border='0' src='$admin[img]/smallcamera.gif'>";
if ($info[11]==本站推荐)$hot="<img border='0' src='$admin[img]/m1.gif'>";
if ($inxo[2]!="")$siteurl="<a href=$inxo[2] target=_blank><span class=dnonek>$inxo[2]</span></a>";

if(strlen($info[4])>150){$in=substr($info[4],0,150);$in.="...";}
 else{$in=$info[4];}
 if($no % 2 == 0)
      {$bgcolor = $admin[bgcolor1]; }
    else
      {$bgcolor = $admin[bgcolor2];}
      
 $in=ereg_replace("<br>","\r\n",$in);$in=ereg_replace("<br>","\r",$in);
      
if ($info[11]!=nopass)

echo "
<table border='0' width='97%' height=100 cellpadding='2'align='center' bgcolor=$bgcolor>
    <tr>
    <td width='450'><a href=javascript:openScript('index.php?action=show2win&id=$info[0]',580,300) title=$in><img border='0' src='$admin[img]/arr.gif'alt=NO:$no border=0></a> <a href='$PHP_SELF?action=show&id=$info[0]' title='$in'><b><font color=#14519b class=b>$info[1]</font></b></a> $new $fpic $hot</td>
    <td width='120'><a href=javascript:openScript('index.php?action=show2win&id=$info[0]',640,480) title=$in>详细资料>></a></td>
    <td width='25' align='center'><a href='$PHP_SELF?action=edit&id=$info[0]' title='修改'><img border='0' src='$admin[img]/edit.gif'></a></td>
    </tr><tr><td colspan=4 width=100%><font color=blue>类别:</font>$info[8]<br><font color=blue>电话:</font>$info[7]<br><font color=blue>摘要:</font>$inxo[2]<br><font color=blue>地址:</font>$inxo[1]</td></tr>
</table>
";

else echo "
<table border='0' width='97%' height=100 cellpadding='2'align='center' bgcolor=$bgcolor>
    <tr>
    <td width='450'><a href=javascript:openScript('index.php?action=show2win&id=$info[0]',580,300) title=$in><img border='0' src='$admin[img]/arr.gif'alt=NO:$no border=0></a> <a href='$PHP_SELF?action=show&id=$info[0]' title='$in'><b><font color=red class=b>$info[1]</font></b></a> $new (待审核)</td>
    <td width='120'><a href=javascript:openScript('index.php?action=show2win&id=$info[0]',640,480) title=$in>详细资料>></a></td>
    <td width='25' align='center'><a href='$PHP_SELF?action=edit&id=$info[0]' title='修改'><img border='0' src='$admin[img]/edit.gif'></a></td>
    </tr><tr><td colspan=4 width=100%><font color=blue>类别:</font>$info[8]<br><font color=blue>电话:</font>$info[7]<br><font color=blue>摘要</font>$inxo[2]<br><font color=blue>地址:</font>$inxo[1]</td></tr>
</table>
";

}



####<显示下载主菜单功能>####
function menu(){
global $admin;
$file="$admin[downpath]/main.dat";
$down[1]=0;$down[2]=0;$down[3]=0;$down[4]=0;$down[5]=0;$down[6]=0;$down[7]=0;$down[8]=0;$down[9]=0;
$down[10]=0;$down[11]=0;$down[12]=0;$down[13]=0;$down[14]=0;
$down[101]=0;$down[102]=0;$down[103]=0;$down[104]=0;$down[105]=0;$down[106]=0;$down[107]=0;$down[108]=0;$down[109]=0;$down[110]=0;
$down[201]=0;$down[202]=0;$down[203]=0;$down[204]=0;$down[205]=0;$down[206]=0;$down[207]=0;$down[208]=0;$down[209]=0;
$down[301]=0;$down[302]=0;$down[303]=0;$down[304]=0;$down[305]=0;$down[306]=0;$down[307]=0;$down[308]=0;$down[309]=0;$down[310]=0;$down[311]=0;$down[312]=0;$down[313]=0;$down[314]=0;
$down[401]=0;$down[402]=0;$down[403]=0;$down[404]=0;$down[405]=0;$down[406]=0;$down[407]=0;$down[408]=0;$down[409]=0;$down[410]=0;$down[411]=0;$down[412]=0;
$down[501]=0;$down[502]=0;$down[503]=0;$down[504]=0;$down[505]=0;$down[506]=0;$down[507]=0;$down[508]=0;$down[509]=0;
$down[601]=0;$down[602]=0;$down[603]=0;$down[604]=0;$down[605]=0;$down[606]=0;$down[607]=0;$down[608]=0;$down[609]=0;$down[610]=0;$down[611]=0;$down[612]=0;$down[613]=0;$down[614]=0;$down[615]=0;$down[616]=0;$down[617]=0;$down[618]=0;$down[619]=0;$down[620]=0;
$big[1]=0;$big[2]=0;$big[3]=0;$big[4]=0;$big[5]=0;$big[6]=0;
  $list=fopen($file,"r");
while(!(feof($list))){
  $line=getline($list);
  $xline=explode("|!:!|",$line);
  $xmenu=explode("--",$xline[8]);
  if ($xmenu[0]=="1")
     {$big[1]++;
      if($xmenu[1]=="2")$down[101]++;
        elseif($xmenu[1]=="3")$down[102]++;
     }
     elseif ($xmenu[0]=="其它类型") {$big[7]++;}

}
fclose($list);
$list=$file;
$data=fopen($list,"r");
$num=chop(fgets($data,15));
?>
<?
require "config.php";
$menuexp=explode("|", $menu);
$result = count ($menuexp); 
?>
<br>

<br>
<DIV id="TREE0Parent" Class="Parent">
<table width="140" border="0">
<tr><td class=xb><a href="#" onClick="expandIt('TREE0'); return false;"><img ID="I_TREE0" border="0" src="<?echo$admin[img];?>/expand.gif" alt="折叠"></a> <a href="#" onClick="expandIt('TREE0'); return false;">求职信息</a></td></tr>
</table>
</DIV>
<!//----------------aiaiyi-------------------在下面添加在下面添加求职分类----------------------------//>
<?
for ($i = 0;$i < $result; $i++)
{ 
?>
<table width="100" border="0" align=center><tr><td><a href="<?echo $admin[downphp];?>?action=search&keyword=<?echo '求职--'.$menuexp[$i];?>"><? print $menuexp[$i];?></a></td></tr></table>
<?
}
?>
</DIV>


<DIV id="TREE1Parent" Class="Parent">
<table width="140" border="0">
<tr><td class=xb><a href="#" onClick="expandIt('TREE1'); return false;"><img ID="I_TREE1" border="0" src="<?echo$admin[img];?>/expand.gif" alt="折叠"></a> <a href="#" onClick="expandIt('TREE1'); return false;">招聘信息</a></td></tr>
</table>
</DIV>
<DIV id="TREE1Child" Class="Child">
<!//----------------aiaiyi-------------------在下面添加招聘分类-----------------------------//>
<?
for ($i = 0;$i < $result; $i++)
{ 
?>
<table width="100" border="0" align=center><tr><td><a href="<?echo $admin[downphp];?>?action=search&keyword=<?echo '招聘--'.$menuexp[$i];?>"><? print $menuexp[$i];?></a></td></tr></table>
<?
}
?>
</DIV>



<br><br>
<table width="100" border="0" align=center>
  <tr> 
    <td><a href='<?echo$PHP_SELF;?>?action=add'>免费登记</a>
    <br><a href="<?echo$PHP_SELF;?>?action=top">点击TOP列表</a><br>
</td>
  </tr>
</table>
<?
}
####<显示下载Top10功能>####
function top(){
global $admin;
$file="$admin[downpath]/main.dat";
$data=fopen($file,"r");
$num=chop(fgets($data,15))+1;
fclose($data);
if ($num<>0)
{
$data=fopen($file,"r");
for($i=0;$i<$num;){
$line[$i]=getline($data);
$xdata = explode('|!:!|',$line[$i]);
$click[]= $xdata[10];  
$i++;
}
arsort($click);
for( reset($click); $key = key($click);next($click)) {
  $xkey[]=$key;
}
?>
<div align="center">
  <center>
  <table border="0" width="140" bgcolor="#000000" cellspacing="0" cellpadding="0">
    <tr>
      <td width="100%">
        <table border="0" width="100%" cellspacing="1" cellpadding="0">
          <tr>
            <td width="100%" align="center" bgcolor="#F2F2F2" height="20">点击TOP10</td>
          </tr>
<?
for ($i=0;$i<10;$i++)
{ 
$top=explode("|!:!|",$line[$xkey[$i]]);
if(strlen($top[4])>20){$in=substr($top[4],0,20);$in.="...";}
 else{$in=$top[4];}
if ($top[0]<>""){
?>
<tr>     <td width="100%" bgcolor="#FFFFFF"><img border="0" src="<?echo$admin[img];?>/rdot.gif"><font color=red><b><?echo $i+1;?>.</b></font><a href="<?echo$PHP_SELF;?>?action=show&id=<?echo$top[0];?>" title="<?echo$in;?>"><?echo$top[1];?></a><font color=red>(<?echo $top[10];?>)</font></td>
          </tr>
<?
}}
?>
        </table>
      </td>
    </tr>
  </table>
  </center>
</div>
<?
}
else {
echo "因无数据所以无TOP表!!!";
}
}
####################################函数完成#############################################
?>

⌨️ 快捷键说明

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