<? ob_start();
session_start();
require_once("../dbconnect.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?php include_once("title.php");?>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<link href="stylesheet.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="ajaxvalid.js"></script>
<style type="text/css">
<!--
.style2 {
	color: #21262A;
	font-size: 12px;
}
-->
</style>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td><? require_once("header.php"); ?></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            
              <tr>
                <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="30" class="cate_pro">Discount Coupons</td>
                      <td>&nbsp;</td>
                      <td class="index_text" align="right">&nbsp;</td>
                      <td width="20">&nbsp;</td>
                    </tr>
                </table></td>
              </tr>
              <tr>
                <td><table width="70%" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
                      <tbody>
                        <tr>
                          <td>Send Email To Customers</td>
                          <td align="right"><img src="http://localhost/zen/zen/admin/images/pixel_trans.gif" alt="" border="0" height="40" /></td>
                          <td>&nbsp;</td>
                        </tr>
                        </tbody>
                    </table></td>
                  </tr>
                  <tr>
                    <td>
                     <form action="sendcoponemail.php" name="emails" id="emails" method="post">
                    <table border="0" cellpadding="2" cellspacing="0" width="100%">
                        <tbody>
                          <tr>
                            
                            <td><table border="0" cellpadding="0" cellspacing="0">
                                <tbody>
                                  <tr>
                                    <td colspan="2"><img src="http://localhost/zen/zen/admin/images/pixel_trans.gif" alt="" border="0" width="1" height="10" /></td>
                                  </tr>
                                  <tr>
                                    <td>Customer:</td>
                                    <td width="750">  <? $customers=mysql_query("select user_id,Email from register order by Fname");?>
                <select name="customers[]" size="5" multiple="multiple" id="customers" >
                <? while($res=mysql_fetch_array($customers)) {?>
                <option value="<?=$res[user_id]?>"><?=$res[Email]?></option>
                <? } ?>
                </select></td>
                                  </tr>
                                  <tr>
                                    <td colspan="2"><img src="http://localhost/zen/zen/admin/images/pixel_trans.gif" alt="" border="0" width="1" height="10" /></td>
                                  </tr>
                                  <tr>  <? $adm=mysql_query("Select *from admin where admin_id=1");
 $admrow=mysql_fetch_array($adm); ?>
                                    <td>From:</td>
                                    <td><input name="mailfrom" value="<? echo $admrow['email']; ?>" size="50" type="text" /></td>
                                  </tr>
                                  <tr>
                                    <td colspan="2"><img src="http://localhost/zen/zen/admin/images/pixel_trans.gif" alt="" border="0" width="1" height="10" /></td>
                                  </tr>
                                  <tr>
                                    <td>Subject:</td>
                                    <td><input name="emailsubject" size="50" type="text" />
                                     <input type="hidden" name="couponlastid" value="<?=$_GET['couponid']?>" /></td>
                                  </tr>
                                  <tr>
                                    <td colspan="2"><img src="http://localhost/zen/zen/admin/images/pixel_trans.gif" alt="" border="0" width="1" height="10" /></td>
                                  </tr>
                                  <tr>
                                    <td colspan="2"><img src="http://localhost/zen/zen/admin/images/pixel_trans.gif" alt="" border="0" width="1" height="10" /></td>
                                  </tr>
                                  <tr>
                                    <td valign="top">&nbsp;</td>
                                    <td>&nbsp;</td>
                                  </tr>
                                  <tr>
                                    <td colspan="2"></td>
                                  </tr>
                                  <tr>
                                    <td colspan="2" align="left" style="padding-left:60px;">
                                    
                                   <input type="image" src="images/button_send_mail.gif" />
                                    
                                   
                                   <a href="coupons.php"><img src="images/button_cancel.gif" border="0"/></a>
                                    
                                    
                </td>
                                  </tr>
                                </tbody>
                            </table></td>
                          </tr>
                        </tbody>
                    </table>
                    </form>
                    </td>
                  </tr>
                </table>                </td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>

          <tr>
            <td><? require_once("footer.php"); ?></td>
          </tr>
          <tr>
            <td>&nbsp; </td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
