i have dynamically created checkbox which will like yahoo mail if check box selected it will highlight a row but deleteall function is not working plz chek it
Code:
function doDeleteAll($objArray){
foreach($objArray['frmcheckall'] as $strkey=>$strValue) {
$strDeleteId = $strValue;
doDelete($strDeleteId);
}
}
function doDelete($strDeleteId){
$strQuery = "UPDATE
tbl_categories
SET
IsDeleted = 'Yes'
WHERE
CategoryId = '".$strDeleteId."'";
if(ExecuteQry($strQuery))
return 1;
else
return 0;
}
<tr class="tablehead" id="frmcheck<?php print $i; ?>">
<td height="25" align="center"><input name="frmcheckall<?php //print $i; ?>" type="checkbox" id="frmcheckall<?php print $i; ?>" value="<? print $strValue[$i]['CategoryId']; ?>" onclick="highlightRow('frmcheckall<?php print $i; ?>','frmcheck<?php print $i; ?>');" />
</td>
<td class="tablecontent"><? print $strValue[$i]['CategoryName']; ?></td>
<td align="center" class="tablecontent"><a href="edit.php?id=<? print $strValue[$i]['CategoryId']; ?>">Edit</a>
| <a href="javascript:deleteConfirm('cateogrylist.php?id=<? print $strValue[$i]['CategoryId']; ?>')">Delete
</a> </td>
</tr>
Comment