PHP Classes

File: application/views/scripts/index/index.phtml

Recommend this page to a friend!
  Classes of Stefan Ninic   Online PHP Currency Converter   application/views/scripts/index/index.phtml   Download  
File: application/views/scripts/index/index.phtml
Role: Example script
Content type: text/plain
Description: Example script
Class: Online PHP Currency Converter
Allow users convert currency values online
Author: By
Last change:
Date: 4 years ago
Size: 892 bytes
 

Contents

Class file image Download
<div class="wrapper">
    <div class="container">
        <div class="row text-center">
            <div id="converter" class="col-md-8 col-md-offset-2 col-lg-10 col-lg-offset-1">
                <div id="history"></div>
                <div id="controls">
                    <?php
                       
if (!empty($this->form)) {
                            echo
$this->form;
                            echo
"<button id='switch_currency' type='button' class='btn btn-primary btn-lg'>Switch Currency</button>";
                        }
                   
?>
</div>
            </div>
        </div>
    </div>
</div>
<script>
    var allowed_currencies = <?php
        $currencies
= [];
        foreach(
$this->allCurrencies as $currency => $rateObject) {
           
array_push($currencies, $currency);
        }
        echo
json_encode($currencies);

   
?>;
</script>