Esempio n. 1
0
//angela: Do we need recording of personal actions????
// The following is added for statistics purposes
//require_once 'include/action.php';
//$action = new action();
//$action->record(MODULE_ID_ANNOUNCE);

$toolName = $langNotes;

ModalBoxHelper::loadModalBox();
load_js('tools.js');
load_js('references.js');
$head_content .= '<script type="text/javascript">var langEmptyGroupName = "' .
        $langEmptyNoteTitle . '";</script>';

$noteNumber = Notes::count_user_notes();

$displayForm = true;
/* up and down commands */
if (isset($_GET['down'])) {
    $thisNoteId = intval(getDirectReference($_GET['down']));
    Notes::movedown_note($thisNoteId);
    redirect_to_home_page('main/notes/index.php');  
}
if (isset($_GET['up'])) {
    $thisNoteId = intval(getDirectReference($_GET['up']));
    Notes::moveup_note($thisNoteId);
    redirect_to_home_page('main/notes/index.php');  
}

/* submit form: new or updated note */