<?php
//if (isset($_POST['mon_submit'])) {
include ("inc/dbconnection.php");
include ("inc/function.php");
//eND OF THE PAGE...
$id = "";
$add_div = "";
$hidden_value = "";
$ticket_id = $_REQUEST['id'];
$type = $_REQUEST['type'];
$to = getdbDate($_REQUEST['str']);
$from = getdbDate($_REQUEST['sdate']);
$from_date = str_replace("/", "-", $from);
$to_date = str_replace("/", "-", $to);
$id = getemployeeDetailByTicket('emp_id', $ticket_id);
$shift = $_GET["shift"];

if (isset($_GET['start'])) {
    if ($_GET['start'] == 'All') {
        echo $start = 0;
    } else {
        echo $start = $_GET['start'];
    }
} else {
    $start = 0;
}
$day = substr($_GET["str"], 0, 2);
$month = substr($_GET["str"], 3, 2);
$year = substr($_GET["str"], 6, 4);
$weekly_day = date("l", mktime(0, 0, 0, $month, $day, $year));
$holiday = getHoliday('holiday_name', $date);
                                                                  <td width="15%" class="gredBg">Delete</td>
                                                              </tr>
                                                     <?
                                                        while($row=mysql_fetch_array($result_prj))
                                                        {	
                                                    ?>
                                                                <tr <? if ($sno%2==1) { ?> bgcolor="#F5F2F1" <? } ?>>
                                                                    <td align="center" width="13%"><?php 
echo $sno;
?>
</td>
                                                                    <td align="center"><?php 
echo getemployeeDetailByTicket('first_name', $row['emp_id']);
?>
 <?php 
echo getemployeeDetailByTicket('last_name', $row['emp_id']);
?>
</td>
                                                                    <td align="center"><?php 
echo getdeptDetail('department_name', 'rec_id', $row['department']);
?>
</td>
                                                                    <td align="center"><?php 
echo getplantDetail('plant_name', 'rec_id', $row['plant_id']);
?>
</td>
                                                                    <td align="center"><a href="javascript:;" onClick="return hs.htmlExpand(this)">
                                                                    	<img src="images/Find-icon.png" border="0" width="24" height="24" /></a>
                                                                        <div class="highslide-maincontent">
                                                                        <table align="center" width="100%" cellpadding="1" cellspacing="1" border="0">
                                                                            <tr class="gredBg">