Subversion Repositories wimsdev

Rev

Rev 16919 | Rev 17327 | 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
16919 guerimand 67
      !if $prpage_save=yes
68
        <li><a href="#prpage">$(name_shinfo[5])</a></li>
69
      !endif
12701 bpr 70
    !endif
71
  </ul>
72
  <div id="sheetinfo">
73
     !read adm/sheet/sheetinfo.phtml
74
  </div>
75
!else
76
  !if $wims_infoshow=no
77
   <fieldset class="property_fields blockcenter">
78
     <legend> $name_info [
79
     !href cmd=resume&infoshow=yes $wims_name_showall
80
     ]
81
     </legend>
82
   </fieldset>
9956 obado 83
  !else
12701 bpr 84
    !read adm/sheet/sheetinfo.phtml
9956 obado 85
  !endif
12701 bpr 86
!endif
23 reyssat 87
 
88
!ifval $activetest=-1
12004 obado 89
  !goto end
23 reyssat 90
!endif
91
 
92
:end1
9956 obado 93
<div id="list">
23 reyssat 94
!if $exocnt=0
14114 obado 95
  <p class="wims_msg info">$name_warning</p>
23 reyssat 96
!else
14114 obado 97
  !if $activetest=0
98
    <a class="wims_button" href="#add_work">$name_add_work</a>
99
  !endif
14709 obado 100
  !set wims_ref_class=wims_button
12004 obado 101
  !href module=adm/sheet&sh=$sheet&job=print $wims_name_printable
3066 bpr 102
 
12004 obado 103
  !read adm/sheet/sheetcontent.phtml
23 reyssat 104
!endif
105
 
106
!if $activetest=0
14114 obado 107
<fieldset id="add_work">
108
  <legend><h2>$name_add_work</h2></legend>
109
  <div class="formHelp">$name_text1</div>
110
  <p>$name_options_to_add...</p>
111
  <div><p class="text_icon search">$name_text2:</p>
112
    !read adm/search_engine/form.phtml
113
  </div>
114
  <p>$name_other_options:</p>
115
  <ul class="flex_box grid-x small-up-1 medium-up-3">
116
    <li class="card cell"><div class="card-section">
117
      $name_text3
118
      !set wims_ref_class=text_icon classexo
119
      !href module=classes/$lang&special_parm=.nocache. $wims_name_classexo
120
    </div></li><li class="card cell"><div class="card-section">
121
      !set wims_ref_class=text_icon tags
14335 bpr 122
      !href target=wims_internal module=adm/browse&job=taxo $name_texttaxo
123
      !!!href target=wims_internal module=adm/browse&job=subject $name_textsubject
14114 obado 124
    </div></li><li class="card cell"><div class="card-section">
125
      !set wims_ref_class=text_icon file
126
      !href cmd=reply&job=prep_putsource $wims_name_putsource
127
    </div></li>
128
    !if $wims_devel_modules iswordof open
129
      <li class="card cell"><div class="card-section">
130
        <span>$name_text4</span>
131
        !href module=adm/modtool $wims_name_modtool
132
      </div></li>
133
    !endif
134
    !if $name_helpprog!=$empty
135
      <li class="card cell"><div class="card-section">$(name_helpprog[1])
136
        !set wims_ref_class=text_icon browse
137
        !href module=help/teacher/program $(name_helpprog[2])
138
        $(name_helpprog[3]).
139
      </li>
140
    !endif
1533 guerimand 141
  </ul>
14114 obado 142
</fieldset>
23 reyssat 143
!endif
9956 obado 144
</div>
15763 guerimand 145
!! -------- end of id=list
23 reyssat 146
 
15763 guerimand 147
!if $indivtechvar!=0 and $indivtechvar!=$empty
148
  <div id="individualisation">
149
    !readproc indiv.proc
150
    !read indiv.phtml
151
  </div>
152
!endif
153
 
16919 guerimand 154
!if $prpage_save=yes
155
  <div id="prpage">
17131 guerimand 156
!!    !readproc proc/prpage.proc
16919 guerimand 157
    !read proc/prpage.phtml
158
  </div>
159
!endif
160
 
161
 
1533 guerimand 162
:end
9956 obado 163
</div>
23 reyssat 164
!if $activetest>=0
12701 bpr 165
  !if $activetest=0
166
    !let wims_menu_items=!append line putsource,1,cmd=reply&job=prep_putsource to $wims_menu_items
167
  !endif
168
  !if $job!=getsource and
169
    !let wims_menu_items=!append line sheetsource,1,cmd=reply&job=getsource to $wims_menu_items
170
  !endif
171
  !if $exocnt>0
172
    !let wims_menu_items=!append line duplicatesheet,1,cmd=reply&job=duplicate&sheet=$sheet to $wims_menu_items
173
  !endif
174
  !let wims_menu_items=!append line itemsep,0,\
1533 guerimand 175
printable,1,module=adm/sheet&sh=$sheet&job=print\
176
participantview,1,module=adm/sheet&sh=$sheet to $wims_menu_items
23 reyssat 177
!endif
1533 guerimand 178
 
5648 obado 179
<!-- adm/class/sheet/main.phtml END -->
23 reyssat 180
!tail
181
 
16919 guerimand 182
!distribute item ,,,, into job,source,title,desc,prpage