IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9008 for trunk/ippMonitor/raw


Ignore:
Timestamp:
Sep 27, 2006, 12:30:54 PM (20 years ago)
Author:
eugene
Message:

adding inline images, php, html, more restricts, * fields

Location:
trunk/ippMonitor/raw
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/raw/DetrendSteps.php

    r8984 r9008  
    88
    99// document body
    10 echo "Detrend Image Creation Steps<br>\n";
     10echo "Detrend Image Creation<br>\n
     11
     12The pages in this section allow you to examine the master detrend
     13images and the processing steps involved in their creation.  You may
     14search through the detrend images which have been accepted by
     15the detrend analysis system by selecting the Master Detrend Images tab.
     16
     17";
    1118
    1219menu_end();
  • trunk/ippMonitor/raw/ipp.detrend.dat

    r9003 r9008  
    2323
    2424menutop   | menutop      | plain   | &nbsp;                       |
     25menulink  | menuselect   | link    | Master Detrend Images        | masterDetrendImages.php
    2526menulink  | menuselect   | link    | Det Run                      | detRun.php                   
    2627menulink  | menuselect   | link    | Det Run Summary              | detRunSummary.php             
  • trunk/ippMonitor/raw/ipp.php

    r9003 r9008  
    1919  // connect to the database
    2020  require_once('DB.php');
    21   $db = DB::connect("mysql://ipp:ipp@localhost/ipp");
     21#  $db = DB::connect("mysql://ipp:ipp@localhost/ipp");
     22  $db = DB::connect("mysql://ipp:ipp@localhost/detrend");
    2223  if (DB::iserror($db)) {
    2324    echo "<b>error accessing database</b><br>\n";
     
    176177}
    177178
     179function check_restrict ($key, $where) {
     180  // echo "key: $key<br>\n";
     181  if ($_SERVER[REQUEST_METHOD] == 'GET') {
     182    $value = $_GET[$key];
     183    // echo "using GET<br>\n";
     184  } else {
     185    $value = $_POST[$key];
     186    // echo "using POST<br>\n";
     187  }
     188  // echo "value: $value<br>\n";
     189  if ($value) {
     190    if ($where) {
     191      $where = $where . " AND $key = '$value'";
     192      // echo "where 1: $where<br>\n";
     193    } else {
     194      $where = "$key = '$value'";
     195      // echo "where 2: $where<br>\n";
     196    }
     197  }
     198  return $where;
     199}
     200
     201function write_query_row ($key) {
     202  $value = $_POST[$key];
     203  if (($_SERVER[REQUEST_METHOD] == 'POST') && $value) {
     204    echo "<td class=\"list\"> <input type=\"text\" name=\"$key\" value=\"$value\"> </td>\n";
     205  } else {
     206    echo "<td class=\"list\"> <input type=\"text\" name=\"$key\"> </td>\n";
     207  }
     208}
     209
     210// expect image supplied with key=name
     211function insert_image ($key) {
     212
     213  if ($_SERVER[REQUEST_METHOD] == 'GET') {
     214    $name = $_GET[$key];
     215  } else {
     216    $name = $_POST[$key];
     217  }
     218
     219  if ($name) {
     220    echo "<img src=\"$name\">\n";
     221  }
     222}
     223
    178224// $myPage = $_SERVER[SCRIPT_NAME] . "?pass=$pass";
    179225
Note: See TracChangeset for help on using the changeset viewer.