Skip to content

Commit

Permalink
added admin panel for dashboard.php
Browse files Browse the repository at this point in the history
  • Loading branch information
RohitM-IN committed Sep 3, 2020
1 parent eefc356 commit 5f9e6ad
Show file tree
Hide file tree
Showing 20 changed files with 3,108 additions and 191 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.env
js/db.js
lib/config_paytm.php
115 changes: 70 additions & 45 deletions TxnStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
header("Expires: 0");

// following files need to be included
include_once("./lib/config_paytm.php");
include_once("./lib/encdec_paytm.php");
require_once("./lib/config_paytm.php");
require_once("./lib/encdec_paytm.php");

$ORDER_ID = "";
$requestParamList = array();
$responseParamList = array();

if (isset($_GET["ORDER_ID"]) && $_GET["ORDER_ID"] != "") {
if (isset($_POST["ORDER_ID"]) && $_POST["ORDER_ID"] != "") {

// In Test Page, we are taking parameters from POST request. In actual implementation these can be collected from session or DB.
$ORDER_ID = $_GET["ORDER_ID"];
$ORDER_ID = $_POST["ORDER_ID"];

// Create an array having all required parameters for status query.
$requestParamList = array("MID" => PAYTM_MERCHANT_MID , "ORDERID" => $ORDER_ID);
Expand All @@ -28,60 +28,85 @@
}

?>
<!DOCTYPE html PUBLIC">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<title>Transaction status query</title>
<meta name="GENERATOR" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<title>Transaction status query</title>
<meta name="GENERATOR" content="Evrsoft First Page">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="css/nav.css">
<script src="https://www.gstatic.com/firebasejs/7.17.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.17.0/firebase-auth.js"></script>
<script src="js/db.js"></script>
<script src="js/checklogin.js"></script>
</head>
<body class="container jumbotron">
<h2>Transaction status query</h2>
<form method="post" action="">
<table style="border: 1px solid black">
<tbody class="bg-white">
<tr>
<td><label>ORDER_ID:*</label></td>
<td><input id="ORDER_ID" tabindex="1" maxlength="20" size="20" name="ORDER_ID" autocomplete="off" value="<?php echo $ORDER_ID ?>">
</td>
</tr>
<tr>
<td></td>
<td><input value="Status Query" type="submit" onclick=""></td>
</tr>
</tbody>
</table>
<br/></br/>
<?php

<body class="">
<div>
<nav class="navbar navbar-light navbar-expand-md sticky-top navigation-clean-button"
style="height:80px;background-color:#37434d;color:#ffffff;">
<div class="container-fluid"><a class="navbar-brand" href="#"><i
class="fa fa-globe"></i> Dashboard</a><button data-toggle="collapse" class="navbar-toggler"
data-target="#navcol-1"><span class="sr-only">Toggle navigation</span><span
class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse" id="navcol-1">
<ul class="nav navbar-nav ml-auto">
<li role="presentation" class="nav-item"><a class="nav-link" style="color:#ffffff;"
href="index.php"><i class="fa fa-home"></i> Home</a></li>
<li role="presentation" id="out" class="nav-item"><a class="nav-link" style="color:#ffffff;"
href="signout.php"><i id="inorout_class" class="fa fa-sign-out"></i> Sign
Out</a></li>
</ul>
</div>
</div>
</nav>
</div>
<div class="container">
<h2>Transaction status query</h2>
<form method="post" action="">
<table border="1">
<tbody>
<tr>
<td><label>ORDER_ID::*</label></td>
<td><input id="ORDER_ID" tabindex="1" maxlength="20" size="20" name="ORDER_ID"
autocomplete="off" value="<?php echo $ORDER_ID ?>">
</td>
</tr>
<tr>
<td></td>
<td><input value="Status Query" type="submit" onclick="checkauth()"></td>
</tr>
</tbody>
</table>
<br /></br />
<?php
if (isset($responseParamList) && count($responseParamList)>0 )
{
?>
<h2>Response of status query:</h2>
<table style="border: 1px solid nopadding">
<tbody class="bg-white">
<?php
<h2>Response of status query:</h2>
<table style="border: 1px solid nopadding" border="0">
<tbody>
<?php
foreach($responseParamList as $paramName => $paramValue) {
// to hide any more data just add && $paramName !== "TXNID"
if($paramName !== "MID"){
?>
<tr >
<td style="border: 1px solid"><label><?php echo $paramName?></label></td>
<td style="border: 1px solid"><?php echo $paramValue?></td>
</tr>
<?php
<tr>
<td style="border: 1px solid"><label><?php echo $paramName?></label></td>
<td style="border: 1px solid"><?php echo $paramValue?></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
<?php
</tbody>
</table>
<?php
}
?>
</form>
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>

</form>
</div>
</body>

</html>
69 changes: 69 additions & 0 deletions css/Login-Form-Clean.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
.login-clean {
background: #f1f7fc;
padding: 80px 0;
}

.login-clean form {
max-width: 320px;
width: 90%;
margin: 0 auto;
background-color: #ffffff;
padding: 40px;
border-radius: 4px;
color: #505e6c;
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
}

.login-clean .illustration {
text-align: center;
padding: 0 0 20px;
font-size: 100px;
color: rgb(244, 71, 107);
}

.login-clean form .form-control {
background: #f7f9fc;
border: none;
border-bottom: 1px solid #dfe7f1;
border-radius: 0;
box-shadow: none;
outline: none;
color: inherit;
text-indent: 8px;
height: 42px;
}

.login-clean form .btn-primary {
background: #f4476b;
border: none;
border-radius: 4px;
padding: 11px;
box-shadow: none;
margin-top: 26px;
text-shadow: none;
outline: none !important;
}

.login-clean form .btn-primary:hover,
.login-clean form .btn-primary:active {
background: #eb3b60;
}

.login-clean form .btn-primary:active {
transform: translateY(1px);
}

.login-clean form .forgot {
display: block;
text-align: center;
font-size: 12px;
color: #6f7a85;
opacity: 0.9;
text-decoration: none;
}

.login-clean form .forgot:hover,
.login-clean form .forgot:active {
opacity: 1;
text-decoration: none;
}
74 changes: 74 additions & 0 deletions css/nav.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
.navigation-clean-button {
background: #fff;
padding-top: .75rem;
padding-bottom: .75rem;
color: #333;
border-radius: 0;
box-shadow: none;
border: none;
margin-bottom: 0;
}

@media (min-width:768px) {
.navigation-clean-button {
padding-top: 1rem;
padding-bottom: 1rem;
}
}

.navigation-clean-button .navbar-brand {
font-weight: bold;
color: inherit;
}

.navigation-clean-button .navbar-brand:hover {
color: #222;
}

.navigation-clean-button .navbar-toggler {
border-color: #ddd;
}

.navigation-clean-button .navbar-toggler:hover,
.navigation-clean-button .navbar-toggler:focus {
background: none;
}

.navigation-clean-button .navbar-toggler {
color: #888;
}

.navigation-clean-button .navbar-collapse,
.navigation-clean-button .form-inline {
border-top-color: #ddd;
}

.navigation-clean-button .navbar-nav a.active,
.navigation-clean-button .navbar-nav>.show>a {
background: none;
box-shadow: none;
}

.navigation-clean-button.navbar-light .navbar-nav a.active,
.navigation-clean-button.navbar-light .navbar-nav a.active:focus,
.navigation-clean-button.navbar-light .navbar-nav a.active:hover {
color: #b8b4b4;
box-shadow: none;
background: none;
pointer-events: none;
}

.navigation-clean-button.navbar .navbar-nav .nav-link {
padding-left: 18px;
padding-right: 18px;
}

.navigation-clean-button.navbar-light .navbar-nav .nav-link {
color: #465765;
}

.navigation-clean-button.navbar-light .navbar-nav .nav-link:focus,
.navigation-clean-button.navbar-light .navbar-nav .nav-link:hover {
color: #436b8d !important;
background-color: transparent;
}
Loading

0 comments on commit 5f9e6ad

Please sign in to comment.