create composite insert and search pages
This commit is contained in:
parent
fef7701152
commit
d4c22b8742
3 changed files with 221 additions and 8 deletions
|
@ -21,8 +21,7 @@
|
|||
<li class="breadcrumb-item">
|
||||
<a href="#">Dashboard</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">Found</li>
|
||||
<li class="breadcrumb-item active">Add</li>
|
||||
<li class="breadcrumb-item active">Found</li>
|
||||
</ol>
|
||||
|
||||
<div id="alertmessage" class="collapse alert alert-danger" role="alert">
|
||||
|
@ -38,7 +37,7 @@
|
|||
<div class="card mb-3">
|
||||
<div class="card-header">
|
||||
<i class="fas fa-plus"></i>
|
||||
Insert Item into DB
|
||||
Add Found Item
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form method="POST" action="#" id="lost_form">
|
||||
|
@ -63,11 +62,69 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<button type="submit" class="form-control" onclick="add_found_item(); return false;">Submit</button>
|
||||
<button type="submit" class="form-control btn btn-primary" onclick="add_found_item(); return false;">Submit</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="card-footer small text-muted">Updated yesterday at 11:59 PM</div>
|
||||
<!--div class="card-footer small text-muted">Updated yesterday at 11:59 PM</div-->
|
||||
</div>
|
||||
|
||||
|
||||
<!-- DataTables Example -->
|
||||
<div class="card mb-3">
|
||||
<div class="card-header">
|
||||
<i class="fas fa-table"></i>
|
||||
Lost Items</div>
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>was</th>
|
||||
<th>wann</th>
|
||||
<th>wo</th>
|
||||
<th>kontakt</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>was</th>
|
||||
<th>wann</th>
|
||||
<th>wo</th>
|
||||
<th>kontakt</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach( get_lostitems(true) as $item){
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $item["id"]; ?></td>
|
||||
<td><?php echo $item["was"]; ?></td>
|
||||
<td><?php echo $item["wann"]; ?></td>
|
||||
<td><?php echo $item["wo"]; ?></td>
|
||||
<td><?php echo $item["contact"]; ?></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>
|
||||
</div>
|
||||
</div>
|
||||
<!--div class="card-footer small text-muted">Updated yesterday at 11:59 PM</div-->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue