Esempio n. 1
0
         <td width="120"><a id="detail<?php 
            echo $user->id;
            ?>
" class="detaillink" href="volunteers/view.php?id=<?php 
            echo $user->id;
            ?>
">View details</a></td>
         <td class="name" width="200">
            <?php 
            echo htmlentities("{$user->firstname} {$user->lastname}");
            ?>
         </td>
         <td width="115"><?php 
            $submitted = '?';
            if ($user->submitdate) {
                $submitted = vt_format_datetime_ago($user->submitdate);
            }
            echo $submitted;
            ?>
</td>
      </tr>
      <?php 
        }
        ?>
      </table>
   <?php 
    }
}
?>

<?php 
Esempio n. 2
0
}
?>

<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 vt_format_datetime_ago($note->created);
    ?>
      (<?php 
    echo $note->created;
    ?>
)
      <?php 
    if ($note->adminid == $admin_id) {
        ?>
         <div style="float: right"><a href="deletenote.php?id=<?php 
        echo $note->id;
        ?>
" onclick="return confirm('This note will be permanently deleted. Are you sure?');">Delete</a></div>
      <?php 
    }
    ?>