File "frame_saisie.php"
Full path: /home/meharicl/www/rec/frame_saisie.php
File
size: 6.48 B
MIME-type: text/html
Charset: 8 bit
Download Open Edit Advanced Editor Back
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Recensement</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="generator" content="HAPedit 3.1">
<link rel="stylesheet" href="http://www.mehariclubdefrance.com/squelettes/habillage.css" type="text/css" media="projection, screen, tv" />
</Script>
</head>
<body class="page_sommaire">
<div id="page">
<div id="entete" align="center"><a href="http://www.mehariclubdefrance.com/spip">
<img src="http://www.mehariclubdefrance.com/fait3-3/site_logo.gif" width="512" height="155" alt="" title="" /></a>
</div>
</div>
<div class="hfeed" id="conteneur">
<div id="contenu">
<div class="cartouche invisible">
<h1 class="invisible">Mhari Club De France</h1>
</div>
<div class="hfeed" id="conteneur">
<div class="hentry" id="contenu">
<?
include('choix_xx.inc');
define('IN_PHPBB', true);
$phpbb_root_path = './../phpBB3/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
$user->session_begin();
$auth->acl($user->data);
$user->setup('');
//include("./../diaporama/bibliotheque/connexion_suivi_phpbb.inc");
if (isset($_GET['logout']))
{
$user->session_kill();
$user->session_begin();
}
if (isset($_POST['login']))
{
$username = request_var('username', '', true);
$password = request_var('password', '', true);
$autologin = (!empty($_POST['autologin'])) ? true : false;
$viewonline = (!empty($_POST['viewonline'])) ? 0 : 1;
$admin = 0;
// echo($username."-".$password."-".$autologin."-".$viewonline);
$result = $auth->login($username, $password, $autologin, $viewonline, $admin);
if ($result['status'] != LOGIN_SUCCESS)
{
$err = $user->lang[$result['error_msg']];
if ($result['error_msg'] == 'LOGIN_ERROR_USERNAME' || $result['error_msg'] == 'LOGIN_ERROR_PASSWORD')
{
$err = (!$config['board_contact']) ? sprintf($user->lang[$result['error_msg']], '', '') : sprintf($user->lang[$result['error_msg']], '<a href="mailto:' . htmlspecialchars($config['board_contact']) . '">', '</a>');
}
}
else
{
$auth->acl($user->data);
}
}
if ($user->data['user_id'] != ANONYMOUS)
{
echo('<div align="center">');
echo 'Bienvenue ' . $user->data['username'] ."-".$user->data['user_id']. '<br />';
echo '<a href="' . append_sid('?logout=true') . '">Déconnexion</a></div>';
echo('<form method="get" action="frame_postage.php">');
echo('<input type="hidden" name="id" value="0" size="20" >');
echo('
<table border="1" bordercolor="#FFFFFF"width="100%" >
<tr>
<th colspan="6" bgcolor="#FF8000">
Page de saisie
</th>
</tr>');
//Numro de srie
echo("<tr><td>Numéro série<br>");
echo('<select name="mehari_an">');
choix_mehari_an();
echo('</select>-');
//type
echo('<select name="mehari_type" >');
choix_type();
echo("</select>-");
echo('<input type="text" name="mehari_numero_serie" size="8" pattern="[0-9.]+" >');
echo("</td>");
//ENAC si 69
echo("<td>ENAC si 69<br>");
echo('<input type="text" name="ENAC" size="2" pattern="[0-9]+"');
echo("</td>");
//Immatriculation
echo("<td>Immatriculation<br>");
echo('<input type="text" name="mehari_immatriculation" size="11" pattern="[0-9A-Z-\s]+" ');
echo("</td>");
//required pattern="[-+0-9A-Za-z._]+"
//Date Immatriculation
echo("<td>Date Immatriculation<br>");
echo('<input type="date" name="mehari_date_circulation"
min="1968-01-01" max="1988-01-01"
');
echo("</td>");
//Modle
echo("<td>Modéle<br>");
echo('<select name="modele_id" >');
choix_modele();
echo("</select>");echo('</td>');
//Couleur
echo("<td>Couleur<br>");
echo('<select name="mehari_couleur">');
choix_couleur();
echo("</select></td></tr>");
//Nb places
echo("<tr><td>Nb de places<br>");
echo('<select name="mehari_place">');
choix_place();
echo("</select></td>");
//Nom
echo("<td>Nom Recenseur<br>");
echo('<input type="text" name="recensement_qui" size="10"></td>');
//Mail
echo("<td colspan=2>Mail Recenseur<br>");
echo('<input type="text" name="recensement_email" size="30" pattern="[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([_\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})"
value="'.get_mail($user->data['user_id']).'"></td>');
//Pseudo
echo("<td>Pseudo Recenseur<br>");
echo('<input type="text" name="mehari_pseudo_forum" size="15" value="'.$user->data['username'].'"></td>');
//Localisation
echo("<td>Localisation Recenseur<br>");
echo('<select name="departement_id">');
choix_departement();
echo("</select></td></tr>");
//commentaire
echo("<tr><td colspan=6>Commentaire<br>");
echo('<textarea cols=120 rows=5 name="recensement_note" ></textarea></td>');
echo("</tr>");
//validation
echo('</tr><tr><td colspan=6><div class="button">
<button type="submit">Soumettre le recensement</button>
</div></td></tr></table>');
echo("</form>");
//****
}
else
{
if($err)
{
echo "<font color=\"#000000\"><b>$err</b></font>";
}
?>
<form method="post">
<div align="center">
<b> <u>Merci de vous connecter</u></b>
<table>
<tr>
<td align="right">Pseudo:</td>
<td><input type="text" tabindex="1" name="username" size="25" /></td>
</tr>
<tr>
<td align="right">Mot de passe:</td>
<td><input type="password" tabindex="2" name="password" size="25" />
</td>
</tr>
<tr>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="login" tabindex="5" value="Connexion" /></td>
</tr>
</table></div>
</form>
<?php
}
//***************************************************************
function get_mail($user_id)
{
$link = mysqli_connect("mehariclclobale.mysql.db", "mehariclclobale", "Pva131254", "mehariclclobale");
$sql = "SELECT * FROM `phpbb_3users` WHERE `user_id` =".$user_id;
$result=$link->query($sql);
while($mail=$result->fetch_assoc())
{
return($mail['user_email']);
}
}
?>
</div>
</div>
</div>
</div>
<div id="navigation">
<div class="menu rubriques">
<h1>Gestion</h1>
<ul>
<li><a href="http://www.mehariclubdefrance.com/spip.php?rubrique82">Retour Espace Public</a></li>
<li><a href="http://www.mehariclubdefrance.com/rec/consultation/recherche.php">Recherche</a></li>
<li><a href="http://www.mehariclubdefrance.com/rec/saisie/saisie.php">Saisie</a></li>
</ul>
</div>
</div>
</body>
</html>