OSDN Git Service

Change the order of skin, refering to http://japan.nucleuscms.org/bb/viewtopic.php...
authorsakamocchi <sakamocchi@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Mon, 21 Mar 2011 03:06:46 +0000 (03:06 +0000)
committersakamocchi <sakamocchi@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Mon, 21 Mar 2011 03:06:46 +0000 (03:06 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk@1178 1ca29b6e-896d-4ea0-84a5-967f57386b96

utf8/nucleus/libs/showlist.php

index 2cbbaee..c3d5e46 100644 (file)
@@ -593,7 +593,10 @@ function listplug_table_skinlist($template, $type) {
 
                        echo '<td class="availableSkinTypes">' . htmlspecialchars($current->sddesc);
                                // show list of defined parts
-                               $r = sql_query('SELECT stype FROM '.sql_table('skin').' WHERE sdesc='.$current->sdnumber . ' ORDER BY stype');
+                               $r = sql_query('SELECT stype FROM '.sql_table('skin').' WHERE sdesc='.$current->sdnumber\r
+                                       . ' ORDER BY '\r
+                                       ." stype NOT IN ('index', 'item', 'error', 'search', 'archive', 'archivelist', 'imagepopup', 'member') ASC , "\r
+                                       .' stype ASC' );
                                $types = array();
                                while ($o = sql_fetch_object($r))
                                        array_push($types,$o->stype);