%PDF- %PDF-
Direktori : /home/ugotscom/public_html/maputilities/ |
Current File : /home/ugotscom/public_html/maputilities/.php |
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta content="width=device-width, initial-scale=1.0" name="viewport"> <title>Dlab India</title> <meta content="" name="descriptison"> <meta content="" name="keywords"> <!-- Favicons --> <link href="assets/img/favicon.png" rel="icon"> <link href="assets/img/apple-touch-icon.png" rel="apple-touch-icon"> <!-- Google Fonts --> <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Raleway:300,300i,400,400i,500,500i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet"> <!-- Vendor CSS Files --> <link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <link href="assets/vendor/icofont/icofont.min.css" rel="stylesheet"> <link href="assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet"> <link href="assets/vendor/venobox/venobox.css" rel="stylesheet"> <link href="assets/vendor/animate.css/animate.min.css" rel="stylesheet"> <link href="assets/vendor/remixicon/remixicon.css" rel="stylesheet"> <link href="assets/vendor/owl.carousel/assets/owl.carousel.min.css" rel="stylesheet"> <link href="assets/vendor/bootstrap-datepicker/css/bootstrap-datepicker.min.css" rel="stylesheet"> <!-- Template Main CSS File --> <link href="assets/css/style.css" rel="stylesheet"> </head> <body> <?php include('header.php');?> <?php if(isset($_POST['submit'])){ echo 'I am php. I know this value is from html'; ; } $VisitID = $_POST["VisitID"]; $Password =$_POST["Password"]; $data = [ "requestID" => "4510", "timeofRequest" => "04052017134223", "developerName" =>"DL", "developerToken" =>"RAyFKbZRqCCrOh5E1ItWOyXmByjKHY", "seqNumber" =>"1", 'requestJSON' => [ "DeviceID"=>"ABCD123455", "APIVersionID"=> "V1.0", "ProviderID"=>"1008888885819097", "userID"=>"DL", "VisitID"=>"$VisitID", "Password"=>"$Password", "appToken"=> "KKZGIph38SfWRqHGudHxyrp4hy73zi", "UserType"=> "3", "PlatForm"=> "N", "AppType" => "N", "RequestEMRType"=>"1" ], ]; $json = json_encode($data); $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, "https://dlabs.hodo.in/api/Lab_report/index"); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, $json); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($curl); curl_close($curl); $ar = json_decode($result,true); ?> <div class="container report-table"> <div class="row"> <div class="col-md-12"> <p><?=$ar['msgAppend'];?></p> <?php if(!$ar['msgAppend']){ ?> <table class="table table-bordered "> <thead> <tr> <th scope="col">#</th> <th scope="col">Visit Id</th> <th scope="col">Name</th> <th scope="col">Report</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td><?=$ar['responseJSON']['dataEMR']['visitID']?></td> <td><?=$ar['responseJSON']['dataEMR']['name']?></td> <td><a href="<?=$ar['responseJSON']['dataEMR']['visitData']['normal_report']['link'];?>">Download</a></td> </tr> </tbody> </table> <?php } ?> </div> </div> </div> <?php include('footer.php');?> </body> </html>