Location: PHPKode > projects > @1 News & Image Expander PRO > root/expander/admin/main.php
<html>

<head>

<title>Expander -- News Manager</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<link rel="stylesheet" href="gfx/main.css" type="text/css"> 

</head>


<body>

<?PHP

@include "header.php";

?>

<form action='<?PHP echo $_SERVER['PHP_SELF'];?>' method='get' enctype='multipart/form-data'>

<table align='center' style="border: 1px solid black" border=0 width=540>

<tr>

<td align="center">
      <table border="0" cellpadding="0" cellspacing="0" width="97%" height="24" bgcolor="#ffffff">

        <tr>
          <td width="97%" height="23" valing="middle"><b>Expander&nbsp; : &nbsp;News manager</b></td>
          <td width="1%" height="23" valing="middle"><a href="<?PHP echo $_SERVER['PHP_SELF'].'?action=add_news&SID='.session_id();?>" class="FooterLink"><nobr>Add a news</nobr></a></td>
          <td width="1%" height="23" valing="middle" align="center">&nbsp;&nbsp;<img src="gfx/square.gif" width="4" height="6" align="absmiddle">&nbsp;&nbsp;</td>
          <td width="1%" height="23" valing="middle"><a href="<?PHP echo $_SERVER['PHP_SELF'].'?action=change_settings&SID='.session_id();?>" class="FooterLink">Settings</a></td>
          <td width="1%" height="23" valing="middle" align="center">&nbsp;&nbsp;<img src="gfx/square.gif" width="4" height="6" align="absmiddle">&nbsp;&nbsp;</td>
          <td width="1%" height="23" valing="middle"><a href="<?PHP echo $_SERVER['PHP_SELF'].'?action=change_password&SID='.session_id();?>" class="FooterLink"><nobr>Change password</nobr></a></td>
          <td width="1%" height="23" valing="middle" align="center">&nbsp;&nbsp;<img src="gfx/square.gif" width="4" height="6" align="absmiddle">&nbsp;&nbsp;</td>
          <td width="1%" height="23" valing="middle"><a href="<?PHP echo $_SERVER['PHP_SELF'].'?action=logout&SID='.session_id();?>" class="FooterLink">Logout</a></td>          </tr>
        </table>



</td>

</tr>

<tr>

<td align="center" valign="top" height=1><img src="gfx/m2.gif" alt="" align="top" width="97%" height="1"></td>

</tr>


<tr>

<td align="center">
<table cellpadding=2 cellspacing=2 border=0 width=500>
<?PHP
	if (sizeof($news)-1<=0) {
?>
<tr><td align=center>
There are no news in the database
</td></tr>
<?PHP
	}
	else {
		$a_news=end($news);
		do {
			$ind=key($news);
			if ($a_news['heading']) {
?>
<tr>
<td width=10px>
<a href='index.php?action=delete_news&SID=<?PHP echo session_id();?>&news_id=<?PHP echo $ind ?>' onClick='return confirm("Are you sure");'><img src='gfx/delete.gif' alt='Delete' border=0></a>
</td>
<td align=left>
<a class=footerLink href='index.php?action=change_news&SID=<?PHP echo session_id();?>&news_id=<?PHP echo $ind?>'><nobr><?PHP echo StripSlashes(substr($a_news['heading'], 0, 60).((strlen($a_news['heading'])>60)?'...':''));?></a>
&nbsp;&nbsp;
<?PHP
	if ($a_news['image_srcname']) {
?>
<img src='gfx/image.gif' width=12 heigh=12 alt='Image present' border=0>&nbsp;
<?PHP
	}
?>
<?PHP
	if ($a_news['link_text']&&$a_news['detailed']) {
?>
<img src='gfx/detail.gif' alt='Description present' border=0 width=12 heigh=12></nobr>
<?PHP
	}
?>
</td>
</tr>

<?PHP
			}
		}
		while ($a_news=prev($news));
	}
?>

</table>

</td>

</tr>

<tr>

<td align="center" valign="top" height=1><img src="gfx/m2.gif" alt="" align="top" width="97%" height="1"></td>

</tr>




<tr>

      <td align='center'>
        <br>
        <table width=97%>
        <tr><td width="100%" align="right"><a href="http://www.upoint.info/cgi" target="_new" class="FooterLink"><font size="1" color="#0000ff">Powered by UPOINT dotINFO</font></a></td></tr>
        </table>      
      
       </td>

</tr>

</table>

</form>

<?PHP

@include "footer.php";

?>

</body>


</html>

Return current item: @1 News & Image Expander PRO