Subversion Repositories wimsdev

Rev

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

  1. !!@#language independant
  2. !read lang/names.phtml.$modu_lang
  3. !if $wims_developer!=
  4.  !set wims_menu_items=!append line help,1,cmd=help \
  5.   to $wims_menu_items
  6.  !for EXO in QCM,TRUEFALSE,SELECTWORD, SELECTWORDA, GAP , ORDONNE, COMPOSE , CORRESP , QUIFAITQUOI, TONIC
  7.   !set wims_menu_items=!append line help_$EXO,1,cmd=help&special_parm=$EXO\
  8.  to $wims_menu_items
  9.  !next
  10.  !reset EXO
  11. !else
  12.  !goto intro
  13.  !exit
  14. !endif
  15. !set my_dir=lang/help.$modu_lang
  16. !set hr=<hr style="color: #663366;\
  17. background-color: #663366;\
  18. height: 5px;">
  19.  
  20. !set hh=<h2 style="color:$wims_ref_menucolor; \
  21. background-color: $wims_ref_bgcolor;\
  22. text-align:center;">
  23.  
  24. !set hh3=<h3 style="color:$wims_ref_menucolor; \
  25. background-color: $wims_ref_bgcolor;\
  26. text-align:left;">
  27.  
  28. !set pre=style="\
  29.    background-color:white;\
  30.    font-weight: bold ;\
  31.        font-size: 12px;\
  32.        border-style: solid;\
  33.        border-width: 2pt;\
  34.        margin: 3% 3% 3% 3%;\
  35.        padding : 3%;"
  36.  
  37. !set tt=style="background-color:white;\
  38.   font-weight: bold ;\
  39.   padding : 0% 1% 0% 1%;"
  40.    
  41. !set desc = $hh3 $wims_name_Description</h3>
  42. !set help_parm=$special_parm
  43. !default help_parm=$parmhelp
  44. !set help_cnt_parm=!itemcnt $help_parm
  45.  
  46. !if $special_parm!=$empty
  47.  !set EXO=$special_parm
  48.  $hh $(wims_name_quick_$EXO)</h2>
  49. $desc
  50.  
  51. !set a=!record 0 of lang/help.$modu_lang/$EXO
  52. $a
  53. $hh3 $name_format_data $(wims_name_quick_$EXO)</h3>
  54. !set a=!record 2 to -1 of lang/help.$modu_lang/$EXO
  55. !set b=!record 1 of lang/help.$modu_lang/$EXO
  56. !set b=!line 2 to -1 of $b
  57. <pre $pre>
  58. $b
  59. !replace internal : by &#58; in :$a
  60. </pre>
  61. !endif
  62.  
  63. !if $special_parm1 !=$empty
  64.   !read lang/help.$modu_lang/special_help.phtml
  65.  !exit
  66. !endif
  67.  
  68. <a name="commun"></a>
  69. <div $frame>
  70. !if $help_cnt_parm >1
  71. $desc
  72.  
  73. !record 0 of lang/help.$modu_lang/commun
  74. !endif
  75.  
  76. !if $help_cnt_parm >1
  77.   !for t = 1 to $help_cnt_parm
  78.      !set EXO=!item $t of $help_parm
  79.    <p>
  80. $hh $(wims_name_quick_$EXO)</h2>
  81. $desc
  82.  
  83. !record 0 of lang/help.$modu_lang/$EXO
  84. $hh3 $name_format_data $(wims_name_quick_$EXO)</h3>
  85. !set a=!record 2 to -1 of lang/help.$modu_lang/$EXO
  86. !set b=!record 1 of lang/help.$modu_lang/$EXO
  87. !set b=!line 2 to -1 of $b
  88. <pre $pre>
  89. $b
  90. !replace internal : by &#58; in :$a
  91. </pre>
  92.  
  93.  !next t
  94. !endif
  95.  
  96. !if $help_cnt_parm=1
  97. <p>
  98. $hh  $name_commun</h3>
  99. $desc
  100.  !record 0 of lang/help.$modu_lang/commun
  101. !endif
  102.  
  103. </div>
  104. !exit
  105.  
  106. :intro
  107. !read adm/language names.phtml
  108. !read values
  109.  $table_header
  110.     $table_tr<th>$wims_name_Type</th><th>$wims_name_Description</th><th>$name_Example</th>
  111.    !set u = !linecnt $name
  112.    !for i = 1 to $u
  113.      $table_tr<td width="12%">
  114.      !set cnt=!itemcnt $(name[$i;])
  115.      !for a =1 to $cnt
  116.         <br>
  117.          $(wims_name_quick_$(name[$i;$a]))
  118.      !next a
  119.      </td><td width="25%">$(explication[$i;])</td>
  120.      <td>
  121.      !for j = 1 to $(nb_example[$i])
  122.      !set ex_data = !getdef file in $example_dir/$(name_example[$i])/$j
  123.      !set ex_title = !getdef title in $example_dir/$(name_example[$i])/$j
  124.      !set ex_source = !getdef source in $example_dir/$(name_example[$i])/$j
  125.      !set ex_data=!nospace $ex_data
  126.  
  127. !href target=wims_test module=$module_test&exo=$ex_source&cmd=new <i>$ex_title</i>
  128. &nbsp;
  129. !href target=wims_mhelp cmd=help&special_parm=example&special_parm2=$(name_example[$i])/$ex_data $name_data
  130. &nbsp;
  131. !if $j < $(nb_example[$i])
  132.   <br><hr>
  133. !endif
  134. !next j
  135. </td></tr>
  136.  !next u
  137. $table_end
  138.  
  139.