forked from joancefet/rpg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
extended.php
131 lines (123 loc) · 5.3 KB
/
extended.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
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
<?
#include dit script als je de pagina alleen kunt zien als je ingelogd bent.
include('includes/security.php');
#Als je geen pokemon bij je hebt, terug naar index.
if($gebruiker['in_hand'] == 0) header('Location: index.php');
$page = 'extended';
#Goeie taal erbij laden voor de page
include_once('language/language-pages.php');
?>
<center>
<?php
#Pokemons opzak weergeven op het scherm
while($pokemon = mysql_fetch_assoc($pokemon_all)){
#Gegevens juist laden voor de pokemon
$pokemon = pokemonei($pokemon);
#Naam veranderen als het male of female is.
$pokemon['naam'] = pokemon_naam($pokemon['naam'],$pokemon['roepnaam']);
#Default no shiny
$shinyimg = 'pokemon';
$shinystar = '';
$shinytext = '';
#No color
$aanval2type = "";
$aanval3type = "";
$aanval4type = "";
if($pokemon['shiny'] == 1){
$shinyimg = 'shiny';
$shinystar = '<img src="images/icons/lidbetaald.png" width="16" height="16" style="margin-bottom:-3px;" border="0" alt="Shiny" title="Shiny">';
}
#Ff geheckt raken fixen
if($pokemon['gehecht'] == 1) $gehecht = '<img src="images/icons/friend.png" width="16" height="16" alt="'.$txt['begin_pokemon'].'" title="'.$txt['begin_pokemon'].'">';
else $gehecht = '';
#Aanval fixen
if($pokemon['aanval_2'] == '') $aanval2 = '';
else $aanval2 = ' | '.$pokemon['aanval_2'];
if($pokemon['aanval_3'] == '') $aanval3 = '';
else $aanval3 = ' | '.$pokemon['aanval_3'];
if($pokemon['aanval_4'] == '') $aanval4 = '';
else $aanval4 = ' | '.$pokemon['aanval_4'];
if($pokemon['ei'] != 1){
echo'
<table width="610" class="border_black" cellspacing="0" cellpadding="0">
<tr>
<td width="130"><img src="images/items/'.$pokemon['gevongenmet'].'.png" alt="'.$txt['catched_with'].' '.$pokemon['gevongenmet'].'." title="'.$txt['catched_with'].' '.$pokemon['gevongenmet'].'." /></td>
<td width="120"><strong>'.$txt['pokemon'].'</strong></td>
<td width="110" style="padding-left: 2px;">'.$pokemon['def_naam'].$shinystar.'</td>
<td width="80"><strong>'.$txt['attack_points'].'</strong></td>
<td width="50">'.$pokemon['attack'].'</td>
</tr>
<tr>
<td width="130" rowspan="11"><center>'.$gehecht.'<br /><img src="'.$pokemon['link'].'" alt="'.$pokemon['def_naam'].'" title="'.$pokemon['def_naam'].'"/></center></td>
<td><strong>'.$txt['clamour_name'].'</strong></td>
<td style="padding-left: 2px;">'.$pokemon['naam'].'</td>
<td><strong>'.$txt['defence_points'].'</strong></td>
<td>'.$pokemon['defence'].'</td>
</tr>
<tr>
<td><strong>'.$txt['type'].'</strong></td>
<td>'.htmlspecialchars_decode($pokemon['type']).'</td>
<td><strong>'.$txt['speed_points'].'</strong></td>
<td>'.$pokemon['speed'].'</td>
</tr>
<tr>
<td><strong>'.$txt['level'].'</strong></td>
<td style="padding-left: 2px;">'.$pokemon['level'].'</td>
<td><strong>'.$txt['spc_attack_points'].'</strong></td>
<td>'.$pokemon['spcattack'].'</td>
</tr>
<tr>
</tr>
<td><strong>'.$txt['mood'].'</strong></td>
<td style="padding-left: 2px;">'.$pokemon['karakter'].'</td>
<td><strong>'.$txt['spc_defence_points'].'</strong></td>
<td>'.$pokemon['spcdefence'].'</td>
</tr>
<tr>
<td style="padding-top:10px;"><strong>'.$txt['attacks'].'</strong></td>
<td style="padding-top:10px;" colspan="3">'.$pokemon['aanval_1'].$aanval2.$aanval3.$aanval4.'</td>
</tr>
<tr>
<td colspan="4">
<table width="480" style="padding-top:10px;" cellspacing="0" cellpadding="0">
<tr>
<td> <table width="480">
<tr>
<td width="260"><div class="bar_red">
<div class="progress" style="width: '.$pokemon['levenprocent'].'%"></div>
</div></td>
<td width="220" class="smalltext">'.$pokemon['leven'].' / '.$pokemon['levenmax'].'</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><table width="480">
<tr>
<td width="260"><div class="bar_blue">
<div class="progress" style="width: '.$pokemon['expprocent'].'%"></div>
</div></td>
<td width="220" class="smalltext">'.$pokemon['exp'].' / '.$pokemon['expnodig'].'</td>
</tr>
</table></td>
</tr>
</table>
</tr>
</table>
<br />';
}
else{
echo'
<table width="610" class="border_black" cellspacing="0" cellpadding="0">
<tr>
<td width="120"><center><img src="'.$pokemon['link'].'" /></center></td>
<td width="490">'.$txt['egg_will_hatch_in'].' '.$pokemon['afteltijd'].'</td>
</tr>
</table>
<br />
';
}
}
mysql_data_seek($pokemon_sql, 0);
?>
</center>