| Line 1... | Line 1... | 
          
            | 1 | <?php 
 | 1 | <?php 
 | 
          
            | - |   | 2 |    /* Revision History:
 | 
          
            | - |   | 3 |     * 20161217 RWR
 | 
          
            | - |   | 4 |     *    Added indicator on mouseover of system if it is a DOMU or a DOM0
 | 
          
            | - |   | 5 |     *    showing the relationship.
 | 
          
            | - |   | 6 |     */
 | 
          
            | 2 |    include_once( './maintenance_library.php' );
 | 7 |    include_once( './maintenance_library.php' );
 | 
          
            | 3 |    include_once( '../../header.php' ); 
 | 8 |    include_once( '../../header.php' ); 
 | 
          
            | 4 | ?>
 | 9 | ?>
 | 
          
            | 5 | <?xml version="1.0" encoding="utf-8"?>
 | 10 | <?xml version="1.0" encoding="utf-8"?>
 | 
          
            | 6 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 | 11 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 | 
          
            | Line 50... | Line 55... | 
          
            | 50 |                   $currentDevice = $thisRow['Device Name'];
 | 55 |                   $currentDevice = $thisRow['Device Name'];
 | 
          
            | 51 |                   if ( $thisRow['Restrictions'] ) {
 | 56 |                   if ( $thisRow['Restrictions'] ) {
 | 
          
            | 52 |                      $currentDevice .= '<span class="restrictions"> - ' . $thisRow['Restrictions'] . '</span>';
 | 57 |                      $currentDevice .= '<span class="restrictions"> - ' . $thisRow['Restrictions'] . '</span>';
 | 
          
            | 53 |                   }
 | 58 |                   }
 | 
          
            | 54 |                   $notes = $thisRow['Device Notes'];
 | 59 |                   $notes = $thisRow['Device Notes'];
 | 
          
            | - |   | 60 |                   $title = $notes;
 | 
          
            | - |   | 61 |                   $xenRelationships = getDOMUDOM0( $thisRow['Device ID'] );
 | 
          
            | - |   | 62 |                   if ( $xenRelationships ) {
 | 
          
            | - |   | 63 |                      if ( $xenRelationships['id'] ) { // a DOMU
 | 
          
            | - |   | 64 |                         $title .= "<br />\n--DOMU on " . $xenRelationships['name'];
 | 
          
            | - |   | 65 |                      } else { // a DOM0
 | 
          
            | - |   | 66 |                         $title .= "<br />\n++DOM0 containing following virtuals";
 | 
          
            | - |   | 67 |                         foreach ( $xenRelationships as $domu ) {
 | 
          
            | - |   | 68 |                            $title .= "<br />\n    " . $domu['name'];
 | 
          
            | - |   | 69 |                         }
 | 
          
            | - |   | 70 |                      } // if..else
 | 
          
            | - |   | 71 |                   } // if $xenRelationships
 | 
          
            | - |   | 72 |                   $title = removeBlankLines(cleanLineReturn( $title ));
 | 
          
            | - |   | 73 |                   
 | 
          
            | 55 |                   // put the stuff to convert notes to correct format, 

 

 | 74 |                   // put the stuff to convert notes to correct format, 

 

 | 
          
            | 56 |                   print "<tr><td colspan='20' align='left' title='$notes'>$currentDevice</td></tr>\n";
 | 75 |                   print "<tr><td colspan='20' align='left' title='$title'>$currentDevice</td></tr>\n";
 | 
          
            | 57 |                }
 | 76 |                }
 | 
          
            | 58 |                ?>
 | 77 |                ?>
 | 
          
            | 59 |                <tr>
 | 78 |                <tr>
 | 
          
            | 60 |                   <td valign='top' width='50' align='right'>
 | 79 |                   <td valign='top' width='50' align='right'>
 | 
          
            | 61 |                      <INPUT type='checkbox' name='performed_<?php print $thisRow['ID']; ?>'>
 | 80 |                      <INPUT type='checkbox' name='performed_<?php print $thisRow['ID']; ?>'>
 |