File path fixes

This commit is contained in:
Dennis Eichhorn 2017-01-26 16:42:54 +01:00
parent 3dce57e942
commit e50800d08c
2 changed files with 13 additions and 6 deletions

View File

@ -2,7 +2,7 @@
/**
* Orange Management
*
* PHP Version 7.0
* PHP Version 7.1
*
* @category TBD
* @package TBD
@ -21,8 +21,8 @@ echo $this->getData('nav')->render(); ?>
<section class="box w-100">
<div class="inner">
<form>
<input type="text" class="wf-100">
<form id="drawForm" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/draw?csrf={$CSRF}'); ?>" method="POST">
<input type="text" id="iTitle" name="title" class="wf-100"><input type="submit" value="<?= $this->getText('Create', 0, 0); ?>">
</form>
</div>
</section>
@ -63,7 +63,7 @@ echo $this->getData('nav')->render(); ?>
<div class="m-draw">
<section class="box w-100" style="height: 30%;">
<div class="inner">
<canvas></canvas>
<canvas id="canvasImage" name="image" form="drawForm"></canvas>
</div>
</section>
</div>

View File

@ -2,7 +2,7 @@
/**
* Orange Management
*
* PHP Version 7.0
* PHP Version 7.1
*
* @category TBD
* @package TBD
@ -22,6 +22,8 @@ $footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');
$footerView->setPages(20);
$footerView->setPage(1);
$images = $this->getData('images');
echo $this->getData('nav')->render(); ?>
<div class="box">
<table class="table">
@ -35,7 +37,12 @@ echo $this->getData('nav')->render(); ?>
<tr>
<td colspan="3"><?= $footerView->render(); ?>
<tbody>
<?php $count = 0; foreach([] as $key => $value) : $count++; ?>
<?php $count = 0; foreach($images as $key => $value) : $count++;
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/draw/single?id=' . $value->getId()); ?>
<tr>
<td><?= $value->getMedia()->getName(); ?>
<td><?= $value->getMedia()->getCreatedBy(); ?>
<td><?= $value->getMedia()->getCreatedAt()->format('Y-m-d'); ?>
<?php endforeach; ?>
<?php if($count === 0) : ?>
<tr><td colspan="5" class="empty"><?= $this->getText('Empty', 0, 0); ?>