<?php if (verif_access("Admin")) { if (request_confirm('Edit')) { echo 'Voici la liste des News du MMORPG<br /><br />'; list_html_db('Caranille_News', 'News', array('News_Title', 'News_Date', 'News_Account_Pseudo')); } else { if (request_confirm('Second_Edit')) { $News_ID = request_data('News_ID'); $News_List = get_db("edit_admin", array('table' => 'Caranille_News', 'ID' => 'News_ID', 'value' => $News_ID)); get_formulaire($News_List); } else { if (request_confirm('Second_Show')) { $News_List = get_db("edit_admin", array('table' => 'Caranille_News', 'ID' => 'News_ID', 'value' => request_data('News_ID'))); echo show_db('Caranille_News', $News_List); } else { if (request_confirm('Add')) { get_formulaire(); } else { echo 'Que souhaitez-vous faire ?<br />'; echo '<form method="POST" action="' . get_link("News", "Admin") . '">'; echo '<input type="submit" name="Add" value="Ajouter une News">'; echo '<input type="submit" name="Edit" value="Modifier une News">'; echo '</form>'; } } } } }
<?php if (verif_access("Admin")) { if (request_confirm('Edit')) { echo 'Voici la liste des news du MMORPG<br /><br />'; list_html_db('Caranille_Comments', 'Comments', array('Comment_Date', 'Comment_Account_Pseudo', 'Comment_Message', 'Comment_News_ID')); } else { if (request_confirm('Second_Edit')) { $Comment_ID = request_data('Comment_ID'); $Comment_List = get_db("edit_admin", array('table' => 'Caranille_Comments', 'ID' => 'Comment_ID', 'value' => $Comment_ID)); get_formulaire($Comment_List); } else { echo 'Que souhaitez-vous faire ?<br />'; echo '<form method="POST" action="' . get_link("Comments", "Admin") . '">'; echo '<input type="submit" name="Edit" value="Modifier un Comment">'; echo '</form>'; } } }