<?

### DO THIS FIRST:
require_once("/BANGK!/master_config.php");
require_once($master_config_root_path . "shared/functions.shared");
$active_user_session_timeout = "OFF"; // no session timeout on this page
require_once($master_config_root_path . "shared/session.shared");


### START SESSION VERIFICATION (ALWAYS LAST B4 REST OF PAGES):
$verified_member = "no";
$verified_business = "no";
$verified_transaction = "no";
$verified_banned = "no";
$verified_acccess = "no";
$secured_server = "no"; //force https
include($_SESSION['template']['company']['file_path'] . "shared/start_verified_session.shared");
#
#
#
log_traffic_stats();


$incoming_vars = "";
$incoming_vars = array();
if($_POST) $incoming_vars = $_POST;
if(empty($incoming_vars)) $incoming_vars = $_GET;

logger3("

########################################################################################
########################################################################################
########################################################################################
########################################################################################
########################################################################################
########################################################################################
########################################################################################
########################################################################################
### NEW SESSION:  [" . $_SERVER['SCRIPT_NAME'] . "]
########################################################################################
########################################################################################

",$incoming_vars);


?>



<table style="<? 
	//$table_style = "width:80%; margin-top: 10px;";
	//$table_style = "";
	echo $table_style; 
	?>">
	
<!-- ##################### -->	
	
	<tr style="display: none;">
		<td style="
			text-align: <? echo $table_ROW_1_text_align; ?>; 
			padding-left: <? echo $table_ROW_1_padding_left; ?>;
			padding-right: <? echo $table_ROW_1_padding_right; ?>; 
			padding-top: <? echo $table_ROW_1_padding_top; ?>; 
			padding-bottom: <? echo $table_ROW_1_padding_bottom; ?>; 
			color: <? echo $table_ROW_1_color; ?>;
			background-color: <? echo $table_ROW_1_bakground_color; ?>;
			font-weight: <? echo $table_ROW_1_font_weight; ?>;
			font-family: <? echo $table_ROW_1_font_family; ?>;
				color:#E6E6E6;
				background-color: #444444;
		">
		<? //logger3("table_ROW_1_font_family",$table_ROW_1_font_family); ?>
		
		CRM (Customer Relationship Management) Configuration:</td>
		
	</tr>
	<tr>
		<td style="
			text-align: <? echo $table_ROW_2_text_align; ?>; 
			padding-left: <? echo $table_ROW_2_padding_left; ?>;
			padding-right: <? echo $table_ROW_2_padding_right; ?>; 
			padding-top: <? echo $table_ROW_2_padding_top; ?>; 
			padding-bottom: <? echo $table_ROW_2_padding_bottom; ?>; 
			color: <? echo $table_ROW_2_color; ?>;
			background-color: <? echo $table_ROW_2_bakground_color; ?>;
			font-weight: <? echo $table_ROW_2_font_weight; ?>;
			font-family: <? echo $table_ROW_2_font_family; ?>;
				color:#E6E6E6;
				background-color: #444444;
		">
		<br>
		</td>
	</tr>
	

<!-- ##################### -->	
	
	<tr>
		<td style="
			text-align: <? echo $table_ROW_1_text_align; ?>; 
			padding-left: <? echo $table_ROW_1_padding_left; ?>;
			padding-right: <? echo $table_ROW_1_padding_right; ?>; 
			padding-top: <? echo $table_ROW_1_padding_top; ?>; 
			padding-bottom: <? echo $table_ROW_1_padding_bottom; ?>; 
			color: <? echo $table_ROW_1_color; ?>;
			background-color: <? echo $table_ROW_1_bakground_color; ?>;
			font-weight: <? echo $table_ROW_1_font_weight; ?>;
			font-family: <? echo $table_ROW_1_font_family; ?>;
		
					text-align: left;
		">
		
		<b>"FOLLOW-UP" CONTENT:</b> Your users receive automated (emailed and/or mobile alerts) follow-ups that are intended to encourage and guide the on-boarding process to completion.
		
		</td>
		
	</tr>
	<tr>
		<td style="
			text-align: <? echo $table_ROW_2_text_align; ?>; 
			padding-left: <? echo $table_ROW_2_padding_left; ?>;
			padding-right: <? echo $table_ROW_2_padding_right; ?>; 
			padding-top: <? echo $table_ROW_2_padding_top; ?>; 
			padding-bottom: <? echo $table_ROW_2_padding_bottom; ?>; 
			color: <? echo $table_ROW_2_color; ?>;
			background-color: <? echo $table_ROW_2_bakground_color; ?>;
			font-weight: <? echo $table_ROW_2_font_weight; ?>;
			font-family: <? echo $table_ROW_2_font_family; ?>;
				
				
					text-align: center;
		">
			<?
				//logger3("_SERVER['HTTP_HOST']",$_SERVER['HTTP_HOST']);
				
				?>
			
				<center>
				<table style="width:auto;">
					
					<tr>
						
						
						
						
						
						<!-------------------------------------->
						<!-------------------------------------->
						<!-------------------------------------->
						
						<td style="font-family: arial; font-size: 12px; color:#444444; text-align: center; padding:20px;  padding-left: 40px; padding-right: 40px; line-heigh:18px; vertical-align: bottom;">
				
				<!-- <a href="https://<?=$_SERVER['HTTP_HOST']; ?>/<?=$master_filename_prefix; ?>CRM_system_alerts.admin"> -->
					<img src="https://<?=$_SESSION['template']['company']['host_images'];?>/CRM_system_popup_alerts.png" style="height:100px;">
				<!-- </a> -->
				<br>
				<br>
				<u>On•Boarding Configuration</u>:
				Manage Pop-Up Alerts!
				
				

		
			
			<p>
				<br>
				<br>
				<?
					
					
					
					
					
					
					
					$checkbox_status = "";
					$database_field_name = "intelitruth_crm_system_popup_alerts";
					$client_service_status = get_client_service($whitelabel_business_account_details['hash'],$database_field_name);
					if(!$client_service_status) $client_service_status = "ON";
					echo "<script>";
					echo "window.intelitruth_crm_system_popup_alerts = '". $client_service_status. "'";
					echo "</script>";
					//test("client_service_status",$client_service_status);
					
					//logger3("whitelabel_business_account_details[$database_field_name]",$whitelabel_business_account_details[$database_field_name]);
					if(!stristr($client_service_status,"OFF")) $checkbox_status = "checked";
					
					//logger3("checkbox_status",$checkbox_status);
					//$paramater_name = "client_service_mobile";
				
				?>
		
				<input <?=$checkbox_status;?> type="checkbox" class="switchBootstrap" data-on-color="primary" name="<?=$database_field_name;?>" onChange="intelitruth_service_manager(this);" value="<?=$database_field_name;?>"> 
	
			</p>	
			
			
	
	
	</td>
	
	
	
	
	
	
	
	<!-------------------------------------->
	<!-------------------------------------->
	<!-------------------------------------->
	
	
	
	
	
	
	
	<td style="font-family: arial; font-size: 12px; color:#444444; text-align: center; padding:20px;  padding-left: 40px; padding-right: 40px; line-heigh:18px; vertical-align: bottom;">
				<a href="https://<?=$_SERVER['HTTP_HOST']; ?>/<?=$master_filename_prefix; ?>CRM_email_receipts.admin"><img src="https://<?=$_SESSION['template']['company']['host_images'];?>/email_receipt_icon.png" style="height:100px;"></a>
				<br>
				<br>
				<u>CRM Configuration</u>:<br>
				On•Boarding Email Receipts
				
				

		
			
			<p>
				<br>
				<br>
				<?
		
					$checkbox_status = "";
					$database_field_name = "intelitruth_crm_email_receipts";
					
					//logger3("whitelabel_business_account_details[$database_field_name]",$whitelabel_business_account_details[$database_field_name]);
					if(!stristr($whitelabel_business_account_details[$database_field_name],"OFF")) $checkbox_status = "checked";
					
					//logger3("checkbox_status",$checkbox_status);
					//$paramater_name = "client_service_mobile";
				
				?>
		
				<input <?=$checkbox_status;?> type="checkbox" class="switchBootstrap" data-on-color="primary" name="<?=$database_field_name;?>" onChange="intelitruth_service_manager(this);" value="<?=$database_field_name;?>"> 
	
			</p>	
			
			
	
	
	</td>
	
	
					</tr>
					<tr>
	
						
						
						
						
						
						
						
						
						<td style="font-family: arial; font-size: 12px; color:#444444; text-align: center; padding:20px;  padding-left: 40px; padding-right: 40px; line-heigh:18px; vertical-align: bottom;">
				
				<?
				
					//$SERVICE_LINK = "https://". $_SERVER['HTTP_HOST'] ."/CRM_email_settings.nsdb";
					$SERVICE_LINK = "javascript:alert('Please contact Intelitruth to have this feature activated for your account.  Thank you.');";	
					
				?>
				
				<a href="<?=$SERVICE_LINK;?>"><img src="https://<?=$_SESSION['template']['company']['host_images'];?>/icon_crm_email.png" style="height:100px;"></a>
				<br>
				<br>
				<u>Improve Conversions</u>:<br>
				Configure Follow-Up Email
				
				
				
			
			
			
			
			<p>
				<br>
				<br>
				<?
					
					
					
					
					
					
					
					$checkbox_status = "";
					$database_field_name = "intelitruth_crm_email_reciepts";
					$client_service_status = get_client_service($whitelabel_business_account_details['hash'],$database_field_name);
					if(!$client_service_status) $client_service_status = "OFF";
					echo "<script>";
					echo "window.intelitruth_crm_email_reciepts = '". $client_service_status. "'";
					echo "</script>";
					//test("client_service_status",$client_service_status);
					
					//logger3("whitelabel_business_account_details[$database_field_name]",$whitelabel_business_account_details[$database_field_name]);
					if(!stristr($client_service_status,"OFF")) $checkbox_status = "checked";
					
					//logger3("checkbox_status",$checkbox_status);
					//$paramater_name = "client_service_mobile";
				
				?>
		
				<input <?=$checkbox_status;?> type="checkbox" class="switchBootstrap" data-on-color="primary" name="<?=$database_field_name;?>" onChange="intelitruth_service_manager(this);" value="<?=$database_field_name;?>" disabled> 
	
			</p>	
			
			
			
			
			
						</td>
						
						
						<td style="font-family: arial; font-size: 12px; color:#444444; text-align: center; padding:20px; padding-left: 40px; padding-right: 40px; line-heigh:18px; vertical-align: bottom;">
							
						
				
				
				
				<?
					# $SERVICE_LINK = "https://" . $_SERVER['HTTP_HOST'] . "/CRM_mobile_alert_settings.nsdb";
					$SERVICE_LINK = "javascript:alert('Please contact Intelitruth to have this feature activated for your account.  Thank you.');";
				?>
				
				
				
				
				
				<a href="javascript:alert('Please contact Intelitruth to have this feature activated for your account.  Thank you.');"><img src="https://<?=$_SESSION['template']['company']['host_images'];?>/icon_alert_mobile.png" style="height:100px;"></a>
				
				<br>
				<br>
				<u>Improve Conversions</u>:<br>
				Configure Mobile Alerts
				
				
				
				<p>
				<br>
				<br>
				<?
		
					$checkbox_status = "";
					$database_field_name = "intelitruth_crm_mobile_alerts";
					
					//logger3("whitelabel_business_account_details[$database_field_name]",$whitelabel_business_account_details[$database_field_name]);
					if(stristr($whitelabel_business_account_details[$database_field_name],"ON")) $checkbox_status = "checked";
					
					$checkbox_status .= " disabled";
					
					//logger3("checkbox_status",$checkbox_status);
					//$paramater_name = "client_service_mobile";
				
				?>
		
				<input <?=$checkbox_status;?> type="checkbox" class="switchBootstrap" data-on-color="primary" name="<?=$database_field_name;?>" onChange="intelitruth_service_manager(this);" value="<?=$database_field_name;?>"> 
	
			</p>
			
			
			
			
			
			
			
			
						</td>
						
						

						
						

					</tr>
				</table>
				</center>
		
		
		<!-- 
		<button style="width:200px; padding: 10px; font-family: arial; font-size: 14px; line-height:22px;" type="button" onClick="window.location.href='https://<? 
			
			
			
			echo $_SERVER['HTTP_HOST']; ?>/CRM_email_settings.nsdb';">Click to Manage:<br>
		Follow-Up Content Settings</button>
		
		-->
		
		

		</td>
	</tr>
		
	<!-- ##################### -->	
	
	<tr>
		<td style="
			text-align: <? echo $table_ROW_1_text_align; ?>; 
			padding-left: <? echo $table_ROW_1_padding_left; ?>;
			padding-right: <? echo $table_ROW_1_padding_right; ?>; 
			padding-top: <? echo $table_ROW_1_padding_top; ?>; 
			padding-bottom: <? echo $table_ROW_1_padding_bottom; ?>; 
			color: <? echo $table_ROW_1_color; ?>;
			background-color: <? echo $table_ROW_1_bakground_color; ?>;
			font-weight: <? echo $table_ROW_1_font_weight; ?>;
			font-family: <? echo $table_ROW_1_font_family; ?>;
		
					text-align: left;
		">
		
		<b>CONFERENCE CALLS:</b> To take advantage of the convenient (and efficient) Conference Call Services, please remember to set a  telephone number -- where you will receive conference calls with your users <i>(<b>privacy notice:</b> <u>your telephone number is never revealed to the conference party via CALLER-ID</u>):</i>
		</td>
		
	</tr>
	<tr>
		<td style="
			text-align: <? echo $table_ROW_2_text_align; ?>; 
			padding-left: <? echo $table_ROW_2_padding_left; ?>;
			padding-right: <? echo $table_ROW_2_padding_right; ?>; 
			padding-top: <? echo $table_ROW_2_padding_top; ?>; 
			padding-bottom: <? echo $table_ROW_2_padding_bottom; ?>; 
			color: <? echo $table_ROW_2_color; ?>;
			background-color: <? echo $table_ROW_2_bakground_color; ?>;
			font-weight: <? echo $table_ROW_2_font_weight; ?>;
			font-family: <? echo $table_ROW_2_font_family; ?>;
				
				
					text-align: center;
		">
		<input type="text" name="admin_user_telephone_conference" style="width:200px; padding: 10px; font-family: arial; font-size: 14px; text-align: left;" placeholder="example: +12135551212" />

		</td>
	</tr>
	
	
</table>




<?

### END: SESSIONS & STUFF.
#
#
#
include($_SESSION['template']['company']['file_path'] . "shared/end_verified_session.shared");

?>