Line 28... |
Line 28... |
28 |
</td>
|
28 |
</td>
|
29 |
</tr>
|
29 |
</tr>
|
30 |
<tr><td>Site</td><td><?php print $data['Site']?></td></tr>
|
30 |
<tr><td>Site</td><td><?php print $data['Site']?></td></tr>
|
31 |
<tr><td>Type</td><td><?php print $data['Type']?></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>
|
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>
|
33 |
<tr><td>Notes</td><td><?php print $data['Notes']?></td></tr>
|
34 |
<tr><td>Notes</td><td><?php print $data['Notes']?></td></tr>
|
34 |
<tr><td>Restrictions</td><td><?php print $data['Restrictions']?></td></tr>
|
35 |
<tr><td>Restrictions</td><td><?php print $data['Restrictions']?></td></tr>
|
35 |
<tr><td>Part Of</td><td><?php print $data['Part Of']?></td></tr>
|
36 |
<tr><td>Part Of</td><td><?php print $data['Part Of']?></td></tr>
|
36 |
<tr><td>Added</td><td><?php print $data['Added']?></td></tr>
|
37 |
<tr><td>Added</td><td><?php print $data['Added']?></td></tr>
|
37 |
<tr><td>Removed</td><td><?php print $data['Removed']?></td></tr>
|
38 |
<tr><td>Removed</td><td><?php print $data['Removed']?></td></tr>
|
Line 39... |
Line 40... |
39 |
<td>
|
40 |
<td>
|
40 |
</tr>
|
41 |
</tr>
|
41 |
<tr>
|
42 |
<tr>
|
42 |
<td>
|
43 |
<td>
|
43 |
<?php
|
44 |
<?php
|
- |
|
45 |
$sql = insertValuesIntoQuery(SQL_GET_MODULES,array( 'screen' => 'device view'));
|
- |
|
46 |
$modules = queryDatabaseExtended( $sql );
|
- |
|
47 |
if ( $modules ) {
|
- |
|
48 |
$modules = $modules['data'];
|
- |
|
49 |
$parameters = array( 'device_id' => $device_id );
|
- |
|
50 |
foreach ( $modules as $report ) {
|
- |
|
51 |
$module = $report['module'];
|
- |
|
52 |
list($library, $function ) = explode (':', $report['path'] . $report['script']);
|
- |
|
53 |
//print "$library - $function<br />\n";
|
- |
|
54 |
require_once "$library";
|
- |
|
55 |
if ( is_callable( $function ) ) {
|
- |
|
56 |
$content = call_user_func( $function, $parameters );
|
- |
|
57 |
if ( $content )
|
- |
|
58 |
print "<div><h4>$module</h4>$content</div>\n";
|
- |
|
59 |
}
|
- |
|
60 |
}
|
- |
|
61 |
}
|
- |
|
62 |
|
- |
|
63 |
|
44 |
print screenReports( 'main device screen', array( 'device_id' => $device_id, // the device ID
|
64 |
print screenReports( 'main device screen', array( 'device_id' => $device_id, // the device ID
|
45 |
'device_name' => $data['Name'], // name of machine
|
65 |
'device_name' => $data['Name'], // name of machine
|
46 |
'added_date' => $data['Added'], // date added
|
66 |
'added_date' => $data['Added'], // date added
|
47 |
'removed_date' => $data['Removed'], // date removed
|
67 |
'removed_date' => $data['Removed'], // date removed
|
48 |
'count' => 5 ), // number of backup reports to show
|
68 |
'count' => 5 ), // number of backup reports to show
|
49 |
false
|
69 |
false
|
50 |
)
|
70 |
);
|
51 |
|
71 |
|
52 |
/* Physical Attributes */
|
72 |
/* Physical Attributes */
|
53 |
//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 );
|
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 );
|
54 |
?>
|
74 |
?>
|
55 |
</td>
|
75 |
</td>
|