From 3416d255294cbe63b37105845dcfb261285ffe36 Mon Sep 17 00:00:00 2001 From: Baptiste Date: Tue, 5 Apr 2022 21:18:29 +0200 Subject: [PATCH] menu --- assets/css/menu.css | 6 + assets/img/ico_promo_60.ico | Bin 0 -> 5430 bytes assets/img/menu/menu.svg | 229 ++++++++++++++++++++++++++++++++++++ dao.php | 147 ----------------------- info.php | 2 +- prevs.php | 25 ++++ structure/menu.php | 8 ++ structure/template.php | 1 + 8 files changed, 270 insertions(+), 148 deletions(-) create mode 100644 assets/img/ico_promo_60.ico create mode 100644 assets/img/menu/menu.svg delete mode 100644 dao.php diff --git a/assets/css/menu.css b/assets/css/menu.css index e69de29..e20a09b 100644 --- a/assets/css/menu.css +++ b/assets/css/menu.css @@ -0,0 +1,6 @@ +.menuimg { + position: fixed; + bottom: 0; + left: 0; + width: 100%; +} \ No newline at end of file diff --git a/assets/img/ico_promo_60.ico b/assets/img/ico_promo_60.ico new file mode 100644 index 0000000000000000000000000000000000000000..3521c9de36dac179bf07a4a7c0bf54e71c221707 GIT binary patch literal 5430 zcmeI0$4gy#6vyujvmX2t-f9?dk%j-j?A-|}?gF*}7nX&HB?_?wL=hCRU{He^yRpT@ zn%Ha9L}Q62YHU$7vBiGoevaJmz>G5bi~}Awsm%f`na?7;6y)9q9e37-aHJP8E zmz9+j`Sj_NeEs@WwzjrpX=zEv_xJZ@VPQeKySrsOVAM2d@x zrLeG2pRIdAL4lN(mde1ufbOlTs*>vJYAG)-m$tSx86FF@8C*49>OZf=&r z!9f`r8PU0C&z{M+9=k3u_^Kj*gD3*K>F5gdL)zqgB7z z*;(o7=}~^?7Jp{|or8meB_$onRU%yt21*^dbautHt$;rt#Os7s!N8Y}D zt2|g^kGFAgaq{rtL(PBc3l}*I!818IS?=Atr?~d$(IW{A43vO?0EvoVKfk))&~F)_BqT)ZU|L$5o(GT5pFc}Q zMTLOR;9Im=AHZXDr`914*h&3*`t+$}Wo1cvdb;@d_$dBT@4z)|#u~7lnuk5GYeYnZ z#Ky)dZiCgYUcFM=wzRY;4pPf%Yio53{!gAf(f!n5&gbGxPft(f&wjA8p`k%*DSPmb zySuxjrlzW_)HZy9e$-W-;X{Am<>e(A85z0`pQ0N)!1wm{cC882rKYAP^*MHY|Ngzo zihe~!Md~|rBet+B{NaV()C6?G=A1{Ypf~jjKJZ{3JuLfE6R`Kt(2&&C)oH&0ANme@ z3g+NXkAZHzy}jS+2)1V*GV_cK5Osoe$ce3)<4k1Yj=uIeK^$5&h1fngIM8|45F^AZ z;}G%ATC3k6Z?J`xAG*l=p)cTEbiw}Yr+YvDge)O5x6JL-g_>}l_ z1pmuqAr8O}Vw0F^HG5KWmND{_oI_tn6MhE2JUl$a)zwwp+}spfHa0f&D9$9_v$L}m zcXoGo9V!AkIy*aylarI&xpPPH?*9Gz=X%%9&Q8rUdQvM^uPX>~PmY68U=z7c?hpsL zxw(o>!~*%rJXi(p@@}7BSCxYvv9hvKeU8rH2ZS7vk&)u!;-WDK=3^&th8#ma3k$A# zHv6z67z*xDYp^Xu?1P)sBmB*UoL~cbgVA7;qllR2Y%mi7L*NfS;&;An$PaRWZ#i(A z??gusd5^C2{^$pxBhQ@0cTIhLz1AeKfLtLa96{J0Ut(`+G~W*3H+V|jz~*29=kq;; zT-0!|!4X8fQHLxd*TH`B9UJ2las*67KK$h8=cnJ8)}HI!`CjH*4Zo8M)W5vEJP8dA z)eHNBPsoFhh*6u(rZIb+bM5zX=H0t@#oymwbKKk8Tf)M^^nCgq2)~niXWGH^b%H2XY~%&x|_U%Z~O;9Z2XA2dy~5S N*Lk1)F>rgoe*v^3q5}W` literal 0 HcmV?d00001 diff --git a/assets/img/menu/menu.svg b/assets/img/menu/menu.svg new file mode 100644 index 0000000..5c1f12b --- /dev/null +++ b/assets/img/menu/menu.svg @@ -0,0 +1,229 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dao.php b/dao.php deleted file mode 100644 index 846a8b5..0000000 --- a/dao.php +++ /dev/null @@ -1,147 +0,0 @@ -conn = new PDO($dsn, $username, $password, [PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8']); - } catch (PDOException $e) { - echo $e; - } - } - - private function read_password() - { - $real_path = __DIR__.DIRECTORY_SEPARATOR.".htpassdb"; - $file = fopen($real_path, "r") or die("Unable to open DB password file!");; - $password = fgets($file); - fclose($file); - return trim($password); - } - - public function get_score_team($team) - { - $sql = 'SELECT text, points FROM scores WHERE team = ?'; - $cursor = $this->conn->prepare($sql); - $cursor->execute([$team]); - return $cursor->fetchAll(PDO::FETCH_ASSOC); - } - - public function add_score($score_data) { - $sql = 'INSERT INTO scores (text, points, team) VALUES (?, ?, ?)'; - $cursor = $this->conn->prepare($sql); - $cursor->execute([$score_data['text'], $score_data['points'], $score_data['team']]); - } - public function save_scores($scores_json, $team) - { - $sql = 'DELETE FROM scores WHERE team = ?'; - $cursor = $this->conn->prepare($sql); - $cursor->execute([$team]); - - foreach ($scores_json as $value) { - $sql = 'INSERT INTO scores (text, points, team) VALUES (?, ?, ?)'; - $cursor = $this->conn->prepare($sql); - $cursor->execute([$value['text'], $value['points'], $team]); - } - } - - public function get_map_info($selector) - { - $sql = 'SELECT title, description FROM map_insa WHERE selector = ?'; - $cursor = $this->conn->prepare($sql); - $cursor->execute([$selector]); - return $cursor->fetchAll(PDO::FETCH_ASSOC); - } - - public function get_map_selectors() - { - $sql = 'SELECT selector FROM map_insa'; - $cursor = $this->conn->prepare($sql); - $cursor->execute(); - return $cursor->fetchAll(PDO::FETCH_ASSOC); - } - - public function save_map_info($selector, $info_json) - { - $sql = 'DELETE FROM map_insa WHERE selector = ?'; - $cursor = $this->conn->prepare($sql); - $cursor->execute([$selector]); - $sql = 'INSERT INTO map_insa (title, description, selector) VALUES (?, ?, ?)'; - $cursor = $this->conn->prepare($sql); - $cursor->execute([$info_json['title'], $info_json['description'], $selector]); - } - - public function is_in_map($selector) { - $sql = 'SELECT selector FROM map_insa WHERE selector = ?'; - $query = $this->conn->prepare($sql); - $query->execute([$selector]); - return $query->fetchAll(PDO::FETCH_ASSOC); - } - - - public function get_activities_of_day($day) - { - $sql = 'SELECT * FROM planning_insa WHERE day = ?'; - $cursor = $this->conn->prepare($sql); - $cursor->execute([$day]); - return $cursor->fetchAll(PDO::FETCH_ASSOC); - } - - public function save_day_activities($day, $info_json) - { - $sql = 'DELETE FROM planning_insa WHERE day = ?'; - $cursor = $this->conn->prepare($sql); - $cursor->execute([$day]); - - foreach ($info_json as $value) { - $sql = 'INSERT INTO planning_insa (day, small_title, full_title, description, color, start, length) VALUES (?, ?, ?, ?, ?, ?, ?)'; - $cursor = $this->conn->prepare($sql); - $cursor->execute([$value['day'], $value['small_title'], $value['full_title'], $value['description'], $value['color'], $value['start'], $value['length']]); - } - } - - /** - * Add a building in the database - * @param String $title = Name of the building displayed - * @param String $description = Description of the building - * @param String $selector = Identifier of the building (unique) - * @return Mixed = if error : false - * else : Array of the row added as an array indexed by column name - */ - public function create_building($title, $description, $selector) { - $sql = 'INSERT INTO map_insa (title, description, selector) VALUES(:title, :description, :selector)'; - - $query = $this->conn->prepare($sql); - $query->execute(array( - ':title' => $title, - ':description' => $description, - ':selector' => $selector, - )); - - return $query->fetch(PDO::FETCH_ASSOC); - } - - /** - * Remove a building in the database - * @param String $selector = Identifier of the building (unique) - * @return Mixed = if error : false - * else : Array with the selector used to remove from the database - */ - public function delete_building($selector) { - $sql = 'DELETE FROM map_insa WHERE selector=?'; - - $query = $this->conn->prepare($sql); - $query->execute([$selector]); - - return $query->fetch(PDO::FETCH_ASSOC); - } -} - - diff --git a/info.php b/info.php index ed70ca6..7d462db 100644 --- a/info.php +++ b/info.php @@ -31,7 +31,7 @@ ob_start(); // Start reading html Celui qui gère tout ça : le responsable du site
Mail : rebillar@insa-toulouse.fr
- Instagram : baptiste.reb + Tel : 07 83 64 61 06
  • diff --git a/prevs.php b/prevs.php index 0e8c8c1..adc0bd2 100755 --- a/prevs.php +++ b/prevs.php @@ -1,7 +1,32 @@ +
    +

    La Prevention

    +

    Cher Ph(f)utur Peeta Amateur,
    + Déjà, félicitations à toi si tu es arrivé à ce passage de la plaquette. Un Perspicace Parasite Acharné tu + es déjà ! Du parcours du combattant au tir à l’arc, en passant par ton 1er Petit K(c)ours en amphi, tu + vas en traverser des épreuves cette semaine. Sans Capitole, pas de Hunger Games. De même, sans + Com Prev, pas de Semaine d’Accueil digne de ce nom. Nous allons te coacher tout au long de la + semaine afin que tu remportes tes jeux de la faim. Pour que tu profites au maximum de chaque minute, + de chaque seconde de cette aventure, il est nécessaire que tu te sentes en sécurité et épaulé en cas + de besoin. Et c’est justement là où nous rentrons en jeu, dans le but de t’aider toi, Ph(f)antastique + Prochain Aphoneur. (# On minore pas le test Voltaire nous ?!). Nous veillerons à ce qu’aucun + Ph(f)ormidable Ph(f)étard Aiguisé ne tombe dans un quelconque excès. Avec nous, tu es certain que + cette année, la 59ème + édition de nos INSA Games aura bien lieu. En cas de fringale, d’hyperréflexion, + ou d’hyposommeil, nous te relèverons grâce à nos bidons d’eau et nos sirops étoilés. Nous serons + reconnaissables grâce à nos super brassards fluos. Nous serons également présents pour t’avertir, + cher Petite Ph(f)ripouille Angélique et t’éviter toute descendance inopportune. + Aucun coup de canon ne sera tiré cette année !

    +

    Voici une petite video pour t'expliquer les bases si jamais tu vois quelqu'un inconscient :

    + + +

    Contacts d'urgence

    + Bientôt disponibles... +
    + + + \ No newline at end of file diff --git a/structure/template.php b/structure/template.php index 0d708f4..7d4b722 100644 --- a/structure/template.php +++ b/structure/template.php @@ -16,6 +16,7 @@ $pagename = $infopage[4]; // nom de la page exact servant à appeler le css + <?= $pagetitle ?> | INSAT Accueil