Current Path : /web/htdocs/www.entinoprofit.org/home/admin/
Upload File :
Current File : /web/htdocs/www.entinoprofit.org/home/admin/view_mail.php

<?php

include_once("include/config.php");
include_once("include/auth.lib.php");

list($status, $user) = auth_get_status();


?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Inserimento news Entinoprofit.org - Rivs.it - Aesnazionale.it</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK href="style.css" rel="stylesheet" type="text/css">

</head>

<body>
<div id="testata">
<table width="760" border="0" cellpadding="0" cellspacing="0" align="center">
  <!--DWLayoutTable-->
  <tr>
    <td height="105" colspan="2" valign="top"><img src="images/testata.jpg" width="760" height="105" border="0"></td>
  </tr>
<tr><td height="37" colspan="2" valign="center" background="images/navbar.gif"> 
<div align="center"><b>Visualizzazione news inserite</b></div>
</td> 
</tr>
</table>
</div>

<?php 


switch($status){
case AUTH_LOGGED:

include("menu.php"); 
echo "<div id=\"main\"><div id=\"news\">";

$query = "SELECT id,titolo,date FROM mail ORDER by id DESC";
$risultato = mysql_query($query) or die("Query 1 failed");
 while ($array = mysql_fetch_array($risultato, MYSQL_BOTH)) { 

echo "<div><b>".$array['titolo']."</b></div>";

echo "<div>"; echo strtoupper(strftime("%d %B %Y",strtotime($array['date']))); echo "</div>";

echo "<div id='options'><div id='menu14'><ul><li><a href=post_mail.php?idmail=".$array['id'].">Invia questa email</a></li>
</ul></div></div>";

echo "<hr>";
}

echo "</div></div>";


break;
case AUTH_NOT_LOGGED:


?>

<table width="760" border="0" cellpadding="0" cellspacing="0" align="center">
      <tr>
          <td >Login Club </td>
      </tr>
      <tr>
          <td >
        
		  <form action="login.php<?=$link?>" method="post">
			 <table cellspacing="2">
			   <!--DWLayoutTable-->
				<tr>
					<td >Username :</td>
					<td ><input name="uname" type="text" size="10"></td>
	  </tr>
				<tr>
					<td class="text1">Password :</td>
					<td><input name="passw" type="password" size="10"></td>
				</tr>
				<tr>
					<td colspan="2">
					  <input type="submit" name="action" value="entra">
				  </td>
				</tr>
				<tr><td height="21" colspan="2" valign="top" ><!--DWLayoutEmptyCell-->&nbsp;</td>
			    </tr>
			</table>
			
          </form>
		  
</table>

<?php 
break; }
?>
</div></div>
</body>
</html>