IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26456


Ignore:
Timestamp:
Dec 17, 2009, 9:58:17 AM (16 years ago)
Author:
eugene
Message:

add ability to set default limits for pages

Location:
trunk/ippMonitor
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/def/autocode.php

    r21137 r26456  
    2323echo "<form action=\"$FILE\" method=\"POST\">\n";
    2424
     25$restricted = 0;
     26
    2527// define restrictiosn to the queries
    2628// ** TABLE RESTRICTIONS **
     29
     30if ($restricted == 0) {
     31  if ("$UNRESTRICTED" != "none") {
     32    $WHERE = "$WHERE $UNRESTRICTED";
     33  }
     34}
    2735
    2836// get the result table count
  • trunk/ippMonitor/def/warpStageSkyfileInputs.d

    r24867 r26456  
    1111WHERE chipProcessedImfile.chip_id = chipRun.chip_id
    1212WHERE chipProcessedImfile.class_id = warpSkyCellMap.class_id
     13
     14# if no query restrictions are supplied, we want to limit the query or it is extremely long running:
     15UNRESTRICTED AND warpRun.warp_id = 0
    1316
    1417ARGS  ARG1  rawImfile.exp_id=$rawExp.exp_id
  • trunk/ippMonitor/raw/ipp.php

    r25783 r26456  
    1717    echo "Username: <input type=\"text\" name=\"username\"><br>\n";
    1818  }
    19   echo 'Password: <input type="text" name="password"><br>', "\n";
     19  echo 'Password: <input type="password" name="password"><br>', "\n";
    2020  echo '<input type="submit" name="login" value="login">', "\n";
    2121  echo '</form>', "\n\n";
     
    430430  }
    431431  if ($value == "") { return $where; }
     432
     433  global $restricted;
     434  $restricted = 1;
     435
    432436  if ($where) {
    433437    $where = $where . " AND";
  • trunk/ippMonitor/scripts/generate

    r24758 r26456  
    2828    &init_key ("STYLE");
    2929    &init_key ("MODE");
     30    &init_key ("UNRESTRICTED");
    3031    &init_key ("TABLE");
    3132    &init_key ("TITLE");
     
    121122    &check_key ("STYLE", "ipp.css");
    122123    &check_key ("MODE", "basic");
     124    &check_key ("UNRESTRICTED", "none");
    123125    &check_key ("TABLE", "");
    124126    &check_key ("TITLE", "");
Note: See TracChangeset for help on using the changeset viewer.