Skip to content

Commit

Permalink
Added pages for Feedback and Impact stories
Browse files Browse the repository at this point in the history
- 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
jen-p committed Aug 21, 2014
1 parent 9712766 commit edcd11a
Show file tree
Hide file tree
Showing 6 changed files with 459 additions and 8 deletions.
99 changes: 99 additions & 0 deletions designing-for-clinicians/assets/css/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,7 @@
border-top: solid 1px #dedede;
margin-bottom: 20px;
padding: 5px 0px 5px 0px;
font-size: 14px;
}
.menu ul {
margin: 0px 0px 0px 0px;
Expand Down Expand Up @@ -974,6 +975,83 @@
margin-bottom: 40px;
}

.feedback-pg .header, .impact-pg .header{
margin-top: 20px;
}
.feedback-pg h3 .note {
font-size: 14px;
}
.feedback-pg .citations, .feedback-pg nav,
.impact-pg .citations, .impact-pg nav {
display: none;
}

#contact-area {
width: 600px;
margin-top: 25px;
margin-left: 150px;
}

#contact-area input, #contact-area textarea {
padding: 5px;
width: 471px;
font-family: Helvetica, sans-serif;
line-height: 32px;
margin: 0px 0px 10px 0px;
border: 2px solid #dadada;
border-radius: 3px;
background: #fafafa;
}

#contact-area textarea {
height: 90px;
margin-top: -25px;
}

#contact-area textarea:focus, #contact-area input:focus {
border: 2px solid #dadada;
}

#contact-area input.button {
width: 100px;
float: right;
background: #eee; /* Old browsers */
background: #eee -moz-linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(0,0,0,.2) 100%); /* FF3.6+ */
background: #eee -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.2)), color-stop(100%,rgba(0,0,0,.2))); /* Chrome,Safari4+ */
background: #eee -webkit-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* Chrome10+,Safari5.1+ */
background: #eee -o-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* Opera11.10+ */
background: #eee -ms-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* IE10+ */
background: #eee linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* W3C */
border: 1px solid #aaa;
border-top: 1px solid #ccc;
border-left: 1px solid #ccc;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
color: #444;
display: inline-block;
font-size: 11px;
font-weight: bold;
text-decoration: none;
text-shadow: 0 1px rgba(255, 255, 255, .75);
cursor: pointer;
margin-bottom: 20px;
line-height: normal;
padding: 8px 10px;
font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
margin-right: 115px;
}

#contact-area label {
color: #adadad;
font-family: Helvetica, sans-serif;
font-weight: normal;
margin-right: 15px;
width: 100px;
padding-top: 5px;

}


/* #Media Queries
================================================== */
Expand Down Expand Up @@ -1013,6 +1091,9 @@
.sidebar .sidebar-table tbody td span, .sidebar .sidebar-table tbody td p{
display: none;
}
#contact-area {
margin-left: 0px;
}
}

/* #Mobile (Landscape) Design for a width of 480px */
Expand Down Expand Up @@ -1055,6 +1136,15 @@
.sidebar .sidebar-table tbody td span, .sidebar .sidebar-table tbody td p{
display: none;
}
#contact-area {
width: 400px;
}
#contact-area input, #contact-area textarea {
width: 400px;
}
#contact-area input.button {
margin-right: -15px;
}
}

/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */
Expand Down Expand Up @@ -1106,4 +1196,13 @@
.sidebar .sidebar-table tbody td span, .sidebar .sidebar-table tbody td p{
display: none;
}
#contact-area {
width: 400px;
}
#contact-area input, #contact-area textarea {
width: 300px;
}
#contact-area input.button {
margin-right: 85px;
}
}
108 changes: 108 additions & 0 deletions designing-for-clinicians/feedback.php
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>
3 changes: 2 additions & 1 deletion designing-for-clinicians/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
107 changes: 107 additions & 0 deletions designing-for-clinicians/impact.php
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>
Loading

0 comments on commit edcd11a

Please sign in to comment.