<script language="JavaScript">
function doEditData(eachId,teacherName,teacherDesig) {
var eachTeacherVal = document.getElementById(eachId).innerHTML;
alert("kaniz"+eachTeacherVal);
alert("kaniz2"+teacherName);
alert("kaniz3"+teacherDesig);
//var teacherName = document.getElementById(teacherName).value; NOT already pick up
//alert("teacherName"+teacherName);
//var teacherDesig = document.getElementById(teacherDesig).value; NOT already pick up
//alert("teacherDesig"+teacherDesig);
window.location = "adminTcDoEditLoad.do?eachTeacherVal="+eachTeacherVal+"&teacherName="+teacherName+"&teacherDesig="+teacherDesig;
//window.location = "adminTcDoEditLoad.do?eachTeacherVal="+eachTeacherVal+"&branchName="+branchName;
alert("2");
}
</script>
<table width="100%" border="1px solid #CCC;">
<tr style="font-family:Arial; font-size:12px; font-weight:bold; background:#CCC;">
<td width="2%" height="38">SL.</td>
<td width="5%">Id</td>
<td width="15%">Teacher Name</td>
<td width="10%">Designation</td>
<td width="10%">EIIN</td>
<td width="15%">Institute Name</td>
<td width="7%">First Join</td>
<td width="10%">Actions</td>
<td width="10%">DoEdit</td>
<td width="10%">DoDelete</td>
</tr>
<% int k=0; %>
<s:iterator value="teacherTypeList" status="status">
<% k+=1;%>
<tr >
<td width="2%"><s:property value='#status.count'/></td>
<td width="2%"><s:property value='tech_general_info_id'/></td>
<td width="4%" style="text-align:left;"><s:property value='tech_name'/></td>
<td id="recordId<%=k %>" width="15%"><s:property value='desig_id'/></td>
<td width="2%"> </td>
<td width="4%"> </td>
<td > </td>
<td width="15%">
<span><a href="adminTcEditLadmin.do">Edit</a></span>
<span><a href="#">Delete</a></span>
</td>
<td >
<a href="#" onclick="doEditData('recordId<%=k %>','<s:property value='tech_general_info_id'/>','<s:property value='tech_name'/>');" >DoEdit</a>
</td>
<td ><a href="#" onclick="doDeleteData();" style="font-family:Arial; font-size:12px; font-weight:bold; color:#000;">DoDelete</a></td>
</tr>
</s:iterator>
</table>
No comments:
Post a Comment