aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/style/acp_modules.html
blob: 4dca3d404d7b3fd010c19163f7e0d8b07b716054 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<!-- INCLUDE overall_header.html -->

<a name="maincontent"></a>

<!-- IF S_EDIT_MODULE -->

	<script type="text/javascript">
	<!--

		function display_options(value)
		{
			if (value == 'category')
			{
				dE('modoptions', -1);
			}
			else
			{
				dE('modoptions', 1);
			}
		}

		function display_modes(value)
		{
			// Remove select fields
			var item = document.getElementById('module_mode');
			var j = 0;
	
			// empty existing items
			for (var i = 0; i <= item.options.length; i++)
			{
				item.options[i] = null;
			}

<!-- BEGIN m_names -->
		
			if (value == '{m_names.NAME}')
			{
	<!-- BEGIN modes -->
				item.options[j] = new Option('{m_names.modes.VALUE}');
				item.options[j].value = '{m_names.modes.OPTION}';
				j++;
	<!-- END modes -->
			}
<!-- END m_names -->

			// select first item
			item.options[0].selected = true;
		}

	//-->
	</script>

	<a href="{U_BACK}" style="float: right">&laquo; {L_BACK}</a>

	<h1>{L_TITLE} :: {MODULENAME}</h1>

	<p>{L_EDIT_MODULE_EXPLAIN}</p>

	<!-- IF S_ERROR -->
	<div class="errorbox">
		<h3>{L_WARNING}</h3>
		<p>{ERROR_MSG}</p>
	</div>
	<!-- ENDIF -->

	<form id="moduleedit" method="post" action="{U_EDIT_ACTION}">

	<fieldset>
		<legend>{L_GENERAL_OPTIONS}</legend>
		<dl>
			<dt><label for="module_langname">{L_MODULE_LANGNAME}:</label><br />
			<span>{L_MODULE_LANGNAME_EXPLAIN}</span></dt>
			<dd><input name="module_langname" type="text" id="module_langname" value="{MODULE_LANGNAME}" class="medium" /></dd>
		</dl>
		<dl>
			<dt><label for="module_type">{L_MODULE_TYPE}:</label></dt>
			<dd><select name="module_type" id="module_type" onchange="display_options(this.value);"><option value="category"<!-- IF S_IS_CAT --> selected="selected"<!-- ENDIF -->>{L_CATEGORY}</option><option value="module"<!-- IF not S_IS_CAT --> selected="selected"<!-- ENDIF -->>{L_MODULE}</option></select></dd>
		</dl>
		<dl>
			<dt><label for="parent_id">{L_PARENT}:</label></dt>
			<dd><select name="module_parent_id" id="parent_id">{S_CAT_OPTIONS}</select></dd>
		</dl>
		<hr />
		<dl>
			<dt><label for="module_enabled">{L_MODULE_ENABLED}:</label></dt>
			<dd><label><input class="radio" type="radio" name="module_enabled" id="module_enabled" value="1"<!-- IF MODULE_ENABLED --> checked="checked"<!-- ENDIF --> /> {L_YES}</label>
			<label><input class="radio" type="radio" name="module_enabled" value="0"<!-- IF not MODULE_ENABLED --> checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
		</dl>
		<div id="modoptions"<!-- IF S_IS_CAT --> style="display: none;"<!-- ENDIF -->>
		<dl>
			<dt><label for="module_display">{L_MODULE_DISPLAYED}:</label><br /><span>{L_MODULE_DISPLAYED_EXPLAIN}</span></dt>
			<dd><label><input class="radio" type="radio" name="module_display" id="module_display" value="1"<!-- IF MODULE_DISPLAY --> checked="checked"<!-- ENDIF --> /> {L_YES}</label>
			<label><input class="radio" type="radio" name="module_display" value="0"<!-- IF not MODULE_DISPLAY --> checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
		</dl>
		<dl>
			<dt><label for="module_name">{L_CHOOSE_MODULE}:</label><br />
			<span>{L_CHOOSE_MODULE_EXPLAIN}</span></dt>
			<dd><select name="module_name" id="module_name" onchange="display_modes(this.value);">{S_MODULE_NAMES}</select></dd>
		</dl>
		<dl>
			<dt><label for="module_mode">{L_CHOOSE_MODE}:</label><br />
			<span>{L_CHOOSE_MODE_EXPLAIN}</span></dt>
			<dd><select name="module_mode" id="module_mode">{S_MODULE_MODES}</select></dd>
		</dl>
		</div>
	</fieldset>

	<fieldset class="submit-buttons">
		<input type="hidden" name="action" value="{ACTION}" />
		<input type="hidden" name="m" value="{MODULE_ID}" />
		
		<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
		<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
	</fieldset>

	</form>

<!-- ELSE -->

	<h1>{L_ACP_MODULE_MANAGEMENT}</h1>

	<p>{L_ACP_MODULE_MANAGEMENT_EXPLAIN}</p>

	<!-- IF S_ERROR -->
	<div class="errorbox">
		<h3>{L_WARNING}</h3>
		<p>{ERROR_MSG}</p>
	</div>
	<!-- ENDIF -->

	<table cellspacing="1">
	<tbody>
	<tr>
		<td class="row3">{NAVIGATION}<!-- IF S_NO_MODULES --> [<a href="{U_EDIT}">{L_EDIT}</a> | <a href="{U_DELETE}">{L_DELETE}</a> | <!-- IF MODULE_ENABLED --><a href="{U_DISABLE}">{L_DISABLE}</a><!-- ELSE --><a href="{U_ENABLE}">{L_ENABLE}</a><!-- ENDIF -->]<!-- ENDIF --></td>
	</tr>
	</tbody>
	</table>

<!-- IF .modules -->
	<table cellspacing="1">
		<col class="row1" /><col class="row1" /><col class="row2" /><col class="row2" />
	<tbody>
	<!-- BEGIN modules -->
		<tr>
			<td style="width: 5%;">{modules.MODULE_IMAGE}</td>
			<td style="width: 50%;"><a href="{modules.U_MODULE}">{modules.MODULE_TITLE}</a><!-- IF not modules.MODULE_DISPLAYED --> <span class="small">[{L_HIDDEN_MODULE}]</span><!-- ENDIF --></td>
			<td style="width: 15%; white-space: nowrap; text-align: center; vertical-align: middle;"><a href="{modules.U_MOVE_UP}">{L_MOVE_UP}</a><br /><a href="{modules.U_MOVE_DOWN}">{L_MOVE_DOWN}</a></td>
			<td style="width: 20%; white-space: nowrap; text-align: center; vertical-align: middle;">&nbsp;
				<a href="{modules.U_EDIT}">{L_EDIT}</a> | <a href="{modules.U_DELETE}">{L_DELETE}</a> |
				<!-- IF modules.MODULE_ENABLED --><a href="{modules.U_DISABLE}">{L_DISABLE}</a><!-- ELSE --><a href="{modules.U_ENABLE}">{L_ENABLE}</a><!-- ENDIF -->
			&nbsp;</td>
		</tr>
	<!-- END modules -->
	</tbody>
	</table>
<!-- ENDIF -->

	<form id="module" method="post" action="{U_ACTION}">

	<fieldset class="quick" style="float: left;">
		<input type="hidden" name="action" value="add" />
		<input type="hidden" name="module_parent_id" value="{PARENT_ID}" />

		<input type="text" name="module_langname" /> 
		<input class="button2" name="addmodule" type="submit" value="{L_CREATE_MODULE}" />
	</fieldset>

	</form>

	<form id="quick" method="post" action="{U_ACTION}">

	<fieldset class="quick">
		<input type="hidden" name="action" value="quickadd" />

		<select name="quick_install">{S_INSTALL_OPTIONS}</select>
		<input class="button2" name="quickadd" type="submit" value="{L_ADD_MODULE}" />
	</fieldset>
	
	</form>
	
	<form id="mselect" method="post" action="{U_SEL_ACTION}">
	<fieldset class="quick">
		{L_SELECT_MODULE}: <select name="parent_id" onchange="if(this.options[this.selectedIndex].value != -1){ this.form.submit(); }">{MODULE_BOX}</select> 

		<input class="button2" type="submit" value="{L_GO}" />
	</fieldset>
	</form>

<!-- ENDIF -->

<!-- INCLUDE overall_footer.html -->