Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flexydial
/
hdfc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
92cbaf7f
authored
2018-10-24 18:21:52 +0530
by
Prashant Jadhav
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Dap product list file for xml data
1 parent
3bb761fc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
99 additions
and
0 deletions
application/public/product.php
application/public/product.php
0 → 100644
View file @
92cbaf7
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title></title>
</head>
<script
type=
"text/javascript"
src=
"assets/components/library/jquery/jquery.min.js"
></script>
<?php
/*$userid = base64_decode(base64_decode($_GET['userid']));
$cust_name = base64_decode(base64_decode($_GET['cust_name']));
$cust_id = base64_decode(base64_decode($_GET['cust_id']));
$mobile_number = base64_decode(base64_decode($_GET['mobile_number']));
$emailid = base64_decode(base64_decode($_GET['emailid']));
$product = base64_decode(base64_decode($_GET['product']));
$ip= base64_decode(base64_decode($_GET['ip']));
$username=base64_decode(base64_decode(base64_decode($_GET['username']));
$recordid =base64_decode(base64_decode($_GET['recordid']));
$sessionid = base64_decode(base64_decode($_GET['sessionid']);
$campaign = base64_decode(base64_decode($_GET['campaign']));*/
$userid
=
base64_decode
(
$_GET
[
'userid'
]);
$cust_name
=
base64_decode
(
$_GET
[
'cust_name'
]);
$custid
=
base64_decode
(
$_GET
[
'cust_id'
]);
$mobile_number
=
base64_decode
(
$_GET
[
'mobile_number'
]);
$emailid
=
base64_decode
(
$_GET
[
'emailid'
]);
$ip
=
base64_decode
(
$_GET
[
'ip'
]);
$username
=
base64_decode
(
$_GET
[
'username'
]);
$recordid
=
base64_decode
(
$_GET
[
'recordid'
]);
$sessionid
=
base64_decode
(
$_GET
[
'sessionid'
]);
$campaign
=
base64_decode
(
$_GET
[
'campaign'
]);
$userid
=
base64_decode
(
$userid
);
$cust_name
=
base64_decode
(
$cust_name
);
//$cust_id = base64_decode($cust_id);
//$mobile_number = base64_decode($mobile_number);
$emailid
=
base64_decode
(
$emailid
);
//$product = base64_decode($_GET['product']);
//$ip= base64_decode($ip);
//$username=base64_decode($username);
//$recordid =base64_decode($recordid);
$sessionid
=
base64_decode
(
$sessionid
);
$campaign
=
base64_decode
(
$campaign
);
//echo $ip;
$link_central
=
mysqli_connect
(
"10.3.177.14"
,
"root"
,
"yb9738z"
,
"kstych_flexydial"
);
$location
=
""
;
$type
=
""
;
$serverid
=
""
;
$locationlist
=
$link_central
->
query
(
"select location,id,type from server_details where server_ip='
$ip
'"
);
while
(
$locationuser
=
$locationlist
->
fetch_object
()){
$location
=
$locationuser
->
location
;
$type
=
$locationuser
->
type
;
$serverid
=
$locationuser
->
id
;
}
mysqli_close
(
$link_central
);
$link
=
mysqli_connect
(
"10.3.177.14"
,
"root"
,
"yb9738z"
,
"kstych_flexydial"
);
$productlist
=
$link
->
query
(
"select products from leadform_products"
);
?>
<body>
<center><h4>
Product List
</h4></center><br>
<?php
while
(
$product
=
$productlist
->
fetch_object
())
{
$xmldata
=
"<faml><CUSTID>"
.
$custid
.
"</CUSTID><TRANSACTIONDATE>"
.
date
(
"dmYHis"
,
strtotime
(
"now"
)
+
330
*
60
)
.
"</TRANSACTIONDATE><MOBILE>"
.
$mobile_number
.
"</MOBILE><PRODUCT>"
.
$product
->
products
.
"</PRODUCT><BRANCHCODE>"
.
$location
.
"</BRANCHCODE><LGCODE>"
.
$username
.
"</LGCODE><CHANNEL>"
.
$type
.
"</CHANNEL><LEADSOURCESYSTEMID>"
.
$serverid
.
$recordid
.
"</LEADSOURCESYSTEMID><LSS_OCCSYSTEMID>"
.
$serverid
.
$recordid
.
"</LSS_OCCSYSTEMID><JOURNEYTYPE>1</JOURNEYTYPE><SOURCESYSTEM>COP</SOURCESYSTEM><AUTHENTICATIONFLAG>NOT 20AUTHENTICATED</AUTHENTICATIONFLAG><AUTHENTICATIONTYPE>CTI 20INTEGRATION</AUTHENTICATIONTYPE><ALTERNATECONTACTNO>NA</ALTERNATECONTACTNO><FILLER1>NA</FILLER1><FILLER2>NA</FILLER2><FILLER3>NA</FILLER3><FILLER4>NA</FILLER4><FILLER5>NA</FILLER5><RESPONSE></RESPONSE></faml>"
;
/*$xmldata="<faml><CUSTID>1234567890</CUSTID><TRANSACTIONDATE>20072018120350</TRANSACTIONDATE><MOBILE>9960605943</MOBILE><PRODUCT>AUTO</PRODUCT><BRANCHCODE>Mumbai</BRANCHCODE><LGCODE>B654321</LGCODE><CHANNEL>COP</CHANNEL><LEADSOURCESYSTEMID></LEADSOURCESYSTEMID><LSS_OCCSYSTEMID></LSS_OCCSYSTEMID><JOURNEYTYPE>1</JOURNEYTYPE><SOURCESYSTEM></SOURCESYSTEM><AUTHENTICATIONFLAG>NOT 20AUTHENTICATED</AUTHENTICATIONFLAG><AUTHENTICATIONTYPE>CTI 20INTEGRATION</AUTHENTICATIONTYPE><ALTERNATECONTACTNO>NA</ALTERNATECONTACTNO><FILLER1>NA</FILLER1><FILLER2>NA</FILLER2><FILLER3>NA</FILLER3><FILLER4>NA</FILLER4><FILLER5>NA</FILLER5><RESPONSE></RESPONSE></faml>";*/
$xmldatanew
=
myUrlEncode
(
$xmldata
);
//$xmldatanew=urlencode($xmldata);
//echo $xmldatanew."<br><br>";
?>
<hr><b><a
href=
"http://agdeocc.hbctxdom.com/hdfcdap/daprequester?xml=
<?php
echo
$xmldatanew
;
?>
"
target=
"_blank"
>
<?php
echo
$product
->
products
;
?>
</a></b>
<br>
</body>
<?php
}
function
myUrlEncode
(
$string
)
{
$entities
=
array
(
'%21'
,
'%2A'
,
'%27'
,
'%28'
,
'%29'
,
'%3B'
,
'%3A'
,
'%40'
,
'%26'
,
'%3D'
,
'%2B'
,
'%24'
,
'%2C'
,
'%2F'
,
'%3F'
,
'%25'
,
'%23'
,
'%5B'
,
'%5D'
);
$replacements
=
array
(
'!'
,
'*'
,
"'"
,
"("
,
")"
,
";"
,
":"
,
"@"
,
"&"
,
"="
,
"+"
,
"$"
,
","
,
"/"
,
"?"
,
"%"
,
"#"
,
"["
,
"]"
);
return
str_replace
(
$entities
,
$replacements
,
rawurlencode
(
$string
));
}
mysqli_close
(
$link
);
?>
</html>
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment