111 lines
5.4 KiB
PHP
111 lines
5.4 KiB
PHP
<?php
|
|
$pagination_baseurl = $this->getUrl($Mod, "Index");
|
|
$pagination_baseurl_params = ["filter" => $filter];
|
|
$pagination_entity_name = "Emailaussendungen";
|
|
?>
|
|
<?php include(realpath(dirname(__FILE__)."/../../$mfLayoutPackage")."/header.php"); ?>
|
|
|
|
<!-- 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="<?=self::getUrl("Dashboard")?>"><?=MFAPPNAME_SLUG?></a></li>
|
|
<li class="breadcrumb-item active">Emailaussendungen</li>
|
|
</ol>
|
|
</div>
|
|
<h4 class="page-title">Emailaussendungen</h4>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- end page title -->
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
|
|
<div class="card">
|
|
<div class="card-body mb-3">
|
|
<h4 class="header-title mb-3">Filter</h4>
|
|
|
|
<form method="get" action="<?=self::getUrl("MailtemplateDispatch")?>">
|
|
<div class="row">
|
|
|
|
<div class="col-1">
|
|
<label class="form-label" for="filter_subject">Betreff</label>
|
|
<input type="text" class="form-control" name="filter[subject]" id="filter_subject" value="<?=(array_key_exists("subject", $filter)) ? $filter['subject'] : ""?>" />
|
|
</div>
|
|
|
|
<div class="col-1">
|
|
<label class="form-label" for="filter_description">Beschreibung</label>
|
|
<input type="text" class="form-control" name="filter[description]" id="filter_description" value="<?=(array_key_exists("description", $filter)) ? $filter['description'] : ""?>" />
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row mt-2">
|
|
<div class="col">
|
|
<button type="submit" class="btn btn-primary">Filter anwenden</button>
|
|
<a class="btn btn-secondary" href="<?=self::getUrl("Mailtemplate")?>?resetFilter=1">Filter zurücksetzen</a>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="card">
|
|
<div class="card-body mb-3">
|
|
<div class="float-left">
|
|
<h4 class="header-title">Emailaussendungen</h4>
|
|
</div>
|
|
<div class="float-right">
|
|
<a class="btn btn-primary mb-2" href="<?=self::getUrl("MailtemplateDispatch", "add")?>"><i class="fas fa-plus"></i> Neuen Emailaussendung erstellen</a>
|
|
</div>
|
|
|
|
<table class="table table-striped table-hover">
|
|
<tr>
|
|
<th>Versandstatus</th>
|
|
<th>Absender</th>
|
|
<th>Betreff</th>
|
|
<th>Anhänge</th>
|
|
<th>Anzahl Empfänger</th>
|
|
<th>Geplanter Versand</th>
|
|
<th>Erstellt</th>
|
|
<th>Bearbeitet</th>
|
|
<th></th>
|
|
</tr>
|
|
<?php foreach($dispatches as $dispatch): ?>
|
|
<tr>
|
|
<td>
|
|
<?php if($dispatch->send_finish): ?>
|
|
<i class="fas fa-fw fa-check text-success" title="Aussendung abgeschlossen"></i>
|
|
<?php elseif($dispatch->send_lock): ?>
|
|
<i class="far fa-fw fa-envelope fa-spin-pulse text-primary" title="Versand läuft"></i>
|
|
<?php elseif($dispatch->tosend_date && !$dispatch->send_lock): ?>
|
|
<i class="far fa-fw fa-clock" title="Warte auf Versand"></i>
|
|
<?php endif; ?>
|
|
</td>
|
|
<td><?=$dispatch->sender_name?> <<?=$dispatch->sender_email?>></td>
|
|
<td><?=$dispatch->subject?></td>
|
|
<td><?=(is_array($dispatch->mailtemplate->files)) ? count($dispatch->mailtemplate->files) : ""?></td>
|
|
<td><?=$dispatch->recipient_count?></td>
|
|
<td><?=date("d.m.Y H:i", $dispatch->tosend_date)?></td>
|
|
<td><?=date("d.m.Y H:i",$dispatch->create)?> (<?=$dispatch->editor->name?>)</td>
|
|
<td><?=date("d.m.Y H:i",$dispatch->edit)?> (<?=$dispatch->creator->name?>)</td>
|
|
<td style="text-align: left; letter-spacing: 4px; font-size: 1.1em;">
|
|
<a href="<?=self::getUrl("MailtemplateDispatch", "edit", ["id" => $dispatch->id])?>"><i class="far fa-edit" title="Emailaussendung bearbeiten"></i></a>
|
|
<a href="<?=self::getUrl("MailtemplateDispatch", "delete", ["id" => $dispatch->id])?>" class="text-danger" onclick="if(!confirm('Emailaussendung wirklich löschen?')) return false;" title="Emailaussendung Löschen"><i class="fas fa-trash"></i></a>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<?php include(realpath(dirname(__FILE__)."/../../$mfLayoutPackage")."/footer.php"); ?>
|