Project

General

Profile

1 4 ryan
<!-- BEGIN main_block -->
2
3
<script type="text/javascript" language="javascript">
4
function toggle_viewers() {
5 337 stefan
	if(document.settings.visibility.value == 'private' || document.settings.visibility.value == 'registered') {
6
		document.getElementById('allowed_viewers').style.display = 'block';
7 4 ryan
	} else {
8 337 stefan
		document.getElementById('allowed_viewers').style.display = 'none';
9 4 ryan
	}
10
}
11 398 Ruebenwurz
var lastselectedindex = new Array();
12
13
function disabled_hack_for_ie(sel) {
14
	var sels = document.getElementsByTagName("select");
15
16
    var i;
17
    var sel_num_in_doc = 0;
18
19
    for (i = 0; i <sels.length; i++)
20
    {    if (sel == sels[i])
21
        {    sel_num_in_doc = i;
22
        }
23
    }
24
25
     // never true for browsers that support option.disabled
26
    if (sel.options[sel.selectedIndex].disabled)
27
    {    sel.selectedIndex = lastselectedindex[sel_num_in_doc];
28
    } else
29
    {    lastselectedindex[sel_num_in_doc] = sel.selectedIndex;
30
    }
31
32
    return true;
33
}
34 4 ryan
</script>
35
36
<table cellpadding="5" cellspacing="0" border="0" align="center" width="100%" height="50" style="margin-bottom: 10px;">
37
<tr style="background-color: #F0F0F0;">
38
	<td valign="middle" align="left">
39
		<h2>{HEADING_MODIFY_PAGE_SETTINGS}</h2>
40
	</td>
41
	<td align="right">
42
		{TEXT_CURRENT_PAGE}:
43
		<b>{PAGE_TITLE}</b>
44
		-
45
		<a href="{ADMIN_URL}/pages/modify.php?page_id={PAGE_ID}">{TEXT_MODIFY_PAGE}</a>
46
		<font style="display: {DISPLAY_MANAGE_SECTIONS}">-</font>
47
		<a href="{ADMIN_URL}/pages/sections.php?page_id={PAGE_ID}" style="display: {DISPLAY_MANAGE_SECTIONS}">{TEXT_MANAGE_SECTIONS}</a>
48
		<br />
49
		<font style="color: #999999;" class="{DISPLAY_MODIFIED}">
50
			{LAST_MODIFIED} {MODIFIED_BY} ({MODIFIED_BY_USERNAME}), {MODIFIED_WHEN}
51
		</font>
52
	</td>
53
</tr>
54
</table>
55
56
<form name="settings" action="settings2.php" method="post">
57
58
<input type="hidden" name="page_id" value="{PAGE_ID}" />
59
60
<table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
61
<tr>
62
	<td width="100" height="20">{TEXT_PAGE_TITLE}:</td>
63 398 Ruebenwurz
	<td width="240" height="20">
64 4 ryan
		<input type="text" name="page_title" value="{PAGE_TITLE}" style="width: 232px;" />
65
	</td>
66
	<td rowspan="10" valign="top" style="padding-left: 20px; padding-top: 8px;">
67
		{TEXT_ADMINISTRATORS}:
68
		<ul style="list-style-type: none; margin: 0; padding: 0;">
69
			<!-- BEGIN group_list_block -->
70
			<li>
71
			<input type="checkbox" name="admin_groups[]" id="admin_group_{ID}" value="{ID}"{CHECKED}{DISABLED} />
72 240 stefan
			<label for="admin_group_{TOGGLE}">{NAME}</label>
73 4 ryan
			</li>
74
			<!-- END group_list_block -->
75
		</ul>
76
	</td>
77
	<td rowspan="10" valign="top" style="padding-left: 20px; padding-top: 8px;">
78 337 stefan
		<div id="allowed_viewers" style="display: {DISPLAY_VIEWERS};">
79
			{TEXT_ALLOWED_VIEWERS}:
80 4 ryan
			<ul style="list-style-type: none; margin: 0; padding: 0;">
81
				<!-- BEGIN group_list_block2 -->
82
				<li>
83
				<input type="checkbox" name="viewing_groups[]" id="viewing_group_{ID}" value="{ID}"{CHECKED}{DISABLED} />
84 240 stefan
				<label for="viewing_group_{TOGGLE}">{NAME}</label>
85 4 ryan
				</li>
86
				<!-- END group_list_block2 -->
87
			</ul>
88
		</div>
89
	</td>
90
</tr>
91
<tr height="20">
92
	<td width="100" height="20">{TEXT_MENU_TITLE}:</td>
93 398 Ruebenwurz
	<td width="240" height="20">
94 4 ryan
		<input type="text" name="menu_title" value="{MENU_TITLE}" style="width: 232px;" />
95
	</td>
96
</tr>
97
<tr height="20">
98
	<td width="100">{TEXT_PARENT}:</td>
99 398 Ruebenwurz
	<td width="240">
100
		<select name="parent" style="width: 240px;" onchange="return disabled_hack_for_ie(this);">
101 4 ryan
			<!-- BEGIN page_list_block2 -->
102
			<option value="{ID}"{SELECTED}>{TITLE}</option>
103
			<!-- END page_list_block2 -->
104
		</select>
105
	</td>
106
</tr>
107
<tr height="20">
108
	<td width="100">{TEXT_VISIBILITY}:</td>
109
	<td width="240">
110
		<select name="visibility" onchange="javascript: toggle_viewers();" style="width: 240px;">
111
			<option value="public"{PUBLIC_SELECTED}>{TEXT_PUBLIC}</option>
112
			<option value="private"{PRIVATE_SELECTED}>{TEXT_PRIVATE}</option>
113
			<option value="registered"{REGISTERED_SELECTED}>{TEXT_REGISTERED}</option>
114
			<option value="hidden"{HIDDEN_SELECTED}>{TEXT_HIDDEN}</option>
115
			<option value="none"{NO_VIS_SELECTED}>{TEXT_NONE}</option>
116
		</select>
117
	</td>
118
</tr>
119
<tr>
120
	<td width="100" valign="top">{TEXT_DESCRIPTION}:</td>
121
	<td>
122
		<textarea name="description" style="width: 236px; height: 50px;">{DESCRIPTION}</textarea>
123
	</td>
124
</tr>
125
<tr>
126
	<td width="100" valign="top">{TEXT_KEYWORDS}:</td>
127
	<td>
128
		<textarea name="keywords" style="width: 236px; height: 50px;">{KEYWORDS}</textarea>
129
	</td>
130
</tr>
131
<tr>
132
	<td>
133
		{TEXT_TARGET}:
134
	</td>
135
	<td>
136 397 Ruebenwurz
		<select name="target" style="width: 240px;" value="{TARGET}" />
137 4 ryan
			<option value="_blank"{BLANK_SELECTED}>{TEXT_NEW_WINDOW}</option>
138 334 stefan
			<option value="_self"{SELF_SELECTED}>{TEXT_SAME_WINDOW}</option>
139
			<option value="_top"{TOP_SELECTED}>{TEXT_TOP_FRAME}</option>
140 4 ryan
		</select>
141
	</td>
142
</tr>
143
<tr height="20">
144
	<td width="100">{TEXT_TEMPLATE}:</td>
145
	<td width="240">
146
		<select name="template" style="width: 240px;">
147
			<option value="">{TEXT_SYSTEM_DEFAULT}</option>
148
			<option value="">----------------------</option>
149
			<!-- BEGIN template_list_block -->
150
			<option value="{VALUE}"{SELECTED}>{NAME}</option>
151
			<!-- END template_list_block -->
152
		</select>
153
	</td>
154
</tr>
155
<tr height="20" style="display: {DISPLAY_MENU_LIST}">
156
	<td width="100">{TEXT_MENU}:</td>
157
	<td width="240">
158
		<select name="menu" style="width: 240px;">
159
			<!-- BEGIN menu_list_block -->
160
			<option value="{VALUE}"{SELECTED}>{NAME}</option>
161
			<!-- END menu_list_block -->
162
		</select>
163
	</td>
164
</tr>
165
<tr height="20" style="display: {DISPLAY_LANGUAGE_LIST}">
166
	<td width="100">{TEXT_LANGUAGE}:</td>
167
	<td width="240">
168
		<select name="language" style="width: 240px;">
169
			<!-- BEGIN language_list_block -->
170
			<option value="{VALUE}"{SELECTED}>{NAME}</option>
171
			<!-- END language_list_block -->
172
		</select>
173
	</td>
174
</tr>
175
<tr height="20">
176
	<td width="100">{TEXT_SEARCHING}:</td>
177
	<td width="240">
178
		<select name="searching" style="width: 240px;">
179
			<option value="1">{TEXT_ENABLED}</option>
180
			<option value="0"{SEARCHING_DISABLED}>{TEXT_DISABLED}</option>
181
		</select>
182
	</td>
183
</tr>
184
<tr>
185
	<td width="100">&nbsp;</td>
186
	<td colspan="4">
187
		<input type="submit" name="submit" value="{TEXT_SAVE} {SECTION_SETTINGS}" style="width: 117px;" />
188
		<input type="reset" name="reset" value="{TEXT_RESET}" style="width: 117px;" />
189
	</td>
190
</tr>
191
<tr>
192
	<td>&nbsp;</td>
193
	<td>&nbsp;</td>
194
</tr>
195
</table>
196
197
</form>
198
199
<!-- END main_block -->