Subversion Repositories computer_asset_manager_v1

Rev

Rev 37 | Rev 48 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 rodolico 1
<?php include_once( 'header.php' ); ?>
2
<?xml version="1.0" encoding="utf-8"?>
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml">
5
<head>
6
  <title>Daily Data - Computer Asset Management Program</title>
7
  <link rel="stylesheet" type="text/css" href="camp.css">
8
</head>
9
<body>
10
<?php include_once('menu.php'); ?>
11
<div id="content">
12
   <?php 
13
      $device_id = $_GET['device_id']; 
14
      $data = queryDatabaseExtended(insertValuesIntoQuery(SQL_SHOW_DEVICE,array( 'device_id' => $device_id)));
15
      $data = $data['data'][0];
16
   ?>
17
 
18
<table>
19
   <tr>
20
      <td>
21
   <table border="1">
22
      <tr>
23
         <td>
24
            ID
25
         </td>
26
         <td>
27
            <?php print $data['ID']?>
28
         </td>
29
      </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>
32
   <tr><td>Name</td><td><?php print $data['Name']?></td></tr>
33
   <tr><td>Notes</td><td><?php print $data['Notes']?></td></tr>
37 rodolico 34
   <tr><td>Restrictions</td><td><?php print $data['Restrictions']?></td></tr>
1 rodolico 35
   <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>Removed</td><td><?php print $data['Removed']?></td></tr>
38
   </table>
39
   <td>
40
   </tr>
41
   <tr>
42
   <td>
43
   <?php
38 rodolico 44
      print screenReports( 'main device screen', array(  'device_id' => $device_id, // the device ID
45
                                                         'device_name' => $data['Name'],  // name of machine
46
                                                         'added_date' => $data['Added'], // date added
47
                                                         'removed_date' => $data['Removed'], // date removed
48
                                                         'count' => 5 ), // number of backup reports to show
1 rodolico 49
                            false
50
                                                   )
51
 
52
      /* Physical Attributes */
38 rodolico 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 );
1 rodolico 54
   ?>
55
   </td>
56
   </tr>
57
   </table>
58
</div>
59
 
60
</body>
61
</html>
62