Rev 16023 | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1068 | bpr | 1 | |
| 973 | obado | 2 | !!************** headmenu.phtml **************** |
| 16 | reyssat | 3 | |
| 973 | obado | 4 | !! This File creates a set of 1 to 11 links, to put in the head menu of Wims, for anonymous users. |
| 5 | |||
| 6 | !! ********************************************** |
||
| 2995 | bpr | 7 | !if robot isin $session or $wims_mode=popup or _check isin $session or $module=help/main.$lang |
| 12515 | bpr | 8 | !exit |
| 16 | reyssat | 9 | !endif |
| 10 | |||
| 973 | obado | 11 | !! la variable window=embeded est utilisee dans le cadre d'un appel depuis le lecteur exportable |
| 12 | !! window=embeded is used for embedded players |
||
| 13 | !if embededwindow isin $module_init_parm |
||
| 12515 | bpr | 14 | !set window=embeded |
| 973 | obado | 15 | !endif |
| 11279 | bpr | 16 | !! Don't succeed to use script/language for the moment |
| 17 | !! translated. FIXME |
||
| 18 | !!!read language name.phtml |
||
| 19 | !read name.phtml.$lang |
||
| 11469 | bpr | 20 | !read themes/_lang/name.phtml.$lang |
| 11279 | bpr | 21 | !read themes/$wims_theme/lang/name.phtml.$lang |
| 22 | !if $class_theme!=$empty |
||
| 23 | !read themes/$class_theme/lang/$(script_file).$modu_lang |
||
| 24 | !endif |
||
| 25 | !if $theme_class!=$empty |
||
| 26 | !read themes/$theme_class/lang/$(script_file).$modu_lang |
||
| 27 | !endif |
||
| 973 | obado | 28 | |
| 16 | reyssat | 29 | !default wims_name_bgcolor=$wims_ref_bgcolor |
| 2976 | bpr | 30 | !if $wims_hm!=$empty or $wims_lightpopup=yes |
| 12515 | bpr | 31 | !goto defend |
| 16 | reyssat | 32 | !endif |
| 1076 | bpr | 33 | !if $job=print or $printing=yes |
| 12515 | bpr | 34 | !goto defend |
| 1076 | bpr | 35 | !endif |
| 9710 | bpr | 36 | !reset 1_ home_ |
| 973 | obado | 37 | |
| 38 | !!********* Link #1 : "Close Window" or "Home" |
||
| 2233 | bpr | 39 | |
| 16 | reyssat | 40 | !if _ isin $wims_subsession |
| 12515 | bpr | 41 | !set 1_=!append line back,3,window.close() to $1_ |
| 16 | reyssat | 42 | !else |
| 12515 | bpr | 43 | !if $window != embeded and $module!=home |
| 44 | !set home_=!append line home,1,session=$wims_session.1 to $home_ |
||
| 45 | !endif |
||
| 16 | reyssat | 46 | !endif |
| 973 | obado | 47 | |
| 48 | !!********* Link #2 : "Quit" |
||
| 49 | !if $httpd_HTTP_REFERER!=$empty and $window != embeded |
||
| 12515 | bpr | 50 | !set 1_=!append line exit,2,$httpd_HTTP_REFERER to $1_ |
| 16 | reyssat | 51 | !endif |
| 973 | obado | 52 | |
| 53 | !!********* Link #3 : "Work" |
||
| 4784 | guerimand | 54 | !!if $cmd=intro |
| 55 | !! !set 1_=!append line work,1,module=$module&cmd=new to $1_ |
||
| 56 | !!endif |
||
| 973 | obado | 57 | |
| 58 | !!********* Link #4 : "Sheet" |
||
| 16 | reyssat | 59 | !if $wims_sheet>0 or P isin $wims_sheet |
| 16023 | bpr | 60 | !set wims_ariane=!append line sheet,1,module=adm/sheet&sh=$wims_sheet#ex$wims_exo to $wims_ariane |
| 61 | !set wims_ariane_self=no |
||
| 62 | !else |
||
| 63 | !if adm/sheet isin $module |
||
| 64 | !set wims_ariane=!append line sheet,8 to $wims_ariane |
||
| 65 | !set wims_ariane_self=no |
||
| 66 | !endif |
||
| 16 | reyssat | 67 | !endif |
| 973 | obado | 68 | |
| 69 | !!********* Link #5 : "Intro" |
||
| 16023 | bpr | 70 | !if $window != embeded and $module_has_intro=yes and $cmd notwordof intro help and $worksheet=$empty |
| 10175 | bpr | 71 | !if $wims_theme!=default |
| 72 | !set wims_ariane=!append line intro,1,module=$module&cmd=intro&special_parm=$special_parm&special_parm2=$special_parm2&special_parm3=$special_parm3&special_parm4=$special_parm4 to $wims_ariane |
||
| 73 | !set wims_ariane_self=no |
||
| 74 | !else |
||
| 75 | !set 1_=!append line intro,1,module=$module&cmd=intro&special_parm=$special_parm&special_parm2=$special_parm2&special_parm3=$special_parm3&special_parm4=$special_parm4 to $1_ |
||
| 76 | !endif |
||
| 16 | reyssat | 77 | !endif |
| 973 | obado | 78 | !!********* Link #6 : "References" |
| 1068 | bpr | 79 | !if _ notin $wims_session and adm/ notin $module and home notin $module\ |
| 14338 | bpr | 80 | and $cmd notwordof help ref |
| 2233 | bpr | 81 | !! !set 1_=!append line reference,4,module=$module&cmd=ref&special_parm=$cmd,ref to $1_ |
| 16 | reyssat | 82 | !endif |
| 973 | obado | 83 | |
| 84 | !!********* Link #7 : "Help" |
||
| 9916 | bpr | 85 | !if $module_has_help=yes and $cmd notwordof intro help |
| 12515 | bpr | 86 | !if $module_help=nopop |
| 87 | !set 1_=!append line help,1,module=$module&cmd=help&special_parm=$wims_help_parm,mhelp to $1_ |
||
| 88 | !else |
||
| 89 | !set 1_=!append line help,4,module=$module&cmd=help&special_parm=$wims_help_parm,mhelp to $1_ |
||
| 90 | !endif |
||
| 16 | reyssat | 91 | !endif |
| 973 | obado | 92 | |
| 93 | !!********* Link #8 : "Resume" |
||
| 16 | reyssat | 94 | !if $cmd=help or $cmd=hint |
| 12515 | bpr | 95 | !if _test isin $session |
| 96 | !set 1_=!append line resume,1,cmd=resume to $1_ |
||
| 97 | !else |
||
| 10355 | bpr | 98 | !if _help isin $session |
| 99 | !set 1_=!append line back2,1,cmd=resume to $1_ |
||
| 100 | !endif |
||
| 12515 | bpr | 101 | !endif |
| 102 | !if $module_category!=adm |
||
| 103 | !set wims_ariane=!append line resume,1,cmd=resume\ |
||
| 10259 | bpr | 104 | to $wims_ariane |
| 12515 | bpr | 105 | !set wims_ariane_self=no |
| 106 | !endif |
||
| 16 | reyssat | 107 | !endif |
| 1712 | bpr | 108 | |
| 973 | obado | 109 | !!********* Link #9 : "About" |
| 110 | !if $window != embeded \ |
||
| 14338 | bpr | 111 | and $module_has_about=yes \ |
| 112 | and _tool notin $module and home notin $module \ |
||
| 113 | and $cmd notwordof help and _exam notin $session\ |
||
| 114 | and (adm notin $module or $wims_user iswordof supervisor developper or $wims_user=$empty) |
||
| 115 | !set 1_=!append line about,4,module=$module&cmd=help&special_parm=about,mhelp,,$wims_name_module_infos ($module) to $1_ |
||
| 16 | reyssat | 116 | !endif |
| 973 | obado | 117 | |
| 118 | !!********* Link #10 : "WIMS Help" |
||
| 1237 | bpr | 119 | !if $module!=home and _exam notin $session and $wims_version_theme=0 |
| 12515 | bpr | 120 | !set 1_=!append line whelp,4,module=help/main&$wims_helper,help to $1_ |
| 1068 | bpr | 121 | !endif |
| 973 | obado | 122 | |
| 123 | !!********* Link #11 : "Other Languages" |
||
| 16 | reyssat | 124 | !if $wims_ref_otherlangs=yes and $wims_otherlangs!=$empty |
| 12515 | bpr | 125 | !if $wims_light_module=yes |
| 126 | !set wims_name_pagebase=!char 1 to -4 of $phtml |
||
| 127 | !for i_ in $wims_headmenu_languages |
||
| 17170 | bpr | 128 | !set 1_=!append line $i_,0,<a href="wims.cgi?session=$session&+lang=$i_&+useropts=$useropts&+module=$module&+phtml=$wims_name_pagebase.$i_&+parm1=$parm1&+parm2=$parm2&+parm3=$parm3&+parm4=$parm4&+parm5=$parm5"><img src="gifs/$i_.gif" border="1" alt="$i_"></a> to $1_ |
| 12515 | bpr | 129 | !next i_ |
| 130 | !else |
||
| 131 | !set wims_name_mbase=!char 1 to -4 of $module |
||
| 132 | !for i_ in $wims_otherlangs |
||
| 17170 | bpr | 133 | !set 1_=!append line $i_,0,<a href="wims.cgi?session=$session&+lang=$i_&+useropts=$useropts&+module=$wims_name_mbase"><img src="gifs/$i_.gif" border=1 alt="$i_"></a> to $1_ |
| 12515 | bpr | 134 | !next i_ |
| 135 | !endif |
||
| 16 | reyssat | 136 | !endif |
| 10274 | bpr | 137 | !if $wims_user$wims_developer!=$empty and _ notin $session |
| 9810 | bpr | 138 | !set wims_link_close=!append line visitor,1,cmd=close&module=home\ |
| 139 | to $wims_link_close |
||
| 140 | !endif |
||
| 141 | |||
| 16 | reyssat | 142 | !set wims_hm=$1_ |
| 9710 | bpr | 143 | !set wims_home_items=$home_ |
| 16 | reyssat | 144 | :defend |
| 145 | !set wims_hm_cnt=!linecnt $wims_hm |
||
| 9710 | bpr | 146 | !set wims_home_items_cnt=!linecnt $wims_home_items |
| 9810 | bpr | 147 | !set wims_link_close_cnt=!linecnt $wims_link_close |
| 16 | reyssat | 148 | !read themes.phtml header |
| 1140 | bpr | 149 | !if $module=home |
| 9282 | obado | 150 | <div class="wimstrap"> |
| 1140 | bpr | 151 | !else |
| 9282 | obado | 152 | <div class="wimsbody"> |
| 1140 | bpr | 153 | !endif |
| 13573 | obado | 154 | <!-- END of html/headmenu --> |