blob: 4d34a59f3b8207cf524540bda6ebc5139e61fec1 [file] [log] [blame]
Andreu66ad5cf2019-09-18 17:15:44 +02001<html>
2 <head>
3 <meta charset="UTF-8">
4 <title>Pàgina de l'usuari</title>
5 <link rel="stylesheet" href="./css/basic.css" />
6 <link rel="stylesheet" href="./css/main.css" />
Andreu10cb3042019-09-18 19:55:36 +02007
Andreu66ad5cf2019-09-18 17:15:44 +02008 <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
Andreued8e1f92019-09-18 22:26:04 +02009 <script src="https://rawgit.com/notifyjs/notifyjs/master/dist/notify.js"></script>
Andreu10cb3042019-09-18 19:55:36 +020010 <script src="./js/utils.js"></script>
Andreu66ad5cf2019-09-18 17:15:44 +020011
Andreued8e1f92019-09-18 22:26:04 +020012 <? require './php/login.php'; ?>
13
Andreu66ad5cf2019-09-18 17:15:44 +020014 <script>
Andreued8e1f92019-09-18 22:26:04 +020015 let mort = <?=$user->mort?>;
16 let requested = <?=$user->requested?>;
17 let userid = <?=$user->id?>;
18 let victimid = <?=$victim->id?>;
19 let victimnom = "<?=$victim->nom()?>";
Andreu66ad5cf2019-09-18 17:15:44 +020020 </script>
Andreued8e1f92019-09-18 22:26:04 +020021
22 <script src="./js/confirmation.js"></script>
Andreu66ad5cf2019-09-18 17:15:44 +020023 </head>
24 <body>
25 <div id="outter-container">
26 <div id="inner-container">
27 <h2>Hola <name id="user_name"><?=$user->nom()?></name>,</h2>
28 <h3>La teva víctima és:</h3>
29
30 <div class="victima">
31 <img width="300px" src="./imgs/<?=$victim->id?>.png" />
32 <h2 id="victim_name"><?=$victim->nomcomplet?></h2>
33 <h3><span id="victim_curs"><?=$victim->curs?></span>-<span id="victim_grau"><?=$victim->grau?></span></h3>
34 </div>
35 </div>
36 </div>
37 <div id="butons">
38 <button id="win" onclick="js: send_request(<?=$victim->id?>,1);">L'he matat</button>
39 <button id="lose" onclick="js: send_request(<?=$user->id?>,2);">M'han matat</button>
40 </div>
41
42 <script>
43
44 </script>
45 </body>
46</html>