<?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>');
?>
<script type="text/javascript">

  //Date picker
	$(function() {
		 
		$( "#txt_postdate" ).datepicker({
			changeMonth: true,
			changeYear: true
		});
		$( "#txt_postdate" ).datepicker( "option", "dateFormat", "dd.mm.yy");
		$( "#txt_postdate" ).datepicker( "setDate", "<?php echo date('d.m.Y'); ?>" );
		
	});

</script>
<form name="form1" method="post" action="<?php echo $form_action ?>">
  <table width="640" border="0" cellpadding="1" cellspacing="1">
    <tr>
      <td colspan="3">HEADER DATA</td>
    </tr>
    <tr>
      <td width="127">No. BPKK</td>
      <td width="11">:</td>
      <td width="492"><?php echo $txt_nobppkform; ?>
        <label for="textfield"></label>
      <input type="hidden" name="txt_nobpkkform" id="txt_nobpkkform" value="<?php echo $txt_nobppkform; ?>"/> <input type="hidden" name="txt_total" id="txt_total" value="<?php echo $txt_total; ?>"/></td>
    </tr>
    <tr>
      <td>Branch</td>
      <td>:</td>
      <td><?php echo $txt_cabname; ?></td>
    </tr>
    <tr>
      <td>Total</td>
      <td>:</td>
      <td><?php echo $this->fungsi->format_idr($txt_total); ?></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>Add By</td>
      <td>:</td>
      <td><?php echo $txt_addby; ?></td>
    </tr>
    <tr>
      <td>Add Date</td>
      <td>:</td>
      <td><?php echo $txt_adddate; ?></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>Change By</td>
      <td>:</td>
      <td><?php echo $txt_chby; ?></td>
    </tr>
    <tr>
      <td>Change Date</td>
      <td>:</td>
      <td><?php echo $txt_chdate; ?></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td colspan="3">DETAIL  DATA</td>
    </tr>
    <tr>
      <td colspan="3"><?php echo $table; ?></td>
    </tr>
    <tr>
      <td>Cancel Date</td>
      <td>:</td>
      <td><input name="txt_postdate" type="text" id="txt_postdate" size="10" value="<?php echo date('d.m.Y'); ?>"  maxlength="10" /></td>
    </tr>
    <tr>
      <td>Cancel Reason</td>
      <td>:</td>
      <td><font class="required">
        <textarea name="txt_desc" id="txt_desc" cols="45" rows="5"><?php echo set_value('txt_desc', isset($txt_desc) ? $txt_desc : ''); ?></textarea>
      *</font></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td><input type="submit" name="button" id="button" value="Submit" class="button" /></td>
    </tr>
  </table>
  <label for="txt_desc"></label>
</form>
<?php
if ( ! empty($link))
	{
		echo '<p id="bottom_link">';
		foreach($link as $links)
		{
			echo $links . ' ';
		}
		echo '</p>';
	}
?>