} </style> <div class="history"> <?php if ($pagetitle) { echo "<h1>{$pagetitle}</h1>"; } ?> <?php while ($event = $events->next()) { ?> <div class="event"> <div class="desc"><?php echo format_log_event($event); ?> </div> <div class="when"><?php echo format_datetime_ago($event->when) . " — {$event->when}"; ?> </div> </div> <?php } ?> </div>
</div> <div class="section"> <h2>Mails Sent</h2> <?php while ($mail = $sentMails->next()) { ?> <div class="email"> <h3 class="subject"><?php echo htmlspecialchars($mail->subject); ?> </h3> <div class="date"> Sent <?php echo format_value(format_datetime_ago($mail->sent)); ?> (<?php echo $mail->sent; ?> ) </div> <blockquote> <?php echo htmlspecialchars($mail->plaintext); ?> </blockquote> </div> <?php } ?>
"> <td width="120"><a id="detail<?php echo $user->id; ?> " class="detaillink" href="<?php echo site_url("admin/volunteers/show/{$user->id}"); ?> ">View details</a></td> <td class="name" width="200"> <?php echo htmlentities("{$user->firstname} {$user->lastname}"); ?> </td> <td width="115"><?php echo $user->laststatuschange ? format_datetime_ago($user->laststatuschange) : '?'; ?> </td> </tr> <?php } ?> <?php if ($limit && $limit < $users->length) { ?> <tr> <td colspan="3" class="seeall"><?php echo anchor("admin/volunteers/status/{$statuses[$j]}", 'Show all'); ?> </td> </tr>
?> <h2>Notes</h2> <?php while ($note = $notes->next()) { ?> <div class="note"> <div class="metadata"> Posted by <?php echo $note->adminid == $admin_id ? 'you' : htmlspecialchars($note->author); ?> , <?php echo format_datetime_ago($note->created); ?> (<?php echo $note->created; ?> ) <?php if ($note->adminid == $admin_id) { ?> <div style="float: right"><a class="deletenote" href="<?php echo site_url("admin/volunteers/deletenote/{$user->id}/{$note->id}"); ?> " onclick="return confirm('This note will be permanently deleted. Are you sure?');">Delete</a> </div>