59 lines
1.4 KiB
PHP
59 lines
1.4 KiB
PHP
<!DOCTYPE HTML>
|
|
<head>
|
|
<style type="text/css">td { text-align: center; } </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>'; ?>
|
|
|
|
|
|
|
|
|
|
<br><br>
|
|
<br><br>Click a file to delete it:
|
|
<br><br>
|
|
|
|
<?php print(deleteGCodeTable()); ?>
|
|
|
|
<br><br>
|
|
|
|
|
|
<script language="javascript" type="text/javascript">
|
|
|
|
|
|
function deleteFile(filetodelete)
|
|
{
|
|
var temp = new Array();
|
|
temp = filetodelete.split('/');
|
|
var r=confirm("Delete the file " + temp[temp.length - 1] + " ?");
|
|
if(r == true)
|
|
window.location.href = "delete.php?gcode=M30%20" + filetodelete;
|
|
else
|
|
window.location.href = "delete.php";
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</html>
|
|
|