donations.php
This commit is contained in:
parent
5fca34c303
commit
c3f787f14a
|
@ -60,11 +60,11 @@ html, body {
|
||||||
|
|
||||||
/* Equal to height of footer */
|
/* Equal to height of footer */
|
||||||
/* But also accounting for potential margin-bottom of last child */
|
/* But also accounting for potential margin-bottom of last child */
|
||||||
margin-bottom: -150px;
|
margin-bottom: -200px;
|
||||||
}
|
}
|
||||||
footer,
|
footer,
|
||||||
.push {
|
.push {
|
||||||
height: 150px;
|
height: 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
|
|
|
@ -31,8 +31,13 @@ function forwardToDonationPage($amount){
|
||||||
}
|
}
|
||||||
|
|
||||||
$amount = (float)($_GET["amount"]);
|
$amount = (float)($_GET["amount"]);
|
||||||
|
if(is_numeric($amount) && $amount > 0) {
|
||||||
|
forwardToDonationPage($amount);
|
||||||
|
} else {
|
||||||
|
$amount = (float)($_POST["amount"]);
|
||||||
if(is_numeric($amount) && $amount > 0) {
|
if(is_numeric($amount) && $amount > 0) {
|
||||||
forwardToDonationPage($amount);
|
forwardToDonationPage($amount);
|
||||||
} else {
|
} else {
|
||||||
echo "invalid amount!";
|
echo "invalid amount!";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
18
index.html
18
index.html
|
@ -155,16 +155,28 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="footer">
|
<td class="footer">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<ap><span><b>Erstellt durch</b></span><br>
|
<p><span><b>Erstellt durch</b></span><br>
|
||||||
Silias KLG<br>
|
Silias KLG<br>
|
||||||
Toggenburgstrasse 31<br>
|
Toggenburgstrasse 31<br>
|
||||||
8245 Feuerthalen<br>
|
8245 Feuerthalen<br>
|
||||||
<a href="https://www.silias.ch" target="_blank">www.silias.ch</a><br>
|
<a href="https://www.silias.ch" target="_blank">www.silias.ch</a><br>
|
||||||
<a href="mailto:info@silias.ch">info@silias.ch</a><br><
|
<a href="mailto:info@silias.ch">info@silias.ch</a><br>
|
||||||
<a href="https://gitea.silias.ch/Silias-Public/genderwatchprotocol">Projekt Repository</a><p>
|
<a href="https://gitea.silias.ch/Silias-Public/genderwatchprotocol">Projekt Repository</a>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2">
|
||||||
|
<p>
|
||||||
|
Diese Webseite ist ausschliesslich durch Spenden finanziert.<br>Helfen Sie bei der Fianzierung mit einer freiwilligen Spende.
|
||||||
|
</p>
|
||||||
|
<form method="post" action="donations/donations.php">
|
||||||
|
<input type="number" name="amount" placeholder="Betrag eingeben">
|
||||||
|
<button type="submit">Jetzt spenden</button>
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue