<commit_before><?php
########################################################################################################
####  Name:             	go_reports_body_jsloader.php   		      	                    ####
####  Type:             	ci views - administrator                                            ####
####  Version:          	3.0                                                            	    ####
####  Build:            	1366344000                                                          ####
####  Copyright:        	GOAutoDial Inc. (c) 2011-2013 - GoAutoDial Open Source Community    ####
####			        <<EMAIL>>            			   	    ####
####  Written by:	        <NAME>                                        ####
####  Modified by:	        <NAME>                                        	    ####
####  License:          	AGPLv2                                                              ####
########################################################################################################

$base = base_url();

if (empty($pagetitle)) {
	$pagetitle = 'stats';
}
?>

<script type="text/javascript">
//<![CDATA[
(function(){
var c = document.body.className;
c = c.replace(/no-js/, 'js');
document.body.className = c;
})();
//]]>
</script>


<script type="text/javascript">
/* <![CDATA[ */
var commonL10n = {
	warnDelete: "You are about to permanently delete the selected items.\n  \'Cancel\' to stop, \'OK\' to delete."
};
try{convertEntities(commonL10n);}catch(e){};
var wpAjax = {
	noPerm: "You do not have permission to do that.",
	broken: "An unidentified error has occurred."
};
try{convertEntities(wpAjax);}catch(e){};
var adminCommentsL10n = {
	hotkeys_highlight_first: "",
	hotkeys_highlight_last: ""
};
var thickboxL10n = {
	next: "Next &gt;",
	prev: "&lt; Prev",
	image: "Image",
	of: "of",
	close: "Close",
	noiframes: "This feature requires inline frames. You have iframes disabled or your browser does not support them."
};
try{convertEntities(thickboxL10n);}catch(e){};
var plugininstallL10n = {
	show: false,
	plugin_information: "Plugin Information:",
	ays: "Are you sure you want to install this plugin?"
};
try{convertEntities(plugininstallL10n);}catch(e){};
/* ]]> */
</script>
<script type="text/javascript" src="<? echo $base; ?>js/go_fload_scripts.js"></script> 
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>


<script>
$(function()
	{
		// On page load
		var pagetitle = $('#pagetitle').attr('title');
		var request = $('#request').text();
		var campaign_id = $('#select_campaign').attr('title');
		var date_range = $('#widgetDate span').html().split(' to ');
		var from_date = date_range[0];
		var to_date = date_range[1];
		if (campaign_id == 'Select a Campaign') {
			campaign_id = null;
		}
		$("#table_reports").empty().html('<center><img src="<? echo $base; ?>img/goloading.gif" /></center>');
		$('#table_reports').fadeOut("slow").load('<? echo $base; ?>index.php/go_site/go_reports_output/' + pagetitle+'/' + from_date + '/' + to_date + '/' + campaign_id + '/'+request+'/').fadeIn("slow");
//		$('#table_reports').fadeOut("slow").load('<? echo $base; ?>index.php/go_site/go_reports_output/' + pagetitle+'/').fadeIn("slow");
	});
</script>


<script>
$(document).ready(function()
	{
	$('#pagetitle').click(
		function () {
			var position = $(this).offset();
			$('#go_reports_menu').css('left',position.left);
			$('#go_reports_menu').css('top',position.top+23);
			$('#go_reports_menu').slideDown('slow', function() {
				//$(this).css('height','230px');
			});
		}
	);
	
// 	$('#go_reports_menu').hover(
// 		function () {
// 			$(this).css('height','207px');
// 			$(this).show();
// 		},
// 		function () {
// 			$(this).slideUp('slow');
// 		}
// 	);
	
	$('li.go_reports_submenu').hover(
		function () {
			$(this).css('background-color','#CCC');
		},
		function () {
			$(this).css('background-color','white');
		}
	);

	$('li.go_reports_submenu').click(function () {
		var subID = $(this).attr('id');

		if (subID.match("/|agent_detail|agent_pdetail|dispo|sales_agent|inbound_report|call_export_report|dashboard|limesurvey|/g")) {
			$('#outbound').empty().html('Weekly');
			$('#outbound').attr('id','weekly');
			$('#inbound').empty().html('Monthly');
			$('#inbound').attr('id','monthly');
			$('#daily').css('visibility','hidden');
			$('#weekly').css('visibility','hidden');
			$('#monthly').css('visibility','hidden');
			$('#request').empty().html('daily');
//					$('#request_tab').css('visibility','hidden');
			$('#select_campaign').css('visibility','visible');
// 			$('#select_campaign').html('Select a Campaign');
		}
		if (subID=="stats") {
			$('#outbound').empty().html('Weekly');
			$('#outbound').attr('id','weekly');
			$('#inbound').empty().html('Monthly');
			$('#inbound').attr('id','monthly');
			$('#daily').css('visibility','visible');
			$('#weekly').css('visibility','visible');
			$('#monthly').css('visibility','visible');
			$('#weekly').removeClass('menuOn');
			$('#weekly').addClass('menuOff');
			$('#request').empty().html('daily');
//					$('#request_tab').css('visibility','visible');
			//$('#export').css('visibility','hidden');
			$('#select_campaign').css('visibility','visible');
// 			$('#select_campaign').html('Select a Campaign');
		}
		if (subID.match("/|sales_tracker|/g")) {
			$('#weekly').empty().html('Outbound');
			$('#weekly').attr('id','outbound');
			$('#monthly').empty().html('Inbound');
			$('#monthly').attr('id','inbound');
			$('#daily').css('visibility','hidden');
			$('#outbound').css('visibility','visible');
			$('#inbound').css('visibility','visible');
			$('#request').empty().html('outbound');
			$('#outbound').removeClass('menuOff');
			$('#outbound').addClass('menuOn');
//					$('#request_tab').css('visibility','visible');
			$('#select_campaign').css('visibility','visible');
// 			$('#select_campaign').html('Select a Campaign');
		}
		if (subID=="inbound_report") {
			$('#daily').css('visibility','hidden');
//					$('#request_tab').css('visibility','hidden');
// 			$('#select_campaign').html('Select a Campaign');
		}
		if (subID=="call_export_report") {
			$('#daily').css('visibility','hidden');
//					$('#request_tab').css('visibility','hidden');
			$('#select_campaign').css('visibility','hidden');
		}

		if(subID === "limesurvey"){
			   $("#select_campaign").css('visibility','hidden');
		}

		$('#pagetitle').html($(this).attr('title'));
		$('#pagetitle').attr('title',$(this).attr('id'));
		$('#go_reports_menu').slideUp('slow');
		//$('#export').css('visibility','hidden');
		var request = $('#request').text();
		var campaign_id = $('#select_campaign').attr('title');
		var date_range = $('#widgetDate span').html().split(' to ');
		var from_date = date_range[0];
		var to_date = date_range[1];
		if (campaign_id == 'Select a Campaign') {
			campaign_id = null;
		}

		$('#table_reports').empty().html('<img src="<? echo $base; ?>img/goloading.gif" />');
		$('#table_reports').fadeIn("slow").load('<? echo $base; ?>index.php/go_site/go_reports_output/' + subID+'/' + from_date + '/' + to_date + '/' + campaign_id + '/'+request+'/');
	});
	
	$('#select_campaign').click(<commit_msg>Fixed some bugs and added new features.<commit_after><?php
########################################################################################################
####  Name:             	go_reports_body_jsloader.php   		      	                    ####
####  Type:             	ci views - administrator                                            ####
####  Version:          	3.0                                                            	    ####
####  Build:            	1366344000                                                          ####
####  Copyright:        	GOAutoDial Inc. (c) 2011-2013 - GoAutoDial Open Source Community    ####
####			        <<EMAIL>>            			   	    ####
####  Written by:	        <NAME>                                        ####
####  Modified by:	        <NAME>                                        	    ####
####  License:          	AGPLv2                                                              ####
########################################################################################################

$base = base_url();

if (empty($pagetitle)) {
	$pagetitle = 'stats';
}
?>

<script type="text/javascript">
//<![CDATA[
(function(){
var c = document.body.className;
c = c.replace(/no-js/, 'js');
document.body.className = c;
})();
//]]>
</script>


<script type="text/javascript">
/* <![CDATA[ */
var commonL10n = {
	warnDelete: "You are about to permanently delete the selected items.\n  \'Cancel\' to stop, \'OK\' to delete."
};
try{convertEntities(commonL10n);}catch(e){};
var wpAjax = {
	noPerm: "You do not have permission to do that.",
	broken: "An unidentified error has occurred."
};
try{convertEntities(wpAjax);}catch(e){};
var adminCommentsL10n = {
	hotkeys_highlight_first: "",
	hotkeys_highlight_last: ""
};
var thickboxL10n = {
	next: "Next &gt;",
	prev: "&lt; Prev",
	image: "Image",
	of: "of",
	close: "Close",
	noiframes: "This feature requires inline frames. You have iframes disabled or your browser does not support them."
};
try{convertEntities(thickboxL10n);}catch(e){};
var plugininstallL10n = {
	show: false,
	plugin_information: "Plugin Information:",
	ays: "Are you sure you want to install this plugin?"
};
try{convertEntities(plugininstallL10n);}catch(e){};
/* ]]> */
</script>
<script type="text/javascript" src="<? echo $base; ?>js/go_fload_scripts.js"></script> 
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>


<script>
$(function()
	{
		// On page load
		var pagetitle = $('#pagetitle').attr('title');
		var request = $('#request').text();
		var campaign_id = $('#select_campaign').attr('title');
		var date_range = $('#widgetDate span').html().split(' to ');
		var from_date = date_range[0];
		var to_date = date_range[1];
		if (campaign_id == 'Select a Campaign') {
			campaign_id = null;
		}
		$("#table_reports").empty().html('<center><img src="<? echo $base; ?>img/goloading.gif" /></center>');
		$('#table_reports').fadeOut("slow").load('<? echo $base; ?>index.php/go_site/go_reports_output/' + pagetitle+'/' + from_date + '/' + to_date + '/' + campaign_id + '/'+request+'/').fadeIn("slow");
//		$('#table_reports').fadeOut("slow").load('<? echo $base; ?>index.php/go_site/go_reports_output/' + pagetitle+'/').fadeIn("slow");
	});
</script>


<script>
$(document).ready(function()
	{
	$('#pagetitle').click(
		function () {
			var position = $(this).offset();
			$('#go_reports_menu').css('left',position.left);
			$('#go_reports_menu').css('top',position.top+23);
			$('#go_reports_menu').slideDown('slow', function() {
				//$(this).css('height','230px');
			});
		}
	);
	
// 	$('#go_reports_menu').hover(
// 		function () {
// 			$(this).css('height','207px');
// 			$(this).show();
// 		},
// 		function () {
// 			$(this).slideUp('slow');
// 		}
// 	);
	
	$('li.go_reports_submenu').hover(
		function () {
			$(this).css('background-color','#CCC');
		},
		function () {
			$(this).css('background-color','white');
		}
	);

	$('li.go_reports_submenu').click(function () {
		var subID = $(this).attr('id');

		if (subID.match("/|agent_detail|agent_pdetail|dispo|sales_agent|inbound_report|call_export_report|dashboard|limesurvey|/g")) {
			$('#outbound').empty().html('Weekly');
			$('#outbound').attr('id','weekly');
			$('#inbound').empty().html('Monthly');
			$('#inbound').attr('id','monthly');
			$('#daily').css('visibility','hidden');
			$('#weekly').css('visibility','hidden');
			$('#monthly').css('visibility','hidden');
			$('#request').empty().html('daily');
//					$('#request_tab').css('visibility','hidden');
			$('#select_campaign').css('visibility','visible');
// 			$('#select_campaign').html('Select a Campaign');
		}
		if (subID=="stats") {
			$('#outbound').empty().html('Weekly');
			$('#outbound').attr('id','weekly');
			$('#inbound').empty().html('Monthly');
			$('#inbound').attr('id','monthly');
			$('#daily').css('visibility','visible');
			$('#weekly').css('visibility','visible');
			$('#monthly').css('visibility','visible');
			$('#daily').show();
			$('#weekly').show();
			$('#monthly').show();
			$('#weekly').removeClass('menuOn');
			$('#weekly').addClass('menuOff');
			$('#request').empty().html('daily');
//					$('#request_tab').css('visibility','visible');
			//$('#export').css('visibility','hidden');
			$('#select_campaign').css('visibility','visible');
// 			$('#select_campaign').html('Select a Campaign');
		}
		if (subID.match("/|sales_tracker|/g")) {
			$('#weekly').empty().html('Outbound');
			$('#weekly').attr('id','outbound');
			$('#monthly').empty().html('Inbound');
			$('#monthly').attr('id','inbound');
			$('#daily').css('visibility','hidden');
			$('#outbound').css('visibility','visible');
			$('#inbound').css('visibility','visible');
			$('#outbound').show();
			$('#inbound').show();
			$('#request').empty().html('outbound');
			$('#outbound').removeClass('menuOff');
			$('#outbound').addClass('menuOn');
//					$('#request_tab').css('visibility','visible');
			$('#select_campaign').css('visibility','visible');
// 			$('#select_campaign').html('Select a Campaign');
		}
		if (subID=="inbound_report") {
			$('#daily').css('visibility','hidden');
//					$('#request_tab').css('visibility','hidden');
// 			$('#select_campaign').html('Select a Campaign');
		}
		if (subID=="call_export_report") {
			$('#daily').css('visibility','hidden');
//					$('#request_tab').css('visibility','hidden');
			$('#select_campaign').css('visibility','hidden');
		}

		if(subID === "limesurvey"){
			   $("#select_campaign").css('visibility','hidden');
		}

		$('#pagetitle').html($(this).attr('rel'));
		$('#pagetitle').attr('title',$(this).attr('id'));
		$('#go_reports_menu').slideUp('slow');
		//$('#export').css('visibility','hidden');
		var request = $('#request').text();
		var campaign_id = $('#select_campaign').attr('title');
		var date_range = $('#widgetDate span').html().split(' to ');
		var from_date = date_range[0];
		var to_date = date_range[1];
		if (campaign_id == 'Select a Campaign') {
			campaign_id = null;
		}

		$('#table_reports').empty().html('<img src="<? echo $base; ?>img/goloading.gif" />');
		$('#table_reports').fadeIn("slow").load('<? echo $base; ?>index.php/go_site/go_reports_output/' + subID+'/' + from_date + '/' + to_date + '/' + campaign_id + '/'+request+'/');
	});
	
	$('#select_campaign').click(
{'fraction_non_alphanumeric': 0.27424357295471774, 'fraction_numerical': 0.006478737335446964, 'mean_word_length': 3.7371857655892917, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 22, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '369355', 'n_tokens_mistral': 5059, 'n_tokens_neox': 4579, 'n_words': 690}