Subversion Repositories wimsdev

Rev

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

  1. !if ~ notin $mod
  2.  <p>
  3.  <span class="wims_warning">$wims_name_warning</span>.
  4.  $name_simpl_address: <span class="tt wims_fname">$mod</span>.
  5.  !href cmd=reply&jobreq=move&original=devel/$auth_login/$mod $name_updateadress
  6. </p>
  7. !endif
  8.  
  9. !read lang/names.phtml.$modu_lang
  10.  
  11. !set doctest1=!module category devel/$auth_login/$mod
  12.  
  13. <a id="optiontestLink"
  14.    class="wims_button"
  15.    onclick="jQuery('#optiontest').slideToggle();"
  16.    style="float:right;margin:1em;">$name_optiontest</a>
  17. <fieldset id="optiontest" style="display:none;border:1px ridge black;">
  18. <legend>$name_optiontest</legend>
  19.   !form reply
  20.     <ul>
  21.      <li>$name_formule:
  22.       !formradio useropts1 list 0,1,2 prompt $name_useropts1
  23.      </li><li>
  24.       $name_useropts2:
  25.       !formradio useropts2 list 0,1 prompt $wims_name_no,$wims_name_yes
  26.      </li><li>
  27.       $name_fonte:
  28.       !formradio useropts3 list 0,1 prompt $name_useropts3
  29.      </li><li>
  30.       $name_useropts4:
  31.       !formradio useropts4 list 0,1,2
  32.      </li>
  33.     </ul>
  34.     <div class="wimscenter">
  35.     <input type="submit"  />
  36.     </div>
  37.   !formend
  38. </fieldset>
  39.  
  40. !read adm/validation/validate.phtml
  41. <br class="spacer" />
  42. !if document notin $doctest1
  43.  $name_your_module
  44.  <div class="center"><span class="wims_mod_title">$title</span> (<span class="wims_mod_desc">$description</span>)
  45.  <span class="small">
  46.  !href cmd=reply&jobreq=index $mod
  47.  </span>
  48.  </div>
  49.   !if oef isin $category
  50.     $name_your_module_OEF
  51.   !endif
  52.  $name_file2.
  53.   !if oef isin $category
  54.    !set wims_ref_class=wims_button_help
  55.    !href cmd=help&special_parm=modtooloef $wims_name_help
  56.   !endif
  57.  !else
  58. !!the script src2def should be launched for oefexercises also, but I do not see
  59. !! the need for the moment
  60.   $wims_name_doc <span class="wims_mod_title">$title</span> (<span class="wims_mod_desc">$description</span>)
  61.   <span class="small">
  62.  !href cmd=reply&jobreq=index $mod
  63.  </span>:
  64.   $name_gestion
  65. !endif
  66. !set table_cellpadding=1
  67. !reset table_center
  68. !set table_spacer=yes
  69.  
  70. !set table_header=!replace internal <> by in $table_header
  71. !set table_end=!replace internal </> by in $table_end
  72. !if oef notin $category
  73.  $table_header
  74.  $table_hdtr
  75.   <th scope="col">$wims_name_name</th><th scope="col">$wims_name_action</th><th scope="col">$wims_name_Explanations</th>
  76. </tr>
  77.  !for f in $files
  78.   $table_tr
  79.   <td style="text-align:left;" class="wims_fname nowrap">$f</td>
  80.   <td>
  81.   !set wims_ref_class=wims_button
  82.   !href cmd=reply&jobreq=showfile&fname=$f $wims_name_Show
  83.   $
  84.   !set wims_ref_class=wims_button
  85.   !href cmd=reply&jobreq=edfile&fname=$f $wims_name_change
  86.   $
  87.   !set wims_ref_class=wims_button wims_warning
  88.   !href cmd=reply&jobreq=delfile&fname=$f $wims_name_erase
  89.   !if oef isin $doctest1 and ../src/ isin ../$f and .oef/.. isin $f/..
  90.    !set f_=!translate internal / to , in $f
  91.    !set f_=!item -1 of $f_
  92.    !set f_=!replace internal .oef.. by in $f_..
  93.    $
  94.    !set wims_ref_class=wims_button
  95.    !href  module=adm/createxo&catmodule=devel/$auth_login/$mod&existing=$f_ Createxo
  96.   !endif
  97. </td><td>
  98.     !set t_=!translate . to _ in $f
  99.     !set t_=!translate / to _ in $t_
  100.     !set t_=$($t_)
  101.     !default t_=--
  102.     $t_
  103.   </td></tr>
  104.  !next f
  105. $table_end
  106. !else oef module
  107.   !read adm/tabscript modtool
  108.   <div id="widget_modtool">
  109.   <ul id="modtool_summary">
  110.   !for tfile in other,src,cpp,help,lang,phtml
  111.     !if $(files$tfile) !=$empty
  112.       <li><a href="#modtool$tfile">$(name_files_$tfile)</a></li>
  113.     !endif
  114.   !next
  115.   </ul>
  116.   !for tfile in other,src,cpp,help,lang,phtml
  117.     !if $(files$tfile)!=$empty
  118.       <div id="modtool$tfile">
  119.        $table_header
  120.        <caption>$(name_files_$tfile)</caption>
  121.        $table_hdtr
  122.        <th scope="col">$wims_name_name</th><th scope="col">$wims_name_action</th><th scope="col">$wims_name_Explanations</th></tr>
  123.       !for f in $(files$tfile)
  124.          $table_tr
  125.         <td style="text-align:left;" class="wims_fname nowrap">$f</td>
  126.         <td style="text-align:center;">
  127.          !set wims_ref_class=wims_button
  128.          !href cmd=reply&jobreq=showfile&fname=$f $wims_name_Show
  129.   $
  130.          !set wims_ref_class=wims_button
  131.   !href cmd=reply&jobreq=edfile&fname=$f $wims_name_change
  132.   $
  133.         !set wims_ref_class=wims_button wims_warning
  134.         !href cmd=reply&jobreq=delfile&fname=$f $wims_name_erase
  135.         !if oef isin $doctest1 and ../src/ isin ../$f and .oef/.. isin $f/..
  136.           !set f_=!translate internal / to , in $f
  137.           !set f_=!item -1 of $f_
  138.           !set f_=!replace internal .oef.. by in $f_..
  139.    $
  140.           !set wims_ref_class=wims_button
  141.           !href module=adm/createxo&catmodule=devel/$auth_login/$mod&existing=$f_ Createxo
  142.         !endif
  143. </td><td>
  144.         !set t_=!translate . to _ in $f
  145.         !set t_=!translate / to _ in $t_
  146.         !set t_=$($t_)
  147.         !default t_=--
  148.         $t_
  149.   </td></tr>
  150.       !next f
  151.     $table_end
  152.     <span class="text_icon help">
  153.     $(name_help_addfile_$tfile) $name_help_addfile
  154.     </span>
  155.   </div>
  156.   !endif
  157.  !next tfile
  158. !endif
  159.  
  160. !form reply
  161.   <input type="hidden" name="jobreq" value="edfile" />
  162.   $name_addfile:
  163.   <input size="20" name="fname" value="$lastfname" />
  164.   <input type="submit" value="$wims_name_tosave" />
  165. !formend
  166. !reset fname
  167.