📄 groups.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.*/?><h1><?php echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule()), $osC_Template->getPageTitle()); ?></h1><?php if ($osC_MessageStack->size($osC_Template->getModule()) > 0) { echo $osC_MessageStack->output($osC_Template->getModule()); }?><p align="right"><?php echo '<input type="button" value="' . $osC_Language->get('button_back') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&lID=' . $_GET[$osC_Template->getModule()] . '&page=' . $_GET['page']) . '\';" class="infoBoxButton" /> <input type="button" value="' . $osC_Language->get('button_insert') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '=' . $_GET[$osC_Template->getModule()] . '&page=' . $_GET['page'] . '&action=insertDefinition') . '\';" class="infoBoxButton" />'; ?></p><?php $Qgroups = $osC_Database->query('select distinct content_group, count(*) as total_entries from :table_languages_definitions where languages_id = :languages_id group by content_group order by content_group'); $Qgroups->bindTable(':table_languages_definitions', TABLE_LANGUAGES_DEFINITIONS); $Qgroups->bindInt(':languages_id', $_GET[$osC_Template->getModule()]); $Qgroups->execute();?><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><?php echo sprintf($osC_Language->get('batch_results_number_of_entries'), ($Qgroups->numberOfRows() > 0 ? 1 : 0), $Qgroups->numberOfRows(), $Qgroups->numberOfRows()); ?></td> </tr></table><table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable"> <thead> <tr> <th><?php echo $osC_Language->get('table_heading_definition_groups'); ?></th> <th><?php echo $osC_Language->get('table_heading_total_definitions'); ?></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 ($Qgroups->next()) {?> <tr onmouseover="rowOverEffect(this);" onmouseout="rowOutEffect(this);"> <td><?php echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '=' . $_GET[$osC_Template->getModule()] . '&page=' . $_GET['page'] . '&group=' . $Qgroups->value('content_group') . '&action=definitions'), osc_icon('folder.png') . ' ' . $Qgroups->value('content_group')); ?></td> <td align="right"><?php echo $Qgroups->value('total_entries'); ?></td> <td align="right"><?php echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '=' . $_GET[$osC_Template->getModule()] . '&group=' . $Qgroups->value('content_group') . '&action=deleteDefinitions'), osc_icon('trash.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('trash.png') . ' ' . $osC_Language->get('icon_trash'); ?></td> </tr></table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -