<?php use_helper('ModalBox', 'tvtl', 'I18N'); ?>
<?php if ($sf_user->getUserId()==0): ?>
  <?php echo mm_form_tag('/user/login', array('id'=>'_loginform')) ?>
    <div id="login">
      <div>
        <?php echo label_for('username', 'Tên truy nhập') ?>
        <?php echo input_tag('username', '', array('size'=>10)) ?>
      </div>
      <div>
        <?php echo label_for('password', 'Mật khẩu') ?>
        <?php echo input_password_tag('password', '', array('size'=>10)) ?>
      </div>
      <div>
        <?php echo label_for('remember', 'Ghi nhớ') ?>
        <?php echo checkbox_tag('remember', 1, true, 'class=checkbox') ?>
      </div>
      <div>
        <?php echo label_for('submit', '&nbsp') ?>
        <?php echo m_submit_tag('Đăng nhập') ?>
      </div>
      <div>
        <?php echo m_link_to('Quên mật khẩu', '/user/forgotpass') ?>
        &nbsp;
        <?php echo m_link_to('ĐK thành viên', '/user/register', array('title'=>'Đăng ký thành viên')) ?>
      </div>
    </div>
  <?php echo mm_form_tag_end() ?>
<?php endif; ?>