Premier commit
This commit is contained in:
		
							
								
								
									
										75
									
								
								vues/v_ajoutFraisForfaitaire.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										75
									
								
								vues/v_ajoutFraisForfaitaire.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,75 @@
 | 
			
		||||
<!-- Derniere modification le 03/05/2023 à 11H01 -->
 | 
			
		||||
<div id="contenu">
 | 
			
		||||
	<h2>AJOUT FRAIS FORFAITAIRE</h2>
 | 
			
		||||
	<form name="nouveauFraisForfaitaire" action="index.php?uc=gererFraisForfaitaire&action=valider" method="POST">
 | 
			
		||||
		<table class="listeLegere">
 | 
			
		||||
			<thead>
 | 
			
		||||
				<tr>
 | 
			
		||||
					<th class="date">Quantité</th>
 | 
			
		||||
					<th class="eltForfait">Nature de la dépense</th>
 | 
			
		||||
					<th class="montant">Prix</th>
 | 
			
		||||
					<th class="montant">Montant</th>
 | 
			
		||||
				</tr>
 | 
			
		||||
			</thead>
 | 
			
		||||
			<tbody>
 | 
			
		||||
				<tr>
 | 
			
		||||
					<td><input type="hidden" name="zMois" value="<?PHP echo $leMois; ?>">
 | 
			
		||||
					<input type="text" name="zQte" onkeyup="calculer()" style="text-align:right;"></td>
 | 
			
		||||
					<td><select name="zForfait" onchange="calculer()">
 | 
			
		||||
						<?PHP
 | 
			
		||||
							foreach ($lesForfaitsPossibles as $unForfait)
 | 
			
		||||
							{echo'<option value="'.$unForfait['fId'].'" size="1">'.$unForfait['fLibelle'].'</option>';}
 | 
			
		||||
						?>
 | 
			
		||||
						</select>
 | 
			
		||||
					</td>
 | 
			
		||||
					<td><input type="text" name="zPrix" style="text-align:right;" disabled></td>
 | 
			
		||||
					<td><input type="text" name="zMontant" style="text-align:right;" disabled></td>
 | 
			
		||||
					
 | 
			
		||||
				</tr>
 | 
			
		||||
			</tbody>
 | 
			
		||||
		</table>
 | 
			
		||||
		<?php echo 'Puissance du véhicule : '.$prixKm['aPuissance'].' - Carburant : '.$prixKm['aMotorisation'].'  (tarif en vigueur depuis le : '.$prixKm['aDate'].')'; ?>
 | 
			
		||||
		<p align="right"><input type="image" name="zValider" alt="Valider" src="images/valider.jpg" onclick="valider()"><input type="image" name="zAnnuler" alt="Annuler" src="images/annuler.jpg" onclick="annuler()"></p>
 | 
			
		||||
	</form>	
 | 
			
		||||
</div>
 | 
			
		||||
	
 | 
			
		||||
	<script src="include/proceduresJava.js" type="text/javascript"></script>
 | 
			
		||||
	<script type="text/javascript">
 | 
			
		||||
		function calculer()
 | 
			
		||||
		{
 | 
			
		||||
		<?php
 | 
			
		||||
			$tarif = 'var tarif = ['; 
 | 
			
		||||
			foreach ($lesForfaitsPossibles as $unForfait)
 | 
			
		||||
			{
 | 
			
		||||
				
 | 
			
		||||
				
 | 
			
		||||
				
 | 
			
		||||
				$tarif .= $unForfait['fMontant'].',';
 | 
			
		||||
			}
 | 
			
		||||
			$tarif .='];';
 | 
			
		||||
			echo $tarif."\n"; 
 | 
			
		||||
		?>
 | 
			
		||||
			var iLeChoix = document.nouveauFraisForfaitaire.zForfait.selectedIndex;		
 | 
			
		||||
			var quantite = document.nouveauFraisForfaitaire.zQte.value;
 | 
			
		||||
			
 | 
			
		||||
			if (!isNaN(quantite))
 | 
			
		||||
			{
 | 
			
		||||
				document.nouveauFraisForfaitaire.zMontant.value = format_euro(quantite * (parseInt(parseFloat(tarif[iLeChoix])*1000))/1000);
 | 
			
		||||
			}
 | 
			
		||||
			document.nouveauFraisForfaitaire.zPrix.value = format_euro((parseInt(parseFloat(tarif[iLeChoix])*1000))/1000);
 | 
			
		||||
		}
 | 
			
		||||
		
 | 
			
		||||
		function valider()
 | 
			
		||||
		{
 | 
			
		||||
			document.nouveauFraisForfaitaire.zPrix.disabled=false;
 | 
			
		||||
			document.nouveauFraisForfaitaire.submit();
 | 
			
		||||
		}
 | 
			
		||||
		
 | 
			
		||||
		function annuler()
 | 
			
		||||
		{
 | 
			
		||||
			document.nouveauFraisForfaitaire.reset();
 | 
			
		||||
			document.nouveauFraisForfaitaire.submit();
 | 
			
		||||
		}
 | 
			
		||||
		
 | 
			
		||||
		window.onload = function() { calculer(); };
 | 
			
		||||
	</script>
 | 
			
		||||
							
								
								
									
										39
									
								
								vues/v_ajoutFraisHorsForfait.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								vues/v_ajoutFraisHorsForfait.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,39 @@
 | 
			
		||||
<!-- ajout d'un frais hors forfaits / Derni<6E>re modification le 03/05/2023 <20> 11H01 par P. Blain -->
 | 
			
		||||
<div id="contenu">
 | 
			
		||||
	<h2>AJOUT D'UN FRAIS HORS FORFAIT</h2>
 | 
			
		||||
	<form name="unFraisHorsForfait" action="index.php?uc=gererFraisHorsForfait&action=valider" method="POST">
 | 
			
		||||
		<table class="listeLegere">
 | 
			
		||||
			<thead>
 | 
			
		||||
				<tr>
 | 
			
		||||
					<th class="date">Date</th>
 | 
			
		||||
					<th class="eltForfait">Nature de la dépense</th>
 | 
			
		||||
					<th class="montant">Montant</th>
 | 
			
		||||
				</tr>
 | 
			
		||||
			</thead>
 | 
			
		||||
			<tbody>
 | 
			
		||||
				<tr>
 | 
			
		||||
					<td><input type="hidden" name="zMois" value="<?PHP echo $leMois; ?>">
 | 
			
		||||
					<input type="text" name="zDate" style="text-align:center;border:0;"></td>
 | 
			
		||||
					<td><input type="text" name="zLibelle" style="text-align:left;border:0;" size='80' maxlength='80' ></td>
 | 
			
		||||
					<td><input type="text" name="zMontant" style="text-align:right;border:0;"></td>	
 | 
			
		||||
				</tr>
 | 
			
		||||
			</tbody>
 | 
			
		||||
		</table>
 | 
			
		||||
		<p align="right"><input type="image" name="zValider" alt="Valider" src="images/valider.jpg" onclick="valider()"><input type="image" name="zAnnuler" alt="Annuler" src="images/annuler.jpg" onclick="annuler()"></p>
 | 
			
		||||
	</form>	
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<script type="text/javascript">
 | 
			
		||||
		function valider()
 | 
			
		||||
			{
 | 
			
		||||
			document.unFraisHorsForfait.submit();
 | 
			
		||||
			}
 | 
			
		||||
		
 | 
			
		||||
		function annuler()
 | 
			
		||||
			{
 | 
			
		||||
			document.unFraisHorsForfait.reset();
 | 
			
		||||
			document.unFraisHorsForfait.submit();
 | 
			
		||||
			}
 | 
			
		||||
		
 | 
			
		||||
</script>
 | 
			
		||||
<!-- fin -->
 | 
			
		||||
							
								
								
									
										49
									
								
								vues/v_choixMois.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										49
									
								
								vues/v_choixMois.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,49 @@
 | 
			
		||||
<!-- choix d'un mois / Derniere modification le 03/05/2023 à 11H01 par Pascal Blain -->
 | 
			
		||||
	<script src="include/proceduresJava.js" type="text/javascript"></script>
 | 
			
		||||
<?php
 | 
			
		||||
	if ($_SESSION['statut']=="1") {
 | 
			
		||||
	$nbM=count($lesMois);
 | 
			
		||||
	echo '
 | 
			
		||||
 <div id="contenu">
 | 
			
		||||
	<form name="choixM" action="index.php?uc=etatFrais&action=voir" method="post">
 | 
			
		||||
	<h2>Etat de frais de ';} ?>
 | 
			
		||||
 
 | 
			
		||||
	        <select id="lstMois" name="lstMois" onchange="submit();">
 | 
			
		||||
	            <?php 
 | 
			
		||||
	            if (!isset($_REQUEST['lstMois']))
 | 
			
		||||
	            	{$moisChoisi = 'premier';}
 | 
			
		||||
	            else
 | 
			
		||||
	            	{$moisChoisi=$_REQUEST['lstMois'];
 | 
			
		||||
	            	}	
 | 
			
		||||
	            $i=1; 
 | 
			
		||||
	            foreach ($lesMois as $unMois)
 | 
			
		||||
				{	
 | 
			
		||||
					if($unMois['mois'] == $moisChoisi or $moisChoisi == 'premier')
 | 
			
		||||
						{echo "<option selected value=\"".$unMois['mois']."\">".$unMois['numMois']." ".$unMois['numAnnee']."</option>\n	";
 | 
			
		||||
						$moisChoisi = $unMois['mois'];
 | 
			
		||||
						$noM=$i;}
 | 
			
		||||
					else
 | 
			
		||||
						{echo "<option value=\"".$unMois['mois']."\">".$unMois['numMois']." ".$unMois['numAnnee']."</option>\n		";
 | 
			
		||||
						$i=$i+1;}
 | 
			
		||||
				}	           
 | 
			
		||||
			    echo '   
 | 
			
		||||
	        </select></h2>';
 | 
			
		||||
	        ?>
 | 
			
		||||
	        <!-- ============================================================== navigation dans les listes visiteurs et mois -->
 | 
			
		||||
	        <div id="navigation">
 | 
			
		||||
		        <input type="image" id="zPremier" alt="premier" src="images/goPremier.gif" onclick="premier(<?php echo "'".$_SESSION['statut']."'"; ?>)">    
 | 
			
		||||
		        <input type="image" id="zPrecedent" alt="précédent" src="images/goPrecedent.gif" onclick="precedent(<?php echo "'".$_SESSION['statut']."'"; ?>)"> 
 | 
			
		||||
		        <?php
 | 
			
		||||
		        echo '
 | 
			
		||||
			        <input type="text" id="zNumero" alt="indice" value="'.$noM.'/'.$nbM.'" disabled="true" size="5" style="text-align:center;vertical-align:top;">';
 | 
			
		||||
		        	
 | 
			
		||||
		        
 | 
			
		||||
			        
 | 
			
		||||
			        
 | 
			
		||||
			        
 | 
			
		||||
			    ?>
 | 
			
		||||
		        <input type="image" id="zSuivant" alt="premier" src="images/goSuivant.gif" onclick="suivant(<?php echo "'".$_SESSION['statut']."'"; ?>)">    
 | 
			
		||||
		        <input type="image" id="zDernier" alt="premier" src="images/goDernier.gif" onclick="dernier(<?php echo "'".$_SESSION['statut']."'"; ?>)">    
 | 
			
		||||
		    </div>
 | 
			
		||||
	</form>
 | 
			
		||||
<!-- fin liste de choix -->
 | 
			
		||||
							
								
								
									
										34
									
								
								vues/v_choixVisiteur.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								vues/v_choixVisiteur.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,34 @@
 | 
			
		||||
<!-- Choix d'un visiteur / Derniere modification le 03/05/2023 à 11H01 par Pascal Blain -->
 | 
			
		||||
 | 
			
		||||
<?php
 | 
			
		||||
	
 | 
			
		||||
	if ($_SESSION['statut']!="1")
 | 
			
		||||
	{
 | 
			
		||||
	echo ' 
 | 
			
		||||
 <div id="contenu">
 | 
			
		||||
	<form name="choixV" action="index.php?uc=etatFrais&action=voir" method="post">
 | 
			
		||||
	<h2>Etat de frais de 
 | 
			
		||||
		        
 | 
			
		||||
		        <select id="lstVisiteurs" name="lstVisiteurs" onchange="submit();">';
 | 
			
		||||
	            if (!isset($_REQUEST['lstVisiteurs']))
 | 
			
		||||
	            	{$visiteurChoisi = 'premier';}
 | 
			
		||||
	            else
 | 
			
		||||
	            	{
 | 
			
		||||
	            	$visiteurChoisi=$_REQUEST['lstVisiteurs'];	
 | 
			
		||||
	            	}
 | 
			
		||||
	            
 | 
			
		||||
	            
 | 
			
		||||
				 
 | 
			
		||||
					
 | 
			
		||||
						
 | 
			
		||||
						
 | 
			
		||||
						
 | 
			
		||||
					
 | 
			
		||||
						
 | 
			
		||||
						
 | 
			
		||||
					           
 | 
			
		||||
			   echo '    
 | 
			
		||||
	        </select>
 | 
			
		||||
	        Mois de ';
 | 
			
		||||
	  }      
 | 
			
		||||
?>
 | 
			
		||||
							
								
								
									
										22
									
								
								vues/v_connexion.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								vues/v_connexion.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,22 @@
 | 
			
		||||
<!-- 03/05/2023 à 11H01 -->
 | 
			
		||||
<div id="contenu">
 | 
			
		||||
      <h2>Identification utilisateur</h2>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
<form method="POST" action="index.php?uc=connexion&action=valideConnexion">
 | 
			
		||||
   
 | 
			
		||||
    
 | 
			
		||||
			<p>
 | 
			
		||||
       <label for="nom">Login*</label>
 | 
			
		||||
       <input id="login" type="text" name="login"  size="30" maxlength="45">
 | 
			
		||||
      </p>
 | 
			
		||||
			<p>
 | 
			
		||||
				<label for="mdp">Mot de passe*</label>
 | 
			
		||||
			  <input id="mdp"  type="password"  name="mdp" size="30" maxlength="45">
 | 
			
		||||
      </p>
 | 
			
		||||
         <input type="submit" value="Valider" name="valider">
 | 
			
		||||
         <input type="reset" value="Annuler" name="annuler"> 
 | 
			
		||||
      </p>
 | 
			
		||||
</form>
 | 
			
		||||
 | 
			
		||||
</div>
 | 
			
		||||
							
								
								
									
										30
									
								
								vues/v_entete.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								vues/v_entete.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,30 @@
 | 
			
		||||
<!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" xml:lang="fr" lang="fr">
 | 
			
		||||
  <head>
 | 
			
		||||
    <title>Intranet du Laboratoire Galaxy-Swiss Bourdin</title>
 | 
			
		||||
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
 | 
			
		||||
    <link href="./styles/stylesGSB.css" rel="stylesheet" type="text/css" />
 | 
			
		||||
    <link rel="shortcut icon" type="image/x-icon" href="./images/favicon.ico" />
 | 
			
		||||
  </head>
 | 
			
		||||
  <body>
 | 
			
		||||
    <div id="page">
 | 
			
		||||
		<div id="entete">
 | 
			
		||||
	        <img src="./images/logo.jpg" id="logoGSB" alt="Laboratoire Galaxy-Swiss Bourdin" title="Laboratoire Galaxy-Swiss Bourdin" />
 | 
			
		||||
	<?php if (isset($_SESSION['idUtilisateur'])) 
 | 
			
		||||
		{echo '
 | 
			
		||||
		<!-- affichage du menu / Derniere  modification le 03/05/2023 à 11H01  par P. Blain -->
 | 
			
		||||
			<div id="sommaire">
 | 
			
		||||
				<ul>
 | 
			
		||||
					<li><a href="" title=""> </a></li>
 | 
			
		||||
					<li><a href="" title=""> </a>|</li>
 | 
			
		||||
					<li><b>Bienvenue '.$_SESSION['prenom'].'  '.strtoupper($_SESSION['nom']).'</b> ('.$_SESSION['typeUtilisateur'].')';
 | 
			
		||||
					if ($_SESSION['statut']<>'1') {echo '<br /><i>Il y a '.$nbRemboursementsAValider.' demandes à valider</i>';}
 | 
			
		||||
					echo ' </li>
 | 
			
		||||
					<li><a href="index.php?uc=connexion&action=demandeConnexion" title="Se déconnecter"><img alt="déconnexion" src="images/deconnexion.png" border="0" height="26px"></a></li>
 | 
			
		||||
				</ul>      
 | 
			
		||||
			</div>';} ?>
 | 
			
		||||
	        <br /><br /><h1>ÉTAT DES FRAIS ENGAGÉS</h1>
 | 
			
		||||
	        <p style="text-align=left;"><?php echo $_SESSION['adr1'].'<br />'.$_SESSION['adr2'].'</p>';?>
 | 
			
		||||
		</div>
 | 
			
		||||
<!-- fin affichage du menu -->
 | 
			
		||||
							
								
								
									
										10
									
								
								vues/v_erreurs.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								vues/v_erreurs.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
<div class ="erreur">
 | 
			
		||||
	<ul>
 | 
			
		||||
	<?php 
 | 
			
		||||
	foreach($_REQUEST['erreurs'] as $erreur)
 | 
			
		||||
		{
 | 
			
		||||
	      echo "<li>$erreur</li>";
 | 
			
		||||
		}
 | 
			
		||||
	?>
 | 
			
		||||
	</ul>
 | 
			
		||||
</div>
 | 
			
		||||
							
								
								
									
										140
									
								
								vues/v_etatFrais.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										140
									
								
								vues/v_etatFrais.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,140 @@
 | 
			
		||||
 | 
			
		||||
<!-- affichage du detail de la fiche frais / Derniere modification le 03/05/2023 à 11H01 par Pascal BLAIN -->
 | 
			
		||||
	<div class="encadre">
 | 
			
		||||
	<!-- ============================================================== frais forfaitaires -->
 | 
			
		||||
  	<table class="listeLegere">
 | 
			
		||||
  	   <caption><h3> Éléments forfaitisés 
 | 
			
		||||
  	   <?php 
 | 
			
		||||
  	   if ($ajoutFraisPossible['forfait']=="oui") echo '
 | 
			
		||||
	   <a href="index.php?uc=gererFraisForfaitaire&action=choix" title="ajout frais forfaitaire">
 | 
			
		||||
	   <img alt="Ajouter un frais forfaitaire" src="images/ajouter.jpg" border="0"> </a>
 | 
			
		||||
	   ';?></h3>
 | 
			
		||||
	   </caption>
 | 
			
		||||
		<thead>
 | 
			
		||||
			<tr>
 | 
			
		||||
				<th class="date">Quantité</th>
 | 
			
		||||
				<th class="eltForfait">Nature de la dépense</th>
 | 
			
		||||
				<th class="montant">Prix</th>
 | 
			
		||||
				<th class="montant">Montant</th>
 | 
			
		||||
				<?php
 | 
			
		||||
				if ($ajoutFraisPossible['horsForfait']=="oui" or $ajoutFraisPossible['modifComptable']=="oui") {echo '
 | 
			
		||||
				<th> </th>
 | 
			
		||||
				<th> </th>';} ?>
 | 
			
		||||
			</tr>
 | 
			
		||||
		</thead>
 | 
			
		||||
		<tbody>
 | 
			
		||||
 | 
			
		||||
	        <?php
 | 
			
		||||
	        $totalFraisForfait=0;
 | 
			
		||||
			foreach ( $lesFraisForfait as $unFraisForfait ) 
 | 
			
		||||
			{	echo '
 | 
			
		||||
			 <tr>
 | 
			
		||||
				<td align="right">'.$unFraisForfait['lfQuantite'].'</td>
 | 
			
		||||
				<td>'.$unFraisForfait['fLibelle'].'</td>
 | 
			
		||||
				<td align="right">'.number_format($unFraisForfait['lfMontant'],2,',','.').'</td>
 | 
			
		||||
				<td align="right">'.number_format($unFraisForfait['totalLigne'],2,',','.').'</td>';
 | 
			
		||||
 | 
			
		||||
  	   			if ($ajoutFraisPossible['horsForfait']=="oui" or $ajoutFraisPossible['modifComptable']=="oui") echo '				
 | 
			
		||||
	         	<td><a href="index.php?uc=gererFraisForfaitaire&action=editer&forfait='.$unFraisForfait['idfrais'].'"><img alt="modifier" src="images/editer.jpg" border="0"></a></td>
 | 
			
		||||
	        	<td><a href="index.php?uc=gererFraisForfaitaire&action=supprimer&forfait='.$unFraisForfait['idfrais'].'"><img alt="supprimer" src="images/supprimer.jpg" border="0"></a></td>';
 | 
			
		||||
	        	
 | 
			
		||||
	        	echo '
 | 
			
		||||
			 </tr>';
 | 
			
		||||
			 $totalFraisForfait=$totalFraisForfait + $unFraisForfait['totalLigne'];
 | 
			
		||||
	         }
 | 
			
		||||
	         echo '
 | 
			
		||||
	         <tr>
 | 
			
		||||
	         	<td> </td>
 | 
			
		||||
	        	<td> </td>
 | 
			
		||||
	        	<td align="right"><b>Total</b></td>
 | 
			
		||||
	        	<td align="right"><b>'.number_format($totalFraisForfait,2,',','.').'</b></td>';
 | 
			
		||||
	        	
 | 
			
		||||
	        	if ($ajoutFraisPossible['horsForfait']=="oui" or $ajoutFraisPossible['modifComptable']=="oui") {echo '
 | 
			
		||||
				<td> </td>
 | 
			
		||||
				<td> </td>
 | 
			
		||||
	         </tr>';}
 | 
			
		||||
			?>
 | 
			
		||||
		</tbody>
 | 
			
		||||
	    </table>
 | 
			
		||||
	    
 | 
			
		||||
	    <!-- ============================================================== rappel des elements du remboursement -->
 | 
			
		||||
	    <form name="autresfrais" action="index.php?uc=etatFrais&action=validerEtat" method="post">
 | 
			
		||||
	    <div id="menu"> 
 | 
			
		||||
	    	<ul>
 | 
			
		||||
				<li>Etat : <b><?php echo $libEtat;?> </b></li>
 | 
			
		||||
				<li>depuis le :<br /><b><?php echo $dateModif;?></b> </li>
 | 
			
		||||
				<li>Justificatifs : <b><?php echo $nbJustificatifs; ?></b></li>
 | 
			
		||||
				<li>Montant validé : <br /><b><?php echo number_format($montantValide,2,',','.').' €';?></b> </li><br />
 | 
			
		||||
				<?php 
 | 
			
		||||
				if ($ajoutFraisPossible['modifComptable']=="oui") { echo '
 | 
			
		||||
				<li style="list-style-type:none;"><img alt="validation de la demande de remboursement" src="images/validation.jpg" onClick="document.autresfrais.submit();"></li>';} 
 | 
			
		||||
				?>
 | 
			
		||||
			</ul>
 | 
			
		||||
		</div>
 | 
			
		||||
		
 | 
			
		||||
	    <!-- ============================================================== frais hors forfaits -->
 | 
			
		||||
	  	<table class="listeLegere">
 | 
			
		||||
	  	   <caption><h3> Autres dépenses (hors forfaits) 
 | 
			
		||||
	  	   <?php 
 | 
			
		||||
  	   		if ($ajoutFraisPossible['horsForfait']=="oui") echo '
 | 
			
		||||
	   		<a href="index.php?uc=gererFraisHorsForfait&action=ajouter" title="ajout frais hors forfait">
 | 
			
		||||
	   		<img alt="Ajouter un frais hors forfait" src="images/ajouter.jpg" border="0"> </a>
 | 
			
		||||
	   		';?></h3>
 | 
			
		||||
	       </caption>
 | 
			
		||||
			<thead>
 | 
			
		||||
	             <tr>
 | 
			
		||||
	                <th class="date">Date</th>
 | 
			
		||||
	                <th class="libelle">Nature de la dépense</th>
 | 
			
		||||
	                <th class="montant">Montant</th>
 | 
			
		||||
	                <?php
 | 
			
		||||
					if ($ajoutFraisPossible['horsForfait']=="oui" or $ajoutFraisPossible['modifComptable']=="oui") {echo '
 | 
			
		||||
					<th> </th>
 | 
			
		||||
					<th> </th>';}
 | 
			
		||||
					if ($ajoutFraisPossible['modifComptable']=="oui") {echo '
 | 
			
		||||
					<th><img name="zTous" alt="valider tous les justificatifs" src="images/cocheB.gif" width="20px" onClick="tousLesJustificatifs(document.autresfrais);" onMouseOver="src=\'images/cocheR.gif\'"  onMouseOut="src=\'images/cocheB.gif\'">
 | 
			
		||||
					<input type="hidden" name="zSens" value="on"></th>';} 
 | 
			
		||||
					?>
 | 
			
		||||
	             </tr> 
 | 
			
		||||
	        </thead>
 | 
			
		||||
	        <tbody> 
 | 
			
		||||
	        <?php 
 | 
			
		||||
	        	$totalFraisHorsForfait=0;     
 | 
			
		||||
		        foreach ( $lesFraisHorsForfait as $unFraisHorsForfait ) 
 | 
			
		||||
				{if (substr($unFraisHorsForfait['lhLibelle'],0,6)<>'REFUSE') {$td='<td style="text-decoration:none;"';} else {$td='<td style="text-decoration:line-through; color:red;"';} 
 | 
			
		||||
				echo '<tr>'.
 | 
			
		||||
		            $td.'>'.$unFraisHorsForfait['lhDate'].'</td>'.
 | 
			
		||||
		            $td.'>'.$unFraisHorsForfait['lhLibelle'].'</td>'.
 | 
			
		||||
		            $td.' align="right">'.number_format($unFraisHorsForfait['lhMontant'],2,',','.').'</td>';
 | 
			
		||||
		            
 | 
			
		||||
	  	   			if ($ajoutFraisPossible['horsForfait']=="oui" or $ajoutFraisPossible['modifComptable']=="oui") 
 | 
			
		||||
	  	   			{echo '				
 | 
			
		||||
		         	<td><a href="index.php?uc=gererFraisHorsForfait&action=editer&idFrais='.$unFraisHorsForfait['lhId'].'"><img alt="modifier" src="images/editer.jpg" border="0"></a></td>
 | 
			
		||||
		        	<td><img alt="supprimer" src="images/supprimer.jpg" border="0"></td>';
 | 
			
		||||
		        	}
 | 
			
		||||
					if ($ajoutFraisPossible['modifComptable']=="oui") 
 | 
			
		||||
					{if (substr($unFraisHorsForfait['lhLibelle'],0,6)<>'REFUSE') 
 | 
			
		||||
						{echo '<td><input type="checkbox" name="justificatifs[]" value="'.$unFraisHorsForfait['lhId'].'" checked onClick=""></td>';}
 | 
			
		||||
					else
 | 
			
		||||
						{echo '<td> </td>';}						
 | 
			
		||||
		        	}
 | 
			
		||||
		        	$totalFraisHorsForfait=$totalFraisHorsForfait + $unFraisHorsForfait['lhMontant']; echo '
 | 
			
		||||
	         	</tr>';
 | 
			
		||||
		       }
 | 
			
		||||
	         echo '
 | 
			
		||||
	         <tr>
 | 
			
		||||
	         	<td> </td>
 | 
			
		||||
	        	<td align="right"><b>Total</b></td>
 | 
			
		||||
	        	<td align="right"><b>'.number_format($totalFraisHorsForfait,2,',','.').'</b></td>';
 | 
			
		||||
			 	if ($ajoutFraisPossible['horsForfait']=="oui" or $ajoutFraisPossible['modifComptable']=="oui") {echo '
 | 
			
		||||
			 	<td> </td>
 | 
			
		||||
				<td> </td>';} 
 | 
			
		||||
				if ($ajoutFraisPossible['modifComptable']=="oui") {echo '
 | 
			
		||||
				<td> </td>';} echo '
 | 
			
		||||
	         </tr>
 | 
			
		||||
			</tbody>
 | 
			
		||||
	    </table>
 | 
			
		||||
	</div>    
 | 
			
		||||
	<h3 align="center"><b>Total de la demande de remboursement de frais : '.number_format($totalFraisForfait + $totalFraisHorsForfait,2,',','.').' €</b></h3>
 | 
			
		||||
    </form>
 | 
			
		||||
 | 
			
		||||
  </div>'; ?>
 | 
			
		||||
							
								
								
									
										92
									
								
								vues/v_gestionFiches.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										92
									
								
								vues/v_gestionFiches.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,92 @@
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html lang="en">
 | 
			
		||||
 | 
			
		||||
<head>
 | 
			
		||||
    <meta charset="UTF-8">
 | 
			
		||||
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
			
		||||
    <title>Page accueil</title>
 | 
			
		||||
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
 | 
			
		||||
        integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
 | 
			
		||||
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
 | 
			
		||||
        integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
 | 
			
		||||
        crossorigin="anonymous"></script>
 | 
			
		||||
</head>
 | 
			
		||||
 | 
			
		||||
<body>
 | 
			
		||||
    <div class="container-fluid">
 | 
			
		||||
        <div class="row flex-nowrap">
 | 
			
		||||
            <?php include('../include/menu.php') ?>
 | 
			
		||||
 | 
			
		||||
            <div class="col py-3">
 | 
			
		||||
                <center>
 | 
			
		||||
                    <div class="col-3 mb-4">
 | 
			
		||||
                        <h3>Gerer mes fiches de frais</h3>
 | 
			
		||||
                        <br>
 | 
			
		||||
                        <select class="form-select" name="selVisiteur" id="">
 | 
			
		||||
                            <option value="visiteur1">Visiteur 1</option>
 | 
			
		||||
                        </select>
 | 
			
		||||
 | 
			
		||||
                    </div>
 | 
			
		||||
 | 
			
		||||
                </center>
 | 
			
		||||
 | 
			
		||||
                <div class="col-11 d-flex mx-auto">
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                    <table class="table table-striped">
 | 
			
		||||
                        <thead>
 | 
			
		||||
                            <tr>
 | 
			
		||||
                                <th scope="col">Mois</th>
 | 
			
		||||
                                <th scope="col">Total</th>
 | 
			
		||||
                                <th scope="col">Statut</th>
 | 
			
		||||
                                <th scope="col">Détails</th>
 | 
			
		||||
                            </tr>
 | 
			
		||||
                        </thead>
 | 
			
		||||
                        <tbody>
 | 
			
		||||
                            <tr>
 | 
			
		||||
                                <th scope="row">Novembre</th>
 | 
			
		||||
                                <td>351 €</td>
 | 
			
		||||
                                <td>en cours...</td>
 | 
			
		||||
                                <td><a href="#">voir</a></td>
 | 
			
		||||
                            </tr>
 | 
			
		||||
                            <tr>
 | 
			
		||||
                                <th scope="row">Octobre</th>
 | 
			
		||||
                                <td>1458 €</td>
 | 
			
		||||
                                <td>en cours...</td>
 | 
			
		||||
                                <td><a href="#">voir</a></td>
 | 
			
		||||
                            </tr>
 | 
			
		||||
                            <tr>
 | 
			
		||||
                                <th scope="row">Septembre</th>
 | 
			
		||||
                                <td>1112 €</td>
 | 
			
		||||
                                <td>classé</td>
 | 
			
		||||
                                <td><a href="#">voir</a></td>
 | 
			
		||||
                            </tr>
 | 
			
		||||
                        </tbody>
 | 
			
		||||
                    </table>
 | 
			
		||||
                </div>
 | 
			
		||||
                <div class="col-4 d-flex mx-auto">
 | 
			
		||||
                    <nav aria-label="...">
 | 
			
		||||
                        <ul class="pagination">
 | 
			
		||||
                            <li class="page-item disabled">
 | 
			
		||||
                                <a class="page-link">Previous</a>
 | 
			
		||||
                            </li>
 | 
			
		||||
                            <li class="page-item"><a class="page-link" href="#">1</a></li>
 | 
			
		||||
                            <li class="page-item active" aria-current="page">
 | 
			
		||||
                                <a class="page-link" href="#">2</a>
 | 
			
		||||
                            </li>
 | 
			
		||||
                            <li class="page-item"><a class="page-link" href="#">3</a></li>
 | 
			
		||||
                            <li class="page-item">
 | 
			
		||||
                                <a class="page-link" href="#">Next</a>
 | 
			
		||||
                            </li>
 | 
			
		||||
                        </ul>
 | 
			
		||||
                    </nav>
 | 
			
		||||
                </div>
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
</body>
 | 
			
		||||
 | 
			
		||||
</html>
 | 
			
		||||
							
								
								
									
										7
									
								
								vues/v_pied.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								vues/v_pied.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
 | 
			
		||||
<!-- Division pour le pied de page -->
 | 
			
		||||
<div>
 | 
			
		||||
   <hr /><p style="text-align:center;"><img src="images/castel.png" style="vertical-align: middle;"><?php echo "Lycée Le Castel à Dijon - BTS SIO - <img src='images/copyleft.png' style='text-align: center; vertical-align: middle;'> 03/05/2023 Blain Pascal";?></p> 
 | 
			
		||||
</div>
 | 
			
		||||
  </body>
 | 
			
		||||
</html>
 | 
			
		||||
							
								
								
									
										60
									
								
								vues/v_unFraisForfaitaire.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										60
									
								
								vues/v_unFraisForfaitaire.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,60 @@
 | 
			
		||||
<!-- Derniere modification le 03/05/2023 à 11H01 à 15H11 -->
 | 
			
		||||
<div id="contenu">
 | 
			
		||||
 | 
			
		||||
<?php
 | 
			
		||||
 	if ($_REQUEST['action']=="supprimer") 
 | 
			
		||||
		{echo '<h2>SUPPRESSION D\'UN FRAIS FORFAITAIRE</h2>';
 | 
			
		||||
		echo '<form name="unFraisForfaitaire" action="index.php?uc=gererFraisForfaitaire&action=validerSupprimer&forfait='.$unForfait['lfForfait'].'" method="POST">';} 
 | 
			
		||||
	else 
 | 
			
		||||
		{echo '<h2>EDITION D\'UN FRAIS FORFAITAIRE</h2>';
 | 
			
		||||
		echo '<form name="unFraisForfaitaire" action="index.php?uc=gererFraisForfaitaire&action=validerModifier&forfait='.$unForfait['lfForfait'].'" method="POST">';}
 | 
			
		||||
?>	
 | 
			
		||||
		<table class="listeLegere">
 | 
			
		||||
			<thead>
 | 
			
		||||
				<tr>
 | 
			
		||||
					<th class="date">Quantité</th>
 | 
			
		||||
					<th class="eltForfait">Nature de la dépense</th>
 | 
			
		||||
					<th class="montant">Prix</th>
 | 
			
		||||
					<th class="montant">Montant</th>
 | 
			
		||||
				</tr>
 | 
			
		||||
			</thead>
 | 
			
		||||
			<tbody>
 | 
			
		||||
				<tr>
 | 
			
		||||
					<td><input type="text" name="zQte" onkeyup="calculer()" style="text-align:right;border: 0;" value="<?php echo $unForfait['lfQuantite'].'"';if ($_REQUEST['action']=="supprimer") {echo ' disabled';}?>>
 | 
			
		||||
					<input type="hidden" name="zMois" value="<?php echo $leMois; ?>"></td>
 | 
			
		||||
					<td><input type="text" name="zForfait" value="<?php echo $unForfait['fLibelle']; ?>" style="text-align:left;border: 0;" disabled></td>
 | 
			
		||||
					<td><input type="text" name="zPrix" value="<?php echo number_format($unForfait['lfMontant'],2,',','.'); ?>" style="text-align:right;border: 0;" disabled></td>
 | 
			
		||||
					<td><input type="text" name="zMontant"  value="<?php echo number_format($unForfait['lfQuantite']*$unForfait['lfMontant'],2,',','.'); ?>" style="text-align:right;border: 0;" disabled></td>
 | 
			
		||||
				</tr>
 | 
			
		||||
			</tbody>
 | 
			
		||||
		</table>
 | 
			
		||||
		<p align="right"><input type="image" id="zValider" alt="Oui" src="images/valider.jpg" onclick="valider()"><input type="image" name="zAnnuler" alt="Non" src="images/annuler.jpg" onclick="annuler()"></p>
 | 
			
		||||
				
 | 
			
		||||
	</form>
 | 
			
		||||
 | 
			
		||||
</div>
 | 
			
		||||
	
 | 
			
		||||
	<script src="include/proceduresJava.js" type="text/javascript"></script>
 | 
			
		||||
	
 | 
			
		||||
	<script type="text/javascript">
 | 
			
		||||
		function calculer()
 | 
			
		||||
		{
 | 
			
		||||
			if (!isNaN(document.unFraisForfaitaire.zQte.value)) {document.unFraisForfaitaire.zMontant.value=(parseFloat(document.unFraisForfaitaire.zPrix.value)*parseInt(document.unFraisForfaitaire.zQte.value))};
 | 
			
		||||
		}
 | 
			
		||||
		
 | 
			
		||||
		function valider()
 | 
			
		||||
		{	
 | 
			
		||||
			document.unFraisForfaitaire.zQte.disabled=false;
 | 
			
		||||
			document.unFraisForfaitaire.submit();
 | 
			
		||||
		}
 | 
			
		||||
		
 | 
			
		||||
		function annuler()
 | 
			
		||||
		{
 | 
			
		||||
			document.unFraisForfaitaire.zQte.disabled=false;
 | 
			
		||||
			document.unFraisForfaitaire.zQte.value=0;
 | 
			
		||||
			document.unFraisForfaitaire.submit();
 | 
			
		||||
		}
 | 
			
		||||
		
 | 
			
		||||
		window.onload = function() { calculer(); };		
 | 
			
		||||
		
 | 
			
		||||
	</script>
 | 
			
		||||
							
								
								
									
										55
									
								
								vues/v_unFraisHorsForfait.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										55
									
								
								vues/v_unFraisHorsForfait.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,55 @@
 | 
			
		||||
<!-- Derniere modification le 03/05/2023 à 11H01 -->
 | 
			
		||||
<div id="contenu">
 | 
			
		||||
 | 
			
		||||
<?php
 | 
			
		||||
 	if ($_REQUEST['action']=="supprimer") 
 | 
			
		||||
		{echo '<h2>SUPPRESSION D\'UN FRAIS HORS FORFAIT</h2>';
 | 
			
		||||
		echo '
 | 
			
		||||
	<form name="unFraisHorsForfait" action="index.php?uc=gererFraisHorsForfait&action=validerSupprimer&idFrais='.$unFrais['lhId'].'" method="POST">';} 
 | 
			
		||||
	else 
 | 
			
		||||
		{echo '<h2>EDITION D\'UN FRAIS HORS FORFAIT</h2>';
 | 
			
		||||
		echo '
 | 
			
		||||
	<form name="unFraisHorsForfait" action="index.php?uc=gererFraisHorsForfait&action=validerModifier&idFrais='.$unFrais['lhId'].'" method="POST">';}
 | 
			
		||||
?>	
 | 
			
		||||
		<table class="listeLegere">
 | 
			
		||||
			<thead>
 | 
			
		||||
				<tr>
 | 
			
		||||
					<th class="date">Date</th>
 | 
			
		||||
					<th class="eltForfait">Nature de la dépense</th>
 | 
			
		||||
					<th class="montant">Montant</th>
 | 
			
		||||
				</tr>
 | 
			
		||||
			</thead>
 | 
			
		||||
			<tbody>
 | 
			
		||||
				<tr>
 | 
			
		||||
					<!-- insérer ici votre code -->
 | 
			
		||||
				</tr>
 | 
			
		||||
			</tbody>
 | 
			
		||||
		</table>
 | 
			
		||||
		<p align="right">
 | 
			
		||||
<?php  	if ($_REQUEST['action']=="supprimer" and $_SESSION['statut']!="1")  {echo '
 | 
			
		||||
 			Si vous confirmez votre choix, la dépense invalidée sera marquée "REFUSEE")';} ?>
 | 
			
		||||
			<input type="image" id="zValider" alt="Oui" src="images/valider.jpg" onclick="valider()">
 | 
			
		||||
			<input type="image" name="zAnnuler" alt="Non" src="images/annuler.jpg" onclick="annuler()">
 | 
			
		||||
		</p>
 | 
			
		||||
				
 | 
			
		||||
	</form>
 | 
			
		||||
 | 
			
		||||
</div>
 | 
			
		||||
	
 | 
			
		||||
<script type="text/javascript">
 | 
			
		||||
		function valider()
 | 
			
		||||
			{
 | 
			
		||||
			document.unFraisHorsForfait.zMontant.disabled=false;
 | 
			
		||||
			document.unFraisHorsForfait.zLibelle.disabled=false;
 | 
			
		||||
			document.unFraisHorsForfait.submit();
 | 
			
		||||
			}
 | 
			
		||||
		
 | 
			
		||||
		function annuler()
 | 
			
		||||
			{
 | 
			
		||||
			document.unFraisHorsForfait.zMontant.disabled=false;
 | 
			
		||||
			document.unFraisHorsForfait.zMontant.value=0;
 | 
			
		||||
			document.unFraisHorsForfait.submit();
 | 
			
		||||
			}
 | 
			
		||||
		
 | 
			
		||||
</script>
 | 
			
		||||
<!-- fin -->
 | 
			
		||||
		Reference in New Issue
	
	Block a user