adm/style/acp_modules.html
changeset 0 ceef6d64c21d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/adm/style/acp_modules.html	Wed Mar 07 16:41:10 2012 +0400
     1.3 @@ -0,0 +1,212 @@
     1.4 +<!-- INCLUDE overall_header.html -->
     1.5 +
     1.6 +<a name="maincontent"></a>
     1.7 +
     1.8 +<!-- IF S_EDIT_MODULE -->
     1.9 +
    1.10 +	<script type="text/javascript">
    1.11 +	// <![CDATA[
    1.12 +		function display_options(value)
    1.13 +		{
    1.14 +			if (value == 'category')
    1.15 +			{
    1.16 +				dE('modoptions', -1);
    1.17 +			}
    1.18 +			else
    1.19 +			{
    1.20 +				dE('modoptions', 1);
    1.21 +			}
    1.22 +		}
    1.23 +
    1.24 +		function display_modes(value)
    1.25 +		{
    1.26 +			// Find the old select tag
    1.27 +			var item = document.getElementById('module_mode');
    1.28 +
    1.29 +			// Create the new select tag
    1.30 +			var new_node = document.createElement('select');
    1.31 +			new_node.setAttribute('id', 'module_mode');
    1.32 +			new_node.setAttribute('name', 'module_mode');
    1.33 +
    1.34 +			// Substitute it for the old one
    1.35 +			item.parentNode.replaceChild(new_node, item);
    1.36 +
    1.37 +			// Reset the variable
    1.38 +			item = document.getElementById('module_mode');
    1.39 +
    1.40 +			var j = 0;
    1.41 +<!-- BEGIN m_names -->
    1.42 +		
    1.43 +			if (value == '{m_names.A_NAME}')
    1.44 +			{
    1.45 +	<!-- BEGIN modes -->
    1.46 +				item.options[j] = new Option('{m_names.modes.A_VALUE}');
    1.47 +				item.options[j].value = '{m_names.modes.A_OPTION}';
    1.48 +				j++;
    1.49 +	<!-- END modes -->
    1.50 +			}
    1.51 +<!-- END m_names -->
    1.52 +
    1.53 +			// select first item
    1.54 +			item.options[0].selected = true;
    1.55 +		}
    1.56 +
    1.57 +	// ]]>
    1.58 +	</script>
    1.59 +
    1.60 +	<a href="{U_BACK}" style="float: {S_CONTENT_FLOW_END};">&laquo; {L_BACK}</a>
    1.61 +
    1.62 +	<h1>{L_TITLE} :: {MODULENAME}</h1>
    1.63 +
    1.64 +	<p>{L_EDIT_MODULE_EXPLAIN}</p>
    1.65 +
    1.66 +	<!-- IF S_ERROR -->
    1.67 +		<div class="errorbox">
    1.68 +			<h3>{L_WARNING}</h3>
    1.69 +			<p>{ERROR_MSG}</p>
    1.70 +		</div>
    1.71 +	<!-- ENDIF -->
    1.72 +
    1.73 +	<form id="moduleedit" method="post" action="{U_EDIT_ACTION}">
    1.74 +
    1.75 +	<fieldset>
    1.76 +		<legend>{L_GENERAL_OPTIONS}</legend>
    1.77 +	<dl>
    1.78 +		<dt><label for="module_langname">{L_MODULE_LANGNAME}:</label><br />
    1.79 +		<span>{L_MODULE_LANGNAME_EXPLAIN}</span></dt>
    1.80 +		<dd><input name="module_langname" type="text" class="text medium" id="module_langname" value="{MODULE_LANGNAME}" /></dd>
    1.81 +	</dl>
    1.82 +	<dl>
    1.83 +		<dt><label for="module_type">{L_MODULE_TYPE}:</label></dt>
    1.84 +		<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>
    1.85 +	</dl>
    1.86 +	<dl>
    1.87 +		<dt><label for="parent_id">{L_PARENT}:</label></dt>
    1.88 +		<dd><select name="module_parent_id" id="parent_id">{S_CAT_OPTIONS}</select></dd>
    1.89 +	</dl>
    1.90 +	<hr />
    1.91 +	<dl>
    1.92 +		<dt><label for="module_enabled">{L_MODULE_ENABLED}:</label></dt>
    1.93 +		<dd><label><input type="radio" class="radio" name="module_enabled" id="module_enabled" value="1"<!-- IF MODULE_ENABLED --> checked="checked"<!-- ENDIF --> /> {L_YES}</label>
    1.94 +			<label><input type="radio" class="radio" name="module_enabled" value="0"<!-- IF not MODULE_ENABLED --> checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
    1.95 +	</dl>
    1.96 +	<div id="modoptions"<!-- IF S_IS_CAT --> style="display: none;"<!-- ENDIF -->>
    1.97 +		<dl>
    1.98 +			<dt><label for="module_display">{L_MODULE_DISPLAYED}:</label><br /><span>{L_MODULE_DISPLAYED_EXPLAIN}</span></dt>
    1.99 +			<dd><label><input type="radio" class="radio" name="module_display" id="module_display" value="1"<!-- IF MODULE_DISPLAY --> checked="checked"<!-- ENDIF --> /> {L_YES}</label>
   1.100 +				<label><input type="radio" class="radio" name="module_display" value="0"<!-- IF not MODULE_DISPLAY --> checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
   1.101 +		</dl>
   1.102 +		<dl>
   1.103 +			<dt><label for="module_basename">{L_CHOOSE_MODULE}:</label><br />
   1.104 +			<span>{L_CHOOSE_MODULE_EXPLAIN}</span></dt>
   1.105 +			<dd><select name="module_basename" id="module_basename" onchange="display_modes(this.value);">{S_MODULE_NAMES}</select></dd>
   1.106 +		</dl>
   1.107 +		<dl>
   1.108 +			<dt><label for="module_mode">{L_CHOOSE_MODE}:</label><br />
   1.109 +			<span>{L_CHOOSE_MODE_EXPLAIN}</span></dt>
   1.110 +			<dd><select name="module_mode" id="module_mode">{S_MODULE_MODES}</select></dd>
   1.111 +		</dl>
   1.112 +	</div>
   1.113 +
   1.114 +	<p class="submit-buttons">
   1.115 +		<input type="hidden" name="action" value="{ACTION}" />
   1.116 +		<input type="hidden" name="m" value="{MODULE_ID}" />
   1.117 +		
   1.118 +		<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
   1.119 +		<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
   1.120 +	</p>
   1.121 +	{S_FORM_TOKEN}
   1.122 +	</fieldset>
   1.123 +	</form>
   1.124 +
   1.125 +<!-- ELSE -->
   1.126 +
   1.127 +	<h1>{L_ACP_MODULE_MANAGEMENT}</h1>
   1.128 +
   1.129 +	<p>{L_ACP_MODULE_MANAGEMENT_EXPLAIN}</p>
   1.130 +
   1.131 +	<!-- IF S_ERROR -->
   1.132 +		<div class="errorbox">
   1.133 +			<h3>{L_WARNING}</h3>
   1.134 +			<p>{ERROR_MSG}</p>
   1.135 +		</div>
   1.136 +	<!-- ENDIF -->
   1.137 +
   1.138 +	<table cellspacing="1">
   1.139 +	<tbody>
   1.140 +	<tr>
   1.141 +		<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>
   1.142 +	</tr>
   1.143 +	</tbody>
   1.144 +	</table>
   1.145 +
   1.146 +	<!-- IF .modules -->
   1.147 +		<table cellspacing="1">
   1.148 +			<col class="row1" /><col class="row1" /><col class="row2" /><col class="row2" />
   1.149 +		<tbody>
   1.150 +		<!-- BEGIN modules -->
   1.151 +			<tr>
   1.152 +				<td style="width: 5%; text-align: center;">{modules.MODULE_IMAGE}</td>
   1.153 +				<td><a href="{modules.U_MODULE}">{modules.MODULE_TITLE}</a><!-- IF not modules.MODULE_DISPLAYED --> <span class="small">[{L_HIDDEN_MODULE}]</span><!-- ENDIF --></td>
   1.154 +				<td style="width: 15%; white-space: nowrap; text-align: center; vertical-align: middle;">&nbsp;<!-- IF modules.MODULE_ENABLED --><a href="{modules.U_DISABLE}">{L_DISABLE}</a><!-- ELSE --><a href="{modules.U_ENABLE}">{L_ENABLE}</a><!-- ENDIF -->&nbsp;</td>
   1.155 +				<td style="width:90px; white-space: nowrap; text-align: right; vertical-align: middle;">
   1.156 +					<!-- IF modules.S_FIRST_ROW && not modules.S_LAST_ROW -->
   1.157 +						{ICON_MOVE_UP_DISABLED}
   1.158 +						<a href="{modules.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a>
   1.159 +					<!-- ELSEIF not modules.S_FIRST_ROW && not modules.S_LAST_ROW-->
   1.160 +						<a href="{modules.U_MOVE_UP}">{ICON_MOVE_UP}</a> 
   1.161 +						<a href="{modules.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a> 
   1.162 +					<!-- ELSEIF modules.S_LAST_ROW && not modules.S_FIRST_ROW -->
   1.163 +						<a href="{modules.U_MOVE_UP}">{ICON_MOVE_UP}</a>	
   1.164 +						{ICON_MOVE_DOWN_DISABLED}
   1.165 +					<!-- ELSE -->
   1.166 +						{ICON_MOVE_UP_DISABLED}
   1.167 +						{ICON_MOVE_DOWN_DISABLED}
   1.168 +					<!-- ENDIF -->
   1.169 +					<a href="{modules.U_EDIT}">{ICON_EDIT}</a> 
   1.170 +					<a href="{modules.U_DELETE}">{ICON_DELETE}</a>
   1.171 +				</td>
   1.172 +			</tr>
   1.173 +		<!-- END modules -->
   1.174 +		</tbody>
   1.175 +		</table>
   1.176 +	<!-- ENDIF -->
   1.177 +
   1.178 +	<div class="clearfix">&nbsp;</div>
   1.179 +
   1.180 +	<form id="quick" method="post" action="{U_ACTION}">
   1.181 +
   1.182 +	<fieldset class="quick" style="float: {S_CONTENT_FLOW_END};">
   1.183 +		<input type="hidden" name="action" value="quickadd" />
   1.184 +
   1.185 +		<select name="quick_install">{S_INSTALL_OPTIONS}</select>
   1.186 +		<input class="button2" name="quickadd" type="submit" value="{L_ADD_MODULE}" />
   1.187 +	</fieldset>
   1.188 +	
   1.189 +	</form>
   1.190 +
   1.191 +	<form id="module" method="post" action="{U_ACTION}">
   1.192 +
   1.193 +	<fieldset class="quick" style="float: {S_CONTENT_FLOW_BEGIN};">
   1.194 +		<input type="hidden" name="action" value="add" />
   1.195 +		<input type="hidden" name="module_parent_id" value="{PARENT_ID}" />
   1.196 +
   1.197 +		<input type="text" name="module_langname" maxlength="255" /> 
   1.198 +		<input class="button2" name="addmodule" type="submit" value="{L_CREATE_MODULE}" />
   1.199 +	</fieldset>
   1.200 +
   1.201 +	</form>
   1.202 +
   1.203 +	<div class="clearfix">&nbsp;</div><br style="clear: both;" />
   1.204 +	
   1.205 +	<form id="mselect" method="post" action="{U_SEL_ACTION}">
   1.206 +	<fieldset class="quick">
   1.207 +		{L_SELECT_MODULE}: <select name="parent_id" onchange="if(this.options[this.selectedIndex].value != -1){ this.form.submit(); }">{MODULE_BOX}</select> 
   1.208 +
   1.209 +		<input class="button2" type="submit" value="{L_GO}" />
   1.210 +	</fieldset>
   1.211 +	</form>
   1.212 +
   1.213 +<!-- ENDIF -->
   1.214 +
   1.215 +<!-- INCLUDE overall_footer.html -->