Exemplo n.º 1
0
<?php

include "../../myDatabase.php";
include "../../myDatabase4.php";
$date1 = $_POST['date1'];
$date2 = $_POST['date2'];
$ro = new database();
$ro4 = new database4();
$vattableTotal = 0;
$vatTotal = 0;
$wtaxTotal = 0;
$paidTotal = 0;
$ro4->paid_invoices($date1, $date2, "Check");
?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="../js/jquery-2.1.4.min.js"></script>
		<link rel="stylesheet" href="../../bootstrap-3.3.6/css/bootstrap.css"></link>
		<script>
			$(document).ready(function(){

				var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);

				if( isChrome == true ) {
					$("#export").click(function(){
						var data='<table>'+$("#paidInvoice").html().replace(/<a\/?[^>]+>/gi, '')+'</table>';
						var reportName = '<?php 
echo 'Check Paid Invoice [' . $ro4->formatDate($date1) . ' to ' . $ro4->formatDate($date2) . ']';
Exemplo n.º 2
0
<?php

include "../../myDatabase.php";
include "../../myDatabase4.php";
$date1 = $_POST['date1'];
$date2 = $_POST['date2'];
$ro = new database();
$ro4 = new database4();
$vattableTotal = 0;
$vatTotal = 0;
$wtaxTotal = 0;
$paidTotal = 0;
$ro4->paid_invoices($date1, $date2, "cash");
?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="../js/jquery-2.1.4.min.js"></script>
		<link rel="stylesheet" href="../../bootstrap-3.3.6/css/bootstrap.css"></link>
		<script>
			$(document).ready(function(){

				var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);

				if( isChrome == true ) {
					$("#export").click(function(){
						var data='<table>'+$("#paidInvoice").html().replace(/<a\/?[^>]+>/gi, '')+'</table>';
						var reportName = '<?php 
echo 'Cash Paid Invoice  [' . $ro4->formatDate($date1) . ' to ' . $ro4->formatDate($date2) . ']';