Subversion Repositories wimsdev

Rev

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

  1. <!-- begin of $wims_theme/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. !if _exam isin $wims_session
  13.  <div id="wimsexam">
  14. !endif
  15. !if $wims_lightpopup=yes
  16.  <div id="wimslightpopup">
  17. !endif
  18. !set wims_theme_version=1
  19. !set current_module=!replace / by , in $module
  20. !set module_path= !item 1 of $current_module
  21. !if $wims_hm_cnt!=0 or ($module_path notitemof home,adm,classes and _exam notin $session and $module_init_parm == $empty)
  22.  
  23. <div id="wimstopbox">
  24. <div class="wimsmenu">
  25. !for i_=1 to $wims_hm_cnt
  26.  <span class="topmenuitem">
  27.  !set 1_=!line $i_ of $wims_hm
  28.  !read oneitem.phtml $1_
  29.  </span> <!--topmenuitem-->
  30. !next i_
  31.  
  32. !! -----------------------Insert "Permalien" --------------------------------
  33. !! Permalien / lecteur exportable : ces lignes permettent d'integrer facilement la page courante a un autre site :
  34.  
  35. !set current_module=!replace / by , in $module
  36.  
  37. !set module_path= !item 1 of $current_module   
  38. !if $module_path notitemof home,adm,classes and _exam notin $session and $wims_lightpopup!=yes and ($wims_user=supervisor or $wims_user=$empty) and ($cmd=intro or $cmd=$empty)
  39.         !set permalien=$wims_ref_name?module=$module
  40.  
  41. <div class="topmenuitem" id="header_export">
  42. <div id="lien_export_media" style="display:block">
  43.         <a href="#" class="about" onclick="document.getElementById('export_media').style.display = 'block';document.getElementById('lien_export_media').style.display = 'none';">$wims_name_display1</a>
  44. </div><!--lien_export_media-->
  45. <div id="export_media" style="display:none" align="left">
  46. <div class="wimscenter"> -- <strong>$wims_name_display1</strong>
  47. -- &nbsp; <a href="#" onclick="document.getElementById('export_media').style.display = 'none';document.getElementById('lien_export_media').style.display = 'block';">
  48. ($wims_name_mask_this)</a></div><!--wimstail-->
  49.         <hr/>
  50.         <label for="wims_permalink">$wims_name_permalink1</label><br/>
  51.          <small>($wims_name_display2)</small> :
  52.         <input id="wims_permalink" name="wims_permalink" value="$permalien" size="70"/>
  53.         <hr/>
  54.         <label for="wims_embed_textarea">$wims_name_embeddable<br/>
  55.         <small> ($wims_name_display3) :
  56.         </small>
  57.         <textarea style="vertical-align:middle" rows="3" cols="50" readonly="readonly" id="wims_embed_textarea" name="wims_embed_textarea" >&lt;iframe src="$permalien&+embededwindow=true" title="WIMS embeddable" frameborder="0" class="wims_embed" style="width:100%;height:100%;min-height:800px;" allowfullscreen>&lt;/iframe></textarea>
  58. </div><!--export_media-->
  59. </div><!--topmenuitem-->
  60.  
  61. !endif
  62. !!------------------------------------Fin de l'insert "Permalien" --------------------------
  63.  
  64. !!FIXME PHP ?
  65. !if $class_cas_auth=$empty
  66.   !set m_init_parm=!replace internal & by $ $ in $module_init_parm
  67.   !set class_cas_auth=!getopt class_auth in $m_init_parm
  68. !endif
  69.  
  70. !if $class_cas_auth!=$empty
  71. !!## it is better that the cas logout appears too much ...
  72. !!## can be useless in the case of a supervisor so the next line is commented
  73. !!!!!!and $wims_user!=supervisor and ($wims_realuser=$empty or $wims_realuser!=supervisor)
  74.   <div class="topmenuitem">
  75.   !read adm/class/logout_cas
  76.  </div><!--topmenuitem-->
  77. !endif
  78. </div><!--wimsmenu-->
  79. </div><!--wimstopbox-->
  80. !endif
  81.  
  82. !if $module!=home or $wims_user!=
  83. <div id="wimsbodybox">
  84. !if $wims_homeref_n3>0
  85.   <div id="wimsmenutab">
  86.   <div class="wimsmenu">
  87.   !for i_=1 to $wims_homeref_n3
  88.     !set 1_=!line $i_ of $wims_rm_3
  89.     !if $(1_[1])!=
  90.       <div class="itemsep">toto</div>
  91.     !else
  92.      <div class="menuitem">
  93.      toto
  94.      !read oneitem.phtml $1_
  95.      </div>
  96.     !endif
  97.   !next i_
  98.   </div><!--wimsmenu-->
  99.   </div><!--wimsmenutab-->
  100. !endif
  101.  
  102. <div id="wimspagebox">
  103. !endif
  104.  
  105. !if $wims_user!=supervisor and $wims_class!=$empty and $wims_alertmsg!=$empty
  106.  <div class="wims_alertmsg">$wims_alertmsg
  107.  !if adm isin $module or $module=home
  108.   !href module=adm/class/motd&job=readen $wims_name_readen
  109.  !endif
  110.  </div>
  111. !endif
  112.  
  113. <!-- end of $wims_theme/header.phtml -->