Changeset 8402 for trunk/MagicSoft/Mars/datacenter/db
- Timestamp:
- 04/12/07 18:56:49 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/db
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/plotdb.php
r8249 r8402 122 122 printf("<li>Be aware, that plotting timestamps, e.g. fRunStart, doesn't work. </li>"); 123 123 printf("</ul></td></tr>\n"); 124 124 125 /* 125 126 printf("<tr><td>\n"); 126 $query=GetQuery($tables, $joins );127 $query=GetQuery($tables, $joins, ""); 127 128 printf("Q: %s</td></tr>", $query); 128 129 */ 130 129 131 printf("</table>\n"); 130 132 printf("</center>\n"); -
trunk/MagicSoft/Mars/datacenter/db/plotinclude.php
r8161 r8402 40 40 } 41 41 42 43 42 function GetQuery($tables, $joins, $set) 44 43 { 44 if (empty($_GET["prim"])) 45 $_GET["prim"]=""; 45 46 $primary=$_GET["prim"]; 47 if (empty($primary)) 48 return ""; 49 if (empty($_GET[$primary."Col"])) 50 $_GET[$primary."Col"]=""; 46 51 $column=$_GET[$primary."Col"]; 47 52 $table=$tables[$primary]; 53 if (empty($_GET["primstart"])) 54 $_GET["primstart"]=""; 48 55 $primstart=$_GET["primstart"]; 56 if (empty($_GET["primstop"])) 57 $_GET["primstop"]=""; 49 58 $primstop=$_GET["primstop"]; 59 if (empty($_GET[$column."Start"])) 60 $_GET[$column."Start"]=""; 50 61 $start1=$_GET[$column."Start"]; 62 if (empty($_GET[$column."Stop"])) 63 $_GET[$column."Stop"]=""; 51 64 $stop1=$_GET[$column."Stop"]; 52 65 … … 59 72 if ($_GET["plot"]=="val") 60 73 { 74 if (empty($_GET[$primary."Col2"])) 75 $_GET[$primary."Col2"]=""; 61 76 $column2=$_GET[$primary."Col2"]; 77 if (empty($_GET[$column2."Start2"])) 78 $_GET[$column2."Start2"]=""; 62 79 $start2=$_GET[$column2."Start2"]; 80 if (empty($_GET[$column2."Stop2"])) 81 $_GET[$column2."Stop2"]=""; 63 82 $stop2=$_GET[$column2."Stop2"]; 64 83
Note:
See TracChangeset
for help on using the changeset viewer.