MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/rms.cafsjobs.com/application/views/partial/daterangepicker.php
<?php 
	$this->lang->load("calendar");
	$this->lang->load("date"); 
?>

var start_date = "<?php echo date('Y-m-d') ?>";
var end_date   = "<?php echo date('Y-m-d') ?>";

$('#daterangepicker').daterangepicker({
	"ranges": {
		"<?php echo $this->lang->line("datepicker_today"); ?>": [
			"<?php echo date($this->config->item('dateformat'), mktime(0,0,0,date("m"),date("d"),date("Y")));?>",
			"<?php echo date($this->config->item('dateformat'), mktime(0,0,0,date("m"),date("d")+1,date("Y"))-1);?>"
		],
		"<?php echo $this->lang->line("datepicker_yesterday"); ?>": [
			"<?php echo date($this->config->item('dateformat'), mktime(0,0,0,date("m"),date("d")-1,date("Y")));?>",
			"<?php echo date($this->config->item('dateformat'), mktime(0,0,0,date("m"),date("d"),date("Y"))-1);?>"
		],
		"<?php echo $this->lang->line("datepicker_last_7"); ?>": [
			"<?php echo date($this->config->item('dateformat'), mktime(0,0,0,date("m"),date("d")-6,date("Y")));?>",
			"<?php echo date($this->config->item('dateformat'), mktime(0,0,0,date("m"),date("d")+1,date("Y"))-1);?>"
		],
		"<?php echo $this->lang->line("datepicker_last_30"); ?>": [
			"<?php echo date($this->config->item('dateformat'), mktime(0,0,0,date("m"),date("d")-29,date("Y")));?>",
			"<?php echo date($this->config->item('dateformat'), mktime(0,0,0,date("m"),date("d")+1,date("Y"))-1);?>"
		],
		"<?php echo $this->lang->line("datepicker_this_month"); ?>": [
			"<?php echo date($this->config->item('dateformat'), mktime(0,0,0,date("m"),1,date("Y")));?>",
			"<?php echo date($this->config->item('dateformat'), mktime(0,0,0,date("m")+1,1,date("Y"))-1);?>"
		],
		"<?php echo $this->lang->line("datepicker_last_month"); ?>": [
			"<?php echo date($this->config->item('dateformat'), mktime(0,0,0,date("m")-1,1,date("Y")));?>",
			"<?php echo date($this->config->item('dateformat'), mktime(0,0,0,date("m"),1,date("Y"))-1);?>"
		],
		"<?php echo $this->lang->line("datepicker_this_year"); ?>": [
			"<?php echo date($this->config->item('dateformat'), mktime(0,0,0,1,1,date("Y")));?>",
			"<?php echo date($this->config->item('dateformat'), mktime(0,0,0,date("m"),date("d"),date("Y"))+1);?>"
		],
		"<?php echo $this->lang->line("datepicker_last_year"); ?>": [
			"<?php echo date($this->config->item('dateformat'), mktime(0,0,0,1,1,date("Y")-1));?>",
			"<?php echo date($this->config->item('dateformat'), mktime(0,0,0,1,1,date("Y"))-1);?>"
		],
		"<?php echo $this->lang->line("datepicker_all_time"); ?>": [
			"<?php echo date($this->config->item('dateformat'), mktime(0,0,0,01,01,2010));?>",
			"<?php echo date($this->config->item('dateformat'), mktime(0,0,0,date("m"),date("d")+1,date("Y"))-1);?>"
		],
	},
	"locale": {
		"format": '<?php echo dateformat_momentjs($this->config->item("dateformat"))?>',
		"separator": " - ",
		"applyLabel": "<?php echo $this->lang->line("datepicker_apply"); ?>",
		"cancelLabel": "<?php echo $this->lang->line("datepicker_cancel"); ?>",
		"fromLabel": "<?php echo $this->lang->line("datepicker_from"); ?>",
		"toLabel": "<?php echo $this->lang->line("datepicker_to"); ?>",
		"customRangeLabel": "<?php echo $this->lang->line("datepicker_custom"); ?>",
		"daysOfWeek": [
			"<?php echo $this->lang->line("cal_su"); ?>",
			"<?php echo $this->lang->line("cal_mo"); ?>",
			"<?php echo $this->lang->line("cal_tu"); ?>",
			"<?php echo $this->lang->line("cal_we"); ?>",
			"<?php echo $this->lang->line("cal_th"); ?>",
			"<?php echo $this->lang->line("cal_fr"); ?>",
			"<?php echo $this->lang->line("cal_sa"); ?>",
			
		],
		"monthNames": [
			"<?php echo $this->lang->line("cal_january"); ?>",
			"<?php echo $this->lang->line("cal_february"); ?>",
			"<?php echo $this->lang->line("cal_march"); ?>",
			"<?php echo $this->lang->line("cal_april"); ?>",
			"<?php echo $this->lang->line("cal_may"); ?>",
			"<?php echo $this->lang->line("cal_june"); ?>",
			"<?php echo $this->lang->line("cal_july"); ?>",
			"<?php echo $this->lang->line("cal_august"); ?>",
			"<?php echo $this->lang->line("cal_september"); ?>",
			"<?php echo $this->lang->line("cal_october"); ?>",
			"<?php echo $this->lang->line("cal_november"); ?>",
			"<?php echo $this->lang->line("cal_december"); ?>"
		],
		"firstDay": <?php echo $this->lang->line("datepicker_weekstart"); ?>
	},
	"alwaysShowCalendars": true,
	"startDate": "<?php echo date($this->config->item('dateformat'), mktime(0,0,0,date("m"),date("d")+1,date("Y"))-1);?>",
	"endDate": "<?php echo date($this->config->item('dateformat'), mktime(0,0,0,date("m")+1,1,date("Y"))-1);?>",
	"minDate": "<?php echo date($this->config->item('dateformat'), mktime(0,0,0,01,01,1950));?>",
	"maxDate": "<?php echo date($this->config->item('dateformat'), mktime(0,0,0,date("m"),1,date("Y")+1)-1);?>"
}, function(start, end, label) {
	start_date = start.format('YYYY-MM-DD');
	end_date = end.format('YYYY-MM-DD');
});