Location: PHPKode > projects > Enigma > Enigma2/Enigma2_Install/Themes/Enigma/portal/modules/LinksManagement.template.php
<?php
// Version: 1.03; LinksManagement

function template_Links_alcat()
{
	global $context, $txt, $scripturl, $settings;

	echo '
	<div class="tborder">
		<table width="100%" border="0" class="bordercolor" cellspacing="1" align="center">
			<tr>
				<td class="titlebg" colspan="4"><strong>', $txt['links_52'], '</strong></td>
			</tr><tr>
				<td class="catbg">
					<strong>', $txt['links_13'], '</strong>
				</td>
				<td class="catbg">
					<strong>', $txt['links_12'], '</strong>
				</td>
				<td class="catbg">
					<strong>', $txt['links_53'], '</strong>
				</td>
				<td class="catbg">
					<strong>', $txt['links_54'], '</strong>
				</td>
			</tr>';

	if (is_array($context['lcat']))
	{
		foreach ($context['lcat'] AS $result)
		{
			echo '
			<tr>
				<td class="windowbg2"><a href="', $scripturl, '?module=Links;id=', $result['catID'], '">', $result['name'], '</a></td>
				<td class="windowbg2">', $result['desc'], '</td>
				<td class="windowbg2">', $result['count'], '</td>
				<td class="windowbg2"><a href="', $scripturl, '?module=LinksManagement;sa=elcat;id=', $result['catID'], '">', $txt['links_3'], '</a> | <a href="', $scripturl, '?module=LinksManagement;sa=dellcat;id=', $result['catID'], '">', $txt['links_4'], '</a></td>
			</tr>';
		}
	}
	else
	{
			echo '
			<tr>
				<td class="windowbg2" colspan="4">', $context['lcat'], '</td>
			</tr>';
	}

	echo '
		</table>
	</div>
	<br /><br />
	<form name="add_lcat" method="post" action="', $scripturl, '?module=LinksManagement;sa=alcat2">
	<a name="addLcat"></a>
	<div class="tborder">
		<table width="100%" border="0" cellspacing="0" cellpadding="4" align="center">
			<tr>
				<td class="titlebg" colspan="2">
					<strong>', $txt['links_56'], '</strong></td>
			</tr><tr>
				<td>', $txt['links_57'], '</td>
				<td><input type="text" name="name" size="30" /></td>
			</tr><tr>
				<td>', $txt['links_58'], '</td>
				<td><input type="text" name="desc" size="45" /></td>
			</tr><tr>
				<td colspan="2" align="center">
					<input type="submit" name="submit" value="', $txt['links_39'], '" />
				</td>
			</tr>
		</table>
	</div>
	</form>';
}

function template_Links_elcat()
{
	global $context, $txt, $scripturl, $settings;

	echo '
	<form name="edit_lcat" method="post" action="', $scripturl, '?module=LinksManagement;sa=elcat2">
	<a name="addLcat"></a>
	<div class="tborder">
		<table width="100%" border="0" cellspacing="0" cellpadding="4" align="center">
			<tr>
				<td class="titlebg" colspan="2">
					<strong>', $txt['links_59'], ': ', $context['elcat']['name'],'</strong></td>
			</tr><tr>
				<td>', $txt['links_57'], '</td>
				<td><input type="text" name="name" size="30" value="', $context['elcat']['name'], '" /></td>
			</tr><tr>
				<td>', $txt['links_58'], '</td>
				<td><input type="text" name="desc" size="45" value="', $context['elcat']['description'], '" /></td>
			</tr><tr>
				<td colspan="2" align="center">
					<input type="submit" name="submit" value="', $txt['links_39'], '" />
				</td>
			</tr>
		</table>
	</div>
	<input type="hidden" name="id" value="', $context['id'], '">
	</form>';
}
?>
Return current item: Enigma