Kaynağa Gözat

- Fixen von div. Javascriptbugs beim Ausloggen

- Graph Darstellung auf standard von 10 tagen eingestellt
master
Marcel Völkel 7 yıl önce
ebeveyn
işleme
7396d617cb

+ 5
- 5
Application/scf/Core/StatsGenerator.php Dosyayı Görüntüle

@@ -102,7 +102,7 @@ class StatsGenerator {
102 102
         $genStart = new \DateTime($dateValue);
103 103
         $interval = new \DateInterval('P1D');
104 104
         if(is_numeric($range)) {
105
-            $range = ($range > 30 ? 30 : $range);
105
+            $range = ($range > 100 ? 100 : $range);
106 106
             $genStart = $genStart->modify("-" . $range . " days");
107 107
             $genEnd = clone $genStart;
108 108
             $genEnd = $genEnd->modify("+" .($range+1)." days");
@@ -141,7 +141,7 @@ class StatsGenerator {
141 141
         $genStart = new \DateTime($dateValue);
142 142
         $interval = new \DateInterval('P1D');
143 143
         if(is_numeric($range)) {
144
-            $range = ($range > 30 ? 30 : $range);
144
+            $range = ($range > 100 ? 100 : $range);
145 145
             $genStart = $genStart->modify("-" . $range . " days");
146 146
             $genEnd = clone $genStart;
147 147
             $genEnd = $genEnd->modify("+" . ($range * 2) . " days");
@@ -181,7 +181,7 @@ class StatsGenerator {
181 181
         $day = (!empty($day) ? $day : date("d", time()));
182 182
         $month = (!empty($month) ? $month : date("m", time()));
183 183
         $year = (!empty($year) ? $year : date("Y", time()));
184
-        $range =(!empty($range) ? $range : 5);
184
+        $range =(!empty($range) ? $range : 10);
185 185
         $this->dateLabels = $this->generateLabels($day,$month,$year,$range);
186 186
     }
187 187
 
@@ -206,7 +206,7 @@ class StatsGenerator {
206 206
         $day = (!empty($day) ? $day : date("d", time()));
207 207
         $month = (!empty($month) ? $month : date("m", time()));
208 208
         $year = (!empty($year) ? $year : date("Y", time()));
209
-        $range =(!empty($range) ? $range : 5);
209
+        $range =(!empty($range) ? $range : 10);
210 210
         $this->userDateRows = $this->generateRows($type, $day,$month,$year,$range);
211 211
     }
212 212
 
@@ -223,7 +223,7 @@ class StatsGenerator {
223 223
         $day = (!empty($day) ? $day : date("d", time()));
224 224
         $month = (!empty($month) ? $month : date("m", time()));
225 225
         $year = (!empty($year) ? $year : date("Y", time()));
226
-        $range =(!empty($range) ? $range : 5);
226
+        $range =(!empty($range) ? $range : 10);
227 227
         $this->downloadDateRows = $this->generateRows($type, $day,$month,$year,$range);
228 228
     }
229 229
     /**

+ 40
- 71
Application/templates/SmartAdmin/Data/specific/sternenkindsaga.tpl Dosyayı Görüntüle

@@ -18,28 +18,10 @@
18 18
     </li>
19 19
 {/block}
20 20
 {block name="body"}
21
-    <!-- widget grid -->
22 21
     <section id="widget-grid" class="">
23
-
24
-        <!-- row -->
25 22
         <div class="row">
26
-
27 23
                 <article class="col-sm-6">
28
-                    <!-- new widget -->
29 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">
30
-                        <!-- widget options:
31
-                        usage: <div class="jarviswidget" id="wid-id-0" data-widget-editbutton="false">
32
-
33
-                        data-widget-colorbutton="false"
34
-                        data-widget-editbutton="false"
35
-                        data-widget-togglebutton="false"
36
-                        data-widget-deletebutton="false"
37
-                        data-widget-fullscreenbutton="false"
38
-                        data-widget-custombutton="false"
39
-                        data-widget-collapsed="true"
40
-                        data-widget-sortable="false"
41
-
42
-                        -->
43 25
                         <header>
44 26
                             <span class="widget-icon"> <i class="fa fa-line-chart txt-color-darken"></i> </span>
45 27
                             <h2>Besucher pro Tag Statistik</h2>
@@ -55,64 +37,51 @@
55 37
                     </div>
56 38
                 </article>
57 39
 
58
-            <article class="col-sm-6">
59
-                <!-- new widget -->
60
-                <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">
61
-                    <!-- widget options:
62
-                    usage: <div class="jarviswidget" id="wid-id-0" data-widget-editbutton="false">
63
-
64
-                    data-widget-colorbutton="false"
65
-                    data-widget-editbutton="false"
66
-                    data-widget-togglebutton="false"
67
-                    data-widget-deletebutton="false"
68
-                    data-widget-fullscreenbutton="false"
69
-                    data-widget-custombutton="false"
70
-                    data-widget-collapsed="true"
71
-                    data-widget-sortable="false"
40
+                <article class="col-sm-6">
41
+                    <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">
72 42
 
73
-                    -->
74
-                    <header>
75
-                        <span class="widget-icon"> <i class="fa fa-info-circle txt-color-darken"></i> </span>
76
-                        <h2>Statistik</h2>
77
-                    </header>
43
+                        <header>
44
+                            <span class="widget-icon"> <i class="fa fa-info-circle txt-color-darken"></i> </span>
45
+                            <h2>Statistik</h2>
46
+                        </header>
78 47
 
79
-                    <div class="no-padding">
48
+                        <div class="no-padding">
80 49
 
81
-                        <div class="widget-body" style="padding-top: 20px;">
82
-                            <table class="table table-bordered">
83
-                                <thead>
84
-                                    <tr>
85
-                                        <th>Bezeichnung:</th>
86
-                                        <th>Gesamt:</th>
87
-                                        <th>Letzte 7 Tage</th>
88
-                                        <th>Letzten 30 Tage</th>
89
-                                    </tr>
90
-                                </thead>
91
-                                <tbody>
92
-                                    <tr>
93
-                                        <td>Downloads:</td>
94
-                                        <td><span class="btn btn-xs btn-default" id="allDls">{$allDownloads}</span></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
-                                    <tr>
99
-                                        <td>Besucher:</td>
100
-                                        <td><span class="btn btn-xs btn-default" id="allVisits">{$allVisitors}</span></td>
101
-                                        <td><span class="label label-danger">Coming Soon</span></td>
102
-                                        <td><span class="label label-danger">Coming Soon</span></td>
103
-                                    </tr>
104
-                                    <tr>
105
-                                        <td>Traffic:</td>
106
-                                        <td>{$traffic} GB</td>
107
-                                        <td><span class="label label-danger">Coming Soon</span></td>
108
-                                        <td><span class="label label-danger">Coming Soon</span></td>
109
-                                    </tr>
110
-                                </tbody>
111
-                            </table>
50
+                            <div class="widget-body" style="padding-top: 20px;">
51
+                                <table class="table table-bordered">
52
+                                    <thead>
53
+                                        <tr>
54
+                                            <th>Bezeichnung:</th>
55
+                                            <th>Gesamt:</th>
56
+                                            <th>Letzte 7 Tage</th>
57
+                                            <th>Letzten 30 Tage</th>
58
+                                        </tr>
59
+                                    </thead>
60
+                                    <tbody>
61
+                                        <tr>
62
+                                            <td>Downloads:</td>
63
+                                            <td><span class="btn btn-xs btn-default" id="allDls">{$allDownloads}</span></td>
64
+                                            <td><span class="label label-danger">Coming Soon</span></td>
65
+                                            <td><span class="label label-danger">Coming Soon</span></td>
66
+                                        </tr>
67
+                                        <tr>
68
+                                            <td>Besucher:</td>
69
+                                            <td><span class="btn btn-xs btn-default" id="allVisits">{$allVisitors}</span></td>
70
+                                            <td><span class="label label-danger">Coming Soon</span></td>
71
+                                            <td><span class="label label-danger">Coming Soon</span></td>
72
+                                        </tr>
73
+                                        <tr>
74
+                                            <td>Traffic:</td>
75
+                                            <td>{$traffic} GB</td>
76
+                                            <td><span class="label label-danger">Coming Soon</span></td>
77
+                                            <td><span class="label label-danger">Coming Soon</span></td>
78
+                                        </tr>
79
+                                    </tbody>
80
+                                </table>
81
+                            </div>
112 82
                         </div>
113 83
                     </div>
114
-                </div>
115
-            </article>
84
+                </article>
116 85
         </div>
117 86
         <div class="row" id="ajaxReq">
118 87
             {block name="ajaxAppend"}{/block}

+ 30
- 28
Application/templates/SmartAdmin/ajax/downloadOverview.tpl Dosyayı Görüntüle

@@ -1,35 +1,37 @@
1 1
 {block name="ajaxAppend"}
2
-        <script src="lib/SmartAdmin/js/libs/jquery-2.1.1.min.js"></script>
3
-        <script src="lib/SmartAdmin/js/plugin/datatables/jquery.dataTables.min.js"></script>
4
-        <script src="lib/SmartAdmin/js/plugin/datatables/dataTables.bootstrap.min.js"></script>
5
-        <script src="lib/SmartAdmin/js/ajax/dataTable.js"></script>
6
-        <article class="col-sm-12">
7
-            <!-- new widget -->
8
-            <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">
9
-                <header>
10
-                    <span class="widget-icon"> <i class="fa fa-line-chart txt-color-darken"></i> </span>
11
-                    <h2>Nutzerinformationen &uuml;ber die Downloads</h2>
12
-                </header>
2
+    <script src="lib/SmartAdmin/js/libs/jquery-2.1.1.min.js"></script>
3
+    <script src="lib/SmartAdmin/js/plugin/datatables/jquery.dataTables.min.js"></script>
4
+    <script src="lib/SmartAdmin/js/plugin/datatables/dataTables.bootstrap.min.js"></script>
5
+    <script src="lib/SmartAdmin/js/ajax/dataTable.js"></script>
6
+    <script src="lib/SmartAdmin/js/notification/SmartNotification.min.js"></script>
13 7
 
14
-                <div class="no-padding">
8
+    <article class="col-sm-12">
9
+        <!-- new widget -->
10
+        <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">
11
+            <header>
12
+                <span class="widget-icon"> <i class="fa fa-line-chart txt-color-darken"></i> </span>
13
+                <h2>Nutzerinformationen &uuml;ber die Downloads</h2>
14
+            </header>
15 15
 
16
-                    <div class="widget-body">
17
-                        <div class="alert alert-info">
18
-                            <i class="fa-fw fa fa-info"></i>
19
-                            <strong>Hinweis!</strong>
20
-                            IP-Adressen sind wegen des Datenschutzes Anonymisiert!
21
-                        </div>
22
-                        <table id="dlLists" class="table table-bordered table-hover table-striped table-responsive" width="100%">
23
-                            <thead>
24
-                                <th width="5%">ID</th>
25
-                                <th width="5%">IP Adresse</th>
26
-                                <th width="25%">UserAgent</th>
27
-                                <th width="5%">Timestamp</th>
28
-                                <th width="5%">DL Version</th>
29
-                            </thead>
30
-                        </table>
16
+            <div class="no-padding">
17
+
18
+                <div class="widget-body">
19
+                    <div class="alert alert-info">
20
+                        <i class="fa-fw fa fa-info"></i>
21
+                        <strong>Hinweis!</strong>
22
+                        IP-Adressen sind wegen des Datenschutzes Anonymisiert!
31 23
                     </div>
24
+                    <table id="dlLists" class="table table-bordered table-hover table-striped table-responsive" width="100%">
25
+                        <thead>
26
+                        <th width="5%">ID</th>
27
+                        <th width="5%">IP Adresse</th>
28
+                        <th width="25%">UserAgent</th>
29
+                        <th width="5%">Timestamp</th>
30
+                        <th width="5%">DL Version</th>
31
+                        </thead>
32
+                    </table>
32 33
                 </div>
33 34
             </div>
34
-        </article>
35
+        </div>
36
+    </article>
35 37
 {/block}

+ 2
- 0
Application/templates/SmartAdmin/ajax/visitorOverview.tpl Dosyayı Görüntüle

@@ -3,6 +3,8 @@
3 3
         <script src="lib/SmartAdmin/js/plugin/datatables/jquery.dataTables.min.js"></script>
4 4
         <script src="lib/SmartAdmin/js/plugin/datatables/dataTables.bootstrap.min.js"></script>
5 5
         <script src="lib/SmartAdmin/js/ajax/dataTable.js"></script>
6
+        <script src="lib/SmartAdmin/js/notification/SmartNotification.min.js"></script>
7
+
6 8
         <article class="col-sm-12">
7 9
             <!-- new widget -->
8 10
             <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">

+ 2
- 3
Application/templates/SmartAdmin/auth/login.tpl Dosyayı Görüntüle

@@ -88,7 +88,7 @@
88 88
                                     <input type="password" name="admin_password">
89 89
                                     <b class="tooltip tooltip-top-right"><i class="fa fa-lock txt-color-teal"></i> Bitte dein Kennwort eintragen</b> </label>
90 90
                             </section>
91
-
91
+                        <p class="text-center small">SMN-Backend-{fetch file="../version"}</p>
92 92
                         </fieldset>
93 93
                         <footer>
94 94
                             <button type="submit" class="btn btn-primary">
@@ -98,7 +98,6 @@
98 98
                     </form>
99 99
 
100 100
                 </div>
101
-
102 101
             </div>
103 102
         </div>
104 103
     </div>
@@ -114,7 +113,7 @@
114 113
 <script> if (!window.jQuery.ui) { document.write('<script src="js/libs/jquery-ui-1.10.3.min.js"><\/script>');} </script>-->
115 114
 
116 115
 <!-- IMPORTANT: APP CONFIG -->
117
-<script src="lib/SmartAdmin/js/app.config.seed.js"></script>
116
+<script src="lib/SmartAdmin/js/app.config.js"></script>
118 117
 
119 118
 <!-- JS TOUCH : include this plugin for mobile drag / drop touch events
120 119
 <script src="js/plugin/jquery-touch/jquery.ui.touch-punch.min.js"></script> -->

+ 1
- 1
Application/templates/SmartAdmin/header.tpl Dosyayı Görüntüle

@@ -61,7 +61,7 @@
61 61
 
62 62
         <!-- logout button -->
63 63
         <div id="logout" class="btn-header transparent pull-right">
64
-            <span> <a href="/logout" title="Sign Out" data-action="userLogout" data-logout-msg="Willst Du dich wirklich ausloggen?"><i class="fa fa-sign-out"></i></a> </span>
64
+            <span> <a href="/logout" title="Sign Out" data-action="userLogout" data-logout-msg="Willst Du dich wirklich ausloggen&quest;" id="logout"><i class="fa fa-sign-out"></i></a> </span>
65 65
         </div>
66 66
         <!-- end logout button -->
67 67
     </div>

+ 2
- 1
web/lib/SmartAdmin/js/ajax/dataTable.js Dosyayı Görüntüle

@@ -1,6 +1,7 @@
1
+$.root_ = $('body');
1 2
 $.extend(true, $.fn.dataTable.defaults, {
2 3
     bLengthChange: false,
3
-    pageLength: 15,
4
+    pageLength: 10,
4 5
     "language": {
5 6
         "sEmptyTable": "Keine Daten in der Tabelle vorhanden",
6 7
         "sInfo": "_START_ bis _END_ von _TOTAL_ Eintr&auml;gen",

+ 0
- 1
web/lib/SmartAdmin/js/demo.min.js
Dosya farkı çok büyük olduğundan ihmal edildi
Dosyayı Görüntüle


+ 12
- 4
web/lib/SmartAdmin/js/main.js Dosyayı Görüntüle

@@ -14,14 +14,19 @@ $(document).ready(function() {
14 14
             });
15 15
         });
16 16
     });
17
-
17
+    $('#logout').click(function(e) {
18
+       $("#ajaxReq").html();
19
+    });
18 20
     $('#allDls').click(function(e) {
19 21
        var loadData = $.ajax({
20 22
            method: "GET",
21
-           url: "ajax/downloadOverview.php"
23
+           url: "ajax/downloadOverview.php",
24
+           beforeSend: function () {
25
+               $('#ajaxReq').html('<h1 class="text-center"><i class="fa fa-refresh fa-spin"></i> Daten werden geladen</h1>')
26
+           }
22 27
        });
23 28
 
24
-       loadData.done(function(data) {
29
+       loadData.success(function(data) {
25 30
            $("#ajaxReq").html(data);
26 31
        });
27 32
 
@@ -34,7 +39,10 @@ $(document).ready(function() {
34 39
     $('#allVisits').click(function(e) {
35 40
        var loadData = $.ajax({
36 41
            method: "GET",
37
-           url: "ajax/visitorOverview.php"
42
+           url: "ajax/visitorOverview.php",
43
+           beforeSend: function () {
44
+               $('#ajaxReq').html('<h1 class="text-center"><i class="fa fa-refresh fa-spin"></i> Daten werden geladen</h1>')
45
+           }
38 46
        });
39 47
 
40 48
        loadData.done(function(data) {

Loading…
İptal
Kaydet