選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

sternenkindsaga.tpl 6.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. <section id="widget-grid" class="">
  22. <div class="row">
  23. <article class="col-sm-6">
  24. <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">
  25. <header>
  26. <span class="widget-icon"> <i class="fa fa-line-chart txt-color-darken"></i> </span>
  27. <h2>Besucher pro Tag Statistik</h2>
  28. </header>
  29. <div class="no-padding">
  30. <div class="widget-body">
  31. <canvas id="userLineChart" height="100"></canvas>
  32. </div>
  33. </div>
  34. </div>
  35. </article>
  36. <article class="col-sm-6">
  37. <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">
  38. <header>
  39. <span class="widget-icon"> <i class="fa fa-info-circle txt-color-darken"></i> </span>
  40. <h2>Statistik</h2>
  41. </header>
  42. <div class="no-padding">
  43. <div class="widget-body" style="padding-top: 20px;">
  44. <table class="table table-bordered">
  45. <thead>
  46. <tr>
  47. <th>Bezeichnung:</th>
  48. <th>Gesamt:</th>
  49. <th>Letzte 7 Tage</th>
  50. <th>Letzten 30 Tage</th>
  51. </tr>
  52. </thead>
  53. <tbody>
  54. <tr>
  55. <td>Downloads:</td>
  56. <td><span class="btn btn-xs btn-default" id="allDls">{$allDownloads}</span></td>
  57. <td><span class="label label-danger">Coming Soon</span></td>
  58. <td><span class="label label-danger">Coming Soon</span></td>
  59. </tr>
  60. <tr>
  61. <td>Besucher:</td>
  62. <td><span class="btn btn-xs btn-default" id="allVisits">{$allVisitors}</span></td>
  63. <td><span class="label label-danger">Coming Soon</span></td>
  64. <td><span class="label label-danger">Coming Soon</span></td>
  65. </tr>
  66. <tr>
  67. <td>Traffic:</td>
  68. <td>{$traffic} GB</td>
  69. <td><span class="label label-danger">Coming Soon</span></td>
  70. <td><span class="label label-danger">Coming Soon</span></td>
  71. </tr>
  72. </tbody>
  73. </table>
  74. </div>
  75. </div>
  76. </div>
  77. </article>
  78. </div>
  79. <div class="row" id="ajaxReq">
  80. {block name="ajaxAppend"}{/block}
  81. </div>
  82. </section>
  83. {/block}
  84. {block name="additionalJSFiles"}
  85. <script src="lib/SmartAdmin/js/plugin/chartjs/chart.min.js"></script>
  86. {/block}
  87. {block name="additionalJSCode"}
  88. var userCtx = document.getElementById("userLineChart").getContext("2d");
  89. var userLineConfig = {
  90. type: 'line',
  91. data: {
  92. labels: {$stats->getDateLabels()},
  93. datasets:[
  94. {
  95. label: 'Besucher pro Tag',
  96. data: {$stats->getUserDateRows()|json_encode},
  97. backgroundColor: 'rgba(107,176,255,0.5)',
  98. borderColor: 'rgba(107,176,255,1)'
  99. },
  100. {
  101. label: 'Downloads pro Tag',
  102. data: {$stats->getDownloadDateRows()|json_encode},
  103. backgroundColor: 'rgba(191,63,63,0.5)',
  104. borderColor: 'rgba(191,63,63,1)'
  105. }
  106. ]
  107. },
  108. options: {
  109. responsive: true,
  110. scales: {
  111. yAxes: [{
  112. ticks: {
  113. beginAtZero: true,
  114. stepSize: 10
  115. }
  116. }]
  117. },
  118. tooltips: {
  119. mode: 'label'
  120. },
  121. hover: {
  122. mode: 'dataset'
  123. }
  124. }
  125. };
  126. window.userLine = new Chart(userCtx, userLineConfig);
  127. {/block}