first reimport from platal
[platal.git] / templates / xnet / login.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2004 Polytechnique.org                             *}
4 {*  http://opensource.polytechnique.org/                                  *}
5 {*                                                                        *}
6 {*  This program is free software; you can redistribute it and/or modify  *}
7 {*  it under the terms of the GNU General Public License as published by  *}
8 {*  the Free Software Foundation; either version 2 of the License, or     *}
9 {*  (at your option) any later version.                                   *}
10 {*                                                                        *}
11 {*  This program is distributed in the hope that it will be useful,       *}
12 {*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *}
13 {*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *}
14 {*  GNU General Public License for more details.                          *}
15 {*                                                                        *}
16 {*  You should have received a copy of the GNU General Public License     *}
17 {*  along with this program; if not, write to the Free Software           *}
18 {*  Foundation, Inc.,                                                     *}
19 {*  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA               *}
20 {*                                                                        *}
21 {**************************************************************************}
22
23 <h1>
24   Accès à Polytechnique.net
25 </h1>
26  
27 <noscript>
28   <p class="erreur">
29     Ton navigateur n'accepte pas le javaScript !!
30   </p>
31   <p>
32     Cette forme de script web est nécessaire pour l'utilisation du site.
33     Pour en savoir plus, regarde la <a href="faq.php#connect">FAQ</a>.
34   </p>
35 </noscript>
36
37 <table class='large' cellpadding="4" cellspacing="0">
38   <tr>
39     <th style="width: 50%;">
40       Accès pour les Polytechniciens
41     </th>
42     <th>
43       Accès pour les extérieurs
44     </th>
45   </tr>
46   <tr>
47     <td style="padding: 1em">
48       <p class="descr">
49       Il suffit de suivre <strong><a href="{$smarty.session.session->loginX}">ce lien</a></strong> qui va te rediriger vers
50       <a href="https://www.polytechnique.org/">Polytechnique.org</a> brièvement.
51       </p>
52       <p class="descr">
53       Une fois autentifié sur Polytechnique.org, tu seras redirigé sur X.net
54       </p>
55       <div class="center">
56         <strong>
57           <a href="{$smarty.session.session->loginX}">ME CONNECTER</a>
58         </strong>
59       </div>
60     </td>
61     <td style="padding: 1em">
62       <form action="{$smarty.server.REQUEST_URI}" method="post" id="login" onsubmit="doChallengeResponse(); return false;">
63         <table class="large" cellpadding="4" cellspacing="0" summary="Formulaire de login">
64           <tr>
65             <th colspan="2">Connexion
66               <input type="hidden" name="remember" value="" />
67               <input type="hidden" name="domain" value="" />
68             </th>
69           </tr>
70           <tr>
71             <td class="titre">
72               Login
73             </td>
74             <td>
75               <input type="text" name="username" size="20" maxlength="50" value="" />
76             </td>
77           </tr>
78           <tr>
79             <td class="titre">
80               Mot de passe:
81             </td>
82             <td>
83               <input type="password" name="password" size="10" maxlength="10" />
84             </td>
85           </tr>
86           <tr>
87             <td colspan="2" class="center">
88               <input type="submit" name="submitbtn" value="Envoyer" />
89             </td>
90           </tr>
91         </table>
92       </form>
93
94       (Activer obligatoirement le <strong>javascript</strong>)
95       {if $smarty.request.response}<!-- failed login code //-->
96       <div class="erreur">
97         Erreur d'identification. Essaie à nouveau !
98       </div>
99       {/if}
100     </td>
101   </tr>
102 </table>
103
104 <!-- Set up the form with the challenge value and an empty reply value //-->
105 <form action="{$smarty.server.REQUEST_URI}" method="post" id="loginsub">
106   <div>
107     <input type="hidden" name="challenge" value="{$smarty.session.session->challenge}" />
108     <input type="hidden" name="response"  value="" />
109     <input type="hidden" name="username"  value="" />
110     <input type="hidden" name="remember"  value="" />
111     <input type="hidden" name="domain"    value="" />
112   </div>
113 </form>
114
115 {literal}
116 <script type="text/javascript">
117   <!--
118   // Activate the appropriate input form field.
119   if (document.forms.login.username.value == '') {
120     document.forms.login.username.focus();
121   } else {
122     document.forms.login.password.focus();
123   }
124   // -->
125 </script>
126 {/literal}
127
128 {* vim:set et sw=2 sts=2 sws=2: *}