Commit 50a1bd7b by zekena

final stuff

parent ec0c4c73
...@@ -75,16 +75,13 @@ if ($_POST['submit']) { ...@@ -75,16 +75,13 @@ if ($_POST['submit']) {
</nav> </nav>
<div id="side-menu" class="side-nav"> <div id="side-menu" class="side-nav">
<a href="#" class="btn-close" onclick="closeSlideMenu()">&times;</a> <a href="#" class="btn-close" onclick="closeSlideMenu()">&times;</a>
<a href="#">About Us</a> <a href="categories/length.php">Length</a>
<a href=" length.php">Length</a> <a href="categories/temperature.php">Temperature</a>
<a href=" temperature.php">Temperature</a> <a href="categories/area.php">Area</a>
<a href=" area.php">Area</a> <a href="categories/volume.php">Volume</a>
<a href=" volume.php">Volume</a> <a href="categories/weight.php">Weight</a>
<a href=" weight.php">Weight</a> <a href="categories/speed.php">Speed</a>
<a href="login/login.php">Log in</a>
<a href=" speed.php">Speed</a>
<a href="../login">Log in</a>
<a href="../login/signup.php">Sign up</a>
</div> </div>
...@@ -104,31 +101,71 @@ if ($_POST['submit']) { ...@@ -104,31 +101,71 @@ if ($_POST['submit']) {
Be able to input number from either box.--> Be able to input number from either box.-->
<input id="Input" class="Input-text" placeholder="Enter amount" name="from_value" value="<?php echo $from_value; ?>" />&nbsp; <label for="Input" class="Input-label">Your entry</label> <input id="Input" class="Input-text" placeholder="Enter amount" name="from_value" value="<?php echo $from_value; ?>" />&nbsp; <label for="Input" class="Input-label">Your entry</label>
<select name="from_unit"> <select name="from_unit">
<option value="square_inches"<?php if($from_unit == 'square_inches') { echo " selected"; } ?>>square inches</option> <option value="square_inches" <?php if ($from_unit == 'square_inches') {
<option value="square_feet"<?php if($from_unit == 'square_feet') { echo " selected"; } ?>>square feet</option> echo " selected";
<option value="square_yards"<?php if($from_unit == 'square_yards') { echo " selected"; } ?>>square yards</option> } ?>>square inches</option>
<option value="square_miles"<?php if($from_unit == 'square_miles') { echo " selected"; } ?>>square miles</option> <option value="square_feet" <?php if ($from_unit == 'square_feet') {
<option value="square_millimeters"<?php if($from_unit == 'square_millimeters') { echo " selected"; } ?>>square millimeters</option> echo " selected";
<option value="square_centimeters"<?php if($from_unit == 'square_centimeters') { echo " selected"; } ?>>square centimeters</option> } ?>>square feet</option>
<option value="square_meters"<?php if($from_unit == 'square_meters') { echo " selected"; } ?>>square meters</option> <option value="square_yards" <?php if ($from_unit == 'square_yards') {
<option value="square_kilometers"<?php if($from_unit == 'square_kilometers') { echo " selected"; } ?>>square kilometers</option> echo " selected";
<option value="acres"<?php if($from_unit == 'acres') { echo " selected"; } ?>>acres</option> } ?>>square yards</option>
<option value="hectares"<?php if($from_unit == 'hectares') { echo " selected"; } ?>>hectares</option> <option value="square_miles" <?php if ($from_unit == 'square_miles') {
echo " selected";
} ?>>square miles</option>
<option value="square_millimeters" <?php if ($from_unit == 'square_millimeters') {
echo " selected";
} ?>>square millimeters</option>
<option value="square_centimeters" <?php if ($from_unit == 'square_centimeters') {
echo " selected";
} ?>>square centimeters</option>
<option value="square_meters" <?php if ($from_unit == 'square_meters') {
echo " selected";
} ?>>square meters</option>
<option value="square_kilometers" <?php if ($from_unit == 'square_kilometers') {
echo " selected";
} ?>>square kilometers</option>
<option value="acres" <?php if ($from_unit == 'acres') {
echo " selected";
} ?>>acres</option>
<option value="hectares" <?php if ($from_unit == 'hectares') {
echo " selected";
} ?>>hectares</option>
</select> </select>
<br> <br>
<input readonly id="Input" class="Input-text" placeholder="Wait for it" name="to_value" value=" <?php echo $to_value; ?>" />&nbsp; <input readonly id="Input" class="Input-text" placeholder="Wait for it" name="to_value" value=" <?php echo $to_value; ?>" />&nbsp;
<label for="Input" class="input-label">Converted Result</label> <label for="Input" class="input-label">Converted Result</label>
<select name="to_unit"> <select name="to_unit">
<option value="square_inches"<?php if($to_unit == 'square_inches') { echo " selected"; } ?>>square inches</option> <option value="square_inches" <?php if ($to_unit == 'square_inches') {
<option value="square_feet"<?php if($to_unit == 'square_feet') { echo " selected"; } ?>>square feet</option> echo " selected";
<option value="square_yards"<?php if($to_unit == 'square_yards') { echo " selected"; } ?>>square yards</option> } ?>>square inches</option>
<option value="square_miles"<?php if($to_unit == 'square_miles') { echo " selected"; } ?>>square miles</option> <option value="square_feet" <?php if ($to_unit == 'square_feet') {
<option value="square_millimeters"<?php if($to_unit == 'square_millimeters') { echo " selected"; } ?>>square millimeters</option> echo " selected";
<option value="square_centimeters"<?php if($to_unit == 'square_centimeters') { echo " selected"; } ?>>square centimeters</option> } ?>>square feet</option>
<option value="square_meters"<?php if($to_unit == 'square_meters') { echo " selected"; } ?>>square meters</option> <option value="square_yards" <?php if ($to_unit == 'square_yards') {
<option value="square_kilometers"<?php if($to_unit == 'square_kilometers') { echo " selected"; } ?>>square kilometers</option> echo " selected";
<option value="acres"<?php if($to_unit == 'acres') { echo " selected"; } ?>>acres</option> } ?>>square yards</option>
<option value="hectares"<?php if($to_unit == 'hectares') { echo " selected"; } ?>>hectares</option> <option value="square_miles" <?php if ($to_unit == 'square_miles') {
echo " selected";
} ?>>square miles</option>
<option value="square_millimeters" <?php if ($to_unit == 'square_millimeters') {
echo " selected";
} ?>>square millimeters</option>
<option value="square_centimeters" <?php if ($to_unit == 'square_centimeters') {
echo " selected";
} ?>>square centimeters</option>
<option value="square_meters" <?php if ($to_unit == 'square_meters') {
echo " selected";
} ?>>square meters</option>
<option value="square_kilometers" <?php if ($to_unit == 'square_kilometers') {
echo " selected";
} ?>>square kilometers</option>
<option value="acres" <?php if ($to_unit == 'acres') {
echo " selected";
} ?>>acres</option>
<option value="hectares" <?php if ($to_unit == 'hectares') {
echo " selected";
} ?>>hectares</option>
</select> </select>
<div id="reset" class="button"> <div id="reset" class="button">
<input type="submit" name="submit" value="Submit" /> <input type="submit" name="submit" value="Submit" />
......
...@@ -133,17 +133,13 @@ function length_options(){ ...@@ -133,17 +133,13 @@ function length_options(){
</nav> </nav>
<div id="side-menu" class="side-nav"> <div id="side-menu" class="side-nav">
<a href="#" class="btn-close" onclick="closeSlideMenu()">&times;</a> <a href="#" class="btn-close" onclick="closeSlideMenu()">&times;</a>
<a href="#">About Us</a> <a href="categories/length.php">Length</a>
<a href=" length.php">Length</a> <a href="categories/temperature.php">Temperature</a>
<a href=" temperature.php">Temperature</a> <a href="categories/area.php">Area</a>
<a href=" area.php">Area</a> <a href="categories/volume.php">Volume</a>
<a href=" volume.php">Volume</a> <a href="categories/weight.php">Weight</a>
<a href=" weight.php">Weight</a> <a href="categories/speed.php">Speed</a>
<a href="login/login.php">Log in</a>
<a href=" speed.php">Speed</a>
<a href="../login/index.html">Log in</a>
<a href="../login/index.html">Sign up</a>
</div> </div>
<script src="../js/slide.js"></script> <script src="../js/slide.js"></script>
......
...@@ -64,16 +64,13 @@ $speed_options = array( ...@@ -64,16 +64,13 @@ $speed_options = array(
</nav> </nav>
<div id="side-menu" class="side-nav"> <div id="side-menu" class="side-nav">
<a href="#" class="btn-close" onclick="closeSlideMenu()">&times;</a> <a href="#" class="btn-close" onclick="closeSlideMenu()">&times;</a>
<a href="#">About Us</a> <a href="categories/length.php">Length</a>
<a href=" length.php">Length</a> <a href="categories/temperature.php">Temperature</a>
<a href=" temperature.php">Temperature</a> <a href="categories/area.php">Area</a>
<a href=" area.php">Area</a> <a href="categories/volume.php">Volume</a>
<a href=" volume.php">Volume</a> <a href="categories/weight.php">Weight</a>
<a href=" weight.php">Weight</a> <a href="categories/speed.php">Speed</a>
<a href="login/login.php">Log in</a>
<a href=" speed.php">Speed</a>
<a href="../login">Log in</a>
<a href="../login/signup.php">Sign up</a>
</div> </div>
......
...@@ -111,16 +111,13 @@ $temp_options = array( ...@@ -111,16 +111,13 @@ $temp_options = array(
</nav> </nav>
<div id="side-menu" class="side-nav"> <div id="side-menu" class="side-nav">
<a href="#" class="btn-close" onclick="closeSlideMenu()">&times;</a> <a href="#" class="btn-close" onclick="closeSlideMenu()">&times;</a>
<a href="#">About Us</a> <a href="categories/length.php">Length</a>
<a href=" length.php">Length</a> <a href="categories/temperature.php">Temperature</a>
<a href=" temperature.php">Temperature</a> <a href="categories/area.php">Area</a>
<a href=" area.php">Area</a> <a href="categories/volume.php">Volume</a>
<a href=" volume.php">Volume</a> <a href="categories/weight.php">Weight</a>
<a href=" weight.php">Weight</a> <a href="categories/speed.php">Speed</a>
<a href="login/login.php">Log in</a>
<a href=" speed.php">Speed</a>
<a href="../login">Log in</a>
<a href="../login/signup.php">Sign up</a>
</div> </div>
......
...@@ -79,16 +79,13 @@ $volume_options = array( ...@@ -79,16 +79,13 @@ $volume_options = array(
</nav> </nav>
<div id="side-menu" class="side-nav"> <div id="side-menu" class="side-nav">
<a href="#" class="btn-close" onclick="closeSlideMenu()">&times;</a> <a href="#" class="btn-close" onclick="closeSlideMenu()">&times;</a>
<a href="#">About Us</a> <a href="categories/length.php">Length</a>
<a href=" length.php">Length</a> <a href="categories/temperature.php">Temperature</a>
<a href=" temperature.php">Temperature</a> <a href="categories/area.php">Area</a>
<a href=" area.php">Area</a> <a href="categories/volume.php">Volume</a>
<a href=" volume.php">Volume</a> <a href="categories/weight.php">Weight</a>
<a href=" weight.php">Weight</a> <a href="categories/speed.php">Speed</a>
<a href="login/login.php">Log in</a>
<a href=" speed.php">Speed</a>
<a href="../login">Log in</a>
<a href="../login/signup.php">Sign up</a>
</div> </div>
......
...@@ -117,16 +117,13 @@ $mass_options = array( ...@@ -117,16 +117,13 @@ $mass_options = array(
</nav> </nav>
<div id="side-menu" class="side-nav"> <div id="side-menu" class="side-nav">
<a href="#" class="btn-close" onclick="closeSlideMenu()">&times;</a> <a href="#" class="btn-close" onclick="closeSlideMenu()">&times;</a>
<a href="#">About Us</a> <a href="categories/length.php">Length</a>
<a href=" length.php">Length</a> <a href="categories/temperature.php">Temperature</a>
<a href=" temperature.php">Temperature</a> <a href="categories/area.php">Area</a>
<a href=" area.php">Area</a> <a href="categories/volume.php">Volume</a>
<a href=" volume.php">Volume</a> <a href="categories/weight.php">Weight</a>
<a href=" weight.php">Weight</a> <a href="categories/speed.php">Speed</a>
<a href="login/login.php">Log in</a>
<a href=" speed.php">Speed</a>
<a href="../login">Log in</a>
<a href="../login/signup.php">Sign up</a>
</div> </div>
......
...@@ -107,7 +107,6 @@ $message = ''; ...@@ -107,7 +107,6 @@ $message = '';
</nav> </nav>
<div id="side-menu" class="side-nav"> <div id="side-menu" class="side-nav">
<a href="#" class="btn-close" onclick="closeSlideMenu()">&times;</a> <a href="#" class="btn-close" onclick="closeSlideMenu()">&times;</a>
<a href="#">About Us</a>
<a href="categories/length.php">Length</a> <a href="categories/length.php">Length</a>
<a href="categories/temperature.php">Temperature</a> <a href="categories/temperature.php">Temperature</a>
<a href="categories/area.php">Area</a> <a href="categories/area.php">Area</a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment