Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="Myaccountleft"> </div>
- <script type="text/javascript">
- function opentext(){
- if(document.getElementById('title').value=="Other"){
- document.getElementById('othertextbox').style.display="block";
- document.getElementById('othertitle').focus();
- }else{
- document.getElementById('othertextbox').style.display="none";
- }
- }
- </script>
- <form action="<?php echo $this->getUrl('askpharmacist/index/post'); ?>" id="askpharmacist" method="post">
- <div class="Rightpart">
- <div class="Border">
- <?php
- if(Mage::getSingleton('customer/session')->isLoggedIn())//if logged in
- {
- $customerAddressId = Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling();
- $address = Mage::getModel('customer/address')->load($customerAddressId)->getData();
- $customerPrefix = Mage::helper('customer')->getCustomer()->getData('prefix');
- $customer_f_Name = Mage::helper('customer')->getCustomer()->getData('firstname');
- $customer_email = Mage::helper('customer')->getCustomer()->getData('email');
- $customer_l_Name = Mage::helper('customer')->getCustomer()->getData('lastname');
- $customer_mphone = Mage::helper('customer')->getCustomer()->getData('mphone');
- $customer_buildingname = Mage::helper('customer')->getCustomer()->getData('buildingname');
- }
- ?>
- <?php echo $_SESSION['askpharmasuccess']; ?>
- <h1>Ask your Pharmacist</h1>
- <p class="PaddT8">If you would like to ask the SureCalm Pharmacist a question on your health or
- medication and receive a response via e-mail please complete the form below.</p>
- <p class="PaddT8">If you would prefer to talk to the Pharmacist please request a call back using the
- <a href="<?php echo $this->getUrl('callback');?>" class="private_tab">Request a Call Back</a> form or call the Pharmacy on freephone 0800 023 2558.</p>
- </div>
- <div class="Personalinf">
- <div class="floatR"><span class="Startcolor">*</span> Required Fields</div>
- <p class="personalinf">Personal information</p>
- <div class="inputbox">
- <p class="textcolor">Title<span class="Startcolor">*</span></p>
- <p>
- <select class="selectbox required-entry" tabindex="1" name="title" id="title" onchange="javascript:opentext();">
- <option value="">select title</option>
- <option value="Mr" <?php if($customerPrefix=='Mr'){?> selected="selected" <?php } ?>>Mr</option>
- <option value="Miss" <?php if($customerPrefix=='Miss'){?> selected="selected" <?php } ?>>Miss</option>
- <option value="Ms" <?php if($customerPrefix=='Ms'){?> selected="selected" <?php } ?>>Ms</option>
- <option value="Mrs" <?php if($customerPrefix=='Mrs'){?> selected="selected" <?php } ?>>Mrs</option>
- <option value="Dr" <?php if($customerPrefix=='Dr'){?> selected="selected" <?php } ?>>Dr</option>
- <option value="Rev" <?php if($customerPrefix=='Rev'){?> selected="selected" <?php } ?>>Rev</option>
- <option value="Other" <?php if($customerPrefix=='Other'){?> selected="selected" <?php } ?>>Other</option>
- </select>
- </p>
- </div>
- <div class="inputbox1">
- <p class="textcolor">Email address<span class="Startcolor">*</span></p>
- <p>
- <input name="email" id="email" type="text" tabindex="4" value="<?php echo $customer_email ?>" class="inutetext required-entry" />
- </p>
- </div>
- <div class="inputbox">
- <p class="textcolor">First Name<span class="Startcolor">*</span></p>
- <p>
- <input name="name" id="name" tabindex="2" value="<?php echo $customer_f_Name ?>" type="text" class="inutetext required-entry" />
- </p>
- </div>
- <div class="inputbox1">
- <p class="textcolor">Re-type email address<span class="Startcolor">*</span></p>
- <p>
- <input name="cemail" id="cemail" type="text" tabindex="5" class="inutetext required-entry validate-cemail" />
- </p>
- </div>
- <div class="inputbox">
- <p class="textcolor">Surname<span class="Startcolor">*</span></p>
- <p>
- <input name="surname" tabindex="3" id="surname" value="<?php echo $customer_l_Name ?>" type="text" class="inutetext required-entry" />
- </p>
- </div>
- </div>
- <!--personal info finish-->
- <!--Address info starts-->
- <div class="Personalinf">
- <p class="personalinf">Address Information</p>
- <div class="inputbox">
- <p class="textcolor">Telephone</p>
- <p><input type="text" name="telephone" tabindex="6" value="<?php echo $address['telephone'] ?>" class="inutetext" /></p>
- </div>
- <div id="othertextbox" style="display:none;">
- <p>Other Title<span class="Startcolor">*</span></p>
- <div class="floatR orange"></div>
- <p>
- <input name="othertitle" id="othertitle" tabindex="2" type="text" value="<?php echo $customerPrefix ?>" class="inutetext required-entry" />
- </p>
- </div>
- <div class="inputbox1">
- <p class="textcolor"> Mobile Phone </p>
- <p>
- <input name="mphone" id="mphone" tabindex="10" value="<?php echo $customer_mphone ?>" type="text" class="inutetext" />
- </p>
- </div>
- <div class="inputbox">
- <p class="textcolor">Building name / number</p>
- <p>
- <input name="buildingname" id="buildingname" tabindex="7" value="<?php echo $customer_buildingname ?>" type="text" class="inutetext" />
- </p>
- </div>
- <div class="inputbox1">
- <p class="textcolor">Street</p>
- <p>
- <input name="street" id="street" tabindex="11" type="text" value="<?php echo $address['street'] ?>" class="inutetext" />
- </p>
- </div>
- <div class="inputbox">
- <p class="textcolor"> Town/City</p>
- <p><input name="city" id="city" tabindex="8" type="text" value="<?php echo $address['city'] ?>" class="inutetext" /></p>
- </div>
- <div class="inputbox1">
- <p class="textcolor">Postcode</p>
- <p>
- <input name="postcode" id="postcode" tabindex="12" type="text" value="<?php echo $address['postcode'] ?>" class="inutetext" /></p>
- </div>
- <div class="inputbox">
- <p class="textcolor">Country<span class="Startcolor">*</span></p>
- <p>
- <?php
- $defaultCountry = Mage::getStoreConfig('general/country/default');
- $_countries = Mage::getResourceModel('directory/country_collection')
- ->loadData()
- ->toOptionArray(false) ?>
- <?php if (count($_countries) > 0): ?>
- <select name="country" id="country" style="width:255px;" class="required-entry" tabindex="9">
- <option value="">-- Please Select --</option>
- <?php foreach($_countries as $_country): ?>
- <option value="<?php echo $_country['label'] ?>" <?php if($defaultCountry==$_country['value']) { ?> selected="selected" <?php }?> >
- <?php echo $_country['label'] ?>
- </option>
- <?php endforeach; ?>
- </select>
- <?php endif; ?>
- </p>
- </div>
- <?php /*?> <div class="inputbox">
- <!--<p class="textcolor">If you do not have an e-mail address please use the
- <a href="<?php echo $this->getUrl('callback');?>" class="private_tab">Request a Call Back</a> form or call the Pharmacy on
- freephone 0800 023 2558</p>-->
- </div><?php */?>
- </div>
- <div class="Personalinf">
- <div class="inputbox">
- <p class="textcolor">Gender<span class="Startcolor">*</span></p>
- <p>
- <input type="radio" name="gender" tabindex="12" id="gender" value="Male" /> Male <input type="radio" tabindex="13" name="gender" id="gender" value="Female" /> Female
- </p>
- </div>
- <div class="inputbox1">
- <p class="textcolor">Age (years)<span class="Startcolor">*</span></p>
- <p>
- <input name="age" id="age" type="text" tabindex="14" class="inutetext022 required-entry" />
- </p>
- </div>
- </div>
- <div class="Personalinf">
- <p class="personalinf">Your question</p>
- <div class="inputbox">
- <p class="textcolor">Nature of Query<span class="Startcolor">*</span></p>
- <p>
- <select class="selectbox required-entry" tabindex="15" name="query" id="query">
- <option value="">Select One</option>
- <option value="Medicines Information">Medicines Information</option>
- <option value="NHS Prescription">NHS Prescription</option>
- <option value="Private Prescription">Private Prescription</option>
- <option value="Admin">Admin</option>
- <option value="Health/Illness">Health/Illness</option>
- <option value="Other">Other</option>
- </select>
- </p>
- </div>
- <div class="inputaera03">
- <p>Please give full details of the nature of your enquiry</p>
- <p>
- <textarea name="query_detail" tabindex="16" id="query_detail" class="inputaera_box03"></textarea>
- </p>
- </div>
- </div>
- <div class="Personalinf">
- <p class="personalinf">Your medical status</p>
- <div class="inputaera03">
- <p class="textcolor">Are you currently taking any medication?</p>
- <p>
- <input type="radio" name="medical_status" tabindex="17" id="medical_status" value="Yes" />
- Yes
- <input type="radio" name="medical_status" tabindex="18" id="medical_status" value="No" />
- No
- </p>
- </div>
- <div class="inputaera03">
- <p>If Yes, please specify</p>
- <p><textarea name="medical_status_text" tabindex="19" id="medical_status_text" class="inputaera_box04"></textarea></p>
- </div>
- </div>
- <div class="Personalinf">
- <div class="inputaera03">
- <p class="textcolor">Have you contacted us about this before<span class="Startcolor">*</span></p>
- <p>
- <input type="radio" name="contactus_before" tabindex="20" class="validate-one-required-by-name" id="contactus_before" value="Yes" />
- Yes
- <input type="radio" name="contactus_before" tabindex="21" class="validate-one-required-by-name" id="contactus_before" value="No" />
- No
- </p>
- </div>
- </div>
- <div class="Personalinf1">
- <div class="inputbox"><p class="Fontsize"><input type="checkbox" tabindex="24" name="terms_condition" id="terms_condition" class="required-entry" />
- I accept the Terms and Conditions<span class="Startcolor">*</span></p>
- <p > <a href="<?php echo $this->getUrl('termandcondition');?>">Read our Terms and Conditions</a></p>
- </div>
- <div class="inputaera03">
- <p>Can we contact you with related information?<span class="Startcolor">*</span></p>
- <p><input type="radio" name="contact_confirmation" tabindex="22" class="validate-one-required-by-name" id="contact_confirmation" value="Yes" />
- Yes
- <input type="radio" name="contact_confirmation" tabindex="23" class="validate-one-required-by-name" id="contact_confirmation" value="No" />
- No
- </p>
- </div>
- <div class="inputaera03">
- <!-- <button type="submit" title="<?php echo Mage::helper('contacts')->__('Submit') ?>" class="button"><span><span><?php echo Mage::helper('contacts')->__('Submit') ?></span></span></button>-->
- <div class="floatR">
- <input type="reset" border="reset" value="Reset" class="Resetbutton" />
- <input type="submit" name="postbutton" tabindex="26" value="" class="regsub">
- <!--<a href="#"><img src="images/submit.jpg" border="0" /></a>--></div>
- </div>
- </div>
- </div>
- </form>
- <?php
- unset($_SESSION['askpharmasuccess']);
- ?>
- <script type="text/javascript">
- //<![CDATA[
- var contactForm = new VarienForm('askpharmacist', true);
- //]]>
- </script>
Add Comment
Please, Sign In to add comment