[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&amp;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&amp;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">+&lt;?php
+/*
+  $Id$
+
+  osCommerce, Open Source E-Commerce Solutions
+  http://www.oscommerce.com
+
+  Copyright (c) 2005 osCommerce
+
+  Released under the GNU General Public License
+*/
+?&gt;
+
+&lt;div class="pageHeading"&gt;
+  &lt;span class="pageHeadingImage"&gt;&lt;?php echo tep_image(DIR_WS_IMAGES . 'table_background_account.gif', HEADING_TITLE_ACCOUNT, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?&gt;&lt;/span&gt;
+
+  &lt;h1&gt;&lt;?php echo HEADING_TITLE_ACCOUNT; ?&gt;&lt;/h1&gt;
+&lt;/div&gt;
+
+&lt;?php
+  if ($messageStack-&gt;size('account') &gt; 0) {
+    echo $messageStack-&gt;output('account');
+  }
+?&gt;
+
+&lt;div class="moduleBox"&gt;
+  &lt;div class="outsideHeading"&gt;&lt;?php echo MY_ACCOUNT_TITLE; ?&gt;&lt;/div&gt;
+
+  &lt;div class="content"&gt;
+    &lt;div style="float: left; width: 130px;"&gt;&lt;?php echo tep_image(DIR_WS_IMAGES . 'account_personal.gif'); ?&gt;&lt;/div&gt;
+
+    &lt;ul style="list-style-image: url(&lt;?php echo tep_href_link(DIR_WS_IMAGES . 'arrow_green.gif'); ?&gt;);"&gt;
+      &lt;li&gt;&lt;?php echo '&lt;a href="' . tep_href_link(FILENAME_ACCOUNT, 'edit', 'SSL') . '"&gt;' . MY_ACCOUNT_INFORMATION . '&lt;/a&gt;'; ?&gt;&lt;/li&gt;
+      &lt;li&gt;&lt;?php echo '&lt;a href="' . tep_href_link(FILENAME_ACCOUNT, 'address_book', 'SSL') . '"&gt;' . MY_ACCOUNT_ADDRESS_BOOK . '&lt;/a&gt;'; ?&gt;&lt;/li&gt;
+      &lt;li&gt;&lt;?php echo '&lt;a href="' . tep_href_link(FILENAME_ACCOUNT, 'password', 'SSL') . '"&gt;' . MY_ACCOUNT_PASSWORD . '&lt;/a&gt;'; ?&gt;&lt;/li&gt;
+    &lt;/ul&gt;
+  &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div class="moduleBox"&gt;
+  &lt;div class="outsideHeading"&gt;&lt;?php echo MY_ORDERS_TITLE; ?&gt;&lt;/div&gt;
+
+  &lt;div class="content"&gt;
+    &lt;div style="float: left; width: 130px;"&gt;&lt;?php echo tep_image(DIR_WS_IMAGES . 'account_orders.gif'); ?&gt;&lt;/div&gt;
+
+    &lt;ul style="list-style-image: url(&lt;?php echo tep_href_link(DIR_WS_IMAGES . 'arrow_green.gif'); ?&gt;);"&gt;
+      &lt;li&gt;&lt;?php echo '&lt;a href="' . tep_href_link(FILENAME_ACCOUNT, 'orders', 'SSL') . '"&gt;' . MY_ORDERS_VIEW . '&lt;/a&gt;'; ?&gt;&lt;/li&gt;
+    &lt;/ul&gt;
+
+&lt;?php
+  if (tep_count_customer_orders() &gt; 0) {
+    $Qorders = $osC_Database-&gt;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-&gt;bindTable(':table_orders', TABLE_ORDERS);
+    $Qorders-&gt;bindTable(':table_orders_total', TABLE_ORDERS_TOTAL);
+    $Qorders-&gt;bindTable(':table_orders_status', TABLE_ORDERS_STATUS);
+    $Qorders-&gt;bindInt(':customers_id', $osC_Customer-&gt;id);
+    $Qorders-&gt;bindInt(':language_id', $osC_Session-&gt;value('languages_id'));
+    $Qorders-&gt;execute();
+?&gt;
+
+    &lt;table border="0" cellspacing="0" cellpadding="5"&gt;
+
+&lt;?php
+    while ($Qorders-&gt;next()) {
+      if (tep_not_null($Qorders-&gt;value('delivery_name'))) {
+        $order_name = $Qorders-&gt;valueProtected('delivery_name');
+        $order_country = $Qorders-&gt;value('delivery_country');
+      } else {
+        $order_name = $Qorders-&gt;valueProtected('billing_name');
+        $order_country = $Qorders-&gt;value('billing_country');
+      }
+?&gt;
+
+      &lt;tr class="moduleRow" onMouseOver="rowOverEffect(this);" onMouseOut="rowOutEffect(this);"&gt;
+        &lt;td width="16"&gt;&lt;?php echo '&lt;a href="' . tep_href_link(FILENAME_ACCOUNT, 'orders=' . $Qorders-&gt;valueInt('orders_id'), 'SSL') . '"&gt;' . tep_image('templates/' . $template . '/images/icons/16x16/package.png') . '&lt;/a&gt;'; ?&gt;&lt;/td&gt;
+        &lt;td&gt;&lt;?php echo '#' . $Qorders-&gt;valueInt('orders_id'); ?&gt;&lt;/td&gt;
+        &lt;td&gt;&lt;?php echo tep_date_short($Qorders-&gt;value('date_purchased')); ?&gt;&lt;/td&gt;
+        &lt;td&gt;&lt;?php echo $order_name . ', ' . $order_country; ?&gt;&lt;/td&gt;
+        &lt;td&gt;&lt;?php echo $Qorders-&gt;value('orders_status_name'); ?&gt;&lt;/td&gt;
+        &lt;td align="right"&gt;&lt;?php echo $Qorders-&gt;value('order_total'); ?&gt;&lt;/td&gt;
+        &lt;td align="right"&gt;&lt;?php echo '&lt;a href="' . tep_href_link(FILENAME_ACCOUNT, 'orders=' . $Qorders-&gt;valueInt('orders_id'), 'SSL') . '"&gt;' . tep_image_button('small_view.gif', SMALL_IMAGE_BUTTON_VIEW) . '&lt;/a&gt;'; ?&gt;&lt;/td&gt;
+      &lt;/tr&gt;
+
+&lt;?php
+    }
+?&gt;
+
+    &lt;/table&gt;
+
+&lt;?php
+  }
+?&gt;
+
+  &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div class="moduleBox"&gt;
+  &lt;div class="outsideHeading"&gt;&lt;?php echo MY_EMAIL_NOTIFICATIONS_TITLE; ?&gt;&lt;/div&gt;
+
+  &lt;div class="content"&gt;
+    &lt;div style="float: left; width: 130px;"&gt;&lt;?php echo tep_image(DIR_WS_IMAGES . 'account_notifications.gif'); ?&gt;&lt;/div&gt;
+
+    &lt;ul style="list-style-image: url(&lt;?php echo tep_href_link(DIR_WS_IMAGES . 'arrow_green.gif'); ?&gt;);"&gt;
+      &lt;li&gt;&lt;?php echo '&lt;a href="' . tep_href_link(FILENAME_ACCOUNT, 'newsletters', 'SSL') . '"&gt;' . MY_EMAIL_NOTIFICATIONS_NEWSLETTERS . '&lt;/a&gt;'; ?&gt;&lt;/li&gt;
+      &lt;li&gt;&lt;?php echo '&lt;a href="' . tep_href_link(FILENAME_ACCOUNT, 'notifications', 'SSL') . '"&gt;' . MY_EMAIL_NOTIFICATIONS_PRODUCTS . '&lt;/a&gt;'; ?&gt;&lt;/li&gt;
+    &lt;/ul&gt;
+  &lt;/div&gt;
+&lt;/div&gt;
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -&gt; 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