Location: PHPKode > projects > Enigma > Enigma2/Enigma2_Install/Themes/Enigma/portal/submissionIndex.template.php
<?php
// Version: 1.0 RC1; submissionIndex

function template_submission_Index()
{
	global $context, $txt, $scripturl, $sc;

	echo theme_linktree(), '<br /><br />
	<div class="tborder">
	<table width="100%" border="0" class="bordercolor" cellspacing="1" align="center">
		<tr>
			<td class="catbg" colspan="3">' . $txt['submission_title'] . '</td>
		</tr><tr>
			<td class="windowbg" colspan="3">' . $txt['submission_492'] . '</td>
		</tr><tr>
			<td class="windowbg" width="50%" align="center">' . $txt['submission_01'] . '</td>
			<td class="windowbg" width="25%" align="center">' . $txt['submission_02'] . '</td>
			<td class="windowbg" width="25%" align="center">' . $txt['submission_03'] . '</td>
		</tr><tr>	';

	if ($context['revNews'])
		echo '<td class="windowbg2" align="center"><b>' . $txt['submission_273'] . '</b><br /><br />' . $txt['submission_493'] . '</td>
		<td class="windowbg2" align="center"><a href="' . $scripturl . '?op=News;sa=addnews">' . $txt['submission_513'] . '</a><br /><a href="' . $scripturl . '?op=News;sa=newsIndex">' . $txt['submission_494'] . '</a></td>
		<td class="windowbg2" align="center">&nbsp;</td>';
	elseif ($context['subNews'] && !$context['revNews'])
		echo '<td class="windowbg2" align="center"><b>' . $txt['submission_273'] . '</b><br /><br />' . $txt['submission_495'] . '</td>
		<td class="windowbg2" align="center"><a href="' . $scripturl . '?op=News;sa=addnews">' . $txt['submission_513'] . '</a></td>
		<td class="windowbg2" align="center">' . $txt['submission_494'] . '</td>';
	else
		echo '<td class="windowbg2" align="center"><b>' . $txt['submission_273'] . '</b><br /><br />' . $txt['submission_497'] . '</td>
		<td class="windowbg2" align="center">&nbsp;</td>
		<td class="windowbg2" align="center">' . $txt['submission_513'] . '<br />' . $txt['submission_494'] . '</td>';

	echo '
		</tr><tr>';

	if ($context['revArticles'])
		echo '<td class="windowbg2" align="center"><b>' . $txt['submission_450'] . '</b><br /><br />' . $txt['submission_498'] . '</td>
		<td class="windowbg2" align="center"><a href="' . $scripturl . '?op=Articles;sa=aarticle">' . $txt['submission_500'] . '</a><br /><a href="' . $scripturl . '?op=Articles;sa=articleIndex">' . $txt['submission_499'] . '</a></td>
		<td class="windowbg2" align="center">&nbsp;</td>';
	elseif ($context['subArticles'] && !$context['revArticles'])
		echo '<td class="windowbg2" align="center"><b>' . $txt['submission_450'] . '</b><br /><br />' . $txt['submission_501'] . '</td>
		<td class="windowbg2" align="center"><a href="' . $scripturl . '?op=Articles;sa=aarticle">' . $txt['submission_500'] . '</a></td>
		<td class="windowbg2" align="center">' . $txt['submission_499'] . '</td>';
	else
		echo '<td class="windowbg2" align="center"><b>' . $txt['submission_450'] . '</b><br /><br />' . $txt['submission_503'] . '</td>
		<td class="windowbg2" align="center">&nbsp;</td>
		<td class="windowbg2" align="center">' . $txt['submission_500'] . '<br />' . $txt['submission_499'] . '</td>';

	echo '
		</tr><tr>';

	if ($context['revLinks'])
		echo '<td class="windowbg2" align="center"><b>' . $txt['submission_315'] . '</b><br /><br />' . $txt['submission_504'] . '</td>
		<td class="windowbg2" align="center"><a href="' . $scripturl . '?module=Links;sa=addlink">' . $txt['submission_507'] . '</a><br /><a href="' . $scripturl . '?module=Links;sa=linkIndex">' . $txt['submission_506'] . '</a></td>
		<td class="windowbg2" align="center">&nbsp;</td>';

	elseif ($context['subLinks'] && !$context['revLinks'])
		echo '<td class="windowbg2" align="center"><b>' . $txt['submission_315'] . '</b><br /><br />' . $txt['submission_508'] . '</td>
		<td class="windowbg2" align="center"><a href="' . $scripturl . '?module=Links;sa=addlink">' . $txt['submission_507'] . '</a></td>
		<td class="windowbg2" align="center">' . $txt['submission_506'] . '</td>';
	else
		echo '<td class="windowbg2" align="center"><b>' . $txt['submission_315'] . '</b><br /><br />' . $txt['submission_510'] . '</td>
		<td class="windowbg2" align="center">&nbsp;</td>
		<td class="windowbg2" align="center">' . $txt['submission_507'] . '<br />' . $txt['submission_506'] . '</td>';

	echo '
		</tr>
	</table></div>';
}
?>
Return current item: Enigma