|
From: mdw c. <myd...@li...> - 2001-10-09 14:22:10
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Modified Files:
add_news.php3 index.php news.php3
Log Message:
Adding ...
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/add_news.php3,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- add_news.php3 2001/08/26 18:52:52 1.16
+++ add_news.php3 2001/10/09 14:21:39 1.17
@@ -11,7 +11,7 @@
$liste_lang = get_languages_box($DBH, USER_LANG);
-$list_families = get_fam_box($DBH, USER_FAM);
+$list_families = get_fam_box($DBH, USER_FAM, '');
$liste_topics = get_topics_box($DBH);
$formulaire = "<FORM name=\"f\" action=\"save_news.php3\">
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/index.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- index.php 2001/07/30 10:38:47 1.2
+++ index.php 2001/10/09 14:21:39 1.3
@@ -29,6 +29,6 @@
/* You can here change the location to the url you want */
/* for instance : Location: print.php3?c=welcome */
/* The default location is the news page : */
-header("Location: news.php3");
+header("Location: welcome.php");
?>
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/news.php3,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -3 -r1.39 -r1.40
--- news.php3 2001/09/28 09:12:57 1.39
+++ news.php3 2001/10/09 14:21:39 1.40
@@ -54,7 +54,7 @@
$sql = "select num_news, news.titre, texte, date, icone, topic.titre,
-topic.num_topic, user_name, nbhit, long_text, family.label
+topic.num_topic, user_name, nbhit, long_text, family.label, num_fam
from news, topic, family
where news._num_topic = topic.num_topic
AND news.lang = '". USER_LANG ."'
@@ -79,6 +79,9 @@
$num_month = $date_val["mon"];
$family = $row[10];
+
+ $lien_accueil = "<a href='welcome.php?MODE=FULL&FAM=$row[11]'>".translate("TOUTES_LES_NEWS", $DBH)."</a>";
+
switch(USER_LANG)
{
case FR: {
@@ -138,7 +141,7 @@
else if (strlen($readmore)) {
$full_title = "<b>$row[1]</b> <font size='-1'><i>".translate("POSTED_BY",$DBH)." $row[7] ".translate("ON",$DBH)." $da_formated_date</font>".translate('FROM_THE_CATEGORY', $DBH)." ". translate($family,$DBH) . "</i><br>";
$full_page = $row[long_text];
- $full_header = $row[texte];
+ $full_header = $row[texte] . "<p>$lien_accueil</p>";
$sql = "select count(*) from comments
where _num_news = $row[0]";
@@ -188,12 +191,12 @@
$intro = "<font size='-1'><i>".translate("POSTED_BY", $DBH).
" $row[7], $da_formated_date<br>" .
translate('FROM_THE_CATEGORY', $DBH) .
- " ".translate($family,$DBH)."</font></i> <br><br>" . $row[2];
+ " <a href='welcome.php?MODE=FULL&FAM=$row[11]'>".translate($family,$DBH)."</a></font></i> <br><br>" . $row[2];
$news_title = $news_tt;
$PAGE .= get_piece_of_news($news_title, $intro, $row[4], $row[5], "news.php3?q=$row[6]", $new_nbhit, $row[0], $nbcmt, strlen($row['long_text']), $DBH);
- $PAGE .= "<table><tr><td> </td></tr></table>\n";
+ $PAGE .= "<p> </p>\n";
}
}
|