Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
<?php
include_once (__DIR__."/Utility/dataConnect.php");
include_once (__DIR__."/createCSV.php");
include_once(__DIR__."/layout/header.php");
session_start();
#$AccountName = $_COOKIE['LivingHealthy'];
$AccountName = 'hhp14001';
if($AccountName == 'hhp14001') { ?>
<html>
<head>
<title>HLE Download</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
</head>
<body>
<div class="demo-content">
<h2 class="title_with_link">Survey Download</h2>
<form name="frmSearch" method="post" action="">
<p class="search_input">
<input type="text" placeholder="From Date" id="post_at" name="search[post_at]" value="<?php echo $post_at; ?>" class="input-control" />
<input type="text" placeholder="To Date" id="post_at_to_date" name="search[post_at_to_date]" style="margin-left:10px" value="<?php echo $post_at_to_date; ?>" class="input-control" />
<input type="submit" name="survey" value="Download Survey Answers" >
<input type="submit" name="profile" value="Download Profiles" >
<input type="submit" name="scores" value="Download Weekly Scores" >
</p>
</form>
</div>
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script type="text/javascript" >
$.datepicker.setDefaults({
showOn: "button",
buttonImage: "datepicker.png",
buttonText: "Date Picker",
buttonImageOnly: true,
dateFormat: 'dd-mm-yy'
});
$(function() {
$("#post_at").datepicker();
$("#post_at_to_date").datepicker();
});
</script>
</body></html>
<?php
}
else {
header("Location: index.php");
}
?>