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