x.net/index.php
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Sun, 17 Apr 2005 20:33:53 +0000 (20:33 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:28:33 +0000 (23:28 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-553

htdocs.net/css/xnet.css
htdocs.net/images/puce.png
htdocs.net/index.php [new file with mode: 0644]
templates/xnet/index.tpl [new file with mode: 0644]
templates/xnet/skin.tpl

index e6be0ae..ebb3355 100644 (file)
@@ -23,12 +23,10 @@ body {
     margin-left: 0;
     margin-top: 0;
     color: #505050;
-    font-family: "Bitstream vera sans","Verdana",sans-serif;
-    font-size: 10pt;
     border-top: 1px;
 }
 
-table {
+table, body {
     font-size: 10pt;
     font-family: "Bitstream vera sans","Verdana",sans-serif;
 }
@@ -37,9 +35,10 @@ input,textarea,select,option,tt,pre {
     font-size: 10pt;
 }
 
-a img {
-    border: none;
-}
+a, a:link, a:visited     { text-decoration: none ; color: #5c81aa; }
+
+a img { border: none; }
+img   { vertical-align: middle; }
 
 /***************************************************************************
  * DEBUG
@@ -89,33 +88,37 @@ td#search {
 }
 
 /***************************************************************************
+ * CLASSES
  ***************************************************************************/
 
-img { vertical-align: middle; }
-
-a:link {
-    color: #5C81AA;
+.descr {
+    text-align: justify;
+    font-size: 85%;
+    font-weight: bold;
 }
-a:visited {
-    color:  #5C81AA;
+p.descr {
+    padding-left: 7px;
+    padding-right: 7px;
 }
 
-a.s:link {
-    text-decoration: none ;
-    color: #9F81AD;
+table.links {
+    width: 100%;
+    margin: 0.4em 0em;
 }
-a.s:visited {
-    text-decoration: none ;
-    color: #9F81AD;
+
+table.links td {
+    padding: 0em 0.5em;
 }
 
-table.tableprincipale {
-    width: 765px;
-    border: 0px;
-    margin: 0px;
-    padding: 0px;
+table.links a {
+    background: url('../images/puce.png') no-repeat center left;
+    padding-left: 15px;
+    font-weight: bold;
 }
 
+/***************************************************************************
+ ***************************************************************************/
+
 table.menu { width: 150px; }
 
 th.menu {
@@ -188,42 +191,13 @@ td.choix1actif {
 td.choix2 {
     height: 20px;
     background-color: #D0C198;
-    font-size: 80%;
+    font-size: 85%;
 }
 td.choix2actif {
     height: 20px;
     background-color: #5C81AA;
     color:#D0C198;
 }
-DIV.choix2 {
+div.choix2 {
     text-align: center;
 }
-
-td.liens-puce {
-    width: 15px;
-    vertical-align: center;
-    padding-left: 0.25em;
-}
-
-td.liens {
-    vertical-align: center;
-    padding-left: 0.5em;
-    text-align: left;
-}
-
-td.tdliens {
-    padding: 0.4em 0em 0.4em 0em;
-}
-
-P.descr {
-    text-align: justify;
-    font-size: 90%;
-    font-weight: bold;
-    padding-left: 7px;
-    padding-right: 7px;
-}
-ul.descr {
-    text-align: justify;
-    font-size: 80%;
-    font-weight: bold;
-}
index 0955648..2396856 100644 (file)
Binary files a/htdocs.net/images/puce.png and b/htdocs.net/images/puce.png differ
diff --git a/htdocs.net/index.php b/htdocs.net/index.php
new file mode 100644 (file)
index 0000000..98236fb
--- /dev/null
@@ -0,0 +1,7 @@
+<?php
+    require 'xnet.inc.php';
+    require 'xnet/page.inc.php';
+
+    new_skinned_page('xnet/index.tpl', AUTH_PUBLIC);
+    $page->run();
+?>
diff --git a/templates/xnet/index.tpl b/templates/xnet/index.tpl
new file mode 100644 (file)
index 0000000..555bbfa
--- /dev/null
@@ -0,0 +1,63 @@
+{***************************************************************************
+ *  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                *
+ ***************************************************************************}
+
+<table style="width: 100%" cellpadding="0" cellspacing="0">
+  <tr>
+    <td>
+      <img src="images/parfait.jpg" width="459" height="200" alt="Logo des groupes" />
+    </td>
+
+    <td>
+      <p class="descr">
+      Polytechnique.net est le site dédié à toutes les activités associatives des polytechniciens,
+      Élèves ou Anciens.  Il décrit aussi les organismes institutionnels relatifs à l'Ecole
+      Polytechnique et les promotions présentes sur le web.
+      </p>
+      <p class="descr">
+      Ce site  vous propose des liens vers les forums de discussions et les sites webs des
+      différentes associations, des adresses où les contacter, et tous les renseignements utiles
+      pour mieux les connaître. Il offre d'autre part des
+      <a href="services.php"> outils de gestion de groupe</a> à l'intention de leurs responsables.
+      </p>
+      <p class="descr">
+      Si vous recherchez la page d'un groupe particulier, vous pouvez
+      <a href="plan.php">en consulter la liste</a>.
+      </p>
+    </td>
+  </tr>
+
+  <tr><td colspan="2"><img src="{rel}/images/barre.png" alt="----------" width="765" /></td></tr>
+
+  <tr>
+    <td colspan="2">
+      <table class="links" summary="liens" cellspacing="0" cellpadding="0">
+        <tr>
+          <td> <a href="groupes.php?cat=GroupesX">groupes X</a> </td>
+          <td> <a href="groupes.php?cat=Binets">binets</a> </td>
+          <td> <a href="autres.php?cat=Promotions">promotions</a> </td>
+          <td> <a href="autres.php?cat=Institutions">institutions</a> </td>
+          <td> <a href="plan.php">plan du site</a> </td>
+        </tr>
+      </table>
+    </td>
+  </tr>
+</table>
+
+{* vim:set et sw=2 sts=2 sws=2: *}
index 1249895..0434ac8 100644 (file)
@@ -51,8 +51,8 @@
     {include file=skin/common.devel.tpl}
     {include file=skin/common.bandeau.tpl}
 
-{assign var=type value=plan}
     <table id="layout" cellspacing="0" cellpadding="0">
+      {if $type}
       <tr>
         <td>
           <a href="{rel}/index.php"><img src="{rel}/images/asso-montants.png" alt="Logo Assos" /></a>
           <img src="{rel}/images/texte_{$type}.jpg" alt="{$type}" width="490" height="96" />
         </td>
       </tr>
+      {else}
+      <tr>
+        <td>
+          <img src="images/logo.png" alt="LOGO Assos" />
+        </td>
+        <td colspan="3" style="text-align: right">
+          <a href="https://www.polytechnique.org/"><img src="images/logo-xorg.png" alt="LOGO X.Org" /></a>
+          <img src="images/asso2.png" alt="titre_du_site" />
+        </td>
+      </tr>
+      <tr><td colspan="4"><img src="{rel}/images/barre.png" alt="----------" width="765" /></td></tr>
+      {/if}
 
       <tr>
         <td colspan="4">
@@ -79,7 +91,7 @@
           <strong>Se connecter en tant que:</strong>
           <ul>
             <li><a href="{$smarty.session.session->loginX}">polytechnicien</a></li>
-            <li><a href="">extérieur</a></li>
+            <li><a href="login.php">extérieur</a></li>
           </ul>
           {/only_public}
         </td>