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

📄 box.php

📁 每个RFC 3261信息头有一个相应的存取标识. 但是,许多信息头拥有同样的形式。 例如。To和From的信息头都是由显示名和一个URI组成。 To和From信息头用来管理与处理NameAddr实例的
💻 PHP
字号:
<?php/*  $Id: box.php,v 1.7 2003/06/20 16:23:08 hpdl Exp $  osCommerce, Open Source E-Commerce Solutions  http://www.oscommerce.com  Copyright (c) 2003 osCommerce  Released under the GNU General Public License  Example usage:  $heading = array();  $heading[] = array('params' => 'class="menuBoxHeading"',                     'text'  => BOX_HEADING_TOOLS,                     'link'  => tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('selected_box')) . 'selected_box=tools'));  $contents = array();  $contents[] = array('text'  => SOME_TEXT);  $box = new box;  echo $box->infoBox($heading, $contents);*/  class box extends tableBlock {    function box() {      $this->heading = array();      $this->contents = array();    }    function infoBox($heading, $contents) {      $this->table_row_parameters = 'class="infoBoxHeading"';      $this->table_data_parameters = 'class="infoBoxHeading"';      $this->heading = $this->tableBlock($heading);      $this->table_row_parameters = '';      $this->table_data_parameters = 'class="infoBoxContent"';      $this->contents = $this->tableBlock($contents);      return $this->heading . $this->contents;    }    function menuBox($heading, $contents) {      $this->table_data_parameters = 'class="menuBoxHeading"';      if (isset($heading[0]['link'])) {        $this->table_data_parameters .= ' onmouseover="this.style.cursor=\'hand\'" onclick="document.location.href=\'' . $heading[0]['link'] . '\'"';        $heading[0]['text'] = '&nbsp;<a href="' . $heading[0]['link'] . '" class="menuBoxHeadingLink">' . $heading[0]['text'] . '</a>&nbsp;';      } else {        $heading[0]['text'] = '&nbsp;' . $heading[0]['text'] . '&nbsp;';      }      $this->heading = $this->tableBlock($heading);      $this->table_data_parameters = 'class="menuBoxContent"';      $this->contents = $this->tableBlock($contents);      return $this->heading . $this->contents;    }  }?>

⌨️ 快捷键说明

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