vishwamano

source of vishwamano.com
git clone git://git.ricketyspace.net/vishwamano.git
Log | Files | Refs

commit b72adb97c10769e58914f218fab513e6a9d545bb
parent 60de1b22249074876b7774b91e3034d2937740f7
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Sat, 27 Jul 2013 09:32:15 +0530

updated as/ : added new course (advanced level 2) with details + registration

affected files:
	  as/index.html
      as/reg-handler.php

Diffstat:
as/index.html | 430+++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------
as/reg-handler.php | 22+++++++++++++++-------
2 files changed, 316 insertions(+), 136 deletions(-)

diff --git a/as/index.html b/as/index.html @@ -24,147 +24,319 @@ </div> </div> - <div class="container-fluid"> <div class="row-fluid"> - <div class="offset1 span3"> - <img src="/as/as1.jpg" class="img-polaroid" alt="[ Vishwa Teaching ]"/> - <img src="/as/as2.jpg" class="img-polaroid" alt="[ Students Listening ]"/> - <img src="/as/as3.jpg" class="img-polaroid" alt="[ Beach Class ]"/> - </div> - <div class="offset1 span7"> - <h2> Photography Classes </h2> + <div class="span12"> + <h1> + Photography Classes + </h1> <p> '<strong>Apertures and Shutters</strong>' is my start up, offering <strong>Basic Weekend Photography Classes </strong>. With extensive theory, guided outdoor and - review sessions, a complete enlightenment in photography is + review snessions, a complete enlightenment in photography is assured. I strongly believe that Photography is an Art, not merely technical settings and hence the classes will be taught in a practical and dynamic manner. </p> - <p> - <strong>Course Details - Level 1 Basic - Weekend Photography Course </strong> </p> - - <dl> - <dt> - <span class="label label-inverse"> - <i class="icon-calendar icon-white"></i> - Duration - </span> - </dt> - <dd> Five Sunday Evenings: Four Theory Sessions (Each - Session 3 Hours), Two Practical Sessions and One Field - Session. </dd> - - <dt> - <span class="label label-inverse"> - <i class="icon-shopping-cart icon-white"></i> - Course Fee - </span> - </dt> - <dd> <span class="WebRupee">Rs </span> 2500 (Only 10 - students per batch).</dd> - - <dt> - <span class="label label-inverse"> - <i class="icon-tasks icon-white"></i> - Eligibility - </span> - </dt> - <dd> A never ending thirst for photography. <br /> - Possession of a camera is a must, preferably a DSLR. - </dd> - - <dt> - <span class="label label-inverse"> - <i class="icon-book icon-white"></i> - Syllabus - </span> - </dt> - <dd> - <ul> - <li>The 'Art Of Seeing' The World Around You</li> - <li>What To Shoot? Why To Shoot? </li> - <li>Knowing Your Camera </li> - <li>Types Of Lenses And Their Uses </li> - <li>The Exposure Triangle - Aperture, Shutter and ISO</li> - <li>Shooting Modes, Metering Modes, Autofocus Types, White Balance, etc </li> - <li>Exposure Compensation </li> - <li>How To Create A Photograph</li> - <li>Golden Rules Of Composition</li> - <li>Understanding Light</li> - <li>Filters And Their Uses</li> - <li>How To Click Beautiful Landscape And Nature Pictures</li> - <li>How To Click People</li> - <li>How To Take Creative Photographs</li> - <li>Photographing The Night And Other Long Exposure Techniques</li> - <li>Basic Photoshop Correction</li> - </ul> - </dd> - </dl> - <p> - <a class="btn btn-inverse btn-large" href="#regnow" role="button" data-toggle="modal"> - <i class="icon-chevron-right icon-white"></i> - Register Now - </a> - </p> - <!-- Modal --> - <div id="regnow" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="RegisterNow" aria-hidden="true"> - <div class="modal-header"> - <h3 id="RegisterNow">Photography Class Registration</h3> + <div class="row-fluid"> <!-- img row --> + <div class="offset2 span2"> + <img src="/as/as1.jpg" class="img-polaroid" alt="[ Vishwa Teaching ]"/> </div> - <div class="modal-body"> - <form class="form-horizontal" id="reg-form" method="POST" action="/as/reg-handler.php"> - <fieldset> - <div class="control-group"> - <label class="control-label" for="name">Name</label> - <div class="controls"> - <input type="text" id="name" name="name" placeholder="Spock" required> - </div> - </div> - <div class="control-group"> - <label class="control-label" for="email">Email</label> - <div class="controls"> - <input type="email" id="email" name="email" placeholder="spock@cyb.org" required> - </div> - </div> - <div class="control-group"> - <label class="control-label" for="phone">Phone Number</label> - <div class="controls"> - <input type="tel" id="phone" name="phone" placeholder="31-4159-2653"> - </div> - </div> - <div class="control-group"> - <label class="control-label" for="blurb"> Tell us about yourself </label> - <div class="controls"> - <textarea id="blurb" name="blurb" rows="3" - placeholder="Blurb" required></textarea> - </div> - </div> - <div class="control-group"> - <label class="control-label" for="humantest"> What is 100 + 1 ?</label> - <div class="controls"> - <input type="text" id="humantest" name="humantest" placeholder="Prove that you're not a bot." required> - </div> - </div> - <div class="control-group"> - <div class="controls"> - <button class="btn btn-inverse" type="submit" value="Submit" - form="reg-form" aria-hidden="true"> - <i class="icon-cog icon-white"></i> - Register - </button> - </div> - </div> - </fieldset> - </form> + <div class="offset1 span2"> + <img src="/as/as2.jpg" class="img-polaroid" alt="[ Students Listening ]"/> </div> - </div> - </div> - </div> - </div> + <div class="offset1 span2"> + <img src="/as/as3.jpg" class="img-polaroid" alt="[ Beach Class ]"/> + </div> + <div class="offset2"> + </div> + </div> <!-- end img row --> + + <div class="row-fluid"> <!-- course row --> + <div class="offset1 span5"> <!-- course level 1 column --> + <h2> + Course Details - Level 1 + <small> + Basic Weekend Photography Course + </small> + </h2> + + <dl> + <dt> + <span class="label label-inverse"> + <i class="icon-calendar icon-white"></i> + Duration + </span> + </dt> + <dd> Five Sunday Evenings: Four Theory Sessions (Each + Session 3 Hours), Two Practical Sessions and One Field + Session. + </dd> + + <dt> + <span class="label label-inverse"> + <i class="icon-shopping-cart icon-white"></i> + Course Fee + </span> + </dt> + <dd> + <span class="WebRupee"> + Rs + </span> + 2500 (Only 10 students per batch). + </dd> + + <dt> + <span class="label label-inverse"> + <i class="icon-tasks icon-white"></i> + Eligibility + </span> + </dt> + <dd> + A never ending thirst for photography. <br /> + Possession of a camera is a must, preferably a DSLR. + </dd> + + <dt> + <span class="label label-inverse"> + <i class="icon-book icon-white"></i> + Syllabus + </span> + </dt> + <dd> + <ul> + <li>The 'Art Of Seeing' The World Around You</li> + <li>What To Shoot? Why To Shoot? </li> + <li>Knowing Your Camera </li> + <li>Types Of Lenses And Their Uses </li> + <li>The Exposure Triangle - Aperture, Shutter and ISO</li> + <li>Shooting Modes, Metering Modes, Autofocus Types, White Balance, etc </li> + <li>Exposure Compensation </li> + <li>How To Create A Photograph</li> + <li>Golden Rules Of Composition</li> + <li>Understanding Light</li> + <li>Filters And Their Uses</li> + <li>How To Click Beautiful Landscape And Nature Pictures</li> + <li>How To Click People</li> + <li>How To Take Creative Photographs</li> + <li>Photographing The Night And Other Long Exposure Techniques</li> + <li>Basic Photoshop Correction</li> + </ul> + </dd> + </dl> + + <p class="text-center"> + <a class="btn btn-inverse btn-large" href="#reg-level1" role="button" data-toggle="modal"> + <i class="icon-chevron-right icon-white"></i> + Register Now + </a> + </p> + + <!-- Registration Level 1 Modal --> + <div id="reg-level1" class="modal hide fade" tabindex="-1" + role="dialog" aria-labelledby="RegisterLevel1" aria-hidden="true"> + <div class="modal-header"> + <h3 id="RegisterLevel1">Photography Class Registration - Level 1 </h3> + </div> + <div class="modal-body"> + <form class="form-horizontal" id="reg-form-level1" method="POST" action="/as/reg-handler.php"> + <fieldset> + + <div class="control-group"> + <label class="control-label" for="name-l1">Name</label> + <div class="controls"> + <input type="text" id="name-l1" name="name" placeholder="Spock" required> + </div> + </div> + + <div class="control-group"> + <label class="control-label" for="email-l1">Email</label> + <div class="controls"> + <input type="email" id="email-l1" name="email" placeholder="spock@cyb.org" required> + </div> + </div> + + <div class="control-group"> + <label class="control-label" for="phone-l1">Phone Number</label> + <div class="controls"> + <input type="tel" id="phone-l1" name="phone" placeholder="31-4159-2653"> + </div> + </div> + + <div class="control-group"> + <label class="control-label" for="blurb-l1"> Tell us about yourself </label> + <div class="controls"> + <textarea id="blurb-l1" name="blurb" rows="3" + placeholder="Blurb" required></textarea> + </div> + </div> + + <div class="control-group"> + <label class="control-label" for="humantest-l1"> What is 100 + 1 ?</label> + <div class="controls"> + <input type="text" id="humantest-l1" name="humantest" + placeholder="Prove that you're not a bot." required> + </div> + </div> + + <div class="control-group"> + <div class="controls"> + <button class="btn btn-inverse" type="submit" + name="submit" value="submit-l1" + form="reg-form-level1" aria-hidden="true"> + <i class="icon-cog icon-white"></i> + Register + </button> + </div> + </div> + + </fieldset> + </form> + </div> + </div> <!-- end Registration Level 1 Modal --> + </div> <!-- end course level 1 column --> + + <div class="offset1 span5"> <!-- course level 2 column --> + + <h2> + Course Details - Level 2 + <small > Advanced Weekend Photography Course </small> + </h2> + + <dl> + <dt> + <span class="label label-inverse"> + <i class="icon-calendar icon-white"></i> + Duration + </span> + </dt> + <dd> + 2 Months (8 Sessions) + </dd> + + <dt> + <span class="label label-inverse"> + <i class="icon-shopping-cart icon-white"></i> + Course Fee + </span> + </dt> + <dd> + <span class="WebRupee"> + Rs + </span> + 5000 (Only 10 students per batch). + </dd> + + <dt> + <span class="label label-inverse"> + <i class="icon-tasks icon-white"></i> + Eligibility + </span> + </dt> + <dd> + <strong>Level 1</strong> completion in A&amp;S or any equivalent course. <br /> + Possession of a DSLR is a must. + </dd> + + <dt> + <span class="label label-inverse"> + <i class="icon-book icon-white"></i> + Syllabus + </span> + </dt> + <dd> + <ul> + <li> Lighting Foundation + <li> Types of Lighting </li> + <li> Lighting for Still Life - Strobist Session </li> + <li> Portrait and Fashion - Studio Session </li> + <li> Portrait - Strobist Session </li> + <li> Light Mixing </li> + <li> Macro Photography in Depth </li> + <li> HDR, Panoramas, Time Lapses, etc. </li> + <li> Shooting in RAW </li> + <li> All relevant Post Processing </li> + </ul> + </dd> + </dl> + + <p class="text-center"> + <a class="btn btn-inverse btn-large" href="#reg-level2" role="button" data-toggle="modal"> + <i class="icon-chevron-right icon-white"></i> + Register Now + </a> + </p> + + <!-- Registration Level 2 Modal --> + <div id="reg-level2" class="modal hide fade" tabindex="-1" + role="dialog" aria-labelledby="RegisterLevel2" aria-hidden="true"> + + <div class="modal-header"> + <h3 id="RegisterLevel2">Photography Class Registration - Level 2</h3> + </div> + + <div class="modal-body"> + + <form class="form-horizontal" id="reg-form-level2" method="POST" action="/as/reg-handler.php"> + <fieldset> + + <div class="control-group"> + <label class="control-label" for="name-l2">Name</label> + <div class="controls"> + <input type="text" id="name-l2" name="name" placeholder="Spock" required> + </div> + </div> + + <div class="control-group"> + <label class="control-label" for="email-l2">Email</label> + <div class="controls"> + <input type="email" id="email-l2" name="email" placeholder="spock@cyb.org" required> + </div> + </div> + + <div class="control-group"> + <label class="control-label" for="phone-l2">Phone Number</label> + <div class="controls"> + <input type="tel" id="phone-l2" name="phone" placeholder="31-4159-2653"> + </div> + </div> + + <div class="control-group"> + <label class="control-label" for="blurb-l2"> Tell us about yourself </label> + <div class="controls"> + <textarea id="blurb-l2" name="blurb" rows="3" + placeholder="Blurb" required></textarea> + </div> + </div> + + <div class="control-group"> + <label class="control-label" for="humantest-l2"> What is 100 + 1 ?</label> + <div class="controls"> + <input type="text" id="humantest-l2" + name="humantest" placeholder="Prove that you're not a bot." required> + </div> + </div> + + <div class="control-group"> + <div class="controls"> + <button class="btn btn-inverse" type="submit" + name="submit" value="submit-l2" + form="reg-form-level2" aria-hidden="true"> + <i class="icon-cog icon-white"></i> + Register + </button> + </div> + </div> + </fieldset> + </form> + </div> + </div> <!-- end Registration Level 2 Modal --> + </div> <!-- end course level 2 column --> + </div> <!-- end course row --> + </div> <!-- end span --> + </div> <!-- end row --> + </div> <!-- end container --> <!-- start share buttons --> <div class="container-fluid"> diff --git a/as/reg-handler.php b/as/reg-handler.php @@ -8,11 +8,12 @@ $myemail = 'vishwa91photography@gmail.com'; -$name = $_POST['name']; -$email_address = $_POST['email']; -$phone = $_POST['phone']; -$blurb = $_POST['blurb']; -$humantest = $_POST['humantest']; +$name = $_POST['name']; +$email_address = $_POST['email']; +$phone = $_POST['phone']; +$blurb = $_POST['blurb']; +$humantest = $_POST['humantest']; +$submit = $_POST['submit']; $humantest_answer= "101"; @@ -25,10 +26,17 @@ if(strcmp($humantest, $humantest_answer)==0) header('Location: /as/reg-error.html'); return; } + + if(strcmp($submit, "submit-l1") == 0) { + $course = "Basic Level 1"; + }else { + $course = "Advanced Level 2"; + } + $to = $myemail; - $email_subject = "[VishaMano.com] A&S Registration from $name"; + $email_subject = "[VishaMano.com] A&S ". $course. " Registration from $name"; - $email_body = "$name <$email_address> has registered for the A&S Basic Level 1 Weekend Photography Course \n\n". + $email_body = "$name <$email_address> has registered for the A&S ". $course. " Weekend Photography Course. \n\n". "About $name:\n\n $blurb"; if(!empty($phone)) {