-
Notifications
You must be signed in to change notification settings - Fork 7
/
active-offers.php
40 lines (32 loc) · 1.04 KB
/
active-offers.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
<?php
require './config/config.php';
include './frontend/functions.php';
include './frontend/menu.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(){
$("#pokesearch2").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;
}
</script>
<?php
menu();
actoffer();
?>
</body>
<footer></footer>