Add view to display the details of a project
This commit is contained in:
87
application/views/project/detail.php
Normal file
87
application/views/project/detail.php
Normal file
@@ -0,0 +1,87 @@
|
||||
<?php $this->load->view('header'); ?>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="title">
|
||||
<h2>Projektinformationen</h2>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<h3>Versuche</h3>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Versuche</th>
|
||||
<th scope="col">Berechnungen</th>
|
||||
<th scope="col">Aktionen</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
if(count($trials) > 0):
|
||||
foreach($trials as $trial):
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="<?=site_url('trials/'.$trial['id'])?>"title="Versuch "<?=$trial['name']?>" anzeigen"><?=$trial['name']?></a></td>
|
||||
<td><span class="active">Erfolgreich abgeschlossen</span></td>
|
||||
<td>
|
||||
<a href="<?=site_url('trials/results/'.$trial['id'])?>" title="Ergebnisse zum Versuch "<?=$trial['name']?>" anzeigen">Ergebnisse anzeigen</a> |
|
||||
<a href="<?=site_url('trials/edit/'.$trial['id'])?>" title="Versuch "<?=$trial['name']?>" bearbeiten">Bearbeiten</a> |
|
||||
<a href="<?=site_url('trials/delete/'.$trial['id'])?>" title="Versuch "<?=$trial['name']?>" entfernen">Entfernen</a></td>
|
||||
</tr>
|
||||
<?
|
||||
endforeach;
|
||||
else:
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="3">Keine Versuche vorhanden.</td>
|
||||
</tr>
|
||||
<?
|
||||
endif;
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="title">
|
||||
<h2>Letzte Berechnungen</h2>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Versuch</th>
|
||||
<th scope="col">Fertiggestellt</th>
|
||||
<th scope="col">Aktionen</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
if(count($jobsDone) > 0):
|
||||
foreach($jobsDone as $job):
|
||||
?>
|
||||
<tr>
|
||||
<td>Versuchsname</td>
|
||||
<td>Heute, 09:32</td>
|
||||
<td>
|
||||
<a href="<?=site_url('trials/results/'.$trial['id'])?>" title="Ergebnisse zum Versuch "<?=$trial['name']?>" anzeigen">Ergebnisse anzeigen</a> |
|
||||
<a href="<?=site_url('trials/edit/'.$trial['id'])?>" title="Versuch "<?=$trial['name']?>" bearbeiten">Bearbeiten</a></td>
|
||||
</tr>
|
||||
<?
|
||||
endforeach;
|
||||
else:
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="3">Es wurden noch keine Berechnungen durchgeführt.</td>
|
||||
</tr>
|
||||
<?
|
||||
endif;
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php $this->load->view('footer'); ?>
|
||||
Reference in New Issue
Block a user