82 lines
2.9 KiB
PHP
82 lines
2.9 KiB
PHP
<?php include(realpath(dirname(__FILE__)."/../")."/header.php"); ?>
|
|
|
|
<div class="wrapper">
|
|
<div class="container-fluid">
|
|
|
|
<!-- start page title -->
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="page-title-box">
|
|
<div class="page-title-right">
|
|
<ol class="breadcrumb m-0">
|
|
<li class="breadcrumb-item"><a href="javascript: void(0);">the-tool</a></li>
|
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Addressen</a></li>
|
|
<li class="breadcrumb-item active">
|
|
<?php if(is_array($filter['addresstype']) && count($filter['addresstype'])): ?>
|
|
<?php foreach($filter['addresstype'] as $type) { $types[] = __($type); } ?>
|
|
<?=implode(", ", $types)?>
|
|
<?php endif; ?>
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
<h4 class="page-title">Addressen</h4>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- end page title -->
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="float-left">
|
|
<h4 class="header-title">Liste aller Adressen</h4>
|
|
<p class="sub-header">Gefiltert nach Addresstyp: <?=implode(", ", $types)?></p>
|
|
</div>
|
|
<div class="float-right">
|
|
<a class="btn btn-primary" href="<?=self::getUrl("Address", "add")?>"><i class="fas fa-plus"></i> Neue Adresse anlegen</a>
|
|
</div>
|
|
|
|
<table class="table table-striped">
|
|
<tr>
|
|
<th>Typ</th>
|
|
<th>Firma</th>
|
|
<th>Name</th>
|
|
<th>Adresse</th>
|
|
<th>Telefon</th>
|
|
<th>Email</th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
<?php foreach($addresses as $address): ?>
|
|
<tr>
|
|
<td></td>
|
|
<td><?=nl2br($address->company)?></td>
|
|
<td><?=$address->getFullName()?></td>
|
|
<td>
|
|
<?=$address->street?><br />
|
|
<?=$address->zip?> <?=$address->city?>
|
|
</td>
|
|
<td><?=$address->phone?></td>
|
|
<td><?=$address->email?></td>
|
|
<td>
|
|
<a href="<?=self::getUrl("Address", "edit", ["id" => $address->id])?>"><i class="far fa-edit"></i></a>
|
|
</td>
|
|
<td>
|
|
<a href="<?=self::getUrl("Address", "delete", ["id" => $address->id])?>" class="text-danger"><i class="fas fa-trash"></i></a>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div> <!-- end container-fluid -->
|
|
</div>
|
|
<!-- end wrapper -->
|
|
|
|
<?php include(realpath(dirname(__FILE__)."/../")."/footer.php"); ?>
|