<!-- begin of $wims_theme/visitor.phtml -->
!! WIMS main entrance page theme.
!nocache
!if $module!=home
!endif
!set wims_name_browse=$N_browse2
!set home_theme=yes
!set table_colors=$wims_ref_bgcolor,$wims_ref_bgcolor
</div>
!!!set wims_headmenu_colcnt=5
<div id="wimsfrontpage">
<div id="wimstopbox">
!if $site_logo!=$empty
<div id="wimslogoleft">
<a href="$site_logolink" target="wims_external"><img src="$site_logo" border="0" alt="logo"/></a>
</div>
!endif
<div id="wimslogo">
!href module=home&special_parm=logo <img src="gifs/logo.gif" border="0" alt="WIMS logo"/>
</div>
<div class="wimsmenu">
!for i=1 to $wims_language_cnt
!set l=!word $i of $wims_site_languages
!if $l!=$lang
!if $wims_language_cnt>2 and $wims_language_cnt<6
!set l_=<small>$(lang_name_$l)</small>
!else
!if $wims_language_cnt<6
!set l_=$(lang_name_$l)
!else
!endif
!endif
<span class="menuitem">
!href lang=$l&session=$wims_session.1&module=$module <img src="gifs/$l.gif" alt="$(Lang_name_$l)" height="16" border="0"/>$l_
<!-- don't remove this empty line or leading whitespace. Flag spacing depends on it. -->
</span><!--menuitem-->
!endif
!next i
<div class="itemsep"></div><!--itemsep-->
</div><!--wimsmenu-->
<div class="wimsmenu">
!!!if $gotcnt<=0 and $s_keywords=$empty
<span class="menuitem">$V_cls</span><!--menuitem-->
<span class="menuitem">
!read ./adm/oneitem.phtml n_participant,1,module=adm/class/classes&type=participant
</span><!--menuitem-->
<span class="menuitem">
!read ./adm/oneitem.phtml n_supervisor,1,module=adm/class/classes&type=supervisor
!! !href module=adm/class/classes&type=supervisor $im "gifs/themes/$wims_theme_image/n_supervisor.gif" alt="V_sup" title="V_sup"> $V_sup
</span><!--menuitem-->
<span class="menuitem">
!read ./adm/oneitem.phtml n_example,1,module=adm/class/classes&type=example
!! !href module=adm/class/classes&type=example $im "gifs/themes/$wims_theme_image/n_example.gif" alt="n_example" title="n_example"> $V_ex
</span><!--menuitem-->
!!!endif
!if $class_cas_auth!=$empty
<span class="menuitem">
!!FIXME this line does not work
!! !read adm/class/cas_logout
!!if there is a number session, there is an error message
!set url = $wims_ref_name?module=home
<a href="$class_cas_auth/logout?service=$url">$wims_name_cas_logout</a>
</span><!--menuitem-->
!endif
</div><!--wimsmenu-->
<br class="spacer"/>
</div>
<div id="wimsbodybox">
<div id="wimspagebox">
<div class="wimsbody">
<div id="wims_title">
<h1 class="wims_title">
$V_title
</h1>
<h2 class="wims_subtitle">
(WIMS) $N_at <a href="/">$httpd_HTTP_HOST</a>
</h2>
</div><!--end wimstitle-->
!if $wims_ismanager!=0
<p class="wimscenter">
!href module=adm/manage $N_manage
</p>
!endif
!read ./form.phtml
!if $s_category=V
!read ./front.phtml
!else
!read ./result.phtml
!endif
</div><!--end wimsbody-->
!set wims_show_stat=!tolower $wims_show_stat
</div><!--wimspagebox-->
<div id="wimsmenumodubox">
<div class="wimsmenu">
<div class="menuitem">
!read ./adm/oneitem.phtml mod_new,1,module=adm/new
</div><!--menuitem-->
!if $has_browse=yes
<div class="menuitem">
!read ./adm/oneitem.phtml browse,1,module=adm/browse&$browse_parm
</div><!--menuitem-->
!endif
<div class="menuitem">
!read ./adm/oneitem.phtml sheet,1,cmd=new&module=home&search_keywords=&search_category=S#searchform
</div><!--menuitem-->
<div class="menuitem">
!read ./adm/oneitem.phtml n_example,1,module=adm/class/classes&type=example
</div><!--menuitem-->
<div class="itemsep"></div>
<div class="menuitem">
!read ./adm/oneitem.phtml help,4,module=help/main,help
</div><!--menuitem-->
!!!if $gotcnt<=0 and $s_keywords=$empty
!if $lang=fr
<div class="menuitem">
!read ./adm/oneitem.phtml dochelp,1,cmd=new&module=home&search_keywords=help&search_category=A&search_lang=fr#searchform
</div>
<div class="menuitem">
!read ./adm/oneitem.phtml faq,1,module=help/teacher/faq
</div>
!endif
<div class="menuitem">
!read ./adm/oneitem.phtml doctec,1,module=help/wimsdoc
</div>
<div class="itemsep">$CR_1</div>
<div class="menuitem">
!read ./adm/oneitem.phtml createxo,1,module=adm/createxo
</div><div class="menuitem">
!read ./adm/oneitem.phtml modtool,1,module=adm/modtool
</div>
<div class="menuitem">
!read ./adm/oneitem.phtml quicktool,1,cmd=new&module=adm/quicktool
</div>
<div class="menuitem">
!read ./adm/oneitem.phtml latex2wims,1,cmd=new&module=adm/latex2wims
</div>
<div class="itemsep"></div>
<div class="menuitem">
!read ./adm/oneitem.phtml download,1,module=adm/light&phtml=download.phtml.$lang
</div>
!if yes isin $wims_show_stat
<div class="menuitem">
!read ./adm/oneitem.phtml stat,1,module=adm/stat/stat
</div>
<div class="menuitem">
!read ./adm/oneitem.phtml ref,1,module=adm/stat/referer
</div>
!endif
<div class="itemsep"></div>
!!!endif
</div><!--wimsmenu-->
</div><!--wimsmenumodubox-->
<div id="wimsmenubox">
<div class="wimsmenu">
<span class="menuitem">
!read ./adm/oneitem.phtml pref,1,module=adm/light&phtml=useropts.phtml.$lang
</span><!-- menuitem-->
<span class="menuitem">
!read ./adm/oneitem.phtml mirror,1,module=adm/light&phtml=mirror.phtml.$lang
</span><!-- menuitem-->
<span class="menuitem">
!read ./adm/oneitem.phtml forum,1,module=adm/forum/forum
</span><!-- menuitem-->
!if $wims_theme_icon!= and $wims_theme_icon!=default
<span class="menuitem">
!read ./adm/oneitem.phtml iconabout,1,module=adm/light&phtml=iconabout.phtml
</span><!-- menuitem-->
!endif
<span class="menuitem">
!read ./adm/oneitem.phtml cgu,1,module=adm/light&phtml=cgu.phtml
</span><!-- menuitem-->
</div><!--wimsmenu-->
</div><!--wimsmenubox-->
</div><!--wimsbodybox-->
<div id="wimstailbox">
<div class="wimstail">
<div class="tailitem">WIMS-$wims_version $E_comp $wims_version_date.</div>
<div class="tailitem">$E_manager
!mailurl $wims_site_manager\
WIMS: $httpd_HTTP_HOST
.</div><!--tailitem-->
!robottrap
</div><!--wimstail-->
</div><!--wimstailbox-->
</div><!--wimsfrontpage-->
</body>
</html>
<!-- end of $wims_theme/visitor.phtml -->