function smn_get_system_information()
{
    global $HTTP_SERVER_VARS;
    $db_query = smn_db_query("select now() as datetime");
    $db = smn_db_fetch_array($db_query);
    list($system, $host, $kernel) = preg_split('/[\\s,]+/', @exec('uname -a'), 5);
    return array('date' => smn_datetime_short(date('Y-m-d H:i:s')), 'system' => $system, 'kernel' => $kernel, 'host' => $host, 'ip' => gethostbyname($host), 'uptime' => @exec('uptime'), 'http_server' => $HTTP_SERVER_VARS['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' => smn_datetime_short($db['datetime']));
}
        echo '<tr class="dataTableRow">';
    } else {
        '<tr class="dataTableRowSelected">';
    }
    ?>
              
                <td class="dataTableContent"><?php 
    echo '<a href="' . smn_href_link(FILENAME_ORDERS, smn_get_all_get_params(array('oID', 'action')) . 'oID=' . $orders['orders_id'] . '&action=edit') . '">' . smn_image(DIR_WS_ICONS . 'preview.gif', ICON_PREVIEW) . '</a>&nbsp;' . $orders['customers_name'];
    ?>
</td>
                <td class="dataTableContent" align="right"><?php 
    echo strip_tags($orders['order_total']);
    ?>
</td>
                <td class="dataTableContent" align="center"><?php 
    echo smn_datetime_short($orders['date_purchased']);
    ?>
</td>
                <td class="dataTableContent" align="right"><?php 
    echo $orders['orders_status_name'];
    ?>
</td>
<?php 
    if (isset($HTTP_GET_VARS['checkall']) && $HTTP_GET_VARS['checkall'] == 0) {
        ?>
                <td class="dataTableContent" align="right"><?php 
        echo smn_draw_checkbox_field('select_order[' . $row . ']', '', false);
        ?>
&nbsp;</td>
<?php 
    } else {
                </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' => smn_draw_form('payment', FILENAME_AFFILIATE_PAYMENT, smn_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>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(AFFILIATE_PAYMENT, smn_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if (is_object($pInfo)) {
                $heading[] = array('text' => '<b>[' . $pInfo->affiliate_payment_id . ']&nbsp;&nbsp;' . smn_datetime_short($pInfo->affiliate_payment_date) . '</b>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_AFFILIATE_PAYMENT, smn_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=edit') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_AFFILIATE_PAYMENT, smn_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=delete') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_AFFILIATE_INVOICE, 'pID=' . $pInfo->affiliate_payment_id) . '" TARGET="_blank">' . smn_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> ');
            }
            break;
    }
    if (smn_not_null($heading) && smn_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>
Exemple #4
0
              </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' => smn_draw_form('orders', FILENAME_ORDERS, smn_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>' . smn_draw_checkbox_field('restock') . ' ' . TEXT_INFO_RESTOCK_PRODUCT_QUANTITY);
            $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_ORDERS, smn_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if (isset($oInfo) && is_object($oInfo)) {
                $heading[] = array('text' => '<b>[' . $oInfo->orders_id . ']&nbsp;&nbsp;' . smn_datetime_short($oInfo->date_purchased) . '</b>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_ORDERS, smn_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_ORDERS, smn_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_ORDERS_INVOICE, 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . smn_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> <a href="' . smn_href_link(FILENAME_ORDERS_PACKINGSLIP, 'oID=' . $oInfo->orders_id) . '" TARGET="_blank">' . smn_image_button('button_packingslip.gif', IMAGE_ORDERS_PACKINGSLIP) . '</a>');
                $contents[] = array('text' => '<br>' . TEXT_DATE_ORDER_CREATED . ' ' . smn_date_short($oInfo->date_purchased));
                if (smn_not_null($oInfo->last_modified)) {
                    $contents[] = array('text' => TEXT_DATE_ORDER_LAST_MODIFIED . ' ' . smn_date_short($oInfo->last_modified));
                }
                $contents[] = array('text' => '<br>' . TEXT_INFO_PAYMENT_METHOD . ' ' . $oInfo->payment_method);
            }
            break;
    }
    if (smn_not_null($heading) && smn_not_null($contents)) {
        echo '            <td width="25%" valign="top">' . "\n";
        $box = new box();
        echo $box->infoBox($heading, $contents);
        echo '            </td>' . "\n";
echo $gv_split->display_links($gv_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page']);
?>
</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
<?php 
$heading = array();
$contents = array();
switch ($_GET['action']) {
    case 'release':
        $heading[] = array('text' => '[' . $gInfo->unique_id . '] ' . smn_datetime_short($gInfo->date_created) . ' ' . $currencies->format($gInfo->amount));
        $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link('gv_queue.php', 'action=confirmrelease&gid=' . $gInfo->unique_id, 'NONSSL') . '">' . smn_image_button('button_confirm_red.gif', IMAGE_CONFIRM) . '</a> <a href="' . smn_href_link('gv_queue.php', 'action=cancel&gid=' . $gInfo->unique_id, 'NONSSL') . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    default:
        $heading[] = array('text' => '[' . $gInfo->unique_id . '] ' . smn_datetime_short($gInfo->date_created) . ' ' . $currencies->format($gInfo->amount));
        $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link('gv_queue.php', 'action=release&gid=' . $gInfo->unique_id, 'NONSSL') . '">' . smn_image_button('button_release.gif', IMAGE_RELEASE) . '</a>');
        break;
}
if (smn_not_null($heading) && smn_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>