To change php to jsp code

if( check_client_max_booking() ) {
	header("Location: group_booking.html");
	exit;
}

	
	
	if (!$special)
	{
		$start_date = make_date( $start_year, $start_month, $start_day );
		$end_date = make_date( $end_year, $end_month, $end_day );
	}
	if(check_date_interval( $start_date, $end_date ) ) 
	{	 
		 
		 header("Location: reservations.php?error=1");	
		 exit;
	
	}

	
	
	


/////////////////////////////////////////////////////////////////////////////


if( $spec_id ) {
	$summ = get_special_summ( $start_date, $end_date, $spec_id, $singles, $doubles, $twins, $triples, $executives, $RType6, $RType7, $RType8 , $RType9, $RType10, $exec_guest_number );
	if ($summ==-1)
	{  
		
		header("Location: reservations.php?spec_id=$spec_id");	
		exit;	
	}
	else
	{
	print TEXT_SPECIAL_OFFER1;
	print $spec_id;
	print TEXT_SPECIAL_OFFER2;
	}

} else {
	$summ = get_summ( $start_date, $end_date, $singles, $doubles, $twins, $triples, $executives, $RType6, $RType7, $RType8 , $RType9, $RType10, $exec_guest_number );	
	
}

if( $summ == -1 ) {
header("Location: reservations.php?error=3");	
		exit;
}
include "themes/header.php";
?>

<tr><td valign=top>

<?

  include "themes/menu.php";

?>
</td>

<td>

<?

print TEXT_THE_HOTEL_CAN;
print TEXT_TOTAL_SUM_IS.$currency.$summ."( ".$currency_euro.to_euro($summ)." )<br>" ;
             	

if( $spec_id ) {
	print TEXT_SPECIAL_OFFER1;
	print $spec_id;
	print TEXT_SPECIAL_OFFER2;
}


?>

Hi @berikasa091746, welcome to the forums.

Do you have a specific question about your code or are you running into any issues with converting it to Java?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.