Location: PHPKode > projects > PhpMyDVDs > phpmydvds/modifications.php
<?php

    /***************************************************************************
                                 modifications.php  -  description
                                -------------------

        copyright          : (C) 2002 by Cédric Rochat
        email                : hide@address.com
    ***************************************************************************/
    /***************************************************************************
    *
    *   This program is free software; you can redistribute it and/or modify
    *   it under the terms of the GNU General Public License as published by
    *   the Free Software Foundation; either version 2 of the License, or
    *   (at your option) any later version.
    *
    ***************************************************************************/

    require ("util.php");

	if (ControleAcces($password, $Internaute, session_id()))
	{
		if ($Modifications=='true')
		{
			switch ($target)
			{
				case 0 :
					include ("modifDVD.php");
					break;
				case 1 :
					include ("modifActeurs.php");
					break;
				case 2 :
					include ("modifRealisateurs.php");
					break;
				case 3 :
					include ("modifEditeurs.php");
					break;
				case 4 :
					include ("modifLangues.php");
					break;
				case 5 :
					include ("modifCategories.php");
					break;
				case 6 :
					include ("modifProprietaires.php");
					break;
				case 7 :
					include ("modifClients.php");
			}
		}
		else
		{
			if ($ajout!='TRUE') echo "<center><h1>Modifications</h1></center><hr>";
			else echo "<center><h1>Ajouts</h1></center><hr>";
					echo "
					<form name='modifications' method='POST' action='index.php?sousPage=modifications.php&AdminState=1'>
						<table border='0' cellspacing='5' cellpadding='5' align='center'>
							<tr>
								<td>
									<b>
										<i>
											<font face='Arial, Helvetica, sans-serif' size='2'>"; if ($ajout!='TRUE') echo "Vous voulez modifier :"; else echo "Vous voulez ajouter :"; echo "</font>
										</i>
									</b>
								</td>
								<td>
									<input type='radio' name='target' value='0' checked>
									<input type='hidden' name='MenuChoix' value='"; if ($ajout!='TRUE') echo "2"; else echo "3";
										echo "'><font face='Arial, Helvetica, sans-serif' size='2'>"; if ($ajout=='TRUE') echo "Des"; else echo "Les"; echo " DVDs</font>
										<br>
										<br>
									<input type='radio' name='target' value='1'>
									<input type='hidden' name='MenuChoix' value='"; if ($ajout!='TRUE') echo "2"; else echo "3";
										echo "'><font face='Arial, Helvetica, sans-serif' size='2'>"; if ($ajout=='TRUE') echo "Des"; else echo "Les"; echo " acteurs</font>
										<br>
										<br>
									<input type='radio' name='target' value='2'>
									<input type='hidden' name='MenuChoix' value='"; if ($ajout!='TRUE') echo "2"; else echo "3";
										echo "'><font face='Arial, Helvetica, sans-serif' size='2'>"; if ($ajout=='TRUE') echo "Des"; else echo "Les"; echo " réalisateurs</font>
										<br>
										<br>
									<input type='radio' name='target' value='3'>
									<input type='hidden' name='MenuChoix' value='"; if ($ajout!='TRUE') echo "2"; else echo "3";
										echo "'><font face='Arial, Helvetica, sans-serif' size='2'>"; if ($ajout=='TRUE') echo "Des"; else echo "Les"; echo " éditeurs</font>
										<br>
										<br>
									<input type='radio' name='target' value='4'>
									<input type='hidden' name='MenuChoix' value='"; if ($ajout!='TRUE') echo "2"; else echo "3";
										echo "'><font face='Arial, Helvetica, sans-serif' size='2'>"; if ($ajout=='TRUE') echo "Des"; else echo "Les"; echo " langues</font>
										<br>
										<br>
									<input type='radio' name='target' value='5'>
									<input type='hidden' name='MenuChoix' value='"; if ($ajout!='TRUE') echo "2"; else echo "3";
										echo "'><font face='Arial, Helvetica, sans-serif' size='2'>"; if ($ajout=='TRUE') echo "Des"; else echo "Les"; echo " catégories</font>
										<br>
										<br>
									<input type='radio' name='target' value='6'>
									<input type='hidden' name='MenuChoix' value='"; if ($ajout!='TRUE') echo "2"; else echo "3";
										echo "'><font face='Arial, Helvetica, sans-serif' size='2'>"; if ($ajout=='TRUE') echo "Des"; else echo "Les"; echo " propriétaires</font>
										<br>
										<br>
									<input type='radio' name='target' value='7'>
									<input type='hidden' name='MenuChoix' value='"; if ($ajout!='TRUE') echo "2"; else echo "3";
										echo "'><font face='Arial, Helvetica, sans-serif' size='2'>"; if ($ajout=='TRUE') echo "Des"; else echo "Les"; echo " clients</font>
									<input type='hidden' name='Modifications' value='true'>
									<input type='hidden' name='ajout' value='$ajout'>
								</td>
							</tr>
							<tr>
								<td align='center' colspan='2'>
									<input type='submit' value='OK' name='submit'>
								</td>
							</tr>
						</table>
					</form>";
		}
	}
	else
	{
		echo "<table width='100%' border='0' valign='top'><br><br><tr><td><center><h2>Mot&nbsp;de&nbsp;passe&nbsp;incorrect<BR>ou<BR>session&nbsp;terminée</h2><br><a href='index.php?sousPage=admin-request.php'>Autentifiez-vous&nbsp;ici</a></center></td></tr></table>";
	}

?>
Return current item: PhpMyDVDs