<?php
$tdataallocations_new_audit = array();
$tdataallocations_new_audit[".searchableFields"] = array();
$tdataallocations_new_audit[".ShortName"] = "allocations_new_audit";
$tdataallocations_new_audit[".OwnerID"] = "";
$tdataallocations_new_audit[".OriginalTable"] = "allocations_new_audit";


$tdataallocations_new_audit[".pagesByType"] = my_json_decode( "{\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" );
$tdataallocations_new_audit[".originalPagesByType"] = $tdataallocations_new_audit[".pagesByType"];
$tdataallocations_new_audit[".pages"] = types2pages( my_json_decode( "{\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" ) );
$tdataallocations_new_audit[".originalPages"] = $tdataallocations_new_audit[".pages"];
$tdataallocations_new_audit[".defaultPages"] = my_json_decode( "{\"export\":\"export\",\"import\":\"import\",\"list\":\"list\",\"print\":\"print\",\"search\":\"search\",\"view\":\"view\"}" );
$tdataallocations_new_audit[".originalDefaultPages"] = $tdataallocations_new_audit[".defaultPages"];

//	field labels
$fieldLabelsallocations_new_audit = array();
$fieldToolTipsallocations_new_audit = array();
$pageTitlesallocations_new_audit = array();
$placeHoldersallocations_new_audit = array();

if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsallocations_new_audit["English"] = array();
	$fieldToolTipsallocations_new_audit["English"] = array();
	$placeHoldersallocations_new_audit["English"] = array();
	$pageTitlesallocations_new_audit["English"] = array();
	$fieldLabelsallocations_new_audit["English"]["id"] = "Id";
	$fieldToolTipsallocations_new_audit["English"]["id"] = "";
	$placeHoldersallocations_new_audit["English"]["id"] = "";
	$fieldLabelsallocations_new_audit["English"]["datetime"] = "Datetime";
	$fieldToolTipsallocations_new_audit["English"]["datetime"] = "";
	$placeHoldersallocations_new_audit["English"]["datetime"] = "";
	$fieldLabelsallocations_new_audit["English"]["ip"] = "Ip";
	$fieldToolTipsallocations_new_audit["English"]["ip"] = "";
	$placeHoldersallocations_new_audit["English"]["ip"] = "";
	$fieldLabelsallocations_new_audit["English"]["user"] = "User";
	$fieldToolTipsallocations_new_audit["English"]["user"] = "";
	$placeHoldersallocations_new_audit["English"]["user"] = "";
	$fieldLabelsallocations_new_audit["English"]["table"] = "Table";
	$fieldToolTipsallocations_new_audit["English"]["table"] = "";
	$placeHoldersallocations_new_audit["English"]["table"] = "";
	$fieldLabelsallocations_new_audit["English"]["action"] = "Action";
	$fieldToolTipsallocations_new_audit["English"]["action"] = "";
	$placeHoldersallocations_new_audit["English"]["action"] = "";
	$fieldLabelsallocations_new_audit["English"]["description"] = "Description";
	$fieldToolTipsallocations_new_audit["English"]["description"] = "";
	$placeHoldersallocations_new_audit["English"]["description"] = "";
	if (count($fieldToolTipsallocations_new_audit["English"]))
		$tdataallocations_new_audit[".isUseToolTips"] = true;
}
if(mlang_getcurrentlang()=="sinhala")
{
	$fieldLabelsallocations_new_audit["sinhala"] = array();
	$fieldToolTipsallocations_new_audit["sinhala"] = array();
	$placeHoldersallocations_new_audit["sinhala"] = array();
	$pageTitlesallocations_new_audit["sinhala"] = array();
	$fieldLabelsallocations_new_audit["sinhala"]["id"] = "Id";
	$fieldToolTipsallocations_new_audit["sinhala"]["id"] = "";
	$placeHoldersallocations_new_audit["sinhala"]["id"] = "";
	$fieldLabelsallocations_new_audit["sinhala"]["datetime"] = "Datetime";
	$fieldToolTipsallocations_new_audit["sinhala"]["datetime"] = "";
	$placeHoldersallocations_new_audit["sinhala"]["datetime"] = "";
	$fieldLabelsallocations_new_audit["sinhala"]["ip"] = "Ip";
	$fieldToolTipsallocations_new_audit["sinhala"]["ip"] = "";
	$placeHoldersallocations_new_audit["sinhala"]["ip"] = "";
	$fieldLabelsallocations_new_audit["sinhala"]["user"] = "පරිෂීලකයා";
	$fieldToolTipsallocations_new_audit["sinhala"]["user"] = "";
	$placeHoldersallocations_new_audit["sinhala"]["user"] = "";
	$fieldLabelsallocations_new_audit["sinhala"]["table"] = "Table";
	$fieldToolTipsallocations_new_audit["sinhala"]["table"] = "";
	$placeHoldersallocations_new_audit["sinhala"]["table"] = "";
	$fieldLabelsallocations_new_audit["sinhala"]["action"] = "Action";
	$fieldToolTipsallocations_new_audit["sinhala"]["action"] = "";
	$placeHoldersallocations_new_audit["sinhala"]["action"] = "";
	$fieldLabelsallocations_new_audit["sinhala"]["description"] = "විස්තරය";
	$fieldToolTipsallocations_new_audit["sinhala"]["description"] = "";
	$placeHoldersallocations_new_audit["sinhala"]["description"] = "";
	if (count($fieldToolTipsallocations_new_audit["sinhala"]))
		$tdataallocations_new_audit[".isUseToolTips"] = true;
}


	$tdataallocations_new_audit[".NCSearch"] = true;



$tdataallocations_new_audit[".shortTableName"] = "allocations_new_audit";
$tdataallocations_new_audit[".nSecOptions"] = 0;

$tdataallocations_new_audit[".mainTableOwnerID"] = "";
$tdataallocations_new_audit[".entityType"] = 0;
$tdataallocations_new_audit[".connId"] = "allo_at_localhost";


$tdataallocations_new_audit[".strOriginalTableName"] = "allocations_new_audit";

	



$tdataallocations_new_audit[".showAddInPopup"] = false;

$tdataallocations_new_audit[".showEditInPopup"] = false;

$tdataallocations_new_audit[".showViewInPopup"] = false;

//page's base css files names
$popupPagesLayoutNames = array();
$tdataallocations_new_audit[".popupPagesLayoutNames"] = $popupPagesLayoutNames;


	$tdataallocations_new_audit[".listAjax"] = true;
//	temporary
$tdataallocations_new_audit[".listAjax"] = false;

	$tdataallocations_new_audit[".audit"] = true;

	$tdataallocations_new_audit[".locking"] = true;


$pages = $tdataallocations_new_audit[".defaultPages"];

if( $pages[PAGE_EDIT] ) {
	$tdataallocations_new_audit[".edit"] = true;
	$tdataallocations_new_audit[".afterEditAction"] = 1;
	$tdataallocations_new_audit[".closePopupAfterEdit"] = 1;
	$tdataallocations_new_audit[".afterEditActionDetTable"] = "";
}

if( $pages[PAGE_ADD] ) {
$tdataallocations_new_audit[".add"] = true;
$tdataallocations_new_audit[".afterAddAction"] = 1;
$tdataallocations_new_audit[".closePopupAfterAdd"] = 1;
$tdataallocations_new_audit[".afterAddActionDetTable"] = "";
}

if( $pages[PAGE_LIST] ) {
	$tdataallocations_new_audit[".list"] = true;
}



$tdataallocations_new_audit[".strSortControlSettingsJSON"] = "";




if( $pages[PAGE_VIEW] ) {
$tdataallocations_new_audit[".view"] = true;
}

if( $pages[PAGE_IMPORT] ) {
$tdataallocations_new_audit[".import"] = true;
}

if( $pages[PAGE_EXPORT] ) {
$tdataallocations_new_audit[".exportTo"] = true;
}

if( $pages[PAGE_PRINT] ) {
$tdataallocations_new_audit[".printFriendly"] = true;
}



$tdataallocations_new_audit[".showSimpleSearchOptions"] = true; // temp fix #13449

// Allow Show/Hide Fields in GRID
$tdataallocations_new_audit[".allowShowHideFields"] = true; // temp fix #13449
//

// Allow Fields Reordering in GRID
$tdataallocations_new_audit[".allowFieldsReordering"] = true; // temp fix #13449
//

$tdataallocations_new_audit[".isUseAjaxSuggest"] = true;

$tdataallocations_new_audit[".rowHighlite"] = true;



																								

$tdataallocations_new_audit[".ajaxCodeSnippetAdded"] = false;

$tdataallocations_new_audit[".buttonsAdded"] = false;

$tdataallocations_new_audit[".addPageEvents"] = false;

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


$tdataallocations_new_audit[".badgeColor"] = "00C2C5";


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

$tdataallocations_new_audit[".googleLikeFields"] = array();
$tdataallocations_new_audit[".googleLikeFields"][] = "id";
$tdataallocations_new_audit[".googleLikeFields"][] = "datetime";
$tdataallocations_new_audit[".googleLikeFields"][] = "ip";
$tdataallocations_new_audit[".googleLikeFields"][] = "user";
$tdataallocations_new_audit[".googleLikeFields"][] = "table";
$tdataallocations_new_audit[".googleLikeFields"][] = "action";
$tdataallocations_new_audit[".googleLikeFields"][] = "description";



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

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

$tdataallocations_new_audit[".nPrinterSplitRecords"] = 40;

$tdataallocations_new_audit[".geocodingEnabled"] = false;










$tdataallocations_new_audit[".pageSize"] = 20;

$tdataallocations_new_audit[".warnLeavingPages"] = true;



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

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


$tdataallocations_new_audit[".sqlHead"] = "SELECT id,  	`datetime`,  	ip,  	`user`,  	`table`,  	`action`,  	description";
$tdataallocations_new_audit[".sqlFrom"] = "FROM allocations_new_audit";
$tdataallocations_new_audit[".sqlWhereExpr"] = "";
$tdataallocations_new_audit[".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;
$tdataallocations_new_audit[".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;
$tdataallocations_new_audit[".arrGroupsPerPage"] = $arrGPP;

$tdataallocations_new_audit[".highlightSearchResults"] = true;

$tableKeysallocations_new_audit = array();
$tableKeysallocations_new_audit[] = "id";
$tdataallocations_new_audit[".Keys"] = $tableKeysallocations_new_audit;


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




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

	
		$fdata["AutoInc"] = true;

	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

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

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

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

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

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

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




// 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


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataallocations_new_audit["id"] = $fdata;
		$tdataallocations_new_audit[".searchableFields"][] = "id";
//	datetime
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "datetime";
	$fdata["GoodName"] = "datetime";
	$fdata["ownerTable"] = "allocations_new_audit";
	$fdata["Label"] = GetFieldLabel("allocations_new_audit","datetime");
	$fdata["FieldType"] = 135;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "`datetime`";

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

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

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

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

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

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

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

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

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

		$edata["maxNumberOfFiles"] = 1;

	
	
		$edata["DateEditType"] = 13;
	$edata["InitialYearFactor"] = 100;
	$edata["LastYearFactor"] = 10;

	
	
	
		$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("Equals", "More than", "Less than", "Between", EMPTY_SEARCH, NOT_EMPTY );
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataallocations_new_audit["datetime"] = $fdata;
		$tdataallocations_new_audit[".searchableFields"][] = "datetime";
//	ip
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "ip";
	$fdata["GoodName"] = "ip";
	$fdata["ownerTable"] = "allocations_new_audit";
	$fdata["Label"] = GetFieldLabel("allocations_new_audit","ip");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

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

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

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

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



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

		$edata["maxNumberOfFiles"] = 1;

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

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

		$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


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataallocations_new_audit["ip"] = $fdata;
		$tdataallocations_new_audit[".searchableFields"][] = "ip";
//	user
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "user";
	$fdata["GoodName"] = "user";
	$fdata["ownerTable"] = "allocations_new_audit";
	$fdata["Label"] = GetFieldLabel("allocations_new_audit","user");
	$fdata["FieldType"] = 200;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "`user`";

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

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

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

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

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

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

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

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



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

		$edata["maxNumberOfFiles"] = 1;

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

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

		$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


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataallocations_new_audit["user"] = $fdata;
		$tdataallocations_new_audit[".searchableFields"][] = "user";
//	table
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "table";
	$fdata["GoodName"] = "table";
	$fdata["ownerTable"] = "allocations_new_audit";
	$fdata["Label"] = GetFieldLabel("allocations_new_audit","table");
	$fdata["FieldType"] = 200;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "`table`";

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

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

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

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

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

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

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

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



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

		$edata["maxNumberOfFiles"] = 1;

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

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

		$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


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataallocations_new_audit["table"] = $fdata;
		$tdataallocations_new_audit[".searchableFields"][] = "table";
//	action
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "action";
	$fdata["GoodName"] = "action";
	$fdata["ownerTable"] = "allocations_new_audit";
	$fdata["Label"] = GetFieldLabel("allocations_new_audit","action");
	$fdata["FieldType"] = 200;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "`action`";

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

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

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

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

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

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

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

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



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

		$edata["maxNumberOfFiles"] = 1;

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

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

		$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


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataallocations_new_audit["action"] = $fdata;
		$tdataallocations_new_audit[".searchableFields"][] = "action";
//	description
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "description";
	$fdata["GoodName"] = "description";
	$fdata["ownerTable"] = "allocations_new_audit";
	$fdata["Label"] = GetFieldLabel("allocations_new_audit","description");
	$fdata["FieldType"] = 201;

	
	
	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

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

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

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

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



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

		$edata["maxNumberOfFiles"] = 0;

	
	
	
				$edata["nRows"] = 100;
			$edata["nCols"] = 200;

	
	
		$edata["controlWidth"] = 200;

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

		$edata["CreateThumbnail"] = true;
	$edata["StrThumbnail"] = "th";
			$edata["ThumbnailSize"] = 600;

			
	
	
	
	$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


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdataallocations_new_audit["description"] = $fdata;
		$tdataallocations_new_audit[".searchableFields"][] = "description";


$tables_data["allocations_new_audit"]=&$tdataallocations_new_audit;
$field_labels["allocations_new_audit"] = &$fieldLabelsallocations_new_audit;
$fieldToolTips["allocations_new_audit"] = &$fieldToolTipsallocations_new_audit;
$placeHolders["allocations_new_audit"] = &$placeHoldersallocations_new_audit;
$page_titles["allocations_new_audit"] = &$pageTitlesallocations_new_audit;

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

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



// -----------------end  prepare master-details data arrays ------------------------------//



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











function createSqlQuery_allocations_new_audit()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "id,  	`datetime`,  	ip,  	`user`,  	`table`,  	`action`,  	description";
$proto0["m_strFrom"] = "FROM allocations_new_audit";
$proto0["m_strWhere"] = "";
$proto0["m_strOrderBy"] = "";
	
		;
			$proto0["cipherer"] = null;
$proto2=array();
$proto2["m_sql"] = "";
$proto2["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

$proto0["m_having"] = $obj;
$proto0["m_fieldlist"] = array();
						$proto6=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "allocations_new_audit",
	"m_srcTableName" => "allocations_new_audit"
));

$proto6["m_sql"] = "id";
$proto6["m_srcTableName"] = "allocations_new_audit";
$proto6["m_expr"]=$obj;
$proto6["m_alias"] = "";
$obj = new SQLFieldListItem($proto6);

$proto0["m_fieldlist"][]=$obj;
						$proto8=array();
			$obj = new SQLField(array(
	"m_strName" => "datetime",
	"m_strTable" => "allocations_new_audit",
	"m_srcTableName" => "allocations_new_audit"
));

$proto8["m_sql"] = "`datetime`";
$proto8["m_srcTableName"] = "allocations_new_audit";
$proto8["m_expr"]=$obj;
$proto8["m_alias"] = "";
$obj = new SQLFieldListItem($proto8);

$proto0["m_fieldlist"][]=$obj;
						$proto10=array();
			$obj = new SQLField(array(
	"m_strName" => "ip",
	"m_strTable" => "allocations_new_audit",
	"m_srcTableName" => "allocations_new_audit"
));

$proto10["m_sql"] = "ip";
$proto10["m_srcTableName"] = "allocations_new_audit";
$proto10["m_expr"]=$obj;
$proto10["m_alias"] = "";
$obj = new SQLFieldListItem($proto10);

$proto0["m_fieldlist"][]=$obj;
						$proto12=array();
			$obj = new SQLField(array(
	"m_strName" => "user",
	"m_strTable" => "allocations_new_audit",
	"m_srcTableName" => "allocations_new_audit"
));

$proto12["m_sql"] = "`user`";
$proto12["m_srcTableName"] = "allocations_new_audit";
$proto12["m_expr"]=$obj;
$proto12["m_alias"] = "";
$obj = new SQLFieldListItem($proto12);

$proto0["m_fieldlist"][]=$obj;
						$proto14=array();
			$obj = new SQLField(array(
	"m_strName" => "table",
	"m_strTable" => "allocations_new_audit",
	"m_srcTableName" => "allocations_new_audit"
));

$proto14["m_sql"] = "`table`";
$proto14["m_srcTableName"] = "allocations_new_audit";
$proto14["m_expr"]=$obj;
$proto14["m_alias"] = "";
$obj = new SQLFieldListItem($proto14);

$proto0["m_fieldlist"][]=$obj;
						$proto16=array();
			$obj = new SQLField(array(
	"m_strName" => "action",
	"m_strTable" => "allocations_new_audit",
	"m_srcTableName" => "allocations_new_audit"
));

$proto16["m_sql"] = "`action`";
$proto16["m_srcTableName"] = "allocations_new_audit";
$proto16["m_expr"]=$obj;
$proto16["m_alias"] = "";
$obj = new SQLFieldListItem($proto16);

$proto0["m_fieldlist"][]=$obj;
						$proto18=array();
			$obj = new SQLField(array(
	"m_strName" => "description",
	"m_strTable" => "allocations_new_audit",
	"m_srcTableName" => "allocations_new_audit"
));

$proto18["m_sql"] = "description";
$proto18["m_srcTableName"] = "allocations_new_audit";
$proto18["m_expr"]=$obj;
$proto18["m_alias"] = "";
$obj = new SQLFieldListItem($proto18);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto20=array();
$proto20["m_link"] = "SQLL_MAIN";
			$proto21=array();
$proto21["m_strName"] = "allocations_new_audit";
$proto21["m_srcTableName"] = "allocations_new_audit";
$proto21["m_columns"] = array();
$proto21["m_columns"][] = "id";
$proto21["m_columns"][] = "datetime";
$proto21["m_columns"][] = "ip";
$proto21["m_columns"][] = "user";
$proto21["m_columns"][] = "table";
$proto21["m_columns"][] = "action";
$proto21["m_columns"][] = "description";
$obj = new SQLTable($proto21);

$proto20["m_table"] = $obj;
$proto20["m_sql"] = "allocations_new_audit";
$proto20["m_alias"] = "";
$proto20["m_srcTableName"] = "allocations_new_audit";
$proto22=array();
$proto22["m_sql"] = "";
$proto22["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

	return $obj;
}
$queryData_allocations_new_audit = createSqlQuery_allocations_new_audit();


	
		;

							

$tdataallocations_new_audit[".sqlquery"] = $queryData_allocations_new_audit;



$tableEvents["allocations_new_audit"] = new eventsBase;
$tdataallocations_new_audit[".hasEvents"] = false;

?>