db_host=$hostname;
$objTKRAK->db_user=$username;
$objTKRAK->db_pass=$password;
$objTKRAK->db_database=$database;
if(!$objTKRAK->db_connect()) {
echo "
Sorry! Could not connect to the database server.
";
exit();
}
if ($modus=='modify'){
//$id = $var['id'];
$id=isset($_GET['id']) ? htmlspecialchars($_GET['id']) : "";
$hideid = isset($_GET['hideid']) ? htmlspecialchars($_GET['hideid']) : "";
$allFields=$objTKRAK->getAllFieldsById($id,$tahun);
$nilai=$allFields['nilai'];
$namaakun=$allFields['name'];
$readonly='readonly="readnonly"';
}elseif($modus == 'insert'){
$parentid = $_REQUEST['nogrupakun'];
$readonly ='';
}
?>