From: x2000habouzit Date: Wed, 11 Feb 2004 15:35:31 +0000 (+0000) Subject: mails.php + css simplifications X-Git-Tag: xorg/old~1872 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=32dbccc55c019cb459281bb94edd580db85091d0;p=platal.git mails.php + css simplifications --- diff --git a/etat_migration b/etat_migration index ab5d65d..17f4d4a 100644 --- a/etat_migration +++ b/etat_migration @@ -68,7 +68,6 @@ Etat | Ancien nom | Nouveau nom | sondage/titre.php | | sondage/validation.php | ------+-[ emails ... ]----------------------------+---------------- - | emails.php | | routage-mail.php | ------+-[ inscription + mdp ]---------------------+---------------- | inscrire.php | @@ -174,6 +173,7 @@ xx | docs/doc_ssl.php | - xx | docs/index.php | - xx | domaineperso.php | - xx | dons.php | - +xx | emails.php | - xx | ethique.php | docs/ethique.php xx | exit.php | - xx | faq.php | docs/faq.php diff --git a/htdocs/css/default.css b/htdocs/css/default.css index 16c2ff0..5896c6f 100644 --- a/htdocs/css/default.css +++ b/htdocs/css/default.css @@ -26,6 +26,8 @@ li { padding-left: 3px; padding-right: 3px; text-align: justify; } hr { width: 90%; text-align: center } .center { text-align: center; } +.right { text-align: right; } +.middle { vertical-align: middle; } /**: II. :**/ @@ -94,6 +96,8 @@ p.smaller, div.smaller { font-style: italic; } +td.half { width: 50%; padding: 4px; } + /**: III. :**/ table.bicol { @@ -241,4 +245,4 @@ table.tinybicol td.info, table.bicol td.info { vertical-align: top; } /* vim: set et ts=4 sts=4 sw=4: */ -/* $Id: default.css,v 1.13 2004-02-04 22:47:45 x2000habouzit Exp $ */ +/* $Id: default.css,v 1.14 2004-02-11 15:35:32 x2000habouzit Exp $ */ diff --git a/htdocs/emails.php b/htdocs/emails.php new file mode 100644 index 0000000..0bc5187 --- /dev/null +++ b/htdocs/emails.php @@ -0,0 +1,27 @@ +assign('is_homonyme', $is_homonyme); +$page->assign('alias', $alias); + + +$sql = "SELECT email + FROM emails + WHERE uid = {$_SESSION["uid"]} AND num != 0 AND (FIND_IN_SET('active', flags) OR FIND_IN_SET('filtre', flags))"; +$page->mysql_assign($sql, 'mails', 'nb_mails'); + + +// on regarde si l'utilisateur a un alias et si oui on l'affiche ! +$sql = "SELECT domain FROM groupex.aliases WHERE id=12 AND email like '".$_SESSION['username']."'"; +$result = mysql_query($sql); +if ($result && list($aliases) = mysql_fetch_row($result)) + $page->assign('melix', substr($aliases,0,-3)); +mysql_free_result($result); + +$page->display(); +?> diff --git a/templates/docs/doc_nn.tpl b/templates/docs/doc_nn.tpl index d8922cb..fb1d06d 100644 --- a/templates/docs/doc_nn.tpl +++ b/templates/docs/doc_nn.tpl @@ -1,4 +1,4 @@ -{* $Id: doc_nn.tpl,v 1.4 2004-02-11 13:15:34 x2000habouzit Exp $ *} +{* $Id: doc_nn.tpl,v 1.5 2004-02-11 15:35:32 x2000habouzit Exp $ *}

[Configuration du smtp] @@ -93,7 +93,7 @@ correspondre à l'écran ci-contre.

- +

2. Dans la partie Serveur de courrier sortant, indique ssl.polytechnique.org dans le champ Serveur de diff --git a/templates/docs/doc_nntp.tpl b/templates/docs/doc_nntp.tpl index 722cfa7..c161bce 100644 --- a/templates/docs/doc_nntp.tpl +++ b/templates/docs/doc_nntp.tpl @@ -1,4 +1,4 @@ -{* $Id: doc_nntp.tpl,v 1.3 2004-02-11 13:15:34 x2000habouzit Exp $ *} +{* $Id: doc_nntp.tpl,v 1.4 2004-02-11 15:35:32 x2000habouzit Exp $ *}

Les forums de Polytechnique.org

@@ -88,7 +88,9 @@

La configuration pas à pas, images à l'appui : diff --git a/templates/docs/doc_oe.tpl b/templates/docs/doc_oe.tpl index 5add7fa..82fb234 100644 --- a/templates/docs/doc_oe.tpl +++ b/templates/docs/doc_oe.tpl @@ -1,4 +1,4 @@ -{* $Id: doc_oe.tpl,v 1.4 2004-02-11 13:15:34 x2000habouzit Exp $ *} +{* $Id: doc_oe.tpl,v 1.5 2004-02-11 15:35:32 x2000habouzit Exp $ *}

[Configuration du smtp] @@ -145,7 +145,7 @@ - - @@ -278,7 +278,7 @@ Et maintenant quelques remarques : - - diff --git a/templates/docs/index.tpl b/templates/docs/index.tpl index 4b05ea8..7f45151 100644 --- a/templates/docs/index.tpl +++ b/templates/docs/index.tpl @@ -1,4 +1,4 @@ -{* $Id: index.tpl,v 1.4 2004-02-11 13:15:34 x2000habouzit Exp $ *} +{* $Id: index.tpl,v 1.5 2004-02-11 15:35:32 x2000habouzit Exp $ *}
Documentations et Aides diverses @@ -10,7 +10,7 @@
- - - - {/if} - - - - - - diff --git a/templates/password_prompt_logged.tpl b/templates/password_prompt_logged.tpl index 0f31147..bb0e005 100644 --- a/templates/password_prompt_logged.tpl +++ b/templates/password_prompt_logged.tpl @@ -1,4 +1,4 @@ -{* $Id: password_prompt_logged.tpl,v 1.8 2004-02-04 19:47:47 x2000habouzit Exp $ *} +{* $Id: password_prompt_logged.tpl,v 1.9 2004-02-11 15:35:32 x2000habouzit Exp $ *}
+

1. Dans l'onglet "Serveurs", indique ssl.polytechnique.org comme serveur SMTP @@ -260,7 +260,7 @@ Et maintenant quelques remarques :

+ 1. Dans le menu principal d'Outlook Express, choisis le sous-menu "Comptes".
+ 1. Un compte est désigné par un nom de serveur. Il est possible que tu aies une liste vide la première fois que tu ouvres cette boite. Ici tu vois à quoi tu devras arriver en fin de configuration. @@ -299,7 +299,7 @@ Et maintenant quelques remarques :
+ 1. Tu vas alors arriver à l'écran de configuration suivant (après avoir éventuellement du cliquer plusieurs fois sur suivant).
+ @@ -80,7 +80,7 @@
+ @@ -107,7 +107,7 @@
+ diff --git a/templates/emails.tpl b/templates/emails.tpl new file mode 100644 index 0000000..f518425 --- /dev/null +++ b/templates/emails.tpl @@ -0,0 +1,115 @@ +{* $Id: emails.tpl,v 1.1 2004-02-11 15:35:32 x2000habouzit Exp $ *} + +
+Gestion de mes courriers électroniques +
+ +{dynamic} + + + + + + + + + + + +
Mes adresses polytechniciennes à vie {if !$is_homonyme}*{/if}
+ Tes adresses polytechniciennes sont + {$smarty.session.username}@polytechnique.org et + {$smarty.session.username}@m4x.org + (M4X signifie mail for X, son intérêt est de te doter d'une adresse à vie + moins "voyante" que l'adresse @polytechnique.org). + {if $alias} + Tu disposes également des adresses {$alias}@polytechnique.org et {$alias}@m4x.org + {/if} +
+ Elles seront prochainement complétées d'une adresse @polytechnique.edu, + plus lisible dans les pays du monde où "Polytechnique" n'évoque pas grand chose, + .edu étant le suffixe propre aux universités et établissements d'enseignement supérieur. +

+
+ +
+ + + + + + + + +
Où est-ce que je reçois le courrier qui m'y est adressé ?
+ Actuellement, tout courrier électronique qui t'y est adressé, est envoyé + {if $nb_mails eq 1} à l'adresse {else} aux adresses {/if} + {section name=mail loop=$mails} + {$mails[mail].email}{if $smarty.section.mail.last}.{else}, {/if} + {/section} +
+ Si tu souhaites modifier ce reroutage de ton courrier, + il te suffit de te rendre ici ! +
+ +
+ + + + + + + + +
Antivirus, antispam +
+ Tous les courriers qui te sont envoyés sur tes adresses polytechniciennes sont + filtrés par un logiciel antivirus très performant. Il te protège de ces + vers très gênants, qui se propagent souvent par le courrier électronique. + + De même, un service antispam évolué est en place. Tu peux lui demander + de te débarrasser des spams que tu reçois. Pour en savoir plus, et l'activer, + c'est très simple, suis ce lien ! +
+
+ +
+ + + + + + + + + + + +
Un alias sympatique : melix !
+ Tu peux ouvrir en supplément une adresse synonyme de ton adresse @polytechnique.org, + sur les domaines @melix.org et @melix.net (melix = Mél X). +
+ {if $melix} + Tu disposes à l'heure actuelle des adresses {$melix}net et {$melix}org. + Pour demander à la place un autre alias melix, + il te suffit de te rendre ici + {else} + A l'heure actuelle tu n'as pas activé d'adresse melix. + Si tu souhaites le faire, il te suffit de venir ici + {/if} +
+ + +{if !$is_homonyme} +

+* Tu les garderas toute ta vie, sauf si un jour un homonyme d'une autre promotion +s'inscrit à Polytechnique.org (les cas d'homonymie sont très rares), +auquel cas ces adresses deviendraient +{$smarty.session.username}{$smarty.session.promo|regex_replace:"/^../":""}@polytechnique.org et +{$smarty.session.username}{$smarty.session.promo|regex_replace:"/^../":""}@m4x.org +

+{/if} + +{/dynamic} + +{* vim:set et sw=2 sts=2 sws=2: *} diff --git a/templates/include/form.valid.aliases.tpl b/templates/include/form.valid.aliases.tpl index de46392..cd07356 100644 --- a/templates/include/form.valid.aliases.tpl +++ b/templates/include/form.valid.aliases.tpl @@ -1,4 +1,4 @@ -{* $Id: form.valid.aliases.tpl,v 1.2 2004-02-07 17:18:16 x2000habouzit Exp $ *} +{* $Id: form.valid.aliases.tpl,v 1.3 2004-02-11 15:35:33 x2000habouzit Exp $ *}
@@ -24,7 +24,7 @@
+

diff --git a/templates/include/form.valid.epouses.tpl b/templates/include/form.valid.epouses.tpl index 54dcf81..48c40de 100644 --- a/templates/include/form.valid.epouses.tpl +++ b/templates/include/form.valid.epouses.tpl @@ -1,4 +1,4 @@ -{* $Id: form.valid.epouses.tpl,v 1.1 2004-02-07 17:26:29 x2000habouzit Exp $ *} +{* $Id: form.valid.epouses.tpl,v 1.2 2004-02-11 15:35:33 x2000habouzit Exp $ *} @@ -32,7 +32,7 @@
+

diff --git a/templates/include/form.valid.ml.tpl b/templates/include/form.valid.ml.tpl index a00779b..455bcaa 100644 --- a/templates/include/form.valid.ml.tpl +++ b/templates/include/form.valid.ml.tpl @@ -1,4 +1,4 @@ -{* $Id: form.valid.ml.tpl,v 1.1 2004-02-07 18:04:56 x2000habouzit Exp $ *} +{* $Id: form.valid.ml.tpl,v 1.2 2004-02-11 15:35:33 x2000habouzit Exp $ *} @@ -49,7 +49,7 @@
{$valid->membres_txt}
+

diff --git a/templates/include/form.valid.photos.tpl b/templates/include/form.valid.photos.tpl index d95c70a..e03e498 100644 --- a/templates/include/form.valid.photos.tpl +++ b/templates/include/form.valid.photos.tpl @@ -1,4 +1,4 @@ -{* $Id: form.valid.photos.tpl,v 1.1 2004-02-07 18:32:41 x2000habouzit Exp $ *} +{* $Id: form.valid.photos.tpl,v 1.2 2004-02-11 15:35:33 x2000habouzit Exp $ *} @@ -13,13 +13,13 @@
+ username"|url}" style="width:110px;" alt=" [ PHOTO ] " /> username&req=true"|url}" style="width:110px;" alt=" [ PHOTO ] " />
+

diff --git a/templates/include/form.valid.sondages.tpl b/templates/include/form.valid.sondages.tpl index dec7261..d024241 100644 --- a/templates/include/form.valid.sondages.tpl +++ b/templates/include/form.valid.sondages.tpl @@ -1,4 +1,4 @@ -{* $Id: form.valid.sondages.tpl,v 1.1 2004-02-08 12:38:26 x2000habouzit Exp $ *} +{* $Id: form.valid.sondages.tpl,v 1.2 2004-02-11 15:35:33 x2000habouzit Exp $ *} @@ -28,7 +28,7 @@
+

diff --git a/templates/include/liste_domaines.tpl b/templates/include/liste_domaines.tpl index b9e5881..2d246dc 100644 --- a/templates/include/liste_domaines.tpl +++ b/templates/include/liste_domaines.tpl @@ -1,4 +1,4 @@ -{* $Id: liste_domaines.tpl,v 1.1 2004-02-04 19:47:47 x2000habouzit Exp $ *} +{* $Id: liste_domaines.tpl,v 1.2 2004-02-11 15:35:33 x2000habouzit Exp $ *} {dynamic} {$result} @@ -14,12 +14,12 @@ Administrer le routage email sur ton(tes) domaine(s) Cependant, prends bien note que cette administration se fera bientôt depuis le site www.polytechnique.net.

-

+

{foreach item=dom from=$domaines} {$dom}
{/foreach} -

+
{/if} {/dynamic} diff --git a/templates/password_prompt.tpl b/templates/password_prompt.tpl index 94d200f..aca628a 100644 --- a/templates/password_prompt.tpl +++ b/templates/password_prompt.tpl @@ -1,4 +1,4 @@ -{* $Id: password_prompt.tpl,v 1.11 2004-02-04 22:14:12 x2000habouzit Exp $ *} +{* $Id: password_prompt.tpl,v 1.12 2004-02-11 15:35:32 x2000habouzit Exp $ *}
+
@@ -33,7 +33,7 @@  [ ? ] J'ai perdu mon mot de passe - diff --git a/templates/trezo/gere_operations.tpl b/templates/trezo/gere_operations.tpl index 744aed6..213e17e 100644 --- a/templates/trezo/gere_operations.tpl +++ b/templates/trezo/gere_operations.tpl @@ -1,4 +1,4 @@ -{* $Id: gere_operations.tpl,v 1.2 2004-02-11 13:15:35 x2000habouzit Exp $ *} +{* $Id: gere_operations.tpl,v 1.3 2004-02-11 15:35:33 x2000habouzit Exp $ *} {dynamic} @@ -66,7 +66,7 @@ - +
+
Solde en début de mois
{$from_solde}{$from_solde}
@@ -102,8 +102,8 @@ {$op.id} {$op.date|date_format:"%d/%m/%Y"} {$op.label} - {$op.debit} - {$op.credit} + {$op.debit} + {$op.credit} @@ -124,7 +124,7 @@ Solde en fin de mois - {$to_solde} + {$to_solde} diff --git a/templates/trezo/index.tpl b/templates/trezo/index.tpl index c576fd2..ca38374 100644 --- a/templates/trezo/index.tpl +++ b/templates/trezo/index.tpl @@ -1,4 +1,4 @@ -{* $Id: index.tpl,v 1.2 2004-02-11 13:15:35 x2000habouzit Exp $ *} +{* $Id: index.tpl,v 1.3 2004-02-11 15:35:33 x2000habouzit Exp $ *} {dynamic} @@ -11,7 +11,7 @@ Solde en début de mois - {$from_solde} + {$from_solde} @@ -28,8 +28,8 @@ {$op.date|date_format:"%d/%m/%Y"} {$op.label} - {$op.debit} - {$op.credit} + {$op.debit} + {$op.credit} {/foreach} @@ -41,7 +41,7 @@ Solde en fin de mois - {$to_solde} + {$to_solde}