-
Notifications
You must be signed in to change notification settings - Fork 0
/
SampleAppHomePage.php
executable file
·51 lines (36 loc) · 1.78 KB
/
SampleAppHomePage.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
require_once("./CSS Styles/StyleElements.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<h3>IPP PHP Sample App</h3>
<script type="text/javascript" src="https://appcenter.intuit.com/Content/IA/intuit.ipp.anywhere.js"></script>
</head>
<body>
<?php
# Add a link to allow the user to logout. The link makes a JavaScript call to intuit.ipp.anywhere.logout()
echo '<br /><a href="javascript:void(0)" onclick="return intuit.ipp.anywhere.logout(function () { window.location.href = \'http://localhost/PHPSample/index.php\'; });">Sign Out</a> ';
?>
<a target="_blank" href="http://localhost/PHPSample/ReadMe.htm">Read Me</a><br />
<button class="myButton" style="margin-top:30px;margin-bottom:30px" title="Create an employee in QBO" onclick='createEmployee()'>Create Employee </button> <br />
<button class="myButton" style="margin-bottom:30px" title="Get the list of accounts in QBO" onclick='getAccounts()'>Get QBO Accounts </button> <br />
<button class="myButton" style="margin-bottom:30px" title="Create a General Journal entry in QBO" onclick='createGJE()'>Create Journal Entry </button> <br />
<button class="myButton" style="margin-bottom:30px" title="View QuikBooks Trial Balance Report" onclick='showTrialBalanceReport()'>Trial Balance Report </button> <br />
<script>
function createEmployee(){
window.location.href = "http://localhost/PHPSample/EmployeeCreate.php";
}
function getAccounts(){
window.location.href = "http://localhost/PHPSample/AccountsFindAll.php";
}
function createGJE(){
window.location.href = "http://localhost/PHPSample/CreateGJE.php";
}
function showTrialBalanceReport(){
window.location.href = "http://localhost/PHPSample/TrailBalanceReport.php";
}
</script>
</body>
</html>