コード例 #1
0
                    $msg = get_string('messagingblockednoncontact', 'message', fullname($user2));
                    echo html_writer::tag('span', $msg, array('id' => 'messagewarning'));
                }
            }
            $mform = new send_form();
            $defaultmessage = new stdClass();
            $defaultmessage->id = $user2->id;
            $defaultmessage->viewing = $viewing;
            $defaultmessage->message = '';
            //$defaultmessage->messageformat = FORMAT_MOODLE;
            $mform->set_data($defaultmessage);
            $mform->display();
        }
        echo html_writer::end_tag('div');
    }
} else {
    if ($viewing == MESSAGE_VIEW_SEARCH) {
        message_print_search($advancedsearch, $user1);
    } else {
        if ($viewing == MESSAGE_VIEW_RECENT_CONVERSATIONS) {
            message_print_recent_conversations($user1, false, $showactionlinks);
        } else {
            if ($viewing == MESSAGE_VIEW_RECENT_NOTIFICATIONS) {
                message_print_recent_notifications($user1);
            }
        }
    }
}
echo html_writer::end_tag('div');
echo $OUTPUT->box_end();
echo $OUTPUT->footer();
コード例 #2
0
ファイル: index.php プロジェクト: JP-Git/moodle
                        if (empty($contact)) {
                            $msg = get_string('messagingblockednoncontact', 'message', fullname($user2));
                            echo html_writer::tag('span', $msg, array('id' => 'messagewarning'));
                        }
                    }

                    $mform = new send_form();
                    $defaultmessage = new stdClass;
                    $defaultmessage->id = $user2->id;
                    $defaultmessage->message = '';
                    //$defaultmessage->messageformat = FORMAT_MOODLE;
                    $mform->set_data($defaultmessage);
                    $mform->display();
                }
            echo html_writer::end_tag('div');
        }
    } else if ($viewing == MESSAGE_VIEW_SEARCH) {
        message_print_search($advancedsearch, $user1);
    } else if ($viewing == MESSAGE_VIEW_RECENT_CONVERSATIONS) {
        message_print_recent_conversations($user1);
    } else if ($viewing == MESSAGE_VIEW_RECENT_NOTIFICATIONS) {
        message_print_recent_notifications($user1);
    }
echo html_writer::end_tag('div');

echo $OUTPUT->box_end();

echo $OUTPUT->footer();