📄 main.php
字号:
<?php/* $Id: main.php 1498 2007-03-29 14:04:50Z hpdl $ 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.*/?><h1><?php echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&gID=' . $_GET['gID']), $osC_Template->getPageTitle()); ?></h1><?php if ( $osC_MessageStack->size($osC_Template->getModule()) > 0 ) { echo $osC_MessageStack->output($osC_Template->getModule()); } $Qcfg = $osC_Database->query('select configuration_id, configuration_title, configuration_description, configuration_value, use_function from :table_configuration where configuration_group_id = :configuration_group_id order by sort_order'); $Qcfg->bindTable(':table_configuration', TABLE_CONFIGURATION); $Qcfg->bindInt(':configuration_group_id', $_GET['gID']); $Qcfg->execute();?><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><?php echo sprintf($osC_Language->get('batch_results_number_of_entries'), ($Qcfg->numberOfRows() > 0 ? 1 : 0), $Qcfg->numberOfRows(), $Qcfg->numberOfRows()); ?></td> </tr></table><table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable"> <thead> <tr> <th width="35%;"><?php echo $osC_Language->get('table_heading_title'); ?></th> <th><?php echo $osC_Language->get('table_heading_value'); ?></th> <th width="150"><?php echo $osC_Language->get('table_heading_action'); ?></th> </tr> </thead> <tfoot> <tr> <th colspan="3"> </th> </tr> </tfoot> <tbody><?php while ( $Qcfg->next() ) { if ( !osc_empty($Qcfg->value('use_function')) ) { $cfgValue = osc_call_user_func($Qcfg->value('use_function'), $Qcfg->value('configuration_value')); } else { $cfgValue = $Qcfg->value('configuration_value'); }?> <tr onmouseover="rowOverEffect(this);" onmouseout="rowOutEffect(this);" title="<?php echo $Qcfg->valueProtected('configuration_description'); ?>"> <td><?php echo $Qcfg->value('configuration_title'); ?></td> <td><?php echo nl2br(htmlspecialchars($cfgValue)); ?></td> <td align="right"><?php echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&gID=' . $_GET['gID'] . '&cID=' . $Qcfg->valueInt('configuration_id') . '&action=save'), osc_icon('edit.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'); ?></td> </tr></table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -