<?php
$this->load->view('includes/header.php');
?>
<script type="text/javascript">
			
			// Sample 2
			$(document).ready(function()
			{
				$('#txt_amount_trf').blur(function()
				{
					$('#txt_amount_trf').formatCurrency({ region: 'id-ID' });
				});
			});
		</script>
<?php
if ( ! empty($prev))
	{
?>

<form action="<?php echo $form_action ?>" method="post">
 <input type="hidden" name="txt_nocpv" id="txt_nocpv" value="<?php echo set_value('txt_noform', isset($txt_nocpv) ? $txt_nocpv : ''); ?>"  />
      <input type="hidden" name="txt_year" id="txt_year" value="<?php echo set_value('txt_year', isset($txt_year) ? $txt_year : ''); ?>"  />
<?php echo '<font class="title">'.$menu_path.'</font>'; ?>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td width="14%">Transfer To</td>
    <td width="1%">:</td>
    <td width="85%"><?php echo $cb_idcab.' - '.$txt_cabname; ?><input name="txt_idcab" id="txt_idcab" type="hidden" value="<?php echo $cb_idcab; ?>" /></td>
  </tr>
  <tr>
    <td>Amount Transfer</td>
    <td>:</td>
    <td><input name="txt_amount_trf" type="hidden" id="txt_amount_trf" value="<?php echo $txt_amount_trf; ?>" />
      <?php echo $this->fungsi->format_idr($txt_amount_trf); ?></td>
  </tr>
  <tr>
    <td>Description</td>
    <td>:</td>
    <td><?php echo $txt_desc; ?><input name="txt_desc" type="hidden" id="txt_desc" value="<?php echo $txt_desc; ?>" /></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><input type="button" name="button3" onclick="goBack()" id="button3" value="Back" class="button" /> 
            <input type="submit" name="button2" id="button2" value="Submit" class="button" /></td>
  </tr>
</table>
</form>
<?php
	}
else
{
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="14%">Transfer To</td>
      <td width="1%">:</td>
      <td width="85%"><select name="cb_idcab" id="cb_idcab" disabled="disabled">
        <?php
		  echo $cab;
		  ?>
      </select>
      <input type="hidden" name="txt_nocpv" id="txt_nocpv" value="<?php echo set_value('txt_nocpv', isset($default['txt_nocpv']) ? $default['txt_nocpv'] : ''); ?>"  />
       <input type="hidden" name="txt_nocpvform" id="txt_nocpvform" value="<?php echo set_value('txt_nocpvform', isset($default['txt_nocpvform']) ? $default['txt_nocpvform'] : ''); ?>"  />
      <input type="hidden" name="txt_year" id="txt_year" value="<?php echo set_value('txt_year', isset($default['txt_year']) ? $default['txt_year'] : ''); ?>"  /></td>
    </tr>
    <tr>
      <td>Amount Transfer</td>
      <td>:</td>
      <td><label for="txt_ebeln"></label>
      <input name="txt_amount_trf" type="text" id="txt_amount_trf" value="<?php echo set_value('txt_amount_trf', isset($default['txt_amount_trf']) ? $default['txt_amount_trf'] : ''); ?>" readonly="readonly" /></td>
    </tr>
    <tr>
      <td>Description</td>
      <td>:</td>
      <td><label for="txt_desc"></label>
      <textarea name="txt_desc" id="txt_desc" cols="45" rows="5"><?php echo set_value('txt_desc', isset($default['txt_desc']) ? $default['txt_desc'] : ''); ?></textarea></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td><input type="submit" name="button" id="button" value="Preview" 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');
	?>

