/home3/vehiclea/public_html/admin-appleiitfoundationschools-com/promote_remarks.php
<?php
include('include/include.php');
if($_POST['type']==1){
$select_study = executework("SELECT * FROM promote_class where addmission_no = '".$_POST['AdmissionNo']."'");
while($row = mysqli_fetch_array($select_study)){
?>
<button type="button" class="collaps dropdown-toggle right" data-target="#collapseOne" onClick="change_button15()" style="margin-top: 20px; margin-left: -15px;" >Acadamic Year : <?= $row['academic_year']?> </button>
<div class="content1" style="background: color: #f5f5f5; margin-top: 5px; display:none;" id="card36">
<div class="col-col-lg-6 col-md-12">
<textarea id="promote_remarks" name="w3review" rows="5" cols="150" placeholder="Please Enter Remarks"></textarea>
<div>
<input type="button" name="submit" id="submit" value="Add" onclick="promote_remarks()" style=" background-color: #69F0AE; border: none;color: #fffff;padding:6px 40px;">
</div>
</div>
<?php
}
}
?>
<?php
$select_activity = executework("SELECT * FROM student_remarks AdmissionNo ='".$_POST['AdmissionNo']."' and yearOf ='".$_POST['Academic_year']."'");
while($actRow = mysqli_fetch_array($select_activity)){
?>
<div class="col-col-lg-6 col-md-12" style="margin-top:5px;">
<textarea id="w3review" name="w3review" rows="5" cols="150" placeholder="Please Enter Remarks"><?= $actRow['name']?></textarea>
</div>
<?php
}
?>
</div>
<script>
function change_button15()
{
$('#card36').show();
// $('#card1').hide();
}
</script>
<script>
function promote_remarks()
{
var AdmissionNo = $('#studyPAdm').val();
var PresentClass = $('#studyPclass').val();
var Academic_year = $('#studyPyear').val();
var Branch = $('#pBranch').val();
var remarks_data = $('#promote_remarks').val();
if(remarks_data == '')
{
swal('Please Enter Remarks');
return false;
}
else{
if(AdmissionNo !='')
{
$.ajax({
url : "remarks.php",
data : {AdmissionNo : AdmissionNo,type:1,Academic_year : Academic_year,remarks_data : remarks_data,Branch : Branch,PresentClass : PresentClass},
type : 'POST',
success : function(response) {
if(response =1){
$('#promote_remarks').val('');
}
}
});
}
}
}
</script>
@LwBee Strong Bypass
Upload File
Create New File