Example #1
0
    } elseif ($mode == 'participant') {
        echo lang('participant') . ': ' . $participant['email'];
    } elseif ($mode == 'mailbox') {
        echo lang('email_mailbox') . ': ' . $mailboxes[$id];
    } elseif ($mode == 'listmailboxes') {
        echo lang('all_mailboxes');
    } elseif ($mode == 'trash') {
        echo lang('mailbox_trash');
        if (check_allow('emails_trash_empty')) {
            echo button_link(thisdoc() . '?mode=trash&empty_trash=true', lang('email_empty_trash'), 'trash') . '<BR>';
        }
    }
    echo '
            </TD></TR></TABLE>
        </TD></TR>
        <TR><TD align="center">';
    // list emails
    if ($mode == 'listmailboxes') {
        // show mail boxes
        email__show_mail_boxes();
    } elseif ($mode == 'search') {
        // search for emails and list them
    } else {
        echo javascript__email_popup();
        email__list_emails($mode, $id, $rmode, $url_string);
    }
    echo '   </TD></TR></TABLE>
                <br><br>
        </center>';
}
include "footer.php";
Example #2
0
    if ($participant_id) {
        participants__get_statistics($participant_id);
    }
    if ($settings['enable_email_module'] == 'y' && isset($_REQUEST['participant_id'])) {
        $nums = email__get_privileges('participant', $_REQUEST, 'read', true);
        if ($nums['allowed'] && $nums['num_all'] > 0) {
            echo '<br><br><TABLE class="or_page_subtitle" style="background: ' . $color['page_subtitle_background'] . '; color: ' . $color['page_subtitle_textcolor'] . '; width: 90%">
					<TR><TD align="left">
						' . lang('emails') . '
					</TD></TR></TABLE>';
            echo javascript__email_popup();
            $url_string = 'participant_id=' . $participant_id;
            if ($hide_header) {
                $url_string .= '&hide_header=true';
            }
            email__list_emails('participant', $_REQUEST['participant_id'], $nums['rmode'], $url_string, false);
        }
    }
    echo "</CENTER>";
}
if ($hide_header) {
    echo '<BR><BR><BR><BR>';
    debug_output();
    echo '</TD></TR><TABLE></center><BR>';
    html__footer();
} else {
    include "footer.php";
}
if ($hide_header) {
    echo str_ireplace("href=", "target=\"_parent\" href=", ob_get_clean());
}
            $state = lang('session_reminder_state__waiting');
            $statecolor = $color['session_reminder_state_waiting_text'];
            $explanation = lang('session_reminder_will_be_sent_at_time_specified');
            $send_button_title = lang('session_reminder_send_now');
        }
        echo '<FONT color="' . $statecolor . '">' . lang('session_reminder') . ': ' . $state . '</FONT><BR>';
        echo $explanation . '<BR><FORM action="session_send_reminder.php">' . '<INPUT type=hidden name="session_id" value="' . $session_id . '">' . '<INPUT class="button" type=submit name="submit" value="' . $send_button_title . '"></FORM>';
    }
    echo '		</TD><TD align=right>';
    if (check_allow('participants_bulk_mail')) {
        experimentmail__bulk_mail_form();
    }
    echo '		</TD>';
    echo '	</TR>
		</TABLE>';
    if ($settings['enable_email_module'] == 'y' && $session_id) {
        $session['experimenter'] = $experiment['experimenter'];
        $nums = email__get_privileges('session', $session, 'read', true);
        if ($nums['allowed'] && $nums['num_all'] > 0) {
            echo '<br><br><TABLE class="or_page_subtitle" style="background: ' . $color['page_subtitle_background'] . '; color: ' . $color['page_subtitle_textcolor'] . '; width: 95%">
					<TR><TD align="center">
						' . lang('emails') . '
					</TD></TR></TABLE>';
            echo javascript__email_popup();
            email__list_emails('session', $session['session_id'], $nums['rmode'], $thiscgis, false);
        }
    }
    echo '  <BR><BR><A HREF="experiment_show.php?experiment_id=' . $experiment_id . '">' . lang('mainpage_of_this_experiment') . '</A><BR><BR>
             </CENTER>';
}
include "footer.php";