<?php


//Main Configuration ====================================
//Database Field (Columns)
$form_key_id="sth_id";
$sys_field_id=1;



$form_field_separator[$sys_field_id]="Other Info";

//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="sth_reference_no";
$form_field_label[$sys_field_id]="Reference No.";
$form_field_hints[$sys_field_id]="";
$form_field_value[$sys_field_id]="";
$form_field_unique[$sys_field_id]="";
$form_field_checking[$sys_field_id]="COMPULSORY"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="textbox textbox-l"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="TEXT"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]=""; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]=""; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
$sys_field_id++;



//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="sth_category_code";
$form_field_label[$sys_field_id]="Posting Category";
$form_field_hints[$sys_field_id]="";
$form_field_value[$sys_field_id]="";
$form_field_unique[$sys_field_id]="";
$form_field_checking[$sys_field_id]="COMPULSORY"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="dropdown dropdown-auto"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="DROPDOWN"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]="SQL"; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]="select stc_code as value , stc_name as text from t_".$key_table_prefix."_stock_transaction_category "; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]="stc_code"; //SQL row ID
$sys_field_id++;



//---------------------------------------------------------------------------------------------------------------------------
$form_field[$sys_field_id]="sth_remark";
$form_field_label[$sys_field_id]="Remark";
$form_field_hints[$sys_field_id]="";
$form_field_value[$sys_field_id]="";
$form_field_unique[$sys_field_id]="";
$form_field_checking[$sys_field_id]="COMPULSORY"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
$form_field_class[$sys_field_id]="textbox textbox-l"; //(textbox/upload/dropdown/textarea/checkbox)
$form_field_type[$sys_field_id]="TEXT"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
$form_field_dropdown_option[$sys_field_id]=""; //(KEYWORD = include/keyword.php,  SQL = From database )
$form_field_dropdown_option_values[$sys_field_id]=""; //SQL String(select XX as value, YY as text from...) or Keyword 
$form_field_dropdown_option_values_key[$sys_field_id]=""; //SQL row ID
$sys_field_id++;


//==================Start: Project Module=====================================================================================

if($sys_system_master_setting_line["set_module_project"]=="YES")
{


	$form_field_separator[$sys_field_id]="Project Info";


	for($prj=1;$prj<=1;$prj++)
	{
		
		
		
		
		
		
		
		//---------------------------------------------------------------------------------------------------------------------------
		
		$project_field_id = $sys_field_id; //important(used in save / update /query get data part)
		
		$form_field[$sys_field_id]="project_id";
		$form_field_label[$sys_field_id]="Project";
		$form_field_hints[$sys_field_id]="";
		$form_field_value[$sys_field_id]="";
		$form_field_unique[$sys_field_id]="";
		$form_field_checking[$sys_field_id]="OPTIONAL"; //(COMPULSORY/OPTIONAL/PASSWORD1/PASSWORD2)
		$form_field_class[$sys_field_id]="dropdown dropdown-auto"; //(textbox/upload/dropdown/textarea/checkbox)
		$form_field_type[$sys_field_id]="DROPDOWN"; //(TEXT/PASSWORD/TEXTSUGGEST/DATE_START/DATE_END/DATE/TIME/PASSWORD/DROPDOWN/FILE_PHOTO/PRICE/QUANTITY)
		$form_field_dropdown_option[$sys_field_id]="SQL"; //(KEYWORD = include/keyword.php,  SQL = From database )
		$form_field_dropdown_option_values[$sys_field_id]="select prj_id as value , concat(prj_code,' - ',prj_name) as text from t_".$key_table_prefix."_project "; //SQL String(select XX as value, YY as text from...) or Keyword 
		$form_field_dropdown_option_values_key[$sys_field_id]="prj_code"; //SQL row ID
		$sys_field_id++;

		



	}

}			
//==================End: Project Module=====================================================================================




$form_table_name="t_".$key_table_prefix."_stock_transaction_header";








?>