Current File : /home/inlingua/www/corporate_details/index_olddd.php |
<?php
session_start();
// Include the database connection details
require('../icentex/dbConnection.php');
// Include common functions
require('../icentex/commonFunc.php');
// Include common functions
require('../icentex/globalVars.php');
// Include the table handler class
require('../icentex/dbHandler.class.php');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" dir="ltr" >
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="robots" content="index, follow" />
<meta name="keywords" content="English Course in Delhi,English Language Courses, inlingua, New Delhi, Delhi Language School, Language Courses in Delhi, language institute in delhi, Language Courses in New Delhi,language institute in new delhi, New Delhi Language School" />
<meta name="title" content="Home" />
<meta name="author" content="inlingua" />
<meta name="description" content="At inlingua we know that good communication skills are the key to your success! The inlingua method ensures that you will speak more confidently, and more accurately, from your very first class." />
<meta name="generator" content="Joomla! 1.5 - Open Source Content Management" />
<title>Language Course in New Delhi, Delhi Language School, English Language Courses in Delhi, English Language Institute in Delhi, Language Courses in Delhi</title>
<link href="/templates/inlingua/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<script type="text/javascript" src="/media/system/js/mootools.js"></script>
<script type="text/javascript" src="/media/system/js/caption.js"></script>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" >
<link rel="stylesheet" href="/templates/inlingua/css/styleRegion.css" type="text/css">
<link rel="stylesheet" href="/templates/inlingua/css/styles.css" type="text/css">
<link rel="stylesheet" href="/templates/inlingua/css/styleNav.css" type="text/css">
<link rel="stylesheet" href="/templates/inlingua/css/styleForm.css" type="text/css">
<link rel="stylesheet" href="/templates/inlingua/css/styleCorporate.css" type="text/css">
<link rel="stylesheet" href="/templates/inlingua/css/styleFeatures.css" type="text/css">
<link rel="stylesheet" href="/templates/inlingua/css/general.css" type="text/css">
<script language="JavaScript" type="text/javascript" src="/templates/inlingua/javascript/wScript.js"></script>
<script language="JavaScript" type="text/javascript" src="/templates/inlingua/javascript/iScript.js"></script>
<link rel="stylesheet" href="/templates/inlingua/css/s.css" type="text/css">
<style>
#login-wrapper #login-content {
text-align:left;
width:290px;
padding: 30px;
margin:0 auto;
background: #fff;
border: 1px solid #ccc;
-moz-border-radius:3px;
-webkit-border-radius:3px;
border-radius:3px;
}
#login-wrapper #login-top {
width:350px;
margin: 0px auto 0 auto;
}
#login-wrapper #login-content label {
color:#222;
float:left;
width:80px;
font:400 14px Helvetica, Arial, sans-serif;
padding:0
}
.AttenRed{
background:#FF0033;
color:#FFFFFF;
}
.Attengrey
{
background:#D7D7D7;
}
</style>
<style type="text/css">
#dhtmltooltip{
position: absolute;
text-align: left;
border: 1px solid #cccccc;
padding: 2px;
background-color: lightyellow;
visibility: hidden;
z-index: 100;
/*Remove below line to remove shadow. Below line should always appear last within this CSS*/
filter: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135);
}
.borderright{
border-right: 1px solid #000000;
}
.borderleft{
border-left: 1px solid #000000;
}
.bordertop{
border-top: 1px solid #000000;
}
.borderbottom{
border-bottom: 1px solid #000000;
}
.borderall{
border: 1px solid #000000;
}
</style>
</head>
<body>
<div id="pageregion">
<div id="pageregionHeader">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="bg" height="15" width="160" align="center" style="font-size:12px;font-weight:normal;">New Delhi</td>
<td colspan="2"><img src="/templates/inlingua/images/trans.gif" alt="spacer" width="560" height="17"></td>
<td rowspan="4" class="bg"><a href="/"><img src="/templates/inlingua/images/logo.jpg" alt="inlingua logo" width="160" height="79" border="0"></a></td>
</tr>
<tr>
<td><img src="/templates/inlingua/images/trans.gif" alt="spacer" width="160" height="32"></td>
<td class="tag" style=" padding:0 0 6px 20px;">English for Success</td>
<td align="right"><img src="/templates/inlingua/images/trans.gif" alt="spacer" width="172" height="26"></td>
</tr>
<tr>
<td><img src="/templates/inlingua/images/trans.gif" alt="spacer" width="160" height="5"></td>
<td><img src="/templates/inlingua/images/trans.gif" alt="spacer" width="380" height="5"></td>
<td><img src="/templates/inlingua/images/trans.gif" alt="spacer" width="180" height="5"></td>
</tr>
<tr>
<td colspan="3"><img src="/templates/inlingua/images/trans.gif" alt="spacer" width="160" height="16"></td>
</tr>
<tr>
<td class="bg"><img src="/templates/inlingua/images/trans.gif" alt="spacer" width="160" height="64" ></td>
<td class="bghead" colspan="2"> <div class="orange_bg top_row">
<div class="sq_bx"> <img src="/templates/inlingua/images/main_1.jpg" width=80 height=64 border="0"/> </div>
<div class="sq_bx"></div>
<div class="sq_bx"> <img src="/templates/inlingua/images/main_2.jpg" width=80 height=64 border="0"/> </div>
<div class="sq_bx yellow_bg"></div>
<div class="rec_bx"></div>
<div class="sq_bx"> <img src="/templates/inlingua/images/main_3.jpg" width=80 height=64 border="0"/> </div>
</div>
</td>
<td class="bg"> </td>
</tr>
</table>
</div>
<table width='100%' height='400' border='0'><tr><td width='17%'>
<div class="widget">
<center>
<div class="box_world" onclick="window.open('http://www.inlingua.com', 'worldwide', 'status=1,toolbar=1,location=1,menubar=1,resizable=1,scrollbars=1');">
<div class="box_caption"> <a href="javascript:void(0);" id="worldwide" class="boxlink" title="">Worldwide Centers</a> </div>
</div>
</center>
</div>
<div class="ht_20"></div>
<div class="widget">
<center>
<!--<div class="box_friday" onclick="self.location='/widgets/free-friday.html'">
<div class="box_caption"> <a href="/widgets/free-friday.html" class="boxlink" title="">Free assessment</a> </div>
</div>-->
<div class="box_workshop1" onclick="self.location='/courses/iskill/iskill-time-table.html'">
<div class="box_caption" style="text-align:left;"> <a href="/courses/iskill/iskill-time-table.html" class="boxlink" title="one day workshop"> November '11</a> </div>
</div>
</center>
</div>
</div>
<!--<table><tr><td background="inlingua/images/worldwide_full.jpg"></td></tr>
<tr><td></td></tr>
</table>-->
</td><td>
<div style="width:100%;text-align:left;font-size:15px;"><b>Corporate Course Report</b></div><br>
<?php
// Init and connect to database
$dbObject = new dbHandler();
$dbObject->connect();
$emailid=$_REQUEST['email_id'];
$queryEmail="select * from corporate_email_report where recNo='".$emailid."'";
$resultEmail=mysql_query($queryEmail);
$numEmail=mysql_fetch_array($resultEmail);
if($numEmail['key1']!=$_REQUEST['sid'])
{
die();
}
$_REQUEST[CID]=$numEmail['courseID'];
//////////////////////////Rescheduled dates///////////
$RSArray=array();
$RSArray1=array();
$RSArray2=array();
$queryR="select * from ingl_reschedule where courserecNo='".$_REQUEST[CID]."'";
$resultR=mysql_query($queryR);
while($numR=mysql_fetch_array($resultR))
{
$fromD=$numR['fromDate'];
$rd=$numR['schedule_date'];
$RSArray[]=$rd;
$RSArray1[]=$fromD;
$RSArray2[$fromD]=$rd;
}
//print_r($RSArray);
//////////////////////////Rescheduled dates///////////
$query="select * from ingl_course where recNo='".$_REQUEST[CID]."'";
$result=mysql_query($query);
$num=mysql_fetch_array($result);
$count=mysql_num_rows($result);
if($count<=0)
{
echo"This Couse ID Not Present";
die();
}
$sd=$num['startdate'];
//$ed=$num['enddate'];
if(count($RSArray)>0)
{
if($num['enddate']>max($RSArray))
{
$ed=$num['enddate'];
}
else{
$ed=max($RSArray);
}
}
else{
$ed=$num['enddate'];
}
$course_prefix=$num['course_prefix'];
$cdays=$num['courseday'];
$cdays1=explode(",",$cdays);
//print_r($cdays1);
//echo count($cdays1);
///////////////////////////Holidays//////////////////
$holidays=array();
$queryH="select * from ingl_holidays";
$resultH=mysql_query($queryH);
while($numH=mysql_fetch_array($resultH))
{
$holidays[$numH['holiday']]=$numH['holiday_date'];
}
///////////////////////////Holidays//////////////////
///////////////////////////Cancelled//////////////////
$cancelled=explode(",",$num['selectedDate']);
///////////////////////////Cancelled//////////////////
$fromdate1=explode("-",$sd);
$todate1=explode("-",$ed);
$fdate1= date("d F Y", mktime(0, 0, 0, $fromdate1[1], $fromdate1[2], $fromdate1[0]));
$tdate1= date("d F Y", mktime(0, 0, 0, $todate1[1], $todate1[2], $todate1[0]));
if($num['company_loc']!="")
{
$loc=", ".ucfirst($num['company_loc'])."";
}
if($num['company']!="")
{
echo"<b>Company : </b>".ucfirst($num['company'])."".$loc."<br>";
}
echo"<b>Course ID: </b>".$num['courseid']." <b>From Date: </b>".$fdate1." <b>To Date: </b>".$tdate1." <b>Timings: </b>".$num['start_hour'].":".$num['start_minute']." Hrs - ".$num['end_hour'].":".$num['end_minute']." Hrs<br><br>";
//$sd="2011-12-25";
//$ed="2012-04-10";
$sd1=explode("-",$sd);
$sdY=$sd1[0];
$sdM=$sd1[1];
$sdD=$sd1[2];
$ed1=explode("-",$ed);
$edY=$ed1[0];
$edM=$ed1[1];
$edD=$ed1[2];
?>
<?php
define ("ADAY" ,(60*60*24));
?>
<table border='0' cellspacing=0,cellpadding=0 style="border:solid #E9E9E9 1px;">
<?php
for($yr=$sdY;$yr<=$edY;$yr++)
{
if($sdY==$edY)
{
$sdM1=$sdM;
$edM1=$edM;
}
else
{
if($yr==$sdY)
{
$sdM1=$sdM;
$edM1=12;
}
else
{
$sdM1=1;
$edM1=$edM;
}
}
$year=$yr;
$y=0;
for($k=$sdM1;$k<=$edM1;$k++)
{
$x=$y%2;
if($x==0)
{
echo"<tr>";
}
echo"<td valign='top' align='center' style='border:solid #E9E9E9 1px;background-color:#FFFFDD;'>";
$month=$k;
if( ! checkdate($month,1 ,$year))
{
$nowArray=getdate();
$month=$nowArray[mon];
$year=$nowArray[year];
}
$CuDate=getdate();
$start =mktime(0,0,0,$month , 1 ,$year);
$firstDayArray= getdate($start);
if($firstDayArray[month]==$CuDate[month] && $firstDayArray[year]==$CuDate[year])
{
echo "<font color='green'><b>".$firstDayArray[month].", ".$firstDayArray[year]."</b></font>";
}
else
{
echo "<b>".$firstDayArray[month].", ".$firstDayArray[year]."</b>";
}
$days= array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");
if($firstDayArray[month]==$CuDate[month] && $firstDayArray[year]==$CuDate[year])
{
echo"<table cellpadding=3 cellspacing=0, style='border:solid #E9E9E9 1px;width:260px;'>\n";
}
else
{
echo"<table cellpadding=3 cellspacing=0, style='border:solid #E9E9E9 1px;width:260px;'>\n";
}
foreach( $days as $day )
{
if($day=="Sun")
{
//echo"\t<td style='border:solid #E9E9E9 1px;background-color:#FFA4A4 ;' valign='top'><b>$day</b></td>\n";
echo"\t<td style='border:solid #E9E9E9 1px;background-color:#FFA4A4 ;' valign='top'><b>$day</b></td>\n";
}
else
{
echo"\t<td valign='top' style='border:solid #E9E9E9 1px;background-color:#FFA4A4 ;'><b>$day</b></td>\n";
}
}
for( $count=0;$count < (6*7) ;$count++)
{
$dayArray=getdate( $start);
if( (($count) %7)==0)
{
if( $dayArray[mon] != $month)
break;
echo"</tr><tr>\n";
}
if( $count < $firstDayArray[wday] || $dayArray[mon] != $month)
{
//echo"\t<td bgcolor='red'><br></td>\n";
echo"\t<td><br></td>\n";
}
else
{ //echo $dayArray[wday];
if($firstDayArray[mon]<10)
{
$first="0".$firstDayArray[mon]."";
}
else
{
$first="".$firstDayArray[mon]."";
}
if($dayArray[mday]<10)
{
$firstD="0".$dayArray[mday]."";
}
else
{
$firstD="".$dayArray[mday]."";
}
$date2="".$firstDayArray[year]."-".$first."-".$firstD."";
$ddc="".$dayArray[year]."-".$first."-".$firstD."";
$dayc=mktime(0,0,0,$first,$firstD,$dayArray[year]);
$dayc1=date("D",$dayc);
if($ddc>=$sd && $ddc<=$ed)
{
if($num['attendance_table']=="")
{
$num['attendance_table']='ingl_attendances_2011';
}
$queryM="select * from ".$num['attendance_table']." where courseIdrecNo='".$_REQUEST[CID]."' && attd_date='".$ddc."'";
$resultM=mysql_query($queryM);
$numM=mysql_num_rows($resultM);
if(in_array($ddc,$holidays) && $cdays1[0]!="")
{
$sear=array_search($ddc,$holidays);
$msg="".$sear."";
echo"\t<td style='border:solid #E9E9E9 1px;background-color:red;' valign='top' onMouseover='ddrivetip(\"".$msg."\",\"#ffffff\",\"300\");' onMouseout='hideddrivetip();'>".$dayArray[mday]."<br>";
}
else if(in_array($ddc,$cancelled) && $cdays1[0]!="")
{
$sear=array_search($ddc,$cancelled);
$msg="Cancelled";
echo"\t<td style='border:solid #E9E9E9 1px;background-color:#99CCFF;' valign='top' onMouseover='ddrivetip(\"".$msg."\",\"#ffffff\",\"300\");' onMouseout='hideddrivetip();'>".$dayArray[mday]."<br>";
}
else if($numM>0)
{
if(!in_array($dayc1,$cdays1) && $cdays1[0]!="")
{
if(in_array($ddc,$RSArray))
{
$sear=array_search($ddc,$RSArray2);
$msg="Rescheduled from ".$sear." to ".$RSArray2[$sear]."";
echo"\t<td style='border:solid #E9E9E9 1px;background-color:#99FF33;' valign='top' onMouseover='ddrivetip(\"".$msg."\",\"#ffffff\",\"300\");' onMouseout='hideddrivetip();'>".$dayArray[mday]."<br>";
}
else
{
echo"\t<td style='border:solid #E9E9E9 1px;background-color:#99FF33;' valign='top'>".$dayArray[mday]."<br>";
}
//echo"\t<td style='border:solid #E9E9E9 1px;background-color:#99FF33;' valign='top'>".$dayArray[mday]."<br>";
}
else
{
//echo"\t<td style='border:solid #E9E9E9 1px;background-color:#99FF33;' valign='top'><a href='ingl_attendance.main.php?aC=sM&courseId=".$_REQUEST[CID]."&aDate=".$ddc."&tablename=".$num[attendance_table]."' class='lightbox' onclick='lightb();'>".$dayArray[mday]."</a><br>";
//echo"\t<td style='border:solid #E9E9E9 1px;background-color:#99FF33;' valign='top'>".$dayArray[mday]."<br>";
if(!in_array($ddc,$RSArray1) && $ddc<=$num['enddate'])
{
echo"\t<td style='border:solid #E9E9E9 1px;background-color:#99FF33;' valign='top'>".$dayArray[mday]."<br>";
}
else if(in_array($ddc,$RSArray))
{
$sear=array_search($ddc,$RSArray2);
$msg="Rescheduled from ".$sear." to ".$RSArray2[$sear]."";
echo"\t<td style='border:solid #E9E9E9 1px;background-color:#99FF33;' valign='top' onMouseover='ddrivetip(\"".$msg."\",\"#ffffff\",\"300\");' onMouseout='hideddrivetip();'>".$dayArray[mday]."<br>";
}
else
{
$msg="Rescheduled from ".$ddc." to ".$RSArray2[$ddc]."";
echo"\t<td style='border:solid #E9E9E9 1px;background-color:#99FF33;cursor:pointer;' valign='top' onMouseover='ddrivetip(\"".$msg."\",\"#ffffff\",\"300\");' onMouseout='hideddrivetip();'>".$dayArray[mday]."<br>";
}
}
}
else
{
if(!in_array($dayc1,$cdays1) && $cdays1[0]!="")
{
//echo"\t<td style='border:solid #E9E9E9 1px;background-color:#FFFFFF' valign='top'>".$dayArray[mday]."<br>";
if(in_array($ddc,$RSArray))
{
$sear=array_search($ddc,$RSArray2);
$msg="Rescheduled from ".$sear." to ".$RSArray2[$sear]."";
echo"\t<td style='border:solid #E9E9E9 1px;background-color:#CCFFCC;' valign='top' onMouseover='ddrivetip(\"".$msg."\",\"#ffffff\",\"300\");' onMouseout='hideddrivetip();'>".$dayArray[mday]."<br>";
}
else
{
echo"\t<td style='border:solid #E9E9E9 1px;background-color:#FFFFF;' valign='top'>".$dayArray[mday]."<br>";
}
}
else
{
//echo"\t<td style='border:solid #E9E9E9 1px;background-color:#CCFFCC;' valign='top'><a href='ingl_attendance.main.php?courseId=".$_REQUEST[CID]."&aDate=".$ddc."&tablename=".$num[attendance_table]."' class='lightbox' onclick='lightb();'>".$dayArray[mday]."</a><br>";
if(!in_array($ddc,$RSArray1) && $ddc<=$num['enddate'])
{
echo"\t<td style='border:solid #E9E9E9 1px;background-color:#CCFFCC;' valign='top'>".$dayArray[mday]."<br>";
}
else if(in_array($ddc,$RSArray1))
{
$msg="Rescheduled from ".$ddc." to ".$RSArray2[$ddc]."";
echo"\t<td style='border:solid #E9E9E9 1px;background-color:#FF9BCD;cursor:pointer;' valign='top' onMouseover='ddrivetip(\"".$msg."\",\"#ffffff\",\"300\");' onMouseout='hideddrivetip();'>".$dayArray[mday]."<br>";
}
else if(in_array($ddc,$RSArray)){
$sear=array_search($ddc,$RSArray2);
$msg="Rescheduled from ".$sear." to ".$RSArray2[$sear]."";
echo"\t<td style='border:solid #E9E9E9 1px;background-color:#CCFFCC;' valign='top' onMouseover='ddrivetip(\"".$msg."\",\"#ffffff\",\"300\");' onMouseout='hideddrivetip();'>".$dayArray[mday]."<br>";
}
else{
echo"\t<td style='border:solid #E9E9E9 1px;background-color:#FFFFFF;' valign='top'>".$dayArray[mday]."<br>";
}
}
}
echo"</td>\n";
}
/*elseif($dayArray[mday]==$CuDate[mday] && $firstDayArray[month]==$CuDate[month] && $firstDayArray[year]==$CuDate[year])
{
echo"\t<td bgcolor='grey'>$dayArray[mday] </td>\n";
}*/
elseif($dayArray[wday]==0)
{
//echo"\t<td style='border:solid #E9E9E9 1px;background-color:#FFA4A4 ;'>$dayArray[mday] </td>\n";
echo"\t<td style='border:solid #E9E9E9 1px;'>$dayArray[mday] </td>\n";
}
else
{
echo"\t<td style='border:solid #E9E9E9 1px;'>$dayArray[mday] </td>\n";
}
$start+= ADAY;
}
}
echo"</tr></table>";
echo"</td>";
if($x>=1)
{
echo"</tr>";
}
$y++;
}
}
if($x<1)
{
echo"</tr>";
}
echo"</table>";
?>
<br>
<table><tr><td style='border:solid #E9E9E9 1px;background-color:#99FF33;width: 40px;'> </td><td>Registered Attendance</td><td> </td><td style='border:solid #E9E9E9 1px;background-color:#CCFFCC;width: 40px;'> </td><td>Scheduled Classes</td>
<td> </td><td style='border:solid #E9E9E9 1px;background-color:#FF9BCD;width: 40px;'> </td><td>Rescheduled Classes</td>
<td> </td><td style='border:solid #E9E9E9 1px;background-color:red;width: 40px;'> </td><td>Inlingua Holiday</td>
<td> </td><td style='border:solid #E9E9E9 1px;background-color:#99CCFF;width: 40px;'> </td><td>Cancelled Classes</td>
</tr></table>
<br>
<?php
$query="select * from ingl_course where recNo='".$_REQUEST[CID]."'";
$result=mysql_query($query);
$num=mysql_fetch_array($result);
if($num['attendance_table']=="")
{
$num['attendance_table']='ingl_attendances_2011';
}
$queryM="select * from ".$num['attendance_table']." where courseIdrecNo='".$_REQUEST[CID]."' ";
$resultM=mysql_query($queryM);
$StudentTotalEntered=@mysql_num_rows($resultM);
while($numM=@mysql_fetch_array($resultM))
{
$studentrecNo=$numM['studentrecNo'];
$SattenArray[$studentrecNo][] = $numM['attendance_status'];
}
function getPresentBySymbol($arr,$symbol)
{
$present=0;
foreach($arr as $key=>$val)
{
$exp=explode('~#',$val);
foreach($exp as $keys=>$vals)
{
if($vals==$symbol) $present+=1;
}
}
return $present;
}
function getPercentage($arr)
{
$percent=0;
foreach($arr as $key=>$val)
{
$exp=explode('~#',$val);
foreach($exp as $keys=>$vals)
{
if($vals=='P') $percent+=1;
if($vals=='L') $percent+=.5;
if($vals=='E') $percent+=1;
}
$TotalH=$TotalH+count($exp);
}
return number_format(($percent/$TotalH)*100,2,'.','');
}
function getColorPercentage($arr)
{
$percent=0;
foreach($arr as $key=>$val)
{
$exp=explode('~#',$val);
foreach($exp as $keys=>$vals)
{
if($vals=='P') $percent+=1;
if($vals=='L') $percent+=.5;
if($vals=='E') $percent+=1;
}
$TotalH=$TotalH+count($exp);
}
$percentage =($percent/$TotalH)*100;
if($percentage < 75) $class="AttenRed";
else $class="AttenGreen";
return $class;
}
function getTotalHour($arr)
{
foreach($arr as $key=>$val)
{
$exp=explode('~#',$val);
$TotalH=$TotalH+count($exp);
}
return $TotalH;
}
//$atten=$numM['attendance_status'];
$sqlQuery = "SELECT s.*,s.recNo as Student_ID,c.courseid as course_name,c.recNo as courseRecNo, c.* FROM ingl_student s left join ingl_course c on c.recNo = s.courseId where s.courseId='".$_REQUEST['CID']."' order by s.studentName Asc";
// Select records from table
//$selectedRecords = $dbObject->Select($sqlQuery);
$resultLWC=mysql_query($sqlQuery);
$selectedRecords=mysql_num_rows($resultLWC);
//$numLWC=mysql_fetch_array($resultLWC);
echo "<table align='left' class='ajxAtten' cellspacing='0' style='border:solid 1px #cccccc;'>";
// If no records selected, print message
if (!$selectedRecords)
{ echo "<tr><td colspan='5'>There are no student added in this course</td></tr>"; }
else{
if (!$StudentTotalEntered)
{ echo "<tr><td colspan='5'>There are no entered attendance</td></tr>"; }
else{
$counter=0;
$i=1;
echo "<tr class='Attengrey'>";
echo"<td width='5%' style='border-bottom:solid 1px #E8E8E8;'><b>S.No.</b></td>";
echo "<td width='47%' style='border-bottom:solid 1px #E8E8E8;'><b>Student</b></td>";
echo "<td width='12%' style='border-bottom:solid 1px #E8E8E8;'><b>Present</b></td>";
echo "<td width='12%' style='border-bottom:solid 1px #E8E8E8;'><b>Late</b></td>";
echo "<td width='12%' style='border-bottom:solid 1px #E8E8E8;'><b>Excused</b></td>";
echo "<td width='12%' style='border-bottom:solid 1px #E8E8E8;'><b>Present%</b></td>";
echo "</tr>";
while($objectData=@mysql_fetch_array($resultLWC))
{
$student=$objectData[Student_ID];
//$SattenArray[$objectData[studentName]];
echo "<tr>";
echo "<td style='border-bottom:solid 1px #E8E8E8;'>$i</td>";
echo "<td style='border-bottom:solid 1px #E8E8E8;'>$objectData[studentName]</td>";
echo "<td style='border-bottom:solid 1px #E8E8E8;'>".getPresentBySymbol($SattenArray[$objectData[Student_ID]],'P')."</td>";
echo "<td style='border-bottom:solid 1px #E8E8E8;'>".getPresentBySymbol($SattenArray[$objectData[Student_ID]],'L')."</td>";
echo "<td style='border-bottom:solid 1px #E8E8E8;'>".getPresentBySymbol($SattenArray[$objectData[Student_ID]],'E')."</td>";
echo "<td class='".getColorPercentage($SattenArray[$objectData[Student_ID]])."' style='border-bottom:solid 1px #E8E8E8;'>".getPercentage($SattenArray[$objectData[Student_ID]])."</td>";
echo"</tr>";
$i++;
}
$TotalHours=getTotalHour($SattenArray[$student]);
}
echo"<tr><td colspan='5'><br><b>#Total Hours :".$TotalHours."</b><br><b>Percentage Calculation</b> ((Present + 50% of Late + Excused)/Total No Of Hours )*100</td></tr>";
}
echo "</table>";
?>
</td></tr></table>
<div id="pageregionFooter" class="copyright"> <a href="/" style="color:#FFF;">©</a> <?php echo date("Y") ?> inlingua International Ltd. | All rights reserved </div>
</div>
</body>
</html>
<div id="dhtmltooltip"></div>
<script type="text/javascript">
/***********************************************
*DHTML code library (vikas umrao)
***********************************************/
var offsetxpoint=-50 //Customize x offset of tooltip
var offsetypoint=10 //Customize y offset of tooltip
var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false
if (ie||ns6)
var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""
function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function ddrivetip(thetextDiv, thecolor, thewidth){
if (ns6||ie){
//if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=""+thetextDiv+"";
enabletip=true
return false
}
}
function positiontip(e){
if (enabletip){
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
//Find out how close the mouse is to the corner of the window
var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20
var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20
var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<tipobj.offsetWidth)
//move the horizontal position of the menu to the left by it's width
tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+"px" : window.pageXOffset+e.clientX-tipobj.offsetWidth+"px"
else if (curX<leftedge)
tipobj.style.left="5px"
else
//position the horizontal position of the menu where the mouse is positioned
tipobj.style.left=curX+offsetxpoint+"px"
//same concept with the vertical position
if (bottomedge<tipobj.offsetHeight)
tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px"
else
tipobj.style.top=curY+offsetypoint+"px"
tipobj.style.visibility="visible"
}
}
function hideddrivetip(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility="hidden"
tipobj.style.left="-1000px"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}
document.onmousemove=positiontip
</script>
<?php
if($_REQUEST[l]=='y')
{
session_destroy();
}
?>