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_DSubAdminManagement
{
function showSubAdminSettings($records)
{
if(count($records)!=0)
{
for($i=0; $i<count($records); $i++)
{
if(($i%2)==0)
$color = "formblock_row1";
else
$color = "formblock_row2";
$status = ucfirst($records[$i]['admin_status']);
$output.='<tr class="'.$color.'">
<td align="center"><input type="checkbox" name="'.$records[$i]['admin_id'].'" id="ch'.$i.'" value="'.$records[$i]['admin_id'].'"></td>
<td align="left" >'.$records[$i]['admin_name'].'</td>
<td align="left">'.$records[$i]['admin_username'].'</td>
<td align="left" >'.$records[$i]['admin_email'].'</td>
<td align="center" >'.$status.'</td>
<td align="center" ><a href="?do=subadmin&action=editsubadmin&sadmin_id='.$records[$i]['admin_id'].'" style="text-decoration: none;"><img width="20" height="20" border="0" title="Click to Edit Sub Admin Details" alt="edit" src="images/icon_edit.gif"/></a></td>
</tr>';
}
}
$output.='</table><input type="hidden" name="len" value="'.count($records).'">';
return $output;
}
}
?>