<!-- BEGIN {$smarty.template} -->

<form action="{$ACTION}" method="post" name="form">
<input type="hidden" name="id" value="{$billInfo.bill_id}">

<table class="stdtable" cellspacing="0">
  <tr>
    <td class="header" colspan="4"> {$BILL_INFO} </td>
  </tr>

  <tr>
    <td class="label"> {t}Invoice nr.{/t}: </td>
    <td class="data"> {$billInfo.bill_number|wash} </td>
    <td class="label"> {t}Invoice date{/t}: </td>
    <td class="data"> {$billInfo.bill_date|wash|date_format:$smarty.const.PHPAGA_DATEFORMAT_SHORT} </td>
  </tr>
  <tr>
    <td class="label"> {t}Term of payment{/t}: </td>
    <td colspan="3" class="data"> {$billInfo.bill_payterm|wash|default:"&nbsp;"} </td>
  </tr>
  <tr>
    <td class="label"> {t}Invoice type{/t}: </td>
    <td colspan="3" class="data"> {$billInfo.bmt_description|wash} </td>
  </tr>
  <tr>
    <td class="label">{t}Company{/t}: </td>
    <td colspan="3" class="data">{$billInfo.cpn_name|wash}</td>
  </tr>
  <tr>
    <td class="label"> {t}Date paid{/t}: </td>
    <td class="data" colspan="3">
      <input type="text" class="tinput" name="bill_paydate" value="{$VAL_PAYDATE|wash}" size="10" maxlength="10" id="paydate">
      <input type="image" src="img/phpaga/cal.png" id="btn_paydate">
    </td>
  </tr>
  <tr>
    <td colspan="4"><input type="submit" name="submit" value="{t}Submit{/t}"> <input type="button" onclick="location.href='bill.php?id={$billInfo.bill_id}';" value="{t}Cancel{/t}">  </td>
  </tr>
</table>

</form>

{literal}

    <script type="text/javascript">
    Calendar.setup({
        inputField     :    "paydate",                     // id of the input field
        ifFormat       :    "%Y-%m-%d",       // format of the input field
        showsTime      :    false,                      // will display a time selector
        button         :    "btn_paydate",                 // trigger for the calendar (button ID)
        singleClick    :    true,                     // double-click mode
        showOthers     :    true                       // show overlapping months
    });
    </script>

{/literal}

<!-- END {$smarty.template} -->
