Subversion Repositories wimsdev

Rev

Rev 17310 | Rev 17531 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17310 Rev 17530
Line -... Line 1...
-
 
1
!!### adm/scorerestriction
1
!! file to manage score restriction for sheet, exam and other
2
!! file to manage score restriction for sheet, exam and other
2
!! don't forget to declare variable into var.def (with right number if in use) of the module
3
!! don't forget to declare variable into var.def (with right number if in use) of the module
3
!! line 1 (2 words)
4
!! line 1 (2 words)
4
!!  -first : html/put/get
5
!!  -first : html/put/get
5
!!    html : html form to display
6
!!    html : html form to display
Line 49... Line 50...
49
  !default begintscore$_num=00:00
50
  !default begintscore$_num=00:00
50
  !default endtscore$_num=23:59
51
  !default endtscore$_num=23:59
51
  !exit
52
  !exit
52
 
53
 
53
:html
54
:html
-
 
55
!let _now=!char 1 to 8 of $wims_now
54
!if exam isin $module
56
!if exam isin $module
55
 !set allid_=3,4
57
 !set allid_=3,4
56
!else
58
!else
57
 !set allid_=2,3
59
 !set allid_=2,3
58
!endif
60
!endif
59
!if $_num != $empty
61
!if $_num != $empty
60
  !! score restriction use a $_num for each techvar
62
  !! score restriction use a $_num for each techvar
-
 
63
  <label for="datecheck$_num">$(name_shinfo[6])</label>
61
  <select name="datecheck$_num" id="datecheck$_num"
64
  <select name="datecheck$_num" id="datecheck$_num"
62
          !if $jquery_defined=yes
65
          !if $jquery_defined=yes
63
            onchange="toggle_select_option(this, 'select')"
66
            onchange="toggle_select_option(this, 'select')"
64
          !else
67
          !else
65
            onchange="submit()"
68
            onchange="submit()"
Line 77... Line 80...
77
    >$(name_allowtype[$(allid_[2])])</option>
80
    >$(name_allowtype[$(allid_[2])])</option>
78
  </select>
81
  </select>
79
!endif
82
!endif
80
 
83
 
81
<ul class="wims_nopuce"
84
<ul class="wims_nopuce"
82
!if $_num != $empty and $(datecheck$_num)=none
85
  !if $_num != $empty and $(datecheck$_num)=none
83
  style="display:none"
86
    style="display:none"
84
!else
87
  !else
85
  style="display:block"
88
    style="display:block"
86
!endif
89
  !endif
87
>
90
>
88
  <li>
91
  <li>
89
    <label for="begindscore$_num">$wims_name_from</label>
92
    <label for="begindscore$_num">$wims_name_from</label>
-
 
93
    !if $(begindscore$_num) < $_now
-
 
94
      !let begindscore$_num=$_now
-
 
95
      <div class="wims_msg warning">$wims_name_corrected_date</div>
90
 
96
    !endif
91
      !read adm/datepickerform.phtml $(begindscore$_num)\
97
    !read adm/datepickerform.phtml $(begindscore$_num)\
92
begindscore$_num\
98
begindscore$_num\
93
"$class_creation","$class_expiration"
99
"$class_creation","$class_expiration"
-
 
100
 
94
    <label for="begintscore$_num">$wims_name_at</label>
101
    <label for="begintscore$_num">$wims_name_at</label>
95
    <input type="time" size="5" name="begintscore$_num" id="begintscore$_num" value="$(begintscore$_num)">
102
    <input type="time" size="5" name="begintscore$_num" id="begintscore$_num" value="$(begintscore$_num)">
96
 
103
 
97
    <label for="enddscore$_num">$wims_name_to</label>
104
    <label for="enddscore$_num">$wims_name_to</label>
-
 
105
    !if $(enddscore$_num) < $_now
-
 
106
      !let enddscore$_num=$_now
-
 
107
      <div class="wims_msg warning">$wims_name_corrected_date</div>
-
 
108
    !endif
98
      !read adm/datepickerform.phtml $(enddscore$_num)\
109
    !read adm/datepickerform.phtml $(enddscore$_num)\
99
enddscore$_num\
110
enddscore$_num\
100
"$class_creation","$class_expiration"
111
"$class_creation","$class_expiration"
-
 
112
 
101
    <label for="endtscore$_num">$wims_name_at</label>
113
    <label for="endtscore$_num">$wims_name_at</label>
102
    <input type="time" size="5" name="endtscore$_num" id="endtscore$_num" value="$(endtscore$_num)">
114
    <input type="time" size="5" name="endtscore$_num" id="endtscore$_num" value="$(endtscore$_num)">
103
 
115
 
104
  </li><li>
116
  </li><li>
105
    <label for="IPscore$_num">$wims_name_IP</label>
117
    <label for="IPscore$_num">$wims_name_IP</label>