JezK
Edit File: monthlyReportView.php
<?php $currentPage="BF_BCs"; include("header.php"); include("app/getReports.php"); ?> <div id="page-wrapper"> <div class="container-fluid"> <!-- Page Heading --> <div class="row"> <div class="col-lg-12 page-header"> <h1 class=" col-md-6"> <small>Monthly Performance Reports of <?php echo $applicationName; ?></small> </h1> <div class="col-md-2 cs-select" style="margin-top: 30px;"> <select class=" selectStyle" id="month" name="month" onchange="isReportAlreadySubmitted(this.value)" disabled> <option value="0">Select Month</option> <option value="1" <?php echo $selected1; ?>>January</option> <option value="2" <?php echo $selected2; ?>>February</option> <option value="3" <?php echo $selected3; ?>>March</option> <option value="4" <?php echo $selected4; ?>>Apirl</option> <option value="5" <?php echo $selected5; ?>>May</option> <option value="6" <?php echo $selected6; ?>>June</option> <option value="7" <?php echo $selected7; ?>>July</option> <option value="8" <?php echo $selected8; ?>>August</option> <option value="9" <?php echo $selected9; ?>>September</option> <option value="10" <?php echo $selected10; ?>>October</option> <option value="11" <?php echo $selected11; ?>>November</option> <option value="12" <?php echo $selected12; ?>>December</option> </select> </div> <div class="col-md-2 cs-select" style="margin-top: 30px;"> <p class="yearStyle" id="year">Year : <?php echo $reportYear; ?></p> </div> <!--<ol class="breadcrumb"> <li class="active" style="color: rgb(106, 0, 0);" <i class="fa fa-dashboard"></i> Dashboard </li> </ol>--> </div> </div> <!-- /.row --> <div class="row"> <div class="col-md-12"> <form> <div class="form-group"> <label class="col-md-8">Total Number of SHG's Credit Linked with NABFINS in the Month:</label> <input type="tex" class="cs-textfield" placeholder="Enter number only" id="" value="<?php echo $totalSHG; ?>" readonly> </div> <div class="form-group"> <label class="col-md-8">Proposed Number of SHG available for linkage in next Month :</label> <input type="tex" class="cs-textfield" placeholder="Enter number only" id="" value="<?php echo $proposedSHG; ?>" readonly> </div> <div class="form-group"> <label class="col-md-8">Total collection During the Month :</label> <input type="tex" class="cs-textfield" placeholder="" id="" value="<?php echo $totalCollection; ?>" readonly> </div> <div class="form-group"> <label class="col-md-8">Total Amount Remitted to NABFINS bank account in the Month: Rs</label> <input type="tex" class="cs-textfield" placeholder="" id="" value="<?php echo $totalRemit; ?>" readonly> </div> <div class="form-group"> <label class="col-md-8">Actual cash holding, if any by B&DC as on last day of the Month :Rs</label> <input type="tex" class="cs-textfield" placeholder="" id="" value="<?php echo $cashHolding; ?>" readonly> </div> <div class="form-group"> <label class="col-md-8">Any changes in Board members During the Month (Y/N) (if yes upload resolution copy) :</label> <div> <input type="radio" name="boardMemberChanges" value="1" id="yes" <?php echo $checked1; ?> disabled> <label for="yes" style="color:black;font-weight:normal;cursor:pointer;">Yes</label> <input type="radio" name="boardMemberChanges" value="0" id="no" <?php echo $checked2; ?> disabled> <label for="no" style="color:black;font-weight:normal;cursor:pointer;">No</label> </div> </div> <div class="form-group"> <?php echo $reportFile; ?> </div> <div style="clear:both;"></div> <div class="form-group"> <label class="col-md-8">No of SHG Meetings attended by B&DC Staff during the Month</label> <input type="tex" class="cs-textfield" placeholder="Enter number only" id="" value="<?php echo $shgMeetings; ?>" readonly> </div> <div class="form-group"> <label class="col-md-8">No of SHG Promoted during the Month :</label> <input type="tex" class="cs-textfield" placeholder="Enter number only" id="" value="<?php echo $shgPromoted; ?>" readonly> </div> <div class="form-group"> <label class="col-md-8">No of SHG Adopted by the B&DC during the Month</label> <input type="tex" class="cs-textfield" placeholder="Enter number only" id="" value="<?php echo $shgAdopted; ?>" readonly> </div> <h3 class="col-md-11">Details of staff as on last day of the Month:</h3> <!--<input type="button" class="btn btn-default add_field_button col-md-1" value="Add New" >--> <div class="col-md-12 table-responsive"> <table class="table table-striped table-bordered" cellspacing="0" width="100%"> <thead> <tr> <th>S.No</th> <th>No. of staff working with B&DC </th> <th>No. of staff working with nabfins</th> <th>No. of staff having Nabfins id card</th> <th>Number of staff newly joined</th> <th>No. of staff involved in Nabfins</th> <th>No. of Staff using mobile cbs</th> </tr> </thead> <tbody class="input_fields_wrap"> <?php echo $staffData; ?> </tbody> </table> </div> <div class="col-md-12 table-responsive"> <h3>Name of the staff who left the service</h3> <table class="table table-striped table-bordered" cellspacing="0" width="100%"> <thead> <tr> <th>S.No</th> <th>Name of the staff</th> </tr> </thead> <tbody> <?php echo $staffLeftDetails; ?> </tbody> </table> </div> <div class="col-md-12 table-responsive"> <h3>Name of the staff who joined the service</h3> <table class="table table-striped table-bordered" cellspacing="0" width="100%"> <thead> <tr> <th>S.No</th> <th>Name of the staff</th> </tr> </thead> <tbody> <?php echo $staffJoinedDetails; ?> </tbody> </table> </div> </form> </div> </div> <!-- /.row --> </div> <!-- /.container-fluid --> </div> <!-- /#page-wrapper --> <script> $(document).ready(function() { $(".browse-d").click(function(){ $(this).parents(".form-group").find('.browse-o').click(); }); $('.browse-o').change(function(){ var fileName =$(this).parents(".form-group").find('.browse-o').val(); fileName = fileName.substring(fileName.lastIndexOf("\\") + 1, fileName.length); $(this).closest('.form-group').find('.path').html(fileName); }); //var max_fields = ; //maximum input boxes allowed var wrapper = $(".input_fields_wrap"); //Fields wrapper var add_button = $(".add_field_button"); //Add button ID var x = 1; //initlal text box count $(add_button).click(function(e){ //on add input button click e.preventDefault(); // if(x < max_fields){ //max input box allowed x++; //text box increment $(wrapper).append('<tr> \ <td>'+x+'</td> \ <td><input type="text" name="workingStaffwithB&DC[]" class="cs-textfield" id="workingStaffwithB&DC" value=""></td> \ <td><input type="text" name="workingStaffwithNabfins[]" class="cs-textfield" id="workingStaffwithNabfins" value=""></td> \ <td><input type="text" name="staffHavingIdCard[]" class="cs-textfield" id="staffHavingIdCard" value=""></td> \ <td><input type="text" name="newlyJoinedStaff[]" class="cs-textfield" id="newlyJoinedStaff" value=""></td> \ <td><input type="text" name="involvedStaffInNabfins[]" class="cs-textfield" id="involvedStaffInNabfins" value=""></td>\ <td><input type="text" name="noOfBCusingMobileCBS[]" class="cs-textfield" id="noOfBCusingMobileCBS" value=""></td> \ <td><a class="action2"><i class="fa fa-trash remove_field" aria-hidden="true" ></i></a></td> \ </tr>'); //add input box //} }); $(wrapper).on("click",".remove_field", function(e){ //user click on remove text e.preventDefault(); $(this).closest('tr').remove(); x--; }) }); </script> <?php include("footer.php");?>