Beispiel #1
0
<?php

include '../action_bdd/action_bdd.php';
include '../include/fonctions.php';
$table_statut = NULL;
$recup_statut = select_all_statut();
$recup_nb_statut = select_nb_statut();
$nb_statut = mysql_fetch_array($recup_nb_statut, ENT_QUOTES);
$cpt = 0;
while ($row = mysql_fetch_array($recup_statut, ENT_QUOTES)) {
    $table_statut[$cpt][0] = $row["id"];
    $table_statut[$cpt][1] = $row["libelle_statut"];
    $cpt = $cpt + 1;
}
$search_num = "";
$search_nom = "";
$search_prenom = "";
$search_civilite = "";
$search_date_naissance = "";
$search_lieu_naissance = "";
$search_pays_naissance = "";
$search_nationalite = "";
$search_radie = "";
$search_date_debut_radie = "";
$search_date_fin_radie = "";
if (isset($_GET)) {
    if (isset($_GET["num"]) && $_GET["num"] != "") {
        $search_num = $_GET["num"];
    }
    if (isset($_GET["nom"]) && $_GET["nom"] != "") {
        $search_nom = $_GET["nom"];
Beispiel #2
0
		<td><input id="nom_statut" type="text" maxlength="100" size="30" value="<?php 
    echo affichage_input(affichage($_GET["nom_statut"]));
    ?>
"></td>
	<tr>
	<tr>
		<td>valider : </td>
		<td><input type="button" value="modifier" onclick="document.getElementById('alert').innerHTML = '';writediv(file('./contenu/gestion_statut.php?modif=true&id_statut=<?php 
    echo $_GET["id_statut"];
    ?>
&nom_statut='+document.getElementById('nom_statut').value));"></td>
	<tr>
</table>
<?php 
} else {
    $resultat = select_all_statut();
    ?>
<table>
	<tr>
		<td colspan="2">Cr&eacute;ation d'un statut : </td>
	<tr>
	<tr>
		<td>nom du statut : </td>
		<td><input id="nom_statut" type="text" maxlength="100" size="30"></td>
	<tr>
	<tr>
		<td>valider : </td>
		<td><input type="button" value="ajouter" onclick="document.getElementById('alert').innerHTML = '';writediv(file('./contenu/gestion_statut.php?ajout=true&nom_statut='+document.getElementById('nom_statut').value));"></td>
	<tr>
</table>
<br>
Beispiel #3
0
		</td>
	</tr>
	<tr>
		<td>
			Statut :
		</td>
		<td>
			<select name="id_statut" id="id_statut">
				<option value="0" <?php 
        if ($valeur["id_statut"] == "0") {
            echo "selected";
        }
        ?>
>-</option>
			<?php 
        $status = select_all_statut();
        while ($res = mysql_fetch_array($status, MYSQL_ASSOC)) {
            ?>
<option value="<?php 
            echo $res["id"];
            ?>
" <?php 
            if ($valeur["id_statut"] == $res["id"]) {
                echo "selected";
            }
            ?>
><?php 
            echo $res["libelle_statut"];
            ?>
</option><?php 
        }
Beispiel #4
0
    if ($value == "25") {
        $certif_date = true;
        $entete .= "date de certificat;";
    }
    if ($value == "26") {
        $first_date = true;
        $entete .= "date de 1ere inscription;";
    }
    if ($value == "27") {
        $actual_date = true;
        $entete .= "date de radiation;";
    }
}
//echo $entete;exit();
$ContenuFichier = $entete . "\n";
$SQL_STATUTS = select_all_statut();
$SQL_DATE = select_all_date();
$toutes_dates = "";
$i = 0;
while ($dates = mysql_fetch_array($SQL_DATE, ENT_QUOTES)) {
    $j = 0;
    $k = 0;
    foreach ($dates as $key => $value) {
        if ($j == 0 || $j == 2 || $j == 4 || $j == 6 || $j == 8 || $j == 10) {
            $toutes_dates[$i][$k] = $value;
            $k = $k + 1;
        }
        $j = $j + 1;
    }
    $i = $i + 1;
}