<?php
require_once(getabspath("classes/cipherer.php"));




$tdataservice_provider = array();
	$tdataservice_provider[".truncateText"] = true;
	$tdataservice_provider[".NumberOfChars"] = 80;
	$tdataservice_provider[".ShortName"] = "service_provider";
	$tdataservice_provider[".OwnerID"] = "service_provider_business_business_id";
	$tdataservice_provider[".OriginalTable"] = "service_provider";

//	field labels
$fieldLabelsservice_provider = array();
$fieldToolTipsservice_provider = array();
$pageTitlesservice_provider = array();
$placeHoldersservice_provider = array();

if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsservice_provider["English"] = array();
	$fieldToolTipsservice_provider["English"] = array();
	$placeHoldersservice_provider["English"] = array();
	$pageTitlesservice_provider["English"] = array();
	$fieldLabelsservice_provider["English"]["service_provider_id"] = "ID";
	$fieldToolTipsservice_provider["English"]["service_provider_id"] = "";
	$placeHoldersservice_provider["English"]["service_provider_id"] = "";
	$fieldLabelsservice_provider["English"]["service_provider_status_id"] = "Status";
	$fieldToolTipsservice_provider["English"]["service_provider_status_id"] = "";
	$placeHoldersservice_provider["English"]["service_provider_status_id"] = "";
	$fieldLabelsservice_provider["English"]["service_provider_provider_provider_id"] = "Provider";
	$fieldToolTipsservice_provider["English"]["service_provider_provider_provider_id"] = "";
	$placeHoldersservice_provider["English"]["service_provider_provider_provider_id"] = "";
	$fieldLabelsservice_provider["English"]["service_provider_service_service_id"] = "Service";
	$fieldToolTipsservice_provider["English"]["service_provider_service_service_id"] = "";
	$placeHoldersservice_provider["English"]["service_provider_service_service_id"] = "";
	$fieldLabelsservice_provider["English"]["service_provider_business_business_id"] = "Service Provider Business Business Id";
	$fieldToolTipsservice_provider["English"]["service_provider_business_business_id"] = "";
	$placeHoldersservice_provider["English"]["service_provider_business_business_id"] = "";
	if (count($fieldToolTipsservice_provider["English"]))
		$tdataservice_provider[".isUseToolTips"] = true;
}
if(mlang_getcurrentlang()=="Arabic")
{
	$fieldLabelsservice_provider["Arabic"] = array();
	$fieldToolTipsservice_provider["Arabic"] = array();
	$placeHoldersservice_provider["Arabic"] = array();
	$pageTitlesservice_provider["Arabic"] = array();
	$fieldLabelsservice_provider["Arabic"]["service_provider_id"] = "التسلسل";
	$fieldToolTipsservice_provider["Arabic"]["service_provider_id"] = "";
	$placeHoldersservice_provider["Arabic"]["service_provider_id"] = "";
	$fieldLabelsservice_provider["Arabic"]["service_provider_status_id"] = "الحالة";
	$fieldToolTipsservice_provider["Arabic"]["service_provider_status_id"] = "";
	$placeHoldersservice_provider["Arabic"]["service_provider_status_id"] = "";
	$fieldLabelsservice_provider["Arabic"]["service_provider_provider_provider_id"] = "الموظف";
	$fieldToolTipsservice_provider["Arabic"]["service_provider_provider_provider_id"] = "";
	$placeHoldersservice_provider["Arabic"]["service_provider_provider_provider_id"] = "";
	$fieldLabelsservice_provider["Arabic"]["service_provider_service_service_id"] = "الخدمة";
	$fieldToolTipsservice_provider["Arabic"]["service_provider_service_service_id"] = "";
	$placeHoldersservice_provider["Arabic"]["service_provider_service_service_id"] = "";
	$fieldLabelsservice_provider["Arabic"]["service_provider_business_business_id"] = "Service Provider Business Business Id";
	$fieldToolTipsservice_provider["Arabic"]["service_provider_business_business_id"] = "";
	$placeHoldersservice_provider["Arabic"]["service_provider_business_business_id"] = "";
	if (count($fieldToolTipsservice_provider["Arabic"]))
		$tdataservice_provider[".isUseToolTips"] = true;
}
if(mlang_getcurrentlang()=="")
{
	$fieldLabelsservice_provider[""] = array();
	$fieldToolTipsservice_provider[""] = array();
	$placeHoldersservice_provider[""] = array();
	$pageTitlesservice_provider[""] = array();
	if (count($fieldToolTipsservice_provider[""]))
		$tdataservice_provider[".isUseToolTips"] = true;
}


	$tdataservice_provider[".NCSearch"] = true;



$tdataservice_provider[".shortTableName"] = "service_provider";
$tdataservice_provider[".nSecOptions"] = 1;
$tdataservice_provider[".recsPerRowPrint"] = 1;
$tdataservice_provider[".mainTableOwnerID"] = "service_provider_business_business_id";
$tdataservice_provider[".moveNext"] = 1;
$tdataservice_provider[".entityType"] = 0;

$tdataservice_provider[".strOriginalTableName"] = "service_provider";

	



$tdataservice_provider[".showAddInPopup"] = true;

$tdataservice_provider[".showEditInPopup"] = true;

$tdataservice_provider[".showViewInPopup"] = true;

//page's base css files names
$popupPagesLayoutNames = array();
						
	;
$popupPagesLayoutNames["add"] = "add_bootstrap";
						
	;
$popupPagesLayoutNames["edit"] = "edit_bootstrap_2col";
						
	;
$popupPagesLayoutNames["view"] = "view_bootstrap_2col";
$tdataservice_provider[".popupPagesLayoutNames"] = $popupPagesLayoutNames;


$tdataservice_provider[".fieldsForRegister"] = array();

$tdataservice_provider[".listAjax"] = false;

	$tdataservice_provider[".audit"] = false;

	$tdataservice_provider[".locking"] = false;

$tdataservice_provider[".edit"] = true;
$tdataservice_provider[".afterEditAction"] = 1;
$tdataservice_provider[".closePopupAfterEdit"] = 1;
$tdataservice_provider[".afterEditActionDetTable"] = "";

$tdataservice_provider[".add"] = true;
$tdataservice_provider[".afterAddAction"] = 1;
$tdataservice_provider[".closePopupAfterAdd"] = 1;
$tdataservice_provider[".afterAddActionDetTable"] = "";

$tdataservice_provider[".list"] = true;

$tdataservice_provider[".inlineEdit"] = true;

$tdataservice_provider[".updateSelected"] = true;

$tdataservice_provider[".reorderRecordsByHeader"] = true;


$tdataservice_provider[".exportFormatting"] = 2;
$tdataservice_provider[".exportDelimiter"] = ",";
		
$tdataservice_provider[".inlineAdd"] = true;
$tdataservice_provider[".copy"] = true;
$tdataservice_provider[".view"] = true;

$tdataservice_provider[".import"] = true;

$tdataservice_provider[".exportTo"] = true;

$tdataservice_provider[".printFriendly"] = true;

$tdataservice_provider[".delete"] = true;

$tdataservice_provider[".showSimpleSearchOptions"] = false;

// Allow Show/Hide Fields in GRID
$tdataservice_provider[".allowShowHideFields"] = false;
//

// Allow Fields Reordering in GRID
$tdataservice_provider[".allowFieldsReordering"] = false;
//

// search Saving settings
$tdataservice_provider[".searchSaving"] = false;
//

$tdataservice_provider[".showSearchPanel"] = true;
		$tdataservice_provider[".flexibleSearch"] = true;

$tdataservice_provider[".isUseAjaxSuggest"] = true;

$tdataservice_provider[".rowHighlite"] = true;





$tdataservice_provider[".ajaxCodeSnippetAdded"] = false;

$tdataservice_provider[".buttonsAdded"] = false;

$tdataservice_provider[".addPageEvents"] = false;

// use timepicker for search panel
$tdataservice_provider[".isUseTimeForSearch"] = false;



$tdataservice_provider[".badgeColor"] = "d2691e";


$tdataservice_provider[".allSearchFields"] = array();
$tdataservice_provider[".filterFields"] = array();
$tdataservice_provider[".requiredSearchFields"] = array();

$tdataservice_provider[".allSearchFields"][] = "service_provider_id";
	$tdataservice_provider[".allSearchFields"][] = "service_provider_provider_provider_id";
	$tdataservice_provider[".allSearchFields"][] = "service_provider_service_service_id";
	

$tdataservice_provider[".googleLikeFields"] = array();
$tdataservice_provider[".googleLikeFields"][] = "service_provider_id";
$tdataservice_provider[".googleLikeFields"][] = "service_provider_business_business_id";
$tdataservice_provider[".googleLikeFields"][] = "service_provider_provider_provider_id";
$tdataservice_provider[".googleLikeFields"][] = "service_provider_service_service_id";
$tdataservice_provider[".googleLikeFields"][] = "service_provider_status_id";


$tdataservice_provider[".advSearchFields"] = array();
$tdataservice_provider[".advSearchFields"][] = "service_provider_id";
$tdataservice_provider[".advSearchFields"][] = "service_provider_provider_provider_id";
$tdataservice_provider[".advSearchFields"][] = "service_provider_service_service_id";

$tdataservice_provider[".tableType"] = "list";

$tdataservice_provider[".printerPageOrientation"] = 0;
$tdataservice_provider[".nPrinterPageScale"] = 100;

$tdataservice_provider[".nPrinterSplitRecords"] = 40;

$tdataservice_provider[".nPrinterPDFSplitRecords"] = 40;



$tdataservice_provider[".geocodingEnabled"] = false;





$tdataservice_provider[".listGridLayout"] = 3;





// view page pdf

// print page pdf


$tdataservice_provider[".pageSize"] = 20;

$tdataservice_provider[".warnLeavingPages"] = true;



$tstrOrderBy = "";
if(strlen($tstrOrderBy) && strtolower(substr($tstrOrderBy,0,8))!="order by")
	$tstrOrderBy = "order by ".$tstrOrderBy;
$tdataservice_provider[".strOrderBy"] = $tstrOrderBy;

$tdataservice_provider[".orderindexes"] = array();

$tdataservice_provider[".sqlHead"] = "SELECT service_provider_id,  	service_provider_business_business_id,  	service_provider_provider_provider_id,  	service_provider_service_service_id,  	service_provider_status_id";
$tdataservice_provider[".sqlFrom"] = "FROM service_provider";
$tdataservice_provider[".sqlWhereExpr"] = "";
$tdataservice_provider[".sqlTail"] = "";












//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdataservice_provider[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdataservice_provider[".arrGroupsPerPage"] = $arrGPP;

$tdataservice_provider[".highlightSearchResults"] = true;

$tableKeysservice_provider = array();
$tableKeysservice_provider[] = "service_provider_id";
$tdataservice_provider[".Keys"] = $tableKeysservice_provider;

$tdataservice_provider[".listFields"] = array();
$tdataservice_provider[".listFields"][] = "service_provider_id";
$tdataservice_provider[".listFields"][] = "service_provider_provider_provider_id";
$tdataservice_provider[".listFields"][] = "service_provider_service_service_id";

$tdataservice_provider[".hideMobileList"] = array();


$tdataservice_provider[".viewFields"] = array();
$tdataservice_provider[".viewFields"][] = "service_provider_id";
$tdataservice_provider[".viewFields"][] = "service_provider_provider_provider_id";
$tdataservice_provider[".viewFields"][] = "service_provider_service_service_id";

$tdataservice_provider[".addFields"] = array();
$tdataservice_provider[".addFields"][] = "service_provider_provider_provider_id";
$tdataservice_provider[".addFields"][] = "service_provider_service_service_id";

$tdataservice_provider[".masterListFields"] = array();
$tdataservice_provider[".masterListFields"][] = "service_provider_id";
$tdataservice_provider[".masterListFields"][] = "service_provider_business_business_id";
$tdataservice_provider[".masterListFields"][] = "service_provider_provider_provider_id";
$tdataservice_provider[".masterListFields"][] = "service_provider_service_service_id";
$tdataservice_provider[".masterListFields"][] = "service_provider_status_id";

$tdataservice_provider[".inlineAddFields"] = array();
$tdataservice_provider[".inlineAddFields"][] = "service_provider_provider_provider_id";
$tdataservice_provider[".inlineAddFields"][] = "service_provider_service_service_id";

$tdataservice_provider[".editFields"] = array();
$tdataservice_provider[".editFields"][] = "service_provider_provider_provider_id";
$tdataservice_provider[".editFields"][] = "service_provider_service_service_id";

$tdataservice_provider[".inlineEditFields"] = array();
$tdataservice_provider[".inlineEditFields"][] = "service_provider_provider_provider_id";
$tdataservice_provider[".inlineEditFields"][] = "service_provider_service_service_id";

$tdataservice_provider[".updateSelectedFields"] = array();
$tdataservice_provider[".updateSelectedFields"][] = "service_provider_provider_provider_id";
$tdataservice_provider[".updateSelectedFields"][] = "service_provider_service_service_id";


$tdataservice_provider[".exportFields"] = array();
$tdataservice_provider[".exportFields"][] = "service_provider_id";
$tdataservice_provider[".exportFields"][] = "service_provider_provider_provider_id";
$tdataservice_provider[".exportFields"][] = "service_provider_service_service_id";

$tdataservice_provider[".importFields"] = array();
$tdataservice_provider[".importFields"][] = "service_provider_id";
$tdataservice_provider[".importFields"][] = "service_provider_provider_provider_id";
$tdataservice_provider[".importFields"][] = "service_provider_service_service_id";

$tdataservice_provider[".printFields"] = array();
$tdataservice_provider[".printFields"][] = "service_provider_id";
$tdataservice_provider[".printFields"][] = "service_provider_provider_provider_id";
$tdataservice_provider[".printFields"][] = "service_provider_service_service_id";


//	service_provider_id
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 1;
	$fdata["strName"] = "service_provider_id";
	$fdata["GoodName"] = "service_provider_id";
	$fdata["ownerTable"] = "service_provider";
	$fdata["Label"] = GetFieldLabel("service_provider","service_provider_id");
	$fdata["FieldType"] = 3;

	
		$fdata["AutoInc"] = true;

	
			
		$fdata["bListPage"] = true;

	
	
	
	
	

		$fdata["bViewPage"] = true;

		$fdata["bAdvancedSearch"] = true;

		$fdata["bPrinterPage"] = true;

		$fdata["bExportPage"] = true;

		$fdata["strField"] = "service_provider_id";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "service_provider_id";

	
	
				$fdata["FieldPermissions"] = true;

				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

		
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
	
		
	


		$edata["IsRequired"] = true;

	
	
			$edata["acceptFileTypes"] = ".+$";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings




	$tdataservice_provider["service_provider_id"] = $fdata;
//	service_provider_business_business_id
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "service_provider_business_business_id";
	$fdata["GoodName"] = "service_provider_business_business_id";
	$fdata["ownerTable"] = "service_provider";
	$fdata["Label"] = GetFieldLabel("service_provider","service_provider_business_business_id");
	$fdata["FieldType"] = 3;

	
	
	
			
	
	
	
	
	
	

	
	
	
	
		$fdata["strField"] = "service_provider_business_business_id";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "service_provider_business_business_id";

	
	
			
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

		
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
	
		
	


		$edata["IsRequired"] = true;

	
	
			$edata["acceptFileTypes"] = ".+$";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;








	$tdataservice_provider["service_provider_business_business_id"] = $fdata;
//	service_provider_provider_provider_id
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "service_provider_provider_provider_id";
	$fdata["GoodName"] = "service_provider_provider_provider_id";
	$fdata["ownerTable"] = "service_provider";
	$fdata["Label"] = GetFieldLabel("service_provider","service_provider_provider_provider_id");
	$fdata["FieldType"] = 3;

	
	
	
			
		$fdata["bListPage"] = true;

		$fdata["bAddPage"] = true;

		$fdata["bInlineAdd"] = true;

		$fdata["bEditPage"] = true;

		$fdata["bInlineEdit"] = true;

		$fdata["bUpdateSelected"] = true;


		$fdata["bViewPage"] = true;

		$fdata["bAdvancedSearch"] = true;

		$fdata["bPrinterPage"] = true;

		$fdata["bExportPage"] = true;

		$fdata["strField"] = "service_provider_provider_provider_id";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "service_provider_provider_provider_id";

	
	
				$fdata["FieldPermissions"] = true;

				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

		
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Lookup wizard");

	
	
		
	
// Begin Lookup settings
				$edata["LookupType"] = 2;
	$edata["LookupTable"] = "provider";
		$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
		
	$edata["LinkField"] = "provider_id";
	$edata["LinkFieldType"] = 0;
	$edata["DisplayField"] = "concat(provider_title_en,' -  ',provider_title_ar)";
	
	

		$edata["CustomDisplay"] = "true";

	$edata["LookupOrderBy"] = "";

	
	
	
	

	
	
		$edata["SelectSize"] = 1;

// End Lookup Settings


		$edata["IsRequired"] = true;

	
	
			$edata["acceptFileTypes"] = ".+$";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Equals";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings




	$tdataservice_provider["service_provider_provider_provider_id"] = $fdata;
//	service_provider_service_service_id
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "service_provider_service_service_id";
	$fdata["GoodName"] = "service_provider_service_service_id";
	$fdata["ownerTable"] = "service_provider";
	$fdata["Label"] = GetFieldLabel("service_provider","service_provider_service_service_id");
	$fdata["FieldType"] = 3;

	
	
	
			
		$fdata["bListPage"] = true;

		$fdata["bAddPage"] = true;

		$fdata["bInlineAdd"] = true;

		$fdata["bEditPage"] = true;

		$fdata["bInlineEdit"] = true;

		$fdata["bUpdateSelected"] = true;


		$fdata["bViewPage"] = true;

		$fdata["bAdvancedSearch"] = true;

		$fdata["bPrinterPage"] = true;

		$fdata["bExportPage"] = true;

		$fdata["strField"] = "service_provider_service_service_id";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "service_provider_service_service_id";

	
	
				$fdata["FieldPermissions"] = true;

				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

		
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Lookup wizard");

	
	
		
	
// Begin Lookup settings
				$edata["LookupType"] = 2;
	$edata["LookupTable"] = "service";
		$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
		
	$edata["LinkField"] = "service_id";
	$edata["LinkFieldType"] = 0;
	$edata["DisplayField"] = "concat(service_title_en,' -  ',service_title_ar)";
	
	

		$edata["CustomDisplay"] = "true";

	$edata["LookupOrderBy"] = "";

	
	
	
	

	
	
		$edata["SelectSize"] = 1;

// End Lookup Settings


		$edata["IsRequired"] = true;

	
	
			$edata["acceptFileTypes"] = ".+$";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Equals";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings




	$tdataservice_provider["service_provider_service_service_id"] = $fdata;
//	service_provider_status_id
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "service_provider_status_id";
	$fdata["GoodName"] = "service_provider_status_id";
	$fdata["ownerTable"] = "service_provider";
	$fdata["Label"] = GetFieldLabel("service_provider","service_provider_status_id");
	$fdata["FieldType"] = 3;

	
	
	
			
	
	
	
	
	
	

	
	
	
	
		$fdata["strField"] = "service_provider_status_id";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "service_provider_status_id";

	
	
			
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

		
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
	
		
	


		$edata["IsRequired"] = true;

	
	
			$edata["acceptFileTypes"] = ".+$";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;








	$tdataservice_provider["service_provider_status_id"] = $fdata;


$tables_data["service_provider"]=&$tdataservice_provider;
$field_labels["service_provider"] = &$fieldLabelsservice_provider;
$fieldToolTips["service_provider"] = &$fieldToolTipsservice_provider;
$placeHolders["service_provider"] = &$placeHoldersservice_provider;
$page_titles["service_provider"] = &$pageTitlesservice_provider;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["service_provider"] = array();

// tables which are master tables for current table (detail)
$masterTablesData["service_provider"] = array();


	
				$strOriginalDetailsTable="service";
	$masterParams = array();
	$masterParams["mDataSourceTable"]="service";
	$masterParams["mOriginalTable"]= $strOriginalDetailsTable;
	$masterParams["mShortTable"]= "service";
	$masterParams["masterKeys"]= array();
	$masterParams["detailKeys"]= array();
	
		$masterParams["dispChildCount"]= "1";
	$masterParams["hideChild"]= "0";
	$masterParams["dispMasterInfo"] = array();
			$masterParams["dispMasterInfo"][PAGE_ADD] = true;
			$masterParams["dispMasterInfo"][PAGE_LIST] = true;
			$masterParams["dispMasterInfo"][PAGE_PRINT] = true;
			$masterParams["dispMasterInfo"][PAGE_EDIT] = true;
			$masterParams["dispMasterInfo"][PAGE_VIEW] = true;

	$masterParams["previewOnList"]= 1;
	$masterParams["previewOnAdd"]= 0;
	$masterParams["previewOnEdit"]= 0;
	$masterParams["previewOnView"]= 0;
	$masterParams["proceedLink"]= 1;

	$masterParams["type"] = PAGE_LIST;
					$masterTablesData["service_provider"][0] = $masterParams;
				$masterTablesData["service_provider"][0]["masterKeys"] = array();
	$masterTablesData["service_provider"][0]["masterKeys"][]="service_service_type_id";
				$masterTablesData["service_provider"][0]["detailKeys"] = array();
	$masterTablesData["service_provider"][0]["detailKeys"][]="service_provider_service_service_id";
		
	
				$strOriginalDetailsTable="provider";
	$masterParams = array();
	$masterParams["mDataSourceTable"]="provider";
	$masterParams["mOriginalTable"]= $strOriginalDetailsTable;
	$masterParams["mShortTable"]= "provider";
	$masterParams["masterKeys"]= array();
	$masterParams["detailKeys"]= array();
	
		$masterParams["dispChildCount"]= "1";
	$masterParams["hideChild"]= "0";
	$masterParams["dispMasterInfo"] = array();
			$masterParams["dispMasterInfo"][PAGE_ADD] = true;
			$masterParams["dispMasterInfo"][PAGE_LIST] = true;
			$masterParams["dispMasterInfo"][PAGE_PRINT] = true;
			$masterParams["dispMasterInfo"][PAGE_EDIT] = true;
			$masterParams["dispMasterInfo"][PAGE_VIEW] = true;

	$masterParams["previewOnList"]= 1;
	$masterParams["previewOnAdd"]= 1;
	$masterParams["previewOnEdit"]= 1;
	$masterParams["previewOnView"]= 1;
	$masterParams["proceedLink"]= 1;

	$masterParams["type"] = PAGE_LIST;
					$masterTablesData["service_provider"][1] = $masterParams;
				$masterTablesData["service_provider"][1]["masterKeys"] = array();
	$masterTablesData["service_provider"][1]["masterKeys"][]="provider_id";
				$masterTablesData["service_provider"][1]["detailKeys"] = array();
	$masterTablesData["service_provider"][1]["detailKeys"][]="service_provider_provider_provider_id";
		
// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










function createSqlQuery_service_provider()
{
$proto3=array();
$proto3["m_strHead"] = "SELECT";
$proto3["m_strFieldList"] = "service_provider_id,  	service_provider_business_business_id,  	service_provider_provider_provider_id,  	service_provider_service_service_id,  	service_provider_status_id";
$proto3["m_strFrom"] = "FROM service_provider";
$proto3["m_strWhere"] = "";
$proto3["m_strOrderBy"] = "";
	
		;
			$proto3["cipherer"] = null;
$proto5=array();
$proto5["m_sql"] = "";
$proto5["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto5["m_column"]=$obj;
$proto5["m_contained"] = array();
$proto5["m_strCase"] = "";
$proto5["m_havingmode"] = false;
$proto5["m_inBrackets"] = false;
$proto5["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto5);

$proto3["m_where"] = $obj;
$proto7=array();
$proto7["m_sql"] = "";
$proto7["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto7["m_column"]=$obj;
$proto7["m_contained"] = array();
$proto7["m_strCase"] = "";
$proto7["m_havingmode"] = false;
$proto7["m_inBrackets"] = false;
$proto7["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto7);

$proto3["m_having"] = $obj;
$proto3["m_fieldlist"] = array();
						$proto9=array();
			$obj = new SQLField(array(
	"m_strName" => "service_provider_id",
	"m_strTable" => "service_provider",
	"m_srcTableName" => "service_provider"
));

$proto9["m_sql"] = "service_provider_id";
$proto9["m_srcTableName"] = "service_provider";
$proto9["m_expr"]=$obj;
$proto9["m_alias"] = "";
$obj = new SQLFieldListItem($proto9);

$proto3["m_fieldlist"][]=$obj;
						$proto11=array();
			$obj = new SQLField(array(
	"m_strName" => "service_provider_business_business_id",
	"m_strTable" => "service_provider",
	"m_srcTableName" => "service_provider"
));

$proto11["m_sql"] = "service_provider_business_business_id";
$proto11["m_srcTableName"] = "service_provider";
$proto11["m_expr"]=$obj;
$proto11["m_alias"] = "";
$obj = new SQLFieldListItem($proto11);

$proto3["m_fieldlist"][]=$obj;
						$proto13=array();
			$obj = new SQLField(array(
	"m_strName" => "service_provider_provider_provider_id",
	"m_strTable" => "service_provider",
	"m_srcTableName" => "service_provider"
));

$proto13["m_sql"] = "service_provider_provider_provider_id";
$proto13["m_srcTableName"] = "service_provider";
$proto13["m_expr"]=$obj;
$proto13["m_alias"] = "";
$obj = new SQLFieldListItem($proto13);

$proto3["m_fieldlist"][]=$obj;
						$proto15=array();
			$obj = new SQLField(array(
	"m_strName" => "service_provider_service_service_id",
	"m_strTable" => "service_provider",
	"m_srcTableName" => "service_provider"
));

$proto15["m_sql"] = "service_provider_service_service_id";
$proto15["m_srcTableName"] = "service_provider";
$proto15["m_expr"]=$obj;
$proto15["m_alias"] = "";
$obj = new SQLFieldListItem($proto15);

$proto3["m_fieldlist"][]=$obj;
						$proto17=array();
			$obj = new SQLField(array(
	"m_strName" => "service_provider_status_id",
	"m_strTable" => "service_provider",
	"m_srcTableName" => "service_provider"
));

$proto17["m_sql"] = "service_provider_status_id";
$proto17["m_srcTableName"] = "service_provider";
$proto17["m_expr"]=$obj;
$proto17["m_alias"] = "";
$obj = new SQLFieldListItem($proto17);

$proto3["m_fieldlist"][]=$obj;
$proto3["m_fromlist"] = array();
												$proto19=array();
$proto19["m_link"] = "SQLL_MAIN";
			$proto20=array();
$proto20["m_strName"] = "service_provider";
$proto20["m_srcTableName"] = "service_provider";
$proto20["m_columns"] = array();
$proto20["m_columns"][] = "service_provider_id";
$proto20["m_columns"][] = "service_provider_business_business_id";
$proto20["m_columns"][] = "service_provider_provider_provider_id";
$proto20["m_columns"][] = "service_provider_service_service_id";
$proto20["m_columns"][] = "service_provider_status_id";
$obj = new SQLTable($proto20);

$proto19["m_table"] = $obj;
$proto19["m_sql"] = "service_provider";
$proto19["m_alias"] = "";
$proto19["m_srcTableName"] = "service_provider";
$proto21=array();
$proto21["m_sql"] = "";
$proto21["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto21["m_column"]=$obj;
$proto21["m_contained"] = array();
$proto21["m_strCase"] = "";
$proto21["m_havingmode"] = false;
$proto21["m_inBrackets"] = false;
$proto21["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto21);

$proto19["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto19);

$proto3["m_fromlist"][]=$obj;
$proto3["m_groupby"] = array();
$proto3["m_orderby"] = array();
$proto3["m_srcTableName"]="service_provider";		
$obj = new SQLQuery($proto3);

	return $obj;
}
$queryData_service_provider = createSqlQuery_service_provider();


	
		;

					

$tdataservice_provider[".sqlquery"] = $queryData_service_provider;

$tableEvents["service_provider"] = new eventsBase;
$tdataservice_provider[".hasEvents"] = false;

?>