コード例 #1
0
    print_header("{$course->shortname}: {$stremail}", "{$course->fullname}", "{$navigation} <a href=index.php?id={$course->id}>{$stremails}</a> -> {$stremail}", "", '<link type="text/css" href="email.css" rel="stylesheet" /><link type="text/css" href="treemenu.css" rel="stylesheet" /><link type="text/css" href="tree.css" rel="stylesheet" /><script type="text/javascript" src="treemenu.js"></script><script type="text/javascript" src="email.js"></script>', true, $preferencesbutton);
}
// Options for new mail and new folder
$options = new stdClass();
$options->id = $courseid;
$options->course = $courseid;
$options->folderid = $folderid;
$options->filterid = $filterid;
$options->folderoldid = $folderoldid;
/// Print the main part of the page
// Print principal table. This have 2 columns . . .  and possibility to add right column.
echo '<table id="layout-table">
  			<tr>';
// Print "blocks" of this account
echo '<td style="width: 180px;" id="left-column">';
email_printblocks($USER->id, $courseid);
// Close left column
echo '</td>';
// Print principal column
echo '<td id="middle-column">';
// Get actual folder, for show
if (!($folder = email_get_folder($folderoldid))) {
    if (!($folder = email_get_folder($folderid))) {
        // Default, is inbox
        $folder = email_get_root_folder($USER->id, EMAIL_INBOX);
    }
}
// Print middle table
print_heading_block(get_string('mailbox', 'block_email_list') . ': ' . $folder->name);
echo '<div>&#160;</div>';
// Print tabs options
コード例 #2
0
ファイル: search.php プロジェクト: saurabh947/MoodleLearning
    // Required
    $PAGE->set_title("{$course->shortname}: {$stremail}: {$strsearch}");
    echo $OUTPUT->header("{$navigation} <a href=index.php?id={$course->id}>{$stremails}</a> -> {$strsearch}");
}
// Options for new mail and new folder
$options = new stdClass();
$options->id = $courseid;
$options->folderid = $folderid;
$options->filterid = $filterid;
/// Print the main part of the page
// Print principal table. This have 2 columns . . .  and possibility to add right column.
echo '<table id="layout-table">
  			<tr>';
// Print "blocks" of this account
echo '<td style="width: 180px;" id="left-column">';
email_printblocks($USER->id, $courseid, ($search == get_string('searchtext', 'block_email_list') or $search == '') ? true : false);
// Close left column
echo '</td>';
// Print principal column
echo '<td id="middle-column">';
// Print middle table
print_heading_block($strsearch);
echo '<div>&#160;</div>';
// Create advanced search form
$advancedsearch = new advanced_search_form();
if (($search == get_string('searchtext', 'block_email_list') or $search == '') and !$advancedsearch->is_submitted()) {
    if (!$action) {
        echo $OUTPUT->notification(get_string('emptysearch', 'block_email_list'), '');
        echo $OUTPUT->notification(get_string('wantadvancedsearch', 'block_email_list'), 'notifysuccess');
    }
    // Print advanced search form