<?php
	$currentuserid = getCookie("pcc_id");
	if($currentuserid == "")
	{
		showAlert("You do not have access to this resource. Please login.");
		openPage("index.php");
		exit;
	}
				$pcc_status = getCookie("status");
?>
<div id="header">
		<div style="background-color:#FFF; width:1200px">
		  <table width="100%" border="0" cellpadding="0" cellspacing="0">
		  <tr>
		    <td width="25%"><a href="dashboard.php" class="logo" style="margin:5px"><img src="images/HOTR_Logo_CFN2.jpg" width="263" height="90"></a></td>
		    <td width="75%" align="right" valign="bottom"><table width="100%" border="0">
		      <tr>
		        <td align="center" style="color: #314417; font-weight: bold; font-size: 24px; padding-right:250px;">Central Follow up Network</td>
	          </tr>
		      <tr>
		        <td align="right">Welcome PCC: <?php echo getCookie("fullname") ?></td>
	          </tr>
		      <tr>
		        <td align="right">Assigned Cards: <a href="user_cards_list.php">1st timer cards</a>&nbsp; | <a href="index.php?logout=yes">Log out</a></td>
	          </tr>
	        </table></td>
	      </tr>
		  </table>
		</div>
		<div class="navigation">
			<ul>
				<li class="<?php if(strpos($currentpage,"dashboard") !== false) echo "selected" ?>">
					<a href="pcc_cards_list.php">Assigned Cards</a>
				</li>
				<li class="<?php if(strpos($currentpage,"dashboard") !== false) echo "selected" ?>">
					<a href="pcc_cards_pending.php">Pending Cards</a>
				</li>
				<li class="<?php if(strpos($currentpage,"dashboard") !== false) echo "selected" ?>">
					<a href="pcc_cards_followed.php">Followed up Cards</a>
				</li>
                 <?php
				if($pcc_status == "pccl") {
					?>
				<li class="<?php if(strpos($currentpage,"dashboard") !== false) echo "selected" ?>">
									<a href="pcc_add_report.php">Submit PCC Report</a>
                  <?php }?>
				</li>
                  <?php
				if($pcc_status == "pccl") {
					?>
				<li class="<?php if(strpos($currentpage,"dashboard") !== false) echo "selected" ?>">
									<a href="#">PCC Reports</a>
                         <ul>
						<li>
							<a href="pccl_monthly_report1.php">PCCL Monthly Report </a>
						</li>
                        <li>
							<a href="pccl_report.php">PCC Reports</a>
						</li>
					</ul>
				</li>
                 <?php }?>



                 <?php
				 				if($pcc_status == "pccl") {
				 					?>
				 				<li class="<?php if(strpos($currentpage,"dashboard") !== false) echo "selected" ?>">
				 									<a href="#">Notifications</a>
				                          <ul>
				 						<li>
				 							<a href="bereaved.php">Bereaved Notification </a>
				 						</li>
				                         <li>
				 							<a href="goodnews.php">Submit Good News</a>
				 						</li>
				 						<li>
											<a href="downloads.php">Downloads</a>
				 						</li>
				 					</ul>
				 				</li>
                 <?php }?>





                 <?php
				if($pcc_status != "pccl") {
					?>

                    <li class="<?php if(strpos($currentpage,"dashboard") !== false) echo "selected" ?>"><a href="pcco_add_report.php">Submit PCCO/PCCM Report</a></li>
					<li class="<?php if(strpos($currentpage,"dashboard") !== false) echo "selected" ?>"><a href="pcco_monthly_report.php">PCCO Report</a></li>
					<li class="<?php if(strpos($currentpage,"dashboard") !== false) echo "selected" ?>"><a href="pccm_monthly_report.php">PCCM Report</a></li>

				<?php } ?>


			</ul>
		</div>
	</div>