Bonjour,
Voici mn code
<?php require_once('../Connections/gesco1.php'); ?>
<?php
mysql_select_db($database_gesco1, $gesco1);
$query_Rec = "SELECT commissariat.Type_Commissariat FROM commissariat";
$Rec = mysql_query($query_Rec, $gesco1) or die(mysql_error());
$row_Rec = mysql_fetch_assoc($Rec);
$totalRows_Rec = mysql_num_rows($Rec);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<title>Page d'accueil</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="mm_spa.css" type="text/css" />
<style type="text/css">
<!--
.Style2 {color: #FFFFFF}
.Style9 {font-size: 14px}
.Style10 {
color: #FF0000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
}
.Style12 {color: #0000FF; font-size: 18px; font-weight: bold; }
.Style17 { font-size: 36px;
font-weight: bold;
font-family: Algerian;
color: #9900FF;
}
.Style18 { font-family: Algerian;
color: #9900FF;
}
-->
#menu-gesco, #menu-gesco ul{
padding:0;
margin:0;
list-style:none;
text-align:center;
}
#menu-gesco li{
display:inline-block;
position:relative;
border-radius:8px 8px 0 0;
}
#menu-gesco ul li{
display:inherit;
border-radius:0;
}
#menu-gesco ul li:hover{
border-radius:0;
}
#menu-gesco ul li:last-child{
border-radius:0 0 8px 8px;
}
#menu-gesco ul{
position:absolute;
max-height:0;
left: 16px;
right: 0;
overflow:hidden;
-moz-transition: .8s all .3s;
-webkit-transition: .8s all .3s;
transition: .8s all .3s;
top: 139px;
}
#menu-gesco li:hover ul{
max-height:15em;
}
/* background des liens menus */
#menu-gesco li:first-child{
background-color: #3399FF;
background-image:-webkit-linear-gradient(top, #3399FF 0%, #3399FF 100%);
background-image:linear-gradient(to bottom, #3399FF 0%, #3399FF 100%);
}
#menu-gesco li:nth-child(2){
background-color: #3399FF;
background-image: -webkit-linear-gradient(top, #3399FF 0%, #3399FF 100%);
background-image:linear-gradient(to bottom, #3399FF 0%, #3399FF 100%);
}
#menu-gesco li:nth-child(3){
background-color: #3399FF;
background-image:-webkit-linear-gradient(top, #3399FF 0%, #3399FF 100%);
background-image:linear-gradient(to bottom, #3399FF 0%, #3399FF 100%);
}
#menu-gesco li:nth-child(4){
background-color: #3399FF;
background-image:-webkit-linear-gradient(top, #3399FF 0%, #3399FF 100%);
background-image:linear-gradient(to bottom, #3399FF 0%, #3399FF 100%);
}
#menu-gesco li:nth-child(5){
background-color: #3399FF;
background-image:-webkit-linear-gradient(top, #3399FF 0%, #3399FF 100%);
background-image:linear-gradient(to bottom, #3399FF 0%, #3399FF 100%);
}
#menu-gesco li:last-child{
background-color: #3399FF;
background-image:-webkit-linear-gradient(top, #3399FF 0%, #3399FF 100%);
background-image:linear-gradient(to bottom, #3399FF 0%, #3399FF 100%);
}
/* background des liens sous menus */
#menu-gesco li:first-child li{
background:#3399FF;
}
#menu-gesco li:nth-child(2) li{
background:#3399FF;
}
#menu-gesco li:nth-child(3) li{
background:#3399FF;
}
#menu-gesco li:nth-child(4) li{
background:#3399FF;
}
#menu-gesco li:nth-child(5) li{
background:#3399FF;
}
#menu-gesco li:last-child li{
background:#3399FF;
}
/* background des liens menus et sous menus au survol */
#menu-gesco li:first-child:hover, #menu-gesco li:first-child li:hover{
background:#3399FF;
}
#menu-gesco li:nth-child(2):hover, #menu-gesco li:nth-child(2) li:hover{
background:#3399FF;
}
#menu-gesco li:nth-child(3):hover, #menu-gesco li:nth-child(3) li:hover{
background:#3399FF;
}
#menu-gesco li:nth-child(4):hover, #menu-gesco li:nth-child(4) li:hover{
background:#3399FF;
}
#menu-gesco li:nth-child(5):hover, #menu-gesco li:nth-child(5) li:hover{
background:#3399FF;
}
#menu-gesco li:last-child:hover, #menu-gesco li:last-child li:hover{
background:#3399FF;
}
/* les a href */
#menu-gesco a{
text-decoration:none;
display:block;
padding:10px 100px;
color:#fff;
font-family:arial;
}
#menu-gesco ul a{
padding:8px 0;
}
#menu-gesco li:hover li a{
color:#fff;
text-transform:inherit;
}
#menu-gesco li:hover a, #menu-gesco li li:hover a{
color:#000;
}
.Style19 {color: #000000}
body,td,th {
color: #000000;
}
body {
background-color: #FFFFFF;
}
.Style20 {font-size: 18px}
.Style21 {font-size: 14px; font-weight: bold; }
</style>
</head>
<body bgcolor="#990000" background="mm_bg_red.gif">
<table width="1241" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr bgcolor="#220103">
<td colspan="2" rowspan="2" nowrap="nowrap" bgcolor="#55FFFF"><img src="image/logo police.png" alt="Header image" width="215" height="191" border="0" /></td>
<td height="55" colspan="2" valign="bottom" nowrap="nowrap" bgcolor="#55FFFF" id="logo"><div align="center">
<p align="center"><span class="Style17">GESCO V1.0</span></p>
<p align="center" class="Style18">Gestion de la Main courante et du Fichier des Délinquants</p>
<h1> </h1>
</div></td>
<td width="4" rowspan="2" bgcolor="#55FFFF"> </td>
<td width="4" rowspan="2" bgcolor="#55FFFF"> </td>
</tr>
<tr bgcolor="#220103">
<td height="48" colspan="2" valign="top" nowrap="nowrap" bgcolor="#55FFFF" id="tagline"><div align="center" class="Style2">
<p> </p>
<p class="Style12">Force - Efficacité - Discipline </p>
</div></td>
</tr>
<tr bgcolor="#FF9900">
<td height="2" colspan="6" bgcolor="#00CCFF"><img src="mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
</tr>
<tr bgcolor="#FF080E">
<td colspan="6"><img src="mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
</tr>
<tr bgcolor="#FF9900">
<td colspan="6"><img src="mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
</tr>
<tr bgcolor="#FF080E">
<td colspan="6" bgcolor="#55FFFF"><img src="mm_spacer.gif" alt="" width="1" height="18" border="0" />
<ul id="menu-gesco">
<li><a href="accueil.php">Accueil</a>
<li><a href="#">Main courante</a> </li>
<li><a href="#">SPA</a> </li>
<li><a href="#">BRQ</a></li>
<li><a href="index.php">Deconnexion</a> </li>
</ul> </td>
</tr>
<tr bgcolor="#FF9900">
<td colspan="6"><img src="mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
</tr>
<tr bgcolor="#FF080E">
<td colspan="6"><img src="mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
</tr>
<tr bgcolor="#FF9900">
<td colspan="6" bgcolor="#00CCFF"><img src="mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
</tr>
<tr>
<td width="18" valign="top" id="navborder"> <br /></td>
<td width="197"> </td>
<td width="1601" valign="top"><p align="center"><img src="mm_spacer.gif" alt="" width="305" height="1" border="0" /><br />
<br />
<br />
</p>
<form name="form1_insertservice" action="insertservice.php" method="POST">
<?php
function trans_date($date)
{
$madate=substr($date,0,2) ."/".substr($date,3,2)."/".substr($date,6,4);
return;
}
?>
<table width="512" height="176" border="0" align="center" cellpadding="2" cellspacing="2">
<tr align="center">
<td width="248">Nom_du_commissariat</td>
<td width="250"><input type="text" name="textnom"></td>
</tr>
<tr align="center">
<td>Libellé_Service</td>
<td><input type="text" name="textservice"></td>
</tr>
<tr align="center">
<td>DATE_AFFECTATION</td>
<td> <select name="jour">
<option vlaue="01">1</option>
<option vlaue="02">2</option>
<option vlaue="03">3</option>
<option vlaue="04">4</option>
<option vlaue="05">5</option>
<option vlaue="06">6</option>
<option vlaue="07">7</option>
<option vlaue="08">8</option>
<option vlaue="09">9</option>
<option vlaue="10">10</option>
<option vlaue="11">11</option>
<option vlaue="12">12</option>
<option vlaue="13">13</option>
<option vlaue="14">14</option>
<option vlaue="15">15</option>
<option vlaue="16">16</option>
<option vlaue="17">17</option>
<option vlaue="18">18</option>
<option vlaue="19">19</option>
<option vlaue="20">20</option>
<option vlaue="21">21</option>
<option vlaue="22">22</option>
<option vlaue="23">23</option>
<option vlaue="24">24</option>
<option vlaue="25">25</option>
<option vlaue="26">26</option>
<option vlaue="27">27</option>
<option vlaue="28">28</option>
<option vlaue="29">29</option>
<option vlaue="30">30</option>
<option vlaue="31">31</option>
</select>
-
<select name="mois">
<option vlaue="01">Janvier</option>
<option vlaue="02">Février</option>
<option vlaue="03">Mars</option>
<option vlaue="04">Avril</option>
<option vlaue="05">Mai</option>
<option vlaue="06">Juin</option>
<option vlaue="07">Juillet</option>
<option vlaue="08">Août</option>
<option vlaue="09">Septembre</option>
<option vlaue="10">Octobre</option>
<option vlaue="11">Novembre</option>
<option vlaue="12">Décembre</option>
</select>
-
<select name="annee">
<option vlaue="1995">1995</option>
<option vlaue="1996">1996</option>
<option vlaue="1997">1997</option>
<option vlaue="1998">1998</option>
<option vlaue="1999">1999</option>
<option vlaue="2000">2000</option>
<option vlaue="2001">2001</option>
<option vlaue="2002">2002</option>
<option vlaue="2003">2003</option>
<option vlaue="2004">2004</option>
<option vlaue="2005">2005</option>
<option vlaue="2006">2006</option>
<option vlaue="2007">2007</option>
<option vlaue="2008">2008</option>
<option vlaue="2009">2009</option>
<option vlaue="2010">2010</option>
<option vlaue="2011">2011</option>
<option vlaue="2012">2012</option>
<option vlaue="2013">2013</option>
<option vlaue="2014">2014</option>
<option vlaue="2015">2015</option>
<option vlaue="2016">2016</option>
<option vlaue="2017">2017</option>
<option vlaue="2018">2018</option>
<option vlaue="2019">2019</option>
<option vlaue="2020">2020</option>
<option vlaue="2021">2021</option>
<option vlaue="2022">2022</option>
<option vlaue="2023">2023</option>
<option vlaue="2024">2024</option>
<option vlaue="2025">2025</option>
</select>
</td>
<tr align="center">
<td colspan="2"><input type="submit" value="Insérer un service"> </tr>
<tr align="center">
<td colspan="2"> </tr>
</table>
</form>
</p></td>
<td width="50"><img src="mm_spacer.gif" alt="" width="50" height="1" border="0" /></td>
<td width="4" valign="top"><br /></td><td width="4"> </td>
</tr>
<tr>
<td width="18"> </td>
<td width="197"> </td>
<td width="1601"><table width="1601" height="18" border="0">
</body>
</html>
<?php
mysql_free_result($Rec);
?>
J'aimerai recuperer les valeur jour, mois et année du formulaire pour les inserer dans la base de données, j'ai essayer plusieurs méthode pour l'instant j'ai du mal à finaliser le code, si quelqu'un peu m'aider?
EDIT : AJOUT DES BALISES DE CODE !
Afficher la suite