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




$tdataappoitment = array();
	$tdataappoitment[".truncateText"] = true;
	$tdataappoitment[".NumberOfChars"] = 80;
	$tdataappoitment[".ShortName"] = "appoitment";
	$tdataappoitment[".OwnerID"] = "appoitment_business_business_id";
	$tdataappoitment[".OriginalTable"] = "appoitment";

//	field labels
$fieldLabelsappoitment = array();
$fieldToolTipsappoitment = array();
$pageTitlesappoitment = array();
$placeHoldersappoitment = array();

if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsappoitment["English"] = array();
	$fieldToolTipsappoitment["English"] = array();
	$placeHoldersappoitment["English"] = array();
	$pageTitlesappoitment["English"] = array();
	$fieldLabelsappoitment["English"]["appoitment_id"] = "ID";
	$fieldToolTipsappoitment["English"]["appoitment_id"] = "";
	$placeHoldersappoitment["English"]["appoitment_id"] = "";
	$fieldLabelsappoitment["English"]["appoitment_service_type_id"] = "Type";
	$fieldToolTipsappoitment["English"]["appoitment_service_type_id"] = "";
	$placeHoldersappoitment["English"]["appoitment_service_type_id"] = "";
	$fieldLabelsappoitment["English"]["appoitment_booking_datetime"] = "Booked in";
	$fieldToolTipsappoitment["English"]["appoitment_booking_datetime"] = "";
	$placeHoldersappoitment["English"]["appoitment_booking_datetime"] = "";
	$fieldLabelsappoitment["English"]["appoitment_datetime_from"] = "From";
	$fieldToolTipsappoitment["English"]["appoitment_datetime_from"] = "";
	$placeHoldersappoitment["English"]["appoitment_datetime_from"] = "";
	$fieldLabelsappoitment["English"]["appoitment_datetime_to"] = "To";
	$fieldToolTipsappoitment["English"]["appoitment_datetime_to"] = "";
	$placeHoldersappoitment["English"]["appoitment_datetime_to"] = "";
	$fieldLabelsappoitment["English"]["appoitment_satuts"] = "Satuts";
	$fieldToolTipsappoitment["English"]["appoitment_satuts"] = "";
	$placeHoldersappoitment["English"]["appoitment_satuts"] = "";
	$fieldLabelsappoitment["English"]["appoitment_client_name"] = "Name";
	$fieldToolTipsappoitment["English"]["appoitment_client_name"] = "";
	$placeHoldersappoitment["English"]["appoitment_client_name"] = "";
	$fieldLabelsappoitment["English"]["appoitment_client_email"] = "Email";
	$fieldToolTipsappoitment["English"]["appoitment_client_email"] = "";
	$placeHoldersappoitment["English"]["appoitment_client_email"] = "";
	$fieldLabelsappoitment["English"]["appoitment_client_mobile"] = "Mobile";
	$fieldToolTipsappoitment["English"]["appoitment_client_mobile"] = "";
	$placeHoldersappoitment["English"]["appoitment_client_mobile"] = "";
	$fieldLabelsappoitment["English"]["appoitment_client_adress"] = "Adress";
	$fieldToolTipsappoitment["English"]["appoitment_client_adress"] = "";
	$placeHoldersappoitment["English"]["appoitment_client_adress"] = "";
	$fieldLabelsappoitment["English"]["appoitment_client_city"] = "City";
	$fieldToolTipsappoitment["English"]["appoitment_client_city"] = "";
	$placeHoldersappoitment["English"]["appoitment_client_city"] = "";
	$fieldLabelsappoitment["English"]["appoitment_client_country"] = "Country";
	$fieldToolTipsappoitment["English"]["appoitment_client_country"] = "";
	$placeHoldersappoitment["English"]["appoitment_client_country"] = "";
	$fieldLabelsappoitment["English"]["appoitment_service_service_id"] = "Service";
	$fieldToolTipsappoitment["English"]["appoitment_service_service_id"] = "";
	$placeHoldersappoitment["English"]["appoitment_service_service_id"] = "";
	$fieldLabelsappoitment["English"]["appoitment_provider_provider_id"] = "Provider";
	$fieldToolTipsappoitment["English"]["appoitment_provider_provider_id"] = "";
	$placeHoldersappoitment["English"]["appoitment_provider_provider_id"] = "";
	$fieldLabelsappoitment["English"]["appoitment_business_business_id"] = "Business Id";
	$fieldToolTipsappoitment["English"]["appoitment_business_business_id"] = "";
	$placeHoldersappoitment["English"]["appoitment_business_business_id"] = "";
	if (count($fieldToolTipsappoitment["English"]))
		$tdataappoitment[".isUseToolTips"] = true;
}
if(mlang_getcurrentlang()=="Arabic")
{
	$fieldLabelsappoitment["Arabic"] = array();
	$fieldToolTipsappoitment["Arabic"] = array();
	$placeHoldersappoitment["Arabic"] = array();
	$pageTitlesappoitment["Arabic"] = array();
	$fieldLabelsappoitment["Arabic"]["appoitment_id"] = "رقم الحجز";
	$fieldToolTipsappoitment["Arabic"]["appoitment_id"] = "";
	$placeHoldersappoitment["Arabic"]["appoitment_id"] = "";
	$fieldLabelsappoitment["Arabic"]["appoitment_service_type_id"] = "النوع";
	$fieldToolTipsappoitment["Arabic"]["appoitment_service_type_id"] = "";
	$placeHoldersappoitment["Arabic"]["appoitment_service_type_id"] = "";
	$fieldLabelsappoitment["Arabic"]["appoitment_booking_datetime"] = "تاريخ الحجز";
	$fieldToolTipsappoitment["Arabic"]["appoitment_booking_datetime"] = "";
	$placeHoldersappoitment["Arabic"]["appoitment_booking_datetime"] = "";
	$fieldLabelsappoitment["Arabic"]["appoitment_datetime_from"] = "ابتداء";
	$fieldToolTipsappoitment["Arabic"]["appoitment_datetime_from"] = "";
	$placeHoldersappoitment["Arabic"]["appoitment_datetime_from"] = "";
	$fieldLabelsappoitment["Arabic"]["appoitment_datetime_to"] = "الى";
	$fieldToolTipsappoitment["Arabic"]["appoitment_datetime_to"] = "";
	$placeHoldersappoitment["Arabic"]["appoitment_datetime_to"] = "";
	$fieldLabelsappoitment["Arabic"]["appoitment_satuts"] = "الحالة";
	$fieldToolTipsappoitment["Arabic"]["appoitment_satuts"] = "";
	$placeHoldersappoitment["Arabic"]["appoitment_satuts"] = "";
	$fieldLabelsappoitment["Arabic"]["appoitment_client_name"] = "الاسم";
	$fieldToolTipsappoitment["Arabic"]["appoitment_client_name"] = "";
	$placeHoldersappoitment["Arabic"]["appoitment_client_name"] = "";
	$fieldLabelsappoitment["Arabic"]["appoitment_client_email"] = "البريد";
	$fieldToolTipsappoitment["Arabic"]["appoitment_client_email"] = "";
	$placeHoldersappoitment["Arabic"]["appoitment_client_email"] = "";
	$fieldLabelsappoitment["Arabic"]["appoitment_client_mobile"] = "الموبايل";
	$fieldToolTipsappoitment["Arabic"]["appoitment_client_mobile"] = "";
	$placeHoldersappoitment["Arabic"]["appoitment_client_mobile"] = "";
	$fieldLabelsappoitment["Arabic"]["appoitment_client_adress"] = "العنوان";
	$fieldToolTipsappoitment["Arabic"]["appoitment_client_adress"] = "";
	$placeHoldersappoitment["Arabic"]["appoitment_client_adress"] = "";
	$fieldLabelsappoitment["Arabic"]["appoitment_client_city"] = "المدينة";
	$fieldToolTipsappoitment["Arabic"]["appoitment_client_city"] = "";
	$placeHoldersappoitment["Arabic"]["appoitment_client_city"] = "";
	$fieldLabelsappoitment["Arabic"]["appoitment_client_country"] = "الدولة";
	$fieldToolTipsappoitment["Arabic"]["appoitment_client_country"] = "";
	$placeHoldersappoitment["Arabic"]["appoitment_client_country"] = "";
	$fieldLabelsappoitment["Arabic"]["appoitment_service_service_id"] = "الخدمة";
	$fieldToolTipsappoitment["Arabic"]["appoitment_service_service_id"] = "";
	$placeHoldersappoitment["Arabic"]["appoitment_service_service_id"] = "";
	$fieldLabelsappoitment["Arabic"]["appoitment_provider_provider_id"] = "الموظف";
	$fieldToolTipsappoitment["Arabic"]["appoitment_provider_provider_id"] = "";
	$placeHoldersappoitment["Arabic"]["appoitment_provider_provider_id"] = "";
	$fieldLabelsappoitment["Arabic"]["appoitment_business_business_id"] = "Appoitment Business Business Id";
	$fieldToolTipsappoitment["Arabic"]["appoitment_business_business_id"] = "";
	$placeHoldersappoitment["Arabic"]["appoitment_business_business_id"] = "";
	if (count($fieldToolTipsappoitment["Arabic"]))
		$tdataappoitment[".isUseToolTips"] = true;
}
if(mlang_getcurrentlang()=="")
{
	$fieldLabelsappoitment[""] = array();
	$fieldToolTipsappoitment[""] = array();
	$placeHoldersappoitment[""] = array();
	$pageTitlesappoitment[""] = array();
	if (count($fieldToolTipsappoitment[""]))
		$tdataappoitment[".isUseToolTips"] = true;
}


	$tdataappoitment[".NCSearch"] = true;



$tdataappoitment[".shortTableName"] = "appoitment";
$tdataappoitment[".nSecOptions"] = 1;
$tdataappoitment[".recsPerRowPrint"] = 1;
$tdataappoitment[".mainTableOwnerID"] = "appoitment_business_business_id";
$tdataappoitment[".moveNext"] = 1;
$tdataappoitment[".entityType"] = 0;

$tdataappoitment[".strOriginalTableName"] = "appoitment";

	



$tdataappoitment[".showAddInPopup"] = true;

$tdataappoitment[".showEditInPopup"] = true;

$tdataappoitment[".showViewInPopup"] = true;

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


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

$tdataappoitment[".listAjax"] = false;

	$tdataappoitment[".audit"] = false;

	$tdataappoitment[".locking"] = false;

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

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

$tdataappoitment[".list"] = true;

$tdataappoitment[".inlineEdit"] = true;

$tdataappoitment[".updateSelected"] = true;

$tdataappoitment[".reorderRecordsByHeader"] = true;


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

$tdataappoitment[".import"] = true;

$tdataappoitment[".exportTo"] = true;

$tdataappoitment[".printFriendly"] = true;

$tdataappoitment[".delete"] = true;

$tdataappoitment[".showSimpleSearchOptions"] = false;

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

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

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

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

$tdataappoitment[".isUseAjaxSuggest"] = true;

$tdataappoitment[".rowHighlite"] = true;





$tdataappoitment[".ajaxCodeSnippetAdded"] = false;

$tdataappoitment[".buttonsAdded"] = false;

$tdataappoitment[".addPageEvents"] = true;

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



$tdataappoitment[".badgeColor"] = "008b8b";


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

$tdataappoitment[".allSearchFields"][] = "appoitment_id";
	$tdataappoitment[".allSearchFields"][] = "appoitment_service_type_id";
	$tdataappoitment[".allSearchFields"][] = "appoitment_service_service_id";
	$tdataappoitment[".allSearchFields"][] = "appoitment_provider_provider_id";
	$tdataappoitment[".allSearchFields"][] = "appoitment_booking_datetime";
	$tdataappoitment[".allSearchFields"][] = "appoitment_datetime_from";
	$tdataappoitment[".allSearchFields"][] = "appoitment_datetime_to";
	$tdataappoitment[".allSearchFields"][] = "appoitment_client_name";
	$tdataappoitment[".allSearchFields"][] = "appoitment_client_email";
	$tdataappoitment[".allSearchFields"][] = "appoitment_client_mobile";
	$tdataappoitment[".allSearchFields"][] = "appoitment_satuts";
	$tdataappoitment[".allSearchFields"][] = "appoitment_client_adress";
	$tdataappoitment[".allSearchFields"][] = "appoitment_client_city";
	$tdataappoitment[".allSearchFields"][] = "appoitment_client_country";
	
$tdataappoitment[".filterFields"][] = "appoitment_satuts";

$tdataappoitment[".googleLikeFields"] = array();
$tdataappoitment[".googleLikeFields"][] = "appoitment_id";
$tdataappoitment[".googleLikeFields"][] = "appoitment_business_business_id";
$tdataappoitment[".googleLikeFields"][] = "appoitment_service_service_id";
$tdataappoitment[".googleLikeFields"][] = "appoitment_service_type_id";
$tdataappoitment[".googleLikeFields"][] = "appoitment_provider_provider_id";
$tdataappoitment[".googleLikeFields"][] = "appoitment_booking_datetime";
$tdataappoitment[".googleLikeFields"][] = "appoitment_datetime_from";
$tdataappoitment[".googleLikeFields"][] = "appoitment_datetime_to";
$tdataappoitment[".googleLikeFields"][] = "appoitment_satuts";
$tdataappoitment[".googleLikeFields"][] = "appoitment_client_name";
$tdataappoitment[".googleLikeFields"][] = "appoitment_client_email";
$tdataappoitment[".googleLikeFields"][] = "appoitment_client_mobile";
$tdataappoitment[".googleLikeFields"][] = "appoitment_client_adress";
$tdataappoitment[".googleLikeFields"][] = "appoitment_client_city";
$tdataappoitment[".googleLikeFields"][] = "appoitment_client_country";


$tdataappoitment[".advSearchFields"] = array();
$tdataappoitment[".advSearchFields"][] = "appoitment_id";
$tdataappoitment[".advSearchFields"][] = "appoitment_service_type_id";
$tdataappoitment[".advSearchFields"][] = "appoitment_service_service_id";
$tdataappoitment[".advSearchFields"][] = "appoitment_provider_provider_id";
$tdataappoitment[".advSearchFields"][] = "appoitment_booking_datetime";
$tdataappoitment[".advSearchFields"][] = "appoitment_datetime_from";
$tdataappoitment[".advSearchFields"][] = "appoitment_datetime_to";
$tdataappoitment[".advSearchFields"][] = "appoitment_client_name";
$tdataappoitment[".advSearchFields"][] = "appoitment_client_email";
$tdataappoitment[".advSearchFields"][] = "appoitment_client_mobile";
$tdataappoitment[".advSearchFields"][] = "appoitment_satuts";
$tdataappoitment[".advSearchFields"][] = "appoitment_client_adress";
$tdataappoitment[".advSearchFields"][] = "appoitment_client_city";
$tdataappoitment[".advSearchFields"][] = "appoitment_client_country";

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

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

$tdataappoitment[".nPrinterSplitRecords"] = 40;

$tdataappoitment[".nPrinterPDFSplitRecords"] = 40;



$tdataappoitment[".geocodingEnabled"] = false;





$tdataappoitment[".listGridLayout"] = 3;





// view page pdf

// print page pdf


$tdataappoitment[".pageSize"] = 20;

$tdataappoitment[".warnLeavingPages"] = true;



$tstrOrderBy = "ORDER BY appoitment_id DESC";
if(strlen($tstrOrderBy) && strtolower(substr($tstrOrderBy,0,8))!="order by")
	$tstrOrderBy = "order by ".$tstrOrderBy;
$tdataappoitment[".strOrderBy"] = $tstrOrderBy;

$tdataappoitment[".orderindexes"] = array();
$tdataappoitment[".orderindexes"][] = array(1, (0 ? "ASC" : "DESC"), "appoitment_id");

$tdataappoitment[".sqlHead"] = "SELECT appoitment_id,  appoitment_business_business_id,  appoitment_service_service_id,  appoitment_service_type_id,  appoitment_provider_provider_id,  appoitment_booking_datetime,  appoitment_datetime_from,  appoitment_datetime_to,  appoitment_satuts,  appoitment_client_name,  appoitment_client_email,  appoitment_client_mobile,  appoitment_client_adress,  appoitment_client_city,  appoitment_client_country";
$tdataappoitment[".sqlFrom"] = "FROM appoitment";
$tdataappoitment[".sqlWhereExpr"] = "";
$tdataappoitment[".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;
$tdataappoitment[".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;
$tdataappoitment[".arrGroupsPerPage"] = $arrGPP;

$tdataappoitment[".highlightSearchResults"] = true;

$tableKeysappoitment = array();
$tableKeysappoitment[] = "appoitment_id";
$tdataappoitment[".Keys"] = $tableKeysappoitment;

$tdataappoitment[".listFields"] = array();
$tdataappoitment[".listFields"][] = "appoitment_id";
$tdataappoitment[".listFields"][] = "appoitment_service_type_id";
$tdataappoitment[".listFields"][] = "appoitment_service_service_id";
$tdataappoitment[".listFields"][] = "appoitment_provider_provider_id";
$tdataappoitment[".listFields"][] = "appoitment_booking_datetime";
$tdataappoitment[".listFields"][] = "appoitment_datetime_from";
$tdataappoitment[".listFields"][] = "appoitment_datetime_to";
$tdataappoitment[".listFields"][] = "appoitment_client_name";
$tdataappoitment[".listFields"][] = "appoitment_client_mobile";
$tdataappoitment[".listFields"][] = "appoitment_satuts";

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


$tdataappoitment[".viewFields"] = array();
$tdataappoitment[".viewFields"][] = "appoitment_id";
$tdataappoitment[".viewFields"][] = "appoitment_service_type_id";
$tdataappoitment[".viewFields"][] = "appoitment_service_service_id";
$tdataappoitment[".viewFields"][] = "appoitment_provider_provider_id";
$tdataappoitment[".viewFields"][] = "appoitment_booking_datetime";
$tdataappoitment[".viewFields"][] = "appoitment_datetime_from";
$tdataappoitment[".viewFields"][] = "appoitment_datetime_to";
$tdataappoitment[".viewFields"][] = "appoitment_client_name";
$tdataappoitment[".viewFields"][] = "appoitment_client_email";
$tdataappoitment[".viewFields"][] = "appoitment_client_mobile";
$tdataappoitment[".viewFields"][] = "appoitment_satuts";
$tdataappoitment[".viewFields"][] = "appoitment_client_adress";
$tdataappoitment[".viewFields"][] = "appoitment_client_city";
$tdataappoitment[".viewFields"][] = "appoitment_client_country";

$tdataappoitment[".addFields"] = array();
$tdataappoitment[".addFields"][] = "appoitment_business_business_id";
$tdataappoitment[".addFields"][] = "appoitment_service_type_id";
$tdataappoitment[".addFields"][] = "appoitment_service_service_id";
$tdataappoitment[".addFields"][] = "appoitment_provider_provider_id";
$tdataappoitment[".addFields"][] = "appoitment_booking_datetime";
$tdataappoitment[".addFields"][] = "appoitment_datetime_from";
$tdataappoitment[".addFields"][] = "appoitment_datetime_to";
$tdataappoitment[".addFields"][] = "appoitment_client_name";
$tdataappoitment[".addFields"][] = "appoitment_client_email";
$tdataappoitment[".addFields"][] = "appoitment_client_mobile";
$tdataappoitment[".addFields"][] = "appoitment_satuts";

$tdataappoitment[".masterListFields"] = array();
$tdataappoitment[".masterListFields"][] = "appoitment_business_business_id";
$tdataappoitment[".masterListFields"][] = "appoitment_id";
$tdataappoitment[".masterListFields"][] = "appoitment_service_type_id";
$tdataappoitment[".masterListFields"][] = "appoitment_service_service_id";
$tdataappoitment[".masterListFields"][] = "appoitment_provider_provider_id";
$tdataappoitment[".masterListFields"][] = "appoitment_booking_datetime";
$tdataappoitment[".masterListFields"][] = "appoitment_datetime_from";
$tdataappoitment[".masterListFields"][] = "appoitment_datetime_to";
$tdataappoitment[".masterListFields"][] = "appoitment_client_name";
$tdataappoitment[".masterListFields"][] = "appoitment_client_email";
$tdataappoitment[".masterListFields"][] = "appoitment_client_mobile";
$tdataappoitment[".masterListFields"][] = "appoitment_satuts";
$tdataappoitment[".masterListFields"][] = "appoitment_client_adress";
$tdataappoitment[".masterListFields"][] = "appoitment_client_city";
$tdataappoitment[".masterListFields"][] = "appoitment_client_country";

$tdataappoitment[".inlineAddFields"] = array();
$tdataappoitment[".inlineAddFields"][] = "appoitment_service_type_id";
$tdataappoitment[".inlineAddFields"][] = "appoitment_service_service_id";
$tdataappoitment[".inlineAddFields"][] = "appoitment_provider_provider_id";
$tdataappoitment[".inlineAddFields"][] = "appoitment_booking_datetime";
$tdataappoitment[".inlineAddFields"][] = "appoitment_datetime_from";
$tdataappoitment[".inlineAddFields"][] = "appoitment_datetime_to";
$tdataappoitment[".inlineAddFields"][] = "appoitment_client_name";
$tdataappoitment[".inlineAddFields"][] = "appoitment_client_mobile";

$tdataappoitment[".editFields"] = array();
$tdataappoitment[".editFields"][] = "appoitment_service_type_id";
$tdataappoitment[".editFields"][] = "appoitment_service_service_id";
$tdataappoitment[".editFields"][] = "appoitment_provider_provider_id";
$tdataappoitment[".editFields"][] = "appoitment_booking_datetime";
$tdataappoitment[".editFields"][] = "appoitment_datetime_from";
$tdataappoitment[".editFields"][] = "appoitment_datetime_to";
$tdataappoitment[".editFields"][] = "appoitment_client_name";
$tdataappoitment[".editFields"][] = "appoitment_client_email";
$tdataappoitment[".editFields"][] = "appoitment_client_mobile";
$tdataappoitment[".editFields"][] = "appoitment_satuts";
$tdataappoitment[".editFields"][] = "appoitment_client_adress";
$tdataappoitment[".editFields"][] = "appoitment_client_city";
$tdataappoitment[".editFields"][] = "appoitment_client_country";

$tdataappoitment[".inlineEditFields"] = array();
$tdataappoitment[".inlineEditFields"][] = "appoitment_service_type_id";
$tdataappoitment[".inlineEditFields"][] = "appoitment_service_service_id";
$tdataappoitment[".inlineEditFields"][] = "appoitment_provider_provider_id";
$tdataappoitment[".inlineEditFields"][] = "appoitment_booking_datetime";
$tdataappoitment[".inlineEditFields"][] = "appoitment_datetime_from";
$tdataappoitment[".inlineEditFields"][] = "appoitment_datetime_to";
$tdataappoitment[".inlineEditFields"][] = "appoitment_client_name";
$tdataappoitment[".inlineEditFields"][] = "appoitment_client_mobile";

$tdataappoitment[".updateSelectedFields"] = array();
$tdataappoitment[".updateSelectedFields"][] = "appoitment_service_type_id";
$tdataappoitment[".updateSelectedFields"][] = "appoitment_service_service_id";
$tdataappoitment[".updateSelectedFields"][] = "appoitment_provider_provider_id";
$tdataappoitment[".updateSelectedFields"][] = "appoitment_booking_datetime";
$tdataappoitment[".updateSelectedFields"][] = "appoitment_datetime_from";
$tdataappoitment[".updateSelectedFields"][] = "appoitment_datetime_to";
$tdataappoitment[".updateSelectedFields"][] = "appoitment_client_name";
$tdataappoitment[".updateSelectedFields"][] = "appoitment_client_email";
$tdataappoitment[".updateSelectedFields"][] = "appoitment_client_mobile";
$tdataappoitment[".updateSelectedFields"][] = "appoitment_satuts";
$tdataappoitment[".updateSelectedFields"][] = "appoitment_client_adress";
$tdataappoitment[".updateSelectedFields"][] = "appoitment_client_city";
$tdataappoitment[".updateSelectedFields"][] = "appoitment_client_country";


$tdataappoitment[".exportFields"] = array();
$tdataappoitment[".exportFields"][] = "appoitment_id";
$tdataappoitment[".exportFields"][] = "appoitment_service_type_id";
$tdataappoitment[".exportFields"][] = "appoitment_service_service_id";
$tdataappoitment[".exportFields"][] = "appoitment_provider_provider_id";
$tdataappoitment[".exportFields"][] = "appoitment_booking_datetime";
$tdataappoitment[".exportFields"][] = "appoitment_datetime_from";
$tdataappoitment[".exportFields"][] = "appoitment_datetime_to";
$tdataappoitment[".exportFields"][] = "appoitment_client_name";
$tdataappoitment[".exportFields"][] = "appoitment_client_email";
$tdataappoitment[".exportFields"][] = "appoitment_client_mobile";
$tdataappoitment[".exportFields"][] = "appoitment_satuts";
$tdataappoitment[".exportFields"][] = "appoitment_client_adress";
$tdataappoitment[".exportFields"][] = "appoitment_client_city";
$tdataappoitment[".exportFields"][] = "appoitment_client_country";

$tdataappoitment[".importFields"] = array();
$tdataappoitment[".importFields"][] = "appoitment_id";
$tdataappoitment[".importFields"][] = "appoitment_service_service_id";
$tdataappoitment[".importFields"][] = "appoitment_service_type_id";
$tdataappoitment[".importFields"][] = "appoitment_provider_provider_id";
$tdataappoitment[".importFields"][] = "appoitment_booking_datetime";
$tdataappoitment[".importFields"][] = "appoitment_datetime_from";
$tdataappoitment[".importFields"][] = "appoitment_datetime_to";
$tdataappoitment[".importFields"][] = "appoitment_satuts";
$tdataappoitment[".importFields"][] = "appoitment_client_name";
$tdataappoitment[".importFields"][] = "appoitment_client_email";
$tdataappoitment[".importFields"][] = "appoitment_client_mobile";
$tdataappoitment[".importFields"][] = "appoitment_client_adress";
$tdataappoitment[".importFields"][] = "appoitment_client_city";
$tdataappoitment[".importFields"][] = "appoitment_client_country";

$tdataappoitment[".printFields"] = array();
$tdataappoitment[".printFields"][] = "appoitment_id";
$tdataappoitment[".printFields"][] = "appoitment_service_type_id";
$tdataappoitment[".printFields"][] = "appoitment_service_service_id";
$tdataappoitment[".printFields"][] = "appoitment_provider_provider_id";
$tdataappoitment[".printFields"][] = "appoitment_booking_datetime";
$tdataappoitment[".printFields"][] = "appoitment_datetime_from";
$tdataappoitment[".printFields"][] = "appoitment_datetime_to";
$tdataappoitment[".printFields"][] = "appoitment_client_name";
$tdataappoitment[".printFields"][] = "appoitment_client_email";
$tdataappoitment[".printFields"][] = "appoitment_client_mobile";
$tdataappoitment[".printFields"][] = "appoitment_satuts";
$tdataappoitment[".printFields"][] = "appoitment_client_adress";
$tdataappoitment[".printFields"][] = "appoitment_client_city";
$tdataappoitment[".printFields"][] = "appoitment_client_country";


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

	
		$fdata["AutoInc"] = true;

	
			
		$fdata["bListPage"] = true;

	
	
	
	
	

		$fdata["bViewPage"] = true;

		$fdata["bAdvancedSearch"] = true;

		$fdata["bPrinterPage"] = true;

		$fdata["bExportPage"] = true;

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "appoitment_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




	$tdataappoitment["appoitment_id"] = $fdata;
//	appoitment_business_business_id
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "appoitment_business_business_id";
	$fdata["GoodName"] = "appoitment_business_business_id";
	$fdata["ownerTable"] = "appoitment";
	$fdata["Label"] = GetFieldLabel("appoitment","appoitment_business_business_id");
	$fdata["FieldType"] = 3;

	
	
	
			
	
		$fdata["bAddPage"] = true;

	
	
	
	

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "appoitment_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" => "Lookup wizard");

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

	
		
	$edata["LinkField"] = "business_id";
	$edata["LinkFieldType"] = 3;
	$edata["DisplayField"] = "business_name_en";
	
	

	
	$edata["LookupOrderBy"] = "";

	
	
	
		$edata["SimpleAdd"] = true;


	
	
		$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;








	$tdataappoitment["appoitment_business_business_id"] = $fdata;
//	appoitment_service_service_id
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "appoitment_service_service_id";
	$fdata["GoodName"] = "appoitment_service_service_id";
	$fdata["ownerTable"] = "appoitment";
	$fdata["Label"] = GetFieldLabel("appoitment","appoitment_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"] = "appoitment_service_service_id";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "appoitment_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["UseCategory"] = true;
	$edata["categoryFields"] = array();
	$edata["categoryFields"][] = array( "main" => "appoitment_service_type_id", "lookup" => "service_service_type_id" );

	
	
				//dependent dropdowns @deprecated data ?
	$edata["DependentLookups"] = array();
	$edata["DependentLookups"][] = "appoitment_provider_provider_id";

	
	
		$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




	$tdataappoitment["appoitment_service_service_id"] = $fdata;
//	appoitment_service_type_id
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "appoitment_service_type_id";
	$fdata["GoodName"] = "appoitment_service_type_id";
	$fdata["ownerTable"] = "appoitment";
	$fdata["Label"] = GetFieldLabel("appoitment","appoitment_service_type_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"] = "appoitment_service_type_id";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "appoitment_service_type_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_type";
		$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
		
	$edata["LinkField"] = "service_type_id";
	$edata["LinkFieldType"] = 0;
	$edata["DisplayField"] = "concat(service_type_title_en,' -  ',service_type_title_ar)";
	
	

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

	$edata["LookupOrderBy"] = "";

	
	
	
	
				//dependent dropdowns @deprecated data ?
	$edata["DependentLookups"] = array();
	$edata["DependentLookups"][] = "appoitment_service_service_id";

	
	
		$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




	$tdataappoitment["appoitment_service_type_id"] = $fdata;
//	appoitment_provider_provider_id
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "appoitment_provider_provider_id";
	$fdata["GoodName"] = "appoitment_provider_provider_id";
	$fdata["ownerTable"] = "appoitment";
	$fdata["Label"] = GetFieldLabel("appoitment","appoitment_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"] = "appoitment_provider_provider_id";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "appoitment_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_services_details";
		$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

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

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

	$edata["LookupOrderBy"] = "";

	
		$edata["UseCategory"] = true;
	$edata["categoryFields"] = array();
	$edata["categoryFields"][] = array( "main" => "appoitment_service_service_id", "lookup" => "service_provider_service_service_id" );

	
	

	
	
		$edata["SelectSize"] = 1;

// End Lookup Settings


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

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
							
	
	//	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




	$tdataappoitment["appoitment_provider_provider_id"] = $fdata;
//	appoitment_booking_datetime
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "appoitment_booking_datetime";
	$fdata["GoodName"] = "appoitment_booking_datetime";
	$fdata["ownerTable"] = "appoitment";
	$fdata["Label"] = GetFieldLabel("appoitment","appoitment_booking_datetime");
	$fdata["FieldType"] = 135;

	
	
	
			
		$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"] = "appoitment_booking_datetime";

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

	
	
				$fdata["FieldPermissions"] = true;

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

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

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

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

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

	$edata = array("EditFormat" => "Date");

		$edata["ShowTime"] = true;

	
		
	


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

		$edata["maxNumberOfFiles"] = 1;

	
	
		$edata["DateEditType"] = 11;
	$edata["InitialYearFactor"] = 0;
	$edata["LastYearFactor"] = 1;

	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	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("Equals", "More than", "Less than", "Between", EMPTY_SEARCH, NOT_EMPTY );
// the end of search options settings




	$tdataappoitment["appoitment_booking_datetime"] = $fdata;
//	appoitment_datetime_from
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "appoitment_datetime_from";
	$fdata["GoodName"] = "appoitment_datetime_from";
	$fdata["ownerTable"] = "appoitment";
	$fdata["Label"] = GetFieldLabel("appoitment","appoitment_datetime_from");
	$fdata["FieldType"] = 135;

	
	
	
			
		$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"] = "appoitment_datetime_from";

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

	
	
				$fdata["FieldPermissions"] = true;

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

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

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

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

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

	$edata = array("EditFormat" => "Date");

		$edata["ShowTime"] = true;

	
		
	


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

		$edata["maxNumberOfFiles"] = 1;

	
	
		$edata["DateEditType"] = 11;
	$edata["InitialYearFactor"] = 0;
	$edata["LastYearFactor"] = 10;

	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	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("Equals", "More than", "Less than", "Between", EMPTY_SEARCH, NOT_EMPTY );
// the end of search options settings




	$tdataappoitment["appoitment_datetime_from"] = $fdata;
//	appoitment_datetime_to
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "appoitment_datetime_to";
	$fdata["GoodName"] = "appoitment_datetime_to";
	$fdata["ownerTable"] = "appoitment";
	$fdata["Label"] = GetFieldLabel("appoitment","appoitment_datetime_to");
	$fdata["FieldType"] = 135;

	
	
	
			
		$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"] = "appoitment_datetime_to";

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

	
	
				$fdata["FieldPermissions"] = true;

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

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

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

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

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

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

	$edata = array("EditFormat" => "Date");

		$edata["ShowTime"] = true;

	
		
	


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

		$edata["maxNumberOfFiles"] = 1;

	
	
		$edata["DateEditType"] = 11;
	$edata["InitialYearFactor"] = 0;
	$edata["LastYearFactor"] = 10;

	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	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("Equals", "More than", "Less than", "Between", EMPTY_SEARCH, NOT_EMPTY );
// the end of search options settings




	$tdataappoitment["appoitment_datetime_to"] = $fdata;
//	appoitment_satuts
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 9;
	$fdata["strName"] = "appoitment_satuts";
	$fdata["GoodName"] = "appoitment_satuts";
	$fdata["ownerTable"] = "appoitment";
	$fdata["Label"] = GetFieldLabel("appoitment","appoitment_satuts");
	$fdata["FieldType"] = 3;

	
	
	
			
		$fdata["bListPage"] = true;

		$fdata["bAddPage"] = true;

	
		$fdata["bEditPage"] = true;

	
		$fdata["bUpdateSelected"] = true;


		$fdata["bViewPage"] = true;

		$fdata["bAdvancedSearch"] = true;

		$fdata["bPrinterPage"] = true;

		$fdata["bExportPage"] = true;

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

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

	
	
				$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"] = "status";
		$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
		
	$edata["LinkField"] = "status_id";
	$edata["LinkFieldType"] = 0;
	$edata["DisplayField"] = "status_title_en";
	
				$edata["LookupWhereCode"] = true;


	
	$edata["LookupOrderBy"] = "";

	
	
		$edata["AllowToAdd"] = true;

	

	
	
		$edata["SelectSize"] = 1;

// End Lookup Settings


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

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
							
	
	//	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


//Filters settings
	$fdata["filterTotals"] = 1;
		$fdata["filterMultiSelect"] = 2;
		$fdata["filterTotalFields"] = "appoitment_id";
		$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 1;
		$fdata["numberOfVisibleItems"] = 10;

			
	
	
//end of Filters settings


	$tdataappoitment["appoitment_satuts"] = $fdata;
//	appoitment_client_name
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 10;
	$fdata["strName"] = "appoitment_client_name";
	$fdata["GoodName"] = "appoitment_client_name";
	$fdata["ownerTable"] = "appoitment";
	$fdata["Label"] = GetFieldLabel("appoitment","appoitment_client_name");
	$fdata["FieldType"] = 200;

	
	
	
			
		$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"] = "appoitment_client_name";

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

	
	
				$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["acceptFileTypes"] = ".+$";

		$edata["maxNumberOfFiles"] = 1;

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

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=255";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	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




	$tdataappoitment["appoitment_client_name"] = $fdata;
//	appoitment_client_email
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 11;
	$fdata["strName"] = "appoitment_client_email";
	$fdata["GoodName"] = "appoitment_client_email";
	$fdata["ownerTable"] = "appoitment";
	$fdata["Label"] = GetFieldLabel("appoitment","appoitment_client_email");
	$fdata["FieldType"] = 200;

	
	
	
			
	
		$fdata["bAddPage"] = true;

	
		$fdata["bEditPage"] = true;

	
		$fdata["bUpdateSelected"] = true;


		$fdata["bViewPage"] = true;

		$fdata["bAdvancedSearch"] = true;

		$fdata["bPrinterPage"] = true;

		$fdata["bExportPage"] = true;

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

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

	
	
				$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["acceptFileTypes"] = ".+$";

		$edata["maxNumberOfFiles"] = 1;

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

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=255";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	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




	$tdataappoitment["appoitment_client_email"] = $fdata;
//	appoitment_client_mobile
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 12;
	$fdata["strName"] = "appoitment_client_mobile";
	$fdata["GoodName"] = "appoitment_client_mobile";
	$fdata["ownerTable"] = "appoitment";
	$fdata["Label"] = GetFieldLabel("appoitment","appoitment_client_mobile");
	$fdata["FieldType"] = 200;

	
	
	
			
		$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"] = "appoitment_client_mobile";

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

	
	
				$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["acceptFileTypes"] = ".+$";

		$edata["maxNumberOfFiles"] = 1;

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

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=255";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	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




	$tdataappoitment["appoitment_client_mobile"] = $fdata;
//	appoitment_client_adress
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 13;
	$fdata["strName"] = "appoitment_client_adress";
	$fdata["GoodName"] = "appoitment_client_adress";
	$fdata["ownerTable"] = "appoitment";
	$fdata["Label"] = GetFieldLabel("appoitment","appoitment_client_adress");
	$fdata["FieldType"] = 200;

	
	
	
			
	
	
	
		$fdata["bEditPage"] = true;

	
		$fdata["bUpdateSelected"] = true;


		$fdata["bViewPage"] = true;

		$fdata["bAdvancedSearch"] = true;

		$fdata["bPrinterPage"] = true;

		$fdata["bExportPage"] = true;

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

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

	
	
				$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["acceptFileTypes"] = ".+$";

		$edata["maxNumberOfFiles"] = 1;

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

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=255";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	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




	$tdataappoitment["appoitment_client_adress"] = $fdata;
//	appoitment_client_city
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 14;
	$fdata["strName"] = "appoitment_client_city";
	$fdata["GoodName"] = "appoitment_client_city";
	$fdata["ownerTable"] = "appoitment";
	$fdata["Label"] = GetFieldLabel("appoitment","appoitment_client_city");
	$fdata["FieldType"] = 200;

	
	
	
			
	
	
	
		$fdata["bEditPage"] = true;

	
		$fdata["bUpdateSelected"] = true;


		$fdata["bViewPage"] = true;

		$fdata["bAdvancedSearch"] = true;

		$fdata["bPrinterPage"] = true;

		$fdata["bExportPage"] = true;

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

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

	
	
				$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["acceptFileTypes"] = ".+$";

		$edata["maxNumberOfFiles"] = 1;

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

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=255";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	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




	$tdataappoitment["appoitment_client_city"] = $fdata;
//	appoitment_client_country
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 15;
	$fdata["strName"] = "appoitment_client_country";
	$fdata["GoodName"] = "appoitment_client_country";
	$fdata["ownerTable"] = "appoitment";
	$fdata["Label"] = GetFieldLabel("appoitment","appoitment_client_country");
	$fdata["FieldType"] = 200;

	
	
	
			
	
	
	
		$fdata["bEditPage"] = true;

	
		$fdata["bUpdateSelected"] = true;


		$fdata["bViewPage"] = true;

		$fdata["bAdvancedSearch"] = true;

		$fdata["bPrinterPage"] = true;

		$fdata["bExportPage"] = true;

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

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

	
	
				$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["acceptFileTypes"] = ".+$";

		$edata["maxNumberOfFiles"] = 1;

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

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=255";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	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




	$tdataappoitment["appoitment_client_country"] = $fdata;


$tables_data["appoitment"]=&$tdataappoitment;
$field_labels["appoitment"] = &$fieldLabelsappoitment;
$fieldToolTips["appoitment"] = &$fieldToolTipsappoitment;
$placeHolders["appoitment"] = &$placeHoldersappoitment;
$page_titles["appoitment"] = &$pageTitlesappoitment;

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

// tables which are master tables for current table (detail)
$masterTablesData["appoitment"] = 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_LIST] = true;
			$masterParams["dispMasterInfo"][PAGE_PRINT] = true;
		
	$masterParams["previewOnList"]= 1;
	$masterParams["previewOnAdd"]= 0;
	$masterParams["previewOnEdit"]= 0;
	$masterParams["previewOnView"]= 0;
	$masterParams["proceedLink"]= 1;

	$masterParams["type"] = PAGE_LIST;
					$masterTablesData["appoitment"][0] = $masterParams;
				$masterTablesData["appoitment"][0]["masterKeys"] = array();
	$masterTablesData["appoitment"][0]["masterKeys"][]="service_service_type_id";
				$masterTablesData["appoitment"][0]["detailKeys"] = array();
	$masterTablesData["appoitment"][0]["detailKeys"][]="appoitment_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"]= 0;
	$masterParams["previewOnEdit"]= 0;
	$masterParams["previewOnView"]= 0;
	$masterParams["proceedLink"]= 1;

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

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










function createSqlQuery_appoitment()
{
$proto3=array();
$proto3["m_strHead"] = "SELECT";
$proto3["m_strFieldList"] = "appoitment_id,  appoitment_business_business_id,  appoitment_service_service_id,  appoitment_service_type_id,  appoitment_provider_provider_id,  appoitment_booking_datetime,  appoitment_datetime_from,  appoitment_datetime_to,  appoitment_satuts,  appoitment_client_name,  appoitment_client_email,  appoitment_client_mobile,  appoitment_client_adress,  appoitment_client_city,  appoitment_client_country";
$proto3["m_strFrom"] = "FROM appoitment";
$proto3["m_strWhere"] = "";
$proto3["m_strOrderBy"] = "ORDER BY appoitment_id DESC";
	
		;
			$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" => "appoitment_id",
	"m_strTable" => "appoitment",
	"m_srcTableName" => "appoitment"
));

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

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

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

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

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

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

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

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

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

$proto3["m_fieldlist"][]=$obj;
						$proto19=array();
			$obj = new SQLField(array(
	"m_strName" => "appoitment_booking_datetime",
	"m_strTable" => "appoitment",
	"m_srcTableName" => "appoitment"
));

$proto19["m_sql"] = "appoitment_booking_datetime";
$proto19["m_srcTableName"] = "appoitment";
$proto19["m_expr"]=$obj;
$proto19["m_alias"] = "";
$obj = new SQLFieldListItem($proto19);

$proto3["m_fieldlist"][]=$obj;
						$proto21=array();
			$obj = new SQLField(array(
	"m_strName" => "appoitment_datetime_from",
	"m_strTable" => "appoitment",
	"m_srcTableName" => "appoitment"
));

$proto21["m_sql"] = "appoitment_datetime_from";
$proto21["m_srcTableName"] = "appoitment";
$proto21["m_expr"]=$obj;
$proto21["m_alias"] = "";
$obj = new SQLFieldListItem($proto21);

$proto3["m_fieldlist"][]=$obj;
						$proto23=array();
			$obj = new SQLField(array(
	"m_strName" => "appoitment_datetime_to",
	"m_strTable" => "appoitment",
	"m_srcTableName" => "appoitment"
));

$proto23["m_sql"] = "appoitment_datetime_to";
$proto23["m_srcTableName"] = "appoitment";
$proto23["m_expr"]=$obj;
$proto23["m_alias"] = "";
$obj = new SQLFieldListItem($proto23);

$proto3["m_fieldlist"][]=$obj;
						$proto25=array();
			$obj = new SQLField(array(
	"m_strName" => "appoitment_satuts",
	"m_strTable" => "appoitment",
	"m_srcTableName" => "appoitment"
));

$proto25["m_sql"] = "appoitment_satuts";
$proto25["m_srcTableName"] = "appoitment";
$proto25["m_expr"]=$obj;
$proto25["m_alias"] = "";
$obj = new SQLFieldListItem($proto25);

$proto3["m_fieldlist"][]=$obj;
						$proto27=array();
			$obj = new SQLField(array(
	"m_strName" => "appoitment_client_name",
	"m_strTable" => "appoitment",
	"m_srcTableName" => "appoitment"
));

$proto27["m_sql"] = "appoitment_client_name";
$proto27["m_srcTableName"] = "appoitment";
$proto27["m_expr"]=$obj;
$proto27["m_alias"] = "";
$obj = new SQLFieldListItem($proto27);

$proto3["m_fieldlist"][]=$obj;
						$proto29=array();
			$obj = new SQLField(array(
	"m_strName" => "appoitment_client_email",
	"m_strTable" => "appoitment",
	"m_srcTableName" => "appoitment"
));

$proto29["m_sql"] = "appoitment_client_email";
$proto29["m_srcTableName"] = "appoitment";
$proto29["m_expr"]=$obj;
$proto29["m_alias"] = "";
$obj = new SQLFieldListItem($proto29);

$proto3["m_fieldlist"][]=$obj;
						$proto31=array();
			$obj = new SQLField(array(
	"m_strName" => "appoitment_client_mobile",
	"m_strTable" => "appoitment",
	"m_srcTableName" => "appoitment"
));

$proto31["m_sql"] = "appoitment_client_mobile";
$proto31["m_srcTableName"] = "appoitment";
$proto31["m_expr"]=$obj;
$proto31["m_alias"] = "";
$obj = new SQLFieldListItem($proto31);

$proto3["m_fieldlist"][]=$obj;
						$proto33=array();
			$obj = new SQLField(array(
	"m_strName" => "appoitment_client_adress",
	"m_strTable" => "appoitment",
	"m_srcTableName" => "appoitment"
));

$proto33["m_sql"] = "appoitment_client_adress";
$proto33["m_srcTableName"] = "appoitment";
$proto33["m_expr"]=$obj;
$proto33["m_alias"] = "";
$obj = new SQLFieldListItem($proto33);

$proto3["m_fieldlist"][]=$obj;
						$proto35=array();
			$obj = new SQLField(array(
	"m_strName" => "appoitment_client_city",
	"m_strTable" => "appoitment",
	"m_srcTableName" => "appoitment"
));

$proto35["m_sql"] = "appoitment_client_city";
$proto35["m_srcTableName"] = "appoitment";
$proto35["m_expr"]=$obj;
$proto35["m_alias"] = "";
$obj = new SQLFieldListItem($proto35);

$proto3["m_fieldlist"][]=$obj;
						$proto37=array();
			$obj = new SQLField(array(
	"m_strName" => "appoitment_client_country",
	"m_strTable" => "appoitment",
	"m_srcTableName" => "appoitment"
));

$proto37["m_sql"] = "appoitment_client_country";
$proto37["m_srcTableName"] = "appoitment";
$proto37["m_expr"]=$obj;
$proto37["m_alias"] = "";
$obj = new SQLFieldListItem($proto37);

$proto3["m_fieldlist"][]=$obj;
$proto3["m_fromlist"] = array();
												$proto39=array();
$proto39["m_link"] = "SQLL_MAIN";
			$proto40=array();
$proto40["m_strName"] = "appoitment";
$proto40["m_srcTableName"] = "appoitment";
$proto40["m_columns"] = array();
$proto40["m_columns"][] = "appoitment_id";
$proto40["m_columns"][] = "appoitment_business_business_id";
$proto40["m_columns"][] = "appoitment_service_service_id";
$proto40["m_columns"][] = "appoitment_service_type_id";
$proto40["m_columns"][] = "appoitment_provider_provider_id";
$proto40["m_columns"][] = "appoitment_booking_datetime";
$proto40["m_columns"][] = "appoitment_datetime_from";
$proto40["m_columns"][] = "appoitment_datetime_to";
$proto40["m_columns"][] = "appoitment_satuts";
$proto40["m_columns"][] = "appoitment_client_name";
$proto40["m_columns"][] = "appoitment_client_email";
$proto40["m_columns"][] = "appoitment_client_mobile";
$proto40["m_columns"][] = "appoitment_client_adress";
$proto40["m_columns"][] = "appoitment_client_city";
$proto40["m_columns"][] = "appoitment_client_country";
$obj = new SQLTable($proto40);

$proto39["m_table"] = $obj;
$proto39["m_sql"] = "appoitment";
$proto39["m_alias"] = "";
$proto39["m_srcTableName"] = "appoitment";
$proto41=array();
$proto41["m_sql"] = "";
$proto41["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

$proto3["m_fromlist"][]=$obj;
$proto3["m_groupby"] = array();
$proto3["m_orderby"] = array();
												$proto43=array();
						$obj = new SQLField(array(
	"m_strName" => "appoitment_id",
	"m_strTable" => "appoitment",
	"m_srcTableName" => "appoitment"
));

$proto43["m_column"]=$obj;
$proto43["m_bAsc"] = 0;
$proto43["m_nColumn"] = 0;
$obj = new SQLOrderByItem($proto43);

$proto3["m_orderby"][]=$obj;					
$proto3["m_srcTableName"]="appoitment";		
$obj = new SQLQuery($proto3);

	return $obj;
}
$queryData_appoitment = createSqlQuery_appoitment();


	
		;

															

$tdataappoitment[".sqlquery"] = $queryData_appoitment;

include_once(getabspath("include/appoitment_events.php"));
$tableEvents["appoitment"] = new eventclass_appoitment;
$tdataappoitment[".hasEvents"] = true;

?>