<?php
$this->load->view('includes/header.php');
echo '<font class="title">'.$menu_path.'</font>';
echo '<br>';
			/* Display system message */
			$this->fungsi->disp_sys_msg();
			echo validation_errors('<p class="field_error">', '</p>');
?>
<form name="form1" method="post" action="<?php echo $form_action ?>">
  <table width="100%" border="0" cellspacing="1" cellpadding="1">
    <tr>
      <td width="11%">User name</td>
      <td width="1%">:</td>
      <td width="88%"><label for="txt_uid"></label>
      <input name="txt_uid" type="text" id="txt_uid" size="20" maxlength="20" class="element" value="<?php echo set_value('txt_uid', isset($default['txt_uid']) ? $default['txt_uid'] : ''); ?>"  <?php echo isset($default['readonly_txt_uid']) ? $default['readonly_txt_uid'] : ''; ?>/>
      <font class="required">*</font></td>
    </tr>
    <tr>
      <td>Display name</td>
      <td>:</td>
      <td><input name="txt_dispname" type="text" id="txt_dispname" size="50" maxlength="50" class="element" value="<?php echo set_value('txt_dispname', isset($default['txt_dispname']) ? $default['txt_dispname'] : ''); ?>" />
      <font class="required">*</font></td>
    </tr>
    <tr>
      <td>Password</td>
      <td>:</td>
      <td><input name="txt_pass" type="password" id="txt_pass" size="30" maxlength="30" class="element"  value="<?php echo set_value('txt_pass', isset($default['txt_pass']) ? $default['txt_pass'] : ''); ?>"  />
      <font class="required">*</font></td>
    </tr>
    <tr>
      <td>Re-type password</td>
      <td>:</td>
      <td><input name="txt_pass2" type="password" id="txt_pass2" size="30" maxlength="10"  class="element" value="<?php echo set_value('txt_pass2', isset($default['txt_pass2']) ? $default['txt_pass2'] : ''); ?>" />
      <font class="required">*</font></td>
    </tr>
    <tr>
      <td>Branch</td>
      <td>:</td>
      <td><select name="cb_idcab" id="cb_idcab">
        <?php
		  echo $cab;
		  ?>
      </select></td>
    </tr>
    <tr>
      <td>Role</td>
      <td>:</td>
      <td><label for="cb_role"></label>
        <select name="cb_role" id="cb_role">
         <?php
		  echo $role;
		  ?>
      </select></td>
    </tr>
    <tr>
      <td>Email</td>
      <td>:</td>
      <td><input name="txt_email" type="text" id="txt_email" size="40" maxlength="40"  class="element" value="<?php echo set_value('txt_email', isset($default['txt_email']) ? $default['txt_email'] : ''); ?>" />
      <font class="required">*</font></td>
    </tr>
    <tr>
      <td>Lock</td>
      <td>:</td>
      <td><p>
        <label>
          <input type="radio" name="rg_lock" value="1" id="rg_lock_0" <?php echo set_radio('rg_lock', '1', isset($default['rg_lock']) && $default['rg_lock']=='1'  ? TRUE : FALSE ); ?> />
          Yes</label>
        
        <label>
          <input name="rg_lock" type="radio" id="rg_lock_1" value="0" <?php echo set_radio('rg_lock', '0', isset($default['rg_lock']) && $default['rg_lock']=='0'  ? TRUE : FALSE ); ?> />
          No</label>
        <br />
      </p></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td><input type="submit" name="button" id="button" value="Submit" class="button" /></td>
    </tr>
  </table>
 
</form>
 <?php
if ( ! empty($link))
	{
		echo '<p id="bottom_link">';
		foreach($link as $links)
		{
			echo $links . ' ';
		}
		echo '</p>';
	}
$this->load->view('includes/footer.php');
	?>

