From: Pierre Habouzit (MadCoder Date: Mon, 18 Apr 2005 08:09:31 +0000 (+0000) Subject: groupes + autres + details : all in one. solution is currently a bit ugly X-Git-Tag: xorg/old~201 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=183cc9c1e9aaeb8fcf72a62fe9ee4537380584bd;p=platal.git groupes + autres + details : all in one. solution is currently a bit ugly git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-561 --- diff --git a/htdocs.net/css/xnet.css b/htdocs.net/css/xnet.css index 466a3df..4078327 100644 --- a/htdocs.net/css/xnet.css +++ b/htdocs.net/css/xnet.css @@ -94,6 +94,28 @@ td#search { width: 100%; } +td#menu { width: 150px; } + +#menu th { + padding: 0.5em 0em 0.6em 0em; + font-size: 95%; + text-align: left; + font-family: "Arial",sans-serif; + vertical-align: middle; + text-align: center; + font-weight: bold; + background: url('images/barre.png') bottom left no-repeat; +} + +#menu td { + padding: 0.2em 0em 0.2em 0em; + font-size: 95%; + text-align: left; + font-family: "Arial",sans-serif; + vertical-align: middle; +} + + .descr { text-align: justify; font-size: 90%; @@ -118,17 +140,6 @@ table.links a { font-weight: bold; } -td.oval { - color: #d0c198; - background: url("../images/oval.png") no-repeat top center; - height: 50px; - text-align: center; - vertical-align: middle !important; - font-weight: bold; - width: 200px; -} -td.oval a { color: #d0c198; } - /*************************************************************************** * Special pages @@ -165,27 +176,40 @@ table#liste td.liste a:hover, table#liste td.listec a:hover { /*************************************************************************** ***************************************************************************/ -table.menu { width: 150px; } +div.cat { + background: #d0c198; + width: 180px; + padding: 2px; + margin: 6px 0px; + text-align: center; + font-weight: bold; + font-size: 90%; +} -th.menu { - padding: 0.5em 0em 0.6em 0em; - font-size: 95%; - text-align: left; - font-family: "Arial",sans-serif; - vertical-align: middle; +div.sel { background-color: #5c81aa; color: #d0c198; } +div.sel a { color: #d0c198; } + +td.oval { + color: #d0c198; + background: url("../images/oval.png") no-repeat top center; + height: 50px; text-align: center; + vertical-align: middle !important; font-weight: bold; - background: url('images/barre.png') bottom left no-repeat; + width: 130px; + padding: 4px 12px; } +.oval a { color: #d0c198; } -td.menu { - padding: 0.2em 0em 0.2em 0em; - font-size: 95%; - text-align: left; - font-family: "Arial",sans-serif; - vertical-align: middle; +#content td.oval { + font-size: 90%; + font-family: "Trebuchet MS", sans-serif; + letter-spacing: -0.5px; } +/*************************************************************************** + ***************************************************************************/ + td.infos { height: 30px; text-align: center; @@ -224,8 +248,3 @@ td.choix1actif { text-decoration: none; } -td.choix2actif { - height: 20px; - background-color: #5C81AA; - color:#D0C198; -} diff --git a/htdocs.net/groupes.php b/htdocs.net/groupes.php new file mode 100644 index 0000000..5d0565f --- /dev/null +++ b/htdocs.net/groupes.php @@ -0,0 +1,26 @@ +xdb->iterator("SELECT id,nom FROM groupex.dom WHERE FIND_IN_SET({?}, cat) ORDER BY nom", $cat); + $page->assign('doms', $res); + + if (!$res->total()) { + $res = $globals->xdb->iterator("SELECT diminutif, nom FROM groupex.asso WHERE FIND_IN_SET({?}, cat) ORDER BY nom", $cat); + } elseif (Get::has('dom')) { + $res = $globals->xdb->iterator("SELECT diminutif, nom FROM groupex.asso WHERE FIND_IN_SET({?}, cat) AND dom={?} ORDER BY nom", $cat, Get::getInt('dom')); + } else { + $res = null; + } + $page->assign('gps', $res); + + $page->setType($cat); + $page->run(); +?> diff --git a/templates/xnet/apropos.tpl b/templates/xnet/apropos.tpl index 8674bd5..4181e6f 100644 --- a/templates/xnet/apropos.tpl +++ b/templates/xnet/apropos.tpl @@ -18,41 +18,28 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***************************************************************************} - +
- - - + + + - + {include file="xnet/include/nav.tpl"} - - - -
-

- Polytechnique.net présente les activités associatives des Polytechniciens, élèves et anciens. - Ce portail a été conçu par l'équipe qui anime le site Polytechnique.org. - Il a vocation à favoriser la communication entre les groupes X, et leur promotion à - l'extérieur de la communauté polytechnicienne. -

-

- L'équipe tient à remercier - David Bachelart (X99) et Sylvain Joyeux (X2000) qui ont participé à l'élaboration de - la charte graphique du site, ainsi que Laurent El Kaim (X1984), qui a protégé le - domaine Polytechnique.net durant plusieurs années, avant d'en faire don début 2004 à - l'association. -

-
+

+ Polytechnique.net présente les activités associatives des Polytechniciens, élèves et anciens. + Ce portail a été conçu par l'équipe qui anime le site Polytechnique.org. + Il a vocation à favoriser la communication entre les groupes X, et leur promotion à + l'extérieur de la communauté polytechnicienne. +

+

+ L'équipe tient à remercier + David Bachelart (X99) et Sylvain Joyeux (X2000) qui ont participé à l'élaboration de + la charte graphique du site, ainsi que Laurent El Kaim (X1984), qui a protégé le + domaine Polytechnique.net durant plusieurs années, avant d'en faire don début 2004 à + l'association. +

+
----------
- - - - - - - - - -
+ - {* vim:set et sw=2 sts=2 sws=2: *} +{* vim:set et sw=2 sts=2 sws=2: *} diff --git a/templates/xnet/groupes.tpl b/templates/xnet/groupes.tpl new file mode 100644 index 0000000..84732de --- /dev/null +++ b/templates/xnet/groupes.tpl @@ -0,0 +1,61 @@ +{*************************************************************************** + * Copyright (C) 2003-2004 Polytechnique.org * + * http://opensource.polytechnique.org/ * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the Free Software * + * Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * + ***************************************************************************} + + + + + + +
+ + + + + + + + + + +
+ {include file="xnet/include/descr.tpl" cat=$smarty.get.cat} +
+ {iterate from=$doms item=g} +
+ {$g.nom} +
+ {/iterate} +
+ {if $gps} + {iterate from=$gps item=g} + + + + +
{$g.nom}
+ {/iterate} + {else} + logos_associations + {/if} +
+
+ +{* vim:set et sw=2 sts=2 sws=2: *} diff --git a/templates/xnet/include/descr.tpl b/templates/xnet/include/descr.tpl new file mode 100644 index 0000000..0c241b9 --- /dev/null +++ b/templates/xnet/include/descr.tpl @@ -0,0 +1,64 @@ +{*************************************************************************** + * Copyright (C) 2003-2004 Polytechnique.org * + * http://opensource.polytechnique.org/ * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the Free Software * + * Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * + ***************************************************************************} + +{if $cat eq groupesx} + +

+Les groupes X rassemblent des polytechniciens partageant les mêmes centres d'intérêt, +autour de sujets très différents. Certains de ces groupes sont des associations +dépendant de l'Amicale des Anciens, définis par l'article 12 +des statuts de l'AX. Les groupes déclarés auprès de l'AX sont indiqués par une petite +note en bas de la page qui leur est dédiée sur ce site. +

+

+Pour créer un nouveau Groupe X agréé par l'AX au titre de +l'article 12 des statuts, tu peux te référer + aux documents de l'AX. +

+

+Si tu souhaites obtenir le statut d'association loi de 1901, tu peux obtenir des +renseignements auprès de sites spécialisés. +

+ +{elseif $cat eq binets} + +Les binets sont les associations des élèves polytechniciens effectuant leur scolarité à l'X (sur le +plateau). Cette appellation, qui peut sembler étrange, est, pour certains, simplement un diminutif +de "cabinet". Pour d'autres, elle aurait pour origine un certain général Binet, commandant l'Ecole +Polytechnique, qui aurait le premier autorisé ces regroupements d'élèves. Les binets présents à +l'Ecole n'ont pas tous leur site web présenté ici. Vous pouvez voir tous les sites des binets en +cliquant ici. + +{elseif $cat eq institutions} + +De nombreuses organismes officiels sont liés à l'Ecole Polytechnique: le collège de l'Ecole +Polytechnique, l'amicale des anciens élèves, le site des X sur le web Polytechnique.org, etc... +Cette liste n'est pas exhaustive. Vous pouvez découvrir chacun de ces organismes en cliquant sur les +liens correspondants: + +{elseif $cat eq promotions} + +Quelques promotions de polytechniciens ont mis au point leur propre site web, qui permet aux élèves +de ces promotions d'organiser des repas promos, de faire partager des souvenirs photographiques, de +se retrouver sur internet... En voici des exemples: + +{/if} + +{* vim:set et sw=2 sts=2 sws=2: *} diff --git a/templates/xnet/include/nav.tpl b/templates/xnet/include/nav.tpl new file mode 100644 index 0000000..ab46218 --- /dev/null +++ b/templates/xnet/include/nav.tpl @@ -0,0 +1,37 @@ +{*************************************************************************** + * Copyright (C) 2003-2004 Polytechnique.org * + * http://opensource.polytechnique.org/ * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the Free Software * + * Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * + ***************************************************************************} + +---------- + + + + + + + + + + + + + + + +{* vim:set et sw=2 sts=2 sws=2: *} diff --git a/templates/xnet/index.tpl b/templates/xnet/index.tpl index d1b5830..4622814 100644 --- a/templates/xnet/index.tpl +++ b/templates/xnet/index.tpl @@ -43,21 +43,8 @@ - ---------- + {include file="xnet/include/nav.tpl"} - - - - - - - - - - - - - {* vim:set et sw=2 sts=2 sws=2: *} diff --git a/templates/xnet/plan.tpl b/templates/xnet/plan.tpl index 4059999..a6330fb 100644 --- a/templates/xnet/plan.tpl +++ b/templates/xnet/plan.tpl @@ -23,12 +23,12 @@ - +
Groupes XGroupes X
{foreach from=$groupesx key=id item=dom} - {$dom[0].domnom} + {$dom[0].domnom} {foreach from=$dom item=g} {$g.nom} {/foreach} @@ -41,12 +41,12 @@ - +
BinetsBinets
{foreach from=$binets key=id item=dom} - {$dom[0].domnom} + {$dom[0].domnom} {foreach from=$dom item=g} {$g.nom} {/foreach} @@ -59,7 +59,7 @@ - +
PromotionsPromotions
@@ -74,7 +74,7 @@ - + - + {include file="xnet/include/nav.tpl"} - - -
InstitutionsInstitutions
diff --git a/templates/xnet/services.tpl b/templates/xnet/services.tpl index b66ba33..0143b65 100644 --- a/templates/xnet/services.tpl +++ b/templates/xnet/services.tpl @@ -134,21 +134,8 @@
----------
- - - - - - - - - -
{* vim:set et sw=2 sts=2 sws=2: *}