<?php


?>
<?php


?>
<?php


//$score1=6;
//$score2=6;
//$ans=$score+$score1+$score2;

//echo $ans;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> Account Management</title>
<link rel="stylesheet" type="text/css" href="layout.css" media="all" />
<link rel="stylesheet" type="text/css" href="tcal.css" />
	<script type="text/javascript" src="tcal.js"></script> 


<link rel="stylesheet" type="text/css" href="js/slide.css" media="all" />
<script type="text/javascript" src="date.js"></script>
<script type="text/javascript" src="js/jquery.core.js"></script>
<script type="text/javascript" src="js/jquery.superfish.js"></script>
<script type="text/javascript" src="js/jquery.jcarousel.pack.js"></script>
<script type="text/javascript" src="js/jquery.easing.js"></script>
<script type="text/javascript" src="js/jquery.scripts.js"></script>

<script src="verticalscroller.js" type="text/javascript"></script>

<script type="text/javascript">
$(window).load(function() {
	$('#slider').nivoSlider({
		effect:'random',
		slices:25,
		animSpeed:300,
		pauseTime:3000,
		directionNav:false, //Next & Prev
		directionNavHide:true, //Only show on hover
		controlNav:false, //1,2,3...
		pauseOnHover:true, //Stop animation while hovering
		beforeChange: function(){},
		afterChange: function(){}
	});
});
</script>



<script language="JavaScript">
function sum() {
      var txtFirstNumberValue = document.getElementById('txt1').value;
      var txtSecondNumberValue = document.getElementById('txt2').value;
      var result = parseInt(txtFirstNumberValue) + parseInt(txtSecondNumberValue);
      if (!isNaN(result)) {
         document.getElementById('txt3').value = result;
      }
}
</script>


<script language="JavaScript">
function sum1() {
      var txtFirstNumberValue = document.getElementById('txt4').value;
      var txtSecondNumberValue = document.getElementById('txt5').value;
	 var txtThirdNumberValue = document.getElementById('txt6').value;
      var result = parseInt(txtFirstNumberValue) + parseInt(txtSecondNumberValue)+ parseInt(txtThirdNumberValue);
      if (!isNaN(result)) {
         document.getElementById('txt7').value = result;
      }
}
</script>

<script language="JavaScript">
function sum11() {
      var txtFirstNumberValue = document.getElementById('txt3').value;
      var txtSecondNumberValue = document.getElementById('txt7').value;
	 
      var result = parseInt(txtFirstNumberValue) - parseInt(txtSecondNumberValue);
      if (!isNaN(result)) {
         document.getElementById('txt9').value = result;
      }
}
</script>

<body onload="goforit()">
<div id="container" style="height:800px; dborder:1px dashed #000;">
		<div id="header"></div>
      
       <?php include'header.php';?>
       
        
        	

			 
        	
			 
        	
        	<div class="textcontainer" style="dborder:1px dashed #000; height:400px;  width:780px; font-family: calibri;">
           
		 <?php
		 include'connect.php';
		 if(isset($_POST['submit'])){
$id=$_GET['id'];
$query=" DELETE FROM `Kg1fee` WHERE `id`='$id' ";
if ($query_run=mysql_query($query)){
die( "<center style= color:red> <h3>Successfully Deleted</h3></center>");
}else{
echo '<center style= color:red>could not be deleted </center>';
}}
		 
		 
		 
		 
		 
		 ?>
		 <form action="<?php $PHP_SELF; ?>" name ="myForm" method="post" onsubmit="return validateForm()"  style="margin-left:50px;">
   <table width="70%" cellspacing="0" cellpadding="0" class="tbl">
 
	
	<tr><td></td><td><br><input type="submit" value="delete" name="submit" /></td></tr></table>
	
</table>
</div>



</form>

</div>



</form>
</div>
            </div>
			
       
		
		
		<div class="b" style="border 1px solid;  height:30px; width:1200px; color:#fff; padding-top:20px; margin:auto; font-size:18px; text-align:center; background-color:blue;">
		Account Management System
		
		
		</div>
                
        </div>		


</body>
</html>
<style type="text/css">

#cont{
margin:auto;
width:750px;
dborder:1px solid;

background-color:#ccc;
border-radius:10px;
}

input[type="button"], .button {border-radius:4px;background-color:#FFAD03;padding:7px 15px;font-size:13px;color:#000;text-shadow:0px 1px 0px #ccc;font-weight:bold;width:auto;box-shadow:inset 0px -10px 15px #ce6d00, 0px 0px 2px #ffad03;border:1px solid #eee;cursor:pointer;}

input[type="submit"], .button{border-radius:4px;background-color:#FFAD03;padding:7px 15px;font-size:13px;color:#000;text-shadow:0px 1px 0px #ccc;font-weight:bold;width:auto;box-shadow:inset 0px -10px 15px #ce6d00, 0px 0px 2px #ffad03;border:1px solid #eee;cursor:pointer;}

p{
padding-right:0px;
font-size:18px;
font-weight:600;
margin-right:10px;
}
h3{color:#FFAD03;width:50%;text-shadow:0px 1px 0px #fff; background-color:#eee; width:520px; border:1px solid #888;padding:10px;box-shadow:0px 2px 5px #333;}

.scroll{
margin:auto;

    background: white;
    width: 1000;
    overflow: auto;
    border: 1px dotted #85b3dc;
	border-radius:10px;
}
</style>
<script type="text/javascript">
        function RefreshParent() {
            if (window.opener != null && !window.opener.closed) {
                window.opener.location.reload();
            }
        }
        window.onbeforeunload = RefreshParent;
    </script>
	
<script type = "text/javascript">
function validateForm()
{
//search validation
var x=document.forms["myForm"]["amount"].value;
if (x==null || x=="")
  {
  alert("Pls enter the room type ");
  return false;
  }
  var x=document.forms["myForm"]["payed"].value;
if (x==null || x=="")
  {
  alert("pls enter the name of person who paid the money to the bank");
  return false;
  } 
 
var x=document.forms["myForm"]["lname"].value;
if (x==null || x=="")
  {
  alert("Last Name must be fill out");
  return false;
  }
 var x=document.forms["myForm"]["fname"].value;
if (x==null || x=="")
  {
  alert("First Name must be fill out");
  return false;
  }
  

   
  }
  function calculate() {
A = document.myForm.fee.value
B = document.myForm.pa.value

A = Number(A)
B = Number(B)
C = (A - B)
document.myForm.bal.value = C

}
  
 
	
	
</script>
<?php

?>

