// 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);
<?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 //-->
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';