Exemplo n.º 1
0
					<tr>
						<th rowspan="2"> Activity </th>
						<th rowspan="2"> Officer In Charge </th>
						<th rowspan="2"> 2<sup>nd</sup> Contact </th>
						<th colspan="2"> Date </th>
					</tr>
					<tr>
						<th> Assemble </th>
						<th> Dispersal </th>
					</tr>
				</thead>
				<tbody>
					<?php 
        foreach ($activities as $obj) {
            echo '<tr>';
            echo '	<td' . (array_search($ATC->get_currentuser_id(), explode(',', $obj->attendees)) !== false ? ' class="highlighted"' : '') . '><!--<span class="ui-icon ui-icon-' . ($obj->nzcf_status == ATC_ACTIVITY_RECOGNISED ? 'radio-off" title="Recognised Activity"' : 'bullet" title="Authorised Activity"') . '" style="float:left">A</span> --><a href="activities.php?id=' . $obj->activity_id . '" class="activity edit">' . $obj->title . '</a></td>';
            echo '	<td' . ($obj->personnel_id == $ATC->get_currentuser_id() ? ' class="highlighted"' : '') . '><a href="personnel.php?id=' . $obj->personnel_id . '">' . $obj->display_name . '</a></td>';
            echo '	<td' . ($obj->twoic_personnel_id == $ATC->get_currentuser_id() ? ' class="highlighted"' : '') . '><a href="personnel.php?id=' . $obj->twoic_personnel_id . '">' . $obj->twoic_display_name . '</a></td>';
            echo '	<td>' . date(ATC_SETTING_DATETIME_OUTPUT, strtotime($obj->startdate)) . '</td>';
            echo '	<td>' . date(ATC_SETTING_DATETIME_OUTPUT, strtotime($obj->enddate)) . '</td>';
            echo '</tr>';
        }
        ?>
				</tbody>
			</table>
<?php 
    }
} catch (ATCExceptionInsufficientPermissions $e) {
    // We just don't show the error if it was a permission issue, that's fine, we don't know who's logged in, after all
}
try {