<? global $vis_language; ?>
<div id="vis_calendar_tab"><div class="vis_main_window vis_shadow vis_round_corner"><table cellpadding="0" cellspacing="0" width="100%"><tr><td>
    <div class="vis_main_header"><? echo $vis_language['TXTCALENDAR']; ?></div></td><td align="right">
        <span class="vis_sub_header_normal" onclick="$('#vis_calendar_tab').visExecution('load_module', '<? echo $vis_language['TXTTASKS']; ?>',  {'vis_module':'home', 'vis_operation':'view_task'});"><? echo $vis_language['TXTTASKS']; ?></span> | <span class="vis_sub_header_normal vis-pointer" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTADDTASK']; ?>',{'vis_module':'home','vis_operation':'add_cal_event'});"  ><span class="vis-icon vis-icon-plus"></span> <? echo $vis_language['TXTADD']; ?></span> </td></tr></table>
    <div class="vis_main_window_content vis_round_corner"><div id="vis_calendar_area"><? $this->load_calendar($operation); ?></div></div>
</div>
<script>
    function vis_add_cal_task(monthyear) {
        $('#vis_calendar_tab').visExecution('load_area', {'vis_module':'home', 'vis_operation':'add_cal_event', 'vis_monthyear':monthyear});
    }
</script>