Location: PHPKode > projects > Gashash > projects.php
<?php defined( 'gashash' ) or die( 'You Can Not Access This File' );
		include("config.inc.php");
?>
<script type="text/javascript">
function openpopup(popurl){
var winpops=window.open(popurl,"","width=350,height=25,scrollbars=no,location=center")
}
</script>
<div align="center">
<table class="text" border="0" cellspacing="0" cellpadding="2" width="99%">
	<tr >
	  <td class="dark" colspan="7">&nbsp;</td>
    </tr>
	<tr >
	  <td colspan="7"><?php 
	  if ($_GET['do'] != "") { 
	  include ('action.php');
		} ?></td>
  </tr>
	<tr>
		<td width="1%">&nbsp;</td>
		<td width="25%" class="box"><?php echo _PRO_NAME; ?></td>
		<td width="29%" class="box"><?php echo _SITE_ADDRESS; ?></td>
		<!--<td width="30%"><?php echo _URL_NAME; ?></td>-->
		<td width="24%" class="box"><?php echo _EMAILS_NO; ?></td>
		<td colspan="2" class="box"><?php echo _EXPORT ?></td>
	</tr>
<?php 
		$query = "SELECT * FROM emails";
     	$result = mysql_query($query);
		while ($row = mysql_fetch_array($result)) {
		$id = $row['id'];
		$project_name = $row['project_name'];		
		$site_address = $row['site_address'];
		$url = $row['url'];				
		$email_address = $row['email_address'];				
		$date_time = $row['date_time'];	

		if ($re_project_name != $project_name) {
		$re_project_name = $project_name;

		$total_emails = mysql_result(mysql_query("SELECT COUNT(email_address) as email_address FROM emails 
		WHERE project_name = '$project_name'"),0); 
?>
	<tr>
	  <td><a href="index.php?tab=projects&do=del&id=<?php echo $id; ?>&no=<?php echo $total_emails; ?>">
	  <img border="0" src="images/delete.gif" /></a></td>
	  <td class="box"><?php echo $project_name; ?></td>
	  <td class="box"><?php echo $site_address; ?></td>
	  <!--<td><?php echo $url; ?></td>-->
	  <td class="box"><?php echo $total_emails; ?></td>
	  <td class="box" width="11%">
	  <a href="javascript:openpopup('action.php?do=xl&id=<?php echo $id; ?>')">
	  <img border="0" src="images/xl.gif" /></a></td>
	  <td class="box" width="10%">
	  <a href="javascript:openpopup('action.php?do=doc&id=<?php echo $id; ?>')">
	  <img border="0" src="images/doc.gif" /></a></td>
  </tr>
<?php
		}			
		}
?>  
	<tr>
		<td colspan="7">&nbsp;</td>
	</tr>
</table>
</div>
<? 
mysql_close();
?>
Return current item: Gashash