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

📄 pcd.php

📁 这是一个用c++builder编写的照片管理系统比较实用
💻 PHP
字号:
<? require("config.php"); 
if (empty($page)) $page=1;
if (empty($viewdetail)) $viewdetail=$re_viewdetail;
?>
<html>
<head>
<title>k666程序演示厅—http://www.vv66.net!风事画馆</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script type="text/javascript">
function openScript(url, width, height) {
        var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=yes,status=yes' );
}
</script>
<SCRIPT language=JavaScript>
NS4 = (document.layers);
IE4 = (document.all);
   FDRboxWid = 500;
   FDRboxHgt = 30;
   FDRborWid = 4;
   FDRborCol = "#eff4f6";
   FDRborSty = "solid";
   FDRbackCol = "#eff4f6";
   FDRboxPad = 4;

   FDRtxtAln = "center";
   FDRlinHgt = "11pt";
   FDRfntFam = "宋体";
   FDRfntCol = "#336699";
   FDRfntSiz = "10pt";
   FDRfntWgh = "bold";
   FDRfntSty = "normal";
   FDRlnkCol = "#eff4f6";
   FDRlnkDec = "underline";
   FDRhovCol = "#eff4f6";

   FDRgifSrc = "";
   FDRgifInt = 60;

   FDRblendInt = 6;
   FDRblendDur = 1;
   FDRmaxLoops = 100;

   FDRendWithFirst = true;
   FDRreplayOnClick = true;
   
   FDRjustFlip = false;
   FDRhdlineCount = 0;


</SCRIPT>
<LINK href="style.css" type=text/css rel=stylesheet>
</head>

<body bgcolor="<? echo $bg_color; ?>">
<table width="700" border="0" cellspacing="1" cellpadding="0" align="center">
  <tr> 
    <td width="206" align="center"><img src="images/pcd.jpg" width="200" height="60"></td>
    <td width="489" align="center"><? echo $advertise_html; ?> 
    </td>
  </tr>
</table>
<br>
<table width="450" border="0" cellspacing="1" cellpadding="0" align="center">
  <tr align="center"> 
    <td><b><? echo $pcd_title; ?></b></td>
  </tr>
</table>
<table width="500" border="0" cellspacing="1" cellpadding="0" align="center">
  <tr align="right"> 
    <td><a href="<? echo $site_index; ?>"><img src="images/home.gif" width="16" height="16" border=0>网站首页</a> <a href="register.php"><img src="images/register.gif" width="16" height="16" border=0>注册</a>
    <a href="pcdkill.php"><img src="images/close.gif" border=0 width="16" height="16">注销</a></td>
  </tr>
</table>
<table width="500" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#CCCCFF">
  <tr>
    <td>
      <table width="100%" border="0" cellspacing="1" cellpadding="0">
        <tr> 
          <td align=right>
          <? if ($viewdetail=="yes") 
             echo "<input type=\"button\" onClick=\"location.href='pcd.php?page=$page&viewdetail=no'\" value=\"隐藏专集名称\" style=\"color: #003366; background-color: #ccccff; border-width: 0\" onMouseOver =\"this.style.backgroundColor='#FFC864'\" onMouseOut =\"this.style.backgroundColor='#ccccff'\" name=\"button5\">";
             else echo "<input type=\"button\" value=\"显示专集名称\" onClick=\"location.href='pcd.php?page=$page&viewdetail=yes'\" style=\"color: #003366; background-color: #ccccff;  border-width: 0\" onMouseOver =\"this.style.backgroundColor='#FFC864'\" onMouseOut =\"this.style.backgroundColor='#ccccff'\" name=\"button5\">";
 ?>
          </td>
        </tr>
        <tr> 
          <td bgcolor="#FFFFFF"> 
            <table cellspacing=0 cellpadding=0 width=500 align=center 
              border=0>
              <tbody> 
              <tr valign=center align=middle bgcolor=#eff4f6 > 
                <td width="100%" height=30 > 
                  <script language=JavaScript1.2 type=text/javascript>
prefix="";
arNews = ["欢迎你来到图画展示空间,欢迎你和你的图片也来加入","","<? echo $pcd_title; ?>","","<? echo "有问题请发到:$admin_email"; ?>","","欢迎访问:myphp.yes8.com",""];
</script>
                  <script language=JavaScript1.2 src="fader.js" type=text/javascript>
</script>
                  <DIV id=elFader style="VISIBILITY: hidden; WIDTH: 500px; POSITION: relative"> 
                    <DIV align=center><FONT face=宋体 size=1>News Fader DHTML Browser.</FONT></DIV>
                  </DIV>
                </td>
              </tr>
              </tbody> 
            </table>
          </td>
        </tr>
        <tr> 
          <td>选择相册专集进入</td>
        </tr>
        
<? 
#####显示用户段
if (file_exists("user/$user_file")) {
  $style="style=\"background-color:#ffffff; border: 0 double #B4B4B4\" onMouseOver =\"this.style.backgroundColor = '#E5F0FF'\" onMouseOut =\"this.style.backgroundColor = '#ffffff'\"";
  $user_list=file("user/$user_file");
  $count=count($user_list);
  if ($count%$perpage==0) $maxpageno=$count/$perpage;
  else
  $maxpageno=floor($count/$perpage)+1;
  if ($page>$maxpageno) { $page=$maxpageno; $pagemax=$count-1; $pagemin=max(0,$count-$perpage-1);}
    else { if ($page==1) {$pagemin=0; $pagemax=min($count-1,$perpage-1); }
             else { $pagemin=min($count-1,$perpage*($page-1)); $pagemax=min($count-1,$pagemin+$perpage-1); }}

  for ($i=$pagemin; $i<=$pagemax; $i++) {
  $user_detail=explode("|",$user_list[$i]);
  print ('
        <tr> 
          <td bgcolor="#FFFFFF"> 
            <table width="450" border="0" cellspacing="1" cellpadding="0" align="center" bgcolor="#CCCCCC">
              <tr>
                <td>
                  <table width="100%" border="0" cellspacing="1" cellpadding="1" align="center">');
  echo "          <tr $style> 
                    <td colspan=2 width=\"220\"><a href=\"pcdlist.php?id=$user_detail[0]\">$user_detail[1]</a></td>
                    <td colspan=2 width=\"230\">共$user_detail[3]张图片</td>
                  </tr>";
  if ($viewdetail=="yes") {
    if (file_exists("user/$user_detail[0]/albumlist.php")) {
      $al_list=file("user/$user_detail[0]/albumlist.php");
      $c_al_list=count($al_list)-1;
      for ($j=0; $j<=$c_al_list; $j++) {
        $al_detail=explode("|",$al_list[$j]);
        echo "   <tr $style>
                 <td width=\"20\" align=\"center\"><img src=\"images/enter.gif\" width=\"20\" height=\"20\"></td>
                 <td width=\"200\"><a href=\"pcdview.php?id=$user_detail[0]&albumid=$al_detail[0]\">$al_detail[1]</a></td>
                 <td width=\"140\">共$al_detail[3]张图片</td>
                 <td width=\"90\">$al_detail[2]点人气值</td>
                 </tr>"; 
      }
    }
  }
  echo "</table></td></tr></table> </td></tr> ";
  }
}
?>        
        
        <tr> 
          <td>
         <font face="verdana" color="#ffffff" size="2"> 可选择页:</font> 
<? ######显示分页段       
      if (empty($maxpageno)) $maxpageno=0;
      echo "[ ";
      $nextpage=$page+1;
      $previouspage=$page-1;
      if ($page>=2) echo "<a href=\"pcd.php?page=$previouspage\"><font style=\"font-size: 7pt\" color=\"#ffffff\">上一页</font></a> ";
      else echo "<font style=\"font-size: 7pt\">上一页</font> ";

      if ($page<=$maxpageno-1) echo "<a href=\"pcd.php?page=$nextpage\"><font style=\"font-size: 7pt\" color=\"#ffffff\">下一页</font></a> ";
      else echo "<font style=\"font-size: 7pt\">下一页</font> ";
      
    for ($i=1; $i<=$maxpageno; $i++) {
      if ($i!=$page) 
      echo " <a href=\"pcd.php?page=$i\"><font face=\"verdana\" style=\"font-size: 7pt\" color=\"#ffffff\">$i</font></a> ";
      if ($i==20) {echo "<font style=\"font-size: 7pt \" color=#ffffff>以及更多 </font>"; break;}
    }
    echo "]";
?>       
          
</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br>
<table width=635 border=0 align="center">
  <tr> 
    <td> 
   <center>
        本论坛由<a href="mailto:clock123@163.net">旅行</a>制作| &copy; 2001<br>
            <table width="146" border="0" cellspacing="0" cellpadding="1" height="17" bgcolor="#CCCCCC">
              <tr>
                <td>
                  <table width="144" border="0" cellspacing="0" cellpadding="0" bgcolor="000066">
                    <tr align="center"> 
                      <td width="34" bgcolor="#FFFFFF"><a href="http://phpiscool.yeah.net"><font color="ffcf60" face="Verdana, Arial, Helvetica, sans-serif"><b><font color="34567c">PHP</font></b></font></a></td>
                      <td align="left" width="110" bgcolor="#9999CC">
                        <a href="http://phpiscool.yeah.net"><font face="Verdana" color="#FFFFFF">&nbsp;is </font></font><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif"><b>Cool</b> 
                          </font><font color="#FFFFFF" face="Arial, Helvetica, sans-serif">.yeah.net</font></a>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            <script>document.write("<a href=http://www.textclick.com/viewmain.asp?name=simpletrip target=_blank><img src=http://ad.t2t2.com/stat.asp?user=simpletrip&refer="+escape(document.referrer)+"&cur="+escape(document.URL)+" border=0></a>");</script>
      </center>
    </td>
        <td align=right width=236><font face="Verdana" color="#111166">Powered 
          by <a style="color:333366" href="http://phpiscool.yeah.net"><b>Pic Dimension</b></a></font><a href="http://phpiscool.yeah.net"><b> 
          </b></a><br>
          <a href="http://phpiscool.yeah.net"><img src="images/phpiscool.gif" border=0 width="100" height="30"></a><br>
          <font face="Verdana" color="#111166">Something Really Cool</font>
        </TD>
  </tr>
</table>
      </body>
</html>

⌨️ 快捷键说明

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