Subversion Repositories wimsdev

Rev

Rev 15859 | Rev 16919 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
11781 obado 1
!reset confirm
2
!read adm/css.phtml
13602 obado 3
 
4
!read js/external/tinymce.phtml .iEdit
11781 obado 5
!header1
6
 
5648 obado 7
<!-- adm/class/sheet/main.phtml START -->
8
 
4039 bpr 9
!read adm/class/classname.phtml $wims_classname\
4026 bpr 10
$wims_institutionname
2210 bpr 11
 
1980 guerimand 12
!if $job iswordof student chseries
12004 obado 13
  !changeto $job.phtml
23 reyssat 14
!endif
10604 bpr 15
!if $job notwordof prep_modify getsource clone
12004 obado 16
  !read adm/title.phtml 1\
4026 bpr 17
$classname\
1724 bpr 18
$name_title $name_title2
7402 bpr 19
!else
12004 obado 20
  !read adm/title.phtml 1\
7402 bpr 21
$name_title\
10604 bpr 22
$(name_$(job1)) $modif
7402 bpr 23
!endif
23 reyssat 24
!if $error!=$empty
12004 obado 25
  !!this is not a true message error ...
26
  !read lang/msg.phtml.$moduclass_lang
15947 guerimand 27
  !goto end
9679 guerimand 28
!else
11999 obado 29
  !if $message!=$empty
9679 guerimand 30
    <div class="wims_msg success">
12004 obado 31
      $message
9679 guerimand 32
    </div>
12004 obado 33
    !reset message
11999 obado 34
  !endif
23 reyssat 35
!endif
36
 
6300 bpr 37
!if $job=getsource
12004 obado 38
  !read getsource.phtml
39
  !goto end
23 reyssat 40
!endif
41
 
9956 obado 42
<div id="sheet_management">
12701 bpr 43
!if $jquery_defined=yes
13306 obado 44
  <script>
12701 bpr 45
    /*<![CDATA[*/
46
    jQuery(function($$) {
47
      // Get in sessionStorage if a tab was previously selected, and activate it.
48
      var selectedTabId = sessionStorage.getItem("sheet_management_selectedTab");
49
      selectedTabId = selectedTabId === null ? 0 : selectedTabId; //default tab = 0
50
      $$("#sheet_management").tabs({
51
        active: selectedTabId,
52
        activate : function( event, ui ) {
53
            selectedTabId = $$("#sheet_management").tabs("option", "active");
54
            sessionStorage.setItem("sheet_management_selectedTab", selectedTabId);
55
        }
12004 obado 56
      });
12701 bpr 57
    });
58
    /*]]>*/
59
  </script>
60
  <ul>
61
    <li><a href="#sheetinfo">$name_info</a></li>
62
    !ifval $activetest!=-1
63
      <li><a href="#list">$name_content</a></li>
15763 guerimand 64
      !if $indivtechvar!=0 and $indivtechvar!=$empty
65
        <li><a href="#individualisation">$name_individualisation</a></li>
66
      !endif
12701 bpr 67
    !endif
68
  </ul>
69
  <div id="sheetinfo">
70
     !read adm/sheet/sheetinfo.phtml
71
  </div>
72
!else
73
  !if $wims_infoshow=no
74
   <fieldset class="property_fields blockcenter">
75
     <legend> $name_info [
76
     !href cmd=resume&infoshow=yes $wims_name_showall
77
     ]
78
     </legend>
79
   </fieldset>
9956 obado 80
  !else
12701 bpr 81
    !read adm/sheet/sheetinfo.phtml
9956 obado 82
  !endif
12701 bpr 83
!endif
23 reyssat 84
 
85
!ifval $activetest=-1
12004 obado 86
  !goto end
23 reyssat 87
!endif
88
 
89
:end1
9956 obado 90
<div id="list">
23 reyssat 91
!if $exocnt=0
14114 obado 92
  <p class="wims_msg info">$name_warning</p>
23 reyssat 93
!else
14114 obado 94
  !if $activetest=0
95
    <a class="wims_button" href="#add_work">$name_add_work</a>
96
  !endif
14709 obado 97
  !set wims_ref_class=wims_button
12004 obado 98
  !href module=adm/sheet&sh=$sheet&job=print $wims_name_printable
3066 bpr 99
 
12004 obado 100
  !read adm/sheet/sheetcontent.phtml
23 reyssat 101
!endif
102
 
103
!if $activetest=0
14114 obado 104
<fieldset id="add_work">
105
  <legend><h2>$name_add_work</h2></legend>
106
  <div class="formHelp">$name_text1</div>
107
  <p>$name_options_to_add...</p>
108
  <div><p class="text_icon search">$name_text2:</p>
109
    !read adm/search_engine/form.phtml
110
  </div>
111
  <p>$name_other_options:</p>
112
  <ul class="flex_box grid-x small-up-1 medium-up-3">
113
    <li class="card cell"><div class="card-section">
114
      $name_text3
115
      !set wims_ref_class=text_icon classexo
116
      !href module=classes/$lang&special_parm=.nocache. $wims_name_classexo
117
    </div></li><li class="card cell"><div class="card-section">
118
      !set wims_ref_class=text_icon tags
14335 bpr 119
      !href target=wims_internal module=adm/browse&job=taxo $name_texttaxo
120
      !!!href target=wims_internal module=adm/browse&job=subject $name_textsubject
14114 obado 121
    </div></li><li class="card cell"><div class="card-section">
122
      !set wims_ref_class=text_icon file
123
      !href cmd=reply&job=prep_putsource $wims_name_putsource
124
    </div></li>
125
    !if $wims_devel_modules iswordof open
126
      <li class="card cell"><div class="card-section">
127
        <span>$name_text4</span>
128
        !href module=adm/modtool $wims_name_modtool
129
      </div></li>
130
    !endif
131
    !if $name_helpprog!=$empty
132
      <li class="card cell"><div class="card-section">$(name_helpprog[1])
133
        !set wims_ref_class=text_icon browse
134
        !href module=help/teacher/program $(name_helpprog[2])
135
        $(name_helpprog[3]).
136
      </li>
137
    !endif
1533 guerimand 138
  </ul>
14114 obado 139
</fieldset>
23 reyssat 140
!endif
9956 obado 141
</div>
15763 guerimand 142
!! -------- end of id=list
23 reyssat 143
 
15763 guerimand 144
!if $indivtechvar!=0 and $indivtechvar!=$empty
145
  <div id="individualisation">
146
    !readproc indiv.proc
147
    !read indiv.phtml
148
  </div>
149
!endif
150
 
1533 guerimand 151
:end
9956 obado 152
</div>
23 reyssat 153
!if $activetest>=0
12701 bpr 154
  !if $activetest=0
155
    !let wims_menu_items=!append line putsource,1,cmd=reply&job=prep_putsource to $wims_menu_items
156
  !endif
157
  !if $job!=getsource and
158
    !let wims_menu_items=!append line sheetsource,1,cmd=reply&job=getsource to $wims_menu_items
159
  !endif
160
  !if $exocnt>0
161
    !let wims_menu_items=!append line duplicatesheet,1,cmd=reply&job=duplicate&sheet=$sheet to $wims_menu_items
162
  !endif
163
  !let wims_menu_items=!append line itemsep,0,\
1533 guerimand 164
printable,1,module=adm/sheet&sh=$sheet&job=print\
165
participantview,1,module=adm/sheet&sh=$sheet to $wims_menu_items
23 reyssat 166
!endif
1533 guerimand 167
 
5648 obado 168
<!-- adm/class/sheet/main.phtml END -->
23 reyssat 169
!tail
170
 
171
!distribute item ,, into job,source,title,desc,prpage