File: sheetinfo.phtml

package info (click to toggle)
wims 2%3A4.29a%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 185,704 kB
  • sloc: xml: 366,687; javascript: 120,570; ansic: 62,341; java: 62,170; sh: 7,744; perl: 3,937; yacc: 3,217; cpp: 1,915; lex: 1,805; makefile: 1,084; lisp: 914; pascal: 601; python: 520; php: 318; asm: 7
file content (196 lines) | stat: -rw-r--r-- 7,112 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
!! Tableau d'information gnrale de la feuille d'exos
!! ce fichier utilise des mots definis
!! dans le fichier names.phtml.$lang du module adm/sheet
!! utilise des variables dfinies dans le module adm/sheet
!form reply
<input type="hidden" name="job" value="text">
<fieldset class="property_fields blockcenter">
!!check
<legend>$name_info
!if $jquery_defined!=yes and $sheet<=$scnt
  [
  !href cmd=resume&infoshow=no $wims_name_hide
  ]
!endif
</legend>
<div class="field box">
  <label for="title">$(name_shinfo[1])</label>
  <input type="text" name="title" id="title" value="$title" required="required">
  <div class="formHelp">$name_desc_title</div>
</div>
!ifval $activetest>-1
  <div class="field box">
    $(name_shinfo[2])
    <span class="wims_status wims_status_$activetest">
    $(wims_name_shstatus[$activetest+1])
    !if $hidden_condition!=$empty and $activetest=1
 ($wims_name_maybehidden)
    !endif
    </span>
    !read adm/sheet/sheetaction.phtml sheet,$sheet,$activetest,0
  </div>
!endif
<div class="field box fullwidth">
  <label for="desc">$(name_shinfo[3])</label>
  <div class="formHelp">$name_desc_desc</div>
    <textarea id="desc" class="iEdit" rows="6" cols="65" name="desc">$desc</textarea>
  </div>
  <div class="field box">
    <label for="comment">$(name_shinfo[8])</label>
    <div class="formHelp">$name_desc_comment</div>
    <textarea id="comment" class="iEdit" rows="6" cols="65" name="comment">$comment</textarea>
  </div>
  <div class="field box">
  <label for="expdate">$(name_shinfo[4])</label>
  !default expdate=$(expyear)$(expmon)$(expday)
  !read adm/datepickerform.phtml $expdate\
expdate\
"$class_creation","$class_expiration"
  </div>
<div class="field box">
    <label for="sh_weight">$(name_shinfo[11])</label>
    !set wims_ref_class=wims_button_help float_right
    !href target=wims_mhelp cmd=help&special_parm=weight $wims_name_help
    !default weight=!word 1 of $df_severity
    <input type="number" min="$min_weight" max="$max_weight" step="any" size="5" name="weight" value="$weight" id="sh_weight">
  </div>
  <div class="field box">
    <label for="formulaA">$(name_shinfo[12])</label>
    !set wims_ref_class=wims_button_help float_right
    !href target=wims_mhelp cmd=help&special_parm=score $wims_name_help
    !set formula_list=!record 0 of adm/class/sheetformula
    !default formulaA=!word 2 of $df_severity
    !formselect formulaA list 0,1,2,3,4,5,6 prompt $formula_list

    !default formulaB=!word 3 of $df_severity
    <label for="formulaB">I=</label>
    !formselect formulaB list 0,1,2 prompt I0,I1,I2
  </div>
  <div class="field box">
    <label for="exodescshow">$(name_shinfo[13])</label>
    !set wims_ref_class=wims_button_help float_right
    !href target=wims_mhelp cmd=help&special_parm=exodescshow $wims_name_help
    !set tmp=!record $sheet of wimshome/log/classes/$wims_class/sheets/.sheets
    !default exodescshow=!line 8 of $tmp
    !reset tmp
    !default exodescshow=0
    !formradio exodescshow list 0,1 prompt $wims_name_no,$wims_name_yes
  </div>
  <div class="field box">
    <label for="prpage">$(name_shinfo[5])</label>
    !set wims_ref_class=wims_button_help float_right
    !href target=wims_mhelp cmd=help&special_parm=sheetpage $wims_name_help
    !if $prpage!=$empty and $prpage notitemof yes,no
      <input size="30" name="prpage" id="prpage" value="$prpage">
    !else
      !default prpage=no
      !formradio prpage list no,yes prompt $wims_name_no,$wims_name_yes
    !endif
  </div>
!if $tv_listallname!=$empty or $hidden_condition!=$empty
  <div class="field box">
    <label for="hidden_condition">$(name_shinfo[14])</label>
    !set wims_ref_class=wims_button_help float_right
    !href target=wims_mhelp cmd=help&special_parm=filter $wims_name_help
    <textarea name="hidden_condition" cols="20" rows="3">$hidden_condition</textarea>
  </div>
!endif
!if $activetest>=0
  <div class="field box">
    !if $activetest=0
      <label for="indivtechvar">$name_desc_indivtechvar</label>
      <select id="indivtechvar" name="indivtechvar">
        !if $indivtechvar=0 or $indivtechvar=$empty
            <option value="0" selected="selected">$name_noone</option>
          !else
            <option value="0">$name_noone</option>
        !endif
        !let tot=!itemcnt $tv_listlocalcode
        !for i=1 to $tot
          !if $(tv_listlocalcode[$i])=$indivtechvar
            <option value="$(tv_listlocalcode[$i])" selected="selected">$(tv_listname[$(tv_listlocal[$i])])</option>
          !else
            <option value="$(tv_listlocalcode[$i])">$(tv_listname[$(tv_listlocal[$i])])</option>
          !endif
        !next i
      </select>
    !else
      <strong>$name_desc_indivtechvar</strong>
      !if $indivtechvar!=0 and $indivtechvar!=$empty
       !let p=!positionof item $indivtechvar in $tv_listcode
       $(tv_listname[$p])
      !else
         $name_noone
      !endif
    !endif
    !set wims_ref_class=wims_button_help float_right
    !href target=wims_mhelp cmd=help&special_parm=indivtechvar $wims_name_help
  </div>
  <input type="hidden" name="allow" value="yes">
  <div class="field box">
    <label for="allowtype">$(name_shinfo[6])</label>
    !set wims_ref_class=wims_button_help float_right
    !href target=wims_mhelp cmd=help&special_parm=allowtype $wims_name_help
    <select id="allowtype" name="allowtype"
            onchange="toggle_allowtype(this,{'select': '#js_restricted_time','techvar': '#js_restricted_techvar'})"
      >
      !if $tv_listname=$empty
        !set list_allowtype=all,none,select
      !else
        !set list_allowtype=all,none,select,techvar
      !endif
      !let nboption=!itemcnt $list_allowtype
      !for i=1 to $nboption
        !if $(list_allowtype[$i])=$allowtype
          <option value="$(list_allowtype[$i])" selected="selected">$(name_allowtype[$i])</option>
        !else
          <option value="$(list_allowtype[$i])">$(name_allowtype[$i])</option>
        !endif
      !next i
    </select>

    <div id="js_restricted_time"
      !if $allowtype=select
        style="display:block"
      !else
        style="display:none"
      !endif
      >
      !readproc adm/scorerestriction get
      !read adm/scorerestriction html
    </div>

    <div id="js_restricted_techvar"
      !if $allowtype=techvar
        style="display:block"
      !else
        style="display:none"
      !endif
      >
      !read adm/vfilter/scoreregform.phtml
    </div>
    <script src="scripts/js/interface/ui_utils.js"></script>

    !default allowshare=0
    !if $sharers!=$empty
      <div>
        <label for="allowshare">$(name_shinfo[7])</label>
        !formselect allowshare list 0,1 prompt $wims_name_no,$wims_name_yes
      </div>
    !else
      <input type="hidden" name="allowshare" value="0">
    !endif
  </div>
!endif
</fieldset>

<div class="wimscenter wimsform">
  !ifval $activetest=-1
    <input type="submit" value="$name_mksheet">
  !else
    <input type="submit" value="$wims_name_tosave" name="save">
  !endif
  !set wims_ref_class= wims_button wims_secondary_button
  !href module=home $wims_name_giveup
</div>
!formend