File: /home/barbeatleanalyti/www/baris.beatleanalytics.com/theme/black/dist/js/scorecardctsnew.php
<!DOCTYPE html>
<?php
// Declare new object
$objScorecardctsnew = object;
// Assing object
$objScorecardctsnew = $objDB->objController;
// Assign all variable's value
$pg = $objScorecardctsnew->pg;
$acn = $objScorecardctsnew->acn;
$v = $objScorecardctsnew->v;
$State = $objScorecardctsnew->State;
$ReligionName = $objScorecardctsnew->ReligionName;
$sort = $objScorecardctsnew->sort;
$ReligionID = $objScorecardctsnew->ReligionID;
$field = $objScorecardctsnew->field;
$error = $objScorecardctsnew->error;
$msg = $objScorecardctsnew->msg;
$perpage = $objScorecardctsnew->perpage;
$start = $objScorecardctsnew->start;
$limit = $objScorecardctsnew->limit;
$SearchValue = $objScorecardctsnew->SearchValue;
$s = $objScorecardctsnew->s;
$CustomerID = $objScorecardctsnew->CustomerID;
$SurveyID = $objScorecardctsnew->SurveyID;
$TokenID = $objScorecardctsnew->TokenID;
$pType = $objScorecardctsnew->pType;
$OrgID = $objScorecardctsnew->OrgID;
$BranchID = $objScorecardctsnew->BranchID;
$IndustryID = $objScorecardctsnew->IndustryID;
$FromDate = $objScorecardctsnew->FromDate;
$ToDate = $objScorecardctsnew->ToDate;
$StationId = $objScorecardctsnew->StationId;
$QuestionId = $objScorecardctsnew->QuestionId;
$AuditorId = $objScorecardctsnew->AuditorId;
$valck[] = array();
/*$rsCustomerInfo = $objScorecardctsnew->FetchCustomerData("All");
if($start == 1)
$limit = 0;
else if($start == 2)
$limit = $perpage;
else
$limit = ($start-1) * $perpage;
$objScorecardctsnew->limit = $limit;
$nume = count($rsCustomerInfo);
$totalpage = @ceil(count($rsCustomerInfo)/$perpage); */
//$rsCustomerInfo = $objScorecardctsnew->FetchCustomerData();
/*echo "<pre>";
print_r($rsCustomerInfo);*/
?>
<link rel="stylesheet" href="<?php echo $curImagePath?>/datatable/css/jquery.dataTables.min.css">
<link rel="stylesheet" href="<?php echo $curImagePath?>/datatable/css/buttons.dataTables.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-xs-12">
<!-- /.box -->
<div class="box">
<!-- /.box-header -->
<div class="box-body">
<!------------------------------------------------------------------>
<form method="post" action="scorecardctsnew.html" name="frmSearch" id="frmSearch">
<div class="box-header">
<h3 class="box-title" style="width:100%;">
<div class="form-group" >
<?php $rsStation = $objScorecardctsnew->fetchStation(); ?>
<!-- <label class=" control-label station_select"> Select Station</label>-->
<div class=" col-md-2 station_select_opction ">
<select class="form-control input-md" id="org_list" name="Station">
<option value="0">Select Station </option>
<?php if(count($rsStation) > 0) {
for($s=0; $s<count($rsStation); $s++) { ?>
<option <?php if($StationId === $rsStation[$s]['stationId']) echo 'selected="selected"'; ?> value="<?php echo $rsStation[$s]['stationId']?>"><?php echo $rsStation[$s]['stationName']?></option>
<?php }
}else{ ?>
<option value="0">No any station found</option>
<?php } ?>
</select>
</div>
<div class=" col-xs-12 col-md-3 col-lg-2 form-group">
<select class="form-control input-md" id="org_list" name="Question">
<?php //$rsQuestion = $objScorecardctsnew->FetchQuestion(); ?>
<option value="0">Select Question </option>
<option selected="selected" value="11">Score Card CTS</option>
</select>
</div>
<div class=" col-xs-12 col-md-3 col-lg-2 form-group">
<select class="form-control input-md" id="org_list" name="Auditor">
<?php $rsAuditor = $objScorecardctsnew->FetchAuditor(); ?>
<option value="0">Select Auditor </option>
<?php if(count($rsAuditor) > 0) {
for($a=0; $a<count($rsAuditor); $a++) { ?>
<option <?php if($AuditorId === $rsAuditor[$a]['userId']) echo 'selected="selected"'; ?> value="<?php echo $rsAuditor[$a]['userId']?>"><?php echo $rsAuditor[$a]['db_username']?></option>
<?php }
}else{ ?>
<option value="0">No any auditor found</option>
<?php } ?>
</select>
</div>
<div class="col-md-2 col-xs-6 form-group">
<input type="text" readonly="readonly" id="FromDate" name="FromDate" placeholder="Start date.." class="form-control input-md" value="<?php echo $FromDate;?>">
</div>
<div class="col-md-2 col-xs-6 form-group">
<input type="text" readonly="readonly" id="ToDate" name="ToDate" placeholder="End date.." class="form-control input-md" value="<?php echo $ToDate;?>">
</div>
<div class="input-group input-group-sm pull-right- text-right">
<span class="pull-right text-right form-group no-padding">
<a class="btn btn-success btn-sm" onclick="myFunction()" href="#"> <i class="fa fa-search"></i> GO </a>
<script>
function myFunction() {
$(".loader").show();
document.getElementById("frmSearch").submit();
}
$(window).bind("load", function() {
//$(".loader").hide();
});
</script>
</span>
</div>
</div>
</h3>
</div>
</form>
<?php
if(!empty($QuestionId) && !empty($StationId)){
$rsPagesIDS = QuestionGroupIDS('pages',$QuestionId);
$rsParamIDS = QuestionGroupIDS('params',$QuestionId);
$rsUserInfo = $objScorecardctsnew->FetchUsersData();
?>
<div class="NEWCTS">
<div class="table_print">
<button type="button" class="print print_btn">Print All</button>
<form name="myform" class="print_cheked">
<input type="checkbox" name="mybox" onClick="breakeveryheader()"> <span>Print seperate page</span>
</form>
</div>
<div class="printTable" id="printTable">
<?php
//$no = 1;
$totalAvgVer = 0;
$zeroTotalAvgVer = 0;
if(count($rsUserInfo)>0){
for ($u=0;$u< count($rsUserInfo);$u++)
{
$rsQuestionsInfo = $objScorecardctsnew->FetchQuestionsData($rsUserInfo[$u]['db_surveyUserid']);
if(count($rsQuestionsInfo)>0){
$idArr = array();
for ($i=0;$i< count($rsQuestionsInfo);$i++)
{
$noofcoach_attended =0;
/*echo "<pre>";
print_r($rsQuestionsInfo[$i]);*/
?>
<div class="creat_new_page_print"></div>
<div class="messageTop">
<center class="print_title" style="font-size: 20px;">
<p>
<span style=" margin-right: 30px;">Date of Inspection : <b style="border-bottom: 1px solid;padding: 0 33px 0 4px;" id="dateofinspection<?php echo $u.$i; ?>">02/01/2020</b></span>
<span style=" margin-right: 30px;">Auditor : <b style="border-bottom: 1px solid;padding: 0 33px 0 4px;" id="auditorname<?php echo $u.$i; ?>">gautam prajapati</b></span>
<span style=" margin-right: 30px;">Train No. : <b style="border-bottom: 1px solid;padding: 0 33px 0 4px;" id="trainno<?php echo $u.$i; ?>">54820</b></span>
<span style=" margin-right: 30px;">Dep.Time : <b style="border-bottom: 1px solid;padding: 0 33px 0 4px;" id="deptime<?php echo $u.$i; ?>">5:50</b></span>
</p>
<p>
<span style=" margin-right: 30px;">No.of Coaches Attended by contractor : <b style="border-bottom: 1px solid;padding: 0 33px 0 4px;" id="noofcoach_attended<?php echo $u.$i; ?>">224</b></span>
<span style=" margin-right: 30px;">Total No. of Coaches in the train : <b style="border-bottom: 1px solid;padding: 0 33px 0 4px;" id="noofcoach_intrain<?php echo $u.$i; ?>">24</b></span>
</p>
<p>
<span style=" margin-right: 30px;">Total Scores obtained : <b style="border-bottom: 1px solid;padding: 0 33px 0 4px;" id="totalscore_obtained<?php echo $u.$i; ?>">80%</b></span>
<span style=" margin-right: 30px;">Inaccessible : <b style="border-bottom: 1px solid;padding: 0 33px 0 4px;" id="score_inaccessible<?php echo $u.$i;?>">10%</b></span>
</p>
</center>
</div>
<table id="" class="display" style="width:100%">
<thead>
<tr>
<th>Sr No</th>
<th style="width: 362px;">itemized description of work</th>
<th>T’let</th>
<th> Total </th>
<th> % </th>
<?php
//if(count($rsUserInfo)>0){
//for ($u=0;$u< count($rsUserInfo);$u++)
//{
$rsCoachList = $objScorecardctsnew->FetchCoachList($rsUserInfo[$u]['db_surveyUserid']);
for ($c=0;$c< count($rsCoachList);$c++)
{ ?>
<th id="tbl-<?php echo $val;?>"><?php echo $rsCoachList[$c][0];?></th>
<?php }
// }
//}
?>
</tr>
</thead>
<tbody>
<?php
$no = 1;
$tokenid = ""; ?>
<?php for ($j=0;$j< count($rsQuestionsInfo[$i]);$j++)
{
$tokenid = $rsQuestionsInfo[$i][$j]['tokenid'];
$fixPageID_T = array("22", "23", "24", "25");
$fixPageID_BD = array("27", "28", "29", "30");
//for toilet column
$fixPageID2 = array("26", "31", "32", "33");?>
<tr>
<td><?php echo $no++; ?></td>
<td class="ques_a" style="width: 362px;">
<?php if (in_array($rsQuestionsInfo[$i][$j]['db_surveyPageId'], $fixPageID_T)) echo "Toilet cleaning complete including pan with High Pressure Jet machine &drying, cleaning wiping & drying of wash basin, mirror & shelves, Spraying of Air Freshener & Mosquito Repellant";
elseif($rsQuestionsInfo[$i][$j]['db_surveyPageId'] == 26)echo "Cleaning, wiping & drying of outside washbasin, mirror & shelves in door way area";
elseif (in_array($rsQuestionsInfo[$i][$j]['db_surveyPageId'], $fixPageID_BD)) echo "Vestibule area, Doorway area, area between two toilets and footsteps.";
elseif($rsQuestionsInfo[$i][$j]['db_surveyPageId'] == 31)echo $objScorecardctsnew->SelectBarisPageName($rsQuestionsInfo[$i][$j]['db_surveyPageId']);
elseif($rsQuestionsInfo[$i][$j]['db_surveyPageId'] == 32)echo $objScorecardctsnew->SelectBarisPageName($rsQuestionsInfo[$i][$j]['db_surveyPageId']);
elseif($rsQuestionsInfo[$i][$j]['db_surveyPageId'] == 33)echo $objScorecardctsnew->SelectBarisPageName($rsQuestionsInfo[$i][$j]['db_surveyPageId']);{
}?>
</td>
<td>
<?php if (in_array($rsQuestionsInfo[$i][$j]['db_surveyPageId'], $fixPageID2))echo "-"; else echo $objScorecardctsnew->SelectBarisPageName($rsQuestionsInfo[$i][$j]['db_surveyPageId']);?>
</td>
<td id="totalOfcts<?php echo $u.$i.$j; ?>">2</td>
<td id="perOfcts<?php echo $u.$i.$j; ?>">2%</td>
<?php
$zeroRatings = 0;
$avgSum = 0;
$totalAvg = 0;
$totalCountOfOne = 0;
$totalCount = 0;
$rsCoachList = $objScorecardctsnew->FetchCoachList($rsUserInfo[$u]['db_surveyUserid']);
for ($c=0;$c< count($rsCoachList);$c++)
{
/*}
foreach($rsParamIDS as $val) {*/
$avgVal = $objScorecardctsnew->FetchValueScore($rsQuestionsInfo[$i][$j]['db_surveyQuestionId'],'',$rsQuestionsInfo[$i][$j]['db_surveyPageId'],$rsQuestionsInfo[$i][$j]['tokenid'],$rsCoachList[$c][0]);
if($avgVal != "NA"){
$totalCount++;
$noofcoach_attended++;
}
if($avgVal == "NA"){
$span = '<small class="label bg-gold" >'.$avgVal.'</small>';
}elseif($avgVal == "0"){
$span = '<small class="label bg-red" >'.$avgVal.'</small>';
}else{
$totalCountOfOne++;
$span = '<small class="label bg-green" >'.$avgVal.'</small>';
} ?>
<td data-toggle="tooltip" data-placement="bottom"><?php echo $span;?></td>
<?php } ?>
<script>
/*$("#oveAvg<?php echo $u.$i.$j?>").html('<?php echo $span ;?>');*/
$("#totalOfcts<?php echo $u.$i.$j; ?>").html('<?php echo $totalCountOfOne ;?>');
$("#perOfcts<?php echo $u.$i.$j; ?>").html('<?php echo ($totalCountOfOne/$totalCount)*100;?>%');
$("#dateofinspection<?php echo $u.$i;?>").html('<?php echo date("Y-m-d",strtotime($rsQuestionsInfo[$i][$j]['created_date']));?>');
$("#auditorname<?php echo $u.$i;?>").html('<?php echo $rsQuestionsInfo[$i][$j]['db_username'];?>');
$("#trainno<?php echo $u.$i;?>").html('123123');
$("#deptime<?php echo $u.$i;?>").html('12:12');
$("#noofcoach_attended<?php echo $u.$i;?>").html('<?php echo $noofcoach_attended;?>');
$("#noofcoach_intrain<?php echo $u.$i;?>").html('<?php echo count($rsCoachList)*12;?>');
$("#totalscore_obtained<?php echo $u.$i;?>").html('80%');
$("#score_inaccessible<?php echo $u.$i;?>").html('10%');
</script>
</tr>
<?php }?>
</tbody>
<tfoot>
<tr>
<th colspan="5" class="blank_avg">Average</th>
<?php
$rsCoachList = $objScorecardctsnew->FetchCoachList($rsUserInfo[$u]['db_surveyUserid']);
for ($c=0;$c< count($rsCoachList);$c++){
$rstotalAvgPer = $objScorecardctsnew->FetchContentAvg($QuestionId,$StationId,$AuditorId,'',$rsCoachList[$c][0],$tokenid);
$totalSUM = 0;
for($avg=0; $avg<count($rstotalAvgPer); $avg++){
$totalSUM = $totalSUM + $rstotalAvgPer[$avg]['AvgValue'];
} ?>
<td>
<span class="badge bg-green"><?php echo round(($totalSUM*100)/count($rstotalAvgPer),2) ;?>%</span>
</td>
<?php } ?>
</tr>
</tfoot>
</table>
<div class="messageBottom">
<BR>
<P><span class="pull-left">Sig. Rly Authority</span><span class="pull-right sig-contractor">Sig. Rly Contractor</span></P>
</div>
</div>
</div>
<?php }
}
}
}?>
<?php }else{ ?>
<!----NEWCTS-start---->
<div class="NEWCTS">
<div class="table_print">
<button type="button" class="print print_btn">Print All</button>
<form name="myform" class="print_cheked">
<input type="checkbox" name="mybox" onClick="breakeveryheader()"> <span>Print seperate page</span>
</form>
</div>
<div class="printTable" id="printTable">
<div class="creat_new_page_print"></div>
<div class="messageTop">
<center class="print_title" style="font-size: 20px;">
<p><span style=" margin-right: 30px;">Date of Inspection : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">02/01/2020</b></span><span style=" margin-right: 30px;">Auditor : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">gautam prajapati</b></span><span style=" margin-right: 30px;">Train No. : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">54820</b></span> <span style=" margin-right: 30px;">Dep.Time : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">5:50</b></span> </p>
<p><span style=" margin-right: 30px;">No.of Coaches Attended by contractor : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">224</b></span> <span style=" margin-right: 30px;">Total No. of Coaches in the train : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">24</b></span> </p>
<p><span style=" margin-right: 30px;">Total Scores obtained : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">80%</b></span><span style=" margin-right: 30px;">Inaccessible : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">10%</b></span></p>
</center>
</div>
<table id="" class="display" style="width:100%">
<thead>
<tr>
<th>Sr No</th>
<th style="width: 362px;">itemized description of work</th>
<th>T’let</th>
<th> Total </th>
<th> % </th>
<th> Coach 1</th>
<th> Coach 2</th>
<th> Coach 3</th>
<th> Coach 4</th>
<th> Coach 5</th>
<th> Coach 6</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td style="width: 362px;">Toilet cleaning complete including pan with High Pressure Jet machine &drying, cleaning wiping & drying of wash basin, mirror & shelves, Spraying of Air Freshener & Mosquito Repellant </td>
<td>T1</td>
<td>0</td>
<td>0% </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
</tr>
<tr>
<td>2</td>
<td style="width: 362px;">Cleaning, wiping & drying of outside washbasin, mirror & shelves in door way area </td>
<td>T1</td>
<td>0</td>
<td>0% </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
</tr>
<tr>
<td>3 </td>
<td style="width: 362px;">Vestibule area, Doorway area, area between two toilets and footsteps.</td>
<td>T1</td>
<td>0</td>
<td>0% </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
</tr>
<tr>
<td>4 </td>
<td style="width: 362px;">Coach aisle area cleaning</td>
<td>T1</td>
<td>0</td>
<td>0% </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
</tr>
</tbody>
<tfoot>
<tr>
<th colspan="5" class="blank_avg">Average</th>
<th><span class="badge bg-green">84.62%</span></th>
<th><span class="badge bg-green">84.62%</span></th>
<th><span class="badge bg-green">84.62%</span></th>
<th><span class="badge bg-green">84.62%</span></th>
<th><span class="badge bg-green">84.62%</span></th>
<th><span class="badge bg-green">84.62%</span></th>
</tr>
</tfoot>
</table>
<div class="messageBottom">
<BR>
<P><span class="pull-left">Sig. Rly Authority</span><span class="pull-right sig-contractor">Sig. Rly Contractor</span></P>
</div>
<div class="creat_new_page_print"></div>
<div class="messageTop">
<center class="print_title" style="font-size: 20px;">
<p><span style=" margin-right: 30px;">Date of Inspection : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">03/01/2021</b></span><span style=" margin-right: 30px;">Auditor : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">gautam prajapati</b></span><span style=" margin-right: 30px;">Train No. : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">54821</b></span> <span style=" margin-right: 30px;">Dep.Time : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">5:50</b></span> </p>
<p><span style=" margin-right: 30px;">No.of Coaches Attended by contractor : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">224</b></span> <span style=" margin-right: 30px;">Total No. of Coaches in the train : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">24</b></span> </p>
<p><span style=" margin-right: 30px;">Total Scores obtained : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">80%</b></span><span style=" margin-right: 30px;">Inaccessible : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">10%</b></span></p>
</center>
</div>
<table id="" class="display" style="width:100%">
<thead>
<tr>
<th>Sr No</th>
<th style="width: 362px;">itemized description of work</th>
<th>T’let</th>
<th> Total </th>
<th> % </th>
<th> Coach 1</th>
<th> Coach 2</th>
<th> Coach 3</th>
<th> Coach 4</th>
<th> Coach 5</th>
<th> Coach 6</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td style="width: 362px;">Toilet cleaning complete including pan with High Pressure Jet machine &drying, cleaning wiping & drying of wash basin, mirror & shelves, Spraying of Air Freshener & Mosquito Repellant </td>
<td>T1</td>
<td>0</td>
<td>0% </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
</tr>
<tr>
<td>2</td>
<td style="width: 362px;">Cleaning, wiping & drying of outside washbasin, mirror & shelves in door way area </td>
<td>T1</td>
<td>0</td>
<td>0% </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
</tr>
<tr>
<td>3 </td>
<td style="width: 362px;">Vestibule area, Doorway area, area between two toilets and footsteps.</td>
<td>T1</td>
<td>0</td>
<td>0% </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
</tr>
<tr>
<td>4 </td>
<td style="width: 362px;">Coach aisle area cleaning</td>
<td>T1</td>
<td>0</td>
<td>0% </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
</tr>
</tbody>
<tfoot>
<tr>
<th colspan="5" class="blank_avg">Average</th>
<th><span class="badge bg-green">84.62%</span></th>
<th><span class="badge bg-green">84.62%</span></th>
<th><span class="badge bg-green">84.62%</span></th>
<th><span class="badge bg-green">84.62%</span></th>
<th><span class="badge bg-green">84.62%</span></th>
<th><span class="badge bg-green">84.62%</span></th>
</tr>
</tfoot>
</table>
<div class="messageBottom">
<BR>
<P><span class="pull-left">Sig. Rly Authority</span><span class="pull-right sig-contractor ">Sig. Rly Contractor</span></P>
</div>
<div class="creat_new_page_print"></div>
<div class="messageTop">
<center class="print_title" style="font-size: 20px;">
<p><span style=" margin-right: 30px;">Date of Inspection : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">04/01/2021</b></span><span style=" margin-right: 30px;">Auditor : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">gautam prajapati</b></span><span style=" margin-right: 30px;">Train No. : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">54822</b></span> <span style=" margin-right: 30px;">Dep.Time : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">5:50</b></span> </p>
<p><span style=" margin-right: 30px;">No.of Coaches Attended by contractor : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">224</b></span> <span style=" margin-right: 30px;">Total No. of Coaches in the train : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">24</b></span> </p>
<p><span style=" margin-right: 30px;">Total Scores obtained : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">80%</b></span><span style=" margin-right: 30px;">Inaccessible : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">10%</b></span></p>
</center>
</div>
<table id="" class="display" style="width:100%">
<thead>
<tr>
<th>Sr No</th>
<th style="width: 362px;">itemized description of work</th>
<th>T’let</th>
<th> Total </th>
<th> % </th>
<th> Coach 1</th>
<th> Coach 2</th>
<th> Coach 3</th>
<th> Coach 4</th>
<th> Coach 5</th>
<th> Coach 6</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td style="width: 362px;">Toilet cleaning complete including pan with High Pressure Jet machine &drying, cleaning wiping & drying of wash basin, mirror & shelves, Spraying of Air Freshener & Mosquito Repellant </td>
<td>T1</td>
<td>0</td>
<td>0% </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
</tr>
<tr>
<td>2</td>
<td style="width: 362px;">Cleaning, wiping & drying of outside washbasin, mirror & shelves in door way area </td>
<td>T1</td>
<td>0</td>
<td>0% </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
</tr>
<tr>
<td>3 </td>
<td style="width: 362px;">Vestibule area, Doorway area, area between two toilets and footsteps.</td>
<td>T1</td>
<td>0</td>
<td>0% </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
</tr>
<tr>
<td>4 </td>
<td style="width: 362px;">Coach aisle area cleaning</td>
<td>T1</td>
<td>0</td>
<td>0% </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
<td><small class="label bg-gold">null</small> </td>
</tr>
</tbody>
<tfoot>
<tr>
<th colspan="5" class="blank_avg">Average</th>
<th><span class="badge bg-green">84.62%</span></th>
<th><span class="badge bg-green">84.62%</span></th>
<th><span class="badge bg-green">84.62%</span></th>
<th><span class="badge bg-green">84.62%</span></th>
<th><span class="badge bg-green">84.62%</span></th>
<th><span class="badge bg-green">84.62%</span></th>
</tr>
</tfoot>
</table>
<div class="messageBottom">
<BR>
<P><span class="pull-left">Sig. Rly Authority</span><span class="pull-right sig-contractor ">Sig. Rly Contractor</span></P>
</div>
</div>
</div>
<!----NEWCTS-End---->
<?php } ?>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<!-- jQuery 3 -->
<script src="<?php echo $curImagePath?>/bower_components/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script src="<?php echo $curImagePath?>/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- DataTables -->
<!---<script src="<?php echo $curImagePath?>/bower_components/datatables.net/js/jquery.dataTables.min.js"></script>--->
<script src='<?php echo $curImagePath?>/datatable/js/dataTables.fixedColumns.min.js' charset="utf-8"></script>
<script src="<?php echo $curImagePath?>/datatable/js/jquery-3.3.1.js"></script>
<script src="<?php echo $curImagePath?>/datatable/js/jquery.dataTables.min.js"></script>
<script src="<?php echo $curImagePath?>/datatable/js/dataTables.buttons.min.js"></script>
<script src="<?php echo $curImagePath?>/datatable/js/buttons.flash.min.js"></script>
<script src="<?php echo $curImagePath?>/datatable/js/jszip.min.js"></script>
<script src="<?php echo $curImagePath?>/datatable/js/pdfmake.min.js"></script>
<script src="<?php echo $curImagePath?>/datatable/js/vfs_fonts.js"></script>
<script src="<?php echo $curImagePath?>/datatable/js/buttons.html5.min.js"></script>
<script src="<?php echo $curImagePath?>/datatable/js/buttons.print.min.js"></script>
<!-- SlimScroll -->
<script src="<?php echo $curImagePath?>/bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="<?php echo $curImagePath?>/bower_components/fastclick/lib/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="<?php echo $curImagePath?>/dist/js/adminlte.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="<?php echo $curImagePath?>/dist/js/demo.js"></script>
<!-- page script -->
<script>
$(document).ready(function() {
/** $('#question_report').append('<caption style="caption-side: bottom">A fictional company\'s staff table.</caption>');
$('#question_report').append('<caption style="caption-side: top">A fictional company\'s staff table.</caption>');****/
$('#question_report').DataTable({
scrollY: "900px",
scrollX: true,
footer: true,
scrollCollapse: true,
paging: true,
dom: 'Bfrtip',
lengthMenu: [
[10, 20, 30, -1],
['10 rows', '20 rows', '30 rows', 'Show all']
],
buttons: [{
extend: 'pageLength',
footer: true
},
{
extend: 'print',
footer: true,
messageTop: '<center class="print_title" style="font-size: 20px;"><p><span style=" margin-right: 30px;">Date of Inspection : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">02/01/2020</b></span><span style=" margin-right: 30px;">Auditor : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">gautam prajapati</b></span><span style=" margin-right: 30px;">Train No. : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">54820</b></span> <span style=" margin-right: 30px;">Dep.Time : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">5:50</b></span> </p><p><span style=" margin-right: 30px;">No.of Coaches Attended by contractor : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">224</b></span> <span style=" margin-right: 30px;">Total No. of Coaches in the train : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">24</b></span> </p> <p><span style=" margin-right: 30px;">Total Scores obtained : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">80%</b></span><span style=" margin-right: 30px;">Inaccessible : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">10%</b></span></p></center>',
messageBottom: '<BR><BR><P style="width:80%; margin:0 auto; font-size: 20px;"><span class="pull-left" style=" border-bottom: 1px solid #656565dd; height: 49px; padding: 0 84px 0 84px; float: left !IMPORTANT;">Sig. Rly Authority</span><span class="pull-right" style=" border-bottom: 1px solid #656565dd; height: 49px; padding: 0 84px 0 84px; float: right !IMPORTANT;">Sig. Rly Contractor<span></P> '
},
]
});
});
</script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<link rel='stylesheet' type='text/css' href='<?php echo $curImagePath?>/datepikar2/datepicker3.css'>
<link rel='stylesheet' type='text/css' href='<?php echo $curImagePath?>/datepikar2/daterangepicker-bs3.css'>
<script src="<?php echo $curImagePath?>/datepikar2/bootstrap-datepicker.js"></script>
<script src="<?php echo $curImagePath?>/datepikar2/daterangepicker.js"></script>
<script src="<?php echo $curImagePath?>/datepikar2/moment.min.js"></script>
<script>
$(document).ready(function() {
$("#FromDate").datepicker({
format: 'dd-mm-yyyy'
});
$("#ToDate").datepicker({
format: 'dd-mm-yyyy'
});
//document.forms["frmSearch"].submit();
});
function validateDate() {
var D1 = document.getElementById("ToDate");
var D2 = document.getElementById("FromDate");
if (D1.value.trim() == "") {
D1.style.border = "1px solid red";
return false;
}
if (D2.value.trim() == "") {
D2.style.border = "1px solid red";
return false;
}
}
</script>
<!----
<script>
document.getElementById("btnPrint").onclick = function () {
printElement(document.getElementById("printThis"));
}
function printElement(elem) {
var domClone = elem.cloneNode(true);
var $printSection = document.getElementById("printSection");
if (!$printSection) {
var $printSection = document.createElement("div");
$printSection.id = "printSection";
document.body.appendChild($printSection);
}
$printSection.innerHTML = "";
$printSection.appendChild(domClone);
window.print();
}
</script>
<script>
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
});
</script>
---->
<style>
<!--- @media screen {
#printSection {
display: none;
}
}
#printSection button {
display: none;
}
@media print {
.modal-open {
visibility: hidden;
}
#printSection,
#printSection * {
visibility: visible;
width: 100%;
margin: 0 auto;
}
#printSection p {
font-size: 30px;
}
#printSection {
position: absolute;
left: 0;
top: 0;
}
}
----> tfoot tr td {
padding: 10px 0 5px 0px !IMPORTANT;
}
table.dataTable thead .sorting_asc {
background-image: url(<?php echo $curImagePath?>/dist/img/sort_asc.png) !IMPORTANT;
}
table.dataTable thead .sorting_desc {
background-image: url(<?php echo $curImagePath?>/dist/img/sort_desc.png) !IMPORTANT;
}
table.dataTable thead .sorting {
background-image: url(<?php echo $curImagePath?>/dist/img/sort_both.png) !IMPORTANT;
}
th.blank_avg {
text-align: center;
}
.sig {
width: 80%;
margin: 0 auto;
padding: 68px 0;
}
.sig span {
border-bottom: 1px solid #656565dd;
height: 49px;
padding: 0 84px 0 84px;
}
.avg,
.per_avg {
width: 100% !IMPORTANT;
display: table;
}
.avg {
line-height: 2;
}
.avg .label,
.per_avg .label {
line-height: 2.5 !IMPORTANT;
border: 1px solid #028c4d !IMPORTANT;
}
tfoot tr td {
padding: 0px !IMPORTANT;
margin: 0px !IMPORTANT;
}
label.control-label.station_select {
float: left;
}
table#question_report {
margin: 0px;
width: 100% !IMPORTANT;
}
tfoot {
background: #cacaca;
}
.dt-buttons button {
background: #e8e8e8;
border: 1px solid #d2d2d2;
}
td,
th {
text-align: center;
}
input[type="search"] {
border: 1px solid #DDD;
padding: 5px 0;
border-radius: 5px;
}
thead {
background: #3c8dbc;
color: #FFF;
}
.date_pikars {
height: 35px;
border: 1px solid #d2d6de;
font-size: 15px;
padding: 5px 0;
}
span.date_info {
font-size: 18px;
margin-right: 10px;
}
.date_s_frome,
.date_s_to {
float: left;
margin-right: 19px;
}
tfoot tr th {
text-align: center;
}
small.label.bg-gold {
background-color: #d0a110 !IMPORTANT;
border: none !IMPORTANT;
}
.sheet_header {
width: 76%;
margin: 0 auto;
margin-bottom: 28px !IMPORTANT;
display: flow-root;
line-height: 2;
}
span.inspection_daye {
width: 80%;
border-bottom: 1px solid #4c4c4c;
}
.sheet_header span {
min-width: 28% !IMPORTANT;
max-width: 100% !IMPORTANT;
/* display: block; */
display: inline-block;
font-weight: 900 !IMPORTANT;
color: #a7a7a7;
}
.sheet_header span {
border-bottom: 1px solid;
padding: 0 10px 0 4px;
}
.main {
margin: 0 auto;
width: 740px;
color: #AAA;
}
#dmhd tr:hover {
color: #EEEEEE;
background: #3c4448;
}
#vWrapper {
margin-top: 80px;
padding: 6px;
width: 140px;
opacity: 0.5;
filter: alpha(opacity=50);
background: #666;
}
#vWrapper tr:hover {
color: #FFF;
text-decoration: underline;
background: #333;
}
.column_box {
float: left;
padding: 0 20px;
}
tbody#dmhd td.text-center.sorting_1 {
background: none;
}
#dmhd tr:hover td label a,
#dmhd tr:hover td label {
color: #fff !important;
}
.column_box p {
margin: 0px;
}
.cust_review {
float: left;
width: 100%;
}
.cust_review h4.box-title {
margin: 10px 0 0 0;
}
.cust_review p {
font-size: 19px !IMPORTANT;
font-weight: 100;
margin: 0px !IMPORTANT;
padding: 0px !IMPORTANT;
}
div#mcTooltip {
margin-bottom: 0px !IMPORTANT;
padding-bottom: 10px;
}
table {
text-align: center !IMPORTANT;
}
</style>
<!---16-3-2020--->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jQuery.print/1.3.3/jQuery.print.min.js"></script>
<script>
function breakeveryheader() {
if (!document.getElementById) {
alert("You need IE5 or NS6 to run this example")
return
}
var thestyle = (document.forms.myform.mybox.checked) ? "always" : "auto"
for (i = 0; i < document.getElementsByClassName("creat_new_page_print").length; i++)
document.getElementsByClassName("creat_new_page_print")[i].style.pageBreakBefore = thestyle
}
</script>
<!--//creat_new_page_print -->
<script>
$('.print').on('click', function() { // select print button with class "print," then on click run callback function
$.print("#printTable"); // inside callback function the section with class "content" will be printed
});
</script>
<script>
$(document).ready(function() {
/** $('#question_report').append('<caption style="caption-side: bottom">A fictional company\'s staff table.</caption>');
$('#question_report').append('<caption style="caption-side: top">A fictional company\'s staff table.</caption>');****/
$('.display').DataTable({
scrollY: "900px",
scrollX: true,
footer: true,
scrollCollapse: true,
paging: true,
dom: 'Bfrtip',
lengthMenu: [
[10, 20, 30, -1],
['10 rows', '20 rows', '30 rows', 'Show all']
],
buttons: [{
extend: 'pageLength',
footer: true
},
{
extend: 'print',
footer: true,
messageTop: '<center class="print_title" style="font-size: 20px;"><p><span style=" margin-right: 30px;">Date of Inspection : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">02/01/2020</b></span><span style=" margin-right: 30px;">Auditor : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">1</b></span><span style=" margin-right: 30px;">Train No. : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">54820</b></span> <span style=" margin-right: 30px;">Dep.Time : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">5:50</b></span> </p><p><span style=" margin-right: 30px;">No.of Coaches Attended by contractor : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">224</b></span> <span style=" margin-right: 30px;">Total No. of Coaches in the train : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">24</b></span> </p> <p><span style=" margin-right: 30px;">Total Scores obtained : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">80%</b></span><span style=" margin-right: 30px;">Inaccessible : <b style=" border-bottom: 1px solid;padding: 0 33px 0 4px;">10%</b></span></p></center>',
messageBottom: '<BR><BR><P style="width:80%; margin:0 auto; font-size: 20px;"><span class="pull-left" style=" border-bottom: 1px solid #656565dd; height: 49px; padding: 0 84px 0 84px; float: left !IMPORTANT;">Sig. Rly Authority</span><span class="pull-right" style=" border-bottom: 1px solid #656565dd; height: 49px; padding: 0 84px 0 84px; float: right !IMPORTANT;">Sig. Rly Contractor<span></P> '
},
]
});
});
</script>
<style>
.printTable .label {
display: inline;
padding: .2em .6em .3em;
font-size: 75%;
font-weight: 700;
line-height: 1;
color: #fff;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: .25em;
}
.printTable table#DataTables_Table_0,
.printTable .dataTables_scrollFootInner {
width: 100% !important;
}
.printTable .dataTables_scrollHeadInner,
.printTable table.display.dataTable,
.printTable thead,
.printTable table.display.dataTable,
.printTable .dataTables_scrollFootInner,
.printTable .dataTables_scrollFoot {
width: 100% !important;
}
.messageBottom {
padding: 19px 0 27px 0;
border-bottom: 1px solid #cacaca;
margin-bottom: 33px;
}
.printTable table {
text-align: center;
}
center.print_title span {
font-size: 13px;
}
.messageBottom {
float: left;
width: 100%;
}
.messageBottom p {
width: 80%;
margin: 0 auto;
font-size: 13px;
}
.messageBottom span {
border-bottom: 1px solid #656565dd;
height: 36px;
padding: 0 84px 0 84px;
float: left !IMPORTANT;
}
span.pull-right.sig-contractor {
float: right !important;
}
button.print.print_btn {
float: left;
margin-right: 13px;
}
form.print_cheked input[type="checkbox"] {
width: 21px;
height: 21px;
float: left;
}
form.print_cheked span {
margin-top: 5px !important;
float: left;
margin-left: 6px;
}
.table_print {
float: left;
width: 100%;
}
button.print.print_btn {
color: #FFF;
background: #3c8dbc;
border: none;
padding: 5px 13px;
border-radius: 6px;
}
.dt-buttons button {
padding: 3px 14px;
}
@page {
margin: 10px;
}
.page {
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
filter: progid: DXImageTransform.Microsoft.BasicImage(rotation=3);
}
@media print {
.printTable .messageBottom,.messageTop {display: block !important;}
* , .printTable { font-size:25px !important;}
}
.page {
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
filter: progid: DXImageTransform.Microsoft.BasicImage(rotation=3);}
</style>
<!---//16-3-2020--->