forked from sdc/xerte_2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproperties.php
283 lines (223 loc) · 11.4 KB
/
properties.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<?php
require_once(dirname(__FILE__) . "/config.php");
require_once(dirname(__FILE__) . "/website_code/php/template_library.php");
_load_language_file("/properties.inc");
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?PHP echo PROPERTIES_TITLE; ?></title>
<!--
University of Nottingham Xerte Online Toolkits
Properties HTML page
Version 1.0
-->
<link href="website_code/styles/properties_tab.css" media="screen" type="text/css" rel="stylesheet" />
<link href="website_code/styles/frontpage.css" media="screen" type="text/css" rel="stylesheet" />
<link href="website_code/styles/xerte_buttons.css" media="screen" type="text/css" rel="stylesheet" />
<script type="text/javascript" language="javascript" src="website_code/scripts/ajax_management.js"></script>
<script type="text/javascript" language="javascript">
var site_url = "<?php echo $xerte_toolkits_site->site_url; ?>";
var properties_ajax_php_path = "website_code/php/properties/";
var management_ajax_php_path = "website_code/php/management/";
var ajax_php_path = "website_code/php/";
</script>
<script type="text/javascript" language="javascript" src="website_code/scripts/validation.js"></script>
<?php
_include_javascript_file("website_code/scripts/import.js");
_include_javascript_file("website_code/scripts/template_management.js");
_include_javascript_file("website_code/scripts/properties_tab.js");
_include_javascript_file("website_code/scripts/screen_display.js");
_include_javascript_file("website_code/scripts/file_system.js");
$template_supports = $learning_objects->{get_template_type((int) $_GET['template_id'])}->supports;
if($template_supports==""){
$template_supports = array();
}
?>
</head>
<!--
Start the page and once loaded set the default option
-->
<body onload="javascript:tab_highlight('1');properties_template()">
<!--
Hidden Iframes to allow for ajax file uploads and Downloads (Could be one I suppose)
-->
<iframe id="upload_iframe" name="upload_iframe" src="#" style="width:0px;height:0px; display:none"></iframe>
<iframe id="download_frame" style="display:none"></iframe>
<div class="properties_main">
<div class="corner" style="background-image:url(website_code/images/MessBoxTL.gif); background-position:top left;">
</div>
<div class="central" style="background-image:url(website_code/images/MessBoxTop.gif);">
</div>
<div class="corner" style="background-image:url(website_code/images/MessBoxTR.gif); background-position:top right;">
</div>
<div class="main_area_holder_1">
<div class="main_area_holder_2">
<div class="main_area">
<div>
<span id="title">
<img src="website_code/images/Icon_Page.gif" style="vertical-align:middle; padding-left:10px;" />
<?PHP echo PROPERTIES_DISPLAY_TITLE; ?>
</span>
</div>
<div id="data_area">
<!--
Dynamic area is the DIV used by the AJAX queries (The right hand side area of the properties panel.
-->
<div id="dynamic_area">
</div>
<!--
Set up the three parts for each tab
Structure
tab1-1 is the small part to the right of the main tab, this is used to deal with the border round the main section
tab1 is the actual tab with the text in it
-->
<div id="menu_tabs">
<div class="tab_spacer" style="height:35px;">
</div>
<div id="tab1-1" class="tab_right_pad" style="height:38px;">
</div>
<div id="tab1" class="tab" style="width:146px; height:38px;">
<p onclick="javascript:tab_highlight('1');properties_template()">
<?PHP echo PROPERTIES_TAB_PROJECT; ?>
</p>
</div>
<div class="tab_spacer">
</div>
<div id="tab2-1" class="tab_right_pad" style="height:38px;">
</div>
<div id="tab2" class="tab" style="width:146px; height:38px;">
<p onclick="javascript:tab_highlight('2'); notes_template()">
<?PHP echo PROPERTIES_TAB_NOTES; ?>
</p>
</div>
<div class="tab_spacer">
</div>
<?PHP
if(in_array("media", $template_supports)){
?>
<div id="tab3-1" class="tab_right_pad" style="height:38px;">
</div>
<div id="tab3" class="tab" style="width:146px; height:38px;">
<p onclick="javascript:tab_highlight('3'); media_and_quota_template()">
<?PHP echo PROPERTIES_TAB_MEDIA; ?>
</p>
</div>
<div class="tab_spacer">
</div>
<?PHP
}
?>
<div id="tab4-1" class="tab_right_pad" style="height:38px;">
</div>
<div id="tab4" class="tab" style="width:146px; height:38px;">
<p onclick="javascript:tab_highlight('4'); access_template()">
<?PHP echo PROPERTIES_TAB_ACCESS; ?>
</p>
</div>
<div class="tab_spacer">
</div>
<div id="tab5-1" class="tab_right_pad" style="height:38px;">
</div>
<div id="tab5" class="tab" style="width:146px; height:38px;">
<p onclick="javascript:tab_highlight('5'); sharing_status_template()">
<?PHP echo PROPERTIES_TAB_SHARED; ?>
</p>
</div>
<div class="tab_spacer">
</div>
<div id="tab6-1" class="tab_right_pad" style="height:38px;">
</div>
<div id="tab6" class="tab" style="width:146px; height:38px;">
<p onclick="javascript:tab_highlight('6'); rss_template()">
<?PHP echo PROPERTIES_TAB_RSS; ?>
</p>
</div>
<div class="tab_spacer">
</div>
<div id="tab7-1" class="tab_right_pad" style="height:38px;">
</div>
<div id="tab7" class="tab" style="width:146px; height:38px;">
<p onclick="javascript:tab_highlight('7');syndication_template()">
<?PHP echo PROPERTIES_TAB_OPEN; ?>
</p>
</div>
<div class="tab_spacer">
</div>
<?PHP
if(in_array("export", $template_supports)){
?>
<div id="tab8-1" class="tab_right_pad" style="height:38px;">
</div>
<div id="tab8" class="tab" style="width:146px; height:38px;">
<p onclick="javascript:tab_highlight('8');export_template()">
<?PHP echo PROPERTIES_TAB_EXPORT; ?>
</p>
</div>
<div class="tab_spacer">
</div>
<?PHP
}
?>
<?PHP
if(in_array("peer", $template_supports)){
?>
<div id="tab9-1" class="tab_right_pad" style="height:38px;">
</div>
<div id="tab9" class="tab" style="width:146px; height:38px;">
<p onclick="javascript:tab_highlight('9');peer_template()">
<?PHP echo PROPERTIES_TAB_PEER; ?>
</p>
</div>
<div class="tab_spacer">
</div>
<?PHP
}
?>
<?PHP
if(in_array("give", $template_supports)){
?>
<div id="tab10-1" class="tab_right_pad" style="height:38px;">
</div>
<div id="tab10" class="tab" style="width:146px; height:38px;">
<p onclick="javascript:tab_highlight('10');gift_template()">
<?PHP echo PROPERTIES_TAB_GIVE; ?>
</p>
</div>
<div class="tab_spacer">
</div>
<?PHP
}
?>
<?PHP
if(in_array("xml", $template_supports)){
?>
<div id="tab11-1" class="tab_right_pad" style="height:38px;">
</div>
<div id="tab11" class="tab" style="width:146px; height:38px;">
<p onclick="javascript:tab_highlight('11');xml_template()">
<?PHP echo PROPERTIES_TAB_XML; ?>
</p>
</div>
<!--
Last spacer given sufficient heigbt to fill the rest of the border for the right hand panel
-->
<?PHP
}
?>
<div class="tab_spacer" style="height:<?PHP echo (((5-count($template_supports))*53))+18; ?>px;">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="corner" style="background-image:url(website_code/images/MessBoxBL.gif); background-position:top left;">
</div>
<div class="central" style="background-image:url(website_code/images/MessBoxBottom.gif);">
</div>
<div class="corner" style="background-image:url(website_code/images/MessBoxBR.gif); background-position:top right;">
</div>
</div>
</body>
</html>