<?php

// -----------------------------------------------------------------------
// This file is part of Igloo
//
// Copyright (C) 2003, 2006 Barnraiser
// http://www.barnraiser.org/
// info@barnraiser.org
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the
// Free Software Foundation; either version 2, or (at your option) any
// later version.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with program; see the file COPYING. If not, write to the Free
// Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
// 02110-1301, USA.
// -----------------------------------------------------------------------

?>

<form action="my_tags.php" method="post">


<div class="col_left1">
	<div class="box">
		<div class="box_top">
			<?php echo $lang['hdr_my_tags'];?><br />
		</div>
		
		<div class="box_mid">
			<div class="content">
				<p>
					<?php echo $lang['txt_tag_intro'];?><br />
				</p>
				
				<table width="100%" cellpadding="4" cellspacing="0" border="0">
					<?php
					if (isset($my_tags)) {
					foreach($my_tags as $key => $i):
					?>
					<tr valign="top">
						<td>
							<a href="search.php?tag=<?php echo $i['tag_body'];?>"><?php echo $i['tag_body'];?></a><br />
						</td>
						<td align="right" valign="top">
							<input type="checkbox" name="tag_bodies[]" value="<?php echo $i['tag_body'];?>" /><br />
						</td>
					</tr>
					<?php
					endforeach;
					}
					?>
				</table>
			</div>
		</div>
	</div>
		
	<div class="box_bottom">
		<span class="box_bottom_right"></span>
		<span class="box_bottom_left"></span>
	</div>
</div>

<div class="col_right1">
	<div class="box">
		<div class="box_top">
			<?php echo $lang['hdr_delete_tags'];?><br />
		</div>
		
		<div class="box_mid">
			<div class="content">
				<table width="100%" cellpadding="4" cellspacing="0" border="0">
					<tr>
						<td valign="top">
							<?php echo $lang['txt_delete_tags'];?><br />
						</td>
						<td align="right" valign="top">
							<input type="submit" name="delete_tags" value="<?php echo $lang['sub_delete'];?>" /><br />
						</td>
					</tr>
				</table>
			</div>
		</div>
	</div>
		
	<div class="box_bottom">
		<span class="box_bottom_right"></span>
		<span class="box_bottom_left"></span>
	</div>
</div>
</form>
