Subversion Repositories computer_asset_manager_v1

Rev

Rev 48 | Rev 62 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 48 Rev 49
Line 17... Line 17...
17
   
17
   
18
<table>
18
<table>
19
   <tr>
19
   <tr>
20
      <td>
20
      <td>
21
   <table border="1">
21
   <table border="1">
22
      <tr>
22
      <?php
23
         <td>
-
 
24
            ID
23
         foreach ( $data as $key => $value ) {
25
         </td>
-
 
26
         <td>
-
 
27
            <?php print $data['ID']?>
24
            print "<tr><td>$key</td><td>$value</td></tr>\n";
28
         </td>
25
         }
29
      </tr>
26
      ?>
30
   <tr><td>Site</td><td><?php print $data['Site']?></td></tr>
-
 
31
   <tr><td>Type</td><td><?php print $data['Type']?></td></tr>
-
 
32
   <tr><td>Name</td><td><?php print $data['Name']?></td></tr>
-
 
33
   <tr><td>Serial Number</td><td><?php print $data['Serial']?></td></tr>
-
 
34
   <tr><td>Notes</td><td><?php print $data['Notes']?></td></tr>
-
 
35
   <tr><td>Restrictions</td><td><?php print $data['Restrictions']?></td></tr>
-
 
36
   <tr><td>Part Of</td><td><?php print $data['Part Of']?></td></tr>
-
 
37
   <tr><td>Added</td><td><?php print $data['Added']?></td></tr>
-
 
38
   <tr><td>Removed</td><td><?php print $data['Removed']?></td></tr>
-
 
39
   </table>
27
   </table>
40
   <td>
28
   <td>
41
   </tr>
29
   </tr>
42
   <tr>
30
   <tr>
43
   <td>
31
   <td>
44
   <?php
32
   <?php
-
 
33
      print screenReports( 'main device screen', array(  'device_id' => $device_id, // the device ID
-
 
34
                                                         'device_name' => $data['Name'],  // name of machine
-
 
35
                                                         'added_date' => $data['Added'], // date added
-
 
36
                                                         'removed_date' => $data['Removed'], // date removed
-
 
37
                                                         'count' => 5 ), // number of backup reports to show
-
 
38
                            false
-
 
39
                                                   );
-
 
40
      
45
      $sql = insertValuesIntoQuery(SQL_GET_MODULES,array( 'screen' => 'device view'));
41
      $sql = insertValuesIntoQuery(SQL_GET_MODULES,array( 'screen' => 'device view'));
46
      $modules = queryDatabaseExtended( $sql );
42
      $modules = queryDatabaseExtended( $sql );
47
      if ( $modules ) {
43
      if ( $modules ) {
48
         $modules = $modules['data'];
44
         $modules = $modules['data'];
49
         $parameters = array( 'device_id' => $device_id );
45
         $parameters = array( 'device_id' => $device_id );
Line 58... Line 54...
58
                  print "<div><h4>$module</h4>$content</div>\n";
54
                  print "<div><h4>$module</h4>$content</div>\n";
59
            }
55
            }
60
         }
56
         }
61
      }
57
      }
62
      
58
      
63
      
-
 
64
      print screenReports( 'main device screen', array(  'device_id' => $device_id, // the device ID
-
 
65
                                                         'device_name' => $data['Name'],  // name of machine
-
 
66
                                                         'added_date' => $data['Added'], // date added
-
 
67
                                                         'removed_date' => $data['Removed'], // date removed
-
 
68
                                                         'count' => 5 ), // number of backup reports to show
-
 
69
                            false
-
 
70
                                                   );
-
 
71
      
-
 
72
      /* Physical Attributes */
-
 
73
      //print queryToTable( 'select attrib.name,device_attrib.value from device_attrib join attrib using (attrib_id) where device_attrib.removed_date is null and device_id = ' . $device_id );
-
 
74
   ?>
59
   ?>
75
   </td>
60
   </td>
76
   </tr>
61
   </tr>
77
   </table>
62
   </table>
78
</div>
63
</div>