Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.149.242.223
function callStudentdisplay(){
$("#page_main_div").load('../html_modules/studdet.html?v=1');
}
function getstuddet()
{
var registernum = document.getElementById("registernum").value;
$.ajax({
type: "GET",
url:$host_url +"getstudentddet",
data :"®isternum="+registernum,
success:function(res){
var response = JSON.parse(res)
console.log(response);
console.log(response.data.FNAME);
if(response.error_code == 0)
var str = `
<style>
#customers {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
}
#customers td, #customers th {
border: 1px solid #ddd;
padding: 8px;
}
#customers tr:nth-child(even){background-color: #f2f2f2;}
#customers tr:hover {background-color: #ddd;}
#customers th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #04AA6D;
color: white;
}
</style>
<table id="customers" style="width:75%;margin-left:120px;margin-top:20px">
<tr>
<td>
Name
</td>
<td>${response.data.FNAME}</td>
</tr>
<tr>
<td>
Father Name
</td>
<td>${response.data.FFATNAME}</td>
</tr>
<tr>
<td>
Mother Name
</td>
<td>${response.data.FMOTNAME}</td>
</tr>
<tr>
<td>Gender</td>
<td>${response.data.FGENDER}</td>
</tr>
<tr>
<td>
Aadhar No
</td>
<td>${response.data.FAADHARNO}</td>
</tr>
<tr>
<td>
Degree
</td>
<td>${response.data.FDEGREE}</td>
</tr>
<tr>
<td>
College Code
</td>
<td>${response.data.FCOLLCODE} </td>
<tr>
<td>
Exam No
</td>
<td>${response.data.FEXAMNO}</td>
</tr>
</tr>
</table>
`
$("#studentreg").html(str);
}
})
}
|