authpartner
Clone or download
Modified Files
<?php
<?php
$access_token = $_GET['accesstoken'];
$access_token = $_GET['accesstoken'];
$headers = array(
$headers = array(
'Authorization: Bearer ' . $access_token
'Authorization: Bearer ' . $access_token
//'Authorization: Basic '. base64_encode("$username:$password")
//'Authorization: Basic '. base64_encode("$username:$password")
);
);
$urlFile = 'https://developers.digitallocker.gov.in/public/oauth2/1/files/';
$urlFile = 'https://developers.digitallocker.gov.in/public/oauth2/1/files/';
$vhf = curl_init($urlFile);
$vhf = curl_init($urlFile);
//curl_setopt($vhf, CURLOPT_CUSTOMREQUEST, "POST");
//curl_setopt($vhf, CURLOPT_CUSTOMREQUEST, "POST");
//curl_setopt($vhf, CURLOPT_POST, true);
//curl_setopt($vhf, CURLOPT_POST, true);
curl_setopt($vhf, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds
curl_setopt($vhf, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds
curl_setopt($vhf, CURLOPT_HTTPHEADER, $headers);
curl_setopt($vhf, CURLOPT_HTTPHEADER, $headers);
//curl_setopt($vhf, CURLOPT_POSTFIELDS, $post);
//curl_setopt($vhf, CURLOPT_POSTFIELDS, $post);
//curl_setopt($vhf, CURLOPT_FOLLOWLOCATION, true);
//curl_setopt($vhf, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($vhf, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($vhf, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($vhf, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($vhf, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($vhf, CURLOPT_RETURNTRANSFER, true);
curl_setopt($vhf, CURLOPT_RETURNTRANSFER, true);
$resFile = curl_exec($vhf);
$resFile = curl_exec($vhf);
curl_close($vhf);
curl_close($vhf);
$resFileNew = explode('¿', $resFile);
$resFileNew = explode('¿', $resFile);
$dataF = json_decode($resFileNew[1], TRUE);
$dataF = json_decode($resFileNew[1], TRUE);
$urlissued = 'https://developers.digitallocker.gov.in/public/oauth2/1/files/issued';
$urlissued = 'https://developers.digitallocker.gov.in/public/oauth2/1/files/issued';
$vhi = curl_init($urlissued);
$vhi = curl_init($urlissued);
//curl_setopt($vhi, CURLOPT_CUSTOMREQUEST, "GET");
//curl_setopt($vhi, CURLOPT_CUSTOMREQUEST, "GET");
//curl_setopt($vhi, CURLOPT_POST, true);
//curl_setopt($vhi, CURLOPT_POST, true);
curl_setopt($vhi, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds
curl_setopt($vhi, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds
curl_setopt($vhi, CURLOPT_HTTPHEADER, $headers);
curl_setopt($vhi, CURLOPT_HTTPHEADER, $headers);
//curl_setopt($vhi, CURLOPT_POSTFIELDS, $post);
//curl_setopt($vhi, CURLOPT_POSTFIELDS, $post);
//curl_setopt($vhi, CURLOPT_FOLLOWLOCATION, true);
//curl_setopt($vhi, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($vhi, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($vhi, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($vhi, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($vhi, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($vhi, CURLOPT_RETURNTRANSFER, true);
curl_setopt($vhi, CURLOPT_RETURNTRANSFER, true);
$resissued = curl_exec($vhi);
$resissued = curl_exec($vhi);
$resissuedErr = curl_error($vhi);
$resissuedErr = curl_error($vhi);
curl_close($vhi);
curl_close($vhi);
$issuedNew = explode('¿', $resissued);
$issuedNew = explode('¿', $resissued);
$dataI = json_decode($issuedNew[1], TRUE);
$dataI = json_decode($issuedNew[1], TRUE);
?>
?>
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="en">
<html lang="en">
<head>
<head>
<meta charset="utf-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="description" content="">
<meta name="author" content="">
<meta name="author" content="">
<title>DigiBank</title>
<title>DigiBank</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- Bootstrap Core CSS -->
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<!-- Custom CSS -->
<link href="css/digi-bank.css" rel="stylesheet">
<link href="css/digi-bank.css" rel="stylesheet">
<!-- Custom Fonts -->
<!-- Custom Fonts -->
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
</head>
</head>
<body>
<body>
<div id="wrapper">
<div id="wrapper">
<!-- Sidebar Menu Items - These collapse to the responsive navigation menu on small screens -->
<!-- Sidebar Menu Items - These collapse to the responsive navigation menu on small screens -->
<div class="collapse navbar-collapse navbar-ex1-collapse">
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav side-nav">
<ul class="nav navbar-nav side-nav">
<li class="active">
<li class="active">
<a href="index.php"><i class="fa fa-fw fa-clock-o"></i> Link To DigiLocker</a>
<a href="index.php"><i class="fa fa-fw fa-clock-o"></i> Link To DigiLocker</a>
</li>
</li>
<li>
<li>
<a href="link_document.php"><i class="fa fa-fw fa-link"></i> Loan Approvals</a>
<a href="link_document.php"><i class="fa fa-fw fa-link"></i> Loan Approvals</a>
</li>
</li>
<li>
<li>
<a href="statement.php"><i class="fa fa-fw fa-stack-exchange"></i>Account Statements</a>
<a href="statement.php"><i class="fa fa-fw fa-stack-exchange"></i>Account Statements</a>
</li>
</li>
</ul>
</ul>
</div>
</div>
<div id="page-wrapper">
<div id="page-wrapper">
<div class="container-fluid">
<div class="container-fluid">
<!-- Page Heading -->
<!-- Page Heading -->
<div class="row">
<div class="row">
<div class="col-lg-12">
<div class="col-lg-12">
<div class="container">
<div class="container">
<ul class="nav nav-tabs">
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#uploadeddocument">Uploaded Document</a></li>
<li class="active"><a data-toggle="tab" href="#uploadeddocument">Uploaded Document</a></li>
<li><a data-toggle="tab" href="#issueddocument">Issued Document</a></li>
<li><a data-toggle="tab" href="#issueddocument">Issued Document</a></li>
</ul>
</ul>
<div class="tab-content">
<div class="tab-content">
<div id="uploadeddocument" class="tab-pane fade in active">
<div id="uploadeddocument" class="tab-pane fade in active">
<section class="content">
<section class="content">
<div class="row">
<div class="row">
<div class="col-md-12">
<div class="col-md-12">
<div class="box box-primary">
<div class="box box-primary">
<div class="box box-body col-sm-12">
<div class="box box-body col-sm-12">
<div class="table-responsive">
<div class="table-responsive">
<table class="table">
<table class="table">
<tr>
<tr>
<th>Name</th>
<th>Name</th>
<th>Size</th>
<th>Size</th>
<th>Date</th>
<th>Date</th>
</tr>
</tr>
<?php
<?php
foreach ($dataF['items'] as $api_detail):
foreach ($dataF['items'] as $api_detail):
?>
?>
<tr>
<tr>
<td><a href="/digibank/uri.php?access_tocken=<?php echo $access_token; ?>&uri=<?php echo($api_detail['uri']); ?>&id=<?php echo($api_detail['id']); ?>">
<td><a href="/digibank/uri.php?access_tocken=<?php echo $access_token; ?>&uri=<?php echo($api_detail['uri']); ?>&id=<?php echo($api_detail['id']); ?>">
<?php
<?php
if ($api_detail['type'] == "dir") {
if ($api_detail['type'] == "dir") {
echo "<i class='fa fa-folder-o'></i> ";
echo "<i class='fa fa-folder-o'></i> ";
echo($api_detail['name']);
echo($api_detail['name']);
} elseif ($api_detail['type'] == "file") {
} elseif ($api_detail['type'] == "file") {
echo "<i class='fa fa-file-o'></i> ";
echo "<i class='fa fa-file-o'></i> ";
echo($api_detail['name']);
echo($api_detail['name']);
}
}
?></a></td>
?></a></td>
<td><?php echo($api_detail['size']); ?></td>
<td><?php echo($api_detail['size']); ?></td>
<td><?php echo($api_detail['date']); ?></td>
<td><?php echo($api_detail['date']); ?></td>
<td><?php if ($api_detail['type'] == "file") { ?><input type="radio" id="getval" class="getval" onclick="share_its('<?php echo $api_detail['uri']; ?>')"><?php } ?>
<td><?php if ($api_detail['type'] == "file") { ?><input type="radio" id="getval" class="getval" onclick="share_its('<?php echo $api_detail['uri']; ?>')"><?php } ?>
<?php
<?php
endforeach;
endforeach;
?>
?>
</table>
</table>
<div class="footer">
<div class="footer">
<button id="share_it" value="" onclick='sharedata();' style=" float:right;display: inline-block; background-color: rgb(51, 122, 183); color: rgb(255, 255, 255);">Share </button>
<button id="share_it" value="" onclick='sharedata();' style=" float:right;display: inline-block; background-color: rgb(51, 122, 183); color: rgb(255, 255, 255);">Share </button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</section>
</div>
</div>
<div id="issueddocument" class="tab-pane fade">
<div id="issueddocument" class="tab-pane fade">
<section class="content">
<section class="content">
<div class="row">
<div class="row">
<div class="col-md-12">
<div class="col-md-12">
<div class="box box-primary">
<div class="box box-primary">
<div class="box box-body col-sm-12">
<div class="box box-body col-sm-12">
<div class="table-responsive">
<div class="table-responsive">
<table class="table">
<table class="table">
<tr>
<tr>
<th>Name</th>
<th>Name</th>
<th>Size</th>
<th>Size</th>
<th>Date</th>
<th>Date</th>
</tr>
</tr>
<?php
<?php
foreach ($dataI['items'] as $issued_detail):
foreach ($dataI['items'] as $issued_detail):
?>
?>
<tr><td>
<tr><td>
<?php
<?php
echo "<i class='fa fa-file-o'></i> ";
echo "<i class='fa fa-file-o'></i> ";
echo($issued_detail['name']);
echo($issued_detail['name']);
?>
?>
</td>
</td>
<td><?php echo($issued_detail['size']); ?></td>
<td><?php echo($issued_detail['size']); ?></td>
<td><?php echo($issued_detail['date']); ?></td>
<td><?php echo($issued_detail['date']); ?></td>
<td><input type="radio"></td>
<td><?php if ($api_detail['type'] == "file") { ?><input type="radio" id="getval" class="getval" onclick="share_its('<?php echo $api_detail['uri']; ?>')"><?php } ?>
</tr>
</tr>
<?php
<?php
endforeach;
endforeach;
?>
?>
</table>
</table>
<div class="footer">
<div class="footer">
<button id="button_share" value="" onclick='sharedata();' style=" float:right;display: inline-block; background-color: rgb(51, 122, 183); color: rgb(255, 255, 255);">Share </button>
<button id="button_share" value="" onclick='sharedata();' style=" float:right;display: inline-block; background-color: rgb(51, 122, 183); color: rgb(255, 255, 255);">Share </button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</section>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /.container-fluid -->
<!-- /.container-fluid -->
</div>
</div>
</div>
</div>
<!-- jQuery -->
<!-- jQuery -->
<script src="js/jquery.js"></script>
<script src="js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script>
<script>
function share_its(seluri)
function share_its(seluri)
{
{
var uridata = seluri;
var uridata = seluri;
$("#button_share").val(uridata);
$("#button_share").val(uridata);
}
}
function sharedata()
function sharedata()
{
{
var uri = $("#button_share").val();
var uri = $("#button_share").val();
window.opener.postMessage(uri, '*');
window.opener.postMessage(uri, '*');
window.close();
window.close();
}
}
</script>
</script>
</body>
</body>
</html>
</html>
<?php
<?php
include 'header.php';
include 'header.php';
$code = $_GET['code'];
$code = $_GET['code'];
$state = $_GET['state'];
$state = $_GET['state'];
$headers = array(
$headers = array(
'Content-Type:application/json'
'Content-Type:application/json'
);
);
$url = "https://developers.digitallocker.gov.in/public/oauth2/1/token";
$url = "https://developers.digitallocker.gov.in/public/oauth2/1/token";
$post = array(
$post = array(
'code' => $code,
'code' => $code,
'grant_type' => 'authorization_code',
'grant_type' => 'authorization_code',
'client_id' => 'NIELN3M9',
'client_id' => 'NIELN3M9',
'client_secret' => 'DQ3pWgCtB0I3EhSrtTXU',
'client_secret' => 'DQ3pWgCtB0I3EhSrtTXU',
'redirect_uri' => 'http://localhost/digibank/loanapproval.php',
'redirect_uri' => 'http://localhost/digibank/loanapproval.php',
);
);
$vh = curl_init($url);
$vh = curl_init($url);
curl_setopt($vh, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($vh, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($vh, CURLOPT_POST, true);
curl_setopt($vh, CURLOPT_POST, true);
curl_setopt($vh, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds
curl_setopt($vh, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds
curl_setopt($vh, CURLOPT_POSTFIELDS, $post);
curl_setopt($vh, CURLOPT_POSTFIELDS, $post);
//curl_setopt($vh, CURLOPT_HTTPHEADER, $headers);
//curl_setopt($vh, CURLOPT_HTTPHEADER, $headers);
curl_setopt($vh, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($vh, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($vh, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($vh, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($vh, CURLOPT_RETURNTRANSFER, true);
curl_setopt($vh, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($vh);
$result = curl_exec($vh);
curl_close($vh);
curl_close($vh);
$notgettingdata = explode('¿', $result);
$notgettingdata = explode('¿', $result);
$getToken = json_decode($notgettingdata[1]);
$getToken = json_decode($notgettingdata[1]);
$access_token = $getToken->access_token;
$access_token = $getToken->access_token;
?>
?>
<link href="css/jquery.datepick.css" rel="stylesheet">
<link href="css/jquery.datepick.css" rel="stylesheet">
<script src="js/jquery.min.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/jquery.plugin.js"></script>
<script src="js/jquery.plugin.js"></script>
<script src="js/jquery.datepick.js"></script>
<script src="js/jquery.datepick.js"></script>
<script>
<script>
$(function () {
$(function () {
$('#popupDatepicker').datepick();
$('#popupDatepicker').datepick();
});
});
function showDate(date) {
function showDate(date) {
alert('The date chosen is ' + date);
alert('The date chosen is ' + date);
}
}
</script>
</script>
<div class="container">
<div class="container">
<div class="col-lg-2"></div>
<div class="col-lg-2"></div>
<div class="col-lg-8">
<div class="col-lg-8">
<div class="panel panel-default">
<div class="panel panel-default">
<div class="panel-heading">
<div class="panel-heading">
<h4><i class="fa fa-fw fa-bar-chart"></i> Loan Application Form</h4>
<h4><i class="fa fa-fw fa-bar-chart"></i> Loan Application Form</h4>
</div>
</div>
<div class="panel-body">
<div class="panel-body">
<form role="form">
<form role="form" action="upload_data.php" method="POST">
<div class="col-lg-12">
<div class="col-lg-12">
<div class="col-lg-12 nor-font form-group">
<div class="col-lg-12 nor-font form-group">
<label style="font-weight:bold">Personal Details :</label>
<label style="font-weight:bold">Personal Details :</label>
<hr>
<hr>
</div>
</div>
<div class="row">
<div class="row">
<div class="col-lg-4 form-group">
<div class="col-lg-4 form-group">
<div class="col-lg-12 nor-font">
<div class="col-lg-12 nor-font">
<label>First Name</label>
<label>First Name</label>
<input class="form-control height-form">
<input class="form-control height-form" type="text" name="firstname" id="firstname">
</div>
</div>
</div>
</div>
<div class="col-lg-4 form-group">
<div class="col-lg-4 form-group">
<div class="col-lg-12 nor-font">
<div class="col-lg-12 nor-font">
<label>Middle Name</label>
<label>Middle Name</label>
<input class="form-control height-form">
<input class="form-control height-form" type="text" name="middlename" id="middlename">
</div>
</div>
</div>
</div>
<div class="col-lg-4 form-group">
<div class="col-lg-4 form-group">
<div class="col-lg-12 nor-font">
<div class="col-lg-12 nor-font">
<label>Last Name</label>
<label>Last Name</label>
<input class="form-control height-form">
<input class="form-control height-form" type="text" name="lastname" id="lastname">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="row">
<div class="col-lg-5 form-group">
<div class="col-lg-5 form-group">
<div class="col-lg-12">
<div class="col-lg-12">
<div class="row">
<div class="row">
<div class="col-lg-12 nor-font">
<div class="col-lg-12 nor-font">
<label>Gender</label></div></div>
<label>Gender</label></div></div>
<div class="col-lg-12">
<div class="col-lg-12">
<label class="radio-inline">
<label class="radio-inline">
<input type="radio" checked="" value="option1" id="optionsRadiosInline1" name="optionsRadiosInline">M
<input type="radio" checked="" id="gender" name="gender">M
</label>
</label>
<label class="radio-inline">
<label class="radio-inline">
<input type="radio" value="option2" id="optionsRadiosInline2" name="optionsRadiosInline">F
<input type="radio" id="gender" name="gender">F
</label>
</label>
<label class="radio-inline">
<label class="radio-inline">
<input type="radio" value="option3" id="optionsRadiosInline3" name="optionsRadiosInline">Others
<input type="radio" id="gender" name="gender">Others
</label></div>
</label></div>
</div>
</div>
</div>
</div>
<div class="col-lg-3 form-group">
<div class="col-lg-3 form-group">
<div class="col-lg-12 nor-font">
<div class="col-lg-12 nor-font">
<label>Date of Birth</label>
<label>Date of Birth</label>
<input class="form-control height-form" type="text" id="popupDatepicker">
<input class="form-control height-form" type="text" id="popupDatepicker" name="popupDatepicker">
</div>
</div>
</div>
</div>
<div class="col-lg-4 form-group">
<div class="col-lg-4 form-group">
<div class="col-lg-12 nor-font">
<div class="col-lg-12 nor-font">
<label>Upload proof of identity</label>
<label>Upload proof of identity</label>
<div class="row">
<div class="row">
<div class="col-lg-12">
<div class="col-lg-12">
<input type="file"></div></div>
<input class="form-control height-form" type="text" name="uri" id="uri">
<input type="file" name="file" id="file"></div></div>
<div class="text-center">OR</div>
<div class="text-center">OR</div>
<div class="row">
<div class="row">
<div class="col-lg-12">
<div class="col-lg-12">
<a href="#" onclick="docfetch();">Fetch Document Digilocker</a>
<a href="#" onclick="docfetch();">Fetch Document Digilocker</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="row">
<div class="col-lg-4 form-group">
<div class="col-lg-4 form-group">
<div class="col-lg-12 nor-font">
<div class="col-lg-12 nor-font">
<label>E-mail</label>
<label>E-mail</label>
<input class="form-control height-form">
<input class="form-control height-form" type="text" name="email" id="email">
</div>
</div>
</div>
</div>
<div class="col-lg-4 form-group">
<div class="col-lg-4 form-group">
<div class="col-lg-12 nor-font">
<div class="col-lg-12 nor-font">
<label>Phone</label>
<label>Mobile</label>
<input class="form-control height-form">
<input class="form-control height-form" type="text" name="mobile" id="mobile">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-12 nor-font form-group">
<div class="col-lg-12 nor-font form-group">
<label style="font-weight:bold">Address :</label>
<label style="font-weight:bold">Address :</label>
<hr>
<hr>
</div>
</div>
<div class="row">
<div class="row">
<div class="col-lg-4 form-group">
<div class="col-lg-4 form-group">
<div class="col-lg-12 nor-font">
<div class="col-lg-12 nor-font">
<label>Street-1</label>
<label>Street-1</label>
<input class="form-control height-form">
<input class="form-control height-form" type="textarea" id="address" rows="4" cols="20" name="address">
</div>
</div>
</div>
</div>
<div class="col-lg-4 form-group">
<div class="col-lg-4 form-group">
<div class="col-lg-12 nor-font">
<div class="col-lg-12 nor-font">
<label>Street-2</label>
<label>Street-2</label>
<input class="form-control height-form">
<input class="form-control height-form" type="textarea" id="address" rows="4" cols="20" name="address">
</div>
</div>
</div>
</div>
<div class="col-lg-4 form-group">
<div class="col-lg-4 form-group">
<div class="col-lg-12 nor-font">
<div class="col-lg-12 nor-font">
<label>City</label>
<label>Country</label>
<select class="form-control height-form">
<select class="form-control height-form" name="country" id="country">
<option>1</option>
<option>India</option>
<option>2</option>
<option>Shrilanka</option>
<option>3</option>
<option>Bangladesh</option>
<option>4</option>
<option>Nepal</option>
<option>5</option>
<option>Span</option>
</select>
</select>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="row">
<div class="col-lg-4 form-group">
<div class="col-lg-4 form-group">
<div class="col-lg-12 nor-font">
<div class="col-lg-12 nor-font">
<label>State</label>
<label>State</label>
<select class="form-control height-form">
<select class="form-control height-form" name="state" id="state">
<option>1</option>
<option value="1">Delhi</option>
<option>2</option>
<option value="2">UP</option>
<option>3</option>
<option value="3">HP</option>
<option>4</option>
<option value="4">JHR</option>
<option>5</option>
<option value="5">BHr</option>
</select>
</select>
</div>
</div>
</div>
</div>
<div class="col-lg-4 form-group">
<div class="col-lg-4 form-group">
<div class="col-lg-12 nor-font">
<div class="col-lg-12 nor-font">
<label>Country</label>
<label>City</label>
<select class="form-control height-form">
<select class="form-control height-form" name="city" id="city">
<option>1</option>
<option>Delhi</option>
<option>2</option>
<option>Mumbai</option>
<option>3</option>
<option>Kolkata</option>
<option>4</option>
<option>Chennai</option>
<option>5</option>
<option>Bhopal</option>
</select>
</select>
</div>
</div>
</div>
</div>
<div class="col-lg-4 form-group">
<div class="col-lg-4 form-group">
<div class="col-lg-12 nor-font">
<div class="col-lg-12 nor-font">
<label>Upload proof of address</label>
<label>Upload proof of address</label>
<div class="row">
<div class="row">
<div class="col-lg-12">
<div class="col-lg-12">
<input type="file"></div></div>
<input type="file" id="files" name="files"></div></div>
<div class="text-center">OR</div>
<div class="text-center">OR</div>
<div class="row">
<div class="row">
<div class="col-lg-12">
<div class="col-lg-12">
<a href="#">Fetch Address Digilocker</a>
<a href="#">Fetch Address Digilocker</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-12 text-center">
<div class="col-lg-12 text-center">
<button class="btn btn-default" type="submit">Submit</button>
<button class="btn btn-default" type="submit">Submit</button>
<button class="btn btn-default" type="reset">Reset</button>
<button class="btn btn-default" type="reset">Reset</button>
</div>
</div>
</div>
</div>
</form>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-2"></div>
<div class="col-lg-2"></div>
<!-- /.row -->
<!-- /.row -->
</div>
</div>
<script type="text/javascript">
<script type="text/javascript">
var accesstoken = '<?php echo $access_token; ?>';
var accesstoken = '<?php echo $access_token; ?>';
function docfetch()
function docfetch()
{
{
window.open('fetchdoc.php' + "?accesstoken=" + accesstoken + "", "_blank", "height=600,width=800,status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no");
window.open('fetchdoc.php' + "?accesstoken=" + accesstoken + "", "_blank", "height=600,width=800,status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no");
}
}
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
</script>
<script type="text/javascript">
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-4715900-1");
var pageTracker = _gat._getTracker("UA-4715900-1");
pageTracker._initData();
pageTracker._initData();
pageTracker._trackPageview();
pageTracker._trackPageview();
</script>
</script>
<script language="javascript" charset="UTF-8" type="text/javascript" src="js/stats.js"></script>
<script language="javascript" charset="UTF-8" type="text/javascript" src="js/stats.js"></script>
<script>
<script>
window.addEventListener("message", receiveMessage, false);
window.addEventListener("message", receiveMessage, false);
function receiveMessage(event)
function receiveMessage(event)
{
{
$('#uri').val(event.data);
alert(event.data);
alert(event.data);
// ...
// ...
}
}
</script>
</script>
<?php include 'footer.php' ?>
<?php include 'footer.php' ?>
<?php
<?php
header('Access-Control-Allow-Origin: *');
$servername = "localhost";
if(isset($_POST['data_submit_final']))
$username = "root";
{
$password = "";
$data = $_POST['data_submit_final'];
$dbname = "digibank";
$data = json_decode($data);
print_r($_POST['uri']);
print_r($data);
// Create connection
die();
$conn = new mysqli($servername, $username, $password, $dbname);
}
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "INSERT INTO employees (firstname, middlename, lastname, gender, popupDatepicker, email, mobile, uri)
VALUES ('".$_POST['firstname']."','".$_POST['middlename']."', '".$_POST['lastname']."', '".$_POST['gender']."', '".$_POST['popupDatepicker']."', '".$_POST['email']."', '".$_POST['mobile']."', '".$_POST['uri']."')";
if ($conn->query($sql) === TRUE) {
echo "New record created successfully";
} else {
echo "Error: " . $sql . "<br>" . $conn->error;
die();
}
$conn->close();
header('Location: http://localhost/digibank/loanapproval.php');
die();
<?php
$host="localhost";
$username="root";
$password="";
$db_name="digibank";
// Connect to server and select database.
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("digibank")or die("cannot select DB");
$sql="SELECT * FROM employees";
$result=mysql_query($sql);
?>
<center>
<table width="500" border="1" cellspacing="0" cellpadding="3">
<tr>
<td colspan="5"><center><strong>User Details </strong></center> </td>
</tr>
<tr>
<td align="center"><strong>First Names</strong></td>
<td align="center"><strong>Middle Name</strong></td>
<td align="center"><strong>Last Name</strong></td>
<td align="center"><strong>Email</strong></td>
<td align="center"><strong>Phone</strong></td>
<td align="center"><strong>URI</strong></td>
</tr>
</center>
<?php
while($rows=mysql_fetch_array($result)){
?>
<tr>
<td><?php echo $rows['firstname']; ?></td>
<td><?php echo $rows['middlename']; ?></td>
<td><?php echo $rows['lastname']; ?></td>
<td><?php echo $rows['email']; ?></td>
<td><?php echo $rows['mobile']; ?></td>
<td><?php echo $rows['uri']; ?></td>
</tr>
<?php
}
?>
</table>
</td>
</tr>
</table>
<?php
mysql_close();
?>