<? global $vis_language; ?>
<div id="vis_report_list"><div class="vis_main_window vis_shadow vis_round_corner"><table cellpadding="0" cellspacing="0" width="100%"><tr><td>
    <span class="vis_sub_header_selected" onclick="$(this).visInterface('switch_subtab', {'vis_static_area':'vis_report_list'}); $('#vis_report_list').visExecution('load_area', {'vis_module':'report', 'vis_operation':'report_list', 'cache':true})"><? echo $vis_language['TXTCUSTOM']; ?></span> <span class="vis-toolbar-splitter"></span> <span class="vis_sub_header_normal" onclick="$(this).visInterface('switch_subtab', {'vis_static_area':'vis_report_list'}); $('#vis_report_list').visExecution('load_area', {'vis_module':'report', 'vis_operation':'custom_report_list', 'cache':true})"><? echo $vis_language['TXTSYSTEM']; ?></span>
</td><td align="right"><span onclick="$(this).visExecution('load_module', '<? echo $vis_language['TXTADDREPORT']; ?>', {'vis_module':'report', 'vis_operation':'add_report', 'cache':true})"><span class="vis-icon vis-icon-plus vis-pointer></span> <? echo $vis_language['TXTADD']; ?></span></td></tr></table>
    <div class="vis_main_window_content vis_round_corner"><table cellpadding="0" cellspacing="0" width="100%" class="vis_list_table"><tr><th><? echo $vis_language['TXTTITLE']; ?></th><th><? echo $vis_language['TXTOWNER']; ?></th><th><? echo $vis_language['TXTCREATEDATE']; ?></th><th width="200"><? echo $vis_language['TXTOPTIONS']; ?></th></tr> <?
        if($report!=-1) {for($i=0;$i<count($report);$i++) {
            echo '<tr><td>'.$report[$i]['report_name'].'</td><td>'.$report[$i]['first_name'].'</td><td>'.format_datetime($report[$i]['entry_date']).'</td><td><span class="vis_button" onclick="$(\'#vis_global_msg_div\').visExecution(\'load_module\', \''.$report[$i]['report_name'].'\', {\'vis_module\':\'report\', \'vis_operation\':\'view_report\', \'vis_report_id\':'.$report[$i]['report_id'].'})">'.$vis_language['TXTVIEWRESULT'].'</span> <span class="vis_button" onclick="$(\'#vis_global_msg_div\').visExecution(\'load_module\', \''.$report[$i]['report_name'].'\', {\'vis_module\':\'report\', \'vis_operation\':\'edit_report\', \'vis_report_id\':'.$report[$i]['report_id'].', \'cache\':true});">'.$vis_language['TXTEDIT'].'</span> <span class="vis_button" onclick="$(this).visInterface(\'load_dialog\', {\'vis_module\':\'report\', \'vis_operation\':\'get_delete_report\', \'vis_report_id\':'.$report[$i]['report_id'].', \'vis_static_area\':\'vis_report_delete_area\'});">'.$vis_language['TXTDELETE'].'</span></td></tr>';
        }} else echo $vis_language['MSGRPTNTFND'] ?></table>
    </div>
</div></div>