[TEP-COMMIT] [CVS catalog] the new default account page using a CSS based layout
hpdl-OfajU3CKLf1/[email protected] 29 Mar 2005 23:26:37 -0000
| Newsgroups | gmane.comp.web.oscommerce.cvs |
|---|---|
| Message-ID | <[email protected]> |
<html>
<head>
<style><!--
body {background-color:#ffffff;}
.file {border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;}
.pathname {font-family:monospace; float:right;}
.fileheader {margin-bottom:.5em;}
.diff {margin:0;}
.tasklist {padding:4px;border:1px dashed #000000;margin-top:1em;}
.tasklist ul {margin-top:0;margin-bottom:0;}
tr.alt {background-color:#eeeeee}
#added {background-color:#ddffdd;}
#addedchars {background-color:#99ff99;font-weight:bolder;}
tr.alt #added {background-color:#ccf7cc;}
#removed {background-color:#ffdddd;}
#removedchars {background-color:#ff9999;font-weight:bolder;}
tr.alt #removed {background-color:#f7cccc;}
#info {color:#888888;}
#context {background-color:#eeeeee;}
td {padding-left:.3em;padding-right:.3em;}
tr.head {border-bottom-width:1px;border-bottom-style:solid;}
tr.head td {padding:0;padding-top:.2em;}
.task {background-color:#ffff00;}
.comment {padding:4px;border:1px dashed #000000;background-color:#ffffdd}
.error {color:red;}
hr {border-width:0px;height:2px;background:black;}
--></style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="4">Commit in <b><tt>catalog/catalog/includes/content/pages</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt><a href="#file1"><span id="added">account.php</span></a></tt></td><td align="right" id="added">+108</td><td></td><td nowrap="nowrap" align="right">added <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/content/pages/account.php?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
</table>
<pre class="comment">
the new default account page using a CSS based layout
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname" id="added"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog">catalog</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog">catalog</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes">includes</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/content">content</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/content/pages">pages</a><br /></span>
<div class="fileheader" id="added"><big><b>account.php</b></big> <small id="info">added at <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/content/pages/account.php?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N account.php
--- /dev/null Wed Mar 30 01:26:35 2005
+++ /tmp/cvsAAAi5aOdq Wed Mar 30 01:26:36 2005
@@ -0,0 +1,108 @@
</small></pre><pre class="diff" id="added">+<?php
+/*
+ $Id$
+
+ osCommerce, Open Source E-Commerce Solutions
+ http://www.oscommerce.com
+
+ Copyright (c) 2005 osCommerce
+
+ Released under the GNU General Public License
+*/
+?>
+
+<div class="pageHeading">
+ <span class="pageHeadingImage"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_account.gif', HEADING_TITLE_ACCOUNT, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></span>
+
+ <h1><?php echo HEADING_TITLE_ACCOUNT; ?></h1>
+</div>
+
+<?php
+ if ($messageStack->size('account') > 0) {
+ echo $messageStack->output('account');
+ }
+?>
+
+<div class="moduleBox">
+ <div class="outsideHeading"><?php echo MY_ACCOUNT_TITLE; ?></div>
+
+ <div class="content">
+ <div style="float: left; width: 130px;"><?php echo tep_image(DIR_WS_IMAGES . 'account_personal.gif'); ?></div>
+
+ <ul style="list-style-image: url(<?php echo tep_href_link(DIR_WS_IMAGES . 'arrow_green.gif'); ?>);">
+ <li><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, 'edit', 'SSL') . '">' . MY_ACCOUNT_INFORMATION . '</a>'; ?></li>
+ <li><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, 'address_book', 'SSL') . '">' . MY_ACCOUNT_ADDRESS_BOOK . '</a>'; ?></li>
+ <li><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, 'password', 'SSL') . '">' . MY_ACCOUNT_PASSWORD . '</a>'; ?></li>
+ </ul>
+ </div>
+</div>
+
+<div class="moduleBox">
+ <div class="outsideHeading"><?php echo MY_ORDERS_TITLE; ?></div>
+
+ <div class="content">
+ <div style="float: left; width: 130px;"><?php echo tep_image(DIR_WS_IMAGES . 'account_orders.gif'); ?></div>
+
+ <ul style="list-style-image: url(<?php echo tep_href_link(DIR_WS_IMAGES . 'arrow_green.gif'); ?>);">
+ <li><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, 'orders', 'SSL') . '">' . MY_ORDERS_VIEW . '</a>'; ?></li>
+ </ul>
+
+<?php
+ if (tep_count_customer_orders() > 0) {
+ $Qorders = $osC_Database->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 = :customers_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 = :language_id order by orders_id desc limit 3');
+ $Qorders->bindTable(':table_orders', TABLE_ORDERS);
+ $Qorders->bindTable(':table_orders_total', TABLE_ORDERS_TOTAL);
+ $Qorders->bindTable(':table_orders_status', TABLE_ORDERS_STATUS);
+ $Qorders->bindInt(':customers_id', $osC_Customer->id);
+ $Qorders->bindInt(':language_id', $osC_Session->value('languages_id'));
+ $Qorders->execute();
+?>
+
+ <table border="0" cellspacing="0" cellpadding="5">
+
+<?php
+ while ($Qorders->next()) {
+ if (tep_not_null($Qorders->value('delivery_name'))) {
+ $order_name = $Qorders->valueProtected('delivery_name');
+ $order_country = $Qorders->value('delivery_country');
+ } else {
+ $order_name = $Qorders->valueProtected('billing_name');
+ $order_country = $Qorders->value('billing_country');
+ }
+?>
+
+ <tr class="moduleRow" onMouseOver="rowOverEffect(this);" onMouseOut="rowOutEffect(this);">
+ <td width="16"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, 'orders=' . $Qorders->valueInt('orders_id'), 'SSL') . '">' . tep_image('templates/' . $template . '/images/icons/16x16/package.png') . '</a>'; ?></td>
+ <td><?php echo '#' . $Qorders->valueInt('orders_id'); ?></td>
+ <td><?php echo tep_date_short($Qorders->value('date_purchased')); ?></td>
+ <td><?php echo $order_name . ', ' . $order_country; ?></td>
+ <td><?php echo $Qorders->value('orders_status_name'); ?></td>
+ <td align="right"><?php echo $Qorders->value('order_total'); ?></td>
+ <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, 'orders=' . $Qorders->valueInt('orders_id'), 'SSL') . '">' . tep_image_button('small_view.gif', SMALL_IMAGE_BUTTON_VIEW) . '</a>'; ?></td>
+ </tr>
+
+<?php
+ }
+?>
+
+ </table>
+
+<?php
+ }
+?>
+
+ </div>
+</div>
+
+<div class="moduleBox">
+ <div class="outsideHeading"><?php echo MY_EMAIL_NOTIFICATIONS_TITLE; ?></div>
+
+ <div class="content">
+ <div style="float: left; width: 130px;"><?php echo tep_image(DIR_WS_IMAGES . 'account_notifications.gif'); ?></div>
+
+ <ul style="list-style-image: url(<?php echo tep_href_link(DIR_WS_IMAGES . 'arrow_green.gif'); ?>);">
+ <li><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, 'newsletters', 'SSL') . '">' . MY_EMAIL_NOTIFICATIONS_NEWSLETTERS . '</a>'; ?></li>
+ <li><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, 'notifications', 'SSL') . '">' . MY_EMAIL_NOTIFICATIONS_PRODUCTS . '</a>'; ?></li>
+ </ul>
+ </div>
+</div>
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -> email">CVSspam</a> 0.2.9</small></center>
</body></html>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click