コード例 #1
0
</td>
                <td class="dataTableHeadingContent"><?php 
echo TEXT_VALUE;
?>
</td>
                <td class="dataTableHeadingContentXtra"><?php 
echo TEXT_ACTION;
?>
&nbsp;</td>
              </tr>
<?php 
$configuration = $db->Execute("select configuration_id, configuration_title, configuration_value, configuration_key,\r\n\t\tuse_function from " . TABLE_CONFIGURATION . "\r\n\t\twhere configuration_group_id = '" . (int) $gID . "'\r\n\t\torder by sort_order");
while (!$configuration->EOF) {
    if ($configuration->fields['use_function']) {
        $use_function = $configuration->fields['use_function'];
        $cfgValue = setup_call_function($use_function, $configuration->fields['configuration_value']);
    } else {
        $cfgValue = $configuration->fields['configuration_value'];
    }
    if ((!isset($_GET['cID']) || isset($_GET['cID']) && $_GET['cID'] == $configuration->fields['configuration_id']) && !isset($cInfo) && substr($action, 0, 3) != 'new') {
        $cfg_extra = $db->Execute("select configuration_key, configuration_description, date_added,\r\n                                        last_modified, use_function, set_function\r\n                                 from " . TABLE_CONFIGURATION . "\r\n                                 where configuration_id = '" . (int) $configuration->fields['configuration_id'] . "'");
        $cInfo_array = array_merge($configuration->fields, $cfg_extra->fields);
        $cInfo = new objectInfo($cInfo_array);
    }
    if (isset($cInfo) && is_object($cInfo) && $configuration->fields['configuration_id'] == $cInfo->configuration_id) {
        echo '                  <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . html_href_link(FILENAME_DEFAULT, gen_get_all_get_params(array('gID', 'cID', 'action')) . 'gID=' . $_GET['gID'] . '&amp;cID=' . $cInfo->configuration_id . '&amp;action=edit', 'SSL') . '\'">' . "\n";
    } else {
        echo '                  <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . html_href_link(FILENAME_DEFAULT, gen_get_all_get_params(array('gID', 'cID', 'action')) . 'gID=' . $_GET['gID'] . '&amp;cID=' . $configuration->fields['configuration_id'] . '&amp;action=edit', 'SSL') . '\'">' . "\n";
    }
    ?>
                <td class="dataTableContent"><?php 
コード例 #2
0
     // special conditions
     if ($module_type == 'shipping' && $mInfo->code == 'fedex' && MODULE_SHIPPING_FEDEX_RATE_LICENSE == '' && MODULE_SHIPPING_FEDEX_ACCOUNT_NUMBER != '') {
         $contents[] = array('align' => 'center', 'text' => '<br />' . html_button_field('get_key', 'Get FedEx Meter Number', 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, gen_get_all_get_params(array('action', 'set', 'subject')) . 'set=' . $module_type . '&amp;subject=fedex&amp;action=get_fedex_key', 'SSL') . '\'"'));
     }
     $contents[] = array('align' => 'center', 'text' => '<br />' . html_submit_field('update', TEXT_UPDATE) . html_button_field('cancel', TEXT_CANCEL, 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, gen_get_all_get_params(array('action', 'set', 'subject')) . 'set=' . $module_type . ($_GET['subject'] != '' ? '&amp;subject=' . $_GET['subject'] : ''), 'SSL') . '\'"'));
     break;
 default:
     $heading[] = array('text' => '<b>' . $mInfo->title . '</b>');
     if ($mInfo->status == '1') {
         $keys = '';
         reset($mInfo->keys);
         while (list(, $value) = each($mInfo->keys)) {
             $keys .= '<b>' . $value['title'] . '</b><br />';
             if ($value['use_function']) {
                 $use_function = $value['use_function'];
                 $keys .= setup_call_function($use_function, $value['value']);
             } else {
                 $keys .= $value['value'];
             }
             $keys .= '<br /><br />';
         }
         if (ADMIN_CONFIGURATION_KEY_ON == 1) {
             $contents[] = array('text' => '<strong>Key: ' . $mInfo->code . '</strong><br />');
         }
         $keys = substr($keys, 0, strrpos($keys, '<br /><br />'));
         $contents[] = array('align' => 'center', 'text' => ($security_level > 3 ? html_button_field('remove', TEXT_REMOVE, 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, gen_get_all_get_params(array('action', 'set', 'subject')) . 'set=' . $module_type . '&amp;subject=' . $mInfo->code . '&amp;action=remove', 'SSL') . '\'"') : '') . ($security_level > 1 ? html_button_field('edit', TEXT_EDIT, 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, gen_get_all_get_params(array('action', 'set', 'subject')) . 'set=' . $module_type . (isset($_GET['subject']) ? '&amp;subject=' . $_GET['subject'] : '') . '&amp;action=edit', 'SSL') . '\'"') : ''));
         $contents[] = array('text' => '<br />' . $mInfo->description);
         $contents[] = array('text' => '<br />' . $keys);
     } else {
         $contents[] = array('align' => 'center', 'text' => $security_level > 1 ? html_button_field('install', TEXT_INSTALL, 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, gen_get_all_get_params(array('action', 'set', 'subject')) . 'set=' . $module_type . '&amp;subject=' . $mInfo->code . '&amp;action=install', 'SSL') . '\'"') : '&nbsp;');
         $contents[] = array('text' => '<br />' . $mInfo->description);