Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Multiply test

  • Loading branch information...
commit 95ea7c0c122c4bc040ae2ac37b7d1f3ee5f7c2d8 1 parent 087a557
@hroncok hroncok authored
Showing with 8 additions and 5 deletions.
  1. +8 −5 php/index.php
View
13 php/index.php
@@ -1,9 +1,10 @@
<?php
function putForm() {
//echo "<p>Not in a working state.</p>";
- echo "<p>Upload your STL file (<a href=\"http://fabmetheus.crsndoo.com/wiki/index.php/Skeinforge#File_Formats\" title=\"Supported filetypes\" >or other</a>) and watch the magic.</p>";
- echo "<form action=\"/\" method=\"post\" enctype=\"multipart/form-data\">";
- echo " <p><input type=\"file\" name=\"file\" id=\"file\" /> <select name=\"profile\" id=\"profile\"><option value=\".none\" selected=\"selected\">Choose a profile...</option>";
+ echo "<p>Upload your STL file (<a href=\"http://fabmetheus.crsndoo.com/wiki/index.php/Skeinforge#File_Formats\" title=\"Supported filetypes\" >or other</a>) and watch the magic.</p>\n";
+ echo "<form action=\"/\" method=\"post\" enctype=\"multipart/form-data\">\n";
+ echo " <p><input type=\"file\" name=\"file\" id=\"file\" /></p>\n";
+ echo " <p><select name=\"profile\" id=\"profile\"><option value=\".none\" selected=\"selected\">Choose a profile...</option>";
if ($handle = opendir('../prefdir/profiles/extrusion')) {
$profiles = array();
while ($profiles[] = readdir($handle));
@@ -15,9 +16,11 @@ function putForm() {
}
}
} else {
- echo " <p><strong>Error:</strong> Cannot open profiles dir.</p>";
+ echo " <p><strong>Error:</strong> Cannot open profiles dir.</p>\n";
}
- echo "</select> <input type=\"submit\" name=\"submit\" value=\"Upload\" /></p>";
+ echo "</select></p>\n";
+ echo "<p>Multiply: <input type=\"number\" name=\"rows\" id=\"rows\" value=\"1\" min=\"1\" max=\"50\"> &times <input type=\"number\" name=\"columns\" id=\"columns\" value=\"1\" min=\"1\" max=\"50\"></p>\n";
+ echo "<p><input type=\"submit\" name=\"submit\" value=\"Upload\" /></p>\n";
echo "</form>";
}
?>
Please sign in to comment.
Something went wrong with that request. Please try again.