Mini Shell

Direktori : /home/rizant5/public_html/development/
Upload File :
Current File : //home/rizant5/public_html/development/paypalpage.php

<?php require_once('function-file.php');
require_once('function-menu.php');
require_once('function-testo-footer.php');
$stu_id=$_GET['usf'];
$data=$conn->prepare("select * from student_reg a left join courses b on a.course_id=b.course_id where stu_id='$stu_id'");
$data->execute();$row=$data->fetch();
session_unset(); 
//$paymentType = $_REQUEST['paymentType']; 
?> 
<!--
<script language="JavaScript"> 
    function generateCC(){ 
        var cc_number = new Array(16); 
        var cc_len = 16; 
        var start = 0; 
        var rand_number = Math.random(); 

        switch(document.perform.creditCardType.value) 
        { 
            case "Visa": 
                cc_number[start++] = 4; 
                break; 
            case "Discover": 
                cc_number[start++] = 6; 
                cc_number[start++] = 0; 
                cc_number[start++] = 1; 
                cc_number[start++] = 1; 
                break; 
            case "MasterCard": 
                cc_number[start++] = 5; 
                cc_number[start++] = Math.floor(Math.random() * 5) + 1; 
                break; 
            case "Amex": 
                cc_number[start++] = 3; 
                cc_number[start++] = Math.round(Math.random()) ? 7 : 4 ; 
                cc_len = 15; 
                break; 
        } 

        for (var i = start; i < (cc_len - 1); i++) { 
            cc_number[i] = Math.floor(Math.random() * 10); 
        } 

        var sum = 0; 
        for (var j = 0; j < (cc_len - 1); j++) { 
            var digit = cc_number[j]; 
            if ((j & 1) == (cc_len & 1)) digit *= 2; 
            if (digit > 9) digit -= 9; 
            sum += digit; 
        } 

        var check_digit = new Array(0, 9, 8, 7, 6, 5, 4, 3, 2, 1); 
        cc_number[cc_len - 1] = check_digit[sum % 10]; 

        document.perform.creditCardNumber.value = ""; 
        for (var k = 0; k < cc_len; k++) { 
            document.perform.creditCardNumber.value += cc_number[k]; 
        } 
    } 
</script> -->
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>Home | Lanka Virtual Academy</title>
	<?php commoncss();?>    
</head><!--/head-->
<body class="homepage">
    <?php headermenu();?>
     <section >
   		<div class="container">
            <div class="row" > 
             <div class="col-sm-12">
<form method="POST" action="paypal-process.php" name="perform"> 
<!--<input type=hidden name=paymentType value="<?=$paymentType?>" /> -->
<input type="hidden" name="stu_id" value="<?php echo $stu_id;?>">
<div class="row form-group">
	<div class="col-sm-12"><label>Name</label><input type="text" name="firstName" class="form-control" value="<?php echo $row['stu_name'];?>" readonly></div>
</div>
<div class="row form-group">
	<div class="col-sm-12"><label>Card Type</label><select name="creditCardType" class="form-control">
    		<option value=Visa selected>Visa</option> 
                <option value=MasterCard>MasterCard</option> 
                <option value=Discover>Discover</option> 
                <option value=Amex>American Express</option> 
    </select>
    </div>
</div>
<div class="row form-group">
	<div class="col-sm-12"><label>Card Number</label><input type="text" name="creditCardNumber" class="form-control" ></div>
</div>
<div class="row form-group">
	<div class="col-sm-6"><label>Expiration Month</label><select name="expmonth" class="form-control">
    		 	<option value=1>01</option> 
                <option value=2>02</option> 
                <option value=3>03</option> 
                <option value=4>04</option> 
                <option value=5>05</option> 
                <option value=6>06</option> 
                <option value=7>07</option> 
                <option value=8>08</option> 
                <option value=9>09</option> 
                <option value=10>10</option> 
                <option value=11>11</option> 
                <option value=12>12</option>
    </select></div>
    <div class="col-sm-6"><label>Expiration Year</label><select name="expyear" class="form-control">
    <?php $year=date('Y');$expyear=$year+30;while($year<$expyear){echo"<option value='$year'>$year</option>";$year++;}?>
    </select></div>
</div>
<div class="row form-group">
	<div class="col-sm-12"><label>Card Verification Number</label><input type="text" name="cvv2Number" class="form-control" ></div>
</div>
<div class="row form-group">
	<div class="col-sm-12"><label>Amount</label><input type="text" name="amount" class="form-control" value="<?php echo $row['course_fees'];?>" readonly></div>
</div>
<div class="row form-group">
	<div class="col-sm-12"><input type="submit" name="paysave" class="btn btn-success" value="Submit"></div>
</div>
</div>
</form> 
</div>
</div>
</div>
</section>
</body> 
</html> 


Zerion Mini Shell 1.0