· 9 years ago · Jan 05, 2017, 11:34 AM
1<div id="tabs">
2 <ul>
3 <li><a href="#tabList_own_data"><span><i class="icon icon-user"></i> {ucfirst($smarty.const.LANG_CHANGE_MY_DATA)}</span></a></li>
4 <li><a href="#tabList_personal_settings"><span><i class="icon icon-cog"></i> {ucfirst($smarty.const.LANG_PERSONAL_SETTINGS)}</span></a></li>
5 {if $smarty.const.ADMIN_COFFEE_CASH_ENABLE|lower eq 'true' && $user->hasRight("RIGHT_USE_COFFEE_CASH") && $user->checkSetting('coffee_cash_enabled') eq true}
6 <li><a href="#tabList_coffee_cash"><span><i class="icon icon-coffee"></i> {ucfirst($smarty.const.LANG_COFFEE_BILLS)}</span></a></li>
7 {/if}
8 {if $user->hasRight("RIGHT_ADD_CUSTOMER_ACCOUNTS")}
9 <li><a href="#tabList_personal_customer_accounts"><span><i class="icon icon-tasks"></i> {ucfirst($smarty.const.LANG_PERSONAL_CUSTOMER_ACCOUNT)}</span></a></li>
10 {/if}
11 {if $smarty.const.ADMIN_LOGIN_TWO_FACTOR_AUTHENTICATION|lower eq 'true'}
12 <li><a href="#tabList_security"><span><i class="icon icon-lock"></i> {ucfirst($smarty.const.LANG_SECURITY_SETTINGS)}</span></a></li>
13 {/if}
14 </ul>
15 <div id="tabList_own_data">
16 <div class="box">
17 <div class="box_header">
18 <span>{ucfirst($smarty.const.LANG_CHANGE_MY_DATA)} {tooltip id="PERSONAL_DATA_INFO"}</span>
19 </div>
20 <div class="box_content">
21 <form action="{html_link module='user_settings' file='overview' action='submit'}" method="post">
22 <fieldset>
23 <ol>
24 <input type="hidden" name="__token" value="{$token}" />
25 <input type="hidden" name="username" id="username" value="{$user->getUsername()}"/>
26 <li><label>{$smarty.const.LANG_USERNAME}:</label> {$user->getUsername()}</li>
27 <li><label>{$smarty.const.LANG_FIRST_NAME}:</label>
28 {if !$user->hasRole('ROLE_ADMIN') || !$user->hasRole('ROLE_WDO')}
29 <span>{$userData['firstname']}</span>
30 {else}
31 <input type="text" name="firstname" value="{$userData['firstname']}" />
32 {/if}
33 </li>
34 <li><label>{$smarty.const.LANG_LAST_NAME}:</label>
35 {if !$user->hasRole('ROLE_ADMIN') || !$user->hasRole('ROLE_WDO')}
36 <span>{$userData['lastname']}</span>
37 {else}
38 <input type="text" name="lastname" value="{$userData['lastname']}" />
39 {/if}
40 </li>
41
42 <li><label>{$smarty.const.LANG_EMAIL_ADDRESS}:</label> {if !empty($userData['email_address'])}<input type="text" name="email_address" value="{$userData['email_address']}"/>{else}<span class="text_bold">{$smarty.const.LANG_NO_EMAIL_AVAILABLE} {tooltip id='NO_EMAIL_INFO'}</span>{/if}
43 {if isset($contact_data['email']) && $user_email_status eq true}
44 <a class="button button_style_overview" id="open_additional_data">{$smarty.const.LANG_OTHER}</a>
45 {/if}
46
47 {if isset($contact_data['telephone'])}
48
49 <input type="hidden" name="tel_pk_id" value="{$contact_data['telephone'][0]['pk']}" />
50
51 <li>
52 <label>{$smarty.const.LANG_TELEPHONE_NUMBER}:</label>
53 <input type="text" name="telephone" value="{$contact_data['telephone'][0]['contact_data']}"/>
54 {if count($contact_data['telephone']) > 1}<a class="button button_style_overview" id="open_additional_telephone">{$smarty.const.LANG_OTHER}</a>{/if}
55 </li>
56 {/if}
57
58 {if isset($contact_data['fax'])}
59 <input type="hidden" name="fax_pk_id" value="{$contact_data['fax'][0]['pk']}" />
60
61 <li>
62 <label>{$smarty.const.LANG_FAX_CONTACT}:</label>
63 <input type="text" name="fax" value="{$contact_data['fax'][0]['contact_data']}"/>
64 {if count($contact_data['fax']) > 1}<a class="button button_style_overview" id="add_additional_fax">{$smarty.const.LANG_OTHER}</a>{/if}
65 </li>
66 {/if}
67
68 {if checkReInEmployee($user->getUserID()) && ($user->hasRole('ROLE_ADMIN') || $user->hasRole('ROLE_WDO'))}
69 {if isset($contact_data['skype'])}
70 <input type="hidden" name="skype_pk_id" value="{$contact_data['skype'][0]['pk']}" />
71
72 <li>
73 <label>Skype-Name:</label>
74 <input type="text" name="skype" value="{$contact_data['skype'][0]['contact_data']}"/>
75 {if count($contact_data['skype']) > 1}<a class="button button_style_overview" id="add_additional_skype">{$smarty.const.LANG_OTHER}</a>{/if}
76 </li>
77 {/if}
78 {/if}
79
80 {if checkReInEmployee($user->getUserID())}
81 {if isset($contact_data['other'])}
82 <input type="hidden" name="other_pk_id" value="{$contact_data['other'][0]['pk']}"/>
83 <li>
84 <input type="text" name="other_name" style="width:168px; font-weight: bold;" value="{$contact_data['other'][0]['other_contact_data_name']}"/>
85 <span class="text_bold">:</span>
86 <input type="text" name="other_data" value="{$contact_data['other'][0]['contact_data']}"/>
87 {if count($contact_data['other']) > 1}<a class="button button_style_overview" id="open_additional_other_data">{$smarty.const.LANG_OTHER_OWN_DATA}</a>{/if}
88 </li>
89 {/if}
90 {/if}
91
92 <li><label>{$smarty.const.LANG_OLD_PASSWORD}:</label> <input type="password" name="old_password" value="" /> {tooltip id='change_password_info'}</li>
93 <li><label>{$smarty.const.LANG_NEW_PASSWORD}:</label> <input type="password" id="password" name="new_password" value="" />
94 <script type="text/javascript">
95 $("#password").passStrength({
96 userid: "#username"
97 });
98 </script>
99 <li><label>{$smarty.const.LANG_PASSWORD_REPEAT}:</label> <input type="password" name="new_password2" value="" /></li>
100 <li><label></label> <input type="submit" name="submit_change_user_data" value="{$smarty.const.LANG_CHANGE_USER_DATA}" /></li>
101 </ol>
102 </fieldset>
103 </form>
104 </div>
105 </div>
106
107 <div class="box">
108 <div class="box_header">
109 <span>{$smarty.const.LANG_ADD_CONTACTS_DATA}</span>
110 </div>
111 <div class="box_content">
112 {if $user_email_status eq true}
113 <form action="{html_link module='user_settings' file='overview' action='submit'}" method="post">
114 <fieldset>
115 <ol>
116 <input type="hidden" name="__token" value="{$token}" />
117 <input type="hidden" name="username" id="username" value="{$user->getUsername()}"/>
118 <li><label>{$smarty.const.LANG_EMAIL_ADDRESS}:</label> <input type="text" name="second_email_address" value=""/><input style="margin-left: 5px;" type="submit" name="submit_add_additional_email_address" value="{ucfirst($smarty.const.LANG_SAVE)}" /></li>
119 </ol>
120 </fieldset>
121 </form>
122 {/if}
123
124 <form action="{html_link module='user_settings' file='overview' action='submit'}" method="post">
125 <fieldset>
126 <ol>
127 <input type="hidden" name="__token" value="{$token}" />
128 <input type="hidden" name="username" id="username" value="{$user->getUsername()}"/>
129 <li><label>{$smarty.const.LANG_TELEPHONE_NUMBER}:</label> <input type="text" name="telephone_number" value=""/><input style="margin-left: 5px;" type="submit" name="submit_add_additional_telephone_number" value="{ucfirst($smarty.const.LANG_SAVE)}"/></li>
130 </ol>
131 </fieldset>
132 </form>
133
134 <form action="{html_link module='user_settings' file='overview' action='submit'}" method="post">
135 <fieldset>
136 <ol>
137 <input type="hidden" name="__token" value="{$token}" />
138 <input type="hidden" name="username" id="username" value="{$user->getUsername()}"/>
139 <li><label>{$smarty.const.LANG_FAX_CONTACT}:</label> <input type="text" name="fax" value=""/><input style="margin-left: 5px;" type="submit" name="submit_add_additional_fax" value="{ucfirst($smarty.const.LANG_SAVE)}"/></li>
140 </ol>
141 </fieldset>
142 </form>
143
144 {if checkReInEmployee($user->getUserID()) && ($user->hasRole('ROLE_ADMIN') || $user->hasRole('ROLE_WDO'))}
145 <form action="{html_link module='user_settings' file='overview' action='submit'}" method="post">
146 <fieldset>
147 <ol>
148 <input type="hidden" name="__token" value="{$token}" />
149 <input type="hidden" name="skype" id="skype" value="{$contact_data['skype'][0]['contact_data']}"/>
150 <li><label>Skype:</label> <input type="text" name="skype" value=""/><input style="margin-left: 5px;" type="submit" name="submit_add_skype" value="{ucfirst($smarty.const.LANG_SAVE)}"/></li>
151 </ol>
152 </fieldset>
153 </form>
154 {/if}
155
156 {if checkReInEmployee($user->getUserID())}
157 <form action="{html_link module='user_settings' file='overview' action='submit'}" method="post">
158 <fieldset>
159 <ol>
160 <input type="hidden" name="__token" value="{$token}" />
161 <li>
162 <label>{$smarty.const.LANG_OWN_CONTACT}:</label>
163 <input placeholder="{$smarty.const.LANG_NAME_OF_DATA}" type="text" name="other_notices_name" value=""/>: <input placeholder="{$smarty.const.LANG_VALUE_OF_DATA}" type="text" name="other_notices_data" value=""/>
164 <input style="margin-left: 5px;" type="submit" name="submit_add_other_notices" value="{ucfirst($smarty.const.LANG_SAVE)}"/>
165 </li>
166 </ol>
167 </fieldset>
168 </form>
169 {/if}
170 </div>
171 </div>
172 </div>
173 <div id="tabList_personal_settings">
174 <div class="box">
175 <div class="box_header">
176 <span>{ucfirst($smarty.const.LANG_PERSONAL_SETTINGS)}</span>
177 </div>
178 <div class="box_content">
179 <form id="user_settings_form" action="{html_link module='user_settings' file='overview' action='submit'}" method="post" >
180 <fieldset>
181 <ol>
182 <input type='hidden' name='submit_change_personal_settings' value='1'>
183 <input type="hidden" name="__token" value="{$token}" />
184
185 <li><label>{$smarty.const.LANG_SHOW_TOOLTIPS}:</label> <input type="checkbox" name="tooltips_enabled" {if $settings['tooltips_enabled'] eq 1}checked="checked"{/if}><span style="position: relative; left:5px; bottom: 2px;">{$smarty.const.LANG_STATUS}: {if $settings['tooltips_enabled'] eq 1}{$smarty.const.LANG_ACTIVE}{else}{$smarty.const.LANG_INACTIVE}{/if}</span></li>
186
187 {if $user->hasRight("RIGHT_USE_COFFEE_CASH")}
188 <li><label>{$smarty.const.LANG_NAVI_COFFEE_CASH}:</label> <input type="checkbox" name="coffee_cash_enabled" {if $settings['coffee_cash_enabled'] eq 1}checked="checked"{/if}><span style="position: relative; left:5px; bottom: 2px;">{$smarty.const.LANG_STATUS}: {if $settings['coffee_cash_enabled'] eq 1}{$smarty.const.LANG_ACTIVE}{else}{$smarty.const.LANG_INACTIVE}{/if}</span></li>
189 {/if}
190
191 {if $user->checkUserHasEmailAddress() && $user->hasRight('RIGHT_SEE_ACTIVE_USERS')}
192 <li><label>{$smarty.const.LANG_EMAIL_NOTIFICATION_BY_LOST_CHAT_MSG}:</label> <input type="checkbox" name="inactivity_chat_msg_enabled" {if $settings['inactivity_chat_msg_enabled'] eq 1}checked="checked"{/if}><span style="position: relative; left:5px; bottom: 2px;">{$smarty.const.LANG_STATUS}: {if $settings['inactivity_chat_msg_enabled'] eq 1}{$smarty.const.LANG_ACTIVE}{else}{$smarty.const.LANG_INACTIVE}{/if}</span></li>
193 {/if}
194
195 {if $user->checkUserHasEmailAddress() && $user->hasRight('RIGHT_SEE_PRICE_COMPARISION_EXPORT')}
196 <li><label>{$smarty.const.LANG_EMAIL_PRODUCT_EXPORT_SETTINGS}:</label> <input type="checkbox" name="product_export_msg_enabled" {if $settings['price_comparison_info'] eq 1}checked="checked"{/if}><span style="position: relative; left:5px; bottom: 2px;">{$smarty.const.LANG_STATUS}: {if $settings['price_comparison_info'] eq 1}{$smarty.const.LANG_ACTIVE}{else}{$smarty.const.LANG_INACTIVE}{/if}</span></li>
197 {/if}
198
199 {*Notification Risikolevel *}
200 {if $user->hasRight("RIGHT_USE_RISK_NOTIFICATION")}
201 <li><label>{$smarty.const.LANG_RISK_NOTIFICATION_SETTINGS}:</label>
202 <input id="risk_check" type="checkbox" value = "1" name="risk_notification_activate" {if $user->getRiskNotificationLevel() != NULL } checked="checked"{/if}>
203 <span id="risk_select" {if $user->getRiskNotificationLevel() == NULL } style="display:none"{/if}>
204 <select name="risk_definition" id="risk_definition">
205 {for $i = 0; $i <= 5; $i++}
206 <option value="{$i}" {if $user->getRiskNotificationLevel() == $i}selected="selected"{/if}>{$i}</option>
207 {/for}
208 </select>
209 </span>
210 </li>
211 {/if}
212 <li><label></label> <input type="submit" name="submit_change_personal_settings" id="notification" value="{$smarty.const.LANG_CHANGE_SETTINGS}" /></li>
213 </ol>
214 </fieldset>
215 </form>
216 </div>
217 </div>
218
219 <div id="dialog_notification_info" style="display: none" title="Low Level">
220 <span>
221 {$smarty.const.LANG_RISK_NOTIFICATION}
222 </span>
223 </div>
224
225 <div class="box">
226 <div class="box_header">
227 <span>{$smarty.const.LANG_TUTORIAL_OVERVIEW}</span>
228 </div>
229 <div class="box_content">
230 <form action="{html_link module='user_settings' file='overview' action='submit'}" method="post">
231 <fieldset>
232 <ol>
233 <input type="hidden" name="__token" value="{$token}" />
234
235 <li>
236 <p>{$smarty.const.LANG_TUTORIAL_OVERVIEW_INFO} <i class="icon icon-flag-o cursor_pointer" title="{$smarty.const.LANG_TUTORIAL}"></i></p>
237 </li>
238
239 <li><input type="submit" name="submit_start_dashboard_tutorial" value="{$smarty.const.LANG_INTRO_JS_OVERVIEW_START_DASHBOARD_TUTORIAL}"/></li>
240 </ol>
241 </fieldset>
242 </form>
243 </div>
244 </div>
245 {if $smarty.const.ADMIN_SURVEY_ENABLED eq 'true'}
246 <div class="box">
247 <div class="box_header">
248 <span>{$smarty.const.LANG_BO_SURVEY}</span>
249 </div>
250 <div class="box_content">
251 <form action="{html_link module='user_settings' file='overview' action='submit'}" method="post">
252 <fieldset>
253 <ol>
254 <input type="hidden" name="__token" value="{$token}" />
255
256 <li>
257 <p>{$smarty.const.LANG_SURVEY_POPUP_INFO}</p>
258 </li>
259
260 <li><input type="submit" name="submit_survey" id="switch_to_survey" value="{$smarty.const.LANG_SURVEY_START}"/></li>
261 </ol>
262 </fieldset>
263 </form>
264 </div>
265 </div>
266 {/if}
267
268{* --------------------------------------------------------------------------------------------------------------------------------------------------------------------- *}
269 {* Dashboard-Optionen *}
270 <div class="box">
271 <div class="box_header">
272 <span>{$smarty.const.LANG_DASHBOARD_SETTINGS} {tooltip id="personal_settings_info"}</span>
273 </div>
274 <div class="box_content">
275 <form action="{html_link module='user_settings' file='overview' action='submit'}" method="post">
276
277 {* Token *}
278 <input type="hidden" name="__token" value="{$token}" />
279
280 <table>
281 <thead>
282 <tr class="text_bold align_center">
283 <td>{$smarty.const.LANG_WIDGET_NAME}</td>
284 <td></td>
285 <td>{$smarty.const.LANG_STATUS}</td>
286 <td>{$smarty.const.LANG_COLOUR}</td>
287 <td></td>
288 </tr>
289 </thead>
290 <tbody>
291 {if !preg_match('/(?i)msie [1-8]/', $smarty.server.HTTP_USER_AGENT)}
292 {* Livestats (Umfasst: Livestats, Count_Orders und Turnover) *}
293 {if strtolower($smarty.const.ADMIN_MAIN_LIVE_STATS_ENABLE) eq 'true' && $user->hasRight("RIGHT_SEE_MAIN_LIVE_STATS")}
294 <tr>
295 <td class="text_bold">
296 {$smarty.const.LANG_SHOW_LIVE_STATS}
297 </td>
298 <td class="align_center">
299 {tooltip id="LIVE_STATS_WIDGET_INFO"}
300 </td>
301 <td>
302 <input type="checkbox" name="widget[wg_live_orders][status]" {if array_key_exists('wg_live_orders', $dashboard_user_widgets)}checked="checked"{/if}>
303 {if array_key_exists('wg_live_orders', $dashboard_user_widgets)}{$smarty.const.LANG_ACTIVE}
304 {else}
305 {$smarty.const.LANG_INACTIVE}
306 {/if}
307 </td>
308 <td>
309 {* Colourpicker *}
310 <input style="width: 100px;" type="text" class="colorpicker" name="widget[wg_live_orders][colour]" maxlength="7" autocomplete="off" value="{if isset($dashboard_user_widgets['wg_live_orders']['wg_colour'])}{$dashboard_user_widgets['wg_live_orders']['wg_colour']}{/if}" />
311 </td>
312 <td></td>
313 </tr>
314 {/if}
315
316 {* Kalender *}
317 {if $user->hasRight("RIGHT_SEE_CALENDAR") && $smarty.const.GOOGLE_CALENDAR_LINK neq ""}
318 <tr>
319 <td class="text_bold">
320 {$smarty.const.LANG_CALENDAR}
321 </td>
322 <td class="align_center">
323 {tooltip id="CALENDAR_WIDGET_INFO"}
324 </td>
325 <td>
326 <input type="checkbox" name="widget[wg_calendar][status]" {if array_key_exists('wg_calendar', $dashboard_user_widgets)}checked="checked"{/if}>
327 {if array_key_exists('wg_calendar', $dashboard_user_widgets)}{$smarty.const.LANG_ACTIVE}
328 {else}
329 {$smarty.const.LANG_INACTIVE}
330 {/if}
331 </td>
332 <td>
333 {* Colourpicker *}
334 <input style="width: 100px;" type="text" class="colorpicker" name="widget[wg_calendar][colour]" maxlength="7" autocomplete="off" value="{if isset($dashboard_user_widgets['wg_calendar']['wg_colour'])}{$dashboard_user_widgets['wg_calendar']['wg_colour']}{/if}" />
335 </td>
336 <td></td>
337 </tr>
338 {/if}
339
340 {* eigener Kalender *}
341 {if $user->hasRight("RIGHT_SEE_OWN_CALENDAR")}
342 <tr>
343 <td class="text_bold">
344 {$smarty.const.LANG_OWN_CALENDAR}
345 </td>
346 <td class="align_center">
347 {tooltip id="OWN_CALENDAR_WIDGET_INFO"}
348 </td>
349 <td>
350 <input type="checkbox" name="widget[wg_own_calendar][status]" {if array_key_exists('wg_own_calendar', $dashboard_user_widgets)}checked="checked"{/if}>
351 {if array_key_exists('wg_own_calendar', $dashboard_user_widgets)}{$smarty.const.LANG_ACTIVE}
352 {else}
353 {$smarty.const.LANG_INACTIVE}
354 {/if}
355 </td>
356 <td>
357 {* Colourpicker *}
358 <input style="width: 100px;" type="text" class="colorpicker" name="widget[wg_own_calendar][colour]" maxlength="7" autocomplete="off" value="{if isset($dashboard_user_widgets['wg_own_calendar']['wg_colour'])}{$dashboard_user_widgets['wg_own_calendar']['wg_colour']}{/if}" />
359 </td>
360 <td>
361 <input type="text" size="50" name="widget[wg_own_calendar][link]" value="{if isset($dashboard_user_widgets['wg_own_calendar']['link'])}{$dashboard_user_widgets['wg_own_calendar']['link']}{/if}" />
362 </td>
363 </tr>
364 {/if}
365
366 {* Online-Benutzer *}
367 {if $user->hasRight("RIGHT_SEE_ACTIVE_USERS")}
368 <tr>
369 <td class="text_bold">
370 {$smarty.const.LANG_ONLINE_USERS}
371 </td>
372 <td class="align_center">
373 {tooltip id="ACTIVE_USERS_WIDGET_INFO"}
374 </td>
375 <td>
376 <input type="checkbox" name="widget[wg_online_users][status]" {if array_key_exists('wg_online_users', $dashboard_user_widgets)}checked="checked"{/if}>
377 {if array_key_exists('wg_online_users', $dashboard_user_widgets)}{$smarty.const.LANG_ACTIVE}
378 {else}
379 {$smarty.const.LANG_INACTIVE}
380 {/if}
381 </td>
382 <td>
383 {* Colourpicker *}
384 <input style="width: 100px;" type="text" class="colorpicker" name="widget[wg_online_users][colour]" maxlength="7" autocomplete="off" value="{if isset($dashboard_user_widgets['wg_online_users']['wg_colour'])}{$dashboard_user_widgets['wg_online_users']['wg_colour']}{/if}" />
385 </td>
386 <td></td>
387 </tr>
388 {/if}
389
390 {* Shop-Informationen *}
391 {if $user->hasRight("RIGHT_SEE_SHOP_INFORMATION")}
392 <tr>
393 <td class="text_bold">
394 {$smarty.const.LANG_SHOP_INFORMATIONS}
395 </td>
396 <td class="align_center">
397 {tooltip id="SHOP_INFO_WIDGET_INFO"}
398 </td>
399 <td>
400 <input type="checkbox" name="widget[wg_shop_information][status]" {if array_key_exists('wg_shop_information', $dashboard_user_widgets)}checked="checked"{/if}>
401 {if array_key_exists('wg_shop_information', $dashboard_user_widgets)}
402 {$smarty.const.LANG_ACTIVE}
403 {else}
404 {$smarty.const.LANG_INACTIVE}
405 {/if}
406 </td>
407 <td>
408 {* Colourpicker *}
409 <input style="width: 100px;" type="text" class="colorpicker" name="widget[wg_shop_information][colour]" maxlength="7" autocomplete="off" value="{if isset($dashboard_user_widgets['wg_shop_information']['wg_colour'])}{$dashboard_user_widgets['wg_shop_information']['wg_colour']}{/if}" />
410 </td>
411 <td></td>
412 </tr>
413 {/if}
414
415 {* Gutscheineinlösungen *}
416 {if $show_coupon_redeems == true}
417 <tr>
418 <td class="text_bold">
419 {$smarty.const.LANG_COUPON_REDEEMS}
420 </td>
421 <td class="align_center">
422 {tooltip id="COUPON_REDEEMS_WIDGET_INFO"}
423 </td>
424 <td>
425 <input type="checkbox" name="widget[wg_redeem_coupons][status]" {if array_key_exists('wg_redeem_coupons', $dashboard_user_widgets)}checked="checked"{/if}>
426 {if array_key_exists('wg_redeem_coupons', $dashboard_user_widgets)}
427 {$smarty.const.LANG_ACTIVE}
428 {else}
429 {$smarty.const.LANG_INACTIVE}
430 {/if}
431 </td>
432 <td>
433 {* Colourpicker *}
434 <input style="width: 100px;" type="text" class="colorpicker" name="widget[wg_redeem_coupons][colour]" maxlength="7" autocomplete="off" value="{if isset($dashboard_user_widgets['wg_redeem_coupons']['wg_colour'])}{$dashboard_user_widgets['wg_redeem_coupons']['wg_colour']}{/if}" />
435 </td>
436 <td></td>
437 </tr>
438 {/if}
439
440 {* Bewertungen *}
441 {if $show_product_reviews == true}
442 <tr>
443 <td class="text_bold">
444 {$smarty.const.LANG_NAVI_REVIEWS_OVERVIEW}
445 </td>
446 <td class="align_center">
447 {tooltip id="PRODUCT_REVIEWS_WIDGET_INFO"}
448 </td>
449 <td>
450 <input type="checkbox" name="widget[wg_product_reviews][status]" {if array_key_exists('wg_product_reviews', $dashboard_user_widgets)}checked="checked"{/if}>
451 {if array_key_exists('wg_product_reviews', $dashboard_user_widgets)}
452 {$smarty.const.LANG_ACTIVE}
453 {else}
454 {$smarty.const.LANG_INACTIVE}
455 {/if}
456 </td>
457 <td>
458 {* Colourpicker *}
459 <input style="width: 100px;" type="text" class="colorpicker" name="widget[wg_product_reviews][colour]" maxlength="7" autocomplete="off" value="{if isset($dashboard_user_widgets['wg_product_reviews']['wg_colour'])}{$dashboard_user_widgets['wg_product_reviews']['wg_colour']}{/if}" />
460 </td>
461 <td></td>
462 </tr>
463 {/if}
464
465 {* Aufträge / Zahlungsart *}
466 {if $show_orders_payment_method == true}
467 <tr>
468 <td class="text_bold">
469 {$smarty.const.LANG_NAVI_ORDERS_PAYMENT_METHOD}
470 </td>
471 <td class="align_center">
472 {tooltip id="ORDERS_PAYMENT_METHOD_WIDGET_INFO"}
473 </td>
474 <td>
475 <input type="checkbox" name="widget[wg_orders_payment_method][status]" {if array_key_exists('wg_orders_payment_method', $dashboard_user_widgets)}checked="checked"{/if}>
476 {if array_key_exists('wg_orders_payment_method', $dashboard_user_widgets)}
477 {$smarty.const.LANG_ACTIVE}
478 {else}
479 {$smarty.const.LANG_INACTIVE}
480 {/if}
481 </td>
482 <td>
483 {* Colourpicker *}
484 <input style="width: 100px;" type="text" class="colorpicker" name="widget[wg_orders_payment_method][colour]" maxlength="7" autocomplete="off" value="{if isset($dashboard_user_widgets['wg_orders_payment_method']['wg_colour'])}{$dashboard_user_widgets['wg_orders_payment_method']['wg_colour']}{/if}" />
485 </td>
486 <td></td>
487 </tr>
488 {/if}
489
490 {* Top 10 Produkte *}
491 {if $show_top_10_products == true}
492 <tr>
493 <td class="text_bold">
494 {$smarty.const.LANG_TOP_10_PRODUCTS}
495 </td>
496 <td class="align_center">
497 {tooltip id="TOP_10_WIDGET_INFO"}
498 </td>
499 <td>
500 <input type="checkbox" name="widget[wg_top_ten_products][status]" {if array_key_exists('wg_top_ten_products', $dashboard_user_widgets)}checked="checked"{/if}>
501 {if array_key_exists('wg_top_ten_products', $dashboard_user_widgets)}
502 {$smarty.const.LANG_ACTIVE}
503 {else}
504 {$smarty.const.LANG_INACTIVE}
505 {/if}
506 </td>
507 <td>
508 {* Colourpicker *}
509 <input style="width: 100px;" type="text" class="colorpicker" name="widget[wg_top_ten_products][colour]" maxlength="7" autocomplete="off" value="{if isset($dashboard_user_widgets['wg_top_ten_products']['wg_colour'])}{$dashboard_user_widgets['wg_top_ten_products']['wg_colour']}{/if}" />
510 </td>
511 <td></td>
512 </tr>
513 {/if}
514
515 {* Bewertungen *}
516 {if $show_shop_updates == true}
517 <tr>
518 <td class="text_bold">
519 {$smarty.const.LANG_NAVI_SQL_UPDATES}
520 </td>
521 <td class="align_center">
522 {tooltip id="SHOP_UPDATES_WIDGET_INFO"}
523 </td>
524 <td>
525 <input type="checkbox" name="widget[wg_shop_updates][status]" {if array_key_exists('wg_shop_updates', $dashboard_user_widgets)}checked="checked"{/if}>
526 {if array_key_exists('wg_shop_updates', $dashboard_user_widgets)}
527 {$smarty.const.LANG_ACTIVE}
528 {else}
529 {$smarty.const.LANG_INACTIVE}
530 {/if}
531 </td>
532 <td>
533 {* Colourpicker *}
534 <input style="width: 100px;" type="text" class="colorpicker" name="widget[wg_shop_updates][colour]" maxlength="7" autocomplete="off" value="{if isset($dashboard_user_widgets['wg_shop_updates']['wg_colour'])}{$dashboard_user_widgets['wg_shop_updates']['wg_colour']}{/if}" />
535 </td>
536 <td></td>
537 </tr>
538 {/if}
539
540 {* Taschenrechner *}
541 <tr>
542 <td class="text_bold">
543 {$smarty.const.LANG_CALCULATOR}
544 </td>
545 <td class="align_center">
546 {tooltip id="CALCULATOR_WIDGET_INFO"}
547 </td>
548 <td>
549 <input type="checkbox" name="widget[wg_calculator][status]" {if array_key_exists('wg_calculator', $dashboard_user_widgets)}checked="checked"{/if}>
550 {if array_key_exists('wg_calculator', $dashboard_user_widgets)}
551 {$smarty.const.LANG_ACTIVE}
552 {else}
553 {$smarty.const.LANG_INACTIVE}
554 {/if}
555 </td>
556 <td>
557 {* Colourpicker *}
558 <input style="width: 100px;" type="text" class="colorpicker" name="widget[wg_calculator][colour]" maxlength="7" autocomplete="off" value="{if isset($dashboard_user_widgets['wg_calculator']['wg_colour'])}{$dashboard_user_widgets['wg_calculator']['wg_colour']}{/if}" />
559 </td>
560 <td></td>
561 </tr>
562
563 {* Hotness *}
564 <tr>
565 <td class="text_bold">
566 {$smarty.const.LANG_HOTNESS}
567 </td>
568 <td class="align_center">
569 {tooltip id="HOTNESS_PRODUCTS_WIDGET_INFO"}
570 </td>
571 <td>
572 <input type="checkbox" name="widget[wg_hotness_products][status]" {if array_key_exists('wg_hotness_products', $dashboard_user_widgets)}checked="checked"{/if}>
573 {if array_key_exists('wg_hotness_products', $dashboard_user_widgets)}
574 {$smarty.const.LANG_ACTIVE}
575 {else}
576 {$smarty.const.LANG_INACTIVE}
577 {/if}
578 </td>
579 <td>
580 {* Colourpicker *}
581 <input style="width: 100px;" type="text" class="colorpicker" name="widget[wg_hotness_products][colour]" maxlength="7" autocomplete="off" value="{if isset($dashboard_user_widgets['wg_hotness_products']['wg_colour'])}{$dashboard_user_widgets['wg_hotness_products']['wg_colour']}{/if}" />
582 </td>
583 <td></td>
584 </tr>
585
586 {* To-Do-Liste *}
587 {if $smarty.const.STICKY_NOTES_ENABLE|lower eq 'true'}
588 <tr>
589 <td class="text_bold">
590 {$smarty.const.LANG_STICKY_NOTES}
591 </td>
592 <td class="align_center">
593 {tooltip id="TODO_WIDGET_INFO"}
594 </td>
595 <td>
596 <input type="checkbox" name="widget[wg_todo][status]" {if array_key_exists('wg_todo', $dashboard_user_widgets)}checked="checked"{/if}>
597 {if array_key_exists('wg_todo', $dashboard_user_widgets)}
598 {$smarty.const.LANG_ACTIVE}
599 {else}
600 {$smarty.const.LANG_INACTIVE}
601 {/if}
602 </td>
603 <td>
604 {* Colourpicker *}
605 <input style="width: 100px;" type="text" class="colorpicker" name="widget[wg_todo][colour]" maxlength="7" autocomplete="off" value="{if isset($dashboard_user_widgets['wg_todo']['wg_colour'])}{$dashboard_user_widgets['wg_todo']['wg_colour']}{/if}" />
606 </td>
607 <td></td>
608 </tr>
609 {/if}
610 {/if}
611
612 {* Suche *}
613 {if $user->hasRight("RIGHT_COMPREHENSIVE_SEARCH")}
614 <tr>
615 <td class="text_bold">
616 {$smarty.const.LANG_SEARCH}
617 </td>
618 <td class="align_center">
619 {tooltip id="SEARCH_WIDGET_INFO"}
620 </td>
621 <td>
622 <input type="checkbox" name="widget[wg_search][status]" {if array_key_exists('wg_search', $dashboard_user_widgets)}checked="checked"{/if}>
623 {if array_key_exists('wg_search', $dashboard_user_widgets)}{$smarty.const.LANG_ACTIVE}
624 {else}
625 {$smarty.const.LANG_INACTIVE}
626 {/if}
627 </td>
628 <td>
629 {* Colourpicker *}
630 <input style="width: 100px;" type="text" class="colorpicker" name="widget[wg_search][colour]" maxlength="7" autocomplete="off" value="{if isset($dashboard_user_widgets['wg_search']['wg_colour'])}{$dashboard_user_widgets['wg_search']['wg_colour']}{/if}" />
631 </td>
632 <td></td>
633 </tr>
634 {/if}
635
636 {if !preg_match('/(?i)msie [1-8]/', $smarty.server.HTTP_USER_AGENT)}
637
638 {* Kundenkonto-Verknüpfung *}
639 {if $user->hasRight("RIGHT_ADD_CUSTOMER_ACCOUNTS")}
640 <tr>
641 <td class="text_bold">
642 {$smarty.const.LANG_PERSONAL_ACCOUNTS}
643 </td>
644 <td class="align_center">
645 {tooltip id="CONNECTED_ACCOUNTS_WIDGET_INFO"}
646
647 </td>
648 <td>
649 <input type="checkbox" checked="checked" disabled="disabled">
650 {$smarty.const.LANG_ACTIVE}
651 </td>
652 <td>
653 {* Colourpicker *}
654 <input style="width: 100px;" type="text" class="colorpicker" name="widget[wg_user_customer_accounts][colour]" maxlength="7" autocomplete="off" value="{if isset($dashboard_user_widgets['wg_user_customer_accounts']['wg_colour'])}{$dashboard_user_widgets['wg_user_customer_accounts']['wg_colour']}{/if}" />
655 </td>
656 <td></td>
657 </tr>
658 {/if}
659
660 {* Shortcuts *}
661 {if $user->hasRight("RIGHT_SHOP_DIRECT_SHORTCUTS") && $user->hasRight("RIGHT_SEE_SHOPS")}
662 <tr>
663 <td class="text_bold">
664 {$smarty.const.LANG_SHOP_DIRECT_SHORTCUTS}
665 </td>
666 <td class="align_center">
667 {tooltip id="SHORTCUTS_WIDGET_INFO"}
668 </td>
669 <td>
670 <input type="checkbox" checked="checked" disabled="disabled">
671 {$smarty.const.LANG_ACTIVE}
672 </td>
673 <td>
674 {* Colourpicker *}
675 <input style="width: 100px;" type="text" class="colorpicker" name="widget[wg_shop_direct_shortcuts][colour]" maxlength="7" autocomplete="off" value="{if isset($dashboard_user_widgets['wg_shop_direct_shortcuts']['wg_colour'])}{$dashboard_user_widgets['wg_shop_direct_shortcuts']['wg_colour']}{/if}" />
676 </td>
677 <td></td>
678 </tr>
679 {/if}
680 {/if}
681
682 {* News *}
683 <tr>
684 <td class="text_bold">
685 {$smarty.const.LANG_CURRENT_NEWS}
686 </td>
687 <td class="align_center">
688 {tooltip id="NEWS_WIDGET_INFO"}
689 </td>
690 <td>
691 <input type="checkbox" checked="checked" disabled="disabled">
692 {$smarty.const.LANG_ACTIVE}
693 </td>
694 <td>
695 {* Colourpicker *}
696 <input style="width: 100px;" type="text" class="colorpicker" name="widget[wg_news][colour]" maxlength="7" autocomplete="off" value="{if isset($dashboard_user_widgets['wg_news']['wg_colour'])}{$dashboard_user_widgets['wg_news']['wg_colour']}{/if}" />
697 </td>
698 <td></td>
699 </tr>
700 </tbody>
701 </table>
702 {* Submit-Button *}
703 <input type="submit" name="submit_change_dashboard_settings" value="{$smarty.const.LANG_CHANGE_SETTINGS}" />
704 </form>
705 </div>
706 </div>
707{* --------------------------------------------------------------------------------------------------------------------------------------------------------------------- *}
708 </div>
709 {if $smarty.const.ADMIN_COFFEE_CASH_ENABLE|lower eq 'true' && $user->hasRight("RIGHT_USE_COFFEE_CASH") && $user->checkSetting('coffee_cash_enabled') eq true}
710 <div id="tabList_coffee_cash">
711 {* BEGIN: Kafferechnungen *}
712 <div class="box">
713 <div class="box_header">
714 <span>{ucfirst($smarty.const.LANG_COFFEE_BILLS)} {tooltip id="coffee_cash_info"}</span>
715 </div>
716 <div class="box_content">
717 {if count($coffee_bills) > 0}
718
719 <table class="table_style">
720 <thead>
721 <tr>
722 <th>{$smarty.const.LANG_DATE}</th>
723 <th>{$smarty.const.LANG_COFFEE_BILL_COUNT}</th>
724 <th>{$smarty.const.LANG_COFFEE_BILL_VALUE}</th>
725 </tr>
726 </thead>
727 <tbody>
728 {foreach $coffee_bills AS $key => $value}
729 <tr align="center">
730 <td>{$value.paid_on|date_format:"d.m.Y H:i:s"}</td>
731 <td>{$value.coffee_count}</td>
732 <td>{get_price price=$value.coffee_price_total}</td>
733 </tr>
734 {/foreach}
735 </tbody>
736 </table>
737 {else}
738 <p>{$smarty.const.LANG_NO_COFFEE_BILLS_FOUND}</p>
739 {/if}
740 </div>
741 </div>
742 {* END: Kafferechnungen *}
743 </div>
744 {/if}
745 {if $user->hasRight("RIGHT_ADD_CUSTOMER_ACCOUNTS")}
746 <div id="tabList_personal_customer_accounts">
747 {* BEGIN: Persönliche Kundenkontos anzeigen *}
748 <div class="box">
749 <div class="box_header">
750 <span>{$smarty.const.LANG_PERSONAL_CUSTOMER_ACCOUNT}</span>
751 </div>
752 <div class="box_content">
753
754 {if count($personal_customer_accounts) > 0}
755 <table class="table_style">
756 <thead>
757 <tr>
758 <th>{$smarty.const.LANG_ADMIN_SHOP}</th>
759 <th>{$smarty.const.LANG_EMAIL_ADDRESS}</th>
760 <th>{$smarty.const.LANG_NAVI_CUSTOMERS_ID}</th>
761 <th>{$smarty.const.LANG_LINK_TO_SHOP}</th>
762 <th>{$smarty.const.LANG_LINK_TO_BACKOFFICE}</th>
763 <th><i class="icon icon-trash-o"></i></th>
764 </tr>
765 </thead>
766 <tbody>
767 {foreach $personal_customer_accounts AS $key => $value}
768 <tr align="center" class="s_{$value.shop|lower}">
769 <td><p><b>{shopname id=$value.shop_fid}</b></p></td>
770 <td>{getCustomerEmail($value.customers_id, $value.shop)}</td>
771 <td>{$value.customers_id}</td>
772 <td>
773 <a class="link" href="{getShopUrl(Shopname::getShopName(null, $value.shop_fid))}/user/login.html" target="_blank"><i class="icon icon-external-link"></i></a>
774 </td>
775 <td>
776 <a href="{html_link module=array('main', 'customer') file='customer_detail' query=["c_id" => $value.customers_id, 'shop'=>$value.shop|lower] action='href' target="_blank"}"><i class="icon icon-external-link"></i></a>
777 </td>
778 <td>
779 <form action="{html_link module='user_settings' file='overview' action='submit'}" method="post">
780 <input type="hidden" name="customers_id" value="{$value.customers_id}" />
781 <input type="hidden" name="__token" value="{$token}"/>
782 <input type="hidden" name="shop_fid" value="{$value.shop_fid}" />
783 <input type="submit" name="submit_delete_personal_customer_account" value="{$smarty.const.LANG_DELETE_PERSONAL_CUSTOMER_ACCOUNT}"/>
784 </form>
785 </td>
786 </tr>
787 {/foreach}
788 </tbody>
789 </table>
790 {else}
791 {* Ausgabe, wenn keine Kundenkontos verknüpft sind *}
792 {$smarty.const.LANG_INFO_NO_CUSTOMER_ACCOUNTS_CONNECTED}.
793 {/if}
794 </div>
795 </div>
796 {* END: Persönliche Kundenkontos anzeigen *}
797
798 {* BEGIN: Persönliche Kundenkontos hinzufügen *}
799 <div class="box">
800 <form action="{html_link module='user_settings' file='overview' action='submit'}" method="post">
801 <div class="box_header">
802 <span>{$smarty.const.LANG_ADD_PERSONAL_ACCOUNT}</span>
803 </div>
804 <div class="box_content">
805 {* Info *}
806 {$smarty.const.LANG_INFO_ADD_NEW_PERSONAL_CUSTOMER_ACCOUNTS}
807 <br><br/>
808 <fieldset>
809 <ol>
810 <li>
811 <label>{$smarty.const.LANG_EMAIL_ADDRESS}:</label>
812 <input type="hidden" name="__token" value="{$token}" />
813 <input type="text" name="email_address" value=""/>
814 <input type="submit" name="submit_insert_customer_account" value="{$smarty.const.LANG_ADD_PERSONAL_ACCOUNT}"/>
815 </li>
816 </ol>
817 </fieldset>
818 </div>
819 </form>
820 </div>
821 {* END: Persönliche Kundenkontos hinzufügen *}
822 </div>
823 {/if}
824
825 {if $smarty.const.ADMIN_LOGIN_TWO_FACTOR_AUTHENTICATION|lower eq 'true'}
826 <div id="tabList_security">
827 <div class="box">
828 <div class="box_header">
829 <span>{ucfirst($smarty.const.LANG_SECURITY_SETTINGS)}</span> <span> | </span> {if $two_fa_status_array['2fa_status'] eq 1}<span>{$smarty.const.LANG_STATUS}: </span><span class="color_green">{$smarty.const.LANG_ACTIVE}</span>{else}<span>{$smarty.const.LANG_STATUS}: </span><span class="color_red">{$smarty.const.LANG_INACTIVE}</span>{/if}
830 </div>
831 <div class="box_content">
832
833 {* Wenn der Nutzer noch keinen Authenticator aktiv hat *}
834 {if $two_fa_status_array['2fa_status'] eq 0}
835 {* Infotext *}
836 <p>
837 {$smarty.const.LANG_INFO_TEXT_2FA_PART_1}
838 <a href="https://support.google.com/accounts/answer/1066447?hl=de" class="link" target="_blank">{$smarty.const.LANG_INSTRUCTIONS}, </a>
839 {$smarty.const.LANG_INFO_TEXT_2FA_PART_2}
840 </p>
841 <p>
842 <input type="checkbox" id="check_use_2fa" name="check_use_2fa" disabled="disabled">
843 <label class="info_text" for="check_use_2fa" id="check_use_2fa_label"> {$smarty.const.LANG_SUBMIT_USE_2FA}</label>
844 </p>
845
846 <div>
847 <form action="{html_link module='user_settings' file='overview' action='submit'}" method="post">
848
849 <input type="hidden" name="__token" value="{$token}" />
850 <input type="hidden" name="secret_key" value="{$secret}" />
851
852 <div id="authentication_data_box" class="box" style="display: none">
853 <div class="box_header">
854 <span>{ucfirst($smarty.const.LANG_AUTHENTICATION_DATA)}</span>
855 </div>
856 <div class="box_content">
857 <fieldset>
858 <ol>
859 <li>
860 <label>{$smarty.const.LANG_STEP} 1:</label>
861 {$smarty.const.LANG_INFO_TEXT_2_FA_STEP_1}
862 <a href="https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2" class="link" target="_blank">Android</a> |
863 <a href="https://itunes.apple.com/de/app/google-authenticator/id388497605?mt=8" class="link" target="_blank">iOS</a> |
864 <a href="https://support.google.com/accounts/answer/1066447?hl=de" class="link" target="_blank">Blackberry</a>
865 </li>
866 <li></li>
867 <li>
868 <label>{$smarty.const.LANG_STEP} 2:</label>
869 {$smarty.const.LANG_INFO_TEXT_2_FA_STEP_2}
870 </li>
871
872 <li></li>
873 {* QR-Code und Secret-Key *}
874 <li><label></label> <iframe src="{$qrCodeUrl}" width="215" height="215"></iframe></li>
875 <li></li>
876 <li><label></label><span class="text_bold"> {$secret}</span></li>
877 <li></li>
878 <li>
879 <label class="color_red">{$smarty.const.LANG_STEP} 3:</label>
880 {$smarty.const.LANG_INFO_TEXT_2_FA_STEP_3}.
881 </li>
882 <li></li>
883 {* Submit *}
884 <li>
885 <label></label>
886 <input type="submit" name="submit_set_2fa" value="{$smarty.const.LANG_SUBMIT_SET_2FA}"/>
887 </li>
888 </ol>
889 </fieldset>
890 </div>
891 </div>
892 </form>
893 </div>
894 {* Wenn der Nutzer den Authenticator aktiv hat *}
895 {elseif ($two_fa_status_array['2fa_status'] eq 1)}
896 <p>{$smarty.const.LANG_INFO_TEXT_2_FA_UNSET}.</p>
897
898 <form action="{html_link module='user_settings' file='overview' action='submit'}" method="post">
899
900 <input type="hidden" name="__token" value="{$token}"/>
901 <fieldset>
902 <ol>
903 <li>
904 <label>{$smarty.const.LANG_SECURITY_CODE}:</label>
905 <input type="text" name="inserted_security_code" value="">
906 </li>
907 <li>
908 <label></label>
909 <input type="submit" name="submit_unset_2fa" value="{$smarty.const.LANG_SUBMIT_UNSET_2FA}"/>
910 </li>
911 </ol>
912 </fieldset>
913 </form>
914 {/if}
915 </div>
916 </div>
917 </div>
918 {/if}
919{if $user_email_status eq true}
920 <div id="dialog_additional_email" title="{$smarty.const.LANG_EMAIL_ADDRESS}" style="display: none;">
921 <table>
922 <tbody>
923 {foreach $contact_data['email'] AS $key => $value}
924 {if $value['visible']}
925 <tr>
926 <td>
927 <form action="{html_link module='user_settings' file='overview' action='submit'}" method="post">
928
929 <input style="width:250px" type="text" name="contact_data" value="{$value['contact_data']}">
930
931 <input type="hidden" name="__token" value="{$token}"/>
932 <input type="hidden" name="data" value="{$value['pk']}"/>
933 <input type="submit" name="submit_change_contact_data" value="{$smarty.const.LANG_EDIT}"/>
934 </form>
935 </td>
936
937 <td>
938 <form action="{html_link module='user_settings' file='overview' action='submit'}" method="post">
939 <input type="hidden" name="__token" value="{$token}"/>
940 <input type="hidden" name="data" value="{$value['pk']}"/>
941 <input type="submit" name="submit_delete_contact_email" value="{$smarty.const.LANG_DELETE}"/>
942 </form>
943 </td>
944
945 <td>
946 <form action="{html_link module='user_settings' file='overview' action='submit'}" method="post">
947 <input type="hidden" name="__token" value="{$token}"/>
948 <input type="hidden" name="data" value="{$value['pk']}"/>
949 <input type="hidden" name="user_id" value="{$value['user_fid']}"/>
950 <input type="hidden" name="contact_data" value="{$value['contact_data']}"/>
951 <input type="submit" name="submit_switch_email_to_default" value="{$smarty.const.LANG_SWITCH_TO_MAIN_MAIL_ADDRESS}"/>
952 </form>
953 </td>
954
955 </tr>
956 {/if}
957 {/foreach}
958 </tbody>
959 </table>
960 </div>
961{/if}
962
963<div id="dialog_additional_telephone" title="{$smarty.const.LANG_TELEPHONE_NUMBER}" style="display: none;">
964 <table>
965 <tbody>
966 {foreach $contact_data['telephone'] AS $key => $value}
967 {if $value['visible']}
968 <tr>
969 <td>
970 <form action="{html_link module='user_settings' file='overview' action='submit'}" method="post">
971
972 <input style="width:250px" type="text" name="contact_data" value="{$value['contact_data']}">
973
974 <input type="hidden" name="__token" value="{$token}"/>
975 <input type="hidden" name="data" value="{$value['pk']}"/>
976 <input type="submit" name="submit_change_contact_data" value="{$smarty.const.LANG_EDIT}"/>
977 </form>
978 </td>
979
980 <td>
981 <form action="{html_link module='user_settings' file='overview' action='submit'}" method="post">
982 <input type="hidden" name="__token" value="{$token}"/>
983 <input type="hidden" name="data" value="{$value['pk']}"/>
984 <input type="submit" name="submit_delete_contact_telephone" value="{$smarty.const.LANG_DELETE}"/>
985 </form>
986 </td>
987 </tr>
988 {/if}
989 {/foreach}
990 </tbody>
991 </table>
992</div>
993
994<div id="dialog_additional_fax" title="{$smarty.const.LANG_FAX_CONTACT}" style="display: none;">
995 <table>
996 <tbody>
997 {foreach $contact_data['fax'] AS $key => $value}
998 {if $value['visible']}
999 <tr>
1000 <td>
1001 <form action="{html_link module='user_settings' file='overview' action='submit'}" method="post">
1002
1003 <input style="width:250px" type="text" name="contact_data" value="{$value['contact_data']}">
1004
1005 <input type="hidden" name="__token" value="{$token}"/>
1006 <input type="hidden" name="data" value="{$value['pk']}"/>
1007 <input type="submit" name="submit_change_contact_data" value="{$smarty.const.LANG_EDIT}"/>
1008 </form>
1009 </td>
1010 <td>
1011 <form action="{html_link module='user_settings' file='overview' action='submit'}" method="post">
1012 <input type="hidden" name="__token" value="{$token}"/>
1013 <input type="hidden" name="data" value="{$value['pk']}"/>
1014 <input type="submit" name="submit_delete_contact_fax" value="{$smarty.const.LANG_DELETE}"/>
1015 </form>
1016 </td>
1017 </tr>
1018 {/if}
1019 {/foreach}
1020 </tbody>
1021 </table>
1022</div>
1023
1024{if checkReInEmployee($user->getUserID()) && ($user->hasRole('ROLE_ADMIN') || $user->hasRole('ROLE_WDO'))}
1025 <div id="dialog_skype" title="{$smarty.const.LANG_SKYPE}" style="display: none;">
1026 <table>
1027 <tbody>
1028 {foreach $contact_data['skype'] AS $key => $value}
1029 {if $value['visible']}
1030 <tr>
1031 <td>
1032 <form action="{html_link module='user_settings' file='overview' action='submit'}" method="post">
1033
1034 <input style="width:250px" type="text" name="contact_data" value="{$value['contact_data']}">
1035
1036 <input type="hidden" name="__token" value="{$token}"/>
1037 <input type="hidden" name="data" value="{$value['pk']}"/>
1038 <input type="submit" name="submit_change_contact_data" value="{$smarty.const.LANG_EDIT}"/>
1039 </form>
1040 </td>
1041 <td>
1042 <form action="{html_link module='user_settings' file='overview' action='submit'}" method="post">
1043 <input type="hidden" name="__token" value="{$token}"/>
1044 <input type="hidden" name="data" value="{$value['pk']}"/>
1045 <input type="submit" name="submit_delete_contact_skype" value="{$smarty.const.LANG_DELETE}"/>
1046 </form>
1047 </td>
1048 </tr>
1049 {/if}
1050 {/foreach}
1051 </tbody>
1052 </table>
1053 </div>
1054{/if}
1055
1056<div id="dialog_other_data" title="{$smarty.const.LANG_ADDITIONAL_CONTACT_DATA}" style="display: none;">
1057 <table>
1058 <tbody>
1059 {foreach $contact_data['other'] AS $key => $value}
1060 {if $value['visible']}
1061 <tr>
1062 <td>
1063 <form action="{html_link module='user_settings' file='overview' action='submit'}" method="post">
1064
1065 <input type="text" name="other_notices_name" class="font_weight_bold" value="{$value['other_contact_data_name']}"/>
1066 <span class="font_weight_bold">:</span>
1067 <input type="text" name="other_notices_data" value="{$value['contact_data']}"/>
1068
1069 <input type="hidden" name="__token" value="{$token}"/>
1070 <input type="hidden" name="other_data_pk" value="{$value['pk']}"/>
1071 <input type="submit" name="submit_change_other_contact_data" value="{$smarty.const.LANG_EDIT}"/>
1072 </form>
1073 </td>
1074 <td>
1075 <form action="{html_link module='user_settings' file='overview' action='submit'}" method="post">
1076 <input type="hidden" name="__token" value="{$token}"/>
1077 <input type="hidden" name="data" value="{$value['pk']}"/>
1078 <input type="submit" name="submit_delete_contact_other" value="{$smarty.const.LANG_DELETE}"/>
1079 </form>
1080 </td>
1081 </tr>
1082 {/if}
1083 {/foreach}
1084 </tbody>
1085 </table>
1086</div>
1087
1088<script type="text/javascript">
1089
1090 $('#switch_to_survey').click(function() {
1091 window.open('{$survey_link}');
1092 });
1093
1094 $('#open_additional_data').click(function() {
1095 $('#dialog_additional_email').dialog('open');
1096 });
1097
1098 $('#open_additional_telephone').click(function() {
1099 $('#dialog_additional_telephone').dialog('open');
1100 });
1101
1102 $('#add_additional_fax').click(function() {
1103 $('#dialog_additional_fax').dialog('open');
1104 });
1105
1106 $('#add_additional_skype').click(function() {
1107 $('#dialog_skype').dialog('open');
1108 });
1109
1110 $('#open_additional_other_data').click(function() {
1111 $('#dialog_other_data').dialog('open');
1112 });
1113 $('#risk_check').click(function(){
1114 if($('#risk_check').attr('checked') == 'checked')
1115 {
1116 $('#risk_select').show();
1117 }else{
1118 $('#risk_select').hide();
1119 }
1120 });
1121
1122 $('#notification').click(function(e) {
1123 if ($('#risk_definition').val() < 3 && ($('#risk_check').attr('checked') == 'checked')) {
1124 e.preventDefault();
1125 $('#dialog_notification_info').dialog('open');
1126 }
1127 });
1128
1129 $(document).ready(function() {
1130
1131 $('#dialog_additional_email').dialog({
1132 autoOpen: false,
1133 width: "800",
1134 resizable: false,
1135 buttons: {
1136 "{$smarty.const.LANG_OK}": function() {
1137 $(this).dialog("close");
1138 }
1139 }
1140 });
1141
1142 $('#dialog_other_data').dialog({
1143 autoOpen: false,
1144 width: "800",
1145 resizable: false,
1146 buttons: {
1147 "{$smarty.const.LANG_OK}": function() {
1148 $(this).dialog("close");
1149 }
1150 }
1151 });
1152
1153 $('#dialog_additional_telephone').dialog({
1154 autoOpen: false,
1155 width: "500",
1156 resizable: false,
1157 buttons: {
1158 "{$smarty.const.LANG_OK}": function() {
1159 $(this).dialog("close");
1160 }
1161 }
1162 });
1163
1164 $('#dialog_additional_fax').dialog({
1165 autoOpen: false,
1166 width: "500",
1167 resizable: false,
1168 buttons: {
1169 "{$smarty.const.LANG_OK}": function() {
1170 $(this).dialog("close");
1171 }
1172 }
1173 });
1174
1175 $('#dialog_skype').dialog({
1176 autoOpen: false,
1177 width: "500",
1178 resizable: false,
1179 buttons: {
1180 "{$smarty.const.LANG_OK}": function() {
1181 $(this).dialog("close");
1182 }
1183 }
1184 });
1185
1186 $('#dialog_notification_info').dialog({
1187 autoOpen: false,
1188 width: "400",
1189 height: "200",
1190 resizable: false,
1191 buttons: {
1192 "{$smarty.const.LANG_OK}": function() {
1193 $('#user_settings_form').submit();
1194 $(this).dialog("close");
1195 },
1196 "{$smarty.const.LANG_CANCEL}": function() {
1197 $(this).dialog("close");
1198 }
1199 }
1200 });
1201
1202 $(".colorpicker").colorpicker();
1203 });
1204
1205 $("#tabs").tabs({
1206 active : ($.cookie("boTabs") || 0),
1207 activate : function( event, ui ) {
1208 var newIndex = ui.newTab.parent().children().index(ui.newTab);
1209 $.cookie("boTabs", newIndex, { expires: 1 });
1210 }
1211 });
1212
1213 $('#check_use_2fa_label').click(function() {
1214 $('#authentication_data_box').slideDown();
1215 $('#check_use_2fa').attr('checked', 'checked');
1216 });
1217
1218
1219
1220
1221</script>