Changeset 8123


Ignore:
Timestamp:
10/18/06 19:10:02 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8122 r8123  
    6363     - bugfix (order by was not working for runs/sequences/datasets
    6464       when doing group by)
     65
     66   * datacenter/db/include.php, datacenter/db/magicdefs.php,
     67     datacenter/db/printtable.php:
     68     - bugfix (order by was not working on printtable.php)
    6569
    6670
  • trunk/MagicSoft/Mars/datacenter/db/include.php

    r8122 r8123  
    396396    if ($search=="# days")
    397397        return "NumDays";
     398    return $search;
    398399    return "";
    399400}
  • trunk/MagicSoft/Mars/datacenter/db/magicdefs.php

    r8122 r8123  
    572572    if ($val=="NumDays")
    573573        $table="'# days'";
     574    if (empty($table))
     575        $table=$val;
    574576    return $table;
    575577}
  • trunk/MagicSoft/Mars/datacenter/db/printtable.php

    r7974 r8123  
    2727        mysql_select_db($db);
    2828
    29         $query0  = "SELECT * FROM ";
    30         $query0 .= $_GET["fTable"];
     29        $fromtable=$_GET["fTable"];
     30        $query0  = "SELECT * FROM " . $fromtable;
     31        if (!empty($_GET["fSortBy"]))
     32        {
     33            $val=substr($_GET["fSortBy"], 0, -1);
     34            $query0 .= " ORDER BY " . GetTable($fromtable,$val) . " ";
     35            if (substr($_GET["fSortBy"], -1)=="-")
     36                $query0 .= "DESC";
     37        }
     38
    3139
    3240        $result0 = mysql_query($query0, $db_id);
  • trunk/MagicSoft/Mars/datacenter/db/runinfo-aio.php

    r8122 r8123  
    173173        {
    174174            $val=substr($_GET["fSortBy"], 0, -1);
    175 //            $query0 .= "---" . $val . "---";
    176175            $query0 .= " ORDER BY " . GetTable($fromtable, $val) . " ";
    177176            if (substr($_GET["fSortBy"], -1)=="-")
Note: See TracChangeset for help on using the changeset viewer.