IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13566 for trunk/ippMonitor/def


Ignore:
Timestamp:
May 30, 2007, 6:13:58 PM (19 years ago)
Author:
eugene
Message:

various updates to the user interface: sorting, respect table selections, etc

Location:
trunk/ippMonitor/def
Files:
4 edited

Legend:

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

    r10963 r13566  
    2727
    2828// get the result table count
    29 if ($WHERE) {
    30   $sql = "SELECT count(*) FROM $TABLE WHERE $WHERE";
    31 } else {
    32   $sql = "SELECT count(*) FROM $TABLE";
    33 }
     29$sql = "SELECT count(*) FROM $TABLE $WHERE";
     30
    3431$qry = $db->query($sql);
    3532if (DB::iserror($db)) {
     
    5350
    5451// query the database
    55 if ($WHERE) {
    56   $sql = "SELECT $FIELDS FROM $TABLE WHERE $WHERE LIMIT $dTABLE OFFSET $rowStart";
    57 } else {
    58   $sql = "SELECT $FIELDS FROM $TABLE LIMIT $dTABLE OFFSET $rowStart";
    59 }
     52$sql = "SELECT $FIELDS FROM $TABLE $WHERE LIMIT $dTABLE OFFSET $rowStart";
    6053
    6154$qry = $db->query($sql);
     
    6760// ** HEAD CODE **
    6861
    69 if ($rowStart > 0) {
    70   $value = 0;
    71   $link = "$FILE" . "?" . $ID['link'] . "&from=$value";
    72   echo "<a width=10 class=\"button\" href=\"$link\">&#60&#60</a>\n";
    73 } else {
    74   echo "&#60&#60\n";
    75 }
    76 if ($rowStart >= $dTABLE) {
    77   $value = $rowStart - $dTABLE;
    78   $link = "$FILE" . "?" . $ID['link'] . "&from=$value";
    79   echo "<a class=\"button\" href=\"$link\">&#60</a>\n";
    80 } else {
    81   echo "&#60\n";
    82 }
    83 
    84 if ($rowLast < $rowTotal) {
    85   $value = $rowStart + $dTABLE;
    86   $link = "$FILE" . "?" . $ID['link'] . "&from=$value";
    87   echo "<a class=\"button\" href=\"$link\">&#62</a>\n";
    88 } else {
    89   echo "&#62\n";
    90 }
    91 
    92 if ($rowLast < $rowTotal) {
    93   $value = $rowTotal - $dTABLE;
    94   $link = "$FILE" . "?" . $ID['link'] . "&from=$value";
    95   echo "<a class=\"button\" href=\"$link\">&#62&#62</a>\n";
    96 } else {
    97   echo "&#62&#62\n";
    98 }
     62// ** BUTTON RESTRICTIONS **
     63navigate_buttons ($rowStart, $rowLast, $dTABLE, $rowTotal, $buttonLink, $ID, '$FILE');
    9964
    10065echo "&nbsp; : &nbsp; or enter start row: <input type=\"text\" name=\"from\" size=\"5\" value=\"$rowStart\">\n";
     
    10469echo "<tr>\n";
    10570// ** TABLE HEADER **
    106 // echo "<th class=list> FIELD </th>\n";
    10771echo "</tr>\n";
    10872
     
    11781  // $link = "$FILE" . "?expID=" . $row[0] . "&" . $ID['link'];
    11882
     83  $class = "list";
     84  // ** TD CLASS **
     85
    11986  echo "<tr>\n";
    12087  // ** TABLE DATA **
    121   // echo "<td class=list><a href=\"$link\"> $row[0] </a></td>\n";
    122   // echo "<td class=list> $row[1] </td>\n";
    12388  echo "</tr>\n";
    12489}
  • trunk/ippMonitor/def/detInputExp.d

    r13264 r13566  
    44MENU  ipp.detrend.dat
    55
    6 ARGS  ARG1  exp_tag=$exp_tag
     6ARGS  ARG1  rawImfile.exp_tag=$detInputExp.exp_tag
    77
    8 ARGS  ARG2  exp_tag=$exp_tag
    9 ARGS  ARG2  det_id=$det_id
    10 ARGS  ARG2  iteration=$iteration
     8ARGS  ARG2  detResidImfile.exp_tag=$detInputExp.exp_tag
     9ARGS  ARG2  detResidImfile.det_id=$detInputExp.det_id
     10ARGS  ARG2  detResidImfile.iteration=$detInputExp.iteration
    1111
    12 #     field      width  name        show         link to                 extras
    13 FIELD det_id,    7,     det_id
    14 FIELD exp_tag,   20,    exposure,   value,       rawImfile.php,          ARG1
    15 FIELD iteration, 5,     iteration
    16 FIELD include,   7,     include
    17 FIELD *,         5,     resid,      value=goto,  detResidImfile.php,     ARG2
    18 FIELD *,         5,     proc,       value=goto,  detProcessedImfile.php, ARG2
     12ARGS  ARG2  detProcessedImfile.exp_tag=$detInputExp.exp_tag
     13ARGS  ARG2  detProcessedImfile.det_id=$detInputExp.det_id
     14ARGS  ARG2  detProcessedImfile.iteration=$detInputExp.iteration
    1915
     16#     field                  width      name        show         link to                 extras
     17FIELD detInputExp.det_id,    7,         det_id
     18FIELD detInputExp.exp_tag,   20,        exposure,   value,       rawImfile.php,          ARG1
     19FIELD detInputExp.iteration, 5,         iteration
     20FIELD detInputExp.include,   7,         include
     21FIELD *,                     5,         choose,     value=resid, detResidImfile.php,     ARG2
     22FIELD *,                     5,         choose,     value=proc,  detProcessedImfile.php, ARG3
     23
  • trunk/ippMonitor/def/detResidExp.d

    r13264 r13566  
    3131FIELD detResidExp.path_base,    20,   path_base,  none
    3232FIELD rawExp.camera,            20,   camera,     none
     33
     34TD_CLASS list_off $detResidExp.accept == 0
  • trunk/ippMonitor/def/masterDetrendFrames.d

    r13264 r13566  
    1212WHERE detRun.iteration = detRunSummary.iteration
    1313
    14 ARGS  ARG1 det_id=$detRunSummary.det_id
     14ARGS  ARG1 detRunSummary.det_id=$detRunSummary.det_id
    1515
    16 ARGS  ARG2 det_id=$detRunSummary.det_id
    17 ARGS  ARG2 iteration=$detRunSummary.iteration
     16ARGS  ARG2 detInputExp.det_id=$detRunSummary.det_id
     17ARGS  ARG2 detInputExp.iteration=$detRunSummary.iteration
     18
     19ARGS  ARG3 detProcessedExp.det_id=$detRunSummary.det_id
     20
     21ARGS  ARG4 detResidExp.det_id=$detRunSummary.det_id
     22ARGS  ARG4 detResidExp.iteration=$detRunSummary.iteration
    1823
    1924#     field                    width name          show         link to                   extras
     
    2126FIELD detRunSummary.iteration, 5,    iter
    2227FIELD detRun.det_type,         5,    type
    23 FIELD *,                       20,   choose,       value=files, detNormalizedImfiles.php, ARG2
    2428FIELD *,                       20,   choose,       value=input, detInputExp.php,          ARG2
    25 FIELD *,                       20,   choose,       value=resid, detResidExp.php,          ARG2
     29FIELD *,                       20,   choose,       value=proc,  detProcessedExp.php,      ARG3
     30FIELD *,                       20,   choose,       value=resid, detResidExp.php,          ARG4
    2631FIELD detRunSummary.bg,        20,   bg
    2732FIELD detRunSummary.bg_stdev,  20,   bg_stdev
Note: See TracChangeset for help on using the changeset viewer.