From: Pierre Habouzit (MadCoder Date: Sun, 17 Apr 2005 21:37:35 +0000 (+0000) Subject: x.net/plan.php X-Git-Tag: xorg/old~208 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=56caed7008d0f8f555ba9b0d4d9f162850693ce6;p=platal.git x.net/plan.php git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-554 --- diff --git a/htdocs.net/css/xnet.css b/htdocs.net/css/xnet.css index ebb3355..083a523 100644 --- a/htdocs.net/css/xnet.css +++ b/htdocs.net/css/xnet.css @@ -39,6 +39,7 @@ a, a:link, a:visited { text-decoration: none ; color: #5c81aa; } a img { border: none; } img { vertical-align: middle; } +td { vertical-align: top; } /*************************************************************************** * DEBUG @@ -73,17 +74,12 @@ td#credits { font-weight: bold; } -td#perso { - vertical-align: top; -} - td#perso ul { font-weight: bold; font-size: 90%; } td#search { - vertical-align: top; text-align: right; } @@ -116,6 +112,46 @@ 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 + ***************************************************************************/ + + +table#liste td.listec a { + display: block; + text-align: center; +} + +table#liste td.liste a { + display: block; + text-align: right; +} + +table#liste td.liste a.cat { + background: #d0c198; + margin: 15px 0px 10px 0px; + padding: 3px; + text-align: center; + font-weight: bold; + font-size: 90%; +} + +table#liste td.liste a:hover, table#liste td.listec a:hover { + background: #d0c198; +} + /*************************************************************************** ***************************************************************************/ @@ -155,16 +191,6 @@ td.pres { text-align: center; width: 210px; } -td.presautres { - background-repeat: no-repeat; - background-image: url("images/oval.png"); - background-position: top center; - font-size: 90%; - height: 50px; - text-align: center; - width: 200px; -} - td.pres2 { background-repeat: no-repeat; background-image: url("images/oval2.png"); @@ -188,16 +214,8 @@ td.choix1actif { text-decoration: none; } -td.choix2 { - height: 20px; - background-color: #D0C198; - font-size: 85%; -} td.choix2actif { height: 20px; background-color: #5C81AA; color:#D0C198; } -div.choix2 { - text-align: center; -} diff --git a/htdocs.net/login.php b/htdocs.net/login.php new file mode 100644 index 0000000..885e33f --- /dev/null +++ b/htdocs.net/login.php @@ -0,0 +1,11 @@ +run(); +?> diff --git a/htdocs.net/plan.php b/htdocs.net/plan.php new file mode 100644 index 0000000..f0439b7 --- /dev/null +++ b/htdocs.net/plan.php @@ -0,0 +1,43 @@ +setType('plan'); + + $res = $globals->xdb->iterator( + 'SELECT dom.id, dom.nom as domnom, asso.diminutif, asso.nom + FROM groupex.dom + INNER JOIN groupex.asso ON dom.id = asso.dom + WHERE FIND_IN_SET("GroupesX", dom.cat) AND FIND_IN_SET("GroupesX", asso.cat) + ORDER BY dom.nom, asso.nom'); + $groupesx = array(); + while ($tmp = $res->next()) { $groupesx[$tmp['id']][] = $tmp; } + $page->assign('groupesx', $groupesx); + + $res = $globals->xdb->iterator( + 'SELECT dom.id, dom.nom as domnom, asso.diminutif, asso.nom + FROM groupex.dom + INNER JOIN groupex.asso ON dom.id = asso.dom + WHERE FIND_IN_SET("Binets", dom.cat) AND FIND_IN_SET("Binets", asso.cat) + ORDER BY dom.nom, asso.nom'); + $binets = array(); + while ($tmp = $res->next()) { $binets[$tmp['id']][] = $tmp; } + $page->assign('binets', $binets); + + $res = $globals->xdb->iterator( + 'SELECT asso.diminutif, asso.nom + FROM groupex.asso + WHERE cat LIKE "%Promotions%" + ORDER BY diminutif'); + $page->assign('promos', $res); + + $res = $globals->xdb->iterator( + 'SELECT asso.diminutif, asso.nom + FROM groupex.asso + WHERE FIND_IN_SET("Institutions", cat) + ORDER BY diminutif'); + $page->assign('inst', $res); + + $page->run(); +?> diff --git a/include/xnet/page.inc.php b/include/xnet/page.inc.php index 27cd4ab..85b21d8 100644 --- a/include/xnet/page.inc.php +++ b/include/xnet/page.inc.php @@ -44,6 +44,14 @@ class XnetPage extends PlatalPage } // }}} + // {{{ function setType + + function setType($type) + { + $this->assign('xnet_type', $type); + } + + // }}} } // }}} diff --git a/templates/xnet/plan.tpl b/templates/xnet/plan.tpl new file mode 100644 index 0000000..313fb68 --- /dev/null +++ b/templates/xnet/plan.tpl @@ -0,0 +1,91 @@ +{*************************************************************************** + * 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 * + ***************************************************************************} + + + + + + + + + + + +
+ + + + + + + +
Groupes X
+ {foreach from=$groupesx key=id item=dom} + {$dom[0].domnom} + {foreach from=$dom item=g} + {$g.nom} + {/foreach} + {/foreach} +
+
+ + + + + + + +
Binets
+ {foreach from=$binets key=id item=dom} + {$dom[0].domnom} + {foreach from=$dom item=g} + {$g.nom} + {/foreach} + {/foreach} +
+
+ + + + + + + +
Promotions
+ {iterate from=$promos item=g} + {$g.nom} + {/iterate} +
+
+ + + + + + + +
Institutions
+ {iterate from=$inst item=g} + {$g.nom} + {/iterate} +
+
+ +{* vim:set et sw=2 sts=2 sws=2: *} diff --git a/templates/xnet/skin.tpl b/templates/xnet/skin.tpl index 0434ac8..65cd040 100644 --- a/templates/xnet/skin.tpl +++ b/templates/xnet/skin.tpl @@ -52,16 +52,16 @@ {include file=skin/common.bandeau.tpl} - {if $type} + {if $xnet_type} {else}
Logo Assos - Logo {$type} + Logo {$xnet_type} - {$type} + {$xnet_type}