コード例 #1
0
ファイル: index.php プロジェクト: PhilTanner/ATC_system
<?php

require_once "atc_documentation.class.php";
require_once "atc_finance.class.php";
$ATC = new ATC_Documentation();
$ATC_Finance = new ATC_Finance();
$ATC->gui_output_page_header('Home');
try {
    $activities = $ATC->get_activities(date('Y-m-d'), 30);
    if (count($activities)) {
        ?>
		
			<h2> Upcoming events</h2>
			<table class="tablesorter">
				<thead>
					<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>';