Project

General

Profile

« Previous | Next » 

Revision 944

Added by Matthias almost 16 years ago

added skinable Admin Interface

View differences:

trunk/CHANGELOG
11 11
! = Update/Change
12 12

  
13 13
------------------------------------- 2.8.0 -------------------------------------
14
22-Feb-2009 Matthias Gallas
15
+	added skinable Admin Interface
14 16
21-Feb-2009 Christian Sommer
15 17
+	added update of search table missing in Changeset 941
16 18
#	fixed wrong index in language array
trunk/wb/upgrade-script.php
52 52

  
53 53
#container {
54 54
	width:85%;
55
	background: #A8BCCB url(<?php echo ADMIN_URL;?>/interface/background.png) repeat-x;
55
	background: #A8BCCB url(<?php echo THEME_URL;?>/images/background.png) repeat-x;
56 56
	border:1px solid #000;
57 57
	color:#000;
58 58
	margin:2em auto;
......
90 90
</head>
91 91
<body>
92 92
<div id="container">
93
<img src="<?php echo ADMIN_URL;?>/interface/logo.png" alt="Website Baker Logo" />
93
<img src="<?php echo THEME_URL;?>/images/logo.png" alt="Website Baker Logo" />
94 94

  
95 95
<h1>Website Baker Upgrade</h1>
96 96

  
......
127 127
// function to add a new field into a table
128 128
function db_add_field($field, $table, $desc) {
129 129
	global $database; global $OK; global $FAIL;
130
	echo "<u>Adding field '$field' to table '$table'</u><br />";
131 130
	$table = TABLE_PREFIX.$table;
132 131
	$query = $database->query("DESCRIBE $table '$field'");
133 132
	if($query->numRows() == 0) { // add field
......
149 148
/**********************************************************
150 149
 *  - Adding field sec_anchor to settings table
151 150
 */
152
echo "<br />Adding key sec_anchor to settings table<br />";
151
echo "<br />Adding sec_anchor to settings table<br />";
153 152
$cfg = array(
154 153
	'sec_anchor' => 'wb_'
155 154
);
......
157 156
	db_add_key_value($key, $value);
158 157
}
159 158

  
159

  
160 160
/**********************************************************
161
 *  - Adding field default_theme to settings table
162
 */
163
echo "<br />Adding default_theme to settings table<br />";
164
$cfg = array(
165
	'default_theme' => 'wb_theme'
166
);
167
foreach($cfg as $key=>$value) {
168
	db_add_key_value($key, $value);
169
}
170

  
171

  
172
/**********************************************************
161 173
 *  - Adding redirect timer to settings table
162 174
 */
163 175
echo "<br />Adding redirect timer to settings table<br />";
......
168 180
	db_add_key_value($key, $value);
169 181
}
170 182

  
183

  
171 184
/**********************************************************
172 185
 *  - Add field "redirect_type" to table "mod_menu_link"
173 186
 */
......
185 198
$database->query($sql);
186 199
echo ($database->query($sql)) ? " $OK<br />" : " $FAIL<br />";
187 200

  
201

  
188 202
/**********************************************************
203
 *  - Set Version to WB 2.8 BETA
204
 */
205
echo "<br />Update database version number to 2.8 BETA : ";
206
$version = '2.8 BETA';
207
echo ($database->query("UPDATE `".TABLE_PREFIX."settings` SET `value` = '$version' WHERE `name` = 'wb_version'")) ? " $OK<br />" : " $FAIL<br />";
208

  
209

  
210
/**********************************************************
211
 *  - Reload all addons
212
 */
213

  
214
//delete modules
215
$database->query("DELETE FROM ".TABLE_PREFIX."addons WHERE type = 'module'");
216
// Load all modules
217
if($handle = opendir(WB_PATH.'/modules/')) {
218
	while(false !== ($file = readdir($handle))) {
219
		if($file != '' AND substr($file, 0, 1) != '.' AND $file != 'admin.php' AND $file != 'index.php') {
220
			load_module(WB_PATH.'/modules/'.$file);
221
		}
222
	}
223
	closedir($handle);
224
}
225
echo '<br />Modules reloaded<br />';
226

  
227
//delete templates		
228
$database->query("DELETE FROM ".TABLE_PREFIX."addons WHERE type = 'template'");
229
// Load all templates
230
if($handle = opendir(WB_PATH.'/templates/')) {
231
	while(false !== ($file = readdir($handle))) {
232
		if($file != '' AND substr($file, 0, 1) != '.' AND $file != 'index.php') {
233
			load_template(WB_PATH.'/templates/'.$file);
234
		}
235
	}
236
	closedir($handle);
237
}
238
echo '<br />Templates reloaded<br />';
239

  
240
//delete languages
241
$database->query("DELETE FROM ".TABLE_PREFIX."addons WHERE type = 'language'");
242
// Load all languages
243
if($handle = opendir(WB_PATH.'/languages/')) {
244
	while(false !== ($file = readdir($handle))) {
245
		if($file != '' AND substr($file, 0, 1) != '.' AND $file != 'index.php') {
246
			load_language(WB_PATH.'/languages/'.$file);
247
		}
248
	}
249
	closedir($handle);
250
}
251
echo '<br />Languages reloaded<br />';
252

  
253

  
254
/**********************************************************
189 255
 *  - End of upgrade script
190 256
 */
191 257
echo '<p style="font-size:120%;"><strong>Congratulations: The upgrade script is finished ...</strong></p>';
trunk/wb/admin/images/icons/index.php
1
<?php
2

  
3
// $Id$
4

  
5
/*
6

  
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2009, Ryan Djurovich
9

  
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
14

  
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
19

  
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23

  
24
*/
25

  
26
header("Location: ../../../index.php");
27

  
28
?>
29 0

  
trunk/wb/admin/images/index.php
1
<?php
2

  
3
// $Id$
4

  
5
/*
6

  
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2009, Ryan Djurovich
9

  
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
14

  
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
19

  
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23

  
24
*/
25

  
26
header("Location: ../../index.php");
27

  
28
?>
29 0

  
trunk/wb/admin/groups/template.html
1
<!-- BEGIN main_block -->
2

  
3
<form name="groups" action="groups.php" method="post">
4

  
5
<input type="hidden" name="action" value="delete" />
6

  
7
<table cellpadding="0" cellspacing="0" border="0" width="100%">
8
<tr>
9
	<td align="left">
10
		<h2>{HEADING_MODIFY_DELETE_GROUP}</h2>
11
	</td>
12
	<td align="right">
13
		<a href="{ADMIN_URL}/users/index.php">{TEXT_MANAGE_USERS}</a>
14
	</td>
15
</tr>
16
</table>
17

  
18
<br />
19

  
20
<select name="group_id" style="width: 500px;">
21
<!-- BEGIN list_block -->
22
	<option value="{VALUE}">{NAME}</option>
23
<!-- END list_block -->
24
</select>
25

  
26
<input type="submit" name="modify" style="width: 100px;" value="{TEXT_MODIFY}" onclick="document.groups.action.value = 'modify';" class="{DISPLAY_MODIFY}" />
27
<input type="submit" name="delete" style="width: 100px;" value="{TEXT_DELETE}" onclick="return confirm('{CONFIRM_DELETE}');" class="{DISPLAY_DELETE}" />
28

  
29
</form>
30

  
31
<br />
32

  
33
<h2 class="{DISPLAY_ADD}">{HEADING_ADD_GROUP}</h2>
34

  
35
<!-- END main_block -->
36 0

  
trunk/wb/admin/groups/group_form.html
1
<!-- BEGIN main_block -->
2

  
3
<style type="text/css">
4
h3 {
5
	margin: 0;
6
	color: #333333;
7
	font-size: 14px;
8
}
9
</style>
10

  
11
<h2 style="display: {DISPLAY_EXTRA};">{HEADING_MODIFY_GROUP}</h2>
12

  
13
<form name="group" action="{ACTION_URL}" method="post" class="{DISPLAY_ADD}">
14
<input type="hidden" name="advanced" value="{ADVANCED}" />
15
<input type="hidden" name="group_id" value="{GROUP_ID}" />
16

  
17
<table cellpadding="5" cellspacing="0" border="0" width="100%">
18
<tr>
19
	<td width="150">{TEXT_NAME}:</td>
20
	<td>
21
		<input type="text" name="group_name" maxlength="255" value="{GROUP_NAME}" style="width: 100%" />
22
	</td>
23
</tr>
24
</table>
25
<table cellpadding="5" cellspacing="0" border="0" width="100%" style="display: {DISPLAY_BASIC}">
26
<tr>
27
	<td width="150" valign="top">{TEXT_SYSTEM_PERMISSIONS}:</td>
28
	<td>
29
		<table cellpadding="0" cellspacing="0" width="100%" border="0">
30
		<tr>
31
			<td>
32
				<input type="checkbox" name="pages" id="pages" value="1" {pages_checked} />
33
				<label for="pages">{SECTION_PAGES}</label>
34
			</td>
35
			<td>
36
				<input type="checkbox" name="media" id="media" value="1" {media_checked} />
37
				<label for="media">{SECTION_MEDIA}</label>
38
			</td>
39
			<td>
40
				<input type="checkbox" name="modules" id="modules" value="1" {modules_checked} />
41
				<label for="modules">{SECTION_MODULES}</label>
42
			</td>
43
			<td>
44
				<input type="checkbox" name="templates" id="templates" value="1" {templates_checked} />
45
				<label for="templates">{SECTION_TEMPLATES}</label>
46
			</td>
47
		</tr>
48
		<tr>
49
			<td>
50
				<input type="checkbox" name="languages" id="languages" value="1" {languages_checked} />
51
				<label for="languages">{SECTION_LANGUAGES}</label>
52
			</td>
53
			<td>		
54
				<input type="checkbox" name="settings" id="settings" value="1" {settings_checked} />
55
				<label for="settings">{SECTION_SETTINGS}</label>
56
			</td>
57
			<td>
58
				<input type="checkbox" name="users" id="users" value="1" {users_checked} />
59
				<label for="users">{SECTION_USERS}</label>
60
			</td>
61
			<td>
62
				<input type="checkbox" name="groups" id="groups" value="1" {groups_checked} />
63
				<label for="groups">{SECTION_GROUPS}</label>
64
			</td>
65
		</tr>
66
		<tr>
67
			<td>
68
				<input type="checkbox" name="admintools" id="admintools" value="1" {admintools_checked} />
69
				<label for="admintools">{SECTION_ADMINTOOLS}</label>
70
			</td>
71
			<td>&nbsp;</td>
72
			<td>&nbsp;</td>
73
			<td>&nbsp;</td>
74
		</tr>
75
		</table>
76
	</td>
77
</tr>
78
</table>
79
<table cellpadding="5" cellspacing="0" border="0" width="100%" style="display: {DISPLAY_ADVANCED}">
80
<tr>
81
	<td valign="top">{TEXT_SYSTEM_PERMISSIONS}:</td>
82
	<td align="left">
83

  
84

  
85
<table cellpadding="3" cellspacing="0" border="0" width="400">
86
<tr>
87
	<td colspan="4">
88
		<h3>{SECTION_PAGES}</h3>
89
	</td>
90
</tr>
91
<tr>
92
	<td><input name="pages_view" id="pages_view" type="checkbox" value="1" {pages_view_checked}></td>
93
	<td><label for="pages_view">{TEXT_VIEW}</label></td>
94
	<td><input name="pages_add" id="pages_add" type="checkbox" value="1" {pages_add_checked}></td>
95
	<td>
96
		<label for="pages_add">{TEXT_ADD}</label>
97
		&nbsp;
98
		(<input name="pages_add_l0" id="pages_add_l0" type="checkbox" value="1" {pages_add_l0_checked}>
99
		<label for="pages_add_l0">{TEXT_LEVEL} 0</label>)
100
	</td>
101
</tr>
102
<tr>
103
	<td><input name="pages_settings" id="pages_settings" type="checkbox" value="1" {pages_settings_checked}></td>
104
	<td><label for="pages_settings">{TEXT_MODIFY_SETTINGS}</label></td>
105
	<td><input name="pages_modify" id="pages_modify" type="checkbox" value="1" {pages_modify_checked}></td>
106
	<td><label for="pages_modify">{TEXT_MODIFY_CONTENT}</label></td>
107
</tr>
108
<tr>
109
	<td><input name="pages_intro" id="pages_intro" type="checkbox" value="1" {pages_intro_checked}></td>
110
	<td><label for="pages_intro">{HEADING_MODIFY_INTRO_PAGE}</label></td>
111
	<td><input name="pages_delete" id="pages_delete" type="checkbox" value="1" {pages_delete_checked}></td>
112
	<td><label for="pages_delete">{TEXT_DELETE}</label></td>
113
</tr>
114
<tr>
115
	<td colspan="4">
116
		<h3>{SECTION_MEDIA}</h3>
117
	</td>
118
</tr>
119
<tr>
120
	<td><input name="media_view" id="media_view" type="checkbox" value="1" {media_view_checked}></td>
121
	<td><label for="media_view">{TEXT_VIEW}</label></td>
122
	<td><input name="media_upload" id="media_upload" type="checkbox" value="1" {media_upload_checked}></td>
123
	<td><label for="media_upload">{TEXT_UPLOAD_FILES}</label></td>
124
</tr>
125
<tr>
126
	<td><input name="media_rename" id="media_rename" type="checkbox" value="1" {media_rename_checked}></td>
127
	<td><label for="media_rename">{TEXT_RENAME}</label></td>
128
	<td><input name="media_delete" id="media_delete" type="checkbox" value="1" {media_delete_checked}></td>
129
	<td><label for="media_delete">{TEXT_DELETE}</label></td>
130
</tr>
131
<tr>
132
	<td><input name="media_create" id="media_create" type="checkbox" value="1" {media_create_checked}></td>
133
	<td><label for="media_create">{TEXT_CREATE_FOLDER}</label></td>
134
	<td>&nbsp;</td>
135
	<td>&nbsp;</td>
136
</tr>
137
<tr>
138
	<td colspan="4">
139
		<h3>{SECTION_MODULES}</h3>
140
	</td>
141
</tr>
142
<tr>
143
	<td><input name="modules_view" id="modules_view" type="checkbox" value="1" {modules_view_checked}></td>
144
	<td><label for="modules_view">{TEXT_VIEW}</label></td>
145
	<td><input name="modules_install" id="modules_install" type="checkbox" value="1" {modules_install_checked}></td>
146
	<td><label for="modules_install">{TEXT_ADD}</label></td>
147
</tr>
148
<tr>
149
	<td><input name="modules_uninstall" id="modules_uninstall" type="checkbox" value="1" {modules_uninstall_checked}></td>
150
	<td><label for="modules_uninstall">{TEXT_DELETE}</label></td>
151
	<td>&nbsp;</td>
152
	<td>&nbsp;</td>
153
</tr>
154
<tr>
155
	<td colspan="4">
156
		<h3>{SECTION_TEMPLATES}</h3>
157
	</td>
158
</tr>
159
<tr>
160
	<td><input name="templates_view" id="templates_view" type="checkbox" value="1" {templates_view_checked}></td>
161
	<td><label for="templates_view">{TEXT_VIEW}</label></td>
162
	<td><input name="templates_install" id="templates_install" type="checkbox" value="1" {templates_install_checked}></td>
163
	<td><label for="templates_install">{TEXT_ADD}</label></td>
164
</tr>
165
<tr>
166
	<td><input name="templates_uninstall" id="templates_uninstall" type="checkbox" value="1" {templates_uninstall_checked}></td>
167
	<td><label for="templates_uninstall">{TEXT_DELETE}</label></td>
168
	<td>&nbsp;</td>
169
	<td>&nbsp;</td>
170
</tr>
171
<tr>
172
	<td colspan="4">
173
		<h3>{SECTION_LANGUAGES}</h3>
174
	</td>
175
</tr>
176
<tr>
177
	<td><input name="languages_view" id="languages_view" type="checkbox" value="1" {languages_view_checked}></td>
178
	<td><label for="languages_view">{TEXT_VIEW}</label></td>
179
	<td><input name="languages_install" id="languages_install" type="checkbox" value="1" {languages_install_checked}></td>
180
	<td><label for="languages_install">{TEXT_ADD}</label></td>
181
</tr>
182
<tr>
183
	<td><input name="languages_uninstall" id="languages_uninstall" type="checkbox" value="1" {languages_uninstall_checked}></td>
184
	<td><label for="languages_uninstall">{TEXT_DELETE}</label></td>
185
	<td>&nbsp;</td>
186
	<td>&nbsp;</td>
187
</tr>
188
<tr>
189
	<td colspan="4">
190
		<h3>{SECTION_SETTINGS}</h3>
191
	</td>
192
</tr>
193
<tr>
194
	<td><input name="settings_basic" id="settings_basic" type="checkbox" value="1" {settings_basic_checked}></td>
195
	<td><label for="settings_basic">{TEXT_BASIC}</label></td>
196
	<td><input name="settings_advanced" id="settings_advanced" type="checkbox" value="1" {settings_advanced_checked}></td>
197
	<td><label for="settings_advanced">{TEXT_ADVANCED}</label></td>
198
</tr>
199
<tr>
200
	<td colspan="4">
201
		<h3>{SECTION_USERS}</h3>
202
	</td>
203
</tr>
204
<tr>
205
	<td><input name="users_view" id="users_view" type="checkbox" value="1" {users_view_checked}></td>
206
	<td><label for="users_view">{TEXT_VIEW}</label></td>
207
	<td><input name="users_add" id="users_add" type="checkbox" value="1" {users_add_checked}></td>
208
	<td><label for="users_add">{TEXT_ADD}</label></td>
209
</tr>
210
<tr>
211
	<td><input name="users_modify" id="users_modify" type="checkbox" value="1" {users_modify_checked}></td>
212
	<td><label for="users_modify">{TEXT_MODIFY}</label></td>
213
	<td><input name="users_delete" id="users_delete" type="checkbox" value="1" {users_delete_checked}></td>
214
	<td><label for="users_delete">{TEXT_DELETE}</label></td>
215
</tr>
216
<tr>
217
	<td colspan="4">
218
		<h3>{SECTION_GROUPS}</h3>
219
	</td>
220
</tr>
221
<tr>
222
	<td><input name="groups_view" id="groups_view" type="checkbox" value="1" {groups_view_checked}></td>
223
	<td><label for="groups_view">{TEXT_VIEW}</label></td>
224
	<td><input name="groups_add" id="groups_add" type="checkbox" value="1" {groups_add_checked}></td>
225
	<td><label for="groups_add">{TEXT_ADD}</label></td>
226
</tr>
227
<tr>
228
	<td><input name="groups_modify" id="groups_modify" type="checkbox" value="1" {groups_modify_checked}></td>
229
	<td><label for="groups_modify">{TEXT_MODIFY}</label></td>
230
	<td><input name="groups_delete" id="groups_delete" type="checkbox" value="1" {groups_delete_checked}></td>
231
	<td><label for="groups_delete">{TEXT_DELETE}</label></td>
232
</tr>
233
</table>
234

  
235

  
236
	</td>
237
</tr>
238
</table>
239

  
240
<table cellpadding="5" cellspacing="0" border="0" width="100%" style="padding-top: 5px; padding-bottom: 5px;">
241
<tr>
242
	<td valign="top" align="left" width="150">
243
	{TEXT_MODULE_PERMISSIONS}:
244
	</td>
245
	<td valign="top" align="left">
246
		<ul style="margin: 0; padding: 0; list-style: none;">
247
			<!-- BEGIN module_list_block -->
248
			<li>
249
				<input type="checkbox" name="module_permissions[]" id="m_{VALUE}" value="{VALUE}" {CHECKED} />
250
				<label for="m_{VALUE}">{NAME}</label>
251
			</li>
252
			<!-- END module_list_block -->
253
		</ul>
254
	</td>
255
	<td valign="top" align="left" width="150">
256
	{TEXT_TEMPLATE_PERMISSIONS}:
257
	</td>
258
	<td valign="top" align="left">
259
		<ul style="margin: 0; padding: 0; list-style: none;">
260
			<!-- BEGIN template_list_block -->
261
			<li>
262
				<input type="checkbox" name="template_permissions[]" id="t_{VALUE}" value="{VALUE}" {CHECKED} />
263
				<label for="t_{VALUE}">{NAME}</label>
264
			</li>
265
			<!-- END template_list_block -->
266
		</ul>
267
	</td>
268
</tr>
269
</table>
270

  
271
<table cellpadding="5" cellspacing="0" border="0" width="100%">
272
<tr>
273
	<td width="150">&nbsp;</td>
274
	<td>
275
		<input type="submit" name="submit" value="{SUBMIT_TITLE}" />
276
		<input type="reset" name="reset" value="{TEXT_RESET}" />
277
		</form>
278
	</td>
279
	<form name="advanced" action="{ADVANED_ACTION}" method="post">
280
	<input type="hidden" name="group_id" value="{GROUP_ID}" />
281
	<input type="hidden" name="action" value="modify" />
282
	<td width="200" align="right">
283
		<input type="submit" name="advanced" onclick="window.location = '{ADVANCED_LINK}';" value="{ADVANCED_BUTTON}" />
284
	</td>
285
	</form>
286
</tr>
287
</table>
288

  
289
<!-- END main_block -->
290 0

  
trunk/wb/admin/groups/groups.php
50 50
	$results = $database->query("SELECT * FROM ".TABLE_PREFIX."groups WHERE group_id = '".$_POST['group_id']."'");
51 51
	$group = $results->fetchRow();
52 52
	// Setup template object
53
	$template = new Template(ADMIN_PATH.'/groups');
54
	$template->set_file('page', 'group_form.html');
53
	$template = new Template(THEME_PATH.'/templates');
54
	$template->set_file('page', 'groups_form.htt');
55 55
	$template->set_block('page', 'main_block', 'main');
56 56
	$template->set_var(	array(
57 57
										'ACTION_URL' => ADMIN_URL.'/groups/save.php',
trunk/wb/admin/groups/index.php
29 29
$admin = new admin('Access', 'groups');
30 30

  
31 31
// Create new template object for the modify/remove menu
32
$template = new Template(ADMIN_PATH.'/groups');
33
$template->set_file('page', 'template.html');
32
$template = new Template(THEME_PATH.'/templates');
33
$template->set_file('page', 'groups.htt');
34 34
$template->set_block('page', 'main_block', 'main');
35 35
$template->set_var('ADMIN_URL', ADMIN_URL);
36 36

  
......
92 92
$template->pparse('output', 'page');
93 93

  
94 94
// Setup template for add group form
95
$template = new Template(ADMIN_PATH.'/groups');
96
$template->set_file('page', 'group_form.html');
95
$template = new Template(THEME_PATH.'/templates');
96
$template->set_file('page', 'groups_form.htt');
97 97
$template->set_block('page', 'main_block', 'main');
98 98
$template->set_var('DISPLAY_EXTRA', 'none');
99 99
$template->set_var('ACTION_URL', ADMIN_URL.'/groups/add.php');
trunk/wb/admin/media/browse.html
1
<!-- BEGIN main_block -->
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
<head>
5
<title>Browse Media</title>
6

  
7
<style type="text/css">
8
body,td,th,input,textarea {
9
	font-family: Verdana, Arial, Helvetica, sans-serif;
10
	font-size: 12px;
11
	color: #000000;
12
}
13
body {
14
	background-color: #FFFFFF;
15
	margin: 0px;
16
}
17
hr {
18
	margin: 0px;
19
	color: #003366;
20
	height: 1px;
21
}
22
.hide {
23
	display: none;
24
}
25
a:link, a:visited, a:active {
26
	color: #003366;
27
	text-decoration: none;
28
}
29
a:hover {
30
	text-decoration: none;
31
	color: #336699;
32
}
33
</style>
34

  
35
<script language="javascript" type="text/javascript">
36
function confirm_link(message, url) {
37
	if(confirm(message)) location.href = url;
38
}
39
</script>
40

  
41
</head>
42
<body>
43

  
44
<table cellpadding="4" cellspacing="0" border="0" width="100%" style="border-bottom: 1px solid #35373a; width: 100%;">
45
<tr style="background-color: #ECF1F3;">
46
	<td width="16" align="center" style="padding-left: 10px;">
47
		<a href="{PARENT_DIR_LINK}">
48
			<img src="../images/up_folder_16.png" border="0" class="{DISPLAY_UP_ARROW}" alt="^" />
49
		</a>
50
	</td>
51
	<td width="50">
52
		<a href="{PARENT_DIR_LINK}" class="{DISPLAY_UP_ARROW}">
53
			{TEXT_UP}
54
		</a>
55
	</td>
56
	<td align="center">
57
		{TEXT_CURRENT_FOLDER}: {MEDIA_DIRECTORY}{CURRENT_DIR}
58
	</td>
59
	<td width="16">
60
		<a href="browse.php?dir={CURRENT_DIR}">
61
			<img src="../images/reload_16.png" border="0" alt="" />
62
		</a>
63
	</td>
64
	<td width="50">
65
		<a href="browse.php?dir={CURRENT_DIR}">
66
			{TEXT_RELOAD}
67
		</a>
68
	</td>
69
</tr>
70
</table>
71

  
72
<table cellpadding="4" cellspacing="0" border="0" width="100%" class="{DISPLAY_LIST_TABLE}">
73
<!-- BEGIN list_block -->
74
<tr style="background-color: #{ROW_BG_COLOR};" onmouseover="this.style.backgroundColor = '#F1F8DD'" onmouseout="this.style.backgroundColor = '#{ROW_BG_COLOR}'">
75
	<td width="18" style="padding-left: 10px;">
76
		<a href="{LINK}" target="{LINK_TARGET}">
77
			<img src="{FILETYPE_ICON}" class="{DISPLAY_ICON}" border="0" alt="" />
78
		</a>
79
	</td>
80
	<td>
81
		<a href="{LINK}" target="{LINK_TARGET}">
82
			{NAME}
83
		</a>
84
	</td>
85
	<td width="85" align="right" class="{DISPLAY_RENAME}">
86
		<a href="rename.php?dir={CURRENT_DIR}&id={TEMP_ID}">
87
			<img src="../images/modify_16.png" alt="" border="0" /> {TEXT_RENAME}
88
		</a>
89
	</td>
90
	<td width="70" style="padding-right: 15px;" align="right" class="{DISPLAY_DELETE}">
91
		<a href="#" onclick="javascript: confirm_link('{CONFIRM_DELETE}\n {NAME_SLASHED}', 'delete.php?dir={CURRENT_DIR}&id={TEMP_ID}');">
92
			<img src="../images/delete_16.png" alt="" border="0" /> {TEXT_DELETE}
93
		</a>
94
	</td>
95
</tr>
96
<!-- END list_block -->
97
</table>
98

  
99
<font class="{DISPLAY_NONE_FOUND}">
100
<br />
101
&nbsp; &nbsp; 
102
{NONE_FOUND}
103
</font>
104

  
105
</body>
106
</html>
107

  
108
<!-- END main_block -->
109 0

  
trunk/wb/admin/media/template.html
1
<!-- BEGIN main_block -->
2

  
3
<style>
4
iframe {
5
	border: 1px solid #35373a;
6
}
7

  
8
input:focus, input:active {
9
	background-color: #F1F8FD;
10
}
11

  
12
</style>
13

  
14
<h2>{HEADING_BROWSE_MEDIA}</h2>
15

  
16
<iframe width="100%" height="320px" align="center" src="browse.php"></iframe>
17

  
18
<br />
19

  
20

  
21

  
22
<form name="create" action="create.php" method="post" class="{DISPLAY_CREATE}">
23

  
24
<br />
25

  
26
<h2>{HEADING_CREATE_FOLDER}</h2>
27

  
28
<table cellpadding="3" cellspacing="0" border="0" width="100%">
29
<tr>
30
	<td width="100">{TEXT_TARGET_FOLDER}:</td>
31
	<td>
32
		<select name="target" style="width: 100%;">
33
			<option value="{MEDIA_DIRECTORY}" selected>{MEDIA_DIRECTORY}</option>
34
			<!-- BEGIN dir_list_block -->
35
				<option value="{NAME}">{NAME}</option>
36
			<!-- END dir_list_block -->
37
		</select>
38
	</td>
39
</tr>
40
</table>
41
<table cellpadding="3" cellspacing="0" border="0" width="100%">
42
<tr>
43
	<td width="100">{TEXT_NAME}:</td>
44
	<td>
45
		<input type="text" name="name" style="width: 100%;" />
46
	</td>
47
	<td align="right" width="160">
48
		<input type="submit" name="submit" value="{TEXT_CREATE_FOLDER}" style="width: 160px;" />
49
	</td>
50
</tr>
51
</table>
52

  
53
</form>
54

  
55
<form name="upload" action="upload.php" method="post" enctype="multipart/form-data" class="{DISPLAY_UPLOAD}">
56

  
57
<br />
58

  
59
<h2>{HEADING_UPLOAD_FILES}</h2>
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff