Project

General

Profile

« Previous | Next » 

Revision 944

Added by Matthias almost 16 years ago

added skinable Admin Interface

View differences:

sections.php
141 141
	$jscal_use_time = true; // whether to use a clock, too
142 142
	require_once(WB_PATH."/include/jscalendar/wb-setup.php");
143 143
?>
144
<table cellpadding="5" cellspacing="0" border="0" align="center" width="100%" height="50" style="margin-bottom: 10px;">
145
<tr style="background-color: #F0F0F0;">
144
<table cellpadding="0" cellspacing="0" class="sections_header">
145
<tr>
146 146
	<td valign="middle" align="left">
147 147
		<h2><?php echo $HEADING['MANAGE_SECTIONS']; ?></h2>
148 148
	</td>
......
181 181
		if(!is_numeric(array_search($section['module'], $module_permissions))) {
182 182
			?>
183 183
			<tr onmouseover="this.style.backgroundColor = '#F1F8DD'" onmouseout="this.style.backgroundColor = '#FFF'">
184
				<td style="width: <?php if(SECTION_BLOCKS) print "120"; else print "200"; ?>px;"><a href="<?php echo ADMIN_URL; ?>/pages/modify.php?page_id=<?php echo $page_id; ?>#<?php echo $section['section_id']; ?>"><?php echo $module_name; ?></a></td>
184
				<td class="<?php if(SECTION_BLOCKS) print 'input_normal'; else print 'input_wide'; ?>"><a href="<?php echo ADMIN_URL; ?>/pages/modify.php?page_id=<?php echo $page_id; ?>#<?php echo $section['section_id']; ?>"><?php echo $module_name; ?></a></td>
185 185
				<?php if(SECTION_BLOCKS) { ?>
186 186
				<td>
187
					<select name="block<?php echo $section['section_id']; ?>" style="width: 120px;">
187
					<select name="block<?php echo $section['section_id']; ?>" class="input_normal">
188 188
						<?php
189 189
						foreach($block AS $number => $name) {
190 190
							?>
......
199 199
					</select>
200 200
				</td>
201 201
				<?php } // jscalendar-stuff following ?>
202
				<td><input type="text" id="start_date<?php echo $section['section_id']; ?>" name="start_date<?php echo $section['section_id']; ?>" value="<?php if($section['publ_start']==0) print ""; else print date($jscal_format, $section['publ_start'])?>" style="width: 120px;" />
203
					<img src="<?php echo ADMIN_URL ?>/images/clock_16.png" id="trigger_start<?php echo $section['section_id']; ?>" style="cursor: pointer;" title="<?php echo $TEXT['CALENDAR']; ?>" onmouseover="this.style.background='lightgrey';" onmouseout="this.style.background=''" />
204
					<img src="<?php echo ADMIN_URL ?>/images/clock_del_16.png" style="cursor: pointer;" title="<?php echo $TEXT['DELETE_DATE']; ?>" onmouseover="this.style.background='lightgrey';" onmouseout="this.style.background=''" onclick="document.section_properties.start_date<?php echo $section['section_id']; ?>.value=''" />
202
				<td><input type="text" id="start_date<?php echo $section['section_id']; ?>" name="start_date<?php echo $section['section_id']; ?>" value="<?php if($section['publ_start']==0) print ""; else print date($jscal_format, $section['publ_start'])?>" class="input_normal" />
203
					<img src="<?php echo THEME_URL ?>/images/clock_16.png" id="trigger_start<?php echo $section['section_id']; ?>" style="cursor: pointer;" title="<?php echo $TEXT['CALENDAR']; ?>" />
204
					<img src="<?php echo THEME_URL ?>/images/clock_del_16.png" style="cursor: pointer;" title="<?php echo $TEXT['DELETE_DATE']; ?>" onclick="document.section_properties.start_date<?php echo $section['section_id']; ?>.value=''" />
205 205
				</td>
206
				<td><input type="text" id="end_date<?php echo $section['section_id']; ?>" name="end_date<?php echo $section['section_id']; ?>" value="<?php if($section['publ_end']==0) print ""; else print date($jscal_format, $section['publ_end'])?>" style="width: 120px;" />
207
					<img src="<?php echo ADMIN_URL ?>/images/clock_16.png" id="trigger_stop<?php echo $section['section_id']; ?>" style="cursor: pointer;" title="<?php echo $TEXT['CALENDAR']; ?>" onmouseover="this.style.background='lightgrey';" onmouseout="this.style.background=''" />
208
					<img src="<?php echo ADMIN_URL ?>/images/clock_del_16.png" style="cursor: pointer;" title="<?php echo $TEXT['DELETE_DATE']; ?>" onmouseover="this.style.background='lightgrey';" onmouseout="this.style.background=''" onclick="document.section_properties.end_date<?php echo $section['section_id']; ?>.value=''"/>
206
				<td><input type="text" id="end_date<?php echo $section['section_id']; ?>" name="end_date<?php echo $section['section_id']; ?>" value="<?php if($section['publ_end']==0) print ""; else print date($jscal_format, $section['publ_end'])?>" class="input_normal" />
207
					<img src="<?php echo THEME_URL ?>/images/clock_16.png" id="trigger_stop<?php echo $section['section_id']; ?>" style="cursor: pointer;" title="<?php echo $TEXT['CALENDAR']; ?>" onmouseover="this.style.background='lightgrey';" onmouseout="this.style.background=''" />
208
					<img src="<?php echo THEME_URL ?>/images/clock_del_16.png" title="<?php echo $TEXT['DELETE_DATE']; ?>" onclick="document.section_properties.end_date<?php echo $section['section_id']; ?>.value=''"/>
209 209
				</td>
210 210
				<td width="20">
211 211
					<?php if($section['position'] != 1) { ?>
212 212
					<a href="<?php echo ADMIN_URL; ?>/pages/move_up.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section['section_id']; ?>">
213
						<img src="<?php echo ADMIN_URL; ?>/images/up_16.png" alt="^" border="0" />
213
						<img src="<?php echo THEME_URL; ?>/images/up_16.png" alt="^" border="0" />
214 214
					</a>
215 215
					<?php } ?>
216 216
				</td>
217 217
				<td width="20">
218 218
					<?php if($section['position'] != $num_sections) { ?>
219 219
					<a href="<?php echo ADMIN_URL; ?>/pages/move_down.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section['section_id']; ?>">
220
						<img src="<?php echo ADMIN_URL; ?>/images/down_16.png" alt="v" border="0" />
220
						<img src="<?php echo THEME_URL; ?>/images/down_16.png" alt="v" border="0" />
221 221
					</a>
222 222
					<?php } ?>
223 223
				</td>
224 224
				<td width="20">
225 225
					<a href="javascript: confirm_link('<?php echo $TEXT['ARE_YOU_SURE']; ?>', '<?php echo ADMIN_URL; ?>/pages/sections.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section['section_id']; ?>');">
226
						<img src="<?php echo ADMIN_URL; ?>/images/delete_16.png" alt="Del" border="0" />
226
						<img src="<?php echo THEME_URL; ?>/images/delete_16.png" alt="Del" border="0" />
227 227
					</a>
228 228
				</td>
229 229
			</tr>
......
232 232
	}
233 233
	?>
234 234
	<tr>
235
		<td align="center" colspan="<?php if(SECTION_BLOCKS) print "7"; else print "6"; ?>"><input type="submit" name="save" value="<?php echo $TEXT['SAVE']; ?>" style="width: 150px;" /></td>
235
		<td align="center" colspan="<?php if(SECTION_BLOCKS) print '7'; else print '6'; ?>"><input type="submit" name="save" value="<?php echo $TEXT['SAVE']; ?>" class="input_medium" /></td>
236 236
	</tr>
237 237
	</table>
238 238

  
......
301 301
	<table cellpadding="5" cellspacing="0" border="0" align="center" width="100%">
302 302
	<tr>
303 303
		<td>
304
			<select name="module" style="width: 100%;">
304
			<select name="module" class="input_full">
305 305
			<?php
306 306
			// Insert module list
307 307
			$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'page' AND directory != 'menu_link' order by name");
......
318 318
			?>
319 319
			</select>
320 320
		</td>
321
		<td width="100">
322
			<input type="submit" name="submit" value="<?php echo $TEXT['ADD']; ?>" style="width: 100px" />
321
	</tr>
322
	<tr>
323
		<td>
324
			<input type="submit" name="submit" value="<?php echo $TEXT['ADD']; ?>" class="input_narrow" />
323 325
		</td>
324 326
	</tr>
325 327
	</table>

Also available in: Unified diff