<?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_budat" ).datepicker({
			changeMonth: true,
			changeYear: true
		});
		$( "#txt_budat" ).datepicker( "option", "dateFormat", "dd.mm.yy");
		$( "#txt_budat" ).datepicker( "setDate", "<?php echo date('d.m.Y'); ?>" );
		
		
		$( "#txt_bldat" ).datepicker({
			changeMonth: true,
			changeYear: true
		});
		$( "#txt_bldat" ).datepicker( "option", "dateFormat", "dd.mm.yy" );
		$( "#txt_bldat" ).datepicker( "setDate", "<?php echo date('d.m.Y'); ?>" );
		
		
	});

</script>
<form name="form1" method="post" action="<?php echo $form_action ?>">
  <table width="100%" border="0" cellspacing="1" cellpadding="1">
    <tr>
      <td colspan="3"><strong>HEADER DATA</strong></td>
    </tr>
    <tr>
      <td width="14%">Doc. Date</td>
      <td width="1%">:</td>
      <td width="85%"><label for="txt_bldat"></label>
      <input name="txt_bldat" type="text" id="txt_bldat" size="10" maxlength="10" value="<?php echo date('d.m.Y'); ?>"/>
      <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_pctrans" id="txt_pctrans" value="<?php echo $txt_pctrans; ?>" />
      <input type="hidden" name="txt_max_pcop" id="txt_max_pcop" value="<?php echo $txt_max_pcop; ?>" /></td>
    </tr>
    <tr>
      <td>Posting. Date</td>
      <td>:</td>
      <td><input name="txt_budat" type="text" id="txt_budat" size="10" value="<?php echo date('d.m.Y'); ?>"  maxlength="10" /></td>
    </tr>
    <tr>
      <td>Reference</td>
      <td>:</td>
      <td><label for="txt_msg">
        <input name="txt_xblnr" type="text" id="txt_xblnr" size="16" maxlength="16" value="<?php echo set_value('txt_xblnr', isset($default['txt_xblnr']) ? $default['txt_xblnr'] : ''); ?> " />
      </label></td>
    </tr>
    <tr>
      <td>Short Text</td>
      <td>:</td>
      <td><input name="txt_bktxt" type="text" id="txt_bktxt" size="25" maxlength="25" value="<?php echo set_value('txt_bktxt', isset($default['txt_bktxt']) ? $default['txt_bktxt'] : ''); ?> "  /></td>
    </tr>
  </table>
 

 <table width="100%" border="0" cellspacing="1" cellpadding="1">
   <tr>
     <td colspan="6"><strong>ITEM DATA</strong></td>
   </tr>
   <tr>
     <td width="18%"><strong>G/L Account</strong></td>
     <td width="8%"><strong>D/C</strong></td>
     <td width="13%"><strong>Amount</strong></td>
     <td width="16%"><strong>Assigment No.</strong></td>
     <td width="18%"><strong>Item Text</strong></td>
     <td width="27%">&nbsp;</td>
   </tr>
   <tr>
     <td><input name="txt_hkont" type="text" id="txt_hkont" size="10" maxlength="10" value="<?php echo set_value('txt_hkont', isset($default['txt_hkont']) ? $default['txt_hkont'] : ''); ?>"  /></td>
     <td><label for="select">Debit</label></td>
     <td><input name="txt_wrbtr" type="text" id="txt_wrbtr" size="15" value="<?php echo set_value('txt_wrbtr', isset($default['txt_amount_trf']) ? $default['txt_amount_trf'] : ''); ?>" /></td>
     <td><input name="txt_zounr" type="text" id="txt_zounr" size="18" maxlength="18" value="<?php echo set_value('txt_zounr', isset($default['txt_zounr']) ? $default['txt_zounr'] : ''); ?> " /></td>
     <td><input name="txt_sgtxt" type="text" id="txt_sgtxt" size="50" maxlength="50" value="<?php echo set_value('txt_sgtxt', isset($default['txt_sgtxt']) ? $default['txt_sgtxt'] : ''); ?> "/></td>
     <td>&nbsp;</td>
   </tr>
   <tr>
     <td><input name="txt_hkont2" type="text" id="txt_hkont2" size="10" maxlength="10" value="<?php echo set_value('txt_hkont2', isset($default['txt_hkont2']) ? $default['txt_hkont2'] : ''); ?>" /></td>
     <td>Credit</td>
     <td><input name="txt_wrbtr2" type="text" id="txt_wrbtr2" size="15" value="<?php echo set_value('txt_wrbtr', isset($default['txt_amount_trf']) ? $default['txt_amount_trf'] : ''); ?>" /></td>
     <td><input name="txt_zounr2" type="text" id="txt_zounr2" size="18" maxlength="18" value="<?php echo set_value('txt_zounr2', isset($default['txt_zounr2']) ? $default['txt_zounr2'] : ''); ?> "  /></td>
     <td><input name="txt_sgtxt2" type="text" id="txt_sgtxt2" size="50" maxlength="50" value="<?php echo set_value('txt_sgtxt2', isset($default['txt_sgtxt2']) ? $default['txt_sgtxt2'] : ''); ?> " /></td>
     <td>&nbsp;</td>
   </tr>
   <tr>
     <td><input type="submit" name="button" id="button" value="Submit" class="button" /></td>
     <td>&nbsp;</td>
     <td>&nbsp;</td>
     <td>&nbsp;</td>
     <td>&nbsp;</td>
     <td><br /></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');
	?>

