IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9439


Ignore:
Timestamp:
Oct 9, 2006, 3:11:06 PM (20 years ago)
Author:
eugene
Message:

work on links and formats

Location:
trunk/ippMonitor
Files:
24 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/Makefile

    r9399 r9439  
    3131$(DESTBIN)/detMasterFrame.php \
    3232$(DESTBIN)/detMasterImfile.php \
     33$(DESTBIN)/detNormalizedExp.php \
    3334$(DESTBIN)/detNormalizedImfile.php \
    3435$(DESTBIN)/detNormalizedStatImfile.php \
     
    5859
    5960PICTURES = \
    60 $(DESTBIN)/PScolorlogo2.jpg \
    61 $(DESTBIN)/flat_1_0.b1.jpeg \
    62 $(DESTBIN)/flat_1_0.b2.jpeg \
    63 $(DESTBIN)/pic.png
     61$(DESTBIN)/PScolorlogo2.jpg
    6462
    65 DEMOPICS = \
    66 $(DESTBIN)/806237f.detresid.3.0.b1.jpg \
    67 $(DESTBIN)/806237f.detresid.3.0.b2.jpg \
    68 $(DESTBIN)/806238f.detresid.3.0.b1.jpg \
    69 $(DESTBIN)/806238f.detresid.3.0.b2.jpg \
    70 $(DESTBIN)/806239f.detresid.3.0.b1.jpg \
    71 $(DESTBIN)/806239f.detresid.3.0.b2.jpg \
    72 $(DESTBIN)/838749d.detresid.2.0.b1.jpg \
    73 $(DESTBIN)/838749d.detresid.2.0.b2.jpg \
    74 $(DESTBIN)/838790d.detresid.2.0.b1.jpg \
    75 $(DESTBIN)/838790d.detresid.2.0.b2.jpg \
    76 $(DESTBIN)/838791d.detresid.2.0.b1.jpg \
    77 $(DESTBIN)/838791d.detresid.2.0.b2.jpg \
    78 $(DESTBIN)/850131b.detresid.1.0.b1.jpg \
    79 $(DESTBIN)/850131b.detresid.1.0.b2.jpg \
    80 $(DESTBIN)/850132b.detresid.1.0.b1.jpg \
    81 $(DESTBIN)/850132b.detresid.1.0.b2.jpg \
    82 $(DESTBIN)/850133b.detresid.1.0.b1.jpg \
    83 $(DESTBIN)/850133b.detresid.1.0.b2.jpg
    84 
    85 php: $(RAWSRC) $(DEFSRC) $(PICTURES) $(DEMOPICS)
     63php: $(RAWSRC) $(DEFSRC) $(PICTURES)
    8664
    8765# dependancy rules for binary code #########################
  • trunk/ippMonitor/def/autocode.php

    r9016 r9439  
    44
    55$ID = checkID ();
    6 if ($ID['proj']) {
    7   $db = dbconnect($ID['proj']);
    8 } else {
    9   $db = dbconnect('detrend');
    10 }
     6
     7// require an explicit project
     8if (! $ID['proj']) { projectform ($ID); }
     9
     10$db = dbconnect($ID['proj']);
    1111
    1212if ($ID['menu']) {
     
    1616}
    1717
    18 menu($myMenu, '$TITLE', '$STYLE', $ID['link']);
     18menu($myMenu, '$TITLE', '$STYLE', $ID['link'], $ID['proj']);
    1919
    2020echo "<p> $TITLE </p>";
     
    2525// query the database
    2626if ($WHERE) {
    27   $sql = "SELECT $FIELDS FROM $TABLE WHERE $WHERE LIMIT 20";
     27  $sql = "SELECT $FIELDS FROM $TABLE WHERE $WHERE LIMIT 40";
    2828} else {
    29   $sql = "SELECT $FIELDS FROM $TABLE LIMIT 20";
     29  $sql = "SELECT $FIELDS FROM $TABLE LIMIT 40";
    3030}
    3131
  • trunk/ippMonitor/def/detNormalizedExp.d

    r9323 r9439  
    44MENU  ipp.detrend.dat
    55
    6 #     field     name     show   link to     extras
    7 FIELD det_id, 20,   det_id
    8 FIELD iteration, 20,   iteration
    9 FIELD bg, 20, bg
    10 FIELD bg_stdev, 20, bg_stdev
    11 FIELD bg_mean_stdev, 20, bg_mean_stdev
    12 FIELD b1_uri, 20,   b1_uri
    13 FIELD b2_uri, 20,   b2_uri
    14 FIELD recipe, 20,   recipe
     6#     field        size     name       show            link to                  extras
     7FIELD det_id,        7,     det_id
     8FIELD bg,            8,     backgnd
     9FIELD bg_mean_stdev, 8,     [stdev]
     10FIELD bg_stdev,      8,     stdev
     11FIELD iteration,     5,     iteration
     12FIELD b2_uri,        8,     image,     image=$b2_uri,  detNormalizedImfile.php, det_id=$det_id,iteration=$iteration,image=$b1_uri
     13#FIELD b1_uri, 20,   b1_uri
     14#FIELD recipe, 20,   recipe
  • trunk/ippMonitor/def/detNormalizedImfile.d

    r9323 r9439  
    44MENU  ipp.imfiles.dat
    55
    6 #     field     name     show   link to     extras
    7 FIELD det_id, 20,   det_id
    8 FIELD iteration, 20,   iteration
    9 FIELD class_id, 20,   class_id
    10 FIELD uri, 20,   uri
    11 FIELD bg, 20, bg
    12 FIELD bg_stdev, 20, bg_stdev
    13 FIELD bg_mean_stdev, 20, bg_mean_stdev
    14 FIELD b1_uri, 20,   b1_uri
    15 FIELD b2_uri, 20,   b2_uri
     6#     field          size name     show   link to     extras
     7FIELD det_id,          7, det_id
     8FIELD class_id,        8, class_id
     9FIELD bg,              8, backgnd
     10FIELD bg_stdev,        8, stdev
     11FIELD iteration,       5, iteration
     12#FIELD uri,           20, uri
     13#FIELD bg_mean_stdev, 20, bg_mean_stdev
     14#FIELD b1_uri,        20, b1_uri
     15#FIELD b2_uri,        20, b2_uri
     16
     17TAIL PHP insert_image ('image');
  • trunk/ippMonitor/def/detProcessedExp.d

    r9347 r9439  
    88FIELD exp_tag,   15,   Exposure,  value
    99FIELD b2_uri,     8,   image,     image=$b2_uri,  detProcessedImfile.php, det_id=$det_id,exp_tag=$exp_tag,image=$b1_uri
    10 FIELD bg,        10,   bg,        value
    11 FIELD bg_stdev,  10,   bg_stdev,  value
     10FIELD bg,         8,   backgnd,   value
     11FIELD bg_mean_stdev, 8, [stdev],  value
     12FIELD bg_stdev,   8,   stdev,     value
    1213FIELD recipe,    15,   Recipe,    value
    1314FIELD b1_uri,    20,   b1_uri,    none
    14 # FIELD bg_mean_stdev, 20, bg_mean_stdev
  • trunk/ippMonitor/def/detResidExp.d

    r9347 r9439  
    44MENU  ipp.detrend.dat
    55
    6 #     field     size     name       show            link to             extras
    7 FIELD det_id,     7,    Det ID,    value
    8 FIELD exp_tag,   15,    Exposure,  value,          rawImfile.php,      exp_tag=$exp_tag
    9 FIELD b2_uri,     8,    image,     image=$b2_uri,  detResidImfile.php, det_id=$det_id,iteration=$iteration,exp_tag=$exp_tag,image=$b1_uri
    10 FIELD bg,         8,    backgnd,   value
    11 FIELD bg_stdev,   8,     bg_stdev,  value
    12 FIELD iteration,  5,     iter,      value
    13 FIELD accept,     4,     keep,      value
    14 FIELD b1_uri,    20,     b1_uri,    none
    15 # FIELD bg_mean_stdev, 20,   bg_mean_stdev
    16 # FIELD recipe,          15,    recipe,    value
     6#     field        size    name       show            link to             extras
     7FIELD det_id,        7,    Det ID,    value
     8FIELD exp_tag,      15,    Exposure,  value,          rawImfile.php,      exp_tag=$exp_tag
     9FIELD b2_uri,        8,    image,     image=$b2_uri,  detResidImfile.php, det_id=$det_id,iteration=$iteration,exp_tag=$exp_tag,image=$b1_uri
     10FIELD bg,            8,    backgnd,   value
     11FIELD bg_mean_stdev, 8,    [stdev]
     12FIELD bg_stdev,      8,    stdev,     value
     13FIELD iteration,     5,    iter,      value
     14FIELD accept,        4,    keep,      value
     15FIELD b1_uri,       20,    b1_uri,    none
     16# FIELD recipe,     15,    recipe,    value
  • trunk/ippMonitor/def/detRun.d

    r9323 r9439  
    55
    66#     field      name         show    link to              extras
    7 FIELD position,  20,   det ID,      value,  detRunSummary.php,   det_id=$position
     7FIELD det_id,    20,   det ID,      value,  detRunSummary.php,   det_id=$det_id
    88FIELD iteration, 20,   iteration
    99FIELD det_type,  20,   det_type
  • trunk/ippMonitor/def/example.d

    r9136 r9439  
    99# the following WHERE clauses are added to all queries joined by AND
    1010WHERE detRunSummary.accept = 1
    11 WHERE detRun.position = detRunSummary.det_id
     11WHERE detRun.det_it = detRunSummary.det_id
    1212WHERE detRun.iteration = detRunSummary.iteration
    1313
     
    2626# SELECT detRunSummary.det_id,detRunSummary.iteration,detRunSummary.iteration,detRun.det_type,detRunSummary.bg,detRunSummary.bg_stdev \
    2727# FROM detRunSummary, detRun \
    28 # WHERE detRunSummary.accept = 1 AND detRun.position = detRunSummary.det_id AND detRun.iteration = detRunSummary.iteration \
     28# WHERE detRunSummary.accept = 1 AND detRun.det_id = detRunSummary.det_id AND detRun.iteration = detRunSummary.iteration \
    2929# LIMIT 20
  • trunk/ippMonitor/def/masterDetrendFrames.d

    r9011 r9439  
    99# the following WHERE clauses are added to all queries joined by AND
    1010WHERE detRunSummary.accept = 1
    11 WHERE detRun.position = detRunSummary.det_id
     11WHERE detRun.det_id = detRunSummary.det_id
    1212WHERE detRun.iteration = detRunSummary.iteration
    1313
    14 #     field                    width name          show         link to            extras
    15 FIELD detRunSummary.det_id,    7,    det_id,       value,       detRunSummary.php, det_id=$detRunSummary.det_id
     14#     field                    width name          show         link to                   extras
     15FIELD detRunSummary.det_id,    7,    det_id,       value,       detRunSummary.php,        det_id=$detRunSummary.det_id
    1616FIELD detRunSummary.iteration, 5,    iter
    1717FIELD detRun.det_type,         5,    type
    18 FIELD *,                       20,   choose,       value=files, masterDetrendImfiles.php, det_id=$detRunSummary.det_id,iteration=$detRunSummary.iteration
    19 FIELD *,                       20,   choose,       value=input, detInputExp.php,  det_id=$detRunSummary.det_id,iteration=$detRunSummary.iteration
    20 FIELD *,                       20,   choose,       value=resid, detResidExp.php,  det_id=$detRunSummary.det_id,iteration=$detRunSummary.iteration
     18FIELD *,                       20,   choose,       value=files, detNormalizedImfiles.php, det_id=$detRunSummary.det_id,iteration=$detRunSummary.iteration
     19FIELD *,                       20,   choose,       value=input, detInputExp.php,          det_id=$detRunSummary.det_id,iteration=$detRunSummary.iteration
     20FIELD *,                       20,   choose,       value=resid, detResidExp.php,          det_id=$detRunSummary.det_id,iteration=$detRunSummary.iteration
    2121FIELD detRunSummary.bg,        20,   bg
    2222FIELD detRunSummary.bg_stdev,  20,   bg_stdev
     
    2727# SELECT detRunSummary.det_id,detRunSummary.iteration,detRunSummary.iteration,detRun.det_type,detRunSummary.bg,detRunSummary.bg_stdev \
    2828# FROM detRunSummary, detRun \
    29 # WHERE detRunSummary.accept = 1 AND detRun.position = detRunSummary.det_id AND detRun.iteration = detRunSummary.iteration \
     29# WHERE detRunSummary.accept = 1 AND detRun.det_id = detRunSummary.det_id AND detRun.iteration = detRunSummary.iteration \
    3030# LIMIT 20
  • trunk/ippMonitor/raw/DetrendSteps.php

    r9008 r9439  
    55$ID = checkID ();
    66
    7 menu('ipp.detrend.dat', 'Detrend Steps', 'ipp.css', $ID['link']);
     7// require an explicit project
     8if (! $ID['proj']) { projectform ($ID); }
     9
     10menu('ipp.detrend.dat', 'Detrend Steps', 'ipp.css', $ID['link'], $ID['proj']);
    811
    912// document body
  • trunk/ippMonitor/raw/ImfileTables.php

    r8984 r9439  
    55$ID = checkID ();
    66
    7 menu('ipp.imfiles.dat', 'Imfile Tables', 'ipp.css', $ID['link']);
     7// require an explicit project
     8if (! $ID['proj']) { projectform ($ID); }
     9
     10menu('ipp.imfiles.dat', 'Imfile Tables', 'ipp.css', $ID['link'], $ID['proj']);
    811
    912// document body
  • trunk/ippMonitor/raw/LoadSetup.php

    r8984 r9439  
    55$ID = checkID ();
    66
    7 menu('ipp.copy.dat', 'Load and Setup', 'ipp.css', $ID['link']);
     7// require an explicit project
     8if (! $ID['proj']) { projectform ($ID); }
     9
     10menu('ipp.copy.dat', 'Load and Setup', 'ipp.css', $ID['link'], $ID['proj']);
    811
    912// document body
  • trunk/ippMonitor/raw/Login.php

    r8984 r9439  
    44
    55if (($_SERVER[REQUEST_METHOD] != 'POST') && ($_SERVER[REQUEST_METHOD] != 'GET')) {
    6   menu ('ipp.menu.dat', 'Login', 'ipp.css', '');
     6  menu ('ipp.menu.dat', 'Login', 'ipp.css', '', '');
    77  echo "Invalid Client Request<br>\n";
    88  menu_end ();
     
    1414  $ID = checkID ();
    1515
    16   menu ('ipp.menu.dat', 'Login', 'ipp.css', $ID['link']);
     16  menu ('ipp.menu.dat', 'Login', 'ipp.css', $ID['link'], $ID['proj']);
    1717
    1818  $pass = $ID['pass'];
     
    3434    $ID = checkLogin ();
    3535
    36     menu ('ipp.menu.dat', 'Login', 'ipp.css', $ID['link']);
     36    menu ('ipp.menu.dat', 'Login', 'ipp.css', $ID['link'], $ID['proj']);
    3737    echo "Login Accepted\n";
    3838    menu_end();
     
    4141
    4242  if (key_exists (logout, $_POST)) {
    43     menu ('ipp.menu.dat', 'Login', 'ipp.css', '');
     43    menu ('ipp.menu.dat', 'Login', 'ipp.css', '', '');
    4444    echo "You are now logged out<br>\n";
    4545    logintext ();
     
    5050
    5151  // missing a valid POST state (login or logout)
    52   menu ('ipp.menu.dat', 'Login', 'ipp.css', '');
     52  menu ('ipp.menu.dat', 'Login', 'ipp.css', '', '');
    5353  echo "Invalid Client Post Request<br>\n";
    5454  foreach ($_POST as $key => $value) {
  • trunk/ippMonitor/raw/ScienceSteps.php

    r8984 r9439  
    55$ID = checkID ();
    66
    7 menu('ipp.science.dat', 'Science Steps', 'ipp.css', $ID['link']);
     7// require an explicit project
     8if (! $ID['proj']) { projectform ($ID); }
     9
     10menu('ipp.science.dat', 'Science Steps', 'ipp.css', $ID['link'], $ID['proj']);
    811
    912// document body
  • trunk/ippMonitor/raw/SelectProject.php

    r9017 r9439  
    44
    55if (($_SERVER[REQUEST_METHOD] != 'POST') && ($_SERVER[REQUEST_METHOD] != 'GET')) {
    6   menu ('ipp.menu.dat', 'Select Project', 'ipp.css', '');
     6  menu ('ipp.menu.dat', 'Select Project', 'ipp.css', '', '');
    77  echo "Invalid Client Request<br>\n";
    88  menu_end ();
     
    1313
    1414if ($_SERVER[REQUEST_METHOD] == 'GET') {
    15     menu ('ipp.menu.dat', 'Select Project', 'ipp.css', '');
    16     echo "<p> Select the project of interest </p>\n";
    17     echo "<form action=\"$myPage\" method=\"POST\">\n";
    18     echo "Project: <input type=\"text\" name=\"proj\"><br>\n";
    19     echo "<input type=\"submit\" name=\"project\">\n";
    20 
    21     $pass = $ID['pass'];
    22     echo "<input type=\"hidden\" name=\"pass\" value=\"$pass\">\n";
    23     echo "</form>\n";
    24 
    25     menu_end ();
     15  projectform ($ID);
    2616}
    2717
     
    4030    }
    4131
    42     menu ('ipp.menu.dat', 'Select Project', 'ipp.css', $ID['link']);
     32    menu ('ipp.menu.dat', 'Select Project', 'ipp.css', $ID['link'], $ID['proj']);
    4333    echo "New project is : $myProj<br>\n";
    4434    menu_end();
  • trunk/ippMonitor/raw/ipp.copy.dat

    r9003 r9439  
    1515menulink  | menuselect   | link    | Login                        | Login.php     
    1616menulink  | menuselect   | link    | Select Project               | SelectProject.php     
     17menulink  | menuselect   | link    | [$PROJECT]                   | SelectProject.php     
    1718
    1819menutop   | menutop      | plain   | &nbsp;                       |
    19 menutop   | menutop      | link    | Load and Setup               | LoadSetup.php
     20menutops  | menutops     | link    | Load and Setup               | LoadSetup.php
    2021menutop   | menutop      | link    | Science Steps                | ScienceSteps.php
    2122menutop   | menutop      | link    | Detrend Steps                | DetrendSteps.php
     
    2829menulink  | menuselect   | link    | Raw Detrend Exp              | rawDetrendExp.php             
    2930menulink  | menuselect   | link    | Raw Science Exp              | rawScienceExp.php             
    30 
    31 menutop   | menutop      | plain   | &nbsp;                       |
    32 menutop   | menutop      | plain   | External Links               | none
    33 menutop   | menutop      | link    | test page                    | phptest.php     
  • trunk/ippMonitor/raw/ipp.css

    r8980 r9439  
    1010
    1111a.menutop     { text-decoration: none; color: #ffffff; font-weight: bold }
     12a.menutops    { text-decoration: none; color: #80f0ff; font-weight: bold }
    1213a.menuext     { text-decoration: none; color: #ffffff; font-weight: bold }
    1314a.menulink    { text-decoration: none; font-weight: normal; color: #000000}
     
    1617
    1718td.menutop    { text-align: left; background: #0080c0; font-size: small; color: #ffffff; padding: 2px; }
     19td.menutops   { text-align: left; background: #0080c0; font-size: small; color: #000000; padding: 2px; }
    1820td.menuext    { text-align: left; background: #303070; font-size: small; color: #ffffff; padding: 2px; }
    1921td.menulink   { text-align: left; background: #d0d0ff; font-size: small; color: #000000; padding: 2px; font-weight: normal; text-indent: 0px; }
  • trunk/ippMonitor/raw/ipp.detrend.dat

    r9347 r9439  
    1515menulink  | menuselect   | link    | Login                        | Login.php     
    1616menulink  | menuselect   | link    | Select Project               | SelectProject.php     
     17menulink  | menuselect   | link    | [$PROJECT]                   | SelectProject.php     
    1718
    1819menutop   | menutop      | plain   | &nbsp;                       |
    1920menutop   | menutop      | link    | Load and Setup               | LoadSetup.php
    2021menutop   | menutop      | link    | Science Steps                | ScienceSteps.php
    21 menutop   | menutop      | link    | Detrend Steps                | DetrendSteps.php
     22menutops  | menutops     | link    | Detrend Steps                | DetrendSteps.php
    2223menutop   | menutop      | link    | Imfile Tables                | ImfileTables.php
    2324
    2425menutop   | menutop      | plain   | &nbsp;                       |
    25 menulink  | menuselect   | link    | Master Detrend Frames        | masterDetrendFrames.php
    26 menulink  | menuselect   | link    | Master Detrend Imfiles       | masterDetrendImfiles.php
     26menulink  | menuselect   | link    | Detrend Frames               | masterDetrendFrames.php
    2727menulink  | menuselect   | link    | Detrend Runs                 | detRunSummary.php             
    2828menulink  | menuselect   | link    | Raw Detrend Exp              | rawDetrendExp_detrend.php
     
    3030menulink  | menuselect   | link    | Proc Detrend Exp             | detProcessedExp.php
    3131menulink  | menuselect   | link    | Resid Detrend Exp            | detResidExp.php
    32 
    33 menutop   | menutop      | plain   | &nbsp;                       |
    34 menutop   | menutop      | plain   | External Links               | none
    35 menutop   | menutop      | link    | test page                    | phptest.php
     32menulink  | menuselect   | link    | Norm Detrend Exp             | detNormalizedExp.php
  • trunk/ippMonitor/raw/ipp.imfiles.dat

    r9080 r9439  
    1515menulink  | menuselect   | link    | Login                        | Login.php     
    1616menulink  | menuselect   | link    | Select Project               | SelectProject.php     
     17menulink  | menuselect   | link    | [$PROJECT]                   | SelectProject.php     
    1718
    1819menutop   | menutop      | plain   | &nbsp;                       |
     
    2021menutop   | menutop      | link    | Science Steps                | ScienceSteps.php
    2122menutop   | menutop      | link    | Detrend Steps                | DetrendSteps.php
    22 menutop   | menutop      | link    | Imfile Tables                | ImfileTables.php
     23menutops  | menutops     | link    | Imfile Tables                | ImfileTables.php
    2324
    2425menutop   | menutop      | plain   | &nbsp;                       |
  • trunk/ippMonitor/raw/ipp.menu.dat

    r8984 r9439  
    1515menulink  | menuselect   | link    | Login                        | Login.php     
    1616menulink  | menuselect   | link    | Select Project               | SelectProject.php     
     17menulink  | menuselect   | link    | [$PROJECT]                   | SelectProject.php     
    1718
    1819menutop   | menutop      | plain   | &nbsp;                       |
     
    2122menutop   | menutop      | link    | Detrend Steps                | DetrendSteps.php
    2223menutop   | menutop      | link    | Imfile Tables                | ImfileTables.php
    23 
    24 menutop   | menutop      | plain   | &nbsp;                       |
    25 
    26 menutop   | menutop      | plain   | External Links               | none           
    27 menutop   | menutop      | link    | test page                    | phptest.php     
  • trunk/ippMonitor/raw/ipp.php

    r9347 r9439  
    1313  echo '<input type="submit" name="login" value="login">', "\n";
    1414  echo '</form>', "\n\n";
     15}
     16
     17function projectform ($ID) {
     18    menu ('ipp.menu.dat', 'Select Project', 'ipp.css', $ID['link'], $ID['proj']);
     19    echo "<p> Please select the project of interest </p>\n";
     20    echo "<form action=\"SelectProject.php\" method=\"POST\">\n";
     21    echo "Project: <input type=\"text\" name=\"proj\"><br>\n";
     22    echo "<input type=\"submit\" name=\"project\">\n";
     23
     24    $pass = $ID['pass'];
     25    echo "<input type=\"hidden\" name=\"pass\" value=\"$pass\">\n";
     26    echo "</form>\n";
     27
     28    menu_end ();
    1529}
    1630
     
    5468  $success = $qry->fetchInto($row);
    5569  if (!$success) { 
    56     menu ('ipp.menu.dat', 'Login', 'ipp.css', '');
     70    menu ('ipp.menu.dat', 'Login', 'ipp.css', '', '');
    5771    echo "Login Failed, please try again<br>\n";
    5872    loginform ();
     
    97111function checkID () {
    98112
     113  $VERBOSE = 0;
     114
    99115  // check for valid server method
    100116  if (($_SERVER[REQUEST_METHOD] != 'POST') && ($_SERVER[REQUEST_METHOD] != 'GET')) {
    101     menu ('ipp.menu.dat', 'Login', 'ipp.css', '');
     117    menu ('ipp.menu.dat', 'Login', 'ipp.css', '', '');
    102118    echo "Invalid Client Request<br>\n";
    103119    menu_end ();
     
    110126    $ID['proj'] = $_GET[proj];
    111127    $ID['menu'] = $_GET[menu];
    112     // echo "using GET: ", $ID['pass'], $ID['proj'];
    113 
    114     // echo "GET list<br>\n";
    115     // foreach ($_GET as $key => $value) {
    116     // echo "$key : $value<br>\n";
    117     // }
     128
     129    if ($VERBOSE) {
     130      echo "using GET: ", $ID['pass'], $ID['proj'], "<br>\n";
     131      echo "GET list<br>\n";
     132      foreach ($_GET as $key => $value) {
     133        echo "$key : $value<br>\n";
     134      }
     135    }
    118136  }
    119137  if ($_SERVER[REQUEST_METHOD] == 'POST') {
     
    121139    $ID['proj'] = $_POST[proj];
    122140    $ID['menu'] = $_POST[menu];
    123     // echo "using POST: ", $ID['pass'], $ID['proj'];
    124 
    125     // echo "POST list<br>\n";
    126     // foreach ($_POST as $key => $value) {
    127     // echo "$key : $value<br>\n";
    128     // }
     141
     142    if ($VERBOSE) {
     143      echo "using POST: ", $ID['pass'], $ID['proj'], "<br>\n";
     144      echo "POST list<br>\n";
     145      foreach ($_POST as $key => $value) {
     146        echo "$key : $value<br>\n";
     147      }
     148    }
    129149  }
    130150
    131151  // user is not logged in at all
    132152  if ($ID['pass'] == "") {
    133     menu('ipp.menu.dat', 'Login', 'ipp.css', '');
     153    menu('ipp.menu.dat', 'Login', 'ipp.css', '', '');
    134154    logintext ();   
    135155    loginform ();
     
    153173  $success = $qry->fetchInto($row);
    154174  if (! $success) {
    155     menu('ipp.menu.dat', 'Login', 'ipp.css', '');
     175    menu('ipp.menu.dat', 'Login', 'ipp.css', '', '');
    156176    echo "unknown user, please login again<br>\n";
    157177    loginform ();
     
    170190}
    171191
    172 function menu ($source, $title, $sheet, $append) {
     192function menu ($source, $title, $sheet, $append, $project) {
    173193
    174194  echo "<html><head><title> $title </title></head>\n\n";
     
    178198  $root = "/phpipp";
    179199
     200  if (! $project) { $project = "none"; }
     201
    180202  $file = fopen ($source, "r");
    181203
     
    190212    $name = trim($line[3]);
    191213    $base = trim($line[4]);
     214
     215    if (preg_match ('|\$PROJECT|', $name)) {
     216      $name = preg_replace ('|\$PROJECT|', $project, $name);
     217    }
    192218
    193219    if ($append) {
  • trunk/ippMonitor/raw/ipp.science.dat

    r9399 r9439  
    1515menulink  | menuselect   | link    | Login                        | Login.php     
    1616menulink  | menuselect   | link    | Select Project               | SelectProject.php     
     17menulink  | menuselect   | link    | [$PROJECT]                   | SelectProject.php     
    1718
    1819menutop   | menutop      | plain   | &nbsp;                       |
    1920menutop   | menutop      | link    | Load and Setup               | LoadSetup.php
    20 menutop   | menutop      | link    | Science Steps                | ScienceSteps.php
     21menutops  | menutops     | link    | Science Steps                | ScienceSteps.php
    2122menutop   | menutop      | link    | Detrend Steps                | DetrendSteps.php
    2223menutop   | menutop      | link    | Imfile Tables                | ImfileTables.php
     
    2930menulink  | menuselect   | link    | P2 Pending Exp               | p2PendingExp.php             
    3031menulink  | menuselect   | link    | P3 Pending Exp               | p3PendingExp.php             
    31 
    32 menutop   | menutop      | plain   | &nbsp;                       |
    33 menutop   | menutop      | plain   | External Links               | none           
    34 menutop   | menutop      | link    | test page                    | phptest.php     
  • trunk/ippMonitor/raw/masterDetrendImfiles.php

    r9080 r9439  
    44
    55$ID = checkID ();
    6 if ($ID['proj']) {
    7   $db = dbconnect($ID['proj']);
    8 } else {
    9   $db = dbconnect('detrend');
    10 }
     6// require an explicit project
     7if (! $ID['proj']) { projectform ($ID); }
     8
     9$db = dbconnect($ID['proj']);
    1110
    1211if ($ID['menu']) {
     
    1615}
    1716
    18 menu($myMenu, 'Master Detrend Imfiles', 'ipp.css', $ID['link']);
     17menu($myMenu, 'Master Detrend Imfiles', 'ipp.css', $ID['link'], $ID['proj']);
    1918
    2019echo "<p> Master Detrend Imfiles </p>";
  • trunk/ippMonitor/raw/phptest.php

    r8984 r9439  
    33include 'ipp.php';
    44
    5 menu('ipp.menu.dat', 'test.page', 'ipp.css', '');
     5menu('ipp.menu.dat', 'test.page', 'ipp.css', '', '');
    66
    77$varlist = array ('SERVER_NAME', 'GATEWAY_INTERFACE', 'SERVER_PROTOCOL',
Note: See TracChangeset for help on using the changeset viewer.