ב הוא חיבור של הרב יהושע בועז שתוכנו מראי מקומות למקורותشسdggרות הל555ה התafhgfh
במסgרות ה gh//شی הוא חיבור של הרב יהושע בועז שתוכנו מראי מקומות למקורותהתנדaghhhhו12ין יעל, המעציfghfghfע
/
www-data
/
newsites
/
adminpanel
/
application
/
views
/
Upload FileeE
HOME
<div class="main-panel"> <div class="container"> <div class="panel-header bg-primary-gradient"> <div class="page-inner py-5"> <div class="d-flex align-items-left align-items-md-center flex-column flex-md-row"> <div> <h2 class="text-white pb-2 fw-bold">Dashboard</h2> <h5 class="text-white op-7 mb-2">Welcome! Your work all in one place </h5> </div> <div class="ml-md-auto py-2 py-md-0"> <span id="get_logo"></span> </div> </div> </div> </div> <div class="page-inner mt--5"> <div class="row"> <div class="col-md-6"> <div class="card full-height"> <div class="card-header"> <div class="card-head-row"> <div class="card-title"><span style="color:green">My Requests</span> </div> <div class="col-md-4"> <?php $user_id=$this->session->userdata('user_id'); $access_status=$this->db->query("select * from user where id='$user_id'")->row('access_status'); if($access_status == '1'){ ?> <div class="form-group" class="float-right"> <select class="form-control form-control-sm" id="access_user" name="access_user"> <option value="0">Select user</option> <?php $access=$this->db->query("select * from user where id='$user_id'")->row('access'); $oo=explode("|",$access); foreach($oo as $lol){ $fname=$this->db->query("select * from user where id='$lol'")->row('fname'); ?> <option value="<?php echo $lol;?>"><?php echo $fname;?></option> <?php } ?> </select> </div> <?php } ?> <div class="form-group" class="float-right"> <select class="form-control form-control-sm" id="organization" onchange="com()"> <option value="0">All Vendor</option> <?php $organization=$this->session->userdata("organization_id"); $orgnization=$this->db->query("select * from organization where id='$organization' and active_status=1 order by organization_name asc"); echo $this->db->last_query(); foreach($orgnization->result() as $org){ ?> <option value="<?php echo $org->id?>"><?php echo $org->organization_name?></option> <?php } //print_r(); ?> </select> </div> </div> <div class="col-md-4"> <?php date_default_timezone_set("Asia/Calcutta");?> <div class="form-group" class="float-right"> <select class="form-control form-control-sm" id="time"> <option value="0">all</option> <option value="<?php echo date('Y-m-d', strtotime('-7 days'));?>">week</option> <option value="<?php echo date('Y-m-d', strtotime('-15 days'));?>">15 days</option> <option value="<?php echo date('Y-m-d', strtotime('- 1month'));?>">1 month</option> <option value="<?php echo date('Y-m-d', strtotime('- 3months'));?>">3 months</option> </select> </div> </div> <div class="card-tools"></div> </div> </div> <div class="card-body" id="get_graph"> <div class="row"> <div class="col-md-5"> <span class="text">Vendor Qalification</span> </div> <div class="col-md-7"> <div class="progress" style="border-radius: 0px;"> <div class="progress-bar progress-bar-success" role="progressbar" style="width:23.07%;background:green; border-radius: 0px;"> 33 </div> <div class="progress-bar progress-bar-warning" role="progressbar" style="width:46.15%;background:orange; border-radius: 0px;"> 33 </div> <div class="progress-bar progress-bar-danger" role="progressbar" style="width:30.76%;background:red; border-radius: 0px"> 33 </div> </div> </div> </div> <div class="col-md-12"> <div class="form-group float-right" ><span style="font-size:12px;color:green;">Show More...</span> </div> </div> </div> </div> </div> <div class="col-md-6"> <div class="card full-height"> <div class="card-header"> <div class="card-head-row"> <div class="card-title"><span style="color:orange">My Products</span> </div> <div class="col-md-8"> <div class="form-group float-right" > <select class="form-control form-control-sm"> <option>API</option> </select> </div> </div> <div class="card-tools"></div> </div> </div> <div class="card-body"> <?php if($this->session->userdata('organization_id')){ $id=$this->session->userdata('organization_id'); $pro_id=$this->db->query("select * from organization where id='$id'")->row('products_id'); $x=str_replace('|', ',', $pro_id); $datafrom1 = $this->db->query("select * from products where id in ($x) order by product_name asc limit 5"); } else{ $datafrom1 = $this->db->query("select * from products order by product_name asc limit 5"); } $i=1; foreach($datafrom1->result() as $org){ ?> <div class="row"> <div class="col-md-1"> </div> <div class="col-md-4"> <span class="text"><?php echo $org->product_name?></span> </div> <div class="col-md-2"> </div> <div class="col-md-4"> <span class="text float-right"><?php echo $org->cas?></span> </div> <div class="col-md-1"> </div> </div> <?php $i++; } ?> <?php if($datafrom1->num_rows() > 1){ ?> <div class="col-md-12"> <div class="form-group float-right" > <span style="font-size:12px;color:orange;"><a href="<?php echo base_url();?>index.php/Myrequest/myProducts">Show More...</a></span> </div> </div> <?php } ?> </div> </div> </div> <div class="col-md-6"> <div class="card full-height"> <div class="card-header"> <div class="card-head-row"> <div class="card-title"><span style="color:#F5317B">My Orders</span> </div> <div class="col-md-8"> <div class="form-group float-right" > <select class="form-control form-control-sm"> <option>This week</option> </select> </div> </div> <div class="card-tools"></div> </div> </div> <div class="card-body"> <div class="row"> <div class="col-md-1"> </div> <div class="col-md-4"> <span class="text">Meloxicam</span> </div> <div class="col-md-2"> </div> <div class="col-md-4"> <span class="text float-right">3658-888-1257</span> </div> <div class="col-md-1"> </div> </div> <div class="row"> <div class="col-md-1"> </div> <div class="col-md-4"> <span class="text">Meloxicam</span> </div> <div class="col-md-2"> </div> <div class="col-md-4"> <span class="text float-right">3658-888-1257</span> </div> <div class="col-md-1"> </div> </div> <div class="row"> <div class="col-md-1"> </div> <div class="col-md-4"> <span class="text">Meloxicam</span> </div> <div class="col-md-2"> </div> <div class="col-md-4"> <span class="text float-right">3658-888-1257</span> </div> <div class="col-md-1"> </div> </div> <div class="row"> <div class="col-md-1"> </div> <div class="col-md-4"> <span class="text">Meloxicam</span> </div> <div class="col-md-2"> </div> <div class="col-md-4"> <span class="text float-right">3658-888-1257</span> </div> <div class="col-md-1"> </div> </div> <div class="row"> <div class="col-md-1"> </div> <div class="col-md-4"> <span class="text">Meloxicam</span> </div> <div class="col-md-2"> </div> <div class="col-md-4"> <span class="text float-right">3658-888-1257</span> </div> <div class="col-md-1"> </div> </div> <div class="row"> <div class="col-md-1"> </div> <div class="col-md-4"> <span class="text">Meloxicam</span> </div> <div class="col-md-2"> </div> <div class="col-md-4"> <span class="text float-right">3658-888-1257</span> </div> <div class="col-md-1"> </div> </div> <div class="row"> <div class="col-md-1"> </div> <div class="col-md-4"> <span class="text">Meloxicam</span> </div> <div class="col-md-2"> </div> <div class="col-md-4"> <span class="text float-right">3658-888-1257</span> </div> <div class="col-md-1"> </div> </div> <div class="row"> <div class="col-md-1"> </div> <div class="col-md-4"> <span class="text">Meloxicam</span> </div> <div class="col-md-2"> </div> <div class="col-md-4"> <span class="text float-right">3658-888-1257</span> </div> <div class="col-md-1"> </div> </div> <div class="col-md-12"> <div class="form-group float-right" ><span style="font-size:12px;color:#F5317B;">Show More...</span> </div> </div> </div> </div> </div> <div class="col-md-6"> <div class="card full-height"> <div class="card-header"> <div class="card-head-row"> <div class="card-title"><span style="color:#7788EE">Regulatory & Legal</span> </div><br> <div class="col-md-4"> <?php $user_id=$this->session->userdata('user_id'); $access_status=$this->db->query("select * from user where id='$user_id'")->row('access_status'); if($access_status == '1'){ ?> <div class="form-group" class="float-right"> <select class="form-control form-control-sm" id="access_user2" name="access_user"> <option value="0">Select user</option> <?php $access=$this->db->query("select * from user where id='$user_id'")->row('access'); $oo=explode("|",$access); foreach($oo as $lol){ $fname=$this->db->query("select * from user where id='$lol'")->row('fname'); ?> <option value="<?php echo $lol;?>"><?php echo $fname;?></option> <?php } ?> </select> </div> <?php } ?> <div class="form-group" class="float-right"> <select class="form-control form-control-sm" id="organization2" onchange="com()"> <option value="0">All Vendor</option> <?php $organization=$this->session->userdata("organization_id"); $orgnization=$this->db->query("select * from organization where id='$organization' and active_status=1 order by organization_name asc"); echo $this->db->last_query(); foreach($orgnization->result() as $org){ ?> <option value="<?php echo $org->id?>"><?php echo $org->organization_name?></option> <?php } //print_r(); ?> </select> </div> </div> <div class="col-md-3"> <?php date_default_timezone_set("Asia/Calcutta");?> <div class="form-group" class="float-right"> <select class="form-control form-control-sm" id="time2"> <option value="0">all</option> <option value="<?php echo date('Y-m-d', strtotime('-7 days'));?>">week</option> <option value="<?php echo date('Y-m-d', strtotime('-15 days'));?>">15 days</option> <option value="<?php echo date('Y-m-d', strtotime('- 1month'));?>">1 month</option> <option value="<?php echo date('Y-m-d', strtotime('- 3months'));?>">3 months</option> </select> </div> </div> <div class="card-tools"></div> </div> </div> <div class="card-body"> <div class="container"> <div class="text" style="font-size:15px;margin-bottom: 10px;"><b>Regulatory</b></div> <div class="container" style="background-color:#EDEFF2;margin-bottom: 10px;" id="get_graph2"> <div class="col-md-6"> <span class="text">DMF</span> </div> <div class="col-md-2"> <span class="text" style="color:green;">1</span> </div> <div class="col-md-2"> <span class="text" style="color:orange;">1</span> </div> <div class="col-md-2"> <span class="text" style="color:red;">1</span> </div> </div> </div> <div class="container"> <div class="text" style="font-size:15px;margin-bottom: 10px;"><b>Legal</b></div> <div class="container" style="background-color:#EDEFF2;margin-bottom: 10px;" > <div class="row" style="background-color:#EDEFF2;margin-bottom: 10px;"> <div class="col-md-6"> <span class="text"><a href="http://localhost/moxiedb/index.php/Myrequest/myrequest_data/0/0/4/all/cat/21">DMF</a></span> </div> <div class="col-md-2"> <span class="text"><a style="color:green;" href="http://localhost/moxiedb/index.php/Myrequest/myrequest_data/0/0/4/2/cat/21">0</a></span> </div> <div class="col-md-2"> <span class="text"><a style="color:orange;" href="http://localhost/moxiedb/index.php/Myrequest/myrequest_data/0/0/4/1/cat/21">0</a></span> </div> <div class="col-md-2"> <span class="text"><a style="color:red;" href="http://localhost/moxiedb/index.php/Myrequest/myrequest_data/0/0/4/0/cat/21">1</a></span> </div> </div> </div> </div> <div class="col-md-12"> <div class="form-group float-right" ><span style="font-size:12px;color:#7788EE;">Show More...</span> </div> </div> </div> </div> </div> </div> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script> $(document).ready(function(){ $('#organization_name').change(function(){ var organization_name = $('#organization_name').val(); if(organization_name != '') { $.ajax({ url:"<?php echo base_url(); ?>index.php/Myrequest/fetch_products", method:"POST", data:{organization_name:organization_name}, success:function(data) { $('#products').html(data); } }); $.ajax({ url:"<?php echo base_url(); ?>index.php/Myrequest/fetch_user_data", method:"POST", data:{organization_name:organization_name}, success:function(data) { $('#username').html(data); } }); } else { $('#products').html('<option value="">Select products</option>'); } }); $('#username').change(function(){ var username = $('#username').val(); if(username != '') { $.ajax({ url:"<?php echo base_url(); ?>index.php/Myrequest/fetch_user_email", method:"POST", data:{username:username}, success:function(data) { $('#user_email').html(data); } }); $.ajax({ url:"<?php echo base_url(); ?>index.php/Myrequest/fetch_user_mobile", method:"POST", data:{username:username}, success:function(data) { $('#user_mobile').html(data); } }); } else { $('#user_email').html('<option value="">Select Email</option>'); $('#user_mobile').html('<option value="">Select Mobile</option>'); } }); function get_graph(){ var organization = $('#organization').val(); var time = $('#time').val(); var access_user =$("#access_user").val(); $.ajax({ url:"<?php echo base_url(); ?>index.php/Myrequest/get_graph", method:"POST", data:{organization:organization,time:time,access_user:access_user}, success:function(data) { $('#get_graph').html(data); } }); } function get_graph2(){ var organization = $('#organization').val(); var time = $('#time').val(); var access_user =$("#access_user").val(); $.ajax({ url:"<?php echo base_url(); ?>index.php/Myrequest/get_graph2", method:"POST", data:{organization:organization,time:time,access_user:access_user}, success:function(data) { $('#get_graph2').html(data); } }); } get_graph(); get_graph2(); $('#organization').change(function(){ var organization = $('#organization').val(); var time = $('#time').val(); var access_user =$("#access_user").val(); $.ajax({ url:"<?php echo base_url(); ?>index.php/Myrequest/get_graph", method:"POST", data:{organization:organization,time:time,access_user:access_user}, success:function(data) { $('#get_graph').html(data); } }); }); $('#organization2').change(function(){ var organization = $('#organization2').val(); var time = $('#time2').val(); var access_user =$("#access_user2").val(); $.ajax({ url:"<?php echo base_url(); ?>index.php/Myrequest/get_graph2", method:"POST", data:{organization:organization,time:time,access_user:access_user}, success:function(data) { $('#get_graph').html(data); } }); }); $('#time').change(function(){ var organization = $('#organization').val(); var time = $('#time').val(); var access_user =$("#access_user").val(); $.ajax({ url:"<?php echo base_url(); ?>index.php/Myrequest/get_graph", method:"POST", data:{organization:organization,time:time,access_user:access_user}, success:function(data) { $('#get_graph').html(data); } }); }); $('#time2').change(function(){ var organization = $('#organization2').val(); var time = $('#time2').val(); var access_user =$("#access_user2").val(); $.ajax({ url:"<?php echo base_url(); ?>index.php/Myrequest/get_graph2", method:"POST", data:{organization:organization,time:time,access_user:access_user}, success:function(data) { $('#get_graph2').html(data); } }); }); $('#access_user').change(function(){ var organization = $('#organization').val(); var time = $('#time').val(); var access_user =$("#access_user").val(); $.ajax({ url:"<?php echo base_url(); ?>index.php/Myrequest/get_graph", method:"POST", data:{organization:organization,time:time,access_user:access_user}, success:function(data) { $('#get_graph').html(data); } }); }); $('#access_user2').change(function(){ var organization = $('#organization2').val(); var time = $('#time2').val(); var access_user =$("#access_user2").val(); $.ajax({ url:"<?php echo base_url(); ?>index.php/Myrequest/get_graph2", method:"POST", data:{organization:organization,time:time,access_user:access_user}, success:function(data) { $('#get_graph').html(data); } }); }); $('#products').change(function(){ var products = $('#products').val(); var length = $('#products :selected').length; if(length > 1){ $('#cat').val(''); $('#cat1').val(''); return false; }else{ $.ajax({ url:"<?php echo base_url(); ?>index.php/Myrequest/get_products", method:"POST", data:{products:products}, success:function(data) { $('#cat1').val(data); } }); $.ajax({ url:"<?php echo base_url(); ?>index.php/Myrequest/get_products1", method:"POST", data:{products:products}, success:function(data) { $('#cat').val(data); } }); } }); }); function com(){ var organization_name = $('#organization').val(); //$('#org').text(organization_name); //get_logo $.ajax({ url:"<?php echo base_url(); ?>index.php/Myrequest/get_logo", method:"POST", data:{organization_name:organization_name}, success:function(data) { $('#get_logo').html(data); } }); } function com5(){ var organization_name = $('#organization_name').val(); //$('#org').text(organization_name); //get_logo $.ajax({ url:"<?php echo base_url(); ?>index.php/Myrequest/get_logo", method:"POST", data:{organization_name:organization_name}, success:function(data) { $('#get_logo').html(data); } }); } </script>