[TEP-COMMIT] [CVS admin] show the configuraton parameters in the same order as the keys() class

hpdl-OfajU3CKLf1/[email protected] 28 Nov 2004 19:40:44 -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>admin/admin/templates/pages</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt><a href="#file1">services.php</a></tt></td><td align="right" id="added">+5</td><td align="right" id="removed">-5</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/services.php?rev=1.2&amp;content-type=text/vnd.viewcvs-markup">1.2</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/services.php.diff?r1=1.2&amp;r2=1.3">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/services.php?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a></td></tr>
</table>
<pre class="comment">
show the configuraton parameters in the same order as the keys() class
method returns them
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates">templates</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages">pages</a><br /></span>
<div class="fileheader"><big><b>services.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/services.php?rev=1.2&amp;content-type=text/vnd.viewcvs-markup">1.2</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/services.php.diff?r1=1.2&amp;r2=1.3">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/services.php?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.2 -r1.3
--- services.php	2004/11/07 21:00:48	1.2
+++ services.php	2004/11/28 19:40:43	1.3
@@ -54,12 +54,12 @@
</small></pre><pre class="diff" id="context">                            'keys' =&gt; array());
 
       if (is_array($module_keys) &amp;&amp; (sizeof($module_keys) &gt; 0)) {
</pre><pre class="diff" id="removed">-        $Qsm = $osC_Database-&gt;query('select configuration_title, configuration_key, configuration_value, configuration_description, use_function, set_function from :table_configuration where configuration_key in (:configuration_key)');
-        $Qsm-&gt;bindTable(':table_configuration', TABLE_CONFIGURATION);
-        $Qsm-&gt;bindRaw(':configuration_key', "'" . implode("', '", $module_keys) . "'");
-        $Qsm-&gt;execute();
</pre><pre class="diff" id="added">+        foreach ($module_keys as $key) {
+          $Qsm = $osC_Database-&gt;query('select configuration_title, configuration_key, configuration_value, configuration_description, use_function, set_function from :table_configuration where configuration_key = :configuration_key');
+          $Qsm-&gt;bindTable(':table_configuration', TABLE_CONFIGURATION);
+          $Qsm-&gt;bindValue(':configuration_key', $key);
+          $Qsm-&gt;execute();
</pre><pre class="diff" id="context"> 
</pre><pre class="diff" id="removed">-        while ($Qsm-&gt;next()) {
</pre><pre class="diff" id="context">           $module_info['keys'][$Qsm-&gt;value('configuration_key')] = array('title' =&gt; $Qsm-&gt;value('configuration_title'),
                                                                          'value' =&gt; $Qsm-&gt;value('configuration_value'),
                                                                          'description' =&gt; $Qsm-&gt;value('configuration_description'),
</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://productguide.itmanagersjournal.com/