[TEP-COMMIT] [CVS catalog] use the new database class
hpdl-OfajU3CKLf1/[email protected] 23 Feb 2005 15:25:46 -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</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt><a href="#file1">advanced_search.php</a></tt></td><td align="right" id="added">+6</td><td align="right" id="removed">-5</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/advanced_search.php?rev=1.53&content-type=text/vnd.viewcvs-markup">1.53</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/advanced_search.php.diff?r1=1.53&r2=1.54">-></a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/advanced_search.php?rev=1.54&content-type=text/vnd.viewcvs-markup">1.54</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><br /></span>
<div class="fileheader"><big><b>advanced_search.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/advanced_search.php?rev=1.53&content-type=text/vnd.viewcvs-markup">1.53</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/advanced_search.php.diff?r1=1.53&r2=1.54">-></a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/advanced_search.php?rev=1.54&content-type=text/vnd.viewcvs-markup">1.54</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.53 -r1.54
--- advanced_search.php 2004/07/22 17:23:52 1.53
+++ advanced_search.php 2005/02/23 15:25:46 1.54
@@ -5,15 +5,16 @@
</small></pre><pre class="diff" id="context"> osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
</pre><pre class="diff" id="removed">- Copyright (c) 200<span id="removedchars">4</span> osCommerce
</pre><pre class="diff" id="added">+ Copyright (c) 200<span id="addedchars">5</span> osCommerce
</pre><pre class="diff" id="context">
Released under the GNU General Public License
*/
require('includes/application_top.php');
</pre><pre class="diff" id="removed">- $products_date_query = tep_db_query("select min(year(products_date_added)) as min_year, max(year(products_date_added)) as max_year from " . TABLE_PRODUCTS . " limit 1");
- $products_date = tep_db_fetch_array($products_date_query);
</pre><pre class="diff" id="added">+ $Qproducts = $osC_Database->query('select min(year(products_date_added)) as min_year, max(year(products_date_added)) as max_year from :table_products limit 1');
+ $Qproducts->bindTable(':table_products', TABLE_PRODUCTS);
+ $Qproducts->execute();
</pre><pre class="diff" id="context">
require(DIR_WS_LANGUAGES . $osC_Session->value('language') . '/' . FILENAME_ADVANCED_SEARCH);
</pre><pre class="diff"><small id="info">@@ -209,11 +210,11 @@
</small></pre><pre class="diff" id="context"> </tr>
<tr>
<td class="fieldKey"><?php echo ENTRY_DATE_FROM; ?></td>
</pre><pre class="diff" id="removed">- <td class="fieldValue"><?php echo tep_draw_date_pull_down_menu('datefrom', '', false, true, true, date('Y') - $<span id="removedchars">products_date['min_year']</span>, 0); ?></td>
</pre><pre class="diff" id="added">+ <td class="fieldValue"><?php echo tep_draw_date_pull_down_menu('datefrom', '', false, true, true, date('Y') - $<span id="addedchars">Qproducts->valueInt('min_year')</span>, 0); ?></td>
</pre><pre class="diff" id="context"> </tr>
<tr>
<td class="fieldKey"><?php echo ENTRY_DATE_TO; ?></td>
</pre><pre class="diff" id="removed">- <td class="fieldValue"><?php echo tep_draw_date_pull_down_menu('dateto', '', true, true, true, date('Y') - $<span id="removedchars">products_date['max_year']</span>, 0); ?></td>
</pre><pre class="diff" id="added">+ <td class="fieldValue"><?php echo tep_draw_date_pull_down_menu('dateto', '', true, true, true, date('Y') - $<span id="addedchars">Qproducts->valueInt('max_year')</span>, 0); ?></td>
</pre><pre class="diff" id="context"> </tr>
</table></td>
</tr>
</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