<?php
include_once("../include/main.inc.php");
check_session('MyCpanel','index.php');
?>
<script type="text/javascript">
function chk_valid_date() {
	if (document.bannerFrm.validFrom.value==0) {
		alert("Please select Validity Period");
		return false;
	}
	if (document.bannerFrm.validTo.value==0) {
		alert("Please select Validity Period");
		return false;
	}
}
</script>
<?php
################ Paging Starts From Here ##################
@extract($_REQUEST);
$start = (intval($start)<0 or $start=="")?0:$start;
$pagesize = intval($pagesize)==0?$pagesize=20:$pagesize;

$heading="Manage Newletter";
$record_type="mail";
$script_name="manage_emails.php";
$table_name="mailer_list";
####################################################



admin_header("");
?>
<h3>Manage Newletter - Non Active</h3>
<table width="100%"  border="0" cellpadding="0" cellspacing="2">
 <tr>
  <td align="center"><input type="button" class="button" value="Add New Mailer" onclick="window.location.href='add-new-mail.php';"></td>
 </tr>
</table><br />
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" valign="top">


	 <form name="pg_form" action="<?=$PHP_SELF?>" method="post" style="margin:0px;padding:0px;">

	
	   <?



	$urlqry=mysqli_query($dbcon,"select * from mailer_list where status='N' ORDER BY mailer_id");

    while($urlres=mysqli_fetch_array($urlqry)) {
$mailer_id=$urlres['mailer_id'];
	?>
<tr  bgcolor="#f9f9f9">
	  <td align="left"></td>
	  <td align="left" class="">
	   <b><?=$urlres['mailer_title'];?> - <?=$urlres['mailer_id'];?></b>
	   	  </td>
	 
	
	 
	  <td class="" align="left">
	  

                  <a href="add-new-mail.php?mailer_id=<?=$mailer_id;?>"><img src="images/edit.gif" alt="Edit This Category" title="Edit This City" border="0"></a> 
                  
                   <a href="add-new-mail.php?id=delete_record&mailer_id=<?=$mailer_id;?>" onClick="return confirm('Are you sure to delete this Mailers...');"><img src="images/cancel.gif" alt="Delete This Category" title="Delete This Category" border="0"></a>

                 <a href="add-new-mail.php?id=active_record&mailer_id=<?=$mailer_id;?>" onClick="return confirm('Are you sure to Active this Mailer...');"> Active Mailers</a>
	  <a onclick="window.open('view-email-details.php?mailer_id=<?=$mailer_id;?>','royale', 'toolbar=no,width=500, height=540, left=250, top=100, screenX=250, screenY=150, status=no, scrollbars=no, resizable=no,');return false" href="javascript:void(0);">View Details</a>
	   	  
	  </td>
	 </tr>
	 
	 <?
 }
	//header('Refresh: 0.1');      

	



     



?>

	

	<table width="100%"  border="0" cellpadding="0" cellspacing="2">
 <tr>
  <td align="center"><input type="button" class="button" value="Add New Mailer" onclick="window.location.href='http://www.naturaltherapypages.in/sitepanel/add-new-mail.php';"></td>
 </tr>
</table><br />

	   
</table>





<?php

admin_footer();	

exit;

?>
