</table>
	  			</td>
    		</tr>
			<tr>
				<td class="bgcolor_004" align="left">						
				</td>
				<td class="bgcolor_005" align="left" >
					<center>
						<input type="image"  name="image16" align="top" border="0" src="<?php 
    echo Images_Path;
    ?>
/button-search.gif" />						
					</center>	
				</td>
			</tr>			
		</tbody>
	</table>
</FORM>
</center>
<?php 
}
if ($posted == 1) {
    switch ($exporttype) {
        case 'html':
            $invoice->DisplayHTML($smarty, 'sales', $templatefile);
            break;
        case 'pdf':
            $invoice->DisplayPDF($smarty, 'sales', $templatefile);
            break;
    }
}
                    ?>
' <?php 
                    if ($invoice->payment_status == $data[1]) {
                        ?>
selected<?php 
                    }
                    ?>
>
							<?php 
                    echo $data[0] . " - {$invoice->payment_status}";
                    ?>
						</option>
					<?php 
                }
                ?>
					</select>&nbsp;
					<input type="submit" class="form_input_button" name="submit" value="Update">
				</form>
				<?php 
            }
            break;
        case 'pdf':
            $invoice->DisplayPDF($smarty, $invoice_type_name, $templatefile);
            break;
        case 'email':
            $invoice->SendEMail($smarty, $templatefile);
            break;
    }
} catch (Exception $e) {
    echo "\nInvoice Error: " . $e;
}