HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.52.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 15 06:39:08 EDT 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/barbeatleanalyti/www/baris.beatleanalytics.com/site/template/imposepenalty.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;
$Month        = $objScorecardctsnew->Month;
$Year        = $objScorecardctsnew->Year;
$WorkPenalty        = $objScorecardctsnew->WorkPenalty;
$ChemicalPenalty    = $objScorecardctsnew->ChemicalPenalty;
$OtherPenalty       = $objScorecardctsnew->OtherPenalty;
$NonremovalGarbagePenalty       = $objScorecardctsnew->NonremovalGarbagePenalty;
$OpenBurningWastePenalty       = $objScorecardctsnew->OpenBurningWastePenalty;
$RodentWorkPenalty       = $objScorecardctsnew->RodentWorkPenalty;
$PenaltyImposedByNGT       = $objScorecardctsnew->PenaltyImposedByNGT;
$valck[] = array();
if (!in_array('PMC', explode(',', $userdata[0]['reportType']))) {
ReturnPostFormData($ValidateArr = array(), "error.html", "<span class='error-msg'>Method <strong>" . $acn . "</strong> does not exist in <strong>" . $pg . "</strong> file !</span>", 2);
}
?>

<link href="//cdn.datatables.net/1.13.5/css/jquery.dataTables.min.css" >
<script src="https://code.jquery.com/jquery-3.7.0.min.js" ></script>
<script src="//cdn.datatables.net/1.13.5/js/jquery.dataTables.min.js" ></script> 

<!-- jQuery 3 -->
<script src="<?php echo $curImagePath ?>/bower_components/jquery/dist/jquery.min.js">
</script>


<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">-->
<link rel="stylesheet" href="<?php echo $curImagePath ?>/dist/css/Custom.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 ?>/dist/js/jQuery.print.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" style="
                                       height: 100vh;
                                       overflow: scroll;
                                       ">
            <!------------------------------------------------------------------>
            <form method="post" action="imposepenalty.html" name="frmSearch" id="frmSearch" class="pe-no-print">
              <div class="box-header">
                <h3 class="box-title" style="width:100%;">
                  <div class="main-form-group">
                    <div class="table-sam">
                      <a class="btn btn-info btn-sm" href="pmcbillinvoice.html"> 
                        <i class="fa fa-long-arrow-left">
                        </i> Back 
                      </a>
                    </div>
                    <center>
                    </center>
                    
                    <?php if ($userdata[0]['db_usertype'] != 'viewer' ){ ?>  
                    <?php } ?>
                  </div>
                </h3>
              </div>
            </form>
            <center>
              <h1 style="font-size: 25px;">IMPOSE PENALTY</h1>
            </center>
            <div class="w745">
              <div class="sec_view" id="">
                <div class="request_quote">
                  <a class="non-removal" id="non-removal">NON REMOVAL OF GARBAGE FROM DUSTBINS	
                  </a>
                </div>
                <div class="non-removal-view" id="non-removal-view" style="display: none;"> 
                  <div class="w100" style="padding:8px ">  
                    <form method="post" name="frmNonremovalGarbagePenalty" id="frmNonremovalGarbagePenalty" style=" float: left; width: 100%; margin-bottom: 12px;">
                      <input type="hidden" name="acn" value="addImposePenalty">
                      <input type="hidden" name="reportType" value="PMC">
                      <input type="hidden" name="penaltyType" value="NonremovalGarbagePenalty">
                      <div class="col-md-4"> 
                        <input class="form-control example2" type="text" placeholder="Select Date" name="penalty_date" required="">
                      </div>
                      <div class="col-md-3">
                        <input class="form-control" type="number" placeholder="Penalty Amount" name="penalty_amount" required="">
                      </div>
                      <div class="col-md-12">
                        <textarea name="penalty_review" rows="3" placeholder="Penalty Review" style=" width: 100%;margin-top: 6px;" required=""></textarea>
                      </div>
                      <input type="submit" class="btn btn-warning btn-sm"  style="float: left;margin-top: 7px;margin-left: 17px;" value="Submit"> 
                    </form>
                    <table class="tableanuj" >
                       <thead>
                          <tr>
                             <th >Penalty Date</th>
                             <th >Penalty Amount</th>
                             <th style="width: 195px;">Penalty Review</th>
                          </tr>
                       </thead>
                       <tbody>
                        <?php 
                            $rsPenaltyData = $objScorecardctsnew->fetchImposepenalty('PMC','NonremovalGarbagePenalty');
                            $rsTotPenalty = 0;
                            for ($i=0; $i < count($rsPenaltyData); $i++) { 
                              $rsTotPenalty += $rsPenaltyData[$i]['penalty_amount'];

                        ?>
                          
                              <tr>
                               <td><?php echo $rsPenaltyData[$i]['penalty_date']; ?></td>
                               <td><?php echo $rsPenaltyData[$i]['penalty_amount']; ?></td>
                               <td><?php echo $rsPenaltyData[$i]['penalty_review']; ?></td>
                               </td>
                              </tr>
                        <?php } ?>
                          
                          
                          
                       </tbody>
                    </table>
                    <div class="col-md-12 " style="text-align:center; padding-top: 18px; font-size: 16px">
                        <p>Total Penalty : <?php echo $rsTotPenalty; ?> </p>
                    </div>
                  </div>
                </div>
              </div> 
              <div class="sec_view" id="">
                <div class="request_quote">
                  <a class="open-burning" id="open-burning">OPEN BURNING OF WASTE IN RAILWAYS PREMISES	
                  </a>
                </div>
                <div class="open-burning-view" id="open-burning-view" style="display: none;"> 
                  <div class="w100" style="padding:8px ">  
                    <form method="post" name="frmOpenBurningWastePenalty" id="frmOpenBurningWastePenalty" style=" float: left; width: 100%;margin-bottom: 12px;">
                      <input type="hidden" name="acn" value="addImposePenalty">
                      <input type="hidden" name="reportType" value="PMC">
                      <input type="hidden" name="penaltyType" value="OpenBurningWastePenalty">
                      <div class="col-md-4"> 
                        <input class="form-control example2" type="text" placeholder="Select Date" name="penalty_date" required="">
                      </div>
                      <div class="col-md-3">
                        <input  class="form-control" type="number" placeholder="Penalty Amount" name="penalty_amount" required="">
                      </div>
                      <div class="col-md-12">
                        <textarea name="penalty_review" rows="3" placeholder="Penalty Review " style=" width: 100%;margin-top: 6px;"></textarea>
                      </div>
                      <input type="submit" class="btn btn-warning btn-sm" value="Submit" style="float: left;margin-top: 7px;margin-left: 17px;"> 
                      
                    </form>
                      <table class=" tableanuj ">
                       <thead>
                          <tr>
                             <th >Penalty Date</th>
                             <th >Penalty Amount</th>
                             <th style="width: 195px;">Penalty Review</th>
                          </tr>
                       </thead>
                       <tbody>
                        <?php 
                            $rsPenaltyData = $objScorecardctsnew->fetchImposepenalty('PMC','OpenBurningWastePenalty');
                            $rsTotPenalty = 0;
                            for ($i=0; $i < count($rsPenaltyData); $i++) { 
                              $rsTotPenalty += $rsPenaltyData[$i]['penalty_amount'];

                        ?>
                          
                              <tr>
                               <td><?php echo $rsPenaltyData[$i]['penalty_date']; ?></td>
                               <td><?php echo $rsPenaltyData[$i]['penalty_amount']; ?></td>
                               <td><?php echo $rsPenaltyData[$i]['penalty_review']; ?></td>
                               </td>
                              </tr>
                        <?php } ?>
                          
                          
                          
                       </tbody>
                    </table>
                    <div class="col-md-12 " style="text-align:center; padding-top: 18px; font-size: 16px">
                        <p>Total Penalty : <?php echo $rsTotPenalty; ?> </p>
                    </div>
                  </div>
                </div>
              </div> 
              <div class="sec_view" id="">
                <div class="request_quote">
                  <a class="rodent-work" id="rodent-work">
                    <?php if ($_SESSION['UserInfo']['OrgID'] == 17) { 
                            echo "ROOF OF PLATFORM SHELTERS";
                        }else{
                            echo "RODENT WORK NOT SATISFACTORY";
                        } ?>
                  </a>
                </div>
                <div class="rodent-work-view" id="rodent-work-view" style="display: none;"> 
                  <div class="w100" style="padding:8px ">  
                    <form method="post" name="frmRodentWorkPenalty" id="frmRodentWorkPenalty" style=" float: left; width: 100%;margin-bottom: 12px;">
                      <input type="hidden" name="acn" value="addImposePenalty">
                      <input type="hidden" name="reportType" value="PMC">
                      <input type="hidden" name="penaltyType" value="RodentWorkPenalty">
                      <div class="col-md-4"> 
                        <input class="form-control example2" type="text" placeholder="Select Date" name="penalty_date" required="">
                      </div>
                      <div class="col-md-3">
                        <input  class="form-control" type="number" placeholder="Penalty Amount" name="penalty_amount" required="">
                      </div>
                      <div class="col-md-12">
                        <textarea name="penalty_review" rows="3" placeholder="Penalty Review " style=" width: 100%;margin-top: 6px;"></textarea>
                      </div>
                      <input type="submit" class="btn btn-warning btn-sm" value="Submit" style="float: left;margin-top: 7px;margin-left: 17px;"> 
                      
                    </form>
                      <table class="tableanuj" >
                       <thead>
                          <tr>
                             <th >Penalty Date</th>
                             <th >Penalty Amount</th>
                             <th style="width: 195px;">Penalty Review</th>
                          </tr>
                       </thead>
                       <tbody>
                        <?php 
                            $rsPenaltyData = $objScorecardctsnew->fetchImposepenalty('PMC','RodentWorkPenalty');
                            $rsTotPenalty = 0;
                            for ($i=0; $i < count($rsPenaltyData); $i++) { 
                              $rsTotPenalty += $rsPenaltyData[$i]['penalty_amount'];

                        ?>
                          
                              <tr>
                               <td><?php echo $rsPenaltyData[$i]['penalty_date']; ?></td>
                               <td><?php echo $rsPenaltyData[$i]['penalty_amount']; ?></td>
                               <td><?php echo $rsPenaltyData[$i]['penalty_review']; ?></td>
                               </td>
                              </tr>
                        <?php } ?>
                          
                          
                          
                       </tbody>
                    </table>
                    <div class="col-md-12 " style="text-align:center; padding-top: 18px; font-size: 16px">
                        <p>Total Penalty : <?php echo $rsTotPenalty; ?> </p>
                    </div>
                  </div>
                </div>
              </div> 
              <div class="sec_view" id="">
                <div class="request_quote">
                  <a class="penalty-imposed" id="penalty-imposed">PENALTY IMPOSED BY NGT			
                  </a>
                </div>
                <div class="penalty-imposed-view" id="penalty-imposed-view" style="display: none;"> 
                  <div class="w100" style="padding:8px ">  
                    <form method="post" name="frmPenaltyImposedByNGT" id="frmPenaltyImposedByNGT" style=" float: left; width: 100%;margin-bottom: 12px;">
                      <input type="hidden" name="acn" value="addImposePenalty">
                      <input type="hidden" name="reportType" value="PMC">
                      <input type="hidden" name="penaltyType" value="PenaltyImposedByNGT">
                      <div class="col-md-4"> 
                        <input class="form-control example2" type="text" placeholder="Select Date" name="penalty_date" required="">
                      </div>
                      <div class="col-md-3">
                        <input  class="form-control" type="number" placeholder="Penalty Amount" name="penalty_amount" required="">
                      </div>
                      <div class="col-md-12">
                        <textarea name="penalty_review" rows="3" placeholder="Penalty Review " style=" width: 100%;margin-top: 6px;"></textarea>
                      </div>
                      <input type="submit" class="btn btn-warning btn-sm" value="Submit" style="float: left;margin-top: 7px;margin-left: 17px;"> 
                      
                    </form>
                      <table class="tableanuj" >
                       <thead>
                          <tr>
                             <th >Penalty Date</th>
                             <th >Penalty Amount</th>
                             <th style="width: 195px;">Penalty Review</th>
                          </tr>
                       </thead>
                       <tbody>
                        <?php 
                            $rsPenaltyData = $objScorecardctsnew->fetchImposepenalty('PMC','PenaltyImposedByNGT');
                            $rsTotPenalty = 0;
                            for ($i=0; $i < count($rsPenaltyData); $i++) { 
                              $rsTotPenalty += $rsPenaltyData[$i]['penalty_amount'];

                        ?>
                          
                              <tr>
                               <td><?php echo $rsPenaltyData[$i]['penalty_date']; ?></td>
                               <td><?php echo $rsPenaltyData[$i]['penalty_amount']; ?></td>
                               <td><?php echo $rsPenaltyData[$i]['penalty_review']; ?></td>
                               </td>
                              </tr>
                        <?php } ?>
                          
                          
                          
                       </tbody>
                    </table>
                    <div class="col-md-12 " style="text-align:center; padding-top: 18px; font-size: 16px">
                        <p>Total Penalty : <?php echo $rsTotPenalty; ?> </p>
                    </div>
                  </div>
                </div>
              </div> 
              <div class="sec_view" id="">
                <div class="request_quote">
                  <a class="spot-penalty" id="spot-penalty">SPOT PENALTY				
                  </a>
                </div>
                <div class="spot-penalty-view" id="spot-penalty-view" style="display: none;"> 
                  <div class="w100" style="padding:8px ">  
                    <form method="post" name="frmSpotPenalty" id="frmSpotPenalty" style=" float: left; width: 100%;margin-bottom: 12px;">
                      <input type="hidden" name="acn" value="addImposePenalty">
                      <input type="hidden" name="reportType" value="PMC">
                      <input type="hidden" name="penaltyType" value="SpotPenalty">
                      <div class="col-md-4"> 
                        <input class="form-control example2" type="text" placeholder="Select Date" name="penalty_date" required="">
                      </div>
                      <div class="col-md-3">
                        <input  class="form-control" type="number" placeholder="Penalty Amount" name="penalty_amount" required="">
                      </div>
                      <div class="col-md-12">
                        <textarea name="penalty_review" rows="3" placeholder="Penalty Review " style=" width: 100%;margin-top: 6px;"></textarea>
                      </div>
                      <input type="submit" class="btn btn-warning btn-sm" value="Submit" style="float: left;margin-top: 7px;margin-left: 17px;"> 
                      
                    </form>
                      <table class="tableanuj" >
                       <thead>
                          <tr>
                             <th >Penalty Date</th>
                             <th >Penalty Amount</th>
                             <th style="width: 195px;">Penalty Review</th>
                          </tr>
                       </thead>
                       <tbody>
                        <?php 
                            $rsPenaltyData = $objScorecardctsnew->fetchImposepenalty('PMC','SpotPenalty');
                            $rsTotPenalty = 0;
                            for ($i=0; $i < count($rsPenaltyData); $i++) { 
                              $rsTotPenalty += $rsPenaltyData[$i]['penalty_amount'];

                        ?>
                          
                              <tr>
                               <td><?php echo $rsPenaltyData[$i]['penalty_date']; ?></td>
                               <td><?php echo $rsPenaltyData[$i]['penalty_amount']; ?></td>
                               <td><?php echo $rsPenaltyData[$i]['penalty_review']; ?></td>
                               </td>
                              </tr>
                        <?php } ?>
                          
                          
                         
                       </tbody>
                    </table>
                    <div class="col-md-12 " style="text-align:center; padding-top: 18px; font-size: 16px">
                        <p>Total Penalty : <?php echo $rsTotPenalty; ?> </p>
                    </div>
                  </div>
                </div>
              </div> 
              <div class="sec_view" id="">
              
                <div class="request_quote">
                  <a class="other-penalty" id="other-penalty">MISCELLANEOUS			
                  </a>
                </div>
                
                
                 
                <div class="other-penalty-view" id="other-penalty-view" style="display: none;"> 
                  
                
                  <div class="w100" style="padding:8px "> 
                    <form method="post" name="frmOtherPenalty" id="frmOtherPenalty" style=" float: left; width: 100%;margin-bottom: 6px;">
                      <input type="hidden" name="acn" value="addImposePenalty">
                      <input type="hidden" name="reportType" value="PMC">
                      <input type="hidden" name="penaltyType" value="OtherPenalty">
                      <div class="col-md-4"> 
                        <input class="form-control example2" type="text" placeholder="Select Date" name="penalty_date" required="">
                      </div>
                      <div class="col-md-3">
                        <input  class="form-control" type="number" placeholder="Penalty Amount" name="penalty_amount" required="">
                      </div>
                      <div class="col-md-12">
                        <textarea name="penalty_review" rows="3" placeholder="Penalty Review " style=" width: 100%;margin-top: 6px;"></textarea>
                      </div>
                      <input type="submit" class="btn btn-warning btn-sm" value="Submit" style="float: left;margin:7px 17px"> 
                      
                    </form>
                    
                    <table class=" tableanuj "   >
                       <thead>
                          <tr>
                             <th>Penalty Date</th>
                             <th>Penalty Amount</th>
                             <th style="width: 195px;">Penalty Review</th>
                          </tr>
                       </thead>
                       <tbody>
                        <?php 
                            $rsPenaltyData = $objScorecardctsnew->fetchImposepenalty('PMC','OtherPenalty');
                            $rsTotPenalty = 0;
                            for ($i=0; $i < count($rsPenaltyData); $i++) { 
                              $rsTotPenalty += $rsPenaltyData[$i]['penalty_amount'];

                        ?>
                          
                              <tr>
                               <td><?php echo $rsPenaltyData[$i]['penalty_date']; ?></td>
                               <td><?php echo $rsPenaltyData[$i]['penalty_amount']; ?></td>
                               <td><?php echo $rsPenaltyData[$i]['penalty_review']; ?></td>
                               </td>
                              </tr>
                        <?php } ?>
                          
                          
                          
                       </tbody>
                    </table>
                      <div class="col-md-12 " style="text-align:center; padding-top: 18px; font-size: 16px">
                        <p>Total Penalty : <?php echo $rsTotPenalty; ?> </p>
                      </div>
                      
                  </div>
                </div>
              </div> 
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
        </div>
        <!-- /.col -->
        </section>
      <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->
    <!-- Bootstrap 3.3.7 -->
    <script src="<?php echo $curImagePath ?>/bower_components/bootstrap/dist/js/bootstrap.min.js">
    </script>
    <!-- DataTables -->
    <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/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 for demo purposes -->
    <script src="<?php echo $curImagePath ?>/dist/js/demo.js">
    </script>
    <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>
	
	<!-- SweetAlert2 -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.2.0/sweetalert2.min.css">
  <script src="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.2.0/sweetalert2.all.min.js"></script>
  
  
  <script>


    $("#frmNonremovalGarbagePenalty").submit(function(event) {
      //urlv = base_url+'home/registration';
      var $this = $(this);
      $('.alert').slideUp();
      var formDatapro = new FormData(this);
      callAjax(formDatapro);
      event.preventDefault();
    });

    $("#frmOpenBurningWastePenalty").submit(function(event) {
      //urlv = base_url+'home/registration';
      var $this = $(this);
      $('.alert').slideUp();
      var formDatapro = new FormData(this);
      callAjax(formDatapro);
      event.preventDefault();
    });

    $("#frmRodentWorkPenalty").submit(function(event) {
      //urlv = base_url+'home/registration';
      var $this = $(this);
      $('.alert').slideUp();
      var formDatapro = new FormData(this);
      callAjax(formDatapro);
      event.preventDefault();
    });

    $("#frmPenaltyImposedByNGT").submit(function(event) {
      //urlv = base_url+'home/registration';
      var $this = $(this);
      $('.alert').slideUp();
      var formDatapro = new FormData(this);
      callAjax(formDatapro);
      event.preventDefault();
    });

    $("#frmSpotPenalty").submit(function(event) {
      //urlv = base_url+'home/registration';
      var $this = $(this);
      $('.alert').slideUp();
      var formDatapro = new FormData(this);
      callAjax(formDatapro);
      event.preventDefault();
    });

    $("#frmOtherPenalty").submit(function(event) {
      //urlv = base_url+'home/registration';
      var $this = $(this);
      $('.alert').slideUp();
      var formDatapro = new FormData(this);
      callAjax(formDatapro);
      event.preventDefault();
    });

    function callAjax(formDatapro) {
      $.ajax({
        url: 'runajax.php',
        method: "POST",
        data: formDatapro,
        beforeSend: function() {
          //$this.html(ing);
          // $this.after('<div class="ldr"><i class="fa fa-circle-o-notch fa-spin"></i></div>');
        },
        success: function(data) {
          console.log(data);
          $('.ldr').hide();
          //$this.html(prv);

          if (data.trim() == 'done') {
            // $('.inputpageid').val('');
            //setTimeout(window.location.href = base_url+'member', 2000);
            swal(
              'Success',
              'Penalty has been Updated ',
              'success'
            )
            setTimeout(window.location.href = '<?php echo SERVER_ROOT ?>imposepenalty.html', 5000);
            // return false;
          } else {
            swal(
              'Error!',
              'failed <b style="color:red;">' + data + '</b>',
              'error'
            )

            return false;
          }
        },
        cache: false,
        contentType: false,
        processData: false
      });
    }

      $(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;
        }
      }
      $('#month').val('<?php echo $Month ?>');
      $('#year').val('<?php echo $Year ?>');
    </script>
    <!---creat_new_page_print--->
    <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>
    <script>
      $('.print_btn').on('click', function() {
        // select print button with class "print," then on click run callback function
        breakeveryheader();
        $.print("#printTable");
        // inside callback function the section with class "content" will be printed
      }
                        );
    </script>
    <!--//creat_new_page_print -->
    <script type="text/javascript">
      // When the document is ready
      $(document).ready(function () {
        $('#example1').datepicker({
          format: "dd/mm/yyyy"
        }
                                 );
      }
                       );
    </script>
    <script type="text/javascript">
      // When the document is ready
      $(document).ready(function () {
        $('.example2').datepicker({
          format: "dd-mm-yyyy"
        }
                                 );
      }
                       );
    </script>
    <script type="text/javascript">
      // When the document is ready
      $(document).ready(function () {
        $('#example3').datepicker({
          format: "dd/mm/yyyy"
        }
                                 );
      }
                       );
    </script>
    <script type="text/javascript">
      // When the document is ready
      $(document).ready(function () {
        $('#example4').datepicker({
          format: "dd/mm/yyyy"
        }
                                 );
      }
                       );
    </script>
    <script type="text/javascript">
      // When the document is ready
      $(document).ready(function () {
        $('#example5').datepicker({
          format: "dd/mm/yyyy"
        }
                                 );
      }
                       );
    </script>
    <script type="text/javascript">
      // When the document is ready
      $(document).ready(function () {
        $('#example6').datepicker({
          format: "dd/mm/yyyy"
        }
                                 );
      }
                       );
    </script>
    <script>
      jQuery(document).ready(function($){
        $("#open-burning").on("click", function(){
          $("#open-burning-view").slideToggle();
          $(this).toggleClass("active");
        }
                             );
      }
                            );
    </script>
    <script>
      jQuery(document).ready(function($){
        $("#non-removal").on("click", function(){
          $("#non-removal-view").slideToggle();
          $(this).toggleClass("active");
        }
                            );
      }
                            );
    </script>
    <script>
      jQuery(document).ready(function($){
        $("#rodent-work").on("click", function(){
          $("#rodent-work-view").slideToggle();
          $(this).toggleClass("active");
        }
                            );
      }
                            );
    </script>
    <script>
      jQuery(document).ready(function($){
        $("#penalty-imposed").on("click", function(){
          $("#penalty-imposed-view").slideToggle();
          $(this).toggleClass("active");
        }
                                );
      }
                            );
    </script>
    <script>
      jQuery(document).ready(function($){
        $("#spot-penalty").on("click", function(){
          $("#spot-penalty-view").slideToggle();
          $(this).toggleClass("active");
        }
                             );
      }
                            );
    </script>
    <script>
      jQuery(document).ready(function($){
        $("#other-penalty").on("click", function(){
          $("#other-penalty-view").slideToggle();
          $(this).toggleClass("active");
        }
                              );
      }
                            );
    </script>
    <style>
      .request_quote a {
        background: #d9d9d9;
        padding: 4px 7px;
        margin-left: 18px;
        margin-top: 6px !important;
        display: inline-block;
        margin-bottom: 11px;
        border-radius: 31px;
        color: #000;
        border: 1px solid #ddd;
      }
      .w100 {
        width: 100%;
        float: left;
      }
      .w745 {
        width: 754px;
        margin: 0 auto;
        background: #f8f8f8;
        border: 1px solid #ddd;
        padding: 0 0 12px 0;
      }
      .w100 table.table tr th, .w100 table.table tr td {
        padding: 3px 3px !important;
        border: 1px solid #000;
      }
      .sec_view {
        background: #f1f1f1;
        FLOAT: LEFT;
        WIDTH: 97%;
        MARGIN: 0 AUTO;
        FLOAT: NONE;
        DISPLAY: table;
        MARGIN-TOP: 14px;
        BORDER: 1PX SOLID #a9a9a9;
      }
    </style>
    <style>
      @media print {
        .new_print_display {
          page-break-after: always;
        }
        td {
          padding: 0 7px !important;
        }
      }
      @page {
        size: A4;
      }
      table.display--.new_print_display.bor_none td {
        border: 0px solid #000;
      }
      table.display--.new_print_display.bor_none.billinvoice td {
        text-align: left;
      }
      table.display--.new_print_display.bor_none.billinvoice {
        margin: 0 auto;
      }
      table.display--.new_print_display.bor_none.billinvoice {
        text-transform: uppercase;
      }
	  .w100 table.table tr td i {
    font-size: 16px;
}
tr.penalty_edit {
    background: #ff00004d;
}
tr.bor_none td {
    border: 0px solid #000 !important;
}
::-webkit-input-placeholder { /* Edge */
  color: #000;
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
   color: #000;
}

::placeholder {
  color: #000;
}
    </style>


 <div class="modal fade" id="modal-default">
          <div class="modal-dialog">
            <div class="modal-content">
             
              <div class="modal-body">
              <center>  <h4>Penalty  Edit</h4></center>
			  <span>Penalty Amount</span>
			  <input class="form-control" type="number" placeholder="Penalty Amount " id="">
			  <br>
			   <span>Penalty Review</span>
			  <textarea id="" name="w3review" rows="3" placeholder="Penalty Review" style=" width: 100%;margin-top: 6px;">                        </textarea>
              </div>
              <div class="modal-footer">
                <button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
                <button type="button" class="btn btn-primary" id="success">Submit</button>
              </div>
            </div>
            <!-- /.modal-content -->
          </div>
          <!-- /.modal-dialog -->
        </div>
        <!-- /.modal -->

<script>
// Alert Modal Type
		$(document).on('click', '#success', function(e) {
			swal(
				'Success',
				'Penalty has been Updated ',
				'success'
			)
		});

		$(document).on('click', '#error', function(e) {
			swal(
				'Error!',
				'You clicked the <b style="color:red;">error</b> button!',
				'error'
			)
		});

		$(document).on('click', '#warning', function(e) {
			swal(
				'Warning!',
				'You clicked the <b style="color:coral;">warning</b> button!',
				'warning'
			)
		});

		$(document).on('click', '#info', function(e) {
			swal(
				'Info!',
				'You clicked the <b style="color:cornflowerblue;">info</b> button!',
				'info'
			)
		});

		$(document).on('click', '#question', function(e) {
			swal(
				'Question!',
				'You clicked the <b style="color:grey;">question</b> button!',
				'question'
			)
		});

	// Alert With Custom Icon and Background Image
		$(document).on('click', '#icon', function(event) {
			swal({
				title: 'Custom icon!',
				text: 'Alert with a custom image.',
				imageUrl: 'https://image.shutterstock.com/z/stock-vector--exclamation-mark-exclamation-mark-hazard-warning-symbol-flat-design-style-vector-eps-444778462.jpg',
				imageWidth: 200,
				imageHeight: 200,
				imageAlt: 'Custom image',
				animation: false
			})
		});

		$(document).on('click', '#image', function(event) {
			swal({
				title: 'Custom background image, width and padding.',
				width: 700,
				padding: 150,
				background: '#fff url(https://image.shutterstock.com/z/stock-vector--exclamation-mark-exclamation-mark-hazard-warning-symbol-flat-design-style-vector-eps-444778462.jpg)'
			})
		});

	// Alert With Input Type
		$(document).on('click', '#subscribe', function(e) {
			swal({
			  title: 'Submit email to subscribe',
			  input: 'email',
			  inputPlaceholder: 'Example@email.xxx',
			  showCancelButton: true,
			  confirmButtonText: 'Submit',
			  showLoaderOnConfirm: true,
			  preConfirm: (email) => {
			    return new Promise((resolve) => {
			      setTimeout(() => {
			        if (email === 'example@email.com') {
			          swal.showValidationError(
			            'This email is already taken.'
			          )
			        }
			        resolve()
			      }, 2000)
			    })
			  },
			  allowOutsideClick: false
			}).then((result) => {
			  if (result.value) {
			    swal({
			      type: 'success',
			      title: 'Thank you for subscribe!',
			      html: 'Submitted email: ' + result.value
			    })
			  }
			})
		});

	// Alert Redirect to Another Link
		$(document).on('click', '#link', function(e) {
		    swal({
				title: "Are you sure?", 
				text: "Penalty Has Been Deleted", 
				type: "warning",
				confirmButtonText: "Delete",
				showCancelButton: true
		    })
		    	.then((result) => {
					if (result.value) {
					    window.location = 'imposepenalty.html';
					} else if (result.dismiss === 'cancel') {
					    swal(
					      'Cancelled',
					      '',
					      'error'
					    )
					}
				})
		});
</script>

<script>
    $(document).ready(function(){
        $('.tableanuj').DataTable();
    });
</script>