Rev 1 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
<?php
include_once( './maintenance_library.php' );
include_once( '../../header.php' );
?>
<?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>Daily Data - Computer Asset Management Program</title>
<link rel="stylesheet" type="text/css" href="../../camp.css">
</head>
<body>
<?php include_once('../../menu.php'); ?>
<div id="content">
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="multipart/form-data">
<table border="1">
<tr>
<td colspan="2" align="center">
<?php
if ( $_POST['postmaintenance'] ) {
postMaintenance( $_POST['device'], $_POST['task'], $_POST['notes'], $_POST['technician'], $_POST['date'] );
print "Device " . $_POST['device'] . 'Updated';
}
?>
</td>
</tr>
<tr>
<td>Device</td>
<td>
<select name="device">
<?php print queryToSelect(getAllDevices(), $_POST['device'] ); ?>
</select>
</td>
</tr>
<tr>
<td>
Task
</td>
<td>
<select name="task">
<?php print queryToSelect('select maintenance_task_id,description from maintenance_task order by description', $_POST['task'] ); ?>
</select>
</td>
</tr>
<tr>
<td>
Notes
</td>
<td>
<textarea name="notes" rows="10" cols="50"><?php print $_POST['notes']; ?></textarea>
</td>
</tr>
<tr>
<td>
Performed By
</td>
<td valign='top'>
<select name="technician">
<?php print queryToSelect(getTechs(), "select " . $_SESSION['login_id'] ); ?>
</select>
</td>
</tr>
<tr>
<td>
Date
</td>
<td>
<input type='text' name='date' size="9" value="<?php print $_POST['date'] ? $_POST['date'] : date('Ymd'); ?>">
</td>
</tr>
<tr>
<td colspan="20" align="center">
<input type="submit" name="postmaintenance" value="Post Maintenance" />
</td>
</tr>
</table>
</form>
</div>
</body>
</html>