Andreu | 66ad5cf | 2019-09-18 17:15:44 +0200 | [diff] [blame] | 1 | <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" /> |
Andreu | 10cb304 | 2019-09-18 19:55:36 +0200 | [diff] [blame] | 7 | |
Andreu | 66ad5cf | 2019-09-18 17:15:44 +0200 | [diff] [blame] | 8 | <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script> |
Andreu | ed8e1f9 | 2019-09-18 22:26:04 +0200 | [diff] [blame^] | 9 | <script src="https://rawgit.com/notifyjs/notifyjs/master/dist/notify.js"></script> |
Andreu | 10cb304 | 2019-09-18 19:55:36 +0200 | [diff] [blame] | 10 | <script src="./js/utils.js"></script> |
Andreu | 66ad5cf | 2019-09-18 17:15:44 +0200 | [diff] [blame] | 11 | |
Andreu | ed8e1f9 | 2019-09-18 22:26:04 +0200 | [diff] [blame^] | 12 | <? require './php/login.php'; ?> |
| 13 | |
Andreu | 66ad5cf | 2019-09-18 17:15:44 +0200 | [diff] [blame] | 14 | <script> |
Andreu | ed8e1f9 | 2019-09-18 22:26:04 +0200 | [diff] [blame^] | 15 | let mort = <?=$user->mort?>; |
| 16 | let requested = <?=$user->requested?>; |
| 17 | let userid = <?=$user->id?>; |
| 18 | let victimid = <?=$victim->id?>; |
| 19 | let victimnom = "<?=$victim->nom()?>"; |
Andreu | 66ad5cf | 2019-09-18 17:15:44 +0200 | [diff] [blame] | 20 | </script> |
Andreu | ed8e1f9 | 2019-09-18 22:26:04 +0200 | [diff] [blame^] | 21 | |
| 22 | <script src="./js/confirmation.js"></script> |
Andreu | 66ad5cf | 2019-09-18 17:15:44 +0200 | [diff] [blame] | 23 | </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> |