<?php require_once('../Connections/oprmConn.php');

$date = date("Y-m-d");

if(isset($_REQUEST['aid'])){ //$_REQUEST['aid'] for sending list page to edit page

	 //$_POST['announce_sub'] for update only if this textbox have any value otherwise its go fo validation

	mysql_select_db($database_oprmConn, $oprmConn);

	$query_getannouncetitle = "SELECT * FROM weby_announcement WHERE status = 'A' AND aid = '$_REQUEST[aid]'";

	$getannouncetitle = mysql_query($query_getannouncetitle, $oprmConn) or die(mysql_error());

	$row_getannouncetitle = mysql_fetch_assoc($getannouncetitle);

	$totalRows_getannouncetitlee = mysql_num_rows($getannouncetitle);

/*if($_POST['announce_sub']){

mysql_select_db($database_oprmConn, $oprmConn);

	$query_editannounce = "UPDATE weby_announcement set subject = '$_POST[announce_sub]', message = '$_POST[announce_msg]', updated_by = '$_SESSION[user_id]' WHERE status = 'A' AND aid = '$_POST[aid]'";

	$editannounce = mysql_query($query_editannounce, $oprmConn) or die(mysql_error());

	header("Location: announcement-list.php?msgupannonce");

}*/

}

 ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>

<title>SS WEB TECHNOLOGIES - Tool-Admin-DashBoard</title>

    <!-- IE Fix for HTML5 Tags -->

    <!--[if IE]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> 

	<![endif]-->

     <style>

	 body{

		 font-family: "Open Sans", sans-serif, "Helvetica Neue", Helvetica, Arial, sans-serif;

		 font-size:13px;

		 line-height:15px;

	 }

	 h1{

		 font-size:20px;

		 line-height:20px;

		 font-family: "Open Sans", sans-serif, "Helvetica Neue", Helvetica, Arial, sans-serif;

	 }

	 .admin_container{

		 width:100%;

	 }

.field_item .label {

	width: 22%;

	float: left;

}

.field_item .input {

	width: 75%;

	float: left;

}

.label label{

	width:100px;

}

.input label{

	width:200px;

	padding:5px;

}



.clear_fix{

	clear:both;

	display:table;

}

.field_item{

	width: 80%;

	margin-bottom: 5px;

}

</style>

</head>



<body>





<!-- Wrapper Starts -->



<div class="wrapper">



    

  <!-- Content Goes here -->

   

    		  

             

    		<!-- Timesheets Goes here -->

      	   	

        

        <!-- dislpay the expiring passport details -->

        

       <div class="admin_container"> 

       <h1>Announcement</h1>

             	<form name="create_client_form" action="" method="POST" id="create_announcement" onsubmit="return validateForm()">

                <input type="hidden" name="aid" id="aid" value="<?php echo $row_getannouncetitle['aid']; ?>">

                    <div class="field_item clear_fix">

						<div class="label"><label for="project_name">Subject:</label></div>

                		<div class="input"><label><?php echo $row_getannouncetitle['subject']; ?></label></div>

                    </div>

                     <div class="field_item clear_fix">

						<div class="label"><label for="client_name">Date:</label></div>

                        <div class="input"><label><?php echo $row_getannouncetitle['sent_date']; ?></label></div>

                    </div>

					<div class="field_item clear_fix">

						<div class="label"><label for="project_name">File:</label></div>

                		<div class="input"><label><?php // echo $row_getannouncetitle['file_name']; ?><a target="_BLANK" href="/RM<?php echo $row_getannouncetitle['file_name']; ?>" download>Download <?php echo basename($row_getannouncetitle['file_name']); ?></a></label></div>

                    </div>

                     <div class="field_item clear_fix">

						<div class="label"><label for="client_name">Message:</label></div>

                        <div class="input"><label><?php echo $row_getannouncetitle['message']; ?></label></div>

                    </div>

                  <!--<div class="action_items">

                    	<input name="submit" type="submit" class="save_btn" onclick="MM_validateForm('client_name','','R','client_contact_name','','R','clint_mail','','R','clint_phone','','R','clint_address','','R');return document.MM_returnValue" value="Send To All">

                        <input type="reset" value="Cancel" class="reset_btn"  onClick="window.location= 'announcement-list.php'">

                        

                    </div>-->

                    <div class="clear-fix">&nbsp;</div>

                    <input type="hidden" name="MM_insert" value="create_pro_form">

           	   </form>

        </div>

     

        <!-- /end / -->

    

    

</div>

</body>

</html>

