<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Programiraje 1 - Seminarska 2 - Vid Grosek - Pretvorba Merskih Dolžin</title> <link href="styles.css" rel="stylesheet" type="text/css"> <link href="https://fonts.googleapis.com/css?family=Special+Elite" rel="stylesheet"> </head> <body> <!-- Logotip in moji podatki --> <div class="euroSola"> <img class="center" src="img/erudio.jpg" alt="Logo Erudio" > <ul> <li>Programiranja 1 : Seminarska 2</li> <li>Pripravil : Vid Grosek</li> </ul> <p class="center"> Koda: </p> <ul> <li><a href="https://drive.google.com/file/d/1OtaY6ZUIR_3lbqRrGY6-l8jRb2u_25-I/view?usp=sharing">Diagram Poteka</a></li> <li><a href="http://estudent05.kalvarija.net/projekt2/htmlkoda.html">HTML</a></li> <li>Javascript : </li> <li><a href="http://estudent05.kalvarija.net/projekt2/csskoda.html">CSS</a></li> <li><a href="http://estudent05.kalvarija.net/projekt2/phpkoda.html">PHP</a></li> </ul> </div> <!-- Header --> <div id="glavno"> <h1>Pretvorba Merjenje dolžin</h1> <form action="" method="post"> <!-- Option Tabela - OD V formu je php formula, ki po tem ko klikneš submit obdrži options, ki si jih izbral --> <div class="entry"> <label>Vnesi mero:</label>&nbsp; <input type="text" name="odValute" value="<?php echo $odValute; ?>" />&nbsp; <select name="odVpisaneSt"> <option value="palcev"<?php if($odEnote == 'palcev') { echo " selected"; } ?>>palcev</option> <option value="cevelj"<?php if($odEnote == 'cevelj') { echo " selected"; } ?>>cevelj</option> <option value="jardov"<?php if($odEnote == 'jardov') { echo " selected"; } ?>>jardov</option> <option value="milj"<?php if($odEnote == 'milj') { echo " selected"; } ?>>milj</option> <option value="milimetri"<?php if($odEnote == 'milimetri') { echo " selected"; } ?>>milimetri</option> <option value="centimetri"<?php if($odEnote == 'centimetri') { echo " selected"; } ?>>centimetri</option> <option value="metri"<?php if($odEnote == 'metri') { echo " selected"; } ?>>metri</option> <option value="kilometri"<?php if($odEnote == 'kilometri') { echo " selected"; } ?>>kilometri</option> </select> </div> <!-- Option Table - DO V formu je php formula, ki po tem ko klikneš submit obdrži options, ki si jih izbral --> <div class="entry"> <label>Izpis nove mere :</label>&nbsp; <input id="hello1" type="text" name="doValute" value="<?php echo $doValute; ?>" />&nbsp; <select name="doVpisaneSt"> <option value="palcev"<?php if($doEnote == 'palcev') { echo " selected"; } ?>>palcev</option> <option value="cevelj"<?php if($doEnote == 'cevelj') { echo " selected"; } ?>>cevelj</option> <option value="jardov"<?php if($doEnote == 'jardov') { echo " selected"; } ?>>jardov</option> <option value="milj"<?php if($doEnote == 'milj') { echo " selected"; } ?>>milj</option> <option value="milimetri"<?php if($doEnote == 'milimetri') { echo " selected"; } ?>>milimetri</option> <option value="centimetri"<?php if($doEnote == 'centimetri') { echo " selected"; } ?>>centimetri</option> <option value="metri"<?php if($doEnote == 'metri') { echo " selected"; } ?>>metri</option> <option value="kilometri"<?php if($doEnote == 'kilometri') { echo " selected"; } ?>>kilometri</option> </select> </div> <input type="submit" name="submit" value="Submit" onclick="dodatno()"> </form> </div> </body> </html>