
PK 
<?php
session_start();
include_once('../../include/connection.php');
include_once('../../include/common.php');
?>
<!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=iso-8859-1" />
<title>news_list</title>
<link rel="stylesheet" type="text/css" href="<?php echo HTTP_ROOT; ?>css/style.css" />
</head>
<body>
<table border="0" width="100%" align="center" cellpadding="0" cellspacing="0">
<!--header-->
<tr>
<td><?php include"../../include/adminheader.php"; ?></td>
</tr>
<!--/header-->
<tr>
<td height="250px" valign="top">
<table border="0" width="900px" align="center" cellpadding="8px" cellspacing="0" style="margin-top:20px;">
<tr class="list1">
<th align="left" style="border-right:5 solid">S.no</th>
<th align="left" >News</th>
<th align="left" >status</th>
<th align="center" colspan="2" >action</th>
</tr>
<?php
$editsql="select * from news order by id desc";
$result=mysql_query($editsql);
while($row=mysql_fetch_array($result))
{
$sno++;
if($sno%2==0) {
$group='class="list1"';
}
else {
$group='class="list2"';
}
?>
<tr <?=$group; ?>>
<td align="left"><?=$sno; ?></td>
<td align="left"><?=$row['news']; ?></td>
<td align="left"><?php
if($row['status']=='1') {
echo '<img src="../../image/s_okay.png" title="Enable" />';
}
else {
echo '<img src="../../image/s_error.png" title="Disable" />';
}
?></td>
<td align="center">
<a href="news_form.php?action=edit&id=<?=$row['id']; ?>"><img src="../../image/b_edit.png" style="border:0px;" title="Edit" /></a></td>
<td align="center" ><a href="news_action.php?action=delete&id=<?=$row['id']; ?>"><img src="../../image/check-and-cross-icon.png" style="border:0px;" title="Delete" width="22px" /></a>
</td>
</tr>
<?php } ?>
</table>
</td>
</tr>
<!--footer-->
<tr class="footer">
<td align="center"><?php include"../../include/adminfooter.php"; ?></td>
</tr>
</table>
</body>
</html>


PK 99