mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-05 20:49:09 -04:00
git-svn-id: http://gallery.svn.sourceforge.net/svnroot/gallery/trunk/eval/gx/gallery3/trunk@18408 57fcd75e-5312-0410-8df3-f5eb6fbb1595
69 lines
927 B
PHP
69 lines
927 B
PHP
<?php echo $open; ?>
|
|
<table class="<?php echo $class ?>">
|
|
<?php if ($title != ''): ?>
|
|
<caption><?php echo $title ?></caption>
|
|
<?php endif ?>
|
|
<?php
|
|
foreach ($inputs as $input):
|
|
|
|
$sub_inputs = array();
|
|
if ($input->type == 'group'):
|
|
$sub_inputs = $input->inputs;
|
|
|
|
?>
|
|
<tr>
|
|
<th colspan="2"><?php echo $input->label() ?></th>
|
|
</tr>
|
|
<?php
|
|
|
|
if ($message = $input->message()):
|
|
|
|
?>
|
|
<tr>
|
|
<td colspan="2"><p class="group_message"><?php echo $message ?></p></td>
|
|
</tr>
|
|
<?php
|
|
|
|
endif;
|
|
|
|
else:
|
|
$sub_inputs = array($input);
|
|
endif;
|
|
|
|
foreach ($sub_inputs as $input):
|
|
|
|
?>
|
|
<tr>
|
|
<th><?php echo $input->label() ?></th>
|
|
<td>
|
|
<?php
|
|
|
|
echo $input->render();
|
|
|
|
if ($message = $input->message()):
|
|
|
|
?>
|
|
<p class="message"><?php echo $message ?></p>
|
|
<?php
|
|
|
|
endif;
|
|
|
|
foreach ($input->error_messages() as $error):
|
|
|
|
?>
|
|
<p class="error"><?php echo $error ?></p>
|
|
<?php
|
|
|
|
endforeach;
|
|
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
|
|
endforeach;
|
|
|
|
endforeach;
|
|
?>
|
|
</table>
|
|
<?php echo $close ?>
|