Your IP : 3.23.92.50


Current Path : /home/lentoinv/finationglobal.com/arch/testfination/account/
Upload File :
Current File : //home/lentoinv/finationglobal.com/arch/testfination/account/adminsetup.php

<?php
session_start(); ob_start();
?>
<!doctype html>
<html lang="en" dir="ltr">

    <head>

        <!-- META DATA -->
        <meta charset="UTF-8">
        <meta name='viewport' content='width=device-width, initial-scale=1.0, user-scalable=0'>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="description" content="Fination Global Services">
        <meta name="author" content="Fination Global Services">
        <meta name="keywords" content="">

        <!-- FAVICON -->
        <link rel="shortcut icon" type="image/x-icon" href="../assets/images/brand/favicon.ico" />

        <!-- TITLE -->
        <title>Admin Setup</title>

        <!-- BOOTSTRAP CSS -->
        <link id="style" href="../assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" />

        <!-- STYLE CSS -->
        <link href="../assets/css/style.css" rel="stylesheet" />
        <link href="../assets/css/plugins.css" rel="stylesheet" />

        <!--- FONT-ICONS CSS -->
        <link href="../assets/css/icons.css" rel="stylesheet" />

    </head>

    <body class="app sidebar-mini ltr light-mode">

        <!-- GLOBAL-LOADER 
        <div id="global-loader">
            <img src="../assets/images/loader.svg" class="loader-img" alt="Loader">
        </div>-->
        <!-- /GLOBAL-LOADER -->

        <!-- PAGE -->
        <div class="page">
            <div class="page-main">

                <!-- app-Header -->
                <?php include('header.php') ?>
                <!--/APP-SIDEBAR-->

                <!--app-content open-->
                <div class="main-content app-content mt-0">
                    <div class="side-app">

                        <!-- CONTAINER -->
                        <div class="main-container container-fluid">

                            <!-- PAGE-HEADER -->
                            <div class="page-header">
                                <div>
                                    <h1 class="page-title">Admin Setup</h1>
                                    <ol class="breadcrumb">
                                        <li class="breadcrumb-item"><a href="javascript:void(0);">Home</a></li>
                                        <li class="breadcrumb-item active" aria-current="page">Admin Setup</li>
                                    </ol>
                                </div>
                                
                                   <?php include('pagebtn.php') ?>
                             
                            </div>
                            <!-- PAGE-HEADER END -->

<!-- ROW -->
<div class="row">
                                 <div class="col-xl-4 col-lg-12 col-md-12">
                                    <div class="card">
                                        <div class="card-header">
                                            <h3 class="card-title">Admin Setup</h3>
                                        </div>
                                        <div class="card-body">
                                            <form method="post">
                                       
                                
                                
                                    <label>Setup Item</label>
                                    <select type="text" name="item" class="form-control" required>
                                        <option value="">Select Option...</option>
                                        <option value="ntod_d">Naira-Dollar for Deposit</option>
                                        <option value="ntod_w">Naira-Dollar for Withdrawal</option>
                                    </select>
                               
<br>
<label>Value</label>
<input type="text" name="val" class="form-control" placeholder="item value"><br>

                                
                                <button type="submit" class="btn btn-primary btn-block" name="UpdateSetup">Update Setup</button>   
                                     </form>   </div>
                                    </div>
                                </div>



                                <div class="col-xl-8 col-lg-12 col-md-12">
                                    <div class="card">
                                        <div class="card-header">
                                            <h3 class="card-title">System Setup</h3>
                                        </div>
                                        <div class="card-body p-2">
                                            <div class="table-responsive">
                                                <table id="examplex" class="table table-bordered table-striped">
                                <thead>
                                    <tr>
                                        <th>Item</th>
                                        <th>Value</th>
                                        
                                    </tr>
                                </thead>
                                <?php $sql = $db->query("SELECT * FROM setup WHERE sn=1 ");
                                $row = mysqli_fetch_assoc($sql); ?>
                                <tbody>
                                  
                                        <tr>
                                            <td>Naira - Dollar Conversion (Deposit)</td>
                                            <td><?= $row['ntod_d'] ?></td>
                                        </tr>
                                        <tr>
                                            <td>Naira - Dollar Conversion (Withdrawal)</td>
                                            <td><?= $row['ntod_w'] ?></td>
                                        </tr>
                                             
                                            
                                     
                                    </tbody>
                                </table> 
                                            </div>
                                        </div>
                                    </div>
                                </div>
                               
                            </div>

                            <!-- COL END -->
                            <!-- ROW-3 END -->

 <div class="row">
                                 <div class="col-xl-12 col-lg-12 col-md-12">
                                    <div class="card">
                                        <div class="card-header">
                                            <h3 class="card-title">Manage Accounts Sharing Revenue</h3>
                                        </div>
                                        <div class="card-body">
                                            <form method="post">
                                                <div class="row">
                                                    <div class="col-lg-4 pb-3">
                                                        <input type="text" name="title" class="form-control" placeholder="Title">
                                                    </div>
                                                    <div class="col-lg-4 pb-3">
                                                        <input type="text" name="user" class="form-control" placeholder="User">
                                                    </div>
                                                    <div class="col-lg-4 pb-3">
                                                        <input type="text" name="per" class="form-control" placeholder="Percentage of Subscription Fee">
                                                    </div>
                                                    <div class="col-lg-4 pb-3">
                                                        <button type="submit" name="ShareAcc" class="btn btn-primary btn-block">Create Sharing Account</button>
                                                    </div>
                                                </div>

                                            </form>

        <div class="table-responsive">
                                                <table id="examplex" class="table table-bordered table-striped">
                                <thead>
                                    <tr>
                                        <th>SN</th>
                                        <th>Title</th>
                                        <th>User</th>
                                        <th>Percent</th>
                                        <th>Revenue</th>
                                        
                                    </tr>
                                </thead>
                               
                                <tbody>
                                   <?php $i=1; $sql = $db->query("SELECT * FROM shareprofit ");
                                while($row = mysqli_fetch_assoc($sql)){ $e=$i++ ?>
                                        <tr>
                                            <td><?= $e ?></td>
                                            <td><?= $row['title'] ?></td>
                                            <td><?= userName($row['id']) ?> (<?= userName($row['id'],'user') ?>)</td>
                                            <td><?= $row['share'] ?>%</td>
                                             <td>$<?= $pro->wallet($row['id'],21) ?></td>
                                        </tr>
                                       <?php } ?>
                                            
                                     
                                    </tbody>
                                </table> 
                                            </div>
                                            </div>
                                            </div>
                                            </div>
                                            </div>                           <!-- ROW-5 -->
                          
                            <!-- ROW-5 END -->
                        </div>
                        <!-- CONTAINER END -->
                    </div>
                </div>
                <!--app-content end-->
            </div>


            <!-- FOOTER -->
<?php include('footer.php'); ?>
            <!-- FOOTER END -->
        </div>

        <!-- BACK-TO-TOP -->
        <a href="#top" id="back-to-top"><i class="fa fa-angle-up"></i></a>

        <!-- JQUERY JS -->
        <script src="../assets/js/jquery.min.js"></script>

        <!-- BOOTSTRAP JS -->
        <script src="../assets/plugins/bootstrap/js/popper.min.js"></script>
        <script src="../assets/plugins/bootstrap/js/bootstrap.min.js"></script>

        <!-- SPARKLINE JS-->
        <script src="../assets/js/jquery.sparkline.min.js"></script>

        <!-- CHART-CIRCLE JS-->
        <script src="../assets/js/circle-progress.min.js"></script>

        <!-- CHARTJS CHART JS-->
        <script src="../assets/plugins/chart/Chart.bundle.js"></script>
        <script src="../assets/plugins/chart/utils.js"></script>

        <!-- PIETY CHART JS-->
        <script src="../assets/plugins/peitychart/jquery.peity.min.js"></script>
        <script src="../assets/plugins/peitychart/peitychart.init.js"></script>

        <!-- INTERNAL SELECT2 JS -->
        <script src="../assets/plugins/select2/select2.full.min.js"></script>

        <!-- INTERNAL Data tables js-->
        <script src="../assets/plugins/datatable/js/jquery.dataTables.min.js"></script>
        <script src="../assets/plugins/datatable/js/dataTables.bootstrap5.js"></script>
        <script src="../assets/plugins/datatable/dataTables.responsive.min.js"></script>

        <!-- ECHART JS-->
        <script src="../assets/plugins/echarts/echarts.js"></script>

        <!-- SIDE-MENU JS-->
        <script src="../assets/plugins/sidemenu/sidemenu.js"></script>

        <!-- Sticky js -->
        <script src="../assets/js/sticky.js"></script>

        <!-- SIDEBAR JS -->
        <script src="../assets/plugins/sidebar/sidebar.js"></script>

        <!-- Perfect SCROLLBAR JS-->
        <script src="../assets/plugins/p-scroll/perfect-scrollbar.js"></script>
        <script src="../assets/plugins/p-scroll/pscroll.js"></script>
        <script src="../assets/plugins/p-scroll/pscroll-1.js"></script>

        <!-- APEXCHART JS -->
        <script src="../assets/js/apexcharts.js"></script>

        <!-- INDEX JS -->
        <script src="../assets/js/index1.js"></script>

        <!-- Color Theme js -->
        <script src="../assets/js/themeColors.js"></script>

        <!-- swither styles js -->
        <script src="../assets/js/swither-styles.js"></script>

        <!-- CUSTOM JS -->
        <script src="../assets/js/custom.js"></script>
                <script>
                $(document).ready(function() {
                    $('#example').DataTable();
                } );

                function verifyUser(v){
            if(v==''){return; }
                  //  alert(v);
           // $('#veri').html(v);
                    $.ajax({
                        type: 'get',
                        url : 'control.php?verify2='+v,
                    }).done(function(data){
                        if(data==0){ $('#veri').html('<div class="alert border-0 border-start border-5 border-danger alert-dismissible fade show py-2"><div class="d-flex align-items-center"><div class="font-35 text-danger"><i class="bx bxs-message-square-x"></i></div><div class="ms-3"><h6 class="mb-0 text-danger">Error</h6><div>You have entered an invalid Recipient ID. Reset and try again</div></div></div><button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button></div>'); 
                        $('#reset').html('');    }
                        else{ $('#veri').html(data); $('#reset').html('<button type="submit" name="FundDeduct" class="btn btn-primary">Deduct Funds</button>'); }
                    }) 
                }


                function sendCode(){
                    var a = document.getElementById('amt').value;
                    var b = document.getElementById('vuser').value;
    //alert(a+b);
    $.ajax({
        type: 'get',
        url : 'control.php?sendcode='+b+'&amt='+a,
    }).done(function(data){
        if(data==0){ $('#veri').html('<div class="alert border-0 border-start border-5 border-danger alert-dismissible fade show py-2"><div class="d-flex align-items-center"><div class="font-35 text-danger"><i class="bx bxs-message-square-x"></i></div><div class="ms-3"><h6 class="mb-0 text-danger">Error</h6><div>You have entered an invalid/expired Authentication Code. Reset and try again</div></div></div><button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button></div>'); 
        $('#reset').html('');    }
        else{ $('#veri').html(data);   $('#reset').html('<button type="submit" name="FundDeduct" class="btn btn-primary">Deduct Funds</button>'); }
    }) 
}
</script>

    </body>

</html>

?>