aboutsummaryrefslogtreecommitdiff
path: root/form-connexion.py
blob: 09eaf706ceb6477a23ae4c51488110eee6aeb585 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/python
# -*- coding: utf-8 -*-

import mod_python
import fonctions

def index(req):
	req.content_type="text/html"
	req.write(fonctions.codeHTML("Page de connexion","""
<h2>Veuillez vous connectez pour accéder à nos services.</h2>
<form method="POST" action="connexion.py">
    <table>
        <tr>
            <td>Login</td>
            <td><input type="text" name="login"/></td>
            <td></td>
        </tr>
        <tr>
            <td>Mot de passe</td>
            <td><input type="password" name="password"/></td>
            <td><input type="submit" value="Valider"/></td>
        </tr>
    </table>
</form>
"""))