This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
FunctionProject/views/function-views/convertCurrency.php

62 lines
2.8 KiB
PHP
Raw Normal View History

2019-09-13 21:56:36 +02:00
<!-- Config -->
<?php include("../../php/config.php");?>
<!-- Header -->
<?php include("../../incl/header.php");?>
<!-- Page Content -->
<div class="container">
<h1><span class="important"><?php echo $title?></span> :</h1>
2019-10-18 09:55:35 +02:00
<p class="pt-3 text-center"><?php echo $description?>
<br>
Les taux de change sont récupérés grâce à l'API <a href="https://exchangeratesapi.io/" target="_blank">exchangeratesapi.io</a>.
</p>
<div class="text-center">
<img class="function-image" src="/img/function-image/convertCurrency.png" alt="Sac de pièces">
</div>
2019-09-13 21:56:36 +02:00
<br>
<div class="form-group">
2019-09-16 20:39:30 +02:00
<label for="value">Entrez le nombre à convertir et sélectionner la devise de celui-çi :</label>
2019-09-13 21:56:36 +02:00
<br>
2019-09-16 20:39:30 +02:00
<input name="value" type="text" class="inlineInput" id="value" placeholder="(e.g : 50)" class="form-control">
2019-10-08 11:18:34 +02:00
<select class="form-control selectInline" id="currencyOfTheValue">
2019-09-16 20:39:30 +02:00
<option value="EUR">Euro () - EUR</option>
<option value="GBP">Livre sterling (£) - GBP</option>
<option value="USD">Dollar Américain ($) - USD</option>
<option value="CAD">Dollar Canadien ($) - CAD</option>
<option value="AUD">Dollar Australien ($) - AUD</option>
<option value="MXN">Peso Mexicain ($) - MXN</option>
<option value="CHF">Franc Suisse (Fr) - CHF</option>
<option value="RUB">Rouble Russe () - RUB</option>
<option value="BRL">Réal brésilien (R$) - BRL</option>
<option value="JPY">Yen (¥) - JPY</option>
</select>
2019-09-13 21:56:36 +02:00
<br> <br>
2019-09-16 20:39:30 +02:00
<label for="currencyAfter">Choisissez la devise que voulez avoir après conversion :</label> <br>
2019-10-08 11:18:34 +02:00
<select class="form-control selectInline" id="currencyAfter">
<option value="£">Livre sterling (£) - GBP</option>
<option value="$ Américain">Dollar Américain ($) - USD</option>
<option value="$ Canadien">Dollar Canadien ($) - CAD</option>
<option value="$ Australien">Dollar Australien ($) - AUD</option>
<option value="$ Mexicain">Peso Mexicain ($) - MXN</option>
2019-09-17 19:17:30 +02:00
<option value="CHF">Franc Suisse (Fr) - CHF</option>
<option value="">Rouble Russe () - RUB</option>
<option value="R$">Réal brésilien (R$) - BRL</option>
<option value="¥">Yen (¥) - JPY</option>
2019-09-16 20:39:30 +02:00
<option value="">Euro () - EUR</option>
2019-09-13 21:56:36 +02:00
</select>
<br>
<div class="form-row text-center">
<div class="col-12">
2019-09-17 19:17:30 +02:00
<br>
2019-09-13 21:56:36 +02:00
<button type="submit" id="submitConvertCurrency" class="btn btn-dark text-center">Envoyer</button>
</div>
</div>
<br> <br>
<p class="results text-center"></p>
2019-09-16 21:01:02 +02:00
<p class="rateDate text-center"></p>
2019-09-13 21:56:36 +02:00
</div>
</div>
<!-- Footer -->
<?php include("../../incl/footer.php");?>