Changeset 9458 for trunk


Ignore:
Timestamp:
06/16/09 13:22:10 (16 years ago)
Author:
aparavac
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/datacenter/db
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/db/plotdb.php

    r9372 r9458  
    187187        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"]);
    188188
    189     printf("<br>Plot format: &nbsp; x = <select name='x' size='1'>\n");
     189    printf("<br>\nSource&nbsp;(<A HREF=\"regexp.html\">regexp</A>)&nbsp;<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: &nbsp; x = <select name='x' size='1'>\n");
    190195    $x = array( 740, 640, 540, 440);
    191196    foreach($x as $key => $el)
  • trunk/MagicSoft/Mars/datacenter/db/plotinclude.php

    r9150 r9458  
    7373    $stop1=$_GET["Stop"];
    7474
     75    if (empty($_GET["fSourceN"]))
     76        $_GET["fSourceN"]="";
     77    $source=$_GET["fSourceN"];
     78
    7579    $query="SELECT " . $table . "." . $primary . ", ";
    7680    if ($column==$primary)
     
    99103    $query.=$joins[$primary];
    100104
     105    if (!empty($source))
     106        $query.= " LEFT JOIN Source USING(fSourceKEY) ";
     107
    101108    if (!empty($primstart))
    102109        $query.= " WHERE " . $table . "." . $primary . " > " . $primstart;
     
    155162        $query.= CheckQuery($query) . GetTable($table, $column4) . " < " . $stop4;
    156163
     164    if (!empty($source))
     165        $query.= CheckQuery($query) . " fSourceName REGEXP \"^" . $_GET["fSourceN"] . "\" ";
     166
    157167    return $query;
    158168}
Note: See TracChangeset for help on using the changeset viewer.