0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.117.170.80


Current Path : /proc/thread-self/root/var/www/html/studentportal_wait/
Upload File :
Current File : //proc/thread-self/root/var/www/html/studentportal_wait/payment.php

<?php

    $univcode = $_GET['univcode'];
    $appno = $_GET['appno'];
    $type = $_GET['type'];


    // $servername = "192.168.0.28";
	// $username   = "root";
	// $password  = "root";
    // $databse = 'logisys3_comexam';
    
    $servername = "97.74.228.93";
    $username = "logisys3_logu";
    $password = "Logisys@2106";
	$databse = 'logisys3_comexam';

	$conn = new  mysqli($servername,$username,$password,$databse);
	if(!$conn) 
	{
        die("Connection failed: " . mysqli_connect_error());
	}

    $get_data = "select * from dbname where funivcode ='{$univcode}'";

    $result1=$conn->query($get_data); 

    if (mysqli_num_rows($result1) > 0) 
    {
        $dbnames = array();
        $uniname = "";
        while($row = mysqli_fetch_assoc($result1)) 
        {
            $dbnames[$row['FUNIVCODE']] = $row['FDBNAME'];
            $uniname = $row['FUNIVNAME'];
        }
    }

?>

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->

<html>
<head>
    <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet"
      integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
</head>

<body>
    <!-- Top header -->
    <div class="w-50 px-3 py-3 pt-md-4 pb-md-4 mx-auto text-center">
        <h1 class="display-5 font-weight-bold"><?echo $uniname?></h1>
    </div>

<!-- Cards container -->
    <div class="container text-center">
        <div class="row">


<?php

// $servername = "192.168.0.28";
// $username   = "root";
// $password  = "root";

$servername = "97.74.228.93";
$username = "logisys3_logu";
$password = "Logisys@2106";
$dbname = $dbnames[$univcode];

$conn = new mysqli($servername, $username, $password, $dbname); 


$get_data = "select m.* , c.funivname from maspg m, control c where m.funivcode = '{$univcode}' order by m.forder";


$result1=$conn->query($get_data); 
$div = "";
    if (mysqli_num_rows($result1) > 0) 
    {
        while($row = mysqli_fetch_assoc($result1)) 
        {
            $bank = $row['fbank'];
            $div .= '<div class="col-lg-4 col-md-6 col-sm-10 pb-4 d-block m-auto">
            <div class="pricing-item" style="box-shadow: 0px 0px 30px -7px rgba(0,0,0,0.29);">
                <!-- Indicator of subscription type -->
                <div class="pt-4 pb-3" style="letter-spacing: 2px">
                    <h4>'.$row['fbank'].'</h4>
                </div>
                <div class="pricing-price pb-1 text-primary color-primary-text ">
                <img src ="'.$row['fbanklog'].'" width = "200" height = "200" />
                </div>
                <div class="pricing-description" style = "text-align:left; padding:10px;">
                <h4>Charges Applicable</h4> 
                <ul class="list-unstyled mt-3 mb-4">

                    '.$row['fbankcharge'].' </ul>
                    </div>
                <div class="pricing-button pb-4">
                    <button type="button" class="btn btn-lg btn-primary w-75" onclick = \'getpayment("'.$row['fbank'].'","'.$univcode.'","'.$appno.'","'.$type.'")\'>Make Payment</button>
                </div>
                 </div>
             </div>';

        }
    }
    echo $div;
           

?>
        </div>
    </div>
    
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.bundle.min.js"
        integrity="sha384-pjaaA8dDz/5BgdFUPX6M/9SUZv4d12SUPF0axWc+VRZkx5xU3daN+lYb49+Ax+Tl"
        crossorigin="anonymous"></script>

<script src="https://code.jquery.com/jquery-3.3.1.min.js"
        integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
        crossorigin="anonymous"></script>
        <script>
            function getpayment(type,$appno,$univcode,$etype)
            {
                switch(type)
                {
                    case 'Paytm': 
                        window.location.href="payment/Paytm/pgRedirect.php?productinfo="+$appno+"&funivcode="+$univcode+"&type="+$etype;
                        break;
                    case 'Razorpay': 
                        alert('Razorpay');
                        break;
                    case 'HDFC': 
                        alert('HDFC');
                        break;
                    case 'Axis': 
                        alert('Axis');
                        break;
                }
            }
            </script>
</body>
</html>