Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

sternenkindsaga.tpl 7.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. {extends "Data/statistics.tpl"}
  2. {block name="minifiedStats"}
  3. <li class="sparks-info">
  4. <h5> Downloads <span class="txt-color-purple"><i class="fa fa-download"></i>&nbsp;{$allDownloads}</span></h5>
  5. <div class="sparkline txt-color-purple hidden-mobile hidden-md hidden-sm">
  6. {foreach item=dl from=$downloadArray name=downloads}
  7. {$dl.visit_count}{if $smarty.foreach.downloads.last}{else},{/if}
  8. {/foreach}
  9. </div>
  10. </li>
  11. <li class="sparks-info">
  12. <h5> Besucher <span class="txt-color-green"><i class="fa fa-users"></i>&nbsp;{$allVisitors}</span></h5>
  13. <div class="sparkline txt-color-green hidden-mobile hidden-md hidden-sm">
  14. {foreach item=visit from=$visitorArray name=visitors}
  15. {$visit.visit_count}{if $smarty.foreach.visitors.last}{else},{/if}
  16. {/foreach}
  17. </div>
  18. </li>
  19. {/block}
  20. {block name="body"}
  21. <!-- widget grid -->
  22. <section id="widget-grid" class="">
  23. <!-- row -->
  24. <div class="row">
  25. <article class="col-sm-6">
  26. <!-- new widget -->
  27. <div class="jarviswidget jarviswidget-color-blueLight" id="wid-id-0" data-widget-togglebutton="false" data-widget-editbutton="false" data-widget-fullscreenbutton="false" data-widget-colorbutton="false" data-widget-deletebutton="false">
  28. <!-- widget options:
  29. usage: <div class="jarviswidget" id="wid-id-0" data-widget-editbutton="false">
  30. data-widget-colorbutton="false"
  31. data-widget-editbutton="false"
  32. data-widget-togglebutton="false"
  33. data-widget-deletebutton="false"
  34. data-widget-fullscreenbutton="false"
  35. data-widget-custombutton="false"
  36. data-widget-collapsed="true"
  37. data-widget-sortable="false"
  38. -->
  39. <header>
  40. <span class="widget-icon"> <i class="fa fa-line-chart txt-color-darken"></i> </span>
  41. <h2>Besucher pro Tag Statistik</h2>
  42. </header>
  43. <div class="no-padding">
  44. <div class="widget-body">
  45. <canvas id="userLineChart" height="100"></canvas>
  46. </div>
  47. </div>
  48. </div>
  49. </article>
  50. <article class="col-sm-6">
  51. <!-- new widget -->
  52. <div class="jarviswidget jarviswidget-color-blueLight" id="wid-id-1" data-widget-togglebutton="false" data-widget-editbutton="false" data-widget-fullscreenbutton="false" data-widget-colorbutton="false" data-widget-deletebutton="false">
  53. <!-- widget options:
  54. usage: <div class="jarviswidget" id="wid-id-0" data-widget-editbutton="false">
  55. data-widget-colorbutton="false"
  56. data-widget-editbutton="false"
  57. data-widget-togglebutton="false"
  58. data-widget-deletebutton="false"
  59. data-widget-fullscreenbutton="false"
  60. data-widget-custombutton="false"
  61. data-widget-collapsed="true"
  62. data-widget-sortable="false"
  63. -->
  64. <header>
  65. <span class="widget-icon"> <i class="fa fa-info-circle txt-color-darken"></i> </span>
  66. <h2>Statistik</h2>
  67. </header>
  68. <div class="no-padding">
  69. <div class="widget-body" style="padding-top: 20px;">
  70. <table class="table table-bordered">
  71. <thead>
  72. <tr>
  73. <th>Bezeichnung:</th>
  74. <th>Gesamt:</th>
  75. <th>Letzte 7 Tage</th>
  76. <th>Letzten 30 Tage</th>
  77. </tr>
  78. </thead>
  79. <tbody>
  80. <tr>
  81. <td>Downloads:</td>
  82. <td>{$allDownloads}</td>
  83. <td><span class="label label-danger">Coming Soon</span></td>
  84. <td><span class="label label-danger">Coming Soon</span></td>
  85. </tr>
  86. <tr>
  87. <td>Besucher:</td>
  88. <td>{$allVisitors}</td>
  89. <td><span class="label label-danger">Coming Soon</span></td>
  90. <td><span class="label label-danger">Coming Soon</span></td>
  91. </tr>
  92. <tr>
  93. <td>Traffic:</td>
  94. <td>{$traffic} GB</td>
  95. <td><span class="label label-danger">Coming Soon</span></td>
  96. <td><span class="label label-danger">Coming Soon</span></td>
  97. </tr>
  98. </tbody>
  99. </table>
  100. </div>
  101. </div>
  102. </div>
  103. </article>
  104. </div>
  105. </section>
  106. {/block}
  107. {block name="additionalJSFiles"}
  108. <script src="lib/SmartAdmin/js/plugin/chartjs/chart.min.js"></script>
  109. {/block}
  110. {block name="additionalJSCode"}
  111. var userCtx = document.getElementById("userLineChart").getContext("2d");
  112. var userLineConfig = {
  113. type: 'line',
  114. data: {
  115. labels: {$stats->getDateLabels()},
  116. datasets:[
  117. {
  118. label: 'Besucher pro Tag',
  119. data: {$stats->getUserDateRows()|json_encode},
  120. backgroundColor: 'rgba(107,176,255,0.5)',
  121. borderColor: 'rgba(107,176,255,1)'
  122. },
  123. {
  124. label: 'Downloads pro Tag',
  125. data: {$stats->getDownloadDateRows()|json_encode},
  126. backgroundColor: 'rgba(191,63,63,0.5)',
  127. borderColor: 'rgba(191,63,63,1)'
  128. }
  129. ]
  130. },
  131. options: {
  132. responsive: true,
  133. scales: {
  134. yAxes: [{
  135. ticks: {
  136. beginAtZero: true,
  137. stepSize: 10
  138. }
  139. }]
  140. },
  141. tooltips: {
  142. mode: 'label'
  143. },
  144. hover: {
  145. mode: 'dataset'
  146. }
  147. }
  148. };
  149. window.userLine = new Chart(userCtx, userLineConfig);
  150. {/block}