Subversion Repositories wimsdev

Rev

Rev 17170 | Blame | Compare with Previous | Last modification | View Log | RSS feed

!read ./tabletheme
!if $module=home or $module=
  !exit
!endif
!default module_about_bgcolor=$wims_ref_bgcolor
!set module_language=!trim $module_language
!!set module_language=$lang
!set Lang_name_nl=Nederlands
!set Lang_name_en=English
!set Lang_name_fr=Française
!set Lang_name_de=Deutch
!set Lang_name_it=Italiano
!set Lang_name_ca=Català
!set Lang_name_es=castellano
!set Lang_name_tw=¤¤¤å(Big5 ½X) - Chinese big5
!set Lang_name_cn=ÖÐÎÄ - Chinese gb
!set Lang_name_si=slovenski

!for v_a in description,translator,translator_address,title,keywords,translation_language
  !set mod_u=$(module_$(v_a)_$lang)
  !if $mod_u!=$empty
    !set module_$(v_a)=$mod_u
  !endif
!next

!if $module_require!=$empty
  module_about_require=<ul>
  !for s in $module_require
    !if $s iswordof pari maxima povray m2 octave graphviz yacas
      !if $wims_ismanager!=0
        sabout=!exec $s about
      !else
        sabout=$s
      !endif
      module_about_require=$module_about_require\
<li>$sabout</li>
    !endif
    !if $s iswordof insplot
      module_about_require=$module_about_require\
<li>gnuplot</li>
    !endif
  !next s
  module_about_require=$module_about_require</ul>
!endif

!read namewriting.phtml $module_author
!set module_address=!replace internal ; by , in $module_address
!set module_au=!mailurl $(module_address[1]) $(script_out[1])\
WIMS $module_title [$module_language]
!default module_au=$(script_out[1])
!set script_out=!replace internal ; by , in $(script_out[2..-1])
!if $script_out!=$empty
  !set tmp_cnt=!itemcnt $script_out
  !for tmp =1 to $tmp_cnt
    !if $(module_address[$tmp+1])!=
    !set tmp=!mailurl $(module_address[$tmp+1]) $(script_out[$tmp])\
WIMS $module_title [$module_language]
    !else
      !set tmp=$(script_out[$tmp])
    !endif
    !set module_au=$module_au, $tmp
  !next
!endif
!read namewriting.phtml $module_translator
!set module_translator=$(script_out[1])
!set wims_homeref_translator_num=$script_cnt
!set module_translator_address=!replace internal ; by , in $module_translator_address
!for ad=1 to $wims_homeref_translator_num
  !set module_tr_=!mailurl $(module_translator_address[$ad]) $(module_translator[$ad])\
WIMS $module_title [$module_language]
  !set module_tr=!append line trans,0,$wims_name_translatedby $(module_tr_) to $module_tr
!next
!set module_tr=!mailurl $module_translator_address $module_translator\
WIMS $module_title [$lang]

!!******** PERMALINK / EMBEDDABLE PLAYER ADD

!set current_module=!replace / by , in $module
!set module_path= !item 1 of $current_module

!if $module_init_parm == $empty
  !set permalien=$wims_ref_name?module=$module
  !set permalien1=$wims_ref_name?module=adm/raw&amp;emod=$module
  !set configlink1=$wims_ref_name?module=adm/raw&amp;job=lightpopup&amp;emod=$module&amp;&option=noabout
!else
  !set exolink=$wims_ref_name?module=$module&amp;cmd=new&amp;exo=$thisexo
  !set configlink=$wims_ref_name?module=$module&amp;cmd=new&amp;$module_init_parm
  !set module_init_parm1=!replace internal &amp;+ by ; in $module_init_parm
  !set module_init_parm1=!replace internal &amp; by ; in $module_init_parm1
  !set module_init_parm1=!replace internal &+ by ; in $module_init_parm1
  !set module_init_parm1=!replace internal & by ; in $module_init_parm1
  !set module_init_parm1=cmd=new;$module_init_parm1
  !set configlink1=$wims_ref_name?module=adm/raw&amp;job=lightpopup&amp;emod=$module&amp;&parm=$module_init_parm1&option=noabout
!endif

!if _exam notin $session and ($module_path notitemof adm,classes or adm/new isin $module)

  !set permalink_tr=$table_tr<th>$$$$wims_name_permalink <div class="small">($$$$wims_name_Link_for_bookmark)</div></th>\
  <td class="field"><ul>\
    <li><label for="module_link">"Normal" link:</label>\
    <a href="$wims_ref_name?module=$module">$wims_ref_name?module=$module</a></li>\
    <li><label for="light_module_link">"Light" link (without interface):</label><input readonly="readonly" value="$configlink1" style="width:100%" id="light_module_link">\
  </ul></td></tr>

  !set embeddable_tr=$table_tr<th>$$$$wims_name_embeddable <div class="small">($$$$wims_name_display1)</div> </th>\
   <td class="field">\
     <label for="wims_embed_textarea">$$$$wims_name_copy_and_paste $$$$wims_name_the_code $$$$wims_name_on_your_site</label>\
     <!--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-->\
     <textarea style="vertical-align:middle" rows="3" cols="50" readonly="readonly" id="wims_embed_textarea">&lt;iframe src="$permalien&amp;module=adm/raw&job=lightpopup&amp;emod=$permalien" width="100%" height="100%"&gt;&lt;/iframe&gt;</textarea>\
   </td></tr>
!endif

!!******** END OF PERMALINK / EMBEDDABLE PLAYER ADD
!if $module_tr!=$empty and $(module_translator_address)!=$empty
  !set module_about_tr=!nosubst $table_tr<th>$$wims_name_Translator</th><td>$module_tr</td></tr>
!endif

!if $(module_maintainer)!=$empty
  !!hope there is only one maintainer !!!
  !read namewriting.phtml $module_maintainer
  !set module_maintainer_address=!replace internal ; by , in $module_maintainer_address
  !set module_about_mt=!mailurl $(module_maintainer_address[1]) $(script_out[1])\
  WIMS $module_title [$module_language]
  !set module_about_mt=$module_about_mt\
  $module_warning_bug
  !set module_about_maintainer=!nosubst $table_tr<th>$$wims_name_Maintainer</th><td>$module_about_mt</td></tr>
!endif
!if $module_data!=$empty
  !set module_data_tr=!nosubst $table_tr<th>$$wims_name_datamodule</th><td>$module_data</td></tr>
!endif
!reset table_center
!set module_about=$module_about \
 $$wims_name_This_is_a_module $$wims_name_WIMS_subtitle (<a href="$wims_ref_name?module=help/main&amp;chapter=1&amp;open=1_intro" target="_blank" title="Web Interactive Multipurpose Server">WIMS</a>).<br>\
 <p>$$wims_name_require</p>$module_about_require\
 $table_header\
 <caption>$$wims_name_module_infos</caption>\
 $table_tr<th>$$wims_name_name</th><td>$module_title</td></tr>\
 $table_tr<th>$$wims_name_Address</th><td>$module</td></tr>\
 $permalink_tr\
 $embeddable_tr\
 $table_tr<th>$$wims_name_Description</th><td>$module_description</td></tr>\
 $table_tr<th>$$wims_name_Levels</th><td>$module_level</td></tr>\
 $table_tr<th>$$wims_name_Keywords</th><td>$module_keywords</td></tr>\
 $table_tr<th>$$wims_name_Domain</th><td>$module_domain</td></tr>\
 $table_tr<th>$$wims_name_Version</th><td>$module_version</td></tr>\
 $table_tr<th>$$wims_name_Required_WIMS_version</th><td>$m_ge $module_wims_version</td></tr>\
 $table_tr<th>$$wims_name_Language</th><td>$module_language $module_translation_language</td></tr>\
 $table_tr<th>$$wims_name_Author</th><td>$module_au</td></tr>\
 $module_about_maintainer\
 $module_about_tr\
 $table_tr<th>$$wims_name_Copyright</th><td>$module_copyright</td></tr>\
 $module_data_tr\
 $table_end\