Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
1407 bpr 1
!read adm/title.phtml 3\
5894 bpr 2
$name_neighbor_relation $name_with <span class="wims_emph">$nei_description</span> (<span class="wims_emph">$nei_institution</span>)\
2374 bpr 3
($wims_name_nameteacher: <a href="mailto:$nei_email?subject=Class neighboring relations">$nei_supervisor</a>)
23 reyssat 4
<p>
7684 bpr 5
<b>$name_neighbor_relation. </b>
3064 bpr 6
&nbsp;
7
!set wims_ref_class=wims_button_help
1464 bpr 8
!href cmd=help&special_parm=neibordecl $wims_name_help
6078 czzmrn 9
</p>
10
<p>
2703 bpr 11
!if $wims_class notitemof $nei_sup,$nei_part and all notwordof $nei_sup $nei_part
12457 bpr 12
  <span class="wims_emph">$nei_description</span> $name_text1.
23 reyssat 13
!else
12457 bpr 14
  <span class="wims_emph">$nei_description</span> $name_text2
15
  !if ($wims_class isitemof $nei_sup and $wims_class isitemof $nei_part) or (all iswordof $nei_sup and all iswordof $nei_part)
16
    $n_n3.
23 reyssat 17
  !else
12457 bpr 18
    !if $wims_class isitemof $nei_sup or all iswordof $nei_sup
19
      $n_n1.
20
    !else
21
      $n_n2.
22
    !endif
23 reyssat 23
  !endif
24
!endif
6078 czzmrn 25
</p>
5926 bpr 26
 
16794 guerimand 27
!! this test is to disallow relation with exemple class from the class
2703 bpr 28
!if all notwordof $nei_sup $nei_part
12457 bpr 29
  !form reply
30
  <p>
31
  $name_accept
32
  !formselect nlevel from 0 to 3 prompt $wims_name_no, $n_n1, $n_n2, $n_n3
33
  <input type="submit" value="$wims_name_tosave" />
34
  &nbsp;
35
  !set wims_ref_class=wims_button_help
36
  !href cmd=help&special_parm=neibordecl $wims_name_help
3064 bpr 37
 
12457 bpr 38
  </p>
39
  !formend
2703 bpr 40
!endif
23 reyssat 41
 
42
!if ($nei isitemof $n_sup,$n_part and $wims_class isitemof $nei_sup,$nei_part) or \
12457 bpr 43
     all isitemof $nei_sup,$nei_part
16794 guerimand 44
  <details>
45
  <summary>$name_importres</summary>
46
  $name_youcan
12457 bpr 47
  !href cmd=reply&job2=import $name_import_resource
48
  $name_fromtheclass <span class="wims_emph">$nei_description</span>.
12837 bpr 49
  !set wims_ref_class=wims_button_help
50
  !href cmd=help&special_parm=import $wims_name_help
16794 guerimand 51
  </details>
23 reyssat 52
!endif
53
 
16794 guerimand 54
!if  $nei isitemof $n_sup,$sharing_all
16804 guerimand 55
  <details $detail_share>
16794 guerimand 56
  <summary>$name_sharing</summary>
16072 bpr 57
  !set wims_ref_class=wims_button_help
58
  !href cmd=help&special_parm=share $wims_name_help
59
  <ul>
23 reyssat 60
!endif
61
 
62
!if $wims_class isitemof $nei_sup and $nei isitemof $n_sup
16072 bpr 63
  <li>
64
  !if $nsharable=$empty
65
    $name_nonewres
66
  !else
67
    $name_newres
68
    !set names=!replace , by , $$name_ in $$name_$nsharable
69
    <em>$names</em>.
70
    !href cmd=reply&job2=addshare $name_click_ok
23 reyssat 71
.
16072 bpr 72
  !endif
73
  </li>
23 reyssat 74
!endif
75
 
76
!if $nei isitemof $sharing_all
16793 guerimand 77
  $name_sharealready <span="wims_emph">$nei_description</span>&nbsp;:
78
  <ul>
16072 bpr 79
  !for r in $sharelist
80
    !if $(sharing_$r)=$nei
81
      <li><b><em>$(name_$r)</em></b>
82
      !set wims_class_ref=wims_button.
83
      !href cmd=reply&job2=stopshare&stoprec=$r $name_stopsharing
84
.
85
      !set wims_ref_class=wims_button_help
86
      !href cmd=help&special_parm=stopshare $wims_name_help
87
      </li>
88
    !endif
89
  !next r
90
  </ul>
23 reyssat 91
!endif
16793 guerimand 92
 
23 reyssat 93
!if $nei isitemof $n_sup and $sharablelist!=$empty
16072 bpr 94
  <li>
95
  !form reply
96
    <input type="hidden" name="changeshare" value="yes" />
97
    $name_chooseres:
98
    &nbsp;
99
    !set wims_ref_class=wims_button_help
100
     !href cmd=help&special_parm=sharable $wims_name_help
101
    <br />
102
     !set sh=!nospace $sharablelist
103
     !set sh=!replace internal , by , $$name_ in $$name_$sharablelist
104
     !formcheckbox mksharable list $sharablelist prompt $sh
105
     <input type="submit" value="$wims_name_tosave" />
7684 bpr 106
 
16072 bpr 107
  !formend
108
  !if $nsharable!=$empty
109
    <br /><span class="wims_warning">$wims_name_warning</span>: $name_warning_authorized
110
  !endif
111
  </li>
23 reyssat 112
!endif
16794 guerimand 113
!if  $nei isitemof $n_sup,$sharing_all
114
</ul></details>
115
!endif
23 reyssat 116
 
16804 guerimand 117
!reset stoprec detail_share