Plan du Site Spécialités (2003) Thèmes (2003)
Fil Santé (2005) Infos Lectures (2005)
Médecine Interne Chirurgie
Pédiatrie
Ophtalmologie Radiologie
Dermatologie
Pneumologie
Soins Dentaires
Rhumatologie
ORL
GastroEntérologie Psychiatrie
Cardiologie
Podologie
Nos Coordonnées
|
include"confcms2.php";
$db = mysql_connect("$dbchemin","$dbuser","$dbpass") or mysql_die("Connexion impossible");
$err = mysql_error();
if ($err) {
echo "Uh oh! There's an error! news Here it is: ";
echo "$err";
}
mysql_select_db("$dbname");
$err = mysql_error();
if ($err) {
echo "Uh oh! There's an error! basenews Here it is: ";
echo "$err";
}
$authors = mysql_query("SELECT id, Name FROM authors");
$cats = mysql_query("SELECT id, Name FROM categories");
$ans = mysql_query("SELECT id, Name FROM an");
$ans1 = mysql_query("SELECT id, Name FROM an");
$ans2 = mysql_query("SELECT id, Name FROM an");
$moi = mysql_query("SELECT id, Name FROM mois");
$mooi1 = mysql_query("SELECT id, Name FROM mois");
$mooi2 = mysql_query("SELECT id, Name FROM mois");
$mooi3 = mysql_query("SELECT id, Name FROM mois");
$mooi4 = mysql_query("SELECT id, Name FROM mois");
$mot = mysql_query("SELECT id, Name FROM motcle3");
$ref=@$HTTP_REFERER;
$nb_t =0;
?>
if (isset($_GET['cx']))
{
$cx =$_GET['cx'];
}else {
$cx =$_POST['cx'];
//$cx =0;
}
/*
if($action != "recherche")
{
*/
$action="recherche";
$arr=date("Y-m");
$year1=substr($arr,0,4);
$year2=substr($arr,2,4);
$month1=substr($arr,5,6);
$poi="voit22.php?id=";
$arr11=date("m");
//$arr11=$month1;
$arr12=$arr11-1;
$arr13=$arr11-2;
$arr14=$arr11-3;
$arr15=$arr11-4;
$arr20=$arr11+1;
//$year1=substr($arr,0,4);
$today = getdate();
$day = $today["mday"];
if ($day < 10) {
$day = "0$day";
}
$month = $today["mon"];
if ($month < 10) {
$month = "0$month";
// }
$year = $today["year"];
$hour = $today["hours"];
$min = $today["minutes"];
$sec = "00";
$SQL = "SELECT id FROM an where trim(Name)='$year1'";
$result = mysql_query($SQL);
$nb_news = mysql_num_rows($result);
$row = mysql_fetch_array($result);
$id = trim($row["id"]);
$anid = "$id";
$moid = "$arr11";
}
if($action == "recherche")
{
$arr=date("Y-m");
$year1=substr($arr,0,4);
$arr11=date("m");
//$arr11=$month1;
$arr12=$arr11-1;
$arr13=$arr11-2;
$arr14=$arr11-3;
$arr15=$arr11-4;
$SQL = "SELECT id FROM an where trim(Name)='$year1'";
$result = mysql_query($SQL);
$nb_news = mysql_num_rows($result);
$row = mysql_fetch_array($result);
$id = trim($row["id"]);
$idmax=mysql_db_query("cmsnews","select max(id) from feed");
$cx =$_GET['cx'];
// The basic SELECT statement
$select = "SELECT * ";
$from = " FROM feed";
$where = " WHERE ID ='$cx' ";
$mysql_result = mysql_query($select . $from . $where);
// Nb total d'articles trouvés
if ($mysql_result) {
$nb_t = mysql_num_rows($mysql_result);
}
if ($nb_t < 1) {
echo "Il n'y a pas de document répondant à votre recherche. ";
//echo "document.write(\"\"\n";
}else{
echo "";
}
$select = "SELECT * ";
$from = " FROM feed";
$where = " WHERE ID ='$cx'";
//if (!empty($jokes))
$jokes = mysql_query($select . $from . $where);
if (!$jokes) {
echo("Error retrieving jokes from database! ".
"Error: " . mysql_error());
exit();
}
while ($joke = mysql_fetch_array($jokes)) {
echo(" \n");
$id = $joke["ID"];
$tite = $joke["tit"];
$lien = $joke["lien1"];
$titre = $joke["titre"];
//$joketext = $joke["petit"];
$comm2 = $joke["comment"];
$ref2= $joke["reference"];
$text2= $joke["texte_court"];
$joketext = $joke["texte_long"];
//$jokedt=$joke["date"];
$idte = $joke["ID"];
$jokebig = $joke["image_big"];
$dte = $joke["date"];
$year1=substr($dte,0,4);
$mois1=substr($dte,4,2);
$jour1=substr($dte,6,2);
$jokedt = "$jour1-$mois1-$year1";
/*
$fich="http://www.medicms.be/medi/dt/";
$fich .=$tite ."2" .".htm";
$fichh="http://www.medicms.be/medi/dt/";
$fichh .="print_" . $year1 . $idte .".htm";
$fichir="http://www.medicms.be/dt1/";
$fichir .=$tite ."2" .".htm";
// Bold and italics
*/
$joketext = eregi_replace("\[b]","",$joketext);
$joketext = eregi_replace("\[eb]","",$joketext);
$joketext = eregi_replace("\[i]","",$joketext);
$joketext = eregi_replace("\[ei]","",$joketext);
// Paragraphs and line breaks
$joketext = ereg_replace("\r","",$joketext);
$joketext = ereg_replace("\n\n","",$joketext);
$joketext = ereg_replace("\n"," ",$joketext);
// Hyperlinks
$joketext = ereg_replace(
"\[L]([-_./a-zA-Z0-9!&%#?,'=:~]+)\[EL]",
"\\1", $joketext);
$joketext = ereg_replace(
"\[L=([-_./a-zA-Z0-9!&%#?,'=:~]+)]".
"([-_./a-zA-Z0-9 !&%#?,'=:~]+)\[EL]",
"\\2", $joketext);
echo(" | \n");
echo("$jokedt
$titre $joketext | \n");
echo(" \n");
echo("\n");
echo(" | \n");
echo(" ");
echo ("[Référence - Lien");
echo ("$jokebig ] | | \n");
}
}
?>
echo"
|
Les Infos du mois...
L'épidémie du siècle
Maigrir - Comment ? - Pourquoi ?
";
echo'
Grossesse
Contraception
Maladies Sexuelles
Fertilité
Sexologie Sénologie';
echo'
';
echo' |