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=videos&action=delete" method="post" onsubmit="return deletePhotos(this)">
<h2>Videos Gallery
<div class="toolbox">
<button type="button" class="btn btn-success btn-xs" onclick="location.href='?do=videos&action=add'">Add New</button>
<button type="submit" name="delete" class="btn btn-danger btn-xs">Delete</button>
</div>
</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>Videos Name</th>
<th>Date</th>
<th>Status</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<AOA:output>$test</AOA:output>
</tbody>
</table>
</div>
</form>
</div>
</div>
<div class="clear">
</div>