  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: batch_delete.php 1850 2009-02-28 03:07:56Z hpdl $ |
| |
| 3 | + | $Id: batch_delete.php 1851 2009-02-28 03:08:07Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
7 | 7 | | |
  |
8 | | - | Copyright (c) 2007 osCommerce |
| |
| 8 | + | Copyright (c) 2009 osCommerce |
|
9 | 9 | | |
| |
10 | 10 | | This program is free software; you can redistribute it and/or modify |
| |
11 | 11 | | it under the terms of the GNU General Public License v2 (1991) |
| |
|
|
 |
… |
|
16 | 16 | | <h1><?php echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule()), $osC_Template->getPageTitle()); ?></h1> |
| |
17 | 17 | | |
| |
18 | 18 | | <?php |
  |
19 | | - | if ($osC_MessageStack->size($osC_Template->getModule()) > 0) { |
| |
| 19 | + | if ( $osC_MessageStack->exists($osC_Template->getModule()) ) { |
|
20 | 20 | | echo $osC_MessageStack->get($osC_Template->getModule()); |
| |
21 | 21 | | } |
| |
22 | 22 | | ?> |
| |
23 | 23 | | |
| |
24 | 24 | | <div class="infoBoxHeading"><?php echo osc_icon('trash.png') . ' ' . $osC_Language->get('action_heading_batch_delete_administrators'); ?></div> |
| |
25 | 25 | | <div class="infoBoxContent"> |
  |
26 | | - | <form name="aDeleteBatch" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page'] . '&action=batchDelete'); ?>" method="post"> |
| |
| 26 | + | <form name="aDeleteBatch" class="dataForm" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&action=batch_delete'); ?>" method="post"> |
|
27 | 27 | | |
| |
28 | 28 | | <p><?php echo $osC_Language->get('introduction_batch_delete_administrators'); ?></p> |
| |
29 | 29 | | |
| |
|
|
 |
… |
|
35 | 35 | | |
| |
36 | 36 | | $names_string = ''; |
| |
37 | 37 | | |
  |
38 | | - | while ($Qadmins->next()) { |
| |
39 | | - | $names_string .= osc_draw_hidden_field('batch[]', $Qadmins->valueInt('id')) . '<b>' . $Qadmins->value('user_name') . '</b>, '; |
| |
| 38 | + | while ( $Qadmins->next() ) { |
| |
| 39 | + | $names_string .= osc_draw_hidden_field('batch[]', $Qadmins->valueInt('id')) . '<b>' . $Qadmins->valueProtected('user_name') . '</b>, '; |
|
40 | 40 | | } |
| |
41 | 41 | | |
| |
42 | 42 | | if ( !empty($names_string) ) { |
| |
|
|
 |
… |
|
46 | 46 | | echo '<p>' . $names_string . '</p>'; |
| |
47 | 47 | | ?> |
| |
48 | 48 | | |
  |
49 | | - | <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> |
| |
| 49 | + | <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()) . '\';" class="operationButton" />'; ?></p> |
  |
50 | 50 | | |
| |
51 | 51 | | </form> |
| |
52 | 52 | | </div> |