Projekt

Obecné

Profil

<script type="text/javascript">
$(document).ready(function(){
<?php foreach ($inputs as $input): ?>
<?php if ($input->autocomplete != ''): ?>
$("#<?php echo $input->name ?>").autocomplete({source: "<?php echo url_lang::base().$input->autocomplete ?>"});
<?php endif ?>
<?php endforeach ?>
});
</script>

<?php echo $open; ?>
<table cellspacing="0" class="form" id="form_table">
<?php if ($title != ''): ?>
<caption><?php echo $title ?></caption>
<?php endif ?>
<?php

$submit = null;

foreach($inputs as $input):

$sub_inputs = array();

if ($input->type == 'submit')
{
$submit = $input;
continue;
}

if ($input->type == 'group'):
$sub_inputs = $input->inputs;

?>
<tr>
<th colspan="3" class="group"><?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):
if (!strstr($input->class, 'join2')):
?>
<tr>
<th class="<?php echo $input->name() ?>"><?php if ($input->type != 'checkbox') echo $input->label() ?></th>
<td class="<?php echo $input->name() ?>">
<?php
endif;
echo $input->html();
if (strstr($input->class, 'ajax'))
echo html::image(array('src'=>'media/images/icons/animations/ajax-loader.gif', 'id'=>'ajax_'.$input->name, 'class'=>'ajax-loader', 'style'=>'display:none;'));

if ($message = $input->message()):

?>
<p class="message"><?php echo $message ?></p>
<?php

endif;

foreach ($input->error_messages() as $error):

?>
<p class="error"><?php echo str_replace('*','',str_replace(':','',$error)) ?></p>
<?php

endforeach;

if (!strstr($input->class, 'join1')):
?>
</td>
<?php if ($input->name() != 'password'): ?>
<td class="<?php echo $input->name() ?>"><?php echo $input->help() ?></td>
<?php else: ?>
<td>
<div class="password-meter">
<div class="password-meter-message">&nbsp;</div>
<div class="password-meter-bg">
<div class="password-meter-bar"></div>
</div>
</div>
<?php endif ?>
</tr>
<?php

endif;

endforeach;

endforeach;
?>
</table>
<?php if ($submit): ?>
<?php echo $input->html() ?>
<?php endif ?>
<?php echo $close ?>
(11-11/63)