Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
5199 guerimand 1
!!
2
!! page edition to add exo to a sheet
3
!!
4
 
5
!if $cmd=new or $cmd=resume
12238 bpr 6
  $name_insert <span class="tt wims_fname">$dir</span>
7
  !if $iniparm!=$empty
8
    $name_parm
5199 guerimand 9
 <p>
5901 bpr 10
 <span class="tt wims_parm">
12238 bpr 11
    !replace internal & by &amp; in $iniparm
6431 bpr 12
 </span>
5205 guerimand 13
 </p>
12238 bpr 14
  !endif
5205 guerimand 15
 <p>
16
 $name_choose_exo
6431 bpr 17
 </p>
7354 bpr 18
 
12238 bpr 19
  !form reply
7450 bpr 20
<fieldset class="property_fields halfwidth blockcenter">
14259 obado 21
 <legend>$wims_title_title</legend>
7450 bpr 22
 <div class="field box">
23
  <label for="picksheet">$name_choose</label>
24
  <select name="picksheet" id="picksheet">
12238 bpr 25
  !for i=1 to $sheetcnt
26
    !set sh=!line $i of $sheets
27
    !set se=!item 1 of $sh
28
    !set ti=!item 2 to -1 of $sh
29
    !if $se=$sheetcnt
5838 bpr 30
   <option value="$se" selected="selected">$wims_name_Sheet $se: $ti</option>
12238 bpr 31
    !else
5199 guerimand 32
   <option value="$se">$wims_name_Sheet $se: $ti</option>
12238 bpr 33
    !endif
34
   !next i
7450 bpr 35
  </select>
36
  </div>
5217 bpr 37
 
12238 bpr 38
  !set iniparm1=!replace internal & by $ $ in $iniparm
39
  !set exo=!getopt exo in $iniparm1
40
  !if __classes/ isin __$dir
41
    !set title1=!lookup $exo in wimshome/log/classes/$wims_class/Extitles
42
  !else
43
    !if $tr_lang=yes
6431 bpr 44
      !set title1=!lookup $exo in wimshome/public_html/modules/$dir/Extitles_$lang
12238 bpr 45
    !endif
46
    !default title1=!lookup $exo in wimshome/public_html/modules/$dir/Extitles
47
  !endif
48
  !default title1=!module title $dir
49
  !if $title1!=$empty
50
    !set title=$title1
51
  !endif
52
  !set title=!trim $title
53
  !default title=$wims_name_Exercise
7450 bpr 54
 <div class="field box">
55
  <label for="title">$wims_name_title</label>
7466 bpr 56
  <input size="50" name="title" value="$title" id="title" />
7450 bpr 57
  <div class="formHelp">$name_modifytitle</div>
58
 </div>
59
 <div class="field box">
60
  <label for="new_desc">$wims_name_Description</label>
61
  <textarea name="new_desc" rows="5" cols="50" id="new_desc">$desc</textarea>
62
 </div>
12316 bpr 63
 !! form for attribute (some icone before the title)
64
 <div class="field box">
65
  !read adm/class/attribut.phtml
66
 </div>
12238 bpr 67
  !if $scoring=yes
7450 bpr 68
  <div class="field box">
69
   <label for="require">$name_required</label>
8255 bpr 70
    <select name="require" id="require">
9060 guerimand 71
    <option value="0">0</option>
72
    <option value="10" selected>10</option>
12238 bpr 73
    !for i=2 to $require_limit
8255 bpr 74
     <option value="$[10*$i]">$[10*$i]</option>
12238 bpr 75
    !next
8255 bpr 76
    </select>
7450 bpr 77
   <div class="formHelp">$name_repeat</div>
78
  </div>
12289 bpr 79
  !default newexotrymax=$get_exotrymax
7450 bpr 80
  <div class="field box">
12238 bpr 81
    <label for="exotrymax">$name_exotrymax</label>
12387 bpr 82
      <input size="2" maxlength="2" name="newexotrymax" value="$newexotrymax" id="exotrymax" />
12238 bpr 83
    <div class="formHelp">$name_exotrymax_hint</div>
84
  </div>
85
  <div class="field box">
7450 bpr 86
   <label for="weight">$name_weight</label>
87
   <input size="6" name="weight" value="$weight" id="weight" />
7466 bpr 88
   <div class="formHelp">$name_weight_hint</div>
7450 bpr 89
  </div>
12238 bpr 90
  !endif
91
  !if $exocnt_=$get_qnum and $get_random=0
7450 bpr 92
  <div class="field box">
93
   <label>$name_orderchange</label>
94
   <table>
12238 bpr 95
    !for ex = 1 to $exocnt_
7450 bpr 96
   <tr><td>
12238 bpr 97
      !lookup $(get_exo[$ex]) in wimshome/public_html/modules/$dir/Extitles
7354 bpr 98
   </td><td>
99
    <input name="update_ex$ex" size="5" value="$ex" />
100
  </td></tr>
12238 bpr 101
    !next
7450 bpr 102
   </table>
7466 bpr 103
  </div>
12238 bpr 104
  !endif
6235 bpr 105
 <div class="wimscenter wimsform"><input type="submit" value="$wims_name_Insert" /></div>
7450 bpr 106
</fieldset>
12238 bpr 107
  !formend
5199 guerimand 108
!endif
109
 
110
!if $cmd=reply
14114 obado 111
  <div class="wims_msg success">
112
    $name_end $picksheet.
113
  </div>
114
  <div class="wimscenter menuitem">
115
    !set wims_ref_class=sheetcheck
116
    !href module=adm/class/sheet&sheet=$picksheet $wims_name_sheetcheck
117
  </div>
8012 bpr 118
!!<p>
119
 !! !href target=wims_test module=adm/tool/classification&dir=$dir&iniparm=$iniparm $wims_name_Indexation
120
!!</p>
7808 bpr 121
 
12238 bpr 122
  !set wims_menu_items=!append line sheetcheck,1, module=adm/class/sheet&sheet=$picksheet\
5199 guerimand 123
to $wims_menu_items
124
 
125
!endif