Subversion Repositories wimsdev

Rev

Rev 13410 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !! display a warning message to user when the session is about to close.
  2. !if $wims_user!=$empty and $jquery_defined=yes
  3.   <script>var swarn_sessionAlive=$wims_idletime;</script>
  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>
  10.  
  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">
  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>
  22.         !else
  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>
  31.         !endif
  32.       </div>
  33.     </div>
  34.   </div>
  35. !endif
  36.