Wer ist hier? 1 Gäste
News Cats Datum
|
|
Technox |
Geschrieben am 19.08.2016 00000008 02:37
|
Neuling Beiträge: 2 Registriert am: 17.03.11 Fusioneer: 13 years 8 months 1 weeks 7 days 3 hours 32 minutes 20 seconds |
Hallo wie kann ich nach dem News Name das Datum anzeigen lassen , das so in der Categorei aussiht? Name der News - 16.08.2016 habe einiges versucht aber dan steht da Name der News - 01.01.1970 es ist die Standart news_cats.php die ich verusche so um zuschreiben [geshi=php]$res = 0; $result = dbquery("SELECT news_cat_id, news_cat_name FROM ".DB_NEWS_CATS." ORDER BY news_cat_id"); if (dbrows($result)) { echo "<!--pre_news_cat_idx--><table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n"; while ($data = dbarray($result)) { $rows = dbcount("(news_id)", DB_NEWS, "news_cat='".$data['news_cat_id']."' AND ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().") AND news_draft='0'"); echo "<tr>\n<td width='150' class='tbl1' style='vertical-align:top'><hr></hr><!--news_cat_image--><strong><center><font size='3' color='red'> ".$data['news_cat_name']."</font></strong></center><br /><center><img src='".get_image("nc_".$data['news_cat_name'])."' alt='".$data['news_cat_name']."' name='".$data['news_cat_name']."' /></center>\n"; echo "\n<strong><center>".$locale['402']."</strong> $rows</center></br></br></td>\n"; echo "<td class='tbl1' style='vertical-align:top'><!--news_cat_news-->\n"; echo"<hr></hr>"; if ($rows) { $result2 = dbquery("SELECT news_id, news_subject FROM ".DB_NEWS." WHERE news_cat='".$data['news_cat_id']."' AND ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().") AND news_draft='0' ORDER BY news_datestamp DESC LIMIT 10"); while ($data2 = dbarray($result2)) { echo THEME_BULLET." <a href='news.php?readmore=".$data2['news_id']."'>".$data2['news_subject']." ".showdate("shortdate", $data['news_datestamp'])." </a><br />\n"; } if ($rows > 10) { echo "<div style='text-align:right'>".THEME_BULLET." <a href='".FUSION_SELF."?cat_id=".$data['news_cat_id']."'>".$locale['405']."</a></div>\n"; } } else { echo THEME_BULLET." ".$locale['404']."\n"; } echo "</td>\n</tr>\n"; }[/geshi] |
|
Springe ins Forum: |
Ähnliche Themen
Thema | Forum | Antworten | Letzter Beitrag |
---|---|---|---|
News.php | Allgemeine Support Fragen | 2 | 13.11.2018 00000011 21:56 |
news php | Allgemeine Support Fragen | 1 | 07.04.2016 00000004 06:28 |
User News/Blog | Infusionen | 2 | 03.04.2016 00000004 15:33 |
News | Allgemeine Support Fragen | 2 | 09.06.2013 00000006 13:49 |
einzelne News einklappen | Allgemeine Support Fragen | 19 | 28.03.2013 00000003 22:43 |