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



$tdatadashboard = array();
$tdatadashboard[".ShortName"] = "dashboard";

$tdatadashboard[".pagesByType"] = my_json_decode( "{\"dashboard\":[\"dashboard\"],\"search\":[\"search\"]}" );
$tdatadashboard[".originalPagesByType"] = $tdatadashboard[".pagesByType"];
$tdatadashboard[".pages"] = types2pages( my_json_decode( "{\"dashboard\":[\"dashboard\"],\"search\":[\"search\"]}" ) );
$tdatadashboard[".originalPages"] = $tdatadashboard[".pages"];
$tdatadashboard[".defaultPages"] = my_json_decode( "{\"dashboard\":\"dashboard\",\"search\":\"search\"}" );
$tdatadashboard[".originalDefaultPages"] = $tdatadashboard[".defaultPages"];


//	field labels
$fieldLabelsdashboard = array();
$pageTitlesdashboard = array();

if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsdashboard["English"] = array();
	$fieldLabelsdashboard["English"]["Dally_Statistics_id"] = "Id";
	$fieldLabelsdashboard["English"]["Dally_Statistics_stat_date"] = "Stat Date";
	$fieldLabelsdashboard["English"]["Dally_Statistics_total_customers"] = "Total Customers";
	$fieldLabelsdashboard["English"]["Dally_Statistics_total_loans"] = "Total Loans";
	$fieldLabelsdashboard["English"]["Dally_Statistics_active_loans"] = "Active Loans";
	$fieldLabelsdashboard["English"]["Dally_Statistics_closed_loans"] = "Closed Loans";
	$fieldLabelsdashboard["English"]["Dally_Statistics_defaulted_loans"] = "Defaulted Loans";
	$fieldLabelsdashboard["English"]["Dally_Statistics_total_loan_amount"] = "Total Loan Amount";
	$fieldLabelsdashboard["English"]["Dally_Statistics_total_payable"] = "Total Payable";
	$fieldLabelsdashboard["English"]["Dally_Statistics_total_collected"] = "Total Collected";
	$fieldLabelsdashboard["English"]["Dally_Statistics_outstanding_balance"] = "Outstanding Balance";
	$fieldLabelsdashboard["English"]["Dally_Statistics_today_issued_loans"] = "Today Issued Loans";
	$fieldLabelsdashboard["English"]["Dally_Statistics_today_issued_amount"] = "Today Issued Amount";
	$fieldLabelsdashboard["English"]["Dally_Statistics_today_collections_count"] = "Today Collections Count";
	$fieldLabelsdashboard["English"]["Dally_Statistics_today_collections_amount"] = "Today Collections Amount";
	$fieldLabelsdashboard["English"]["Dally_Statistics_created_at"] = "Created At";
}

//	search fields
$tdatadashboard[".searchFields"] = array();
$dashField = array();
$dashField[] = array( "table"=>"Dally Statistics", "field"=>"id" );
$tdatadashboard[".searchFields"]["Dally_Statistics_id"] = $dashField;
$dashField = array();
$dashField[] = array( "table"=>"Dally Statistics", "field"=>"stat_date" );
$tdatadashboard[".searchFields"]["Dally_Statistics_stat_date"] = $dashField;
$dashField = array();
$dashField[] = array( "table"=>"Dally Statistics", "field"=>"total_customers" );
$tdatadashboard[".searchFields"]["Dally_Statistics_total_customers"] = $dashField;
$dashField = array();
$dashField[] = array( "table"=>"Dally Statistics", "field"=>"total_loans" );
$tdatadashboard[".searchFields"]["Dally_Statistics_total_loans"] = $dashField;
$dashField = array();
$dashField[] = array( "table"=>"Dally Statistics", "field"=>"active_loans" );
$tdatadashboard[".searchFields"]["Dally_Statistics_active_loans"] = $dashField;
$dashField = array();
$dashField[] = array( "table"=>"Dally Statistics", "field"=>"closed_loans" );
$tdatadashboard[".searchFields"]["Dally_Statistics_closed_loans"] = $dashField;
$dashField = array();
$dashField[] = array( "table"=>"Dally Statistics", "field"=>"defaulted_loans" );
$tdatadashboard[".searchFields"]["Dally_Statistics_defaulted_loans"] = $dashField;
$dashField = array();
$dashField[] = array( "table"=>"Dally Statistics", "field"=>"total_loan_amount" );
$tdatadashboard[".searchFields"]["Dally_Statistics_total_loan_amount"] = $dashField;
$dashField = array();
$dashField[] = array( "table"=>"Dally Statistics", "field"=>"total_payable" );
$tdatadashboard[".searchFields"]["Dally_Statistics_total_payable"] = $dashField;
$dashField = array();
$dashField[] = array( "table"=>"Dally Statistics", "field"=>"total_collected" );
$tdatadashboard[".searchFields"]["Dally_Statistics_total_collected"] = $dashField;
$dashField = array();
$dashField[] = array( "table"=>"Dally Statistics", "field"=>"outstanding_balance" );
$tdatadashboard[".searchFields"]["Dally_Statistics_outstanding_balance"] = $dashField;
$dashField = array();
$dashField[] = array( "table"=>"Dally Statistics", "field"=>"today_issued_loans" );
$tdatadashboard[".searchFields"]["Dally_Statistics_today_issued_loans"] = $dashField;
$dashField = array();
$dashField[] = array( "table"=>"Dally Statistics", "field"=>"today_issued_amount" );
$tdatadashboard[".searchFields"]["Dally_Statistics_today_issued_amount"] = $dashField;
$dashField = array();
$dashField[] = array( "table"=>"Dally Statistics", "field"=>"today_collections_count" );
$tdatadashboard[".searchFields"]["Dally_Statistics_today_collections_count"] = $dashField;
$dashField = array();
$dashField[] = array( "table"=>"Dally Statistics", "field"=>"today_collections_amount" );
$tdatadashboard[".searchFields"]["Dally_Statistics_today_collections_amount"] = $dashField;
$dashField = array();
$dashField[] = array( "table"=>"Dally Statistics", "field"=>"created_at" );
$tdatadashboard[".searchFields"]["Dally_Statistics_created_at"] = $dashField;

// all search fields
$tdatadashboard[".allSearchFields"] = array();
$tdatadashboard[".allSearchFields"][] = "Dally_Statistics_id";
$tdatadashboard[".allSearchFields"][] = "Dally_Statistics_stat_date";
$tdatadashboard[".allSearchFields"][] = "Dally_Statistics_total_customers";
$tdatadashboard[".allSearchFields"][] = "Dally_Statistics_total_loans";
$tdatadashboard[".allSearchFields"][] = "Dally_Statistics_active_loans";
$tdatadashboard[".allSearchFields"][] = "Dally_Statistics_closed_loans";
$tdatadashboard[".allSearchFields"][] = "Dally_Statistics_defaulted_loans";
$tdatadashboard[".allSearchFields"][] = "Dally_Statistics_total_loan_amount";
$tdatadashboard[".allSearchFields"][] = "Dally_Statistics_total_payable";
$tdatadashboard[".allSearchFields"][] = "Dally_Statistics_total_collected";
$tdatadashboard[".allSearchFields"][] = "Dally_Statistics_outstanding_balance";
$tdatadashboard[".allSearchFields"][] = "Dally_Statistics_today_issued_loans";
$tdatadashboard[".allSearchFields"][] = "Dally_Statistics_today_issued_amount";
$tdatadashboard[".allSearchFields"][] = "Dally_Statistics_today_collections_count";
$tdatadashboard[".allSearchFields"][] = "Dally_Statistics_today_collections_amount";
$tdatadashboard[".allSearchFields"][] = "Dally_Statistics_created_at";

// good like search fields
$tdatadashboard[".googleLikeFields"] = array();
$tdatadashboard[".googleLikeFields"][] = "Dally_Statistics_id";
$tdatadashboard[".googleLikeFields"][] = "Dally_Statistics_stat_date";
$tdatadashboard[".googleLikeFields"][] = "Dally_Statistics_total_customers";
$tdatadashboard[".googleLikeFields"][] = "Dally_Statistics_total_loans";
$tdatadashboard[".googleLikeFields"][] = "Dally_Statistics_active_loans";
$tdatadashboard[".googleLikeFields"][] = "Dally_Statistics_closed_loans";
$tdatadashboard[".googleLikeFields"][] = "Dally_Statistics_defaulted_loans";
$tdatadashboard[".googleLikeFields"][] = "Dally_Statistics_total_loan_amount";
$tdatadashboard[".googleLikeFields"][] = "Dally_Statistics_total_payable";
$tdatadashboard[".googleLikeFields"][] = "Dally_Statistics_total_collected";
$tdatadashboard[".googleLikeFields"][] = "Dally_Statistics_outstanding_balance";
$tdatadashboard[".googleLikeFields"][] = "Dally_Statistics_today_issued_loans";
$tdatadashboard[".googleLikeFields"][] = "Dally_Statistics_today_issued_amount";
$tdatadashboard[".googleLikeFields"][] = "Dally_Statistics_today_collections_count";
$tdatadashboard[".googleLikeFields"][] = "Dally_Statistics_today_collections_amount";
$tdatadashboard[".googleLikeFields"][] = "Dally_Statistics_created_at";

$tdatadashboard[".dashElements"] = array();

	$dbelement = array( "elementName" => "dally_statistics_chart", "table" => "Dally Statistics",
		 "pageName" => "","type" => 1);
	$dbelement["cellName"] = "cell_0_0";

			

	$tdatadashboard[".dashElements"][] = $dbelement;
	$dbelement = array( "elementName" => "defaulted_waiting_list", "table" => "defaulted_waiting",
		 "pageName" => "","type" => 0);
	$dbelement["cellName"] = "cell_1_0";

					$dbelement["inlineAdd"] = 0 > 0;
	$dbelement["inlineEdit"] = 0 > 0;
	$dbelement["deleteRecord"] = 0 > 0;
	$dbelement["copy"] = 0 > 0;

	$dbelement["popupAdd"] = 0 > 0;
	$dbelement["popupEdit"] = 0 > 0;
	$dbelement["popupView"] = 0 > 0;

	$dbelement["updateSelected"] = 0 > 0;


	$tdatadashboard[".dashElements"][] = $dbelement;
	$dbelement = array( "elementName" => "recovery_list", "table" => "recovery",
		 "pageName" => "","type" => 0);
	$dbelement["cellName"] = "cell_1_1";

					$dbelement["inlineAdd"] = 0 > 0;
	$dbelement["inlineEdit"] = 0 > 0;
	$dbelement["deleteRecord"] = 0 > 0;
	$dbelement["copy"] = 0 > 0;

	$dbelement["popupAdd"] = 0 > 0;
	$dbelement["popupEdit"] = 0 > 0;
	$dbelement["popupView"] = 0 > 0;

	$dbelement["updateSelected"] = 0 > 0;


	$tdatadashboard[".dashElements"][] = $dbelement;

$tdatadashboard[".shortTableName"] = "dashboard";
$tdatadashboard[".entityType"] = 4;



$tableEvents["Dashboard"] = new eventsBase;
$tdatadashboard[".hasEvents"] = false;


$tdatadashboard[".tableType"] = "dashboard";


							
$tdatadashboard[".addPageEvents"] = false;

$tdatadashboard[".isUseAjaxSuggest"] = true;

$tables_data["Dashboard"]=&$tdatadashboard;
$field_labels["Dashboard"] = &$fieldLabelsdashboard;
$page_titles["Dashboard"] = &$pageTitlesdashboard;

?>