2016-09-10, 05:33 PM
In this template there are 2 closing form tags, i only see one form being opened, so is the 2nd one redundant?
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->delete_announcement}</title>
{$headerinclude}
</head>
<body>
{$header}
<form action="modcp.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="action" value="do_delete_announcement" />
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table width="100%" border="0" align="center">
<tr>
{$modcp_nav}
<td valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$announcement['subject']} - {$lang->delete_announcement}</strong></td>
</tr>
<tr>
<td class="trow1" colspan="2" align="center">{$lang->confirm_delete_announcement}</td>
</tr>
</table>
<br />
<div align="center"><input type="submit" class="button" name="submit" value="{$lang->delete_announcement}" /></div>
<input type="hidden" name="aid" value="{$aid}" />
</form>
</td>
</tr>
</table>
</form>
{$footer}
</body>
</html>
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->delete_announcement}</title>
{$headerinclude}
</head>
<body>
{$header}
<form action="modcp.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="action" value="do_delete_announcement" />
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table width="100%" border="0" align="center">
<tr>
{$modcp_nav}
<td valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$announcement['subject']} - {$lang->delete_announcement}</strong></td>
</tr>
<tr>
<td class="trow1" colspan="2" align="center">{$lang->confirm_delete_announcement}</td>
</tr>
</table>
<br />
<div align="center"><input type="submit" class="button" name="submit" value="{$lang->delete_announcement}" /></div>
<input type="hidden" name="aid" value="{$aid}" />
</form>
</td>
</tr>
</table>
</form>
{$footer}
</body>
</html>