CMS ultra léger au style oldschool, projet de la communauté Kalaïn Hundin.

edition_page.php 1.1KB

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