batch_delete.php
来自「this the oscommerce 3.0 aplha 4」· PHP 代码 · 共 53 行
PHP
53 行
<?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()); }?><div class="infoBoxHeading"><?php echo osc_icon('trash.png') . ' ' . $osC_Language->get('action_heading_batch_delete_newsletters'); ?></div><div class="infoBoxContent"> <form name="nDeleteBatch" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page'] . '&action=batchDelete'); ?>" method="post"> <p><?php echo $osC_Language->get('introduction_batch_delete_newsletters'); ?></p><?php $Qnewsletters = $osC_Database->query('select newsletters_id, title from :table_newsletters where newsletters_id in (":newsletters_id") order by title'); $Qnewsletters->bindTable(':table_newsletters', TABLE_NEWSLETTERS); $Qnewsletters->bindRaw(':newsletters_id', implode('", "', array_unique(array_filter(array_slice($_POST['batch'], 0, MAX_DISPLAY_SEARCH_RESULTS), 'is_numeric')))); $Qnewsletters->execute(); $names_string = ''; while ( $Qnewsletters->next() ) { $names_string .= osc_draw_hidden_field('batch[]', $Qnewsletters->valueInt('newsletters_id')) . '<b>' . $Qnewsletters->valueProtected('title') . '</b>, '; } if ( !empty($names_string) ) { $names_string = substr($names_string, 0, -2); } echo '<p>' . $names_string . '</p>';?> <p align="center"><?php echo osc_draw_hidden_field('subaction', 'confirm') . '<input type="submit" value="' . $osC_Language->get('button_delete') . '" class="operationButton" /> <input type="button" value="' . $osC_Language->get('button_cancel') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page']) . '\';" class="operationButton" />'; ?></p> </form></div>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?