Sindbad~EG File Manager
<?
/*
Author: Michael Shiau
This code is available for public use with no legal restriction
5.1.2012, Beeson removed "codebase"
*/
if(isset($_POST['whichConstruction']))
$construct = $_POST['whichConstruction'];
else
$construct="EquilateralTriangle";
$euclid = array(
"Midpoint" => "Mid Point",
"EquilateralTriangle" => "Equilateral Triangle",
"CopySegment" => "Copy Segment" ,
"CopySegmentOntoLine" => "Copy Line Segment" ,
"CopySegmentOntoLine2" => "Copy Line Segment 2" ,
"BisectAngle" => "Bisect Angle" ,
"BisectSegment" => "Bisect Segment" ,
"BisectSegment2" => "Bisect Segment 2" ,
"ErectPerpendicular" => "Erect Perpendicular" ,
"DropPerpendicular" => "Drop Perpendicular" ,
"TriangleFromSegments" => "Triangle from Segment" ,
"CircleFromCenterAndRadius" => "Circle from Circle" ,
"CopyTriangle" => "Copy Triangle" ,
"CopyAngleToSegment" => "Copy Angle to Segment" ,
"ParallelThroughPoint" => "Parallel Through Point" ,
"ParallelogramEqualToTriangle" => "Parallelogram Equal to Triangle",
"ParallelogramOfGivenWidthEqualToTriangle" => "Parallelogram Width Equal to Triangle",
"Parallelogram2OfGivenWidthEqualToTriangle" => "Parallelogram Width Equal to Triangle 2",
"ParallelogramEqualToConvexPolygon" => "Parallelogram Equal to Convex Polygon",
"SquareOnGivenSide" => "Square on Given Side",
"SquareOnGivenSide2" => "Square on Given Sdie 2",
"CutSegmentInGoldenSection" => "Cut Segment Into Golden Section",
"SquareEqualToConvexPolygon" => "Square Equal to Convex Polygon",
"FindCenterOfCircle" => "Find Center of Circle",
"TangentToCircle" => "Tanget to Circle",
"CircleFromArc" => "Circle from Arc",
"BisectCircumference" => "Bisect Circumference",
"GivenSegmentAndAngleConstructCircle" => "Given Segment and Angle Construct Circle",
"GivenCircleAndAngleConstructArc" => "Given Circle And Angle Construct Arc",
"FitSegmentInCircle" => "Fit Segment In Circle",
"TriangleInCircle" => "Triangle In Circle",
"TriangleAroundCircle" => "Triangle Around Circle",
"CircleInTriangle" => "Circle in Triangle",
"CircleAroundTriangle" => "Circle Around Triangle",
"SquareInCircle" => "Square in Circle",
"SquareAroundCircle" => "Square Around Circle",
"CircleInSquare" => "Circle In Square",
"CircleAroundSquare" => "Circle Around Square",
"ConstructGoldenTriangle" => "Construct Golden Triangle",
"PentagonInCircle" => "Pentagon Around Circle",
"PentagonAroundCircle" => "Pentagon Around Circle",
"CircleInPentagon" => "Circle In Pentagon<",
"CircleAroundPentagon" => "Circle Around Pentagon",
"HexagonInCircle" => "Hexagon Inn Circle",
"FifteenGonInCircle" => "15-Gon In Circle",
"DivideSegmentIntoParts" => "Divide Segment Into Parts",
"SegmentOnLine" => "Segment On Line",
"ThirdProportional" => "Third Proportion",
"FourthProportional" => "Fourth Proportion",
"MeanProportional" => "Mean Proportion",
"SimilarConvexPolygonWithGivenSide" => "Similar Convex Polygon With Given Side");
?>
<div style="padding-top: 5px; padding-left: 10px; padding-right: 10px; padding-bottom: 30px">
<form action="../index.php?include=learning" method="post">
<table width="750" align="center" border="0" cellspacing="1" cellpadding="0">
<tr>
<td>
<h1>Here's a list of constructions you've learned that you can test:</h1></td>
</tr>
<tr>
<td>
<select name="whichConstruction">
<?
foreach($euclid as $key => $value){
if ($construct == $key) {
print "<option value='$key' SELECTED>$value</option>\n";
}
else {
print "<option value='$key'>$value</option>\n";
}
}
?>
</select>
<input name="Input" value="Test" type="submit" /></td>
</tr>
</table>
</form>
<div style="padding-top: 15px">
<table width="750" align="center" border="0" cellspacing="1" cellpadding="0">
<tr>
<td>
<div id="applet_container">
<applet code="org/dynamicgeometry/diagrammer/Diagrammer.class" width="550" height="350" name="Diagrammer">No support for applet tag.<PARAM NAME='testMode' VALUE='true'>
<?
if ($construct != "") {
print "<PARAM NAME='whichConstruction' VALUE='$construct'>";
}
?>
</applet>
</div>
</td>
<td> </td>
<td>
</td>
</tr>
</table>
</div>
</div>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists