64 lines
1.7 KiB
PHP
64 lines
1.7 KiB
PHP
<!DOCTYPE HTML>
|
|
<head>
|
|
<style type="text/css">td { text-align: left; } </style>
|
|
</head>
|
|
|
|
<html>
|
|
|
|
<h2>RepRap:
|
|
<?php print(getMyName()); ?>
|
|
<?php if(gotPassword()) echo ' <a href="http://reprappro.com" target="_blank"><img src="logo.png" alt="RepRapPro logo"></a>'; ?>
|
|
</h2><br><br>
|
|
<?php if(printLinkTable()) echo '<table><tr>
|
|
<td> <a href="control.php">Control</a> </td>
|
|
|
|
<td> <a href="print.php">Print</a> </td>
|
|
|
|
<td> <a href="http://reprap.org/wiki/RepRapPro_RepRap_Firmware" target="_blank">Help</a> </td>
|
|
|
|
|
|
<td> <a href="settings.php">Settings</a> </td>
|
|
|
|
<td> <a href="logout.php">Logout</a> </td>
|
|
|
|
</tr></table>
|
|
<br><br>'; ?>
|
|
|
|
<form action="print.php?upload=myFile"
|
|
enctype="multipart/form-data" method="post">
|
|
<p>
|
|
Upload a G Code file:<br>
|
|
<input type="file" name="datafile" size="40">
|
|
</p>
|
|
<div>
|
|
<input type="submit" value="Send">
|
|
</div>
|
|
</form>
|
|
|
|
<br><br>Click a file to print it:
|
|
<br><br>
|
|
|
|
<?php print(printGCodeTable()); ?>
|
|
|
|
<br><br>
|
|
<button type="button" onclick="return pausePrint()">Pause the print</button>
|
|
<br><br>
|
|
<hr>
|
|
<br>
|
|
<button type="button" onclick="return deleteFile()">Delete a file</button>
|
|
|
|
|
|
|
|
<script language="javascript" type="text/javascript">
|
|
|
|
function printFile(filetoprint){ window.location.href = "print.php?gcode=M23%20" + filetoprint + "%0AM24";}
|
|
|
|
function pausePrint(){ window.location.href = "print.php?gcode=M25";}
|
|
|
|
function deleteFile(){ window.location.href = "delete.php";}
|
|
|
|
|
|
</script>
|
|
|
|
</html>
|
|
|