<?
ob_start();
session_start();
if($_SESSION['uname']=='' || $_SESSION['pwd']=='')
		{
			header("location:login.php");
		}
 include("../include/db.inc.php");
	include("../include/pager.php");	
	 	include("../include/bit_functions.inc.php");

   $db1=new db;
   $db1->open();
    mysql_query("SET NAMES 'utf8'");
		
$news_query=mysql_query(" SELECT * FROM t123go_news where id=".$_GET['nid']);
$mynews=mysql_fetch_array($news_query);
?> 
<HTML>
<title><?=_TITLE1_?> ADMINISTRATOR</title>
<link href="../css/stylesheet.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #093A9C}
.style2 {color: #FE6905}
-->
</style>
<script language="JavaScript">
	function _CloseOnEsc(){
	  if (event.keyCode == 27) { window.close(); return; }
	}
	function Init(){
		document.body.onkeypress = _CloseOnEsc;
	}
</script>
<body onLoad="Init()" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class="text2">
<center>
<table height="100%" width="600" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="text3">	
    <tr>
	  <td align="center" valign="top">
	  <table  width="100%" border="0" cellpadding="0" cellspacing="0" class="bodytxt">
  <tr> 
    <td width="1" valign="top">&nbsp;</td>
    <td width="957" valign="top"><br> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="bodytxt">
        <tr> 
          <td width="33" valign="top"><img src="img/03.gif" width="33" height="23"></td>
                  <td background="img/bg01.gif"><strong>&nbsp;NEWS INFORMATION</strong></td>
          <td width="35"><img src="img/04.gif" width="35" height="23"></td>
        </tr>
      </table>
      <table  width="100%" border="0" cellpadding="0" cellspacing="0" class="bodytxt">
        <tr> 
          <td width="22" valign="top" background="img/tbl-left04.gif"><img src="img/tbl-left04.gif" width="22" height="13"></td>
          <td valign="top" align="center">		  
		  <br>	             
  
                     <table cellspacing="2" cellpadding="1"  border="0" width="100%" bordercolor="#CCCCCC" bgcolor="#E6F2FF">
                     <tr bgcolor="#FFFFFF"> 
                        <td width="17%" height="35">Title</td>
                        <td width="83%" height="35"  align="left"><? echo $mynews['title']?></td>
                      </tr>
					   <tr bgcolor="#FFFFFF"> 
                        <td height="35">Image</td>
                        <td height="35"  align="left"><? echo get_product_image_admin($mynews['image'],180,160)?></td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td height="35">Description</td>
                        <td height="35"  align="left"><? echo $mynews['description']?></td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td height="35">Submit Date</td>
                        <td height="35"  align="left"><?=$mynews['submit_date'];?></td>
                      </tr>
                     </table>                     
		            <br>
			</td>
          <td width="19" valign="top" background="img/tbl-right04.gif">
          <img border='0' src="img/tbl-right04.gif" width="19" height="9"></td>
        </tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="bodytxt">
              <tr> 
                <td width="33"><img src="img/tbl-bot01.gif" width="33" height="12"></td>
                <td  width="709" align="right" background="img/tbl-bg.gif"></td>
                <td width="33"><img src="img/tbl-right05.gif" width="35" height="12"></td>
              </tr>
            </table>
    </td>
    <td width="20" valign="top">&nbsp;</td>
  </tr>
</table></td>
    </tr>
  </table>
</center>
</body>
</html>
<? ob_end_flush();?>