Location: PHPKode > projects > Maian Gallery > maian_gallery/admin/data_files/email_addresses.php
<?php

/*++++++++++++++++++++++++++++++++++++++++

  Script: Maian Gallery v2.0
  Written by: David Ian Bennett
  E-Mail: hide@address.com
  Website: http://www.maianscriptworld.co.uk

  ++++++++++++++++++++++++++++++++++++++++
  
  This File: email_addresses.php
  Description: Verified E-Mail Addresses
  New in v2.0

  ++++++++++++++++++++++++++++++++++++++++*/

// Make sure that this file is being called from parent file
if (!defined('INCLUDE_FILES')) {
  accessDenied($msg_script18,$msg_script19);
  exit;
}
 
?>
<div align="center">
<table width="100%" border="0" cellpadding="0" cellspacing="1" style="border: 2px solid #083253">
<tr>
    <td align="left" class="msgBox">&raquo; <b><?php echo $msg_adminmenu17; ?></b><br><br><?php echo $msg_emails; ?></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="100%" class="menutable">
<tr>
    <td align="left" class="leftPad">&raquo; <b><?php echo strtoupper($msg_emails2); ?></b></td>
</tr>
</table>
<form method="post" action="index.php?cmd=emails">
<input type="hidden" name="process" value="1">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
    <td align="left">
    <table border="0" cellpadding="0" cellspacing="1" width="100%" style="border: 2px solid #083253">
    <tr>
        <td align="left" class="msgBox">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="30%" align="left" class="tdHeight"><b><?php echo $msg_settings4; ?></b>:</td>
          <td width="70%" align="left" class="tdHeight"><input class="formbox" type="text" name="email" size="25" maxlength="250" value=""></td>
        </tr>
        <tr>
          <td valign="top" class="tdHeight">&nbsp;</td>
          <td valign="top" align="left" class="tdHeight"><br><input type="submit" class="formbutton" value="<?php echo $msg_emails2; ?>" title="<?php echo $msg_emails2; ?>"></td>
        </tr>
        </table>
        </td>
    </tr>
    </table>
    </td>
</tr>
</table>
</form>
<?php
$q_emails = mysql_query("SELECT * FROM ".$database['prefix']."allowed_emails 
                         ORDER BY email
                         LIMIT $limitvalue,$limit
                         ") or die(mysql_error());
?>
<table cellpadding="0" cellspacing="0" width="100%" class="menutable">
<tr>
    <td align="left" class="leftPad" style="border-right:0">&raquo; <b><?php echo strtoupper($msg_emails3); ?></b></td>
    <td align="right" class="leftPad" style="border-left:0"><?php echo (rowCount('allowed_emails')>0 ? '[ <a href="index.php?cmd=emails&amp;csv=1" title="'.$msg_emails5.'">'.$msg_emails5.'</a> | <a href="index.php?cmd=emails&amp;clear=1" title="'.$msg_emails7.'" onclick="return delete_confirm(\''.$msg_javascript.'\')">'.$msg_emails7.'</a> ]' : '&nbsp;'); ?></td>
</tr>
</table>
<form method="POST" action="index.php?cmd=emails" onsubmit="return delete_confirm('<?php echo $msg_javascript; ?>')">
<input type="hidden" name="process_del" value="1">
<table width="100%" border="0" cellpadding="0" cellspacing="1" style="border: 2px solid #083253">
<?php

if (mysql_num_rows($q_emails)>0)
{
  while ($EMAILS = mysql_fetch_object($q_emails))
  {
  ?>
  <tr>
    <td align="center" class="msgBox">
    <table width="100%" cellspacing="0" cellpadding="0">
    <tr>
      <td align="left" width="95%"><a href="mailto:<?php echo cleanData($EMAILS->email); ?>" title="<?php echo cleanData($EMAILS->email); ?>"><?php echo cleanData($EMAILS->email); ?></a></td>
      <td align="center"><input type="checkbox" name="email[]" value="<?php echo $EMAILS->id; ?>"></td>
    </tr>
    </table>
    </td>
  </tr>
  <?php
  }
}
else
{

?>
<tr>
    <td align="center" class="msgBox">[ <?php echo $msg_emails4; ?> ]</td>
</tr>
<?php
}
?>
</table>
<?php
// page numbers..
if (rowCount('allowed_emails')>0) {
  echo '<p align="right" class="pbutton"><input class="formbutton" type="submit" value="'.$msg_emails6.'" title="'.$msg_emails6.'"></p>';
  echo admin_page_numbers(rowCount('allowed_emails'),$limit,$page);
}
?>
</form>
</div>
Return current item: Maian Gallery