system: Linux mars.sprixweb.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
<script type="text/javascript">
function selectall(field)
{
//field.getElementByTagName('checkbox');
if(document.grid.checkall.checked==true)
{
for (i = 0; i < field.length; i++)
field[i].checked = true ;
}
else
{
for(i = 0; i < field.length; i++)
field[i].checked = false;
}
}
function deletePhotos(field)
{
var count = 0;
for (i = 0; i < field.length; i++)
{
if(field[i].checked == true)
count = count+1;
}
if(count==0)
{
alert("Please the item(s) to be deleted");
return false;
}
}
</script>
<AOA:output>if $message!="" </AOA:output>
<div id="dialog" title="Success">
<p><AOA:output>$message</AOA:output></p>
</div>
<AOA:output>/if</AOA:output>
<AOA:output>if $error_message ne "" </AOA:output>
<div id="dialog" title="Error in Validation">
<AOA:output>$error_message</AOA:output>
</div>
<AOA:output>/if</AOA:output>
<AOA:output>if count($errmsg) gt 0</AOA:output>
<div id="dialog" title="Error in Validation">
<p>
<AOA:output>foreach name=err item=err from=$errmsg</AOA:output>
<AOA:output>$err</AOA:output><br>
<AOA:output>/foreach</AOA:output>
</p>
</div>
<AOA:output>/if</AOA:output>
<div class="grid_9">
<div class="box round first grid">
<form name="grid" action="?do=photos&action=delete" method="post" onsubmit="return deletePhotos(this)">
<h2>Blood Donor
</h2>
<div class="block">
<table class="data display datatable" id="example">
<thead>
<tr>
<th width="2%"><input name="checkall" type="checkbox" value="" onclick="selectall(this.form)" /></th>
<th width="10%">I Card No</th>
<th width="10%">Donor Name</th>
<th width="6%">Gender</th>
<th width="15%">Age</th>
<th width="15%">Group</th>
<th width="15%">City</th>
<th width="10%">Action's</th>
</tr>
</thead>
<tbody>
<AOA:output>$donor</AOA:output>
</tbody>
</table>
</div>
</form>
</div>
</div>
<div class="clear">
</div>