Esempio n. 1
0
  <td align=right><input type=button value="Signout" align=right onClick="JavaScript:location='signout.php';"></td></tr>
  </table>
</TD></TR>

<TR style="background-color=#f5f5f5"><TD>
  <TABLE BORDER=0 CELLSPACING=2 CELLPADDING=0>
  <tr><td colspan=3><b>Contact Log</b></td></tr>
  <tr><td><?php 
print date("n/j/Y", strtotime($c->created));
?>
</td><td>&nbsp;- <?php 
print date("g:i A", strtotime($c->created));
?>
&nbsp;</td><td>-&nbsp; Complaint registered.</td></tr>
  <?php 
foreach ($c->Notifications() as $n) {
    $p = new Contact($n->contact);
    print "<tr><td>" . date("n/j/Y", strtotime($n->created)) . "</td><td>&nbsp;- " . date("g:i A", strtotime($n->created)) . "&nbsp;</td>";
    switch ($n->type) {
        case NOTIFY_EMAIL:
            print "<td>-&nbsp; {$p->name} notified via email.</td></tr>";
            break;
        case NOTIFY_CONFIRM:
            print "<td>-&nbsp; Receipt confirmed by {$p->name}.</td></tr>";
            break;
        default:
            print "<td></td></tr>";
            break;
    }
}
?>