cfmgrv4 init...10
This commit is contained in:
parent
a731c49a97
commit
49d0fec680
@ -3,22 +3,20 @@
|
||||
<div id="container" class="content">
|
||||
<link href="/css/<?= $viewDatas['layout'] ?>/form.css" media="screen" rel="stylesheet" type="text/css" />
|
||||
<div class="action_form">
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<?php foreach ($viewDatas['entitys'] as $entity): ?>
|
||||
<?php $viewDatas['entity'] = $entity ?>
|
||||
<table class="table table-bordered">
|
||||
<?php foreach ($viewDatas['fields'] as $field): ?>
|
||||
<th nowrap class="text-center"><?= $viewDatas['helper']->getFieldLabel($field, $viewDatas) ?></th>
|
||||
<?php endforeach ?>
|
||||
</tr>
|
||||
<?php foreach ($viewDatas['entitys'] as $entity): ?>
|
||||
<?php $viewDatas['entity'] = $entity ?>
|
||||
<tr>
|
||||
<?php foreach ($viewDatas['fields'] as $field): ?>
|
||||
<td nowrap class="text-center"><?= $viewDatas['helper']->getFieldView($field, $viewDatas) ?></td>
|
||||
<?php endforeach ?>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
</table>
|
||||
<?= isset($viewDatas['message']) ? "<div>{$viewDatas['message']}</div>" : '' ?>
|
||||
<tr>
|
||||
<th nowrap class="text-end"><?= $viewDatas['helper']->getFieldLabel($field, $viewDatas) ?></th>
|
||||
<td nowrap class="text-start">
|
||||
<?= $viewDatas['helper']->getFieldView($field, $viewDatas) ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php endforeach; ?>
|
||||
<div><?= isset($viewDatas['message']) ? $viewDatas['message'] : '' ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<?= $this->endSection() ?>
|
||||
@ -3,31 +3,20 @@
|
||||
<div id="container" class="content">
|
||||
<link href="/css/<?= $viewDatas['layout'] ?>/form.css" media="screen" rel="stylesheet" type="text/css" />
|
||||
<div class="action_form">
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<?php foreach ($viewDatas['entitys'] as $entity): ?>
|
||||
<?php $viewDatas['entity'] = $entity ?>
|
||||
<table class="table table-bordered">
|
||||
<?php foreach ($viewDatas['fields'] as $field): ?>
|
||||
<th nowrap class="text-center"><?= $viewDatas['helper']->getFieldLabel($field, $viewDatas) ?></th>
|
||||
<?php endforeach ?>
|
||||
</tr>
|
||||
<?php foreach ($viewDatas['entitys'] as $entity): ?>
|
||||
<?php $viewDatas['entity'] = $entity ?>
|
||||
<tr>
|
||||
<?php foreach ($viewDatas['fields'] as $field): ?>
|
||||
<td nowrap class="text-center"><?= $viewDatas['helper']->getFieldView($field, $viewDatas) ?></td>
|
||||
<?php endforeach ?>
|
||||
</tr>
|
||||
<?php if ($viewDatas['entity']->records): ?>
|
||||
<tr>
|
||||
<td colspan="<?= count($viewDatas['fields']) ?>">
|
||||
<?php foreach ($viewDatas['entity']->records as $record): ?>
|
||||
<div><?= $record->getTitle() ?></div>
|
||||
<?php endforeach ?>
|
||||
<th nowrap class="text-end"><?= $viewDatas['helper']->getFieldLabel($field, $viewDatas) ?></th>
|
||||
<td nowrap class="text-start">
|
||||
<?= $viewDatas['helper']->getFieldView($field, $viewDatas) ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
</table>
|
||||
<?= isset($viewDatas['message']) ? "<div>{$viewDatas['message']}</div>" : '' ?>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php endforeach; ?>
|
||||
<div><?= isset($viewDatas['message']) ? $viewDatas['message'] : '' ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<?= $this->endSection() ?>
|
||||
@ -4,22 +4,16 @@
|
||||
<link href="/css/<?= $viewDatas['layout'] ?>/form.css" media="screen" rel="stylesheet" type="text/css" />
|
||||
<div class="action_form">
|
||||
<table class="table table-bordered">
|
||||
<?php $cnt = 1 ?>
|
||||
<?php foreach ($viewDatas['fields'] as $field): ?>
|
||||
<tr>
|
||||
<th nowrap class="text-end"><?= $viewDatas['helper']->getFieldLabel($field, $viewDatas) ?></th>
|
||||
<td nowrap class="text-start">
|
||||
<?= $viewDatas['helper']->getFieldView($field, $viewDatas) ?>
|
||||
</td>
|
||||
<?php $cnt++ ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<tr>
|
||||
<td colspan="<?= $cnt * 2 ?>" class="text-center">
|
||||
<div><?= isset($viewDatas['message']) ? $viewDatas['message'] : '' ?></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div><?= isset($viewDatas['message']) ? $viewDatas['message'] : '' ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<?= $this->endSection() ?>
|
||||
Loading…
Reference in New Issue
Block a user