<?php
	session_start();
	// ============
	include("../../asset/theme/css/myfunc.php");
	include("../../php_crud/my_class.php");
	$obj=new my_class();
	// ============
	extract($_REQUEST);
	$branchid = $_SESSION['LOGIN_BRANCH'];
	$entry_by = $_SESSION['LOGIN_USERID'];
	$date = date('d-M-Y');
	
	if($operation=="stationEntryForm"){
		/*echo "new_id=$\n"."name=$name\n"."address=$\n"."lattitude=$\n"."longitude=$\n".
		"old_id=$\n"."geologist=$\n"."contact_no=$contact_no\n"."problem_type=$problem_type\n".
		"remarks=$remarks\n"."install_date=$install_date\n"."status=$status\n"."note=$note\n".
		"parameter_type=$parameter_type\n"."sensor_depth=$sensor_depth\n"."parapet_height=$parapet_height\n".
		"well_dia_inch=$well_dia_inch\n"."curr_well_depth=$curr_well_depth\n"."prev_well_depth=$prev_well_depth\n".
		"gw_table_top=$gw_table_top\n"."rl_top_pipe=$rl_top_pipe\n"."dest_sob_gwl=$dest_sob_gwl\n"."rl_value=$rl_value\n".
		"level_book_no=$level_book_no\n"."ole_time=$ole_time\n"."ole_day=$ole_day\n"."modem_sim_no=$modem_sim_no\n".
		"mobile_operator=$mobile_operator\n"."modem_id=$modem_id\n"."observer_name=$observer_name\n".
		"installation_engine=$installation_engine\n"."obs_contact=$obs_contact\n"."alternate_obs_contact=$alternate_obs_contact\n".*/
		"obs_address=$obs_address\n";
		
		$dataTable = "TBLGWH_BASICINFOMST";
		$values = array(
			'SLNO'=>"",
			'DEVICESLNO'=>$dev_ins_id,
			'NEW_ID'=>$new_id,
			'OLD_ID'=>$old_id,				
			'ZONE'=>"",
			'ZONECODE'=>"",
			'DIVISION'=>"",
			'DISTRICTNAME'=>"",
			'DISTRICTCODE'=>"",
			'UPAZILANAME'=>"",
			'UPAZILACODE'=>"",		
			'ADDRESSDETAIL'=>$address,		
			'OBSERVERNAME'=>$observer_name,
			'CONTACTNO'=>$obs_contact,
			'ALTERNATECONTACTNO'=>$alternate_obs_contact,
			'SENSORTYPE'=>$parameter_type,
			'SENSORDEPTH'=>$sensor_depth,
			'PREVIOUSWELLDEPTH'=>$prev_well_depth,
			'CURRENTWELLDEPTH'=>$curr_well_depth,
			'WELLDIA_INCH'=>$well_dia_inch,
			'LATITUDE'=>$lattitude,
			'LONGITUDE'=>$longitude,
			'RLTOTOPOFTHEPIPE'=>$rl_top_pipe,
			'PARAPETHEIGHT'=>$parapet_height,
			'GWTABLEFROMTOPOFTHEPIPE'=>$gw_table_top,
			'MODEMID'=>$modem_id,
			'DATALOGGERID'=>$data_logger_id,
			'OLEDAY'=>$ole_day,
			'MOBILEOPERATOR'=>$mobile_operator,
			'SIMNUMBER'=>$modem_sim_no,
			'SUPERVISINGGEOLOGIST'=>$geologist,
			'INSTALLENGINE'=>$installation_engine,
			'STATUS'=>"A",
			'REMARKS'=>$remarks,
			'NOTE'=>$note,
			'SIGNALSTRENGTH'=>"",
			'RL'=>$rl_value,
			'INTSDATETIME'=>$install_date,
			'DATATRANSMISSIONTIME'=>"",
			'OLETIME'=>$ole_time,
			'DEVISIONCODE'=>"",
			'SUBDIVISIONCODE'=>"",
			'CIRCLECODE'=>"",
			'PROBLEMID'=>"",
			'LEVELBOOKNO'=>$level_book_no,
			'DISTANCESOBPILLARTOGWL'=>$dest_sob_gwl,
			'STATIONIMAGE1'=>"",
			'STATIONIMAGE2'=>"",
			'STATIONIMAGE3'=>"",
			'DIVUSER'=>"",
			'OTHERS1'=>"",
			'OTHERS2'=>"",
			'OTHERS3'=>"",
			'STATIONNAME'=>"",
			'CREATEBY'=>$entry_by,
			'CREATEDATE'=>$date
		);
		$sql = $obj->Insert_Data($dataTable,$values);	
	}
	

?>