CHAPITRE 7 : DEVELOPPEMENT
DE L'APPLICATION
3.1. Présentation
de la structure du logiciel (Ecran de présentation au
démarrage
Ici nous avions
réalisés cette application, on utilisant langage PHP
associé avec son langage de script HTML et pour l'implémentation
de la base des données nous utilisons phpMyadmin.
PRESENTATION DES
INTERFACES
0. PAGE
D'ACCUEIL
On a réalisé cette
interface à l'aide de langage script de HTML et la PHP. Et il est notre
partie d'accueil qui a. les menus pour accéder au différents
procédures.
![](CONCEPTION-ET-IMPLEMENTATION-DUNE-BASE-DE-DONNES-POUR-LA-PRODUCTION-DES-STATISTIQUES-DE-DELIBER27.png)
1. CONNEXION
C'est une interface très
important sur notre application, car il joue le rôle de
sécurité de donnes sur le logiciel, et nous conduit au menu
principal de données. Ainsi pour accéder aux procédures il
faudra d'introduire votre mot de passe (Password) et votre nom pour
t'identifier.
2. Procédure de
bouton Login (LoginForm)
A Partir de
HTML
<html>
<head>
<title>Login</title>
</head>
<body>
<form method="post"
action="checked.php" target="accueile">
Username:<input
type="text" name="login" /></br>
Password:<input
type="password" name="pass" /><br/>
<input type="submit"
value="Identifier" />
<input name="btn4"
type="submit" value="Fermer" title="Fermer ici" class="bouton"
/>
</form>
</body>
</html>
A PARTIR DE
PHP
<?php
$Login=$_POST['login'];
$Pass=$_POST['pass'];
if($Pass=="becko")
{
echo "Bonjour $Login
!";
/*...+donnees
importantes*/
print("<a
href=select.php>Entrez</a>");
}
else
{
echo"Acces non
autorisé";
}
?>
![](CONCEPTION-ET-IMPLEMENTATION-DUNE-BASE-DE-DONNES-POUR-LA-PRODUCTION-DES-STATISTIQUES-DE-DELIBER28.png)
Apres avoir saisir votre nom d'utilisateur et le mot de
passe, clic sur identifier, pour accéder au menu principal.
![](CONCEPTION-ET-IMPLEMENTATION-DUNE-BASE-DE-DONNES-POUR-LA-PRODUCTION-DES-STATISTIQUES-DE-DELIBER29.png)
Cette interface vous donne l'accès (Entrez) si votre
mot de passe est correct si non, vous n'êtes pas autorisé
d'accéder. (Retour).
![](CONCEPTION-ET-IMPLEMENTATION-DUNE-BASE-DE-DONNES-POUR-LA-PRODUCTION-DES-STATISTIQUES-DE-DELIBER30.png)
Ici c'est l'affichage du menu, pour l'utilisation de
diffèrent procédures pour la production statistique de
délibération.
3.2. PRÉSENTATION
DES INTERFACES ET DES FONCTIONS
a) PROCÉDURE DE
CRÉATION
Concernant notre conception nous
avions sélectionnés seulement quelques tables pour sortir notre
statistique de délibération des classes selon les
années.
En HTML
<html>
<head><title>ISC/KINSHASA:cours</title>
<style type="text/css">
<!--
.Style7 {
font-family: "Times New Roman",
Times, serif;
font-size: x-large;
}
-->
</style>
<script
type="text/JavaScript">
<!--
function MM_swapImgRestore() {
//v3.0
var i,x,a=document.MM_sr;
for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
x.src=x.oSrc;
}
function MM_preloadImages() {
//v3.0
var d=document; if(d.images){
if(!d.MM_p) d.MM_p=new Array();
var
i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){
d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) {
//v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);}
if(!(x=d[n])&&d.all)
x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById)
x=d.getElementById(n); return x;
}
function MM_swapImage() {
//v3.0
var
i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
if
((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src;
x.src=a[i+2];}
}
//-->
</script>
</head>
<body
onLoad="MM_preloadImages('IscBatAudi.jpg')">
<table width="786" height="492"
class="table">
<tr class="header">
<td bgcolor="#FF0000"
class="Style7" style="padding:5px"><h1 align="center">INSTITUT
SUPERIEUR DE COMMERCE
</h1> <div
style="float:right;">
<form name="F5"
method="post" action="select.php">
<h1 align="center">
<input name="btn4"
type="submit" value="Fermer" title="Fermer ici" class="bouton" />
</h1>
</form>
</div></td>
</tr>
<tr
style="width:100px;">
<td align="center">
<h1 align="center"
class="Style7"><a href="select.php" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image1','','IscBatAudi.jpg',1)"><img
src="AccueilIsc.jpg" alt="Auditoires isc/Gombe" name="Image1" width="204"
height="153" border="0"></a> </h1>
<div
align="center"><h3><font color=""><u>Saisie nouvel
statique</u></font></h3>
<form method="post"
action="statitique.bd.php">
<table border="0">
<tr>
<td>Année</td>
<td><select
name="Ref_Stat">
<option
value="">Selectionnez</option>
<option
value="2010">2010</option>
<option
value="2011">2011</option>
<option
value="2012">2012</option>
<option
value="2013">2013</option>
<option
value="2014">2014</option>
<option
value="2015">2015</option>
<option
value="2016">2016</option>
<option
value="2017">2017</option>
<option
value="2018">2018</option>
</select>
</tr>
<tr>
<td>Session</td>
<td><select
name="Ref_result">
<option
value="">Selectionnez</option>
<option
value="1SESS">1SESS</option>
<option
value="2SESS">2SESS</option>
<option
value="Recours">Recours</option>
</select>
</tr>
<tr>
<td>Classe</td>
<td><select
name="Classe">
<option
value="">Selectionnez</option>
<option value="G1 info
soir">G1 info soir</option>
<option value="G1 info
jour">G1 info jour</option>
<option value="G2 info
soir">G2 info soir</option>
<option value="G2 info
jour">G2 info jour</option>
<option value="G3 info
soir">G3 info soir</option>
<option value="G3 info
jour">G3 info jour</option>
<option value="G4 info
soir">G4 info soir</option>
<option value="L1 info">L1
info </option>
<option value="G1 info">G1
info</option>
</select></tr>
<tr>
<td>Effectif</td>
<td><input type="int"
name=" Effectif" size="3"></td>
</tr>
<tr>
<td>Nbre_Reus</td>
<td><input type="int"
name="Nbre_Reus" size="3"></td>
</tr>
<tr>
<td>Nbre_Ajour</td>
<td><input type="int"
name="Nbre_Ajour" size="3"></td>
</tr>
<tr>
<td>Nbre_Refusé</td>
<td><input type="int"
name="Nbre_Refusé" size="3"></td>
</tr>
</table>
<input type="submit"
name="valider" value="valider"><br>
<input name="rein"
value="Réinitialiser" type="Reset" class="bouton1" />
</form></div>
</body>
</html>
EN PHP
<style
type="text/css">
<!--
body,td,th {
font-size:
9mm;
color:
#33FFCC;
}
body {
background-image:
url(Site%20sans%20nom%202/Photo0027.jpg);
}
-->
</style><?php
include
("connexion.php");
import_request_variables("P","_");
$sql = "SELECT Ref_Stat
FROM statistique WHERE Ref_Stat='$_Ref_Stat'";
$req =
mysql_query($sql);
$res=mysql_num_rows($req);
if
(($_Classe=="")||($_Effectif==""))
{
echo"Il ne peut jamais
existé une statistique sans reférence ni nom libelé SVP
!<br><br>";
print("<a
href=statitique.php>Retour à la saisie</a>");
}
else if
($res!=0)
{
echo "<font
color='red'>Ce refénce statistique est de ja attribué à
autre statistique, veuillez saisir une autre
refénce!</font><br/><br/>";
print ("<a
href=statitique.php>Retour à la
saisie</a></center><br/>");
}
else
{
print("Section crée
avec succès.<br><br>");
$sql= "INSERT INTO
statistique(Ref_Stat, Ref_result,Classe, Effectif, Nbre_Reus, Nbre_Ajour,
Nbre_Refusé) VALUES
('Ref_Stat','$_Ref_result','$_Classe','$_Effectif','$_Nbre_Reus','$_Nbre_Ajour','$_Nbre_Refusé')";
mysql_query($sql,$db);
print ("<a
href=statitique.php> Autre ajout de
statistique?</a><br><br>");
}
mysql_close()
?>
![](CONCEPTION-ET-IMPLEMENTATION-DUNE-BASE-DE-DONNES-POUR-LA-PRODUCTION-DES-STATISTIQUES-DE-DELIBER31.png)
Cette interface nous permet de saisir notre nouvelle
statistique pour la classe selon l'année et la session.
![](CONCEPTION-ET-IMPLEMENTATION-DUNE-BASE-DE-DONNES-POUR-LA-PRODUCTION-DES-STATISTIQUES-DE-DELIBER32.png)
Cette interface apparait si la statistique est
crée, et vous donne l'accès d'ajouter une autre
statistique
b) PROCÉDURE DE
MODIFICATION
<html>
<head><title>ISC-KINSHASA :choix d'un
section à modifier</title></head>
<body>
<h3 align="center"><font
color=""><u>Quelle statisique voulez-vous modifier
?</u></font>
</h3>
<table align="center"
cellspacing="0" cellpadding="0" border="1" width="100%">
<tr>
<th
bgcolor="#000000"><font color="white">Ref_Stat</th>
<th
bgcolor="#000000"><font color="white">Ref_result</th>
<th
bgcolor="#000000"><font color="white">Année_Acad</th>
<th
bgcolor="#000000"><font color="white">Effectif</th>
<th
bgcolor="#000000"><font color="white">Nbre_Reus</th>
<th
bgcolor="#000000"><font color="white">Nbre_Ajour</th>
<th
bgcolor="#000000"><font color="white">Nbre_Refusé</th>
<th bgcolor="blue"><font
color="white">Votre choix</th>
</tr>
<?php
include("connexion.php");
$sql="SELECT * FROM statistique
ORDER BY Ref_Stat";
$Res=mysql_query($sql,$db);
while($ligne=mysql_fetch_object($Res))
{
print"<tr>";
print"<td><center>$ligne->Ref_Stat</center></td>";
print"<td>$ligne->Ref_result</td>";
print"<td>$ligne->Année_Acad</td>";
print"<td>$ligne->Effectif</td>";
print"<td>$ligne->Nbre_Reus</td>";
print"<td><center>$ligne->Nbre_Ajour</center></td>";
print"<td><center>$ligne->Nbre_Refusé</center></td>";
print"<td><center><ahref="."modification_bd.php?Ref_Stat=$ligne->Ref_Stat".">Modification</a></center></td>";
print"</tr>";
}
mysql_free_result($Res);
?>
</table>
</body>
</html>
include("connexion.php");
$sql="SELECT * FROM resultat ORDER
BY Ref_result";
$Res=mysql_query($sql,$db);
while($ligne=mysql_fetch_object($Res))
{
print"<tr>";
print"<td><center>$ligne->Ref_result</center></td>";
print"<td>$ligne->Libelé_Res</td>";
print"<td>$ligne->Nbre_Reuss</td>";
print"<td>$ligne->Nbre_Ajour</td>";
print"<td>$ligne->Nbre_Refusé</td>";
print"<td><center>$ligne->Code_Sess</center></td>";
print"<td><center><a
href="."modification_bd.php?Ref_result=$ligne->Ref_result".">Modification</a></center></td>";
print"</tr>";
}
mysql_free_result($Res);
?>
</table>
</body>
</html>
<?php
include("connexion.php");
import_request_variables("G","_");
$sql="SELECT * FROM resultat WHERE
Ref_result='$_Ref_result'";
echo $sql;
$Res=mysql_query($sql);
if(mysql_num_rows($Res)!=1)
die("La clé primaire n'existe pas!");
$champs =
mysql_fetch_object($Res);
?>
<html>
<head>
<title>ISC-KINSHASA
:Modification d'une statistique</title>
</head>
<body>
<div
align="center"><h3><font color=""><u>Vous avez
l'autorisation de modifier la statistique
!</u></font></h3>
<form method="POST"
action="maj_bd.php">
<table border="0">
<tr>
<td>Refference
Statistique</td>
<td><b><?php echo
$_Ref_result;?><input type="hidden" name="Ref_result" value="<?php
echo $champs->Ref_result;?>"></b></td>
</tr>
<tr>
<td>Libelé
Statistique</td>
<td><input type="text"
name="Libelé_Res" size="15" value="<?php echo
$champs->Libelé_Res;?>"></td>
</tr>
<tr>
<td>Nombre
reussie</td>
<td><input type="text"
name="Nbre_Reuss" size="4" value="<?php echo
$champs->Nbre_Reuss;?>"></td>
</tr>
<tr>
<td>Nombre
Echeque</td>
<td><input type="text"
name="Nbre_Ajour" size="4" value="<?php echo
$champs->Nbre_Ajour;?>"></td>
</tr>
<tr>
<td>Nombre
Refusé</td>
<td><input type="text"
name="Nbre_Refusé" size="4" value="<?php echo
$champs->Nbre_Refusé;?>"></td>
</tr>
<tr>
<td>Code
Session</td>
<td><input type="text"
name="Code_Sess" size="5" value="<?php echo
$champs->Code_Sess;?>"></td>
</tr>
</table>
<input type="submit"
name="valider" value="Confirmer la modification">
</form>
</body>
</html>
251692032![](CONCEPTION-ET-IMPLEMENTATION-DUNE-BASE-DE-DONNES-POUR-LA-PRODUCTION-DES-STATISTIQUES-DE-DELIBER33.png)
Vous pouvez aussi modifier la statistique on cliquant sur
modification, et vous amenant à l'interface suivante.
251691008![](CONCEPTION-ET-IMPLEMENTATION-DUNE-BASE-DE-DONNES-POUR-LA-PRODUCTION-DES-STATISTIQUES-DE-DELIBER34.png)
Ici vous êtes permit de modifier la partie
encerclé et confirmer la modification.
![](CONCEPTION-ET-IMPLEMENTATION-DUNE-BASE-DE-DONNES-POUR-LA-PRODUCTION-DES-STATISTIQUES-DE-DELIBER35.png)
L'interface indique la modification est réussie, vous
pouvez modifier autres statistique.
c) Procédure de
suppression
<html>
<head><title>ISC-KINSHASA: Suppression
d'une section</title></head>
<body>
<?php
echo("<a
href=select.php>Retour au menu</a></center><br/>");
?>
<h3 align="center"><font
color=""><u>Quelle statique voulez-vous
suppimer?</u></font></h3>
<table align="center"
cellspacing="0" cellpadding="0" border="1" width="100%">
<tr>
<th
bgcolor="#000000"><font
color="#FFFFFF">Ref_Stat</font></th>
<th
bgcolor="#000000"><font
color="#FFFFFF">Ref_result</font></th>
<th
bgcolor="#000000"><font
color="#FFFFFF">Année_Acad</font></th>
<th
bgcolor="#000000"><font
color="#FFFFFF">Effectif</font></th>
<th
bgcolor="#000000"><font
color="#FFFFFF">Nbre_Reus</font></th>
<th
bgcolor="#000000"><font
color="#FFFFFF">Nbre_Ajour</font></th>
<th
bgcolor="#000000"><font
color="#FFFFFF">Nbre_Refusé</font></th>
<th
bgcolor="#000000"><font color="#FFFFFF">Votre
choix</font></th>
</tr>
<?php
include ("connexion.php");
// On prépare la requete et
on l'exécute avec la possibilité de suppression
$sql="SELECT * FROM statistique
ORDER BY Ref_Stat";
$Res=mysql_query($sql, $db);
while ($ligne =
mysql_fetch_object($Res))
{
print"<tr>";
print"<td><center>$ligne->Ref_Stat</center></td>";
print"<td><center>$ligne->Ref_result</center></td>";
print"<td>$ligne->Année_Acad</td>";
print"<td>$ligne->Effectif</td>";
print"<td>$ligne->Nbre_Reus</td>";
print"<td><center>$ligne->Nbre_Ajour</center></td>";
print"<td><center>$ligne->Nbre_Refusé</center></td>";
print"<td><center><ahref="."suppression.bd.php?Ref_Stat='$ligne->Ref_Stat'".">Suppr</a></center></tr>";
print"</td>";
}
mysql_free_result($Res);
?>
</table>
</body>
</html>
<?php
import_request_variables("G","_");
include ("connexion.php");
$sql="DELETE FROM statistique
WHERE Ref_Stat=$_Ref_Stat";
$etat=mysql_query($sql,$db);
//Traitement erreur
if(!$etat)
$messageErreur=mysql_errno().':'.mysql_error();
mysql_close();
if ($etat)
{
echo 'Suppresion réussi
!<br/><br/>';
echo ("<a
href=suppression.php>Autre Supression ?</a><br/>");
}
else
echo 'echec de suppression
!'.$messageErreur;
?>
![](CONCEPTION-ET-IMPLEMENTATION-DUNE-BASE-DE-DONNES-POUR-LA-PRODUCTION-DES-STATISTIQUES-DE-DELIBER36.png)
Ici l'interface donne le privilège de suppression
à l'utilisateur, pour supprimer la statistique.
![](CONCEPTION-ET-IMPLEMENTATION-DUNE-BASE-DE-DONNES-POUR-LA-PRODUCTION-DES-STATISTIQUES-DE-DELIBER37.png)
Ici indique l'opération de suppression est
réussie.
d) Procédure de
recherche En html
<html>
<head>
<title>ISC-KINSHASA:Recherchestatistique</title><meta
http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"></head>
<body background="AccueilIsc.jpg"
text="#FFFFFF" vlink="#FF0000" alink="#33FFCC" leftmargin="10" topmargin="700"
marginwidth="1" marginheight="30" tracingsrc="ISCACCU.JPG"
tracingopacity="50"><font color="" size="+4" face="">
<div
align="center"><p><b><u>Veuillez saisir votre clés
de recherche statistique !</u></b></p>
<form method="post"
action="statitiquerech.bd.php">
<table border="0">
<tr>
<td>Classe</td>
<td><select
name="Ref_Stat">
<option
value="">Selectionnez</option>
<option value="G1 info
soir">G1 info soir</option>
<option value="G1 info
jour">G1 info jour</option>
<option value="G2 info
soir">G2 info soir</option>
<option value="G2 info
jour">G2 info jour</option>
<option value="G3 info
soir">G3 info soir</option>
<option value="G3 info
jour">G3 info jour</option>
<option value="G4 info
soir">G4 info soir</option>
<option value="L1 info">L1
info </option>
<option value="G1 info">G1
info</option>
</select>
</tr>
<tr>
<td>Session</td>
<td><select
name="Ref_result">
<option
value="">Selectionnez</option>
<option
value="1SESS">1SESS</option>
<option
value="2SESS">2SESS</option>
<option
value="Recours">Recours</option>
</select>
</tr>
<tr>
<td>Année</td>
<td><select
name="Année_Acad">
<option
value="">Selectionnez</option>
<option
value="2010">2010</option>
<option
value="2011">2011</option>
<option
value="2012">2012</option>
<option
value="2013">2013</option>
<option
value="2014">2014</option>
<option
value="2015">2015</option>
<option
value="2016">2016</option>
<option
value="2017">2017</option>
<option
value="2018">2018</option>
</select>
</tr>
</table><br/>
<input type="submit"
name="valider" value="Lancer la recherche">
<input name="rein"
value="Réinitialiser" type="Reset" class="bouton1" />
</form>
</div>
</font>
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
width="105" height="37" title="Retour">
<param name="movie"
value="ariere.swf">
<param name="quality"
value="high">
<param name="bgcolor"
value="#CCCCFF">
<embed src="ariere.swf"
quality="high"
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="105" height="37"
bgcolor="#CCCCFF"></embed>
</object>
</body>
</html>
Procédure de recherche
En PHP
<html>
<head><title>ISC-KINSHASA:Recherche de
Statistique</title>
<script
type="text/JavaScript">
<!--
function MM_swapImgRestore() {
//v3.0
var i,x,a=document.MM_sr;
for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
x.src=x.oSrc;
}
function MM_preloadImages() {
//v3.0
var d=document; if(d.images){
if(!d.MM_p) d.MM_p=new Array();
var
i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){
d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) {
//v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);}
if(!(x=d[n])&&d.all)
x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById)
x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments;
document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if
((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src;
x.src=a[i+2];}
}
//-->
</script>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1"></head>
<body background="IMG_0014.jpg"
text="#FFFFFF" vlink="#FF0000" alink="#0000FF"
onLoad="MM_preloadImages('Photo0032.jpg','ISCACCU.JPG')">
<font color="" size="3"
face="">
<table align="left"
cellspacing="0" cellpadding="0" border="1" width="45%">
<tr>
<th bgcolor="#000000"><font
color="#FFFFFF">Ref_Stat</th>
<th bgcolor="#000000"><font
color="#FFFFFF">Effectif</th>
<th bgcolor="#000000"><font
color="#FFFFFF">Nbre_Reus</th>
<th bgcolor="#000000"><font
color="#FFFFFF">Nbre_Ajour</th>
<th bgcolor="#000000"><font
color="#FFFFFF">Nbre_Refusé</th>
<?php
include("connexion.php");
import_request_variables("P","_");
$clde=1;
$sql= "SELECT * FROM statistique
";
if($_Ref_Stat!="")
if($clde)
{$clde=0;
$sql=$sql."WHERE
Ref_Stat='$_Ref_Stat'";
}
else $sql=$sql." AND
Ref_Stat='$_Ref_Stat";
if($_Année_Acad!="")
if($clde)
{$clde=0;
$sql=$sql." WHERE
Année_Acad='$_Année_Acad'";
}
else $sql=$sql." AND
Année_Acad='$_Année_Acad'";
echo"Voici les resultats
statistique de $_Ref_Stat Année $_Année_Acad !<br>";
$Res = mysql_query($sql,$db);
while($ligne =
mysql_fetch_object($Res))
{
print "<tr>";
print "<td
align='center'>$ligne->Ref_Stat</td>";
print "<td
align='center'>$ligne->Effectif</td>";
print "<td
align='center'>$ligne->Nbre_Reus</td>";
print "<td
align='center'>$ligne->Nbre_Ajour</td>";
print "<td
align='center'>$ligne->Nbre_Refusé</td>";
print "</tr>";
echo ($ligne->Effectif *
100/$ligne->Nbre_Reus). "\n% reussies, <br>" ; // prints 2
echo ($ligne->Effectif *
100/$ligne->Nbre_Ajour). "\n% ajournés, <br>" ; // prints 2
echo ($ligne->Effectif *
100/$ligne->Nbre_Refusé). "\n% refusés <br>" ; // prints
2
}
mysql_free_result($Res);
?>
</table>
</font>
<table width="566" height="508"
border="1">
<tr>
<td width="211"
height="304"><a href="#" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('999','','Photo0032.jpg',1)"><img src="Analyste
et programmeur Becko" alt="Reprèsentation de l'isc/kin" name="Becko"
width="277" height="139" border="0" align="middle"></a><a href="#"
onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Romains
1:20','','ISCACCU.JPG',1)"><img src="Photo0032.jpg" alt="Car ses
qualités invisibles se voient clairement depuis la création du
monde, parce qu'elles sont perçues par les choses faites, oui sa
puissance éternelle et sa Divinité, de sorte qu'ils sont
insexcusables" name="Romains 1:20" width="275" height="134"
border="0"></a></td>
<td width="244"><marquee
bgcolor="#66FFFF" direction="up">
<img src="DSC_0000015.jpg"
alt="Analyste programmer Becko" width="268" height="174"
longdesc="Analyste">
</marquee></td>
</tr>
<tr>
<td height="195"><object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
width="251" height="188" title="Allez">
<param name="movie"
value="ret">
<param name="quality"
value="high">
<param name="bgcolor"
value="#0033FF">
<embed src="ret" quality="high"
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="251" height="188"
bgcolor="#0033FF"></embed>
</object></td>
<td><object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
width="273" height="191" title="Retour">
<param name="movie"
value="back.swf">
<param name="quality"
value="high">
<param name="bgcolor"
value="#FF99CC">
<embed src="back.swf"
quality="high"
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="273" height="191"
bgcolor="#FF99CC"></embed>
</object></td>
</tr>
</table>
</body>
</html>
![](CONCEPTION-ET-IMPLEMENTATION-DUNE-BASE-DE-DONNES-POUR-LA-PRODUCTION-DES-STATISTIQUES-DE-DELIBER38.png)
Cette interface est spécialement pour les clients ou
les étudiants, envie de vérifier leurs statistiques de classe. Il
suffit de sélectionner simplement votre classe, session et
l'année, et puis lancer la recherche ou Réinitialiser s'il s'agit
d'erreur de sélectionnez
![](CONCEPTION-ET-IMPLEMENTATION-DUNE-BASE-DE-DONNES-POUR-LA-PRODUCTION-DES-STATISTIQUES-DE-DELIBER39.png)
L'interface affiche la statistique selon classe et
l'année.
e) Affichage de la grille de
données (HTML)
<html>
<head>
<title>grille</title><meta
http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"></head>
<body
bgcolor="#00FFFF"><font color="" size="+4" face="">
<div
align="center"><p><b><u>Veuillez saisir votre clés
d'affichage glille de données !</u></b></p>
<form method="post"
action="grilleg.bd.php">
<table border="0">
<tr>
<td>Année</td>
<td><select
name="Ref_Stat">
<option
value="">Selectionnez</option>
<option
value="2010">2010</option>
<option
value="2011">2011</option>
<option
value="2012">2012</option>
<option
value="2013">2013</option>
<option
value="2014">2014</option>
<option
value="2015">2015</option>
<option
value="2016">2016</option>
<option
value="2017">2017</option>
<option
value="2018">2018</option>
</select>
<tr>
<td>Session</td>
<td><select
name="Ref_result">
<option
value="">Selectionnez</option>
<option
value="1SESS">1SESS</option>
<option
value="2SESS">2SESS</option>
<option
value="Recours">Recours</option>
</select>
</td>
</table>
<br/>
<input type="submit"
name="valider" value="Lancer la recherche">
</form>
</div>
</font>
</body>
</html>
Php
<html>
<head><title>ISC-KINSHASA:Grille</title></head>
<body>
<font color="" size="+4"
face=""><table align="center" cellspacing="0" cellpadding="0" border="1"
width="100%">
<tr>
<th
bgcolor="#000000"><font color="#FFFFFF">Classe</th>
<th
bgcolor="#000000"><font color="#FFFFFF">Effectif</th>
<th
bgcolor="#000000"><font color="#FFFFFF">Nbre_Reus</th>
<th
bgcolor="#000000"><font color="#FFFFFF">Nbre_Ajour</th>
<th
bgcolor="#000000"><font
color="#FFFFFF">Nbre_Refusé</th>
<?php
include("connexion.php");
import_request_variables("P","_");
$clde=1;
$sql= "SELECT * FROM statistique
";
if($_Ref_Stat!="")
if($clde)
{$clde=0;
$sql=$sql."WHERE
Ref_Stat='$_Ref_Stat'";
}
else $sql=$sql." AND
Ref_Stat='$_Ref_Stat'";
if($_Ref_result!="")
if($clde)
{$clde=0;
$sql=$sql." WHERE
Ref_result='$_Ref_result'";
}
else $sql=$sql." AND
Ref_result='$_Ref_result'";
echo"Voici les resultats
statistique de $_Ref_Stat, $_Ref_result !";
$Res =
mysql_query($sql,$db);
while($ligne =
mysql_fetch_object($Res))
{
print "<tr>";
print
"<td>$ligne->Classe</td>";
print "<td
align='center'>$ligne->Effectif</td>";
print "<td
aligne='center'>$ligne->Nbre_Reus</td>";
print "<td
aligne='center'>$ligne->Nbre_Ajour</td>";
print "<td
aligne='center'>$ligne->Nbre_Refusé</td>";
print "</tr>";
}
mysql_free_result($Res);
?>
</table>
</font>
</body>
</html>
![](CONCEPTION-ET-IMPLEMENTATION-DUNE-BASE-DE-DONNES-POUR-LA-PRODUCTION-DES-STATISTIQUES-DE-DELIBER40.png)
Cette interface concerne l'affichage de la grille selon
l'année académique et la session.
Il suffit de sélectionner simplement l'année et
la session, et lancer la recherche, pour vous redirigé à
l'interface suivante.
![](CONCEPTION-ET-IMPLEMENTATION-DUNE-BASE-DE-DONNES-POUR-LA-PRODUCTION-DES-STATISTIQUES-DE-DELIBER41.png)
Cette interface est vide car il n'y a pas des informations
qui correspondent de cette année et la session.
|