/
configuration.php
39 lines (32 loc) · 1.48 KB
/
configuration.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/*
$Id$
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
?>
<!-- configuration //-->
<tr>
<td>
<?php
$heading = array();
$contents = array();
$heading[] = array('text' => BOX_HEADING_CONFIGURATION,
'link' => tep_href_link(FILENAME_CONFIGURATION, 'gID=1&selected_box=configuration'));
if ($selected_box == 'configuration') {
$cfg_groups = '<a href="' . tep_href_link(FILENAME_ADMINISTRATORS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CONFIGURATION_ADMINISTRATORS . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_STORE_LOGO, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CONFIGURATION_STORE_LOGO . '</a><br>';
$configuration_groups_query = tep_db_query("select configuration_group_id as cgID, configuration_group_title as cgTitle from " . TABLE_CONFIGURATION_GROUP . " where visible = '1' order by sort_order");
while ($configuration_groups = tep_db_fetch_array($configuration_groups_query)) {
$cfg_groups .= '<a href="' . tep_href_link(FILENAME_CONFIGURATION, 'gID=' . $configuration_groups['cgID'], 'NONSSL') . '" class="menuBoxContentLink">' . $configuration_groups['cgTitle'] . '</a><br>';
}
$contents[] = array('text' => $cfg_groups);
}
$box = new box;
echo $box->menuBox($heading, $contents);
?>
</td>
</tr>
<!-- configuration_eof //-->