<!-- BEGIN DYNAMIC BLOCK: uninvoicedEntriesHeader -->
<form action='index.php' method='post'>
<table cellpadding="0"><tr><td><div id="statusContainer" class="statusContainer" style="display:none"><span class="statusMsg" id="statusMsg"></span></div></td></tr></table>
<table cellSpacing="0" cellPadding="2" width="100%" border="0">
  <tbody>
  <tr>
    <td align="left" style='font-size:11px;font-weight:bold;'>
    [l]Invoice Filter:[/l]&nbsp;&nbsp;
    <select onchange="jumpMenu2('self',this,0);"  class="body">
        <!-- BEGIN DYNAMIC BLOCK: invoicetypeoptions -->
        <option value="{INVOICETYPEOPTIONVALUE}" {INVOICETYPEOPTIONSELECTED}>{INVOICETYPEOPTIONLABEL}&nbsp;&nbsp;&nbsp;&nbsp;</option>
        <!-- END DYNAMIC BLOCK: invoicetypeoptions -->
    </select> 
    </td>
    <td align="right">
        <!-- BEGIN DYNAMIC BLOCK: createinvoicebutton -->
            <input type="button" class="button_xlarge" value='[l]Add Invoice Entry[/l]' onclick="window.location='index.php?fuse=clients&view=ViewInvoiceEntry'">
        <!-- END DYNAMIC BLOCK: createinvoicebutton -->
    </td>
   </tr>
  </tbody>
</table>
</form>
<!-- END DYNAMIC BLOCK: uninvoicedEntriesHeader -->

<!-- BEGIN DYNAMIC BLOCK: activeinvoiceinfo -->
<div style='padding-bottom:5px;'>
  <div class="cornersGray">
     <div class="tlGray">
       <div class="trGray">
          <div class="blGray">
              <div class="brGray">
                <div style='color: #666;padding-left:5px;padding-top:5px;'>
                    <div style='float:left;padding-right:7px; font-size: 17px; font-weight:bolder;'>[l]Invoice Summary[/l]:</div>                   
                    <div style='float:right;padding-right:4px;'><a href='javascript:CloseInvoiceDetails();'><img src='templates/{TEMPLATE}/images/notes_close.gif' border='0' /></a></div>
                    <div style='color: #999;' class='newline'></div>
 					<div style='float:left; font-size: 11px'><b style='font-size: 12px;'>[l]Invoice[/l]</b>: </div> <div style='padding-top:1px;font-size: 11px;float:left;'> {ACTIVEINVOICENUMBER}</div>
                    <div style='color: #999;' class='newline'></div>
 					<div style='float:left;padding-right:5px;'><b style='font-size: 11px;'>[l]Sent[/l]</b>: {INVOICEDATESENT}</div>
 					<div style='float:left;padding-right:5px;'><b style='font-size: 11px;'>[l]Paid[/l]</b>: {INVOICEDATEPAID}</div>	
                    <!-- BEGIN DYNAMIC BLOCK: activeinvoiceinfo_appliesto -->
                    <div style='color: #999;' class='newline'></div>                    
 					<div style='float:left;padding-right:5px;'><b style='font-size: 11px;'>[l]Applies To[/l]</b>: {INVOICEAPPLIESTOINFO}</div>	
                    <!-- END DYNAMIC BLOCK: activeinvoiceinfo_appliesto -->
                    <div style='color: #999;padding-bottom:5px;' class='newline'></div>                                                     
                </div>
              </div>
           </div>
       </div>
     </div>
   </div>
</div>
<!-- END DYNAMIC BLOCK: activeinvoiceinfo -->       

<form name="workitems">

<!-- Header -->
<table width='100%' cellpadding=0 border=0 cellspacing=0>
<tr>
<td class="snapshot-header-left"></td>
<td class="snapshot-header" nowrap><font class=snapshot-header-text>{INVOICEENTRIESHEADERTEXT}</font></td>
<td class="snapshot-header" align=right></td>
<td class="snapshot-header-right"></td>
</tr>
</table>


<table id="ie" cellSpacing=1 cellPadding=4 width="100%" border=0>
<tbody>
    <!-- Invoice Entry Columns -->
    <tr class=header>
      <td class=headerSelected align=middle width=20><img height=1 alt="" src="../images/spacer.gif" width="20" /></td>
 	  <td id=col_1 noWrap width="90">&nbsp;[l]Due Date[/l]&nbsp;&nbsp;</td>
 	  <td id=col_2 noWrap align="left">&nbsp;[l]Description[/l]</td>
 	  <td id=col_3 noWrap width="170" align="right">[l]Billing Type[/l]</td>
      <td id=col_4 noWrap width="70" align="right">&nbsp;{LANGUAGEAMOUNT}</td>
      <!-- BEGIN DYNAMIC BLOCK: taxcolumnheader -->
      <td id=col_5 noWrap width="70" align="right">{TAXNAME} ({TAXRATE})</td>
      <!-- END DYNAMIC BLOCK: taxcolumnheader -->
      <!-- BEGIN DYNAMIC BLOCK: tax2columnheader -->
      <td id=col_6 noWrap width="70" align="right">{TAX2NAME} ({TAX2RATE})</td>
      <!-- END DYNAMIC BLOCK: tax2columnheader -->
    </tr>

    <!-- Invoice Entry Rows -->
    <!-- BEGIN DYNAMIC BLOCK: ierow -->
        <tr id="row_ie_{ROWID}" class="{ROWCLASS}" style="{ROWSTYLE}">
            <td style='height:25px;'><INPUT type=checkbox value="{ROWID}" id="{ROWID}" name=entry style="{COL1STYLE}"></td>
            <td>{COL2DATA}</td>
            <td>{COL3DATA}</td>
            <td align="right">{COL4DATA}</td>
            <td align="right">{COL5DATA}</td>
            <!-- BEGIN DYNAMIC BLOCK: taxcolumndata -->
            <td align="right">{COL6DATA}</td>
            <!-- END DYNAMIC BLOCK: taxcolumndata -->
            <!-- BEGIN DYNAMIC BLOCK: tax2columndata -->
            <td align="right">{COL7DATA}</td>
            <!-- END DYNAMIC BLOCK: tax2columndata -->
        </tr>
    <!-- END DYNAMIC BLOCK: ierow -->

    <!-- BEGIN DYNAMIC BLOCK: noinvoiceentriesrow -->
        <tr>
 	      	<td colspan="5" align=center><span style='font-size:11px;'>[l]There are currently no invoice entries[/l]</span></td>
        </tr>
    <!-- END DYNAMIC BLOCK: noinvoiceentriesrow -->

    <!-- Tax Information -->    
    <!-- BEGIN DYNAMIC BLOCK: tax -->
    <tr>
 		<td colspan=3></td>
 		<td align=right bgcolor="#F5F5DC">[l]Subtotal[/l] </td>
 		<td align="right" bgcolor="#F5F5DC">{SUBTOTAL}</td>
 		    <!-- BEGIN DYNAMIC BLOCK: tax1 -->
 		<td align=right bgcolor="#F5F5DC">{TOTALTAXED}</td>
 		    <!-- END DYNAMIC BLOCK: tax1 -->
 		    <!-- BEGIN DYNAMIC BLOCK: tax2 -->
 		<td align=right bgcolor="#F5F5DC">{TOTALTAXED2}</td>
 		    <!-- END DYNAMIC BLOCK: tax2 -->
    </tr>
    <!-- END DYNAMIC BLOCK: tax -->
    <!-- BEGIN DYNAMIC BLOCK: total -->
    <tr>
 		<td colspan=3></td>
 		<td align=right bgcolor="#F5F5DC"><b style='font-size:10px;'>[l]Total[/l]</b></td>
 		<td align=right bgcolor="#F5F5DC"><b style='font-size:10px;'>{TOTAL}</b></td>
    {TAXCOL}
    {TAX2COL}
    </tr>
    <!-- END DYNAMIC BLOCK: total -->
    <!-- BEGIN DYNAMIC BLOCK: balance -->
    <tr>
    <td colspan=3></td>
    <td align="right" bgcolor="#F5F5DC">[l]Paid[/l] </td>
    <td align="right" bgcolor="#F5F5DC">{PARTIALLYPAID}</td>
    {TAXCOL}
    {TAX2COL}
    </tr>
    <tr>
    <td colspan=3></td>
    <td align="right" bgcolor="#F5F5DC"><b style='font-size:10px;'>[l]Balance Due[/l]</b></td>
    <td align="right" bgcolor="#F5F5DC"><b style='font-size:10px;'>{BALANCEDUE}</b></td>
    {TAXCOL}
    {TAX2COL}
    </tr>
    <!-- END DYNAMIC BLOCK: balance -->
</tbody>
</table>
</form>


<!-- Buttons and Action Dropdown list -->
<br/>
<!-- BEGIN DYNAMIC BLOCK: iebutton -->
    <div style="float:left;padding-right:4px;">
        <form name={IEBUTTONFORMNAME} method=post action=index.php?fuse={IEBUTTONFUSE}&action={IEBUTTONACTION}>
        <input type=hidden name=selectedworks>
        <input type=hidden name=billdetailid value="{IEBUTTONINVOICEID}">
        <input type=button name=button class="{IEBUTTONSIZE}" value='{IEBUTTONVALUE}' onclick="if (itemSelected()) {IEBUTTONJSFUNCTION};return false;">
        </form>
    </div>       
<!-- END DYNAMIC BLOCK: iebutton -->    

<!-- BEGIN DYNAMIC BLOCK: mergedropdown -->
<div style="float:right;padding-right:4px;">
    <form name=invoicemove action=index.php?fuse={DROPDOWNFUSE}&action={DROPDOWNACTION} method=post>
    <input type=hidden id=invoicemove_selectedworks name=selectedworks>
    <input type=hidden id=invoicemove_billdetailid name=billdetailid value='{MOVEENTRYFROMINVOICEID}'>
    [l]Merge into Invoice[/l]:
    <select id=invoicemove_invoiceid name=invoiceid onchange="if (itemSelected()) submitMoveEntries(form,{SHOWMERGEALLWARNING});return false;" class=body>
 	<option value='' selected>[l]select invoice[/l]</option>
    <!-- BEGIN DYNAMIC BLOCK: dropdownitem -->
        <option value={MOVEOPTIONINVOICE}>{LANGUAGEINVOICE}</option>
    <!-- END DYNAMIC BLOCK: dropdownitem -->
    </select>&nbsp;&nbsp;{DROPDOWNACTIONDESCRIPTION}
    </form>
</div>
<!-- END DYNAMIC BLOCK: mergedropdown -->