Subversion Repositories wimsdev

Rev

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

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