Rev 13410 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
13400 | obado | 1 | !! display a warning message to user when the session is about to close. |
2 | !if $wims_user!=$empty and $jquery_defined=yes |
||
13618 | obado | 3 | <script>var swarn_sessionAlive=$wims_idletime;</script> |
13400 | obado | 4 | <script src="html/themes/_inc/session_warn.js"></script> |
5 | <div id="sess_dialog1" title="$swarn_dialog_title1" style="display:none"> |
||
6 | <div class="wims_msg warning"> |
||
7 | $swarn_dialog_common |
||
8 | <p>$swarn_dialog_1 <span id="js_session_timer">60</span>s.</p> |
||
9 | </div> |
||
13618 | obado | 10 | |
13400 | obado | 11 | </div> |
12 | <div id="sess_dialog2" title="$swarn_dialog_title2" style="display:none"> |
||
13 | <div class="wims_msg alert"> |
||
14 | $swarn_dialog_common |
||
15 | <p>$swarn_dialog_2</p> |
||
16 | <div class="wimscenter"> |
||
13618 | obado | 17 | !set auth_method=$(class_authidp[1;]) |
18 | !if $auth_method isitemof $auth_method_list and $(class_$(auth_method)_auth)!=$empty |
||
19 | <a class="wims_button" |
||
20 | href="$wims_ref_name?lang=$lang&module=home" |
||
21 | >$wims_name_home</a> |
||
13400 | obado | 22 | !else |
13618 | obado | 23 | !if $wims_user=supervisor |
24 | !set auth_type=authsupervisor |
||
25 | !else |
||
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> |
||
13400 | obado | 31 | !endif |
32 | </div> |
||
33 | </div> |
||
34 | </div> |
||
35 | !endif |