コード例 #1
0
            $class_method = explode('->', $use_function);
            if (!is_object(${$class_method[0]})) {
                include OWP_CLASSES_DIR . $class_method[0] . '.php';
                ${$class_method[0]} = new $class_method[0]();
            }
            $cfgValue = owpCallFunction($class_method[1], $configuration['configuration_value'], ${$class_method[0]});
        } else {
            $cfgValue = owpCallFunction($use_function, $configuration['configuration_value']);
        }
    } else {
        $cfgValue = $configuration['configuration_value'];
    }
    if ((!$_GET['cID'] || @$_GET['cID'] == $configuration['configuration_id']) && !$cInfo && substr($_GET['action'], 0, 3) != 'new') {
        $sql = "SELECT configuration_key, configuration_description, date_added, \n                     last_modified, use_function, set_function \n              FROM " . $owpDBTable['configuration'] . " \n              WHERE configuration_id = '" . $configuration['configuration_id'] . "'";
        $cfg_extra_query = $db->Execute($sql);
        $cInfo_array = owpArrayMerge($configuration, $cfg_extra_query->fields);
        $cInfo = new objectInfo($cInfo_array);
    }
    if (is_object($cInfo) && $configuration['configuration_id'] == $cInfo->configuration_id) {
        echo '                  <tr class="dataTableRowSelected" onmouseover="this.style.cursor=\'hand\'" onclick="document.location.href=\'' . owpLink($owpFilename['configuration'], 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=edit') . '\'">' . "\n";
    } else {
        echo '                  <tr class="dataTableRow" onmouseover="this.className=\'dataTableRowOver\';this.style.cursor=\'hand\'" onmouseout="this.className=\'dataTableRow\'" onclick="document.location.href=\'' . owpLink($owpFilename['configuration'], 'gID=' . $_GET['gID'] . '&cID=' . $configuration['configuration_id']) . '\'">' . "\n";
    }
    ?>
                <td class="dataTableContent"><?php 
    echo $configuration['configuration_title'];
    ?>
</td>
                <td class="dataTableContent"><?php 
    echo htmlspecialchars($cfgValue);
    ?>
コード例 #2
0
</td>
                <td class="dataTableHeadingContent" align="right"><?php 
    echo TABLE_HEADING_ACTION;
    ?>
&nbsp;</td>
              </tr>
<?php 
    $admin_query_raw = "select admin_id, admin_gender, admin_firstname, admin_lastname, admin_email_address, admin_password, admin_allowed_pages, admin_login from " . $owpDBTable['administrators'] . "  order by admin_lastname, admin_firstname";
    $admin_split = new splitPageResults($_GET['page'], MAX_DISPLAY_SEARCH_RESULTS, $admin_query_raw, $admin_query_numrows);
    $admin_query = $db->Execute($admin_query_raw);
    while ($admin = $admin_query->fields) {
        $sql = "SELECT admin_info_date_account_created as date_account_created, \n                     admin_info_date_account_last_modified as date_account_last_modified, \n                     admin_info_date_of_last_logon as date_last_logon, \n                     admin_info_number_of_logons as number_of_logons \n              FROM " . $owpDBTable['administrators_info'] . " \n              WHERE admin_info_id = '" . $admin['admin_id'] . "'";
        $info_query = $db->Execute($sql);
        $info = $info_query->fields;
        if ((!$_GET['aID'] || @$_GET['aID'] == $admin['admin_id']) && !$aInfo) {
            $aInfo_array = owpArrayMerge($admin, $info);
            $aInfo = new objectInfo($aInfo_array);
        }
        if (is_object($aInfo) && $admin['admin_id'] == $aInfo->admin_id) {
            echo '          <tr class="dataTableRowSelected" onmouseover="this.style.cursor=\'hand\'" onclick="document.location.href=\'' . owpLink($owpFilename['administrators'], owpGetAllGetParameters(array('aID', 'action')) . 'aID=' . $aInfo->admin_id . '&action=edit') . '\'">' . "\n";
        } else {
            echo '          <tr class="dataTableRow" onmouseover="this.className=\'dataTableRowOver\';this.style.cursor=\'hand\'" onmouseout="this.className=\'dataTableRow\'" onclick="document.location.href=\'' . owpLink($owpFilename['administrators'], owpGetAllGetParameters(array('aID')) . 'aID=' . $admin['admin_id']) . '\'">' . "\n";
        }
        ?>
                <td class="dataTableContent"><?php 
        echo $admin['admin_lastname'];
        ?>
</td>
                <td class="dataTableContent"><?php 
        echo $admin['admin_firstname'];
        ?>