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
| <?php
session_start();
if(!isset($_SESSION["auth"])) header("location:../index.php");
require_once("../biblio/connexion.php");
$queryNum="SELECT * FROM planCours";
$resultNum=mysql_query($queryNum);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Création plan de cours</title>
<meta name="description" content="formation et conseil en communication par les média électroniques - pao - multimédia - vidéo numérique - Production de Podcasts - Lyon" />
<meta name="keywords" content="adobe, podcast, podcasting, acrobat, dreamweaver, final cut, fireworks, flash, gimp, indesign, paint shop pro, photoshop, premiere Pro, after Effects, spip, xpress, actionscript, css, html, javascript, php" />
<link href="../css/style.css" rel="stylesheet" type="text/css" />
<link href="../css/textes.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" type="image/x-icon" href="../images/bigpebble.ico" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>
function recharger(){
var titre = $("#titre").val();;
$.ajax({
type: 'POST',
url: 'recharge.php',
data: {'titre':titre}, // On lui passe la var en parametre, on l'utilisera tout à l'heure.
dataType: // je ne sais pas quoi indiquer ici
success: function(data) {
// Le problème qui se pose est comment faire pour que mon tableau soit remplacer...
}
});
}
</script>
</head>
<body>
<div id="formation">
<div id="bienvenue">Création de plan de cours</div>
<h3>Etape 1/3 </h3>
<form id="form1" method="post" action="crePlanCours1.php">
<fieldset>
<legend>Le Cours</legend>
<table id="foo" class="tabloFormulaire">
<tr>
<td height="23" class="cellGauche">Nom du Cours :
</td>
<td class="cellDroite"><label for="titre">
<select name="titre" id="titre" onchange="recharger();"><option></option><option value="nouveau">Nouveau</option>
<?php while($row = mysql_fetch_assoc($resultNum)){ ?>
<option value="<?php echo $row['titre']; ?>"><?php echo $row['titre']; ?></option>
<?php }?></select>
</label></td>
</tr>
<tr>
<td class="cellGauche">Nombre de jours: </td>
<td class="cellDroite"><input name="nbJours" type="text" class="grandChamp" id="nbJours" value="<?php echo $nbJours ?>"/></td>
</tr>
<tr>
<td class="cellGauche">Public : </td>
<td class="cellDroite"><textarea name="public" id="public"></textarea></td>
</tr>
<tr>
<td class="cellGauche">Objectif de la formation : </td>
<td class="cellDroite"><textarea name="objFormation" id="objFormation"></textarea></td>
</tr>
<tr>
<td class="cellGauche">Prérequis : </td>
<td class="cellDroite"><textarea name="preRequis" id="preRequis"></textarea></td>
</tr>
<td class="cellGauche"> </td>
<td class="cellDroite"><input name="titre1" type="hidden" value="<?php echo $titre; ?>"/></td>
</tr>
<tr>
<td class="cellGauche"> </td>
<td align="right" class="cellDroite"><input type="submit" name="traitementPlan01" id="traitementPlan01" value="suivant" /></td>
</tr>
</table>
</fieldset>
</form>
</div> |
Partager