Subversion Repositories wimsdev

Rev

Rev 17229 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5619 bpr 1
<div class="wims_content">
5601 obado 2
 
23 reyssat 3
!if $clcnt<=0
12720 bpr 4
  $name_example1
5
  !exit
23 reyssat 6
!endif
7
 
17386 guerimand 8
!if $fullcls=1
9
  <div class="wims_msg alert">
10
    !let error=fullexamplecls
11
    !read msg.phtml
12
  </div>
13
!endif
14
 
23 reyssat 15
!if $lacnt<=0
12720 bpr 16
  $name_example2
17
  $name_example3b ($listla).
18
  !exit
23 reyssat 19
!else
2218 bpr 20
  $name_example3
23 reyssat 21
!endif
4256 bpr 22
!if $othercnt>0
12720 bpr 23
  $name_example3b ($listla).
4256 bpr 24
!endif
10830 bpr 25
<ol>
26
<li>$name_example4
10811 bpr 27
$name_instruction
10830 bpr 28
</li><li>$name_example41
10811 bpr 29
!set tmp=!replace internal XXXXX by , in $name_sheet_example
30
$(tmp[1])
31
!href module=home&search_keywords=&search_category=S $wims_name_Sheets
32
$ $(tmp[2])
33
!reset tmp
10830 bpr 34
</li></ol>
10811 bpr 35
!!href module=adm/class/regclass $wims_name_classcreate
484 guerimand 36
!let nb=!itemcnt $classification
37
!bound exampletype between 1 and $nb default 3
5754 bpr 38
<div class="wimscenter">
12720 bpr 39
!for k=1 to $nb
484 guerimand 40
  !let titre=!item $k of $classification
12720 bpr 41
  !if $k!=$exampletype
3048 bpr 42
    !set wims_ref_class=wims_button
484 guerimand 43
    !href cmd=reply&exampletype=$k $titre
3048 bpr 44
    &nbsp;
12720 bpr 45
  !else
46
    <span class="wims_button disabled">
7632 bpr 47
    $titre
12720 bpr 48
    </span>
49
  !endif
50
!next k
6729 bpr 51
</div>
12638 obado 52
 
12720 bpr 53
!set table_id=TABLE_cls
54
!set table_class=sortable
55
$table_header
56
<caption>$(classification[$exampletype])</caption>
57
 <thead>
58
 $table_hdtr
59
   <th scope="col">$wims_name_name</th>
60
   <th scope="col" data-sort-method="none">$name_connexion</th>
61
   <th scope="col" data-sort-method="none">$name_register</th>
62
 !!<th>$name_copy</th>
63
 </tr>
64
 </thead>
65
 <tbody>
66
!for i=1 to $clcnt
7632 bpr 67
  !reset class_archived
12720 bpr 68
  !set l=!line $i of $classes
69
  !distribute items $l into code,expire,inst,cl
70
  !defread wimshome/log/classes/$code/.def
71
  !distribute char $class_level into l_,y_
7632 bpr 72
 
12720 bpr 73
  !let clsty=!positionof item $class_level in E1,E2,E3,E4,E5,E6,H1,H2,H3,H4,H5,H6,U1,U2,U3,U4,U5,U6,Lang
74
  !if $clsty!=$empty
6729 bpr 75
    !let clsty=!item $clsty of 1,1,1,1,1,2,2,2,2,3,3,3,4,4,4,4,4,4,5
12720 bpr 76
  !endif
77
  !if $class_archived=yes
78
    !let clsty=6
79
  !endif
80
  !if $exampletype=$clsty or ($clsty=$empty and $exampletype=$nb)
484 guerimand 81
    $table_tr
17229 bpr 82
     <td>$inst <br> $cl
12720 bpr 83
    !if $class_info!=$empty
17229 bpr 84
      <br> $class_info
12720 bpr 85
    !endif
86
    </td>
87
    <td>
88
    !set wims_ref_class=wims_button
89
    !href module=home&user=anonymous,$code,anonymous $name_anonymous
90
    &nbsp;
91
    !set wims_ref_class=wims_button
92
    !href module=$module&type=authparticipant&class=$code $name_registered
93
    </td>
94
    <td>
95
    !set wims_ref_class=wims_button
96
    !href module=adm/class/reguser&class=$code $name_register
97
    </td>
98
    !!<td>
99
    !!!set wims_ref_class=wims_button
100
    !! !href module=adm/class/regclass&job=cloneexemple&sourcecls=$code $name_copy
101
    !!</td>
484 guerimand 102
    </tr>
12720 bpr 103
  !endif
104
!next i
105
</tbody>
106
$table_end
107
!read tablesort.phtml
6669 bpr 108
</div>