Current File : /home/inlingua/public_html/faridabad/icentex/general_leave/cancelleave.php
<?php 
include("check_leave.php");
date_default_timezone_set('Asia/Calcutta');
// Include the database connection details
require('../dbConnection.php');

// Include common functions
require('../commonFunc.php');

// Include common functions
require('../globalVars.php');

// Include the table handler class
require('../dbHandler.class.php');

// Init and connect to database
$dbObject = new dbHandler();
$dbObject->connect();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>inlingua Soft</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="../style.css" rel="stylesheet" type="text/css" />
<link media="screen" rel="stylesheet" href="../admin_leave/colorbox.css" />

<link type="text/css" href="../jquery/development-bundle/themes/base/ui.all.css" rel="stylesheet" /> 
	<script type="text/javascript" src="../jquery/development-bundle/jquery-1.3.2.js"></script> 
	<script type="text/javascript" src="../jquery/development-bundle/ui/ui.core.js"></script> 
	<script type="text/javascript" src="../jquery/development-bundle/ui/ui.datepicker.js"></script> 
	<script type="text/javascript" src="../jquery/development-bundle/ui/ui.slider.js"></script>
	
	<script type="text/javascript" src="../jquery/development-bundle/jquery.validate.js"></script> 
		<script type="text/javascript" src="js/leave_form.js"></script> 
		<script src="../admin_leave/js/jquery.colorbox.js"></script>

<script>
function cancelcheck()
{
if(document.cancelform.cancelreason.value=="")
{
alert("Please Provide Reason");
document.cancelform.cancelreason.focus();
return false;
}
return true;
}
</script>
<style type="text/css">

#leaveForm label.error {
	margin-left: 0px;
	width: auto;
	display: block;
	color:#FF3366;
	/*border:#990066 solid 1px;*/
}

</style>

<STYLE type="text/css">

INPUT.btnStyle { background-color: #cccccc; 
border-color: efefef; 
border:solid 1px #000000;
font-family: arial, verdana, ms sans serif; 
font-weight: bold; 
font-size: 12pt; 
}

INPUT.btnStyle1 { background-color: #cccccc; 
border-color: efefef; 
border:solid 1px #000000;
font-family: arial, verdana, ms sans serif; 
font-weight: normal; 
font-size: 12pt; 
}

</STYLE>
</head>
<body>
<?php
 $query="select * from leaves_non_teach where id='".$_REQUEST['id']."'";
 $result=mysqli_query($conn,$query);
 $num=mysqli_fetch_array($result);
?>
<form name="cancelform" onsubmit="return cancelcheck();" method="post" action="leaves.main.php">
<input type="hidden" name="aC" value="Update" />
<input type="hidden" name="kV" value="<?php echo $_REQUEST['id']; ?>" />
<input type="hidden" name="fromDate_search" value="<?php echo $_REQUEST['fromDate_search']; ?>" />
<input type="hidden" name="toDate_search" value="<?php echo $_REQUEST['toDate_search']; ?>" />

<table width="100%">
<tr><td align="left" colspan="2"><h3>Cancel Leave</h3></td></tr>
<tr><td align="left" width="30%"><b>From Date</b></td><td align="left"><?php echo $num['fromDate']; ?></td></tr>
<tr><td align="left" width="30%"><b>To Date</b></td><td align="left"><?php echo $num['toDate']; ?></td></tr>
<tr><td align="left" width="30%"><b>No Of Days</b></td><td align="left"><?php echo $num['noofdays']; ?></td></tr>
<tr><td align="left" width="30%" valign="top"><b>Reason of Cancel</b></td><td align="left"><textarea cols="30" rows="4" name="cancelreason"></textarea></td></tr>
<tr><td>&nbsp;</td><td  align="left"><input type="submit" value="Cancel"  class="btnStyle1"/></td></tr>
 </table>
</form>
</body>
</html>