[ Index ] |
PHP Cross Reference of osCMax 2.0.4 |
[Summary view] [Print] [Text view]
1 <table border="0" width="100%" cellspacing="0" cellpadding="0"> 2 <tr> 3 <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> 4 <tr> 5 <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> 6 <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_account.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> 7 </tr> 8 </table></td> 9 </tr> 10 <tr> 11 <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> 12 </tr> 13 <?php 14 if ($messageStack->size('account') > 0) { 15 ?> 16 <tr> 17 <td><?php echo $messageStack->output('account'); ?></td> 18 </tr> 19 <tr> 20 <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> 21 </tr> 22 <?php 23 } 24 25 if (tep_count_customer_orders() > 0) { 26 ?> 27 <tr> 28 <td><table border="0" cellspacing="0" cellpadding="2"> 29 <tr> 30 <td class="main"><b><?php echo OVERVIEW_TITLE; ?></b></td> 31 <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '"><u>' . OVERVIEW_SHOW_ALL_ORDERS . '</u></a>'; ?></td> 32 </tr> 33 </table></td> 34 </tr> 35 <tr> 36 <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> 37 <tr class="infoBoxContents"> 38 <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> 39 <tr> 40 <td class="main" align="center" valign="top" width="130"><?php echo '<b>' . OVERVIEW_PREVIOUS_ORDERS . '</b><br>' . tep_image(DIR_WS_IMAGES . 'arrow_south_east.gif'); ?></td> 41 <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> 42 <?php 43 $orders_query = tep_db_query("select o.orders_id, o.date_purchased, o.delivery_name, o.delivery_country, o.billing_name, o.billing_country, ot.text as order_total, s.orders_status_name from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot, " . TABLE_ORDERS_STATUS . " s where o.customers_id = '" . (int)$customer_id . "' and o.orders_id = ot.orders_id and ot.class = 'ot_total' and o.orders_status = s.orders_status_id and s.language_id = '" . (int)$languages_id . "' and s.public_flag = '1' order by orders_id desc limit 3"); 44 while ($orders = tep_db_fetch_array($orders_query)) { 45 if (tep_not_null($orders['delivery_name'])) { 46 $order_name = $orders['delivery_name']; 47 $order_country = $orders['delivery_country']; 48 } else { 49 $order_name = $orders['billing_name']; 50 $order_country = $orders['billing_country']; 51 } 52 ?> 53 <tr class="moduleRow" onMouseOver="rowOverEffect(this)" onMouseOut="rowOutEffect(this)" onClick="document.location.href='<?php echo tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders['orders_id'], 'SSL'); ?>'"> 54 <td class="main" width="80"><?php echo tep_date_short($orders['date_purchased']); ?></td> 55 <td class="main"><?php echo '#' . $orders['orders_id']; ?></td> 56 <td class="main"><?php echo tep_output_string_protected($order_name) . ', ' . $order_country; ?></td> 57 <td class="main"><?php echo $orders['orders_status_name']; ?></td> 58 <td class="main" align="right"><?php echo $orders['order_total']; ?></td> 59 <td class="main" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders['orders_id'], 'SSL') . '">' . tep_image_button('small_view.gif', SMALL_IMAGE_BUTTON_VIEW) . '</a>'; ?></td> 60 </tr> 61 <?php 62 } 63 ?> 64 </table></td> 65 <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 66 </tr> 67 </table></td> 68 </tr> 69 </table></td> 70 </tr> 71 <tr> 72 <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> 73 </tr> 74 <?php 75 } 76 ?> 77 <tr> 78 <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> 79 <tr> 80 <td class="main"><b><?php echo MY_ACCOUNT_TITLE; ?></b></td> 81 </tr> 82 </table></td> 83 </tr> 84 <tr> 85 <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> 86 <tr class="infoBoxContents"> 87 <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> 88 <tr> 89 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 90 <td width="60"><?php echo tep_image(DIR_WS_IMAGES . 'account_personal.gif'); ?></td> 91 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 92 <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> 93 <tr> 94 <td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . MY_ACCOUNT_INFORMATION . '</a>'; ?></td> 95 </tr> 96 <tr> 97 <td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . MY_ACCOUNT_ADDRESS_BOOK . '</a>'; ?></td> 98 </tr> 99 <tr> 100 <td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_PASSWORD, '', 'SSL') . '">' . MY_ACCOUNT_PASSWORD . '</a>'; ?></td> 101 </tr> 102 </table></td> 103 <td width="10" align="right"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 104 </tr> 105 </table></td> 106 </tr> 107 </table></td> 108 </tr> 109 <tr> 110 <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> 111 </tr> 112 <tr> 113 <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> 114 <tr> 115 <td class="main"><b><?php echo MY_ORDERS_TITLE; ?></b></td> 116 </tr> 117 </table></td> 118 </tr> 119 <tr> 120 <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> 121 <tr class="infoBoxContents"> 122 <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> 123 <tr> 124 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 125 <td width="60"><?php echo tep_image(DIR_WS_IMAGES . 'account_orders.gif'); ?></td> 126 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 127 <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> 128 <tr> 129 <td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . MY_ORDERS_VIEW . '</a>'; ?></td> 130 </tr> 131 </table></td> 132 <td width="10" align="right"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 133 </tr> 134 </table></td> 135 </tr> 136 </table></td> 137 </tr> 138 <tr> 139 <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> 140 </tr> 141 <tr> 142 <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> 143 <tr> 144 <td class="main"><b><?php echo EMAIL_NOTIFICATIONS_TITLE; ?></b></td> 145 </tr> 146 </table></td> 147 </tr> 148 <tr> 149 <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> 150 <tr class="infoBoxContents"> 151 <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> 152 <tr> 153 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 154 <td width="60"><?php echo tep_image(DIR_WS_IMAGES . 'account_notifications.gif'); ?></td> 155 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 156 <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> 157 <tr> 158 <td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_NEWSLETTERS . '</a>'; ?></td> 159 </tr> 160 <tr> 161 <td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_PRODUCTS . '</a>'; ?></td> 162 </tr> 163 </table></td> 164 <td width="10" align="right"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 165 </tr> 166 </table></td> 167 </tr> 168 </table></td> 169 </tr> 170 </table>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Jan 1 13:43:16 2010 | Cross-referenced by PHPXref 0.7 |