Subversion Repositories wimsdev

Rev

Rev 11425 | Rev 14065 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1882 bpr 1
!read ./tabletheme
9762 bpr 2
!if $module=home or $module=
3
 !goto home
4
!endif
16 reyssat 5
!default module_about_bgcolor=$wims_ref_bgcolor
6
!set module_language=!trim $module_language
1882 bpr 7
!set module_language=$lang
973 obado 8
!set Lang_name_nl=Nederlands
9
!set Lang_name_en=English
10
!set Lang_name_fr=Française
11
!set Lang_name_de=Deutch
12
!set Lang_name_it=Italiano
13
!set Lang_name_ca=Català
14
!set Lang_name_es=castellano
15
!set Lang_name_tw=¤¤¤å(Big5 ½X) - Chinese big5
16
!set Lang_name_cn=ÖÐÎÄ - Chinese gb
17
!set Lang_name_si=slovenski
18
 
6323 czzmrn 19
!for v_a in description,translator,translator_address,title,keywords
2233 bpr 20
  !set mod_u=$(module_$(v_a)_$lang)
21
  !if $mod_u!=$empty
22
   !set module_$(v_a)=$mod_u
23
  !endif
24
!next
9759 bpr 25
 
12183 bpr 26
!if $module_require!=$empty
27
  module_about_require=<ul>
28
  !for s in $module_require
29
    !if $s iswordof pari maxima povray m2 octave graphviz yacas
30
      !if $wims_ismanager!=0
31
        sabout=!exec $s about
32
      !else
33
        sabout=$s
34
      !endif
35
      module_about_require=$module_about_require\
36
<li>$sabout</li>
37
    !endif
38
    !if $s iswordof insplot
39
      module_about_require=$module_about_require\
40
<li>gnuplot</li>
41
    !endif
42
  !next s
43
  module_about_require=$module_about_require</ul>
44
!endif
45
 
4318 bpr 46
!read namewriting.phtml $module_author
4900 bpr 47
!set module_address=!replace internal ; by , in $module_address
48
!set module_au=!mailurl $(module_address[1]) $(script_out[1])\
16 reyssat 49
WIMS $module_title [$module_language]
9759 bpr 50
!default module_au=$(script_out[1])
4318 bpr 51
!set script_out=!replace internal ; by , in $(script_out[2..-1])
52
!if $script_out!=$empty
4900 bpr 53
  !set tmp_cnt=!itemcnt $script_out
54
  !for tmp =1 to $tmp_cnt
55
    !if $(module_address[$tmp+1])!=
56
    !set tmp=!mailurl $(module_address[$tmp+1]) $(script_out[$tmp])\
57
WIMS $module_title [$module_language]
9759 bpr 58
    !else
4900 bpr 59
      !set tmp=$(script_out[$tmp])
60
    !endif
61
    !set module_au=$module_au, $tmp
62
  !next
4318 bpr 63
!endif
4922 bpr 64
!read namewriting.phtml $module_translator
65
!set module_translator=$(script_out[1])
66
!set wims_homeref_translator_num=$script_cnt
67
!set module_translator_address=!replace internal ; by , in $module_translator_address
68
!for ad=1 to $wims_homeref_translator_num
69
   !set module_tr_=!mailurl $(module_translator_address[$ad]) $(module_translator[$ad])\
70
WIMS $module_title [$module_language]
71
   !set module_tr=!append line trans,0,$wims_name_translatedby $(module_tr_) to $module_tr
12183 bpr 72
!next
16 reyssat 73
!set module_tr=!mailurl $module_translator_address $module_translator\
2607 bpr 74
WIMS $module_title [$lang]
16 reyssat 75
 
9759 bpr 76
!!******** PERMALINK / EMBEDDABLE PLAYER ADD
973 obado 77
 
1216 obado 78
!set current_module=!replace / by , in $module
79
!set module_path= !item 1 of $current_module
973 obado 80
 
81
!if $module_init_parm == $empty
82
	!set permalien=$wims_ref_name?module=$module
3291 bpr 83
	!set permalien1=$wims_ref_name?module=adm/raw&amp;emod=$module
973 obado 84
!else
85
	!set exolink=$wims_ref_name?module=$module&amp;cmd=new&amp;exo=$thisexo
86
	!set configlink=$wims_ref_name?module=$module&amp;cmd=new&amp;$module_init_parm
3291 bpr 87
	!set module_init_parm1=!replace internal &amp;+ by ; in $module_init_parm
88
	!set module_init_parm1=!replace internal &amp; by ; in $module_init_parm1
89
	!set module_init_parm1=!replace internal &+ by ; in $module_init_parm1
90
	!set module_init_parm1=!replace internal & by ; in $module_init_parm1
91
	!set module_init_parm1=cmd=new;$module_init_parm1
92
	!set configlink1=$wims_ref_name?module=adm/raw&amp;job=lightpopup&amp;emod=$module&amp;&parm=$module_init_parm1&option=noabout
973 obado 93
!endif
94
 
1252 bpr 95
!if _exam notin $session and ($module_path notitemof adm,classes or adm/new isin $module)
1216 obado 96
 
5707 bpr 97
	!set permalink_tr=$table_tr<th>$$$$wims_name_permalink <br/><small>($$$$wims_name_Link_for_bookmark)</small></th><td><a href="$wims_ref_name?module=$module">$wims_ref_name?module=$module</a></td></tr>
1216 obado 98
 
5707 bpr 99
	!set embeddable_tr=$table_tr<th>$$$$wims_name_embeddable<br/> <small>($$$$wims_name_display1)</small> </th>\
11425 bpr 100
   <td><textarea style="vertical-align:middle" rows="3" cols="50" readonly="readonly" id="wims_embed_textarea" >&lt;iframe src="$permalien&amp;embededwindow=true" width="100%" height="100%"&gt;&lt;/iframe&gt;</textarea>\
101
   <textarea style="vertical-align:middle" rows="3" cols="50" readonly="readonly" id="wims_embed_textarea1" >&lt;iframe src="$permalien&amp;module=adm/raw&job=lightpopup&amp;emod=$permalien" width="100%" height="100%"&gt;&lt;/iframe&gt;</textarea>\
3291 bpr 102
   </td></tr>
973 obado 103
!endif
104
 
1216 obado 105
!!******** END OF PERMALINK / EMBEDDABLE PLAYER ADD
2172 bpr 106
  !if $module_tr!=$empty and $(module_translator_address)!=$empty
12183 bpr 107
    !set module_about_tr=!nosubst $table_tr<th>$$wims_name_Translator</th><td>$module_tr</td></tr>
16 reyssat 108
  !endif
2607 bpr 109
  !if $(module_maintainer)!=$empty
110
    !set module_about_mt=!mailurl $module_maintainer_address $module_maintainer\
111
WIMS $module_title [$module_language]
112
    !set module_about_maintainer=!nosubst $table_tr<th>$$wims_name_Maintainer</th><td>$module_about_mt</td></tr>
113
  !endif
2830 bpr 114
  !if $module_data!=$empty
5707 bpr 115
    !set module_data_tr=!nosubst $table_tr<th>$$wims_name_datamodule</th><td>$module_data</td></tr>
2830 bpr 116
  !endif
6000 bpr 117
  !reset table_center
2172 bpr 118
  !set module_about=$module_about \
5707 bpr 119
   $$wims_name_This_is_a_module $$wims_name_WIMS_subtitle (<a href="$wims_ref_name?module=help/main.fr&amp;chapter=1&amp;open=1_intro" target="_blank" title="Web Interactive Multipurpose Server">WIMS</a>).<br/>\
12183 bpr 120
   <p>$$wims_name_require</p>$module_about_require\
1882 bpr 121
   $table_header\
973 obado 122
   <caption>$$wims_name_module_infos</caption>\
1882 bpr 123
   $table_tr<th>$$wims_name_name</th><td>$module_title</td></tr>\
124
   $table_tr<th>$$wims_name_Address</th><td>$module</td></tr>\
1216 obado 125
   $permalink_tr\
973 obado 126
   $embeddable_tr\
2172 bpr 127
   $table_tr<th>$$wims_name_Description</th><td>$module_description</td></tr>\
1882 bpr 128
   $table_tr<th>$$wims_name_Levels</th><td>$module_level</td></tr>\
129
   $table_tr<th>$$wims_name_Keywords</th><td>$module_keywords</td></tr>\
130
   $table_tr<th>$$wims_name_Domain</th><td>$module_domain</td></tr>\
131
   $table_tr<th>$$wims_name_Version</th><td>$module_version</td></tr>\
132
   $table_tr<th>$$wims_name_Required_WIMS_version</th><td>$m_ge $module_wims_version</td></tr>\
133
   $table_tr<th>$$wims_name_Language</th><td>$$Lang_name_$module_language</td></tr>\
134
   $table_tr<th>$$wims_name_Author</th><td>$module_au</td></tr>\
2607 bpr 135
   $module_about_maintainer\
16 reyssat 136
   $module_about_tr\
1882 bpr 137
   $table_tr<th>$$wims_name_Copyright</th><td>$module_copyright</td></tr>\
2830 bpr 138
   $module_data_tr\
5707 bpr 139
   $table_end\
9759 bpr 140
 
9762 bpr 141
:home