Project

General

Profile

« Previous | Next » 

Revision 1023

Added by Matthias almost 15 years ago

- Added posibility to upload and unzip .zip packages to media section (Thanks to BerndJM)

- Updated Browse Media Window in wb_theme now supports file icons, more file informations and a new preview function (Thanks to BerndJM)

View differences:

media_browse.htt
10 10
}
11 11
</script>
12 12

  
13
<link href="{THEME_URL}/fancybox.css" rel="stylesheet" type="text/css" />
14

  
15
<script type="text/javascript" src="{INCLUDE_PATH}/jquery/jquery-min.js"></script>
16
<script type="text/javascript" src="{INCLUDE_PATH}/jquery/plugins/jquery-fixedheader.js"></script>
17
<script type="text/javascript" src="{INCLUDE_PATH}/jquery/plugins/jquery-fancybox.js"></script>
18
<script type="text/javascript" src="{INCLUDE_PATH}/jquery/plugins/jquery-metadata.js"></script>
19

  
20
<script language="javascript" type="text/javascript">
21
$(document).ready(function(){
22
	$("#browser").fixedHeader({
23
		width: '100%', height: 355
24
	});
25
	
26
	$("table#browser a.preview").fancybox({ 
27
		'hideOnContentClick': true,
28
		'overlayShow': true,
29
		'zoomSpeedIn': 0,
30
		'zoomSpeedOut': 0
31
	});
32
})
33
</script>
34

  
13 35
</head>
14
<body>
15

  
16
<table cellpadding="4" cellspacing="0" border="0" width="100%" style="border-bottom: 1px solid #35373a; width: 100%;">
17
<tr style="background-color: #ECF1F3;">
18
	<td width="16" align="center" style="padding-left: 10px;">
19
		<a href="{PARENT_DIR_LINK}">
20
			<img src="{THEME_URL}/images/up_folder_16.png" border="0" class="{DISPLAY_UP_ARROW}" alt="^" />
21
		</a>
22
	</td>
23
	<td width="50">
24
		<a href="{PARENT_DIR_LINK}" class="{DISPLAY_UP_ARROW}">
25
			{TEXT_UP}
26
		</a>
27
	</td>
28
	<td align="center">
29
		{TEXT_CURRENT_FOLDER}: {MEDIA_DIRECTORY}{CURRENT_DIR}
30
	</td>
31
	<td width="16">
32
		<a href="browse.php?dir={CURRENT_DIR}">
33
			<img src="{THEME_URL}/images/reload_16.png" border="0" alt="" />
34
		</a>
35
	</td>
36
	<td width="50">
37
		<a href="browse.php?dir={CURRENT_DIR}">
38
			{TEXT_RELOAD}
39
		</a>
40
	</td>
41
</tr>
36
<body onload="parent.document.create.target.value = '{MEDIA_DIRECTORY}{CURRENT_DIR}'; parent.document.upload.target.value = '{MEDIA_DIRECTORY}{CURRENT_DIR}';">
37
<table cellpadding="4" cellspacing="0" border="0" width="100%" class="browse_header">
38
	<tr>
39
		<td align="left" width="100">
40
			<a href="{PARENT_DIR_LINK}">
41
				<img src="{THEME_URL}/images/up_folder_16.png" border="0" class="{DISPLAY_UP_ARROW}" alt="^" align="absmiddle" />
42
			</a>
43
			<a href="{PARENT_DIR_LINK}" class="{DISPLAY_UP_ARROW}">
44
				{TEXT_UP}
45
			</a>
46
		</td>
47
		<td align="center">
48
			{TEXT_CURRENT_FOLDER}: {MEDIA_DIRECTORY}{CURRENT_DIR}
49
		</td>
50
		<td align="right" width="100" >
51
			<a href="browse.php?dir={CURRENT_DIR}">
52
				<img src="{THEME_URL}/images/reload_16.png" border="0" alt="" align="absmiddle" />
53
			</a>
54
			<a id="reload" href="browse.php?dir={CURRENT_DIR}">
55
				{TEXT_RELOAD}
56
			</a>
57
		</td>
58
	</tr>
42 59
</table>
43 60

  
44
<table cellpadding="4" cellspacing="0" border="0" width="100%" class="{DISPLAY_LIST_TABLE}">
45
<!-- BEGIN list_block -->
46
<tr style="background-color: #{ROW_BG_COLOR};" onmouseover="this.style.backgroundColor = '#F1F8DD'" onmouseout="this.style.backgroundColor = '#{ROW_BG_COLOR}'">
47
	<td width="18" style="padding-left: 10px;">
48
		<a href="{LINK}" target="{LINK_TARGET}">
49
			<img src="{FILETYPE_ICON}" class="{DISPLAY_ICON}" border="0" alt="" />
50
		</a>
51
	</td>
52
	<td>
53
		<a href="{LINK}" target="{LINK_TARGET}">
54
			{NAME}
55
		</a>
56
	</td>
57
	<td width="85" align="right" class="{DISPLAY_RENAME}">
58
		<a href="rename.php?dir={CURRENT_DIR}&id={TEMP_ID}">
59
			<img src="{THEME_URL}/images/modify_16.png" alt="" border="0" /> {TEXT_RENAME}
60
		</a>
61
	</td>
62
	<td width="70" style="padding-right: 15px;" align="right" class="{DISPLAY_DELETE}">
63
		<a href="#" onclick="javascript: confirm_link('{CONFIRM_DELETE}\n {NAME_SLASHED}', 'delete.php?dir={CURRENT_DIR}&id={TEMP_ID}');">
64
			<img src="{THEME_URL}/images/delete_16.png" alt="" border="0" /> {TEXT_DELETE}
65
		</a>
66
	</td>
67
</tr>
68
<!-- END list_block -->
61
<table id="browser" cellpadding="4" cellspacing="0" border="0" width="100%" class="{DISPLAY_LIST_TABLE}">
62
	<thead>
63
		<tr style="background-color: #EEE;">
64
			<th width="18" class="headline">{TEXT_TYPE}</th>
65
			<th align="left" class="headline">{TEXT_NAME}</th>
66
			<th align="right" width="80" class="headline">{TEXT_SIZE}</th>
67
			<th align="right" width="80" class="headline">{TEXT_DATE}</th>
68
			<th align="right" width="40" class="headline">{TEXT_RENAME}</th>
69
			<th align="right" width="40" class="headline">{TEXT_DELETE}</th>
70
		</tr>
71
	</thead>
72
	<tbody>
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 style="padding-left: 10px;">
76
				<img src="{FILETYPE_ICON}" class="{DISPLAY_ICON}" border="0" alt="" />
77
			</td>
78
			<td>
79
				<a href="{LINK}" target="{LINK_TARGET}" class="{PREVIEW}">
80
					{NAME}
81
				</a>
82
			</td>
83
			<td align="right" style="font-size: 10px;">{SIZE}</td>
84
			<td align="right" style="font-size: 10px;">{DATE}</td>
85
			<td align="right" class="{DISPLAY_RENAME}">
86
				<a href="rename.php?dir={CURRENT_DIR}&id={TEMP_ID}" title="{TEXT_RENAME}">
87
					<img src="{THEME_URL}/images/modify_16.png" alt="" border="0" />
88
				</a>
89
			</td>
90
			<td style="padding-right: 5px;" 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}');" title="{TEXT_DELETE}">
92
					<img src="{THEME_URL}/images/delete_16.png" alt="" border="0" />
93
				</a>
94
			</td>
95
		</tr>
96
		<!-- END list_block -->
69 97
</table>
70 98

  
71
<font class="{DISPLAY_NONE_FOUND}">
99
<span class="{DISPLAY_NONE_FOUND}">
72 100
<br />
73 101
&nbsp; &nbsp; 
74 102
{NONE_FOUND}
75
</font>
103
</span>
76 104

  
77 105
</body>
78 106
</html>

Also available in: Unified diff