Subversion Repositories wimsdev

Rev

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

  1. <!-- begin of $wims_theme/visitor.phtml -->
  2. !! WIMS main entrance page theme.
  3. !nocache
  4. !if $module!=home
  5.  !exit
  6. !endif
  7.  
  8. !set wims_name_browse=$N_browse2
  9.  
  10. !set home_theme=yes
  11. !set table_colors=$wims_ref_bgcolor,$wims_ref_bgcolor
  12. </div>
  13. !!!set wims_headmenu_colcnt=5
  14. <div id="wimsfrontpage">
  15.  
  16. <div id="wimstopbox">
  17. !if $site_logo!=$empty
  18.   <div id="wimslogoleft">
  19.    <a href="$site_logolink" target="wims_external"><img src="$site_logo" border="0" alt="logo"/></a>
  20.   </div>
  21. !endif
  22. <div id="wimslogo">
  23. !href module=home&special_parm=logo <img src="gifs/logo.gif" border="0" alt="WIMS logo"/>
  24. </div>
  25. <div class="wimsmenu">
  26. !for i=1 to $wims_language_cnt
  27.  !set l=!word $i of $wims_site_languages
  28.  !if $l!=$lang
  29.   !if $wims_language_cnt>2 and $wims_language_cnt<6
  30.    !set l_=<small>$(lang_name_$l)</small>
  31.   !else
  32.    !if $wims_language_cnt<6
  33.     !set l_=$(lang_name_$l)
  34.    !else
  35.     !reset l_
  36.    !endif
  37.   !endif
  38. <span class="menuitem">
  39.   !href lang=$l&session=$wims_session.1&module=$module <img src="gifs/$l.gif" alt="$(Lang_name_$l)" height="16" border="0"/>$l_
  40.    <!-- don't remove this empty line or leading whitespace. Flag spacing depends on it. -->
  41. </span><!--menuitem-->
  42. !endif
  43. !next i
  44. <div class="itemsep"></div><!--itemsep-->
  45. </div><!--wimsmenu-->
  46. <div class="wimsmenu">
  47. !!!if $gotcnt<=0 and $s_keywords=$empty
  48. <span class="menuitem">$V_cls</span><!--menuitem-->
  49. <span class="menuitem">
  50. !read ./adm/oneitem.phtml n_participant,1,module=adm/class/classes&type=participant
  51. </span><!--menuitem-->
  52. <span class="menuitem">
  53. !read ./adm/oneitem.phtml n_supervisor,1,module=adm/class/classes&type=supervisor
  54. !! !href module=adm/class/classes&type=supervisor $im "gifs/themes/$wims_theme_image/n_supervisor.gif" alt="V_sup" title="V_sup"> $V_sup
  55. </span><!--menuitem-->
  56. <span class="menuitem">
  57. !read ./adm/oneitem.phtml n_example,1,module=adm/class/classes&type=example
  58. !! !href module=adm/class/classes&type=example $im "gifs/themes/$wims_theme_image/n_example.gif" alt="n_example" title="n_example"> $V_ex
  59. </span><!--menuitem-->
  60. !!!endif
  61. !if $class_cas_auth!=$empty
  62.  <span class="menuitem">
  63. !!FIXME this line does not work
  64. !! !read adm/class/cas_logout
  65. !!if there is a number session, there is an error message
  66.  !set url = $wims_ref_name?module=home
  67.  <a href="$class_cas_auth/logout?service=$url">$wims_name_cas_logout</a>
  68. </span><!--menuitem-->
  69. !endif
  70. </div><!--wimsmenu-->
  71. <br class="spacer"/>
  72. </div>
  73. <div id="wimsbodybox">
  74. <div id="wimspagebox">
  75. <div class="wimsbody">
  76. <div id="wims_title">
  77. <h1 class="wims_title">
  78.  $V_title
  79. </h1>
  80. <h2 class="wims_subtitle">
  81. (WIMS) $N_at <a href="/">$httpd_HTTP_HOST</a>
  82. </h2>
  83. </div><!--end wimstitle-->
  84.  
  85. !if $wims_ismanager!=0
  86. <p class="wimscenter">
  87. !href module=adm/manage $N_manage
  88. </p>
  89. !endif
  90.  
  91. !read ./form.phtml
  92. !if $s_category=V
  93. !read ./front.phtml
  94. !else
  95. !read ./result.phtml
  96. !endif
  97.  
  98. </div><!--end wimsbody-->
  99. !set wims_show_stat=!tolower $wims_show_stat
  100. </div><!--wimspagebox-->
  101. <div id="wimsmenumodubox">
  102. <div class="wimsmenu">
  103. <div class="menuitem">
  104. !read ./adm/oneitem.phtml mod_new,1,module=adm/new
  105. </div><!--menuitem-->
  106. !if $has_browse=yes
  107. <div class="menuitem">
  108. !read ./adm/oneitem.phtml browse,1,module=adm/browse&$browse_parm
  109. </div><!--menuitem-->
  110. !endif
  111. <div class="menuitem">
  112. !read ./adm/oneitem.phtml sheet,1,cmd=new&module=home&search_keywords=&search_category=S#searchform
  113. </div><!--menuitem-->
  114. <div class="menuitem">
  115. !read ./adm/oneitem.phtml n_example,1,module=adm/class/classes&type=example
  116. </div><!--menuitem-->
  117. <div class="itemsep"></div>
  118. <div class="menuitem">
  119. !read ./adm/oneitem.phtml help,4,module=help/main,help
  120. </div><!--menuitem-->
  121. !!!if $gotcnt<=0 and $s_keywords=$empty
  122. !if $lang=fr
  123. <div class="menuitem">
  124. !read ./adm/oneitem.phtml dochelp,1,cmd=new&module=home&search_keywords=help&search_category=A&search_lang=fr#searchform
  125. </div>
  126. <div class="menuitem">
  127. !read ./adm/oneitem.phtml faq,1,module=help/teacher/faq
  128. </div>
  129. !endif
  130. <div class="menuitem">
  131. !read ./adm/oneitem.phtml doctec,1,module=help/wimsdoc
  132. </div>
  133. <div class="itemsep">$CR_1</div>
  134. <div class="menuitem">
  135. !read ./adm/oneitem.phtml createxo,1,module=adm/createxo
  136. </div><div class="menuitem">
  137. !read ./adm/oneitem.phtml modtool,1,module=adm/modtool
  138. </div>
  139. <div class="menuitem">
  140. !read ./adm/oneitem.phtml quicktool,1,cmd=new&module=adm/quicktool
  141. </div>
  142. <div class="menuitem">
  143. !read ./adm/oneitem.phtml latex2wims,1,cmd=new&module=adm/latex2wims
  144. </div>
  145.  
  146. <div class="itemsep"></div>
  147. <div class="menuitem">
  148.   !read ./adm/oneitem.phtml download,1,module=adm/light&phtml=download.phtml.$lang
  149. </div>  
  150. !if yes isin $wims_show_stat
  151.  <div class="menuitem">
  152. !read ./adm/oneitem.phtml stat,1,module=adm/stat/stat
  153.  </div>
  154.  <div class="menuitem">
  155.  !read ./adm/oneitem.phtml ref,1,module=adm/stat/referer
  156.  </div>
  157. !endif
  158. <div class="itemsep"></div>
  159.  
  160. !!!endif
  161. </div><!--wimsmenu-->
  162. </div><!--wimsmenumodubox-->
  163. <div id="wimsmenubox">
  164. <div class="wimsmenu">
  165. <span class="menuitem">
  166. !read ./adm/oneitem.phtml pref,1,module=adm/light&phtml=useropts.phtml.$lang
  167. </span><!-- menuitem-->
  168. <span class="menuitem">
  169. !read ./adm/oneitem.phtml mirror,1,module=adm/light&phtml=mirror.phtml.$lang
  170. </span><!-- menuitem-->
  171. <span class="menuitem">
  172. !read ./adm/oneitem.phtml forum,1,module=adm/forum/forum
  173. </span><!-- menuitem-->
  174. !if $wims_theme_icon!= and $wims_theme_icon!=default
  175. <span class="menuitem">
  176. !read ./adm/oneitem.phtml iconabout,1,module=adm/light&phtml=iconabout.phtml
  177. </span><!-- menuitem-->
  178. !endif
  179. <span class="menuitem">
  180. !read ./adm/oneitem.phtml cgu,1,module=adm/light&phtml=cgu.phtml
  181. </span><!-- menuitem-->
  182. </div><!--wimsmenu-->
  183. </div><!--wimsmenubox-->
  184. </div><!--wimsbodybox-->
  185. <div id="wimstailbox">
  186. <div class="wimstail">
  187. <div class="tailitem">WIMS-$wims_version $E_comp $wims_version_date.</div>
  188. <div class="tailitem">$E_manager
  189. !mailurl $wims_site_manager\
  190. WIMS: $httpd_HTTP_HOST
  191. .</div><!--tailitem-->
  192. !robottrap
  193. </div><!--wimstail-->
  194. </div><!--wimstailbox-->
  195.  
  196.  
  197. </div><!--wimsfrontpage-->
  198.  
  199.  
  200. </body>
  201. </html>
  202. <!-- end of $wims_theme/visitor.phtml -->
  203.