1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- $AdminDir = str_replace("administration", "",dirname(__FILE__));
- require_once(''.$AdminDir.'user/config.php');
- require_once(''.$MainDir.'user/verifications.php');
-
-
-
- $page_id_edit_page=$_GET['id'];
-
- $sql="SELECT * FROM page WHERE id_page='$page_id_edit_page'";
- $req = mysql_query($sql) or die('Erreur SQL !<br />'.$sql.'<br />'.mysql_error());
- $page_data = mysql_fetch_assoc($req);
-
- include("".$MainDir."files/navheader.php");
-
-
-
- $page_name='Edition de la page "'.$page_data['titre'].'"';
- include_once(''.$MainDir.'user/top.php');
- //echo'<title>Edition de la page "'.$page_data['titre'].'"</title>';
-
- ?>
-
-
- <form action='<?php echo $root_path ?>files/submit_edit_page.php?id=<?php echo $page_id_edit_page ?>' method='post'>
- <b>Titre</b> :<br />
- <input value="<?php echo htmlspecialchars($page_data['titre']); ?>" type='text' name='titre' /><br />
- <b>Page</b> :
- <br />
- <textarea name='page' cols='60' rows='10'><?php echo htmlspecialchars(stripslashes($page_data['page'])); ?></textarea><br />
- <input type='submit' value='Envoyer !!' />
-
-
-
-
-
-
|