All pastes #987302 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-04-16 12:43 UTC
rendered paste body

<?php
if ($_COOKIE['conn'] == 'ok')
{

?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="styleSheet" media="screen" type="text/css" href="../style.css" />
</head>
<body id="accueil">
	<div id="page">
		<div id="top">
			<h1> </h1>
		</div>
        
  <div id="navigation">
      <ul>
          <li><a href="logout.php" id="navi-accueil">Déconnexion</a></li>         
      </ul>   
  </div>     
<!--******************CONTENUE************************  -->
	<div id="contenu">        
		<div class="post">
        	<h2> Administration</h2>
            	<h3>Publication/Ouvrages - Culture/Communication</h3>
				<?php
				include('../connect.php');
				 $sql2 = 'SELECT '.$_POST["prefixe"].'num, '.$_POST["prefixe"].'titre, '.$_POST["prefixe"].'description FROM '.$_POST["table"].' WHERE '.$_POST["prefixe"].'num = \''.$_POST["num_article"].'\';' ;
                $result2 = mysql_query( $sql2);
				$row = mysql_fetch_array ($result2, MYSQL_ASSOC);
				
			   	?>

                  <form name="insertion" action="modif.php" method="POST">
                  <input type="hidden" name="table" value="<?php echo $_POST["table"]; ?>" />
                  <input type="hidden" name="prefixe" value="<?php echo $_POST["prefixe"]; ?>" />
                  <input type="hidden" name="pageretour" value="<?php echo $_POST["pageretour"]; ?>"/>
                  <input type="hidden" name="num_article" value="<?php echo $_POST["num_article"]; ?>"/>
                    <table>
                      <tr align="center">
                        <td>Titre de l'article</td>
                        <td><input type="text" name="titre_article" value="<?php echo $row[$_POST["prefixe"].'titre']; ?>"/></td> 
                      </tr>
                      <tr>
                        <td>Description</td>
                        <td><textarea name="description_article" cols="40" rows="10" ><?php echo $row[$_POST["prefixe"].'description']; ?></textarea></td>
                      </tr>
<!--                      <tr>
                      <td>Image</td>
                      <td><input type="hidden" name="max_file_size" value="1000"> 
                      Envoyer ce fichier : <input name="fichier" type="file"> </td>
                      </tr>-->
                      <tr align="center">
                        <td colspan="2"><input type="submit" value="Modifier"></td>
                      </tr>
                    </table>
                  </form>
            
	</div>
</div>

    <div id="footer">
      <p>
          <a href="../logout.php">Déconnexion</a>
      </p>
    </div>

</div>

</body>
</html>

<?php
mysql_close($conn);
}
else
{
header("location:identification.php");

}

?>