<?php 

global $ROOT;
$ROOT = $_SERVER['DOCUMENT_ROOT'];

global $phpself;
$phpself = basename(__FILE__);
include('../globals/phpself.php');

$today = date('Y-m-d');

$content = '';
$content .= '<form name="email" action="expReports/summaryExport_1111.php" method="post">
				<input type="hidden" name="excelOP" value="email" />';
foreach ($_GET as $key => $value) {
	$exportInputs .= '<input type="hidden" name ="'. $key .'" value="'. $value .'" />';
}
$content .= $exportInputs;
$content .= '<table id="emailForm">
				<tr>	
					<th>From Email:</th>
					<td><input type="text" name="emailFrom" class="txt" /></td>
				</tr>
				<tr>	
					<th>From Name:</th>
					<td><input type="text" name="emailFromName" class="txt" /></td>
				</tr>
				<tr>
					<td colspan="2" style="height: 5px;"></tr>
				<tr>
				<tr>	
					<th>Email To:</th>
					<td><input type="text" name="emailTo" class="txt" /></td>
				</tr>
				<tr>	
					<th>To Name:</th>
					<td><input type="text" name="emailToName" class="txt" /></td>
				</tr>
				<tr>
					<td colspan="2" style="height: 5px;"></tr>
				<tr>
				<tr>	
					<th>Email CC:</th>
					<td><input type="text" name="emailCC" class="txt" /></td>
				</tr>
				<tr>	
					<th>CC Name:</th>
					<td><input type="text" name="emailCCname" class="txt" /></td>
				</tr>
				<tr>
					<td colspan="2" style="height: 2px;"></tr>
				<tr>
				<tr>	
					<th>Email BCC:</th>
					<td><input type="text" name="emailBCC" class="txt" /></td>
				</tr>
				<tr>
					<td colspan="2" style="height: 5px;"></tr>
				<tr>
				<tr>
					<th>Subject:</th>
					<td><input type="text" name="emailSubject" class="txt" /></td>
				</tr>
				<tr>
					<th>Message:</th>
					<td><textarea name="emailMessage" style="width: 250px; height: 100px;"></textarea></td>
				</tr>
				<tr>
					<td colspan="2" style="text-align: center">
						<input type="submit" value="Send Email" />
					</td>
				</tr>
			</table>
		</form>'; 

?>
<!DOCTYPE HTML>
<html lang="en">
<head>

<title>Email Report</title>

<link href="../css/main.css" rel="stylesheet" type="text/css">
<link href="../css/content.css" rel="stylesheet" type="text/css">
<link href="../css/adminPopup.css" rel="stylesheet" type="text/css">

<style type="text/css">
#container {
	width: 350px;
	height: auto;
	margin: 10px auto 0 auto;
	padding: 0;
	overflow: hidden;
}
#emailForm {
	width: 350px;
	margin: 0;
	padding: 0;
}
#emailForm th, #emailForm td {
	vertical-align: top;
}
#emailForm td input.txt {
	width: 250px;
}
#emailForm td label {
	font-style: italic;
	color: #999999;
}
</style>

<?=$datePick?>
<?=$areYouSure?>

</head>

<body>

	<div id="container">
		<?=$content?>
   	</div>
    
</body>
</html>