<?php
$tdataattendance=array();
	$tdataattendance[".NumberOfChars"]=80; 
	$tdataattendance[".ShortName"]="attendance";
	$tdataattendance[".OwnerID"]="";
	$tdataattendance[".OriginalTable"]="attendance_table";


	
//	field labels
$fieldLabelsattendance = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsattendance["English"]=array();
	$fieldToolTipsattendance["English"]=array();
	$fieldLabelsattendance["English"]["idattendance_table"] = "Idattendance Table";
	$fieldToolTipsattendance["English"]["idattendance_table"] = "";
	$fieldLabelsattendance["English"]["Employee_Name"] = "Employee Name";
	$fieldToolTipsattendance["English"]["Employee Name"] = "";
	$fieldLabelsattendance["English"]["punchedtime"] = "Punchedtime";
	$fieldToolTipsattendance["English"]["punchedtime"] = "";
	$fieldLabelsattendance["English"]["Dateandtime"] = "Dateandtime";
	$fieldToolTipsattendance["English"]["Dateandtime"] = "";
	$fieldLabelsattendance["English"]["Remarks"] = "Remarks";
	$fieldToolTipsattendance["English"]["Remarks"] = "";
	if (count($fieldToolTipsattendance["English"])){
		$tdataattendance[".isUseToolTips"]=true;
	}
}


	
	$tdataattendance[".NCSearch"]=true;

	

$tdataattendance[".shortTableName"] = "attendance";
$tdataattendance[".nSecOptions"] = 0;
$tdataattendance[".recsPerRowList"] = 1;	
$tdataattendance[".tableGroupBy"] = "0";
$tdataattendance[".mainTableOwnerID"] = "";
$tdataattendance[".moveNext"] = 1;




$tdataattendance[".showAddInPopup"] = false;

$tdataattendance[".showEditInPopup"] = false;

$tdataattendance[".showViewInPopup"] = false;


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

$tdataattendance[".listAjax"] = false;

	$tdataattendance[".audit"] = false;

	$tdataattendance[".locking"] = false;
	
$tdataattendance[".listIcons"] = true;
$tdataattendance[".edit"] = true;
$tdataattendance[".inlineEdit"] = true;
$tdataattendance[".view"] = true;

$tdataattendance[".exportTo"] = true;

$tdataattendance[".printFriendly"] = true;

$tdataattendance[".delete"] = true;

$tdataattendance[".showSimpleSearchOptions"] = false;

$tdataattendance[".showSearchPanel"] = true;


$tdataattendance[".isUseAjaxSuggest"] = true;

$tdataattendance[".rowHighlite"] = true;


// button handlers file names

$tdataattendance[".addPageEvents"] = false;

$tdataattendance[".arrKeyFields"][] = "idattendance_table";

// use datepicker for search panel
$tdataattendance[".isUseCalendarForSearch"] = true;

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

$tdataattendance[".isUseiBox"] = false;



$tdataattendance[".isUseInlineAdd"] = true;

$tdataattendance[".isUseInlineEdit"] = true;
$tdataattendance[".isUseInlineJs"] = $tdataattendance[".isUseInlineAdd"] || $tdataattendance[".isUseInlineEdit"];

$tdataattendance[".allSearchFields"] = array();

$tdataattendance[".globSearchFields"][] = "idattendance_table";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("idattendance_table", $tdataattendance[".allSearchFields"]))
{
	$tdataattendance[".allSearchFields"][] = "idattendance_table";	
}
$tdataattendance[".globSearchFields"][] = "Employee Name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Employee Name", $tdataattendance[".allSearchFields"]))
{
	$tdataattendance[".allSearchFields"][] = "Employee Name";	
}
$tdataattendance[".globSearchFields"][] = "punchedtime";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("punchedtime", $tdataattendance[".allSearchFields"]))
{
	$tdataattendance[".allSearchFields"][] = "punchedtime";	
}
$tdataattendance[".globSearchFields"][] = "Dateandtime";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Dateandtime", $tdataattendance[".allSearchFields"]))
{
	$tdataattendance[".allSearchFields"][] = "Dateandtime";	
}
$tdataattendance[".globSearchFields"][] = "Remarks";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Remarks", $tdataattendance[".allSearchFields"]))
{
	$tdataattendance[".allSearchFields"][] = "Remarks";	
}


$tdataattendance[".googleLikeFields"][] = "idattendance_table";
$tdataattendance[".googleLikeFields"][] = "Employee Name";
$tdataattendance[".googleLikeFields"][] = "punchedtime";
$tdataattendance[".googleLikeFields"][] = "Dateandtime";
$tdataattendance[".googleLikeFields"][] = "Remarks";



$tdataattendance[".advSearchFields"][] = "idattendance_table";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("idattendance_table", $tdataattendance[".allSearchFields"])) 
{
	$tdataattendance[".allSearchFields"][] = "idattendance_table";	
}
$tdataattendance[".advSearchFields"][] = "Employee Name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Employee Name", $tdataattendance[".allSearchFields"])) 
{
	$tdataattendance[".allSearchFields"][] = "Employee Name";	
}
$tdataattendance[".advSearchFields"][] = "punchedtime";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("punchedtime", $tdataattendance[".allSearchFields"])) 
{
	$tdataattendance[".allSearchFields"][] = "punchedtime";	
}
$tdataattendance[".advSearchFields"][] = "Dateandtime";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Dateandtime", $tdataattendance[".allSearchFields"])) 
{
	$tdataattendance[".allSearchFields"][] = "Dateandtime";	
}
$tdataattendance[".advSearchFields"][] = "Remarks";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Remarks", $tdataattendance[".allSearchFields"])) 
{
	$tdataattendance[".allSearchFields"][] = "Remarks";	
}

$tdataattendance[".isTableType"] = "list";


	

$tdataattendance[".isDisplayLoading"] = true;

$tdataattendance[".isResizeColumns"] = false;





$tdataattendance[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdataattendance[".strOrderBy"] = $gstrOrderBy;
	
$tdataattendance[".orderindexes"] = array();

$tdataattendance[".sqlHead"] = "SELECT idattendance_table,  `Employee Name`,  punchedtime,  Dateandtime,  Remarks";
$tdataattendance[".sqlFrom"] = "FROM attendance_table";
$tdataattendance[".sqlWhereExpr"] = "";
$tdataattendance[".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;
$tdataattendance[".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;
$tdataattendance[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "idattendance_table";
	$tdataattendance[".Keys"] = $tableKeys;

//	idattendance_table
	$fdata = array();
	$fdata["strName"] = "idattendance_table";
	$fdata["ownerTable"] = "attendance_table";
		$fdata["Label"]="Idattendance Table"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "idattendance_table";
	
		$fdata["FullName"]= "idattendance_table";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataattendance["idattendance_table"]=$fdata;
//	Employee Name
	$fdata = array();
	$fdata["strName"] = "Employee Name";
	$fdata["ownerTable"] = "attendance_table";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Employee_Name";
	
		$fdata["FullName"]= "`Employee Name`";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=100";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataattendance["Employee Name"]=$fdata;
//	punchedtime
	$fdata = array();
	$fdata["strName"] = "punchedtime";
	$fdata["ownerTable"] = "attendance_table";
		$fdata["Label"]="Punchedtime"; 
	
		
		
	$fdata["FieldType"]= 135;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "punchedtime";
	
		$fdata["FullName"]= "punchedtime";
	
		
		
		
		
		
				$fdata["Index"]= 3;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataattendance["punchedtime"]=$fdata;
//	Dateandtime
	$fdata = array();
	$fdata["strName"] = "Dateandtime";
	$fdata["ownerTable"] = "attendance_table";
		
		
		
	$fdata["FieldType"]= 135;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Dateandtime";
	
		$fdata["FullName"]= "Dateandtime";
	
		
		
		
		
		
				$fdata["Index"]= 4;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataattendance["Dateandtime"]=$fdata;
//	Remarks
	$fdata = array();
	$fdata["strName"] = "Remarks";
	$fdata["ownerTable"] = "attendance_table";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Remarks";
	
		$fdata["FullName"]= "Remarks";
	
		
		
		
		
		
				$fdata["Index"]= 5;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=250";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataattendance["Remarks"]=$fdata;

	
$tables_data["attendance"]=&$tdataattendance;
$field_labels["attendance"] = &$fieldLabelsattendance;
$fieldToolTips["attendance"] = &$fieldToolTipsattendance;

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

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

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

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










$proto215=array();
$proto215["m_strHead"] = "SELECT";
$proto215["m_strFieldList"] = "idattendance_table,  `Employee Name`,  punchedtime,  Dateandtime,  Remarks";
$proto215["m_strFrom"] = "FROM attendance_table";
$proto215["m_strWhere"] = "";
$proto215["m_strOrderBy"] = "";
$proto215["m_strTail"] = "";
$proto216=array();
$proto216["m_sql"] = "";
$proto216["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

$proto215["m_having"] = $obj;
$proto215["m_fieldlist"] = array();
						$proto220=array();
			$obj = new SQLField(array(
	"m_strName" => "idattendance_table",
	"m_strTable" => "attendance_table"
));

$proto220["m_expr"]=$obj;
$proto220["m_alias"] = "";
$obj = new SQLFieldListItem($proto220);

$proto215["m_fieldlist"][]=$obj;
						$proto222=array();
			$obj = new SQLField(array(
	"m_strName" => "Employee Name",
	"m_strTable" => "attendance_table"
));

$proto222["m_expr"]=$obj;
$proto222["m_alias"] = "";
$obj = new SQLFieldListItem($proto222);

$proto215["m_fieldlist"][]=$obj;
						$proto224=array();
			$obj = new SQLField(array(
	"m_strName" => "punchedtime",
	"m_strTable" => "attendance_table"
));

$proto224["m_expr"]=$obj;
$proto224["m_alias"] = "";
$obj = new SQLFieldListItem($proto224);

$proto215["m_fieldlist"][]=$obj;
						$proto226=array();
			$obj = new SQLField(array(
	"m_strName" => "Dateandtime",
	"m_strTable" => "attendance_table"
));

$proto226["m_expr"]=$obj;
$proto226["m_alias"] = "";
$obj = new SQLFieldListItem($proto226);

$proto215["m_fieldlist"][]=$obj;
						$proto228=array();
			$obj = new SQLField(array(
	"m_strName" => "Remarks",
	"m_strTable" => "attendance_table"
));

$proto228["m_expr"]=$obj;
$proto228["m_alias"] = "";
$obj = new SQLFieldListItem($proto228);

$proto215["m_fieldlist"][]=$obj;
$proto215["m_fromlist"] = array();
												$proto230=array();
$proto230["m_link"] = "SQLL_MAIN";
			$proto231=array();
$proto231["m_strName"] = "attendance_table";
$proto231["m_columns"] = array();
$proto231["m_columns"][] = "idattendance_table";
$proto231["m_columns"][] = "Employee Name";
$proto231["m_columns"][] = "punchedtime";
$proto231["m_columns"][] = "Dateandtime";
$proto231["m_columns"][] = "Remarks";
$obj = new SQLTable($proto231);

$proto230["m_table"] = $obj;
$proto230["m_alias"] = "";
$proto232=array();
$proto232["m_sql"] = "";
$proto232["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

$proto215["m_fromlist"][]=$obj;
$proto215["m_groupby"] = array();
$proto215["m_orderby"] = array();
$obj = new SQLQuery($proto215);

$queryData_attendance = $obj;
$tdataattendance[".sqlquery"] = $queryData_attendance;

$tableEvents["attendance"] = new eventsBase;

?>
