Subversion Repositories wimsdev

Rev

Rev 13248 | Details | Compare with Previous | Last modification | View Log | RSS feed

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