Ignore:
Timestamp:
06/16/09 13:22:10 (16 years ago)
Author:
aparavac
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.