Code Search for Developers
 
 
  

ajout_nouvelle.mod.php from Gulus at Krugle


Show ajout_nouvelle.mod.php syntax highlighted

<?php

acces_direct_au_module_interdis_veuillez_utiliser_index_php();

 if ($submit) {

   echo "<B>Voici les informations qui sont enregistrées dans la base de donnée:</B><p>";
   echo "<B>Date de l'ajout de la nouvelle: </B>" . $date_nouvelle . "<br>";
   echo "<B>Titre de la nouvelle: </B>" . $titre_nouvelle . "<br>";
   echo "<B>Description: </B>" . $description . "<p>";

  include("includes/db_info.inc.php");

  $db = mysql_connect($db_host, $db_user, $db_passwd);
  mysql_select_db($db_name, $db);

  $date_nouvelle = $date_nouvelle . " " . $heure_nouvelle;

  $sql = "INSERT INTO gulus_nouvelles (date_nouvelle, titre_nouvelle, description) VALUES ('$date_nouvelle','$titre_nouvelle','$description')";
  $result = mysql_query($sql);
  if ($result)
  {
    printf("<B>Nouvelle ajoutée à la base de donnée.</B><BR><BR><FONT SIZE=-1>Merci de garder le GULUS bien vivant!</FONT>");
  }
  else printf("<FONT COLOR=\"RED\"><B>Oups! </FONT>L'ajout à la base de donnée n'a pas eu lieu -- problème à solutionner ASAP.</B>");
}
else {
?>
<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="85%">
<TD>
La nouvelle que vous sera ajoutée sur la page principale.  Il est à noter que vous pouvez
utiliser du code HTML dans le texte.</TD></TABLE></CENTER>
<BR><BR>
<?php

//nom de ce module pour le formulaire
$module = "ajout_nouvelle";
$date_nouvelle = date("Y-m-d");
$heure_nouvelle = date("H:i");
include("includes/formulaire_nouvelles.inc.php");
}
?>





See more files for this project here

Gulus

Groupe d\'Utilisateurs de Linux de l\'Universit? de Sherbrooke. http://www.gulus.org/

Project homepage: http://sourceforge.net/projects/gulus
Programming language(s): PHP,Shell Script
License: other

  activites.fct.php
  activites.mod.php
  aide.fct.php
  aide.mod.php
  ajout_activite.fct.php
  ajout_activite.mod.php
  ajout_nouvelle.fct.php
  ajout_nouvelle.mod.php
  ajout_pv.fct.php
  ajout_pv.mod.php
  archives.fct.php
  archives.mod.php
  authentification.inc.php
  calendrier.fct.php
  calendrier.mod.php
  commandites.fct.php
  commandites.mod.php
  db_info.inc.php
  edition_activite.fct.php
  edition_activite.mod.php
  edition_nouvelle.fct.php
  edition_nouvelle.mod.php
  edition_pv.fct.php
  edition_pv.mod.php
  formulaire_activites.inc.php
  formulaire_membre.inc.php
  formulaire_nouvelles.inc.php
  formulaire_pv.inc.php
  formulaires.inc.php
  index.fct.php
  index.mod.php
  lister_membres.fct.php
  lister_membres.mod.php
  logo_gulus.fct.php
  logo_gulus.mod.php
  membre_abonnement.fct.php
  membre_abonnement.mod.php
  membre_desinscrire.fct.php
  membre_desinscrire.mod.php
  membre_modifier.fct.php
  membre_modifier.mod.php
  membres.fct.php
  membres.mod.php
  menu.inc.php
  menu_miniature.inc.php
  passwd_section_privee.inc.php
  pourquoi.fct.php
  pourquoi.mod.php
  prive.fct.php
  prive.mod.php
  publications.fct.php
  publications.mod.php
  pv.fct.php
  pv.mod.php
  scripts.php
  services.fct.php
  services.mod.php
  split.inc.php
  telechargements.fct.php
  telechargements.mod.php