-
Notifications
You must be signed in to change notification settings - Fork 0
/
getContactArrayComp.php
69 lines (50 loc) · 1.61 KB
/
getContactArrayComp.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
header('Access-Control-Allow-Origin: *');
header("Cache-Control: no-cache, must-revalidate");
require_once('shareDT.php');
//hardcode
$email = 'kdutta@mindfireinc.com';
$pwd = 'MindFire2012';
$account = 2848;
$PartnerGuid = 'Ventas Strategies';
$PartnerPassword = '846a4340e6b4e';
$emailData = $_GET['emailData'];
$LastName = $_GET['LastName'];
$FirstName = $_GET['FirstName'];
$opr1 = $_GET['opr1'];
$opr2 = $_GET['opr2'];
$opr3 = $_GET['opr3'];
$Product = $_GET['Product'];
$_SESSION['emailData'] = $emailData;
$_SESSION['LName'] = $LastName;
$_SESSION['FName'] = $FirstName;
$_SESSION['opr1'] = $opr1;
$_SESSION['opr2'] = $opr2;
$_SESSION['opr3'] = $opr3;
$_SESSION['Product'] = $Product;
if ($account) {
$SelectedAccountID = $account;
} else {
$SelectedAccountID = 2848;
}
$mode = 'Sold'; //All/Leads/Incompletes/FollowUp/Appointment/InProgess/Sold/Lost
$searchData = 'fa';
$USERTICKET = getTicket($SelectedAccountID, $email, $pwd, $PartnerGuid, $PartnerPassword);
//echo "USERTICKET = $USERTICKET<br>";
$jsonFilters = NULL;
//$result = loadContactArrayFilters($email,$USERTICKET,FOLDER,$account,$jsonFilters);
//$result = loadContactArrayFiltersUse($email,$USERTICKET,FOLDER,$account,$jsonFilters);
$result = loadContactArrayFiltersSub($email,$USERTICKET,FOLDER,$SelectedAccountID,$jsonFilters,$mode,$searchData);
/*
//TEST searchbox
$result = loadContactReportFilter($USERTICKET,FOLDER,$searchData,$mode);
*/
//echo json_encode($rows);
/*
echo json_encode( array(
'success' => $result['success'],
'data' => $result['data'],
'colNames' => $result['colNames'],
'colModel' => $result['colModel']
));
*/