forked from goinvo/EHR
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added pages for Feedback and Impact stories
- changed all feedback mailto links to go to feedback page - added impact link - added target blank for all menu links and Interactive list in the table of contents
- Loading branch information
Showing
6 changed files
with
459 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
<?php $pageTitle='Feedback'; ?> | ||
<!DOCTYPE html> | ||
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]--> | ||
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]--> | ||
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]--> | ||
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]--> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Inspired EHRs | <?php echo $pageTitle; ?></title> | ||
<meta name="description" content=""> | ||
<meta name="author" content=""> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | ||
|
||
<link rel="stylesheet" type="text/css" media="screen" href="./assets/css/layout.css"> | ||
|
||
<!--[if lt IE 9]> | ||
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> | ||
<![endif]--> | ||
</head> | ||
<body class="feedback-pg"> | ||
|
||
<div class="wrapper"> | ||
<?php include './header.php'; ?> | ||
|
||
<section class="chapter"> | ||
<header class="chapterStart"> | ||
<div class="container"> | ||
<div class="sixteen columns"> | ||
<h2>Feedback</h2> | ||
<div class="subheader">for Inspired EHRs: Desinging for Clinicians</div> | ||
</div> | ||
</div> | ||
</header> | ||
|
||
<section class="section" id="acknowledgements-sect"> | ||
<div class="container"> | ||
<div class="sixteen columns"> | ||
<div class="sectionStart"> | ||
<hr/> | ||
</div> | ||
<h3>Take our reader survey <span class="note">(open until August 19)</span></h3> | ||
<p>We sent this survey to members of the EHRA by email, but we welcome any reader to complete the survey to help us understand how well we are meeting your needs. | ||
<p>Or send us an email with your feedback.</p> | ||
|
||
<div id="contact-area"> | ||
<form method="post" action="feedback.php"> | ||
<label for="name">Name</label> | ||
<input type="text" name="name" id="name" required /> | ||
|
||
<label for="email">Email</label> | ||
<input type="email" name="email" id="email" pattern="[^ @]*@[^ @]*" required /> | ||
|
||
<label for="message">Message</label><br /> | ||
<textarea name="message" rows="20" cols="20" id="message" required></textarea> | ||
|
||
<input type="text" name="blank" style="display: none;"> | ||
|
||
<input type="submit" name="submit" value="Submit" class="button" /> | ||
</form> | ||
</div> | ||
<?php | ||
//form data | ||
$name = $_POST['name']; | ||
$email = $_POST['email']; | ||
$message = $_POST['message']; | ||
$blank = $_POST['blank']; | ||
$to = '[email protected]'; | ||
//$from = $email; | ||
$from = '[email protected]'; | ||
$subject = 'Feedback for Inspired EHRs: Designing for Clinicians'; | ||
|
||
|
||
$body = "From: " . $name . "\n"; | ||
$body .= "Email: " . $email . "\n \n"; | ||
$body .= "Message: \n" . $message . "\n"; | ||
|
||
$headers = "From:" . $from . "\r\n"; | ||
$headers .= "Content-type: text/plain; charset=UTF-8" . "\r\n"; | ||
|
||
if($_POST['submit'] && $blank == ''){ | ||
mail($to, $subject, $body, $headers); | ||
|
||
if(mail($to, $subject, $body, $headers)) { | ||
echo "<p>Thanks for your email. We'll get back to you ASAP</p>"; | ||
} else { | ||
echo "<p>There was an issue, try sending again.</p>"; | ||
} | ||
} else if($_POST['submit'] && $blank != '' ) { | ||
echo "<p>Sorry, your message looks like spam, so it was not sent.</p>"; | ||
} | ||
?> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
</section> | ||
|
||
<?php include './footer.php'; ?> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
</section> | ||
</div><!--end wrapper--> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,8 @@ | |
<li><a href="http://www.cs.umd.edu/hcil/sharp/twinlist/dev/indev/ipad/index.html?case=__DATASET_APPENDECTOMY__&version=__VERSION_FULL__&animate=__AUTO_ANIMATE_ON__" target="blank">Twinlist</a></li> | ||
<li><a href="../Inspired_EHRs_Designing_for_Clinicians.pdf" target="blank" onclick="_gaq.push(['_trackEvent','Download','PDF',this.href]);">PDF</a></li> | ||
<li><a href="https://github.com/goinvo/EHR" target="blank">GitHub</a></li> | ||
<?php echo '<li><a href="mailto:[email protected]?Subject=EHR%20feedback:%20' . $pageTitle . '" target="_top">Feedback</a></li>'; ?> | ||
<li><a href="./feedback.php" target="blank">Feedback</a></li> | ||
<li><a href="./impact.php" target="blank">Impact</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
<?php $pageTitle='Feedback'; ?> | ||
<!DOCTYPE html> | ||
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]--> | ||
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]--> | ||
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]--> | ||
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]--> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Inspired EHRs | <?php echo $pageTitle; ?></title> | ||
<meta name="description" content=""> | ||
<meta name="author" content=""> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | ||
|
||
<link rel="stylesheet" type="text/css" media="screen" href="./assets/css/layout.css"> | ||
|
||
<!--[if lt IE 9]> | ||
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> | ||
<![endif]--> | ||
</head> | ||
<body class="feedback-pg"> | ||
|
||
<div class="wrapper"> | ||
<?php include './header.php'; ?> | ||
|
||
<section class="chapter"> | ||
<header class="chapterStart"> | ||
<div class="container"> | ||
<div class="sixteen columns"> | ||
<h2>Impact</h2> | ||
<div class="subheader">stories about Inspired EHRs: Desinging for Clinicians</div> | ||
</div> | ||
</div> | ||
</header> | ||
|
||
<section class="section" id="acknowledgements-sect"> | ||
<div class="container"> | ||
<div class="sixteen columns"> | ||
<div class="sectionStart"> | ||
<hr/> | ||
</div> | ||
<h3>Share Your Story</h3> | ||
<p>We want to hear how <em>Inspired EHRs</em> has helped you or team.</p> | ||
|
||
<div id="contact-area"> | ||
<form method="post" action="feedback.php"> | ||
<label for="name">Name</label> | ||
<input type="text" name="name" id="name" required /> | ||
|
||
<label for="email">Email</label> | ||
<input type="email" name="email" id="email" pattern="[^ @]*@[^ @]*" required /> | ||
|
||
<label for="message">Story</label><br /> | ||
<textarea name="message" rows="20" cols="20" id="message" required></textarea> | ||
|
||
<input type="text" name="blank" style="display: none;"> | ||
|
||
<input type="submit" name="submit" value="Submit" class="button" /> | ||
</form> | ||
</div> | ||
<?php | ||
//form data | ||
$name = $_POST['name']; | ||
$email = $_POST['email']; | ||
$message = $_POST['message']; | ||
$blank = $_POST['blank']; | ||
$to = '[email protected]'; | ||
//$from = $email; | ||
$from = '[email protected]'; | ||
$subject = 'Impact story about Inspired EHRs: Designing for Clinicians'; | ||
|
||
|
||
$body = "From: " . $name . "\n"; | ||
$body .= "Email: " . $email . "\n \n"; | ||
$body .= "Message: \n" . $message . "\n"; | ||
|
||
$headers = "From:" . $from . "\r\n"; | ||
$headers .= "Content-type: text/plain; charset=UTF-8" . "\r\n"; | ||
|
||
if($_POST['submit'] && $blank == ''){ | ||
mail($to, $subject, $body, $headers); | ||
|
||
if(mail($to, $subject, $body, $headers)) { | ||
echo "<p>Thanks for your email. We'll get back to you ASAP.</p>"; | ||
} else { | ||
echo "<p>There was an issue, try sending again.</p>"; | ||
} | ||
} else if($_POST['submit'] && $blank != '' ) { | ||
echo "<p>Sorry, your message looks like spam, so it was not sent.</p>"; | ||
} | ||
?> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
</section> | ||
|
||
<?php include './footer.php'; ?> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
</section> | ||
</div><!--end wrapper--> | ||
</body> | ||
</html> |
Oops, something went wrong.