File: Main.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 (109 lines) | stat: -rw-r--r-- 2,280 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
!read Exindex
!read dialog/$lang/names
!if $(title_$lang)!=$empty
  !set title=$(title_$lang)
!endif
!if $title!=$empty
  !set module_title=$title
!endif
!set renewlink=cmd=renew&worksheet=$worksheet&$module_init_parm
!set wims_html_header=!append line <style>.dialog_answer {\
  border: 1px solid #CCC;\
  border-left-color: var(--wims_ref_bgcolor);\
  border-left-width: .2em;\
  margin: 2% 2%;\
  padding: 1em;}</style>\
  to $wims_html_header
!header

!if $title=$empty
  $name_emptytitle
  <div class="wimscenter">
  !set wims_ref_class=wims_button
  !href module=$module $name_restart
  , $wims_name_or
  !set wims_ref_class=wims_button
  !href $ $wims_name_giveup
  . </div>
  !goto end
!endif

:tester
!read dialog/present.phtml

<hr style="width:50%">

!if $cmd=hint
  !read dialog/hint.phtml
  !goto end
!endif

!if $status=waiting
  !if $error!=$empty
    !read dialog/msg.phtml
    <hr style="width:50%">
  !endif
  !read dialog/form.phtml
  <p>
  !if $hint!=$empty and $givehint>0
    !set wims_ref_class=wims_button_help
    !href cmd=hint $name_Hint
  !endif
  !set wims_ref_class=wims_button
  !if $qnum<=1
    !href $renewlink $name_exo_renew
  !else
    $name_serie_exo
    !href $renewlink $name_serie_renew
  !endif
  </p>
!else
  !if $error!=$empty
     !read dialog/msg.phtml
     <hr style="width:50%">
  !endif
  !read dialog/answer.phtml
  <p>
  !if $status!=$empty
    $name_serie_exo2 <p>
    !set wims_ref_class=wims_button
    !href cmd=next $name_serie_nextexo
     $wims_name_or
    !set wims_ref_class=wims_button
    !href $renewlink $name_exo_renew
. $name_serie_new2
 !else
    !if $qnum>1
      $name_serie_score
      !ifval $score>9.8
        $wims_name_Congratulations
      !endif
      <p>
      !set wims_ref_class=wims_button
        !href exo_Again
      !if $wims_sheet=$empty
        !set wims_ref_class=wims_button
        !href exo_Intro
      !endif
      </p>
    !else
      $name_exo_score
      !ifval $score>9.8
        $wims_name_Congratulations
      !endif
      <p>
      !set wims_ref_class=wims_button
      !href exo_Again
      !if $wims_sheet=$empty and $oef_test!=yes
        !set wims_ref_class=wims_button
        !href exo_Intro
      !endif
      </p>
    !endif
  !endif
!endif

!read endhook.phtml
:end

!tail