<?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'); ?>" );
		
		$( "#txt_zfbdt" ).datepicker({
			changeMonth: true,
			changeYear: true
		});
		$( "#txt_zfbdt" ).datepicker( "option", "dateFormat", "dd.mm.yy" );
		$( "#txt_zfbdt" ).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>MIRO HEADER DATA</strong></td>
    </tr>
    <tr>
      <td width="14%">Invoice. 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 $nocpvform; ?>" />
      <input name="totaldata" type="hidden" id="totaldata" value="<?php echo $totaldata; ?>" />
      <input type="hidden" name="txt_idcab" id="txt_idcab" value="<?php echo $idcab; ?>" />
      <input type="hidden" name="txt_totalcpv" id="txt_totalcpv" value="<?php echo $txt_totalcpv; ?>" /></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>Baseline Date</td>
      <td>:</td>
      <td><input name="txt_zfbdt" type="text" id="txt_zfbdt" size="10" value="<?php echo date('d.m.Y'); ?>"  maxlength="10" /></td>
    </tr>
    <tr>
      <td>Inv. Party</td>
      <td>:</td>
      <td><input name="txt_vendor" type="text" id="txt_vendor" size="16" maxlength="16" value="<?php echo $txt_vendor; ?> " /></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>Amount</td>
      <td>:</td>
      <td><input name="txt_wrbtr" type="text" id="txt_wrbtr" value="<?php echo $txt_totalval2; ?>" readonly="readonly" /></td>
    </tr>
    <tr>
      <td>Item Text</td>
      <td>:</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>
    </tr>
    <tr>
      <td>Header 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>
    <tr>
      <td>Assignment</td>
      <td>:</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>
    </tr>
  </table>
 

 <table width="100%" border="0" cellspacing="1" cellpadding="1">
   <tr>
     <td><strong>MIRO DETAIL</strong></td>
     <td>&nbsp;</td>
     <td>&nbsp;</td>
     <td>&nbsp;</td>
     <td>&nbsp;</td>
   </tr>
   <tr>
     <th width="16%">Material</th>
     <th width="10%"><strong>D/C</strong></th>
     <th width="16%"><strong>Amount</strong></th>
     <th width="15%"><strong>Assigment No.</strong></th>
     <th width="30%"><strong>Item Text</strong></th>
    </tr>
    <tr>
      <td><input name="txt_matnr" type="text" id="txt_matnr" value="R101" readonly="readonly" /></td>
      <td align="center">Debit</td>
      <td align="center"><input name="txt_glopr_val2" type="text" id="txt_glopr_val2" value="<?php echo $txt_totalval2; ?>" readonly="readonly" /></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
   <?php echo $tables; ?>
   <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>
   </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');
	?>

