Subversion Repositories wimsdev

Rev

Rev 12457 | Rev 16072 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

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