Viewing file: default.php (9.42 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<? include('includes/application_top.php'); ?>
<html>
<head>
<title><? echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
<!-- header //-->
<? $include_file = DIR_WS_INCLUDES . 'header.php'; include(DIR_WS_INCLUDES . 'include_once.php'); ?>
<!-- header_eof //-->
<!-- body //-->
<table border="0" width="100%" cellspacing="5" cellpadding="5">
<tr>
<td width="<? echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<? echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<? $include_file = DIR_WS_INCLUDES . 'column_left.php'; include(DIR_WS_INCLUDES . 'include_once.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
</tr>
</table></td>
<!-- body_text //-->
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="boxborder">
<tr>
</tr>
</table></td>
</tr>
<tr>
<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
</table></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><? echo tep_black_line(); ?></td>
</tr>
<tr bgcolor="<? echo SUB_BAR_BACKGROUND_COLOR; ?>">
</tr>
</table></td>
</tr>
<tr>
<td><br><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="50%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><? echo tep_black_line(); ?></td>
</tr>
<tr bgcolor="<? echo SUB_BAR_BACKGROUND_COLOR; ?>">
<td colspan="2" nowrap><font face="<? echo SUB_BAR_FONT_FACE; ?>" size="<? echo SUB_BAR_FONT_SIZE; ?>" color="<? echo SUB_BAR_FONT_COLOR; ?>"> <? echo TABLE_HEADING_NEW_CUSTOMERS; ?> </font></td>
</tr>
<tr>
<td colspan="2"><? echo tep_black_line(); ?></td>
</tr>
<?
$customers_query = tep_db_query("select c.customers_id, c.customers_firstname, c.customers_lastname, i.customers_info_date_account_created from customers c, customers_info i where c.customers_id = i.customers_info_id order by c.customers_id DESC limit 5");
while ($customers = tep_db_fetch_array($customers_query)) {
echo ' <tr bgcolor="#d8e1eb" onmouseover="this.style.background=\'#cc9999\';this.style.cursor=\'hand\'" onmouseout="this.style.background=\'#d8e1eb\'" onclick="document.location.href=\'' . tep_href_link(FILENAME_CUSTOMERS, 'search=' . addslashes($customers['customers_lastname']) . '&origin=' . FILENAME_DEFAULT, 'NONSSL') . '\'">' . "\n";
echo ' <td nowrap><font face="' . SMALL_TEXT_FONT_FACE . '" size="' . SMALL_TEXT_FONT_SIZE . '" color="' . SMALL_TEXT_FONT_COLOR . '"> <a href="' . tep_href_link(FILENAME_CUSTOMERS, 'search=' . $customers['customers_lastname'] . '&origin=' . FILENAME_DEFAULT, 'NONSSL') . '" class="blacklink">'. $customers['customers_firstname'] . ' ' . $customers['customers_lastname'] . '</a> </font></td>' . "\n";
echo ' <td align="right" nowrap><font face="' . SMALL_TEXT_FONT_FACE . '" size="' . SMALL_TEXT_FONT_SIZE . '" color="' . SMALL_TEXT_FONT_COLOR . '"> ' . tep_date_short($customers['customers_info_date_account_created']) . ' </font></td>' . "\n";
echo ' </tr>' . "\n";
}
?>
<tr>
<td colspan="2"><? echo tep_black_line(); ?></td>
</tr>
</table></td>
<td width="50%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td colspan="3"><? echo tep_black_line(); ?></td>
</tr>
<tr bgcolor="<? echo SUB_BAR_BACKGROUND_COLOR; ?>">
<td colspan="3" nowrap><font face="<? echo SUB_BAR_FONT_FACE; ?>" size="<? echo SUB_BAR_FONT_SIZE; ?>" color="<? echo SUB_BAR_FONT_COLOR; ?>"> <? echo TABLE_HEADING_LAST_ORDERS; ?> </font></td>
</tr>
<tr>
<td colspan="3"><? echo tep_black_line(); ?></td>
</tr>
<?
$orders_query = tep_db_query("select orders_id, customers_name, date_purchased, orders_status, shipping_cost from orders order by orders_id DESC limit 5");
while ($orders = tep_db_fetch_array($orders_query)) {
$total_cost = 0;
$orders_products_query = tep_db_query("select final_price, products_quantity, products_tax from orders_products where orders_id = '" . $orders['orders_id'] . "'");
while ($orders_products = tep_db_fetch_array($orders_products_query)) {
$total_cost += ($orders_products['final_price'] + ($orders_products['final_price'] * ($orders_products['products_tax']/100))) * $orders_products['products_quantity'];
}
$total_cost += $orders['shipping_cost'];
echo ' <tr bgcolor="#d8e1eb" onmouseover="this.style.background=\'#cc9999\';this.style.cursor=\'hand\'" onmouseout="this.style.background=\'#d8e1eb\'" onclick="document.location.href=\'' . tep_href_link(FILENAME_ORDERS, 'orders_id=' . $orders['orders_id'], 'NONSSL') . '\'">' . "\n";
echo ' <td nowrap><font face="' . SMALL_TEXT_FONT_FACE . '" size="' . SMALL_TEXT_FONT_SIZE . '" color="' . SMALL_TEXT_FONT_COLOR . '"> <a href="' . tep_href_link(FILENAME_ORDERS, 'orders_id=' . $orders['orders_id'], 'NONSSL') . '" class="blacklink">' . $orders['customers_name'] . '</a> </font></td>' . "\n";
echo ' <td nowrap><font face="' . SMALL_TEXT_FONT_FACE . '" size="' . SMALL_TEXT_FONT_SIZE . '" color="' . SMALL_TEXT_FONT_COLOR . '"> ' . tep_currency_format($total_cost, false) . ' </font></td>' . "\n";
echo ' <td align="right" nowrap><font face="' . SMALL_TEXT_FONT_FACE . '" size="' . SMALL_TEXT_FONT_SIZE . '" color="' . SMALL_TEXT_FONT_COLOR . '"> ' . tep_date_short($orders['date_purchased']) . ' </font></td>' . "\n";
echo ' </tr>' . "\n";
}
?>
<tr>
</tr>
</table></td>
</tr>
<tr>
<td width="50%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td colspan="2"><? echo tep_black_line(); ?></td>
</tr>
<tr bgcolor="<? echo SUB_BAR_BACKGROUND_COLOR; ?>">
<td colspan="2" nowrap><font face="<? echo SUB_BAR_FONT_FACE; ?>" size="<? echo SUB_BAR_FONT_SIZE; ?>" color="<? echo SUB_BAR_FONT_COLOR; ?>"> <? echo TABLE_HEADING_NEW_PRODUCTS; ?> </font></td>
</tr>
<tr>
<td><? echo tep_black_line(); ?></td>
</tr>
<?
$products_query = tep_db_query("select products_id, products_name, products_date_added from products order by products_id DESC limit 5");
while ($products = tep_db_fetch_array($products_query)) {
echo ' <tr bgcolor="#d8e1eb" onmouseover="this.style.background=\'#cc9999\';this.style.cursor=\'hand\'" onmouseout="this.style.background=\'#d8e1eb\'" onclick="document.location.href=\'' . tep_href_link(FILENAME_CATEGORIES, 'action=new_product_preview&read=only&pID=' . $products['products_id'] . '&origin=' . FILENAME_DEFAULT, 'NONSSL') . '\'">' . "\n";
echo ' <td nowrap><font face="' . SMALL_TEXT_FONT_FACE . '" size="' . SMALL_TEXT_FONT_SIZE . '" color="' . SMALL_TEXT_FONT_COLOR . '"> <a href="' . tep_href_link(FILENAME_CATEGORIES, 'action=new_product_preview&read=only&pID=' . $products['products_id'] . '&origin=' . FILENAME_DEFAULT, 'NONSSL') . '" class="blacklink">' . $products['products_name'] . '</a> </font></td>' . "\n";
echo ' <td align="right" nowrap><font face="' . SMALL_TEXT_FONT_FACE . '" size="' . SMALL_TEXT_FONT_SIZE . '" color="' . SMALL_TEXT_FONT_COLOR . '"> ' . tep_date_short($products['products_date_added']) . ' </font></td>' . "\n";
echo ' </tr>' . "\n";
}
?>
<tr>
<td colspan="2"><? echo tep_black_line(); ?></td>
</tr>
</table></td>
<td width="50%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr> <td><? echo tep_black_line(); ?></td>
</tr>
<tr bgcolor="<? echo SUB_BAR_BACKGROUND_COLOR; ?>">
</tr>
<tr>
</tr>
<tr>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
<!-- body_text_eof //-->
</tr>
</table>
<!-- body_eof //-->
<!-- footer //-->
<? $include_file = DIR_WS_INCLUDES . 'footer.php'; include(DIR_WS_INCLUDES . 'include_once.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<? $include_file = DIR_WS_INCLUDES . 'application_bottom.php'; include(DIR_WS_INCLUDES . 'include_once.php'); ?>
|