<div id="ld" style="position:fixed; top:50%; left:50%"><img src="img/ld.gif"></div>			
<?php
	include "php_class/class_mysql.php";
	include "php_class/class_template.php";
	
	$DataTemplate = new DataTemplate;
	
	$Nama = $_POST['Nama'];
	$BiayaRg = $_POST['BiayaRg'];
	$BiayaNonRg = $_POST['BiayaNonRg'];
	$idBendahara = $_POST['idBendahara'];
	$NamaBendahara = $_POST['NamaBendahara'];	
	$idBendaharaNon = $_POST['idBendaharaNon'];
	$NamaBendaharaNon = $_POST['NamaBendaharaNon'];	
	
	$DataTemplate->add_Template($Nama, $BiayaRg, $BiayaNonRg, $idBendahara, $NamaBendahara, $idBendaharaNon, $NamaBendaharaNon);	
	
	include "php_class/class_log_sistem.php";
	$DataLogSistem = new DataLogSistem;
	$idOperator = $_SESSION['idOperator'];
	$namaOp = $_SESSION["NamaOperator"];
	$keterangan = "Menambah Template transaksi : ".$Nama." oleh ".$namaOp."";
	$DataLogSistem->add_data_log_sistem($keterangan,$idOperator);
	
	echo "<script>window.location='".$base."add-template'</script>";
?>
