Project

General

Profile

« Previous | Next » 

Revision 944

Added by Matthias almost 16 years ago

added skinable Admin Interface

View differences:

trash.php
49 49
	}
50 50
}
51 51
var plus = new Image;
52
plus.src = "<?php echo ADMIN_URL; ?>/images/plus_16.png";
52
plus.src = "<?php echo THEME_URL; ?>/images/plus_16.png";
53 53
var minus = new Image;
54
minus.src = "<?php echo ADMIN_URL; ?>/images/minus_16.png";
54
minus.src = "<?php echo THEME_URL; ?>/images/minus_16.png";
55 55
function toggle_plus_minus(id) {
56 56
	var img_src = document.images['plus_minus_' + id].src;
57 57
	if(img_src == plus.src) {
......
62 62
}
63 63
</script>
64 64

  
65
<style type="text/css">
66
.pages_list img {
67
	display: block;
68
}
69
ul, li {
70
	list-style: none;
71
	margin: 0;
72
	padding: 0;
73
}
74
.page_list {
75
	display: none;
76
}
77
</style>
78

  
79
<noscript>
80
	<style type="text/css">
81
	.page_list {
82
		display: block;
83
	}
84
	</style>
85
</noscript>
86 65
<?php
87 66

  
88 67
function make_list($parent, $editable_pages) {
......
131 110
			$num_pages = $get_pages->numRows();
132 111
			?>
133 112
			
134
			<li id="p<?php echo $page['parent']; ?>" style="padding: 2px 0px 2px 0px;">
135
			<table width="720" cellpadding="1" cellspacing="0" border="0" style="background-color: #F0F0F0;">
113
			<li id="p<?php echo $page['parent']; ?>">
114
			<table cellpadding="0" cellspacing="0" border="0">
136 115
			<tr>
137 116
				<td width="20" style="padding-left: <?php echo $page['level']*20; ?>px;">
138 117
					<?php
139 118
					if($display_plus == true) {
140 119
					?>
141 120
					<a href="javascript: toggle_visibility('p<?php echo $page['page_id']; ?>');" title="<?php echo $TEXT['EXPAND'].'/'.$TEXT['COLLAPSE']; ?>">
142
						<img src="<?php echo ADMIN_URL; ?>/images/plus_16.png" onclick="toggle_plus_minus('<?php echo $page['page_id']; ?>');" name="plus_minus_<?php echo $page['page_id']; ?>" border="0" alt="+" />
121
						<img src="<?php echo THEME_URL; ?>/images/plus_16.png" onclick="toggle_plus_minus('<?php echo $page['page_id']; ?>');" name="plus_minus_<?php echo $page['page_id']; ?>" border="0" alt="+" />
143 122
					</a>
144 123
					<?php
145 124
					}
......
163 142
				<td align="left" width="232">
164 143
					<font color="#999999"><?php echo $page['menu_title']; ?></font>
165 144
				</td>
166
				<td align="right" valign="middle" width="30" style="padding-right: 20px;">
145
				<td align="right" valign="middle" width="30" class="icon_col">
167 146
				<?php if($page['visibility'] == 'public') { ?>
168
					<img src="<?php echo ADMIN_URL; ?>/images/visible_16.png" alt="<?php echo $TEXT['VISIBILITY']; ?>: <?php echo $TEXT['PUBLIC']; ?>" border="0" />
147
					<img src="<?php echo THEME_URL; ?>/images/visible_16.png" alt="<?php echo $TEXT['VISIBILITY']; ?>: <?php echo $TEXT['PUBLIC']; ?>" border="0" />
169 148
				<?php } elseif($page['visibility'] == 'private') { ?>
170
					<img src="<?php echo ADMIN_URL; ?>/images/private_16.png" alt="<?php echo $TEXT['VISIBILITY']; ?>: <?php echo $TEXT['PRIVATE']; ?>" border="0" />
149
					<img src="<?php echo THEME_URL; ?>/images/private_16.png" alt="<?php echo $TEXT['VISIBILITY']; ?>: <?php echo $TEXT['PRIVATE']; ?>" border="0" />
171 150
				<?php } elseif($page['visibility'] == 'registered') { ?>
172
					<img src="<?php echo ADMIN_URL; ?>/images/keys_16.png" alt="<?php echo $TEXT['VISIBILITY']; ?>: <?php echo $TEXT['REGISTERED']; ?>" border="0" />
151
					<img src="<?php echo THEME_URL; ?>/images/keys_16.png" alt="<?php echo $TEXT['VISIBILITY']; ?>: <?php echo $TEXT['REGISTERED']; ?>" border="0" />
173 152
				<?php } elseif($page['visibility'] == 'none') { ?>
174
					<img src="<?php echo ADMIN_URL; ?>/images/hidden_16.png" alt="<?php echo $TEXT['VISIBILITY']; ?>: <?php echo $TEXT['NONE']; ?>" border="0" />
153
					<img src="<?php echo THEME_URL; ?>/images/hidden_16.png" alt="<?php echo $TEXT['VISIBILITY']; ?>: <?php echo $TEXT['NONE']; ?>" border="0" />
175 154
				<?php } elseif($page['visibility'] == 'deleted') { ?>
176
					<img src="<?php echo ADMIN_URL; ?>/images/deleted_16.png" alt="<?php echo $TEXT['VISIBILITY']; ?>: <?php echo $TEXT['DELETED']; ?>" border="0" />
155
					<img src="<?php echo THEME_URL; ?>/images/deleted_16.png" alt="<?php echo $TEXT['VISIBILITY']; ?>: <?php echo $TEXT['DELETED']; ?>" border="0" />
177 156
				<?php } ?>
178 157
				</td>
179 158
				<td width="20">
180 159
					<?php if($page['visibility'] != 'deleted') { ?>
181 160
						<?php if($admin->get_permission('pages_settings') == true AND $can_modify == true) { ?>
182 161
						<a href="<?php echo ADMIN_URL; ?>/pages/settings.php?page_id=<?php echo $page['page_id']; ?>" title="<?php echo $TEXT['SETTINGS']; ?>">
183
							<img src="<?php echo ADMIN_URL; ?>/images/modify_16.png" border="0" alt="<?php echo $TEXT['SETTINGS']; ?>" />
162
							<img src="<?php echo THEME_URL; ?>/images/modify_16.png" border="0" alt="<?php echo $TEXT['SETTINGS']; ?>" />
184 163
						</a>
185 164
						<?php } ?>
186 165
					<?php } else { ?>
187 166
						<a href="<?php echo ADMIN_URL; ?>/pages/restore.php?page_id=<?php echo $page['page_id']; ?>" title="<?php echo $TEXT['RESTORE']; ?>">
188
							<img src="<?php echo ADMIN_URL; ?>/images/restore_16.png" border="0" alt="<?php echo $TEXT['RESTORE']; ?>" />
167
							<img src="<?php echo THEME_URL; ?>/images/restore_16.png" border="0" alt="<?php echo $TEXT['RESTORE']; ?>" />
189 168
						</a>
190 169
					<?php } ?>
191 170
				</td>
......
194 173
					<?php if($page['visibility'] != 'deleted') { ?>
195 174
						<?php if($admin->get_permission('pages_settings') == true AND $can_modify == true) { ?>
196 175
						<a href="<?php echo ADMIN_URL; ?>/pages/move_up.php?page_id=<?php echo $page['page_id']; ?>" title="<?php echo $TEXT['MOVE_UP']; ?>">
197
							<img src="<?php echo ADMIN_URL; ?>/images/up_16.png" border="0" alt="^" />
176
							<img src="<?php echo THEME_URL; ?>/images/up_16.png" border="0" alt="^" />
198 177
						</a>
199 178
						<?php } ?>
200 179
					<?php } ?>
......
205 184
					<?php if($page['visibility'] != 'deleted') { ?>
206 185
						<?php if($admin->get_permission('pages_settings') == true AND $can_modify == true) { ?>
207 186
						<a href="<?php echo ADMIN_URL; ?>/pages/move_down.php?page_id=<?php echo $page['page_id']; ?>" title="<?php echo $TEXT['MOVE_DOWN']; ?>">
208
							<img src="<?php echo ADMIN_URL; ?>/images/down_16.png" border="0" alt="v" />
187
							<img src="<?php echo THEME_URL; ?>/images/down_16.png" border="0" alt="v" />
209 188
						</a>
210 189
						<?php } ?>
211 190
					<?php } ?>
......
214 193
				<td width="20">
215 194
					<?php if($admin->get_permission('pages_delete') == true AND $can_modify == true) { ?>
216 195
					<a href="javascript: confirm_link('<?php echo $MESSAGE['PAGES']['DELETE_CONFIRM']; ?>?', '<?php echo ADMIN_URL; ?>/pages/delete.php?page_id=<?php echo $page['page_id']; ?>');" title="<?php echo $TEXT['DELETE']; ?>">
217
						<img src="<?php echo ADMIN_URL; ?>/images/delete_16.png" border="0" alt="X" />
196
						<img src="<?php echo THEME_URL; ?>/images/delete_16.png" border="0" alt="X" />
218 197
					</a>
219 198
					<?php } ?>
220 199
				</td>
......
244 223
		</td>
245 224
		<td align="right">
246 225
				<a href="<?php echo ADMIN_URL; ?>/pages/empty_trash.php">
247
				<img src="<?php echo ADMIN_URL; ?>/images/delete_16.png" alt="<?php echo $TEXT['PAGE_TRASH']; ?>" border="0" />
226
				<img src="<?php echo THEME_URL; ?>/images/delete_16.png" alt="<?php echo $TEXT['PAGE_TRASH']; ?>" border="0" />
248 227
				<?php echo $TEXT['EMPTY_TRASH']; ?></a>
249 228
		</td>
250 229
	</tr>

Also available in: Unified diff