79 lines
3.3 KiB
PHP
79 lines
3.3 KiB
PHP
<?php include(realpath(dirname(__FILE__)."/../../$mfLayoutPackage")."/header.php"); ?>
|
|
<link href="<?= self::getResourcePath() ?>assets/css/datatables-std.css?<?= date('U') ?>" rel="stylesheet"
|
|
type="text/css"/>
|
|
<!-- 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"><a href="<?=self::getUrl("Admin")?>">Admin</a></li>
|
|
<li class="breadcrumb-item active">IVT Contract Import</li>
|
|
</ol>
|
|
</div>
|
|
<h4 class="page-title">IVT Import</h4>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- end page title -->
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-8">
|
|
|
|
<div class="card border-top-primary">
|
|
<div class="card-body">
|
|
|
|
<table id="datatable" class="table table-sm table-striped table-sm">
|
|
<thead>
|
|
<tr>
|
|
<th>Kunde</th>
|
|
<th>IVT Produkt</th>
|
|
<th>Produkt</th>
|
|
<th>Preis Setup</th>
|
|
<th>Preis</th>
|
|
<th>Rech. Interval</th>
|
|
<th>Aktion</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach($data['contracts'] as $d): ?>
|
|
<tr>
|
|
<td><?=$d["customer"]->getCompanyOrName()?></td>
|
|
<td><?=$d["ivtproduct"]->name?></td>
|
|
<td><?=$d["product"]->name?></td>
|
|
<td><?=$d["contract"]->price_setup?></td>
|
|
<td><?=$d["contract"]->price?></td>
|
|
<td>
|
|
<?=$d["contract"]->billing_period?> (<?=($d["contract"]->billing_period == 1) ? "Monatlich" : ""?><?=($d["contract"]->billing_period == 12) ? "Jährlich" : ""?><?=($d["contract"]->billing_period == 24) ? "Zweijährlich" : ""?><?=($d["contract"]->billing_period == 36) ? "Dreijährlich" : ""?>)
|
|
</td>
|
|
<td><?=$d["action"]?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div>
|
|
<a href="<?=self::getUrl("Admin", "ivtAdminImport", ["doit" => 1])?>"><button class="btn btn-primary" id="doitbutton"><i class="far fa-fw fa-exclamation-circle"></i> Jetzt importieren</button></a>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript" src="<?= self::getResourcePath() ?>assets/js/datatables-std.js?<?= date('U') ?>"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$("#doitbutton").click(function() {
|
|
$("#doitbutton").text("Bitte warten...");
|
|
$("#doitbutton").prop("disabled", true);
|
|
});
|
|
});
|
|
</script>
|
|
<?php include(realpath(dirname(__FILE__)."/../../$mfLayoutPackage")."/footer.php"); ?>
|