absence_ajout.patch
cdt/enseignant/absence_ajout.php 2012-04-17 15:31:28.000000000 +0200 | ||
---|---|---|
43 | 43 |
mysql_select_db($database_conn_cahier_de_texte, $conn_cahier_de_texte); |
44 | 44 |
$Result1 = mysql_query($deleteSQL, $conn_cahier_de_texte) or die(mysql_error()); |
45 | 45 |
|
46 |
$nblign=1200; |
|
46 |
//VM modif 16042012 |
|
47 |
$req = "SELECT min(ID_ele) AS min, max(ID_ele) AS max FROM ele_liste;"; |
|
48 |
$res = mysql_query($req, $conn_cahier_de_texte) or die(mysql_error()); |
|
49 |
$row = mysql_fetch_assoc($res); |
|
50 |
$nblign=(int) $row['max']; |
|
47 | 51 |
$nb_insert=0; |
48 | 52 |
|
49 |
for ($i=1; $i<=$nblign; $i++) {
|
|
50 |
|
|
53 |
for ($i=(int) $row['min']; $i<=$nblign; $i++) {
|
|
54 |
//MV |
|
51 | 55 |
$p=$i.'motif'; |
52 | 56 |
$i_statut=$i.'statut'; |
53 | 57 |
|
... | ... | |
357 | 361 |
<p>La présence de cette icône <img src="../images/flag_green.png" width="16" height="16"> indique que l'absence de l'élève a été prise en compte par la vie scolaire.<br /> |
358 | 362 |
</p> |
359 | 363 |
<?php };?> |
360 |
<form method="POST" name="form1" action="absence_ajout.php?nom_classe=<?php echo $_GET['nom_classe'];?>&classe_ID=<?php echo $_GET['classe_ID'];?>&gic_ID=<?php echo $_GET['gic_ID'];?>&nom_matiere=<?php echo $_GET['nom_matiere'];?>&groupe=<?php echo $_GET['groupe']?>&matiere_ID=<?php echo $_GET['matiere_ID'];?>&semaine=<?php echo $_GET['semaine'];?>&jour_pointe=<?php if (isset($_GET['jour_pointe'])) {echo urlencode($_GET['jour_pointe']);} else {echo urlencode($jour_pointe);}?>&heure=<?php echo $_GET['heure'];?>&duree=<?php echo $_GET['duree'];?>&heure_debut=<?php echo $_GET['heure_debut'];?>&heure_fin=<?php echo $_GET['heure_fin'];?>&code_date=<?php echo $_GET['code_date'] ;?> " > |
|
364 |
<form method="POST" name="form1" action="absence_ajout.php?nom_classe=<?php echo $_GET['nom_classe'];?>&classe_ID=<?php echo $_GET['classe_ID'];?>&gic_ID=<?php echo $_GET['gic_ID'];?>&nom_matiere=<?php echo $_GET['nom_matiere'];?>&groupe=<?php echo $_GET['groupe']?>&matiere_ID=<?php echo $_GET['matiere_ID'];?>&semaine=<?php echo $_GET['semaine'];?>&jour_pointe=<?php if (isset($_GET['jour_pointe'])) {echo urlencode($_GET['jour_pointe']);} else {echo urlencode($jour_pointe);}?>&heure=<?php echo $_GET['heure'];?>&duree=<?php echo $_GET['duree'];?>&heure_debut=<?php echo $_GET['heure_debut'];?>&heure_fin=<?php echo $_GET['heure_fin'];?>¤t_day_name=<?php echo $_GET['current_day_name'] ?>&code_date=<?php echo $_GET['code_date'] ;?> " >
|
|
361 | 365 |
<table class="lire_bordure" border="0" align="center" cellpadding="0" cellspacing="0" > |
362 | 366 |
<tr> |
363 | 367 |
<?php |