Implements Validating doctor and provider classes in ilink_sante

Purge some bullshit code
This commit is contained in:
Djery-Tom 2021-10-14 15:33:02 +01:00
parent 1bd5022833
commit 20e61332ec
106 changed files with 3232 additions and 2361 deletions

View File

@ -217,7 +217,7 @@ class Admin extends CI_Controller
$this->session->set_userdata('name_current_pays',$pays_name->first_row()->name);
$this->session->set_userdata('name_current_ville',$town_name->first_row()->name);
redirect('index.php/Admin_dash/index');
redirect('Admin_dash/index');
}
}
}
@ -378,7 +378,7 @@ class Admin extends CI_Controller
// get current page records
$data["tab"] = $this->user_model->get_current_page_records($limit_per_page, $start_index,$pays,$hyper,$ville);
//$data['positions'] = $this->user_model->get_current_page_records_positions($limit_per_page, $start_index,$pays,$hyper,$ville);
$config['base_url'] = base_url() . 'index.php/Admin/pagination_User_g';
$config['base_url'] = base_url() . 'Admin/pagination_User_g';
$config['total_rows'] = $total_records;
$config['per_page'] = $limit_per_page;
$config["uri_segment"] = 3;

View File

@ -0,0 +1,69 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Doctor_password extends CI_Controller
{
public function __construct()
{
parent::__construct();
$this->load->model('nano_health_model');
}
public function index()
{
if (!$this->input->get('token')) {
echo "Lien incorrect";
}
else {
$db_token = $this->db->get_where('nh_validating_doctors',['token' => $this->input->get('token')]);
if($db_token->num_rows() > 0 ){
$this->session->set_userdata('token', $this->input->get('token'));
$this->load->view('admin_update_password',['isValidatingDoctor' => true]);
}else{
echo "Ce lien a déjà expiré";
}
}
}
public function create_password()
{
if (!$this->session->userdata('token')) {
echo "Ce lien a déjà expiré";
} else {
if(isset($_POST))
{
$password = $this->input->post('password');
$hash = hashSSHA($password);
$encrypted_password = $hash["encrypted"]; // encrypted password
$salt = $hash["salt"]; // salt
$this->db->where('token' , $this->session->userdata('token'));
$res = $this->db->update('nh_validating_doctors',['password' => $encrypted_password, 'salt' => $salt]);
if($res==true){
$new_token = null;
do {
$new_token = bin2hex(openssl_random_pseudo_bytes(16));
$tokenExist = $this->db->get_where('nh_validating_doctors',['token' => $new_token]);
} while ($tokenExist->num_rows() > 0);
$this->db->where('token' , $this->session->userdata('token'));
$res_token = $this->db->update('nh_validating_doctors',['token'=>$new_token]);
if($res_token==true){
$data['alert'] = 'password';
$data['message'] = 'Votre mot de passe a été configuré avec succès';
$this->load->view('login', $data);
}else{
echo "Une erreur s'est produite";
}
}else{
echo "Une erreur s'est produite";
}
}
}
}
}

View File

@ -46,15 +46,7 @@ class Gestion extends CI_Controller
}
public function activer()
{
if (!$this->session->userdata('email')) {
$this->session->set_flashdata('error', 'log in first');
$data['alert'] = "ok";
$data['message'] = "Login first!";
$this->load->view('login', $data);
} else {
{if($this->isLogged()) {
if (isset($_POST)) {
$villes = $this->input->post('villes');
@ -77,15 +69,7 @@ class Gestion extends CI_Controller
public function update()
{
if (!$this->session->userdata('email')) {
$this->session->set_flashdata('error', 'log in first');
$data['alert'] = "ok";
$data['message'] = "Login first!";
$this->load->view('login', $data);
} else {
if($this->isLogged()) {
if (isset($_POST)) {
$id_country = $this->input->post('id_country');
@ -105,15 +89,7 @@ class Gestion extends CI_Controller
public function activer_desactiver()
{
if (!$this->session->userdata('email')) {
$this->session->set_flashdata('error', 'log in first');
$data['alert'] = "ok";
$data['message'] = "Login first!";
$this->load->view('login', $data);
} else {
if($this->isLogged()) {
if (isset($_POST)) {
$aVilles = $this->input->post('aVilles');
@ -150,15 +126,7 @@ class Gestion extends CI_Controller
}
public function desactiver()
{
if (!$this->session->userdata('email')) {
$this->session->set_flashdata('error', 'log in first');
$data['alert'] = "ok";
$data['message'] = "Login first!";
$this->load->view('login', $data);
} else {
{if($this->isLogged()) {
if (isset($_POST)) {
$villes = $this->input->post('villes');
@ -180,15 +148,7 @@ class Gestion extends CI_Controller
}
public function suppress()
{
if (!$this->session->userdata('email')) {
$this->session->set_flashdata('error', 'log in first');
$data['alert'] = "ok";
$data['message'] = "Login first!";
$this->load->view('login', $data);
} else {
{if($this->isLogged()) {
if (isset($_POST)) {
$villes = $this->input->post('ville');
@ -283,15 +243,7 @@ class Gestion extends CI_Controller
public function creat_network()
{
if (!$this->session->userdata('email')) {
$this->session->set_flashdata('error', 'log in first');
$data['alert'] = "ok";
$data['message'] = "Login first!";
$this->load->view('login', $data);
} else {
if($this->isLogged()) {
if (isset($_POST)) {
$network = $this->input->post('new_network');
@ -311,15 +263,7 @@ class Gestion extends CI_Controller
public function assignation()
{
if (!$this->session->userdata('email')) {
$this->session->set_flashdata('error', 'log in first');
$data['alert'] = "ok";
$data['message'] = "Login first!";
$this->load->view('login', $data);
} else {
if($this->isLogged()) {
if (isset($_POST)) {
$network = $this->input->post('network');
@ -354,15 +298,7 @@ class Gestion extends CI_Controller
public function update_network()
{
if (!$this->session->userdata('email')) {
$this->session->set_flashdata('error', 'log in first');
$data['alert'] = "ok";
$data['message'] = "Login first!";
$this->load->view('login', $data);
} else {
if($this->isLogged()) {
if (isset($_POST)) {
$old_network = $this->input->post('old_name');
@ -381,15 +317,7 @@ class Gestion extends CI_Controller
public function change_status_network()
{
if (!$this->session->userdata('email')) {
$this->session->set_flashdata('error', 'log in first');
$data['alert'] = "ok";
$data['message'] = "Login first!";
$this->load->view('login', $data);
} else {
if($this->isLogged()) {
if (isset($_POST)) {
$activations = $this->input->post('activations');
@ -457,16 +385,7 @@ class Gestion extends CI_Controller
public function create_admin()
{
if (!$this->session->userdata('email')) {
$this->session->set_flashdata('error', 'log in first');
$data['alert'] = "ok";
$data['message'] = "Login first!";
$this->load->view('login', $data);
} else {
if($this->isLogged()) {
if (isset($_POST)) {
$category = 1;
$firstname = $this->input->post('prenom');
@ -491,7 +410,7 @@ class Gestion extends CI_Controller
if ($query) {
$link = base_url("index.php/Admin_password/?token=" . $token);
$link = base_url("Admin_password/?token=" . $token);
$this->load->library('email');
$this->email->from('noreply@ilink-app.com', 'iLink World');
@ -518,15 +437,7 @@ class Gestion extends CI_Controller
public function modif_admin()
{
if (!$this->session->userdata('email')) {
$this->session->set_flashdata('error', 'log in first');
$data['alert'] = "ok";
$data['message'] = "Login first!";
$this->load->view('login', $data);
} else {
if($this->isLogged()) {
if (isset($_POST)) {
$id = $this->input->post('id');
@ -551,15 +462,7 @@ class Gestion extends CI_Controller
public function delete_admin()
{
if (!$this->session->userdata('email')) {
$this->session->set_flashdata('error', 'log in first');
$data['alert'] = "ok";
$data['message'] = "Login first!";
$this->load->view('login', $data);
} else {
if($this->isLogged()) {
if (isset($_POST)) {
$id = $this->input->post('id');
@ -577,15 +480,7 @@ class Gestion extends CI_Controller
public function codes()
{
if (!$this->session->userdata('email')) {
$this->session->set_flashdata('error', 'log in first');
$data['alert'] = "ok";
$data['message'] = "Login first!";
$this->load->view('login', $data);
} else {
if($this->isLogged()) {
$ville = $this->session->userdata('current_ville');
$hyper = $this->session->userdata('current_hyper');
$pays = $this->session->userdata('current_pays');
@ -634,9 +529,6 @@ class Gestion extends CI_Controller
$data['active'] = "codes-hyper";
$data['pays'] = $this->user_model->getAllCountries();
$data['game_pays'] = $this->user_model->getGameCountry();
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['email'] = $this->session->userdata('email');
$this->load->view('header_gestion', $data);
$this->load->view('codeg');
@ -659,9 +551,6 @@ class Gestion extends CI_Controller
$data['list'] = $this->user_model->getGeneratedHyperCodes();
$data['active'] = "codes";
$data['pays'] = $this->user_model->getAllCountries();
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['email'] = $this->session->userdata('email');
$this->load->view('header_gestion', $data);
@ -733,15 +622,7 @@ class Gestion extends CI_Controller
public function infos_geolocalisation()
{
if (!$this->session->userdata('email')) {
$this->session->set_flashdata('error', 'log in first');
$data['alert'] = "ok";
$data['message'] = "Login first!";
$this->load->view('login', $data);
} else {
if($this->isLogged()) {
if (isset($_POST)) {
$pays = $this->input->post('pays');
@ -932,15 +813,7 @@ class Gestion extends CI_Controller
public function redirect_info_agent()
{
if (!$this->session->userdata('email')) {
$this->session->set_flashdata('error', 'log in first');
$data['alert'] = "ok";
$data['message'] = "Login first!";
$this->load->view('login', $data);
} else {
if($this->isLogged()) {
if (isset($_GET)) {
$lastname = $this->input->get('agent');
@ -1046,15 +919,7 @@ class Gestion extends CI_Controller
}
public function activerGame()
{
if (!$this->session->userdata('email')) {
$this->session->set_flashdata('error', 'log in first');
$data['alert'] = "ok";
$data['message'] = "Login first!";
$this->load->view('login', $data);
} else {
{if($this->isLogged()) {
if (isset($_POST)) {
$pays = $this->input->post('pays');
@ -1086,15 +951,7 @@ class Gestion extends CI_Controller
}
public function desactiverGame()
{
if (!$this->session->userdata('email')) {
$this->session->set_flashdata('error', 'log in first');
$data['alert'] = "ok";
$data['message'] = "Login first!";
$this->load->view('login', $data);
} else {
{if($this->isLogged()) {
if (isset($_POST)) {
$pays = $this->input->post('pays');
@ -1173,15 +1030,7 @@ class Gestion extends CI_Controller
}
public function modifierPalier()
{
if (!$this->session->userdata('email')) {
$this->session->set_flashdata('error', 'log in first');
$data['alert'] = "ok";
$data['message'] = "Login first!";
$this->load->view('login', $data);
} else {
{if($this->isLogged()) {
if (isset($_POST)) {
$n1 = $this->input->post('n1');
@ -1285,15 +1134,7 @@ class Gestion extends CI_Controller
public function get_user()
{
if (!$this->session->userdata('email')) {
$this->session->set_flashdata('error', 'log in first');
$data['alert'] = "ok";
$data['message'] = "Login first!";
$this->load->view('login', $data);
} else {
if($this->isLogged()) {
if (isset($_POST)) {
$nom = $this->input->post('nom');
@ -1385,15 +1226,7 @@ class Gestion extends CI_Controller
public function update_info_user()
{
if (!$this->session->userdata('email')) {
$this->session->set_flashdata('error', 'log in first');
$data['alert'] = "ok";
$data['message'] = "Login first!";
$this->load->view('login', $data);
} else {
if($this->isLogged()) {
if (isset($_POST)) {
$id = $_POST['user_id'];
$phone = $_POST['contact'];
@ -1414,15 +1247,7 @@ class Gestion extends CI_Controller
public function update_info_geolocated()
{
if (!$this->session->userdata('email')) {
$this->session->set_flashdata('error', 'log in first');
$data['alert'] = "ok";
$data['message'] = "Login first!";
$this->load->view('login', $data);
} else {
if($this->isLogged()) {
if (isset($_POST)) {
$id_agent = $_POST['user_id'];
$id_netAg = $_POST['id_netAg'];
@ -1472,15 +1297,7 @@ class Gestion extends CI_Controller
public function changePubState()
{
if (!$this->session->userdata('email')) {
$this->session->set_flashdata('error', 'log in first');
$data['alert'] = "ok";
$data['message'] = "Login first!";
$this->load->view('login', $data);
} else {
if($this->isLogged()) {
if (isset($_POST)) {
$id_pub = $_POST['pub_id'];
$etat = $_POST['etat'];
@ -1501,15 +1318,7 @@ class Gestion extends CI_Controller
}
public function addPubRow()
{
if (!$this->session->userdata('email')) {
$this->session->set_flashdata('error', 'log in first');
$data['alert'] = "ok";
$data['message'] = "Login first!";
$this->load->view('login', $data);
} else {
{if($this->isLogged()) {
if (isset($_POST)) {
$id_country = $_POST['country_id'];
$res = $this->user_model->createPubRow($id_country);

View File

@ -33,9 +33,6 @@ class Hyperviseur_dash extends CI_Controller
$data['allGeo'] = $this->user_model->getAllUserGeoForHyp($this->session->userdata('member_code'));
$data['allDem'] = $this->user_model->getDemandes($this->session->userdata('member_code'));
$data['token'] = $this->session->userdata('token');
$data['email'] = $this->session->userdata('email');
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['member_code'] = $this->session->userdata('member_code');
$data['phone'] = $this->session->userdata('phone');
$data['adresse'] = $this->session->userdata('adresse');
@ -73,9 +70,6 @@ class Hyperviseur_dash extends CI_Controller
$data['latitude'] = $this->session->userdata('latitude');
$data['longitude'] = $this->session->userdata('longitude');
$data['token'] = $this->session->userdata('token');
$data['email'] = $this->session->userdata('email');
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['code_parrain'] = $this->session->userdata('code_parrain');
$data['phone'] = $this->session->userdata('phone');
$data['adresse'] = $this->session->userdata('adresse');
@ -106,10 +100,10 @@ class Hyperviseur_dash extends CI_Controller
$network = $this->session->userdata('network');
$category = 'super';
$position = $this->user_model->getAllpositions($network, $category, $this->session->userdata('member_code'));
if ($position != null) {
// if ($position != null) {
//var_dump($position);
//echo json_encode($position);
}
// }
$data['total_points'] = $this->user_model->getCoutSuperForHyper($this->session->userdata('member_code'));
$data['positions'] = $position;
$data['active'] = "super";
@ -118,9 +112,6 @@ class Hyperviseur_dash extends CI_Controller
$data['latitude'] = $this->session->userdata('latitude');
$data['longitude'] = $this->session->userdata('longitude');
$data['token'] = $this->session->userdata('token');
$data['email'] = $this->session->userdata('email');
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['code_parrain'] = $this->session->userdata('code_parrain');
$data['phone'] = $this->session->userdata('phone');
$data['adresse'] = $this->session->userdata('adresse');
@ -167,9 +158,6 @@ class Hyperviseur_dash extends CI_Controller
$data['demand_type'] = 'credit';
$data['alert'] = "";
$data['token'] = $this->session->userdata('token');
$data['email'] = $this->session->userdata('email');
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['code_parrain'] = $this->session->userdata('code_parrain');
$data['phone'] = $this->session->userdata('phone');
$data['adresse'] = $this->session->userdata('adresse');
@ -209,9 +197,6 @@ class Hyperviseur_dash extends CI_Controller
$data['demand_type'] = 'credit';
$data['alert'] = "";
$data['token'] = $this->session->userdata('token');
$data['email'] = $this->session->userdata('email');
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['code_parrain'] = $this->session->userdata('code_parrain');
$data['phone'] = $this->session->userdata('phone');
$data['adresse'] = $this->session->userdata('adresse');
@ -366,9 +351,6 @@ class Hyperviseur_dash extends CI_Controller
$data['active'] = "demandesAd";
$data['alert'] = "";
$data['token'] = $this->session->userdata('token');
$data['email'] = $this->session->userdata('email');
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['code_parrain'] = $this->session->userdata('code_parrain');
$data['phone'] = $this->session->userdata('phone');
$data['adresse'] = $this->session->userdata('adresse');
@ -470,6 +452,7 @@ class Hyperviseur_dash extends CI_Controller
$data['acts'] = $this->nano_health_model->getConfigActs($data['config_id']);
$data['billing_types'] = $this->user_model->getEnumValues('nh_acts','billing_type');
$data['authorization_types'] = $this->user_model->getEnumValues('nh_acts','authorization_type');
$data['provider_classes'] = $this->nano_health_model->getProviderClasses($data['config_id']);
}
//Create wallet if it not exist
@ -491,9 +474,6 @@ class Hyperviseur_dash extends CI_Controller
$data['alert'] = "";
$data['active'] = "wallet_wallet";
$data['token'] = $this->session->userdata('token');
$data['email'] = $this->session->userdata('email');
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['code_parrain'] = $this->session->userdata('code_parrain');
$data['phone'] = $this->session->userdata('phone');
$data['adresse'] = $this->session->userdata('adresse');
@ -565,9 +545,7 @@ class Hyperviseur_dash extends CI_Controller
$data['active'] = "wallet_wallet";
$data['alert'] = "";
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['email'] = $this->session->userdata('email');
$data['network'] = $this->session->userdata('network');
$data['villes'] = $this->user_model->getVilleByUserGeo($data['network'], $this->session->userdata('current_pays'));
$data['networks'] = $this->user_model->getActiveNetwork();
@ -757,9 +735,6 @@ class Hyperviseur_dash extends CI_Controller
if ($this->isLogged()) {
$data['active'] = "wallet_password";
$data['alert'] = "";
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['email'] = $this->session->userdata('email');
$data['network'] = $this->session->userdata('network');
$data['villes'] = $this->user_model->getVilleByUserGeo($data['network'], $this->session->userdata('current_pays'));
$data['networks'] = $this->user_model->getActiveNetwork();
@ -962,9 +937,6 @@ class Hyperviseur_dash extends CI_Controller
if ($this->isLogged()) {
$data['active'] = "wallet_calculator";
$data['alert'] = "";
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['email'] = $this->session->userdata('email');
$data['network'] = $this->session->userdata('network');
$data['villes'] = $this->user_model->getVilleByUserGeo($data['network'], $this->session->userdata('current_pays'));
$data['networks'] = $this->user_model->getActiveNetwork();
@ -1307,9 +1279,7 @@ class Hyperviseur_dash extends CI_Controller
// $data['configWallet'] = $this->wallet_model->getConfigWallet($network_id);
$data['active'] = "wallet_wallet";
$data['alert'] = "";
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['email'] = $this->session->userdata('email');
$data['network'] = $this->session->userdata('network');
$data['villes'] = $this->user_model->getVilleByUserGeo($data['network'], $this->session->userdata('current_pays'));
@ -1448,9 +1418,7 @@ class Hyperviseur_dash extends CI_Controller
$data['active'] = "wallet_wallet";
$data['alert'] = "";
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['email'] = $this->session->userdata('email');
$data['network'] = $this->session->userdata('network');
$data['villes'] = $this->user_model->getVilleByUserGeo($data['network'], $this->session->userdata('current_pays'));
//
@ -1508,11 +1476,8 @@ class Hyperviseur_dash extends CI_Controller
$data['game_pays'] = $this->user_model->getGameCountry();
$data['network'] = $this->session->userdata('network');
$data['country'] = $this->session->userdata('current_pays');
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['currency_code'] = $this->session->userdata('currency_code');
$data['token'] = $this->session->userdata('token');
$data['email'] = $this->session->userdata('email');
$data['configWallet'] = $data['hasWallet']->first_row();
$data['villes'] = $this->user_model->getVilleByUserGeo($data['network'], $this->session->userdata('current_pays'));
$this->load->view('header_hyp', $data);
@ -1527,9 +1492,6 @@ class Hyperviseur_dash extends CI_Controller
// $data['configWallet'] = $this->wallet_model->getConfigWallet($network_id);
$data['active'] = "nano_credit";
$data['alert'] = "";
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['email'] = $this->session->userdata('email');
$data['network'] = $this->session->userdata('network');
$data['villes'] = $this->user_model->getVilleByUserGeo($data['network'], $this->session->userdata('current_pays'));
$data['hasWallet'] = $this->wallet_model->getConfigWallet($this->session->userdata('network_id'));
@ -1578,9 +1540,7 @@ class Hyperviseur_dash extends CI_Controller
}
$data['active'] = "nano_credit";
$data['alert'] = "";
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['email'] = $this->session->userdata('email');
$data['network'] = $this->session->userdata('network');
$data['villes'] = $this->user_model->getVilleByUserGeo($data['network'], $this->session->userdata('current_pays'));
$data['networks'] = $this->user_model->getActiveNetwork();
@ -1683,9 +1643,7 @@ class Hyperviseur_dash extends CI_Controller
{
$data['active'] = "nano_credit";
$data['alert'] = "";
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['email'] = $this->session->userdata('email');
$data['network'] = $this->session->userdata('network');
$data['villes'] = $this->user_model->getVilleByUserGeo($data['network'], $this->session->userdata('current_pays'));
$data['networks'] = $this->user_model->getActiveNetwork();
@ -1724,9 +1682,6 @@ class Hyperviseur_dash extends CI_Controller
$data['active'] = "recherche";
$data['alert'] = "";
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['email'] = $this->session->userdata('email');
$data['network'] = $this->session->userdata('network');
$data['villes'] = $this->user_model->getVilleByUserGeo($data['network'], $this->session->userdata('current_pays'));
$data['networks'] = $this->user_model->getActiveNetwork();
@ -1794,9 +1749,6 @@ class Hyperviseur_dash extends CI_Controller
$data['active'] = "recherche";
$data['alert'] = "";
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['email'] = $this->session->userdata('email');
$data['network'] = $this->session->userdata('network');
$data['villes'] = $this->user_model->getVilleByUserGeo($data['network'], $this->session->userdata('current_pays'));
$data['networks'] = $this->user_model->getActiveNetwork();
@ -1852,9 +1804,6 @@ class Hyperviseur_dash extends CI_Controller
$data['active'] = "operators";
$data['alert'] = "";
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['email'] = $this->session->userdata('email');
$data['network'] = $this->session->userdata('network');
$data['villes'] = $this->user_model->getVilleByUserGeo($data['network'], $this->session->userdata('current_pays'));
$data['networks'] = $this->user_model->getActiveNetwork();
@ -1967,7 +1916,6 @@ class Hyperviseur_dash extends CI_Controller
public function documentation()
{
if ($this->isLogged()) {
$view = $this->input->get('view');
if ($view) {
@ -1986,6 +1934,29 @@ class Hyperviseur_dash extends CI_Controller
}
}
}
public function validating_doctors(){
if ($this->isLogged()) {
$data['active'] = "wallet_validating_doctors";
$data['alert'] = "";
$data['network'] = $this->session->userdata('network');
$data['villes'] = $this->user_model->getVilleByUserGeo($data['network'], $this->session->userdata('current_pays'));
$data['networks'] = $this->user_model->getActiveNetwork();
$data['currency_code'] = $this->session->userdata('currency_code');
$data['category'] = $this->session->userdata('category');
$data['network_id'] = $this->session->userdata('network_id');
$data['hasWallet'] = $this->wallet_model->getConfigWallet($this->session->userdata('network_id'));
$nh_config = $this->nano_health_model->getConfig($data['network_id']);
$data['nh_config'] = $nh_config ? $nh_config->first_row() : null ;
$data['config_id'] = $data['nh_config'] ? $data['nh_config']->id : null ;
$data['doctors'] = $this->db->get('nh_validating_doctors');
$this->load->view('header_hyp', $data);
$this->load->view('nano_health/hyper/validating_doctors');
$this->load->view('footer');
}
}
}
class Operation

View File

@ -81,7 +81,7 @@ class Listes_members extends CI_Controller
$data['message'] = "The member $phoneNm couldn't been added!";
redirect('index.php/Listes_members');
redirect('Listes_members');
}
} else {
@ -91,7 +91,7 @@ class Listes_members extends CI_Controller
$data['message'] = "Database error!";
redirect('index.php/Listes_members');
redirect('Listes_members');
}
}
@ -165,7 +165,7 @@ class Listes_members extends CI_Controller
$data['message'] = "The member $phoneNm has been updated!";
redirect('index.php/Listes_members');
redirect('Listes_members');
//redirect('Listes_admin');
} else {
@ -175,7 +175,7 @@ class Listes_members extends CI_Controller
$data['message'] = "The member $phoneNm couldn't been updated!";
redirect('index.php/Listes_members');
redirect('Listes_members');
}
} else {
$data['alert'] = "ok";
@ -183,7 +183,7 @@ class Listes_members extends CI_Controller
$data['message'] = "The record couldn't been updated! No data sent.";
redirect('index.php/Listes_members');
redirect('Listes_members');
}
}

View File

@ -99,12 +99,12 @@ class Login extends CI_Controller
$admin = "admin";
if ($data['category'] == $admin) {
redirect('index.php/Admin_dash');
redirect('Admin_dash');
//$this->load->view('user_profile.php');
} else if ($data['category'] == $hyper) {
redirect('index.php/Hyperviseur_dash');
redirect('Hyperviseur_dash');
} else if ($data['category'] == $super) {
redirect('index.php/Superviseur_dash');
redirect('Superviseur_dash');
}
$this->load->view('user_profile.php');

View File

@ -139,13 +139,13 @@ class Member_code_admin extends CI_Controller
$data['alert'] = "ok";
$data['success'] = "ok";
$data['message'] = "Le code membre $id a bien été supprimé !";
redirect('index.php/Member_code_admin/index');
redirect('Member_code_admin/index');
} else {
$data['active'] = "members_code";
$data['alert'] = "ok";
$data['message'] = "Une erreur s'est produite !";
redirect('index.php/Member_code_admin/index');
redirect('Member_code_admin/index');
}
}

View File

@ -58,6 +58,106 @@ class NanoHealthController extends CI_Controller
}
}
public function deleteAct(){
if($this->isLogged()) {
if (isset($_POST)) {
$this->db->delete('nh_acts', ['id' => $_POST['id']]);
echo json_encode(['code' => 200 ]);
}
}
}
public function createValidatingDoctor()
{
if($this->isLogged()) {
if (isset($_POST)) {
$emailExist = $this->db->get_where('nh_validating_doctors', ['email' => $_POST['email']]);
if ($emailExist->num_rows() == 0) {
do {
$token = bin2hex(openssl_random_pseudo_bytes(16));
$tokenExist = $this->db->get_where('nh_validating_doctors',['token' => $token]);
} while ($tokenExist->num_rows() > 0);
$_POST['token'] = $token;
$query = $this->db->insert('nh_validating_doctors', $_POST);
if ($query) {
$link = base_url("Doctor_password/?token=" . $token);
$this->load->library('email');
$this->email->from('noreply@ilink-app.com', 'iLink World');
$this->email->to($_POST['email']);
$this->email->subject($this->lang->line("mail_title_validating_doctor"));
$this->email->message($_POST['firstname'] . ' ' . $_POST['lastname'] . ' ' . $this->lang->line("mail_body_validating_doctor") . ' ' . $link);
$this->email->send();
echo json_encode(['code' => 200]);
} else {
echo json_encode(['code' => 500, 'message' => $this->lang->line("Une erreur s'est produite")]);
}
} else {
echo json_encode(['code'=> 419 , 'message' => $this->lang->line("L'email entré est déjà utilisé")]);
}
}
}
}
public function updateValidatingDoctor()
{
if($this->isLogged()) {
if (isset($_POST)) {
$emailExist = $this->db->get_where('nh_validating_doctors', ['id !=' => $_POST['id'], 'email' => $_POST['email']]);
if ($emailExist->num_rows() == 0) {
$this->db->where('id',$_POST['id']);
$this->db->update('nh_validating_doctors',$_POST);
echo json_encode(['code' => 200]);
}else{
echo json_encode(['code'=> 419 , 'message' => $this->lang->line("L'email entré est déjà utilisé")]);
}
}
}
}
public function deleteValidatingDoctor(){
if($this->isLogged()) {
if (isset($_POST)) {
$this->db->delete('nh_validating_doctors', ['id' => $_POST['id']]);
echo json_encode(['code' => 200]);
}
}
}
public function storeProviderClass(){
if($this->isLogged()) {
if (isset($_POST)) {
$id = $_POST['id'];
$_POST['nh_network_config_id'] = $_POST['config_id'];
unset($_POST['config_id']);
if(!empty($id)){
$this->db->where('id',$id);
$this->db->update('nh_provider_classes',$_POST);
}else{
$this->db->insert('nh_provider_classes',$_POST);
}
echo json_encode(['code' => 200 ]);
}
}
}
public function deleteProviderClass(){
if($this->isLogged()) {
if (isset($_POST)) {
$this->db->delete('nh_provider_classes', ['id' => $_POST['id']]);
echo json_encode(['code' => 200 ]);
}
}
}
private function isLogged()
{
if (!$this->session->userdata('email')) {

View File

@ -8,15 +8,15 @@ class Welcome extends CI_Controller
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/welcome
* http://example.com/welcome
* - or -
* http://example.com/index.php/welcome/index
* http://example.com/welcome/index
* - or -
* Since this controller is set as the default controller in
* config/routes.php, it's displayed at http://example.com/
*
* So any other public methods not prefixed with an underscore will
* map to /index.php/welcome/<method_name>
* map to /welcome/<method_name>
* @see https://codeigniter.com/user_guide/general/urls.html
*/
public function index()

View File

@ -38,9 +38,7 @@ class Superviseur_dash extends CI_Controller
$data['active'] = "dash";
$data['token'] = $this->session->userdata('token');
$data['email'] = $this->session->userdata('email');
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['member_code'] = $this->session->userdata('member_code');
$data['phone'] = $this->session->userdata('phone');
$data['adresse'] = $this->session->userdata('adresse');
@ -93,9 +91,7 @@ class Superviseur_dash extends CI_Controller
$data['latitude'] = $this->session->userdata('latitude');
$data['longitude'] = $this->session->userdata('longitude');
$data['token'] = $this->session->userdata('token');
$data['email'] = $this->session->userdata('email');
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['code_parrain'] = $this->session->userdata('code_parrain');
$data['phone'] = $this->session->userdata('phone');
$data['adresse'] = $this->session->userdata('adresse');
@ -137,9 +133,7 @@ class Superviseur_dash extends CI_Controller
$data['demand_type'] = 'credit';
$data['alert'] = "";
$data['token'] = $this->session->userdata('token');
$data['email'] = $this->session->userdata('email');
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['code_parrain'] = $this->session->userdata('code_parrain');
$data['phone'] = $this->session->userdata('phone');
$data['adresse'] = $this->session->userdata('adresse');
@ -191,9 +185,7 @@ class Superviseur_dash extends CI_Controller
$data['alert'] = "";
$data['demand_type'] = 'adhesion';
$data['token'] = $this->session->userdata('token');
$data['email'] = $this->session->userdata('email');
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['code_parrain'] = $this->session->userdata('code_parrain');
$data['phone'] = $this->session->userdata('phone');
$data['adresse'] = $this->session->userdata('adresse');
@ -283,9 +275,6 @@ class Superviseur_dash extends CI_Controller
$data['alert'] = "";
$data['active'] = "wallet";
$data['token'] = $this->session->userdata('token');
$data['email'] = $this->session->userdata('email');
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['code_parrain'] = $this->session->userdata('code_parrain');
$data['phone'] = $this->session->userdata('phone');
$data['adresse'] = $this->session->userdata('adresse');
@ -326,9 +315,6 @@ class Superviseur_dash extends CI_Controller
$data['active'] = "wallet";
$data['alert'] = "";
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['email'] = $this->session->userdata('email');
$data['network'] = $this->session->userdata('network');
$data['villes'] = $this->user_model->getVilleByUserGeo($data['network'], $this->session->userdata('current_pays'));
$data['networks'] = $this->user_model->getActiveNetwork();
@ -370,9 +356,6 @@ class Superviseur_dash extends CI_Controller
$data['active'] = "nano_credit";
$data['alert'] = "";
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['email'] = $this->session->userdata('email');
$data['network'] = $this->session->userdata('network');
$data['villes'] = $this->user_model->getVilleByUserGeo($data['network'], $this->session->userdata('current_pays'));
$data['networks'] = $this->user_model->getActiveNetwork();
@ -404,14 +387,10 @@ class Superviseur_dash extends CI_Controller
public function recherche()
{
if ($this->isLogged()) {
$data['active'] = "recherche";
$data['alert'] = "";
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['email'] = $this->session->userdata('email');
$data['network'] = $this->session->userdata('network');
$data['villes'] = $this->user_model->getVilleByUserGeo($data['network'], $this->session->userdata('current_pays'));
$data['networks'] = $this->user_model->getActiveNetwork();
@ -479,9 +458,6 @@ class Superviseur_dash extends CI_Controller
$data['active'] = "recherche";
$data['alert'] = "";
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
$data['email'] = $this->session->userdata('email');
$data['network'] = $this->session->userdata('network');
$data['villes'] = $this->user_model->getVilleByUserGeo($data['network'], $this->session->userdata('current_pays'));
$data['networks'] = $this->user_model->getActiveNetwork();

View File

@ -5,7 +5,7 @@
public function __construct(){
parent::__construct();
$this->load->model('user_model');
$this->load->model('nano_health_model');
}
public function index()
@ -74,65 +74,86 @@
'user_role' => $this->input->post('user_role')
);
$data = $this->user_model->login_user($user_login['user_email'], $user_login['user_password'], $user_login['user_role']);
// Pour les medecins valideurs de iLink Santé
if($user_login['user_role'] == 2 && filter_var($user_login['user_email'], FILTER_VALIDATE_EMAIL)){
$sql = "SELECT nhd.* , n.name as network , n.id as network_id, cc.name as country, cc.currency_code
FROM nh_validating_doctors nhd INNER JOIN nh_networks_configs nhc ON nhc.id = nhd.nh_network_config_id
INNER JOIN networks n ON n.id = nhc.network_id INNER JOIN countries_currencies cc ON cc.id = n.country_id WHERE nhd.email = ?";
$doctor = $this->db->query($sql,[$user_login['user_email']]);
if($doctor->num_rows()>0) {
$doctor = $doctor->first_row();
$encrypted_password = $doctor->password;
$hash = checkhashSSHA($doctor->salt,$user_login['user_password']);
if ($encrypted_password == $hash) {
$this->session->set_userdata('email', $doctor->email);
$this->session->set_userdata('firstname', $doctor->firstname);
$this->session->set_userdata('lastname', $doctor->lastname);
$this->session->set_userdata('phone', $doctor->email);
$this->session->set_userdata('currency_code', $doctor->currency_code);
$this->session->set_userdata('network', $doctor->network);
$this->session->set_userdata('network_id', $doctor->network_id);
$this->session->set_userdata('current_pays', $doctor->country);
redirect('ValidatingDoctor');
}
}
}else{
$data = $this->user_model->login_user($user_login['user_email'], $user_login['user_password'], $user_login['user_role']);
if ($data) {
if ($data) {
$hyper = "hyper";
$super = "super";
$hyper = "hyper";
$super = "super";
$this->session->set_userdata('token', $data->token);
$this->session->set_userdata('email', $data->email);
$this->session->set_userdata('firstname', $data->firstname);
$this->session->set_userdata('lastname', $data->lastname);
$this->session->set_userdata('adresse', $data->adresse);
$this->session->set_userdata('agent_id', $data->agent_id);
$this->session->set_userdata('currency_code', $data->currency_code);
$this->session->set_userdata('token', $data->token);
$this->session->set_userdata('email', $data->email);
$this->session->set_userdata('firstname', $data->firstname);
$this->session->set_userdata('lastname', $data->lastname);
$this->session->set_userdata('adresse', $data->adresse);
$this->session->set_userdata('agent_id', $data->agent_id);
$this->session->set_userdata('currency_code', $data->currency_code);
if($user_login['user_role']==1){
$this->session->set_userdata('country', $data->country);
if($user_login['user_role']==1){
$this->session->set_userdata('country', $data->country);
$pays = $this->user_model->getAllCountries();
$this->session->set_userdata('current_pays', $pays->first_row()->name);
$pays = $this->user_model->getAllCountries();
$this->session->set_userdata('current_pays', $pays->first_row()->name);
$hyper = $this->user_model->getAllHyper($this->session->userdata('current_pays'));
$this->session->set_userdata('current_hyper', $hyper->first_row()->code_membre);
$hyper = $this->user_model->getAllHyper($this->session->userdata('current_pays'));
$this->session->set_userdata('current_hyper', $hyper->first_row()->code_membre);
$ville = $this->user_model->getVilleNetworkByHyper($this->session->userdata('current_hyper'));
$this->session->set_userdata('current_ville', $ville->first_row()->ville);
$ville = $this->user_model->getVilleNetworkByHyper($this->session->userdata('current_hyper'));
$this->session->set_userdata('current_ville', $ville->first_row()->ville);
$this->session->set_userdata('category', $data->category);
$this->session->set_userdata('category', $data->category);
redirect('index.php/Admin_dash/filter');
redirect('Admin_dash/filter');
}else{
$this->session->set_userdata('member_code', $data->code_membre);
$this->session->set_userdata('longitude', $data->longitude);
$this->session->set_userdata('latitude', $data->latitude);
$this->session->set_userdata('phone', $data->phone);
$this->session->set_userdata('category', $data->category);
$this->session->set_userdata('network', $data->network);
$this->session->set_userdata('network_id', $data->network_id);
$this->session->set_userdata('current_pays', $data->country);
}else{
$this->session->set_userdata('member_code', $data->code_membre);
$this->session->set_userdata('longitude', $data->longitude);
$this->session->set_userdata('latitude', $data->latitude);
$this->session->set_userdata('phone', $data->phone);
$this->session->set_userdata('category', $data->category);
$this->session->set_userdata('network', $data->network);
$this->session->set_userdata('network_id', $data->network_id);
$this->session->set_userdata('current_pays', $data->country);
if($data->category == $hyper) {
redirect('index.php/Hyperviseur_dash');
} else if ($data->category == $super) {
$this->session->set_userdata('code_parrain', $data->code_parrain);
redirect('index.php/Superviseur_dash');
}
}
if($data->category == $hyper) {
redirect('Hyperviseur_dash');
} else if ($data->category == $super) {
$this->session->set_userdata('code_parrain', $data->code_parrain);
redirect('Superviseur_dash');
}
}
} else {
$this->session->set_flashdata('error_msg', 'Error occured,Try again.');
}
}
$data['alert'] = "ok";
$data['message'] = "L'identifiant " . $user_login['user_email'] . " ou le mot de passe sont incorrectes ou vérifiez votre grade!";
$this->load->view('login', $data);
}
$this->session->set_flashdata('error_msg', 'Error occured,Try again.');
$data['alert'] = "ok";
$data['message'] = "L'identifiant " . $user_login['user_email'] . " ou le mot de passe sont incorrectes ou vérifiez votre grade!";
$this->load->view('login', $data);
}
@ -219,7 +240,7 @@
$this->session->sess_destroy();
$data['alert'] = 'You have been disconnected';
$this->session->set_flashdata('error','You have been disconnected' );
redirect('index.php/Users', $data);
redirect('Users', $data);
// $this->load->view('login', $data);
}
@ -242,7 +263,7 @@
$token_query = $this->db->query("SELECT token FROM admin WHERE email='".$email."'");
$token = $token_query->first_row()->token;
$link = base_url("index.php/Admin_password/?token=".$token);
$link = base_url("Admin_password/?token=".$token);
$this->load->library('email');
$this->email->from('noreply@ilink-app.com', 'iLink World');

View File

@ -0,0 +1,34 @@
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class ValidatingDoctor extends CI_Controller
{
public function __construct()
{
parent::__construct();
$this->load->model('nano_credit_model');
}
public function index(){
// if ($this->isLogged()){
$data['active'] = "dashboard";
$this->load->view('nano_health/validating_doctor/header', $data);
$this->load->view('nano_health/validating_doctor/dashboard', $data);
$this->load->view('footer');
// }
}
private function isLogged(){
if (!$this->session->userdata('email')) {
$this->session->set_flashdata('error', 'log in first');
$data['alert'] = "ok";
$data['message'] = "Login first!";
redirect('index.php', $data);
return false;
}
return true;
}
}

View File

@ -134,3 +134,17 @@ if (!function_exists('convertDate')) {
}
}
if (!function_exists('hashSSHA')) {
function hashSSHA($password) {
$salt = sha1(rand());
$salt = substr($salt, 0, 10);
$encrypted = base64_encode(sha1($password . $salt, true) . $salt);
return array("salt" => $salt, "encrypted" => $encrypted);
}
}
if (!function_exists('checkhashSSHA')) {
function checkhashSSHA($salt, $password) {
return base64_encode(sha1($password . $salt, true) . $salt);
}
}

View File

@ -671,5 +671,26 @@ $lang['PACKAGE'] = "Package";
$lang['UNIT_PRICE'] = "Unit price";
$lang['FREE'] = "Free";
$lang['PRIOR'] = "Prerequisite";
$lang['first_rule_years_price_grid'] = "The minimum age must be less than or equal to the age limit of the child beneficiary";
$lang['second_rule_years_price_grid'] = "The maximum age must be less than or equal to the age limit of the child beneficiary";
$lang['validating_doctors'] = "Validating doctors";
$lang['validating_doctor'] = "Validating doctor";
$lang['manage_validating_doctors'] = "Managing validating doctors";
$lang['add_validating_doctor'] = "Add a validating doctor";
$lang['validating_doctor_created'] = "Validating doctor created";
$lang['mail_title_validating_doctor'] = "Create your validating doctor account";
$lang['mail_body_validating_doctor'] = "Your validating doctor account has been created. Please follow this link to set up your password";
$lang['validating_doctor_updated'] = "Validating doctor modified";
$lang['validating_doctor_deleted'] = "Deleted validating doctor";
$lang['delete_of_act'] = "Deleted act";
$lang['act_deleted'] = "Deleted act";
$lang['care_requests'] = "Care requests";
$lang['accepted_care_requests'] = "Accepted care requests";
$lang['cancelled_care_requests'] = "Cancelled care requests";
$lang['not_treated_care_requests'] = "Care requests not processed";
$lang['provider_classes'] = "Provider classes";
$lang['add_provider_class'] = "Add a provider class";
$lang['edit_provider_class'] = "Edit a class";
$lang['delete_provider_class'] = "Delete a provider class";
$lang['provider_class_deleted'] = "Deleted provider class";
?>

View File

@ -683,4 +683,26 @@ $lang['PACKAGE'] = "Forfait";
$lang['UNIT_PRICE'] = "Prix unitaire";
$lang['FREE'] = "Libre";
$lang['PRIOR'] = "Préalable";
$lang['first_rule_years_price_grid'] = "L'age minimal doit être inférieur ou égal à l'age limite de layant droit enfant";
$lang['second_rule_years_price_grid'] = "L'age maximal doit être inférieur ou égal à l'age limite de layant droit enfant";
$lang['validating_doctors'] = "Médécins valideurs";
$lang['validating_doctor'] = "Médécin valideur";
$lang['manage_validating_doctors'] = "Gestion des médécins valideurs";
$lang['add_validating_doctor'] = "Ajouter un médécin valideur";
$lang['validating_doctor_created'] = "Médécin valideur crée";
$lang['mail_title_validating_doctor'] = "Création de votre compte médecin valideur";
$lang['mail_body_validating_doctor'] = "votre compte médecin valideur a bien été créé.\n\nVeuillez suivre ce lien pour configurer votre mot de passe.";
$lang['validating_doctor_updated'] = "Médécin valideur modifié";
$lang['validating_doctor_deleted'] = "Médécin valideur supprimé";
$lang['delete_of_act'] = "Suppression de l'acte";
$lang['act_deleted'] = "Acte supprimé";
$lang['care_requests'] = "Demandes de soins";
$lang['accepted_care_requests'] = "Demandes de soins acceptées";
$lang['cancelled_care_requests'] = "Demandes de soins annulées";
$lang['not_treated_care_requests'] = "Demandes de soins non traitées";
$lang['provider_classes'] = "Classes de prestataires";
$lang['add_provider_class'] = "Ajouter une classe de prestataire";
$lang['edit_provider_class'] = "Modifier une classe";
$lang['delete_provider_class'] = "Suppression d'une classe de prestataire";
$lang['provider_class_deleted'] = "Classe de prestataire supprimée";
?>

View File

@ -37,16 +37,9 @@ class Nano_health_model extends CI_Model
return $this->db->get_where('nh_acts',['nh_network_config_id'=> $configId]);
}
// Nano sante
public function getAllIlinkWorldNetworks()
// Classes de prestataires
public function getProviderClasses($configId)
{
$query = $this->db->query("SELECT networks.name AS network,networks.status AS status,networks.id,cc.name AS country,networks.country_id , configWallet.id_network , configWallet.type,cc.currency_code,
configWallet.has_nano_health FROM `networks`
INNER JOIN countries_currencies cc ON networks.country_id=cc.id LEFT JOIN configWallet ON configWallet.id_network = networks.id WHERE status = 1 AND configWallet.type = 'ilink'");
if ($query->num_rows() > 0) {
return $query;
} else {
return false;
}
return $this->db->get_where('nh_provider_classes',['nh_network_config_id'=> $configId]);
}
}

View File

@ -42,7 +42,7 @@ class User_model extends CI_Model
{
$salt = $query->row()->salt;
$encrypted_password = $query->row()->encrypted_password;
$hash = $this->checkhashSSHA($salt, $pass);
$hash = checkhashSSHA($salt, $pass);
if ($encrypted_password == $hash) {
return $query->row();
@ -115,13 +115,6 @@ class User_model extends CI_Model
}
}
public function checkhashSSHA($salt, $password) {
$hash = base64_encode(sha1($password . $salt, true) . $salt);
return $hash;
}
public function countUser($category,$network,$codeParrain){
if($codeParrain=='all'){
@ -1214,35 +1207,17 @@ class User_model extends CI_Model
public function isEmailExist($email) {
$query = $this->db->query("SELECT id FROM admin WHERE email='".$email."'");
if ($query->num_rows() > 0) {
// user existed
return true;
} else {
// user not existed
return false;
}
return $query->num_rows() > 0;
}
public function isPhoneExist($phone) {
$query = $this->db->query("SELECT id FROM admin WHERE phone='".$phone."'");
if ($query->num_rows() > 0) {
// user existed
return true;
} else {
// user not existed
return false;
}
return $query->num_rows() > 0;
}
public function getToken($token){
$query = $this->db->query("SELECT id FROM admin WHERE token='".$token."'");
if ($query->num_rows() > 0) {
// token not used
return true;
} else {
// token expired
return false;
}
return $query->num_rows() > 0;
}
public function createPasswordAdmin($encrypted_password,$salt,$token){

View File

@ -278,13 +278,13 @@
<script type='text/javascript'>
$(document).ready(function(){
$('#gestion_btn').click(function(){
window.location.href = "<?php echo base_url('index.php/Gestion') ?>";
window.location.href = "<?php echo base_url('Gestion') ?>";
});
$('#pays').change(function(){
var pays = $(this).val();
$.ajax({
url:'<?php echo base_url('index.php/Admin/getHypByPays')?>',
url:'<?php echo base_url('Admin/getHypByPays')?>',
type: 'post',
data: {pays: pays},
dataType: 'json',
@ -310,7 +310,7 @@
var code = data[0].code_membre;
$.ajax({
url:'<?php echo base_url('index.php/Admin/getVilleByHyp')?>',
url:'<?php echo base_url('Admin/getVilleByHyp')?>',
type: 'post',
data: {code: code,pays:pays},
dataType: 'json',
@ -360,7 +360,7 @@
$('#hyper').change(function(){
var code = $(this).val();
$.ajax({
url:'<?php echo base_url('index.php/Admin/getVilleByHyp')?>',
url:'<?php echo base_url('Admin/getVilleByHyp')?>',
type: 'post',
data: {code: code},
dataType: 'json',

View File

@ -1,82 +1,82 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>iLink | Password</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.7 -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/bootstrap/dist/css/bootstrap.min.css') ?>">
<!-- Font Awesome -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/font-awesome/css/font-awesome.min.css') ?>">
<!-- Ionicons -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/Ionicons/css/ionicons.min.css') ?>">
<!-- Theme style -->
<link rel="stylesheet" href="<?php echo base_url('dist/css/AdminLTE.css') ?>">
<!-- iCheck -->
<link rel="stylesheet" href="<?php echo base_url('plugins/iCheck/square/blue.css') ?>">
<link rel="shortcut icon" href="<?php echo base_url('favicon.ico') ?>" type="image/x-icon">
<link rel="icon" href="<?php echo base_url('favicon.ico') ?>" type="image/x-icon">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Google Font -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>
<body class="hold-transition login-page">
<div class="login-box">
<div class="login-logo">
<a href='<?php echo base_url() ?>' id="t">
<img class="img img-responsive" src="<?php echo base_url('images/logo_blueback.png') ?>">
</a>
</div>
<!-- /.login-logo -->
<div class="login-box-body">
<p><?php echo $message; ?></p>
<form action="<?php echo base_url('index.php/Users/sendEmailInstructions')?>" method="post" id="password-form">
<div class="form-group has-feedback">
<input name="email" id="email" type="text" class="form-control" placeholder="Email" required>
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
</div>
<div class="form-group" align="center">
<button type="submit" name="Submit" class="btn btn-primary btn-block btn-flat">Confirmer</button>
<button type="button" id="back" class="btn btn-danger btn-block btn-flat">Retour</button>
</div>
</form>
</div>
<!-- /.login-box-body -->
</div>
<!-- /.login-box -->
<!-- jQuery 3 -->
<script src="<?php echo base_url('bower_components/jquery/dist/jquery.min.js') ?>"></script>
<!-- Bootstrap 3.3.7 -->
<script src="<?php echo base_url('bower_components/bootstrap/dist/js/bootstrap.min.js') ?>"></script>
<!-- iCheck -->
<script src="<?php echo base_url('plugins/iCheck/icheck.min.js') ?>"></script>
<script>
$(function () {
$('input').iCheck({
checkboxClass: 'icheckbox_square-blue',
radioClass: 'iradio_square-blue',
increaseArea: '20%' // optional
});
$('#back').click(function(){
$(location).attr('href',"<?php echo base_url('index.php/Users/index')?>");
});
});
</script>
</body>
</html>
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>iLink | Password</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.7 -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/bootstrap/dist/css/bootstrap.min.css') ?>">
<!-- Font Awesome -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/font-awesome/css/font-awesome.min.css') ?>">
<!-- Ionicons -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/Ionicons/css/ionicons.min.css') ?>">
<!-- Theme style -->
<link rel="stylesheet" href="<?php echo base_url('dist/css/AdminLTE.css') ?>">
<!-- iCheck -->
<link rel="stylesheet" href="<?php echo base_url('plugins/iCheck/square/blue.css') ?>">
<link rel="shortcut icon" href="<?php echo base_url('favicon.ico') ?>" type="image/x-icon">
<link rel="icon" href="<?php echo base_url('favicon.ico') ?>" type="image/x-icon">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Google Font -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>
<body class="hold-transition login-page">
<div class="login-box">
<div class="login-logo">
<a href='<?php echo base_url() ?>' id="t">
<img class="img img-responsive" src="<?php echo base_url('images/logo_blueback.png') ?>">
</a>
</div>
<!-- /.login-logo -->
<div class="login-box-body">
<p><?php echo $message; ?></p>
<form action="<?php echo base_url('Users/sendEmailInstructions')?>" method="post" id="password-form">
<div class="form-group has-feedback">
<input name="email" id="email" type="text" class="form-control" placeholder="Email" required>
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
</div>
<div class="form-group" align="center">
<button type="submit" name="Submit" class="btn btn-primary btn-block btn-flat">Confirmer</button>
<button type="button" id="back" class="btn btn-danger btn-block btn-flat">Retour</button>
</div>
</form>
</div>
<!-- /.login-box-body -->
</div>
<!-- /.login-box -->
<!-- jQuery 3 -->
<script src="<?php echo base_url('bower_components/jquery/dist/jquery.min.js') ?>"></script>
<!-- Bootstrap 3.3.7 -->
<script src="<?php echo base_url('bower_components/bootstrap/dist/js/bootstrap.min.js') ?>"></script>
<!-- iCheck -->
<script src="<?php echo base_url('plugins/iCheck/icheck.min.js') ?>"></script>
<script>
$(function () {
$('input').iCheck({
checkboxClass: 'icheckbox_square-blue',
radioClass: 'iradio_square-blue',
increaseArea: '20%' // optional
});
$('#back').click(function(){
$(location).attr('href',"<?php echo base_url('Users/index')?>");
});
});
</script>
</body>
</html>

View File

@ -1,89 +1,89 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>iLink | Password</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.7 -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/bootstrap/dist/css/bootstrap.min.css') ?>">
<!-- Font Awesome -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/font-awesome/css/font-awesome.min.css') ?>">
<!-- Ionicons -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/Ionicons/css/ionicons.min.css') ?>">
<!-- Theme style -->
<link rel="stylesheet" href="<?php echo base_url('dist/css/AdminLTE.css') ?>">
<!-- iCheck -->
<link rel="stylesheet" href="<?php echo base_url('plugins/iCheck/square/blue.css') ?>">
<link rel="shortcut icon" href="<?php echo base_url('favicon.ico') ?>" type="image/x-icon">
<link rel="icon" href="<?php echo base_url('favicon.ico') ?>" type="image/x-icon">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Google Font -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>
<body class="hold-transition login-page">
<div class="login-box">
<div class="login-logo">
<a href='<?php echo base_url() ?>' id="t">
<img class="img img-responsive" src="<?php echo base_url('images/logo_blueback.png') ?>">
</a>
</div>
<!-- /.login-logo -->
<div class="login-box-body">
<form action="<?php echo base_url('index.php/Admin_password/create_password')?>" method="post" id="password-form">
<div class="form-group has-feedback">
<input name="password" id="password" type="password" class="form-control" placeholder="Nouveau mot de passe" required>
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input type="password" name="password_confirm" id="password_confirm" class="form-control" placeholder="Entrez à nouveau le mot de passe" required>
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<div class="form-group" align="center">
<button type="submit" name="Submit" class="btn btn-primary btn-block btn-flat">Terminer</button>
</div>
</form>
</div>
<!-- /.login-box-body -->
</div>
<!-- /.login-box -->
<!-- jQuery 3 -->
<script src="<?php echo base_url('bower_components/jquery/dist/jquery.min.js') ?>"></script>
<!-- Bootstrap 3.3.7 -->
<script src="<?php echo base_url('bower_components/bootstrap/dist/js/bootstrap.min.js') ?>"></script>
<!-- iCheck -->
<script src="<?php echo base_url('plugins/iCheck/icheck.min.js') ?>"></script>
<script>
$(function () {
$('input').iCheck({
checkboxClass: 'icheckbox_square-blue',
radioClass: 'iradio_square-blue',
increaseArea: '20%' // optional
});
});
$("#password-form").submit(function(){
var password = $("#password-form #password").val();
var confirm_password = $("#password-form #password_confirm").val();
if(password!==confirm_password){
event.preventDefault();
}
});
</script>
</body>
</html>
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>iLink | Password</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.7 -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/bootstrap/dist/css/bootstrap.min.css') ?>">
<!-- Font Awesome -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/font-awesome/css/font-awesome.min.css') ?>">
<!-- Ionicons -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/Ionicons/css/ionicons.min.css') ?>">
<!-- Theme style -->
<link rel="stylesheet" href="<?php echo base_url('dist/css/AdminLTE.css') ?>">
<!-- iCheck -->
<link rel="stylesheet" href="<?php echo base_url('plugins/iCheck/square/blue.css') ?>">
<link rel="shortcut icon" href="<?php echo base_url('favicon.ico') ?>" type="image/x-icon">
<link rel="icon" href="<?php echo base_url('favicon.ico') ?>" type="image/x-icon">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Google Font -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>
<body class="hold-transition login-page">
<div class="login-box">
<div class="login-logo">
<a href='<?php echo base_url() ?>' id="t">
<img class="img img-responsive" src="<?php echo base_url('images/logo_blueback.png') ?>">
</a>
</div>
<!-- /.login-logo -->
<div class="login-box-body">
<form action="<?= base_url(isset($isValidatingDoctor) ? 'Doctor_password/create_password' : 'Admin_password/create_password' )?>" method="post" id="password-form">
<div class="form-group has-feedback">
<input name="password" id="password" type="password" class="form-control" placeholder="Nouveau mot de passe" required>
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input type="password" name="password_confirm" id="password_confirm" class="form-control" placeholder="Entrez à nouveau le mot de passe" required>
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<div class="form-group" align="center">
<button type="submit" name="Submit" class="btn btn-primary btn-block btn-flat">Terminer</button>
</div>
</form>
</div>
<!-- /.login-box-body -->
</div>
<!-- /.login-box -->
<!-- jQuery 3 -->
<script src="<?php echo base_url('bower_components/jquery/dist/jquery.min.js') ?>"></script>
<!-- Bootstrap 3.3.7 -->
<script src="<?php echo base_url('bower_components/bootstrap/dist/js/bootstrap.min.js') ?>"></script>
<!-- iCheck -->
<script src="<?php echo base_url('plugins/iCheck/icheck.min.js') ?>"></script>
<script>
$(function () {
$('input').iCheck({
checkboxClass: 'icheckbox_square-blue',
radioClass: 'iradio_square-blue',
increaseArea: '20%' // optional
});
});
$("#password-form").submit(function(){
var password = $("#password-form #password").val();
var confirm_password = $("#password-form #password_confirm").val();
if(password!==confirm_password){
event.preventDefault();
}
});
</script>
</body>
</html>

View File

@ -26,7 +26,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<div class="col-xs-12 col-sm-8 col-md-6 col-sm-offset-2 col-md-offset-3">
<br><br>
<form name="form_login" action="<?php echo base_url('index.php/Admin/add'); ?>" method="post" role="form">
<form name="form_login" action="<?php echo base_url('Admin/add'); ?>" method="post" role="form">
<fieldset>
<h2>Creer un admin</h2>
@ -62,4 +62,4 @@ defined('BASEPATH') OR exit('No direct script access allowed');
</body>
</html>
</html>

View File

@ -285,7 +285,7 @@ $converter = new CurrencyConverter($provider);
<!---->
<!-- </div>-->
<div class="box-body">
<form id="calculatorForm" class="form-content" method="post" action="<?php echo base_url('index.php/Hyperviseur_dash/calculator') ?>">
<form id="calculatorForm" class="form-content" method="post" action="<?php echo base_url('Hyperviseur_dash/calculator') ?>">
<div class="form-group">
<div class="row">
<div class="col-lg-3">

View File

@ -34,7 +34,7 @@
<h3 class="box-title"><?php echo $this->lang->line('Générateur de codes'); ?></h3>
</div>
<div class="box-body">
<form name="form_login" action="<?php echo base_url('index.php/Gestion/generateCode') ?>" method="post">
<form name="form_login" action="<?php echo base_url('Gestion/generateCode') ?>" method="post">
<div class="row">
<div class="col-xs-3">
<input class="form-control" placeholder="<?php echo $this->lang->line('Entrez le nombre de codes'); ?>" type='number' name='c' min="1"/>
@ -167,7 +167,7 @@
$('#pays').change(function(){
var pays = $(this).val();
$.ajax({
url:'<?php echo base_url('index.php/Admin/getHypByPays')?>',
url:'<?php echo base_url('Admin/getHypByPays')?>',
type: 'post',
data: {pays: pays},
dataType: 'json',
@ -187,7 +187,7 @@
var code = data[0].member_code;
$.ajax({
url:'<?php echo base_url('index.php/Admin/getVilleByHyp')?>',
url:'<?php echo base_url('Admin/getVilleByHyp')?>',
type: 'post',
data: {code: code,pays:pays},
dataType: 'json',
@ -235,7 +235,7 @@
$('#hyper').change(function(){
var code = $(this).val();
$.ajax({
url:'<?php echo base_url('index.php/Admin/getVilleByHyp')?>',
url:'<?php echo base_url('Admin/getVilleByHyp')?>',
type: 'post',
data: {code: code},
dataType: 'json',

View File

@ -77,7 +77,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<li class="divider"></li>
<li class="divider visible-phone"></li>
<li><a tabindex="-1" href="<?php echo base_url('index.php/Login/logout') ?>">Logout</a></li>
<li><a tabindex="-1" href="<?php echo base_url('Login/logout') ?>">Logout</a></li>
</ul>
</li>
@ -180,10 +180,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$simple="simple";
$super="super";
if($t==$d && $c==$simple){
redirect('https://ilink-app.com/backoffice/index.php/Member_code');
redirect('https://ilink-app.com/backoffice/Member_code');
}
else{
redirect('https://ilink-app.com/backoffice/index.php/Member_code_admin');
redirect('https://ilink-app.com/backoffice/Member_code_admin');
}
}
}

View File

@ -27,7 +27,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
<?php echo $this->lang->line('config_agent').' - '.$this->lang->line('config_ilink_agent_remove_carte_cash'); ?>
</h1>
<?php
$site_url = base_url();
if ($alert == "ok") {
@ -268,7 +268,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
}else {
if ($('#walletForm')[0].checkValidity()) {
$.ajax({
url: '<?php echo base_url('index.php/Gestion/config_wallet/update')?>',
url: '<?php echo base_url('Gestion/config_wallet/update')?>',
type: 'POST',
dataType: 'json',
data: {

View File

@ -27,7 +27,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
<?php echo $this->lang->line('config_agent').' - '.$this->lang->line('config_ilink_agent_remove_cash'); ?>
</h1>
<?php
$site_url = base_url();
if ($alert == "ok") {
@ -229,7 +229,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
} else {
if ($('#walletForm')[0].checkValidity()) {
$.ajax({
url: '<?php echo base_url('index.php/Gestion/config_wallet/update')?>',
url: '<?php echo base_url('Gestion/config_wallet/update')?>',
type: 'POST',
dataType: 'json',
data: {

View File

@ -126,7 +126,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
<?php echo $this->lang->line('config_agent').' - '.$this->lang->line('config_ilink_agent_send_cash_canal'); ?>
</h1>
<?php
$site_url = base_url();
if ($alert == "ok") {
@ -844,7 +844,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
$.ajax({
url: '<?php echo base_url('index.php/Gestion/config_wallet/update')?>',
url: '<?php echo base_url('Gestion/config_wallet/update')?>',
type: 'POST',
dataType: 'json',
data: {

View File

@ -27,7 +27,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
<?php echo $this->lang->line('config_agent').' - '.$this->lang->line('config_ilink_agent_send_cash_carte'); ?>
</h1>
<?php
$site_url = base_url();
if ($alert == "ok") {
@ -269,7 +269,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
} else {
if ($('#walletForm')[0].checkValidity()) {
$.ajax({
url: '<?php echo base_url('index.php/Gestion/config_wallet/update')?>',
url: '<?php echo base_url('Gestion/config_wallet/update')?>',
type: 'POST',
dataType: 'json',
data: {

View File

@ -26,7 +26,7 @@
<!-- value="Activer/Désactiver le(s) réseau(x)" />-->
</h1>
<?php
$site_url = base_url();
if ($alert == "ok") {
@ -197,7 +197,7 @@
<?php }else{ ?>
<div class="text-center">
<h4> <?php echo $this->lang->line('no_wallet_password') ?></h4>
<a href="<?php echo base_url('index.php/Hyperviseur_dash/walletPassword') ?>" alt="" class="btn btn-primary"><?php echo $this->lang->line('click_here') ?></a>
<a href="<?php echo base_url('Hyperviseur_dash/walletPassword') ?>" alt="" class="btn btn-primary"><?php echo $this->lang->line('click_here') ?></a>
</div>
<?php } ?>
</div>
@ -394,7 +394,7 @@
let button = $(this)
button.prop("disabled",true);
$.ajax({
url: '<?php echo base_url('index.php/Hyperviseur_dash/resetWalletPassword')?>',
url: '<?php echo base_url('Hyperviseur_dash/resetWalletPassword')?>',
type: 'POST',
dataType: 'json',
data: {
@ -442,7 +442,7 @@
button.prop("disabled",true);
$.ajax({
url: '<?php echo base_url('index.php/Hyperviseur_dash/pay_commission_in_cash')?>',
url: '<?php echo base_url('Hyperviseur_dash/pay_commission_in_cash')?>',
type: 'POST',
dataType: 'json',
data: {

View File

@ -48,7 +48,7 @@
<!-- value="Activer/Désactiver le(s) réseau(x)" />-->
</h1>
<?php
$site_url = base_url();
if ($alert == "ok") {

View File

@ -26,7 +26,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
<?php echo $this->lang->line('edit_tax'); ?>
</h1>
<?php
$site_url = base_url();
if ($alert == "ok") {
@ -218,7 +218,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
if ($('#taxForm')[0].checkValidity()) {
$.ajax({
url: '<?php echo base_url('index.php/Gestion/saveTaxes')?>',
url: '<?php echo base_url('Gestion/saveTaxes')?>',
type: 'POST',
dataType: 'json',
data: {

View File

@ -27,7 +27,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
<?php echo $this->lang->line('config_user').' - '.$this->lang->line('config_ilink_user_carte_wallet'); ?>
</h1>
<?php
$site_url = base_url();
if ($alert == "ok") {
@ -249,7 +249,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
} else {
if ($('#walletForm')[0].checkValidity()) {
$.ajax({
url: '<?php echo base_url('index.php/Gestion/config_wallet/update')?>',
url: '<?php echo base_url('Gestion/config_wallet/update')?>',
type: 'POST',
dataType: 'json',
data: {

View File

@ -26,7 +26,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
<?php echo $this->lang->line('config_user').' - '.$this->lang->line('config_ilink_user_wallet_carte'); ?>
</h1>
<?php
$site_url = base_url();
if ($alert == "ok") {
@ -235,7 +235,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
if ($('#walletForm')[0].checkValidity()) {
$.ajax({
url: '<?php echo base_url('index.php/Gestion/config_wallet/update')?>',
url: '<?php echo base_url('Gestion/config_wallet/update')?>',
type: 'POST',
dataType: 'json',
data: {

View File

@ -126,7 +126,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
<?php echo $this->lang->line('config_user').' - '.$this->lang->line('config_ilink_user_wallet_cash'); ?>
</h1>
<?php
$site_url = base_url();
if ($alert == "ok") {
@ -410,7 +410,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
});
$.ajax({
url: '<?php echo base_url('index.php/Gestion/config_wallet/update')?>',
url: '<?php echo base_url('Gestion/config_wallet/update')?>',
type: 'POST',
dataType: 'json',
data: {

View File

@ -125,7 +125,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
<?php echo $this->lang->line('config_user').' - '.$this->lang->line('config_ilink_user_wallet_wallet'); ?>
</h1>
<?php
$site_url = base_url();
if ($alert == "ok") {
@ -409,7 +409,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
$.ajax({
url: '<?php echo base_url('index.php/Gestion/config_wallet/update')?>',
url: '<?php echo base_url('Gestion/config_wallet/update')?>',
type: 'POST',
dataType: 'json',
data: {

View File

@ -153,7 +153,7 @@
<?php
$site_url = base_url();
$url = base_url('index.php/Listes_members/modif');
$url = base_url('Listes_members/modif');
// output data of each row
foreach($result->result() as $row) {
$num++;
@ -299,7 +299,7 @@
<?php
$site_url = base_url();
$url = base_url('index.php/Listes_members/modif');
$url = base_url('Listes_members/modif');
// output data of each row
foreach($result->result() as $row) {
$num++;
@ -443,7 +443,7 @@
<?php
$site_url = base_url();
$url = base_url('index.php/Listes_members/modif');
$url = base_url('Listes_members/modif');
// output data of each row
foreach($result->result() as $row) {
$num++;
@ -577,7 +577,7 @@
<?php
$site_url = base_url();
$url = base_url('index.php/Listes_members/modif');
$url = base_url('Listes_members/modif');
// output data of each row
foreach($result->result() as $row) {
$num++;
@ -709,7 +709,7 @@
<?php
$site_url = base_url();
$url = base_url('index.php/Listes_members/modif');
$url = base_url('Listes_members/modif');
// output data of each row
foreach($result->result() as $row) {
$num++;
@ -838,7 +838,7 @@
<?php
$site_url = base_url();
$url = base_url('index.php/Listes_members/modif');
$url = base_url('Listes_members/modif');
// output data of each row
foreach($result->result() as $row) {
$num++;
@ -973,7 +973,7 @@
<?php
$site_url = base_url();
$url = base_url('index.php/Listes_members/modif');
$url = base_url('Listes_members/modif');
// output data of each row
foreach($result->result() as $row) {
$num++;
@ -1118,7 +1118,7 @@
<?php
$site_url = base_url();
$url = base_url('index.php/Listes_members/modif');
$url = base_url('Listes_members/modif');
// output data of each row
foreach($result->result() as $row) {
$num++;
@ -1248,7 +1248,7 @@
<?php
$site_url = base_url();
$url = base_url('index.php/Listes_members/modif');
$url = base_url('Listes_members/modif');
// output data of each row
foreach($result->result() as $row) {
$num++;
@ -1448,15 +1448,15 @@
const user_geo = GetURLParameter("u");
if(category == 'super'){
if(type == 'credit'){
window.location.replace("<?php echo base_url('index.php/Superviseur_dash/getDemandes')?>"+"?d="+debut+"&f="+fin+"&u="+user_geo);
window.location.replace("<?php echo base_url('Superviseur_dash/getDemandes')?>"+"?d="+debut+"&f="+fin+"&u="+user_geo);
}else if (type == 'adhesion'){
window.location.replace("<?php echo base_url('index.php/Superviseur_dash/getDemandesAd')?>"+"?d="+debut+"&f="+fin);
window.location.replace("<?php echo base_url('Superviseur_dash/getDemandesAd')?>"+"?d="+debut+"&f="+fin);
}
}else if (category == 'hyper'){
if(type == 'credit'){
window.location.replace("<?php echo base_url('index.php/Hyperviseur_dash/getDemandes')?>"+"?d="+debut+"&f="+fin+"&u="+user_geo);
window.location.replace("<?php echo base_url('Hyperviseur_dash/getDemandes')?>"+"?d="+debut+"&f="+fin+"&u="+user_geo);
}else if (type == 'adhesion'){
window.location.replace("<?php echo base_url('index.php/Hyperviseur_dash/getDemandesAd')?>"+"?d="+debut+"&f="+fin);
window.location.replace("<?php echo base_url('Hyperviseur_dash/getDemandesAd')?>"+"?d="+debut+"&f="+fin);
}
}
@ -1466,15 +1466,15 @@
$('#daterange').val('');
if(category == 'super'){
if(type == 'credit'){
window.location.replace("<?php echo base_url('index.php/Superviseur_dash/getDemandes')?>"+"?d="+debut+"&f="+fin+"&u="+user_geo);
window.location.replace("<?php echo base_url('Superviseur_dash/getDemandes')?>"+"?d="+debut+"&f="+fin+"&u="+user_geo);
}else if (type == 'adhesion'){
window.location.replace("<?php echo base_url('index.php/Superviseur_dash/getDemandesAd')?>"+"?d="+debut+"&f="+fin);
window.location.replace("<?php echo base_url('Superviseur_dash/getDemandesAd')?>"+"?d="+debut+"&f="+fin);
}
}else if (category == 'hyper'){
if(type == 'credit'){
window.location.replace("<?php echo base_url('index.php/Hyperviseur_dash/getDemandes')?>"+"?d="+debut+"&f="+fin+"&u="+user_geo);
window.location.replace("<?php echo base_url('Hyperviseur_dash/getDemandes')?>"+"?d="+debut+"&f="+fin+"&u="+user_geo);
}else if (type == 'adhesion'){
window.location.replace("<?php echo base_url('index.php/Hyperviseur_dash/getDemandesAd')?>"+"?d="+debut+"&f="+fin);
window.location.replace("<?php echo base_url('Hyperviseur_dash/getDemandesAd')?>"+"?d="+debut+"&f="+fin);
}
}
@ -1489,7 +1489,7 @@
$('#pays').change(function(){
var pays = $(this).val();
$.ajax({
url:'<?php echo base_url('index.php/Admin/getHypByPays')?>',
url:'<?php echo base_url('Admin/getHypByPays')?>',
type: 'post',
data: {pays: pays},
dataType: 'json',
@ -1515,7 +1515,7 @@
var code = data[0].code_membre;
$.ajax({
url:'<?php echo base_url('index.php/Admin/getVilleByHyp')?>',
url:'<?php echo base_url('Admin/getVilleByHyp')?>',
type: 'post',
data: {code: code,pays:pays},
dataType: 'json',
@ -1565,7 +1565,7 @@
$('#hyper').change(function(){
var code = $(this).val();
$.ajax({
url:'<?php echo base_url('index.php/Admin/getVilleByHyp')?>',
url:'<?php echo base_url('Admin/getVilleByHyp')?>',
type: 'post',
data: {code: code},
dataType: 'json',

View File

@ -406,18 +406,18 @@
const fin = end.format('YYYY-MM-DD');
if(category == 'super'){
window.location.replace("<?php echo base_url('index.php/Superviseur_dash/getDemandesAd')?>"+"?d="+debut+"&f="+fin);
window.location.replace("<?php echo base_url('Superviseur_dash/getDemandesAd')?>"+"?d="+debut+"&f="+fin);
}else if (category == 'hyper'){
window.location.replace("<?php echo base_url('index.php/Hyperviseur_dash/getDemandesAd')?>"+"?d="+debut+"&f="+fin);
window.location.replace("<?php echo base_url('Hyperviseur_dash/getDemandesAd')?>"+"?d="+debut+"&f="+fin);
}
});
$('input[name="daterange"]').on('cancel.daterangepicker', function(ev, picker) {
//do something, like clearing an input
$('#daterange').val('');
if(category == 'super'){
window.location.replace("<?php echo base_url('index.php/Superviseur_dash/getDemandesAd')?>");
window.location.replace("<?php echo base_url('Superviseur_dash/getDemandesAd')?>");
}else if (category == 'hyper'){
window.location.replace("<?php echo base_url('index.php/Hyperviseur_dash/getDemandesAd')?>");
window.location.replace("<?php echo base_url('Hyperviseur_dash/getDemandesAd')?>");
}
});
});
@ -430,7 +430,7 @@
$('#pays').change(function(){
var pays = $(this).val();
$.ajax({
url:'<?php echo base_url('index.php/Admin/getHypByPays')?>',
url:'<?php echo base_url('Admin/getHypByPays')?>',
type: 'post',
data: {pays: pays},
dataType: 'json',
@ -456,7 +456,7 @@
var code = data[0].code_membre;
$.ajax({
url:'<?php echo base_url('index.php/Admin/getVilleByHyp')?>',
url:'<?php echo base_url('Admin/getVilleByHyp')?>',
type: 'post',
data: {code: code,pays:pays},
dataType: 'json',
@ -506,7 +506,7 @@
$('#hyper').change(function(){
var code = $(this).val();
$.ajax({
url:'<?php echo base_url('index.php/Admin/getVilleByHyp')?>',
url:'<?php echo base_url('Admin/getVilleByHyp')?>',
type: 'post',
data: {code: code},
dataType: 'json',

View File

@ -1092,9 +1092,9 @@
const user_geo = GetURLParameter("u");
const type = GetURLParameter("type");
if (category == 'super') {
window.location.replace("<?php echo base_url('index.php/Superviseur_dash/getDemandes?type=')?>" + type + "&d=" + debut + "&f=" + fin);
window.location.replace("<?php echo base_url('Superviseur_dash/getDemandes?type=')?>" + type + "&d=" + debut + "&f=" + fin);
} else if (category == 'hyper') {
window.location.replace("<?php echo base_url('index.php/Hyperviseur_dash/getDemandes')?>" + "?d=" + debut + "&f=" + fin);
window.location.replace("<?php echo base_url('Hyperviseur_dash/getDemandes')?>" + "?d=" + debut + "&f=" + fin);
}
});
$('input[name="daterange"]').on('cancel.daterangepicker', function (ev, picker) {

View File

@ -286,7 +286,7 @@
const debut = start.format('YYYY-MM-DD');
const fin = end.format('YYYY-MM-DD');
window.location.replace("<?php echo base_url('index.php/Hyperviseur_dash/demandsCancellation')?>" + "?d=" + debut + "&f=" + fin);
window.location.replace("<?php echo base_url('Hyperviseur_dash/demandsCancellation')?>" + "?d=" + debut + "&f=" + fin);
});
$('input[name="daterange"]').on('cancel.daterangepicker', function (ev, picker) {
@ -304,7 +304,7 @@
let button = $(this)
button.prop("disabled",true);
$.ajax({
url: '<?php echo base_url('index.php/Hyperviseur_dash/cancelCreditRequest')?>',
url: '<?php echo base_url('Hyperviseur_dash/cancelCreditRequest')?>',
type: 'POST',
dataType: 'json',
data: {"id_demand": id_demand},

View File

@ -40,7 +40,7 @@
<div class="login-page">
<!-- form -->
<div class="form-content">
<form action="<?php echo base_url('index.php/Admin_dash/firstFilter')?>" method="post" class="bottom-75 center-block">
<form action="<?php echo base_url('Admin_dash/firstFilter')?>" method="post" class="bottom-75 center-block">
<div class="modal-header">
<h4 class="modal-title"><p><?php echo $this->lang->line('Appliquer un filtre'); ?></h4>
</div>
@ -95,7 +95,7 @@
</div>
</div>
<div class="modal-footer">
<button class="btn btn-danger"><a class="btn-link" href="<?php echo base_url('index.php/Users/logout') ?>"><?php echo $this->lang->line('Retourner'); ?></a></button>
<button class="btn btn-danger"><a class="btn-link" href="<?php echo base_url('Users/logout') ?>"><?php echo $this->lang->line('Retourner'); ?></a></button>
<button type="submit" class="btn btn-primary"><?php echo $this->lang->line('Continuer'); ?></button>
</div>
</form>
@ -104,7 +104,7 @@
<button id="gestion_btn" class="btn btn-lg btn-success" style="margin-right: 25px;"><?php echo $this->lang->line('backoffice_management'); ?></button>
</div>
<div class="col-6">
<a class="btn btn-lg btn-primary" href="<?= base_url('index.php/Admin_dash/documentation')?>">Documentation</a>
<a class="btn btn-lg btn-primary" href="<?= base_url('Admin_dash/documentation')?>">Documentation</a>
</div>
</div>
</div>
@ -127,13 +127,13 @@
<script type='text/javascript'>
$(document).ready(function(){
$('#gestion_btn').click(function(){
window.location.href = "<?php echo base_url('index.php/Gestion') ?>";
window.location.href = "<?php echo base_url('Gestion') ?>";
});
$('#pays').change(function(){
var pays = $(this).val();
$.ajax({
url:'<?php echo base_url('index.php/Admin/getHypByPays')?>',
url:'<?php echo base_url('Admin/getHypByPays')?>',
type: 'post',
data: {pays: pays},
dataType: 'json',
@ -159,7 +159,7 @@
var code = data[0].code_membre;
$.ajax({
url:'<?php echo base_url('index.php/Admin/getVilleByHyp')?>',
url:'<?php echo base_url('Admin/getVilleByHyp')?>',
type: 'post',
data: {code: code,pays:pays},
dataType: 'json',
@ -209,7 +209,7 @@
$('#hyper').change(function(){
var code = $(this).val();
$.ajax({
url:'<?php echo base_url('index.php/Admin/getVilleByHyp')?>',
url:'<?php echo base_url('Admin/getVilleByHyp')?>',
type: 'post',
data: {code: code},
dataType: 'json',

View File

@ -1,18 +1,24 @@
<footer class="main-footer">
<div class="pull-right hidden-xs">
<b>Version</b> 2.0.0
</div>
<strong>Copyright &copy; <?php Date('Y'); ?> <a href="https://ilink-app.com">iLink World Corporation</a>.</strong> All rights
reserved.
</footer>
</div>
</body>
</html>
<footer class="main-footer">
<div class="pull-right hidden-xs">
<b>Version</b> 2.0.0
</div>
<strong>Copyright &copy; <?php Date('Y'); ?> <a href="https://ilink-app.com">iLink World Corporation</a>.</strong> All rights
reserved.
</footer>
</div>
<script>
// Add remove loading class on body element based on Ajax request status
$(document).on({
ajaxStart: function () {
$("body").addClass("loading");
},
ajaxStop: function () {
$("body").removeClass("loading");
}
});
</script>
</body>
</html>

View File

@ -278,7 +278,7 @@
var n3 = $('#palier3').val();
var n4 = $('#palier4').val();
$.ajax({
url:'<?php echo base_url('index.php/Gestion/modifierPalier')?>',
url:'<?php echo base_url('Gestion/modifierPalier')?>',
type: 'post',
data: {n1: n1,n2:n2,n3:n3,n4:n4},
dataType: 'json',
@ -296,14 +296,14 @@
$('.change-country').click(function(){
var id_pays = $(this).val();
$.post("<?php echo base_url('index.php/Gestion/change_country')?>",
$.post("<?php echo base_url('Gestion/change_country')?>",
{
pays: id_pays
},
function(data, status){
console.log(typeof data);
if(data==1){
window.location.replace("<?php echo base_url('index.php/Gestion/game')?>");
window.location.replace("<?php echo base_url('Gestion/game')?>");
}else{
alert("Une erreur s'est produite");
}
@ -338,7 +338,7 @@
if(selected.length > 0 && selectedForDisable.length === 0){
$.ajax({
url:'<?php echo base_url('index.php/Gestion/activerGame')?>',
url:'<?php echo base_url('Gestion/activerGame')?>',
type: 'post',
data: {pays: chkArray},
dataType: 'json',
@ -354,7 +354,7 @@
});
} else if (selectedForDisable.length > 0 && selected.length === 0){
$.ajax({
url:'<?php echo base_url('index.php/Gestion/desactiverGame')?>',
url:'<?php echo base_url('Gestion/desactiverGame')?>',
type: 'post',
data: {pays: unchkArray},
dataType: 'json',
@ -370,7 +370,7 @@
});
} else if (selectedForDisable.length > 0 && selected.length > 0){
$.ajax({
url:'<?php echo base_url('index.php/Gestion/activer_desactiverGame')?>',
url:'<?php echo base_url('Gestion/activer_desactiverGame')?>',
type: 'post',
data: {dpays: unchkArray,apays: chkArray},
dataType: 'json',

View File

@ -1,93 +1,93 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>iLink | Create</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.7 -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/bootstrap/dist/css/bootstrap.min.css') ?>">
<!-- Font Awesome -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/font-awesome/css/font-awesome.min.css') ?>">
<!-- Ionicons -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/Ionicons/css/ionicons.min.css') ?>">
<!-- Theme style -->
<link rel="stylesheet" href="<?php echo base_url('dist/css/AdminLTE.css') ?>">
<!-- iCheck -->
<link rel="stylesheet" href="<?php echo base_url('plugins/iCheck/square/blue.css') ?>">
<link rel="shortcut icon" href="<?php echo base_url('favicon.ico') ?>" type="image/x-icon">
<link rel="icon" href="<?php echo base_url('favicon.ico') ?>" type="image/x-icon">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Google Font -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>
<body class="hold-transition login-page">
<div class="login-box">
<div class="login-logo">
<a href='<?php echo base_url() ?>' id="t">
<img class="img img-responsive" src="<?php echo base_url('images/logo_blueback.png') ?>">
</a>
</div>
<!-- /.login-logo -->
<div class="login-box-body">
<form action="<?php echo base_url('index.php/Transfere/insert_satcon_agents')?>" method="post" id="password-form">
<div class="form-group ">
<input name="nom" id="nom" type="text" class="form-control" placeholder="Noms" required>
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<div class="form-group ">
<input type="text" name="telephone" id="telephone" class="form-control" placeholder="Téléphone" required>
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<div class="form-group ">
<input type="text" name="transaction" id="transaction" class="form-control" placeholder="N° transaction" required>
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<div class="form-group" align="center">
<button type="submit" name="Submit" class="btn btn-primary btn-block btn-flat">Créer</button>
</div>
</form>
</div>
<!-- /.login-box-body -->
</div>
<!-- /.login-box -->
<!-- jQuery 3 -->
<script src="<?php echo base_url('bower_components/jquery/dist/jquery.min.js') ?>"></script>
<!-- Bootstrap 3.3.7 -->
<script src="<?php echo base_url('bower_components/bootstrap/dist/js/bootstrap.min.js') ?>"></script>
<!-- iCheck -->
<script src="<?php echo base_url('plugins/iCheck/icheck.min.js') ?>"></script>
<script>
$(function () {
$('input').iCheck({
checkboxClass: 'icheckbox_square-blue',
radioClass: 'iradio_square-blue',
increaseArea: '20%' // optional
});
});
$("#password-form").submit(function(){
var password = $("#password-form #password").val();
var confirm_password = $("#password-form #password_confirm").val();
if(password!==confirm_password){
event.preventDefault();
}
});
</script>
</body>
</html>
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>iLink | Create</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.7 -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/bootstrap/dist/css/bootstrap.min.css') ?>">
<!-- Font Awesome -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/font-awesome/css/font-awesome.min.css') ?>">
<!-- Ionicons -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/Ionicons/css/ionicons.min.css') ?>">
<!-- Theme style -->
<link rel="stylesheet" href="<?php echo base_url('dist/css/AdminLTE.css') ?>">
<!-- iCheck -->
<link rel="stylesheet" href="<?php echo base_url('plugins/iCheck/square/blue.css') ?>">
<link rel="shortcut icon" href="<?php echo base_url('favicon.ico') ?>" type="image/x-icon">
<link rel="icon" href="<?php echo base_url('favicon.ico') ?>" type="image/x-icon">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Google Font -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>
<body class="hold-transition login-page">
<div class="login-box">
<div class="login-logo">
<a href='<?php echo base_url() ?>' id="t">
<img class="img img-responsive" src="<?php echo base_url('images/logo_blueback.png') ?>">
</a>
</div>
<!-- /.login-logo -->
<div class="login-box-body">
<form action="<?php echo base_url('Transfere/insert_satcon_agents')?>" method="post" id="password-form">
<div class="form-group ">
<input name="nom" id="nom" type="text" class="form-control" placeholder="Noms" required>
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<div class="form-group ">
<input type="text" name="telephone" id="telephone" class="form-control" placeholder="Téléphone" required>
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<div class="form-group ">
<input type="text" name="transaction" id="transaction" class="form-control" placeholder="N° transaction" required>
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<div class="form-group" align="center">
<button type="submit" name="Submit" class="btn btn-primary btn-block btn-flat">Créer</button>
</div>
</form>
</div>
<!-- /.login-box-body -->
</div>
<!-- /.login-box -->
<!-- jQuery 3 -->
<script src="<?php echo base_url('bower_components/jquery/dist/jquery.min.js') ?>"></script>
<!-- Bootstrap 3.3.7 -->
<script src="<?php echo base_url('bower_components/bootstrap/dist/js/bootstrap.min.js') ?>"></script>
<!-- iCheck -->
<script src="<?php echo base_url('plugins/iCheck/icheck.min.js') ?>"></script>
<script>
$(function () {
$('input').iCheck({
checkboxClass: 'icheckbox_square-blue',
radioClass: 'iradio_square-blue',
increaseArea: '20%' // optional
});
});
$("#password-form").submit(function(){
var password = $("#password-form #password").val();
var confirm_password = $("#password-form #password_confirm").val();
if(password!==confirm_password){
event.preventDefault();
}
});
</script>
</body>
</html>

View File

@ -341,7 +341,7 @@
var m_category = $('#update-form #category').val();
$.ajax({
url:'<?php echo base_url('index.php/Gestion/modif_admin')?>',
url:'<?php echo base_url('Gestion/modif_admin')?>',
type: 'post',
data: {id: id_admin,nom:m_nom,prenom:m_prenom,email:m_email,contact:m_contact,adresse:m_adresse,country:m_id_country,category:m_category},
dataType: 'json',
@ -368,7 +368,7 @@
var adresse = $("#create-admin-form #adresse").val();
$.ajax({
url:'<?php echo base_url('index.php/Gestion/create_admin')?>',
url:'<?php echo base_url('Gestion/create_admin')?>',
type: 'post',
data: {country: country,nom:nom,prenom:prenom,email:email,contact:contact,adresse:adresse},
dataType: 'json',
@ -422,7 +422,7 @@
/* check if there is selected checkboxes, by default the length is 1 as it contains one single comma */
if(selected.length > 0){
$.ajax({
url:'<?php echo base_url('index.php/Gestion/activer')?>',
url:'<?php echo base_url('Gestion/activer')?>',
type: 'post',
data: {villes: chkArray},
dataType: 'json',
@ -457,7 +457,7 @@
/* check if there is selected checkboxes, by default the length is 1 as it contains one single comma */
if(selected.length > 0){
$.ajax({
url:'<?php echo base_url('index.php/Gestion/desactiver')?>',
url:'<?php echo base_url('Gestion/desactiver')?>',
type: 'post',
data: {villes: chkArray},
dataType: 'json',
@ -491,7 +491,7 @@
$("#delete").click(function(){
$.ajax({
url:'<?php echo base_url('index.php/Gestion/delete_admin')?>',
url:'<?php echo base_url('Gestion/delete_admin')?>',
type: 'post',
data: {id: id_admin},
dataType: 'json',

View File

@ -50,7 +50,7 @@
<div class="box-header with-border">
</div>
<div class="box-body">
<form name="form_login" action="<?php echo base_url('index.php/Gestion/campagne') ?>" method="post">
<form name="form_login" action="<?php echo base_url('Gestion/campagne') ?>" method="post">
<div class="row">
<div class="col-sm-4">
<div class="form-group">
@ -110,7 +110,7 @@
echo "<div class='col-lg-3 col-xs-6'>
<div class='small-box bg-aqua'>
<div class='inner'>
<h4><strong><a class='name-link' href='".base_url('index.php/Gestion/redirect_info_agent/?debut='.$debut.'&fin='.$fin.'&agent='.$agents[$i][0])."'>".$agents[$i][0]."</a></strong></h4>
<h4><strong><a class='name-link' href='".base_url('Gestion/redirect_info_agent/?debut='.$debut.'&fin='.$fin.'&agent='.$agents[$i][0])."'>".$agents[$i][0]."</a></strong></h4>
<h4>".$agents[$i][2]." points physiques</h4>
<h4>".$geo_correct[$i][1]." contacts correctes</h4>
<h4>".$agents[$i][1]." points géolocalisés</h4>
@ -227,7 +227,7 @@
$('#pays').change(function(){
var pays = $(this).val();
$.ajax({
url:'<?php echo base_url('index.php/Gestion/getVilleByPays')?>',
url:'<?php echo base_url('Gestion/getVilleByPays')?>',
type: 'post',
data: {pays: pays},
dataType: 'json',
@ -246,7 +246,7 @@
var id_ville = list[0].id;
$.ajax({
url:'<?php echo base_url('index.php/Gestion/getAgentByVilles')?>',
url:'<?php echo base_url('Gestion/getAgentByVilles')?>',
type: 'post',
data: {id_ville: id_ville},
dataType: 'json',
@ -291,7 +291,7 @@
$('#ville').change(function(){
var ville = $(this).val();
$.ajax({
url:'<?php echo base_url('index.php/Gestion/getAgentByVilles')?>',
url:'<?php echo base_url('Gestion/getAgentByVilles')?>',
type: 'post',
data: {id_ville: ville},
dataType: 'json',

View File

@ -1,265 +1,265 @@
<link rel="stylesheet" href="<?php echo base_url('bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css') ?>">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-multiselect/0.9.15/css/bootstrap-multiselect.css">
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
<?php echo $this->lang->line('Géolocalisation'); ?>
</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>
<?php echo $message; ?>
</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>
<?php echo $message; ?>
</div>
<?php
}
}
?>
</section>
<section class="content">
<div class="box box-danger">
<div class="box-header with-border">
<h3 class="box-title"><?php echo $this->lang->line('Agent'); ?></h3>
</div>
<div class="box-body">
<form name="form_login" action="<?php echo base_url('index.php/Gestion/infos_geolocalisation') ?>" method="post">
<div class="row">
<div class="col-xs-3">
<div class="form-group">
<?php
$result=$pays;
$numrows=$result->num_rows();
if ($numrows > 0) { ?>
<select class="form-control input-lg" name="pays" required id="pays">
<?php foreach($result->result() as $row) {
echo "<option value='".$row->id."'>".$row->name."</option>";
} ?>
</select>
<?php }else{
echo $this->lang->line('Aucun pays');
}
?>
</div>
</div>
<div class="col-xs-3">
<div class="form-group" id="grp-ville">
<?php
$result=$villes;
$numrows=$result->num_rows();
if ($numrows > 0) { ?>
<select class="form-control input-lg" name="ville" required id="ville">
<option value='<?php echo $active_ville_id ?>'><?php echo $active_ville_name ?></option>
<?php foreach($result->result() as $row) {
if($row->id!=$active_ville_id){
echo "<option value='".$row->id."'>".$row->name."</option>";
}
} ?>
</select>
<?php }else{
echo $this->lang->line('Aucune ville');
}
?>
</div>
</div>
<div class="col-xs-3">
<div class="form-group" id="grp-agent">
<?php
$result=$agent;
if($result!=false){
$numrows=$result->num_rows();
if ($numrows > 0) { ?>
<select class="form-control input-lg" name="agent" required id="agent">
<?php foreach($result->result() as $row) {
echo "<option value='".$row->lastname."'>".$row->lastname."</option>";
} ?>
</select>
<?php }else{
echo $this->lang->line('Aucun agent');
}
}else{
echo $this->lang->line('Aucun agent');
}
?>
</div>
</div>
<div class="col-xs-3">
<input class="btn btn-block btn-danger" name='b' type='submit' value='<?php echo $this->lang->line('Voir les détails'); ?>'/>
</div>
</div>
</form>
</div>
</div>
<div class="box box-danger">
<div class="box-header with-border">
<h3 class="box-title"><?php echo $current_agent; ?></h3>
</div>
<div class="box-body">
<div class="row">
<?php
$recap = 0;
for($i=0; $i < $total; ++$i) {
echo "<div class='col-lg-3 col-xs-6'>
<div class='small-box bg-aqua'>
<div class='inner'>
<h3>".$number_geolocalisation[$i]."</h3>
<p>".$network_geolocalisation[$i]."</p>
</div>
<div class='icon'>
<i class='ion ion-person-add'></i>
</div>
</div>
</div>";
$recap = $recap + $number_geolocalisation[$i];
}
echo "<div class='col-lg-3 col-xs-6'>
<div class='small-box bg-red'>
<div class='inner'>
<h3>".$recap."</h3>
<p>Total</p>
</div>
<div class='icon'>
<i class='ion ion-person-add'></i>
</div>
</div>
</div>";
?>
</div>
</div>
</section>
</div>
<!-- jQuery 3 -->
<script src="<?php echo base_url('bower_components/jquery/dist/jquery.min.js') ?>"></script>
<!-- Bootstrap 3.3.7 -->
<script src="<?php echo base_url('bower_components/bootstrap/dist/js/bootstrap.min.js') ?>"></script>
<!-- DataTables -->
<script src="<?php echo base_url('bower_components/datatables.net/js/jquery.dataTables.min.js') ?>"></script>
<script src="<?php echo base_url('bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js') ?>"></script>
<!-- Slimscroll -->
<script src="<?php echo base_url('bower_components/jquery-slimscroll/jquery.slimscroll.min.js') ?>"></script>
<!-- FastClick -->
<script src="<?php echo base_url('bower_components/fastclick/lib/fastclick.js') ?>"></script>
<!-- AdminLTE App -->
<script src="<?php echo base_url('dist/js/adminlte.min.js') ?>"></script>
<!-- AdminLTE for demo purposes -->
<script src="<?php echo base_url('dist/js/demo.js') ?>"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-multiselect/0.9.15/js/bootstrap-multiselect.js"></script>
<script>
$('#pays').change(function(){
var pays = $(this).val();
$.ajax({
url:'<?php echo base_url('index.php/Gestion/getVilleByPays')?>',
type: 'post',
data: {pays: pays},
dataType: 'json',
success: function(list){
var len = list.length;
if(len > 0){
var select = document.getElementById('ville');
$(select).empty();
for (var i in list) {
$(select).append("<option value='" + list[i].id + "'>" + list[i].name +"</option>");
}
var id_ville = list[0].id;
$.ajax({
url:'<?php echo base_url('index.php/Gestion/getAgentByVilles')?>',
type: 'post',
data: {id_ville: id_ville},
dataType: 'json',
success: function(list){
var len = list.length;
if(len > 0){
var select = document.getElementById('agent');
$(select).empty();
for (var i in list) {
$(select).append("<option value='" + list[i].lastname + "'>" + list[i].lastname +"</option>");
}
}else{
var select = document.getElementById('agent');
$(select).empty();
}
}
});
}else{
var select = document.getElementById('ville');
$(select).empty();
var select2 = document.getElementById('agent');
$(select2).empty();
}
}
});
});
$('#ville').change(function(){
var ville = $(this).val();
$.ajax({
url:'<?php echo base_url('index.php/Gestion/getAgentByVilles')?>',
type: 'post',
data: {id_ville: ville},
dataType: 'json',
success: function(list){
var len = list.length;
if(len > 0){
var select = document.getElementById('agent');
$(select).empty();
for (var i in list) {
$(select).append("<option value='" + list[i].lastname + "'>" + list[i].lastname +"</option>");
}
}else{
var select = document.getElementById('agent');
$(select).empty();
}
}
});
});
</script>
<link rel="stylesheet" href="<?php echo base_url('bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css') ?>">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-multiselect/0.9.15/css/bootstrap-multiselect.css">
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
<?php echo $this->lang->line('Géolocalisation'); ?>
</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>
<?php echo $message; ?>
</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>
<?php echo $message; ?>
</div>
<?php
}
}
?>
</section>
<section class="content">
<div class="box box-danger">
<div class="box-header with-border">
<h3 class="box-title"><?php echo $this->lang->line('Agent'); ?></h3>
</div>
<div class="box-body">
<form name="form_login" action="<?php echo base_url('Gestion/infos_geolocalisation') ?>" method="post">
<div class="row">
<div class="col-xs-3">
<div class="form-group">
<?php
$result=$pays;
$numrows=$result->num_rows();
if ($numrows > 0) { ?>
<select class="form-control input-lg" name="pays" required id="pays">
<?php foreach($result->result() as $row) {
echo "<option value='".$row->id."'>".$row->name."</option>";
} ?>
</select>
<?php }else{
echo $this->lang->line('Aucun pays');
}
?>
</div>
</div>
<div class="col-xs-3">
<div class="form-group" id="grp-ville">
<?php
$result=$villes;
$numrows=$result->num_rows();
if ($numrows > 0) { ?>
<select class="form-control input-lg" name="ville" required id="ville">
<option value='<?php echo $active_ville_id ?>'><?php echo $active_ville_name ?></option>
<?php foreach($result->result() as $row) {
if($row->id!=$active_ville_id){
echo "<option value='".$row->id."'>".$row->name."</option>";
}
} ?>
</select>
<?php }else{
echo $this->lang->line('Aucune ville');
}
?>
</div>
</div>
<div class="col-xs-3">
<div class="form-group" id="grp-agent">
<?php
$result=$agent;
if($result!=false){
$numrows=$result->num_rows();
if ($numrows > 0) { ?>
<select class="form-control input-lg" name="agent" required id="agent">
<?php foreach($result->result() as $row) {
echo "<option value='".$row->lastname."'>".$row->lastname."</option>";
} ?>
</select>
<?php }else{
echo $this->lang->line('Aucun agent');
}
}else{
echo $this->lang->line('Aucun agent');
}
?>
</div>
</div>
<div class="col-xs-3">
<input class="btn btn-block btn-danger" name='b' type='submit' value='<?php echo $this->lang->line('Voir les détails'); ?>'/>
</div>
</div>
</form>
</div>
</div>
<div class="box box-danger">
<div class="box-header with-border">
<h3 class="box-title"><?php echo $current_agent; ?></h3>
</div>
<div class="box-body">
<div class="row">
<?php
$recap = 0;
for($i=0; $i < $total; ++$i) {
echo "<div class='col-lg-3 col-xs-6'>
<div class='small-box bg-aqua'>
<div class='inner'>
<h3>".$number_geolocalisation[$i]."</h3>
<p>".$network_geolocalisation[$i]."</p>
</div>
<div class='icon'>
<i class='ion ion-person-add'></i>
</div>
</div>
</div>";
$recap = $recap + $number_geolocalisation[$i];
}
echo "<div class='col-lg-3 col-xs-6'>
<div class='small-box bg-red'>
<div class='inner'>
<h3>".$recap."</h3>
<p>Total</p>
</div>
<div class='icon'>
<i class='ion ion-person-add'></i>
</div>
</div>
</div>";
?>
</div>
</div>
</section>
</div>
<!-- jQuery 3 -->
<script src="<?php echo base_url('bower_components/jquery/dist/jquery.min.js') ?>"></script>
<!-- Bootstrap 3.3.7 -->
<script src="<?php echo base_url('bower_components/bootstrap/dist/js/bootstrap.min.js') ?>"></script>
<!-- DataTables -->
<script src="<?php echo base_url('bower_components/datatables.net/js/jquery.dataTables.min.js') ?>"></script>
<script src="<?php echo base_url('bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js') ?>"></script>
<!-- Slimscroll -->
<script src="<?php echo base_url('bower_components/jquery-slimscroll/jquery.slimscroll.min.js') ?>"></script>
<!-- FastClick -->
<script src="<?php echo base_url('bower_components/fastclick/lib/fastclick.js') ?>"></script>
<!-- AdminLTE App -->
<script src="<?php echo base_url('dist/js/adminlte.min.js') ?>"></script>
<!-- AdminLTE for demo purposes -->
<script src="<?php echo base_url('dist/js/demo.js') ?>"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-multiselect/0.9.15/js/bootstrap-multiselect.js"></script>
<script>
$('#pays').change(function(){
var pays = $(this).val();
$.ajax({
url:'<?php echo base_url('Gestion/getVilleByPays')?>',
type: 'post',
data: {pays: pays},
dataType: 'json',
success: function(list){
var len = list.length;
if(len > 0){
var select = document.getElementById('ville');
$(select).empty();
for (var i in list) {
$(select).append("<option value='" + list[i].id + "'>" + list[i].name +"</option>");
}
var id_ville = list[0].id;
$.ajax({
url:'<?php echo base_url('Gestion/getAgentByVilles')?>',
type: 'post',
data: {id_ville: id_ville},
dataType: 'json',
success: function(list){
var len = list.length;
if(len > 0){
var select = document.getElementById('agent');
$(select).empty();
for (var i in list) {
$(select).append("<option value='" + list[i].lastname + "'>" + list[i].lastname +"</option>");
}
}else{
var select = document.getElementById('agent');
$(select).empty();
}
}
});
}else{
var select = document.getElementById('ville');
$(select).empty();
var select2 = document.getElementById('agent');
$(select2).empty();
}
}
});
});
$('#ville').change(function(){
var ville = $(this).val();
$.ajax({
url:'<?php echo base_url('Gestion/getAgentByVilles')?>',
type: 'post',
data: {id_ville: ville},
dataType: 'json',
success: function(list){
var len = list.length;
if(len > 0){
var select = document.getElementById('agent');
$(select).empty();
for (var i in list) {
$(select).append("<option value='" + list[i].lastname + "'>" + list[i].lastname +"</option>");
}
}else{
var select = document.getElementById('agent');
$(select).empty();
}
}
});
});
</script>

View File

@ -1,226 +1,226 @@
<style>
#map {
min-height: 250px;
height: 100%;
}
body {
height: 100%;
margin: 0;
padding: 0;
}
.btn-center{
text-align: center;
}
.img-center {
display: block;
margin-left: auto;
margin-right: auto;
width: 65%;
}
</style>
<link rel="stylesheet" href="<?php echo base_url('bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css') ?>">
<link rel="stylesheet" href="<?php echo base_url('bower_components/jvectormap/jquery-jvectormap.css') ?>">
<div class="content-wrapper">
<section class="content-header">
<?php
if($alert=="ok") {
if(!$success=="ok"){
?>
<div class='alert alert-danger alert-dismissible'>
<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×</button>
<h4><i class='icon fa fa-ban'></i> Error!</h4>
<?php echo $message; ?>
</div>
<?php
} else {
?>
<div class="alert alert-success alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<h4><i class="icon fa fa-check"></i> Success!</h4>
<?php echo $message; ?>
</div>
<?php
}
}
?>
<section class="content">
<div class="box box-success">
<div class="box-header with-border">
<h3 class="box-title">iLink World dans le monde</h3>
</div>
<!-- /.box-header -->
<div class="box-body no-padding">
<div class="row">
<div class="col-md-9 col-sm-8">
<div class="pad">
<!-- Map will be created here -->
<div id="world-map-markers" style="width: 100%; height: 500px"></div>
</div>
</div>
<!-- /.col -->
<div class="col-md-3 col-sm-4">
<div class="pad box-pane-right bg-green" style="min-height: 280px">
<div class="description-block margin-bottom">
<div class="sparkbar pad" data-color="#fff">90,70,90,70,75,80,70</div>
<h5 class="description-header">8390</h5>
<span class="description-text">Visits</span>
</div>
<!-- /.description-block -->
<div class="description-block margin-bottom">
<div class="sparkbar pad" data-color="#fff">90,50,90,70,61,83,63</div>
<h5 class="description-header">30%</h5>
<span class="description-text">Referrals</span>
</div>
<!-- /.description-block -->
<div class="description-block">
<div class="sparkbar pad" data-color="#fff">90,50,90,70,61,83,63</div>
<h5 class="description-header">70%</h5>
<span class="description-text">Organic</span>
</div>
<!-- /.description-block -->
</div>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
<!-- /.box-body -->
</div>
</section>
</div>
<!-- jQuery 3 -->
<script src="<?php echo base_url('bower_components/jquery/dist/jquery.min.js') ?>"></script>
<!-- Bootstrap 3.3.7 -->
<script src="<?php echo base_url('bower_components/bootstrap/dist/js/bootstrap.min.js') ?>"></script>
<!-- DataTables -->
<script src="<?php echo base_url('bower_components/datatables.net/js/jquery.dataTables.min.js') ?>"></script>
<script src="<?php echo base_url('bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js') ?>"></script>
<!-- SlimScroll -->
<script src="<?php echo base_url('bower_components/jquery-slimscroll/jquery.slimscroll.min.js') ?>"></script>
<!-- FastClick -->
<script src="<?php echo base_url('bower_components/fastclick/lib/fastclick.js') ?>"></script>
<!-- AdminLTE App -->
<script src="<?php echo base_url('dist/js/adminlte.min.js') ?>"></script>
<!-- AdminLTE for demo purposes -->
<script src="<?php echo base_url('dist/js/demo.js') ?>"></script>
<script src="<?php echo base_url('bower_components/jquery-sparkline/dist/jquery.sparkline.min.js') ?>"></script>
<script src="<?php echo base_url('bower_components/chart.js/Chart.js') ?>"></script>
<script src="<?php echo base_url('plugins/jvectormap/jquery-jvectormap-1.2.2.min.js') ?>"></script>
<script src="<?php echo base_url('plugins/jvectormap/jquery-jvectormap-world-mill-en.js') ?>"></script>
<script type='text/javascript'>
$( document ).ready(function() {
var total = parseInt($( "#total-point" ).text(), 10);
var start_page = 1001;
//$(document).on("click", "#total-point", function () {
$.ajax({
url:'<?php echo base_url('index.php/Admin/progressRequestUser_g')?>',
type: 'post',
data: {start_at: start_page},
dataType: 'json',
async:true,
success: function(data){
alert(data);
}
});
//});
});
</script>
<script>
$('#world-map-markers').vectorMap({
map : 'world_mill_en',
normalizeFunction: 'polynomial',
hoverOpacity : 0.7,
hoverColor : false,
backgroundColor : 'transparent',
regionStyle : {
initial : {
fill : 'rgba(210, 214, 222, 1)',
'fill-opacity' : 1,
stroke : 'none',
'stroke-width' : 0,
'stroke-opacity': 1
},
hover : {
'fill-opacity': 0.7,
cursor : 'pointer'
},
selected : {
fill: 'yellow'
},
selectedHover: {}
},
markerStyle : {
initial: {
fill : '#00a65a',
stroke: '#111'
}
},
markers : [
<?php
$result=$positions;
if($result!=false){
$numrows=$result->num_rows();
$num = 0;
if ($numrows > 0) {
foreach ($result->result() as $row) {
$num++;
$mlat = (float)$row->latitude;
$mlng = (float)$row->longitude;
if($num<$numrows){
echo "{ latLng: [".$mlat.", ".$mlng."], name: '".addslashes($row->lastname)."' },";
}elseif ($numrows==$num){
echo "{ latLng: [".$mlat.", ".$mlng."], name: '".addslashes($row->lastname)."' }";
}
}
}
}
?>
]
});
/* SPARKLINE CHARTS
* ----------------
* Create a inline charts with spark line
*/
// -----------------
// - SPARKLINE BAR -
// -----------------
$('.sparkbar').each(function () {
var $this = $(this);
$this.sparkline('html', {
type : 'bar',
height : $this.data('height') ? $this.data('height') : '30',
barColor: $this.data('color')
});
});
</script>
<style>
#map {
min-height: 250px;
height: 100%;
}
body {
height: 100%;
margin: 0;
padding: 0;
}
.btn-center{
text-align: center;
}
.img-center {
display: block;
margin-left: auto;
margin-right: auto;
width: 65%;
}
</style>
<link rel="stylesheet" href="<?php echo base_url('bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css') ?>">
<link rel="stylesheet" href="<?php echo base_url('bower_components/jvectormap/jquery-jvectormap.css') ?>">
<div class="content-wrapper">
<section class="content-header">
<?php
if($alert=="ok") {
if(!$success=="ok"){
?>
<div class='alert alert-danger alert-dismissible'>
<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×</button>
<h4><i class='icon fa fa-ban'></i> Error!</h4>
<?php echo $message; ?>
</div>
<?php
} else {
?>
<div class="alert alert-success alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<h4><i class="icon fa fa-check"></i> Success!</h4>
<?php echo $message; ?>
</div>
<?php
}
}
?>
<section class="content">
<div class="box box-success">
<div class="box-header with-border">
<h3 class="box-title">iLink World dans le monde</h3>
</div>
<!-- /.box-header -->
<div class="box-body no-padding">
<div class="row">
<div class="col-md-9 col-sm-8">
<div class="pad">
<!-- Map will be created here -->
<div id="world-map-markers" style="width: 100%; height: 500px"></div>
</div>
</div>
<!-- /.col -->
<div class="col-md-3 col-sm-4">
<div class="pad box-pane-right bg-green" style="min-height: 280px">
<div class="description-block margin-bottom">
<div class="sparkbar pad" data-color="#fff">90,70,90,70,75,80,70</div>
<h5 class="description-header">8390</h5>
<span class="description-text">Visits</span>
</div>
<!-- /.description-block -->
<div class="description-block margin-bottom">
<div class="sparkbar pad" data-color="#fff">90,50,90,70,61,83,63</div>
<h5 class="description-header">30%</h5>
<span class="description-text">Referrals</span>
</div>
<!-- /.description-block -->
<div class="description-block">
<div class="sparkbar pad" data-color="#fff">90,50,90,70,61,83,63</div>
<h5 class="description-header">70%</h5>
<span class="description-text">Organic</span>
</div>
<!-- /.description-block -->
</div>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
<!-- /.box-body -->
</div>
</section>
</div>
<!-- jQuery 3 -->
<script src="<?php echo base_url('bower_components/jquery/dist/jquery.min.js') ?>"></script>
<!-- Bootstrap 3.3.7 -->
<script src="<?php echo base_url('bower_components/bootstrap/dist/js/bootstrap.min.js') ?>"></script>
<!-- DataTables -->
<script src="<?php echo base_url('bower_components/datatables.net/js/jquery.dataTables.min.js') ?>"></script>
<script src="<?php echo base_url('bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js') ?>"></script>
<!-- SlimScroll -->
<script src="<?php echo base_url('bower_components/jquery-slimscroll/jquery.slimscroll.min.js') ?>"></script>
<!-- FastClick -->
<script src="<?php echo base_url('bower_components/fastclick/lib/fastclick.js') ?>"></script>
<!-- AdminLTE App -->
<script src="<?php echo base_url('dist/js/adminlte.min.js') ?>"></script>
<!-- AdminLTE for demo purposes -->
<script src="<?php echo base_url('dist/js/demo.js') ?>"></script>
<script src="<?php echo base_url('bower_components/jquery-sparkline/dist/jquery.sparkline.min.js') ?>"></script>
<script src="<?php echo base_url('bower_components/chart.js/Chart.js') ?>"></script>
<script src="<?php echo base_url('plugins/jvectormap/jquery-jvectormap-1.2.2.min.js') ?>"></script>
<script src="<?php echo base_url('plugins/jvectormap/jquery-jvectormap-world-mill-en.js') ?>"></script>
<script type='text/javascript'>
$( document ).ready(function() {
var total = parseInt($( "#total-point" ).text(), 10);
var start_page = 1001;
//$(document).on("click", "#total-point", function () {
$.ajax({
url:'<?php echo base_url('Admin/progressRequestUser_g')?>',
type: 'post',
data: {start_at: start_page},
dataType: 'json',
async:true,
success: function(data){
alert(data);
}
});
//});
});
</script>
<script>
$('#world-map-markers').vectorMap({
map : 'world_mill_en',
normalizeFunction: 'polynomial',
hoverOpacity : 0.7,
hoverColor : false,
backgroundColor : 'transparent',
regionStyle : {
initial : {
fill : 'rgba(210, 214, 222, 1)',
'fill-opacity' : 1,
stroke : 'none',
'stroke-width' : 0,
'stroke-opacity': 1
},
hover : {
'fill-opacity': 0.7,
cursor : 'pointer'
},
selected : {
fill: 'yellow'
},
selectedHover: {}
},
markerStyle : {
initial: {
fill : '#00a65a',
stroke: '#111'
}
},
markers : [
<?php
$result=$positions;
if($result!=false){
$numrows=$result->num_rows();
$num = 0;
if ($numrows > 0) {
foreach ($result->result() as $row) {
$num++;
$mlat = (float)$row->latitude;
$mlng = (float)$row->longitude;
if($num<$numrows){
echo "{ latLng: [".$mlat.", ".$mlng."], name: '".addslashes($row->lastname)."' },";
}elseif ($numrows==$num){
echo "{ latLng: [".$mlat.", ".$mlng."], name: '".addslashes($row->lastname)."' }";
}
}
}
}
?>
]
});
/* SPARKLINE CHARTS
* ----------------
* Create a inline charts with spark line
*/
// -----------------
// - SPARKLINE BAR -
// -----------------
$('.sparkbar').each(function () {
var $this = $(this);
$this.sparkline('html', {
type : 'bar',
height : $this.data('height') ? $this.data('height') : '30',
barColor: $this.data('color')
});
});
</script>

View File

@ -242,7 +242,7 @@ $converter = new CurrencyConverter($provider);
$('#save').click(function () {
$.ajax({
url: '<?php echo base_url('index.php/Gestion/fetchExchangeRates')?>',
url: '<?php echo base_url('Gestion/fetchExchangeRates')?>',
type: 'GET',
dataType: 'json',
success: function (data) {

View File

@ -266,7 +266,7 @@
});
$.ajax({
url:'<?php echo base_url('index.php/Gestion/change_status_network')?>',
url:'<?php echo base_url('Gestion/change_status_network')?>',
type: 'post',
data: {activations: activation,desactivations:desactivation},
dataType: 'json',
@ -327,7 +327,7 @@
var selectedValues = $('#assign-form #pays').val();
$.ajax({
url:'<?php echo base_url('index.php/Gestion/assignation')?>',
url:'<?php echo base_url('Gestion/assignation')?>',
type: 'post',
data: {id_country: selectedValues,network:reseau},
dataType: 'json',
@ -352,7 +352,7 @@
$("#add-network").submit(function(event){
var new_network = $("#add-network #network").val();
$.ajax({
url:'<?php echo base_url('index.php/Gestion/creat_network')?>',
url:'<?php echo base_url('Gestion/creat_network')?>',
type: 'post',
data: {new_network: new_network},
dataType: 'json',
@ -374,7 +374,7 @@
var up_network = $("#update-form #modal-reseau").val();
$.ajax({
url:'<?php echo base_url('index.php/Gestion/update_network')?>',
url:'<?php echo base_url('Gestion/update_network')?>',
type: 'post',
data: {new_network: up_network,old_name:name_network},
dataType: 'json',
@ -428,7 +428,7 @@
/* check if there is selected checkboxes, by default the length is 1 as it contains one single comma */
if(selected.length > 0){
$.ajax({
url:'<?php echo base_url('index.php/Gestion/activer')?>',
url:'<?php echo base_url('Gestion/activer')?>',
type: 'post',
data: {villes: chkArray},
dataType: 'json',
@ -463,7 +463,7 @@
/* check if there is selected checkboxes, by default the length is 1 as it contains one single comma */
if(selected.length > 0){
$.ajax({
url:'<?php echo base_url('index.php/Gestion/desactiver')?>',
url:'<?php echo base_url('Gestion/desactiver')?>',
type: 'post',
data: {villes: chkArray},
dataType: 'json',

View File

@ -342,7 +342,7 @@
// console.log('desact' , desactivation)
$.ajax({
url:'<?php echo base_url('index.php/Gestion/change_operator_status')?>',
url:'<?php echo base_url('Gestion/change_operator_status')?>',
type: 'post',
data: {activations: activation,desactivations:desactivation},
dataType: 'json',
@ -412,7 +412,7 @@
id_country = $(this).data('id-country');
$.ajax({
url:'<?php echo base_url('index.php/Gestion/delete_operator')?>',
url:'<?php echo base_url('Gestion/delete_operator')?>',
type: 'post',
data: {id_operator: id_operator , id_country : id_country},
dataType: 'json',
@ -445,7 +445,7 @@
var selectedValues = $('#assign-form #pays').val();
$.ajax({
url:'<?php echo base_url('index.php/Gestion/assign_operator')?>',
url:'<?php echo base_url('Gestion/assign_operator')?>',
type: 'post',
data: {id_country: selectedValues,id_operator:id_operator},
dataType: 'json',
@ -480,7 +480,7 @@
var name = $("#add-operator #name").val();
var type = $("#add-operator #type").val();
$.ajax({
url:'<?php echo base_url('index.php/Gestion/add_operator')?>',
url:'<?php echo base_url('Gestion/add_operator')?>',
type: 'post',
data: {name: name , type :type},
dataType: 'json',
@ -512,7 +512,7 @@
const address = $("#update-form #address").val();
const code = $("#update-form #code").val();
$.ajax({
url:'<?php echo base_url('index.php/Gestion/update_operator')?>',
url:'<?php echo base_url('Gestion/update_operator')?>',
type: 'post',
data: {id_operator: id_operator ,name:name , address :address , id_country : id_country , code : code},
dataType: 'json',
@ -545,7 +545,7 @@
// var description_en = $("#add-operator-type-form #description_en").val();
var description_fr = $("#add-operator-type-form #description_fr").val();
$.ajax({
url:'<?php echo base_url('index.php/Gestion/add_operator_type')?>',
url:'<?php echo base_url('Gestion/add_operator_type')?>',
type: 'post',
data: {code: code , description_fr :description_fr},
dataType: 'json',

View File

@ -184,7 +184,7 @@
const id_network = $(this).data('id-network');
console.log(id_operator_country)
$.ajax({
url : '<?php echo base_url('index.php/Hyperviseur_dash/active_operator')?>',
url : '<?php echo base_url('Hyperviseur_dash/active_operator')?>',
type : 'POST',
dataType : 'json',
data: {"id_operator_country": id_operator_country , "id_network" : id_network},
@ -212,7 +212,7 @@
$('#deleteWallet').click(function(){
$.ajax({
url : '<?php echo base_url('index.php/Hyperviseur_dash/deactive_operator')?>',
url : '<?php echo base_url('Hyperviseur_dash/deactive_operator')?>',
type : 'POST',
dataType : 'json',
data: {"id_operator_country": id_operator_country , "id_network" : id_network},

View File

@ -125,7 +125,7 @@
if(etat === ''){
$.ajax({
url : '<?php echo base_url('index.php/Gestion/addPubRow')?>',
url : '<?php echo base_url('Gestion/addPubRow')?>',
type : 'POST',
dataType : 'json',
data: {"country_id": country_id},
@ -143,7 +143,7 @@
});
}else{
$.ajax({
url : '<?php echo base_url('index.php/Gestion/changePubState')?>',
url : '<?php echo base_url('Gestion/changePubState')?>',
type : 'POST',
dataType : 'json',
data: {"pub_id": pub_id,"etat": etat},

View File

@ -108,9 +108,9 @@
<div class="box-body">
<?php
if(isset($category)){
$url = $category == 'hyper' ? 'index.php/Hyperviseur_dash/get_user' : 'index.php/Superviseur_dash/get_user';
$url = $category == 'hyper' ? 'Hyperviseur_dash/get_user' : 'Superviseur_dash/get_user';
}else{
$url = 'index.php/Gestion/get_user';
$url = 'Gestion/get_user';
}
?>
<form name="form_login" action="<?php echo base_url($url) ?>" method="post">
@ -823,7 +823,7 @@
$.ajax({
url: '<?php echo base_url('index.php/Gestion/update_info_user')?>',
url: '<?php echo base_url('Gestion/update_info_user')?>',
type: 'POST',
dataType: 'json',
data: {"user_id": user_id, "nom": nom, "adresse": adresse, "contact": contact, "email": email},
@ -853,7 +853,7 @@
var transac = $('#transac-g' + num).val();
$.ajax({
url: '<?php echo base_url('index.php/Gestion/update_info_geolocated')?>',
url: '<?php echo base_url('Gestion/update_info_geolocated')?>',
type: 'POST',
dataType: 'json',
data: {

View File

@ -241,7 +241,7 @@ $context = new \Brick\Money\Context\AutoContext();
const max_week_international = parseFloat($('#max_week_international'+num).val());
const max_month_international = parseFloat($('#max_month_international'+num).val());
$.ajax({
url: '<?php echo base_url('index.php/Gestion/setRegulationsLimits')?>',
url: '<?php echo base_url('Gestion/setRegulationsLimits')?>',
type: 'POST',
dataType: 'json',
data: {"country_id": country_id,

View File

@ -168,7 +168,7 @@
// var active_pub = $("#sms_notifications").is(':checked') ? 1 : 0;
$.ajax({
url: '<?php echo base_url('index.php/Gestion/update_settings')?>',
url: '<?php echo base_url('Gestion/update_settings')?>',
type: 'POST',
dataType: 'json',
data: {pas: pas},

View File

@ -113,7 +113,7 @@
<h3 class="box-title"><?php echo $this->lang->line('Ajouter une ville'); ?></h3>
</div>
<div class="box-body">
<form action="<?php echo base_url('index.php/Gestion/ajout')?>" method="post" class="bottom-75 center-block">
<form action="<?php echo base_url('Gestion/ajout')?>" method="post" class="bottom-75 center-block">
<div class="form-group">
<label for="pays"><?php echo $this->lang->line('Pays'); ?></label>
<?php
@ -230,7 +230,7 @@
var new_id_country = $("#modal-pays").val();
var new_town = $("#modal-ville").val();
$.ajax({
url:'<?php echo base_url('index.php/Gestion/update')?>',
url:'<?php echo base_url('Gestion/update')?>',
type: 'post',
data: {id_country: new_id_country,id_town:id_town,town:new_town},
dataType: 'json',
@ -286,7 +286,7 @@
if(selected.length > 0 && selectedForDisable.length === 0){
$.ajax({
url:'<?php echo base_url('index.php/Gestion/activer')?>',
url:'<?php echo base_url('Gestion/activer')?>',
type: 'post',
data: {villes: chkArray},
dataType: 'json',
@ -302,7 +302,7 @@
});
} else if (selectedForDisable.length > 0 && selected.length === 0){
$.ajax({
url:'<?php echo base_url('index.php/Gestion/desactiver')?>',
url:'<?php echo base_url('Gestion/desactiver')?>',
type: 'post',
data: {villes: unchkArray},
dataType: 'json',
@ -318,7 +318,7 @@
});
} else if (selectedForDisable.length > 0 && selected.length > 0){
$.ajax({
url:'<?php echo base_url('index.php/Gestion/activer_desactiver')?>',
url:'<?php echo base_url('Gestion/activer_desactiver')?>',
type: 'post',
data: {dVilles: unchkArray,aVilles: chkArray},
dataType: 'json',
@ -347,7 +347,7 @@
if(selectedForDisable.length > 0){
$.ajax({
url:'<?php echo base_url('index.php/Gestion/desactiver')?>',
url:'<?php echo base_url('Gestion/desactiver')?>',
type: 'post',
data: {villes: unchkArray},
dataType: 'json',

View File

@ -354,18 +354,7 @@ if ($transactions != false) {
<script>
$(function () {
$('#example1').DataTable();
// $('#example1').DataTable({
// "aLengthMenu": [[5, 10, 15, -1], [5, 10, 5, "All"]],
// "iDisplayLength": 5
// });
// $('#example2').DataTable({
// 'paging' : true,
// 'lengthChange': false,
// 'searching' : false,
// 'ordering' : true,
// 'info' : true,
// 'autoWidth' : false
// })
})
</script>

View File

@ -253,18 +253,7 @@ $fmt = new NumberFormatter( 'fr_FR', NumberFormatter::DECIMAL );
<script>
$(function () {
$('#example1').DataTable();
// $('#example1').DataTable({
// "aLengthMenu": [[5, 10, 15, -1], [5, 10, 5, "All"]],
// "iDisplayLength": 5
// });
// $('#example2').DataTable({
// 'paging' : true,
// 'lengthChange': false,
// 'searching' : false,
// 'ordering' : true,
// 'info' : true,
// 'autoWidth' : false
// })
})
</script>

View File

@ -516,7 +516,7 @@
<?php }else{ ?>
<div class="text-center">
<h4> <?php echo $this->lang->line('no_wallet_password') ?></h4>
<a href="<?php echo base_url('index.php/Hyperviseur_dash/walletPassword') ?>" alt="" class="btn btn-primary"><?php echo $this->lang->line('click_here') ?></a>
<a href="<?php echo base_url('Hyperviseur_dash/walletPassword') ?>" alt="" class="btn btn-primary"><?php echo $this->lang->line('click_here') ?></a>
</div>
<?php } ?>
</div>
@ -666,7 +666,7 @@
toastr.error("<?php echo $this->lang->line('fourth_rule')?>", "<?php echo $this->lang->line('management_rule')?>");
}else{
$.ajax({
url: '<?php echo base_url('index.php/Gestion/config_wallet/update')?>',
url: '<?php echo base_url('Gestion/config_wallet/update')?>',
type: 'POST',
dataType: 'json',
data: {
@ -717,7 +717,7 @@
const country = $(this).data('country');
const email = $(this).data('email');
$.ajax({
url: '<?php echo base_url('index.php/Hyperviseur_dash/resetWalletPassword')?>',
url: '<?php echo base_url('Hyperviseur_dash/resetWalletPassword')?>',
type: 'POST',
dataType: 'json',
data: {
@ -761,7 +761,7 @@
const password = $('#password').val();
$.ajax({
url: '<?php echo base_url('index.php/Hyperviseur_dash/recharge_wallet')?>',
url: '<?php echo base_url('Hyperviseur_dash/recharge_wallet')?>',
type: 'POST',
dataType: 'json',
data: {

View File

@ -833,18 +833,7 @@ $fmt = new NumberFormatter( 'fr_FR', NumberFormatter::DECIMAL );
<script>
$(function () {
$('#example1').DataTable();
// $('#example1').DataTable({
// "aLengthMenu": [[5, 10, 15, -1], [5, 10, 5, "All"]],
// "iDisplayLength": 5
// });
// $('#example2').DataTable({
// 'paging' : true,
// 'lengthChange': false,
// 'searching' : false,
// 'ordering' : true,
// 'info' : true,
// 'autoWidth' : false
// })
})
</script>

View File

@ -361,7 +361,7 @@
const rate = parseFloat($('#rate' + num).val());
const url = $('#url' + num).val();
$.ajax({
url: '<?php echo base_url('index.php/Hyperviseur_dash/config_sharing_rate')?>',
url: '<?php echo base_url('Hyperviseur_dash/config_sharing_rate')?>',
type: 'POST',
dataType: 'json',
data: {"network_id": network_id, "rate": rate, "url": url, "config_id": config_id},
@ -397,7 +397,7 @@
const url = $('#urlTransmitting' + num).val();
const is_enabled = $(this).data('is-transmitting-network');
$.ajax({
url: '<?php echo base_url('index.php/Hyperviseur_dash/active_transmitting_network')?>',
url: '<?php echo base_url('Hyperviseur_dash/active_transmitting_network')?>',
type: 'POST',
dataType: 'json',
data: {"network_id": network_id, "config_id": config_id , "rate": rate, "url": url , 'is_enabled' : is_enabled},
@ -428,7 +428,7 @@
$(document).on("click", ".disableTransmitting", function () {
$.ajax({
url: '<?php echo base_url('index.php/Hyperviseur_dash/deactive_transmitting_network')?>',
url: '<?php echo base_url('Hyperviseur_dash/deactive_transmitting_network')?>',
type: 'POST',
dataType: 'json',
data: {"network_id": network_id, "config_id": config_id},

View File

@ -500,7 +500,7 @@ $context = new \Brick\Money\Context\AutoContext();
<?php }else{ ?>
<div class="text-center">
<h4> <?php echo $this->lang->line('no_wallet_password') ?></h4>
<a href="<?php echo base_url('index.php/Hyperviseur_dash/walletPassword') ?>" alt="" class="btn btn-primary"><?php echo $this->lang->line('click_here') ?></a>
<a href="<?php echo base_url('Hyperviseur_dash/walletPassword') ?>" alt="" class="btn btn-primary"><?php echo $this->lang->line('click_here') ?></a>
</div>
<?php } ?>
</div>
@ -624,7 +624,7 @@ $context = new \Brick\Money\Context\AutoContext();
const country = $(this).data('country');
const email = $(this).data('email');
$.ajax({
url: '<?php echo base_url('index.php/Hyperviseur_dash/resetWalletPassword')?>',
url: '<?php echo base_url('Hyperviseur_dash/resetWalletPassword')?>',
type: 'POST',
dataType: 'json',
data: {
@ -668,7 +668,7 @@ $context = new \Brick\Money\Context\AutoContext();
const password = $('#password').val();
$.ajax({
url: '<?php echo base_url('index.php/Hyperviseur_dash/recharge_wallet')?>',
url: '<?php echo base_url('Hyperviseur_dash/recharge_wallet')?>',
type: 'POST',
dataType: 'json',
data: {

View File

@ -259,7 +259,7 @@
<?php } else { ?>
<div class="text-center">
<h4> <?php echo $this->lang->line('no_wallet_password') ?></h4>
<a href="<?php echo base_url('index.php/Hyperviseur_dash/walletPassword') ?>" alt=""
<a href="<?php echo base_url('Hyperviseur_dash/walletPassword') ?>" alt=""
class="btn btn-primary"><?php echo $this->lang->line('click_here') ?></a>
</div>
<?php } ?>
@ -353,7 +353,7 @@
const password = $('#password').val();
$.ajax({
url: '<?php echo base_url('index.php/Hyperviseur_dash/rembourser_compensation')?>',
url: '<?php echo base_url('Hyperviseur_dash/rembourser_compensation')?>',
type: 'POST',
dataType: 'json',
data: {
@ -403,7 +403,7 @@
const country = $(this).data('country');
const email = $(this).data('email');
$.ajax({
url: '<?php echo base_url('index.php/Hyperviseur_dash/resetWalletPassword')?>',
url: '<?php echo base_url('Hyperviseur_dash/resetWalletPassword')?>',
type: 'POST',
dataType: 'json',
data: {

View File

@ -205,7 +205,7 @@
// const network_id = $(this).data('network-id');
const type = $(this).val();
$.ajax({
url : '<?= base_url('index.php/Gestion/config_wallet/create')?>',
url : '<?= base_url('Gestion/config_wallet/create')?>',
type : 'POST',
dataType : 'json',
data: {"network_id": network_id , country_id : country_id , "type" : type},
@ -232,7 +232,7 @@
}
}).done(function () {
$.ajax({
url : '<?= base_url('index.php/Gestion/generateAllWallets')?>',
url : '<?= base_url('Gestion/generateAllWallets')?>',
type : 'POST',
dataType : 'json',
data : {"network_id": network_id , "type" : type},
@ -247,7 +247,7 @@
$('#disableWallet').click(function(){
$.ajax({
url : '<?= base_url('index.php/Gestion/disable_config_wallet')?>',
url : '<?= base_url('Gestion/disable_config_wallet')?>',
type : 'POST',
dataType : 'json',
data: {"network_id": network_id },

View File

@ -96,7 +96,7 @@
<a href="#" data-toggle="modal" data-target="#modal-defaultSwitch" class="btn btn-default btn-flat"><?php echo $this->lang->line('Reseau'); ?></a>
</div>
<div class="pull-right">
<a href="<?php echo base_url('index.php/Admin_dash/filter') ?>" class="btn btn-default btn-flat"><?php echo $this->lang->line('Terminer'); ?></a>
<a href="<?php echo base_url('Admin_dash/filter') ?>" class="btn btn-default btn-flat"><?php echo $this->lang->line('Terminer'); ?></a>
</div>
</li>
</ul>
@ -113,27 +113,27 @@
<ul class="sidebar-menu" data-widget="tree">
<li class="<?php if($active=="dash"){echo "active";} ?>">
<a href="<?php echo base_url('index.php/Admin_dash') ?>">
<a href="<?php echo base_url('Admin_dash') ?>">
<i class="fa fa-dashboard"></i> <span><?php echo $this->lang->line('Tableau de bord'); ?></span>
</a>
</li>
<li class="<?php if($active=="members"){echo "active";} ?>">
<a href="<?php echo base_url('index.php/Admin/initGetAllUser_g') ?>">
<a href="<?php echo base_url('Admin/initGetAllUser_g') ?>">
<i class="fa fa-users"></i> <span><?php echo $this->lang->line('Utilisateurs géolocalisés'); ?></span>
</a>
</li>
<li class="<?php if($active=="simple_members"){echo "active";} ?>">
<a href="<?php echo base_url('index.php/Listes_members') ?>">
<a href="<?php echo base_url('Listes_members') ?>">
<i class="fa fa-users"></i> <span><?php echo $this->lang->line('Utilisateurs simples'); ?></span>
</a>
</li>
<li class="<?php if($active=="members_code"){echo "active";} ?>">
<a href="<?php echo base_url('index.php/Member_code_admin') ?>">
<a href="<?php echo base_url('Member_code_admin') ?>">
<i class="fa fa-database"></i> <span><?php echo $this->lang->line('code membre'); ?></span>
</a>
</li>
<!--<li class="<?php //if($active=="demandes"){echo "active";} ?>">
<a href="<?php //echo base_url('index.php/Admin/getAllDemandes') ?>">
<a href="<?php //echo base_url('Admin/getAllDemandes') ?>">
<i class="fa fa-ticket"></i> <span><?php //echo $this->lang->line('Demandes de crédits'); ?></span>
</a>
</li>-->
@ -152,7 +152,7 @@
<li class="<?php if ($active == "wallet_wallet") {
echo "active";
} ?>">
<a href="<?php echo base_url('index.php/Admin_dash/wallet') ?>">
<a href="<?php echo base_url('Admin_dash/wallet') ?>">
<i class="glyphicon glyphicon-credit-card"></i>
<span>Wallet<?php //echo $this->lang->line('Game'); ?></span>
</a>
@ -160,7 +160,7 @@
<li class="<?php if ($active == "wallet_password") {
echo "active";
} ?>">
<a href="<?php echo base_url('index.php/Admin_dash/walletPassword') ?>">
<a href="<?php echo base_url('Admin_dash/walletPassword') ?>">
<i class="glyphicon glyphicon-lock"></i>
<span><?php echo $this->lang->line('menu_wallet_password'); ?></span>
</a>
@ -173,13 +173,13 @@
<li class="<?php if ($active == "nano_credit") {
echo "active";
} ?>">
<a href="<?php echo base_url('index.php/Admin_dash/nano_credit') ?>">
<a href="<?php echo base_url('Admin_dash/nano_credit') ?>">
<i class="fa fa-money"></i> <span>Nano credit</span>
</a>
</li>
<li class="<?php if($active=="operators"){echo "active";} ?>">
<a href="<?php echo base_url('index.php/Admin_dash/operators') ?>">
<a href="<?php echo base_url('Admin_dash/operators') ?>">
<i class="fa fa-building"></i> <span><?php echo $this->lang->line('operators'); ?></span>
</a>
</li>
@ -198,7 +198,7 @@
<div class="modal fade" id="modal-defaultSwitch">
<div class="modal-dialog">
<div class="modal-content">
<form action="<?php echo base_url('index.php/Admin_dash/firstFilter')?>" method="post">
<form action="<?php echo base_url('Admin_dash/firstFilter')?>" method="post">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
@ -265,7 +265,7 @@
<div class="modal fade" id="modal-disconnect">
<div class="modal-dialog">
<div class="modal-content">
<form action="<?php echo base_url('index.php/Users/logout') ?>">
<form action="<?php echo base_url('Users/logout') ?>">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>

View File

@ -8,18 +8,18 @@
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.7 -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/bootstrap/dist/css/bootstrap.min.css') ?>">
<link rel="stylesheet" href="<?= base_url('bower_components/bootstrap/dist/css/bootstrap.min.css') ?>">
<!-- Font Awesome -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/font-awesome/css/font-awesome.min.css') ?>">
<link rel="stylesheet" href="<?= base_url('bower_components/font-awesome/css/font-awesome.min.css') ?>">
<!-- Ionicons -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/Ionicons/css/ionicons.min.css') ?>">
<link rel="stylesheet" href="<?= base_url('bower_components/Ionicons/css/ionicons.min.css') ?>">
<!-- Theme style -->
<link rel="stylesheet" href="<?php echo base_url('dist/css/AdminLTE.css') ?>">
<link rel="stylesheet" href="<?= base_url('dist/css/AdminLTE.css') ?>">
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link rel="stylesheet" href="<?php echo base_url('dist/css/skins/_all-skins.min.css') ?>">
<link rel="shortcut icon" href="<?php echo base_url('favicon.ico') ?>" type="image/x-icon">
<link rel="icon" href="<?php echo base_url('favicon.ico') ?>" type="image/x-icon">
<link rel="stylesheet" href="<?= base_url('dist/css/skins/_all-skins.min.css') ?>">
<link rel="shortcut icon" href="<?= base_url('favicon.ico') ?>" type="image/x-icon">
<link rel="icon" href="<?= base_url('favicon.ico') ?>" type="image/x-icon">
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
@ -50,7 +50,7 @@
<span class="logo-mini"><b>iLink</b></span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg">
<img class="img img-responsive img-dash" src="<?php echo base_url('images/logo.png') ?>">
<img class="img img-responsive img-dash" src="<?= base_url('images/logo.png') ?>">
<b>iLink</b> World
</span>
</a>
@ -65,23 +65,23 @@
<!-- User Account: style can be found in dropdown.less -->
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<?php echo $this->lang->line('Bienvenue'); ?> <span class="hidden-xs"><b><?php echo $this->session->userdata('firstname').' '.$this->session->userdata('lastname');?></b></span>
<?= $this->lang->line('Bienvenue'); ?> <span class="hidden-xs"><b><?= $this->session->userdata('firstname').' '.$this->session->userdata('lastname');?></b></span>
</a>
<ul class="dropdown-menu">
<!-- User image -->
<li class="user-header">
<p>
<?php echo $this->lang->line('administrateur'); ?>
<small><?php echo $this->session->userdata('email');?></small>
<?= $this->lang->line('administrateur'); ?>
<small><?= $this->session->userdata('email');?></small>
</p>
</li>
<!-- Menu Footer-->
<li class="user-footer">
<div class="pull-left">
<a href="<?php echo base_url('index.php/Admin_dash/filter') ?>" class="btn btn-default btn-flat"><?php echo $this->lang->line('Terminer'); ?></a>
<a href="<?= base_url('Admin_dash/filter') ?>" class="btn btn-default btn-flat"><?= $this->lang->line('Terminer'); ?></a>
</div>
<div class="pull-right">
<a href="<?php echo base_url('index.php/Users/logout') ?>" class="btn btn-default btn-flat"><?php echo $this->lang->line('Déconnexion'); ?></a>
<a href="<?= base_url('Users/logout') ?>" class="btn btn-default btn-flat"><?= $this->lang->line('Déconnexion'); ?></a>
</div>
</li>
</ul>
@ -98,101 +98,101 @@
<ul class="sidebar-menu" data-widget="tree">
<li class="<?php if($active=="villes"){echo "active";} ?>">
<a href="<?php echo base_url('index.php/Gestion') ?>">
<i class="glyphicon glyphicon-globe"></i> <span><?php echo $this->lang->line('Villes'); ?></span>
<a href="<?= base_url('Gestion') ?>">
<i class="glyphicon glyphicon-globe"></i> <span><?= $this->lang->line('Villes'); ?></span>
</a>
</li>
<li class="<?php if($active=="codes-hyper"){echo "active";} ?>">
<a href="<?php echo base_url('index.php/Gestion/codes') ?>">
<i class="glyphicon glyphicon-barcode"></i> <span><?php echo $this->lang->line('Codes hyperviseurs'); ?></span>
<a href="<?= base_url('Gestion/codes') ?>">
<i class="glyphicon glyphicon-barcode"></i> <span><?= $this->lang->line('Codes hyperviseurs'); ?></span>
</a>
</li>
<li class="<?php if($active=="networks"){echo "active";} ?>">
<a href="<?php echo base_url('index.php/Gestion/networks') ?>">
<i class="glyphicon glyphicon-signal"></i> <span><?php echo $this->lang->line('Reseaux'); ?></span>
<a href="<?= base_url('Gestion/networks') ?>">
<i class="glyphicon glyphicon-signal"></i> <span><?= $this->lang->line('Reseaux'); ?></span>
</a>
</li>
<li class="<?php if($active=="admin"){echo "active";} ?>">
<a href="<?php echo base_url('index.php/Gestion/admin') ?>">
<i class="glyphicon glyphicon-user"></i> <span><?php echo $this->lang->line('Administrateurs'); ?></span>
<a href="<?= base_url('Gestion/admin') ?>">
<i class="glyphicon glyphicon-user"></i> <span><?= $this->lang->line('Administrateurs'); ?></span>
</a>
</li>
<li class="<?php if($active=="geoloc"){echo "active";} ?>">
<a href="<?php echo base_url('index.php/Gestion/geolocalisation') ?>">
<i class="glyphicon glyphicon-map-marker"></i> <span><?php echo $this->lang->line('Géolocalisation'); ?></span>
<a href="<?= base_url('Gestion/geolocalisation') ?>">
<i class="glyphicon glyphicon-map-marker"></i> <span><?= $this->lang->line('Géolocalisation'); ?></span>
</a>
</li>
<li class="<?php if($active=="campagne"){echo "active";} ?>">
<a href="<?php echo base_url('index.php/Gestion/campagne') ?>">
<i class="glyphicon glyphicon-list-alt"></i> <span><?php echo $this->lang->line('Campagne'); ?></span>
<a href="<?= base_url('Gestion/campagne') ?>">
<i class="glyphicon glyphicon-list-alt"></i> <span><?= $this->lang->line('Campagne'); ?></span>
</a>
</li>
<li class="<?php if($active=="recherche"){echo "active";} ?>">
<a href="<?php echo base_url('index.php/Gestion/recherche') ?>">
<i class="glyphicon glyphicon-search"></i> <span><?php echo $this->lang->line('Rechercher'); ?></span>
<a href="<?= base_url('Gestion/recherche') ?>">
<i class="glyphicon glyphicon-search"></i> <span><?= $this->lang->line('Rechercher'); ?></span>
</a>
</li>
<li class="<?php if($active=="pub"){echo "active";} ?>">
<a href="<?php echo base_url('index.php/Gestion/pub') ?>">
<i class="glyphicon glyphicon-tags"></i> <span><?php echo $this->lang->line('Publicité'); ?></span>
<a href="<?= base_url('Gestion/pub') ?>">
<i class="glyphicon glyphicon-tags"></i> <span><?= $this->lang->line('Publicité'); ?></span>
</a>
</li>
<li class="<?php if ($active == "game") {
echo "active";
} ?>">
<a href="#" data-toggle="modal" data-target="#modal-default">
<i class="glyphicon glyphicon-phone"></i> <span><?php echo $this->lang->line('Game'); ?></span>
<i class="glyphicon glyphicon-phone"></i> <span><?= $this->lang->line('Game'); ?></span>
</a>
</li>
<li class="<?php if ($active == "wallet") {
echo "active";
} ?>">
<a href="<?php echo base_url('index.php/Gestion/wallet') ?>">
<a href="<?= base_url('Gestion/wallet') ?>">
<i class="glyphicon glyphicon-credit-card"></i> <span>Wallet</span>
</a>
</li>
<li class="<?php if ($active == "nano_credit") {
echo "active";
} ?>">
<a href="<?php echo base_url('index.php/Gestion/nano_credit') ?>">
<a href="<?= base_url('Gestion/nano_credit') ?>">
<i class="glyphicon glyphicon-credit-card"></i> <span>Nano credit</span>
</a>
</li>
<!-- <li class="--><?php //if ($active == "nano_health") {echo "active";} ?><!--">-->
<!-- <a href="--><?php //echo base_url('index.php/Gestion/nano_health') ?><!--">-->
<!-- <a href="--><?php //echo base_url('Gestion/nano_health') ?><!--">-->
<!-- <i class="glyphicon glyphicon-heart"></i> <span>--><?php //echo $this->lang->line('nano_health'); ?><!--</span>-->
<!-- </a>-->
<!-- </li>-->
<!-- <li class="--><?php ////if($active=="map"){echo "active";} ?><!--">-->
<!-- <a href="--><?php ////echo base_url('index.php/Gestion/map') ?><!--">-->
<!-- <a href="--><?php ////echo base_url('Gestion/map') ?><!--">-->
<!-- <i class="glyphicon glyphicon-map-marker"></i> <span>Carte</span>-->
<!-- </a>-->
<!-- </li>-->
<li class="<?php if ($active == "currency") {
echo "active";
} ?>">
<a href="<?php echo base_url('index.php/Gestion/currency') ?>">
<i class="ion ion-cash"></i> <span><?php echo $this->lang->line('currency'); ?></span>
<a href="<?= base_url('Gestion/currency') ?>">
<i class="ion ion-cash"></i> <span><?= $this->lang->line('currency'); ?></span>
</a>
</li>
<li class="<?php if ($active == "regulations") {
echo "active";
} ?>">
<a href="<?php echo base_url('index.php/Gestion/regulations') ?>">
<i class="fa fa-registered"></i> <span><?php echo $this->lang->line('regulations'); ?></span>
<a href="<?= base_url('Gestion/regulations') ?>">
<i class="fa fa-registered"></i> <span><?= $this->lang->line('regulations'); ?></span>
</a>
</li>
<li class="<?php if($active=="operators"){echo "active";} ?>">
<a href="<?php echo base_url('index.php/Gestion/operators') ?>">
<i class="fa fa-building"></i> <span><?php echo $this->lang->line('operators'); ?></span>
<a href="<?= base_url('Gestion/operators') ?>">
<i class="fa fa-building"></i> <span><?= $this->lang->line('operators'); ?></span>
</a>
</li>
<li class="<?php if($active=="settings"){echo "active";} ?>">
<a href="<?php echo base_url('index.php/Gestion/settings') ?>">
<i class="ion ion-settings"></i> <span><?php echo $this->lang->line('settings'); ?></span>
<a href="<?= base_url('Gestion/settings') ?>">
<i class="ion ion-settings"></i> <span><?= $this->lang->line('settings'); ?></span>
</a>
</li>
</ul>
@ -203,12 +203,12 @@
<div class="modal fade" id="modal-default">
<div class="modal-dialog">
<div class="modal-content">
<form action="<?php echo base_url('index.php/Gestion/game')?>" method="post">
<form action="<?= base_url('Gestion/game')?>" method="post">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title"><?php echo $this->lang->line('Sélectionnez le pays'); ?></h4>
<h4 class="modal-title"><?= $this->lang->line('Sélectionnez le pays'); ?></h4>
</div>
<div class="modal-body">
@ -235,8 +235,8 @@
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal"><?php echo $this->lang->line('Fermer'); ?></button>
<button type="submit" class="btn btn-primary"><?php echo $this->lang->line('Continuer'); ?></button>
<button type="button" class="btn btn-default pull-left" data-dismiss="modal"><?= $this->lang->line('Fermer'); ?></button>
<button type="submit" class="btn btn-primary"><?= $this->lang->line('Continuer'); ?></button>
</div>
</form>
</div>
@ -245,7 +245,7 @@
<!-- <div class="modal fade" id="modal-choix-network">-->
<!-- <div class="modal-dialog">-->
<!-- <div class="modal-content">-->
<!-- <form action="--><?php //echo base_url('index.php/Gestion/wallet')?><!--" method="post">-->
<!-- <form action="--><?php //echo base_url('Gestion/wallet')?><!--" method="post">-->
<!-- <div class="modal-header">-->
<!-- <button type="button" class="close" data-dismiss="modal" aria-label="Close">-->
<!-- <span aria-hidden="true">&times;</span>-->

View File

@ -8,18 +8,18 @@
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.7 -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/bootstrap/dist/css/bootstrap.min.css') ?>">
<link rel="stylesheet" href="<?= base_url('bower_components/bootstrap/dist/css/bootstrap.min.css') ?>">
<!-- Font Awesome -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/font-awesome/css/font-awesome.min.css') ?>">
<link rel="stylesheet" href="<?= base_url('bower_components/font-awesome/css/font-awesome.min.css') ?>">
<!-- Ionicons -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/Ionicons/css/ionicons.min.css') ?>">
<link rel="stylesheet" href="<?= base_url('bower_components/Ionicons/css/ionicons.min.css') ?>">
<!-- Theme style -->
<link rel="stylesheet" href="<?php echo base_url('dist/css/AdminLTE.css') ?>">
<link rel="stylesheet" href="<?= base_url('dist/css/AdminLTE.css') ?>">
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link rel="stylesheet" href="<?php echo base_url('dist/css/skins/_all-skins.min.css') ?>">
<link rel="shortcut icon" href="<?php echo base_url('favicon.ico') ?>" type="image/x-icon">
<link rel="icon" href="<?php echo base_url('favicon.ico') ?>" type="image/x-icon">
<link rel="stylesheet" href="<?= base_url('dist/css/skins/_all-skins.min.css') ?>">
<link rel="shortcut icon" href="<?= base_url('favicon.ico') ?>" type="image/x-icon">
<link rel="icon" href="<?= base_url('favicon.ico') ?>" type="image/x-icon">
@ -51,7 +51,7 @@
<span class="logo-mini"><b>iLink</b></span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg">
<img class="img img-responsive img-dash" src="<?php echo base_url('images/logo.png') ?>">
<img class="img img-responsive img-dash" src="<?= base_url('images/logo.png') ?>">
<b>iLink</b> World
</span>
@ -68,25 +68,25 @@
<!-- User Account: style can be found in dropdown.less -->
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<?php echo $this->lang->line('Bienvenue'); ?> <span class="hidden-xs"><b><?php echo $firstname.' '.$lastname;?></b></span>
<?= $this->lang->line('Bienvenue'); ?> <span class="hidden-xs"><b><?= $this->session->userdata('firstname').' '.$this->session->userdata('lastname');?></b></span>
</a>
<ul class="dropdown-menu">
<!-- User image -->
<li class="user-header">
<p>
<?php echo $network.' - '.$this->session->userdata('member_code');?>
<small><?php echo $email;?></small>
<?= $this->session->userdata('network').' - '.$this->session->userdata('member_code');?>
<small><?= $this->session->userdata('email');?></small>
</p>
</li>
<li class="user-body">
<div class="row">
<div class="col-xs-6 text-center">
<?php echo $this->session->userdata('current_pays');?>
<?= $this->session->userdata('current_pays');?>
</div>
<div class="col-xs-6 text-center">
<?php echo $this->session->userdata('phone');?>
<?= $this->session->userdata('phone');?>
</div>
</div>
<!-- /.row -->
@ -94,7 +94,7 @@
<li class="user-footer">
<div class="pull-right">
<a href="<?php echo base_url('index.php/Users/logout') ?>" class="btn btn-default btn-flat"><?php echo $this->lang->line('Déconnexion'); ?></a>
<a href="<?= base_url('Users/logout') ?>" class="btn btn-default btn-flat"><?= $this->lang->line('Déconnexion'); ?></a>
</div>
</li>
</ul>
@ -114,23 +114,23 @@
<li class="<?php if($active=="dash"){echo "active ";} ?>">
<a href="<?php echo base_url('index.php/Hyperviseur_dash') ?>">
<i class="fa fa-dashboard"></i> <span><?php echo $this->lang->line('Tableau de bord'); ?></span>
<a href="<?= base_url('Hyperviseur_dash') ?>">
<i class="fa fa-dashboard"></i> <span><?= $this->lang->line('Tableau de bord'); ?></span>
</a>
</li>
<li class="<?php if($active=="geolocated"){echo "active ";} ?>">
<a href="#" data-toggle="modal" data-target="#modal-default">
<i class="fa fa-users"></i>
<span><?php echo $this->lang->line('Utilisateurs géolocalisés'); ?></span>
<span><?= $this->lang->line('Utilisateurs géolocalisés'); ?></span>
</a>
</li>
<li class="<?php if ($active == "super") {
echo "active ";
} ?>">
<a href="<?php echo base_url('index.php/Hyperviseur_dash/getAllSupervisor') ?>">
<i class="fa fa-users"></i> <span><?php echo $this->lang->line('Superviseur'); ?></span>
<a href="<?= base_url('Hyperviseur_dash/getAllSupervisor') ?>">
<i class="fa fa-users"></i> <span><?= $this->lang->line('Superviseur'); ?></span>
</a>
</li>
@ -138,7 +138,7 @@
style="height: auto;">
<a href="#">
<i class="fa fa-users"></i>
<span><?php echo $this->lang->line('Demandes de crédits'); ?></span>
<span><?= $this->lang->line('Demandes de crédits'); ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
@ -148,16 +148,16 @@
<li class="<?php if ($active == "demandes_credits_entrantes") {
echo "active ";
} ?>">
<a href="<?php echo base_url('index.php/Hyperviseur_dash/getDemandes') ?>">
<i class="fa fa-users"></i> <span><?php echo $this->lang->line('Demandes de crédits'); ?></span>
<a href="<?= base_url('Hyperviseur_dash/getDemandes') ?>">
<i class="fa fa-users"></i> <span><?= $this->lang->line('Demandes de crédits'); ?></span>
</a>
</li>
<li class="<?php if ($active == "demandes_credits_annulation") {
echo "active ";
} ?>">
<a href="<?php echo base_url('index.php/Hyperviseur_dash/demandsCancellation') ?>"><i
class="fa fa-undo"></i><?php echo $this->lang->line('cancellation'); ?>
<a href="<?= base_url('Hyperviseur_dash/demandsCancellation') ?>"><i
class="fa fa-undo"></i><?= $this->lang->line('cancellation'); ?>
</a></li>
</ul>
</li>
@ -165,9 +165,9 @@
<li class="<?php if ($active == "demandesAd") {
echo "active ";
} ?>">
<a href="<?php echo base_url('index.php/Hyperviseur_dash/getDemandesAd') ?>">
<a href="<?= base_url('Hyperviseur_dash/getDemandesAd') ?>">
<i class="fa fa-user-secret"></i>
<span><?php echo $this->lang->line('Demandes adhésion'); ?></span>
<span><?= $this->lang->line('Demandes adhésion'); ?></span>
</a>
</li>
<?php if ($hasWallet) {?>
@ -175,7 +175,7 @@
style="height: auto;">
<a href="#">
<i class="fa fa-credit-card-alt"></i>
<span><?php echo $this->lang->line('wallet_management'); ?></span>
<span><?= $this->lang->line('wallet_management'); ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
@ -185,29 +185,29 @@
<li class="<?php if ($active == "wallet_wallet") {
echo "active";
} ?>">
<a href="<?php echo base_url('index.php/Hyperviseur_dash/wallet') ?>">
<a href="<?= base_url('Hyperviseur_dash/wallet') ?>">
<i class="glyphicon glyphicon-credit-card"></i>
<span>Wallet<?php //echo $this->lang->line('Game'); ?></span>
</a>
</li>
<?php if ($hasWallet->first_row()->type == 'ilink_sante') { ?>
<li class="<?php if ($active == "wallet_validating_doctors") {
echo "active";
} ?>">
<a href="<?php echo base_url('Hyperviseur_dash/validating_doctors') ?>">
<i class="fa fa-stethoscope"></i>
<span><?php echo $this->lang->line('validating_doctors'); ?></span>
</a>
</li>
<?php } ?>
<li class="<?php if ($active == "wallet_password") {
echo "active";
} ?>">
<a href="<?php echo base_url('index.php/Hyperviseur_dash/walletPassword') ?>">
<a href="<?= base_url('Hyperviseur_dash/walletPassword') ?>">
<i class="glyphicon glyphicon-lock"></i>
<span><?php echo $this->lang->line('menu_wallet_password'); ?></span>
<span><?= $this->lang->line('menu_wallet_password'); ?></span>
</a>
</li>
<!-- --><?php //if ($hasWallet->first_row()->type == 'ilink') { ?>
<!-- <li class="--><?php //if ($active == "wallet_calculator") {
// echo "active";
// } ?><!--">-->
<!-- <a href="--><?php //echo base_url('index.php/Hyperviseur_dash/calculator') ?><!--">-->
<!-- <i class="glyphicon glyphicon-adjust"></i>-->
<!-- <span>--><?php //echo $this->lang->line('calculator'); ?><!--</span>-->
<!-- </a>-->
<!-- </li>-->
<!-- --><?php //} ?>
</ul>
</li>
@ -216,28 +216,28 @@
<li class="<?php if ($active == "nano_credit") {
echo "active";
} ?>">
<a href="<?php echo base_url('index.php/Hyperviseur_dash/nano_credit') ?>">
<a href="<?= base_url('Hyperviseur_dash/nano_credit') ?>">
<i class="fa fa-money"></i> <span>Nano credit</span>
</a>
</li>
<li class="<?php if($active=="operators"){echo "active";} ?>">
<a href="<?php echo base_url('index.php/Hyperviseur_dash/operators') ?>">
<i class="fa fa-building"></i> <span><?php echo $this->lang->line('operators'); ?></span>
<a href="<?= base_url('Hyperviseur_dash/operators') ?>">
<i class="fa fa-building"></i> <span><?= $this->lang->line('operators'); ?></span>
</a>
</li>
<?php }?>
<?php } ?>
<li class="<?php if($active=="recherche"){echo "active";} ?>">
<a href="<?php echo base_url('index.php/Hyperviseur_dash/recherche') ?>">
<i class="glyphicon glyphicon-search"></i> <span><?php echo $this->lang->line('Rechercher'); ?></span>
<a href="<?= base_url('Hyperviseur_dash/recherche') ?>">
<i class="glyphicon glyphicon-search"></i> <span><?= $this->lang->line('Rechercher'); ?></span>
</a>
</li>
<?php if (($hasWallet) && ($hasWallet->first_row()->type == 'ilink')){?>
<li class="<?php if($active=="documentation"){echo "active";} ?>">
<a href="<?php echo base_url('index.php/Hyperviseur_dash/documentation') ?>">
<a href="<?= base_url('Hyperviseur_dash/documentation') ?>">
<i class="fa fa-book"></i> <span>Documentation</span>
</a>
</li>
@ -251,12 +251,12 @@
<div class="modal fade" id="modal-default">
<div class="modal-dialog">
<div class="modal-content">
<form action="<?php echo base_url('index.php/Hyperviseur_dash/getAllUser_g')?>" method="post">
<form action="<?= base_url('Hyperviseur_dash/getAllUser_g')?>" method="post">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title"><?php echo $this->lang->line('Sélectionnez la ville'); ?></h4>
<h4 class="modal-title"><?= $this->lang->line('Sélectionnez la ville'); ?></h4>
</div>
<div class="modal-body">
@ -283,8 +283,8 @@
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal"><?php echo $this->lang->line('Fermer'); ?></button>
<button type="submit" class="btn btn-primary"><?php echo $this->lang->line('Continuer'); ?></button>
<button type="button" class="btn btn-default pull-left" data-dismiss="modal"><?= $this->lang->line('Fermer'); ?></button>
<button type="submit" class="btn btn-primary"><?= $this->lang->line('Continuer'); ?></button>
</div>
</form>
</div>

View File

@ -8,18 +8,18 @@
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.7 -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/bootstrap/dist/css/bootstrap.min.css') ?>">
<link rel="stylesheet" href="<?= base_url('bower_components/bootstrap/dist/css/bootstrap.min.css') ?>">
<!-- Font Awesome -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/font-awesome/css/font-awesome.min.css') ?>">
<link rel="stylesheet" href="<?= base_url('bower_components/font-awesome/css/font-awesome.min.css') ?>">
<!-- Ionicons -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/Ionicons/css/ionicons.min.css') ?>">
<link rel="stylesheet" href="<?= base_url('bower_components/Ionicons/css/ionicons.min.css') ?>">
<!-- Theme style -->
<link rel="stylesheet" href="<?php echo base_url('dist/css/AdminLTE.css') ?>">
<link rel="stylesheet" href="<?= base_url('dist/css/AdminLTE.css') ?>">
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link rel="stylesheet" href="<?php echo base_url('dist/css/skins/_all-skins.min.css') ?>">
<link rel="shortcut icon" href="<?php echo base_url('favicon.ico') ?>" type="image/x-icon">
<link rel="icon" href="<?php echo base_url('favicon.ico') ?>" type="image/x-icon">
<link rel="stylesheet" href="<?= base_url('dist/css/skins/_all-skins.min.css') ?>">
<link rel="shortcut icon" href="<?= base_url('favicon.ico') ?>" type="image/x-icon">
<link rel="icon" href="<?= base_url('favicon.ico') ?>" type="image/x-icon">
@ -49,7 +49,7 @@
<span class="logo-mini"><b>iLink</b></span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg">
<img class="img img-responsive img-dash" src="<?php echo base_url('images/logo.png') ?>">
<img class="img img-responsive img-dash" src="<?= base_url('images/logo.png') ?>">
<b>iLink</b> World
</span>
</a>
@ -64,30 +64,30 @@
<!-- User Account: style can be found in dropdown.less -->
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<?php echo $this->lang->line('Bienvenue'); ?> <span class="hidden-xs"><b><?php echo $firstname.' '.$lastname;?></b></span>
<?= $this->lang->line('Bienvenue'); ?> <span class="hidden-xs"><b><?= $this->session->userdata('firstname').' '.$this->session->userdata('lastname');?></b></span>
</a>
<ul class="dropdown-menu">
<!-- User image -->
<li class="user-header">
<p>
<?php echo $network.' - '.$this->session->userdata('member_code');?>
<small><?php echo $email;?></small>
<?= $this->session->userdata('network').' - '.$this->session->userdata('member_code');?>
<small><?= $this->session->userdata('email');?></small>
</p>
</li>
<li class="user-body">
<div class="row">
<div class="col-xs-6 text-center">
<?php echo $this->session->userdata('current_pays');?>
<?= $this->session->userdata('current_pays');?>
</div>
<div class="col-xs-6 text-center">
<?php echo $this->session->userdata('phone');?>
<?= $this->session->userdata('phone');?>
</div>
</div>
<!-- /.row -->
</li>
<li class="user-footer">
<div class="pull-right">
<a href="<?php echo base_url('index.php/Users/logout') ?>" class="btn btn-default btn-flat"><?php echo $this->lang->line('Déconnexion'); ?></a>
<a href="<?= base_url('Users/logout') ?>" class="btn btn-default btn-flat"><?= $this->lang->line('Déconnexion'); ?></a>
</div>
</li>
</ul>
@ -105,16 +105,16 @@
<li class="<?php if ($active == "dash") {
echo "active ";
} ?>">
<a href="<?php echo base_url('index.php/Superviseur_dash') ?>">
<i class="fa fa-dashboard"></i> <span><?php echo $this->lang->line('Tableau de bord'); ?></span>
<a href="<?= base_url('Superviseur_dash') ?>">
<i class="fa fa-dashboard"></i> <span><?= $this->lang->line('Tableau de bord'); ?></span>
</a>
</li>
<li class="<?php if ($active == "geolocated") {
echo "active ";
} ?>">
<a href="<?php echo base_url('index.php/Superviseur_dash/getAllUser_g') ?>">
<a href="<?= base_url('Superviseur_dash/getAllUser_g') ?>">
<i class="fa fa-users"></i>
<span><?php echo $this->lang->line('Utilisateurs géolocalisés'); ?></span>
<span><?= $this->lang->line('Utilisateurs géolocalisés'); ?></span>
</a>
</li>
</li>
@ -122,7 +122,7 @@
style="height: auto;">
<a href="#">
<i class="fa fa-users"></i>
<span><?php echo $this->lang->line('Demandes de crédits'); ?></span>
<span><?= $this->lang->line('Demandes de crédits'); ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
@ -132,20 +132,20 @@
<li class="<?php if ($active == "demandes_credits_entrantes") {
echo "active ";
} ?>">
<a href="<?php echo base_url('index.php/Superviseur_dash/getDemandes?type=incoming') ?>"><i
class="fa fa-arrow-down"></i><?php echo $this->lang->line('incoming_requests'); ?>
<a href="<?= base_url('Superviseur_dash/getDemandes?type=incoming') ?>"><i
class="fa fa-arrow-down"></i><?= $this->lang->line('incoming_requests'); ?>
</a></li>
<li class="<?php if ($active == "demandes_credits_sortantes") {
echo "active ";
} ?>">
<a href="<?php echo base_url('index.php/Superviseur_dash/getDemandes?type=outgoing') ?>"><i
class="fa fa-arrow-up"></i><?php echo $this->lang->line('outgoing_requests'); ?>
<a href="<?= base_url('Superviseur_dash/getDemandes?type=outgoing') ?>"><i
class="fa fa-arrow-up"></i><?= $this->lang->line('outgoing_requests'); ?>
</a></li>
</ul>
</li>
<!-- <li class="--><?php // if($active=="demandesAd"){echo "active ";} ?><!--">-->
<!-- <a href="-->
<?php // echo base_url('index.php/Superviseur_dash/getDemandesAd') ?><!--">-->
<?php // echo base_url('Superviseur_dash/getDemandesAd') ?><!--">-->
<!-- <i class="fa fa-users"></i> <span> -->
<?php //echo $this->lang->line('Demandes adhésion'); ?><!--</span>-->
<!-- </a>-->
@ -155,7 +155,7 @@
<li class="<?php if ($active == "wallet") {
echo "active";
} ?>">
<a href="<?php echo base_url('index.php/Superviseur_dash/wallet') ?>">
<a href="<?= base_url('Superviseur_dash/wallet') ?>">
<i class="glyphicon glyphicon-credit-card"></i> <span>Wallet<?php //echo $this->lang->line('Game'); ?></span>
</a>
</li>
@ -164,15 +164,15 @@
<li class="<?php if ($active == "nano_credit") {
echo "active";
} ?>">
<a href="<?php echo base_url('index.php/Superviseur_dash/nano_credit') ?>">
<a href="<?= base_url('Superviseur_dash/nano_credit') ?>">
<i class="fa fa-money"></i> <span>Nano credit</span>
</a>
</li>
<?php }?>
<?php } ?>
<li class="<?php if($active=="recherche"){echo "active";} ?>">
<a href="<?php echo base_url('index.php/Superviseur_dash/recherche') ?>">
<i class="glyphicon glyphicon-search"></i> <span><?php echo $this->lang->line('Rechercher'); ?></span>
<a href="<?= base_url('Superviseur_dash/recherche') ?>">
<i class="glyphicon glyphicon-search"></i> <span><?= $this->lang->line('Rechercher'); ?></span>
</a>
</li>
</ul>

View File

@ -235,7 +235,7 @@
const debut = start.format('YYYY-MM-DD');
const fin = end.format('YYYY-MM-DD');
window.location.replace("<?php echo base_url('index.php/Hyperviseur_dash/demandsCancellation?show=history')?>" + "&d=" + debut + "&f=" + fin);
window.location.replace("<?php echo base_url('Hyperviseur_dash/demandsCancellation?show=history')?>" + "&d=" + debut + "&f=" + fin);
});
$('input[name="daterange"]').on('cancel.daterangepicker', function (ev, picker) {
@ -251,7 +251,7 @@
$(document).on("click", "#cancelDemand", function () {
const id_demand = $(this).data('id-demand');
$.ajax({
url: '<?php echo base_url('index.php/Hyperviseur_dash/cancelCreditRequest')?>',
url: '<?php echo base_url('Hyperviseur_dash/cancelCreditRequest')?>',
type: 'POST',
dataType: 'json',
data: {"id_demand": id_demand},

View File

@ -5,37 +5,6 @@
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/buttons/1.6.2/css/buttons.dataTables.min.css">
<link rel="stylesheet" href="<?php echo base_url('bower_components/toastr/toastr.css') ?>">
<style>
/* Turn off scrollbar when body element has the loading class */
body.loading {
overflow: hidden;
}
/* Make spinner image visible when body element has the loading class */
body.loading #loader {
display: block;
}
body {
height: 100%;
margin: 0;
padding: 0;
}
#loader {
display: none;
}
.img-center {
display: block;
margin-left: auto;
margin-right: auto;
/*width: 65%;*/
}
</style>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
@ -196,13 +165,7 @@
</div>
</div>
</div>
<div id="loader" class="center-div loader">
<div class="center-div">
<img style="text-align: center" class="img-center" src="<?php echo base_url('dist/img/loading.gif') ?>" alt="Loading" height="50" width="50">
<p style="text-align: center">Chargement</p>
</div>
</div>
<?php $this->load->view('include/loader') ?>
</section>
@ -241,17 +204,6 @@
<script>
// Add remove loading class on body element based on Ajax request status
$(document).on({
ajaxStart: function () {
$("body").addClass("loading");
},
ajaxStop: function () {
$("body").removeClass("loading");
}
});
$(function () {
const lang = $('#picker').data('lang');
const format = lang === 'french' ? 'fr' : 'en';
@ -508,7 +460,7 @@
button.prop("disabled",true);
const id_transaction = $(this).data('id-transaction');
$.ajax({
url : '<?php echo base_url('index.php/Gestion/cancelTransation')?>',
url : '<?php echo base_url('Gestion/cancelTransation')?>',
type : 'POST',
dataType : 'json',
data: {"id_transaction": id_transaction},
@ -542,7 +494,7 @@
let button = $(this);
button.prop('disabled', true);
$.ajax({
url : '<?php echo base_url('index.php/Hyperviseur_dash/delete_wallet_transaction')?>',
url : '<?php echo base_url('Hyperviseur_dash/delete_wallet_transaction')?>',
type : 'POST',
dataType : 'json',
data: {"id_transaction": id_transaction},

View File

@ -361,7 +361,7 @@ use Brick\Money\ExchangeRateProvider\PDOProviderConfiguration;
$(document).on("click", "#cancel", function () {
const id_transaction = $(this).data('id-transaction');
$.ajax({
url : '<?php echo base_url('index.php/Gestion/cancelIlinkTransation')?>',
url : '<?php echo base_url('Gestion/cancelIlinkTransation')?>',
type : 'POST',
dataType : 'json',
data: {"id_transaction": id_transaction},

View File

@ -151,7 +151,7 @@ if($users_geolocated_query!=false){
<div class="icon">
<i class="ion ion-ios-people"></i>
</div>
<a href="<?php echo base_url('index.php/Hyperviseur_dash/getAllSupervisor') ?>" class="small-box-footer"><?php echo $this->lang->line("Plus d'informations"); ?> <i class="fa fa-arrow-circle-right"></i></a>
<a href="<?php echo base_url('Hyperviseur_dash/getAllSupervisor') ?>" class="small-box-footer"><?php echo $this->lang->line("Plus d'informations"); ?> <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
<div class="col-lg-2 col-md-4 col-xs-6">

View File

@ -0,0 +1,21 @@
<div class="modal fade" id="<?= (isset($id) ? $id.'-': '').'delete-modal'?>">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title"><?= $title ?? $this->lang->line('Suppression de compte') ?></h4>
</div>
<div class="modal-body">
<h4> <?= $this->lang->line('are_you_sure'); ?> </h4>
</div>
<div class="modal-footer">
<button class="btn btn-danger pull-left"
id="<?= (isset($id) ? $id.'-': '').'delete-btn'?>"><?= $this->lang->line('Confirmer'); ?></button>
<button type="button" class="btn btn-default pull-right"
data-dismiss="modal"><?= $this->lang->line('Fermer'); ?></button>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,36 @@
<style>
/* Turn off scrollbar when body element has the loading class */
body.loading {
overflow: hidden;
}
/* Make spinner image visible when body element has the loading class */
body.loading #loader {
display: block;
}
body {
height: 100%;
margin: 0;
padding: 0;
}
#loader {
display: none;
}
.img-center {
display: block;
margin-left: auto;
margin-right: auto;
/*width: 65%;*/
}
</style>
<div id="loader" class="center-div loader">
<div class="center-div">
<img style="text-align: center" class="img-center" src="<?php echo base_url('dist/img/loading.gif') ?>" alt="Loading" height="50" width="50">
<p style="text-align: center">Chargement</p>
</div>
</div>

View File

@ -75,7 +75,7 @@
<?php
$site_url = base_url();
$url = base_url('index.php/list_user_s/modif');
$url = base_url('list_user_s/modif');
// output data of each row
foreach($result->result() as $row) {
$num++;

View File

@ -99,7 +99,7 @@ function randomString($length=10 )
<li class="divider"></li>
<li class="divider visible-phone"></li>
<li><a tabindex="-1" href="<?php echo base_url('index.php/Login/logout') ?>">Logout</a></li>
<li><a tabindex="-1" href="<?php echo base_url('Login/logout') ?>">Logout</a></li>
</ul>
</li>

View File

@ -99,7 +99,7 @@ function randomString($length=10 )
<li class="divider"></li>
<li class="divider visible-phone"></li>
<li><a tabindex="-1" href="<?php echo base_url('index.php/Login/logout') ?>">Logout</a></li>
<li><a tabindex="-1" href="<?php echo base_url('Login/logout') ?>">Logout</a></li>
</ul>
</li>

View File

@ -92,7 +92,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<li class="divider"></li>
<li class="divider visible-phone"></li>
<li><a tabindex="-1" href="<?php echo base_url('index.php/Login/logout') ?>">Logout</a></li>
<li><a tabindex="-1" href="<?php echo base_url('Login/logout') ?>">Logout</a></li>
</ul>
</li>
@ -117,7 +117,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<div class='modal-content'>
<div class='modal-body'>
<form name="form_login" action="<?php echo base_url('index.php/Admin/add');?>" method="post" role="form">
<form name="form_login" action="<?php echo base_url('Admin/add');?>" method="post" role="form">
<fieldset>
<h2>Reinitialiser votre Mot de PASSE</h2>
@ -189,7 +189,7 @@ if ($numrows > 0) {
<?php
// output data of each row
$url = base_url('index.php/Listes_admin/modif');
$url = base_url('Listes_admin/modif');
foreach($result->result() as $row) {
$num++;

View File

@ -382,7 +382,7 @@
var m_cat = $(".modal-body #categorie").val();
$.ajax({
url:'<?php echo base_url('index.php/Admin/updateUser')?>',
url:'<?php echo base_url('Admin/updateUser')?>',
type: 'post',
data: {code: m_code,nom:m_nom,adresse:m_adresse,email:m_email,contact:m_contact,cat:m_cat},
dataType: 'json',
@ -415,7 +415,7 @@
$("#delete").click(function(){
$.ajax({
url:'<?php echo base_url('index.php/Admin/deleteUser')?>',
url:'<?php echo base_url('Admin/deleteUser')?>',
type: 'post',
data: {code: member_code,cat:categorie},
dataType: 'json',
@ -440,7 +440,7 @@
$('#pays').change(function(){
var pays = $(this).val();
$.ajax({
url:'<?php echo base_url('index.php/Admin/getHypByPays')?>',
url:'<?php echo base_url('Admin/getHypByPays')?>',
type: 'post',
data: {pays: pays},
dataType: 'json',
@ -466,7 +466,7 @@
var code = data[0].code_membre;
$.ajax({
url:'<?php echo base_url('index.php/Admin/getVilleByHyp')?>',
url:'<?php echo base_url('Admin/getVilleByHyp')?>',
type: 'post',
data: {code: code,pays:pays},
dataType: 'json',
@ -516,7 +516,7 @@
$('#hyper').change(function(){
var code = $(this).val();
$.ajax({
url:'<?php echo base_url('index.php/Admin/getVilleByHyp')?>',
url:'<?php echo base_url('Admin/getVilleByHyp')?>',
type: 'post',
data: {code: code},
dataType: 'json',
@ -637,7 +637,7 @@
console.log(parseInt($('#charger').text(), 10) >= total);
if (parseInt($('#charger').text(), 10) < total){
$.ajax({
url: '<?php echo base_url('index.php/Admin/progressRequestUser_g')?>',
url: '<?php echo base_url('Admin/progressRequestUser_g')?>',
type: 'post',
data: {start_at: start_at},
dataType: 'json',
@ -750,7 +750,7 @@
if(total>parseInt($('#charger').text(), 10) && first_load===1){
$.ajax({
url:'<?php echo base_url('index.php/Admin/progressRequestUser_g')?>',
url:'<?php echo base_url('Admin/progressRequestUser_g')?>',
type: 'post',
data: {start_at: start_at},
dataType: 'json',

View File

@ -81,7 +81,7 @@ if ($numrows > 0) {
<?php
$site_url = base_url();
$url = base_url('index.php/Listes_members/modif');
$url = base_url('Listes_members/modif');
// output data of each row
foreach($result->result() as $row) {
$num++;
@ -268,7 +268,7 @@ echo "1 results";
$('#pays').change(function(){
var pays = $(this).val();
$.ajax({
url:'<?php echo base_url('index.php/Admin/getHypByPays')?>',
url:'<?php echo base_url('Admin/getHypByPays')?>',
type: 'post',
data: {pays: pays},
dataType: 'json',
@ -294,7 +294,7 @@ echo "1 results";
var code = data[0].code_membre;
$.ajax({
url:'<?php echo base_url('index.php/Admin/getVilleByHyp')?>',
url:'<?php echo base_url('Admin/getVilleByHyp')?>',
type: 'post',
data: {code: code,pays:pays},
dataType: 'json',
@ -344,7 +344,7 @@ echo "1 results";
$('#hyper').change(function(){
var code = $(this).val();
$.ajax({
url:'<?php echo base_url('index.php/Admin/getVilleByHyp')?>',
url:'<?php echo base_url('Admin/getVilleByHyp')?>',
type: 'post',
data: {code: code},
dataType: 'json',

View File

@ -28,8 +28,8 @@
<div class="login-page">
<div class="img-container">
<div class="choice-lang">
<img src="<?php echo base_url('images/flag_french.png') ?>" class="img-circle img-responsive" onclick="javascript:window.location ='<?php echo base_url(); ?>index.php/LanguageSwitcher/switchLang/french';"/>
<img src="<?php echo base_url('images/flag_uk.jpg') ?>" class="img-circle img-responsive" onclick="javascript:window.location ='<?php echo base_url(); ?>index.php/LanguageSwitcher/switchLang/english';"/>
<img src="<?php echo base_url('images/flag_french.png') ?>" class="img-circle img-responsive" onclick="javascript:window.location ='<?php echo base_url(); ?>LanguageSwitcher/switchLang/french';"/>
<img src="<?php echo base_url('images/flag_uk.jpg') ?>" class="img-circle img-responsive" onclick="javascript:window.location ='<?php echo base_url(); ?>LanguageSwitcher/switchLang/english';"/>
<!--<a href='#modal-langue'data-toggle='modal'><?php echo $this->lang->line('langue'); ?> : <?php echo $this->session->userdata('site_lang') ?> </a>-->
</div>
<div class="text-center pull-right photo">
@ -60,7 +60,7 @@
}
?>
<form id="loginForm" action="<?php echo base_url('index.php/login_user') ?>" method="post" class="bottom-75">
<form id="loginForm" action="<?php echo base_url('login_user') ?>" method="post" class="bottom-75">
<div class="table-form">
<div class="form-groups">
<div class="input-group date" style="margin-bottom : 10px;">
@ -87,7 +87,7 @@
</div>
</div>
<div class="remember">
<a style="color:white;" href="<?php echo base_url('index.php/Users/forgot_password')?>"><?php echo $this->lang->line('mot de passe oublié'); ?>?</a>
<a style="color:white;" href="<?php echo base_url('Users/forgot_password')?>"><?php echo $this->lang->line('mot de passe oublié'); ?>?</a>
</div>
</form>
@ -102,7 +102,7 @@
</div>
<div class='modal-body'>
<div class="form-group">
<select class="form-control input-lg" onchange="javascript:window.location.href='<?php echo base_url(); ?>/index.php/LanguageSwitcher/switchLang/'+this.value;">
<select class="form-control input-lg" onchange="javascript:window.location.href='<?php echo base_url(); ?>/LanguageSwitcher/switchLang/'+this.value;">
<option value="french" <?php if($this->session->userdata('site_lang') == 'french') echo 'selected="selected"'; ?>>French</option>
<option value="english" <?php if($this->session->userdata('site_lang') == 'english') echo 'selected="selected"'; ?>>English</option>
</select>

View File

@ -51,7 +51,7 @@
<?php
}
?>
<form action="index.php/login_register_validate" method="post">
<form action="login_register_validate" method="post">
<div class="form-group has-feedback">
<input name="user_mail" id="user_mail" type="email" class="form-control" placeholder="Email" required>
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>

View File

@ -91,7 +91,7 @@ function randomString1($length=10 )
<li class="divider"></li>
<li class="divider visible-phone"></li>
<li><a tabindex="-1" href="<?php echo base_url('index.php/Login/logout') ?>">Logout</a></li>
<li><a tabindex="-1" href="<?php echo base_url('Login/logout') ?>">Logout</a></li>
</ul>
</li>
@ -272,7 +272,7 @@ if ($numrows > 0) {
</thead>
<?php
$url = base_url('index.php/Member_code_admin/enregist');
$url = base_url('Member_code_admin/enregist');
// output data of each row
foreach($sql2->result() as $row) {
$num ++;
@ -375,7 +375,7 @@ if ($numrows > 0) {
</div>
<div class='modal-footer'>
<button class='btn' data-dismiss='modal' aria-hidden='true'>Annuler</button>
<a href='index.php/Member_code/delete/?recordid=$row->phone' role='button' class='btn btn-danger'>
<a href='Member_code/delete/?recordid=$row->phone' role='button' class='btn btn-danger'>
Effacer</a>
</div>
</div>
@ -446,7 +446,7 @@ if ($numrows > 0) {
</div>
<div class='modal-footer'>
<button class='btn' data-dismiss='modal' aria-hidden='true'>Annuler</button>
<a href='index.php/Member_code/suppr/?recordId=$row->phone' role='button' class='btn btn-danger'>
<a href='Member_code/suppr/?recordId=$row->phone' role='button' class='btn btn-danger'>
Effacer</a>
</div>
</div>

View File

@ -206,7 +206,7 @@
</div>
<div class='modal-footer'>
<button type='button' class='btn btn-default pull-left' data-dismiss='modal'>".$this->lang->line('Fermer')."</button>
<a href='".$site_url."index.php/Member_code_admin/suppress/?recordId=".$row->code_membre."' role='button' class='btn btn-danger' id='delete'>
<a href='".$site_url."Member_code_admin/suppress/?recordId=".$row->code_membre."' role='button' class='btn btn-danger' id='delete'>
".$this->lang->line('Supprimer')."</a>
</div>
</div>
@ -292,7 +292,7 @@
$('#pays').change(function(){
var pays = $(this).val();
$.ajax({
url:'<?php echo base_url('index.php/Admin/getHypByPays')?>',
url:'<?php echo base_url('Admin/getHypByPays')?>',
type: 'post',
data: {pays: pays},
dataType: 'json',
@ -318,7 +318,7 @@
var code = data[0].code_membre;
$.ajax({
url:'<?php echo base_url('index.php/Admin/getVilleByHyp')?>',
url:'<?php echo base_url('Admin/getVilleByHyp')?>',
type: 'post',
data: {code: code,pays:pays},
dataType: 'json',
@ -368,7 +368,7 @@
$('#hyper').change(function(){
var code = $(this).val();
$.ajax({
url:'<?php echo base_url('index.php/Admin/getVilleByHyp')?>',
url:'<?php echo base_url('Admin/getVilleByHyp')?>',
type: 'post',
data: {code: code},
dataType: 'json',

View File

@ -93,7 +93,7 @@ function randomString1($length=10 )
<li class="divider"></li>
<li class="divider visible-phone"></li>
<li><a tabindex="-1" href="<?php echo base_url('index.php/Login/logout') ?>">Logout</a></li>
<li><a tabindex="-1" href="<?php echo base_url('Login/logout') ?>">Logout</a></li>
</ul>

View File

@ -122,7 +122,7 @@ $context = new \Brick\Money\Context\AutoContext();
<?php echo $this->lang->line('edit_nano_credit') . ' - ' . $network . ' - ' . $country; ?>
</h1>
<?php
$site_url = base_url();
if ($alert == "ok") {
@ -519,7 +519,7 @@ $context = new \Brick\Money\Context\AutoContext();
console.log(rates)
$.ajax({
url: '<?php echo base_url('index.php/Hyperviseur_dash/saveNanoCreditRates')?>',
url: '<?php echo base_url('Hyperviseur_dash/saveNanoCreditRates')?>',
type: 'POST',
dataType: 'json',
data: {
@ -575,7 +575,7 @@ $context = new \Brick\Money\Context\AutoContext();
if ($('#taxForm')[0].checkValidity()) {
$.ajax({
url: '<?php echo base_url('index.php/Gestion/saveTaxes')?>',
url: '<?php echo base_url('Gestion/saveTaxes')?>',
type: 'POST',
dataType: 'json',
data: {
@ -628,7 +628,7 @@ $context = new \Brick\Money\Context\AutoContext();
}else {
if ($('#walletForm')[0].checkValidity()) {
$.ajax({
url: '<?php echo base_url('index.php/Hyperviseur_dash/saveNanoCreditSharedRates')?>',
url: '<?php echo base_url('Hyperviseur_dash/saveNanoCreditSharedRates')?>',
type: 'POST',
dataType: 'json',
data: {

View File

@ -7,106 +7,7 @@
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<style type="text/css">
.table-wrapper {
width: 700px;
margin: 30px auto;
background: #fff;
padding: 20px;
box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}
.table-title {
padding-bottom: 10px;
margin: 0 0 10px;
}
.table-title h2 {
margin: 6px 0 0;
font-size: 22px;
}
.table-title .add-new {
float: right;
height: 30px;
font-weight: bold;
font-size: 12px;
text-shadow: none;
min-width: 100px;
border-radius: 50px;
line-height: 13px;
}
.table-title .add-new i {
margin-right: 4px;
}
table.table {
table-layout: fixed;
}
table.table tr th, table.table tr td {
border-color: #e9e9e9;
}
table.table th i {
font-size: 13px;
margin: 0 5px;
cursor: pointer;
}
table.table th:last-child {
width: 100px;
}
table.table td a {
cursor: pointer;
display: inline-block;
margin: 0 5px;
min-width: 24px;
}
table.table td a.add {
color: #27C46B;
}
table.table td a.edit {
color: #FFC107;
}
table.table td a.delete {
color: #E34724;
}
table.table td i {
font-size: 19px;
}
table.table td a.add i {
font-size: 24px;
margin-right: -1px;
position: relative;
top: 3px;
}
table.table .form-control {
height: 32px;
line-height: 32px;
box-shadow: none;
border-radius: 2px;
}
/*table.table .form-control.error {*/
/* border-color: #f50000;*/
/*}*/
.error {
border-color: #f50000;
}
table.table td .add {
display: none;
}
</style>
<link rel="stylesheet" href="<?= base_url('dist/css/custom/levels-table.css') ?>">
<?php
use Brick\Money\Money;
@ -122,7 +23,7 @@ $context = new \Brick\Money\Context\AutoContext();
<?php echo $this->lang->line('edit_savings') . ' - ' . $network . ' - ' . $country; ?>
</h1>
<?php
$site_url = base_url();
if ($alert == "ok") {
@ -430,7 +331,7 @@ $context = new \Brick\Money\Context\AutoContext();
console.log(rates)
$.ajax({
url: '<?php echo base_url('index.php/Hyperviseur_dash/saveNanoCreditRates')?>',
url: '<?php echo base_url('Hyperviseur_dash/saveNanoCreditRates')?>',
type: 'POST',
dataType: 'json',
data: {
@ -487,7 +388,7 @@ $context = new \Brick\Money\Context\AutoContext();
if ($('#taxForm')[0].checkValidity()) {
$.ajax({
url: '<?php echo base_url('index.php/Gestion/saveTaxes')?>',
url: '<?php echo base_url('Gestion/saveTaxes')?>',
type: 'POST',
dataType: 'json',
data: {

View File

@ -20,7 +20,7 @@ $context = new \Brick\Money\Context\AutoContext();
<?php echo $this->lang->line('nano_credit_management') . ' ' . $network . ' - ' . $country; ?>
</h1>
<?php
$site_url = base_url();
if ($alert == "ok") {

View File

@ -22,7 +22,7 @@ $context = new \Brick\Money\Context\AutoContext();
Nano crédit <?php echo $network . ' - ' . $country; ?>
</h1>
<?php
$site_url = base_url();
if ($alert == "ok") {
@ -289,7 +289,7 @@ $context = new \Brick\Money\Context\AutoContext();
if ($('#limitForm')[0].checkValidity()) {
$.ajax({
url: '<?php echo base_url('index.php/Hyperviseur_dash/saveCreditLimit')?>',
url: '<?php echo base_url('Hyperviseur_dash/saveCreditLimit')?>',
type: 'POST',
dataType: 'json',
data: {

View File

@ -15,7 +15,7 @@
use Brick\Money\Money;
$context = new \Brick\Money\Context\AutoContext();
$site_url = base_url();
if ($alert == "ok") {
@ -206,7 +206,7 @@
$('.activateNanoCredit').click(function () {
const id_network = $(this).data('network-id');
$.ajax({
url: '<?php echo base_url('index.php/Gestion/activate_nano_credit')?>',
url: '<?php echo base_url('Gestion/activate_nano_credit')?>',
type: 'POST',
dataType: 'json',
data: {"id_network": id_network},
@ -235,7 +235,7 @@
$('#deleteWallet').click(function () {
$.ajax({
url: '<?php echo base_url('index.php/Gestion/delete_nano_credit')?>',
url: '<?php echo base_url('Gestion/delete_nano_credit')?>',
type: 'POST',
dataType: 'json',
data: {"id_network": network_id},

View File

@ -26,7 +26,7 @@
<!-- value="Activer/Désactiver le(s) réseau(x)" />-->
</h1>
<?php
$site_url = base_url();
if ($alert == "ok") {
@ -321,7 +321,7 @@
$(document).on("click", "#cancel", function () {
const id_transaction = $(this).data('id-transaction');
$.ajax({
url: '<?php echo base_url('index.php/Gestion/cancelIlinkTransation')?>',
url: '<?php echo base_url('Gestion/cancelIlinkTransation')?>',
type: 'POST',
dataType: 'json',
data: {"id_transaction": id_transaction},

View File

@ -26,7 +26,7 @@
<!-- value="Activer/Désactiver le(s) réseau(x)" />-->
</h1>
<?php
$site_url = base_url();
if ($alert == "ok") {

View File

@ -20,7 +20,7 @@ $context = new \Brick\Money\Context\AutoContext();
Nano crédit <?php echo $network . ' - ' . $country; ?>
</h1>
<?php
$site_url = base_url();
if ($alert == "ok") {

View File

@ -102,7 +102,7 @@ $depots = $this->db->query("SELECT * FROM infos_transaction
<span class="label label-success pull-right"><?= strtoupper(str_replace('_',' ',$type)) ?></span>
</h1>
<?php
$site_url = base_url();
if ($alert == "ok") {
@ -335,7 +335,7 @@ $depots = $this->db->query("SELECT * FROM infos_transaction
</div>
<div class="row">
<div class="col-lg-8">
<div class="col-lg-7">
<div class="box">
<div class="box-header">
<h3 class="box-title"><?= $this->lang->line('list_of_acts') ?></h3>
@ -347,7 +347,8 @@ $depots = $this->db->query("SELECT * FROM infos_transaction
<thead>
<tr>
<?php
echo "<th>".$this->lang->line('Nom')."</th>
echo "<th width='5'>#</th>
<th>".$this->lang->line('Nom')."</th>
<th>".$this->lang->line('billing_type')."</th>
<th>".$this->lang->line('authorization_type')."</th>";
?>
@ -358,6 +359,7 @@ $depots = $this->db->query("SELECT * FROM infos_transaction
if(isset($acts)){
foreach($acts->result() as $i => $row) { ?>
<tr>
<td><?= $i+1 ?></td>
<td><?= $row->name ?></td>
<td><?= $this->lang->line($row->billing_type); ?></td>
<td><?= $this->lang->line($row->authorization_type); ?></td>
@ -371,6 +373,40 @@ $depots = $this->db->query("SELECT * FROM infos_transaction
</div>
</div>
</div>
<div class="col-lg-5">
<div class="box">
<div class="box-header">
<h3 class="box-title"><?= $this->lang->line('provider_classes') ?></h3>
<div class="box-tools">
</div>
</div>
<div class="box-body" style="overflow-x:auto;">
<table id="provider_classes" class="table table-bordered table-hover">
<thead>
<tr>
<?php
echo "<th width='5'>#</th>
<th>".$this->lang->line('Nom')."</th>";
?>
</tr>
</thead>
<tbody>
<?php
if(isset($provider_classes)){
foreach($provider_classes->result() as $i => $row) { ?>
<tr>
<td><?= $i+1 ?></td>
<td><?= $row->name ?></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
@ -406,18 +442,7 @@ $depots = $this->db->query("SELECT * FROM infos_transaction
<script>
$(function () {
$('#example1').DataTable();
// $('#example1').DataTable({
// "aLengthMenu": [[5, 10, 15, -1], [5, 10, 5, "All"]],
// "iDisplayLength": 5
// });
// $('#example2').DataTable({
// 'paging' : true,
// 'lengthChange': false,
// 'searching' : false,
// 'ordering' : true,
// 'info' : true,
// 'autoWidth' : false
// })
$('#provider_classes').DataTable();
})
</script>
<!-- Page script -->

View File

@ -22,7 +22,7 @@ $context = new \Brick\Money\Context\AutoContext();
<?= $this->lang->line('nano_health_management') . ' ' . $network . ' - ' . $country; ?>
</h1>
<?php
$site_url = base_url();
if ($alert == "ok") {

View File

@ -15,7 +15,7 @@
use Brick\Money\Money;
$context = new \Brick\Money\Context\AutoContext();
$site_url = base_url();
if ($alert == "ok") {
@ -191,7 +191,7 @@
$('.activateNanoCredit').click(function () {
const id_network = $(this).data('network-id');
$.ajax({
url: '<?= base_url('index.php/Gestion/activate_nano_health')?>',
url: '<?= base_url('Gestion/activate_nano_health')?>',
type: 'POST',
dataType: 'json',
data: {"id_network": id_network},
@ -220,7 +220,7 @@
$('#deleteWallet').click(function () {
$.ajax({
url: '<?= base_url('index.php/Gestion/deactivate_nano_health')?>',
url: '<?= base_url('Gestion/deactivate_nano_health')?>',
type: 'POST',
dataType: 'json',
data: {"id_network": network_id},

View File

@ -100,7 +100,7 @@ $depots = $this->db->query("SELECT * FROM infos_transaction
<?= $this->lang->line('Gestion des wallets'). ' '. $network .' - '.$country; ?>
</h1>
<?php
$site_url = base_url();
if ($alert == "ok") {
@ -370,7 +370,7 @@ $depots = $this->db->query("SELECT * FROM infos_transaction
</div>
<div class="row">
<div class="col-lg-8">
<div class="col-lg-7">
<div class="box">
<div class="box-header">
<h3 class="box-title"><?= $this->lang->line('list_of_acts') ?></h3>
@ -385,7 +385,8 @@ $depots = $this->db->query("SELECT * FROM infos_transaction
<thead>
<tr>
<?php
echo "<th>".$this->lang->line('Nom')."</th>
echo "<th width='5'>#</th>
<th>".$this->lang->line('Nom')."</th>
<th>".$this->lang->line('billing_type')."</th>
<th>".$this->lang->line('authorization_type')."</th>
<th>Action</th>";
@ -397,6 +398,7 @@ $depots = $this->db->query("SELECT * FROM infos_transaction
if(isset($acts)){
foreach($acts->result() as $i => $row) { ?>
<tr>
<td><?= $i+1 ?></td>
<td><?= $row->name ?></td>
<td><?= $this->lang->line($row->billing_type); ?></td>
<td><?= $this->lang->line($row->authorization_type); ?></td>
@ -405,7 +407,53 @@ $depots = $this->db->query("SELECT * FROM infos_transaction
data-authorization_type="<?=$row->authorization_type?>" >
<i class='fa fa-edit'></i>
</button>
<button data-toggle='modal' class='btn btn-danger deleteAct' data-target='#'>
<button data-toggle='modal' class='btn btn-danger deleteAct' data-id="<?=$row->id?>" >
<i class='fa fa-trash'></i>
</button>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
<div class="col-lg-5">
<div class="box">
<div class="box-header">
<h3 class="box-title"><?= $this->lang->line('provider_classes') ?></h3>
<div class="box-tools">
<button class="btn btn-success" id="add-class">
<?= $this->lang->line('add_provider_class'); ?>
</button>
</div>
</div>
<div class="box-body" style="overflow-x:auto;">
<table id="provider_classes" class="table table-bordered table-hover">
<thead>
<tr>
<?php
echo "<th width='5'>#</th>
<th>".$this->lang->line('Nom')."</th>
<th>Action</th>";
?>
</tr>
</thead>
<tbody>
<?php
if(isset($provider_classes)){
foreach($provider_classes->result() as $i => $row) { ?>
<tr>
<td><?= $i+1 ?></td>
<td><?= $row->name ?></td>
<td>
<button class='btn btn-success edit-class' data-id="<?=$row->id?>" data-name="<?=$row->name?>">
<i class='fa fa-edit'></i>
</button>
<button data-toggle='modal' class='btn btn-danger delete-class' data-id="<?=$row->id?>" >
<i class='fa fa-trash'></i>
</button>
</td>
@ -672,6 +720,35 @@ $depots = $this->db->query("SELECT * FROM infos_transaction
</div>
</div>
</div>
<div class="modal fade" id="modal-class">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h3 class="modal-title"><?= $this->lang->line('add_provider_class'); ?></h3>
</div>
<form id="class-form">
<div class="modal-body">
<div class="form-group">
<label class="col-form-label"><?= $this->lang->line('Nom'); ?></label>
<input type="text" required class="form-control input-lg" name="name">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left"
data-dismiss="modal"><?= $this->lang->line('Fermer'); ?></button>
<button type="submit" id="updateWallet" class="btn btn-primary"><?= $this->lang->line('save'); ?></button>
</div>
</form>
</div>
</div>
</div>
<?php $this->load->view('include/delete_modal',['title' => $this->lang->line('delete_of_act')]) ?>
<?php $this->load->view('include/delete_modal',['title' => $this->lang->line('delete_provider_class'), 'id' => 'class']) ?>
<?php $this->load->view('include/loader') ?>
</section>
</div>
<!-- jQuery 3 -->
@ -704,6 +781,7 @@ $depots = $this->db->query("SELECT * FROM infos_transaction
<script>
$(function () {
$('#example1').DataTable();
$('#provider_classes').DataTable();
})
</script>
@ -715,6 +793,7 @@ $depots = $this->db->query("SELECT * FROM infos_transaction
let config_id = "<?=$config_id?>";
var selectedActId = null;
var selectedClassId = null;
$('#updateWallet').click(function () {
var network_id = $(this).data('network-id');
@ -737,7 +816,7 @@ $depots = $this->db->query("SELECT * FROM infos_transaction
toastr.error("<?= $this->lang->line('exoneration_rule')?>", "<?= $this->lang->line('management_rule')?>");
}else{
$.ajax({
url: '<?= base_url('index.php/Gestion/config_wallet/update')?>',
url: '<?= base_url('Gestion/config_wallet/update')?>',
type: 'POST',
dataType: 'json',
data: {
@ -802,7 +881,7 @@ $depots = $this->db->query("SELECT * FROM infos_transaction
});
$.ajax({
url: '<?php echo base_url('index.php/NanoHealthController/updateConfigYearsPricesGrid')?>',
url: '<?php echo base_url('NanoHealthController/updateConfigYearsPricesGrid')?>',
type: 'POST',
dataType: 'json',
data: {
@ -855,7 +934,7 @@ $depots = $this->db->query("SELECT * FROM infos_transaction
});
$.ajax({
url: '<?php echo base_url('index.php/NanoHealthController/updateConfigMonthsPricesGrid')?>',
url: '<?php echo base_url('NanoHealthController/updateConfigMonthsPricesGrid')?>',
type: 'POST',
dataType: 'json',
data: {
@ -889,10 +968,8 @@ $depots = $this->db->query("SELECT * FROM infos_transaction
});
$("#actForm").submit(function( event ) {
console.log(selectedActId)
$.ajax({
url: '<?php echo base_url('index.php/NanoHealthController/storeAct')?>',
url: '<?php echo base_url('NanoHealthController/storeAct')?>',
type: 'POST',
dataType: 'json',
data: {
@ -941,6 +1018,119 @@ $depots = $this->db->query("SELECT * FROM infos_transaction
$("#actForm select[name='authorization_type']").prop('selectedIndex',0);
$('#modal-act').modal('show');
});
$('.deleteAct').click(function () {
selectedActId = $(this).data('id');
$('#delete-modal').modal('show');
});
$("#delete-btn").click(function () {
$.ajax({
url: '<?php echo base_url('NanoHealthController/deleteAct')?>',
type: 'post',
data: {id: selectedActId},
dataType: 'json',
success: function (data) {
if(data.code === 200){
Swal.fire({
icon: 'success',
title: "<?= $this->lang->line('act_deleted')?>",
text:"<?= $this->lang->line('informations_updated')?>",
timer: 3000
}).then(()=>{
location.reload();
});
}else{
toastr.error(data.message , "<?= $this->lang->line('request_error')?>");
}
},
error: function (resultat, statut, error) {
console.log(resultat + " " + error);
toastr.error("<?= $this->lang->line('error_message')?>" , "<?= $this->lang->line('request_error')?>");
}
});
event.preventDefault();
});
// Classes de prestataires
$('#add-class').click(function (){
selectedClassId = null;
$("#modal-class h3").html("<?=$this->lang->line('add_provider_class')?>");
$("#class-form input[name='name']").val(null);
$('#modal-class').modal('show');
});
$('.edit-class').click(function (){
selectedClassId = $(this).data('id');
$("#modal-act h3").html("<?=$this->lang->line('edit_provider_class')?>");
$("#class-form input[name='name']").val($(this).data('name'));
$('#modal-class').modal('show');
});
$('.delete-class').click(function () {
selectedClassId = $(this).data('id');
$('#class-delete-modal').modal('show');
});
$("#class-form").submit(function( event ) {
$.ajax({
url: '<?php echo base_url('NanoHealthController/storeProviderClass')?>',
type: 'POST',
dataType: 'json',
data: {
"config_id": config_id,
"id" : selectedClassId,
"name": $("input[name='name']",this).val(),
},
success: function (data) {
if (data.code == 200) {
Swal.fire({
icon: 'success',
title: "<?php echo $this->lang->line('wallet_update')?>",
text: "<?php echo $this->lang->line('informations_updated')?>",
timer: 3000
}).then(() => {
location.reload();
});
} else {
toastr.error("<?php echo $this->lang->line('error_message')?>", "<?php echo $this->lang->line('request_error')?>");
}
},
error: function (resultat, statut, error) {
console.log(resultat + " " + error);
toastr.error("<?php echo $this->lang->line('error_message')?>", "<?php echo $this->lang->line('request_error')?>");
}
});
event.preventDefault();
});
$("#class-delete-btn").click(function () {
$.ajax({
url: '<?php echo base_url('NanoHealthController/deleteProviderClass')?>',
type: 'post',
data: {id: selectedClassId},
dataType: 'json',
success: function (data) {
if(data.code === 200){
Swal.fire({
icon: 'success',
title: "<?= $this->lang->line('provider_class_deleted')?>",
text:"<?= $this->lang->line('informations_updated')?>",
timer: 3000
}).then(()=>{
location.reload();
});
}else{
toastr.error(data.message , "<?= $this->lang->line('request_error')?>");
}
},
error: function (resultat, statut, error) {
console.log(resultat + " " + error);
toastr.error("<?= $this->lang->line('error_message')?>" , "<?= $this->lang->line('request_error')?>");
}
});
event.preventDefault();
});
</script>
<script type="text/javascript">
@ -974,21 +1164,28 @@ $depots = $this->db->query("SELECT * FROM infos_transaction
var input = $(this).parents("tr").find('input[type="number"]');
var min = parseFloat($(this).parents("tr").find('input[name="min_age"]').first().val());
var max = parseFloat($(this).parents("tr").find('input[name="max_age"]').first().val());
let maxAge = <?= $nh_config->age_limit_of_child_beneficiary ?? 0 ?>;
input.each(function () {
if ($(this).attr('name') == 'min_age') {
if (min >= max) {
if (min > maxAge || min >= max) {
$(this).addClass("error");
$(this)[0].reportValidity();
empty = true;
if(min > maxAge){
toastr.error("<?= $this->lang->line('first_rule_years_price_grid')?>", "<?php echo $this->lang->line('request_error')?>");
}
} else {
$(this).removeClass("error");
}
} else if ($(this).attr('name') == 'max_age') {
if (max <= min) {
if (max > maxAge || max <= min) {
$(this).addClass("error");
$(this)[0].reportValidity();
empty = true;
if(max > maxAge){
toastr.error("<?= $this->lang->line('second_rule_years_price_grid')?>", "<?php echo $this->lang->line('request_error')?>");
}
} else {
$(this).removeClass("error");
}

View File

@ -0,0 +1,317 @@
<link rel="stylesheet"
href="<?php echo base_url('bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css') ?>">
<link rel="stylesheet" href="<?php echo base_url('bower_components/toastr/toastr.css') ?>">
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
<?php echo $this->lang->line('manage_validating_doctors'); ?>
</h1>
<?php
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>
<?php echo $message; ?>
</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>
<?php echo $message; ?>
</div>
<?php
}
}
?>
</section>
<section class="content">
<div class="row">
<div class="col-xs-8">
<div class="box">
<div class="box-header">
<h3 class="box-title"><?php echo $this->lang->line('validating_doctors'); ?></h3>
</div>
<div class="box-body" style="overflow-x:auto;">
<table id="doctors" class="table table-bordered table-striped">
<thead>
<tr>
<th align='center'>#</th>
<th><?php echo $this->lang->line('Nom'); ?></th>
<th><?php echo $this->lang->line('Prénom'); ?></th>
<th align='center'><?php echo $this->lang->line('Email'); ?></th>
<th align='center'><?php echo $this->lang->line('Contact'); ?></th>
<th align='center'><?php echo $this->lang->line('Statut'); ?></th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
if(isset($doctors)){
foreach ($doctors->result() as $i => $row) {
$statut = $this->lang->line('Non confirmé');
if (isset($row->salt)) {
$statut = $this->lang->line("Confirmé");
}
?>
<tr>
<td align='center'><?= $i+1?></td>
<td><?= $row->lastname ?></td>
<td><?=$row->firstname?></td>
<td align='center'><?=$row->email?></td>
<td align='center'><?=$row->phone ?></td>
<td align='center'><?=$statut?></td>
<td id='edition' align='center'>
<td>
<button class='btn btn-success edit' data-id="<?=$row->id?>" data-firstname="<?=$row->firstname?>" data-lastname="<?=$row->lastname?>"
data-email="<?=$row->email?>" data-phone="<?=$row->phone?>" >
<i class='fa fa-edit'></i>
</button>
<button data-toggle='modal' class='btn btn-danger delete' data-id="<?=$row->id?>">
<i class='fa fa-trash'></i>
</button>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
<div class="col-xs-4">
<div class="box">
<div class="box-header">
<h3 class="box-title"><?php echo $this->lang->line('add_validating_doctor'); ?></h3>
</div>
<div class="box-body">
<form id="create-doctor-form" class="bottom-75 center-block">
<div class="form-group">
<label for="lastname"><?php echo $this->lang->line('Nom'); ?></label>
<input type="text" class="form-control input-lg" name="lastname" required>
</div>
<div class="form-group">
<label for="firstname"><?php echo $this->lang->line('Prénom'); ?></label>
<input type="text" class="form-control input-lg" name="firstname">
</div>
<div class="form-group">
<label for="email"><?php echo $this->lang->line('Email'); ?></label>
<input type="email" class="form-control input-lg" name="email" required>
</div>
<div class="form-group">
<label for="contact"><?php echo $this->lang->line('Contact'); ?></label>
<input type="text" class="form-control input-lg" name="phone">
</div>
<div class="form-group">
<input type="submit"
value="<?php echo $this->lang->line('Créer le compte'); ?>"
class="btn btn-primary">
</div>
</form>
</div>
</div>
</div>
</div>
<div class="modal fade" id="editModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title"><?php echo $this->lang->line('Mettre à jour des informations'); ?></h4>
</div>
<div class="modal-body">
<form id="update-form" method="post" class="bottom-75 center-block">
<div class="form-group">
<label><?php echo $this->lang->line('Nom'); ?></label>
<input type="text" class="form-control input-lg" name="lastname" required>
</div>
<div class="form-group">
<label><?php echo $this->lang->line('Prénom'); ?></label>
<input type="text" class="form-control input-lg" name="firstname" >
</div>
<div class="form-group">
<label><?php echo $this->lang->line('Email'); ?></label>
<input type="email" class="form-control input-lg" name="email" required>
</div>
<div class="form-group">
<label><?php echo $this->lang->line('Contact'); ?></label>
<input type="text" class="form-control input-lg" name="phone">
</div>
<div class="form-group">
<input id="btn-update" type="submit"
value="<?php echo $this->lang->line('save'); ?>" class="btn btn-primary">
<button type="button" class="btn btn-default pull-right"
data-dismiss="modal"><?php echo $this->lang->line('Fermer'); ?></button>
</div>
</form>
</div>
</div>
</div>
</div>
<?php $this->load->view('include/delete_modal') ?>
<?php $this->load->view('include/loader') ?>
</section>
</div>
<!-- jQuery 3 -->
<script src="<?php echo base_url('bower_components/jquery/dist/jquery.min.js') ?>"></script>
<!-- Bootstrap 3.3.7 -->
<script src="<?php echo base_url('bower_components/bootstrap/dist/js/bootstrap.min.js') ?>"></script>
<!-- DataTables -->
<script src="<?php echo base_url('bower_components/datatables.net/js/jquery.dataTables.min.js') ?>"></script>
<script src="<?php echo base_url('bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js') ?>"></script>
<!-- Slimscroll -->
<script src="<?php echo base_url('bower_components/jquery-slimscroll/jquery.slimscroll.min.js') ?>"></script>
<!-- FastClick -->
<script src="<?php echo base_url('bower_components/fastclick/lib/fastclick.js') ?>"></script>
<!-- AdminLTE App -->
<script src="<?php echo base_url('dist/js/adminlte.min.js') ?>"></script>
<script src="<?= base_url('bower_components/toastr/toastr.js') ?>"></script>
<script src="<?= base_url('dist/js/sweetalert2.js') ?>"></script>
<script>
toastr.options.closeButton = true;
toastr.options.closeMethod = 'fadeOut';
toastr.options.closeDuration = 5000;
toastr.options.closeEasing = 'swing';
$(function () {
$('#doctors').DataTable();
})
var idConfig = <?= $config_id ?>;
var selectedId = null
$(document).on("click", ".edit", function () {
selectedId = $(this).data('id');
$("#update-form input[name='lastname']").val($(this).data('lastname'));
$("#update-form input[name='firstname']").val($(this).data('firstname'));
$("#update-form input[name='email']").val($(this).data('email'));
$("#update-form input[name='phone']").val($(this).data('phone'));
$('#editModal').modal('show');
});
$(document).on("click", ".delete", function () {
selectedId = $(this).data('id');
$('#delete-modal').modal('show');
});
$("#update-form").submit(function () {
$.ajax({
url: '<?php echo base_url('NanoHealthController/updateValidatingDoctor')?>',
type: 'post',
data: {
id: selectedId,
lastname: $("input[name=lastname]",this).val(),
firstname: $("input[name=firstname]",this).val(),
email: $("input[name=email]",this).val(),
phone: $("input[name=phone]",this).val()
},
dataType: 'json',
success: function (data) {
if(data.code === 200){
Swal.fire({
icon: 'success',
title: "<?= $this->lang->line('validating_doctor_updated')?>",
text:"<?= $this->lang->line('informations_updated')?>",
timer: 3000
}).then(()=>{
location.reload();
});
}else{
toastr.error(data.message , "<?= $this->lang->line('request_error')?>");
}
},
error: function (resultat, statut, error) {
console.log(resultat + " " + error);
toastr.error("<?= $this->lang->line('error_message')?>" , "<?= $this->lang->line('request_error')?>");
}
});
event.preventDefault();
});
$("#create-doctor-form").submit(function (event) {
$.ajax({
url: '<?php echo base_url('NanoHealthController/createValidatingDoctor')?>',
type: 'post',
data: {
nh_network_config_id : idConfig,
lastname: $("input[name=lastname]",this).val(),
firstname: $("input[name=firstname]",this).val(),
email: $("input[name=email]",this).val(),
phone: $("input[name=phone]",this).val()
},
dataType: 'json',
success: function (data) {
if(data.code === 200){
Swal.fire({
icon: 'success',
title: "<?= $this->lang->line('validating_doctor_created')?>",
text:"<?= $this->lang->line('informations_updated')?>",
timer: 3000
}).then(()=>{
location.reload();
});
}else{
toastr.error(data.message , "<?= $this->lang->line('request_error')?>");
}
},
error: function (resultat, statut, error) {
console.log(resultat + " " + error);
toastr.error("<?= $this->lang->line('error_message')?>" , "<?= $this->lang->line('request_error')?>");
}
});
event.preventDefault();
});
$("#delete-btn").click(function () {
$.ajax({
url: '<?php echo base_url('NanoHealthController/deleteValidatingDoctor')?>',
type: 'post',
data: {id: selectedId},
dataType: 'json',
success: function (data) {
if(data.code === 200){
Swal.fire({
icon: 'success',
title: "<?= $this->lang->line('validating_doctor_deleted')?>",
text:"<?= $this->lang->line('informations_updated')?>",
timer: 3000
}).then(()=>{
location.reload();
});
}else{
toastr.error(data.message , "<?= $this->lang->line('request_error')?>");
}
},
error: function (resultat, statut, error) {
console.log(resultat + " " + error);
toastr.error("<?= $this->lang->line('error_message')?>" , "<?= $this->lang->line('request_error')?>");
}
});
event.preventDefault();
});
</script>

View File

@ -0,0 +1,312 @@
<!-- Date Picker -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css') ?>">
<!-- Daterange picker -->
<link rel="stylesheet" href="<?php echo base_url('bower_components/bootstrap-daterangepicker/daterangepicker.css') ?>">
<!-- ChartJS -->
<script src="<?php echo base_url('bower_components/Chart.js/Chart.js') ?>"></script>
<?php
$month = time();
$months[]=convertDate(date("M"));
$label_months [] = date("M")." ".date("Y");
$years[]= date("Y");
for ($i = 1; $i <= 11; $i++) {
$month = strtotime('last month', $month);
$months [] = convertDate(date("M", $month));
$years[] = date("Y", $month);
$label_months [] = date("M", $month)." ".date("Y", $month);
}
/**
** Simple User Treatment
**/
// $date = date("Y");
//
// $demandes_data[] = '';
// $demandes_data =array();
// for ($i = 1; $i <= 12; $i++) {
// $demandes_query_mounth = $this->db->query("SELECT demande_id FROM info_demandeCredits
// WHERE MONTH(dateAjout) = '".$months[$i-1]."' AND YEAR(dateAjout) = ".$years[$i-1]."
// AND codeParrain='".$this->session->userdata('member_code')."'"
// );
// $demandes_data[] = $demandes_query_mounth->num_rows();
// }
//
// $demandes_query = $listdem;
//
// if($demandes_query!=false){
// $demandes=$demandes_query->num_rows();
// // Count networks for simple users
// $array_simple = array();
// $num = 0;
// if ($demandes > 0) {
// foreach($demandes_query->result() as $row) {
// $num++;
// $array_simple[] = $row->codeMembre;
// }
//
// $vals_simple = array_count_values($array_simple);
// //echo 'No. of NON Duplicate Items: '.count($vals_simple).'<br><br>';
// //print_r($vals_simple);
// $pieChart2 = array();
// foreach(array_keys($vals_simple) as $paramName2) {
// $color2 = dechex(rand(0x000000, 0xFFFFFF));
// $trash2 = array("value" => $vals_simple[$paramName2],
// "color" => "#".$color2,
// "highlight" => "#".$color2,
// "label" => $paramName2);
//
// $pieChart2[]= $trash2;
//
// }
// }
// }else{
$pieChart2 = array();
// }
/**
** Geolocated User Treatment
**/
// $users_geolocated_query = $list_geolocated_users;
// // Geolocated Users by month replace 2016 by NOW()
// $users_geolocated_data[] = '';
// $users_geolocated_data =array();
// for ($i = 1; $i <= 12; $i++) {
// $users_geolocated_query_january = $this->db->query("SELECT agent_id FROM super_infos
// WHERE MONTH(date_created) = '".$months[$i-1]."' AND YEAR(date_created) = ".$years[$i-1]."
// AND category='geolocated' AND code_parrain='".$this->session->userdata('member_code')."'");
// $users_geolocated_data[] = $users_geolocated_query_january->num_rows();
// }
//
// if($users_geolocated_query!=false){
//
// $users_geolocated=$users_geolocated_query->num_rows();
// //$users_geolocated_query = json_encode($users_geolocated_query->result());
// // Counts network for geolocated users
// $array_geolocated = array();
// $num = 0;
// if ($users_geolocated > 0) {
// foreach($users_geolocated_query->result() as $row) {
// $num++;
// $array_geolocated[] = date("M", strtotime($row->date_created));
// }
// $vals_geolocated = array_count_values($array_geolocated);
// //echo 'No. of NON Duplicate Items: '.count($vals_geolocated).'<br><br>';
// //print_r($vals_geolocated);
// $pieChart = array();
// foreach(array_keys($vals_geolocated) as $paramName) {
// $color = dechex(rand(0x000000, 0xFFFFFF));
// $trash = array("value" => $vals_geolocated[$paramName],
// "color" => "#".$color,
// "highlight" => "#".$color,
// "label" => $paramName);
//
// $pieChart[]= $trash;
// }
// }
// }else{
// $pieChart = array();
// }
?>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
<?php echo $this->lang->line('validating_doctor'); ?>
<small><?php echo $this->lang->line('Tableau de bord'); ?></small>
</h1>
</section>
<section class="content">
<!-- Small boxes (Stat box) -->
<div class="row">
<div class="col-lg-3 col-md-4 col-xs-6">
<!-- small box -->
<div class="small-box bg-green">
<div class="inner">
<h3><?php echo $count_d_traite ?? 0;?></h3>
<p><?php echo $this->lang->line('accepted_care_requests'); ?></p>
</div>
<div class="icon">
<i class="ion ion-checkmark-circled"></i>
</div>
<a href="<?php echo base_url('Superviseur_dash/getDemandes') ?>" class="small-box-footer"><?php echo $this->lang->line("Plus d'informations"); ?><i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
<div class="col-lg-3 col-md-4 col-xs-6">
<!-- small box -->
<div class="small-box bg-orange">
<div class="inner">
<h3><?php echo $count_d_no_traite ?? 0;?></h3>
<p><?php echo $this->lang->line('not_treated_care_requests'); ?></p>
</div>
<div class="icon">
<i class="ion ion-alert-circled"></i>
</div>
<a href="<?php echo base_url('Superviseur_dash/getDemandes') ?>" class="small-box-footer"><?php echo $this->lang->line("Plus d'informations"); ?> <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
<div class="col-lg-3 col-md-4 col-xs-6">
<!-- small box -->
<div class="small-box bg-red">
<div class="inner">
<h3><?php echo $count_d_no_canceled ?? 0;?></h3>
<p><?php echo $this->lang->line("cancelled_care_requests"); ?></p>
</div>
<div class="icon">
<i class="ion ion-close-circled"></i>
</div>
<a href="#" data-toggle="modal" data-target="#modal-default2" class="small-box-footer"><?php echo $this->lang->line("Plus d'informations"); ?> <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
<div class="col-xs-12">
<!-- BAR CHART -->
<div class="box box-success">
<div class="box-header with-border">
<h3 class="box-title"><?php echo $this->lang->line('care_requests'); ?></h3>
</div>
<div class="box-body">
<div class="chart">
<canvas id="barChart" style="height:230px"></canvas>
</div>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
</div>
<!-- /.col -->
<div class="col-xs-6">
<!-- DONUT CHART -->
<div class="box box-danger">
<div class="box-header with-border">
<h3 class="box-title"><?php echo $this->lang->line('care_requests'); ?></h3>
</div>
<div class="box-body" id="chartAd">
<canvas id="pieChart" style="height:250px"></canvas>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
</div>
</div>
<!-- /.row -->
</section>
</div>
<!-- jQuery 3 -->
<script src="<?php echo base_url('bower_components/jquery/dist/jquery.min.js') ?>"></script>
<!-- jQuery UI 1.11.4 -->
<script src="<?php echo base_url('bower_components/jquery-ui/jquery-ui.min.js') ?>"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
$.widget.bridge('uibutton', $.ui.button);
</script>
<!-- Bootstrap 3.3.7 -->
<script src="<?php echo base_url('bower_components/bootstrap/dist/js/bootstrap.min.js') ?>"></script>
<!-- Morris.js charts -->
<script src="<?php echo base_url('bower_components/raphael/raphael.min.js') ?>"></script>
<!-- Sparkline -->
<script src="<?php echo base_url('bower_components/jquery-sparkline/dist/jquery.sparkline.min.js') ?>"></script>
<!-- jvectormap -->
<script src="<?php echo base_url('plugins/jvectormap/jquery-jvectormap-1.2.2.min.js') ?>"></script>
<script src="<?php echo base_url('plugins/jvectormap/jquery-jvectormap-world-mill-en.js') ?>"></script>
<!-- jQuery Knob Chart -->
<script src="<?php echo base_url('bower_components/jquery-knob/dist/jquery.knob.min.js') ?>"></script>
<!-- daterangepicker -->
<script src="<?php echo base_url('bower_components/moment/min/moment.min.js') ?>"></script>
<script src="<?php echo base_url('bower_components/bootstrap-daterangepicker/daterangepicker.js') ?>"></script>
<!-- datepicker -->
<script src="<?php echo base_url('bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js') ?>"></script>
<!-- Bootstrap WYSIHTML5 -->
<script src="<?php echo base_url('plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js') ?>"></script>
<!-- Slimscroll -->
<script src="<?php echo base_url('bower_components/jquery-slimscroll/jquery.slimscroll.min.js') ?>"></script>
<!-- FastClick -->
<script src="<?php echo base_url('bower_components/fastclick/lib/fastclick.js') ?>"></script>
<!-- AdminLTE App -->
<script src="<?php echo base_url('dist/js/adminlte.min.js') ?>"></script>
<!-- AdminLTE for demo purposes -->
<script src="<?php echo base_url('dist/js/demo.js') ?>"></script>
<!-- ChartJS -->
<script src="<?php echo base_url('bower_components/chart.js/Chart.js') ?>"></script>
<script >
var Pie = '<?php echo json_encode($pieChart) ?>';
if(Pie==='[]'){
var select = document.getElementById('chartAd');
$(select.children).hide();
$(select).append("<p><?php echo $this->lang->line('Aucune adhesion'); ?></p>");
}else{
Pie = JSON.parse(Pie);
}
var Pie2 = '<?php echo json_encode($pieChart2) ?>';
if(Pie2==='[]') {
var select = document.getElementById('chartDem');
$(select.children).hide();
$(select).append("<p><?php echo $this->lang->line('Aucune demande'); ?></p>");
}else{
Pie2 = JSON.parse(Pie2);
}
var areaChartData = {
labels : <?php echo json_encode($label_months) ?>,
datasets: [
{
label : 'Electronics',
fillColor : 'rgba(255, 162, 0, 1)',
strokeColor : 'rgba(255, 162, 0, 1)',
pointColor : 'rgba(255, 162, 0, 1)',
pointStrokeColor : '#ffa200',
pointHighlightFill : '#fff',
pointHighlightStroke: 'rgba(220,220,220,1)',
data: <?php echo json_encode($users_geolocated_data) ?>
},
{
label : 'Digital Goods',
fillColor : 'rgba(0, 187, 255, 1)',
strokeColor : 'rgba(0, 187, 255, 1)',
pointColor : '#00bbff',
pointStrokeColor : 'rgba(0, 187, 255, 1)',
pointHighlightFill : '#fff',
pointHighlightStroke: 'rgba(0, 187, 255, 1)',
data : <?php echo json_encode($demandes_data) ?>
}
]
};
var ctx = document.getElementById('barChart').getContext('2d');
var chart = new Chart(ctx, {
// The type of chart we want to create
type: 'line',
// The data for our dataset
data: {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July','August','September','October','November','December'],
datasets: [{
label: "My First dataset",
backgroundColor: 'rgb(255, 99, 132)',
borderColor: 'rgb(255, 99, 132)',
data: [0, 10, 5, 2, 20, 30, 45]
}]
},
// Configuration options go here
options: {}
});
</script>
<!-- Page script -->
<script src="<?php echo base_url('dist/js/custom.js') ?>"></script>

View File

@ -0,0 +1,131 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>iLink | Hyperviseur</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.7 -->
<link rel="stylesheet" href="<?= base_url('bower_components/bootstrap/dist/css/bootstrap.min.css') ?>">
<!-- Font Awesome -->
<link rel="stylesheet" href="<?= base_url('bower_components/font-awesome/css/font-awesome.min.css') ?>">
<!-- Ionicons -->
<link rel="stylesheet" href="<?= base_url('bower_components/Ionicons/css/ionicons.min.css') ?>">
<!-- Theme style -->
<link rel="stylesheet" href="<?= base_url('dist/css/AdminLTE.css') ?>">
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link rel="stylesheet" href="<?= base_url('dist/css/skins/_all-skins.min.css') ?>">
<link rel="shortcut icon" href="<?= base_url('favicon.ico') ?>" type="image/x-icon">
<link rel="icon" href="<?= base_url('favicon.ico') ?>" type="image/x-icon">
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<style media="screen">
.img-dash {
height: 50px !important;
float: left !important;
padding: 1% !important;
}
.table_modified {
font-size: 11px !important;
}
</style>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<header class="main-header">
<!-- Logo -->
<a href="#" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>iLink</b></span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg">
<img class="img img-responsive img-dash" src="<?= base_url('images/logo.png') ?>">
<b>iLink</b> World
</span>
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<!-- User Account: style can be found in dropdown.less -->
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<?= $this->lang->line('Bienvenue'); ?> <span class="hidden-xs"><b><?= $this->session->userdata('firstname').' '.$this->session->userdata('lastname');?></b></span>
</a>
<ul class="dropdown-menu">
<!-- User image -->
<li class="user-header">
<p>
<?= $this->session->userdata('network');?>
</p>
</li>
<li class="user-body">
<div class="row">
<div class="col-xs-6 text-center">
<?= $this->session->userdata('current_pays');?>
</div>
<div class="col-xs-6 text-center">
<?= $this->session->userdata('email');?>
</div>
</div>
<!-- /.row -->
</li>
<li class="user-footer">
<div class="pull-right">
<a href="<?= base_url('Users/logout') ?>" class="btn btn-default btn-flat"><?= $this->lang->line('Déconnexion'); ?></a>
</div>
</li>
</ul>
</li>
</ul>
</div>
</nav>
</header>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- sidebar menu: : style can be found in sidebar.less -->
<ul class="sidebar-menu" data-widget="tree">
<li class="<?php if($active=="dashboard"){echo "active ";} ?>">
<a href="<?= base_url('ValidatingDoctor') ?>">
<i class="fa fa-dashboard"></i> <span><?= $this->lang->line('Tableau de bord'); ?></span>
</a>
</li>
<li class="<?php if($active=="geolocated"){echo "active ";} ?>">
<a href="#" data-toggle="modal" data-target="#modal-default">
<i class="fa fa-medkit"></i>
<span><?= $this->lang->line('care_requests'); ?></span>
</a>
</li>
</ul>
</section>
<!-- /.sidebar -->
</aside>

Some files were not shown because too many files have changed in this diff Show More