コード例 #1
0
ファイル: news.php プロジェクト: galadie/Caranille-RPG
function news()
{
    global $secteur, $page, $_path;
    if ($page == 'news') {
        $liste_news = news_read();
        if (!empty($liste_news)) {
            echo '<table class="newsboard" >';
            foreach ($liste_news as $id => $news) {
                $News = array_map('htmlspecialchars', $news);
                // update by Dimitri
                if (isset($_SESSION['admin']) && $_SESSION['admin'] === true) {
                    echo '<tr>';
                    echo '<th>';
                    echo LanguageValidation::iMsg("intro.news.record", news_date($News), $News['auteur']);
                    //"News publiée le " .. " Par " .. "";
                    echo '</th>';
                    echo '</tr>';
                }
                echo '<tr>';
                echo '<td>';
                echo '<h4>' . $News['titre'] . '</h4>';
                echo '' . news_message($News) . '';
                echo '</td>';
                echo '</tr>';
                echo '<tr>';
                echo '<td>' . news_details_form($id) . '</td>';
                echo '</tr>';
                //none affiche un espace vide entre les news
                echo '<tr><td class="none" ></td></tr>';
            }
            echo '</table>';
        } else {
            echo 'Il n\'y a aucune news pour le moment<br />';
        }
        echo '<a href="' . get_link("news_add", 'Install') . '">Ajouter une news</a>';
    }
}
コード例 #2
0
ファイル: homepage.php プロジェクト: galadie/Caranille-RPG
        ?>
" alt="No1" class="no_padding" title="No1" width="52" height="38"></td>
							<td valign="top" align="left"><p class="information_text">
								<?php 
        echo "News publiée le " . news_date($News) . " Par " . $News['News_Account_Pseudo'] . "";
        ?>
<br/>
								<?php 
        echo '' . news_message($News) . '';
        ?>
								</p>
							</td>
						</tr>
						<tr>
							<td colspan="2" valign="top" align="right"><?php 
        echo news_details_form($News);
        ?>
<!--a href="#" title="more">more</a--></td>
						</tr>
						<?php 
    }
}
?>
					</tbody>
				</table>
			</td>
		</tr>
		<tr>
			<td colspan="2" class="footer_panel" valign="top" align="center">
				<p>Copyright@game world 2006 info goes here</p>
				<p class="power_link">Design by <a href="http://dpsoft.taobao.com/" title="alixixi.com" target="_blank">alixixi.com</a></p>				
コード例 #3
0
ファイル: Main.php プロジェクト: galadie/Caranille-RPG
<?php

//Search and display game news
$list_news = list_db("list_news", array('date' => "{$year}-{$month}%"));
echo '<table class="newsboard" >';
foreach ($list_news as $News) {
    // update by Dimitri
    echo '<tr>';
    echo '<th>';
    echo LanguageValidation::iMsg("intro.news.record", news_date($News), $News['News_Account_Pseudo']);
    //"News publiée le " .. " Par " .. "";
    echo '</th>';
    echo '</tr>';
    echo '<tr>';
    echo '<td>';
    echo '<h4>' . $News['News_Title'] . '</h4>';
    echo '' . news_intro($News) . '';
    echo '</td>';
    echo '</tr>';
    echo '<tr>';
    echo '<td>' . news_details_form($News) . '</td>';
    echo '</tr>';
    //none affiche un espace vide entre les news
    echo '<tr><td class="none" ></td></tr>';
}
echo '</table>';