Rev 13410 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 13410 | Rev 13618 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | !! display a warning message to user when the session is about to close. |
1 | !! display a warning message to user when the session is about to close. |
2 | !if $wims_user!=$empty and $jquery_defined=yes |
2 | !if $wims_user!=$empty and $jquery_defined=yes |
3 | !set idle_time=$wims_idletime |
- | |
4 | !default idle_time=!defof idle_time in wimshome/log/wims.conf |
- | |
5 | !default idle_time=!defof DF_idle_time in wimshome/public_html/bases/sys/defaults.conf |
- | |
6 | !default idle_time=5400 |
- | |
7 | <script>var swarn_sessionAlive= |
3 | <script>var swarn_sessionAlive=$wims_idletime;</script> |
8 | <script src="html/themes/_inc/session_warn.js"></script> |
4 | <script src="html/themes/_inc/session_warn.js"></script> |
9 | <div id="sess_dialog1" title="$swarn_dialog_title1" style="display:none"> |
5 | <div id="sess_dialog1" title="$swarn_dialog_title1" style="display:none"> |
10 | <div class="wims_msg warning"> |
6 | <div class="wims_msg warning"> |
11 | $swarn_dialog_common |
7 | $swarn_dialog_common |
12 | <p>$swarn_dialog_1 <span id="js_session_timer">60</span>s.</p> |
8 | <p>$swarn_dialog_1 <span id="js_session_timer">60</span>s.</p> |
13 | </div> |
9 | </div> |
- | 10 | ||
14 | </div> |
11 | </div> |
15 | <div id="sess_dialog2" title="$swarn_dialog_title2" style="display:none"> |
12 | <div id="sess_dialog2" title="$swarn_dialog_title2" style="display:none"> |
16 | <div class="wims_msg alert"> |
13 | <div class="wims_msg alert"> |
17 | $swarn_dialog_common |
14 | $swarn_dialog_common |
18 | <p>$swarn_dialog_2</p> |
15 | <p>$swarn_dialog_2</p> |
19 | <div class="wimscenter"> |
16 | <div class="wimscenter"> |
- | 17 | !set auth_method=$(class_authidp[1;]) |
|
- | 18 | !if $auth_method isitemof $auth_method_list and $(class_$(auth_method)_auth)!=$empty |
|
20 |
|
19 | <a class="wims_button" |
- | 20 | href="$wims_ref_name?lang=$lang&module=home" |
|
21 |
|
21 | >$wims_name_home</a> |
22 | !else |
22 | !else |
- | 23 | !if $wims_user=supervisor |
|
- | 24 | !set auth_type=authsupervisor |
|
- | 25 | !else |
|
23 | !set auth_type=authparticipant |
26 | !set auth_type=authparticipant |
- | 27 | !endif |
|
- | 28 | <a class="wims_button" |
|
- | 29 | href="$wims_ref_name?lang=$lang&module=adm/class/classes&type=$auth_type&class=$wims_class" |
|
- | 30 | >$swarn_dialog_button</a> |
|
24 | !endif |
31 | !endif |
25 | <a class="wims_button" |
- | |
26 | href="$wims_ref_name?lang=$lang&module=adm/class/classes&type=$auth_type&class=$wims_class" |
- | |
27 | >$swarn_dialog_button</a> |
- | |
28 | </div> |
32 | </div> |
29 | </div> |
33 | </div> |
30 | </div> |
34 | </div> |
31 | !endif |
35 | !endif |