IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29709


Ignore:
Timestamp:
Nov 8, 2010, 2:54:38 PM (16 years ago)
Author:
rhenders
Message:

now showing rate plots; reformatting

File:
1 edited

Legend:

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

    r29676 r29709  
    103103echo "</form>\n";
    104104
    105 echo "<table>\n";
    106 echo "<tr>\n";
    107 echo "<td>\n";
    108 echo "<img src=\"czartool_getplot.php?type=t&label=$selectedLabel&stage=$selectedStage&plottype=$plotType\"><br>";
    109 echo "</td>\n";
    110 
    111 echo "<td> \n";
    112 createLabelsTable($pass, $proj, $czardb, "stdscience", $stdsLabels, $distLabels, $pubLabels, $stages, $states, "new", $selectedLabel, $selectedStage, $plotType);
    113 echo "</td>\n";
    114 echo "</tr>\n";
    115 
    116 echo "<tr>\n";
    117 echo "<td>\n";
    118 echo "<img src=\"czartool_getplot.php?type=h&label=$selectedLabel&stage=$selectedStage&plottype=linear\"><br>";
    119 echo "</td>\n";
    120 
    121 echo "<td> \n";
    122 createLabelsTable($pass, $proj, $czardb, "update", $updateLabels, $distLabels, $pubLabels, $stages, $states, "new", $selectedLabel, $selectedStage, $plotType);
    123 echo "</td>\n";
    124 echo "</tr>\n";
    125 
    126 echo "<tr>\n";
    127 echo "<table>\n";
    128 echo "<tr valign=top>\n";
    129 echo "<td> \n";
    130 echo "<img src=\"czartool_getplot.php?type=s\"><br>";
    131 echo "</td>\n";
    132 echo "<td>\n";
    133 createServersTable($pass, $proj,$czardb, $servers, $selectedLabel, $selectedStage, $plotType);
    134 echo "</td>\n";
    135 
    136 echo "<td> \n";
    137 $today = date("Y-m-d");
    138 showSummitData($gpc1db, $today);
    139 echo "</td>\n";
    140 echo "</tr>\n";
    141 echo "<tr>\n";
    142 echo "<td>\n";
    143 # This is awful
    144 echo "<table border=\"1\"><tr><td colspan=\"2\"><b>Databases Replication Status</b></td></tr>";
    145 echo "<tr><td colspan=\"2\">Update fix log <a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/Replication_Issues\">here</a></td></tr>";
    146 echo "<tr><td>Database</td><td>Replication Status</td></tr>";
    147 showReplicationsStatus($REPL_HOST_GPC1, $REPL_USER_GPC1, $REPL_PASSWORD_GPC1, $REPL_DBNAME_GPC1);
    148 showReplicationsStatus($REPL_HOST_NEBULOUS, $REPL_USER_NEBULOUS, $REPL_PASSWORD_NEBULOUS, $REPL_DBNAME_NEBULOUS);
    149 echo "</table>";
    150 echo "</td>\n";
    151 echo "</tr>\n";
    152 echo "</table>\n";
    153 
    154 echo "<table>\n";
    155 echo "<tr valign=top>\n";
    156 echo "<td> \n";
    157 echo "</td>\n";
    158 echo "<td>\n";
    159 if ($selectedServer && !$serverCmd) showServerStatus($selectedServer);
    160 echo "</td>\n";
    161 echo "</tr>\n";
    162 echo "</table>\n";
    163 echo "</tr>\n";
    164 echo "</table>\n";
     105  echo "<table>\n";
     106
     107
     108  # 1st row
     109    echo "<tr>\n";
     110      echo "<td> \n";
     111        echo "<table>\n";
     112          echo "<tr valign=center>\n";
     113            echo "<td> \n";
     114              # timeseries plot
     115              echo "<img src=\"czartool_getplot.php?type=t&label=$selectedLabel&stage=$selectedStage&plottype=$plotType\"><br>";
     116            echo "</td>\n";
     117            echo "<td>\n";
     118              createLabelsTable($pass,
     119                      $proj,
     120                      $czardb,
     121                      "stdscience",
     122                      $stdsLabels,
     123                      $distLabels,
     124                      $pubLabels,
     125                      $stages,
     126                      $states,
     127                      "new",
     128                      $selectedLabel,
     129                      $selectedStage,
     130                      $plotType);
     131            echo "</td>\n";
     132          echo "</tr>\n";
     133        echo "</table>\n";
     134      echo "</td> \n";
     135    echo "</tr>\n";
     136
     137
     138
     139    # 2nd row
     140    echo "<tr>\n";
     141      echo "<td> \n";
     142        echo "<table>\n";
     143          echo "<tr valign=center>\n";
     144            echo "<td> \n";
     145              # rate plot
     146              echo "<img src=\"czartool_getplot.php?type=r&label=$selectedLabel&stage=$selectedStage&plottype=linear\"><br>";
     147            echo "</td>\n";
     148            echo "<td>\n";
     149            createLabelsTable($pass,
     150                    $proj,
     151                    $czardb,
     152                    "update",
     153                    $updateLabels,
     154                    $distLabels,
     155                    $pubLabels,
     156                    $stages,
     157                    $states,
     158                    "new",
     159                    $selectedLabel,
     160                    $selectedStage,
     161                    $plotType);
     162            echo "</td>\n";
     163          echo "</tr>\n";
     164        echo "</table>\n";
     165      echo "</td> \n";
     166    echo "</tr>\n";
     167
     168
     169    # 3rd row
     170    echo "<tr>\n";
     171      echo "<td> \n";
     172        echo "<table>\n";
     173          echo "<tr valign=top>\n";
     174            echo "<td> \n";
     175              # histogram plot
     176              echo "<img src=\"czartool_getplot.php?type=h&label=$selectedLabel&stage=$selectedStage&plottype=linear\"><br>";
     177            echo "</td>\n";
     178            echo "<td>\n";
     179              createServersTable($pass, $proj,$czardb, $servers, $selectedLabel, $selectedStage, $plotType);
     180            echo "</td>\n";
     181
     182            echo "<td> \n";
     183              $today = date("Y-m-d");
     184              showSummitData($gpc1db, $today);
     185            echo "</td>\n";
     186          echo "</tr>\n";
     187        echo "</table>\n";
     188      echo "</td> \n";
     189    echo "</tr>\n";
     190
     191
     192    # 4th row
     193    echo "<tr>\n";
     194      echo "<td>\n";
     195        echo "<table>\n";
     196          echo "<tr valign=top>\n";
     197            echo "<td> \n";
     198              # storage plot
     199              echo "<img src=\"czartool_getplot.php?type=s\"><br>";
     200            echo "</td>\n";
     201            echo "<td>\n";
     202            # This is awful
     203              echo "<table border=\"1\"><tr><td colspan=\"2\"><b>Databases Replication Status</b></td></tr>";
     204                echo "<tr><td colspan=\"2\">Update fix log <a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/Replication_Issues\">here</a></td></tr>";
     205                echo "<tr><td>Database</td><td>Replication Status</td></tr>";
     206                showReplicationsStatus($REPL_HOST_GPC1, $REPL_USER_GPC1, $REPL_PASSWORD_GPC1, $REPL_DBNAME_GPC1);
     207                showReplicationsStatus($REPL_HOST_NEBULOUS, $REPL_USER_NEBULOUS, $REPL_PASSWORD_NEBULOUS, $REPL_DBNAME_NEBULOUS);
     208              echo "</table>";
     209            echo "</td>\n";
     210          echo "</tr>\n";
     211        echo "</table>\n";
     212      echo "</td> \n";
     213    echo "</tr>\n";
     214
     215    # 5th row
     216    echo "<tr>\n";
     217      echo "<td> \n";
     218        echo "<table>\n";
     219          echo "<tr valign=top>\n";
     220            echo "<td> \n";
     221              # server output
     222              if ($selectedServer && !$serverCmd) showServerStatus($selectedServer);
     223            echo "</td>\n";
     224            echo "<td>\n";
     225            echo "</td>\n";
     226          echo "</tr>\n";
     227        echo "</table>\n";
     228      echo "</td> \n";
     229    echo "</tr>\n";
     230
     231    #echo "<tr>\n";
     232     # echo "<td>\n";
     233    #  echo "<table>\n";
     234     #   echo "<tr valign=top>\n";
     235      #    echo "<td> \n";
     236       #   echo "</td>\n";
     237        #  echo "<td>\n";
     238         #   if ($selectedServer && !$serverCmd) showServerStatus($selectedServer);
     239        #  echo "</td>\n";
     240        #echo "</tr>\n";
     241      #echo "</table>\n";
     242 
     243           
     244     # echo "</td>\n";
     245    #echo "</tr>\n";
     246  echo "</table>\n";
    165247
    166248menu_end();
Note: See TracChangeset for help on using the changeset viewer.