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/configuration/main.php

Annotated File View

hpdl
1
1 <?php
2 /*
hpdl
153
3   $Id: main.php 1845 2009-02-27 00:19:37Z hpdl $
hpdl
1
4
5   osCommerce, Open Source E-Commerce Solutions
6   http://www.oscommerce.com
7
hpdl
1453
8   Copyright (c) 2007 osCommerce
hpdl
1
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
1
13 */
14 ?>
15
hpdl
1405
16 <h1><?php echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&gID=' . $_GET['gID']), $osC_Template->getPageTitle()); ?></h1>
hpdl
1
17
hpdl
1016
18 <?php
hpdl
1201
19   if ( $osC_MessageStack->size($osC_Template->getModule()) > 0 ) {
hpdl
1845
20     echo $osC_MessageStack->get($osC_Template->getModule());
hpdl
1016
21   }
22
hpdl
1
23   $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');
24   $Qcfg->bindTable(':table_configuration', TABLE_CONFIGURATION);
25   $Qcfg->bindInt(':configuration_group_id', $_GET['gID']);
26   $Qcfg->execute();
hpdl
1201
27 ?>
hpdl
1
28
hpdl
1201
29 <table border="0" width="100%" cellspacing="0" cellpadding="2">
30   <tr>
hpdl
1475
31     <td><?php echo sprintf($osC_Language->get('batch_results_number_of_entries'), ($Qcfg->numberOfRows() > 0 ? 1 : 0), $Qcfg->numberOfRows(), $Qcfg->numberOfRows()); ?></td>
hpdl
1201
32   </tr>
33 </table>
34
35 <table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable">
36   <thead>
37     <tr>
hpdl
1453
38       <th width="35%;"><?php echo $osC_Language->get('table_heading_title'); ?></th>
39       <th><?php echo $osC_Language->get('table_heading_value'); ?></th>
40       <th width="150"><?php echo $osC_Language->get('table_heading_action'); ?></th>
hpdl
1201
41     </tr>
42   </thead>
43   <tfoot>
44     <tr>
45       <th colspan="3">&nbsp;</th>
46     </tr>
47   </tfoot>
48   <tbody>
49
50 <?php
hpdl
1453
51   while ( $Qcfg->next() ) {
hpdl
1201
52     if ( !osc_empty($Qcfg->value('use_function')) ) {
hpdl
743
53       $cfgValue = osc_call_user_func($Qcfg->value('use_function'), $Qcfg->value('configuration_value'));
hpdl
1
54     } else {
55       $cfgValue = $Qcfg->value('configuration_value');
56     }
57 ?>
hpdl
1016
58
hpdl
1201
59     <tr onmouseover="rowOverEffect(this);" onmouseout="rowOutEffect(this);" title="<?php echo $Qcfg->valueProtected('configuration_description'); ?>">
60       <td><?php echo $Qcfg->value('configuration_title'); ?></td>
61       <td><?php echo nl2br(htmlspecialchars($cfgValue)); ?></td>
62       <td align="right">
hpdl
1016
63
hpdl
1
64 <?php
hpdl
1475
65     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'));
hpdl
1
66 ?>
hpdl
1016
67
hpdl
1201
68       </td>
69     </tr>
hpdl
1016
70
hpdl
1
71 <?php
72   }
73 ?>
hpdl
1016
74
hpdl
1201
75   </tbody>
76 </table>
hpdl
1
77
hpdl
1201
78 <table border="0" width="100%" cellspacing="0" cellpadding="2">
79   <tr>
hpdl
1475
80     <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'); ?></td>
hpdl
1201
81   </tr>
82 </table>