<td><?php echo stripslashes($img['image']) ?></td> <td> <?php if($img['id']==$default) { ?> DEFAULT <?php } else { ?> <a href="?a=7&id=<?php echo $img['id'] ?>">Définir</a> <?php } ?> </td> <td align="center"><?php echo CHtmlSession::get_rang('images', $img['id'], $img['idreda']) ?></td> <td align="center"><?php echo CHtmlSession::get_etat($img['id'], $img['etat'], $img['idreda']) ?></td> <td align="center"><?php echo CHtmlSession::get_editbutton($img['id'], $img['idreda']) ?></td> <td align="center"><?php echo CHtmlSession::get_delbutton($a, $img['id'], $id, $img['idreda']) ?></td> </tr> <?php } ?> </table> <?php } ?> <?php //---------------------------------------------------------------------------------------------- // AJOUT //---------------------------------------------------------------------------------------------- ?> <?php if($a == 4) { ?> <form id="form_ajout" method="post" action="image_menu.php" enctype="multipart/form-data">
<tr align="center"> <th align="left"><a href="?order=id">Id</a></th> <th align="left"><a href="?order=nom">Question</a></th> <th><a href="?">Rang</a></th> <th><a href="?order=etat,rang">Publié</a></th> <th>Modif</th> <th title="suppr"> Suppr </th> </tr> <?php $i = 0; while ($faq = mysql_fetch_array($r_faq)) { ?> <tr> <td><a href="?a=5&id=<?php echo $faq['id'] ?>"><?php echo $faq['id'] ?></a></td> <td><?php echo stripslashes($faq['question']) ?></td> <td align="center"><?php echo CHtmlSession::get_rang('faqs', $faq['id'], $faq['idreda']) ?></td> <td align="center"><?php echo CHtmlSession::get_etat($faq['id'], $faq['etat'], $faq['idreda']) ?></td> <td align="center"><?php echo CHtmlSession::get_editbutton($faq['id'], $faq['idreda']) ?></td> <td align="center"><?php echo CHtmlSession::get_delbutton($a, $faq['id'], $id, $faq['idreda']) ?></td> </tr> <?php } ?> </table> <?php } ?> <?php //---------------------------------------------------------------------------------------------- // AJOUT //---------------------------------------------------------------------------------------------- ?> <?php if($a == 4) { ?> <form id="form_ajout" method="post" action="faqs.php">
<th>Publié</th> <th>Modif</th> <th title="suppr"> Suppr </th> </tr> <?php $i = 0; while ($article = mysql_fetch_array($r_article)) { ?> <tr> <td><a href="?a=5&id=<?php echo $article['id'] ?>"><?php echo $article['id'] ?></a></td> <td height><?php echo stripslashes($article['nom']) ?></td> <td align="center"><?php echo $article['loginreda'] ?></td> <td align="center"><?php echo $article['loginlecteur'] ?></td> <td align="center"><?php echo $article['nomcat'] ?></td> <td align="center"><?php echo CDate::date_switch(CDate::formate_date($article['date'])) ?></td> <td align="center"><?php echo CHtmlSession::get_rang('article', $article['id'], $article['idreda']) ?></td> <td align="center"><?php echo CHtmlSession::get_etat($article['id'], $article['etat'], $article['idreda']) ?></td> <td align="center"><?php echo CHtmlSession::get_editbutton($article['id'], $article['idreda']) ?></td> <td align="center"><?php echo CHtmlSession::get_delbutton($a, $article['id'], $id, $article['idreda']) ?></td> </tr> <?php } ?> </table> <?php } ?> <?php //---------------------------------------------------------------------------------------------- // AJOUT //---------------------------------------------------------------------------------------------- ?> <?php if($a == 4) { ?> <form id="form_ajout" method="post" action="article.php">
<th>Modif</th> <th title="suppr"> Suppr </th> </tr> <?php $i = 0; while ($page = mysql_fetch_array($r_page)) { ?> <tr> <td><a href="showpage.php?id_page=<?php echo stripslashes($page['id']) ?>" target="popup" onclick="popup(this.href, this.target, '800', '600');"> <?php echo $page['id'] ?> </a> </td> <td height><?php echo stripslashes($page['nom']) ?></td> <td align="center"><?php echo $page['loginreda'] ?></td> <td align="center"><?php echo $page['loginlecteur'] ?></td> <td align="center"><?php echo $page['nomart'] ?></td> <td align="center"><?php echo $page['nomcat'] ?></td> <td align="center"><?php echo CDate::date_switch(CDate::formate_date($page['date'])) ?></td> <td align="center" nowrap="nowrap"><?php echo CHtmlSession::get_rang('page', $page['id'], $page['idreda']) ?></td> <td align="center"><?php echo CHtmlSession::get_etat($page['id'], $page['etat'], $page['idreda']) ?></td> <td align="center"><?php echo CHtmlSession::get_editbutton($page['id'], $page['idreda']) ?></td> <td align="center"><?php echo CHtmlSession::get_delbutton($a, $page['id'], $id, $page['idreda']) ?></td> </tr> <?php } ?> </table> <?php } ?> <?php //---------------------------------------------------------------------------------------------- // AJOUT //---------------------------------------------------------------------------------------------- ?> <?php if($a == 4) { ?> <form name="form_ajout" id="form_ajout" method="post" action="page.php"> <p> <?php echo CForm::get_hidden(44) ?> </p>
<th>Date d'ajout </th> </tr> <?php $i = 0; while ($video = mysql_fetch_array($r_video)) { $tpage = new CTablePage(array('id'=>$video['id_page'])); $page = $tpage->select_row(); $actif_btn = CTableUser::is_admin($_SESSION['idmbr'])?1:0; ?> <tr> <td><?php echo $video['nom'] ?></td> <td><?php echo $video['fichier'] ?></td> <td align="center"><?php echo $page['nom'] ?></td> <td><?php echo CHtmlSession::get_rang('video', $video['id'], $video['id_page']) ?></td> <td><?php echo CHtmlSession::get_etat($video['id'], $video['etat'], null) ?></td> <td align="center"><?php echo CHtml::get_editbutton($video['id'], $actif_btn) ?></td> <td align="center"><?php echo CHtml::get_delbutton($a, $video['id'], $id, $actif_btn) ?></td> <td align="center"><?php echo CDate::formate_date($video['date']) ?></td> </tr> <?php } ?> </table> <?php } ?> <?php //---------------------------------------------------------------------------------------------- // AJOUT //---------------------------------------------------------------------------------------------- ?> <?php if($a == 4) { // Liste des videos
<th align="left"><a href="?order=nom">Nom</a></th> <th><a href="?order=date">Date d'ajout</a></th> <th>Rang</th> <th>Publié</th> <th>Modif</th> <th title="suppr"> Suppr </th> </tr> <?php $i = 0; while ($opportunite = mysql_fetch_array($r_opportunite)) { ?> <tr> <td><a href="?a=5&id=<?php echo $opportunite['id'] ?>"><?php echo $opportunite['id'] ?></a></td> <td><?php echo $opportunite['nom'] ?></td> <td align="center"><?php echo CDate::date_switch(CDate::formate_date($opportunite['date'])) ?></td> <td align="center"><?php echo ($opportunite['id']>0)?CHtmlSession::get_rang('opportunite', $opportunite['id'], $_SESSION['idmbr']):'--'; ?></td> <td align="center"><?php echo CHtml::get_etat($opportunite['id'], $opportunite['etat'], $opportunite['id']); ?></td> <td align="center"><?php echo CHtmlSession::get_editbutton($opportunite['id'], $opportunite['id']) ?></td> <td align="center"><?php echo CHtml::get_delbutton($a, $opportunite['id'], $id, $opportunite['id']) ?></td> </tr> <?php } ?> </table> <?php } ?> <?php //---------------------------------------------------------------------------------------------- // AJOUT //---------------------------------------------------------------------------------------------- ?> <?php if($a == 4) { ?> <form id="form_ajout" method="post" action="opportunite.php">
$page = CBdd::select_one("SELECT nom FROM page WHERE id = ".$galerie['idpage'], "nom"); $article = CBdd::select_one("SELECT nom FROM article WHERE id = (SELECT idart FROM page WHERE id = ".$galerie['idpage'].")", "nom"); $categorie = CBdd::select_one("SELECT nomcat FROM article_cat WHERE id = (SELECT idart FROM page WHERE id = ".$galerie['idpage'].")", "nomcat"); $nb_image = CBdd::select_one("SELECT COUNT(id) as nb FROM image WHERE idgal = ".$galerie['id'], "nb"); ?> <tr> <td> <?php echo $galerie['id'] ?> </td> <td><?php echo CDate::date_switch(CDate::formate_date($galerie['date'])) ?></td> <td align="center"><?php echo CFunction::clean(stripslashes($galerie['nom'])); ?></td> <td align="center"><?php echo $categorie; ?></td> <td align="center"><?php echo $article; ?></td> <td align="center"><?php echo $page; ?></td> <td style="text-align: center;"><?php echo $nb_image; ?></td> <td style="text-align: center;"><?php echo CHtmlSession::get_etat($galerie['id'], $galerie['etat_diaporama'], $galerie['idreda'], 7) ?></td> <td style="text-align: center;"><?php echo CHtmlSession::get_rang('galerie', $galerie['id'], $galerie['idreda']) ?></td> <td style="text-align: center;"><?php echo CHtmlSession::get_etat($galerie['id'], $galerie['etat'], $galerie['idreda']) ?></td> <td style="text-align: center;"><?php echo CHtmlSession::get_editbutton($galerie['id'], $galerie['idreda']) ?></td> <td style="text-align: center;"><?php echo CHtmlSession::get_delbutton($a, $galerie['id'], $id, $galerie['idreda']) ?></td> </tr> <?php } } ?> </table> <?php } ?> <?php //---------------------------------------------------------------------------------------------- // AJOUT //---------------------------------------------------------------------------------------------- ?> <?php if($a == 4) { ?>
<th><a href="?">Rang</a></th> <th><a href="?order=etat,rang">Publié</a></th> <th>Modif</th> <th title="suppr"> Suppr </th> </tr> <?php $i = 0; while ($categorie = mysql_fetch_array($r_categorie)) { ?> <tr> <td><a href="?a=5&id=<?php echo $categorie['id'] ?>"><?php echo $categorie['id'] ?></a></td> <td><?php echo stripslashes($categorie['nom']) ?></td> <td align="center"><?php echo $categorie['loginreda'] ?></td> <td align="center"><?php echo $categorie['loginlecteur'] ?></td> <td align="center"><?php echo CDate::date_switch(CDate::formate_date($categorie['date'])) ?></td> <td align="center"><?php echo CHtmlSession::get_rang('categorie', $categorie['id'], $categorie['idreda']) ?></td> <td align="center"><?php echo CHtmlSession::get_etat($categorie['id'], $categorie['etat'], $categorie['idreda']) ?></td> <td align="center"><?php echo CHtmlSession::get_editbutton($categorie['id'], $categorie['idreda']) ?></td> <td align="center"><?php echo CHtmlSession::get_delbutton($a, $categorie['id'], $id, $categorie['idreda']) ?></td> </tr> <?php } ?> </table> <?php } ?> <?php //---------------------------------------------------------------------------------------------- // AJOUT //---------------------------------------------------------------------------------------------- ?> <?php if($a == 4) { ?> <form id="form_ajout" method="post" action="categorie.php" enctype="multipart/form-data">
<th><a href="?order=rang">Rang</a></th> <th><a href="?order=etat">Publié</a></th> <th>Modif</th> <th title="suppr"> Suppr </th> </tr> <?php $i = 0; while ($question = mysql_fetch_array($r_question)) { ?> <tr> <td><?php echo $question['id'] ?></td> <td><?php echo $question['nom'] ?></td> <td align="center"><?php echo str_replace('|', '<br />', $question['choix']) ?></td> <td align="center"><?php echo $question['type'] ?></td> <td align="center"><?php echo CFunction::get_bool($question['obligatoire']) ?></td> <td align="center" nowrap="nowrap"><?php echo CHtmlSession::get_rang('question', $question['id'], $idreda) ?></td> <td align="center"><?php echo CHtmlSession::get_etat($question['id'], $question['etat'], $idreda) ?></td> <td align="center"><?php echo CHtmlSession::get_editbutton($question['id'], 1) ?></td> <td align="center"><?php echo CHtmlSession::get_delbutton($a, $question['id'], $id, $idreda) ?></td> </tr> <?php } ?> </table> <?php } ?> <?php //---------------------------------------------------------------------------------------------- // AJOUT //---------------------------------------------------------------------------------------------- ?> <?php if($a == 4) { ?> <form id="form_ajout" method="post" action="question.php"> <p> <?php echo CForm::get_hidden(44) ?> </p>
<?php $i = 0; while ($image = mysql_fetch_array($r_image)) { $tgal = new CTableGalerie(array('id'=>$image['idgal'])); $gal = $tgal->select_row(); $file_url = '/userfiles/image/galeries/'.$gal['dossier'].'/'.$image['image']; $actif_btn = CTableUser::is_admin($_SESSION['idmbr'])?1:0; ?> <tr> <td><a href="<?php echo $file_url ?>" target="_blank"><?php echo $image['image'] ?></a></td> <td align="center"><?php echo $gal['nom'] ?></td> <td><?php echo CHtmlSession::get_rang('image', $image['id'], $image['idreda']) ?></td> <td> <?php if($image['defaut'] == 1) { ?> DEFAULT <?php } else { ?> <a href="?a=7&id=<?php echo $image['id'] ?>">Définir</a> <?php } ?> </td>