<?php
include('session.php');
include('connection.php');

$i=1;
			mysqli_query($GLOBALS["___mysqli_ston"], "SET NAMES utf8");			
			$Comp_id="SELECT *  FROM `press_release`";
			
$res=mysqli_query($GLOBALS["___mysqli_ston"], $Comp_id) or die('Query Failed: 4' . mysqli_error($GLOBALS["___mysqli_ston"]));
		
echo 
"<font size='2'><table border='1' bgcolor='white' style='border-style: solid; border-width: 1px;width:100%;height:50%;'>";

echo '<tr>
					<th scope="col" align="center">srno</th>                     
	    	<th scope="col" align="center">Header</th>                     
	    	<th scope="col" align="center">Header(marathi)</th>                     
	    	<th scope="col" align="center">News</th>
	    	<th scope="col" align="center">News(marathi)</th>
					<th scope="col" align="center">Date</th>
									<th scope="col" align="center">Status</th> 
			  <th scope="col" align="center">LastModified</th> 
			   <th scope="col" align="center">Update</th> 
			  <th scope="col" align="center">Disable</th> 
     ';

echo '</tr>';

	while($rw2 = mysqli_fetch_assoc($res))
			{
$srno=$rw2['srno'];
$rank=$rw2['rank'];
$head=$rw2['Header'];
$head1=$rw2['Header_marathi'];
$info=$rw2['News'];
$info1=$rw2['News_marathi'];
$dp1=$rw2['Date'];
$file1=$rw2['Photos&videos'];
//echo $photo;
//$video=$rw2['Video'];
$status=$rw2['Status'];
$lastm=$rw2['LastModified'];
		
				
echo ' <tr>
    <td onclick="update_company('.$i.')" style="cursor:pointer" title="Click here for edit">'.$srno.' </td>
    <td onclick="update_company('.$i.')" style="cursor:pointer" title="Click here for edit">'.$head.' </td>
    <td onclick="update_company('.$i.')" style="cursor:pointer" title="Click here for edit">'.$head1.' </td>
    <td onclick="update_company('.$i.')" style="cursor:pointer" title="Click here for edit">'.$info.' </td>
    <td onclick="update_company('.$i.')" style="cursor:pointer" title="Click here for edit">'.$info1.' </td>

    <td onclick="update_company('.$i.')" style="cursor:pointer" title="Click here for edit">'.$dp1.'</td>
      
    <td onclick="update_company('.$i.')" style="cursor:pointer" title="Click here for edit">'.$status.'</td>
 
    <td onclick="update_company('.$i.')" style="cursor:pointer" title="Click here for edit">'.$lastm.'</td>
     ';
  $i++;
echo "<td><button type='button' style='margin-left:0px;width:6em;' value='update' class='submit' onclick='update_company(".$srno .")'/>Update</button></td>";
echo "<td><button type='button' style='margin-left:0px;width:6em;' onclick='view5(".$srno.")'/>Disable</button></td>";
echo '</tr>';
  //		break;
								}

Echo "

</table></font>



";		
		
	

?>