<?php

// -----------------------------------------------------------------------
// This file is part of aroundme
// 
// Copyright (C) 2003, 2005 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., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
// -----------------------------------------------------------------------

?>


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

<table width="770" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="180" valign="top">
			<?php
			include $templatePath . "my_menu.inc.tpl.php";
			?>

			<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="52" alt="" /><br />

			<?php
			include $templatePath . "logo.inc.tpl.php";
			?>
		</td>

		<td width="20">&nbsp;</td>

		<td width="275" valign="top">
			<table width="100%" cellpadding="4" cellspacing="0" border="0" class="table_stnd">
				<tr>
					<td colspan="2" class="txt_title" align="right">
						<?php echo $lang['hdr_watching'];?><br />
						<hr />
					</td>
				</tr>
				<tr>
					<td colspan="2" class="txt_title">
						<?php echo $lang['hdr_subjects'];?><br />
					</td>
				</tr>
				<?php
				if (isset($watched_subjects)) {
				foreach($watched_subjects as $key => $i):
				?>
				<tr valign="top">
					<td>
						<a href="g_forum_subject.php?group_id=<?php echo $i['group_id'];?>&amp;subject_id=<?php echo $i['subject_id'];?>"><?php echo $i['subject_title'];?></a><br />
						<span class="txt_footer"><?php echo $i['subject_body'];?><br />
						<?php
						if (isset($i['movement']['lastview_datetime'])) {
							echo $lang['txt_lastview'] . " " . $i['movement']['lastview_datetime'] . " (" . $lang['txt_movement'] . " ". $i['movement']['movement'] . ")";
						}
						?></span><br />
					</td>
					<td align="right" valign="top">
						<input type="checkbox" name="watch_subject_delete_id[]" value="<?php echo $i['subject_id'];?>" /><br />
					</td>
			    </tr>
				<tr>
					<td colspan="2">
						<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="4" alt="" /><br />
					</td>
				</tr>
				<?php
				endforeach;
				}
				?>
			</table>

			<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="10" alt="" /><br />

			<table width="100%" cellpadding="4" cellspacing="0" border="0" class="table_stnd">
				<tr>
					<td colspan="2" class="txt_title">
						<?php echo $lang['hdr_group_library'];?><br />
					</td>
				</tr>
				<?php
				if (isset($watched_group_library)) {
				foreach($watched_group_library as $key => $i):
				?>
				<tr>
					<td>
						<?php
						if (isset($i['image'])) {
						?>
							<img align="left" src="get_file.php?file=<?php echo $i['image']['file'];?>" border="0" class="picture_left" alt="<?php echo $i['image']['file_title'];?>" />
						<?
						}
						?>
						<a href="g_library.php?group_id=<?php echo $i['section_item_id'];?>&amp;library_id=<?php echo $i['library_id'];?>"><?php echo $i['library_title'];?></a><br />
						<span class="txt_footer"><?php echo $i['library_synopsis'];?></span><br />
					</td>
					<td align="right" valign="top">
						<input type="checkbox" name="watch_library_delete_name[]" value="<?php echo $i['library_page_name'];?>"><br />
					</td>
			    </tr>
				<tr>
					<td colspan="2">
						<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="4" alt="" /><br />
					</td>
				</tr>
				<?php
				endforeach;
				}
				?>
			</table>

			<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="10" alt="" /><br />

			<table width="100%" cellpadding="4" cellspacing="0" border="0" class="table_stnd">
				<tr>
					<td colspan="2" class="txt_title">
						<?php echo $lang['hdr_activities'];?><br />
					</td>
				</tr>
				<?php
				if (isset($watched_activities)) {
				foreach($watched_activities as $key => $i):
				?>
			    <tr>
					<td>
						<?php
						if (isset($i['image'])) {
						?>
							<img align="left" src="get_file.php?file=<?php echo $i['image']['file'];?>" border="0" class="picture_left" alt="<?php echo $i['image']['file_title'];?>" />
						<?
						}
						?>
						<a href="a_activity.php?activity_id=<?php echo $i['activity_id'];?>"><?php echo $i['activity_title'];?></a><br />
						<?php echo $i['activity_start_datetime'];?><br />
						<span class="txt_footer"><?php echo $i['activity_synopsis'];?></span><br />
					</td>
					<td align="right" valign="top">
						<input type="checkbox" name="watch_activity_delete_id[]" value="<?php echo $i['activity_id'];?>" /><br />
					</td>
			    </tr>
				<tr>
					<td colspan="2">
						<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="4" alt="" /><br />
					</td>
				</tr>
				<?php
				endforeach;
				}
				?>
			</table>

			<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="10" alt="" /><br />

			<table width="100%" cellpadding="4" cellspacing="0" border="0" class="table_stnd">
				<tr>
					<td colspan="2" class="txt_title">
						<?php echo $lang['hdr_group_blogs'];?><br />
					</td>
				</tr>
				<?php
				if (isset($watched_blogs)) {
				foreach($watched_blogs as $key => $i):
				?>
				<tr>
					<td>
						<?php echo $i['profile_nic'];?>: <?php echo $i['blog_create_datetime'];?><br />
						<span class="txt_footer">
						<a href="g_blog.php?group_id=<?php echo $i['section_item_id'];?>&amp;blog_id=<?php echo $i['blog_id'];?>"><?php echo $i['blog_title'];?></a><br />
						<?php echo $i['blog_synopsis'];?></span><br />
					</td>
					<td align="right" valign="top">
						<input type="checkbox" name="watch_blog_delete_id[]" value="<?php echo $i['blog_id'];?>" /><br />
					</td>
			    </tr>
				<tr>
					<td colspan="2">
						<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="4" alt="" /><br />
					</td>
				</tr>
				<?php
				endforeach;
				}
				?>
			</table>

			<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="10" alt="" /><br />

			<table width="100%" cellpadding="4" cellspacing="0" border="0" class="table_stnd">
				<tr>
					<td colspan="2" class="txt_title">
						<?php echo $lang['hdr_group_polls'];?><br />
					</td>
				</tr>
				<?php
				if (isset($watched_polls)) {
				foreach($watched_polls as $key => $i):
				?>
				<tr>
					<td>
						<a href="g_poll.php?group_id=<?php echo $i['section_item_id'];?>&amp;poll_id=<?php echo $i['poll_id'];?>"><?php echo $i['poll_question'];?></a><br />
					</td>
					<td align="right" valign="top">
						<input type="checkbox" name="watch_poll_delete_id[]" value="<?php echo $i['poll_id'];?>"><br />
					</td>
				</tr>
				<tr>
 					<td valign="top">
 						<?php
						$poll = $i;
 						include $templatePath . "poll.inc.tpl.php";
 						?>
 					</td>
					<td>
						&nbsp;<br />
					</td>
 			    </tr>
				<tr>
					<td colspan="2">
						<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="2" alt="" /><br />
					</td>
				</tr>
				<?php
				endforeach;
				}
				?>
			</table>
		</td>

		<td width="20">&nbsp;</td>

		<td width="275" valign="top">
			<table width="100%" cellpadding="4" cellspacing="0" border="0" class="table_stnd">
				<tr>
					<td colspan="2" class="txt_title" align="right">
						<?php echo $lang['hdr_my_bookmark']?><br />
						<hr />
					</td>
				</tr>

				<tr>
					<td class="txt_footer">
						<?php echo $lang['txt_delete_bookmark'];?><br />
					</td>
			    </tr>
			    <tr>
					<td align="right">
						<input type="submit" name="delete_bookmark" value="<?php echo $lang['sub_delete'];?>" class="formInput" /><br />
					</td>
				</tr>
			</table>

			<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="10" alt="" /><br />

			<table width="100%" cellpadding="4" cellspacing="0" border="0" class="table_stnd">
				<tr>
					<td class="txt_title" align="right">
						<?php echo $lang['hdr_recommended'];?><br />
						<hr />
					</td>
				</tr>
			</table>
			<table width="100%" cellpadding="4" cellspacing="0" border="0" class="table_stnd">
				<tr>
					<td colspan="2" class="txt_title">
						<?php echo $lang['hdr_subjects'];?><br />
					</td>
				</tr>
				<?php
				if (isset($recommended_subjects)) {
				foreach($recommended_subjects as $key => $i):
				?>
				<tr>
					<td>
						<a href="g_forum_subject.php?group_id=<?php echo $i['group_id'];?>&amp;subject_id=<?php echo $i['subject_id'];?>"><?php echo $i['subject_title'];?></a><br />
						<span class="txt_footer"><?php echo $i['subject_body'];?></span><br />
					</td>
					<td align="right" valign="top">
						<input type="checkbox" name="rec_subject_delete_id[]" value="<?php echo $i['subject_id'];?>" /><br />
					</td>
			    </tr>
				<tr>
					<td colspan="2">
						<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="4" alt="" /><br />
					</td>
				</tr>
				<?php
				endforeach;
				}
				?>
			</table>

			<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="10" alt="" /><br />

			<table width="100%" cellpadding="4" cellspacing="0" border="0" class="table_stnd">
				<tr>
					<td colspan="2" class="txt_title">
						<?php echo $lang['hdr_group_library'];?><br />
					</td>
				</tr>

				<?php
				if (isset($recommended_group_library)) {
				foreach($recommended_group_library as $key => $i):
				?>
				<tr>
					<td>
						<a href="g_library.php?group_id=<?php echo $i['section_item_id'];?>&amp;library_id=<?php echo $i['library_id'];?>"><?php echo $i['library_title'];?></a><br />
						<span class="txt_footer"><?php echo dots('120', $i['library_synopsis']);?></span><br />
					</td>
					<td align="right" valign="top">
						<input type="checkbox" name="rec_library_delete_name[]" value="<?php echo $i['library_page_name'];?>" /><br />
					</td>

				<tr>
					<td colspan="2">
						<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="4" alt="" /><br />
					</td>
				</tr>
				<?php
				endforeach;
				}
				?>
			</table>

			<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="10" alt="" /><br />

			<table width="100%" cellpadding="4" cellspacing="0" border="0" class="table_stnd">
				<tr>
					<td colspan="2" class="txt_title">
						<?php echo $lang['hdr_activities'];?><br />
					</td>
				</tr>
				<?php
				if (isset($recommended_activities)) {
				foreach($recommended_activities as $key => $i):
				?>
			    <tr>
					<td>
						<?php
						if (isset($i['image'])) {
						?>
							<img align="left" src="get_file.php?file=<?php echo $i['image']['file'];?>" border="0" class="picture_left" alt="<?php echo $i['image']['file_title'];?>" />
						<?
						}
						?>
						<a href="a_activity.php?activity=<?php echo $i['activity_id'];?>"><?php echo $i['activity_title'];?></a><br />
						<?php echo $i['activity_start_datetime'];?><br />
						<span class="txt_footer"><?php echo $i['activity_synopsis'];?></span><br />
					</td>
					<td align="right" valign="top">
						<input type="checkbox" name="rec_activity_delete_id[]" value="<?php echo $i['activity_id'];?>" /><br />
					</td>
			    </tr>
				<tr>
					<td colspan="2">
						<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="4" alt="" /><br />
					</td>
				</tr>
				<?php
				endforeach;
				}
				?>
			</table>

			<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="10" alt="" /><br />

			<table width="100%" cellpadding="4" cellspacing="0" border="0" class="table_stnd">
				<tr>
					<td colspan="2" class="txt_title">
						<?php echo $lang['hdr_group_blogs'];?><br />
					</td>
				</tr>
				<?php
				if (isset($recommended_blogs)) {
				foreach($recommended_blogs as $key => $i):
				?>
				<tr>
					<td>
						<?php echo $i['profile_nic'];?>: <a href="g_blog.php?group_id=<?php echo $i['section_item_id'];?>&amp;blog_id=<?php echo $i['blog_id'];?>"><?php echo $i['blog_title'];?></a><br />
						<span class="txt_footer">
						<?php echo $i['blog_create_datetime'];?><br />
						<?php echo dots('120', $i['blog_synopsis']);?></span><br />
					</td>
					<td align="right" valign="top">
						<input type="checkbox" name="rec_blog_delete_id[]" value="<?php echo $i['blog_id'];?>"><br />
					</td>
			    </tr>
				<tr>
					<td colspan="2">
						<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="4" alt="" /><br />
					</td>
				</tr>
				<?php
				endforeach;
				}
				?>
			</table>

			<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="10" alt="" /><br />

			<table width="100%" cellpadding="4" cellspacing="0" border="0" class="table_stnd">
				<tr>
					<td colspan="2" class="txt_title">
						<?php echo $lang['hdr_group_polls'];?><br />
					</td>
				</tr>
				<?php
				if (isset($recommended_polls)) {
				foreach($recommended_polls as $key => $i):
				?>
				<tr>
					<td>
						<a href="g_poll.php?group_id=<?php echo $i['section_item_id'];?>&amp;poll_id=<?php echo $i['poll_id'];?>"><?php echo $i['poll_question'];?></a><br />
					</td>
					<td align="right" valign="top">
						<input type="checkbox" name="rec_poll_delete_id[]" value="<?php echo $i['poll_id'];?>"><br />
					</td>
				</tr>
				<tr>
 					<td valign="top">
 						<?php
						$poll = $i;
 						include $templatePath . "poll.inc.tpl.php";
 						?>
 					</td>
					<td>
						&nbsp;<br />
					</td>
 			    </tr>
				<tr>
					<td colspan="2">
						<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="2" alt="" /><br />
					</td>
				</tr>
				<?php
				endforeach;
				}
				?>
			</table>
		</td>
	</tr>
</table>
</form>
