当前位置: 首页>>代码示例>>PHP>>正文


PHP box::menuBox方法代码示例

本文整理汇总了PHP中box::menuBox方法的典型用法代码示例。如果您正苦于以下问题:PHP box::menuBox方法的具体用法?PHP box::menuBox怎么用?PHP box::menuBox使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在box的用法示例。


在下文中一共展示了box::menuBox方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

// http://www.asymmetrics.com
// Admin: Plugins Box
//----------------------------------------------------------------------------
// I-Metrics CMS
//----------------------------------------------------------------------------
// Script is intended to be used with:
// osCommerce, Open Source E-Commerce Solutions
// http://www.oscommerce.com
// Copyright (c) 2003 osCommerce
//----------------------------------------------------------------------------
// Released under the GNU General Public License
//----------------------------------------------------------------------------
*/
$heading = array();
$contents = array();
$heading_class = 'class="menuBoxHeading"';
$box_title = BOX_HEADING_PLUGINS;
$box_id = 'plugins_box';
if ($selected_box == $box_id) {
    $contents[] = array('text' => '<div>', 'class' => 'leftBoxSection');
    $box_plugins_array = $db->query_to_array("select plugins_name, plugins_key from " . TABLE_PLUGINS);
    for ($i = 0, $j = count($box_plugins_array); $i < $j; $i++) {
        $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_PLUGINS, 'plgID=' . $box_plugins_array[$i]['plugins_key']) . '">' . $box_plugins_array[$i]['plugins_name'] . '</a>');
    }
    $contents[] = array('text' => '</div>');
    $heading_class = 'class="menuBoxHeading menuBoxLit"';
}
$heading[] = array('text' => $box_title, 'link' => tep_href_link(FILENAME_PLUGINS, 'selected_box=' . $box_id));
$box = new box();
echo $box->menuBox($heading, $contents, $heading_class);
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:30,代码来源:plugins.php

示例2: Copyright

<?php

/*
  $Id: localization.php,v 1.16 2003/07/09 01:18:53 hpdl Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2002 osCommerce

  Released under the GNU General Public License
*/
?>
<!-- localization //-->
          <tr>
            <td>
<?php 
$heading = array();
$contents = array();
$heading[] = array('text' => BOX_HEADING_LOCALIZATION, 'link' => tep_href_link(FILENAME_CURRENCIES, 'selected_box=localization'));
if ($selected_box == 'localization') {
    $contents[] = array('text' => tep_admin_files_boxes(FILENAME_CURRENCIES, BOX_LOCALIZATION_CURRENCIES) . tep_admin_files_boxes(FILENAME_LANGUAGES, BOX_LOCALIZATION_LANGUAGES) . tep_admin_files_boxes(FILENAME_ORDERS_STATUS, BOX_LOCALIZATION_ORDERS_STATUS));
}
$box = new box();
echo $box->menuBox($heading, $contents);
?>
            </td>
          </tr>
<!-- localization_eof //-->
开发者ID:eosc,项目名称:EosC-2.3,代码行数:29,代码来源:localization.php

示例3: array

if (!empty($plugin_contents)) {
    $heading[] = array('text' => BOX_HEADING_PLUGIN_NOTICES);
    $box = new box();
    echo $box->menuBox($heading, $plugin_contents, 'class="altBoxHeading"');
    echo '<div class="vspacer"></div>' . "\n";
}
$heading = array();
$contents = array();
if (getenv('HTTPS') == 'on') {
    $size = getenv('SSL_CIPHER_ALGKEYSIZE') ? getenv('SSL_CIPHER_ALGKEYSIZE') . '-bit' : '<i>' . BOX_CONNECTION_UNKNOWN . '</i>';
    $contents[] = array('text' => tep_image(DIR_WS_ICONS . 'locked.gif', ICON_LOCKED, '', '', 'class="floatend rpad"') . sprintf(BOX_CONNECTION_PROTECTED, $size));
} else {
    $contents[] = array('text' => '<div class="linepad">' . tep_image(DIR_WS_ICONS . 'unlocked.gif', ICON_UNLOCKED, '', '', 'class="floatend"') . BOX_CONNECTION_UNPROTECTED . '</div>');
}
$heading[] = array('text' => BOX_HEADING_WARNINGS);
$box = new box();
echo $box->menuBox($heading, $contents, 'class="altBoxHeading"');
?>
        </div>
      </div>
      <div id="mainhomepane">
        <div class="maincell wider">
          <div id="top_level" style="min-height: 610px;">
<?php 
require DIR_FS_MODULES . 'index_main.php';
?>
          </div>
        </div>
      </div>
<?php 
require DIR_FS_OBJECTS . 'html_end.php';
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:31,代码来源:index.php


注:本文中的box::menuBox方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。