[TEP-COMMIT] [CVS admin] code cleanup

hpdl-OfajU3CKLf1/[email protected] 26 Oct 2004 20:20:33 -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</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt><a href="#file1">categories.php</a></tt></td><td align="right" id="added">+32</td><td align="right" id="removed">-12</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/categories.php?rev=1.155&amp;content-type=text/vnd.viewcvs-markup">1.155</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/categories.php.diff?r1=1.155&amp;r2=1.156">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/categories.php?rev=1.156&amp;content-type=text/vnd.viewcvs-markup">1.156</a></td></tr>
<tr class="alt"><td><tt>includes/functions/<a href="#file2">general.php</a></tt></td><td align="right" id="added">+6</td><td align="right" id="removed">-62</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions/general.php?rev=1.168&amp;content-type=text/vnd.viewcvs-markup">1.168</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions/general.php.diff?r1=1.168&amp;r2=1.169">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions/general.php?rev=1.169&amp;content-type=text/vnd.viewcvs-markup">1.169</a></td></tr>
<tr><td><tt>includes/languages/<a href="#file3">english.php</a></tt></td><td align="right" id="added">+1</td><td></td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/languages/english.php?rev=1.121&amp;content-type=text/vnd.viewcvs-markup">1.121</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/languages/english.php.diff?r1=1.121&amp;r2=1.122">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/languages/english.php?rev=1.122&amp;content-type=text/vnd.viewcvs-markup">1.122</a></td></tr>
<tr class="alt"><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file4">espanol.php</a></tt></td><td align="right" id="added">+1</td><td></td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/languages/espanol.php?rev=1.116&amp;content-type=text/vnd.viewcvs-markup">1.116</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/languages/espanol.php.diff?r1=1.116&amp;r2=1.117">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/languages/espanol.php?rev=1.117&amp;content-type=text/vnd.viewcvs-markup">1.117</a></td></tr>
<tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file5">german.php</a></tt></td><td align="right" id="added">+2</td><td align="right" id="removed">-1</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/languages/german.php?rev=1.115&amp;content-type=text/vnd.viewcvs-markup">1.115</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/languages/german.php.diff?r1=1.115&amp;r2=1.116">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/languages/german.php?rev=1.116&amp;content-type=text/vnd.viewcvs-markup">1.116</a></td></tr>
<tr class="alt"><td><tt>templates/pages/<a href="#file6">categories.php</a></tt></td><td align="right" id="added">+35</td><td align="right" id="removed">-27</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/categories.php?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/categories.php.diff?r1=1.3&amp;r2=1.4">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/categories.php?rev=1.4&amp;content-type=text/vnd.viewcvs-markup">1.4</a></td></tr>
<tr><td></td><td align="right" id="added">+77</td><td align="right" id="removed">-102</td><td></td></tr>
</table>
<small id="info">6 modified files</small><br />
<pre class="comment">
code cleanup

replace calls to tep_get_category_tree() with the category tree class
</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><br /></span>
<div class="fileheader"><big><b>categories.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/categories.php?rev=1.155&amp;content-type=text/vnd.viewcvs-markup">1.155</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/categories.php.diff?r1=1.155&amp;r2=1.156">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/categories.php?rev=1.156&amp;content-type=text/vnd.viewcvs-markup">1.156</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.155 -r1.156
--- categories.php	2004/08/27 22:13:11	1.155
+++ categories.php	2004/10/26 20:19:54	1.156
@@ -12,21 +12,36 @@
</small></pre><pre class="diff" id="context"> 
   require('includes/application_top.php');
 
</pre><pre class="diff" id="removed">-  $selected_box = 'catalog';
-
</pre><pre class="diff" id="context"> // calculate category path
   $cPath = (isset($_GET['cPath']) ? $_GET['cPath'] : '');
 
</pre><pre class="diff" id="removed">-  if (tep_not_null($cPath)) {
</pre><pre class="diff" id="added">+  if (!empty($cPath)) {
</pre><pre class="diff" id="context">     $cPath_array = tep_parse_category_path($cPath);
     $cPath = implode('_', $cPath_array);
</pre><pre class="diff" id="removed">-    $current_category_id = $cPath_array[(sizeof($cPath_array)-1)];
</pre><pre class="diff" id="added">+    $current_category_id = end($cPath_array);
</pre><pre class="diff" id="context">   } else {
     $current_category_id = 0;
   }
 
</pre><pre class="diff" id="added">+  require('../includes/classes/category_tree.php');
+  $osC_CategoryTree = new osC_CategoryTree();
+  $osC_CategoryTree-&gt;setSpacerString('&amp;nbsp;', 2);
+
+  $categories_array = array();
+  foreach ($osC_CategoryTree-&gt;getTree() as $value) {
+    $categories_array[] = array('id' =&gt; $value['id'], 'text' =&gt; $value['title']);
+  }
+
</pre><pre class="diff" id="context">   $action = (isset($_GET['action']) ? $_GET['action'] : '');
 
</pre><pre class="diff" id="added">+  if (!isset($_GET['page']) || (isset($_GET['page']) &amp;&amp; !is_numeric($_GET['page']))) {
+    $_GET['page'] = 1;
+  }
+
+  if (!isset($_GET['search'])) {
+    $_GET['search'] = '';
+  }
+
</pre><pre class="diff" id="context">   if (!empty($action)) {
     switch ($action) {
       case 'save_category':
</pre><pre class="diff"><small id="info">@@ -88,6 +103,7 @@
</small></pre><pre class="diff" id="context">           $osC_Database-&gt;commitTransaction();
 
           osC_Cache::clear('categories');
</pre><pre class="diff" id="added">+          osC_Cache::clear('category_tree');
</pre><pre class="diff" id="context">           osC_Cache::clear('also_purchased');
 
           $messageStack-&gt;add_session(SUCCESS_DB_ROWS_UPDATED, 'success');
</pre><pre class="diff"><small id="info">@@ -97,11 +113,13 @@
</small></pre><pre class="diff" id="context">           $messageStack-&gt;add_session(ERROR_DB_ROWS_NOT_UPDATED, 'error');
         }
 
</pre><pre class="diff" id="removed">-        tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&amp;cID=' . $category_id));
</pre><pre class="diff" id="added">+        tep_redirect(tep_href_link(FILENAME_CATEGORIES, '<span id="addedchars">page='&nbsp;.&nbsp;$_GET['page']&nbsp;.&nbsp;'&amp;</span>cPath=' . $cPath . '&amp;cID=' . $category_id));
</pre><pre class="diff" id="context">         break;
       case 'delete_category_confirm':
         if (isset($_GET['cID']) &amp;&amp; is_numeric($_GET['cID'])) {
</pre><pre class="diff" id="removed">-          $categories = tep_get_category_tree($_GET['cID'], '', '0', '', true);
</pre><pre class="diff" id="added">+          $osC_CategoryTree-&gt;setBreadcrumbUsage(false);
+
+          $categories = array_merge(array(array('id' =&gt; $_GET['cID'], 'text' =&gt; '')), $osC_CategoryTree-&gt;getTree($_GET['cID']));
</pre><pre class="diff" id="context">           $products = array();
           $products_delete = array();
 
</pre><pre class="diff"><small id="info">@@ -139,38 +157,40 @@
</small></pre><pre class="diff" id="context">           }
 
           osC_Cache::clear('categories');
</pre><pre class="diff" id="added">+          osC_Cache::clear('category_tree');
</pre><pre class="diff" id="context">           osC_Cache::clear('also_purchased');
 
           $messageStack-&gt;add_session(SUCCESS_DB_ROWS_UPDATED, 'success');
         }
 
</pre><pre class="diff" id="removed">-        tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath));
</pre><pre class="diff" id="added">+        tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'page=' . $_GET['page'] . '&amp;cPath=' . $cPath . '&amp;search=' . $_GET['search']));
</pre><pre class="diff" id="context">         break;
       case 'move_category_confirm':
</pre><pre class="diff" id="removed">-        if (isset($_GET['cID']) &amp;&amp; ($_GET['cID'] != $_POST['move_to_category_id'])) {
-          $path = explode('_', tep_get_generated_category_path_ids($_POST['move_to_category_id']));
</pre><pre class="diff" id="added">+        if (isset($_GET['cID']) &amp;&amp; ($_GET['cID'] != end(explode('_', $_POST['move_to_category_id'])))) {
+          $path = explode('_', $_POST['move_to_category_id']);
</pre><pre class="diff" id="context"> 
           if (in_array($_GET['cID'], $path)) {
             $messageStack-&gt;add_session(ERROR_CANNOT_MOVE_CATEGORY_TO_PARENT, 'error');
           } else {
             $Qupdate = $osC_Database-&gt;query('update :table_categories set parent_id = :parent_id, last_modified = now() where categories_id = :categories_id');
             $Qupdate-&gt;bindTable(':table_categories', TABLE_CATEGORIES);
</pre><pre class="diff" id="removed">-            $Qupdate-&gt;bindInt(':parent_id', $_POST['move_to_category_id']);
</pre><pre class="diff" id="added">+            $Qupdate-&gt;bindInt(':parent_id', end(explode('_', $_POST['move_to_category_id'])));
</pre><pre class="diff" id="context">             $Qupdate-&gt;bindInt(':categories_id', $_GET['cID']);
             $Qupdate-&gt;execute();
 
             if ($Qupdate-&gt;affectedRows()) {
               osC_Cache::clear('categories');
</pre><pre class="diff" id="added">+              osC_Cache::clear('category_tree');
</pre><pre class="diff" id="context">               osC_Cache::clear('also_purchased');
 
               $messageStack-&gt;add_session(SUCCESS_DB_ROWS_UPDATED, 'success');
 
</pre><pre class="diff" id="removed">-              tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $_POST['move_to_category_id'] . '&amp;cID=' . $_GET['cID']));
</pre><pre class="diff" id="added">+              tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'page=' . $_GET['page'] . '&amp;cPath=' . $cPath . '&amp;search=' . $_GET['search']));
</pre><pre class="diff" id="context">             }
           }
         }
 
</pre><pre class="diff" id="removed">-        tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&amp;cID=' . $_GET['cID']));
</pre><pre class="diff" id="added">+        tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'page=' . $_GET['page'] . '&amp;cPath=' . $cPath . '&amp;search=' . $_GET['search'] . '&amp;cID=' . $_GET['cID']));
</pre><pre class="diff" id="context">         break;
     }
   }
</pre></div>
<hr /><a name="file2" /><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/includes">includes</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions">functions</a><br /></span>
<div class="fileheader"><big><b>general.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions/general.php?rev=1.168&amp;content-type=text/vnd.viewcvs-markup">1.168</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions/general.php.diff?r1=1.168&amp;r2=1.169">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions/general.php?rev=1.169&amp;content-type=text/vnd.viewcvs-markup">1.169</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.168 -r1.169
--- general.php	2004/08/27 22:06:06	1.168
+++ general.php	2004/10/26 20:19:58	1.169
@@ -60,43 +60,6 @@
</small></pre><pre class="diff" id="context">     return $customers_values['customers_firstname'] . ' ' . $customers_values['customers_lastname'];
   }
 
</pre><pre class="diff" id="removed">-  function tep_get_path($current_category_id = '') {
-    global $cPath_array;
-
-    if ($current_category_id == '') {
-      $cPath_new = implode('_', $cPath_array);
-    } else {
-      if (sizeof($cPath_array) == 0) {
-        $cPath_new = $current_category_id;
-      } else {
-        $cPath_new = '';
-        $last_category_query = tep_db_query("select parent_id from " . TABLE_CATEGORIES . " where categories_id = '" . (int)$cPath_array[(sizeof($cPath_array)-1)] . "'");
-        $last_category = tep_db_fetch_array($last_category_query);
-
-        $current_category_query = tep_db_query("select parent_id from " . TABLE_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");
-        $current_category = tep_db_fetch_array($current_category_query);
-
-        if ($last_category['parent_id'] == $current_category['parent_id']) {
-          for ($i = 0, $n = sizeof($cPath_array) - 1; $i &lt; $n; $i++) {
-            $cPath_new .= '_' . $cPath_array[$i];
-          }
-        } else {
-          for ($i = 0, $n = sizeof($cPath_array); $i &lt; $n; $i++) {
-            $cPath_new .= '_' . $cPath_array[$i];
-          }
-        }
-
-        $cPath_new .= '_' . $current_category_id;
-
-        if (substr($cPath_new, 0, 1) == '_') {
-          $cPath_new = substr($cPath_new, 1);
-        }
-      }
-    }
-
-    return 'cPath=' . $cPath_new;
-  }
-
</pre><pre class="diff" id="context">   function tep_get_all_get_params($exclude_array = '') {
     if (PHP_VERSION &lt; 4.1) {
       global $_GET;
</pre><pre class="diff"><small id="info">@@ -161,27 +124,6 @@
</small></pre><pre class="diff" id="context">     return strftime(DATE_TIME_FORMAT, mktime($hour, $minute, $second, $month, $day, $year));
   }
 
</pre><pre class="diff" id="removed">-  function tep_get_category_tree($parent_id = '0', $spacing = '', $exclude = '', $category_tree_array = '', $include_itself = false) {
-    global $osC_Session;
-
-    if (!is_array($category_tree_array)) $category_tree_array = array();
-    if ( (sizeof($category_tree_array) &lt; 1) &amp;&amp; ($exclude != '0') ) $category_tree_array[] = array('id' =&gt; '0', 'text' =&gt; TEXT_TOP);
-
-    if ($include_itself) {
-      $category_query = tep_db_query("select cd.categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " cd where cd.language_id = '" . (int)$osC_Session-&gt;value('languages_id') . "' and cd.categories_id = '" . (int)$parent_id . "'");
-      $category = tep_db_fetch_array($category_query);
-      $category_tree_array[] = array('id' =&gt; $parent_id, 'text' =&gt; $category['categories_name']);
-    }
-
-    $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = cd.categories_id and cd.language_id = '" . (int)$osC_Session-&gt;value('languages_id') . "' and c.parent_id = '" . (int)$parent_id . "' order by c.sort_order, cd.categories_name");
-    while ($categories = tep_db_fetch_array($categories_query)) {
-      if ($exclude != $categories['categories_id']) $category_tree_array[] = array('id' =&gt; $categories['categories_id'], 'text' =&gt; $spacing . $categories['categories_name']);
-      $category_tree_array = tep_get_category_tree($categories['categories_id'], $spacing . '&amp;nbsp;&amp;nbsp;&amp;nbsp;', $exclude, $category_tree_array);
-    }
-
-    return $category_tree_array;
-  }
-
</pre><pre class="diff" id="context">   function tep_draw_products_pull_down($name, $parameters = '', $exclude = '') {
     global $osC_Session, $osC_Currencies;
 
</pre><pre class="diff"><small id="info">@@ -924,8 +866,9 @@
</small></pre><pre class="diff" id="context">     tep_db_query("delete from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$category_id . "'");
     tep_db_query("delete from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$category_id . "'");
 
</pre><pre class="diff" id="removed">-    osC_Cache::reset('categories');
-    osC_Cache::reset('also_purchased');
</pre><pre class="diff" id="added">+    osC_Cache::clear('categories');
+    osC_Cache::clear('category_tree');
+    osC_Cache::clear('also_purchased');
</pre><pre class="diff" id="context">   }
 
   function tep_remove_product($product_id) {
</pre><pre class="diff"><small id="info">@@ -955,8 +898,9 @@
</small></pre><pre class="diff" id="context">     }
     tep_db_query("delete from " . TABLE_REVIEWS . " where products_id = '" . (int)$product_id . "'");
 
</pre><pre class="diff" id="removed">-    osC_Cache::reset('categories');
-    osC_Cache::reset('also_purchased');
</pre><pre class="diff" id="added">+    osC_Cache::clear('categories');
+    osC_Cache::clear('category_tree');
+    osC_Cache::clear('also_purchased');
</pre><pre class="diff" id="context">   }
 
   function tep_remove_order($order_id, $restock = false) {
</pre></div>
<hr /><a name="file3" /><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/includes">includes</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/languages">languages</a><br /></span>
<div class="fileheader"><big><b>english.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/languages/english.php?rev=1.121&amp;content-type=text/vnd.viewcvs-markup">1.121</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/languages/english.php.diff?r1=1.121&amp;r2=1.122">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/languages/english.php?rev=1.122&amp;content-type=text/vnd.viewcvs-markup">1.122</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.121 -r1.122
--- english.php	2004/08/29 22:22:07	1.121
+++ english.php	2004/10/26 20:20:02	1.122
@@ -265,6 +265,7 @@
</small></pre><pre class="diff" id="context"> // constants for use in tep_prev_next_display function
 define('TEXT_RESULT_PAGE', 'Page&amp;nbsp;%s&amp;nbsp;of %d');
 define('TEXT_DISPLAY_NUMBER_OF_BANNERS', 'Displaying &lt;b&gt;%d&lt;/b&gt; to &lt;b&gt;%d&lt;/b&gt; (of &lt;b&gt;%d&lt;/b&gt; banners)');
</pre><pre class="diff" id="added">+define('TEXT_DISPLAY_NUMBER_OF_CATEGORIES', 'Displaying &lt;b&gt;%d&lt;/b&gt; to &lt;b&gt;%d&lt;/b&gt; (of &lt;b&gt;%d&lt;/b&gt; categories)');
</pre><pre class="diff" id="context"> define('TEXT_DISPLAY_NUMBER_OF_COUNTRIES', 'Displaying &lt;b&gt;%d&lt;/b&gt; to &lt;b&gt;%d&lt;/b&gt; (of &lt;b&gt;%d&lt;/b&gt; countries)');
 define('TEXT_DISPLAY_NUMBER_OF_CREDIT_CARDS', 'Displaying &lt;b&gt;%d&lt;/b&gt; to &lt;b&gt;%d&lt;/b&gt; (of &lt;b&gt;%d&lt;/b&gt; credit cards)');
 define('TEXT_DISPLAY_NUMBER_OF_CUSTOMERS', 'Displaying &lt;b&gt;%d&lt;/b&gt; to &lt;b&gt;%d&lt;/b&gt; (of &lt;b&gt;%d&lt;/b&gt; customers)');
</pre></div>
<hr /><a name="file4" /><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/includes">includes</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/languages">languages</a><br /></span>
<div class="fileheader"><big><b>espanol.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/languages/espanol.php?rev=1.116&amp;content-type=text/vnd.viewcvs-markup">1.116</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/languages/espanol.php.diff?r1=1.116&amp;r2=1.117">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/languages/espanol.php?rev=1.117&amp;content-type=text/vnd.viewcvs-markup">1.117</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.116 -r1.117
--- espanol.php	2004/08/29 22:22:07	1.116
+++ espanol.php	2004/10/26 20:20:02	1.117
@@ -265,6 +265,7 @@
</small></pre><pre class="diff" id="context"> // constants for use in tep_prev_next_display function
 define('TEXT_RESULT_PAGE', 'P&amp;aacute;gina&amp;nbsp;%s&amp;nbsp;de %d');
 define('TEXT_DISPLAY_NUMBER_OF_BANNERS', 'Viendo del &lt;b&gt;%d&lt;/b&gt; al &lt;b&gt;%d&lt;/b&gt; (de &lt;b&gt;%d&lt;/b&gt; banners)');
</pre><pre class="diff" id="added">+define('TEXT_DISPLAY_NUMBER_OF_CATEGORIES', 'Displaying &lt;b&gt;%d&lt;/b&gt; to &lt;b&gt;%d&lt;/b&gt; (of &lt;b&gt;%d&lt;/b&gt; categories)');
</pre><pre class="diff" id="context"> define('TEXT_DISPLAY_NUMBER_OF_COUNTRIES', 'Viendo del &lt;b&gt;%d&lt;/b&gt; al &lt;b&gt;%d&lt;/b&gt; (de &lt;b&gt;%d&lt;/b&gt; paises)');
 define('TEXT_DISPLAY_NUMBER_OF_CREDIT_CARDS', 'Displaying &lt;b&gt;%d&lt;/b&gt; to &lt;b&gt;%d&lt;/b&gt; (of &lt;b&gt;%d&lt;/b&gt; credit cards)');
 define('TEXT_DISPLAY_NUMBER_OF_CUSTOMERS', 'Viendo del &lt;b&gt;%d&lt;/b&gt; al &lt;b&gt;%d&lt;/b&gt; (de &lt;b&gt;%d&lt;/b&gt; clientes)');
</pre></div>
<hr /><a name="file5" /><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/includes">includes</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/languages">languages</a><br /></span>
<div class="fileheader"><big><b>german.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/languages/german.php?rev=1.115&amp;content-type=text/vnd.viewcvs-markup">1.115</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/languages/german.php.diff?r1=1.115&amp;r2=1.116">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/languages/german.php?rev=1.116&amp;content-type=text/vnd.viewcvs-markup">1.116</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.115 -r1.116
--- german.php	2004/08/29 22:22:07	1.115
+++ german.php	2004/10/26 20:20:03	1.116
@@ -265,8 +265,9 @@
</small></pre><pre class="diff" id="context"> // constants for use in tep_prev_next_display function
 define('TEXT_RESULT_PAGE', 'Seite&amp;nbsp;%s&amp;nbsp;von %d');
 define('TEXT_DISPLAY_NUMBER_OF_BANNERS', 'Angezeigt werden &lt;b&gt;%d&lt;/b&gt; bis &lt;b&gt;%d&lt;/b&gt; (von insgesamt &lt;b&gt;%d&lt;/b&gt; Bannern)');
</pre><pre class="diff" id="added">+define('TEXT_DISPLAY_NUMBER_OF_CATEGORIES', 'Angezeigt werden &lt;b&gt;%d&lt;/b&gt; bis &lt;b&gt;%d&lt;/b&gt; (von insgesamt &lt;b&gt;%d&lt;/b&gt; Kategorien)');
</pre><pre class="diff" id="context"> define('TEXT_DISPLAY_NUMBER_OF_COUNTRIES', 'Angezeigt werden &lt;b&gt;%d&lt;/b&gt; bis &lt;b&gt;%d&lt;/b&gt; (von insgesamt &lt;b&gt;%d&lt;/b&gt; L&amp;auml;ndern)');
</pre><pre class="diff" id="removed">-define('TEXT_DISPLAY_NUMBER_OF_CREDIT_CARDS', 'Displaying &lt;b&gt;%d&lt;/b&gt; to &lt;b&gt;%d&lt;/b&gt; (of &lt;b&gt;%d&lt;/b&gt; credit cards)');
</pre><pre class="diff" id="added">+define('TEXT_DISPLAY_NUMBER_OF_CREDIT_CARDS', 'Angezeigt werden &lt;b&gt;%d&lt;/b&gt; bis &lt;b&gt;%d&lt;/b&gt; (von insgesamt &lt;b&gt;%d&lt;/b&gt; Kreditkarten)');
</pre><pre class="diff" id="context"> define('TEXT_DISPLAY_NUMBER_OF_CUSTOMERS', 'Angezeigt werden &lt;b&gt;%d&lt;/b&gt; bis &lt;b&gt;%d&lt;/b&gt; (von insgesamt &lt;b&gt;%d&lt;/b&gt; Kunden)');
 define('TEXT_DISPLAY_NUMBER_OF_CURRENCIES', 'Angezeigt werden &lt;b&gt;%d&lt;/b&gt; bis &lt;b&gt;%d&lt;/b&gt; (von insgesamt &lt;b&gt;%d&lt;/b&gt; W&amp;auml;hrungen)');
 define('TEXT_DISPLAY_NUMBER_OF_LANGUAGES', 'Angezeigt werden &lt;b&gt;%d&lt;/b&gt; bis &lt;b&gt;%d&lt;/b&gt; (von insgesamt &lt;b&gt;%d&lt;/b&gt; Sprachen)');
</pre></div>
<hr /><a name="file6" /><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>categories.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/categories.php?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/categories.php.diff?r1=1.3&amp;r2=1.4">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/templates/pages/categories.php?rev=1.4&amp;content-type=text/vnd.viewcvs-markup">1.4</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.3 -r1.4
--- categories.php	2004/08/27 22:13:15	1.3
+++ categories.php	2004/10/26 20:20:09	1.4
@@ -18,11 +18,12 @@
</small></pre><pre class="diff" id="context"> &lt;?php
   echo tep_draw_form('search', FILENAME_CATEGORIES, '', 'get') .
        HEADING_TITLE_SEARCH . ' ' . osc_draw_input_field('search') .
</pre><pre class="diff" id="removed">-       '&lt;input type="submit" value="GO" class="operationButton"&gt;&lt;/form&gt;&lt;br&gt;' .
-       tep_draw_form('goto', FILENAME_CATEGORIES, '', 'get') .
-       HEADING_TITLE_GOTO . ' ' . osc_draw_pull_down_menu('cPath', tep_get_category_tree(), $current_category_id, 'onChange="this.form.submit();"') .
</pre><pre class="diff" id="added">+       osc_draw_pull_down_menu('cPath', array_merge(array(array('id' =&gt; '', 'text' =&gt; '-- ' . TEXT_TOP . ' --')), $categories_array)) .
+       '&lt;input type="submit" value="GO" class="operationButton"&gt;' .
+       '&lt;input type="button" value="RESET" onClick="document.location.href=\'' . tep_href_link(FILENAME_CATEGORIES) . '\';" class="sectionButton"' . ((!empty($_GET['search']) || ($current_category_id &gt; 0)) ? '' : ' disabled') . '&gt;' .
</pre><pre class="diff" id="context">        '&lt;/form&gt;';
 ?&gt;
</pre><pre class="diff" id="added">+
</pre><pre class="diff" id="context">     &lt;/td&gt;
   &lt;/tr&gt;
 &lt;/table&gt;
</pre><pre class="diff"><small id="info">@@ -38,23 +39,25 @@
</small></pre><pre class="diff" id="context">     &lt;/thead&gt;
     &lt;tbody&gt;
 &lt;?php
</pre><pre class="diff" id="removed">-  if (isset($_GET['search']) &amp;&amp; !empty($_GET['search'])) {
-    $Qcategories = $osC_Database-&gt;query('select c.categories_id, cd.categories_name, c.categories_image, c.parent_id, c.sort_order, c.date_added, c.last_modified from :table_categories c, :table_categories_description cd where c.categories_id = cd.categories_id and cd.language_id = :language_id and cd.categories_name like :categories_name order by c.sort_order, cd.categories_name');
</pre><pre class="diff" id="added">+  $Qcategories = $osC_Database-&gt;query('select c.categories_id, cd.categories_name, c.categories_image, c.parent_id, c.sort_order, c.date_added, c.last_modified from :table_categories c, :table_categories_description cd where c.categories_id = cd.categories_id and cd.language_id = :language_id');
+
+  if (!empty($_GET['search'])) {
+    $Qcategories-&gt;appendQuery('and cd.categories_name like :categories_name');
</pre><pre class="diff" id="context">     $Qcategories-&gt;bindValue(':categories_name', '%' . $_GET['search'] . '%');
   } else {
</pre><pre class="diff" id="removed">-    $Qcategories = $osC_Database-&gt;query('select c.categories_id, cd.categories_name, c.categories_image, c.parent_id, c.sort_order, c.date_added, c.last_modified from :table_categories c, :table_categories_description cd where c.parent_id = :parent_id and c.categories_id = cd.categories_id and cd.language_id = :language_id order by c.sort_order, cd.categories_name');
</pre><pre class="diff" id="added">+    $Qcategories-&gt;appendQuery('and c.parent_id = :parent_id');
</pre><pre class="diff" id="context">     $Qcategories-&gt;bindInt(':parent_id', $current_category_id);
   }
</pre><pre class="diff" id="added">+
+  $Qcategories-&gt;appendQuery('order by c.sort_order, cd.categories_name');
+
</pre><pre class="diff" id="context">   $Qcategories-&gt;bindTable(':table_categories', TABLE_CATEGORIES);
   $Qcategories-&gt;bindTable(':table_categories_description', TABLE_CATEGORIES_DESCRIPTION);
   $Qcategories-&gt;bindInt(':language_id', $osC_Session-&gt;value('languages_id'));
</pre><pre class="diff" id="added">+  $Qcategories-&gt;setBatchLimit($_GET['page'], MAX_DISPLAY_SEARCH_RESULTS);
</pre><pre class="diff" id="context">   $Qcategories-&gt;execute();
 
   while ($Qcategories-&gt;next()) {
</pre><pre class="diff" id="removed">-  if (isset($_GET['search']) &amp;&amp; !empty($_GET['search'])) {
-      $cPath = $Qcategories-&gt;valueInt('parent_id');
-    }
-
</pre><pre class="diff" id="context">     if (!isset($cInfo) &amp;&amp; (!isset($_GET['cID']) &amp;&amp; !isset($_GET['pID']) || (isset($_GET['cID']) &amp;&amp; ($_GET['cID'] == $Qcategories-&gt;valueInt('categories_id')))) &amp;&amp; ($action != 'cNew')) {
       $cInfo_extra = array('childs_count' =&gt; tep_childs_in_category_count($Qcategories-&gt;valueInt('categories_id')),
                            'products_count' =&gt; tep_products_in_category_count($Qcategories-&gt;valueInt('categories_id')));
</pre><pre class="diff"><small id="info">@@ -65,21 +68,21 @@
</small></pre><pre class="diff" id="context">     if (isset($cInfo) &amp;&amp; ($Qcategories-&gt;valueInt('categories_id') == $cInfo-&gt;categories_id)) {
       echo '      &lt;tr class="selected"&gt;' . "\n";
     } else {
</pre><pre class="diff" id="removed">-      echo '      &lt;tr onMouseOver="rowOverEffect(this);" onMouseOut="rowOutEffect(this);" onClick="document.location.href=\'' . tep_href_link(FILENAME_CATEGORIES, '<span id="removedchars">cPath='&nbsp;.&nbsp;$cPath</span> . '&amp;cID=' . $Qcategories-&gt;valueInt('categories_id')) . '\';"&gt;' . "\n";
</pre><pre class="diff" id="added">+      echo '      &lt;tr onMouseOver="rowOverEffect(this);" onMouseOut="rowOutEffect(this);" onClick="document.location.href=\'' . tep_href_link(FILENAME_CATEGORIES, '<span id="addedchars">page='&nbsp;.&nbsp;$_GET['page']&nbsp;.&nbsp;'&amp;cPath='&nbsp;.&nbsp;$cPath&nbsp;.&nbsp;'&amp;search='&nbsp;.&nbsp;$_GET['search']</span> . '&amp;cID=' . $Qcategories-&gt;valueInt('categories_id')) . '\';"&gt;' . "\n";
</pre><pre class="diff" id="context">     }
 ?&gt;
</pre><pre class="diff" id="removed">-        &lt;td&gt;&lt;?php echo '&lt;a href="' . tep_href_link(FILENAME_CATEGORIES, <span id="removedchars">tep_get_path</span>($Qcategories-&gt;valueInt('categories_id'))) . '"&gt;' . tep_image(DIR_WS_ICONS . 'folder.gif', ICON_FOLDER) . '&amp;nbsp;&lt;b&gt;' . $Qcategories-&gt;value('categories_name') . '&lt;/b&gt;&lt;/a&gt;'; ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="added">+        &lt;td&gt;&lt;?php echo '&lt;a href="' . tep_href_link(FILENAME_CATEGORIES, <span id="addedchars">'cPath='&nbsp;.&nbsp;$osC_CategoryTree-&gt;buildBreadcrumb</span>($Qcategories-&gt;valueInt('categories_id'))) . '"&gt;' . tep_image(DIR_WS_ICONS . 'folder.gif', ICON_FOLDER) . '&amp;nbsp;&lt;b&gt;' . $Qcategories-&gt;value('categories_name') . '&lt;/b&gt;&lt;/a&gt;'; ?&gt;&lt;/td&gt;
</pre><pre class="diff" id="context">         &lt;td align="center"&gt;&lt;?php echo tep_image('templates/' . $template . '/images/icons/checkbox_ticked.gif'); ?&gt;&lt;/td&gt;
         &lt;td align="right"&gt;
 &lt;?php
     if (isset($cInfo) &amp;&amp; ($Qcategories-&gt;valueInt('categories_id') == $cInfo-&gt;categories_id)) {
</pre><pre class="diff" id="removed">-      echo '&lt;a href="#" onClick="toggleInfoBox(\'cEdit\');"&gt;' . tep_image('templates/' . $template . '/images/icons/16x16/<span id="removedchars">configure</span>.png', IMAGE_EDIT, '16', '16') . '&lt;/a&gt;&amp;nbsp;' .
</pre><pre class="diff" id="added">+      echo '&lt;a href="#" onClick="toggleInfoBox(\'cEdit\');"&gt;' . tep_image('templates/' . $template . '/images/icons/16x16/<span id="addedchars">edit</span>.png', IMAGE_EDIT, '16', '16') . '&lt;/a&gt;&amp;nbsp;' .
</pre><pre class="diff" id="context">            '&lt;a href="#" onClick="toggleInfoBox(\'cMove\');"&gt;' . tep_image('templates/' . $template . '/images/icons/16x16/move.png', IMAGE_MOVE, '16', '16') . '&lt;/a&gt;&amp;nbsp;' .
            '&lt;a href="#" onClick="toggleInfoBox(\'cDelete\');"&gt;' . tep_image('templates/' . $template . '/images/icons/16x16/trash.png', IMAGE_DELETE, '16', '16') . '&lt;/a&gt;';
     } else {
</pre><pre class="diff" id="removed">-      echo '&lt;a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&amp;cID=' . $Qcategories-&gt;valueInt('categories_id') . '&amp;action=cEdit') . '"&gt;' . tep_image('templates/' . $template . '/images/icons/16x16/configure.png', IMAGE_EDIT, '16', '16') . '&lt;/a&gt;&amp;nbsp;' .
-           '&lt;a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&amp;cID=' . $Qcategories-&gt;valueInt('categories_id') . '&amp;action=cMove') . '"&gt;' . tep_image('templates/' . $template . '/images/icons/16x16/move.png', IMAGE_MOVE, '16', '16') . '&amp;nbsp;&lt;/a&gt;' .
-           '&lt;a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&amp;cID=' . $Qcategories-&gt;valueInt('categories_id') . '&amp;action=cDelete') . '"&gt;' . tep_image('templates/' . $template . '/images/icons/16x16/trash.png', IMAGE_DELETE, '16', '16') . '&lt;/a&gt;';
</pre><pre class="diff" id="added">+      echo '&lt;a href="' . tep_href_link(FILENAME_CATEGORIES, 'page=' . $_GET['page'] . '&amp;cPath=' . $cPath . '&amp;search=' . $_GET['search'] . '&amp;cID=' . $Qcategories-&gt;valueInt('categories_id') . '&amp;action=cEdit') . '"&gt;' . tep_image('templates/' . $template . '/images/icons/16x16/edit.png', IMAGE_EDIT, '16', '16') . '&lt;/a&gt;&amp;nbsp;' .
+           '&lt;a href="' . tep_href_link(FILENAME_CATEGORIES, 'page=' . $_GET['page'] . '&amp;cPath=' . $cPath . '&amp;search=' . $_GET['search'] . '&amp;cID=' . $Qcategories-&gt;valueInt('categories_id') . '&amp;action=cMove') . '"&gt;' . tep_image('templates/' . $template . '/images/icons/16x16/move.png', IMAGE_MOVE, '16', '16') . '&lt;/a&gt;&amp;nbsp;' .
+           '&lt;a href="' . tep_href_link(FILENAME_CATEGORIES, 'page=' . $_GET['page'] . '&amp;cPath=' . $cPath . '&amp;search=' . $_GET['search'] . '&amp;cID=' . $Qcategories-&gt;valueInt('categories_id') . '&amp;action=cDelete') . '"&gt;' . tep_image('templates/' . $template . '/images/icons/16x16/trash.png', IMAGE_DELETE, '16', '16') . '&lt;/a&gt;';
</pre><pre class="diff" id="context">     }
 ?&gt;
         &lt;/td&gt;
</pre><pre class="diff"><small id="info">@@ -90,16 +93,21 @@
</small></pre><pre class="diff" id="context">     &lt;/tbody&gt;
   &lt;/table&gt;
 
</pre><pre class="diff" id="added">+  &lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
+    &lt;tr&gt;
+      &lt;td class="smallText"&gt;&lt;?php echo $Qcategories-&gt;displayBatchLinksTotal(TEXT_DISPLAY_NUMBER_OF_CATEGORIES); ?&gt;&lt;/td&gt;
+      &lt;td class="smallText" align="right"&gt;&lt;?php echo $Qcategories-&gt;displayBatchLinksPullDown('page', 'cPath=' . $cPath . '&amp;search=' . $_GET['search']); ?&gt;&lt;/td&gt;
+    &lt;/tr&gt;
+  &lt;/table&gt;
+
</pre><pre class="diff" id="context">   &lt;p align="right"&gt;
 &lt;?php
</pre><pre class="diff" id="removed">-  if (sizeof($cPath_array) &gt; 0) {
-    echo '&lt;input type="button" value="' . IMAGE_BACK . '" onClick="document.location.href=\'' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . implode('_', array_slice($cPath_array, 0, -1)) . '&amp;cID=' . $current_category_id) . '\';" class="infoBoxButton"&gt; ';
</pre><pre class="diff" id="added">+  if (!empty($cPath)) {
+    echo '&lt;input type="button" value="' . IMAGE_BACK . '" onClick="document.location.href=\'' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . implode('_', array_slice($cPath_array, 0, -1)) . '&amp;search=' . $_GET['search'] . '&amp;cID=' . $current_category_id) . '\';" class="infoBoxButton"&gt; ';
</pre><pre class="diff" id="context">   }
 
</pre><pre class="diff" id="removed">-  if (!isset($_GET['search'])) {
-    if ($action != 'cNew') {
-      echo '&lt;input type="button" value="' . IMAGE_NEW_CATEGORY . '" onClick="toggleInfoBox(\'cNew\');" class="infoBoxButton"&gt; ';
-    }
</pre><pre class="diff" id="added">+  if (empty($_GET['search']) &amp;&amp; ($action != 'cNew')) {
+    echo '&lt;input type="button" value="' . IMAGE_NEW_CATEGORY . '" onClick="toggleInfoBox(\'cNew\');" class="infoBoxButton"&gt; ';
</pre><pre class="diff" id="context">   }
 ?&gt;
   &lt;/p&gt;
</pre><pre class="diff"><small id="info">@@ -108,7 +116,7 @@
</small></pre><pre class="diff" id="context"> &lt;div id="infoBox_cNew" &lt;?php if ($action != 'cNew') { echo 'style="display: none;"'; } ?&gt;&gt;
   &lt;div class="infoBoxHeading"&gt;&lt;?php echo tep_image('templates/' . $template . '/images/icons/16x16/new.png', IMAGE_INSERT, '16', '16') . ' ' . TEXT_INFO_HEADING_NEW_CATEGORY; ?&gt;&lt;/div&gt;
   &lt;div class="infoBoxContent"&gt;
</pre><pre class="diff" id="removed">-    &lt;?php echo tep_draw_form('cNew', FILENAME_CATEGORIES, 'cPath=' . $cPath . '&amp;action=save_category', 'post', 'enctype="multipart/form-data"'); ?&gt;
</pre><pre class="diff" id="added">+    &lt;?php echo tep_draw_form('cNew', FILENAME_CATEGORIES, '<span id="addedchars">page='&nbsp;.&nbsp;$_GET['page']&nbsp;.&nbsp;'&amp;</span>cPath=' . $cPath . '&amp;action=save_category', 'post', 'enctype="multipart/form-data"'); ?&gt;
</pre><pre class="diff" id="context"> 
     &lt;p&gt;&lt;?php echo TEXT_NEW_CATEGORY_INTRO; ?&gt;&lt;/p&gt;
     &lt;p&gt;
</pre><pre class="diff"><small id="info">@@ -136,10 +144,10 @@
</small></pre><pre class="diff" id="context"> &lt;div id="infoBox_cMove" &lt;?php if ($action != 'cMove') { echo 'style="display: none;"'; } ?&gt;&gt;
   &lt;div class="infoBoxHeading"&gt;&lt;?php echo tep_image('templates/' . $template . '/images/icons/16x16/move.png', IMAGE_MOVE, '16', '16') . ' ' . $cInfo-&gt;categories_name; ?&gt;&lt;/div&gt;
   &lt;div class="infoBoxContent"&gt;
</pre><pre class="diff" id="removed">-    &lt;?php echo tep_draw_form('cMove', FILENAME_CATEGORIES, 'cPath=' . $cPath . '&amp;cID=' . $cInfo-&gt;categories_id . '&amp;action=move_category_confirm'); ?&gt;
</pre><pre class="diff" id="added">+    &lt;?php echo tep_draw_form('cMove', FILENAME_CATEGORIES, 'page=' . $_GET['page'] . '&amp;cPath=' . $cPath . '&amp;search=' . $_GET['search'] . '&amp;cID=' . $cInfo-&gt;categories_id . '&amp;action=move_category_confirm'); ?&gt;
</pre><pre class="diff" id="context"> 
     &lt;p&gt;&lt;?php echo sprintf(TEXT_MOVE_CATEGORIES_INTRO, $cInfo-&gt;categories_name); ?&gt;&lt;/p&gt;
</pre><pre class="diff" id="removed">-    &lt;p&gt;&lt;?php echo sprintf(TEXT_MOVE, $cInfo-&gt;categories_name) . '&lt;br&gt;' . osc_draw_pull_down_menu('move_to_category_id', <span id="removedchars">tep_get_category_tree(),&nbsp;$current_category_id</span>); ?&gt;&lt;/p&gt;
</pre><pre class="diff" id="added">+    &lt;p&gt;&lt;?php echo sprintf(TEXT_MOVE, $cInfo-&gt;categories_name) . '&lt;br&gt;' . osc_draw_pull_down_menu('move_to_category_id', <span id="addedchars">$categories_array</span>); ?&gt;&lt;/p&gt;
</pre><pre class="diff" id="context"> 
     &lt;p align="center"&gt;&lt;?php echo '&lt;input type="submit" value="' . IMAGE_MOVE . '" class="operationButton"&gt; &lt;input type="button" value="' . IMAGE_CANCEL . '" onClick="toggleInfoBox(\'cDefault\');" class="operationButton"&gt;'; ?&gt;&lt;/p&gt;
 
</pre><pre class="diff"><small id="info">@@ -161,14 +169,14 @@
</small></pre><pre class="diff" id="context">       echo '    &lt;p&gt;' . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $cInfo-&gt;products_count) . '&lt;/p&gt;';
     }
 ?&gt;
</pre><pre class="diff" id="removed">-    &lt;p align="center"&gt;&lt;?php echo '&lt;input type="button" value="' . IMAGE_DELETE . '" onClick="document.location.href=\'' . tep_href_link(FILENAME_CATEGORIES, '<span id="removedchars">cPath='&nbsp;.&nbsp;$cPath</span> . '&amp;cID=' . $cInfo-&gt;categories_id . '&amp;action=delete_category_confirm') . '\'" class="operationButton"&gt; &lt;input type="button" value="' . IMAGE_CANCEL . '" onClick="toggleInfoBox(\'cDefault\');" class="operationButton"&gt;'; ?&gt;&lt;/p&gt;
</pre><pre class="diff" id="added">+    &lt;p align="center"&gt;&lt;?php echo '&lt;input type="button" value="' . IMAGE_DELETE . '" onClick="document.location.href=\'' . tep_href_link(FILENAME_CATEGORIES, '<span id="addedchars">page='&nbsp;.&nbsp;$_GET['page']&nbsp;.&nbsp;'&amp;cPath='&nbsp;.&nbsp;$cPath&nbsp;.&nbsp;'&amp;search='&nbsp;.&nbsp;$_GET['search']</span> . '&amp;cID=' . $cInfo-&gt;categories_id . '&amp;action=delete_category_confirm') . '\'" class="operationButton"&gt; &lt;input type="button" value="' . IMAGE_CANCEL . '" onClick="toggleInfoBox(\'cDefault\');" class="operationButton"&gt;'; ?&gt;&lt;/p&gt;
</pre><pre class="diff" id="context">   &lt;/div&gt;
 &lt;/div&gt;
 
 &lt;div id="infoBox_cEdit" &lt;?php if ($action != 'cEdit') { echo 'style="display: none;"'; } ?&gt;&gt;
   &lt;div class="infoBoxHeading"&gt;&lt;?php echo tep_image('templates/' . $template . '/images/icons/16x16/configure.png', IMAGE_EDIT, '16', '16') . ' ' . $cInfo-&gt;categories_name; ?&gt;&lt;/div&gt;
   &lt;div class="infoBoxContent"&gt;
</pre><pre class="diff" id="removed">-    &lt;?php echo tep_draw_form('cEdit', FILENAME_CATEGORIES, '<span id="removedchars">cPath='&nbsp;.&nbsp;$cPath</span> . '&amp;cID=' . $cInfo-&gt;categories_id . '&amp;action=save_category', 'post', 'enctype="multipart/form-data"'); ?&gt;
</pre><pre class="diff" id="added">+    &lt;?php echo tep_draw_form('cEdit', FILENAME_CATEGORIES, '<span id="addedchars">page='&nbsp;.&nbsp;$_GET['page']&nbsp;.&nbsp;'&amp;cPath='&nbsp;.&nbsp;$cPath&nbsp;.&nbsp;'&amp;search='&nbsp;.&nbsp;$_GET['search']</span> . '&amp;cID=' . $cInfo-&gt;categories_id . '&amp;action=save_category', 'post', 'enctype="multipart/form-data"'); ?&gt;
</pre><pre class="diff" id="context"> 
     &lt;p&gt;&lt;?php echo TEXT_EDIT_INTRO; ?&gt;&lt;/p&gt;
     &lt;p&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>


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click