• R/O
  • HTTP
  • SSH
  • HTTPS

nucleus-plugins: Commit

Nucleus CMS日本語版用プラグインのうち、日本語版開発者がサポートしているもの


Commit MetaInfo

Revisionbb91a7477f9cf87eab2a9c90286d9583981acc77 (tree)
Time2006-11-06 22:13:08
Authorshizuki <shizuki@1ca2...>
Commitershizuki

Log Message

サブカテゴリの並び順に対応(ordid で並べ替え)

git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/plugin@482 1ca29b6e-896d-4ea0-84a5-967f57386b96

Change Summary

Incremental Difference

--- a/trunk/NP_Dtree/dtree/dtreedata.php
+++ b/trunk/NP_Dtree/dtree/dtreedata.php
@@ -91,14 +91,16 @@ global $CONF, $manager;
9191 $catFilter = '=' . $catFilter;
9292 }
9393
94- $query = 'SELECT * FROM %s WHERE catid %s ORDER BY scatid';
94+ $query = 'SELECT * FROM %s WHERE catid %s ORDER BY ordid ASC';
95+// $query = 'SELECT * FROM %s WHERE catid %s ORDER BY scatid';
9596 $res = sql_query(sprintf($query, sql_table('plug_multiple_categories_sub'), $catFilter));
9697 while ($o = mysql_fetch_object($res)) {
9798 $scatid = intval($o->scatid);
9899 $nodeArray['subcat'][$scatid] = $n;
99100 $n++;
100101 }
101- $query = 'SELECT * FROM %s WHERE catid %s ORDER BY scatid';
102+ $query = 'SELECT * FROM %s WHERE catid %s ORDER BY ordid ASC';
103+// $query = 'SELECT * FROM %s WHERE catid %s ORDER BY scatid';
102104 $res = sql_query(sprintf($query, sql_table('plug_multiple_categories_sub'), $catFilter));
103105 $mcategories =& $manager->getPlugin('NP_MultipleCategories');
104106 if (method_exists($mcategories, "getRequestName")) {
Show on old repository browser