<?php require("/public/slipb/web/Templates/http.phtml"); ?>
<html>
<head>
<!-- Pull in data header -->
<?php require("/public/slipb/web/Templates/meta.phtml"); ?>
</head>
<body>
<!-- Pull in layout header -->
<?php require("/public/slipb/web/Templates/header.phtml"); ?>

<!-- BEGIN PAGE CONTENT -->

<?php 
	if($command==$null){
		$command=0;
	}else{
		echo "<h1>Command Sent</h1>";
	}
			
	$fp = fopen("command","w+");
	$command_str = sprintf("%d",$command);
	fputs($fp,$command_str);
	fclose($fp);
	

?>
		


<h1>Demo User-interface</h1>

<p>This is a demonstration of the user interface to the robot pet via a 
normal Web browser. The buttons below send signals to the robot and it 
decides what to do based on the commands it recieves and its mood, as with 
any pet.</p>

<center>
<table>
<tr>
        <td><a href="index.phtml?command=5">
							<img src="../images/feed.gif" alt="feed"></a></td>
				<td><a href="index.phtml?command=1">
							<img src="../images/forward.gif" alt="forward"></a></td>
</tr>
<tr>
        <td><a href="index.phtml?command=6">
							<img src="../images/excite.gif" alt="excite"></a></td>
        <td><a href="index.phtml?command=2">
							<img src="../images/backward.gif" alt="backward"></a></td>
</tr>
<tr>
        <td><a href="index.phtml?command=7">
							<img src="../images/relax.gif" alt="excite"></a></td>
        <td><a href="index.phtml?command=3">
							<img src="../images/left.gif" alt="left"></a></td>
</tr>
<tr>
        <td></td>
        <td><a href="index.phtml?command=4">
							<img src="../images/right.gif" alt="left"></a></td>
</tr>


</table>

 <!-- END PAGE CONTENT -->

<!-- Pull in layout footer -->
<?php require("/public/slipb/web/Templates/footer.phtml"); ?>
</body>
</html>
