-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdonation.php
More file actions
145 lines (130 loc) · 8.05 KB
/
Copy pathdonation.php
File metadata and controls
145 lines (130 loc) · 8.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?php
session_start();
include "mysql_config.php";
$conn = OpenCon();
?>
<!doctype html>
<html lang="ka">
<head>
<title>Realmforge RolePlay | პროექტი შენთვის!</title>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous" />
<link rel="stylesheet" href="stylee/main.css">
<link rel="icon" type="image/x-icon" href="images/logo.png">
</head>
<body>
<!-- Navigation -->
<?php
include "navigation.php";
?>
<!-- Page Content -->
<!-- Page Content -->
<br>
<br>
<br>
<br>
<br>
<br>
<section class="py-5">
<div class="container" bis_skin_checked="1">
<div class="row" bis_skin_checked="1">
<div class="col text-center mb-5" bis_skin_checked="1">
<h1 class="display-4 font-weight-bolder text-light">Realmforge RolePlay - დონაცია</h1>
<p class="lead">აქ თქვენ რეალური თანხით შეგიძლით შეიძინოთ ვირტუალური ფული სერვერზე! </p>
</div>
</div>
<form class="donation_form">
<br>
<h3 class="donation_text">დონაცია</h3>
<img src="images/gift.png" class="gift_effect">
<div class="input-container">
<input class="input" name="p_username" type="text" value="<?php if(isset($_SESSION["web_user"])){echo $_SESSION["web_user"];}?>" placeholder="სახელი_გვარი">
<label class="label" for="input">შეიყვანეთ მოთამაშე</label>
<div class="topline"></div>
<div class="underline"></div>
</div>
<div class="input-container">
<input class="input" id="p_cost" name="p_cost" type="text" placeholder="თანხა" oninput="myFunction()" onkeypress='validate(event)' />
<label class="label" for="input" >თანხის ოდენობა</label>
<div class="topline"></div>
<div class="underline"></div>
</div>
<div class="money_counter">
<span>გადასახდელი თანხა <span class="text-danger">- <b id="my_pay">0</b> ლარი</span></span>
<span>მოთამაშე მიიღებს <span class="text-success">+ <b id="you_pay">0</b> $</span></span>
</div>
<div class="form-check w-50">
<input type="checkbox" class="form-check-input" id="exampleCheck1">
<label class="form-check-label text-light small" for="exampleCheck1">გავეცანი ვეთანხმები საიტის <a href="#">სამომხმარებლო შეთანხმებას</a> და <a href="#">კონფიდენციალურობის პოლიტიკას</a></label>
</div>
<button class="submit_donation" type="submit">
<div class="btn-conteiner mt-1" >
<a class="btn-content" href="#">
<span class="btn-title">შეძენა</span>
<span class="icon-arrow">
<svg width="66px" height="43px" viewBox="0 0 66 43" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="arrow" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path id="arrow-icon-one" d="M40.1543933,3.89485454 L43.9763149,0.139296592 C44.1708311,-0.0518420739 44.4826329,-0.0518571125 44.6771675,0.139262789 L65.6916134,20.7848311 C66.0855801,21.1718824 66.0911863,21.8050225 65.704135,22.1989893 C65.7000188,22.2031791 65.6958657,22.2073326 65.6916762,22.2114492 L44.677098,42.8607841 C44.4825957,43.0519059 44.1708242,43.0519358 43.9762853,42.8608513 L40.1545186,39.1069479 C39.9575152,38.9134427 39.9546793,38.5968729 40.1481845,38.3998695 C40.1502893,38.3977268 40.1524132,38.395603 40.1545562,38.3934985 L56.9937789,21.8567812 C57.1908028,21.6632968 57.193672,21.3467273 57.0001876,21.1497035 C56.9980647,21.1475418 56.9959223,21.1453995 56.9937605,21.1432767 L40.1545208,4.60825197 C39.9574869,4.41477773 39.9546013,4.09820839 40.1480756,3.90117456 C40.1501626,3.89904911 40.1522686,3.89694235 40.1543933,3.89485454 Z" fill="#FFFFFF"></path>
<path id="arrow-icon-two" d="M20.1543933,3.89485454 L23.9763149,0.139296592 C24.1708311,-0.0518420739 24.4826329,-0.0518571125 24.6771675,0.139262789 L45.6916134,20.7848311 C46.0855801,21.1718824 46.0911863,21.8050225 45.704135,22.1989893 C45.7000188,22.2031791 45.6958657,22.2073326 45.6916762,22.2114492 L24.677098,42.8607841 C24.4825957,43.0519059 24.1708242,43.0519358 23.9762853,42.8608513 L20.1545186,39.1069479 C19.9575152,38.9134427 19.9546793,38.5968729 20.1481845,38.3998695 C20.1502893,38.3977268 20.1524132,38.395603 20.1545562,38.3934985 L36.9937789,21.8567812 C37.1908028,21.6632968 37.193672,21.3467273 37.0001876,21.1497035 C36.9980647,21.1475418 36.9959223,21.1453995 36.9937605,21.1432767 L20.1545208,4.60825197 C19.9574869,4.41477773 19.9546013,4.09820839 20.1480756,3.90117456 C20.1501626,3.89904911 20.1522686,3.89694235 20.1543933,3.89485454 Z" fill="#FFFFFF"></path>
<path id="arrow-icon-three" d="M0.154393339,3.89485454 L3.97631488,0.139296592 C4.17083111,-0.0518420739 4.48263286,-0.0518571125 4.67716753,0.139262789 L25.6916134,20.7848311 C26.0855801,21.1718824 26.0911863,21.8050225 25.704135,22.1989893 C25.7000188,22.2031791 25.6958657,22.2073326 25.6916762,22.2114492 L4.67709797,42.8607841 C4.48259567,43.0519059 4.17082418,43.0519358 3.97628526,42.8608513 L0.154518591,39.1069479 C-0.0424848215,38.9134427 -0.0453206733,38.5968729 0.148184538,38.3998695 C0.150289256,38.3977268 0.152413239,38.395603 0.154556228,38.3934985 L16.9937789,21.8567812 C17.1908028,21.6632968 17.193672,21.3467273 17.0001876,21.1497035 C16.9980647,21.1475418 16.9959223,21.1453995 16.9937605,21.1432767 L0.15452076,4.60825197 C-0.0425130651,4.41477773 -0.0453986756,4.09820839 0.148075568,3.90117456 C0.150162624,3.89904911 0.152268631,3.89694235 0.154393339,3.89485454 Z" fill="#FFFFFF"></path>
</g>
</svg>
</span>
</a>
</div>
</button>
<br>
</form>
</div>
</section>
<br>
<br>
<br>
<br>
<!-- Footer -->
<?php
include "footer.php";
?>
<!-- Footer END -->
</footer>
<script>
function validate(evt) {
var theEvent = evt || window.event;
// Handle paste
if (theEvent.type === 'paste') {
key = event.clipboardData.getData('text/plain');
} else {
// Handle key press
var key = theEvent.keyCode || theEvent.which;
key = String.fromCharCode(key);
}
var regex = /[0-9]|\./;
if( !regex.test(key) ) {
theEvent.returnValue = false;
if(theEvent.preventDefault) theEvent.preventDefault();
}
}
function myFunction(){
const input = document.getElementById("p_cost");
const inputValue = input.value;
document.getElementById("you_pay").innerHTML = "0";
if(inputValue < 1)
{
document.getElementById("my_pay").innerHTML = "0";
return;
}
if(inputValue.length >= 4)
{
document.getElementById("p_cost").value = 5;
document.getElementById("my_pay").innerHTML = "0";
document.getElementById("you_pay").innerHTML = "0";
return;
}
document.getElementById("you_pay").innerHTML = inputValue*2000;
document.getElementById("my_pay").innerHTML = inputValue;
}
</script>
</body>
</html>