<!DOCTYPE html>
<?php

 ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
 ob_start();
 session_set_cookie_params(10000000);

 session_start();
 if(!isset($_SESSION['user']))
	{
	//echo "<script>window.location='index.php'</script>";
		 
	}
  ?>
 <link rel="stylesheet" href="jquery.datetimepicker.css">
 <script src="jquery-1.8.2.min.js"></script>
<script src="jquery-ui.js"></script>
<script src="jquery.datetimepicker.js"></script>
<script src="jquery.validate.min.js"></script>

<script>
$(document).ready(function() {
//alert("hello");
jQuery('#bday').datetimepicker();
jQuery('#comp_date').datetimepicker();

jQuery('#form_email').validate();


 //jQuery("#bday").datepicker();
});
</script>
<style>
.error{color:red}
</style>
<!--Modified by Sana on [18.01.17][To add UTF-8 encoding][Start]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" charset=utf-8">
<!--Modified by Sana on [18.01.17][To add UTF-8 encoding][End]-->
<h3><center>Email Report Form</center></h3>
<a href="form.php">Form</a>

<form action="insert_email_report.php" method="post" id="form_email">


<table width="470" border="0" style="margin:0 auto">
 
  <tr>
    <td>Subject Line :</td>
    <td><input type="text" name="subject" id="subject"  placeholder="Subject Line" size="40" class="required" /></td>
  </tr>
  <tr>
    <td>From :</td>
    <td><input type="text" name="from" placeholder="Email Id" id="from" size="40" class="required" /></td>
  </tr>
  <tr>
    <td>Reply To :</td>
    <td><input type="text" name="reply" id="reply" placeholder="Reply To" size="40" class="required"></td>
  </tr>
  <tr>
	<td>Date & Time :</td>
    <td><input type="text" name="datetime" id="bday" size="40" ></td>
  </tr>
  <tr>
    <td>Subscribers :</td>
    <td><input type="text" name="subscriber" id="subscriber" placeholder="Subscriber" size="40" class="required" ></td>
  </tr>
  
  <tr>
	<td>Completed Date & Time :</td>
    <td><input type="text" name="comp_date" id="comp_date" size="40" ></td>
  </tr>
  
  <tr>
	<td>Delivered :</td>
    <td><input type="text" name="delivered" id="delivered" placeholder="Delivered" size="40" class="required" /> </td>  
  </tr>
  
   <tr>
  <td>Undelivered : </td>
    <td> <input type="text" name="undelivered" id="undelivered" placeholder="Undelivered" size="40" class="required" /></td>
  </tr>
  
   <tr>
  <td>Bounced :</td>
    <td> <input type="text" name="bounced" id="bounced" placeholder="Bounced" size="40" /></td>
  </tr>
  
  <tr>
  <td>Unique Viewers :</td>
    <td> <input type="text" name="unique_view" id="unique_view" placeholder="Unique Viewers" class="required" size="40" /></td>
  </tr>
  
  <tr>
  <td>Total Views :</td>
    <td> <input type="text" name="tot_views" id="tot_views" placeholder="Total Views" size="40" /></td>
  </tr>
  
  <tr>
	<td>Social Views :</td>
    <td> <input type="text" name="social_views" id="social_views" placeholder="Social Views" size="40" /></td>
  </tr>
  
  <tr>
	<td>Facebook :</td>
    <td> <input type="text" name="facebook" id="facebook" placeholder="Facebook" size="40" /></td>
  </tr>
  
  <tr>
	<td>Twitter :</td>
    <td> <input type="text" name="twitter" id="twitter" placeholder="Twitter"size="40" /></td>
  </tr>
  
  <tr>
	<td>LinkedIn :</td>
    <td> <input type="text" name="linked" id="linked" placeholder="LinkedIn" size="40" /></td>
  </tr>
  
  <tr>
	<td>Other : </td>
    <td> <input type="text" name="other" id="other" placeholder="Other" size="40" /></td>
  </tr>
  
  <tr>
	<td>Unique Clickers :</td>
    <td> <input type="text" name="unique_clicker" id="unique_clicker" class="required" placeholder="Unique Clickers" size="40" /></td>
  </tr>
  
  <tr>
	<td>Total Clicks :</td>
    <td> <input type="text" name="total_clicks" id="total_clicks" placeholder="Total Clicks" class="required" size="40" /></td>
  </tr>
   <tr> 
    <td><center><input type="submit" name="submit" value="submit"></center></td>
  </tr>
</table>
</form>
</html><!--Modified by Sana on [18.01.17][To add UTF-8 encoding]-->