Subversion Repositories wimsdev

Rev

Rev 16221 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. <!-- _widgets/sequence.phtml -->
  2.  
  3. !if $wims_user=supervisor and $wims_sequence_withtechvar=1
  4. <div class="wims alert">Fabrice test</div>
  5. !endif
  6. <div id="widget_sequence">
  7.   !if $seq_cnt >1 and $seq=$empty
  8.     !if $jquery_defined=yes
  9.       !read adm/tabscript sequence
  10.     !endif
  11.     !set seq_reverse=!defof sequence_reverse in wimshome/log/classes/$wims_class/seq/.def
  12.     <ul id="wims_seq_summary">
  13.     !reset list_seq
  14.     !for i=1 to $seq_cnt
  15.       !if $seq_reverse=yes
  16.         !set u=$[$seq_cnt+1-$i]
  17.       !else
  18.         !set u=$i
  19.       !endif
  20.       !set seq_=!record 1 of wimshome/log/classes/$wims_class/seq/.sequence$u
  21.       !distribute line $seq_ into tis_,cos_,obj_,o_
  22.       !readproc adm/class/checkuserscorecondition S$u
  23.       !if $o_>0 and $output=yes
  24.         !set list_seq=!append item $u to $list_seq
  25.         !if $tis_!=$empty
  26.           <li><a href="#wims_seq_$u">$tis_</a></li>
  27.         !else
  28.           <li><a href="#wims_seq_$u">$wims_name_sequence $u</a></li>
  29.          !endif
  30.       !endif
  31.     !next i
  32.     !read themes/_widgets/user_varfreework.phtml
  33.     !if $fwcnt>0
  34.       <li><a href="#wims_user_freework">$wims_name_Freeworks</a></li>
  35.     !endif
  36.     </ul>
  37.   !endif
  38.  
  39.   !if $wims_user=supervisor and $sequence_withtechvar=1
  40.     <div class="wims_msg warning">$name_sequence_withtechvar_warning</div>
  41.   !endif
  42.  
  43.   !if $seq>0
  44.     !read ./sequence.phtml $seq
  45.     !reset seq
  46.   !else
  47.     !if $seq_cnt=1
  48.       !set seq_=!record 1 of wimshome/log/classes/$wims_class/seq/.sequence1
  49.       !distribute line $seq_ into tis_,cos_,obj_,o_
  50.       !readproc adm/class/checkuserscorecondition S1
  51.       !if $output=yes and $o_>0
  52.         !let list_seq=1
  53.       !endif
  54.     !endif
  55.     !for i=1 to $seq_cnt
  56.       !if $seq_reverse=yes
  57.         !set u=$[$seq_cnt+1-$i]
  58.       !else
  59.         !set u=$i
  60.       !endif
  61.       !if $u isitemof $list_seq
  62.         !read ./sequence.phtml $u
  63.       !endif
  64.     !next i
  65.     !if $fwcnt>0
  66.       !read themes/_widgets/userfreework.phtml
  67.     !endif
  68.   !endif
  69. </div>
  70.  
  71. !read adm/class/seq_legend.phtml
  72.  
  73. !if $seq_cnt>0
  74.   !read themes/_widgets/user_varsheet.phtml
  75.   !read themes/_widgets/user_varexam.phtml
  76. !endif
  77.  
  78. <!--end  _widgets/sequence.phtml -->
  79.