Subversion Repositories wimsdev

Rev

Rev 6229 | Rev 6596 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4645 bpr 1
 
4612 bpr 2
!! menu definition file
4645 bpr 3
!set list_curve=circle,rectangle,polygon
4612 bpr 4
!default step=1
5
!read lang/names.phtml.fr
6
$name_intro
7
$name_exo0
8
!set wims_ref_class=wims_button_help
9
!href target=wims_mhelp cmd=help $wims_name_help
6229 bpr 10
 
4612 bpr 11
!form reply
12
<ol>
4645 bpr 13
!for a=1 to $[max(min(2,$step-1),1)]
4612 bpr 14
  <li>$(name_help$a)</li>
15
!next
4645 bpr 16
!if $step=2
5988 bpr 17
      <li class="wims_emph">$(name_help$[min(3,$step)])</li>
4645 bpr 18
!endif
19
 
20
!if $step>=3
21
    !if $type<=1
5988 bpr 22
      <li class="wims_emph">$(name_help$type$ext)</li>
4645 bpr 23
    !else
24
     !if $ext=2
25
      <li>$(name_help$type$[$ext-1])</li>
26
     !endif
5988 bpr 27
      <li class="wims_emph">$(name_help$type$ext)</li>
4645 bpr 28
    !endif
29
   !endif
30
  !if $step>=3 and $ext=1
4612 bpr 31
  <li>
32
  $name_else
33
   !formcheckbox erase list yes prompt <b>$name_erase</b>
34
  </li>
4645 bpr 35
   !if $step>=4
4612 bpr 36
   <li>
37
     $name_end
38
     !reset tindex
39
     !for t in $listexo
40
     !set p=!char 1 of $t
4645 bpr 41
     !if ($type >= $p and $type<=1) or $type=$p
4612 bpr 42
      !set titre=$(name_description$t)
43
      !set titre=!line 1 of $titre
44
      !set titre=!replace internal , by &##44; in $titre
45
      !set tindex=!append item $titre to $tindex
46
      !set lex=!append item $t to $lex
47
     !endif
48
    !next
49
 !formselect end list 0,$lex prompt choisir,$tindex
50
  </li>
51
 !endif
52
</ol>
5726 bpr 53
  !if $type!=2 or $ext=1
5869 bpr 54
  <p class="wimscenter wimsform">
6235 bpr 55
  <input type="submit" value="$wims_name_send" />
5869 bpr 56
  </p>
4645 bpr 57
  !endif
4612 bpr 58
!endif
59
 
60
!if $step>=$limit
61
  !changeto answer.phtml
62
  !exit
63
!endif
64
 
65
!if $step=1
5975 bpr 66
</ol>
4612 bpr 67
<ul><li>  
68
   !formradio wims_deposit_old list 0 prompt $wims_name_download
6235 bpr 69
   <input type="file" name="wims_deposit" />
4612 bpr 70
   !if $already!=
71
     $name_already
72
     !formradio wims_deposit_old list $already
73
   !endif
74
  </li><li>
4645 bpr 75
  !default type=0
76
  !formradio type list 0,1,2 prompt $name_0, $name_1,$name_2
4612 bpr 77
  </li>
78
</ul>
5869 bpr 79
  <p class="wimscenter wimsform">
5726 bpr 80
     !set wims_ref_class=wims_button
6235 bpr 81
   <input type="submit" value="$wims_name_send" />
5958 bpr 82
  </p>
4612 bpr 83
  !if $test=noimage
84
    <span class="wims_warning">$wims_name_warning</span>. $name_noimage
85
  !endif
86
  !if $test=bad_image
87
    <span class="wims_warning">$wims_name_warning</span>. $name_bad_image
88
  !endif
89
!endif
5975 bpr 90
!if $step=2
91
</ol>
92
!endif
4612 bpr 93
!if $step>=2
5975 bpr 94
 
5726 bpr 95
 !distribute item alt="Click",1,form click into ins_attr,ins_border,ins_tag
96
 
97
  <table class="wimsnoborder wimscenter"><tr><td style="width:50px; height-min:50px;text-align:top;">
4645 bpr 98
  !if $step>=3
99
    !if $type=2 and $ext=2
100
     $(name_point$type$ext)
101
      !read zone.phtml
5726 bpr 102
  </td></tr>
4645 bpr 103
  </table>
104
      !exit
105
    !endif
106
       $(name_point$type$ext)
6235 bpr 107
       <br />
4645 bpr 108
       !set insdraw_filebase=!append word $wims_home/sessions/$wims_session/$sesdir to $insdraw_filebase
4811 bpr 109
       !set insdraw_filebase=!listuniq $insdraw_filebase
5988 bpr 110
      !! !set ins_border=4
4645 bpr 111
      !insdraw copy 0,0,-1,-1,-1,-1,$wims_deposit\
112
     $dessin
113
     !set imgsrc=$ins_url
114
  !else
6235 bpr 115
    <input type="image" name="click" src="$imgsrc" border="1" />
4645 bpr 116
  !endif
117
</td><td>
118
  !if $test=nosize and $begin>=1
4612 bpr 119
   <span class="wims_warning">$wims_name_warning</span>. $name_nosize
120
  !endif
4645 bpr 121
  !reset begin
4612 bpr 122
  !if $step>=3
4645 bpr 123
  !!a modifier
124
   !if $test iswordof nolegend noclick
125
      <span class="wims_warning">$wims_name_warning</span>.
4612 bpr 126
      !if $test iswordof nolegend
127
        $name_nolegend
128
      !endif  
129
      !if $test=noclick
130
       $name_noclick
131
      !endif
132
   !endif
133
    <div style="padding:50px;">
4645 bpr 134
   !if $ext iswordof 2
4612 bpr 135
      !set readonly=readonly
136
   !else
137
      !reset readonly
138
   !endif
6235 bpr 139
     <br />
4612 bpr 140
      $name_legend
6235 bpr 141
      <input size="20" $readonly name="legend" value="$legend" />
4645 bpr 142
      !if $type=2 and $ext=1
143
        !formradio javatype list $list_curve prompt $name_list_curve
144
      !endif
4612 bpr 145
    </div>
146
   !if $data!=
5726 bpr 147
     <pre style="text-align:left;">$data</pre>
4612 bpr 148
   !endif
149
  !endif
4645 bpr 150
  </td></tr>
5975 bpr 151
  </table>
4645 bpr 152
!if $type!=2 or $ext=1
5975 bpr 153
 <div class="wimscenter wimsform">
6235 bpr 154
  <input type="submit" value="$wims_name_send" />
5975 bpr 155
  </div>
4645 bpr 156
!endif
5975 bpr 157
 
4612 bpr 158
!endif
5975 bpr 159
!formend
4612 bpr 160
 
161
!reset test error