<?php
 session_start();
require('db.php');
include "x.php";
date_default_timezone_set("Asia/Kolkata");

?>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Notice Details</title>
<link href="admin/stylesheet.css" rel="stylesheet" type="text/css" />


</head>

<body>
<br /><br />

<table  cellpadding="0" cellspacing="0" width="90%" bgcolor="#aaddff" border="1" align="center">
<tr>
	<td>
 	        <table  cellpadding="0" cellspacing="0" width="100%" bgcolor="#FAFAD2" border="0" align="center">
 	        	 <?php
                if ( isset($_GET["n"]) ) 
                {

				        $notice_sql = "SELECT * FROM notice_table WHERE n_sl='$_GET[n]'";
		                $notice_data = mysqli_query($con,$notice_sql);
		                while($notice_rows = mysqli_fetch_array($notice_data))
		                {
		                	?>
						             <tr>
				                    	<td colspan="2" style="background-color:#016797; color:#FFFFFF; font:bold 14px Verdana; text-align:left;padding: 6px 10px;">NOTICE  DETAILS</td>
				                    </tr>
				                    <tr>
				                    	<td colspan="2"></td>
				                    </tr>
									<tr>
										<td colspan="2"  height="5" ></td>
					                </tr>
				                    <tr>
				                    	<td width="2%" align="left" class="Heading"  style="border-bottom: 2px solid black;"></td>
				                        <td width="98%" class="introlink" style="color:#000000; font-size:18px; line-height:180%;border-bottom: 2px solid black;"><p style=" padding: 0 20px;"><?php echo $notice_rows['n_title']; ?> </p></td>
				      				</tr>
														 
									<tr>
										 <td colspan="2"  height="5" ></td>
					                </tr>												                   
									
									<tr>
				                      <td align="left" class="Heading">&nbsp;</td>
				                      <td class="TabListData">&nbsp;</td>
					   				<tr>
										 <td colspan="2"  height="5" ></td>
					                </tr>  
				                    <tr>
				                    	<td height="21" align="left"  class="Heading" ></td>
				                        <td height="21" align="left" class="introlink" style="color:#000000; font-size:14px; line-height:180%;">
				                        	<p>&nbsp;
				                        		<span style="font-size: 18px;">
				                        			<strong style="font-size: 17px; padding: 0 20px;">

				                        				<?php echo $notice_rows['m_notice']; ?>
				                        			</strong>
				                        			<strong>
				                        				<br><br>
				                        				<?php 
				                        				if ( !empty($notice_rows['notice']))
				                        				{
				                        				 ?>
				                        				 <a href="pdf.php?n=<?php echo $_GET['n']; ?>" style="text-decoration:none;">Please Click Here to view the PDF notice ...</a>
				                        				 <?php 
				                        				 }
				                        				  ?>
				                        				
				                        				
				                        			</strong>
				                        		</span>
				                        	</p>
				                        </td>
				                    </tr>
				                                             										
									<tr>
										<td colspan="2"  height="5" ></td>
					                </tr>

									<!--<tr>
				                      <td  align="right"></td>
				                      <td  align="left"><input type="button" name="submit" value="Close" onclick="window.close()" class="style2" /></td>
									</tr>-->
									<tr>
										<td colspan="2"  height="5" ></td>
					                </tr> 							

		          <?php      	
		                }
				        
				}                                   
                
                            
             ?>
				
              </table>
                             
   </td>
</tr></table>
</body>
</html>