viewcurrency.php 2.86 KB

<div class="content-wrapper" >
   <!-- Content Header (Page header) -->
   <section class="content-header">
      <h1>
        Manage Currency
      </h1>
      <ol class="breadcrumb">
         <li><a href="#"><i class="fa fa-male"></i>Home</a></li>
         <li class="active"> Manage Currency</li>
      </ol>
   </section>
   <!-- Main content -->
   <section class="content">
      <div class="row">
         <div class="col-xs-12">
            <?php
               if($this->session->flashdata('message')) {
          $message = $this->session->flashdata('message');
              ?>
            <div class="alert alert-<?php echo $message['class']; ?>">
               <button class="close" data-dismiss="alert" type="button">×</button>
               <?php echo $message['message']; ?>
            </div>
            <?php
               }
               ?>
         </div>
         <div class="col-xs-12">
            <!-- /.box -->
            <div class="box">
               <div class="box-header">
                  <h3 class="box-title">Manage Currency</h3>
               </div>
               <!-- /.box-header -->
               <div class="box-body">
                <?php if($data != ''){ ?>
                  <table class="table table-bordered table-striped datatable">
                     <thead>
                        <tr>
                           <th class="hidden">ID</th>
                            <th>Name</th>
                            <th>Country code</th>
                           <th>Symbol</th> 
                        </tr>
                     </thead> 
                     <tbody>
                        <?php
                           foreach($data as $res) {
                                 
                           ?>


                        <tr>
                           <td class="hidden"><?php echo $res->id; ?></td>
                            <td class="center"><?php echo $res->name; ?>                
                            <td class="center"><?php echo $res->cc; ?></td>
                            <td class="center"><?php echo $res->symbol; ?></td>
                        </tr>
                        <?php
                           }
                           ?>
                     </tbody>
                     <tfoot>
                        <tr>
                           <th class="hidden">ID</th>
                            <th>Name</th>
                            <th>Country code</th>
                           <th>Symbol</th> 
                        </tr>
                     </tfoot>
                  </table>
                <?php } else{ ?>
                  <div>No Data Found</div>
                <?php } ?>
               </div>
               <!-- /.box-body -->
            </div>
            <!-- /.box -->
         </div>
         <!-- /.col -->
      </div>
      <!-- /.row -->
   </section>
   <!-- /.content -->
</div>