Team:UCL/FAQ/Contact

From 2014.igem.org

(Difference between revisions)
 
(14 intermediate revisions not shown)
Line 1: Line 1:
 +
{{:Team:UCL/Template:headerx}}
{{:Team:UCL/Template:headerx}}
{{:Team:UCL/Template:headerx}}
<html>
<html>
-
<div style="height:200px;width:100%;background-color:darkgrey;padding-top:50px;float:left;display:inline-block;">
+
<div class="pageTitle">
-
     <div class="imagewc"><h1>Contact Us</h1></div>
+
     <div><h3>Contact Us</h3></div>
-
     <div class="BannerTitle">
+
     <div><!--- This is the Bit that describes the team and its logo DONT TOUCH-->
-
    <div class="jointb"><img src="https://static.igem.org/mediawiki/2014/e/e8/WebComms_icon.png" height="50px" width="50px" style="margin-right:10px;"></img></div>
+
        <div class="floater"><img src="https://static.igem.org/mediawiki/2014/c/ca/UCLHumanPracticeLogo.png" height="50px" width="50px" style="margin-right:10px;"></img></div>
-
            <div class="jointb"><h3 style="margin:0px;">Web and Communications Team</h3></div>
+
        <div class="floater"><h4 class="minimyzr" style="margin:0px;">Human Practice Team</h4></div>
     </div>
     </div>
</div>
</div>
-
<div style="height:2000px; background-color:lightgrey;"><html>
+
<div class="textArena"><!--- This is the were your text goes, play with it but dont change the class names-->
 +
<div class="textTitle"><h3 class="widthCorrect">Contact Details</h3></div><!-- First title or p tag of a page needs the textTitle class as it corrects the placing of the rest of the page-->
-
<!-- begin #page - the container for everything but header -->
+
<?php
-
<div id="page">
+
function spamcheck($field) {
 +
  // Sanitize e-mail address
 +
  $field=filter_var($field, FILTER_SANITIZE_EMAIL);
 +
  // Validate e-mail address
 +
  if(filter_var($field, FILTER_VALIDATE_EMAIL)) {
 +
    return TRUE;
 +
  } else {
 +
    return FALSE;
 +
  }
 +
}
 +
?>
-
  <!-- CONTENT GOES HERE -->
+
<h2>Feedback Form</h2>
-
<div class="hero-unit">
+
<?php
-
<div class="container">
+
// display form if user has not clicked submit
-
<h1>Contact us</h1>
+
if (!isset($_POST["submit"])) {
-
</div>
+
  ?>
-
<!--close container-->
+
  <form method="post" action="<?php echo $_SERVER["PHP_SELF"];?>
-
</div>
+
  From: <input type="text" name="from"><br>
-
<!--close hero-unit-->
+
  Subject: <input type="text" name="subject"><br>
-
+
  Message: <textarea rows="10" cols="40" name="message"></textarea><br>
-
<div class="container clearfix" id="main-content">
+
  <input type="submit" name="submit" value="Submit Feedback">
-
<div class="row-fluid reverse-order contact-page">
+
  </form>
-
<p class="clearfix">Crisp has permanently altered the concept of platforms. We apply the proverb "The early bird catches the worm" not only to our solutions but our power to streamline. If you synergize robustly, you may have to e-enable virally. We always morph 60/24/7/365 1000/60/60/24/7/365 bloatware. </p>
+
  <?php
-
<hr />
+
} else {  // the user has submitted the form
-
<div class="span5">
+
  // Check if the "from" input field is filled out
-
<p>University College London - Gower Street - London - WC1E 6BT - Biochemical Engineering Department<br>
+
  if (isset($_POST["from"])) {
-
<strong>phone:</strong> <a href="tel:phonenum" class="tele">+44 (0)20 7679 2000</a><br>
+
    // Check if "from" email address is valid
-
<strong>email:</strong> <a href="mailto: ucligem2014@gmail.com"> ucligem2014@gmail.com</a>
+
    $mailcheck = spamcheck($_POST["from"]);
-
                </p>
+
    if ($mailcheck==FALSE) {
-
<!--close input-append-->
+
      echo "Invalid input";
-
<h3 class="short_headline margin-top"><span>Follow Us</span></h3>
+
    } else {
-
<ul class="social">
+
      $from = $_POST["from"]; // sender
-
<li><a class="socicon rss" href="#" title="RSS"></a></li>
+
      $subject = $_POST["subject"];
-
<li><a class="socicon facebook" href="#" title="Facebook"></a></li>
+
      $message = $_POST["message"];
-
<li><a class="socicon twitterbird" href="#" title="Twitter"></a></li>
+
      // message lines should not exceed 70 characters (PHP rule), so wrap it
-
<li><a class="socicon vimeo" href="#" title="Vimeo"></a></li>
+
      $message = wordwrap($message, 70);
-
</ul>
+
      // send mail
-
</div>
+
      mail("webmaster@example.com",$subject,$message,"From: $from\n");
-
<!--close span5 -->
+
      echo "Thank you for sending us feedback";
-
+
    }
-
<div class="span7">
+
  }
-
<form action="/send_form_email.php" method="post" id="contact-form" class="form-horizontal">
+
}
-
<fieldset>
+
?>
-
<div class="control-group">
+
-
<label for="name">Your Name</label>
+
-
<input required type="text" class="span10" name="name" id="name" />
+
-
</div>
+
-
<div class="control-group">
+
-
<label for="telephone">Phone</label>
+
-
<input type="text" class="span10" name="telephone" id="telephone" />
+
-
</div>
+
-
<div class="control-group">
+
-
<label for="email">Email Address</label>
+
-
<input required type="email" class="span10" name="email" id="email" />
+
-
</div>
+
-
<div class="control-group">
+
-
<label for="comments">Your Message</label>
+
-
<textarea class="span10" name="comments" id="comments" rows="3"></textarea>
+
-
</div>
+
-
<button type="submit" class="btn btn-primary btn-large">Send</button>
+
-
</fieldset>
+
-
</form>
+
-
</div>
+
-
<!--close span7 -->
+
-
</div>
+
-
<!--close row-fluid-->
+
-
</div>
+
-
<!--close .container role="main-content" -->
+
-
</html> </div>
+
 +
 +
 +
 +
</div><!-- This is the css of the page. Dont change it unless you have consulted with Lewis or Adam about what your changing-->
<style>
<style>
-
.jointb {
+
/*=======PAGE HEADER=======*/
 +
.pageTitle {
 +
    height:200px;
 +
    width:100%;
 +
    background-color:darkgrey;
 +
    padding-top:50px;
 +
    display:inline-block;
 +
}
 +
.floater {
float:left;
float:left;
}
}
-
</style>
 
 +
/*=======Body=======*/
 +
.textArena {
 +
    background-color:white;
 +
    padding: 5% 5% 5% 5%;
 +
    font-size:90%;
 +
}
 +
.widthCorrect {
 +
width:100%;
 +
}
 +
</style>
 +
</html>
</html>
{{:Team:UCL/Template:footerx}}
{{:Team:UCL/Template:footerx}}

Latest revision as of 11:36, 17 September 2014

Goodbye Azodye UCL iGEM 2014

Goodbye Azodye UCL iGEM 2014

Contact Us

Human Practice Team

Contact Details

Feedback Form

From:
Subject:
Message:

Contact Us

University College London
Gower Street - London
WC1E 6BT
Biochemical Engineering Department
Phone: +44 (0)20 7679 2000
Email: ucligem2014@gmail.com

Follow Us