This commit is contained in:
Lab 8916100448256 2020-11-12 18:55:32 +01:00
parent 121a48a17d
commit aa47e549ff
4 changed files with 50 additions and 38 deletions

View file

@ -11,11 +11,11 @@ $listjourheure = array();
$letabdesjours = array(1=>"Lun.",2=>"Mardi",3=>"Mercredi",4=>"Jeudi",5=>"Vendredi",6=>"Samedi",7=>"Dimanche"); $letabdesjours = array(1=>"Lun.",2=>"Mardi",3=>"Mercredi",4=>"Jeudi",5=>"Vendredi",6=>"Samedi",7=>"Dimanche");
if($_GET['type']!='') $lasuite = " AND type='".$_GET['type']."' "; if(isset($_GET['type']) && $_GET['type']!='') $lasuite = " AND type='".$_GET['type']."' ";
elseif($_GET['theme']!='') $lasuite = " AND theme='".$_GET['theme']."' "; elseif(isset($_GET['theme']) && $_GET['theme']!='') $lasuite = " AND theme='".$_GET['theme']."' ";
elseif($_GET['lieu']!='') $lasuite = " AND lieu='".$_GET['lieu']."' "; elseif(isset($_GET['lieu']) && $_GET['lieu']!='') $lasuite = " AND lieu='".$_GET['lieu']."' ";
elseif($_GET['interv']!='') $lasuite = " AND intervenant='".$_GET['interv']."' "; elseif(isset($_GET['interv']) && $_GET['interv']!='') $lasuite = " AND intervenant='".$_GET['interv']."' ";
elseif($_GET['refer']!='') $lasuite = " AND referent='".$_GET['refer']."' "; elseif(isset($_GET['refer']) && $_GET['refer']!='') $lasuite = " AND referent='".$_GET['refer']."' ";
else $lasuite = ""; else $lasuite = "";
@ -203,4 +203,4 @@ if(isset($_GET['refer']) && ($_GET['refer']!='')) echo "Référent :
<br/> <br/>
<br/> <br/>
</body> </body>
</html> </html>

View file

@ -8,9 +8,9 @@ include("./access.php");
$tabtime = array(); $tabtime = array();
$listjourheure = array(); $listjourheure = array();
if($_GET['type']!='') $lasuite = " AND type='".$_GET['type']."' "; if(isset($_GET['type']) && $_GET['type']!='') $lasuite = " AND type='".$_GET['type']."' ";
elseif($_GET['theme']!='') $lasuite = " AND theme='".$_GET['theme']."' "; elseif(isset($_GET['theme']) && $_GET['theme']!='') $lasuite = " AND theme='".$_GET['theme']."' ";
elseif($_GET['lieu']!='') $lasuite = " AND lieu='".$_GET['lieu']."' "; elseif(isset($_GET['lieu']) && $_GET['lieu']!='') $lasuite = " AND lieu='".$_GET['lieu']."' ";
else $lasuite = ""; else $lasuite = "";
@ -126,7 +126,7 @@ td {padding:0px;margin:0px;}
</table> </table>
</page> </page>
<? <?php
$content = ob_get_clean(); $content = ob_get_clean();
/* /*
$fichierw = "./res.txt"; $fichierw = "./res.txt";
@ -158,4 +158,4 @@ require_once("./html2pdf.class.php");
header("location: pdfs.php"); header("location: pdfs.php");
//header('Content-Type: application/pdf'); //header('Content-Type: application/pdf');
//readfile('../pdf/planning.pdf'); //readfile('../pdf/planning.pdf');
?> ?>

View file

@ -11,14 +11,14 @@ $resultat = mysqli_query($connect,$qda);
list($cle,$jour,$heure,$heurefin,$lieu,$theme,$intervenant,$titre,$description,$valid,$onoff,$type,$referent,$secretaire,$rapporteur,$online) = mysqli_fetch_array($resultat); list($cle,$jour,$heure,$heurefin,$lieu,$theme,$intervenant,$titre,$description,$valid,$onoff,$type,$referent,$secretaire,$rapporteur,$online) = mysqli_fetch_array($resultat);
} }
if($_GET['type']!='') $lasuite = " AND type='".$_GET['type']."' "; if(isset($_GET['type']) && $_GET['type']!='') $lasuite = " AND type='".$_GET['type']."' ";
elseif($_GET['theme']!='') $lasuite = " AND theme='".$_GET['theme']."' "; elseif(isset($_GET['theme']) && $_GET['theme']!='') $lasuite = " AND theme='".$_GET['theme']."' ";
elseif($_GET['lieu']!='') $lasuite = " AND lieu='".$_GET['lieu']."' "; elseif(isset($_GET['lieu']) && $_GET['lieu']!='') $lasuite = " AND lieu='".$_GET['lieu']."' ";
elseif($_GET['intervenant']!='') $lasuite = " AND intervenant='".$_GET['intervenant']."' "; elseif(isset($_GET['intervenant']) && $_GET['intervenant']!='') $lasuite = " AND intervenant='".$_GET['intervenant']."' ";
elseif($_GET['secretaire']!='') $lasuite = " AND secretaire='".$_GET['secretaire']."' "; elseif(isset($_GET['secretaire']) && $_GET['secretaire']!='') $lasuite = " AND secretaire='".$_GET['secretaire']."' ";
elseif($_GET['rapporteur']!='') $lasuite = " AND rapporteur='".$_GET['rapporteur']."' "; elseif(isset($_GET['rapporteur']) && $_GET['rapporteur']!='') $lasuite = " AND rapporteur='".$_GET['rapporteur']."' ";
elseif($_GET['referent']!='') $lasuite = " AND referent='".$_GET['referent']."' "; elseif(isset($_GET['referent']) && $_GET['referent']!='') $lasuite = " AND referent='".$_GET['referent']."' ";
elseif($_GET['quoi']!='') $lasuite = "AND theme='".$_GET['quoi']."'"; elseif(isset($_GET['quoi']) && $_GET['quoi']!='') $lasuite = "AND theme='".$_GET['quoi']."'";
else $lasuite = ""; else $lasuite = "";
$malistec = ""; $malistec = "";
@ -37,7 +37,9 @@ foreach($tablojourmax as $lejour=>$lemax){
$malistec .= "<tr> $malistec .= "<tr>
<td style='width:15%'><a name='".$row['cle']."'></a>".$row['heure']." &agrave; ".$row['heurefin']." <i style='color:#0c0'>".$lejour."</i></td> <td style='width:15%'><a name='".$row['cle']."'></a>".$row['heure']." &agrave; ".$row['heurefin']." <i style='color:#0c0'>".$lejour."</i></td>
<td style='width:30%;".$bull."'> <a href='index.php?intervenant=".$row['intervenant']."' class='staff'>".$tablointervenant[$row['intervenant']]['prenom']." ".$tablointervenant[$row['intervenant']]['nom']."</a></td> <td style='width:30%;".$bull."'> <a href='index.php?intervenant=".$row['intervenant']."' class='staff'>".$tablointervenant[$row['intervenant']]['prenom']." ".$tablointervenant[$row['intervenant']]['nom']."</a></td>
<td style='width:30%'><b><a href='index.php?theme=".$row['theme']."' class='staff'>".$tablotheme[$row['theme']]."</a></b></td> <td style='width:30%'>";
if($row['theme'] != 0) $malistec .= "<b><a href='index.php?theme=".$row['theme']."' class='staff'>".$tablotheme[$row['theme']]."</a></b>";
$malistec .= "</td>
<td style='width:25%;text-align:right;'>"; <td style='width:25%;text-align:right;'>";
if($row['lieu'] != 0) $malistec .= "<a href='index.php?lieu=".$row['lieu']."' class='staff'>".$tablolieux[$row['lieu']]."</a>"; if($row['lieu'] != 0) $malistec .= "<a href='index.php?lieu=".$row['lieu']."' class='staff'>".$tablolieux[$row['lieu']]."</a>";
$malistec .= "</td> $malistec .= "</td>
@ -47,10 +49,18 @@ foreach($tablojourmax as $lejour=>$lemax){
<td style='background:".$color.";width:25%;text-align:right;'><a href='index.php?cle=".$row['cle']."#".$row['cle']."'>Modifier</a></td> <td style='background:".$color.";width:25%;text-align:right;'><a href='index.php?cle=".$row['cle']."#".$row['cle']."'>Modifier</a></td>
</tr> </tr>
<tr style='border-bottom:solid 1px #444;background:#fff;text-align:right'> <tr style='border-bottom:solid 1px #444;background:#fff;text-align:right'>
<td style='width:15%'><a href='index.php?referent=".$row['referent']."' class='staff'>".$tabloreferent[$row['referent']]['nom']."</a></td> <td style='width:15%'>";
<td style='width:30%'><a href='index.php?secretaire=".$row['secretaire']."' class='staff'>".$tablosecretaire[$row['secretaire']]."</a></td> if($row['referent'] != 0) $malistec .= "<a href='index.php?referent=".$row['referent']."' class='staff'>".$tabloreferent[$row['referent']]['nom']."</a>";
<td style='width:30%'><a href='index.php?rapporteur=".$row['rapporteur']."' class='staff'>".$tablorapporteur[$row['rapporteur']]."</a></td> $malistec .= "</td>
<td style='width:25%'><a href='index.php?type=".$row['type']."' class='staff'><i>".$tablotypeinsc[$row['type']]."</i></a></td> <td style='width:30%'>";
if($row['secretaire'] != 0) $malistec .= "<a href='index.php?secretaire=".$row['secretaire']."' class='staff'>".$tablosecretaire[$row['secretaire']]."</a>";
$malistec .= "</td>
<td style='width:30%'>";
if($row['rapporteur'] != 0) $malistec .= "<a href='index.php?rapporteur=".$row['rapporteur']."' class='staff'>".$tablorapporteur[$row['rapporteur']]."</a>";
$malistec .= "</td>
<td style='width:25%'>";
if($row['type'] != 0) $malistec .= "<a href='index.php?type=".$row['type']."' class='staff'><i>".$tablotypeinsc[$row['type']]."</i></a>";
$malistec .= "</td>
</tr>"; </tr>";
} }
} }
@ -350,11 +360,13 @@ foreach($tabloheure as $val) { echo "<option value='".$val."'>".$val."</option>"
</table> </table>
<?php <?php
if(isset($_GET['cle']) && ($_GET['cle']!='')){
$qd = "SELECT intervenant,datehoraire FROM datesup WHERE cle='".$_GET['cle']."' LIMIT 1"; $qd = "SELECT intervenant,datehoraire FROM datesup WHERE cle='".$_GET['cle']."' LIMIT 1";
$resultd = mysqli_query($connect,$qd); $resultd = mysqli_query($connect,$qd);
list($intervenantx,$datehorairex) = mysqli_fetch_array($resultd); list($intervenantx,$datehorairex) = mysqli_fetch_array($resultd);
if($datehorairex!='') echo "<br/>Annexe<br/><textarea name='vide'>".$datehorairex."</textarea><br/>"; if($datehorairex!='') echo "<br/>Annexe<br/><textarea name='vide'>".$datehorairex."</textarea><br/>";
}
?> ?>
@ -365,7 +377,7 @@ Lieu
<select name='lieu'> <select name='lieu'>
<option></option> <option></option>
<?php <?php
if(isset($_GET['cle']) && ($_GET['cle']!=''))echo "<option value='".$lieu."' selected>".$tablolieux[$lieu]."</option>"; if(isset($_GET['cle']) && ($_GET['cle']!='') && $lieu!=0)echo "<option value='".$lieu."' selected>".$tablolieux[$lieu]."</option>";
foreach($tablolieux as $cle=>$val) { echo "<option value='".$cle."'>".$val."</option>"; } ?> foreach($tablolieux as $cle=>$val) { echo "<option value='".$cle."'>".$val."</option>"; } ?>
</select> </select>
<br/> <br/>
@ -374,7 +386,7 @@ Th&egrave;me
<select name='theme'> <select name='theme'>
<option></option> <option></option>
<?php <?php
if(isset($_GET['cle']) && ($_GET['cle']!=''))echo "<option value='".$theme."' selected>".$tablotheme[$theme]."</option>"; if(isset($_GET['cle']) && ($_GET['cle']!='') && $theme!=0)echo "<option value='".$theme."' selected>".$tablotheme[$theme]."</option>";
foreach($tablotheme as $cle=>$val) { echo "<option value='".$cle."'>".$val."</option>"; } ?> foreach($tablotheme as $cle=>$val) { echo "<option value='".$cle."'>".$val."</option>"; } ?>
</select> </select>
<br/> <br/>
@ -383,7 +395,7 @@ Intervenant
<select name='intervenant'> <select name='intervenant'>
<option></option> <option></option>
<?php <?php
if(isset($_GET['cle']) && ($_GET['cle']!=''))echo "<option value='".$intervenant."' selected>".$tablointervenant[$intervenant]['prenom']." ".$tablointervenant[$intervenant]['nom']."</option>"; if(isset($_GET['cle']) && ($_GET['cle']!='') && $intervenant!=0)echo "<option value='".$intervenant."' selected>".$tablointervenant[$intervenant]['prenom']." ".$tablointervenant[$intervenant]['nom']."</option>";
foreach($tablointervenant as $cle=>$val) { echo "<option value='".$cle."'>".$val['prenom']." ".$val['nom']."</option>"; } ?> foreach($tablointervenant as $cle=>$val) { echo "<option value='".$cle."'>".$val['prenom']." ".$val['nom']."</option>"; } ?>
</select> </select>
<br/> <br/>
@ -392,7 +404,7 @@ R&eacute;f&eacute;rent
<select name='referent'> <select name='referent'>
<option></option> <option></option>
<?php <?php
if(isset($_GET['cle']) && ($_GET['cle']!=''))echo "<option value='".$referent."' selected>".$tabloreferent[$referent]['nom']."</option>"; if(isset($_GET['cle']) && ($_GET['cle']!='') && $referent!=0)echo "<option value='".$referent."' selected>".$tabloreferent[$referent]['nom']."</option>";
foreach($tabloreferent as $cle=>$val) { echo "<option value='".$cle."'>".$val['nom']."</option>"; } ?> foreach($tabloreferent as $cle=>$val) { echo "<option value='".$cle."'>".$val['nom']."</option>"; } ?>
</select> </select>
@ -402,7 +414,7 @@ Secr&eacute;taire
<select name='secretaire'> <select name='secretaire'>
<option></option> <option></option>
<?php <?php
if(isset($_GET['cle']) && ($_GET['cle']!=''))echo "<option value='".$secretaire."' selected>".$tablosecretaire[$secretaire]."</option>"; if(isset($_GET['cle']) && ($_GET['cle']!='') && $secretaire!=0)echo "<option value='".$secretaire."' selected>".$tablosecretaire[$secretaire]."</option>";
foreach($tablosecretaire as $cle=>$val) { echo "<option value='".$cle."'>".$val."</option>"; } ?> foreach($tablosecretaire as $cle=>$val) { echo "<option value='".$cle."'>".$val."</option>"; } ?>
</select> </select>
<br/> <br/>
@ -411,7 +423,7 @@ Rapporteur
<select name='rapporteur'> <select name='rapporteur'>
<option></option> <option></option>
<?php <?php
if(isset($_GET['cle']) && ($_GET['cle']!=''))echo "<option value='".$rapporteur."' selected>".$tablorapporteur[$rapporteur]."</option>"; if(isset($_GET['cle']) && ($_GET['cle']!='') && $rapporteur!=0)echo "<option value='".$rapporteur."' selected>".$tablorapporteur[$rapporteur]."</option>";
foreach($tablorapporteur as $cle=>$val) { echo "<option value='".$cle."'>".$val."</option>"; } ?> foreach($tablorapporteur as $cle=>$val) { echo "<option value='".$cle."'>".$val."</option>"; } ?>
</select> </select>
<br/> <br/>
@ -430,7 +442,7 @@ Type d'intervention
<br/> <br/>
<select name='type'> <select name='type'>
<option></option> <option></option>
<?php if(isset($_GET['cle']) && ($_GET['cle']!=''))echo "<option value='".$type."' selected>".$tablotypeinsc[$type]."</option>"; <?php if(isset($_GET['cle']) && ($_GET['cle']!='') && $type!=0)echo "<option value='".$type."' selected>".$tablotypeinsc[$type]."</option>";
foreach($tablotypeinsc as $cle=>$val) { echo "<option value='".$cle."'>".$val."</option>"; } ?> foreach($tablotypeinsc as $cle=>$val) { echo "<option value='".$cle."'>".$val."</option>"; } ?>
</select> </select>
<br/> <br/>
@ -471,4 +483,4 @@ else echo "<input type='submit' value=' ENREGISTRER ' /></form>";
redim(); redim();
</script> </script>
</body> </body>
</html> </html>

View file

@ -11,11 +11,11 @@ $listjourheure = array();
$letabdesjours = array(1=>"Lun.",2=>"Mardi",3=>"Mercredi",4=>"Jeudi",5=>"Vendredi",6=>"Samedi",7=>"Dimanche"); $letabdesjours = array(1=>"Lun.",2=>"Mardi",3=>"Mercredi",4=>"Jeudi",5=>"Vendredi",6=>"Samedi",7=>"Dimanche");
if($_GET['type']!='') $lasuite = " AND type='".$_GET['type']."' "; if(isset($_GET['type']) && $_GET['type']!='') $lasuite = " AND type='".$_GET['type']."' ";
elseif($_GET['theme']!='') $lasuite = " AND theme='".$_GET['theme']."' "; elseif(isset($_GET['theme']) && $_GET['theme']!='') $lasuite = " AND theme='".$_GET['theme']."' ";
elseif($_GET['lieu']!='') $lasuite = " AND lieu='".$_GET['lieu']."' "; elseif(isset($_GET['lieu']) && $_GET['lieu']!='') $lasuite = " AND lieu='".$_GET['lieu']."' ";
elseif($_GET['interv']!='') $lasuite = " AND intervenant='".$_GET['interv']."' "; elseif(isset($_GET['interv']) && $_GET['interv']!='') $lasuite = " AND intervenant='".$_GET['interv']."' ";
elseif($_GET['refer']!='') $lasuite = " AND referent='".$_GET['refer']."' "; elseif(isset($_GET['refer']) && $_GET['refer']!='') $lasuite = " AND referent='".$_GET['refer']."' ";
else $lasuite = ""; else $lasuite = "";
@ -218,4 +218,4 @@ if(isset($_GET['refer']) && ($_GET['refer']!='')) echo "R&eacute;f&eacute;rent :
<br/> <br/>
<br/> <br/>
</body> </body>
</html> </html>