Quick Search:

View

Revision:

Diff

Diff from 1845 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/osCommerce/branches/hpdl/oscommerce/admin/templates/pages/administrators/main.php

Annotated File View

hpdl
276
1 <?php
2 /*
hpdl
1016
3   $Id: $
hpdl
276
4
5   osCommerce, Open Source E-Commerce Solutions
6   http://www.oscommerce.com
7
hpdl
1384
8   Copyright (c) 2007 osCommerce
hpdl
276
9
hpdl
1497
10   This program is free software; you can redistribute it and/or modify
11   it under the terms of the GNU General Public License v2 (1991)
12   as published by the Free Software Foundation.
hpdl
276
13 */
14 ?>
15
hpdl
1405
16 <h1><?php echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule()), $osC_Template->getPageTitle()); ?></h1>
hpdl
276
17
hpdl
1016
18 <?php
19   if ($osC_MessageStack->size($osC_Template->getModule()) > 0) {
hpdl
1845
20     echo $osC_MessageStack->get($osC_Template->getModule());
hpdl
1016
21   }
22 ?>
23
hpdl
1475
24 <p align="right"><?php echo '<input type="button" value="' . $osC_Language->get('button_insert') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page'] . '&action=save') . '\';" class="infoBoxButton" />'; ?></p>
hpdl
1125
25
26 <?php
27   $Qadmin = $osC_Database->query('select id, user_name from :table_administrators order by user_name');
28   $Qadmin->bindTable(':table_administrators', TABLE_ADMINISTRATORS);
29   $Qadmin->setBatchLimit($_GET['page'], MAX_DISPLAY_SEARCH_RESULTS);
30   $Qadmin->execute();
31 ?>
32
hpdl
1200
33 <table border="0" width="100%" cellspacing="0" cellpadding="2">
34   <tr>
hpdl
1475
35     <td><?php echo $Qadmin->getBatchTotalPages($osC_Language->get('batch_results_number_of_entries')); ?></td>
hpdl
1384
36     <td align="right"><?php echo $Qadmin->getBatchPageLinks('page', $osC_Template->getModule(), false); ?></td>
hpdl
1200
37   </tr>
38 </table>
39
40 <form name="batch" action="#" method="post">
41
42 <table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable">
43   <thead>
hpdl
1125
44     <tr>
hpdl
1446
45       <th><?php echo $osC_Language->get('table_heading_administrators'); ?></th>
46       <th width="150"><?php echo $osC_Language->get('table_heading_action'); ?></th>
hpdl
1200
47       <th align="center" width="20"><?php echo osc_draw_checkbox_field('batchFlag', null, null, 'onclick="flagCheckboxes(this);"'); ?></th>
hpdl
1125
48     </tr>
hpdl
1200
49   </thead>
50   <tfoot>
51     <tr>
hpdl
1475
52       <th align="right" colspan="2"><?php echo '<input type="image" src="' . osc_icon_raw('edit.png') . '" title="' . $osC_Language->get('icon_edit') . '" onclick="document.batch.action=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page'] . '&action=batchSave') . '\';" />&nbsp;<input type="image" src="' . osc_icon_raw('trash.png') . '" title="' . $osC_Language->get('icon_trash') . '" onclick="document.batch.action=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page'] . '&action=batchDelete') . '\';" />'; ?></th>
hpdl
1200
53       <th align="center" width="20"><?php echo osc_draw_checkbox_field('batchFlag', null, null, 'onclick="flagCheckboxes(this);"'); ?></th>
54     </tr>
55   </tfoot>
56   <tbody>
hpdl
1125
57
hpdl
276
58 <?php
59   while ($Qadmin->next()) {
hpdl
1016
60 ?>
hpdl
276
61
hpdl
1200
62     <tr onmouseover="rowOverEffect(this);" onmouseout="rowOutEffect(this);">
63       <td onclick="document.getElementById('batch<?php echo $Qadmin->valueInt('id'); ?>').checked = !document.getElementById('batch<?php echo $Qadmin->valueInt('id'); ?>').checked;"><?php echo $Qadmin->value('user_name'); ?></td>
64       <td align="right">
hpdl
1016
65
hpdl
276
66 <?php
hpdl
1475
67     echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page'] . '&aID=' . $Qadmin->valueInt('id') . '&action=save'), osc_icon('edit.png')) . '&nbsp;' .
68          osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page'] . '&aID=' . $Qadmin->valueInt('id') . '&action=delete'), osc_icon('trash.png'));
hpdl
276
69 ?>
hpdl
1016
70
hpdl
1200
71       </td>
72       <td align="center"><?php echo osc_draw_checkbox_field('batch[]', $Qadmin->valueInt('id'), null, 'id="batch' . $Qadmin->valueInt('id') . '"'); ?></td>
hpdl
276
73     </tr>
74
hpdl
1085
75 <?php
76   }
77 ?>
78
hpdl
1200
79   </tbody>
80 </table>
hpdl
276
81
hpdl
1200
82 </form>
hpdl
276
83
hpdl
1200
84 <table border="0" width="100%" cellspacing="0" cellpadding="2">
85   <tr>
hpdl
1475
86     <td style="opacity: 0.5; filter: alpha(opacity=50);"><?php echo '<b>' . $osC_Language->get('table_action_legend') . '</b> ' . osc_icon('edit.png') . '&nbsp;' . $osC_Language->get('icon_edit') . '&nbsp;&nbsp;' . osc_icon('trash.png') . '&nbsp;' . $osC_Language->get('icon_trash') ; ?></td>
hpdl
1384
87     <td align="right"><?php echo $Qadmin->getBatchPagesPullDownMenu('page', $osC_Template->getModule()); ?></td>
hpdl
1200
88   </tr>
89 </table>