$stickyNotes->addMyNote(); rcms_redirect('?module=stickynotes'); } //note deletion if (wf_CheckGet(array('delete'))) { $stickyNotes->deleteNote($_GET['delete']); rcms_redirect('?module=stickynotes'); } //note editing if (wf_CheckPost(array('edittext', 'editnoteid'))) { $stickyNotes->saveMyNote(); rcms_redirect('?module=stickynotes'); } //control panel display show_window('', $stickyNotes->panel()); if (!wf_CheckGet(array('shownote'))) { //grid or calendar view switch if (!wf_CheckGet(array('calendarview'))) { show_window(__('Available personal notes'), $stickyNotes->renderListGrid()); } else { show_window(__('Available personal notes'), $stickyNotes->renderListCalendar()); } } else { show_window(__('Sticky note'), $stickyNotes->renderNote($_GET['shownote'])); } } else { show_window(__('Error'), __('This module is disabled')); } } else { show_error(__('Access denied')); }