<?
    global $vis_language;
    $device=array(0=>'Android', 1=>'Windows');
    $status=array(0=>$vis_language['TXTDISABLED'], 1=>$vis_language['TXTENABLED']);
?>
<table cellpadding="0" cellspacing="0" width="100%" class="vis_list_table">
    <tr><th><? echo $vis_language['TXTTITLE']; ?></th><th>Device</th><th width="150"><? echo $vis_language['TXTSTATUS']; ?></th><th width="20"></th></tr><?
    if($devices!=-1) for($i=0;$i<count($devices);$i++) {
        echo '<tr><td>'.$devices[$i]['title'].'</td><td>'.$device[$devices[$i]['device_type']].'</td><td>'.$status[$devices[$i]['is_enabled']].'</td><td><span onclick="$(this).visInterface(\'load_dialog\', {\'vis_module\':\'staff\', \'vis_operation\':\'get_device_delete\', \'vis_device_id\':'.$devices[$i]['device_id'].', \'vis_static_area\':\'vis_device_delete_form\'})" class="vis-icon-med vis-icon-trash" title="Delete"></span></td></tr>';
    }?>
</table>