Subversion Repositories computer_asset_manager_v1

Rev

Blame | Last modification | View Log | Download | RSS feed

<?php 
   include_once( './sysinfo.php' );
   include_once( '../../header.php' );
   if ($_POST['filecontents']) {
      $results = processFileContents();
   } elseif ($_FILES['filename']) {
      $results = uploadFile();
   } elseif (UnknownEntries() > 0) {
      redirectPage('process_unknowns.html');
   }

?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" 
>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Computer Asset Management Program - SysInfo</title>
    <link rel="stylesheet" type="text/css" href="../../camp.css">
  </head>
  <body>
    <?php include_once('../../menu.php'); 
    ?>
    <div id="content">
      <h1>
         Manually Input Sysinfo 
      </h1>
      <h2>Choose one of the following</h2>
      <?php
         if ($results) {
      ?>
         <h3>Processing Results</h3>
         <pre><?php print $results; ?></pre>
      <?php } ?>
      <FORM action="<?php print $_SERVER['PHP_SELF']; ?>" method="POST" enctype="multipart/form-data">
        <table border="1">
          <tr>
            <td>
               Upload a file 
            </td>
            <td>
              <input type="file" name="filename" size="60">
            </td>
          </tr>
          <tr>
            <td>
               Copy/Paste file contents 
            </td>
            <td>
              <textarea name="filecontents" rows="10" cols="80"></textarea>
            </td>
          </tr>
          <tr>
            <td colspan="2" align="center">
              <input type="submit" />
            </td>
          </tr>
        </table>
      </form>
    </div>
  </body>
</html>