Esempio n. 1
0
						<th>Drive Description</th>
						<th>Participants</th>
						<th></th>
						<th></th>
						<th></th>
						<th></th>
						<th></th>';
                    $odd = true;
                    foreach ($drives as $drive) {
                        if ($odd) {
                            echo '<tr class="crudOddRow">';
                        } else {
                            echo '<tr class="crudEvenRow">';
                        }
                        $odd = !$odd;
                        echo '<td>' . $drive->getRouteDescription() . '</td><td>' . $drive->getDrivers() . '</td><td><a href="/drive/' . $drive->getDriveId() . '/edit">Edit Drive</a></td><td><a href="/drive/' . $drive->getDriveId() . '/addData">Add Data</a></td><td><a href="/drive/' . $drive->getDriveId() . '/flush">Flush Data</a></td><td><a href="/drive/' . $drive->getDriveId() . '/delete">Delete Drive</a></td><td><a href="/drive/' . $drive->getDriveId() . '">View</a></td></tr>';
                    }
                    echo '</table>';
                    echo '</div>
		</div>
	</div>
</div>';
                    $tmpl->place('footer');
                    die;
                } else {
                    if ($action == "edit") {
                        //$tmpl->add('css',  'script/fileuploader/fileuploader.css');
                        //$tmpl->add('js',  'script/fileuploader/fileuploader.js');
                        $tmpl->set('title', 'List of Drives');
                        $drive = new Drive($driveId);
                        $existingLatitude = $drive->getLatitude();