Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
14297 guerimand 1
<div id="freework_management">
2
!if $jquery_defined=yes
3
  <script>
4
    /*<![CDATA[*/
5
    jQuery(function($$) {
6
      // Get in sessionStorage if a tab was previously selected, and activate it.
7
      var selectedTabId = sessionStorage.getItem("freework_management_selectedTab");
8
      selectedTabId = selectedTabId === null ? 0 : selectedTabId; //default tab = 0
9
      $$("#freework_management").tabs({
10
        active: selectedTabId,
11
        activate : function( event, ui ) {
12
            selectedTabId = $$("#freework_management").tabs("option", "active");
13
            sessionStorage.setItem("freework_management_selectedTab", selectedTabId);
14
        }
15
      });
16
    });
17
    /*]]>*/
18
  </script>
19
  <ul>
20
    <li><a href="#freeworkinfo">$name_info</a></li>
21
    !ifval $activetest!=-1
14537 guerimand 22
      <li><a href="#list">
23
        !if $type<=2
24
          $name_content
25
        !else
26
          $name_parametrage
27
        !endif
28
      </a></li>
17606 czzmrn 29
      !if $activetest>=1 and $showstudlist=yes
14297 guerimand 30
        <li><a href="#listwork">$name_listwork</a></li>
31
      !endif
32
    !endif
33
  </ul>
34
  <div id="freeworkinfo">
35
     !read proc/freeworkinfo.phtml
36
  </div>
37
  !if $activetest!=-1
38
    <div id="list">
14537 guerimand 39
      !read proc/freeworkdata$(lpara_type[$type]).phtml
14297 guerimand 40
    </div>
41
  !endif
17606 czzmrn 42
  !if $activetest>=1 and $showstudlist=yes
14297 guerimand 43
    <div id="listwork">
14934 guerimand 44
      !let archivated=!record 0 of wimshome/log/classes/$wims_class/freeworksdata/$freework/.archivated
45
      !if $archivated=$empty
46
        !read proc/listwork$(type).phtml
47
      !else
48
        $name_archivatedfreework
49
      !endif
14297 guerimand 50
    </div>
51
  !endif
52
!else
53
  !if $wims_infoshow1=no
54
   <fieldset class="property_fields blockcenter">
55
     <legend> $name_info [
56
     !href cmd=resume&infoshow1=yes $wims_name_showall
57
     ]
58
     </legend>
59
   </fieldset>
60
  !else
61
    !read proc/freeworkinfo.phtml
62
  !endif
63
  !if $activetest!=-1
14572 bpr 64
    !if $wims_infoshow2=no
14808 obado 65
      <fieldset class="property_fields blockcenter">
66
        <legend> $name_content [
67
          !href cmd=resume&infoshow2=yes $wims_name_showall
68
         ]
69
        </legend>
70
      </fieldset>
14572 bpr 71
    !else
72
      !read proc/freeworkdata$(lpara_type[$type]).phtml
73
    !endif
14297 guerimand 74
  !endif
17606 czzmrn 75
  !if $activetest>=1  and $showstudlist=yes
14537 guerimand 76
    !read proc/listwork$(type).phtml
77
  !endif
14297 guerimand 78
!endif
79
</div>
80
 
14537 guerimand 81
!!tail