IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12835 for trunk/ippMonitor/raw


Ignore:
Timestamp:
Apr 16, 2007, 3:21:41 PM (19 years ago)
Author:
eugene
Message:

updating to current db table layout

Location:
trunk/ippMonitor/raw
Files:
3 edited

Legend:

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

    r10621 r12835  
    5050}
    5151
     52table.select { text-align: left;
     53             font-size: small;
     54             font-weight: normal;
     55             background: #0080c0;
     56             border: 1px solid #0080c0;
     57             padding: 0px;
     58}
     59
     60td.select  {
     61           text-align: left;
     62           font-size: normal; 
     63           font-weight: bold; 
     64           vertical-align: top;
     65           color: #ffffff;
     66           background: #0080c0;
     67           background-color: #0080c0;
     68           border: 2px solid #0080c0;
     69           padding: 2px;
     70}
     71
     72th.select  {
     73           text-align: left;
     74           font-size: normal; 
     75           font-weight: bold; 
     76           vertical-align: top;
     77           color: #000000;
     78           background: #d0d0ff;
     79           background-color: #d0d0ff;
     80           border: 0px solid #0080c0;
     81           padding: 2px;
     82}
     83
    5284table.list { text-align: left;
    5385             font-size: small;
  • trunk/ippMonitor/raw/ipp.php

    r11490 r12835  
    2828    echo "</form>\n";
    2929
     30    $db = dbconnect('ippadmin');
     31
     32    // make this a DB lookup
     33    $sql = "SELECT projname FROM projects";
     34
     35    $qry = $db->query($sql);
     36    if (DB::iserror($db)) {
     37      echo "<b>error reading project list</b><br>\n";
     38      menu_end();
     39    }
     40 
     41    echo "<table class=select>\n";
     42    echo "<tr class=select><th class=select> projects </th></tr>\n";
     43    while ($qry->fetchInto($row)) {
     44      echo "<tr class=select><td class=select> $row[0] </td></tr>\n";
     45    }
     46    echo "</table>\n";
     47
    3048    menu_end ();
    3149}
     
    3452
    3553  // connect to the database
     54  // these should be set on installation
    3655  require_once('DB.php');
    37   $db = DB::connect("mysql://ipp:ipp@alala/$database");
     56  $password = "ipp";
     57  $username = "ipp";
     58  $hostname = "alala";
     59  $db = DB::connect("mysql://$username:$password@$hostname/$database");
    3860  if (DB::iserror($db)) {
    3961    echo "<b>error accessing database</b><br>\n";
    40     echo "<b>tried mysql://ipp:ipp@localhost/ipp</b><br>\n";
     62    echo "<b>tried mysql://$username:$password@$hostname/$database</b><br>\n";
    4163    menu_end();
    4264  }
     
    5779  $db = dbconnect('ippadmin');
    5880
    59   // make this a DB lookup
     81  // get the users from the DB
    6082  $sql = "SELECT username FROM users WHERE username = '$username' AND password = '$password'";
    6183
     
    227249    }
    228250       
    229     $this = $_SERVER[SCRIPT_NAME];
     251    $thisname = $_SERVER[SCRIPT_NAME];
    230252    $page = "$root/" . $base;
    231     if ($page == $this) {
     253    if ($page == $thisname) {
    232254        $style = trim($line[1]);
    233255    } else {
  • trunk/ippMonitor/raw/ipp.science.dat

    r12083 r12835  
    2727
    2828menutop   | menutop      | plain   | &nbsp;                       |
    29 menulink  | menuselect   | plain   | Guide Processed Exp          |
     29menutop   | menuselect   | plain   | Guide Processed Exp          |
    3030menulink  | menuselect   | link    | Chip Processed Exp           | chipProcessedExp.php           
    3131menulink  | menuselect   | link    | Cam Processed Exp            | camProcessedExp.php           
    3232menutop   | menutop      | plain   | &nbsp;                       |
    33 menulink  | menuselect   | link    | Guide Pending Exp            | guidePendingExp.php             
     33menutop   | menuselect   | plain   | Guide Pending Exp            | guidePendingExp.php             
    3434menulink  | menuselect   | link    | Chip Pending Exp             | chipPendingExp.php             
    3535menulink  | menuselect   | link    | Cam Pending Exp              | camPendingExp.php             
Note: See TracChangeset for help on using the changeset viewer.