function fnCheckAll()
{
var nam="";
var mainchk = document.frmManage.mycheckbox;
var chklen = document.frmManage.elements.length;
if(mainchk.checked==true)
{
for(var n=0; n {
nam="check"+ n;
var currobj = document.getElementById(nam);
if(currobj.type == "checkbox" )
currobj.checked=true;
}
}
else if(mainchk.checked==false)
{
for(var n=0; n= 0)
{
allInputs = document.getElementsByTagName("input");
var flag=1;
for (i = 0; i< allInputs.length; i++)
{
if (allInputs[i].checked==true)
{
flag=0;
}
}
if (flag != 0 )
{
alert("Please select at least one.");
return false;
}
else
{
if(confirm('Are You Sure Want To Delete Selected Employee?'))
{
document.frmManage.submit();
}
}
}
}
{
var nam="";
var mainchk = document.frmManage.mycheckbox;
var chklen = document.frmManage.elements.length;
if(mainchk.checked==true)
{
for(var n=0; n
nam="check"+ n;
var currobj = document.getElementById(nam);
if(currobj.type == "checkbox" )
currobj.checked=true;
}
}
else if(mainchk.checked==false)
{
for(var n=0; n= 0)
{
allInputs = document.getElementsByTagName("input");
var flag=1;
for (i = 0; i< allInputs.length; i++)
{
if (allInputs[i].checked==true)
{
flag=0;
}
}
if (flag != 0 )
{
alert("Please select at least one.");
return false;
}
else
{
if(confirm('Are You Sure Want To Delete Selected Employee?'))
{
document.frmManage.submit();
}
}
}
}
for($intI=0;$intI
Bulk Action :
Please Select
No comments:
Post a Comment
Please mention your comments.......