Location: PHPKode > projects > EXtensible Production Suite (XPS) > xpsdev/core/templates/mod_module_admin.tpl
<!--BREADCRUMBS-->
<div class="breadcrumb_container">{$breadcrumbs}</div>


<!--HEADER-->
<div class="module_header">
	<span class="header_tab">
		{API->get_label label_id='lbl_module_admin_panel'}
	</span>
</div>

<!--BODY-->
<div class="module_body">

	<!--RESULTS-->
	<div id="results">{$message}&nbsp;</div>

	<table class="list_table" style="text-align:left;">
		<thead>
			<tr>
				<th colspan="2" style="text-align:right;">
					<form name="sort_form">

						<input class="button" style="float:left" type="button" name="install" value="{API->get_label label_id='lbl_install_modules'}" onclick="launchCoreModule('ModuleAdmin','&child_id=ModuleInstall')" />

						<span style="float:right">
							<label for="ORDER_BY">{API->get_label label_id='lbl_sort_by'}</label>

							<SELECT NAME="ORDER_BY">
								<OPTION VALUE="IS_ACTIVE" 	{if $content.sort[0] == "IS_ACTIVE"}SELECTED{/if}	>{API->get_label label_id='lbl_active_status'}
								<OPTION VALUE="MODULE_NAME" {if $content.sort[0] == "MODULE_NAME"}SELECTED{/if}	>{API->get_label label_id='lbl_module_name'}
							</SELECT>

							<SELECT NAME="ORDER_BY2">
								<OPTION VALUE="ASC" 	{if $content.sort[1] == "ASC"}SELECTED{/if}		>{API->get_label label_id='lbl_accending'}
								<OPTION VALUE="DESC" 	{if $content.sort[1] == "DESC"}SELECTED{/if}	>{API->get_label label_id='lbl_descending'}
							</SELECT>

							<input class="button" type="button" name="sort_button" value="{API->get_label label_id='lbl_sort'}" onclick="
									box = document.forms['sort_form'].ORDER_BY;
									order1 = box.options[box.selectedIndex].value;
									box = document.forms['sort_form'].ORDER_BY2;
									order2 = box.options[box.selectedIndex].value;
									launchCoreModule('ModuleAdmin','&ORDER_BY='+order1+' '+order2, true);" />
						</span>
					</form>
				</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<th>
					<div class="sub_header">{API->get_label label_id='lbl_module_name'}</div>
				</th>
				<th>
					<div class="sub_header">{API->get_label label_id='lbl_module_description'}</div>
				</th>
				<th>
				</th>
			</tr>
			<tr>
		{foreach from=$content.modules item=module  name=module_loop}
			<tr>
				<td style="width:120px;">
					{$module.MODULE_NAME}
				</td>

				<td>
					{$module.DESCRIPTION}
				</td>
				<th style="text-align:left;width:56px;">
					<IMG class="clickable" title="{API->get_message message_id='acronym_edit_module'}" onclick="launchCoreModule('ModuleAdmin','&child_id=EditModule&mod_id={$module.MODULE_ID}');" src="./themes/{API->get_setting setting_id='current_theme'}/images/view.gif" />
					{if $module.IS_ACTIVE == 1}
						<IMG class="clickable" title="{API->get_message message_id='acronym_deactivate_module'}" onclick="executeModuleEvent( 'deactivate', '{$module.MODULE_ID}', false);" src="./themes/{API->get_setting setting_id='current_theme'}/images/module_active.gif" />
					{else}
						<IMG class="clickable" title="{API->get_message message_id='acronym_activate_module'}" onclick="executeModuleEvent( 'activate', '{$module.MODULE_ID}', false);" src="./themes/{API->get_setting setting_id='current_theme'}/images/module_inactive.gif" />
						<IMG class="clickable" title="{API->get_message message_id='acronym_delete_module'}" onclick="executeModuleEvent( 'uninstall', '{$module.MODULE_ID}', true);" src="./themes/{API->get_setting setting_id='current_theme'}/images/remove.gif" />
					{/if}
				</th>
			</tr>

		{/foreach}
		{if $smarty.foreach.module_loop.iteration < 1}
			<tr>
				<td style="width:120px;">---</td>
				<td>---</td>
				<th style="width:56px;"></th>
			</tr>
		{/if}
		</tbody>
	</table>

	<span>{$content.page_numbers}</span>
</div>
Return current item: EXtensible Production Suite (XPS)