Subversion Repositories wimsdev

Rev

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