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
<?php
class Display_DCategories
{
function showCategories($test)
{//echo 'hi';
for($i=0;$i<count($test);$i++)
{
$output.='<tr class="formblock_row1" onmouseover="mouse_event(this,\'formrow_bg\')" onmouseout="mouse_event(this, \''.$class.'\');">
<td width="4%" align="center"><input name="'.$test[$i]['categorey_id'].'" type="checkbox" value="'.$test[$i]['categorey_id'].'" /></td>
<td width="4%" align="left" valign="center">'.$test[$i]['categorey_id'].'</td>
<td width="60%" align="left">'.$test[$i]['categorey_name'].'</td>
<td width="12%" align="left">'.$test[$i]['categorey_date'].'</td>
<td width="7%" align="center">'.$test[$i]['categorey_status'].'</td>
<td class="center"><button type="button" class="btn btn-primary btn-xs" onclick="location.href=\'?do=categories&action=edit&id='.$test[$i]['categorey_id'].'\'" >Edit</button></td>
</tr>';
}
return $output;
}
}
?>