<?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_bookmarks.php" method="post">


<div class="col_left1">
	<div class="box">
		<div class="box_top">
			<?php echo $lang['hdr_watching'];?><br />
		</div>
		
		<div class="box_mid">
			<div class="content">
				<table width="100%" cellpadding="4" cellspacing="0" border="0">
					<tr>
						<td colspan="2">
							<b><?php echo $lang['hdr_subjects'];?></b><br />
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="3" alt="" /><br />
						</td>
					</tr>
					<?php
					if (isset($watched_subjects)) {
					foreach($watched_subjects as $key => $i):
					?>
					<tr valign="top">
						<td>
							<a href="frm_view.php?subject_id=<?php echo $i['subject_id'];?>"><?php echo $this->date->formatDate($i['subject_create_datetime']);?></a><br />
							<b><?php echo $i['subject_title'];?></b><br />
							<?php echo $i['subject_synopsis'];?><br />
							<?php
							if (isset($i['movement']['lastview_datetime'])) {
								echo $lang['txt_lastview'] . " " . $this->date->formatDate($i['movement']['lastview_datetime'],1) . " (" . $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>
					<?php
					if ($batch_enabled == true) {
					if (!empty($i['bookmark']['bookmark_notify'])) {
					?>
					<tr>
						<td colspan="2" align="right">
							<a href="my_bookmarks.php?subject_id=<?php echo $i['subject_id'];?>&amp;remove_notify=1"><?php echo $lang['href_untrack'];?></a><br />
						</td>
					</tr>
					<?php
					}
					else {
					?>
					<tr>
						<td colspan="2" align="right">
							<a href="my_bookmarks.php?subject_id=<?php echo $i['subject_id'];?>&amp;add_notify=1"><?php echo $lang['href_track'];?></a><br />
						</td>
					</tr>
					<?php
					}}
					endforeach;
					}
					?>
				</table>
				<hr />
				<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="3" alt="" /><br />
	
				<table width="100%" cellpadding="4" cellspacing="0" border="0">
					<tr>
						<td colspan="2">
							<b><?php echo $lang['hdr_library'];?></b><br />
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="3" alt="" /><br />
						</td>
					</tr>
					<?php
					if (isset($watched_library)) {
					foreach($watched_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'];?>" />
							<?php }?>
							<b><a href="lib_view.php?library_id=<?php echo $i['library_id'];?>"><?php echo $i['library_title'];?></a></b><br />
							<?php echo $i['library_synopsis'];?><br />
						</td>
						<td align="right" valign="top">
							<input type="checkbox" name="watch_library_delete_name[]" value="<?php echo $i['library_id'];?>"><br />
						</td>
					</tr>
					<?php
					if ($batch_enabled == true) {
					if (!empty($i['bookmark']['bookmark_notify'])) {
					?>
					<tr>
						<td colspan="2" align="right">
							<a href="my_bookmarks.php?library_id=<?php echo $i['library_id'];?>&amp;remove_notify=1"><?php echo $lang['href_untrack'];?></a><br />
						</td>
					</tr>
					<?php
					}
					else {
					?>
					<tr>
						<td colspan="2" align="right">
							<a href="my_bookmarks.php?library_id=<?php echo $i['library_id'];?>&amp;add_notify=1"><?php echo $lang['href_track'];?></a><br />
						</td>
					</tr>
					<?php
					}}
					endforeach;
					}
					?>
				</table>
	
				<hr />
				<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="3" alt="" /><br />
	
				<table width="100%" cellpadding="4" cellspacing="0" border="0">
					<tr>
						<td colspan="2">
							<b><?php echo $lang['hdr_schedule'];?></b><br />
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="3" alt="" /><br />
						</td>
					</tr>
					<?php
					if (isset($watched_schedule_items)) {
					foreach($watched_schedule_items 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'];?>" />
							<?php }?>
							<b><a href=sch_view.php?schedule_id="<?php echo $i['schedule_id'];?>"><?php echo $i['schedule_title'];?></a></b><br />
							<?php echo $this->date->formatDate($i['schedule_start_datetime'],1);?><br />
							<?php echo $i['schedule_synopsis'];?><br />
						</td>
						<td align="right" valign="top">
							<input type="checkbox" name="watch_schedule_delete_id[]" value="<?php echo $i['schedule_id'];?>" /><br />
						</td>
					</tr>
					<?php
					if ($batch_enabled == true) {
					if (!empty($i['bookmark']['bookmark_notify'])) {
					?>
					<tr>
						<td colspan="2" align="right">
							<a href="my_bookmarks.php?schedule_id=<?php echo $i['schedule_id'];?>&amp;remove_notify=1"><?php echo $lang['href_untrack'];?></a><br />
						</td>
					</tr>
					<?php
					}
					else {
					?>
					<tr>
						<td colspan="2" align="right">
							<a href="my_bookmarks.php?schedule_id=<?php echo $i['schedule_id'];?>&amp;add_notify=1"><?php echo $lang['href_track'];?></a><br />
						</td>
					</tr>
					<?php
					}}
					endforeach;
					}
					?>
				</table>
	
				<hr />
				<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="3" alt="" /><br />
	
				<table width="100%" cellpadding="4" cellspacing="0" border="0">
					<tr>
						<td colspan="2">
							<b><?php echo $lang['hdr_blogs'];?></b><br />
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="3" alt="" /><br />
						</td>
					</tr>
					<?php
					if (isset($watched_blogs)) {
					foreach($watched_blogs 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'];?>" />
							<?php }?>
							<a href="blg_view.php?blog_id=<?php echo $i['blog_id'];?>"><?php echo $this->date->formatDate($i['blog_create_datetime']);?></a><br />
							<b><?php echo $i['blog_title'];?></b><br />
							<?php echo $i['blog_synopsis'];?><br />
						</td>
						<td align="right" valign="top">
							<input type="checkbox" name="watch_blog_delete_id[]" value="<?php echo $i['blog_id'];?>" /><br />
						</td>
					</tr>
					<?php
					if ($batch_enabled == true) {
					if (!empty($i['bookmark']['bookmark_notify'])) {
					?>
					<tr>
						<td colspan="2" align="right">
							<a href="my_bookmarks.php?blog_id=<?php echo $i['blog_id'];?>&amp;remove_notify=1"><?php echo $lang['href_untrack'];?></a><br />
						</td>
					</tr>
					<?php
					}
					else {
					?>
					<tr>
						<td colspan="2" align="right">
							<a href="my_bookmarks.php?blog_id=<?php echo $i['blog_id'];?>&amp;add_notify=1"><?php echo $lang['href_track'];?></a><br />
						</td>
					</tr>
					<?php
					}}
					endforeach;
					}
					?>
				</table>
	
				<hr />
				<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="3" alt="" /><br />
	
				<table width="100%" cellpadding="4" cellspacing="0" border="0">
					<tr>
						<td colspan="2">
							<b><?php echo $lang['hdr_polls'];?></b><br />
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="3" alt="" /><br />
						</td>
					</tr>
					<?php
					if (isset($watched_polls)) {
					foreach($watched_polls as $key => $i):
					?>
					<tr>
						<td valign="top">
							<?php
							$poll = $i;
							$poll_url = "pol_view.php?poll_id=" . $i['poll_id'];
							include $templatePath . "poll.inc.tpl.php";
							?>
						</td>
						<td align="right" valign="top">
							<input type="checkbox" name="watch_poll_delete_id[]" value="<?php echo $i['poll_id'];?>"><br />
						</td>
					</tr>
					<?php
					if ($batch_enabled == true) {
					if (!empty($i['bookmark']['bookmark_notify'])) {
					?>
					<tr>
						<td colspan="2" align="right">
							<a href="my_bookmarks.php?poll_id=<?php echo $i['poll_id'];?>&amp;remove_notify=1"><?php echo $lang['href_untrack'];?></a><br />
						</td>
					</tr>
					<?php
					}
					else {
					?>
					<tr>
						<td colspan="2" align="right">
							<a href="my_bookmarks.php?poll_id=<?php echo $i['poll_id'];?>&amp;add_notify=1"><?php echo $lang['href_track'];?></a><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_my_bookmark'];?><br />
		</div>
		
		<div class="box_mid">
			<div class="content">
				<p>
					<?php echo $lang['txt_delete_bookmark'];?><br />
				</p>
				
				<p align="right">
					<input type="submit" name="delete_bookmark" value="<?php echo $lang['sub_delete'];?>" class="button_urgent" /><br />
				</p>
			</div>
		</div>
	</div>
		
	<div class="box_bottom">
		<span class="box_bottom_right"></span>
		<span class="box_bottom_left"></span>
	</div>
	
	<?php
	if ($batch_enabled == true) {
	?>
	<div class="box">
		<div class="box_top">
			<?php echo $lang['hdr_notify'];?><br />
		</div>
		
		<div class="box_mid">
			<div class="content">
				<p>
					<?php echo $lang['txt_notify'];?><br />
				</p>
			</div>
		</div>
	</div>
		
	<div class="box_bottom">
		<span class="box_bottom_right"></span>
		<span class="box_bottom_left"></span>
	</div>
	<?php }?>
	
	<div class="box">
		<div class="box_top">
			<?php echo $lang['hdr_recommended'];?><br />
		</div>

		<div class="box_mid">
			<div class="content">
				<table width="100%" cellpadding="4" cellspacing="0" border="0">
					<tr>
						<td colspan="2">
							<b><?php echo $lang['hdr_subjects'];?></b><br />
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="3" alt="" /><br />
						</td>
					</tr>
					<?php
					if (isset($recommended_subjects)) {
					foreach($recommended_subjects as $key => $i):
					?>
					<tr>
						<td>
							<a href="frm_view.php?subject_id=<?php echo $i['subject_id'];?>"><?php echo $this->date->formatDate($i['subject_create_datetime']);?></a><br />
							<b><?php echo $i['subject_title'];?></b><br />
							<?php echo $i['subject_synopsis'];?><br />
						</td>
						<td align="right" valign="top">
							<input type="checkbox" name="rec_subject_delete_id[]" value="<?php echo $i['subject_id'];?>" /><br />
						</td>
					</tr>
					<?php
					endforeach;
					}
					?>
				</table>
	
				<hr />
				<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="3" alt="" /><br />
	
				<table width="100%" cellpadding="4" cellspacing="0" border="0">
					<tr>
						<td colspan="2">
							<b><?php echo $lang['hdr_library'];?></b><br />
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="3" alt="" /><br />
						</td>
					</tr>
					<?php
					if (isset($recommended_library)) {
					foreach($recommended_library as $key => $i):
					?>
					<tr>
						<td>
							<b><a href="lib_view.php?library_id=<?php echo $i['library_id'];?>"><?php echo $i['library_title'];?></a></b><br />
							<?php echo $i['library_synopsis'];?><br />
						</td>
						<td align="right" valign="top">
							<input type="checkbox" name="rec_library_delete_id[]" value="<?php echo $i['library_id'];?>" /><br />
						</td>
					</tr>
					<?php
					endforeach;
					}
					?>
				</table>
	
				<hr />
				<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="3" alt="" /><br />
	
				<table width="100%" cellpadding="4" cellspacing="0" border="0">
					<tr>
						<td colspan="2">
							<b><?php echo $lang['hdr_schedule'];?></b><br />
						</td>
					</tr>
					<?php
					if (isset($recommended_schedule_items)) {
					foreach($recommended_schedule_items 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'];?>" />
							<?php }?>
							<b><a href="sch_view.php?schedule_id=<?php echo $i['schedule_id'];?>"><?php echo $i['schedule_title'];?></a></b><br />
							<?php echo $this->date->formatDate($i['schedule_start_datetime'],1);?><br />
							<?php echo $i['schedule_synopsis'];?><br />
						</td>
						<td align="right" valign="top">
							<input type="checkbox" name="rec_schedule_delete_id[]" value="<?php echo $i['schedule_id'];?>" /><br />
						</td>
					</tr>
					<?php
					endforeach;
					}
					?>
				</table>
	
				<hr />
				<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="3" alt="" /><br />
	
				<table width="100%" cellpadding="4" cellspacing="0" border="0">
					<tr>
						<td colspan="2">
							<b><?php echo $lang['hdr_blogs'];?></b><br />
						</td>
					</tr>
					<?php
					if (isset($recommended_blogs)) {
					foreach($recommended_blogs 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'];?>" />
							<?php }?>
							<a href="blg_view.php?blog_id=<?php echo $i['blog_id'];?>"><?php echo $this->date->formatDate($i['blog_create_datetime']);?></a><br />
							<b><?php echo $i['blog_title'];?></b><br />
							<?php echo $i['blog_synopsis'];?><br />
						</td>
						<td align="right" valign="top">
							<input type="checkbox" name="rec_blog_delete_id[]" value="<?php echo $i['blog_id'];?>"><br />
						</td>
					</tr>
					<?php
					endforeach;
					}
					?>
				</table>
	
				<hr />
				<img src="<?php echo $templatePath;?>img/pixel.png" width="1" height="3" alt="" /><br />
	
				<table width="100%" cellpadding="4" cellspacing="0" border="0">
					<tr>
						<td colspan="2">
							<b><?php echo $lang['hdr_polls'];?></b><br />
						</td>
					</tr>
					<?php
					if (isset($recommended_polls)) {
					foreach($recommended_polls as $key => $i):
					?>
					<tr>
						<td valign="top">
							<?php
							$poll = $i;
							$poll_url = "pol_view.php?poll_id=" . $i['poll_id'];
							include $templatePath . "poll.inc.tpl.php";
							?>
						</td>
						<td align="right" valign="top">
							<input type="checkbox" name="rec_poll_delete_id[]" value="<?php echo $i['poll_id'];?>"><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>
</form>
