-
Notifications
You must be signed in to change notification settings - Fork 7
/
submit-pokemon.php
44 lines (36 loc) · 1.14 KB
/
submit-pokemon.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
<?php
include 'frontend/functions.php';
include 'frontend/menu.php';
include 'config/dbbuilding.php';
?>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css" rel="stylesheet" />
<script>
$(document).ready(function(){
$("#pokesearch").select2({
templateResult: formatState,
width:'100%'
});
});
function formatState (state) {
if (!state.id) { return state.text; }
var $state = $(
'<span ><img style="display: inline-block;" src="./static/icons/' + state.element.value.toLowerCase() + '.png" heigth="24" width="24"/> ' + state.text + '</span>'
);
return $state;
}
function enablespotbutton() {
document.getElementById("spotbutton").disabled = false;
}
</script>
</head>
<?php
menu();
pokesubmission();
?>
</body>
<footer></footer>