Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
1539 bpr 1
!! Tableau d'information générale de la feuille d'exos
11999 obado 2
!! ce fichier utilise des mots definis
3
!! dans le fichier names.phtml.$lang du module adm/sheet
1533 guerimand 4
!form reply
17186 bpr 5
<input type="hidden" name="job" value="text">
12704 bpr 6
<fieldset class="property_fields blockcenter">
7
!!check
8
<legend>$name_info
9
!if $jquery_defined!=yes and $sheet<=$scnt
10
  [
11
  !href cmd=resume&infoshow=no $wims_name_hide
12
  ]
13
!endif
14
</legend>
15
<div class="field box">
16
  <label for="title">$(name_shinfo[1])</label>
17186 bpr 17
  <input size="65" name="title" id="title" value="$title" required="required">
12704 bpr 18
  <div class="formHelp">$name_desc_title</div>
19
</div>
20
!ifval $activetest>-1
21
  <div class="field box">
22
    <label for="">$(name_shinfo[2])</label>
23
    <span class="wims_status wims_status_$activetest">$(wims_name_shstatus[$activetest+1])</span>
13208 obado 24
    !read adm/sheet/sheetaction.phtml sheet,$sheet,$activetest,0
12704 bpr 25
  </div>
26
!endif
27
<div class="field box fullwidth">
28
  <label for="desc">$(name_shinfo[3])</label>
29
  <div class="formHelp">$name_desc_desc</div>
30
    <textarea id="desc" class="iEdit" rows="6" cols="65" name="desc">$desc</textarea>
31
  </div>
32
  <div class="field box">
33
    <label for="comment">$(name_shinfo[8])</label>
34
    <div class="formHelp">$name_desc_comment</div>
35
    <textarea id="comment" class="iEdit" rows="6" cols="65" name="comment">$comment</textarea>
36
  </div>
37
  <div class="field box">
38
  <label for="expdate">$(name_shinfo[4])</label>
39
  !default expdate=$(expyear)$(expmon)$(expday)
40
  !read adm/datepickerform.phtml $expdate\
11800 guerimand 41
expdate\
42
"$class_creation","$class_expiration"
11999 obado 43
 
14366 guerimand 44
!! !endif
12704 bpr 45
</div>
46
<div class="field box">
12804 obado 47
  <label for="sh_weight">$(name_shinfo[11])</label>
12815 obado 48
  !set wims_ref_class=wims_button_help float_right
49
  !href target=wims_mhelp cmd=help&special_parm=weight $wims_name_help
50
  !default weight=!word 1 of $df_severity
17186 bpr 51
  <input type="number" min="$min_weight" max="$max_weight" step="any" size="5" name="weight" value="$weight" id="sh_weight">
12704 bpr 52
</div>
53
<div class="field box">
54
  <label for="formulaA">$(name_shinfo[12])</label>
12815 obado 55
  !set wims_ref_class=wims_button_help float_right
56
  !href target=wims_mhelp cmd=help&special_parm=score $wims_name_help
57
  !set formula_list=!record 0 of adm/class/sheetformula
58
  !default formulaA=!word 2 of $df_severity
59
  !formselect formulaA list 0,1,2,3,4,5,6 prompt $formula_list
12802 obado 60
 
12815 obado 61
  !default formulaB=!word 3 of $df_severity
12802 obado 62
  <label for="formulaB">I=</label>
12815 obado 63
  !formselect formulaB list 0,1,2 prompt I0,I1,I2
12704 bpr 64
</div>
65
<div class="field box">
13827 bpr 66
  <label for="exodescshow">$(name_shinfo[13])</label>
13825 bpr 67
  !set wims_ref_class=wims_button_help float_right
68
  !href target=wims_mhelp cmd=help&special_parm=exodescshow $wims_name_help
69
  !set tmp=!record $sheet of wimshome/log/classes/$wims_class/sheets/.sheets
13833 bpr 70
  !default exodescshow=!line 8 of $tmp
13825 bpr 71
  !reset tmp
72
  !default exodescshow=0
73
  !formradio exodescshow list 0,1 prompt $wims_name_no,$wims_name_yes
74
</div>
75
<div class="field box">
12704 bpr 76
  <label for="prpage">$(name_shinfo[5])</label>
12815 obado 77
  !set wims_ref_class=wims_button_help float_right
78
  !href target=wims_mhelp cmd=help&special_parm=sheetpage $wims_name_help
16919 guerimand 79
  !if $prpage!=$empty and $prpage notitemof yes,no
17186 bpr 80
    <input size="30" name="prpage" id="prpage" value="$prpage">
16919 guerimand 81
  !else
82
    !default prpage=no
83
    !formradio prpage list no,yes prompt $wims_name_no,$wims_name_yes
84
  !endif
12704 bpr 85
</div>
14441 guerimand 86
!if $tv_listallname!=$empty
87
  <div class="field box">
88
    <label for="hidden_condition">$(name_shinfo[14])</label>
89
    !set wims_ref_class=wims_button_help float_right
90
    !href target=wims_mhelp cmd=help&special_parm=filter $wims_name_help
91
    <textarea name="hidden_condition" cols="20" rows="3">$hidden_condition</textarea>
17186 bpr 92
  </div>
14441 guerimand 93
!endif
12704 bpr 94
!if $activetest>=0
15763 guerimand 95
  <div class="field box">
96
    !if $activetest=0
97
      <label for="indivtechvar">$name_desc_indivtechvar</label>
98
      <select id="indivtechvar" name="indivtechvar">
99
        !if $indivtechvar=0 or $indivtechvar=$empty
100
            <option value="0" selected="selected">$name_noone</option>
101
          !else
102
            <option value="0">$name_noone</option>
103
        !endif
15860 guerimand 104
        !let tot=!itemcnt $tv_listlocalcode
15763 guerimand 105
        !for i=1 to $tot
15860 guerimand 106
          !if $(tv_listlocalcode[$i])=$indivtechvar
107
            <option value="$(tv_listlocalcode[$i])" selected="selected">$(tv_listname[$(tv_listlocal[$i])])</option>
15763 guerimand 108
          !else
15860 guerimand 109
            <option value="$(tv_listlocalcode[$i])">$(tv_listname[$(tv_listlocal[$i])])</option>
15763 guerimand 110
          !endif
111
        !next i
112
      </select>
113
    !else
114
      <strong>$name_desc_indivtechvar</strong>
115
      !if $indivtechvar!=0 and $indivtechvar!=$empty
116
       !let p=!positionof item $indivtechvar in $tv_listcode
117
       $(tv_listname[$p])
118
      !else
119
         $name_noone
120
      !endif
121
    !endif
122
    !set wims_ref_class=wims_button_help float_right
123
    !href target=wims_mhelp cmd=help&special_parm=indivtechvar $wims_name_help
124
  </div>
17186 bpr 125
  <input type="hidden" name="allow" value="yes">
12704 bpr 126
  <div class="field box">
127
    <label for="allowtype">$(name_shinfo[6])</label>
12801 obado 128
    !set wims_ref_class=wims_button_help float_right
129
    !href target=wims_mhelp cmd=help&special_parm=allowtype $wims_name_help
12999 obado 130
    <select id="allowtype" name="allowtype"
13009 obado 131
            onchange="toggle_allowtype(this,{'select': '#js_restricted_time','techvar': '#js_restricted_techvar'})"
12999 obado 132
      >
12801 obado 133
      !if $tv_listname=$empty
134
        !set list_allowtype=all,none,select
135
      !else
136
        !set list_allowtype=all,none,select,techvar
137
      !endif
138
      !let nboption=!itemcnt $list_allowtype
139
      !for i=1 to $nboption
140
        !if $(list_allowtype[$i])=$allowtype
141
          <option value="$(list_allowtype[$i])" selected="selected">$(name_allowtype[$i])</option>
142
        !else
143
          <option value="$(list_allowtype[$i])">$(name_allowtype[$i])</option>
144
        !endif
145
      !next i
146
    </select>
12815 obado 147
 
12999 obado 148
    <div id="js_restricted_time"
149
      !if $allowtype=select
150
        style="display:block"
151
      !else
152
        style="display:none"
153
      !endif
154
      >
155
      !readproc adm/scorerestriction get
156
      !read adm/scorerestriction html
157
    </div>
158
 
159
    <div id="js_restricted_techvar"
160
      !if $allowtype=techvar
161
        style="display:block"
162
      !else
163
        style="display:none"
164
      !endif
165
      >
166
      !read adm/vfilter/scoreregform.phtml
167
    </div>
12988 obado 168
    !read js/interface/ui_utils.js.phtml
12815 obado 169
 
12801 obado 170
    !default allowshare=0
171
    !if $sharers!=$empty
12815 obado 172
      <div>
173
        <label for="allowshare">$(name_shinfo[7])</label>
174
        !formselect allowshare list 0,1 prompt $wims_name_no,$wims_name_yes
175
      </div>
12801 obado 176
    !else
17186 bpr 177
      <input type="hidden" name="allowshare" value="0">
12801 obado 178
    !endif
7472 bpr 179
  </div>
12704 bpr 180
!endif
181
</fieldset>
182
 
183
<div class="wimscenter wimsform">
12999 obado 184
  !ifval $activetest=-1
17186 bpr 185
    <input type="submit" value="$name_mksheet">
12999 obado 186
  !else
17186 bpr 187
    <input type="submit" value="$wims_name_tosave" name="save">
12999 obado 188
  !endif
189
  !set wims_ref_class= wims_button wims_secondary_button
190
  !href module=home $wims_name_giveup
12704 bpr 191
</div>
5928 bpr 192
!formend