📄 main.php
字号:
<?php/* $Id: $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2007 osCommerce This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 (1991) as published by the Free Software Foundation.*/ $osC_DirectoryListing = new osC_DirectoryListing('../includes/modules/' . $_GET['set']); $osC_DirectoryListing->setIncludeDirectories(false);?><h1><?php echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&set=' . $_GET['set']), $osC_Template->getPageTitle()); ?></h1><?php if ( $osC_MessageStack->size($osC_Template->getModule()) > 0 ) { echo $osC_MessageStack->output($osC_Template->getModule()); }?><table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable"> <thead> <tr> <th><?php echo $osC_Language->get('table_heading_modules'); ?></th> <th width="150"><?php echo $osC_Language->get('table_heading_action'); ?></th> </tr> </thead> <tfoot> <tr> <th colspan="2"> </th> </tr> </tfoot> <tbody><?php foreach ( $osC_DirectoryListing->getFiles() as $file ) { include('../includes/modules/' . $_GET['set'] . '/' . $file['name']); $code = substr($file['name'], 0, strrpos($file['name'], '.')); $class = 'osC_' . ucfirst($_GET['set']) . '_' . $code; if ( class_exists($class) ) { if ( call_user_func(array($class, 'isInstalled'), $code, $_GET['set']) === false ) { $osC_Language->injectDefinitions('modules/' . $_GET['set'] . '/' . $code . '.xml'); } $module = new $class();?> <tr onmouseover="rowOverEffect(this);" onmouseout="rowOutEffect(this);" <?php echo ( $module->isInstalled() && !$module->isActive() ? 'class="deactivatedRow"' : '') ?>> <td><?php echo $module->getTitle(); ?></td> <td align="right"><?php if ( $module->isInstalled() && $module->isActive() ) { if ( $module->hasKeys() ) { echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&set=' . $_GET['set'] . '&module=' . $code . '&action=save'), osc_icon('edit.png')) . ' '; } else { echo osc_image('images/pixel_trans.gif', '', '16', '16') . ' '; } echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&set=' . $_GET['set'] . '&module=' . $code . '&action=uninstall'), osc_icon('uninstall.png')) . ' '; } else { echo osc_image('images/pixel_trans.gif', '', '16', '16') . ' ' . osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&set=' . $_GET['set'] . '&module=' . $code . '&action=install'), osc_icon('install.png')) . ' '; } echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&set=' . $_GET['set'] . '&module=' . $code . '&action=info'), osc_icon('info.png'));?> </td> </tr><?php } }?> </tbody></table><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td style="opacity: 0.5; filter: alpha(opacity=50);"><?php echo '<b>' . $osC_Language->get('table_action_legend') . '</b> ' . osc_icon('edit.png') . ' ' . $osC_Language->get('icon_edit') . ' ' . osc_icon('install.png') . ' ' . $osC_Language->get('icon_install') . ' ' . osc_icon('uninstall.png') . ' ' . $osC_Language->get('button_uninstall') . ' ' . osc_icon('info.png') . ' ' . $osC_Language->get('icon_info'); ?></td> </tr></table><p><?php echo $osC_Language->get('modules_location') . ' ' . $osC_DirectoryListing->getDirectory(); ?></p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -