Subversion Repositories wimsdev

Rev

Rev 16804 | 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. !! this test is to disallow relation with exemple class from the class
  28. !if all notwordof $nei_sup $nei_part
  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
  37.  
  38.   </p>
  39.   !formend
  40. !endif
  41.  
  42. !if ($nei isitemof $n_sup,$n_part and $wims_class isitemof $nei_sup,$nei_part) or \
  43.      all isitemof $nei_sup,$nei_part
  44.   <details>
  45.   <summary>$name_importres</summary>
  46.   $name_youcan
  47.   !href cmd=reply&job2=import $name_import_resource
  48.   $name_fromtheclass <span class="wims_emph">$nei_description</span>.
  49.   !set wims_ref_class=wims_button_help
  50.   !href cmd=help&special_parm=import $wims_name_help
  51.   </details>
  52. !endif
  53.  
  54. !if  $nei isitemof $n_sup,$sharing_all
  55.   <details $detail_share>
  56.   <summary>$name_sharing</summary>
  57.   !set wims_ref_class=wims_button_help
  58.   !href cmd=help&special_parm=share $wims_name_help
  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;:
  78.   <ul>
  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>
  91. !endif
  92.  
  93. !if $nei isitemof $n_sup and $sharablelist!=$empty
  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">
  106.  
  107.   !formend
  108.   !if $nsharable!=$empty
  109.     <br><span class="wims_warning">$wims_name_warning</span>: $name_warning_authorized
  110.   !endif
  111.   </li>
  112. !endif
  113. !if  $nei isitemof $n_sup,$sharing_all
  114. </ul></details>
  115. !endif
  116.  
  117. !reset stoprec detail_share
  118.