<?php

include("../includes/site_config.php");
include('../session_handler.inc');

$area = 'member';

?>
<?php include("include/header.php"); ?>
<div class="mainwidth">
<div class="admin-page-header"><div class="admin-page-heading">&nbsp;&nbsp;Unconfirmed Users</div></div>
<div class="clear"></div>
<div class="admin-page">
<table width="<?php print("$CONST_TABLE_WIDTH"); ?>" align="<?php print("$CONST_TABLE_ALIGN"); ?>" border="0" cellspacing="<?php print("$CONST_TABLE_CELLSPACING"); ?>" cellpadding="<?php print("$CONST_TABLE_CELLPADDING"); ?>">

  <tr>
    <td>
      <?php
	  
        $query = "  SELECT *
                    FROM members
                    WHERE mem_confirm=0
                    ORDER BY mem_joindate";
$result=mysql_query($query, $link) or die(mysql_error());
$num = mysql_num_rows($result);
?>
<table width=100%>
    <tr align=left>
      <td align=center colspan=3><?=$num?> <?php echo GENERAL_FOUND_USERS ?></td>
    </tr>
    <tr align=left>
      <th><?php echo GENERAL_USERNAME ?></td><th><?php echo REGISTER_EMAIL ?></td><th><?php echo GENERAL_JOINDATE ?></td>
	  <th><?php echo RESEND_CONFIRM ?></td>
    </tr>
<?
while ($row = mysql_fetch_array($result)){?>
    <tr>
      <td width=25%><?=$row[mem_username]?></td><td width=25%><a href="mailto:<?=$row[mem_email]?>"><?=$row[mem_email]?></a></td><td width=25%><?=date("$CONST_FORMAT_DATE_SHORT",strtotime($row[mem_joindate]))?></td>
	  <td width=25%><a href='#' onclick="window.open('<?=$CONST_LINK_ROOT?>/admin/resend_confirm.php?PHPSESSID=<?=session_id()?>&amp;mem=<?=$row[mem_userid]?>'  , '', 'toolbar=no, menubar=no,height=150, width=200, left='+(screen.width/2-100)+', top='+(screen.height/2-75)+'');return false;" title="<?=PRGSENDUSER_TEXT?>" class="normal">Resend</a></td>
    </tr>
<? } ?>
    <tr align=left>
      <td align=center colspan=3><?=$num?> <?php echo GENERAL_FOUND_USERS ?></td>
    </tr>

  </table>
    </td>
  </tr>
</table></div><div class="admin-page-bottom"></div></div>
<?php include("include/footer.php"); ?>