Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 1279 | Revision 1337 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1279 Revision 1335
Zeile 1... Zeile 1...
1
{extends file="admin/index.tpl"}
1
{extends file="admin/index.tpl"}
2
{block name="maincontent"}
2
{block name="maincontent"}
3
    <script type="text/javascript">
-
 
4
        $(function () {
-
 
5
            $('button,input:submit,input:button,input:reset,#getnewPWD,#shownewPWD ').button();
-
 
6
            $('.locked').uibutton({
-
 
7
                "icons": {
-
 
8
                    "primary": "ui-icon-locked"
-
 
9
                }
-
 
10
            }).click(deactivate2fa);
-
 
11
            $('.unlocked').uibutton({
-
 
12
                "icons": {
-
 
13
                    "primary": "ui-icon-unlocked"
-
 
14
                }
-
 
15
            });
-
 
16
 
-
 
17
            $('#en2fa').click(activate2fa)
-
 
18
        })
-
 
19
 
-
 
20
        function deactivate2fa() {
-
 
21
            let uId = $(this).attr("data-id");
-
 
22
            $.get("/toolbox/ga.php?mode=disable&id=" + uId, function () {
-
 
23
                document.location.reload();
-
 
24
            });
-
 
25
        }
-
 
26
 
-
 
27
        function activate2fa() {
-
 
28
            let uId = $(this).attr("data-id");
-
 
29
            document.location.href = "/toolbox/ga.php";
-
 
30
        }
-
 
31
 
-
 
32
        function randomPassword() {
-
 
33
            //$('#pwd').load("/generate_pwd.php");
-
 
34
            $.get("/generate_pwd.php", function (pwd) {
-
 
35
                $('#pwd').val(pwd);
-
 
36
                $('#pwdcheck').val($('#pwd').val());
-
 
37
            })
-
 
38
        }
-
 
39
 
-
 
40
        function deleteusersession() {
-
 
41
            $.get("../admin_user.php?action=delete_user_session&ID={$smarty.get.ID}", function (deletesessionuser) {
-
 
42
                alert(deletesessionuser);
-
 
43
            })
-
 
44
        }
-
 
45
 
-
 
46
        function showpass() {
-
 
47
            var x = document.getElementById("pwd");
-
 
48
            if (x.type === "password") {
-
 
49
                x.type = "text";
-
 
50
            } else {
-
 
51
                x.type = "password";
-
 
52
            }
-
 
53
        }
-
 
54
 
-
 
55
        function MM_swapImgRestore() { //v3.0
-
 
56
            var i, x, a = document.MM_sr;
-
 
57
            for (i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++) x.src = x.oSrc;
-
 
58
        }
-
 
59
 
-
 
60
        function MM_preloadImages() { //v3.0
-
 
61
            var d = document;
-
 
62
            if (d.images) {
-
 
63
                if (!d.MM_p) d.MM_p = new Array();
-
 
64
                var i, j = d.MM_p.length, a = MM_preloadImages.arguments;
-
 
65
                for (i = 0; i < a.length; i++) {
-
 
66
                    if (a[i].indexOf("#") != 0) {
-
 
67
                        d.MM_p[j] = new Image;
-
 
68
                        d.MM_p[j++].src = a[i];
-
 
69
                    }
-
 
70
                }
-
 
71
            }
-
 
72
        }
-
 
73
 
-
 
74
        function MM_swapImage() { //v3.0
-
 
75
            var i, j = 0, x, a = MM_swapImage.arguments;
-
 
76
            document.MM_sr = new Array;
-
 
77
            for (i = 0; i < (a.length - 2); i += 3) {
-
 
78
                if ((x = MM_findObj(a[i])) != null) {
-
 
79
                    document.MM_sr[j++] = x;
-
 
80
                    if (!x.oSrc) {
-
 
81
                        x.oSrc = x.src;
-
 
82
                    }
-
 
83
                    x.src = a[i + 2];
-
 
84
                }
-
 
85
            }
-
 
86
        }
-
 
87
 
-
 
88
        function MM_findObj(n, d) { //v4.01
-
 
89
            var p, i, x;
-
 
90
            if (!d) {
-
 
91
                d = document;
-
 
92
            }
-
 
93
            if ((p = n.indexOf("?")) > 0 && parent.frames.length) {
-
 
94
                d = parent.frames[n.substring(p + 1)].document;
-
 
95
                n = n.substring(0, p);
-
 
96
            }
-
 
97
            if (!(x = d[n]) && d.all) {
-
 
98
                x = d.all[n];
-
 
99
            }
-
 
100
            for (i = 0; !x && i < d.forms.length; i++) {
-
 
101
                x = d.forms[i][n];
-
 
102
            }
-
 
103
            for (i = 0; !x && d.layers && i < d.layers.length; i++) {
-
 
104
                x = MM_findObj(n, d.layers[i].document);
-
 
105
            }
-
 
106
            if (!x && d.getElementById) {
-
 
107
                x = d.getElementById(n);
-
 
108
            }
-
 
109
            return x;
-
 
110
        }
-
 
111
    </script>
-
 
112
    <style type="text/css">
-
 
113
        #pwd {
-
 
114
            margin: auto;
-
 
115
        }
-
 
116
 
-
 
117
        i#hovereffekt {
-
 
118
            position: relative;
-
 
119
            z-index: 1;
-
 
120
        }
-
 
121
 
-
 
122
        i#hovereffekt:hover {
-
 
123
            z-index: 2;
-
 
124
        }
-
 
125
 
-
 
126
        i#hovereffekt p {
-
 
127
            display: none;
-
 
128
        }
-
 
129
 
-
 
130
        i#hovereffekt:hover p {
-
 
131
            display: block;
-
 
132
            position: absolute;
-
 
133
            top: 3em;
-
 
134
            left: 3em;
-
 
135
            width: 300px;
-
 
136
            border-style: solid;
-
 
137
            border-width: 1px;
-
 
138
            padding: 5px;
-
 
139
            font-size: 15px;
-
 
140
        }
-
 
141
 
-
 
142
        a:link {
-
 
143
            color: #000 !important;
-
 
144
        }
-
 
145
 
-
 
146
        span {
-
 
147
            text-decoration: none !important;
-
 
148
            color: unset;
-
 
149
        }
-
 
150
 
-
 
151
        .error {
-
 
152
            font-size: 50px;
-
 
153
            color: red;
-
 
154
            text-align: center;
-
 
155
        }
-
 
156
 
-
 
157
        .zuweisungTable {
-
 
158
            width: 100%;
-
 
159
            text-align: center;
-
 
160
            border-collapse: collapse;
-
 
161
            margin-bottom: 20px;
-
 
162
        }
-
 
163
 
-
 
164
        .zuweisungTable tr td:first-child {
-
 
165
            border-right: 1px solid #ccc;
-
 
166
        }
-
 
167
 
-
 
168
        .zuweisungTable tr:first-child td {
-
 
169
            border-bottom: 1px solid #ccc;
-
 
170
        }
-
 
171
 
-
 
172
        .zuweisungTable tr td label {
-
 
173
            clear: both;
-
 
174
            float: left;
-
 
175
 
-
 
176
        }
-
 
177
    </style>
-
 
178
    <table class="keinRand" width="100%" cellspacing="0" cellpadding="3">
-
 
179
        <tr>
-
 
180
            <td class="headline" colspan="3">
-
 
181
                Benutzer: Bearbeiten
-
 
182
            </td>
-
 
183
        </tr>
-
 
184
        <tr>
-
 
185
            <td class="headline">
-
 
186
                Login
-
 
187
            </td>
-
 
188
            <td class="headline">
-
 
189
                2FA
-
 
190
            </td>
-
 
191
            <td class="headline">
-
 
192
                Letztes Login
-
 
193
            </td>
-
 
194
        </tr>
-
 
195
        {foreach $users as $user}
-
 
196
            {cycle values=' ,gerade' assign='class'}
-
 
197
            <tr class="rechts {$class}">
-
 
198
                <td>
-
 
199
                    <a href="/backend/backend_users/{$user.id}/edit">
-
 
200
                        {$user.email}
-
 
201
                    </a>
-
 
202
                </td>
-
 
203
                <td>
-
 
204
                    {if $user["2fa"] == true}
-
 
205
                        <div class="locked" title="Zwei-Faktor-Authentifizierung aktiv"
-
 
206
                             data-id="{$users.id}"></div>
-
 
207
                    {else}
-
 
208
                        <div class="unlocked" title="Zwei-Faktor-Authentifizierung inaktiv"
-
 
209
                             {if $users.id==$smarty.session.admin.uid}data-id="{$user.id}"
-
 
210
                             id="en2fa"{/if}></div>
-
 
211
                    {/if}
-
 
212
                </td>
-
 
213
                <td>
-
 
214
                    {if !is_null($user.last_login)}
-
 
215
                        {$user.last_login|date_format:"%d.%m.%Y %H:%M"} |
-
 
216
                        <a href="#" id="ip_{$smarty.section.u_ind.index}_{$user.ip}"
-
 
217
                           class="ipAdress">{$user.ip}</a>
-
 
218
                    {/if}
-
 
219
                </td>
-
 
220
 
-
 
221
            </tr>
-
 
222
        {/foreach}
-
 
223
    </table>
-
 
224
{/block}
3
{/block}