vishwamano

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

commit 736e425cc4c7033635486cb795626ae35b5578b7
parent 5712a82bb3529c885d4c47d9592e7bcd74e82cdb
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Sat, 27 Jul 2013 21:38:30 +0530

as/ new section 'Photography Services' + layou redesigned + handler for 'shoot request'

Diffstat:
as/index.html | 663+++++++++++++++++++++++++++++++++++++++++++++++--------------------------------
as/req-error.html | 68++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
as/req-sent.html | 67+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
as/reqsht-handler.php | 51+++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 581 insertions(+), 268 deletions(-)

diff --git a/as/index.html b/as/index.html @@ -26,156 +26,102 @@ <div class="container-fluid"> <div class="row-fluid"> - <div class="span12"> - <h1> - Photography Classes + <div class="span6"> + <h1> + Photography Services </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 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> - <div class="row-fluid"> <!-- img row --> - <div class="offset2 span2"> - <img src="/as/as1.jpg" class="img-polaroid" alt="[ Vishwa Teaching ]"/> - </div> - <div class="offset1 span2"> - <img src="/as/as2.jpg" class="img-polaroid" alt="[ Students Listening ]"/> - </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 --> + <dl> + <dt> + <span class="label label-inverse"> + <i class="icon-briefcase icon-white"></i> + Services + </span> + </dt> + <dd> + <ul> + <li>Single, Couple & Family Portraitures</li> + <li>Fashion / Portfolio</li> + <li>Product / Advertising</li> + <li>Industrial / Architectural</li> + </ul> + </dd> + </dl> - <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> + <p class="text-center"> + <a class="btn btn-inverse btn-large" href="#req-shoot" role="button" data-toggle="modal"> + <i class="icon-chevron-right icon-white"></i> + Request a Shoot + </a> + </p> + <!-- Request Shoot Modal --> + <div id="req-shoot" class="modal hide fade" tabindex="-1" + role="dialog" aria-labelledby="RequestShoot" aria-hidden="true"> - <!-- 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="modal-header"> + <h3 id="RequestShoot"> + Services - Request a Shoot + </h3> + </div> + <div class="modal-body"> + <form class="form-horizontal" id="reqshoot-form" method="POST" action="/as/reqsht-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="name-rs">Name</label> + <div class="controls"> + <input type="text" id="name-rs" 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="email-rs">Email</label> + <div class="controls"> + <input type="email" id="email-rs" 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="phone-rs">Phone Number</label> + <div class="controls"> + <input type="tel" id="phone-rs" name="phone" placeholder="31-4159-2653"> + </div> + </div> <div class="control-group"> - <label class="control-label" for="blurb-l1"> Tell us about yourself </label> + <label class="control-label"> Type of Shoot </label> <div class="controls"> - <textarea id="blurb-l1" name="blurb" rows="3" - placeholder="Blurb" required></textarea> + <label class="radio"> + <input type="radio" name="shoot_type" id="portraitures" + value="Single, Couple & Family Portraitures" + required> + Single, Couple & Family Portraitures + </label> + <label class="radio"> + <input type="radio" name="shoot_type" id="portfolio" + value="Fashion / Portfolio" + required> + Fashion / Portfolio + </label> + <label class="radio"> + <input type="radio" name="shoot_type" id="advertising" + value="Product / Advertising" + required> + Product / Advertising + </label> + <label class="radio"> + <input type="radio" name="shoot_type" id="architecture" + value="Single, Couple & Family Portraitures" + required> + Single, Couple & Family Portraitures + </label> </div> </div> <div class="control-group"> - <label class="control-label" for="humantest-l1"> What is 100 + 1 ?</label> + <label class="control-label" for="humantest-rs"> What is 98 + 1 ?</label> <div class="controls"> - <input type="text" id="humantest-l1" name="humantest" + <input type="text" id="humantest-rs" name="humantest" placeholder="Prove that you're not a bot." required> </div> </div> @@ -184,9 +130,9 @@ <div class="controls"> <button class="btn btn-inverse" type="submit" name="submit" value="submit-l1" - form="reg-form-level1" aria-hidden="true"> + form="reqshoot-form" aria-hidden="true"> <i class="icon-cog icon-white"></i> - Register + Request </button> </div> </div> @@ -194,146 +140,327 @@ </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> + </div> <!-- end Request Shoot Modal --> + </div> <!-- end Request Shoot column --> + <div class="span6"> + <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 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 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="row-fluid"> <!-- img row --> + <div class="span3"> + <img src="/as/as1.jpg" class="img-polaroid" alt="[ Vishwa Teaching ]"/> + </div> + <div class="offset1 span3"> + <img src="/as/as2.jpg" class="img-polaroid" alt="[ Students Listening ]"/> + </div> + <div class="offset1 span3"> + <img src="/as/as3.jpg" class="img-polaroid" alt="[ Beach Class ]"/> + </div> + </div> <!-- end img row --> - <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 class="row-fluid"> <!-- course row --> + <div class="span12"> + <div class="accordion" id="pc-level1"> + <div class="accordion-group"> + <div class="accordion-heading"> + <a class="accordion-toggle" data-toggle="collapse" + data-parent="#pc-level1" href="#pc-level1-det"> + <h2>Course Details - Level 1 + <small>Basic Weekend Photography Course </small></h2> + </a> + </div> + <div id="pc-level1-det" class="accordion-body collapse"> + <div class="accordion-inner"> + <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> + <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="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-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> + </div> + </div> <!-- end accordion group 1 --> + + <div class="accordion-group"> + <div class="accordion-heading"> + <a class="accordion-toggle" data-toggle="collapse" + data-parent="#pc-level2" href="#pc-level2-det"> + <h2>Course Details - Level 2 + <small>Advanced Weekend Photography Course </small></h2> + </a> + </div> + <div id="pc-level2-det" class="accordion-body collapse"> + <div class="accordion-inner"> + <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> - <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> + <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> - <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> + <!-- Registration Level 2 Modal --> + <div id="reg-level2" class="modal hide fade" tabindex="-1" + role="dialog" aria-labelledby="RegisterLevel2" aria-hidden="true"> - <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 class="modal-header"> + <h3 id="RegisterLevel2">Photography Class Registration - Level 2</h3> </div> - </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"> - <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 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> + </div> + </div> <!-- end accordion group 2 --> + </div> <!-- end of pc accordion --> + </div> <!-- end course column --> + </div> <!-- end course row --> </div> <!-- end span --> </div> <!-- end row --> </div> <!-- end container --> diff --git a/as/req-error.html b/as/req-error.html @@ -0,0 +1,68 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <title> Message Handler - Vishwa Manoharan Photography </title> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link href="/css/bootstrap.min.css" rel="stylesheet" media="screen"> + <link href="/css/bootstrap-lightbox.min.css" rel="stylesheet" media="screen"> + <link href="/css/custom.css" rel="stylesheet" media="screen"> +</head> +<body> + <div class="container-fluid"> + <div class="navbar navbar-inverse"> + <div class="navbar-inner"> + <a class="brand" href="/">Vishwa Manoharan Photography</a> + <ul class="nav pull-right"> + <li><a href="/">Home</a></li> + <li><a href="/gallery/"> Gallery </a></li> + <li><a href="/as/"> Apertures & Shutters</a></li> + <li><a href="/bio/"> Bio </a></li> + <li><a href="/contact/"> Contact </a></li> + </ul> + </div> + </div> + </div> + + <div class="container-fluid"> + <div class="row-fluid"> + <div class="offset3 span6"> + <div class="alert alert-error"> + <strong>Photo Request Error!</strong> You've either failed + the human test or you've not filled the fields properly. + </div> + <p class="text-center"> + <a class="btn btn-mini btn-inverse" href="/as/"> + <i class="icon-chevron-left icon-white"></i> + Back + </a> + </p> + </div> + + </div> + </div> + + <footer class="footer"> + <div class="container-fluid"> + <p> + Copyright &copy; 2013 + <a href="http://vishwamano.com/" property="cc:attributionName" + rel="cc:attributionURL"> + Vishwa Manoharan. + </a> + <a href="http://creativecommons.org/licenses/by-nc-nd/3.0/deed.en_US"> + <img alt="Creative Commons License" style="border-width:0" src="/img/cc.png" /> + </a> + </p> + <ul class="footer-links"> + <li class="muted"> &middot; </li> + <li> <a href="/colophon/"> Colophon </a> </li> + <li class="muted"> &middot; </li> + </ul> + </div> + </footer> + <script src="/js/jquery-1.10.0.min.js"></script> + <script src="/js/bootstrap.min.js"></script> + <script src="/js/bootstrap-lightbox.min.js"></script> +</body> +</html> diff --git a/as/req-sent.html b/as/req-sent.html @@ -0,0 +1,67 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link href="/css/bootstrap.min.css" rel="stylesheet" media="screen"> + <link href="/css/bootstrap-lightbox.min.css" rel="stylesheet" media="screen"> + <link href="/css/custom.css" rel="stylesheet" media="screen"> + <title> Vishwa Manoharan Photography </title> +</head> +<body> + <div class="container-fluid"> + <div class="navbar navbar-inverse"> + <div class="navbar-inner"> + <a class="brand" href="/">Vishwa Manoharan Photography</a> + <ul class="nav pull-right"> + <li><a href="/">Home</a></li> + <li><a href="/gallery/"> Gallery </a></li> + <li><a href="/as/"> Apertures & Shutters</a></li> + <li><a href="/bio/"> Bio </a></li> + <li><a href="/contact/"> Contact </a></li> + </ul> + </div> + </div> + </div> + + <div class="container-fluid"> + <div class="row-fluid"> + <div class="offset3 span6"> + <div class="alert alert-success"> + <strong>Photo Shoot Requested</strong> + Vishwa Manoharan will get back to you soon. + </div> + <p class="text-center"> + <a class="btn btn-mini btn-inverse" href="/"> + <i class="icon-home icon-white"></i> + Home + </a> + </p> + </div> + </div> + </div> + + <footer class="footer"> + <div class="container-fluid"> + <p> + Copyright &copy; 2013 + <a href="http://vishwamano.com/" property="cc:attributionName" + rel="cc:attributionURL"> + Vishwa Manoharan. + </a> + <a href="http://creativecommons.org/licenses/by-nc-nd/3.0/deed.en_US"> + <img alt="Creative Commons License" style="border-width:0" src="/img/cc.png" /> + </a> + </p> + <ul class="footer-links"> + <li class="muted"> &middot; </li> + <li> <a href="/colophon/"> Colophon </a> </li> + <li class="muted"> &middot; </li> + </ul> + </div> + </footer> + <script src="/js/jquery-1.10.0.min.js"></script> + <script src="/js/bootstrap.min.js"></script> + <script src="/js/bootstrap-lightbox.min.js"></script> +</body> +</html> diff --git a/as/reqsht-handler.php b/as/reqsht-handler.php @@ -0,0 +1,51 @@ +<?php + +/** + * + * Wrote with help from HTML Form Guide <http://www.html-form-guide.com/contact-form> + * + */ + +$myemail = 'vishwa91photography@gmail.com'; + +$name = $_POST['name']; +$email_address = $_POST['email']; +$phone = $_POST['phone']; +$shoot_t = $_POST['shoot_type']; +$humantest = $_POST['humantest']; +$submit = $_POST['submit']; + +$humantest_answer= "99"; + +if(strcmp($humantest, $humantest_answer)==0) +{ + if(empty($name) || + empty($email_address) || + empty($shoot_t)) { + // redirect to the mesg-error page + header('Location: /as/req-error.html'); + return; + } + + $to = $myemail; + $email_subject = "[VishaMano.com] A&S Shoot Request from $name"; + + $email_body = "$name <$email_address> has requested for A&S Photo Shoot. \n\n". + "Type of Shoot: $shoot_t"; + + if(!empty($phone)) { + $email_body .= "\n\n $name can be buzzed at $phone"; + } + + $headers = "From: no-reply@vishwamano.com\n"; + $headers .= "Reply-To: $email_address"; + + mail($to,$email_subject,$email_body,$headers); + //redirect to mesg-sent page + header('Location: /as/req-sent.html'); +} +else { + // redirect to the mesg-error page + header('Location: /as/req-error.html'); +} +?>