Subversion Repositories wimsdev

Rev

Rev 5934 | Rev 5993 | 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.  <link rel="stylesheet" href="html/themes/$wims_theme/css_theme/light.css" type="text/css">
  18.  
  19. !endif
  20. !set wims_theme_version=1
  21. !set current_module=!replace / by , in $module
  22. !set module_path= !item 1 of $current_module
  23. !if $wims_hm_cnt!=0 or ($module_path notitemof home,adm,classes and _exam notin $session and $module_init_parm == $empty)
  24.  
  25. <div id="wimstopbox">
  26.  
  27.         !!Site Title
  28.         !read themes/$wims_theme/widgets/site_title.phtml
  29.  
  30.         !!Institution logo
  31.         !read themes/$wims_theme/widgets/institution_logo.phtml
  32.  
  33. <br class="spacer"/>
  34.  
  35.  
  36. <!--
  37. <div class="wimsmenu">
  38. !for i_=1 to $wims_hm_cnt
  39.  <span class="topmenuitem">
  40.  !set 1_=!line $i_ of $wims_hm
  41.  !read oneitem.phtml $1_
  42.  </span>
  43.  !next i_
  44.  -->
  45.  
  46. <ul class="wimsmenu menuglobal">
  47. !for i_=1 to $wims_hm_cnt
  48.  <li class="topmenuitem">
  49.  !set 1_=!line $i_ of $wims_hm
  50.  !read oneitem.phtml $1_
  51.  </li>
  52.  !next i_
  53.  
  54.  
  55. !! -----------------------Insert "Permalien" --------------------------------
  56. !! Permalien / lecteur exportable : ces lignes permettent d'integrer facilement la page courante a un autre site :
  57.  
  58. !set current_module=!replace / by , in $module
  59.  
  60. !set module_path= !item 1 of $current_module   
  61. !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)
  62.         !set permalien=$wims_ref_name?module=$module
  63.  
  64. <li class="topmenuitem" id="header_export">
  65. <div id="lien_export_media" style="display:block">
  66.         <a href="#" class="about" onclick="document.getElementById('export_media').style.display = 'block';document.getElementById('lien_export_media').style.display = 'none';">$wims_name_display1</a>
  67. </div><!--lien_export_media-->
  68. <div id="export_media" style="display:none" align="left">
  69. <div align="center"> -- <strong>$wims_name_display1</strong>
  70. -- &nbsp; <a href="#" onclick="document.getElementById('export_media').style.display = 'none';document.getElementById('lien_export_media').style.display = 'block';">
  71. ($wims_name_mask_this)</a></div><!--wimstail-->
  72.         <hr/>
  73.         <label for="wims_permalink">$wims_name_permalink1</label><br/>
  74.          <small>($wims_name_display2)</small> :
  75.         <input id="wims_permalink" name="wims_permalink" value="$permalien" size="70"/>
  76.         <hr/>
  77.         <label for="wims_embed_textarea">$wims_name_embeddable<br/>
  78.         <small> ($wims_name_display3) :
  79.         </small>
  80.         <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>
  81. </div><!--export_media-->
  82. </li><!--topmenuitem-->
  83.  
  84. !endif
  85. !!------------------------------------Fin de l'insert "Permalien" --------------------------
  86.  
  87. !!FIXME PHP ?
  88. !if $class_cas_auth=$empty
  89.   !set m_init_parm=!replace internal & by $ $ in $module_init_parm
  90.   !set class_cas_auth=!getopt class_auth in $m_init_parm
  91. !endif
  92.  
  93. !if $class_cas_auth!=$empty
  94. !!## it is better that the cas logout appears too much ...
  95. !!## can be useless in the case of a supervisor so the next line is commented
  96. !!!!!!and $wims_user!=supervisor and ($wims_realuser=$empty or $wims_realuser!=supervisor)
  97.   <li class="topmenuitem">
  98.   !read adm/class/logout_cas
  99.  </li><!--topmenuitem-->
  100. !endif
  101. </ul><!--wimsmenu-->
  102.  
  103. !endif
  104.  
  105.  
  106.  
  107. !endif
  108.  
  109. </div><!--wimstopbox-->
  110.  
  111.  
  112. !if $module!=home or $wims_user!=
  113.  
  114. <div id="wimsbodybox">
  115. !if $wims_homeref_n3>0
  116.   <div id="wimsmenutab">
  117.   <ul class="wimsmenu">
  118.   !for i_=1 to $wims_homeref_n3
  119.     !set 1_=!line $i_ of $wims_rm_3
  120.     !if $(1_[1])!=
  121.       <li class="itemsep">toto</li>
  122.     !else  
  123.    
  124.      <li class="menuitem">
  125.      toto
  126.      !read oneitem.phtml $1_
  127.      </li>
  128.     !endif
  129.   !next i_
  130.   </ul><!--wimsmenu-->
  131.   </div><!--wimsmenutab-->
  132. !endif
  133.  
  134. <!--Ajout du menu de la zone enseignant-->
  135. !if $module = adm/class/classes or $module = adm/class/regclass or $module = adm/createxo or $module = adm/createxo or $module = adm/modtool or $module = adm/quicktool or $module = adm/latex2wims
  136.     <div id="wimspagebox" class="zone_prof">
  137.         !read themes/$wims_theme/widgets/menuprof.phtml
  138.        
  139. !else
  140.     <div id="wimspagebox">
  141. !endif
  142.  
  143. !!! ICI, impossible de placer menumodubox : les variables qu'il utilise ne sont pas encore instanciƩes
  144. !! read themes/$wims_theme/widgets/menumodubox.phtml
  145.  
  146.  
  147.  
  148.  
  149.  
  150. !if $wims_user!=supervisor and $wims_class!=$empty and $wims_alertmsg!=$empty
  151. <div class="wims_alertmsg">$wims_alertmsg
  152.  
  153. !if adm isin $module or $module=home
  154.  !href module=adm/class/motd&job=readen $wims_name_readen
  155. !endif
  156. </div>
  157. !endif
  158.  
  159. <!-- end of $wims_theme/header.phtml -->