Location: PHPKode > projects > Dynamic Band Manager > dbm-current/calculate.php
<?
include "permissions.php";
include "admin_headers.php";

if($logged_in!="1"){
	echo "dbm:=>You are not authorised to view this page.";
	exit;
	}
	
$total_venue=$venue_ph*$hours_ven;
$total_equip=$equip_ph*$hours_equip;
$total_bounce=$bounce_ph*$hours_bounce;
$total_bands=$no_bands*$band_cash;
$total_out=$total_venue+$total_equip+$total_bounce+$total_bands;

$total_tickets=$ticket_cost*$ticket_sales;
$total_in=$total_tickets+$other_income;

$net=$total_in-$total_out;

?>

<table width="100%"><tr><td bgcolor="#ececec"><center><b>Planning of <?echo $gig_name; ?></b></center></td></tr></table>
<br><br>
<center>
<table width="70%">
	<tr><td width="75%">Cost of venue per hour</td><td>£<? echo $venue_ph; ?></td></tr>
	<tr><td>Number of hours to hire venue</td><td><? echo $hours_ven; ?></td></tr>
	<tr><td><b>Total venue cost</b></td><td><b>£<? echo $total_venue; ?></b></td></tr>
	<tr><td>&nbsp</td><td>&nbsp</td></tr>
	<tr><td>Equipment hire cost per hour</td><td>£<? echo $equip_ph; ?></td></tr>
	<tr><td>Number of hours to hire equipment</td><td>£<? echo $hours_equip; ?></td></tr>
	<tr><td><b>Total Equipment hire cost</b></td><td><b>£<? echo $total_equip;?></b></td></tr>
	<tr><td>&nbsp</td><td>&nbsp</td></tr>
	<tr><td>Cost of bouncers per hour</td><td>£<? echo $bounce_ph; ?></td></tr>
	<tr><td>Number of hours to hire bouncers</td><td><? echo $hours_bounce; ?></td></tr>
	<tr><td><b>Total cost of bouncers</b></td><td><b>£<? echo $total_bounce; ?></b></td></tr>
	<tr><td>&nbsp</td><td>&nbsp</td></tr>
	<tr><td>Amount to pay other bands</td><td>£<? echo $band_cash; ?></td></tr>
	<tr><td>Number of bands to pay</td><td><? echo $no_bands; ?></td></tr>
	<tr><td><b>Total cost to pay bands</b></td><td><b>£<?echo $total_bands; ?></b></td></tr>
	<tr><td>&nbsp</td><td>&nbsp</td></tr>
	<tr><td><b>Transport costs</b></td><td><b><? echo $trans; ?><b></td></tr>
	<tr><td>&nbsp</td><td>&nbsp</td></tr>
	<tr><td><b>Other costs</td><td><b>£<? echo $other_costs; ?><b></td></tr>
	<tr><td>&nbsp</td><td>&nbsp</td></tr>
	<tr><td><b><font color="#1a70bc">Total outgoing</font></b></td><td><b><font color="#1a70bc">£<? echo $total_out; ?></b></font></td></tr>
	<tr><td>&nbsp</td><td>&nbsp</td></tr>
	<tr><td>Ticket cost</td><td>£<? echo $ticket_cost; ?></td></tr>
	<tr><td>Estimated ticket sales</td><td>£<? echo $ticket_sales; ?></td></tr>
	<tr><td>Other income</td><td>£<? echo $other_income; ?></td></tr>
	<tr><td>&nbsp</td><td>&nbsp</td></tr>
	<tr><td><b><font color="#1a70bc">Total income</b></font></td><td><b><font color="#1a70bc">£<? echo $total_in; ?></font></b></td></tr>
</table>
<br><br><center><b><font color="#1a70bc">Total Profit</b></font><br><table width="100%"><tr><td bgcolor="#ececec"><center><b>
<?
if ($net<"0"){
	echo "<font color=\"red\"><b>£$net</font><br><font color=\"red\">Warning! It would cost you more than you can bring in to use this setup!</font></b></td></tr></table></center>";
	} else {
	echo "£$net</b></td></tr></table></center>";
	}
?>

<?
include "admin_footers.php";
?>

Return current item: Dynamic Band Manager