92cbaf7f by Prashant Jadhav

Dap product list file for xml data

1 parent 3bb761fc
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1">
6 <title></title>
7 </head>
8 <script type="text/javascript" src="assets/components/library/jquery/jquery.min.js"></script>
9
10
11 <?php
12 /*$userid = base64_decode(base64_decode($_GET['userid']));
13 $cust_name = base64_decode(base64_decode($_GET['cust_name']));
14 $cust_id = base64_decode(base64_decode($_GET['cust_id']));
15 $mobile_number = base64_decode(base64_decode($_GET['mobile_number']));
16 $emailid = base64_decode(base64_decode($_GET['emailid']));
17 $product = base64_decode(base64_decode($_GET['product']));
18 $ip= base64_decode(base64_decode($_GET['ip']));
19 $username=base64_decode(base64_decode(base64_decode($_GET['username']));
20 $recordid =base64_decode(base64_decode($_GET['recordid']));
21 $sessionid = base64_decode(base64_decode($_GET['sessionid']);
22 $campaign = base64_decode(base64_decode($_GET['campaign']));*/
23
24
25 $userid = base64_decode($_GET['userid']);
26 $cust_name = base64_decode($_GET['cust_name']);
27 $custid = base64_decode($_GET['cust_id']);
28 $mobile_number = base64_decode($_GET['mobile_number']);
29 $emailid = base64_decode($_GET['emailid']);
30 $ip= base64_decode($_GET['ip']);
31 $username=base64_decode($_GET['username']);
32 $recordid =base64_decode($_GET['recordid']);
33 $sessionid = base64_decode($_GET['sessionid']);
34 $campaign = base64_decode($_GET['campaign']);
35
36
37 $userid = base64_decode($userid);
38 $cust_name = base64_decode($cust_name);
39 //$cust_id = base64_decode($cust_id);
40 //$mobile_number = base64_decode($mobile_number);
41 $emailid = base64_decode($emailid);
42 //$product = base64_decode($_GET['product']);
43 //$ip= base64_decode($ip);
44 //$username=base64_decode($username);
45 //$recordid =base64_decode($recordid);
46 $sessionid = base64_decode($sessionid);
47 $campaign = base64_decode($campaign);
48
49
50 //echo $ip;
51
52 $link_central = mysqli_connect("10.3.177.14", "root", "yb9738z", "kstych_flexydial");
53 $location="";
54 $type="";
55 $serverid="";
56 $locationlist = $link_central->query("select location,id,type from server_details where server_ip='$ip'");
57 while($locationuser=$locationlist->fetch_object()){
58 $location=$locationuser->location;
59 $type=$locationuser->type;
60 $serverid=$locationuser->id;
61 }
62 mysqli_close($link_central);
63
64 $link = mysqli_connect("10.3.177.14", "root", "yb9738z", "kstych_flexydial");
65
66 $productlist = $link->query("select products from leadform_products");
67
68
69 ?>
70 <body>
71 <center><h4>Product List</h4></center><br>
72 <?php
73 while($product=$productlist->fetch_object())
74 {
75
76 $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>";
77
78 /*$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>";*/
79
80 $xmldatanew=myUrlEncode($xmldata);
81 //$xmldatanew=urlencode($xmldata);
82 //echo $xmldatanew."<br><br>";
83 ?>
84
85 <hr><b><a href="http://agdeocc.hbctxdom.com/hdfcdap/daprequester?xml=<?php echo $xmldatanew;?>" target="_blank">
86 <?php echo $product->products;?></a></b> <br>
87 </body>
88 <?php
89 }
90 function myUrlEncode($string) {
91 $entities = array('%21', '%2A', '%27', '%28', '%29', '%3B', '%3A', '%40', '%26', '%3D', '%2B', '%24', '%2C', '%2F', '%3F', '%25', '%23', '%5B', '%5D');
92 $replacements = array('!', '*', "'", "(", ")", ";", ":", "@", "&", "=", "+", "$", ",", "/", "?", "%", "#", "[", "]");
93 return str_replace($entities, $replacements, rawurlencode($string));
94 }
95 mysqli_close($link);
96 ?>
97
98
99 </html>
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!