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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
| <?php
mysql_pconnect("localhost","root","");
mysql_select_db("conférence1");
?>
<?php
if(isset($_GET['id']))
{$requete1="SELECT * FROM rapport where id=".$_GET['id'];
$resultat1=mysql_query($requete1);
$ligne1=mysql_fetch_array($resultat1);
}
if(isset($_POST['ajouter']))
{$requete3 = "insert into rapport (titre,notet,remarque,famcri,critere) values('$_POST[titre]','$_POST[notet]','$_POST[remarque]','$_POST[desfam]','$_POST[critere]')";
$resultat3=mysql_query($requete3);
}
?>
<html>
<head><title>ADMINISTRATION </title>
<link href="styles.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="titre">- : : : ESPACE ADMINISTRATION : : : -</div>
<form method="get" action="evaluation.php" name="designation">
<div align="center">
<table width="350" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#eeeeee" class="tableaux">
<tr>
<td > Liste des papiers</td>
<td >
<?php
@ $db = new mysqli('localhost','root','','conférence1');
mysqli_select_db($db,'conférence1');
$query = " SELECT titre FROM papier order by titre";
$result = $db->query($query)or die(mysqli_error());
if($result)
{
echo ' <select name="titre" id="titre" >';
while($e=mysqli_fetch_object($result))
{
echo "<option>
$e->titre
</option>";
}
}
?>
</td>
</tr>
<tr>
<td >Liste des familles</td>
<td ><?php
@ $db = new mysqli('localhost','root','','conférence1');
mysqli_select_db($db,'conférence1');
$query = " SELECT desfam FROM famille order by desfam";
$result = $db->query($query)or die(mysqli_error());
if($result)
{
echo ' <select name="desfam" id="desfam" >';
while($e=mysqli_fetch_object($result))
{
echo "<option>
$e->desfam
</option>";
}
}
?>
</td>
</tr>
<tr>
<td>
<span >
<input type="submit" value ="Recherche" >
</span>
</td>
</tr>
</form>
<form action="" method="post" name="add">
<p align="center"><strong><u>Créer une combinaison</u></strong></p>
<table width="350" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#eeeeee" class="tableaux">
<tr><td>Liste des critere</td>
<td>
<?php
if(isset($_GET['desfam']))
{
$dbprotect = mysql_pconnect("localhost","root", "") or trigger_error(mysql_error(),E_USER_ERROR);
mysql_select_db('conférence1', $dbprotect);
$query_users = "SELECT * FROM critere where desfam='".($_GET['desfam'])."'";
$users = mysql_query($query_users,$dbprotect) or die(mysql_error());
$row_users = mysql_fetch_assoc($users);
?>
<select name="critere" size="3" id="critere">
<?php
do {
?>
<option value="<?php echo $row_users['designation'] ; ?>">
<?php echo $row_users['designation'] ; ?>
</option>
<?php
}while($row_users = mysql_fetch_assoc($users));
$rows = mysql_num_rows($users);
if($rows > 0) {
mysql_data_seek($users, 0);
$row_users = mysql_fetch_assoc($users);
}
}
?>
</select>
</td>
</tr>
<tr>
<td>Note</td>
<td>
<select name="notet" id="notet">
<option value="1">1 mesdiocre </option>
<option value="2">2 passable </option>
<option value="3">3 assez bon </option>
<option value="4">4 bon </option>
<option value="5">5 assez bon </option>
</select>
</td>
</tr>
<tr>
<td>Remarque</td>
<td><textarea name="remarque"></textarea></td>
</tr>
<tr>
<td height="50" colspan="2"><div align="center">
<input type="submit" name="ajouter" value="ajouter ">
</div></td>
</tr>
</form>
</table>
<p align="center">
<p><a href="acceuil.php"><strong>< Retour accueil</strong></a></p>
</div>
</body>
</html> |
Partager