- Timestamp:
- 10/18/06 19:10:02 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8122 r8123 63 63 - bugfix (order by was not working for runs/sequences/datasets 64 64 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) 65 69 66 70 -
trunk/MagicSoft/Mars/datacenter/db/include.php
r8122 r8123 396 396 if ($search=="# days") 397 397 return "NumDays"; 398 return $search; 398 399 return ""; 399 400 } -
trunk/MagicSoft/Mars/datacenter/db/magicdefs.php
r8122 r8123 572 572 if ($val=="NumDays") 573 573 $table="'# days'"; 574 if (empty($table)) 575 $table=$val; 574 576 return $table; 575 577 } -
trunk/MagicSoft/Mars/datacenter/db/printtable.php
r7974 r8123 27 27 mysql_select_db($db); 28 28 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 31 39 32 40 $result0 = mysql_query($query0, $db_id); -
trunk/MagicSoft/Mars/datacenter/db/runinfo-aio.php
r8122 r8123 173 173 { 174 174 $val=substr($_GET["fSortBy"], 0, -1); 175 // $query0 .= "---" . $val . "---";176 175 $query0 .= " ORDER BY " . GetTable($fromtable, $val) . " "; 177 176 if (substr($_GET["fSortBy"], -1)=="-")
Note:
See TracChangeset
for help on using the changeset viewer.