PageRenderTime 41ms CodeModel.GetById 11ms RepoModel.GetById 1ms app.codeStats 0ms

/_squelettes_/forum_spipBB/branches/spip-1.9/statistiquesBB.html

https://bitbucket.org/pombredanne/spip-zone-treemap
HTML | 137 lines | 91 code | 40 blank | 6 comment | 0 complexity | 78fabbe8c4e82f49091c4b6a39bd02a9 MD5 | raw file
  1. <?php
  2. // Disable caching
  3. @header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
  4. @header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
  5. @header("Cache-Control: no-store, no-cache, must-revalidate");
  6. @header("Cache-Control: post-check=0, pre-check=0", false);
  7. @header("Pragma: no-cache");
  8. ?>
  9. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  10. <BOUCLE_rubrique_principal(RUBRIQUES) {id_rubrique}>
  11. <html lang="#LANG">
  12. <head>
  13. <title>[#NOM_SITE_SPIP] - [(#TITRE|supprimer_numero)] </title>
  14. <meta http-equiv="Content-Type" content="text/html; charset=#CHARSET">
  15. <!-- Ceci est la feuille de style par defaut pour les types internes a SPIP -->
  16. <link rel="stylesheet" href="[(#CHEMIN{spip_style.css}|direction_css)]" type="text/css">
  17. <!-- Les feuilles de style specifiques aux presents squelettes -->
  18. <link rel="stylesheet" href="[(#CHEMIN{spip_forum.css}|direction_css)]" type="text/css">
  19. <!-- Lien vers le backend pour navigateurs eclaires -->
  20. <link rel="alternate" type="application/rss+xml" title="<:syndiquer_site:>" href="spip.php?page=backend">
  21. </head>
  22. <body id="forumsect" dir="#LANG_DIR">
  23. <?php
  24. require("bbclone/var/access.php");
  25. $totalvisits = $access["stat"]["totalvisits"];
  26. $totalcount = $access["stat"]["totalcount"];
  27. $visitorsmonth = $access["time"]["month"][date("n")-1];
  28. $visitorstoday = $access["time"]["wday"][date("w")];
  29. $wday = $access["time"]["wday"];
  30. for($week = 0; list(,$wdays) = each($wday); $week += $wdays);
  31. ?>
  32. <a name="haut"></a>
  33. <div id="contenant">
  34. <INCLURE{fond=entete_BB}{id_rubrique}>
  35. <h2><:icone_statistiques_visites:></h2>
  36. <div id="corps"> <!-- Section contenant les données -->
  37. <hr class="clr" /> <!-- Permet l'affichage correctement pour certaines versions de safari -->
  38. <p class="nav"><a href="#URL_RUBRIQUE">[(#TITRE|supprimer_numero)]</a></p>
  39. <p style="float:right;margin-bottom: 1em; padding-top:10px ; margin-right:10px"><a href="spip.php?page=nouveaux_messages&amp;id_rubrique=#ID_RUBRIQUE"><:phpbb:voir_messages:></a></p>
  40. <!-- boucles principales -->
  41. <B_categories>
  42. <hr class="clr" /> <!-- Permet l'affichage correctement pour certaines versions de safari -->
  43. <table class="spipforum">
  44. <thead>
  45. <tr>
  46. <th colspan="2" class="tforum"><:phpbb:visiteurs_uniques:></th>
  47. <th class="tsujets"><:phpbb:visites_jour:></th>
  48. <th class="tmsg"><:phpbb:visites_semaine:></th>
  49. <th class="tdermsg"><:phpbb:visites_mois:></th>
  50. </tr>
  51. <tr class="salon">
  52. <td colspan="2" class="salontitre" style="text-align:center"> <?php echo $totalcount ; ?> </td>
  53. <td class="salonreste" style="text-align:center"><?php echo $visitorstoday ?></td>
  54. <td class="salonreste" style="text-align:center"><?php echo $week ; ?></td>
  55. <td style="text-align:center">
  56. <?php echo $visitorsmonth ; ?>
  57. </td>
  58. </tr>
  59. <tr>
  60. <th colspan="2" class="tforum"><:titre_forum:></th>
  61. <th class="tsujets" colspan="3"><:phpbb:pages_vues:></th>
  62. </tr>
  63. </thead>
  64. <BOUCLE_categories(RUBRIQUES){id_parent}{par num titre}>
  65. <tr class="salon">
  66. <td colspan="2" class="salontitre">[<h2><a href="#URL_RUBRIQUE">(#TITRE|supprimer_numero)</a></h2>]</td>
  67. <td colspan="3" class="salonreste">&nbsp;</td>
  68. </tr>
  69. <BOUCLE_forums(ARTICLES){id_rubrique}{par num titre}>
  70. <tr class="forumligne">
  71. <B_etat><BOUCLE_etat(ARTICLES){id_article}{titre_mot=Fermé}><td class="etatfor fermfor"><span><:phpbb:forum_ferme:></BOUCLE_etat></B_etat><td class="etatfor ouvfor"><span><:titre_forum:><//B_etat></span></td>
  72. <td class="titre">[<h3><a title="<:phpbb:voir_evolution:>" href="ecrire/?exec=statistiques_visites&amp;id_article=#ID_ARTICLE">(#TITRE|supprimer_numero)</a></h3><br/>]
  73. <!-- Ici les Modérateurs --></td>
  74. <td class="msgsuj" colspan="3">
  75. <? echo $access["page"]["Forum #ID_ARTICLE"]["count"] ; ?>
  76. </td>
  77. </tr>
  78. </BOUCLE_forums>
  79. </BOUCLE_categories>
  80. </table>
  81. </B_categories>
  82. </div> <!-- Fin de la Section corps -->
  83. <!-- BEGIN switch_user_logged_out -->
  84. <?php if(!$GLOBALS['auteur_session']) { ?>
  85. <div class="login"> <!-- Section de login -->
  86. <p><:phpbb:login:></p>
  87. #LOGIN_PUBLIC
  88. </div>
  89. <?php }else{?><div style="text-align:center;margin:10px"><a href="http://www.bbclone.de">BBclone</a></div> <?php } ?>
  90. <!-- END switch_user_logged_out -->
  91. <INCLURE{fond=pied_BB}{id_rubrique}>
  92. </div><!--Fin de la section contenant-->
  93. </body>
  94. </html>
  95. </BOUCLE_rubrique_principal>
  96. <:aucune_rubrique:>
  97. <//B_rubrique_principal>