IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38259 for trunk/ippMonitor


Ignore:
Timestamp:
May 13, 2015, 10:12:08 AM (11 years ago)
Author:
eugene
Message:

add project-based backgrounds

Location:
trunk/ippMonitor/raw
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/raw/ipp.css

    r28718 r38259  
    55 */
    66
    7 body  {
     7body.default  {
     8    background-color: #a0d0e0;
     9    padding: 5px;
     10    margin: 5px
     11}
     12
     13body.gpc1  {
     14    background-color: #a0d0e0;
     15    padding: 5px;
     16    margin: 5px
     17}
     18
     19body.gpc2  {
    820    background-color: #a0d0e0;
    921    padding: 5px;
  • trunk/ippMonitor/raw/ipp.php

    r38258 r38259  
    297297function menu ($source, $title, $sheet, $append, $project) {
    298298
     299  $root = "/ippMonitor";
     300  if (! $project) { $project = "none"; }
     301
     302  $bodyclass = "default";
     303  if ("$project" == "gpc1") { $bodyclass = "gpc1"; }
     304  if ("$project" == "gpc2") { $bodyclass = "gpc2"; }
     305
    299306  echo "<html>\n";
    300307  head($title);
    301308  echo "<link rel=\"STYLESHEET\" HREF=\"$sheet\">\n";
    302   echo "<body>\n";
    303 
    304   $root = "/ippMonitor";
    305 
    306   if (! $project) { $project = "none"; }
     309  echo "<body class=$bodyclass>\n";
    307310
    308311  // these are defined in site.php
Note: See TracChangeset for help on using the changeset viewer.