[TEP-COMMIT] [CVS catalog] use the new database class

hpdl-OfajU3CKLf1/[email protected] 30 Mar 2005 00:26:39 -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/modules</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt><a href="#file1">address_book_details.php</a></tt></td><td align="right" id="added">+14</td><td align="right" id="removed">-14</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/modules/address_book_details.php?rev=1.13&amp;content-type=text/vnd.viewcvs-markup">1.13</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/modules/address_book_details.php.diff?r1=1.13&amp;r2=1.14">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/modules/address_book_details.php?rev=1.14&amp;content-type=text/vnd.viewcvs-markup">1.14</a></td></tr>
</table>
<pre class="comment">
use the new database class
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname"><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/modules">modules</a><br /></span>
<div class="fileheader"><big><b>address_book_details.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/modules/address_book_details.php?rev=1.13&amp;content-type=text/vnd.viewcvs-markup">1.13</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/modules/address_book_details.php.diff?r1=1.13&amp;r2=1.14">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/includes/modules/address_book_details.php?rev=1.14&amp;content-type=text/vnd.viewcvs-markup">1.14</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.13 -r1.14
--- address_book_details.php	2004/07/22 21:50:40	1.13
+++ address_book_details.php	2005/03/30 00:26:37	1.14
@@ -18,50 +18,50 @@
</small></pre><pre class="diff" id="context"> ?&gt;
   &lt;tr&gt;
     &lt;td class="main"&gt;&lt;?php echo ENTRY_GENDER; ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="removed">-    &lt;td class="main"&gt;&lt;?php echo osc_draw_radio_field('gender', $gender_array, (isset($<span id="removedchars">entry['entry_gender'])&nbsp;?&nbsp;$entry['entry_gender']</span> : (($osC_Customer-&gt;hasDefaultAddress() === false) ? $osC_Customer-&gt;gender : '')), '', (ACCOUNT_GENDER &gt; 0)); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="added">+    &lt;td class="main"&gt;&lt;?php echo osc_draw_radio_field('gender', $gender_array, (isset($<span id="addedchars">Qentry)&nbsp;?&nbsp;$Qentry-&gt;value('entry_gender')</span> : (($osC_Customer-&gt;hasDefaultAddress() === false) ? $osC_Customer-&gt;gender : '')), '', (ACCOUNT_GENDER &gt; 0)); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="context">   &lt;/tr&gt;
 &lt;?php
   }
 ?&gt;
   &lt;tr&gt;
     &lt;td class="main"&gt;&lt;?php echo ENTRY_FIRST_NAME; ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="removed">-    &lt;td class="main"&gt;&lt;?php echo osc_draw_input_field('firstname', (isset($<span id="removedchars">entry['entry_firstname'])&nbsp;?&nbsp;$entry['entry_firstname']</span> : (($osC_Customer-&gt;hasDefaultAddress() === false) ? $osC_Customer-&gt;first_name : '')), '', true); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="added">+    &lt;td class="main"&gt;&lt;?php echo osc_draw_input_field('firstname', (isset($<span id="addedchars">Qentry)&nbsp;?&nbsp;$Qentry-&gt;value('entry_firstname')</span> : (($osC_Customer-&gt;hasDefaultAddress() === false) ? $osC_Customer-&gt;first_name : '')), '', true); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="context">   &lt;/tr&gt;
   &lt;tr&gt;
     &lt;td class="main"&gt;&lt;?php echo ENTRY_LAST_NAME; ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="removed">-    &lt;td class="main"&gt;&lt;?php echo osc_draw_input_field('lastname', (isset($<span id="removedchars">entry['entry_lastname'])&nbsp;?&nbsp;$entry['entry_lastname']</span> : (($osC_Customer-&gt;hasDefaultAddress() === false) ? $osC_Customer-&gt;last_name : '')), '', true); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="added">+    &lt;td class="main"&gt;&lt;?php echo osc_draw_input_field('lastname', (isset($<span id="addedchars">Qentry)&nbsp;?&nbsp;$Qentry-&gt;value('entry_lastname')</span> : (($osC_Customer-&gt;hasDefaultAddress() === false) ? $osC_Customer-&gt;last_name : '')), '', true); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="context">   &lt;/tr&gt;
 &lt;?php
   if (ACCOUNT_COMPANY &gt; -1) {
 ?&gt;
   &lt;tr&gt;
     &lt;td class="main"&gt;&lt;?php echo ENTRY_COMPANY; ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="removed">-    &lt;td class="main"&gt;&lt;?php echo osc_draw_input_field('company', (isset($<span id="removedchars">entry['entry_company'])&nbsp;?&nbsp;$entry['entry_company']</span> : ''), '', (ACCOUNT_COMPANY &gt; 0)); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="added">+    &lt;td class="main"&gt;&lt;?php echo osc_draw_input_field('company', (isset($<span id="addedchars">Qentry)&nbsp;?&nbsp;$Qentry-&gt;value('entry_company')</span> : ''), '', (ACCOUNT_COMPANY &gt; 0)); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="context">   &lt;/tr&gt;
 &lt;?php
   }
 ?&gt;
   &lt;tr&gt;
     &lt;td class="main"&gt;&lt;?php echo ENTRY_STREET_ADDRESS; ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="removed">-    &lt;td class="main"&gt;&lt;?php echo osc_draw_input_field('street_address', (isset($entry['entry_street_address']) ? $entry['entry_street_address'] : ''), '', true); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="added">+    &lt;td class="main"&gt;&lt;?php echo osc_draw_input_field('street_address', (isset($Qentry) ? $Qentry-&gt;value('entry_street_address') : ''), '', true); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="context">   &lt;/tr&gt;
 &lt;?php
   if (ACCOUNT_SUBURB &gt; -1) {
 ?&gt;
   &lt;tr&gt;
     &lt;td class="main"&gt;&lt;?php echo ENTRY_SUBURB; ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="removed">-    &lt;td class="main"&gt;&lt;?php echo osc_draw_input_field('suburb', (isset($<span id="removedchars">entry['entry_suburb'])&nbsp;?&nbsp;$entry['entry_suburb']</span> : ''), '', (ACCOUNT_SUBURB &gt; 0)); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="added">+    &lt;td class="main"&gt;&lt;?php echo osc_draw_input_field('suburb', (isset($<span id="addedchars">Qentry)&nbsp;?&nbsp;$Qentry-&gt;value('entry_suburb')</span> : ''), '', (ACCOUNT_SUBURB &gt; 0)); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="context">   &lt;/tr&gt;
 &lt;?php
   }
 ?&gt;
   &lt;tr&gt;
     &lt;td class="main"&gt;&lt;?php echo ENTRY_POST_CODE; ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="removed">-    &lt;td class="main"&gt;&lt;?php echo osc_draw_input_field('postcode', (isset($<span id="removedchars">entry['entry_postcode'])&nbsp;?&nbsp;$entry['entry_postcode']</span> : ''), '', true); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="added">+    &lt;td class="main"&gt;&lt;?php echo osc_draw_input_field('postcode', (isset($<span id="addedchars">Qentry)&nbsp;?&nbsp;$Qentry-&gt;value('entry_postcode')</span> : ''), '', true); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="context">   &lt;/tr&gt;
   &lt;tr&gt;
     &lt;td class="main"&gt;&lt;?php echo ENTRY_CITY; ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="removed">-    &lt;td class="main"&gt;&lt;?php echo osc_draw_input_field('city', (isset($<span id="removedchars">entry['entry_city'])&nbsp;?&nbsp;$entry['entry_city']</span> : ''), '', true); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="added">+    &lt;td class="main"&gt;&lt;?php echo osc_draw_input_field('city', (isset($<span id="addedchars">Qentry)&nbsp;?&nbsp;$Qentry-&gt;value('entry_city')</span> : ''), '', true); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="context">   &lt;/tr&gt;
 &lt;?php
   if (ACCOUNT_STATE &gt; -1) {
</pre><pre class="diff"><small id="info">@@ -70,7 +70,7 @@
</small></pre><pre class="diff" id="context">     &lt;td class="main"&gt;&lt;?php echo ENTRY_STATE; ?&gt;&lt;/td&gt;
     &lt;td class="main"&gt;
 &lt;?php
</pre><pre class="diff" id="removed">-    if (isset($_POST['action']) &amp;&amp; (($_POST['action'] == 'process') || ($_POST['action'] == 'update'))) {
</pre><pre class="diff" id="added">+    if ( (isset($_GET['new']) &amp;&amp; ($_GET['new'] == 'save')) || (isset($_GET['edit']) &amp;&amp; ($_GET['edit'] == 'save')) ) {
</pre><pre class="diff" id="context">       if ($entry_state_has_zones === true) {
         $Qzones = $osC_Database-&gt;query('select zone_name from :table_zones where zone_country_id = :zone_country_id order by zone_name');
         $Qzones-&gt;bindRaw(':table_zones', TABLE_ZONES);
</pre><pre class="diff"><small id="info">@@ -87,7 +87,7 @@
</small></pre><pre class="diff" id="context">         echo osc_draw_input_field('state', '', '', (ACCOUNT_STATE &gt; 0));
       }
     } else {
</pre><pre class="diff" id="removed">-      echo osc_draw_input_field('state', (isset($entry['entry_country_id']) ? tep_get_zone_name($entry['entry_country_id'], $entry['entry_zone_id'], $entry['entry_state']) : ''), '', (ACCOUNT_STATE &gt; 0));
</pre><pre class="diff" id="added">+      echo osc_draw_input_field('state', (isset($Qentry) ? tep_get_zone_name($Qentry-&gt;valueInt('entry_country_id'), $Qentry-&gt;valueInt('entry_zone_id'), $Qentry-&gt;value('entry_state')) : ''), '', (ACCOUNT_STATE &gt; 0));
</pre><pre class="diff" id="context">     }
 ?&gt;
     &lt;/td&gt;
</pre><pre class="diff"><small id="info">@@ -97,14 +97,14 @@
</small></pre><pre class="diff" id="context"> ?&gt;
   &lt;tr&gt;
     &lt;td class="main"&gt;&lt;?php echo ENTRY_COUNTRY; ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="removed">-    &lt;td class="main"&gt;&lt;?php echo tep_get_country_list('country', (isset($<span id="removedchars">entry['entry_country_id'])&nbsp;?&nbsp;$entry['entry_country_id']</span> : STORE_COUNTRY), '', true); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="added">+    &lt;td class="main"&gt;&lt;?php echo tep_get_country_list('country', (isset($<span id="addedchars">Qentry)&nbsp;?&nbsp;$Qentry-&gt;valueInt('entry_country_id')</span> : STORE_COUNTRY), '', true); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="context">   &lt;/tr&gt;
 &lt;?php
   if (ACCOUNT_TELEPHONE &gt; -1) {
 ?&gt;
   &lt;tr&gt;
     &lt;td class="main"&gt;&lt;?php echo ENTRY_TELEPHONE_NUMBER; ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="removed">-    &lt;td class="main"&gt;&lt;?php echo osc_draw_input_field('telephone', (isset($<span id="removedchars">entry['entry_telephone'])&nbsp;?&nbsp;$entry['entry_telephone']</span> : ''), '', (ACCOUNT_TELEPHONE &gt; 0)); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="added">+    &lt;td class="main"&gt;&lt;?php echo osc_draw_input_field('telephone', (isset($<span id="addedchars">Qentry)&nbsp;?&nbsp;$Qentry-&gt;value('entry_telephone')</span> : ''), '', (ACCOUNT_TELEPHONE &gt; 0)); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="context">   &lt;/tr&gt;
 &lt;?php
   }
</pre><pre class="diff"><small id="info">@@ -114,13 +114,13 @@
</small></pre><pre class="diff" id="context"> ?&gt;
   &lt;tr&gt;
     &lt;td class="main"&gt;&lt;?php echo ENTRY_FAX_NUMBER; ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="removed">-    &lt;td class="main"&gt;&lt;?php echo osc_draw_input_field('fax', (isset($<span id="removedchars">entry['entry_fax'])&nbsp;?&nbsp;$entry['entry_fax']</span> : ''), '', (ACCOUNT_FAX &gt; 0)); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="added">+    &lt;td class="main"&gt;&lt;?php echo osc_draw_input_field('fax', (isset($<span id="addedchars">Qentry)&nbsp;?&nbsp;$Qentry-&gt;value('entry_fax')</span> : ''), '', (ACCOUNT_FAX &gt; 0)); ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="context">   &lt;/tr&gt;
 &lt;?php
   }
 ?&gt;
 &lt;?php
</pre><pre class="diff" id="removed">-  if ($osC_Customer-&gt;hasDefaultAddress() &amp;&amp; ((isset($_GET['edit']) &amp;&amp; ($osC_Customer-&gt;default_address_id != $_GET['<span id="removedchars">edit']))&nbsp;||&nbsp;(isset($_GET['edit'])&nbsp;==&nbsp;false</span>)) ) {
</pre><pre class="diff" id="added">+  if ($osC_Customer-&gt;hasDefaultAddress() &amp;&amp; ((isset($_GET['edit']) &amp;&amp; ($osC_Customer-&gt;default_address_id != $_GET['<span id="addedchars">address_book']))&nbsp;||&nbsp;isset($_GET['new']</span>)) ) {
</pre><pre class="diff" id="context"> ?&gt;
   &lt;tr&gt;
     &lt;td colspan="2"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&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