r667: Add userhelp to the exporter
authorRobert Sesek <rsesek@bluestatic.org>
Thu, 22 Dec 2005 19:38:26 +0000 (19:38 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Thu, 22 Dec 2005 19:38:26 +0000 (19:38 +0000)
docs/datatools.php

index b22048e6a2ed7f18bfffc5b514b1356081303b9c..3a893051d57616500531398f0897d979bf1193b0 100644 (file)
@@ -33,6 +33,12 @@ $THELIST = array(
        'resolutions' => array(
                'table' => 'resolution',
                'rebuild' => 'build_resolutions'
+       ),
+       
+       'user help' => array(
+               'table' => 'fieldhelp',
+               'rebuild' => 'build_user_help',
+               'orderfree' => true
        )
 );
 
@@ -56,7 +62,7 @@ if ($_REQUEST['do'] == 'export')
 {
        foreach ($THELIST AS $display => $data)
        {
-               $fetch = $db->query("SELECT * FROM " . TABLE_PREFIX . "$data[table] ORDER BY {$data[table]}id ASC");
+               $fetch = $db->query("SELECT * FROM " . TABLE_PREFIX . "$data[table]" . (!$data['orderfree'] ? " ORDER BY {$data[table]}id ASC" : ""));
                while ($fitem = $db->fetch_array($fetch))
                {
                        $exportlist["$display"][] = $fitem;