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");
if($_GET['type']!='') $lasuite = " AND type='".$_GET['type']."' ";
elseif($_GET['theme']!='') $lasuite = " AND theme='".$_GET['theme']."' ";
elseif($_GET['lieu']!='') $lasuite = " AND lieu='".$_GET['lieu']."' ";
elseif($_GET['interv']!='') $lasuite = " AND intervenant='".$_GET['interv']."' ";
elseif($_GET['refer']!='') $lasuite = " AND referent='".$_GET['refer']."' ";
if(isset($_GET['type']) && $_GET['type']!='') $lasuite = " AND type='".$_GET['type']."' ";
elseif(isset($_GET['theme']) && $_GET['theme']!='') $lasuite = " AND theme='".$_GET['theme']."' ";
elseif(isset($_GET['lieu']) && $_GET['lieu']!='') $lasuite = " AND lieu='".$_GET['lieu']."' ";
elseif(isset($_GET['interv']) && $_GET['interv']!='') $lasuite = " AND intervenant='".$_GET['interv']."' ";
elseif(isset($_GET['refer']) && $_GET['refer']!='') $lasuite = " AND referent='".$_GET['refer']."' ";
else $lasuite = "";
@ -203,4 +203,4 @@ if(isset($_GET['refer']) && ($_GET['refer']!='')) echo "Référent :
<br/>
<br/>
</body>
</html>
</html>

View File

@ -8,9 +8,9 @@ include("./access.php");
$tabtime = array();
$listjourheure = array();
if($_GET['type']!='') $lasuite = " AND type='".$_GET['type']."' ";
elseif($_GET['theme']!='') $lasuite = " AND theme='".$_GET['theme']."' ";
elseif($_GET['lieu']!='') $lasuite = " AND lieu='".$_GET['lieu']."' ";
if(isset($_GET['type']) && $_GET['type']!='') $lasuite = " AND type='".$_GET['type']."' ";
elseif(isset($_GET['theme']) && $_GET['theme']!='') $lasuite = " AND theme='".$_GET['theme']."' ";
elseif(isset($_GET['lieu']) && $_GET['lieu']!='') $lasuite = " AND lieu='".$_GET['lieu']."' ";
else $lasuite = "";
@ -126,7 +126,7 @@ td {padding:0px;margin:0px;}
</table>
</page>
<?
<?php
$content = ob_get_clean();
/*
$fichierw = "./res.txt";
@ -158,4 +158,4 @@ require_once("./html2pdf.class.php");
header("location: pdfs.php");
//header('Content-Type: application/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);
}
if($_GET['type']!='') $lasuite = " AND type='".$_GET['type']."' ";
elseif($_GET['theme']!='') $lasuite = " AND theme='".$_GET['theme']."' ";
elseif($_GET['lieu']!='') $lasuite = " AND lieu='".$_GET['lieu']."' ";
elseif($_GET['intervenant']!='') $lasuite = " AND intervenant='".$_GET['intervenant']."' ";
elseif($_GET['secretaire']!='') $lasuite = " AND secretaire='".$_GET['secretaire']."' ";
elseif($_GET['rapporteur']!='') $lasuite = " AND rapporteur='".$_GET['rapporteur']."' ";
elseif($_GET['referent']!='') $lasuite = " AND referent='".$_GET['referent']."' ";
elseif($_GET['quoi']!='') $lasuite = "AND theme='".$_GET['quoi']."'";
if(isset($_GET['type']) && $_GET['type']!='') $lasuite = " AND type='".$_GET['type']."' ";
elseif(isset($_GET['theme']) && $_GET['theme']!='') $lasuite = " AND theme='".$_GET['theme']."' ";
elseif(isset($_GET['lieu']) && $_GET['lieu']!='') $lasuite = " AND lieu='".$_GET['lieu']."' ";
elseif(isset($_GET['intervenant']) && $_GET['intervenant']!='') $lasuite = " AND intervenant='".$_GET['intervenant']."' ";
elseif(isset($_GET['secretaire']) && $_GET['secretaire']!='') $lasuite = " AND secretaire='".$_GET['secretaire']."' ";
elseif(isset($_GET['rapporteur']) && $_GET['rapporteur']!='') $lasuite = " AND rapporteur='".$_GET['rapporteur']."' ";
elseif(isset($_GET['referent']) && $_GET['referent']!='') $lasuite = " AND referent='".$_GET['referent']."' ";
elseif(isset($_GET['quoi']) && $_GET['quoi']!='') $lasuite = "AND theme='".$_GET['quoi']."'";
else $lasuite = "";
$malistec = "";
@ -37,7 +37,9 @@ foreach($tablojourmax as $lejour=>$lemax){
$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: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;'>";
if($row['lieu'] != 0) $malistec .= "<a href='index.php?lieu=".$row['lieu']."' class='staff'>".$tablolieux[$row['lieu']]."</a>";
$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>
</tr>
<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:30%'><a href='index.php?secretaire=".$row['secretaire']."' class='staff'>".$tablosecretaire[$row['secretaire']]."</a></td>
<td style='width:30%'><a href='index.php?rapporteur=".$row['rapporteur']."' class='staff'>".$tablorapporteur[$row['rapporteur']]."</a></td>
<td style='width:25%'><a href='index.php?type=".$row['type']."' class='staff'><i>".$tablotypeinsc[$row['type']]."</i></a></td>
<td style='width:15%'>";
if($row['referent'] != 0) $malistec .= "<a href='index.php?referent=".$row['referent']."' class='staff'>".$tabloreferent[$row['referent']]['nom']."</a>";
$malistec .= "</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>";
}
}
@ -350,11 +360,13 @@ foreach($tabloheure as $val) { echo "<option value='".$val."'>".$val."</option>"
</table>
<?php
if(isset($_GET['cle']) && ($_GET['cle']!='')){
$qd = "SELECT intervenant,datehoraire FROM datesup WHERE cle='".$_GET['cle']."' LIMIT 1";
$resultd = mysqli_query($connect,$qd);
list($intervenantx,$datehorairex) = mysqli_fetch_array($resultd);
if($datehorairex!='') echo "<br/>Annexe<br/><textarea name='vide'>".$datehorairex."</textarea><br/>";
}
?>
@ -365,7 +377,7 @@ Lieu
<select name='lieu'>
<option></option>
<?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>"; } ?>
</select>
<br/>
@ -374,7 +386,7 @@ Th&egrave;me
<select name='theme'>
<option></option>
<?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>"; } ?>
</select>
<br/>
@ -383,7 +395,7 @@ Intervenant
<select name='intervenant'>
<option></option>
<?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>"; } ?>
</select>
<br/>
@ -392,7 +404,7 @@ R&eacute;f&eacute;rent
<select name='referent'>
<option></option>
<?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>"; } ?>
</select>
@ -402,7 +414,7 @@ Secr&eacute;taire
<select name='secretaire'>
<option></option>
<?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>"; } ?>
</select>
<br/>
@ -411,7 +423,7 @@ Rapporteur
<select name='rapporteur'>
<option></option>
<?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>"; } ?>
</select>
<br/>
@ -430,7 +442,7 @@ Type d'intervention
<br/>
<select name='type'>
<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>"; } ?>
</select>
<br/>
@ -471,4 +483,4 @@ else echo "<input type='submit' value=' ENREGISTRER ' /></form>";
redim();
</script>
</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");
if($_GET['type']!='') $lasuite = " AND type='".$_GET['type']."' ";
elseif($_GET['theme']!='') $lasuite = " AND theme='".$_GET['theme']."' ";
elseif($_GET['lieu']!='') $lasuite = " AND lieu='".$_GET['lieu']."' ";
elseif($_GET['interv']!='') $lasuite = " AND intervenant='".$_GET['interv']."' ";
elseif($_GET['refer']!='') $lasuite = " AND referent='".$_GET['refer']."' ";
if(isset($_GET['type']) && $_GET['type']!='') $lasuite = " AND type='".$_GET['type']."' ";
elseif(isset($_GET['theme']) && $_GET['theme']!='') $lasuite = " AND theme='".$_GET['theme']."' ";
elseif(isset($_GET['lieu']) && $_GET['lieu']!='') $lasuite = " AND lieu='".$_GET['lieu']."' ";
elseif(isset($_GET['interv']) && $_GET['interv']!='') $lasuite = " AND intervenant='".$_GET['interv']."' ";
elseif(isset($_GET['refer']) && $_GET['refer']!='') $lasuite = " AND referent='".$_GET['refer']."' ";
else $lasuite = "";
@ -218,4 +218,4 @@ if(isset($_GET['refer']) && ($_GET['refer']!='')) echo "R&eacute;f&eacute;rent :
<br/>
<br/>
</body>
</html>
</html>