Example #1
0
<?php

require_once './common.inc';
vt_require_yui();
vt_header('Volunteers');
$users_submitted = get_users_by_state(STATUS_SUBMITTED);
$users_accepted = get_users_by_state(STATUS_ACCEPTED);
$users_rejected = get_users_by_state(STATUS_REJECTED);
$user_groups = array($users_submitted, $users_accepted, $users_rejected);
$titles = array('Applicants needing review', 'Applicants that have been accepted', 'Applicants that have been rejected');
?>
<style type="text/css">
td, th {
   padding: .5em;
   text-align: left;
}
tr.odd {
   background-color: #ddd;
}
tr.even {
   background-color: #eee;
}
h3 {
   margin: 3em 0 0.4em 0;
}
</style>
<script type="text/javascript" src="index.js"></script>

<h1>Volunteer Dashboard</h1>

<?php 
Example #2
0
<?php

require_once 'common.inc';
$id = $_REQUEST["id"];
if ($id) {
    $id = (int) $id;
    $mail_template = get_mail_template($id, true);
}
$verb = $mail_template ? "Edit" : "Create New";
vt_header("{$verb} E-mail");
vt_require_yui();
?>
<script type="text/javascript" src="../../javascripts/ckeditor/ckeditor_basic.js"></script>
<script type="text/javascript" src="compose.js"></script>
<style type="text/css">
#subject {
   width: 100%;
}
</style>

<form name="email" method="POST" action="update.php">

<?php 
if ($mail_template) {
    ?>
<input type="hidden" name="id" value="<?php 
    echo (int) $id;
    ?>
" />
<?php 
}
Example #3
0
<?php

require_once 'common.inc';
$mails = get_mail_templates();
$highlightid = $_REQUEST['highlight'];
vt_header('List E-mail Templates');
vt_require_yui();
?>

<script type="text/javascript">
$(function(){
   new YAHOO.widget.Button('lnkCreate');
});
</script>

<table>
<?php 
while ($mail = $mails->next()) {
    ?>
<tr id="mail<?php 
    echo $mail->id;
    ?>
">
   <td>
      <a href="compose.php?id=<?php 
    echo $mail->id;
    ?>
">
         <?php 
    echo htmlspecialchars($mail->subject);
    ?>