|
|
@ -36,7 +36,7 @@ |
|
|
<div class="card-body" style="line-height: 2.7;"> |
|
|
<div class="card-body" style="line-height: 2.7;"> |
|
|
<h5 class="card-title">Training Center Wise Summary Reports</h5><hr> |
|
|
<h5 class="card-title">Training Center Wise Summary Reports</h5><hr> |
|
|
<ul type="square"> |
|
|
<ul type="square"> |
|
|
<li><button type="button" class="btn btn-primary" data-toggle="modal" data-target="#1st_Day_Training_Department_Wise_Breakup"> |
|
|
|
|
|
|
|
|
<li><button type="button" class="btn btn-primary" data-toggle="modal" onclick="trainingDeptWiseBrakup()"> |
|
|
Polling Personnel – 1st Day Training Department Wise Breakup |
|
|
Polling Personnel – 1st Day Training Department Wise Breakup |
|
|
</button></li> |
|
|
</button></li> |
|
|
<li><button type="button" class="btn btn-primary" data-toggle="modal" data-target="#1st_Day_Training_Summary"> |
|
|
<li><button type="button" class="btn btn-primary" data-toggle="modal" data-target="#1st_Day_Training_Summary"> |
|
|
@ -160,26 +160,10 @@ |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
<label for="zones">Assembly Constituency :</label> |
|
|
<label for="zones">Assembly Constituency :</label> |
|
|
<select class="form-control custom-select" id="zones1" name="zones"> |
|
|
<select class="form-control custom-select" id="zones1" name="zones"> |
|
|
<option value="11">Dr.Radhakrishnan Nagar</option> |
|
|
|
|
|
<option value="12">Perambur</option> |
|
|
|
|
|
<option value="13">Kolathur</option> |
|
|
|
|
|
<option value="14">Villivakkam</option> |
|
|
|
|
|
<option value="15">Thiru-Vi-Ka-Nagar</option> |
|
|
|
|
|
<option value="16">Egmore</option> |
|
|
|
|
|
<option value="17">Royapuram</option> |
|
|
|
|
|
<option value="18">Harbour</option> |
|
|
|
|
|
<option value="19">Chepauk - Thiruvallikeni</option> |
|
|
|
|
|
<option value="20">Thousand Lights</option> |
|
|
|
|
|
<option value="21">Anna Nagar</option> |
|
|
|
|
|
<option value="22">Virugampakkam</option> |
|
|
|
|
|
<option value="23">Saidapet</option> |
|
|
|
|
|
<option value="24">Thiyagarayanagar</option> |
|
|
|
|
|
<option value="25">Mylapore</option> |
|
|
|
|
|
<option value="26">Velachery</option> |
|
|
|
|
|
<option value="30">20-Thousand Lights</option> |
|
|
|
|
|
|
|
|
|
|
|
</select> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<button type="submit" class="btn btn-primary">Report</button> |
|
|
|
|
|
|
|
|
<button type="submit" class="btn btn-primary" onclick="printTrainingDeptWiseBrakupReport()">Report</button> |
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Back</button> |
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Back</button> |
|
|
</form> |
|
|
</form> |
|
|
</div> |
|
|
</div> |
|
|
@ -1252,6 +1236,8 @@ |
|
|
|
|
|
|
|
|
<!-- Scripts --> |
|
|
<!-- Scripts --> |
|
|
<script th:replace="~{fragments/script :: script}"></script> |
|
|
<script th:replace="~{fragments/script :: script}"></script> |
|
|
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
$(document).ready(function() { |
|
|
$(document).ready(function() { |
|
|
@ -1282,7 +1268,6 @@ $(document).ready(function() { |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
/* modal show */ |
|
|
/* modal show */ |
|
|
|
|
|
|
|
|
function firstDayAttSheet(){ |
|
|
function firstDayAttSheet(){ |
|
|
|
|
|
|
|
|
$('#1st_Day_Training_Attendance_Sheet').modal({ |
|
|
$('#1st_Day_Training_Attendance_Sheet').modal({ |
|
|
@ -1293,6 +1278,48 @@ $(document).ready(function() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function trainingDeptWiseBrakup(){ |
|
|
|
|
|
alert("testing"); |
|
|
|
|
|
$.ajax({ |
|
|
|
|
|
url: '/api/acList', // Replace with the actual URL to retrieve division data |
|
|
|
|
|
method: 'GET', |
|
|
|
|
|
success: function (data) { |
|
|
|
|
|
var string =""; |
|
|
|
|
|
document.getElementById("zones1").innerHTML =string; |
|
|
|
|
|
|
|
|
|
|
|
for (let i = 0; i < data.length; i++) { |
|
|
|
|
|
string = string + "<option value=" + data[i].AC_NO + ">" + data[i].AC_NAME + "</option>"; |
|
|
|
|
|
} |
|
|
|
|
|
document.getElementById("zones1").innerHTML = string; |
|
|
|
|
|
$('#1st_Day_Training_Department_Wise_Breakup').modal({ |
|
|
|
|
|
backdrop: 'static', |
|
|
|
|
|
keyboard: false |
|
|
|
|
|
}); |
|
|
|
|
|
$('#1st_Day_Training_Department_Wise_Breakup').modal('show'); |
|
|
|
|
|
|
|
|
|
|
|
console.log(data) |
|
|
|
|
|
}, |
|
|
|
|
|
error: function (error) { |
|
|
|
|
|
console.error('Error fetching division data:', error); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
function printTrainingDeptWiseBrakupReport(){ |
|
|
|
|
|
var trn_no = $("#zones1").val(); |
|
|
|
|
|
alert(trn_no); |
|
|
|
|
|
var vURL = "http://election.chennaicorporation.gov.in/electionmis_21/1st_order/PDF/trn_const_summary_"+trn_no+".pdf"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//alert(vURL); |
|
|
|
|
|
window.open(vURL,'','left=100,top=100,width=600,height=500,toolbar=0,scrollbars=1,sta�tus=0'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
|
</script> |
|
|
|