OSDN Git Service

サブカテゴリの並び順に対応(ordid で並べ替え)
authorshizuki <shizuki@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Mon, 6 Nov 2006 13:13:08 +0000 (13:13 +0000)
committershizuki <shizuki@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Mon, 6 Nov 2006 13:13:08 +0000 (13:13 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/plugin@482 1ca29b6e-896d-4ea0-84a5-967f57386b96

trunk/NP_Dtree/dtree/dtreedata.php

index 30644d7..a4f9e2b 100644 (file)
@@ -91,14 +91,16 @@ global $CONF, $manager;
         $catFilter = '=' . $catFilter;
     }
     
-    $query = 'SELECT * FROM %s WHERE catid %s ORDER BY scatid';
+    $query = 'SELECT * FROM %s WHERE catid %s ORDER BY ordid ASC';
+//    $query = 'SELECT * FROM %s WHERE catid %s ORDER BY scatid';
     $res = sql_query(sprintf($query, sql_table('plug_multiple_categories_sub'), $catFilter));
     while ($o = mysql_fetch_object($res)) {
         $scatid = intval($o->scatid);
         $nodeArray['subcat'][$scatid] = $n;
         $n++;
     }
-    $query = 'SELECT * FROM %s WHERE catid %s ORDER BY scatid';
+    $query = 'SELECT * FROM %s WHERE catid %s ORDER BY ordid ASC';
+//    $query = 'SELECT * FROM %s WHERE catid %s ORDER BY scatid';
     $res = sql_query(sprintf($query, sql_table('plug_multiple_categories_sub'), $catFilter));
     $mcategories =& $manager->getPlugin('NP_MultipleCategories');
     if (method_exists($mcategories, "getRequestName")) {