Changeset 9458 for trunk/MagicSoft/Mars/datacenter
- Timestamp:
- 06/16/09 13:22:10 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/db
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/plotdb.php
r9372 r9458 187 187 printf("<div id='set2' style='display:none'>Set2: <input name='Set2' type='text' size='20' maxlength='150' value='%s'>\n</div>\n<br>\n", $_GET["Set2"]); 188 188 189 printf("<br>Plot format: x = <select name='x' size='1'>\n"); 189 printf("<br>\nSource (<A HREF=\"regexp.html\">regexp</A>) <input name=\"fSourceN\" type=\"text\" size=\"15\" maxlength=\"15\" value=\""); 190 if (!empty($_GET["fSourceN"])) 191 printf("%s", $_GET["fSourceN"]); 192 printf("\">\n<br>\n"); 193 194 printf("<br>\nPlot format: x = <select name='x' size='1'>\n"); 190 195 $x = array( 740, 640, 540, 440); 191 196 foreach($x as $key => $el) -
trunk/MagicSoft/Mars/datacenter/db/plotinclude.php
r9150 r9458 73 73 $stop1=$_GET["Stop"]; 74 74 75 if (empty($_GET["fSourceN"])) 76 $_GET["fSourceN"]=""; 77 $source=$_GET["fSourceN"]; 78 75 79 $query="SELECT " . $table . "." . $primary . ", "; 76 80 if ($column==$primary) … … 99 103 $query.=$joins[$primary]; 100 104 105 if (!empty($source)) 106 $query.= " LEFT JOIN Source USING(fSourceKEY) "; 107 101 108 if (!empty($primstart)) 102 109 $query.= " WHERE " . $table . "." . $primary . " > " . $primstart; … … 155 162 $query.= CheckQuery($query) . GetTable($table, $column4) . " < " . $stop4; 156 163 164 if (!empty($source)) 165 $query.= CheckQuery($query) . " fSourceName REGEXP \"^" . $_GET["fSourceN"] . "\" "; 166 157 167 return $query; 158 168 }
Note:
See TracChangeset
for help on using the changeset viewer.