查看: 5269|回复: 0
打印 上一主题 下一主题

php参考代码==Global Layout Set

[复制链接]
跳转到指定楼层
1#
发表于 2007-10-4 16:29:26 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
台州网址导航
<?php
/**
* Global Layout Set
*
* @author   Avenger <avenger@php.net>
* @version  $Id 2004-06-17 11:00 $
*/

// Color Set
define("index_c1","#666666"); //首页每个模块的背景色(用户登录背景)
define("index_c2","#397D3E"); //首页头部背景色
define("index_c3","#007770"); //首页搜索条背景色

/**
* Head Function
*
* @access public
* @return void
*/
function file_head(){
    global $lang;
    return '
<table width="765" align="center" border="0" cellpadding="0" cellspacing="0" bgcolor="#328D3A">
  <tr>
    <td><img src="/images/spacer.gif" width="1" height="5" alt=""></td>
    <td width="5" bgcolor="#32853A"><img src="/images/spacer.gif" width="5" height="1" alt=""></td>
</tr>
</table>

<!-- NAV BAR BEGIN -->
<table width="765" align="center" border="0" cellpadding="0" cellspacing="0" bgcolor="'.index_c2.'">
  <tr>
    <td width="222"><a href="/"><img src="'.$lang['sitelogo'].'" width="222" height="57" border="0" alt="超越PHP"></a></td>
    <td align="right" valign="bottom">
    <a href="/?n=News" title="News"><span class="cn1">'.$lang['nav1'].'</span></a>
      <font class="en1"> | </font> <a href="/?n=Articles" title="Articles"><span class="cn1"> '.$lang['nav2'].'</span></a>
      <font class="en1"> | </font> <a href="/?n=Classes" title="Classes"><span class="cn1"> '.$lang['nav3'].'</span></a>
      <font class="en1"> | </font> <a href="/?n=Download" title="Downloads"><span class="cn1"> '.$lang['nav5'].'</span></a>
      <font class="en1"> | </font> <a href="/?n=Faq" title="F & Q"><span class="cn1"> '.$lang['nav6'].'</span></a>
      <font class="en1"> | </font> <a href="/?n=Forum" title="Forum" target="_blank"><span class="cn1"> '.$lang['nav7'].'</span></a>
      <font class="en1"> | </font> <a href="/?n=Wiki" title="Wiki" target="_blank"><span class="cn1"> '.$lang['nav10'].'</span></a>
      <font class="en1"> | </font> <a href="/?n=Manual" title="Online Manual"><span class="cn1">'.$lang['nav8'].'</span></a>
      <font class="en1"> | </font> <a href="http://www.phpmore.com/" title="PHP&MORE" target="_blank"><span class="cn1"> PHP&MORE </span></a>
     </td>
    <td width="5" bgcolor="#39753E"><img src="/images/spacer.gif" width="5" height="1" alt=""></td>
  </tr>
</table>
<!-- NAV BAR END -->


<table width="765" align="center" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">
  <tr>
    <td><img src="/images/spacer.gif" width="1" height="1" alt=""></td>
    <td width="5" bgcolor="#333333"><img src="/images/spacer.gif" width="5" height="1" alt=""></td>
  </tr>
</table>

<!-- SEARCH BEGIN -->
<form name="search" method="get" action="/site_search.php">
<table width="765" align="center" border="0" cellpadding="0" cellspacing="0" bgcolor="'.index_c3.'">
  <tr>
    <td align="right" class="en1" valign="bottom">
        <font color="#FFFFFF" class="small">Site <u>s</u>earch:</font>
        <input name="search" type="text" class="en1" size="15" maxlength="20" value="'.stripslashes($_GET['search']).'" accesskey="s">  
        <input name="submit" type="image" src="/images/submit.gif" alt="Search">
    </td>
    <td width="10"> </td>
    <td width="5" bgcolor="#006C70"><img src="/images/spacer.gif" width="5" height="1" alt=""></td>
</tr>
</table>
</form>
<!-- SEARCH END -->

<table width="765" align="center" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">
  <tr>
    <td><img src="/images/spacer.gif" width="1" height="1" alt=""></td>
    <td width="5" bgcolor="#333333"><img src="/images/spacer.gif" width="5" height="1" alt=""></td>
  </tr>
</table>
';
}

/**
* Head Pic Fun
*
* @access public
* @return void
*/
function file_pic($fname='1.jpg',$alt="",$link=""){
    $str= '
<table width="765" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>';

if ($link) {
    $str.='<a href="'.$link.'" target="_blank"><img src="/images/index/'.$fname.'" width="760" height="50" border=0 alt="'.$alt.'"></a>';
} else {
    $str.='<img src="/images/index/'.$fname.'" width="760" height="50" border=0 alt="'.$alt.'">';
}

$str.='</td><td width="5" bgcolor="#39753E"><img src="/images/spacer.gif" width="5" height="1" alt=""></td>
</tr>
</table>
<table width="765" align="center" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">
  <tr>
    <td><img src="/images/spacer.gif" width="1" height="1" alt=""></td>
    <td width="5" bgcolor="#999999"><img src="/images/spacer.gif" width="5" height="1" alt=""></td>
  </tr>
</table>
';
    return $str;
}

/**
* Foot Fun
*
* @access public
* @return void
*/
function file_foot(){
    global $s_name, $Global;

    if ($s_name=='index.php') {
        $trancking = '
<!--Trancking Start-->
<a target="_top" href="http://t.extreme-dm.com/?login=exceedph">
<img src="http://www.phpe.net/images/spacer.gif" height="2"
border="0" width="2" alt="Tracking for Exceed PHP"></a><script language="javascript1.2" type="text/javascript"><!--
EXs=screen;EXw=EXs.width;navigator.appName!="Netscape"?
EXb=EXs.colorDepth:EXb=EXs.pixelDepth;//-->
</script><script language="javascript" type="text/javascript"><!--
EXd=document;EXw?"":EXw="na";EXb?"":EXb="na";
EXd.write("<img src=\"http://t0.extreme-dm.com",
"/c.g?tag=exceedph&j=y&srw="+EXw+"&srb="+EXb+"&",
"l="+escape(EXd.referrer)+"\" height=1 width=1>");//-->
</script>
<!-- Tracking End -->
        ';
    }

    return '
<table width="765" align="center" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">
  <tr>
    <td><img src="/images/spacer.gif" width="1" height="1" alt=""></td>
    <td width="5" bgcolor="#333333"><img src="/images/spacer.gif" width="5" height="1" alt=""></td>
  </tr>
</table>

<table width="765" align="center" border="0" cellpadding="0" cellspacing="0" bgcolor="'.index_c3.'">
  <tr>
    <td align="right">
    <a href="/?n=Source&file='.$s_name.'" title="查看源码"><span class="en2">view source</span></a> |
    <a href="/?n=FeedBack" title="留言反馈" target="_blank"><span class="en2">feedback</span></a> |
    <a href="javascript:void(0)" onclick="window.open(\'/site_send.php?n='.$_SERVER['HTTP_HOST'].urlencode($_SERVER['REQUEST_URI']).'\',\'\',\'scrollbars=no,top=200,left=200,width=297,height=186\')" title="发送链接"><span class="en2">send page</span></a> |
    <a href="/?n=SiteMap" title="站点地图"><span class="en2">sitemap</span></a> |
    <a href="/?n=Aboutus" title="关于我们"><span class="en2">aboutus</span></a>
      
    </td>
    <td width="5" bgcolor="#006C70"><img src="/images/spacer.gif" width="5" height="1" alt=""></td>
  </tr>
</table>

<table width="765" align="center" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">
  <tr>
    <td><img src="/images/spacer.gif" width="1" height="1" alt=""></td>
    <td width="5" bgcolor="#333333"><img src="/images/spacer.gif" width="5" height="1" alt=""></td>
  </tr>
</table>

<table width="765" align="center" border="0" cellspacing="0" cellpadding="0" bgcolor="#BBBBBB">
<tr>
   <td align="right" height="40">
    <small>
    Copyright &copy; 2002-2006 PHPE TEAM. All rights reserved<br>
    Last updated:'.$Global['update'].$trancking.'<br>
    Server sponsored by <a href="http://cncms.org"><small>cncms.org</small></a>
    </small>
    <br clear="all" />
    <img src="http://counter.china-channel.com/counter/count.exe?df=phpe.net&reload=T&dd=e&ft=0&trgb=ffffff">
    </td>
    <td width="10"> </td>
    <td width="5" bgcolor="#AAAAAA"><img src="/images/spacer.gif" width="5" height="1" alt=""></td>
</tr>
</table>

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-156767-2";
urchinTracker();
</script>

<script language="JavaScript" type="text/javascript" src="/js/pphlogger.js"></script>
<script language="JavaScript" type="text/javascript" src="/site_online.php?hide=1&file='.$s_name.'"></script>
';
}

/**
* Nav Fun
*
* @access public
* @return void
*/
function bar($array='') {
    $o_bar.= '<a href="/"><img border=0 src="/images/home_1.gif" alt="Home" align="absmiddle"></a> <a href="/">首页</a>';
    if (is_array($array)) {
        foreach ($array as $key=>$val) {
            if (empty($val)) {
                $o_bar .= "<b><span style='font-size: 7pt' lang='zh-cn'> &raquo;  </span></b> $key";
            } else {
                $o_bar .= "<b><span style='font-size: 7pt' lang='zh-cn'> &raquo;  </span></b><a href='$val'>$key</a>";
            }
        }
    }
    return $o_bar;
}

/**
* Item Fun
*
* @access public
* @return void
*/
function item_title($text,$width="95%",$img='images/arrow.gif'){
    return'
    <table align="CENTER" width="'.$width.'" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="left" bgcolor="'.index_c1.'" class="cn1" height="20">  <img src="'.$img.'" border=0 alt="">  '.$text.'</td>
        </tr>
      </table>
     ';
}

?>
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 转播转播 分享分享 分享淘帖
台州维博网络(www.tzweb.com)专门运用PHP+MYSQL/ASP.NET+MSSQL技术开发网站门户平台系统等。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

网站推广
关于我们
  • 台州朗动科技(Tzweb.com)拥有多年开发网站平台系统门户手机客户端等业务的成功经验。主要从事:政企网站,系统平台,微信公众号,各类小程序,手机APP客户端,浙里办微应用,浙政钉微应用、主机域名、虚拟空间、后期维护等服务,满足不同企业公司的需求,是台州地区领先的网络技术服务商!

Hi,扫描关注我

Copyright © 2005-2026 站长论坛 All rights reserved

Powered by 站长论坛 with TZWEB Update Techonolgy Support

快速回复 返回顶部 返回列表