fix tests

This commit is contained in:
Dennis Eichhorn 2022-10-08 21:34:59 +02:00
parent 65dcabcf1a
commit b5297b4511
7 changed files with 12 additions and 11 deletions

View File

@ -24,7 +24,7 @@ echo $this->getData('nav')->render(); ?>
<tr><td><td><input type="text" placeholder="&#xf040; <?= $this->getHtml('Subject'); ?>" name="subject">
<tr><td><td><input type="file" name="files" multiple>
<tr><td><td><div class="textarea" contenteditable="true" style="height: 400px;"></div><textarea placeholder="&#xf040;" style="display: none" name="mail"></textarea>
<tr><td><td><input type="submit" value="<?= $this->getHtml('Send', '0', '0'); ?>"> <input type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
<tr><td><td><input type="submit" value="<?= $this->getHtml('Send', '0', '0'); ?>" name="send-mail"> <input type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>" name="save-mail">
</table>
</form>
</div>

View File

@ -36,7 +36,7 @@ echo $this->getData('nav')->render(); ?>
<table id="profileList" class="default">
<thead>
<tr>
<td><span class="check"><input type="checkbox"></span>
<td><span class="check"><input type="checkbox" name="profile-list"></span>
<td><?= $this->getHtml('Tag'); ?>
<td class="wf-100"><?= $this->getHtml('Subject'); ?>
<td><?= $this->getHtml('From'); ?>
@ -46,7 +46,7 @@ echo $this->getData('nav')->render(); ?>
foreach ($messages as $key => $value) : ++$count;
$url = UriFactory::build('{/prefix}messages/mail/single?{?}&id=' . $value->uid); ?>
<tr>
<td><span class="check"><input type="checkbox"></span>
<td><span class="check"><input type="checkbox" name=""></span>
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>></a>
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>><?= $this->printHtml(\str_replace('_',' ', \mb_decode_mimeheader($value->subject))); ?></a>
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>><?= $this->printHtml($value->from); ?></a>

View File

@ -31,7 +31,7 @@ echo $this->getData('nav')->render(); ?>
<caption><?= $this->getHtml('Messages'); ?><i class="fa fa-download floatRight download btn"></i></caption>
<thead>
<tr>
<td><span class="check"><input type="checkbox"></span>
<td><span class="check"><input type="checkbox" name=""></span>
<td><?= $this->getHtml('Tag'); ?>
<td class="wf-100"><?= $this->getHtml('Subject'); ?>
<td><?= $this->getHtml('From'); ?>
@ -42,7 +42,7 @@ echo $this->getData('nav')->render(); ?>
<?php $count = 0; foreach ($sent as $key => $value) : ++$count;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}messages/mail/single?{?}&id=' . $value->uid); ?>
<tr>
<td><span class="check"><input type="checkbox"></span>
<td><span class="check"><input type="checkbox" name=""></span>
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>></a>
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>><?= $this->printHtml(\str_replace('_',' ', \mb_decode_mimeheader($value->subject))); ?></a>
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>><?= $this->printHtml($value->from); ?></a>

View File

@ -31,7 +31,7 @@ echo $this->getData('nav')->render(); ?>
<caption><?= $this->getHtml('Messages'); ?><i class="fa fa-download floatRight download btn"></i></caption>
<thead>
<tr>
<td><span class="check"><input type="checkbox"></span>
<td><span class="check"><input type="checkbox" name=""></span>
<td><?= $this->getHtml('Tag'); ?>
<td class="wf-100"><?= $this->getHtml('Subject'); ?>
<td><?= $this->getHtml('From'); ?>
@ -42,7 +42,7 @@ echo $this->getData('nav')->render(); ?>
<?php $count = 0; foreach ($sent as $key => $value) : ++$count;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}messages/mail/single?{?}&id=' . $value->uid); ?>
<tr>
<td><span class="check"><input type="checkbox"></span>
<td><span class="check"><input type="checkbox" name=""></span>
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>></a>
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>><?= $this->printHtml(\str_replace('_',' ', \mb_decode_mimeheader($value->subject))); ?></a>
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>><?= $this->printHtml($value->from); ?></a>

View File

@ -31,7 +31,7 @@ echo $this->getData('nav')->render(); ?>
<caption><?= $this->getHtml('Messages'); ?><i class="fa fa-download floatRight download btn"></i></caption>
<thead>
<tr>
<td><span class="check"><input type="checkbox"></span>
<td><span class="check"><input type="checkbox" name=""></span>
<td><?= $this->getHtml('Tag'); ?>
<td class="wf-100"><?= $this->getHtml('Subject'); ?>
<td><?= $this->getHtml('From'); ?>
@ -42,7 +42,7 @@ echo $this->getData('nav')->render(); ?>
<?php $count = 0; foreach ($sent as $key => $value) : ++$count;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}messages/mail/single?{?}&id=' . $value->uid); ?>
<tr>
<td><span class="check"><input type="checkbox"></span>
<td><span class="check"><input type="checkbox" name=""></span>
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>></a>
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>><?= $this->printHtml(\str_replace('_',' ', \mb_decode_mimeheader($value->subject))); ?></a>
<td><a href="<?= $url; ?>"<?= $this->printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>><?= $this->printHtml($value->from); ?></a>

View File

@ -58,7 +58,7 @@ echo $this->getData('nav')->render(); ?>
<option value="<?= $this->printHtml($box); ?>"><?= $this->printHtml($box); ?>
<?php endforeach; ?>
</select>
<tr><td><input type="submit" value="<?= $this->getHtml('Save'); ?>">
<tr><td><input type="submit" value="<?= $this->getHtml('Save'); ?>" name="save-message">
</table>
</form>
</div>

View File

@ -1,4 +1,5 @@
<?php declare(strict_types=1);
<?php
declare(strict_types=1);
// Modules/tests