Subversion Repositories wimsdev

Rev

Rev 10644 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. <!-- begin of default/header.phtml -->
  2.  
  3. !! Header menu bar definition.
  4. !nocache
  5. !set wims_theme_header=yes
  6.  
  7. !default wims_theme_icon=$class_theme_icon
  8. !default wims_theme_icon=standard
  9. !if _help isin $wims_session
  10.   <div id="wimsmhelp">
  11. !endif
  12.  
  13. !if _exam isin $wims_session
  14.   <div id="wimsexam">
  15. !endif
  16.  
  17. !if $wims_lightpopup=yes
  18.   <div id="wimslightpopup">
  19.    <link rel="stylesheet" href="html/themes/_css/light.css" type="text/css">
  20. !endif
  21.  
  22. !set wims_theme_version=1
  23. !set current_module=!replace / by , in $module
  24. !set module_path= !item 1 of $current_module
  25. !set wims_hm=$wims_hm\
  26. $wims_home_items\
  27. $wims_link_close\
  28. $wims_ariane
  29.  
  30. !set  wims_hm_cnt=!linecnt $wims_hm
  31.  
  32. !if $wims_hm_cnt!=0 or ($module_path notitemof home,adm,classes and _exam notin $session and $module_init_parm == $empty)
  33.  <div id="wimstopbox">
  34.  
  35.   <div class="wimsmenu">
  36.     !for i_=1 to $wims_hm_cnt
  37.       <span class="menuitem">
  38.         !set 1_=!line $i_ of $wims_hm
  39.         !read oneitem.phtml $1_
  40.       </span>
  41.     !next i_
  42.     !distribute items div,span into div0,div1
  43.     !read themes/_widgets/permalink.phtml
  44.  
  45.     !!## technical parameters
  46.    !if $class_cas_auth=$empty
  47.       !set m_init_parm=!replace internal & by $ $ in $module_init_parm
  48.       !set class_cas_auth=!getopt class_auth in $m_init_parm
  49.     !endif
  50.     !if $class_cas_auth!=$empty
  51.       !!## it is better that the cas logout appears too much ...
  52.      !!## can be useless in the case of a supervisor so the next line is commented
  53.      !!!!!!and $wims_user!=supervisor and ($wims_realuser=$empty or $wims_realuser!=supervisor)
  54.       <div class="menuitem">
  55.         !read adm/class/logout_cas
  56.       </div>
  57.     !endif
  58.   </div><!--wimsmenu-->
  59. </div><!--wimstopbox-->
  60. !endif
  61.  
  62. !read themes/_widgets/ariane.phtml
  63.  
  64. !if $module!=home or $wims_user!=
  65.   <div id="wimsbodybox">
  66.     <div id="wimspagebox">
  67. !endif
  68.  
  69. !read themes/_widgets/alertchat.phtml
  70.  
  71. <!-- end of default/header.phtml -->
  72.