backoffice/application/views/gestion_monnaies.php

144 lines
4.8 KiB
PHP
Raw Normal View History

2022-04-18 11:39:19 +00:00
<link rel="stylesheet" href="<?= base_url('bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css') ?>">
2020-06-01 11:21:06 +00:00
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-multiselect/0.9.15/css/bootstrap-multiselect.css">
2022-04-18 11:39:19 +00:00
<link rel="stylesheet" href="<?= base_url('bower_components/toastr/toastr.css') ?>">
2020-06-01 11:21:06 +00:00
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
2022-04-18 11:39:19 +00:00
<?= $this->lang->line('currency_management'); ?>
2020-06-01 11:21:06 +00:00
<input type="button" class="btn btn-primary pull-right" id="Bactiver" value="Activer/Désactiver le(s) réseau(x)" style="display: none;" />
</h1>
<?php
$site_url = base_url();
if($alert=="ok") {
if(!$success=="ok"){
?>
<div class='alert alert-danger alert-dismissible col-xs-6'>
<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×</button>
<h4><i class='icon fa fa-ban'></i> Erreur!</h4>
2022-04-18 11:39:19 +00:00
<?= $message; ?>
2020-06-01 11:21:06 +00:00
</div>
<?php
} else {
?>
<div class="alert alert-success alert-dismissible col-xs-6">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<h4><i class="icon fa fa-check"></i> Success!</h4>
2022-04-18 11:39:19 +00:00
<?= $message; ?>
2020-06-01 11:21:06 +00:00
</div>
<?php
}
}
?>
</section>
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
2022-04-18 11:39:19 +00:00
<h3 class="box-title"><?= $this->lang->line('activated_wallets'); ?></h3>
2020-06-01 11:21:06 +00:00
</div>
<div class="box-body" style="overflow-x:auto;">
2020-06-01 11:21:06 +00:00
<?php
$sql2 = $networks;
if($sql2!=false){
$numrows=$sql2->num_rows();
$num = 0;
if ($numrows > 0) {
?>
<table id="validated" class="table table-bordered table-striped">
<thead>
<tr>
<th align='center'></th>
2022-04-18 11:39:19 +00:00
<th><?= $this->lang->line('Reseau'); ?></th>
<th><?= $this->lang->line('Pays'); ?></th>
<th align='center'><?= $this->lang->line('currency'); ?></th>
<th align='center'><?= $this->lang->line('currency_code'); ?></th>
2020-06-01 11:21:06 +00:00
<th align='center'> Action </th>
</tr>
</thead>
<tbody>
<?php
foreach($sql2->result() as $row) {
$num ++;
//$member_code = randomString1(10);
echo "<tr>
<td align='center'>$num</td>
<td >$row->network</td>
<td>$row->country</td>";
?>
<?php
?>
2022-04-18 11:39:19 +00:00
<td><?= $this->session->userdata('site_lang') === 'french' ? $row->currency_name_fr : $row->currency_name_en ?></td>
<td><?= $row->currency_code; ?></td>
2020-06-01 11:21:06 +00:00
<?php
?>
<td>
2022-04-18 11:39:19 +00:00
<a href="<?= current_url().($row->id_network ? '?id='.$row->id_network : '')?>" class="btn btn-primary btn-block">
<b><?= $this->lang->line('show_currency_rate_conversion'); ?></b>
2020-06-01 11:21:06 +00:00
</a>
</td>
<?php
}
?>
</tbody>
</table>
<?php
}
else {
echo $this->lang->line('Aucun réseau');
}
}else {
echo $this->lang->line('Aucun réseau');
}
?>
</div>
</div>
</div>
</div>
<!-- <div class="alert alert-info alert-dismissible" aria-hidden="true">-->
<!-- <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>-->
<!-- <h4><i class="icon fa fa-info"></i>Info!</h4>-->
<!-- Data is Saved-->
<!-- </div>-->
</section>
</div>
<!-- jQuery 3 -->
2022-04-18 11:39:19 +00:00
<script src="<?= base_url('bower_components/jquery/dist/jquery.min.js') ?>"></script>
2020-06-01 11:21:06 +00:00
<!-- Bootstrap 3.3.7 -->
2022-04-18 11:39:19 +00:00
<script src="<?= base_url('bower_components/bootstrap/dist/js/bootstrap.min.js') ?>"></script>
2020-06-01 11:21:06 +00:00
<!-- DataTables -->
2022-04-18 11:39:19 +00:00
<script src="<?= base_url('bower_components/datatables.net/js/jquery.dataTables.min.js') ?>"></script>
<script src="<?= base_url('bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js') ?>"></script>
2020-06-01 11:21:06 +00:00
<!-- Slimscroll -->
2022-04-18 11:39:19 +00:00
<script src="<?= base_url('bower_components/jquery-slimscroll/jquery.slimscroll.min.js') ?>"></script>
2020-06-01 11:21:06 +00:00
<!-- FastClick -->
2022-04-18 11:39:19 +00:00
<script src="<?= base_url('bower_components/fastclick/lib/fastclick.js') ?>"></script>
2020-06-01 11:21:06 +00:00
<!-- AdminLTE App -->
2022-04-18 11:39:19 +00:00
<script src="<?= base_url('dist/js/adminlte.min.js') ?>"></script>
2020-06-01 11:21:06 +00:00
<!-- AdminLTE for demo purposes -->
2022-04-18 11:39:19 +00:00
<script src="<?= base_url('dist/js/demo.js') ?>"></script>
<script src="<?= base_url('bower_components/toastr/toastr.js') ?>"></script>
2020-06-01 11:21:06 +00:00
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-multiselect/0.9.15/js/bootstrap-multiselect.js"></script>
2022-04-18 11:39:19 +00:00
<script src="<?= base_url('dist/js/sweetalert2.js') ?>"></script>
2020-06-01 11:21:06 +00:00
<script>
$(function() {
$('#validated').DataTable();
})
</script>