Advertisement
Guest User

form.phtml

a guest
Jan 29th, 2015
1,248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.83 KB | None | 0 0
  1. <?php
  2. /**
  3. * Magento
  4. *
  5. * NOTICE OF LICENSE
  6. *
  7. * This source file is subject to the Academic Free License (AFL 3.0)
  8. * that is bundled with this package in the file LICENSE_AFL.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://opensource.org/licenses/afl-3.0.php
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@magentocommerce.com so we can send you a copy immediately.
  14. *
  15. * DISCLAIMER
  16. *
  17. * Do not edit or add to this file if you wish to upgrade Magento to newer
  18. * versions in the future. If you wish to customize Magento for your
  19. * needs please refer to http://www.magentocommerce.com for more information.
  20. *
  21. * @category design
  22. * @package base_default
  23. * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
  24. * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
  25. */
  26. ?>
  27. <div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
  28. <div class="page-title">
  29. <h1><?php echo Mage::helper('contacts')->__('Contact Us') ?></h1>
  30. </div>
  31. <form action="<?php echo $this->getFormAction(); ?>" id="contactForm" method="post">
  32. <div class="fieldset">
  33. <h2 class="legend"><?php echo Mage::helper('contacts')->__('Contact Information') ?></h2>
  34. <ul class="form-list">
  35. <li class="fields">
  36. <div class="field">
  37. <label for="name" class="required"><em>*</em><?php echo Mage::helper('contacts')->__('Name') ?></label>
  38. <div class="input-box">
  39. <input name="name" id="name" title="<?php echo Mage::helper('contacts')->__('Name') ?>" value="<?php echo $this->escapeHtml($this->helper('contacts')->getUserName()) ?>" class="input-text required-entry" type="text" />
  40. </div>
  41. </div>
  42. <div class="field">
  43. <label for="email" class="required"><em>*</em><?php echo Mage::helper('contacts')->__('Email') ?></label>
  44. <div class="input-box">
  45. <input name="email" id="email" title="<?php echo Mage::helper('contacts')->__('Email') ?>" value="<?php echo $this->escapeHtml($this->helper('contacts')->getUserEmail()) ?>" class="input-text required-entry validate-email" type="text" />
  46. </div>
  47. </div>
  48. </li>
  49. <li>
  50. <label for="telephone"><?php echo Mage::helper('contacts')->__('Telephone') ?></label>
  51. <div class="input-box">
  52. <input name="telephone" id="telephone" title="<?php echo Mage::helper('contacts')->__('Telephone') ?>" value="" class="input-text" type="text" />
  53. </div>
  54. </li>
  55. <li class="wide">
  56. <label for="comment" class="required"><em>*</em><?php echo Mage::helper('contacts')->__('Comment') ?></label>
  57. <div class="input-box">
  58. <textarea name="comment" id="comment" title="<?php echo Mage::helper('contacts')->__('Comment') ?>" class="required-entry input-text" cols="5" rows="3"></textarea>
  59. </div>
  60. </li>
  61. </ul>
  62. </div>
  63. <div class="buttons-set">
  64. <p class="required"><?php echo Mage::helper('contacts')->__('* Required Fields') ?></p>
  65. <input type="text" name="hideit" id="hideit" value="" style="display:none !important;" />
  66. <button type="submit" title="<?php echo Mage::helper('contacts')->__('Submit') ?>" class="button"><span><span><?php echo Mage::helper('contacts')->__('Submit') ?></span></span></button>
  67. </div>
  68. </form>
  69. <script type="text/javascript">
  70. //<![CDATA[
  71. var contactForm = new VarienForm('contactForm', true);
  72. //]]>
  73. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement