<table width="100%" cellpadding="0" cellspacing="0" border="0">
	<tr><td class="nav"><a href="index.php?section=home">Home</a>&nbsp;&gt;&nbsp;<a href="index.php?section=geo">Geo-Positioning</a>&nbsp;&gt;&nbsp;<a href="index.php?section=geo&action=edit_country&con_id=<?php echo $data["con_id"]; ?>"><?php echo $data["country"]; ?></a></td></tr>
	<tr><td>&nbsp;</td></tr>
	<tr><td><table cellpadding="2" cellspacing="2" border="0" align="center" width="400">
		<tr><td class="lined blue_bcg white_body padded" colspan="2" align="center"><a href="index.php?section=geo&action=edit_country&con_id=<?php echo $data["con_id"]; ?>"><?php echo $data["country"]; ?></a></td></tr>
		<tr><td colspan="2" class="form_cell"><table cellpadding="0" cellspacing="2" border="0" align="center">
		<form action="index.php" method="post">
		<input type="hidden" name="section" value="geo">
		<input type="hidden" name="action" value="edit_states">
		<input type="hidden" name="con_id" value="<?php echo $data["con_id"]; ?>">
			<tr><td class="body"><?php
			admin_form_element( array ("type" => "input", "name" => "search", "size" => 20, "value" => $data["values"][search]) );
			?></td><td><?php
			admin_form_element( array ("type" => "button", "value" => "Search") );
			?></td></tr>
		</form>
		</table></td></tr>
		<tr><td class="list_header" align="center" width="100%">State/Region</td>
		<td class="list_header" align="center">Action</td>
		<?php
		foreach($data["states"] as $state){
			?><tr>
			<td class="list_cell"><?php echo $state["name"]; ?></td>
			<td class="list_cell"><?php
			admin_output_image("buttons/but_edit_small.gif","index.php?section=geo&action=edit_state&sta_id=".$state["sta_id"]."&ret_link=".urlencode($data["link"]),0,"edit state");
			admin_output_image("buttons/but_delete_small.gif","index.php?section=geo&action=delete_state&sta_id=".$state["sta_id"]."&ret_link=".urlencode($data["link"]),0,"delete state");
			?></td>
			</tr><?php
		}//foreach
		?>
	</table></td></tr>
	<?php if(is_array($data["pages"][numbers])): ?>
	<tr>
		<td class="pages_line">
			<table cellpadding="0" cellspacing="0" border="0" align="center" height="20">
				<tr>					
					<td align="center" class="pages_body">
					<?php
						if($data["pages"][prev]){
							?><a href="<?php echo $data["pages"][prev]; ?>">&lt;&lt;</a>&nbsp;<?php
						}//if
						while(list($page,$link) = each($data["pages"][numbers])){
							?><a href="<?php echo $link; ?>"><?php echo ($page == $data["pages"][current]) ? "<b>".$page."</b>" : $page ; ?></a>&nbsp;<?php
						}//while
						if($data["pages"][next]){
							?><a href="<?php echo $data["pages"][next]; ?>">&gt;&gt;</a>&nbsp;<?php
						}//if
					?>
					</td>
			</table>			
		</td>
	</tr>
	<?php endif; ?>
</table>