[gnome-web-www/wptest] Add membership's application form.



commit 5d44cd97f48b3b42ba4215174c89d793426cf300
Author: Andrea Veri <av src gnome org>
Date:   Mon Feb 13 15:27:02 2012 +0100

    Add membership's application form.

 theme/page-apply.php                            |  189 +++++++++++++++++++++++
 theme/{page-members.php => page-membership.php} |    0
 2 files changed, 189 insertions(+), 0 deletions(-)
---
diff --git a/theme/page-apply.php b/theme/page-apply.php
new file mode 100644
index 0000000..571dce5
--- /dev/null
+++ b/theme/page-apply.php
@@ -0,0 +1,189 @@
+<?php
+
+
+if (array_key_exists('submit', $_POST)) {
+    
+    $full_name = trim(stripslashes($_POST['full_name']));
+    $email = trim(stripslashes($_POST['email']));
+    $obfuscated_email = str_replace("@", " AT ", $email);
+    
+    $summary = trim(stripslashes($_POST['summary']));
+    $previous_participation = trim(stripslashes($_POST['previous_participation']));
+    
+    $formmail = "Contact Information\n" .
+                "-------------------\n\n" .
+                
+                "Full Name: " . $full_name . "\n".
+                "Email:     " . $obfuscated_email . "\n\n" .
+                
+                "Contribuitions Summary:\n" .
+                $summary . "\n\n" .
+                
+                "Foundation Previous Participation\n" .
+                $previous_participation . "\n\n" .
+                
+                "[Application received at " . date("D M j G:i:s Y") . " (Eastern time)]" .
+                
+                "If you have any questions, you can contact the Membership Committee by\n" .
+                "replying to this mail. Please note that it usually takes up to a week for an application to be fully processed.";
+
+    $headers = "From: GNOME Foundation Membership Committee Script <membership-committee gnome org>\n" .
+               "Cc: $email\n";
+   
+    $subject = "Application received from " . $full_name . " (" . $obfuscated_email . ")";
+    
+    mail("membership-applications gnome org", $subject, $formmail, $headers);
+
+}
+
+
+
+
+
+
+
+
+?>
+<?php require_once("header.php"); ?>
+<!-- container -->
+    <div id="container" class="two_columns">
+        <div class="container_12">
+        
+            <?php require_once('inc/page-title.php'); ?>
+            
+            <div class="content without_sidebar">
+            
+                <?php the_content(); ?>
+                
+                <hr class="top_shadow" />
+
+                <h2 style="text-align: center;">Application Form</h2>
+
+
+                <form action="" method="post" id="application_form">
+
+                    <style type="text/css">
+                    
+                        #application_form {
+                            margin-top: 30px;
+                            padding: 30px;
+                            border: 1px solid #ccc;
+                            background: #eeeeec;
+                            -moz-border-radius: 5px;
+                            -webkit-border-radius: 5px;
+                            border-radius: 5px;
+                        }
+                        #application_form h3:first-of-type {
+                            margin-top: 0;
+                        }
+                        #application_form h3 {
+                            border-bottom: 1px solid #ccc;
+                        }
+                        #application_form .item {
+                            margin: 20px 0;
+                            overflow: hidden;
+                            font-size: 15px;
+                        }
+                        #application_form .item label {
+                            display: block;
+                            float: left;
+                            width: 140px;
+                            text-align: right;
+                            margin-right: 10px;
+                            padding: 5px;
+                            font-weight: bold;
+                        }
+                        #application_form .item input[type="text"],
+                        #application_form .item .field {
+                            font: inherit;
+                            padding: 5px;
+                            width: 265px;
+                        }
+                        #application_form .item input[name="not_spam"] {
+                            width: 100px;
+                        }
+                        #application_form .item textarea {
+                            width: 100%;
+                            min-height: 130px;
+                            font: inherit;
+                            padding: 10px;
+                            -moz-box-sizing: border-box;
+                            -webkit-box-sizing: border-box;
+                            box-sizing: border-box;
+                            resize: vertical;
+                        }
+                        #application_form .submit_area {
+                            text-align: center;
+                        }
+                        #application_form .submit_area button {
+                            font-size: 18px;
+                            outline: 0;
+                        }
+                        #application_form .submit_area button:hover {
+                            cursor: pointer;
+                        }
+                    
+                    </style>
+                    
+                    <h3>Personal Information</h3>
+
+                    <div class="item">
+                        <label for="full_name">Full Name</label>
+                        <input name="full_name" id="full_name" type="text">
+                    </div>
+                    
+                    <div class="item">
+                        <label for="email">E-mail Address</label>
+                        <input name="email" id="email" type="text">
+                    </div>
+                    
+                    <h3>Contributions</h3>
+                    
+                    <div class="item">
+                        <p>
+                            Please list references to your contributions,
+                            i.e. BugZilla, Mailing Lists, commits or people to vouch for you. If
+                            you are a new applicant, it's definitely a great plus putting
+                            the name of a few contacts within the community that could vouch for
+                            you and your work for the GNOME Foundation (existing Foundation
+                            members preferred).
+                        </p>
+                        <textarea name="summary"></textarea>
+                    </div>
+                    
+                    <h3>Previous Foundation participation</h3>
+                    
+                    <div class="item">
+                        <p>
+                            Please tell us whether you were an existing 
+                            Foundation member or have done someting relevant for the GNOME 
+                            Foundation in the past (i.e Board Member etc.)
+                        </p>
+                        <textarea name="previous_participation"></textarea>
+                    </div>
+                    
+                    <hr />
+                    
+                    <div class="item" style="text-align: center;">
+                        <span>Please type ânot spamâ here:</span> <input type="text" name="not_spam">
+                    </div>
+                    
+                    <div class="submit_area">
+                        <button name="submit" type="submit" class="action_button">Submit Application</button>
+                    </div>
+                    
+                </form>
+                
+                <br />
+                <div class="clear"></div>
+            </div>
+            
+            <?php require_once("footer_art.php"); ?>
+        </div>
+    </div>
+    
+    <div class="clearfix"></div>
+    
+    <?php require_once("footer.php"); ?>
+</body>
+</html>
diff --git a/theme/page-members.php b/theme/page-membership.php
similarity index 100%
rename from theme/page-members.php
rename to theme/page-membership.php



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]