    <?php

	$idEvent = "transactionForm";
	$kontak_dagang_transaksi = kontak_dagang_transaksi($exhibitorID, $header_id, $transaksiID, $idEvent);
	//var_dump($kontak_dagang_transaksi);	

	$tgl_transaksi = $kontak_dagang_transaksi["tgl_transaksi"];
	$header_id = $kontak_dagang_transaksi["header_id"];


	$button_label = $_REQUEST["button_label"];
	if ($button_label == "Edit Transaction") {
	
	} else {
		//echo "<br>header_id: ".$header_id;
		//$button_label  = "";
		$button_label = "Edit Transaction";

		echo '
		<form name="formEditKontakDagang" id="formEditKontakDagang" class="form" action="'.$thisPage.'adm1n/'.$curPage1.'" onsubmit="return validate(this)" method="post">
			<input type="hidden" name="action" id="action" value="'.$button_label.'" />
			<input type="hidden" name="tglNAMA" id="tglNAMA" value="'.$tglNAMA.'"/>
			<input type="hidden" name="exhibitorID" id="exhibitorID" value="'.$exhibitorID.'"/>
			<input type="hidden" name="button_label" id="button_label" value="'.$button_label.'"/>
			<input type="hidden" name="header_id" id="header_id" value="'.$header_id.'" />
		</form>';
		echo '
		<script type="text/javascript">
			document.getElementById(\'formEditKontakDagang\').submit(); 
		</script>';
	}
	?>
	