<h1><?php echo $this->translate('account.title.login'); ?></h1>

<h2><?php echo $this->translate('account.caption.input'); ?></h2>

<?php if(!empty($this->error_messages)) : ?>
<div id="errorMessage">
<ul>
<?php foreach($this->error_messages as $element_name => $element_mess) : ?>
<?php foreach($element_mess as $mess_key => $mess_value) :?>
<?php $field_name = ""; if (!empty($element_name)) $field_name = $this->translate("account.label.$element_name");  ?>
<li><?php echo $field_name . $mess_value; ?></li>
<?php endforeach; ?>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>

<form id="login_form" action="<?php echo $this->appPath(); ?>/login" method="post">
<?php
foreach ((array) $this->forward_params as $key => $value) {
?>
<input type="hidden" name="forward[<?php echo $this->escape($key); ?>]" value="<?php echo $this->escape($value); ?>">
<?php
}
?>
  <label><?php echo $this->translate('account.label.user_id'); ?></label>
  <input name="user_id" type="text" size="20" value="<?php echo $this->escape($this->form_input['user_id']); ?>"/>

  <label><?php echo $this->translate('account.label.password'); ?></label>
  <input name="password" type="password" size="20" value=""/>

  <input type="submit" name="login" value="<?php echo $this->translate('account.operation.login'); ?>"/>
  <input type="reset" value="<?php echo $this->translate('common.operation.reset'); ?>" />

</form>