Version Notes
changed phtml files to comply with magento 1.8.1.0 version
the versions here after will be compatible for sure only for magento 1.8.1+
--------------------------------------------------------------------
for integrationg with versions prior to 1.8.0 the admins should use
OusourceOnlineCaptcha 2.0.4
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | OutsourceOnline_Captcha |
| Version | 2.0.6 |
| Comparing to | |
| See all releases | |
Code changes from version 2.0.5 to 2.0.6
- app/design/frontend/default/default/template/outsourceOnline/captcha/contacts.phtml +82 -78
- app/design/frontend/default/default/template/outsourceOnline/captcha/form.phtml +171 -126
- app/design/frontend/default/default/template/outsourceOnline/captcha/onepage_billing.phtml +225 -223
- app/design/frontend/default/default/template/outsourceOnline/captcha/register.phtml +195 -153
- app/design/frontend/default/default/template/outsourceOnline/captcha/send.phtml +150 -142
- package.xml +9 -6
app/design/frontend/default/default/template/outsourceOnline/captcha/contacts.phtml
CHANGED
|
@@ -1,78 +1,82 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
*
|
| 4 |
-
*
|
| 5 |
-
* NOTICE OF LICENSE
|
| 6 |
-
*
|
| 7 |
-
* This source file is subject to the
|
| 8 |
-
* that is bundled with this package in the file
|
| 9 |
-
* It is also available through the world-wide-web at this URL:
|
| 10 |
-
* http://opensource.org/licenses/
|
| 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 |
-
*
|
| 16 |
-
*
|
| 17 |
-
*
|
| 18 |
-
*
|
| 19 |
-
*
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
<
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
<
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
<div class="
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
</div>
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
<div class="input-box">
|
| 52 |
-
<
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
<
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 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) 2013 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" onSubmit="return checkOSOLCaptcha(contactForm);">
|
| 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 |
+
<?php // Captcha
|
| 63 |
+
if( !(Mage::getStoreConfig("OutsourceOnline_Captcha/captcha/when_loggedin") && (Mage::getSingleton('customer/session')->isLoggedIn())) )
|
| 64 |
+
{
|
| 65 |
+
if (Mage::getStoreConfig("OutsourceOnline_Captcha/captcha/contacts"))
|
| 66 |
+
|
| 67 |
+
echo $this->getChildHtml('captcha_ajax_part');
|
| 68 |
+
}
|
| 69 |
+
?>
|
| 70 |
+
</div>
|
| 71 |
+
|
| 72 |
+
<div class="buttons-set">
|
| 73 |
+
<p class="required"><?php echo Mage::helper('contacts')->__('* Required Fields') ?></p>
|
| 74 |
+
<input type="text" name="hideit" id="hideit" value="" style="display:none !important;" />
|
| 75 |
+
<button type="submit" title="<?php echo Mage::helper('contacts')->__('Submit') ?>" class="button"><span><span><?php echo Mage::helper('contacts')->__('Submit') ?></span></span></button>
|
| 76 |
+
</div>
|
| 77 |
+
</form>
|
| 78 |
+
<script type="text/javascript">
|
| 79 |
+
//<![CDATA[
|
| 80 |
+
var contactForm = new VarienForm('contactForm', true);
|
| 81 |
+
//]]>
|
| 82 |
+
</script>
|
app/design/frontend/default/default/template/outsourceOnline/captcha/form.phtml
CHANGED
|
@@ -1,126 +1,171 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
*
|
| 4 |
-
*
|
| 5 |
-
* NOTICE OF LICENSE
|
| 6 |
-
*
|
| 7 |
-
* This source file is subject to the
|
| 8 |
-
* that is bundled with this package in the file
|
| 9 |
-
* It is also available through the world-wide-web at this URL:
|
| 10 |
-
* http://opensource.org/licenses/
|
| 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 |
-
*
|
| 16 |
-
*
|
| 17 |
-
*
|
| 18 |
-
*
|
| 19 |
-
*
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
<
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
<
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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) 2013 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 class="form-add">
|
| 28 |
+
<h2><?php echo $this->__('Write Your Own Review') ?></h2>
|
| 29 |
+
<?php
|
| 30 |
+
//Mage_Review_Block_Form sets getAllowWriteReviewFlag based on the following
|
| 31 |
+
/*$customerSession = Mage::getSingleton('customer/session');
|
| 32 |
+
echo "isLoggedIn : ".$customerSession->isLoggedIn()."<br />";
|
| 33 |
+
echo "IsGuestAllowToWrite:".Mage::helper('review')->getIsGuestAllowToWrite()."<br />";
|
| 34 |
+
echo "AllowWriteReview : ". $this->getAllowWriteReviewFlag();*/
|
| 35 |
+
?>
|
| 36 |
+
<?php if ($this->getAllowWriteReviewFlag()): ?>
|
| 37 |
+
<form action="<?php echo $this->getAction() ?>" method="post" id="review-form" onSubmit="return checkOSOLCaptcha(dataForm);">
|
| 38 |
+
<?php echo $this->getBlockHtml('formkey'); ?>
|
| 39 |
+
<fieldset>
|
| 40 |
+
<?php echo $this->getChildHtml('form_fields_before')?>
|
| 41 |
+
<h3><?php echo $this->__("You're reviewing:"); ?> <span><?php echo $this->escapeHtml($this->getProductInfo()->getName()) ?></span></h3>
|
| 42 |
+
<?php if( $this->getRatings() && $this->getRatings()->getSize()): ?>
|
| 43 |
+
<h4><?php echo $this->__('How do you rate this product?') ?> <em class="required">*</em></h4>
|
| 44 |
+
<span id="input-message-box"></span>
|
| 45 |
+
<table class="data-table" id="product-review-table">
|
| 46 |
+
<col />
|
| 47 |
+
<col width="1" />
|
| 48 |
+
<col width="1" />
|
| 49 |
+
<col width="1" />
|
| 50 |
+
<col width="1" />
|
| 51 |
+
<col width="1" />
|
| 52 |
+
<thead>
|
| 53 |
+
<tr>
|
| 54 |
+
<th> </th>
|
| 55 |
+
<th><span class="nobr"><?php echo $this->__('1 star') ?></span></th>
|
| 56 |
+
<th><span class="nobr"><?php echo $this->__('2 stars') ?></span></th>
|
| 57 |
+
<th><span class="nobr"><?php echo $this->__('3 stars') ?></span></th>
|
| 58 |
+
<th><span class="nobr"><?php echo $this->__('4 stars') ?></span></th>
|
| 59 |
+
<th><span class="nobr"><?php echo $this->__('5 stars') ?></span></th>
|
| 60 |
+
</tr>
|
| 61 |
+
</thead>
|
| 62 |
+
<tbody>
|
| 63 |
+
<?php foreach ($this->getRatings() as $_rating): ?>
|
| 64 |
+
<tr>
|
| 65 |
+
<th><?php echo $this->escapeHtml($_rating->getRatingCode()) ?></th>
|
| 66 |
+
<?php foreach ($_rating->getOptions() as $_option): ?>
|
| 67 |
+
<td class="value"><input type="radio" name="ratings[<?php echo $_rating->getId() ?>]" id="<?php echo $this->escapeHtml($_rating->getRatingCode()) ?>_<?php echo $_option->getValue() ?>" value="<?php echo $_option->getId() ?>" class="radio" /></td>
|
| 68 |
+
<?php endforeach; ?>
|
| 69 |
+
</tr>
|
| 70 |
+
<?php endforeach; ?>
|
| 71 |
+
</tbody>
|
| 72 |
+
</table>
|
| 73 |
+
<input type="hidden" name="validate_rating" class="validate-rating" value="" />
|
| 74 |
+
<script type="text/javascript">decorateTable('product-review-table')</script>
|
| 75 |
+
<?php endif; ?>
|
| 76 |
+
<ul class="form-list">
|
| 77 |
+
<li>
|
| 78 |
+
<label for="nickname_field" class="required"><em>*</em><?php echo $this->__('Nickname') ?></label>
|
| 79 |
+
<div class="input-box">
|
| 80 |
+
<input type="text" name="nickname" id="nickname_field" class="input-text required-entry" value="<?php echo $this->escapeHtml($data->getNickname()) ?>" />
|
| 81 |
+
</div>
|
| 82 |
+
</li>
|
| 83 |
+
<li>
|
| 84 |
+
<label for="summary_field" class="required"><em>*</em><?php echo $this->__('Summary of Your Review') ?></label>
|
| 85 |
+
<div class="input-box">
|
| 86 |
+
<input type="text" name="title" id="summary_field" class="input-text required-entry" value="<?php echo $this->escapeHtml($data->getTitle()) ?>" />
|
| 87 |
+
</div>
|
| 88 |
+
</li>
|
| 89 |
+
<li>
|
| 90 |
+
<label for="review_field" class="required"><em>*</em><?php echo $this->__('Review') ?></label>
|
| 91 |
+
<div class="input-box">
|
| 92 |
+
<textarea name="detail" id="review_field" cols="5" rows="3" class="required-entry"><?php echo $this->escapeHtml($data->getDetail()) ?></textarea>
|
| 93 |
+
</div>
|
| 94 |
+
</li>
|
| 95 |
+
</ul>
|
| 96 |
+
</fieldset>
|
| 97 |
+
<?php // captcha
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
//echo $block->toHtml();
|
| 103 |
+
if( !(Mage::getStoreConfig("OutsourceOnline_Captcha/captcha/when_loggedin") && (Mage::getSingleton('customer/session')->isLoggedIn())) )
|
| 104 |
+
{
|
| 105 |
+
if (Mage::getStoreConfig("OutsourceOnline_Captcha/captcha/review"))
|
| 106 |
+
{
|
| 107 |
+
|
| 108 |
+
//echo $this->getChildHtml('captcha_ajax_part');
|
| 109 |
+
$childHTML = $this->getChildHtml('captcha_ajax_part');
|
| 110 |
+
if($childHTML != '')
|
| 111 |
+
{
|
| 112 |
+
echo $childHTML;
|
| 113 |
+
|
| 114 |
+
}
|
| 115 |
+
else
|
| 116 |
+
{
|
| 117 |
+
|
| 118 |
+
$block = $this->getLayout()->createBlock(
|
| 119 |
+
'Mage_Core_Block_Template',
|
| 120 |
+
'captcha_ajax_part',
|
| 121 |
+
array('template' => 'outsourceOnline/captcha/ajaxInsert.phtml')
|
| 122 |
+
);
|
| 123 |
+
//echo $block->toHtml();
|
| 124 |
+
}
|
| 125 |
+
}
|
| 126 |
+
}
|
| 127 |
+
?>
|
| 128 |
+
<div class="buttons-set">
|
| 129 |
+
<button type="submit" title="<?php echo $this->__('Submit Review') ?>" class="button"><span><span><?php echo $this->__('Submit Review') ?></span></span></button>
|
| 130 |
+
</div>
|
| 131 |
+
</form>
|
| 132 |
+
<script type="text/javascript">
|
| 133 |
+
//<![CDATA[
|
| 134 |
+
var dataForm = new VarienForm('review-form');
|
| 135 |
+
Validation.addAllThese(
|
| 136 |
+
[
|
| 137 |
+
['validate-rating', '<?php echo $this->__('Please select one of each of the ratings above') ?>', function(v) {
|
| 138 |
+
var trs = $('product-review-table').select('tr');
|
| 139 |
+
var inputs;
|
| 140 |
+
var error = 1;
|
| 141 |
+
|
| 142 |
+
for( var j=0; j < trs.length; j++ ) {
|
| 143 |
+
var tr = trs[j];
|
| 144 |
+
if( j > 0 ) {
|
| 145 |
+
inputs = tr.select('input');
|
| 146 |
+
|
| 147 |
+
for( i in inputs ) {
|
| 148 |
+
if( inputs[i].checked == true ) {
|
| 149 |
+
error = 0;
|
| 150 |
+
}
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
if( error == 1 ) {
|
| 154 |
+
return false;
|
| 155 |
+
} else {
|
| 156 |
+
error = 1;
|
| 157 |
+
}
|
| 158 |
+
}
|
| 159 |
+
}
|
| 160 |
+
return true;
|
| 161 |
+
}]
|
| 162 |
+
]
|
| 163 |
+
);
|
| 164 |
+
//]]>
|
| 165 |
+
</script>
|
| 166 |
+
<?php else: ?>
|
| 167 |
+
<p class="review-nologged" id="review-form">
|
| 168 |
+
<?php echo $this->__('Only registered users can write reviews. Please, <a href="%s">log in</a> or <a href="%s">register</a>', $this->getLoginLink(), Mage::helper('customer')->getRegisterUrl()) ?>
|
| 169 |
+
</p>
|
| 170 |
+
<?php endif ?>
|
| 171 |
+
</div>
|
app/design/frontend/default/default/template/outsourceOnline/captcha/onepage_billing.phtml
CHANGED
|
@@ -1,223 +1,225 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
*
|
| 4 |
-
*
|
| 5 |
-
* NOTICE OF LICENSE
|
| 6 |
-
*
|
| 7 |
-
* This source file is subject to the
|
| 8 |
-
* that is bundled with this package in the file
|
| 9 |
-
* It is also available through the world-wide-web at this URL:
|
| 10 |
-
* http://opensource.org/licenses/
|
| 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 |
-
*
|
| 16 |
-
*
|
| 17 |
-
*
|
| 18 |
-
*
|
| 19 |
-
*
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
<?php
|
| 68 |
-
<li class="
|
| 69 |
-
<div class="
|
| 70 |
-
<
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
<input type="text"
|
| 87 |
-
</div>
|
| 88 |
-
</div>
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
<?php echo $this->
|
| 101 |
-
</div>
|
| 102 |
-
</div>
|
| 103 |
-
</li>
|
| 104 |
-
<li
|
| 105 |
-
<div class="field">
|
| 106 |
-
<label for="billing:
|
| 107 |
-
<div class="input-box">
|
| 108 |
-
<input type="text" name="billing[
|
| 109 |
-
</div>
|
| 110 |
-
</div>
|
| 111 |
-
<div class="field">
|
| 112 |
-
<label for="billing:
|
| 113 |
-
<div class="input-box">
|
| 114 |
-
|
| 115 |
-
</div>
|
| 116 |
-
</div>
|
| 117 |
-
</li>
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
<div class="field">
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
<?php
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
<
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
</
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
|
|
|
|
|
| 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) 2013 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 |
+
<form id="co-billing-form" action="">
|
| 28 |
+
<fieldset>
|
| 29 |
+
<ul class="form-list">
|
| 30 |
+
<?php if ($this->customerHasAddresses()): ?>
|
| 31 |
+
<li class="wide">
|
| 32 |
+
<label for="billing-address-select"><?php echo $this->__('Select a billing address from your address book or enter a new address.') ?></label>
|
| 33 |
+
<div class="input-box">
|
| 34 |
+
<?php echo $this->getAddressesHtmlSelect('billing') ?>
|
| 35 |
+
</div>
|
| 36 |
+
</li>
|
| 37 |
+
<?php endif; ?>
|
| 38 |
+
<li id="billing-new-address-form"<?php if ($this->customerHasAddresses()): ?> style="display:none;"<?php endif; ?>>
|
| 39 |
+
<fieldset>
|
| 40 |
+
<input type="hidden" name="billing[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="billing:address_id" />
|
| 41 |
+
<ul>
|
| 42 |
+
<li class="fields"><?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress()->getFirstname() ? $this->getAddress() : $this->getQuote()->getCustomer())->setForceUseCustomerRequiredAttributes(!$this->isCustomerLoggedIn())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?></li>
|
| 43 |
+
<li class="fields">
|
| 44 |
+
<div class="field">
|
| 45 |
+
<label for="billing:company"><?php echo $this->__('Company') ?></label>
|
| 46 |
+
<div class="input-box">
|
| 47 |
+
<input type="text" id="billing:company" name="billing[company]" value="<?php echo $this->escapeHtml($this->getAddress()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('company') ?>" />
|
| 48 |
+
</div>
|
| 49 |
+
</div>
|
| 50 |
+
<?php if(!$this->isCustomerLoggedIn()): ?>
|
| 51 |
+
<div class="field">
|
| 52 |
+
<label for="billing:email" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
|
| 53 |
+
<div class="input-box">
|
| 54 |
+
<input type="text" name="billing[email]" id="billing:email" value="<?php echo $this->escapeHtml($this->getAddress()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="input-text validate-email required-entry" />
|
| 55 |
+
</div>
|
| 56 |
+
</div>
|
| 57 |
+
<?php endif; ?>
|
| 58 |
+
</li>
|
| 59 |
+
<?php $_streetValidationClass = $this->helper('customer/address')->getAttributeValidationClass('street'); ?>
|
| 60 |
+
<li class="wide">
|
| 61 |
+
<label for="billing:street1" class="required"><em>*</em><?php echo $this->__('Address') ?></label>
|
| 62 |
+
<div class="input-box">
|
| 63 |
+
<input type="text" title="<?php echo $this->__('Street Address') ?>" name="billing[street][]" id="billing:street1" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet(1)) ?>" class="input-text <?php echo $_streetValidationClass ?>" />
|
| 64 |
+
</div>
|
| 65 |
+
</li>
|
| 66 |
+
<?php $_streetValidationClass = trim(str_replace('required-entry', '', $_streetValidationClass)); ?>
|
| 67 |
+
<?php for ($_i = 2, $_n = $this->helper('customer/address')->getStreetLines(); $_i <= $_n; $_i++): ?>
|
| 68 |
+
<li class="wide">
|
| 69 |
+
<div class="input-box">
|
| 70 |
+
<input type="text" title="<?php echo $this->__('Street Address %s', $_i) ?>" name="billing[street][]" id="billing:street<?php echo $_i ?>" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet($_i)) ?>" class="input-text <?php echo $_streetValidationClass ?>" />
|
| 71 |
+
</div>
|
| 72 |
+
</li>
|
| 73 |
+
<?php endfor; ?>
|
| 74 |
+
<?php if ($this->helper('customer/address')->isVatAttributeVisible()) : ?>
|
| 75 |
+
<li class="wide">
|
| 76 |
+
<label for="billing:vat_id"><?php echo $this->__('VAT Number') ?></label>
|
| 77 |
+
<div class="input-box">
|
| 78 |
+
<input type="text" id="billing:vat_id" name="billing[vat_id]" value="<?php echo $this->escapeHtml($this->getAddress()->getVatId()) ?>" title="<?php echo $this->__('VAT Number') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('vat_id') ?>" />
|
| 79 |
+
</div>
|
| 80 |
+
</li>
|
| 81 |
+
<?php endif; ?>
|
| 82 |
+
<li class="fields">
|
| 83 |
+
<div class="field">
|
| 84 |
+
<label for="billing:city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
|
| 85 |
+
<div class="input-box">
|
| 86 |
+
<input type="text" title="<?php echo $this->__('City') ?>" name="billing[city]" value="<?php echo $this->escapeHtml($this->getAddress()->getCity()) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('city') ?>" id="billing:city" />
|
| 87 |
+
</div>
|
| 88 |
+
</div>
|
| 89 |
+
<div class="field">
|
| 90 |
+
<label for="billing:region_id" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
|
| 91 |
+
<div class="input-box">
|
| 92 |
+
<select id="billing:region_id" name="billing[region_id]" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
|
| 93 |
+
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
| 94 |
+
</select>
|
| 95 |
+
<script type="text/javascript">
|
| 96 |
+
//<![CDATA[
|
| 97 |
+
$('billing:region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
|
| 98 |
+
//]]>
|
| 99 |
+
</script>
|
| 100 |
+
<input type="text" id="billing:region" name="billing[region]" value="<?php echo $this->escapeHtml($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('region') ?>" style="display:none;" />
|
| 101 |
+
</div>
|
| 102 |
+
</div>
|
| 103 |
+
</li>
|
| 104 |
+
<li class="fields">
|
| 105 |
+
<div class="field">
|
| 106 |
+
<label for="billing:postcode" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
|
| 107 |
+
<div class="input-box">
|
| 108 |
+
<input type="text" title="<?php echo $this->__('Zip/Postal Code') ?>" name="billing[postcode]" id="billing:postcode" value="<?php echo $this->escapeHtml($this->getAddress()->getPostcode()) ?>" class="input-text validate-zip-international <?php echo $this->helper('customer/address')->getAttributeValidationClass('postcode') ?>" />
|
| 109 |
+
</div>
|
| 110 |
+
</div>
|
| 111 |
+
<div class="field">
|
| 112 |
+
<label for="billing:country_id" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
| 113 |
+
<div class="input-box">
|
| 114 |
+
<?php echo $this->getCountryHtmlSelect('billing') ?>
|
| 115 |
+
</div>
|
| 116 |
+
</div>
|
| 117 |
+
</li>
|
| 118 |
+
<li class="fields">
|
| 119 |
+
<div class="field">
|
| 120 |
+
<label for="billing:telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
|
| 121 |
+
<div class="input-box">
|
| 122 |
+
<input type="text" name="billing[telephone]" value="<?php echo $this->escapeHtml($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('telephone') ?>" id="billing:telephone" />
|
| 123 |
+
</div>
|
| 124 |
+
</div>
|
| 125 |
+
<div class="field">
|
| 126 |
+
<label for="billing:fax"><?php echo $this->__('Fax') ?></label>
|
| 127 |
+
<div class="input-box">
|
| 128 |
+
<input type="text" name="billing[fax]" value="<?php echo $this->escapeHtml($this->getAddress()->getFax()) ?>" title="<?php echo $this->__('Fax') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('fax') ?>" id="billing:fax" />
|
| 129 |
+
</div>
|
| 130 |
+
</div>
|
| 131 |
+
</li>
|
| 132 |
+
<?php if(!$this->isCustomerLoggedIn()): ?>
|
| 133 |
+
|
| 134 |
+
<?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
|
| 135 |
+
<?php $_gender = $this->getLayout()->createBlock('customer/widget_gender') ?>
|
| 136 |
+
<?php if ($_dob->isEnabled() || $_gender->isEnabled()): ?>
|
| 137 |
+
<li class="fields">
|
| 138 |
+
<?php if ($_dob->isEnabled()): ?>
|
| 139 |
+
<div class="field">
|
| 140 |
+
<?php echo $_dob->setDate($this->getQuote()->getCustomerDob())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
|
| 141 |
+
</div>
|
| 142 |
+
<?php endif; ?>
|
| 143 |
+
<?php if ($_gender->isEnabled()): ?>
|
| 144 |
+
<div class="field">
|
| 145 |
+
<?php echo $_gender->setGender($this->getQuote()->getCustomerGender())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
|
| 146 |
+
</div>
|
| 147 |
+
<?php endif ?>
|
| 148 |
+
</li>
|
| 149 |
+
<?php endif ?>
|
| 150 |
+
|
| 151 |
+
<?php $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat') ?>
|
| 152 |
+
<?php if ($_taxvat->isEnabled()): ?>
|
| 153 |
+
<li>
|
| 154 |
+
<?php echo $_taxvat->setTaxvat($this->getQuote()->getCustomerTaxvat())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
|
| 155 |
+
</li>
|
| 156 |
+
<?php endif ?>
|
| 157 |
+
|
| 158 |
+
<li class="fields" id="register-customer-password">
|
| 159 |
+
<div class="field">
|
| 160 |
+
<label for="billing:customer_password" class="required"><em>*</em><?php echo $this->__('Password') ?></label>
|
| 161 |
+
<div class="input-box">
|
| 162 |
+
<input type="password" name="billing[customer_password]" id="billing:customer_password" title="<?php echo $this->__('Password') ?>" class="input-text required-entry validate-password" />
|
| 163 |
+
</div>
|
| 164 |
+
</div>
|
| 165 |
+
<div class="field">
|
| 166 |
+
<label for="billing:confirm_password" class="required"><em>*</em><?php echo $this->__('Confirm Password') ?></label>
|
| 167 |
+
<div class="input-box">
|
| 168 |
+
<input type="password" name="billing[confirm_password]" title="<?php echo $this->__('Confirm Password') ?>" id="billing:confirm_password" class="input-text required-entry validate-cpassword" />
|
| 169 |
+
</div>
|
| 170 |
+
</div>
|
| 171 |
+
</li>
|
| 172 |
+
<?php endif; ?>
|
| 173 |
+
<?php
|
| 174 |
+
if( !(Mage::getStoreConfig("OutsourceOnline_Captcha/captcha/when_loggedin") && (Mage::getSingleton('customer/session')->isLoggedIn())) )
|
| 175 |
+
{
|
| 176 |
+
|
| 177 |
+
if (Mage::getStoreConfig("OutsourceOnline_Captcha/captcha/customer")): ?>
|
| 178 |
+
<?php echo $this->getChildHtml('captcha_ajax_part'); ?>
|
| 179 |
+
<?php endif;
|
| 180 |
+
}
|
| 181 |
+
?>
|
| 182 |
+
<?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
|
| 183 |
+
<li class="control">
|
| 184 |
+
<input type="checkbox" name="billing[save_in_address_book]" value="1" title="<?php echo $this->__('Save in address book') ?>" id="billing:save_in_address_book" onchange="if(window.shipping) shipping.setSameAsBilling(false);"<?php if ($this->getAddress()->getSaveInAddressBook()):?> checked="checked"<?php endif;?> class="checkbox" /><label for="billing:save_in_address_book"><?php echo $this->__('Save in address book') ?></label>
|
| 185 |
+
</li>
|
| 186 |
+
<?php else:?>
|
| 187 |
+
<li class="no-display"><input type="hidden" name="billing[save_in_address_book]" value="1" /></li>
|
| 188 |
+
<?php endif; ?>
|
| 189 |
+
<?php echo $this->getChildHtml('form.additional.info'); ?>
|
| 190 |
+
</ul>
|
| 191 |
+
</fieldset>
|
| 192 |
+
</li>
|
| 193 |
+
<?php /* Extensions placeholder */ ?>
|
| 194 |
+
<?php echo $this->getChildHtml('checkout.onepage.billing.extra')?>
|
| 195 |
+
<?php if ($this->canShip()): ?>
|
| 196 |
+
<li class="control">
|
| 197 |
+
<input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_yes" value="1"<?php if ($this->isUseBillingAddressForShipping()) {?> checked="checked"<?php }?> title="<?php echo $this->__('Ship to this address') ?>" onclick="$('shipping:same_as_billing').checked = true;" class="radio" /><label for="billing:use_for_shipping_yes"><?php echo $this->__('Ship to this address') ?></label></li>
|
| 198 |
+
<li class="control">
|
| 199 |
+
<input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_no" value="0"<?php if (!$this->isUseBillingAddressForShipping()) {?> checked="checked"<?php }?> title="<?php echo $this->__('Ship to different address') ?>" onclick="$('shipping:same_as_billing').checked = false;" class="radio" /><label for="billing:use_for_shipping_no"><?php echo $this->__('Ship to different address') ?></label>
|
| 200 |
+
</li>
|
| 201 |
+
<?php endif; ?>
|
| 202 |
+
</ul>
|
| 203 |
+
<?php if (!$this->canShip()): ?>
|
| 204 |
+
<input type="hidden" name="billing[use_for_shipping]" value="1" />
|
| 205 |
+
<?php endif; ?>
|
| 206 |
+
<div class="buttons-set" id="billing-buttons-container">
|
| 207 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
| 208 |
+
<button type="button" title="<?php echo $this->__('Continue') ?>" class="button" onclick="(typeof checkOSOLCaptcha == 'function')?checkOSOLCaptcha(billingForm):billing.save();"><span><span><?php echo $this->__('Continue') ?></span></span></button>
|
| 209 |
+
<span class="please-wait" id="billing-please-wait" style="display:none;">
|
| 210 |
+
<img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Loading next step...') ?>" title="<?php echo $this->__('Loading next step...') ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
|
| 211 |
+
</span>
|
| 212 |
+
</div>
|
| 213 |
+
</fieldset>
|
| 214 |
+
</form>
|
| 215 |
+
<script type="text/javascript">
|
| 216 |
+
//<![CDATA[
|
| 217 |
+
var billing = new Billing('co-billing-form', '<?php echo $this->getUrl('checkout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('checkout/onepage/saveBilling') ?>');
|
| 218 |
+
var billingForm = new VarienForm('co-billing-form');
|
| 219 |
+
|
| 220 |
+
//billingForm.setElementsRelation('billing:country_id', 'billing:region', '<?php echo $this->getUrl('directory/json/childRegion') ?>', '<?php echo $this->__('Select State/Province...') ?>');
|
| 221 |
+
$('billing-address-select') && billing.newAddress(!$('billing-address-select').value);
|
| 222 |
+
|
| 223 |
+
var billingRegionUpdater = new RegionUpdater('billing:country_id', 'billing:region', 'billing:region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'billing:postcode');
|
| 224 |
+
//]]>
|
| 225 |
+
</script>
|
app/design/frontend/default/default/template/outsourceOnline/captcha/register.phtml
CHANGED
|
@@ -1,153 +1,195 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
*
|
| 4 |
-
*
|
| 5 |
-
* NOTICE OF LICENSE
|
| 6 |
-
*
|
| 7 |
-
* This source file is subject to the
|
| 8 |
-
* that is bundled with this package in the file
|
| 9 |
-
* It is also available through the world-wide-web at this URL:
|
| 10 |
-
* http://opensource.org/licenses/
|
| 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 |
-
*
|
| 16 |
-
*
|
| 17 |
-
*
|
| 18 |
-
*
|
| 19 |
-
*
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
*
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
<
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
<
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
<?php $
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
<?php
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
<?php
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
<
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
<
|
| 110 |
-
<
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
<
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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) 2013 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 |
+
<?php
|
| 28 |
+
/**
|
| 29 |
+
* Create account form template
|
| 30 |
+
*
|
| 31 |
+
* @var $this Mage_Customer_Block_Form_Register
|
| 32 |
+
*/
|
| 33 |
+
?>
|
| 34 |
+
<div class="account-create">
|
| 35 |
+
<div class="page-title">
|
| 36 |
+
<h1><?php echo $this->__('Create an Account') ?></h1>
|
| 37 |
+
</div>
|
| 38 |
+
<?php echo $this->getChildHtml('form_fields_before')?>
|
| 39 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
| 40 |
+
<?php /* Extensions placeholder */ ?>
|
| 41 |
+
<?php echo $this->getChildHtml('customer.form.register.extra')?>
|
| 42 |
+
<form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="form-validate" onSubmit="return checkOSOLCaptcha(dataForm);">
|
| 43 |
+
<div class="fieldset">
|
| 44 |
+
<input type="hidden" name="success_url" value="<?php echo $this->getSuccessUrl() ?>" />
|
| 45 |
+
<input type="hidden" name="error_url" value="<?php echo $this->getErrorUrl() ?>" />
|
| 46 |
+
<h2 class="legend"><?php echo $this->__('Personal Information') ?></h2>
|
| 47 |
+
<ul class="form-list">
|
| 48 |
+
<li class="fields">
|
| 49 |
+
<?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getFormData())->setForceUseCustomerAttributes(true)->toHtml() ?>
|
| 50 |
+
</li>
|
| 51 |
+
<li>
|
| 52 |
+
<label for="email_address" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
|
| 53 |
+
<div class="input-box">
|
| 54 |
+
<input type="text" name="email" id="email_address" value="<?php echo $this->escapeHtml($this->getFormData()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="input-text validate-email required-entry" />
|
| 55 |
+
</div>
|
| 56 |
+
</li>
|
| 57 |
+
<?php if ($this->isNewsletterEnabled()): ?>
|
| 58 |
+
<li class="control">
|
| 59 |
+
<div class="input-box">
|
| 60 |
+
<input type="checkbox" name="is_subscribed" title="<?php echo $this->__('Sign Up for Newsletter') ?>" value="1" id="is_subscribed"<?php if($this->getFormData()->getIsSubscribed()): ?> checked="checked"<?php endif; ?> class="checkbox" />
|
| 61 |
+
</div>
|
| 62 |
+
<label for="is_subscribed"><?php echo $this->__('Sign Up for Newsletter') ?></label>
|
| 63 |
+
<?php /* Extensions placeholder */ ?>
|
| 64 |
+
<?php echo $this->getChildHtml('customer.form.register.newsletter')?>
|
| 65 |
+
</li>
|
| 66 |
+
<?php endif ?>
|
| 67 |
+
<?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
|
| 68 |
+
<?php if ($_dob->isEnabled()): ?>
|
| 69 |
+
<li><?php echo $_dob->setDate($this->getFormData()->getDob())->toHtml() ?></li>
|
| 70 |
+
<?php endif ?>
|
| 71 |
+
<?php $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat') ?>
|
| 72 |
+
<?php if ($_taxvat->isEnabled()): ?>
|
| 73 |
+
<li><?php echo $_taxvat->setTaxvat($this->getFormData()->getTaxvat())->toHtml() ?></li>
|
| 74 |
+
<?php endif ?>
|
| 75 |
+
<?php $_gender = $this->getLayout()->createBlock('customer/widget_gender') ?>
|
| 76 |
+
<?php if ($_gender->isEnabled()): ?>
|
| 77 |
+
<li><?php echo $_gender->setGender($this->getFormData()->getGender())->toHtml() ?></li>
|
| 78 |
+
<?php endif ?>
|
| 79 |
+
</ul>
|
| 80 |
+
</div>
|
| 81 |
+
<?php if($this->getShowAddressFields()): ?>
|
| 82 |
+
<div class="fieldset">
|
| 83 |
+
<input type="hidden" name="create_address" value="1" />
|
| 84 |
+
<h2 class="legend"><?php echo $this->__('Address Information') ?></h2>
|
| 85 |
+
<ul class="form-list">
|
| 86 |
+
<li class="fields">
|
| 87 |
+
<div class="field">
|
| 88 |
+
<label for="company"><?php echo $this->__('Company') ?></label>
|
| 89 |
+
<div class="input-box">
|
| 90 |
+
<input type="text" name="company" id="company" value="<?php echo $this->escapeHtml($this->getFormData()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('company') ?>" />
|
| 91 |
+
</div>
|
| 92 |
+
</div>
|
| 93 |
+
<div class="field">
|
| 94 |
+
<label for="telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
|
| 95 |
+
<div class="input-box">
|
| 96 |
+
<input type="text" name="telephone" id="telephone" value="<?php echo $this->escapeHtml($this->getFormData()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('telephone') ?>" />
|
| 97 |
+
</div>
|
| 98 |
+
</div>
|
| 99 |
+
</li>
|
| 100 |
+
<?php $_streetValidationClass = $this->helper('customer/address')->getAttributeValidationClass('street'); ?>
|
| 101 |
+
<li class="wide">
|
| 102 |
+
<label for="street_1" class="required"><em>*</em><?php echo $this->__('Street Address') ?></label>
|
| 103 |
+
<div class="input-box">
|
| 104 |
+
<input type="text" name="street[]" value="<?php echo $this->escapeHtml($this->getFormData()->getStreet(1)) ?>" title="<?php echo $this->__('Street Address') ?>" id="street_1" class="input-text <?php echo $_streetValidationClass ?>" />
|
| 105 |
+
</div>
|
| 106 |
+
</li>
|
| 107 |
+
<?php $_streetValidationClass = trim(str_replace('required-entry', '', $_streetValidationClass)); ?>
|
| 108 |
+
<?php for ($_i = 2, $_n = $this->helper('customer/address')->getStreetLines(); $_i <= $_n; $_i++): ?>
|
| 109 |
+
<li class="wide">
|
| 110 |
+
<div class="input-box">
|
| 111 |
+
<input type="text" name="street[]" value="<?php echo $this->escapeHtml($this->getFormData()->getStreet($_i)) ?>" title="<?php echo $this->__('Street Address %s', $_i) ?>" id="street_<?php echo $_i ?>" class="input-text <?php echo $_streetValidationClass ?>" />
|
| 112 |
+
</div>
|
| 113 |
+
</li>
|
| 114 |
+
<?php endfor; ?>
|
| 115 |
+
<li class="fields">
|
| 116 |
+
<div class="field">
|
| 117 |
+
<label for="city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
|
| 118 |
+
<div class="input-box">
|
| 119 |
+
<input type="text" name="city" value="<?php echo $this->escapeHtml($this->getFormData()->getCity()) ?>" title="<?php echo $this->__('City') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('city') ?>" id="city" />
|
| 120 |
+
</div>
|
| 121 |
+
</div>
|
| 122 |
+
<div class="field">
|
| 123 |
+
<label for="region_id" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
|
| 124 |
+
<div class="input-box">
|
| 125 |
+
<select id="region_id" name="region_id" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
|
| 126 |
+
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
| 127 |
+
</select>
|
| 128 |
+
<script type="text/javascript">
|
| 129 |
+
//<![CDATA[
|
| 130 |
+
$('region_id').setAttribute('defaultValue', "<?php echo $this->getFormData()->getRegionId() ?>");
|
| 131 |
+
//]]>
|
| 132 |
+
</script>
|
| 133 |
+
<input type="text" id="region" name="region" value="<?php echo $this->escapeHtml($this->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('region') ?>" style="display:none;" />
|
| 134 |
+
</div>
|
| 135 |
+
</div>
|
| 136 |
+
</li>
|
| 137 |
+
<li class="fields">
|
| 138 |
+
<div class="field">
|
| 139 |
+
<label for="zip" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
|
| 140 |
+
<div class="input-box">
|
| 141 |
+
<input type="text" name="postcode" value="<?php echo $this->escapeHtml($this->getFormData()->getPostcode()) ?>" title="<?php echo $this->__('Zip/Postal Code') ?>" id="zip" class="input-text validate-zip-international <?php echo $this->helper('customer/address')->getAttributeValidationClass('postcode') ?>" />
|
| 142 |
+
</div>
|
| 143 |
+
</div>
|
| 144 |
+
<div class="field">
|
| 145 |
+
<label for="country" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
| 146 |
+
<div class="input-box">
|
| 147 |
+
<?php echo $this->getCountryHtmlSelect() ?>
|
| 148 |
+
</div>
|
| 149 |
+
</div>
|
| 150 |
+
</li>
|
| 151 |
+
</ul>
|
| 152 |
+
<input type="hidden" name="default_billing" value="1" />
|
| 153 |
+
<input type="hidden" name="default_shipping" value="1" />
|
| 154 |
+
</div>
|
| 155 |
+
<?php endif; ?>
|
| 156 |
+
<div class="fieldset">
|
| 157 |
+
<h2 class="legend"><?php echo $this->__('Login Information') ?></h2>
|
| 158 |
+
<ul class="form-list">
|
| 159 |
+
<li class="fields">
|
| 160 |
+
<div class="field">
|
| 161 |
+
<label for="password" class="required"><em>*</em><?php echo $this->__('Password') ?></label>
|
| 162 |
+
<div class="input-box">
|
| 163 |
+
<input type="password" name="password" id="password" title="<?php echo $this->__('Password') ?>" class="input-text required-entry validate-password" />
|
| 164 |
+
</div>
|
| 165 |
+
</div>
|
| 166 |
+
<div class="field">
|
| 167 |
+
<label for="confirmation" class="required"><em>*</em><?php echo $this->__('Confirm Password') ?></label>
|
| 168 |
+
<div class="input-box">
|
| 169 |
+
<input type="password" name="confirmation" title="<?php echo $this->__('Confirm Password') ?>" id="confirmation" class="input-text required-entry validate-cpassword" />
|
| 170 |
+
</div>
|
| 171 |
+
</div>
|
| 172 |
+
</li>
|
| 173 |
+
<?php echo $this->getChildHtml('form.additional.info'); ?>
|
| 174 |
+
</ul>
|
| 175 |
+
<?php
|
| 176 |
+
if (Mage::getStoreConfig("OutsourceOnline_Captcha/captcha/customer")): ?>
|
| 177 |
+
<?php echo $this->getChildHtml('captcha_ajax_part'); ?>
|
| 178 |
+
<?php endif; ?>
|
| 179 |
+
</div>
|
| 180 |
+
<div class="buttons-set">
|
| 181 |
+
|
| 182 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
| 183 |
+
<p class="back-link"><a href="<?php echo $this->escapeUrl($this->getBackUrl()) ?>" class="back-link"><small>« </small><?php echo $this->__('Back') ?></a></p>
|
| 184 |
+
<button type="submit" title="<?php echo $this->__('Submit') ?>" class="button"><span><span><?php echo $this->__('Submit') ?></span></span></button>
|
| 185 |
+
</div>
|
| 186 |
+
</form>
|
| 187 |
+
<script type="text/javascript">
|
| 188 |
+
//<![CDATA[
|
| 189 |
+
var dataForm = new VarienForm('form-validate', true);
|
| 190 |
+
<?php if($this->getShowAddressFields()): ?>
|
| 191 |
+
new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'zip');
|
| 192 |
+
<?php endif; ?>
|
| 193 |
+
//]]>
|
| 194 |
+
</script>
|
| 195 |
+
</div>
|
app/design/frontend/default/default/template/outsourceOnline/captcha/send.phtml
CHANGED
|
@@ -1,142 +1,150 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
*
|
| 4 |
-
*
|
| 5 |
-
* NOTICE OF LICENSE
|
| 6 |
-
*
|
| 7 |
-
* This source file is subject to the
|
| 8 |
-
* that is bundled with this package in the file
|
| 9 |
-
* It is also available through the world-wide-web at this URL:
|
| 10 |
-
* http://opensource.org/licenses/
|
| 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 |
-
*
|
| 16 |
-
*
|
| 17 |
-
*
|
| 18 |
-
*
|
| 19 |
-
*
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
*
|
| 24 |
-
*
|
| 25 |
-
|
| 26 |
-
*/
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
li_mail
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
<
|
| 68 |
-
|
| 69 |
-
<div class="
|
| 70 |
-
<
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
<
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
<
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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) 2013 Magento Inc. (http://www.magentocommerce.com)
|
| 24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
| 25 |
+
*/
|
| 26 |
+
/* @var $this Mage_Sendfriend_Block_Send */
|
| 27 |
+
/**
|
| 28 |
+
* Send to friend form
|
| 29 |
+
*
|
| 30 |
+
* @see Mage_Sendfriend_Block_Send
|
| 31 |
+
*/
|
| 32 |
+
?>
|
| 33 |
+
<script type="text/javascript">
|
| 34 |
+
//<![CDATA[
|
| 35 |
+
i=0;
|
| 36 |
+
var recipCount = 1;
|
| 37 |
+
var maxRecip = <?php echo $this->getMaxRecipients() ?>;
|
| 38 |
+
function remove_recipient(i){
|
| 39 |
+
$('recipients_name'+i).up(2).remove();
|
| 40 |
+
recipCount--;
|
| 41 |
+
if(recipCount<maxRecip && maxRecip != 0) {
|
| 42 |
+
$('add_recipient_button').show();
|
| 43 |
+
$('max_recipient_message').hide();
|
| 44 |
+
}
|
| 45 |
+
return false;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
function add_recipient(){
|
| 49 |
+
ul = $('recipients_options');
|
| 50 |
+
var li_mail = Element.extend(document.createElement("LI"));
|
| 51 |
+
li_mail.addClassName('fields additional-row');
|
| 52 |
+
li_mail.innerHTML = '<p><a href="delete_email" title="<?php echo $this->jsQuoteEscape($this->__('Remove Email')) ?>" onclick="remove_recipient('+i+'); return false" class="btn-remove"><?php echo $this->jsQuoteEscape($this->__('Remove Email')) ?>"<\/a><\/p>'
|
| 53 |
+
li_mail.innerHTML += '<div class="field"><label for="recipients_name'+i+'" class="required"><em>*<\/em><?php echo $this->jsQuoteEscape($this->__('Name:')) ?><\/label><div class="input-box"><input name="recipients[name][]" type="text" class="input-text required-entry" id="recipients_name'+i+'" /><\/div>';
|
| 54 |
+
li_mail.innerHTML += '<div class="field"><label for="recipients_email'+i+'" class="required"><em>*<\/em><?php echo $this->jsQuoteEscape($this->__('Email Address:')) ?><\/label><div class="input-box"><input name="recipients[email][]" value="" title="<?php echo $this->jsQuoteEscape($this->__('Email Address')) ?>" id="recipients_email'+i+'" type="text" class="input-text required-entry validate-email" /><\/div><\/div>';
|
| 55 |
+
i++;
|
| 56 |
+
recipCount++;
|
| 57 |
+
if(recipCount>=maxRecip && maxRecip != 0) {
|
| 58 |
+
$('add_recipient_button').hide();
|
| 59 |
+
$('max_recipient_message').show();
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
ul.appendChild(li_mail);
|
| 63 |
+
}
|
| 64 |
+
//]]>
|
| 65 |
+
</script>
|
| 66 |
+
|
| 67 |
+
<div class="send-friend">
|
| 68 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
| 69 |
+
<div class="page-title">
|
| 70 |
+
<h1><?php echo $this->__('Email to a Friend') ?></h1>
|
| 71 |
+
</div>
|
| 72 |
+
<form action="<?php echo $this->getSendUrl() ?>" method="post" id="product_sendtofriend_form" onSubmit="return checkOSOLCaptcha(productSendtofriendForm);">
|
| 73 |
+
<div class="fieldset">
|
| 74 |
+
<?php echo $this->getBlockHtml('formkey')?>
|
| 75 |
+
<h2 class="legend"><?php echo $this->__('Sender:') ?></h2>
|
| 76 |
+
<ul class="form-list" id="sender_options">
|
| 77 |
+
<li class="fields">
|
| 78 |
+
<div class="field">
|
| 79 |
+
<label for="sender_name" class="required"><em>*</em><?php echo $this->__('Name:') ?></label>
|
| 80 |
+
<div class="input-box">
|
| 81 |
+
<input name="sender[name]" value="<?php echo $this->escapeHtml($this->getUserName()) ?>" title="<?php echo $this->__('Name') ?>" id="sender_name" type="text" class="input-text required-entry" />
|
| 82 |
+
</div>
|
| 83 |
+
</div>
|
| 84 |
+
<div class="field">
|
| 85 |
+
<label for="sender_email" class="required"><em>*</em><?php echo $this->__('Email:') ?></label>
|
| 86 |
+
<div class="input-box">
|
| 87 |
+
<input name="sender[email]" value="<?php echo $this->escapeHtml($this->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" id="sender_email" type="text" class="input-text required-entry validate-email" />
|
| 88 |
+
</div>
|
| 89 |
+
</div>
|
| 90 |
+
</li>
|
| 91 |
+
<li class="wide">
|
| 92 |
+
<label for="sender_message" class="required"><em>*</em><?php echo $this->__('Message:') ?></label>
|
| 93 |
+
<div class="input-box">
|
| 94 |
+
<textarea name="sender[message]" class="input-text required-entry" id="sender_message" cols="3" rows="3"><?php echo $this->escapeHtml($this->getMessage())?></textarea>
|
| 95 |
+
</div>
|
| 96 |
+
</li>
|
| 97 |
+
</ul>
|
| 98 |
+
</div>
|
| 99 |
+
<div class="fieldset">
|
| 100 |
+
<h2 class="legend"><?php echo $this->__('Recipient:') ?></h2>
|
| 101 |
+
<ul class="form-list" id="recipients_options">
|
| 102 |
+
<li class="fields">
|
| 103 |
+
<div class="field">
|
| 104 |
+
<label for="recipients_name" class="required"><em>*</em><?php echo $this->__('Name:') ?></label>
|
| 105 |
+
<div class="input-box">
|
| 106 |
+
<input name="recipients[name][]" type="text" class="input-text required-entry" id="recipients_name" />
|
| 107 |
+
</div>
|
| 108 |
+
</div>
|
| 109 |
+
<div class="field">
|
| 110 |
+
<label for="recipients_email" class="required"><em>*</em><?php echo $this->__('Email Address:') ?></label>
|
| 111 |
+
<div class="input-box">
|
| 112 |
+
<input name="recipients[email][]" value="" title="<?php echo $this->__('Email Address') ?>" id="recipients_email" type="text" class="input-text required-entry validate-email" />
|
| 113 |
+
</div>
|
| 114 |
+
</div>
|
| 115 |
+
</li>
|
| 116 |
+
</ul>
|
| 117 |
+
</div>
|
| 118 |
+
<?php // recaptcha
|
| 119 |
+
if( !(Mage::getStoreConfig("OutsourceOnline_Captcha/captcha/when_loggedin") && (Mage::getSingleton('customer/session')->isLoggedIn())) )
|
| 120 |
+
{
|
| 121 |
+
if (Mage::getStoreConfig("OutsourceOnline_Captcha/captcha/sendfriend"))
|
| 122 |
+
echo $this->getChildHtml('captcha_ajax_part');
|
| 123 |
+
}
|
| 124 |
+
?>
|
| 125 |
+
<div class="buttons-set">
|
| 126 |
+
<p class="back-link"><a href="#" onclick="history.back(); return false;"><small>« </small><?php echo $this->__('Back') ?></a></p>
|
| 127 |
+
<button type="submit" class="button<?php if (!$this->canSend()):?> disabled<?php endif ?>"<?php if (!$this->canSend()):?> disabled="disabled"<?php endif ?>><span><span><?php echo $this->__('Send Email') ?></span></span></button>
|
| 128 |
+
<div id="max_recipient_message" style="display:none;">
|
| 129 |
+
<?php if ($this->getMaxRecipients()): ?>
|
| 130 |
+
<p class="limit"><?php echo $this->__('Maximum %d email addresses allowed.', $this->getMaxRecipients()) ?></p>
|
| 131 |
+
<?php endif; ?>
|
| 132 |
+
</div>
|
| 133 |
+
<?php if (1 < $this->getMaxRecipients()): ?>
|
| 134 |
+
<p id="add_recipient_button">
|
| 135 |
+
<button type="button" onclick="add_recipient();" class="button"><span><span><?php echo $this->__('Add Recipient') ?></span></span></button>
|
| 136 |
+
</p>
|
| 137 |
+
<?php endif; ?>
|
| 138 |
+
</div>
|
| 139 |
+
</form>
|
| 140 |
+
<script type="text/javascript">
|
| 141 |
+
//<![CDATA[
|
| 142 |
+
var productSendtofriendForm = new VarienForm('product_sendtofriend_form');
|
| 143 |
+
productSendtofriendForm.submit = function() {
|
| 144 |
+
if(this.validator.validate()) {
|
| 145 |
+
this.form.submit();
|
| 146 |
+
}
|
| 147 |
+
}.bind(productSendtofriendForm);
|
| 148 |
+
//]]>
|
| 149 |
+
</script>
|
| 150 |
+
</div>
|
package.xml
CHANGED
|
@@ -1,19 +1,22 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>OutsourceOnline_Captcha</name>
|
| 4 |
-
<version>2.0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license/>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Module to add Ajax captcha functionality for magento</summary>
|
| 10 |
<description>Captcha functionality for magento forms for registration,contactus,product review and send a friend .Simply install the module and check the aforementioned forms</description>
|
| 11 |
-
<notes>
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
| 13 |
<authors><author><name>Sreekanth Dayanand</name><user>auto-converted</user><email>blogspot@outsource-online.net</email></author></authors>
|
| 14 |
-
<date>2014-
|
| 15 |
-
<time>11:
|
| 16 |
-
<contents><target name="magelocale"><dir name="en_US"><file name="OutsourceOnline_Captcha.csv" hash="46c1c9105a99ef6a3e884381ba060fe9"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="OutsourceOnline_Captcha.xml" hash="f1108b50e824b5482177f2dc2eb3443b"/></dir><dir name="template"><dir name="outsourceOnline"><dir name="captcha"><file name="ajaxInsert.phtml" hash="eb81b88715c0c927e4ef8dd0f4e82c82"/><file name="captchaAjax.phtml" hash="5feefbfb1a1aaad28aaadd572dafbe74"/><file name="contacts.phtml" hash="
|
| 17 |
<compatible/>
|
| 18 |
<dependencies/>
|
| 19 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>OutsourceOnline_Captcha</name>
|
| 4 |
+
<version>2.0.6</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license/>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Module to add Ajax captcha functionality for magento</summary>
|
| 10 |
<description>Captcha functionality for magento forms for registration,contactus,product review and send a friend .Simply install the module and check the aforementioned forms</description>
|
| 11 |
+
<notes>changed phtml files to comply with magento 1.8.1.0 version
|
| 12 |
+
the versions here after will be compatible for sure only for magento 1.8.1+
|
| 13 |
+
--------------------------------------------------------------------
|
| 14 |
+
for integrationg with versions prior to 1.8.0 the admins should use
|
| 15 |
+
OusourceOnlineCaptcha 2.0.4</notes>
|
| 16 |
<authors><author><name>Sreekanth Dayanand</name><user>auto-converted</user><email>blogspot@outsource-online.net</email></author></authors>
|
| 17 |
+
<date>2014-03-21</date>
|
| 18 |
+
<time>11:13:51</time>
|
| 19 |
+
<contents><target name="magelocale"><dir name="en_US"><file name="OutsourceOnline_Captcha.csv" hash="46c1c9105a99ef6a3e884381ba060fe9"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="OutsourceOnline_Captcha.xml" hash="f1108b50e824b5482177f2dc2eb3443b"/></dir><dir name="template"><dir name="outsourceOnline"><dir name="captcha"><file name="ajaxInsert.phtml" hash="eb81b88715c0c927e4ef8dd0f4e82c82"/><file name="captchaAjax.phtml" hash="5feefbfb1a1aaad28aaadd572dafbe74"/><file name="contacts.phtml" hash="052dd631e0a7093ebb8ea85f8b00e205"/><file name="form.phtml" hash="b43618d61fa4cc73ae572b676b2c22d6"/><file name="onepage_billing.phtml" hash="26ae2d889f636b743e87ebec53c99199"/><file name="register.phtml" hash="6408d69487bf68d3273f6b75257672af"/><file name="send.phtml" hash="7265f70005fe0ea1b1417ff7a8522c17"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="OutsourceOnline_Captcha.xml" hash="7b700e1a3656005d4fc1b3f703a4269a"/></dir></target><target name="magecommunity"><dir name="OutsourceOnline"><dir name="Captcha"><dir name="Block"><dir name="Checkout"><dir name="Onepage"><file name="Billing.php" hash="d9610a7617bf208112283751282a5732"/></dir></dir><dir name="Review"><file name="Form.php" hash="d9039bc65bbf00e4e9a42e405b5864a9"/></dir></dir><dir name="controllers"><file name="AccountController.php" hash="54e72a083e7975feb2140380287cfbb7"/><file name="AjaxController.php" hash="8b923b7ba0ee6736e79a438dbbffade7"/><file name="ContactsController.php" hash="7fc9965a47d3416870cd407a36715a71"/><file name="OnepageController.php" hash="0b8482baae828d17834cc92bb52afe10"/><file name="ProductController.php" hash="2d7a42ee7e769a79520c07c535f52f7e"/><file name="ReviewController.php" hash="3d61d2157edf8b3e2a470f9bdd912c34"/></dir><dir name="etc"><file name="config.xml" hash="c1cf64335c83efca54a57c16bc9b467f"/><file name="system.xml" hash="504c040bcc5e99e367e3b32aaccc5d32"/></dir><dir name="Helper"><dir name="osolCaptcha"><file name="ajax-loader-big.gif" hash="a51c5608d01acf32df728f299767f82b"/><file name="font-png.png" hash="91d6af87287956ca32991bb9f81a90e1"/><file name="fontFileMeta.meta" hash="aba07e9e5a68d194cce8434593451c51"/><file name="temp.meta" hash="625e359f6a3bfa64572544d5bf0a073d"/><file name="temp.png" hash="697c73c21eb60c6c237b0bf099428267"/><dir name="ttfs"><file name="AdLibBT.TTF" hash="4ff833d37c38398cd201b2550bf8ecb5"/><file name="BookmanOldStyle.TTF" hash="4267d8aa8711bb8c72cbefb26066c9e0"/><file name="CooperBlack.TTF" hash="8eb03871e6046162efce5f2cdf5fa849"/><file name="index.html" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir><file name="Data.php" hash="8f7ce7d3a01d6c6a065a636dc78abdb7"/><file name="OSOLmulticaptcha.php" hash="c4a2e999bb41d1bf4a217ccb2dfc5fea"/></dir><dir name="Model"><dir name="Source"><file name="Captchafonts.php" hash="4ac034345994bdf1eeada4ff0f1b4d22"/><file name="Captchafontsize.php" hash="c6d6c3d7107363f1aa1111663bb14647"/><file name="Captchaimage.php" hash="b49acab3a47cfa798aa16825f6417c82"/><file name="Captchalanguage.php" hash="89d9e8e16788d84c5ce8fcc2a9e07925"/><file name="Captchanoise.php" hash="cf5367e941950ebe7fc5786a550c0f17"/></dir></dir></dir></dir></target></contents>
|
| 20 |
<compatible/>
|
| 21 |
<dependencies/>
|
| 22 |
</package>
|
