<?php use_helper('Object', 'ModalBox'); ?>
<?php if (null==$confirm): ?>
  <?php if (isset($tbluser)): ?>
    <h3>Thông tin thành viên</h3>
    <ul>
      <li>Tên truy nhập: <?php echo $tbluser->getUsUsername() ?></li>
      <li>Họ tên: <?php echo $tbluser->getUsFullname() ?></li>
      <li>Email: <?php echo $tbluser->getUsEmail() ?></li>
    </ul>
  <?php endif ?>
  <hr>
  <?php echo mm_form_tag('/user/ban', array('id'=>'ban', 'method'=>'post'), null, 1) ?>
    <?php echo input_hidden_tag('user_id', @$user_id) ?>
    <?php echo input_hidden_tag('session_id', @$session_id) ?>
    <?php echo input_hidden_tag('confirm', 'y') ?>
    <?php echo radiobutton_tag('ban_time', 1, true, array('id'=>'t1')), label_for('t1', 'Khóa nick 1 ngày') ?><br>
    <?php echo radiobutton_tag('ban_time', 7, false, array('id'=>'t2')), label_for('t2', 'Khóa nick 1 tuần') ?><br>
    <?php echo radiobutton_tag('ban_time', -1, false, array('id'=>'t3')), label_for('t3', 'Khóa nick vĩnh viễn') ?><br>
    <?php echo m_submit_tag('Chấp nhận') ?>
  <?php echo mm_form_tag_end() ?>
<?php else: ?>
  <?php echo $message ?>
<?php endif ?>
<hr>
<center><?php echo link_to('Đóng', '#', array('onclick'=>'Modalbox.hide(); return false')) ?></center>