<table cellpadding="2" cellspacing="2" border="0" width="500" align="center">
	<tr><td align="center" class="lined blue_bcg white_body padded">Step 3 of 10: System Emails</td></tr>
	<tr><td><table cellpadding="5" cellspacing="2" border="0" align="center" width="100%">
		<form action="index.php" method="post">
		<input type="hidden" name="section" value="translate">
		<input type="hidden" name="action" value="save_emails">
		<input type="hidden" name="theme" value="<?php echo $data["theme"]; ?>">
			<?php
			while(list($key,$val) = each($data["messages"][subject])){
				?><tr><td class="form_cell"><table cellpadding="0" cellspacing="3" border="0"><?php
				?><tr><td class="body">Subject:</td><td class="highlight"><?php
				admin_form_element( array ("type" => "input", "size" => 75, "name" => "subjects[".$key."]", "value" => $val) );
				?></td></tr>
				<tr><td class="body" valign="top">Message:</td><?php
				?><td class="highlight"><?php
				admin_form_element( array ("type" => "textarea", "rows" => 5, "cols" => 76, "name" => "bodies[".$key."]", "value" => $data["messages"][body][$key]) );
				?></td></tr>
				<tr><td>&nbsp;</td><td><table cellpadding="0" cellspacing="2" border="0"><?php
				while(list($pat,$descr) = each($data["patterns"][$key])){
					?><tr><td class="body" width="120"><?php echo $pat; ?></td><td class="highlight"><?php echo $descr; ?></td></tr><?php
				}//while
				?></table></td></tr>
				</table></td></tr><?php
			}//while
			?>
			<tr><td colspan="2" align="center"><?php
			admin_form_element( array ("type" => "button", "value" => "Next") );
			?></td></tr>
		</form>
		</table>
	</td></tr>	
</table>