Exemple #1
0
$f_interview_id = Input::Get('f_interview_id', 'int');

if (!Input::IsValid()) {
    camp_html_display_error(getGS('Invalid input: $1', Input::GetErrorString()), $_SERVER['REQUEST_URI']);
    exit;
}

$Interview = new Interview($f_interview_id);

if (isset($_REQUEST['f_preview'])) {
    $Interview->storeInvitation();
}

if (isset($_REQUEST['f_invite_now'])) {
    $Interview->sendGuestInvitation();
    ?>
    <script language="javascript">
        window.opener.location.reload();
        window.close();
    </script>
    <?php
    exit();
}

?>
<table style="margin-top: 10px; margin-left: 15px; margin-right: 15px;" cellpadding="0" cellspacing="0" width="95%" class="table_input">
    <TR>
    	<TD style="padding: 3px";>
    		<B><?php putGS('Send Invitation') ?></B>
    		<hr style="color: #8baed1";>