Subversion Repositories computer_asset_manager_v1

Rev

Rev 1 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 rodolico 1
<?php
2
   include_once( './maintenance_library.php' );
3
   include_once( '../../header.php' ); 
4
?>
5
<?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">
7
<html xmlns="http://www.w3.org/1999/xhtml">
8
<head>
9
  <title>Daily Data - Computer Asset Management Program</title>
10
  <link rel="stylesheet" type="text/css" href="../../camp.css">
11
</head>
12
<body>
13
<?php include_once('../../menu.php'); ?>
14
<div id="content">
15
   <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="multipart/form-data">
16
      <table border="1">
17
         <tr>
18
            <td colspan="2" align="center">
19
            <?php
20
               if ( $_POST['postmaintenance'] ) {
21
                  postMaintenance( $_POST['device'], $_POST['task'], $_POST['notes'], $_POST['technician'], $_POST['date']  );
22
                  print "Device " . $_POST['device'] . 'Updated';
23
               }
24
            ?>
25
            </td>
26
         </tr>
27
         <tr>
28
            <td>Device</td>
29
            <td>
30
               <select name="device">
85 rodolico 31
                  <?php print queryToSelect(getAllDevices(), $_POST['device'] ); ?>
1 rodolico 32
               </select>
33
            </td>
34
         </tr>
35
         <tr>
36
            <td>
37
               Task
38
            </td>
39
            <td>
40
               <select name="task">
41
                  <?php print queryToSelect('select maintenance_task_id,description from maintenance_task order by description', $_POST['task'] ); ?>
42
               </select>
43
            </td>
44
         </tr>
45
         <tr>
46
            <td>
47
               Notes
48
            </td>
49
            <td>
50
               <textarea name="notes" rows="10" cols="50"><?php print $_POST['notes']; ?></textarea>
51
            </td>
52
         </tr>
53
         <tr>
54
            <td>
55
               Performed By
56
            </td>
57
            <td valign='top'>
58
               <select name="technician">
85 rodolico 59
                  <?php print queryToSelect(getTechs(), "select " . $_SESSION['login_id'] ); ?>
1 rodolico 60
               </select>
61
            </td>
62
         </tr>
63
         <tr>
64
            <td>
65
               Date
66
            </td>
67
            <td>
68
               <input type='text' name='date' size="9" value="<?php print $_POST['date'] ? $_POST['date'] : date('Ymd'); ?>">
69
            </td>
70
         </tr>
71
         <tr>
72
            <td colspan="20" align="center">
73
               <input type="submit" name="postmaintenance" value="Post Maintenance" />
74
            </td>
75
         </tr>
76
      </table>
77
   </form>
78
</div>
79
 
80
</body>
81
</html>
82