87 lines
4.1 KiB
PHP
87 lines
4.1 KiB
PHP
<?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"><a href="<?=self::getUrl("Preordercampaign")?>">Vorbestellkampagnen</a></li>
|
|
<li class="breadcrumb-item active">Bepreisung</li>
|
|
</ol>
|
|
</div>
|
|
<h4 class="page-title">Preise</h4>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- end page title -->
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
|
|
|
|
<div class="card">
|
|
<div class="card-body mb-3 bg-light">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h4 class="header-title">Preise</h4>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col">
|
|
<?php foreach($netoperators as $netoperator): // TODO: Netoperators als Tabs anzeigen ?>
|
|
<h4><span class="text-pink"><?=$netoperator->getCompanyOrName()?> (<?=$netoperator->id?>)</span></h4>
|
|
<div class="card">
|
|
<div class="card-body mb-3">
|
|
<form method="post" action="<?=self::getUrl("PreorderProduct", "save")?>">
|
|
<h4>Produkte</h4>
|
|
<?php foreach($products as $product): ?>
|
|
<?php $product->setNetoperatorId($netoperator->id) ?>
|
|
<?php $prices = (array_key_exists($netoperator->id, $product->prices)) ? $product->prices[$netoperator->id] : false; ?>
|
|
<?php //var_dump($prices); ?>
|
|
<div class="card">
|
|
<div class="card-body mb-3">
|
|
<h4>Preiseinstellungen für <?=$product->name?></h4>
|
|
<?php if($product->type == "operator_setup"): ?>
|
|
<?php include(__DIR__."/include/netoperator-prices-setup.php"); ?>
|
|
<?php elseif($product->type == "enduser_setup"): ?>
|
|
<?php include(__DIR__."/include/enduser-prices-setup.php"); ?>
|
|
<?php elseif($product->type == "operatr_usage"): ?>
|
|
<?php include(__DIR__."/include/netoperator-prices-usage.php"); ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
<hr />
|
|
<?php endforeach; ?>
|
|
|
|
<input type="submit" class="btn btn-primary mt-2" value="Speichern" />
|
|
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$('.datepicker').datepicker({
|
|
language: 'de',
|
|
format: "dd.mm.yyyy",
|
|
showWeekDays: true,
|
|
todayBtn: 'linked',
|
|
autoclose: true
|
|
});
|
|
</script>
|
|
<?php include(realpath(dirname(__FILE__)."/../../$mfLayoutPackage")."/footer.php"); ?>
|