Subversion Repositories wimsdev

Rev

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

Rev 5297 Rev 5340
Line 68... Line 68...
68
  !increase votecnt
68
  !increase votecnt
69
  job=edit
69
  job=edit
70
 !endif
70
 !endif
71
!endif
71
!endif
72
 
72
 
-
 
73
!default vote_model=$reg_model
73
!if $vote>0 and $vote<=$votecnt
74
!if $vote>0 and $vote<=$votecnt
74
 vdata=!record $vote of $votedir/.votes
75
 vdata=!record $vote of $votedir/.votes
75
 !distribute lines $vdata into vote_status,vote_title,vote_option,vote_show,vote_whovoteshow
76
 !distribute lines $vdata into vote_status,vote_title,vote_option,vote_show,vote_whovoteshow,vote_model
76
 !default vote_option=anonymous
77
 !default vote_option=anonymous
77
 !default vote_status=0
78
 !default vote_status=0
78
 !default vote_show=1
79
 !default vote_show=1
-
 
80
!! !default vote_model=free
79
 vote_src=!record 0 of $votedir/$vote.src
81
 vote_src=!record 0 of $votedir/$vote.src
80
!endif
82
!endif
-
 
83
!default reg_model=$vote_model
81
 
84
 
82
!if $vote<1
85
!if $vote<1
83
 job=home
86
 job=home
84
!endif
87
!endif
85
 
88
 
86
vmodellist=exams,groups
89
vmodellist=exams,groups
87
vrfvmodel=!defof vmodel in $votedir/$vote.data
90
!! vrfvmodel=!defof vmodel in $votedir/$vote.data
-
 
91
!! vmodel --> vote_model (defined in the .votes file)
-
 
92
!! vmodel=!defof vmodel in $votedir/$vote.data
-
 
93
!! le seguenti servivano per impedire di cambiare il modello se il vote è chiuso
-
 
94
!! !if $vote_status>0
-
 
95
!! $mod_vmodel=$empty
-
 
96
!! !else
-
 
97
!! !default mod_vmodel=$vmodel
-
 
98
!! !endif
-
 
99
!! se $vmodel è $empty, allora il default va su free (??)
-
 
100
!! !default mod_vmodel=$vmodel
-
 
101
!! no, we do not want a "default" so that we can check "where we are"
-
 
102
!! !default mod_vmodel=free
88
 
103
 
89
!read $job.proc
104
!read $job.proc
90
 
105