Subversion Repositories computer_asset_manager_v1

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 rodolico 1
<?php 
2
   include_once( './sysinfo.php' );
3
   include_once( '../../header.php' );
4
   if ($_POST['filecontents']) {
5
      $results = processFileContents();
6
   } elseif ($_FILES['filename']) {
7
      $results = uploadFile();
8
   } elseif (UnknownEntries() > 0) {
9
      redirectPage('process_unknowns.html');
10
   }
11
 
12
?>
13
<?xml version="1.0" encoding="utf-8"?>
14
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" 
15
>
16
<html xmlns="http://www.w3.org/1999/xhtml">
17
  <head>
18
    <title>Computer Asset Management Program - SysInfo</title>
19
    <link rel="stylesheet" type="text/css" href="../../camp.css">
20
  </head>
21
  <body>
22
    <?php include_once('../../menu.php'); 
23
    ?>
24
    <div id="content">
25
      <h1>
26
         Manually Input Sysinfo 
27
      </h1>
28
      <h2>Choose one of the following</h2>
29
      <?php
30
         if ($results) {
31
      ?>
32
         <h3>Processing Results</h3>
33
         <pre><?php print $results; ?></pre>
34
      <?php } ?>
35
      <FORM action="<?php print $_SERVER['PHP_SELF']; ?>" method="POST" enctype="multipart/form-data">
36
        <table border="1">
37
          <tr>
38
            <td>
39
               Upload a file 
40
            </td>
41
            <td>
42
              <input type="file" name="filename" size="60">
43
            </td>
44
          </tr>
45
          <tr>
46
            <td>
47
               Copy/Paste file contents 
48
            </td>
49
            <td>
50
              <textarea name="filecontents" rows="10" cols="80"></textarea>
51
            </td>
52
          </tr>
53
          <tr>
54
            <td colspan="2" align="center">
55
              <input type="submit" />
56
            </td>
57
          </tr>
58
        </table>
59
      </form>
60
    </div>
61
  </body>
62
</html>