12345678910111213141516171819202122232425262728293031 |
- <?php
- $AdminDir = str_replace("administration", "",dirname(__FILE__));
- require_once(''.$AdminDir.'user/config.php');
- require_once(''.$MainDir.'user/verifications.php');
-
-
-
- $article_id_edit_page=$_GET['id'];
-
- $sql="SELECT * FROM article WHERE id_article='$article_id_edit_page'";
- $req = $dbh->query($sql) or die('Erreur SQL !<br />'.$sql.'<br />'.mysql_error());
- $article_data = $req->fetch(PDO::FETCH_ASSOC);
-
- include("".$MainDir."files/navheader.php");
-
-
-
- $page_name='Edition de l\'article "'.$article_data['titre'].'"';
- include_once(''.$MainDir.'user/top.php');
-
- ?>
- <form action='<?php echo $root_path; ?>files/submit_edit.php?id=<?php echo $article_id_edit_page; ?>' method='post'>
- <b>Titre</b> :<br />
- <input value="<?php echo htmlspecialchars(stripslashes($article_data['titre'])); ?>" type='text' name='titre' /><br />
- <b>Article</b> :
- <br />
- <textarea name='article' cols='60' rows='10'><?php echo htmlspecialchars(stripslashes($article_data['article'])); ?></textarea><br />
- <input type='submit' value='Envoyer !!' />
-
-
|