-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
71 lines (62 loc) · 2.04 KB
/
index.php
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
<?php
/**
* Created by PhpStorm.
* User: Nemanja
* Date: 26.2.2017
* Time: 15:10
*/
/*
* Including controller file, where is prepared array with sample names in every case
*/
include ('controller.php');
?>
<!DOCTYPE html>
<html>
<head>
<title>grammCase by Madza91</title>
<link href="assets/style.css" rel="stylesheet">
</head>
<body>
<table>
<tr>
<th>Nominativ</th>
<th>Genitiv</th>
<th>Dativ</th>
<th>Akuzativ</th>
<th>Vokativ</th>
<th>Instrumental</th>
<th>Lokativ</th>
</tr>
<?php foreach($results as $name) : ?>
<tr>
<td><?php echo $name['nominative']; ?></td>
<td><?php echo $name['genitive']; ?></td>
<td><?php echo $name['dative']; ?></td>
<td><?php echo $name['accusative']; ?></td>
<td><?php echo $name['vocative']; ?></td>
<td><?php echo $name['instrumental']; ?></td>
<td><?php echo $name['locative']; ?></td>
</tr>
<?php endforeach; ?>
</table>
<br>
<form action="" method="post">
Insert new name:<br>
<input type="text" name="word" value="" autofocus>
<input type="submit" name="add" value="Submit">
</form>
<div class="donate_button">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="lc" value="RS">
<input type="hidden" name="item_name" value="Github project">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-DonationsBF:btn_donate_LG.gif:NonHostedGuest">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</div>
</body>
</html>