c3lf-system-3/templates/found_item_table.php

82 lines
2.8 KiB
PHP
Raw Normal View History

2019-02-23 09:43:45 +00:00
<?php
/**
* Created by PhpStorm.
* User: jedi
* Date: 2/22/19
* Time: 9:34 PM
*/
?>
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
<thead>
<tr>
<th>UID</th>
<th>was</th>
2019-03-02 01:17:53 +00:00
<!--th>wann</th>
<th>wo</th-->
2019-02-23 09:43:45 +00:00
<th>kiste</th>
<th>foto</th>
<th></th>
</tr>
</thead>
<tfoot>
<tr>
<th>UID</th>
<th>was</th>
2019-03-02 01:17:53 +00:00
<!--th>wann</th>
<th>wo</th-->
2019-02-23 09:43:45 +00:00
<th>kiste</th>
<th>foto</th>
<th></th>
</tr>
</tfoot>
<tbody>
<?php
2019-03-02 01:17:53 +00:00
foreach( get_founditems() as $item){
2019-02-23 09:43:45 +00:00
?>
<tr>
<td><?php echo $item["uid"]; ?> </td>
<td><?php echo $item["was"]; ?></td>
2019-03-02 01:17:53 +00:00
<!--td><?php echo $item["wann"]; ?></td>
<td><?php echo $item["wo"]; ?></td-->
2019-02-23 09:43:45 +00:00
<td><?php echo $item["container"];?></td>
<td>
2019-03-02 01:16:37 +00:00
<?php
if(isset($item["files"])){
?>
<button class="btn btn-link" data-toggle="modal" data-target="#exampleModal_picture" onclick="show_picture('<?php echo $item["files"][0]["hash"]; ?>')">
<img style="height: 48px;" src="/thumb/<?php echo $item["files"][0]["hash"]; ?>">
</button>
<?php
}
?>
2019-02-23 09:43:45 +00:00
</td>
<td>
<div class="btn-group" role="group">
2019-03-02 01:19:17 +00:00
<a href="/match/<?php echo $item["id"]; ?>/" class="btn btn-outline-success" title="match"><i class="fas fa-fw fa-check-circle"></i></a>
2019-02-23 09:43:45 +00:00
<!--<a href="/found_item_edit/<?php echo $item["id"]; ?>/" type="button" class="btn btn-outline-secondary"><i class="fas fa-fw fa-edit"></i></a>-->
<button type="button" class="btn btn-outline-secondary" data-toggle="modal" data-target="#exampleModal"
2019-03-02 01:17:53 +00:00
onclick='fill_edit_form(<?php echo json_encode($item); ?>);' title="edit">
2019-02-23 09:43:45 +00:00
<i class="fas fa-fw fa-edit"></i>
</button>
2019-03-02 01:17:53 +00:00
<button type="button" class="btn btn-outline-danger" onclick="delete_item(<?php echo $item["id"]; ?>)" title="delete"><i class="fas fa-fw fa-trash-alt"></i></button>
2019-02-23 09:43:45 +00:00
</div>
</td>
<!--td>
<?php
foreach(explode(",",$item["tags"]) as $tag){
?>
<span class="label label-default"><?php echo $tag; ?></span>
<?php
}
?>
</td>
<td><?php echo $item["id"]; ?></td-->
</tr>
<?php
}
?>
</tbody>
</table>