1
<!-- INCLUDE overall_header.html -->
3
<a name="maincontent"></a>
5
<!-- IF S_EDIT_MODULE -->
7
<script type="text/javascript">
9
function display_options(value)
11
if (value == 'category')
21
function display_modes(value)
23
// Find the old select tag
24
var item = document.getElementById('module_mode');
26
// Create the new select tag
27
var new_node = document.createElement('select');
28
new_node.setAttribute('id', 'module_mode');
29
new_node.setAttribute('name', 'module_mode');
31
// Substitute it for the old one
32
item.parentNode.replaceChild(new_node, item);
35
item = document.getElementById('module_mode');
38
<!-- BEGIN m_names -->
40
if (value == '{m_names.A_NAME}')
43
item.options[j] = new Option('{m_names.modes.A_VALUE}');
44
item.options[j].value = '{m_names.modes.A_OPTION}';
51
item.options[0].selected = true;
57
<a href="{U_BACK}" style="float: {S_CONTENT_FLOW_END};">« {L_BACK}</a>
59
<h1>{L_TITLE} :: {MODULENAME}</h1>
61
<p>{L_EDIT_MODULE_EXPLAIN}</p>
64
<div class="errorbox">
70
<form id="moduleedit" method="post" action="{U_EDIT_ACTION}">
73
<legend>{L_GENERAL_OPTIONS}</legend>
75
<dt><label for="module_langname">{L_MODULE_LANGNAME}:</label><br />
76
<span>{L_MODULE_LANGNAME_EXPLAIN}</span></dt>
77
<dd><input name="module_langname" type="text" class="text medium" id="module_langname" value="{MODULE_LANGNAME}" /></dd>
80
<dt><label for="module_type">{L_MODULE_TYPE}:</label></dt>
81
<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>
84
<dt><label for="parent_id">{L_PARENT}:</label></dt>
85
<dd><select name="module_parent_id" id="parent_id">{S_CAT_OPTIONS}</select></dd>
89
<dt><label for="module_enabled">{L_MODULE_ENABLED}:</label></dt>
90
<dd><label><input type="radio" class="radio" name="module_enabled" id="module_enabled" value="1"<!-- IF MODULE_ENABLED --> checked="checked"<!-- ENDIF --> /> {L_YES}</label>
91
<label><input type="radio" class="radio" name="module_enabled" value="0"<!-- IF not MODULE_ENABLED --> checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
93
<div id="modoptions"<!-- IF S_IS_CAT --> style="display: none;"<!-- ENDIF -->>
95
<dt><label for="module_display">{L_MODULE_DISPLAYED}:</label><br /><span>{L_MODULE_DISPLAYED_EXPLAIN}</span></dt>
96
<dd><label><input type="radio" class="radio" name="module_display" id="module_display" value="1"<!-- IF MODULE_DISPLAY --> checked="checked"<!-- ENDIF --> /> {L_YES}</label>
97
<label><input type="radio" class="radio" name="module_display" value="0"<!-- IF not MODULE_DISPLAY --> checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
100
<dt><label for="module_basename">{L_CHOOSE_MODULE}:</label><br />
101
<span>{L_CHOOSE_MODULE_EXPLAIN}</span></dt>
102
<dd><select name="module_basename" id="module_basename" onchange="display_modes(this.value);">{S_MODULE_NAMES}</select></dd>
105
<dt><label for="module_mode">{L_CHOOSE_MODE}:</label><br />
106
<span>{L_CHOOSE_MODE_EXPLAIN}</span></dt>
107
<dd><select name="module_mode" id="module_mode">{S_MODULE_MODES}</select></dd>
111
<p class="submit-buttons">
112
<input type="hidden" name="action" value="{ACTION}" />
113
<input type="hidden" name="m" value="{MODULE_ID}" />
115
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />
116
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
124
<h1>{L_ACP_MODULE_MANAGEMENT}</h1>
126
<p>{L_ACP_MODULE_MANAGEMENT_EXPLAIN}</p>
129
<div class="errorbox">
135
<table cellspacing="1">
138
<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>
144
<table cellspacing="1">
145
<col class="row1" /><col class="row1" /><col class="row2" /><col class="row2" />
147
<!-- BEGIN modules -->
149
<td style="width: 5%; text-align: center;">{modules.MODULE_IMAGE}</td>
150
<td><a href="{modules.U_MODULE}">{modules.MODULE_TITLE}</a><!-- IF not modules.MODULE_DISPLAYED --> <span class="small">[{L_HIDDEN_MODULE}]</span><!-- ENDIF --></td>
151
<td style="width: 15%; white-space: nowrap; text-align: center; vertical-align: middle;"> <!-- IF modules.MODULE_ENABLED --><a href="{modules.U_DISABLE}">{L_DISABLE}</a><!-- ELSE --><a href="{modules.U_ENABLE}">{L_ENABLE}</a><!-- ENDIF --> </td>
152
<td style="width:90px; white-space: nowrap; text-align: right; vertical-align: middle;">
153
<!-- IF modules.S_FIRST_ROW && not modules.S_LAST_ROW -->
154
{ICON_MOVE_UP_DISABLED}
155
<a href="{modules.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a>
156
<!-- ELSEIF not modules.S_FIRST_ROW && not modules.S_LAST_ROW-->
157
<a href="{modules.U_MOVE_UP}">{ICON_MOVE_UP}</a>
158
<a href="{modules.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a>
159
<!-- ELSEIF modules.S_LAST_ROW && not modules.S_FIRST_ROW -->
160
<a href="{modules.U_MOVE_UP}">{ICON_MOVE_UP}</a>
161
{ICON_MOVE_DOWN_DISABLED}
163
{ICON_MOVE_UP_DISABLED}
164
{ICON_MOVE_DOWN_DISABLED}
166
<a href="{modules.U_EDIT}">{ICON_EDIT}</a>
167
<a href="{modules.U_DELETE}">{ICON_DELETE}</a>
175
<div class="clearfix"> </div>
177
<form id="quick" method="post" action="{U_ACTION}">
179
<fieldset class="quick" style="float: {S_CONTENT_FLOW_END};">
180
<input type="hidden" name="action" value="quickadd" />
182
<select name="quick_install">{S_INSTALL_OPTIONS}</select>
183
<input class="button2" name="quickadd" type="submit" value="{L_ADD_MODULE}" />
188
<form id="module" method="post" action="{U_ACTION}">
190
<fieldset class="quick" style="float: {S_CONTENT_FLOW_BEGIN};">
191
<input type="hidden" name="action" value="add" />
192
<input type="hidden" name="module_parent_id" value="{PARENT_ID}" />
194
<input type="text" name="module_langname" maxlength="255" />
195
<input class="button2" name="addmodule" type="submit" value="{L_CREATE_MODULE}" />
200
<div class="clearfix"> </div><br style="clear: both;" />
202
<form id="mselect" method="post" action="{U_SEL_ACTION}">
203
<fieldset class="quick">
204
{L_SELECT_MODULE}: <select name="parent_id" onchange="if(this.options[this.selectedIndex].value != -1){ this.form.submit(); }">{MODULE_BOX}</select>
206
<input class="button2" type="submit" value="{L_GO}" />
212
<!-- INCLUDE overall_footer.html -->