function getOutput() { $cache_file = DIR_FS_CACHE . 'oscommerce_version_check.cache'; $current_version = tep_get_version(); $new_version = false; if (file_exists($cache_file)) { $date_last_checked = tep_datetime_short(date('Y-m-d H:i:s', filemtime($cache_file))); $releases = unserialize(implode('', file($cache_file))); foreach ($releases as $version) { $version_array = explode('|', $version); if (version_compare($current_version, $version_array[0], '<')) { $new_version = true; break; } } } else { $date_last_checked = MODULE_ADMIN_DASHBOARD_VERSION_CHECK_NEVER; } $output = '<table border="0" width="100%" cellspacing="0" cellpadding="4">' . ' <tr class="dataTableHeadingRow">' . ' <td class="dataTableHeadingContent">' . MODULE_ADMIN_DASHBOARD_VERSION_CHECK_TITLE . '</td>' . ' <td class="dataTableHeadingContent" align="right">' . MODULE_ADMIN_DASHBOARD_VERSION_CHECK_DATE . '</td>' . ' </tr>'; if ($new_version == true) { $output .= ' <tr>' . ' <td class="messageStackWarning" colspan="2">' . tep_image('images/icons/warning.gif', ICON_WARNING) . ' <strong>' . MODULE_ADMIN_DASHBOARD_VERSION_CHECK_UPDATE_AVAILABLE . '</strong></td>' . ' </tr>'; } $output .= ' <tr class="dataTableRow" onmouseover="rowOverEffect(this);" onmouseout="rowOutEffect(this);">' . ' <td class="dataTableContent"><a href="' . tep_href_link('version_check.php') . '">' . MODULE_ADMIN_DASHBOARD_VERSION_CHECK_CHECK_NOW . '</a></td>' . ' <td class="dataTableContent" align="right">' . $date_last_checked . '</td>' . ' </tr>' . '</table>'; return $output; }
$http_error_query_numrows = tep_db_num_rows($http_error_query_numrows); $rows = 0; $http_error_query = tep_db_query($http_error_query_raw); while ($http_error = tep_db_fetch_array($http_error_query)) { $rows++; if (strlen($rows) < 2) { $rows = '0' . $rows; } ?> <tr class="dataTableRow" onMouseOver="rowOverEffect(this)" onMouseOut="rowOutEffect(this)"> <td class="dataTableContent"><?php echo $http_error['error_number']; ?> </td> <td class="dataTableContent"><?php echo tep_datetime_short($http_error['error_timestamp']); ?> </td> <td class="dataTableContent"><?php echo $http_error['error_ip']; ?> </td> <td class="dataTableContent"><?php echo $http_error['error_url']; ?> </td> <td class="dataTableContent"><?php echo $http_error['error_browser']; ?> </td> <td class="dataTableContent"><?php
function tep_get_system_information() { global $_SERVER; $db_query = tep_db_query("select now() as datetime"); $db = tep_db_fetch_array($db_query); list($system, $host, $kernel) = preg_split('/[\\s,]+/', @exec('uname -a'), 5); return array('date' => tep_datetime_short(date('Y-m-d H:i:s')), 'system' => $system, 'kernel' => $kernel, 'host' => $host, 'ip' => gethostbyname($host), 'uptime' => @exec('uptime'), 'http_server' => $_SERVER['SERVER_SOFTWARE'], 'php' => PHP_VERSION, 'zend' => function_exists('zend_version') ? zend_version() : '', 'db_server' => DB_SERVER, 'db_ip' => gethostbyname(DB_SERVER), 'db_version' => 'MySQL ' . (function_exists('mysql_get_server_info') ? mysql_get_server_info() : ''), 'db_date' => tep_datetime_short($db['datetime'])); }
<td colspan="2" class="window_header"><?php echo WPP_REFUND_TITLE; ?> </td> </tr> <tr> <td align="right" width="120"><?php echo WPP_TRANSACTION; ?> </td> <td><select name="refund_transaction_id" id="refund_transaction_id"> <?php $order_status = 0; foreach ($transactions as $t) { if ($t['transaction_id'] != '' && $t['transaction_type'] == 'CHARGE') { echo '<option value="' . $t['transaction_id'] . '">' . $t['transaction_id'] . ' (' . tep_datetime_short($t['date']) . ')</option>'; } $order_status = $t['status_id']; } ?> </select> </td> </tr> <tr> <td align="right"><?php echo WPP_REFUND_TYPE; ?> </td> <td><select name="refund_type" id="refund_type" onchange="hideAmount(this.value);"><option value=""></option><option value="Partial"><?php echo WPP_REFUND_PARTIAL; ?>
?> </td> </tr> </table></td> </tr> </table></td> <?php $heading = array(); $contents = array(); switch ($HTTP_GET_VARS['action']) { case 'release': $heading[] = array('text' => '[' . $gInfo->unique_id . '] ' . tep_datetime_short($gInfo->date_created) . ' ' . $currencies->format($gInfo->amount)); $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link('gv_queue.php', 'action=confirmrelease&gid=' . $gInfo->unique_id, 'NONSSL') . '">' . tep_image_button('button_confirm_red.gif', IMAGE_CONFIRM) . '</a> <a href="' . tep_href_link('gv_queue.php', 'action=cancel&gid=' . $gInfo->unique_id, 'NONSSL') . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: $heading[] = array('text' => '[' . $gInfo->unique_id . '] ' . tep_datetime_short($gInfo->date_created) . ' ' . $currencies->format($gInfo->amount)); $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link('gv_queue.php', 'action=release&gid=' . $gInfo->unique_id, 'NONSSL') . '">' . tep_image_button('button_release.gif', IMAGE_RELEASE) . '</a>'); break; } if (tep_not_null($heading) && tep_not_null($contents)) { echo ' <td width="25%" valign="top">' . "\n"; $box = new box(); echo $box->infoBox($heading, $contents); echo ' </td>' . "\n"; } ?> </tr> </table></td> </tr> </table></td> <!-- body_text_eof //-->
$heading = array(); $contents = array(); switch ($action) { case 'delete': $heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_DELETE_ORDER . '</strong>'); $contents = array('form' => tep_draw_form('orders', FILENAME_ADVANCE_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->advance_orders_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO); $contents[] = array('text' => '<br><strong>' . $oInfo->customers_name . '</strong>'); if (tep_not_null($oInfo->customers_ip)) { $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('order_blacklist', '1', false, '', 'onclick="if (this.checked) document.getElementById(\'order_blacklist_comment\').style.display = \'block\'; else document.getElementById(\'order_blacklist_comment\').style.display = \'none\';"') . ' ' . TEXT_DELETE_ORDER_BLACKLIST . '<div id="order_blacklist_comment" style="display: none;"><br>' . TEXT_DELETE_ORDER_BLACKLIST_COMMENTS . '<br>' . tep_draw_input_field('order_blacklist_reason', TEXT_DELETE_ORDER_BLACKLIST_COMMENTS_DEFAULT, 'size="35"') . '</div>'); } $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_ADVANCE_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->advance_orders_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: if (isset($oInfo) && is_object($oInfo)) { $heading[] = array('text' => '<strong>[' . $oInfo->advance_orders_id . '] ' . tep_datetime_short($oInfo->date_purchased) . '</strong>'); $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ADVANCE_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->advance_orders_id . '&action=view') . '">' . tep_image_button('button_preview.gif', IMAGE_PREVIEW) . '</a> <a href="' . tep_href_link(FILENAME_ADVANCE_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->advance_orders_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>'); $contents[] = array('text' => '<br>' . TEXT_DATE_ORDER_CREATED . ' ' . tep_date_short($oInfo->date_purchased)); } break; } if (tep_not_null($heading) && tep_not_null($contents)) { echo ' <td width="25%" valign="top">' . "\n"; $box = new box(); echo $box->infoBox($heading, $contents); echo ' </td>' . "\n"; } ?> </tr> </table></td> </tr>
$contents[] = array('text' => '<br><strong>' . $tInfo->products_types_name . '</strong>'); $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_PARAMETERS, 'tID=' . $tInfo->products_types_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: if ($rows > 0) { if (isset($tInfo) && is_object($tInfo)) { $heading[] = array('text' => '<strong>' . $tInfo->products_types_name . '</strong>'); $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_PARAMETERS, 'tID=' . $tInfo->products_types_id . '&action=edit_type') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_PARAMETERS, 'tID=' . $tInfo->products_types_id . '&action=delete_type') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>'); if (tep_not_null($tInfo->products_types_description)) { $contents[] = array('text' => '<br>' . TEXT_TYPES_DESCRIPTION . '<br>' . nl2br($tInfo->products_types_description)); } $contents[] = array('text' => '<br>' . TEXT_TYPES_PATH . ' ' . $tInfo->products_types_path); $contents[] = array('text' => '<br>' . TEXT_TYPES_LETTER_SEARCH . ' ' . ($tInfo->products_types_letter_search == '1' ? TEXT_YES : TEXT_NO)); $contents[] = array('text' => '<br>' . TEXT_DATE_ADDED . ' ' . tep_datetime_short($tInfo->date_added)); if (tep_not_null($tInfo->last_modified)) { $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . tep_datetime_short($tInfo->last_modified)); } } } break; } if (tep_not_null($heading) && tep_not_null($contents)) { echo ' <td width="25%" valign="top">' . "\n"; $box = new box(); echo $box->infoBox($heading, $contents); echo ' </td>' . "\n"; } ?> </tr> </table></td> </tr>
</td> <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_COMMENTS; ?> </td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_CUSTOMER_NOTIFIED; ?> </td> </tr> <?php foreach ($osC_Order->getStatusHistory() as $status_history) { ?> <tr class="dataTableRow"> <td class="dataTableContent" valign="top"><?php echo tep_datetime_short($status_history['date_added']); ?> </td> <td class="dataTableContent" valign="top"><?php echo $status_history['status']; ?> </td> <td class="dataTableContent" valign="top"><?php echo nl2br($status_history['comment']); ?> </td> <td class="dataTableContent" align="right" valign="top"><?php echo tep_image('templates/' . $template . '/images/icons/' . ($status_history['customer_notified'] === 1 ? 'checkbox_ticked.gif' : 'checkbox_crossed.gif')); ?> </td> </tr>
$Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ ?> <table border="0" width="100%" cellspacing="0" cellpadding="4"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent" width="20"> </td> <td class="dataTableHeadingContent"><?php echo ADMIN_INDEX_ADMIN_LOGINS_TITLE; ?> </td> <td class="dataTableHeadingContent" align="right"><?php echo ADMIN_INDEX_ADMIN_LOGINS_DATE; ?> </td> </tr> <?php $logins_query = tep_db_query("select id, user_name, success, date_added from " . TABLE_ACTION_RECORDER . " where module = 'ar_admin_login' order by date_added desc limit 6"); while ($logins = tep_db_fetch_array($logins_query)) { echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this);" onmouseout="rowOutEffect(this);">' . ' <td class="dataTableContent" align="center">' . tep_image(DIR_WS_IMAGES . 'icons/' . ($logins['success'] == '1' ? 'tick.gif' : 'cross.gif')) . '</td>' . ' <td class="dataTableContent"><a href="' . tep_href_link(FILENAME_ACTION_RECORDER, 'module=ar_admin_login&aID=' . (int) $logins['id']) . '">' . tep_output_string_protected($logins['user_name']) . '</a></td>' . ' <td class="dataTableContent" align="right">' . tep_datetime_short($logins['date_added']) . '</td>' . ' </tr>'; } ?> </table>
?> </td> <td class="calign"><?php echo !empty($entries['ticket']) ? $entries['ticket'] : '--'; ?> </td> <td><?php echo $ticket_array['subject'] . ' (' . $postings['count'] . ')'; ?> </td> <td><?php echo $ticket_array['sender']; ?> </td> <td class="calign"><?php echo tep_datetime_short($ticket_array['datestamp']); ?> </td> <td><?php echo $status_name; ?> </td> <td><?php echo $priority_name; ?> </td> <td class="calign"><?php echo $ticket_array['ip_address']; ?> </td> <td class="calign">
function tep_get_system_information($anonymous = false) { global $HTTP_SERVER_VARS; $db_query = tep_db_query("select now() as datetime"); $db = tep_db_fetch_array($db_query); list($system, $host, $kernel) = preg_split('/[\\s,]+/', @exec('uname -a'), 5); $data = array(); $data['oscommerce'] = array('version' => tep_get_version()); $data['system'] = array('date' => tep_datetime_short(date('Y-m-d H:i:s')), 'os' => PHP_OS, 'kernel' => $kernel, 'host' => $host, 'uptime' => @exec('uptime'), 'ip' => gethostbyname($host), 'http_server' => $HTTP_SERVER_VARS['SERVER_SOFTWARE']); $data['mysql'] = array('version' => 'MySQL ' . (function_exists('mysql_get_server_info') ? mysql_get_server_info() : ''), 'server' => DB_SERVER, 'ip' => gethostbyname(DB_SERVER), 'date' => tep_datetime_short($db['datetime'])); $data['php'] = array('version' => PHP_VERSION, 'zend' => function_exists('zend_version') ? zend_version() : '', 'sapi' => PHP_SAPI, 'int_size' => defined('PHP_INT_SIZE') ? PHP_INT_SIZE : '', 'safe_mode' => (int) @ini_get('safe_mode'), 'open_basedir' => (int) @ini_get('open_basedir'), 'memory_limit' => @ini_get('memory_limit'), 'error_reporting' => error_reporting(), 'display_errors' => (int) @ini_get('display_errors'), 'allow_url_fopen' => (int) @ini_get('allow_url_fopen'), 'allow_url_include' => (int) @ini_get('allow_url_include'), 'file_uploads' => (int) @ini_get('file_uploads'), 'upload_max_filesize' => @ini_get('upload_max_filesize'), 'post_max_size' => @ini_get('post_max_size'), 'disable_functions' => @ini_get('disable_functions'), 'disable_classes' => @ini_get('disable_classes'), 'enable_dl' => (int) @ini_get('enable_dl'), 'magic_quotes_gpc' => (int) @ini_get('magic_quotes_gpc'), 'register_globals' => (int) @ini_get('register_globals'), 'filter.default' => @ini_get('filter.default'), 'zend.ze1_compatibility_mode' => (int) @ini_get('zend.ze1_compatibility_mode'), 'unicode.semantics' => (int) @ini_get('unicode.semantics'), 'zend_thread_safty' => (int) function_exists('zend_thread_id'), 'extensions' => get_loaded_extensions()); // If we need anonymous data we need to remove some data which could // potentially be used to identify a particular installation. A SHA1 hash // is used purely to identify duplicate submissions if ($anonymous === true) { $data['system']['host'] = sha1($data['system']['host'] . $data['system']['ip']); $data['system']['ip'] = '0.0.0.0'; $data['system']['uptime'] = '0'; $data['mysql']['server'] = ''; $data['mysql']['ip'] = ''; } return $data; }
$style = ''; //Set format for row if ($Message == 'Wrong Username') { $style = 'Alert'; } if ($Message == 'Wrong Password') { $style = 'Warning'; } echo '<tr class="dataTableRow' . $style . '" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">'; ?> <td class="dataTableContent"><?php echo $cust_logging['login_number']; ?> </td> <td class="dataTableContent"><?php echo tep_datetime_short($cust_logging['login_time']); ?> </td> <td class="dataTableContent"><?php echo $cust_logging['ip_address']; ?> </td> <td class="dataTableContent"><?php echo $cust_logging['user_name']; ?> </td> <td class="dataTableContent"> <?php switch ($cust_logging['type']) { case 'Wrong Password': echo TEXT_WRONG_PASSWORD;
if (isset($oInfo) && $Qorders->valueInt('orders_id') == $oInfo->orders_id) { echo ' <tr class="selected">' . "\n"; } else { echo ' <tr onMouseOver="rowOverEffect(this);" onMouseOut="rowOutEffect(this);" onClick="document.location.href=\'' . tep_href_link(FILENAME_ORDERS, (isset($_GET['search']) ? 'search=' . $_GET['search'] . '&' : '') . (isset($_GET['status']) ? 'status=' . $_GET['status'] . '&' : '') . (isset($_GET['cID']) ? 'cID=' . $_GET['cID'] . '&' : '') . 'page=' . $_GET['page'] . '&oID=' . $Qorders->valueInt('orders_id')) . '\';">' . "\n"; } ?> <td><?php echo '<a href="' . tep_href_link(FILENAME_ORDERS, (isset($_GET['search']) ? 'search=' . $_GET['search'] . '&' : '') . (isset($_GET['status']) ? 'status=' . $_GET['status'] . '&' : '') . (isset($_GET['cID']) ? 'cID=' . $_GET['cID'] . '&' : '') . 'page=' . $_GET['page'] . '&oID=' . $Qorders->valueInt('orders_id') . '&action=oEdit') . '">' . tep_image('images/icons/preview.gif', ICON_PREVIEW) . ' ' . $Qorders->valueProtected('customers_name') . '</a>'; ?> </td> <td><?php echo strip_tags($Qorders->value('order_total')); ?> </td> <td><?php echo tep_datetime_short($Qorders->value('date_purchased')); ?> </td> <td><?php echo $Qorders->value('orders_status_name'); ?> </td> <td align="right"> <?php echo '<a href="#" onClick="document.location.href=\'' . tep_href_link(FILENAME_ORDERS, (isset($_GET['search']) ? 'search=' . $_GET['search'] . '&' : '') . (isset($_GET['status']) ? 'status=' . $_GET['status'] . '&' : '') . (isset($_GET['cID']) ? 'cID=' . $_GET['cID'] . '&' : '') . 'page=' . $_GET['page'] . '&oID=' . $Qorders->valueInt('orders_id') . '&action=oEdit') . '\';">' . tep_image('templates/' . $template . '/images/icons/16x16/configure.png', IMAGE_EDIT, '16', '16') . '</a> '; if (isset($oInfo) && $Qorders->valueInt('orders_id') == $oInfo->orders_id) { echo '<a href="#" onClick="toggleInfoBox(\'oDelete\');">' . tep_image('templates/' . $template . '/images/icons/16x16/trash.png', IMAGE_DELETE, '16', '16') . '</a>'; } else { echo '<a href="' . tep_href_link(FILENAME_ORDERS, (isset($_GET['search']) ? 'search=' . $_GET['search'] . '&' : '') . (isset($_GET['status']) ? 'status=' . $_GET['status'] . '&' : '') . (isset($_GET['cID']) ? 'cID=' . $_GET['cID'] . '&' : '') . 'page=' . $_GET['page'] . '&oID=' . $Qorders->valueInt('orders_id') . '&action=oDelete') . '">' . tep_image('templates/' . $template . '/images/icons/16x16/trash.png', IMAGE_DELETE, '16', '16') . '</a>'; } ?>
</b></th> <th class="smallText" align="center"><b><?php echo TABLE_HEADING_STATUS; ?> </b></th> <th width="50%" class="smallText" align="center"><b><?php echo TABLE_HEADING_COMMENTS; ?> </b></th> </tr> <?php $supply_request_history_query = tep_db_query("SELECT * FROM " . TABLE_SUPPLY_REQUEST_STATUS_HISTORY . "\r\n\t\t\t\t\t\t\t\t\t\t\t\t WHERE supply_request_id = '" . (int) $sID . "' \r\n\t\t\t\t\t\t\t\t\t\t\t\t ORDER BY date_added\r\n\t\t\t\t\t\t\t\t\t\t\t\t"); if (tep_db_num_rows($supply_request_history_query)) { while ($supply_request_history = tep_db_fetch_array($supply_request_history_query)) { echo '<tr> <td class="smallText" align="center">' . tep_datetime_short($supply_request_history['date_added']) . '</td> <td class="smallText" align="center">'; if ($supply_request_history['supplier_notified'] == '1') { echo tep_image(DIR_WS_ICONS . 'tick.gif', ICON_TICK); } else { echo tep_image(DIR_WS_ICONS . 'cross.gif', ICON_CROSS); } echo ' </td> <td class="smallText" align="left">' . $supply_request_status_array[$supply_request_history['supply_request_status_id']] . '</td> <td class="smallText" align="left" width="50%">' . nl2br(tep_db_output($supply_request_history['comments'])) . ' </td> </tr>'; } } else { echo ' <tr><td class="smallText" colspan="5">' . TEXT_NO_SUPPLY_REQUEST_HISTORY . '</td></tr>'; } ?>
<?php } ?> <td class="main" align="right"><b><?php echo ENTRY_INVOICE_DATE_PURCHASED; ?> <br><?php echo ENTRY_INVOICE_DATE_ZAHLBAR; ?> </b></td> <?php if (EDIT_INVOICE_SHOW_DATE == 'Datum und Uhrzeit') { ?> <td class="main"><?php echo tep_datetime_short($order->info['date_purchased']); ?> </td> <?php } else { if (EDIT_INVOICE_SHOW_DATE == 'nur Datum') { ?> <td class="main" width="10%" align="right"> <?php echo tep_date_short($order->info['date_purchased']); ?> <br><?php echo tep_date_short_add($order->info['date_purchased'], 'day', ZAHLUNGSFAELLIGKEIT); ?> </td> <?php }
</td> <td class="dataTableHeadingContent" align="left"><?php echo TABLE_HEADING_COMMENTS; ?> </td> </tr> <?php $orders_history_query = tep_db_query("SELECT orders_status_history_id, orders_status_id, date_added, customer_notified, comments \n FROM " . TABLE_ORDERS_STATUS_HISTORY . " \n WHERE orders_id = '" . (int) $oID . "' \n ORDER BY date_added"); if (tep_db_num_rows($orders_history_query)) { while ($orders_history = tep_db_fetch_array($orders_history_query)) { $r++; $rowClass = $r / 2 == floor($r / 2) ? 'dataTableRowOver' : 'dataTableRow'; if (ORDER_EDITOR_USE_AJAX == 'true') { echo ' <tr class="' . $rowClass . '" id="commentRow' . $orders_history['orders_status_history_id'] . '" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this, \'' . $rowClass . '\')">' . "\n" . ' <td class="smallText" align="center"><div id="do_not_delete"><input name="update_comments[' . $orders_history['orders_status_history_id'] . '][delete]" type="checkbox" onClick="updateCommentsField(\'delete\', \'' . $orders_history['orders_status_history_id'] . '\', this.checked, \'\', this)"></div></td>' . "\n" . ' <td class="smallText">' . tep_datetime_short($orders_history['date_added']) . '</td>' . "\n" . ' <td class="smallText" align="center">'; } else { echo ' <tr class="' . $rowClass . '" id="commentRow' . $orders_history['orders_status_history_id'] . '" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this, \'' . $rowClass . '\')">' . "\n" . ' <td class="smallText" align="center"><div id="do_not_delete"><input name="update_comments[' . $orders_history['orders_status_history_id'] . '][delete]" type="checkbox"></div></td>' . "\n" . ' <td class="smallText" align="center">' . tep_datetime_short($orders_history['date_added']) . '</td>' . "\n" . ' <td class="smallText" align="center">'; } if ($orders_history['customer_notified'] == '1') { echo tep_image(DIR_WS_ICONS . 'tick.png', ICON_TICK) . "</td>\n"; } else { echo tep_image(DIR_WS_ICONS . 'cross.png', ICON_CROSS) . "</td>\n"; } echo ' <td class="smallText" align="left">' . $orders_status_array[$orders_history['orders_status_id']] . '</td>' . "\n"; echo ' <td class="smallText" align="left">'; if (ORDER_EDITOR_USE_AJAX == 'true') { echo tep_draw_textarea_field("update_comments[" . $orders_history['orders_status_history_id'] . "][comments]", "40", "5", "" . tep_db_output($orders_history['comments']) . "", "onChange=\"updateCommentsField('update', '" . $orders_history['orders_status_history_id'] . "', 'false', encodeURIComponent(this.value))\"") . '' . "\n" . ' </td>' . "\n"; } else { echo tep_draw_textarea_field("update_comments[" . $orders_history['orders_status_history_id'] . "][comments]", "40", "5", "" . tep_db_output($orders_history['comments']) . "") . '' . "\n" . ' </td>' . "\n"; } echo ' </tr>' . "\n"; }
?> </td> <td class="dataTableHeadingContent" align="left" width="10"> </td> <td class="dataTableHeadingContent" align="left"><?php echo TABLE_HEADING_COMMENTS; ?> </td> </tr> <?php $r = 0; $orders_history_query = tep_db_query("SELECT orders_status_history_id, orders_status_id, date_added, customer_notified, comments \n FROM " . TABLE_ORDERS_STATUS_HISTORY . " \n\t\t\t\t\t\t\t\t\tWHERE orders_id = '" . tep_db_prepare_input($_GET['oID']) . "' \n\t\t\t\t\t\t\t\t\tORDER BY date_added"); if (tep_db_num_rows($orders_history_query)) { while ($orders_history = tep_db_fetch_array($orders_history_query)) { $r++; $rowClass = $r / 2 == floor($r / 2) ? 'dataTableRowOver' : 'dataTableRow'; echo ' <tr class="' . $rowClass . '" id="commentRow' . $orders_history['orders_status_history_id'] . '" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this, \'' . $rowClass . '\')">' . "\n" . ' <td class="smallText" align="center"><div id="do_not_delete"><input name="update_comments[' . $orders_history['orders_status_history_id'] . '][delete]" type="checkbox" onClick="updateCommentsField(\'delete\', \'' . $orders_history['orders_status_history_id'] . '\', this.checked, \'\', this)"></div></td>' . "\n" . ' <td class="dataTableHeadingContent" align="left" width="10"> </td>' . "\n" . ' <td class="smallText" align="center">' . tep_datetime_short($orders_history['date_added']) . '</td>' . "\n" . ' <td class="dataTableHeadingContent" align="left" width="10"> </td>' . "\n" . ' <td class="smallText" align="center">'; if ($orders_history['customer_notified'] == '1') { echo tep_image(DIR_WS_ICONS . 'tick.png', ICON_TICK) . "</td>\n"; } else { echo tep_image(DIR_WS_ICONS . 'cross.png', ICON_CROSS) . "</td>\n"; } echo ' <td class="dataTableHeadingContent" align="left" width="10"> </td>' . "\n" . ' <td class="smallText" align="left">' . $orders_status_array[$orders_history['orders_status_id']] . '</td>' . "\n"; echo ' <td class="dataTableHeadingContent" align="left" width="10"> </td>' . "\n" . ' <td class="smallText" align="left">' . tep_draw_textarea_field("update_comments[" . $orders_history['orders_status_history_id'] . "][comments]", "40", "5", "" . tep_db_output($orders_history['comments']) . "", "onChange=\"updateCommentsField('update', '" . $orders_history['orders_status_history_id'] . "', 'false', encodeURIComponent(this.value))\"") . '' . "\n" . ' </td>' . "\n"; echo ' </tr>' . "\n"; } } else { echo ' <tr>' . "\n" . ' <td class="smallText" colspan="5">' . TEXT_NO_ORDER_HISTORY . '</td>' . "\n" . ' </tr>' . "\n"; } ?> </table>
<BR> <P> <BR> <P> <BR> <P> <tr> <td class="smallText" align="center"><b>Date Added</b></td> <td class="smallText" align="center"><b>Status</b></td> <td class="smallText" align="center"><b>Comments</b></td> </tr> <tr> <?php $orders_history_query = tep_db_query("select orders_status_id, date_added, customer_notified, comments from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . tep_db_input($oID) . "' order by date_added"); if (tep_db_num_rows($orders_history_query)) { while ($orders_history = tep_db_fetch_array($orders_history_query)) { echo ' <tr>' . "\n" . ' <td class="smallText" valign="middle" align="center" width = 100>' . tep_datetime_short($orders_history['date_added']) . '</td>' . "\n" . ' <td class="smallText" valign="middle" align="center" width = 100>' . $orders_status_array[$orders_history['orders_status_id']] . ' </td>' . "\n" . ' <td class="smallText" valign="middle">' . nl2br(tep_db_output($orders_history['comments'])) . ' </td>' . "\n" . ' </tr>' . "\n"; } } else { echo ' <tr>' . "\n" . ' <td class="smallText" colspan="5">' . TEXT_NO_ORDER_HISTORY . '</td>' . "\n" . ' </tr>' . "\n"; } ?> </tr> </table></CENTER> <!-- body_text_eof //--> <br> </body> </html> <?php require DIR_WS_INCLUDES . 'application_bottom.php';
function osc_get_system_information() { if (PHP_VERSION < 4.1) { global $_SERVER; } global $osC_Database; $Qdb_date = $osC_Database->query('select now() as datetime'); $Qdb_uptime = $osC_Database->query('show status like "Uptime"'); list($system, $host, $kernel) = preg_split('/[\\s,]+/', @exec('uname -a'), 5); $db_uptime = intval($Qdb_uptime->valueInt('Value') / 3600) . ':' . str_pad(intval($Qdb_uptime->valueInt('Value') / 60 % 60), 2, '0', STR_PAD_LEFT); return array('date' => tep_datetime_short(date('Y-m-d H:i:s')), 'system' => $system, 'kernel' => $kernel, 'host' => $host, 'ip' => gethostbyname($host), 'uptime' => @exec('uptime'), 'http_server' => $_SERVER['SERVER_SOFTWARE'], 'php' => PHP_VERSION, 'zend' => function_exists('zend_version') ? zend_version() : '', 'db_server' => DB_SERVER, 'db_ip' => gethostbyname(DB_SERVER), 'db_version' => 'MySQL ' . (function_exists('mysql_get_server_info') ? mysql_get_server_info() : ''), 'db_date' => tep_datetime_short($Qdb_date->value('datetime')), 'db_uptime' => $db_uptime); }
$style = ''; //Set format for row if ($Message == 'Wrong Username') { $style = 'Alert'; } if ($Message == 'Wrong Password') { $style = 'Warning'; } echo '<tr class="dataTableRow' . $style . '" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">'; ?> <td class="dataTableContent"><?php echo $admin_logging['login_number']; ?> </td> <td class="dataTableContent"><?php echo tep_datetime_short($admin_logging['login_time']); ?> </td> <td class="dataTableContent"><?php echo $admin_logging['ip_address']; ?> </td> <td class="dataTableContent"><?php echo $admin_logging['user_name']; ?> </td> <?php switch ($admin_logging['type']) { case 'Wrong Password': echo '<td></td><td class="dataTableContent">' . TEXT_WRONG_PASSWORD . '</td>'; break;
<tr> <td width="91" align="center" class="smallText" style="border:solid 1px #0099FF; border-top:0; border-left:0"><b><?php echo TABLE_HEADING_DATE_ADDED; ?> </b></td> <td align="center" class="smallText" style="border-bottom:solid 1px #0099FF;"><b><?php echo TABLE_HEADING_COMMENTS; ?> </b></td> </tr> <?php $admin_comments_query = tep_db_query("SELECT orders_id, \n\t\t\t\t\t\t\t\t\t\t\t\t date_added, \n\t\t\t\t\t\t\t\t\t\t\t\t comments, \n\t\t\t\t\t\t\t\t\t\t\t\t admin_user \n\t\t\t\t\t\t\t\t\t\t FROM admin_comments \n\t\t\t\t\t\t\t\t\t\t WHERE orders_id = '" . tep_db_input($oID) . "'\n\t\t\t\t\t\t\t\t\t\t ORDER BY date_added\n\t\t\t\t\t\t\t\t\t\t"); if (tep_db_num_rows($admin_comments_query)) { while ($admin_history = tep_db_fetch_array($admin_comments_query)) { echo '<tr> <td class="smallText" align="center" style="border-right:solid 1px #0099FF; padding:10px;">' . tep_datetime_short($admin_history['date_added']) . (!empty($admin_history['admin_user']) ? '<br><br><b>By: ' . $admin_history['admin_user'] : '') . '</b></td> <td class="smallText" style="padding:10px;">' . tep_db_output($admin_history['comments']) . ' </td> </tr>'; } } else { echo '<tr> <td class="smallText" colspan="2" style="padding:10px;">No Admin Comments.</td> </tr>'; } ?> </table></td> </tr> <tr> <td> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="main"> <tr>
if (isset($_POST['batch'])) { $batch_list = '<table border="0" cellpadding="2">' . "\n"; foreach ($_POST['batch'] as $key => $batch_id) { $batch_list .= '<tr>' . "\n" . '<td class="infoBoxContent">'; $batch_list .= '<b>' . $batch_id . '</b></td>' . "\n" . '<td>'; $batch_list .= '<input type="checkbox" name="batch_id[]" value="' . $batch_id . '" checked="checked" />'; $batch_list .= '</td>' . "\n" . '</tr>' . "\n" . ''; } $batch_list .= '</table>' . "\n"; $contents[] = array('align' => 'center', 'text' => $batch_list); } $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_UPS_BOXES_USED, tep_get_all_get_params(array('ubuID', 'action', 'chooseID', 'inputID', 'cID')) . 'ubuID=' . $ubuInfo->id . (isset($cID) ? '&cID=' . $cID . '' : '')) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: if (isset($ubuInfo) && is_object($ubuInfo)) { $heading[] = array('text' => '<b>[' . $ubuInfo->id . '] ' . tep_datetime_short($ubuInfo->date) . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_UPS_BOXES_USED, tep_get_all_get_params(array('ubuID', 'action', 'chooseID', 'inputID', 'cID')) . 'ubuID=' . $ubuInfo->id . '&action=details' . (isset($cID) ? '&cID=' . $cID . '' : '')) . '">' . tep_image_button('button_details.gif', IMAGE_DETAILS) . '</a> <a href="' . tep_href_link(FILENAME_UPS_BOXES_USED, tep_get_all_get_params(array('ubuID', 'action', 'chooseID', 'inputID', 'cID')) . 'ubuID=' . $ubuInfo->id . '&action=delete' . (isset($cID) ? '&cID=' . $cID . '' : '')) . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>'); $contents[] = array('text' => '<br>' . TEXT_INFO_NUMBER_OF_BOXES . ' ' . $shipment_object->info['num_of_boxes']); } break; } if (tep_not_null($heading) && tep_not_null($contents)) { echo ' <td width="25%" valign="top">' . "\n"; $box = new box(); echo $box->infoBox($heading, $contents); echo ' </td>' . "\n"; } ?> </tr> </table></td> </tr>
$contents[] = array('text' => TEXT_INFO_DELETE_VOTE_INTRO); $contents[] = array('text' => '<b>' . tep_datetime_short($vtInfo->date_added) . '</b>'); $contents[] = array('class' => 'calign', 'text' => tep_image_submit('button_delete.gif', IMAGE_DELETE) . '<a href="' . tep_href_link($g_script, tep_get_all_get_params('action', 'vtID') . 'vtID=' . $vtInfo->auto_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); } else { // create comment dummy info $heading[] = array('text' => '<b>' . EMPTY_GENERIC . '</b>'); $contents[] = array('class' => 'calign', 'text' => tep_image(DIR_WS_IMAGES . 'invalid_entry.png', IMAGE_SELECT)); $contents[] = array('text' => TEXT_NO_GENERIC); } break; default: if (isset($vtInfo) && is_object($vtInfo)) { $heading[] = array('text' => '<b>' . $vtInfo->ip_address . '</b>'); $contents[] = array('class' => 'calign', 'text' => '<a href="' . tep_href_link($g_script, tep_get_all_get_params('action', 'vtID') . 'vtID=' . $vtInfo->auto_id . '&action=delete_vote') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>'); $contents[] = array('text' => TEXT_IP_ADDRESS . '<br />' . $vtInfo->ip_address); $contents[] = array('text' => TEXT_DATE_ADDED . '<br />' . tep_datetime_short($vtInfo->date_added)); } else { // create comment dummy info $heading[] = array('text' => '<b>' . EMPTY_GENERIC . '</b>'); $contents[] = array('class' => 'calign', 'text' => '<a href="' . tep_href_link($g_script, tep_get_all_get_params('action', 'vtID') . 'action=new_comment') . '">' . tep_image(DIR_WS_IMAGES . 'invalid_entry.png', IMAGE_NEW) . '</a>'); $contents[] = array('text' => TEXT_INFO_NO_VOTES); } break; } if (!empty($heading) && !empty($contents)) { echo ' <div class="rightcell">'; $box = new box(); echo $box->infoBox($heading, $contents); echo ' </div>'; } require DIR_FS_OBJECTS . 'html_end.php';
</td> <td class="main"><?php $products_types_last_modified_array = array(); $products_types_last_modified_query = tep_db_query("select products_types_id, products_last_modified from " . TABLE_PRODUCTS_TYPES . " where language_id = '" . (int) $languages_id . "'"); while ($products_types_last_modified = tep_db_fetch_array($products_types_last_modified_query)) { $products_types_last_modified_array[$products_types_last_modified['products_types_id']] = tep_datetime_short($products_types_last_modified['products_last_modified']); } $categories_last_update_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'CONFIGURATION_LAST_UPDATE_CATEGORIES_DATE'"); $categories_last_update = tep_db_fetch_array($categories_last_update_query); $manufacturers_last_update_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'CONFIGURATION_LAST_UPDATE_MANUFACTURERS_DATE'"); $manufacturers_last_update = tep_db_fetch_array($manufacturers_last_update_query); $series_last_update_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'CONFIGURATION_LAST_UPDATE_SERIES_DATE'"); $series_last_update = tep_db_fetch_array($series_last_update_query); $authors_last_update_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'CONFIGURATION_LAST_UPDATE_AUTHORS_DATE'"); $authors_last_update = tep_db_fetch_array($authors_last_update_query); echo '<table border="0" cellspacing="0" cellpadding="2">' . "\n" . '<tr valign="top">' . "\n" . '<td class="main">' . tep_draw_radio_field('type', 'categories', false, '', 'onclick="document.getElementById(\'updateImages\').style.display = \'none\'; document.getElementById(\'updateOtherImages\').style.display = \'none\';"') . '</td>' . "\n" . '<td class="main">' . TEXT_UPLOAD_CATEGORIES . '</td>' . "\n" . '<td class="main"> [' . tep_datetime_short($categories_last_update['configuration_value']) . ']</td>' . "\n" . '</tr>' . "\n" . '<tr valign="top">' . "\n" . '<td class="main">' . tep_draw_radio_field('type', 'manufacturers', false, '', 'onclick="document.getElementById(\'updateImages\').style.display = \'none\'; document.getElementById(\'updateOtherImages\').style.display = \'none\';"') . '</td>' . "\n" . '<td class="main">' . TEXT_UPLOAD_MANUFACTURERS . '</td>' . "\n" . '<td class="main"> [' . tep_datetime_short($manufacturers_last_update['configuration_value']) . ']</td>' . "\n" . '</tr>' . "\n" . '<tr valign="top">' . "\n" . '<td class="main">' . tep_draw_radio_field('type', 'series', false, '', 'onclick="document.getElementById(\'updateImages\').style.display = \'none\'; document.getElementById(\'updateOtherImages\').style.display = \'none\';"') . '</td>' . "\n" . '<td class="main">' . TEXT_UPLOAD_SERIES . '</td>' . "\n" . '<td class="main"> [' . tep_datetime_short($series_last_update['configuration_value']) . ']</td>' . "\n" . '</tr>' . "\n" . '<tr valign="top">' . "\n" . '<td class="main">' . tep_draw_radio_field('type', 'authors', false, '', 'onclick="document.getElementById(\'updateImages\').style.display = \'none\'; document.getElementById(\'updateOtherImages\').style.display = \'none\';"') . '</td>' . "\n" . '<td class="main">' . TEXT_UPLOAD_AUTHORS . '</td>' . "\n" . '<td class="main"> [' . tep_datetime_short($authors_last_update['configuration_value']) . ']</td>' . "\n" . '</tr>' . "\n" . '<tr valign="top">' . "\n" . '<td class="main">' . tep_draw_radio_field('type', 'products', false, '', 'onclick="if (this.checked) document.getElementById(\'updateImages\').style.display = \'\'; document.getElementById(\'updateOtherImages\').style.display = \'none\';"') . '</td>' . "\n" . '<td class="main">' . TEXT_UPLOAD_PRODUCTS . '<div id="updateImages" style="display: none;">' . tep_draw_checkbox_field('update_images', '1', false) . TEXT_UPDATE_IMAGES . '</div></td>' . "\n" . '<td class="main"> [' . $products_types_last_modified_array[1] . ']</td>' . "\n" . '</tr>' . "\n" . '<tr valign="top">' . "\n" . '<td class="main">' . tep_draw_radio_field('type', 'other_products', false, '', 'onclick="if (this.checked) document.getElementById(\'updateOtherImages\').style.display = \'\'; document.getElementById(\'updateImages\').style.display = \'none\';"') . '</td>' . "\n" . '<td class="main">' . TEXT_UPLOAD_OTHER_PRODUCTS . '<div id="updateOtherImages" style="display: none;">' . tep_draw_checkbox_field('update_other_images', '1', false) . TEXT_UPDATE_IMAGES . '</div></td>' . "\n" . '<td class="main"> [' . $products_types_last_modified_array[2] . ']</td>' . "\n" . '</tr>' . "\n" . '</table>'; ?> </td> </tr> <tr> <td colspan="3"><?php echo tep_draw_separator('pixel_trans.gif', '1', '15'); ?> </td> </tr> <tr> <td> </td> <td colspan="2"><?php echo tep_image_submit('button_upload.gif', IMAGE_UPLOAD); ?> </td>
</tr> </table></td> <?php $heading = array(); $contents = array(); switch ($action) { case 'delete': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_ORDER . '</b>'); $contents = array('form' => tep_draw_form('orders', FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO . '<br><br><b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>'); $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('restock') . ' ' . TEXT_INFO_RESTOCK_PRODUCT_QUANTITY); $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: if (isset($oInfo) && is_object($oInfo)) { $heading[] = array('text' => '<b>[' . $oInfo->orders_id . '] ' . tep_datetime_short($oInfo->date_purchased) . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>'); // PI_RATEPAY Beginn if ($oInfo->payment_method == "ratepay_rate" || $oInfo->payment_method == "ratepay_rechnung" || $oInfo->payment_method == "ratepay_lastschrift") { include 'includes/ratepay_order_buttons.php'; } else { $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ORDERS_INVOICE, 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . tep_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS_PACKINGSLIP, 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . tep_image_button('button_packingslip.gif', IMAGE_ORDERS_PACKINGSLIP) . '</a>'); } //PI_RATEPAY End $contents[] = array('text' => '<br>' . TEXT_DATE_ORDER_CREATED . ' ' . tep_date_short($oInfo->date_purchased)); if (tep_not_null($oInfo->last_modified)) { $contents[] = array('text' => TEXT_DATE_ORDER_LAST_MODIFIED . ' ' . tep_date_short($oInfo->last_modified)); } $contents[] = array('text' => '<br>' . TEXT_INFO_PAYMENT_METHOD . ' ' . $oInfo->payment_method); } break;
</table></td> </tr> </table></td> <?php $heading = array(); $contents = array(); switch ($_GET['action']) { case 'delete': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_PAYMENT . '</b>'); $contents = array('form' => tep_draw_form('payment', FILENAME_AFFILIATE_PAYMENT, tep_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=deleteconfirm')); $contents[] = array('text' => TEXT_INFO_DELETE_INTRO . '<br>'); $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(AFFILIATE_PAYMENT, tep_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: if (is_object($pInfo)) { $heading[] = array('text' => '<b>[' . $pInfo->affiliate_payment_id . '] ' . tep_datetime_short($pInfo->affiliate_payment_date) . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_AFFILIATE_PAYMENT, tep_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_AFFILIATE_PAYMENT, tep_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>'); $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_AFFILIATE_INVOICE, 'pID=' . $pInfo->affiliate_payment_id) . '" TARGET="_blank">' . tep_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> '); } break; } if (tep_not_null($heading) && tep_not_null($contents)) { echo ' <td width="25%" valign="top">' . "\n"; $box = new box(); echo $box->infoBox($heading, $contents); echo ' </td>' . "\n"; } ?> </tr> </table></td> </tr>
$heading = array(); $contents = array(); switch ($action) { case 'release': $heading[] = array('text' => 'Coupon: ' . $gInfo->unique_id . ' | ' . tep_datetime_short($gInfo->date_created) . ' | ' . $currencies->format($gInfo->amount)); $gv_check_raw = "select c.customers_firstname, c.customers_lastname, gv.unique_id, gv.date_created, gv.amount, gv.order_id, gv.release_flag, gv.release_date from " . TABLE_CUSTOMERS . " c, " . TABLE_COUPON_GV_QUEUE . " gv where (gv.customer_id = c.customers_id and gv.unique_id = '" . $_GET['gid'] . "')"; if ($gInfo->release_flag == 'Y') { $contents[] = array('align' => 'left', 'text' => TEXT_RELEASED_ALREADY . tep_datetime_short($gInfo->release_date)); } else { $contents[] = array('align' => 'left', 'text' => TEXT_PAYMENT_CHECK_CONFIRM . '<br><br><center><a href="' . tep_href_link('gv_queue.php', 'action=confirmrelease&gid=' . $gInfo->unique_id, 'NONSSL') . '">' . tep_image_button('button_confirm_red.gif', IMAGE_CONFIRM) . '</a> <a href="' . tep_href_link('gv_queue.php', 'action=cancel&gid=' . $gInfo->unique_id, 'NONSSL') . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a></center>'); } break; default: $heading[] = array('text' => 'Coupon: ' . $gInfo->unique_id . ' | ' . tep_datetime_short($gInfo->date_created) . ' | ' . $currencies->format($gInfo->amount)); if ($gInfo->release_flag == 'Y') { $contents[] = array('align' => 'left', 'text' => TEXT_RELEASED_ALREADY . tep_datetime_short($gInfo->release_date)); } else { $contents[] = array('align' => 'left', 'text' => TEXT_PAYMENT_CHECK . '<br><br><center><a href="' . tep_href_link('gv_queue.php', 'action=release&gid=' . $gInfo->unique_id, 'NONSSL') . '">' . tep_image_button('button_release.gif', IMAGE_RELEASE) . '</a></center>'); } break; } if (tep_not_null($heading) && tep_not_null($contents)) { echo ' <td width="25%" valign="top">' . "\n"; $box = new box(); echo $box->infoBox($heading, $contents); echo ' </td>' . "\n"; } ?> </tr> </table></td> </tr>
/* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ $cache_file = DIR_FS_CACHE . 'oscommerce_version_check.cache'; $current_version = tep_get_version(); $new_version = false; if (file_exists($cache_file)) { $date_last_checked = tep_datetime_short(date('Y-m-d H:i:s', filemtime($cache_file))); $releases = unserialize(implode('', file($cache_file))); foreach ($releases as $version) { $version_array = explode('|', $version); if (version_compare($current_version, $version_array[0], '<')) { $new_version = true; break; } } } else { $date_last_checked = ADMIN_INDEX_UPDATE_CHECK_NEVER; } ?> <table border="0" width="100%" cellspacing="0" cellpadding="4"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent"><?php
echo $actions_split->display_links($actions_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page'], (isset($HTTP_GET_VARS['module']) && in_array($HTTP_GET_VARS['module'], $modules_array) && is_object(${$HTTP_GET_VARS['module']}) ? 'module=' . $HTTP_GET_VARS['module'] : null) . '&' . (isset($HTTP_GET_VARS['search']) && !empty($HTTP_GET_VARS['search']) ? 'search=' . $HTTP_GET_VARS['search'] : null)); ?> </td> </tr> </table></td> </tr> </table></td> <?php $heading = array(); $contents = array(); switch ($action) { default: if (isset($aInfo) && is_object($aInfo)) { $heading[] = array('text' => '<strong>' . $aInfo->module . '</strong>'); $contents[] = array('text' => TEXT_INFO_IDENTIFIER . '<br /><br />' . (!empty($aInfo->identifier) ? '<a href="' . tep_href_link('action_recorder.php', 'search=' . $aInfo->identifier) . '"><u>' . tep_output_string_protected($aInfo->identifier) . '</u></a>' : '(empty)')); $contents[] = array('text' => '<br />' . TEXT_INFO_DATE_ADDED . ' ' . tep_datetime_short($aInfo->date_added)); } break; } if (tep_not_null($heading) && tep_not_null($contents)) { echo ' <td width="25%" valign="top">' . "\n"; $box = new box(); echo $box->infoBox($heading, $contents); echo ' </td>' . "\n"; } ?> </tr> </table></td> </tr> </table>
<td class="dataTableHeadingContent" align="left" width="10"> </td> <td class="dataTableHeadingContent" align="left"><?php echo HEADING_TITLE_STATUS; ?> </td> <td class="dataTableHeadingContent" align="left" width="10"> </td> <td class="dataTableHeadingContent" align="left"><?php echo TABLE_HEADING_COMMENTS; ?> </td> </tr> <?php $orders_history_query = tep_db_query("select * from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . tep_db_input($oID) . "' order by date_added"); if (tep_db_num_rows($orders_history_query)) { while ($orders_history = tep_db_fetch_array($orders_history_query)) { echo ' <tr>' . "\n" . ' <td class="smallText" align="center">' . tep_datetime_short($orders_history['date_added']) . '</td>' . "\n" . ' <td class="dataTableHeadingContent" align="left" width="10"> </td>' . "\n" . ' <td class="smallText" align="center">'; if ($orders_history['customer_notified'] == '1') { echo tep_image(DIR_WS_ICONS . 'tick.gif', ICON_TICK) . "</td>\n"; } else { echo tep_image(DIR_WS_ICONS . 'cross.gif', ICON_CROSS) . "</td>\n"; } echo ' <td class="dataTableHeadingContent" align="left" width="10"> </td>' . "\n" . ' <td class="smallText" align="left">' . $orders_status_array[$orders_history['orders_status_id']] . '</td>' . "\n"; echo ' <td class="dataTableHeadingContent" align="left" width="10"> </td>' . "\n" . ' <td class="smallText" align="left">' . nl2br(tep_db_output($orders_history['comments'])) . ' </td>' . "\n"; echo ' </tr>' . "\n"; } } else { echo ' <tr>' . "\n" . ' <td class="smallText" colspan="5">' . TEXT_NO_ORDER_HISTORY . '</td>' . "\n" . ' </tr>' . "\n"; } ?> </table>