1 |
2
|
Manuela
|
<!--
|
2 |
|
|
@version $Id: setparameter.htt 75 2017-03-10 10:47:06Z manu $
|
3 |
|
|
-->
|
4 |
|
|
<!-- BEGIN main_block -->
|
5 |
|
|
<!DOCTYPE HTML>
|
6 |
|
|
<html lang="en">
|
7 |
|
|
<head>
|
8 |
|
|
<meta charset="utf-8" />
|
9 |
|
|
<title>Set Upload Parameters</title>
|
10 |
|
|
|
11 |
|
|
|
12 |
|
|
<style type="text/css">
|
13 |
|
|
body,td,th,input,textarea {
|
14 |
|
|
font-family: Verdana, Arial, Helvetica, sans-serif;
|
15 |
|
|
font-size: 10px;
|
16 |
|
|
}
|
17 |
|
|
body {
|
18 |
|
|
background-color: #FFF;
|
19 |
|
|
margin: 0px;
|
20 |
|
|
}
|
21 |
|
|
hr {
|
22 |
|
|
margin: 0px;
|
23 |
|
|
color: #003366;
|
24 |
|
|
height: 1px;
|
25 |
|
|
}
|
26 |
|
|
.hide {
|
27 |
|
|
display: none;
|
28 |
|
|
}
|
29 |
|
|
a:link, a:visited, a:active {
|
30 |
|
|
color: #003366;
|
31 |
|
|
text-decoration: none;
|
32 |
|
|
}
|
33 |
|
|
a:hover {
|
34 |
|
|
text-decoration: none;
|
35 |
|
|
color: #336699;
|
36 |
|
|
}
|
37 |
|
|
</style>
|
38 |
|
|
</head>
|
39 |
|
|
<body>
|
40 |
|
|
|
41 |
|
|
<table style="border-bottom: 1px solid #666; width: 100%;">
|
42 |
|
|
<tr style="background-color: #DDD;">
|
43 |
|
|
<td style="text-align: center;">{TEXT_HEADER}</td>
|
44 |
|
|
</tr>
|
45 |
|
|
</table>
|
46 |
|
|
<form method="post" action="{ADMIN_URL}/media/setparameter.php" id="myForm">
|
47 |
|
|
{FTAN}
|
48 |
|
|
<table class="{DISPLAY_LIST_TABLE}" style="width: 100%;">
|
49 |
|
|
<tr><td>{SETTINGS}</td><td><input type="checkbox" name="show_thumbs" {NO_SHOW_THUMBS_SELECTED}> {NO_SHOW_THUMBS}</td></tr>
|
50 |
|
|
<tr class="{DISPLAY_ADMIN}"><td></td> <td><input type="checkbox" name="admin_only" {ADMIN_ONLY_SELECTED}> {ADMIN_ONLY}</td></tr>
|
51 |
|
|
<tr><td colspan="2" style="border-bottom: 1px solid #666; line-height: 1px;"> </td></tr>
|
52 |
|
|
</table>
|
53 |
|
|
<table class="{DISPLAY_LIST_TABLE}" style="width: 100%;">
|
54 |
|
|
<!-- BEGIN list_block -->
|
55 |
|
|
<tr style="background-color: #{ROW_BG_COLOR};">
|
56 |
|
|
<td>{PATH_NAME}</td>
|
57 |
|
|
<td>
|
58 |
|
|
{WIDTH}<input size="5" type="text" name="{FIELD_NAME_W}" value="{CUR_WIDTH}" id="W{FILE_ID}" onblur="BlurFunction(this.id)" onfocus="FocusFunction(this.id)" />
|
59 |
|
|
{HEIGHT}<input size="5" type="text" name="{FIELD_NAME_H}" value="{CUR_HEIGHT}" id="H{FILE_ID}" onblur="BlurFunction(this.id)" onfocus="FocusFunction(this.id)" />
|
60 |
|
|
</td>
|
61 |
|
|
</tr>
|
62 |
|
|
<!-- END list_block -->
|
63 |
|
|
<tr>
|
64 |
|
|
<td><input type="button" onclick="window.location = 'browse.php'" value="{BACK}"/></td>
|
65 |
|
|
<td><input type="submit" name="save" value="{SAVE_TEXT}"/></td>
|
66 |
|
|
</tr>
|
67 |
|
|
</table>
|
68 |
|
|
</form>
|
69 |
|
|
<script>
|
70 |
|
|
/*
|
71 |
|
|
var x = document.getElementById("myForm");
|
72 |
|
|
x.addEventListener("focus", FocusFunction, true);
|
73 |
|
|
x.addEventListener("blur", BlurFunction, true);
|
74 |
|
|
*/
|
75 |
|
|
function FocusFunction(id) {
|
76 |
|
|
// document.getElementById("myInput").style.backgroundColor = "yellow";
|
77 |
|
|
var el2 = document.getElementById(id),
|
78 |
|
|
tmp = el2.value;
|
79 |
|
|
el2.style.backgroundColor = '';
|
80 |
|
|
if (tmp === '-'){
|
81 |
|
|
el2.value = ''
|
82 |
|
|
}
|
83 |
|
|
}
|
84 |
|
|
|
85 |
|
|
function BlurFunction(id) {
|
86 |
|
|
var el1 = document.getElementById(id);
|
87 |
|
|
tmp = el1.value;
|
88 |
|
|
el1.style.backgroundColor = '';
|
89 |
|
|
if (tmp === ''){
|
90 |
|
|
el1.value = '-'
|
91 |
|
|
}
|
92 |
|
|
}
|
93 |
|
|
</script>
|
94 |
|
|
|
95 |
|
|
</body>
|
96 |
|
|
</html>
|
97 |
|
|
|
98 |
|
|
|
99 |
|
|
<!-- END main_block -->
|