Subversion Repositories wimsdev

Rev

Rev 14572 | Rev 14796 | Go to most recent revision | 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>
29
      !if $activetest>=0 and $type=3
30
        <li><a href="#zteachercontent">$name_zteacher_content</a></li>
31
      !endif
32
      !if $activetest>=1 and $type>=2 and $type<=3
14297 guerimand 33
        <li><a href="#listwork">$name_listwork</a></li>
34
      !endif
35
    !endif
36
  </ul>
37
  <div id="freeworkinfo">
38
     !read proc/freeworkinfo.phtml
39
  </div>
40
  !if $activetest!=-1
41
    <div id="list">
14537 guerimand 42
      !read proc/freeworkdata$(lpara_type[$type]).phtml
14297 guerimand 43
    </div>
44
  !endif
14537 guerimand 45
  !if $activetest>=0 and $type=3
46
    <div id="zteachercontent">
47
      !read proc/zteachercontent3.phtml
48
    </div>
49
  !endif
50
  !if $activetest>=1 and $type>=2 and $type<=3
14297 guerimand 51
    <div id="listwork">
14537 guerimand 52
      !read proc/listwork$(type).phtml
14297 guerimand 53
    </div>
54
  !endif
55
!else
56
  !if $wims_infoshow1=no
57
   <fieldset class="property_fields blockcenter">
58
     <legend> $name_info [
59
     !href cmd=resume&infoshow1=yes $wims_name_showall
60
     ]
61
     </legend>
62
   </fieldset>
63
  !else
64
    !read proc/freeworkinfo.phtml
65
  !endif
66
  !if $activetest!=-1
14572 bpr 67
    !if $wims_infoshow2=no
14773 bpr 68
      !!<fieldset class="property_fields">
14572 bpr 69
      <legend> $name_content [
70
        !href cmd=resume&infoshow2=yes $wims_name_showall
71
       ]
72
      </legend>
73
    !else
74
      !read proc/freeworkdata$(lpara_type[$type]).phtml
75
    !endif
14297 guerimand 76
  !endif
14537 guerimand 77
  !if $activetest>=0 and $type=3
78
    !read proc/zteachercontent3.phtml
14297 guerimand 79
  !endif
14537 guerimand 80
  !if $activetest>=1 and $type>=2 and $type<=3
81
    !read proc/listwork$(type).phtml
82
  !endif
14297 guerimand 83
!endif
84
</div>
85
 
14537 guerimand 86
!!tail