hpdl
|
1201
|
1
|
<?php
|
|
2
|
/*
|
|
3
|
$Id: $
|
|
4
|
|
|
5
|
osCommerce, Open Source E-Commerce Solutions
|
|
6
|
http://www.oscommerce.com
|
|
7
|
|
hpdl
|
1453
|
8
|
Copyright (c) 2007 osCommerce
|
hpdl
|
1201
|
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
|
1201
|
13
|
*/
|
|
14
|
|
|
15
|
$osC_ObjectInfo = new osC_ObjectInfo(osC_Configuration_Admin::getData($_GET['cID']));
|
|
16
|
?>
|
|
17
|
|
hpdl
|
1405
|
18
|
<h1><?php echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&gID=' . $_GET['gID']), $osC_Template->getPageTitle()); ?></h1>
|
hpdl
|
1201
|
19
|
|
|
20
|
<?php
|
|
21
|
if ( $osC_MessageStack->size($osC_Template->getModule()) > 0 ) {
|
|
22
|
echo $osC_MessageStack->output($osC_Template->getModule());
|
|
23
|
}
|
|
24
|
|
|
25
|
if ( !osc_empty($osC_ObjectInfo->get('set_function')) ) {
|
|
26
|
$value_field = osc_call_user_func($osC_ObjectInfo->get('set_function'), $osC_ObjectInfo->get('configuration_value'));
|
|
27
|
} else {
|
|
28
|
$value_field = osc_draw_input_field('configuration_value', $osC_ObjectInfo->get('configuration_value'), 'style="width: 100%;"');
|
|
29
|
}
|
|
30
|
?>
|
|
31
|
|
hpdl
|
1475
|
32
|
<div class="infoBoxHeading"><?php echo osc_icon('edit.png') . ' ' . $osC_ObjectInfo->get('configuration_title'); ?></div>
|
hpdl
|
1201
|
33
|
<div class="infoBoxContent">
|
hpdl
|
1405
|
34
|
<form name="cEdit" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&gID=' . $_GET['gID'] . '&cID=' . $osC_ObjectInfo->get('configuration_id') . '&action=save'); ?>" method="post">
|
hpdl
|
1201
|
35
|
|
hpdl
|
1453
|
36
|
<p><?php echo $osC_Language->get('introduction_edit_parameter'); ?></p>
|
|
37
|
|
hpdl
|
1201
|
38
|
<p><?php echo $osC_ObjectInfo->get('configuration_description'); ?></p>
|
|
39
|
|
|
40
|
<p><?php echo '<b>' . $osC_ObjectInfo->get('configuration_title') . ':</b><br />' . $value_field; ?></p>
|
|
41
|
|
hpdl
|
1475
|
42
|
<p align="center"><?php echo osc_draw_hidden_field('subaction', 'confirm') . '<input type="submit" value="' . $osC_Language->get('button_save') . '" class="operationButton" /> <input type="button" value="' . $osC_Language->get('button_cancel') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&gID=' . $_GET['gID']) . '\';" class="operationButton" />'; ?></p>
|
hpdl
|
1201
|
43
|
|
|
44
|
</form>
|
|
45
|
</div>
|