Subversion Repositories wimsdev

Rev

Rev 12520 | 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 id="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.     <br />
  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.   $hh  $name_commun</h2>
  100.   $desc
  101.   !record 0 of lang/help.$modu_lang/commun
  102. !endif
  103.  
  104. </div>
  105. !exit
  106.  
  107. :intro
  108. !read adm/language lang/names.phtml
  109. !read values
  110. $table_header
  111. $table_tr<th>$wims_name_Type</th><th>$wims_name_Description</th><th>$name_Example</th>
  112. !set u = !linecnt $name
  113. !for i = 1 to $u
  114.   $table_tr<td style="width:12%">
  115.   !set cnt=!itemcnt $(name[$i;])
  116.   !for a =1 to $cnt
  117.     <br />
  118.     $(wims_name_quick_$(name[$i;$a]))
  119.   !next a
  120.   </td><td style="width:25%">$(explication[$i;])</td>
  121.   <td>
  122.   <ul>
  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.     <li>
  129.     !href target=wims_test module=$module_test&exo=$ex_source&cmd=new <i>$ex_title</i>
  130.     $ $
  131.     !href target=wims_mhelp cmd=help&special_parm=example&special_parm2=$(name_example[$i])/$ex_data $name_data
  132.     $ $
  133.     </li>
  134.     !if $j = $(nb_example[$i])
  135.       </ul>
  136.     !endif
  137.   !next j
  138.   </td></tr>
  139. !next i
  140. $table_end
  141.