-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathrelearn-move.php
85 lines (67 loc) · 2.94 KB
/
relearn-move.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
<?
session_start();
include_once('config.php');
include_once('ingame.inc.php');
include_once('globaldefs.php');
if($_GET['pokemonid'] < 0){
header("Location: index.php?page=home");
?>
<script>
parent.$.fn.colorbox.close();
</script>
<?
}
#Als er een result is kan pokemon evolueren.
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=https:://www.w3.org/1999/xhtml">
<head>
<title><?=GLOBALDEF_SITETITLE?></title>
<link rel="stylesheet" type="text/css" href="../stylesheets/box.css" />
</head>
<body>
<?php
if($error) echo $error;
echo "<center><div style='padding-bottom:10px;'>The available moves are:</div></center>";
$check = mysql_fetch_assoc(mysql_query("SELECT type1, type2 FROM tmhm WHERE `naam`='".$_GET['name']."'"));
#Pokemon laden van de gebruiker die hij opzak heeft
$poke = mysql_query("SELECT pokemon_wild.wild_id, pokemon_wild.type1, pokemon_wild.type2, pokemon_wild.naam, pokemon_speler.id, pokemon_speler.level, pokemon_speler.shiny, pokemon_speler.user_id FROM pokemon_wild
INNER JOIN pokemon_speler
ON pokemon_speler.wild_id = pokemon_wild.wild_id
WHERE user_id='".$_SESSION['id']."' AND `opzak`='ja' ORDER BY `opzak_nummer` ASC");
?>
<form method="post">
<center>
<table width="500" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="50" class="top_first_td"><center><strong>Choose</strong></center></td>
<td width="100" class="top_td"><strong><center>Level</center></strong></td>
<td width="150" class="top_td"><strong>Move</strong></td>
<td width="50" class="top_td"><strong>Power</strong></td>
<td width="50" class="top_td"><strong>Accuracy</strong></td>
<td width="50" align="center" class="top_td"><strong>Price</strong></td>
</tr>
<?
if(empty($_GET['pokemonid'])) $error = '<div class="red">Error.</div>';
$query1 = mysql_query("SELECT wild_id, level FROM pokemon_speler WHERE id=".$_GET['pokemonid']." ");
$get_id = mysql_fetch_assoc($query1);
$query2 = mysql_query("SELECT level, aanval FROM levelen WHERE wild_id=".$get_id['wild_id']." AND wat='att' AND level<=".$get_id['level']." ORDER BY level ASC ");
#Pokemons die hij opzak heeft weergeven
while ($move = mysql_fetch_assoc($query2)) {
echo '<tr>';
echo '<td class="normal_first_td"><center><input type="radio" name="pokemonid" value="'.$pokemon['id'].'" /></center></td>';
echo '<td class="normal_td"><center>'.$move['level'].'</center></td>
<td class="normal_td">'.$move['aanval'].'</td>
<td class="normal_td"><center>'.$move['level'].'</center></td>
<td class="normal_td"><center>'.$move['level'].'</center></td>
<td class="normal_td"><center>'.$move['level'].'</center></td>';
echo '</tr>';
}
?>
<tr>
<td colspan="5"><center> <br /> <input type="submit" name="choose" value="Choose" class="button_mini"></center></td>
</tr>
</table>
</center>
</form>
</body></html>