OutsourceOnline_Captcha - Version 2.0.6

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 CHANGED
@@ -1,78 +1,82 @@
1
- <?php
2
- /**
3
- * Outsource Online Captcha Extension
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-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
- * @category Outsource Online
16
- * @package OutsourceOnline_Captcha
17
- * @author Sreekanth Dayanand
18
- * @copyright Copyright (c) 2010 Outsource Online. (http://www.outsource-online.net)
19
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
- */
21
- ?>
22
-
23
- <div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
24
- <div class="page-head">
25
- <h3><?php echo Mage::helper('contacts')->__('Contact Us') ?></h3>
26
- </div>
27
- <form action="<?php echo $this->getFormAction(); ?>" id="contactForm" method="post" onSubmit="return checkOSOLCaptcha(contactForm);">
28
- <fieldset class="group-select">
29
- <h4 class="legend"><?php echo Mage::helper('contacts')->__('Contact Information') ?></h4>
30
- <ul>
31
- <li>
32
- <div class="input-box">
33
- <label for="name"><?php echo Mage::helper('contacts')->__('Name') ?> <span class="required">*</span></label><br />
34
- <input name="name" id="name" title="<?php echo Mage::helper('contacts')->__('Name') ?>" value="<?php if($this->helper('contacts')->getUserName() == "") { if(isset($_SESSION["contact_name"])){ echo ($_SESSION["contact_name"]); unset($_SESSION["contact_name"]);}}else{ echo $this->htmlEscape($this->helper('contacts')->getUserName()); } ?>" class="required-entry input-text" type="text" />
35
- </div>
36
-
37
- <div class="input-box">
38
- <label for="email"><?php echo Mage::helper('contacts')->__('Email') ?> <span class="required">*</span></label><br />
39
- <input name="email" id="email" title="<?php echo Mage::helper('contacts')->__('Email') ?>" value="<?php if($this->helper('contacts')->getUserEmail() == "") { if(isset($_SESSION["contact_email"])){ echo ($_SESSION["contact_email"]); unset($_SESSION["contact_email"]);}}else{ echo $this->htmlEscape($this->helper('contacts')->getUserEmail()); } ?>" class="required-entry input-text validate-email" type="text" />
40
- </div>
41
-
42
- <div class="clear"></div>
43
-
44
- <div class="input-box">
45
- <label for="telephone"><?php echo Mage::helper('contacts')->__('Telephone') ?></label><br />
46
- <input name="telephone" id="telephone" title="<?php echo Mage::helper('contacts')->__('Telephone') ?>" value="<?php if(isset($_SESSION["contact_telephone"])){ echo ($_SESSION["contact_telephone"]); unset($_SESSION["contact_telephone"]);} ?>" class="input-text" type="text" />
47
- </div>
48
-
49
- <div class="clear"></div>
50
-
51
- <div class="input-box">
52
- <label for="comment"><?php echo Mage::helper('contacts')->__('Comment') ?></label><br />
53
- <textarea name="comment" id="comment" title="<?php echo Mage::helper('contacts')->__('Comment') ?>" class="required-entry input-text" style="height:150px;width:auto;" cols="50" rows="5"><?php if(isset($_SESSION["contact_comment"])){ echo ($_SESSION["contact_comment"]); unset($_SESSION["contact_comment"]);} ?></textarea>
54
- </div>
55
- </li>
56
- </ul>
57
- </fieldset>
58
-
59
- <?php // Captcha
60
- if( !(Mage::getStoreConfig("OutsourceOnline_Captcha/captcha/when_loggedin") && (Mage::getSingleton('customer/session')->isLoggedIn())) )
61
- {
62
- if (Mage::getStoreConfig("OutsourceOnline_Captcha/captcha/contacts"))
63
-
64
- echo $this->getChildHtml('captcha_ajax_part');
65
- }
66
- ?>
67
-
68
- <div class="button-set">
69
- <p class="required"><?php echo Mage::helper('contacts')->__('* Required Fields') ?></p>
70
- <button class="form-button" type="submit"><span><?php echo Mage::helper('contacts')->__('Submit') ?></span></button>
71
- </div>
72
- </form>
73
- <script type="text/javascript">
74
-
75
- var contactForm = new VarienForm('contactForm', true);
76
-
77
-
78
- </script>
 
 
 
 
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
- * Outsource Online Captcha Extension
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-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
- * @category Outsource Online
16
- * @package OutsourceOnline_Captcha
17
- * @author Sreekanth Dayanand
18
- * @copyright Copyright (c) 2010 Outsource Online. (http://www.outsource-online.net)
19
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
- */
21
- ?>
22
- <div class="page-head">
23
- <h3><?php echo $this->__('Write Your Own Review') ?></h3>
24
- </div>
25
- <h4><?php echo $this->__("You're reviewing: %s", $this->htmlEscape($this->getProductInfo()->getName())) ?></h4>
26
- <form action="<?php echo $this->getAction() ?>" method="post" id="review-form" onSubmit="return checkOSOLCaptcha(dataForm);">
27
- <fieldset>
28
- <?php if( $this->getRatings() && $this->getRatings()->getSize()): ?>
29
- <div class="product-review-box">
30
- <strong><?php echo $this->__('How do you rate this product?') ?><span class="required">*</span></strong><br />
31
- <span id="input-message-box"></span>
32
- <table class="data-table" id="product-review-table" cellspacing="0">
33
- <thead>
34
- <tr>
35
- <th>&nbsp;</th>
36
- <th><?php echo $this->__('1 star') ?></th>
37
- <th><?php echo $this->__('2 stars') ?></th>
38
- <th><?php echo $this->__('3 stars') ?></th>
39
- <th><?php echo $this->__('4 stars') ?></th>
40
- <th><?php echo $this->__('5 stars') ?></th>
41
- </tr>
42
- </thead>
43
- <tbody>
44
- <?php $_oddIterator = 1; ?>
45
- <?php foreach ($this->getRatings() as $_rating): ?>
46
- <tr class="odd<?php if($_oddIterator == $this->getRatings()->getSize()): $_oddIterator = 0; ?> last<?php endif; ?>">
47
- <td class="label"><?php echo $_rating->getRatingCode() ?></td>
48
- <?php $_iterator = 1; ?>
49
- <?php foreach ($_rating->getOptions() as $_option): ?>
50
- <!--<td <?php if($_iterator == 5): ?>class="last"<?php endif; ?> style="width:60px;"><input type="radio" <?php if($_iterator == 5): $_iterator=0; ?>class="validate-one-required-by-name"<?php endif; ?> name="ratings[<?php echo $_rating->getId() ?>]" id="<?php echo $_rating->getRatingCode() ?>_<?php echo $_option->getValue() ?>" value="<?php echo $_option->getId() ?>"/></td>-->
51
- <td<?php if($_iterator == 5): ?> class="last"<?php endif; ?> style="width:60px;"><input type="radio" name="ratings[<?php echo $_rating->getId() ?>]" id="<?php echo $_rating->getRatingCode() ?>_<?php echo $_option->getValue() ?>" value="<?php echo $_option->getId() ?>" /></td>
52
- <?php $_iterator++ ?>
53
- <?php endforeach; ?>
54
- </tr>
55
- <?php $_oddIterator ++; ?>
56
- <?php endforeach; ?>
57
- </tbody>
58
- </table>
59
- <input type="hidden" name="validate_rating" class="validate-rating" value="" />
60
- <script type="text/javascript">decorateTable('product-review-table')</script>
61
- </div>
62
- <?php endif; ?>
63
- <?php // do not remove div - some problem whith validator in IE ?>
64
- <div>
65
- <label for="nickname_field"><?php echo $this->__('Nickname') ?><span class="required">*</span></label><br />
66
- <input class="input-text required-entry" name="nickname" id="nickname_field" style="width: 450px;" type="text" value="<?php echo $this->htmlEscape($data->getNickname()) ?>" />
67
- </div>
68
-
69
- <div>
70
- <label for="summary_field"><?php echo $this->__('Summary of Your Review') ?><span class="required">*</span></label><br />
71
- <input name="title" class="input-text required-entry" id="summary_field" style="width: 450px;" type="text" value="<?php echo $this->htmlEscape($data->getTitle()) ?>" />
72
- </div>
73
-
74
- <div>
75
- <label for="review_field"><?php echo $this->__('Review') ?><span class="required">*</span></label><br />
76
- <textarea class="required-entry" name="detail" id="review_field" cols="53" rows="10" style="width: 450px;"><?php echo $this->htmlEscape($data->getDetail()) ?></textarea>
77
- </div>
78
-
79
- <?php // captcha
80
- if( !(Mage::getStoreConfig("OutsourceOnline_Captcha/captcha/when_loggedin") && (Mage::getSingleton('customer/session')->isLoggedIn())) )
81
- {
82
- if (Mage::getStoreConfig("OutsourceOnline_Captcha/captcha/review"))
83
- echo $this->getChildHtml('captcha_ajax_part');
84
- }
85
- ?>
86
-
87
- <div class="button-set">
88
- <button class="form-button right" type="submit"><span><?php echo $this->__('Submit Review') ?></span></button>
89
- </div>
90
- </fieldset>
91
- </form>
92
- <script type="text/javascript">
93
- //<![CDATA[
94
- var dataForm = new VarienForm('review-form');
95
-
96
- Validation.addAllThese(
97
- [
98
- ['validate-rating', '<?php echo $this->__('Please select one of each of the ratings above') ?>', function(v) {
99
- var trs = $('product-review-table').getElementsBySelector('tr');
100
- var inputs;
101
- var error = 1;
102
-
103
- for( var j=0; j < trs.length; j++ ) {
104
- var tr = trs[j];
105
- if( j > 0 ) {
106
- inputs = tr.getElementsBySelector('input');
107
-
108
- for( i in inputs ) {
109
- if( inputs[i].checked == true ) {
110
- error = 0;
111
- }
112
- }
113
-
114
- if( error == 1 ) {
115
- return false;
116
- } else {
117
- error = 1;
118
- }
119
- }
120
- }
121
- return true;
122
- }]
123
- ]
124
- );
125
- //]]>
126
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>&nbsp;</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
- * Outsource Online Captcha Extension
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-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
- * @category Outsource Online
16
- * @package OutsourceOnline_Captcha
17
- * @author Sreekanth Dayanand
18
- * @copyright Copyright (c) 2010 Outsource Online. (http://www.outsource-online.net)
19
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
- */
21
-
22
- ?>
23
- <form id="co-billing-form" action="" >
24
- <fieldset>
25
- <ul class="form-list">
26
- <?php if ($this->customerHasAddresses()): ?>
27
- <li class="wide">
28
- <label for="billing-address-select"><?php echo $this->__('Select a billing address from your address book or enter a new address.') ?></label>
29
- <div class="input-box">
30
- <?php echo $this->getAddressesHtmlSelect('billing') ?>
31
- </div>
32
- </li>
33
- <?php endif; ?>
34
- <li id="billing-new-address-form"<?php if ($this->customerHasAddresses()): ?> style="display:none;"<?php endif; ?>>
35
- <fieldset>
36
- <input type="hidden" name="billing[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="billing:address_id" />
37
- <ul>
38
- <li class="fields"><?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?></li>
39
- <li class="fields">
40
- <div class="field">
41
- <label for="billing:company"><?php echo $this->__('Company') ?></label>
42
- <div class="input-box">
43
- <input type="text" id="billing:company" name="billing[company]" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text" />
44
- </div>
45
- </div>
46
- <?php if(!$this->isCustomerLoggedIn()): ?>
47
- <div class="field">
48
- <label for="billing:email" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
49
- <div class="input-box">
50
- <input type="text" name="billing[email]" id="billing:email" value="<?php echo $this->htmlEscape($this->getAddress()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="input-text validate-email required-entry" />
51
- </div>
52
- </div>
53
- <?php endif ?>
54
- </li>
55
- <li class="wide">
56
- <label for="billing:street1" class="required"><em>*</em><?php echo $this->__('Address') ?></label>
57
- <div class="input-box">
58
- <input type="text" title="<?php echo $this->__('Street Address') ?>" name="billing[street][]" id="billing:street1" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(1)) ?>" class="input-text required-entry" />
59
- </div>
60
- </li>
61
- <?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
62
- <li class="wide">
63
- <div class="input-box">
64
- <input type="text" title="<?php echo $this->__('Street Address '.$_i) ?>" name="billing[street][]" id="billing:street<?php echo $_i?>" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet($_i)) ?>" class="input-text" />
65
- </div>
66
- </li>
67
- <?php endfor ?>
68
- <li class="fields">
69
- <div class="field">
70
- <label for="billing:city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
71
- <div class="input-box">
72
- <input type="text" title="<?php echo $this->__('City') ?>" name="billing[city]" value="<?php echo $this->htmlEscape($this->getAddress()->getCity()) ?>" class="input-text required-entry" id="billing:city" />
73
- </div>
74
- </div>
75
- <div class="field">
76
- <label for="billing:region_id" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
77
- <div class="input-box">
78
- <select id="billing:region_id" name="billing[region_id]" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
79
- <option value=""><?php echo $this->__('Please select region, state or province') ?></option>
80
- </select>
81
- <script type="text/javascript">
82
- //<![CDATA[
83
- $('billing:region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
84
- //]]>
85
- </script>
86
- <input type="text" id="billing:region" name="billing[region]" value="<?php echo $this->htmlEscape($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none;" />
87
- </div>
88
- </div>
89
- </li>
90
- <li class="fields">
91
- <div class="field">
92
- <label for="billing:postcode" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
93
- <div class="input-box">
94
- <input type="text" title="<?php echo $this->__('Zip/Postal Code') ?>" name="billing[postcode]" id="billing:postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" class="input-text validate-zip-international required-entry" />
95
- </div>
96
- </div>
97
- <div class="field">
98
- <label for="billing:country_id" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
99
- <div class="input-box">
100
- <?php echo $this->getCountryHtmlSelect('billing') ?>
101
- </div>
102
- </div>
103
- </li>
104
- <li lang="fields">
105
- <div class="field">
106
- <label for="billing:telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
107
- <div class="input-box">
108
- <input type="text" name="billing[telephone]" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text required-entry" id="billing:telephone" />
109
- </div>
110
- </div>
111
- <div class="field">
112
- <label for="billing:fax"><?php echo $this->__('Fax') ?></label>
113
- <div class="input-box">
114
- <input type="text" name="billing[fax]" value="<?php echo $this->htmlEscape($this->getAddress()->getFax()) ?>" title="<?php echo $this->__('Fax') ?>" class="input-text" id="billing:fax" />
115
- </div>
116
- </div>
117
- </li>
118
- <?php if(!$this->isCustomerLoggedIn()): ?>
119
-
120
- <?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
121
- <?php $_gender = $this->getLayout()->createBlock('customer/widget_gender') ?>
122
- <?php if (isset($dob) && isset($gender) && ($_dob->isEnabled() || $_gender->isEnabled())): ?>
123
- <li class="fields">
124
- <?php if ($_dob->isEnabled()): ?>
125
- <div class="field">
126
- <?php echo $_dob->setDate($this->getQuote()->getCustomerDob())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
127
- </div>
128
- <?php endif; ?>
129
- <?php if ($_gender->isEnabled()): ?>
130
- <div class="field">
131
- <?php echo $_gender->setGender($this->getQuote()->getCustomerGender())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
132
- </div>
133
- <?php endif ?>
134
- </li>
135
- <?php endif ?>
136
-
137
- <?php $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat') ?>
138
- <?php if ($_taxvat->isEnabled()): ?>
139
- <li>
140
- <?php echo $_taxvat->setTaxvat($this->getQuote()->getCustomerTaxvat())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
141
- </li>
142
- <?php endif ?>
143
-
144
- <li class="fields" id="register-customer-password">
145
- <div class="field">
146
- <label for="billing:customer_password" class="required"><em>*</em><?php echo $this->__('Password') ?></label>
147
- <div class="input-box">
148
- <input type="password" name="billing[customer_password]" id="billing:customer_password" title="<?php echo $this->__('Password') ?>" class="input-text required-entry validate-password" />
149
- </div>
150
- </div>
151
- <div class="field">
152
- <label for="billing:confirm_password" class="required"><em>*</em><?php echo $this->__('Confirm Password') ?></label>
153
- <div class="input-box">
154
- <input type="password" name="billing[confirm_password]" title="<?php echo $this->__('Confirm Password') ?>" id="billing:confirm_password" class="input-text required-entry validate-cpassword" />
155
- </div>
156
- </div>
157
- </li>
158
- <?php endif; ?>
159
-
160
-
161
- <?php
162
- if( !(Mage::getStoreConfig("OutsourceOnline_Captcha/captcha/when_loggedin") && (Mage::getSingleton('customer/session')->isLoggedIn())) )
163
- {
164
-
165
- if (Mage::getStoreConfig("OutsourceOnline_Captcha/captcha/customer")): ?>
166
- <?php echo $this->getChildHtml('captcha_ajax_part'); ?>
167
- <?php endif;
168
- }
169
- ?>
170
-
171
-
172
-
173
- <?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
174
- <li class="control">
175
- <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="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>
176
- </li>
177
- <?php else:?>
178
- <li class="no-display"><input type="hidden" name="billing[save_in_address_book]" value="1" /></li>
179
- <?php endif; ?>
180
- </ul>
181
- </fieldset>
182
- </li>
183
- <?php if ($this->canShip()): ?>
184
- <li class="control">
185
- <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>
186
- <li class="control">
187
- <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>
188
- </li>
189
- <?php endif; ?>
190
- </ul>
191
- <?php if (!$this->canShip()): ?>
192
- <input type="hidden" name="billing[use_for_shipping]" value="1" />
193
- <?php endif; ?>
194
- <div class="buttons-set" id="billing-buttons-container">
195
- <p class="required"><?php echo $this->__('* Required Fields') ?></p>
196
- <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>
197
- <span class="please-wait" id="billing-please-wait" style="display:none;">
198
- <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...') ?>
199
- </span>
200
- </div>
201
- </fieldset>
202
- </form>
203
- <script type="text/javascript">
204
- //<![CDATA[
205
- var billing = new Billing('co-billing-form', '<?php echo $this->getUrl('checkout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('checkout/onepage/saveBilling') ?>');
206
- var billingForm = new VarienForm('co-billing-form',true);
207
-
208
- //billingForm.setElementsRelation('billing:country_id', 'billing:region', '<?php echo $this->getUrl('directory/json/childRegion') ?>', '<?php echo $this->__('Select State/Province...') ?>');
209
- $('billing-address-select') && billing.newAddress(!$('billing-address-select').value);
210
- <?php if (version_compare(Mage::getVersion(), '1.8', '>=')) //magento 1.8 doesnt have js variable countryRegions
211
- {?>
212
- //alert('<?php echo Mage::getVersion();?>');
213
- var billingRegionUpdater = new RegionUpdater('billing:country_id', 'billing:region', 'billing:region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'billing:postcode');
214
- <?php }
215
- else
216
- {?>
217
- var billingRegionUpdater = new RegionUpdater('billing:country_id', 'billing:region', 'billing:region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'billing:postcode');
218
- <?php
219
- }
220
- ?>
221
-
222
- //]]>
223
- </script>
 
 
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
- * Outsource Online Captcha Extension
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-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
- * @category Outsource Online
16
- * @package OutsourceOnline_Captcha
17
- * @author Sreekanth Dayanand
18
- * @copyright Copyright (c) 2010 Outsource Online. (http://www.outsource-online.net)
19
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
- */
21
- ?>
22
- <?php
23
- /**
24
- * Create account form template
25
- *
26
- * @see Mage_Customer_Block_Form_Register
27
- */
28
- ?>
29
- <div class="page-head">
30
- <h3><?php echo $this->__('Create an Account') ?></h3>
31
- </div>
32
- <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
33
- <form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="form-validate" onSubmit="return checkOSOLCaptcha(dataForm);">
34
- <fieldset class="group-select wide">
35
- <input type="hidden" name="success_url" value="<?php echo $this->getSuccessUrl() ?>" />
36
- <input type="hidden" name="error_url" value="<?php echo $this->getErrorUrl() ?>" />
37
- <h4 class="legend"><?php echo $this->__('Personal Information') ?></h4>
38
- <ul>
39
- <li>
40
- <?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getFormData())->toHtml() ?>
41
- </li>
42
- <li>
43
- <div class="input-box">
44
- <label for="email_address"><?php echo $this->__('Email Address') ?> <span class="required">*</span></label><br/>
45
- <input type="text" name="email" id="email_address" value="<?php echo $this->htmlEscape($this->getFormData()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="validate-email required-entry input-text" />
46
- </div>
47
- </li>
48
- <?php if ($this->isNewsletterEnabled()): ?>
49
- <li>
50
- <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 ?> />
51
- <label for="is_subscribed"><?php echo $this->__('Sign Up for Newsletter') ?></label>
52
- </li>
53
- <?php endif ?>
54
- <?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
55
- <?php if ($_dob->isEnabled()): ?>
56
- <li><?php echo $_dob->setDate($this->getFormData()->getDob())->toHtml() ?></li>
57
- <?php endif ?>
58
- <?php $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat') ?>
59
- <?php if ($_taxvat->isEnabled()): ?>
60
- <li><?php echo $_taxvat->setTaxvat($this->getFormData()->getTaxvat())->toHtml() ?></li>
61
- <?php endif ?>
62
- </ul>
63
- </fieldset>
64
- <?php if($this->getShowAddressFields()): ?>
65
- <input type="hidden" name="create_address" value="1" />
66
- <fieldset class="group-select wide">
67
- <h4 class="legend"><?php echo $this->__('Address Information') ?></h4>
68
- <ul>
69
- <li>
70
- <div class="input-box">
71
- <label for="company"><?php echo $this->__('Company') ?></label><br />
72
- <input type="text" name="company" id="company" value="<?php echo $this->htmlEscape($this->getFormData()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text" />
73
- </div>
74
- <div class="input-box">
75
- <label for="lastname"><?php echo $this->__('Telephone') ?> <span class="required">*</span></label><br />
76
- <input type="text" name="telephone" id="telephone" value="<?php echo $this->htmlEscape($this->getFormData()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="required-entry input-text" />
77
- </div>
78
- </li>
79
- <li>
80
- <label for="street_1"><?php echo $this->__('Street Address') ?> <span class="required">*</span></label><br />
81
- <input type="text" name="street[]" value="<?php echo $this->htmlEscape($this->getFormData()->getStreet(1)) ?>" title="<?php echo $this->__('Street Address') ?>" id="street_1" class="required-entry input-text" />
82
- </li>
83
- <?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
84
- <li>
85
- <input type="text" name="street[]" value="<?php echo $this->htmlEscape($this->getFormData()->getStreet($_i)) ?>" title="<?php echo $this->__('Street Address '.$_i) ?>" id="street_<?php echo $_i?>" class="input-text" />
86
- <?php endfor ?>
87
- </li>
88
- <li>
89
- <div class="input-box">
90
- <label for="city"><?php echo $this->__('City') ?> <span class="required">*</span></label><br />
91
- <input type="text" name="city" value="<?php echo $this->htmlEscape($this->getFormData()->getCity()) ?>" title="<?php echo $this->__('City') ?>" class="required-entry input-text" id="city" />
92
- </div>
93
- <div class="input-box">
94
- <label for="region_id"><?php echo $this->__('State/Province') ?> <span class="required">*</span></label><br />
95
- <select id="region_id" name="region_id" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none">
96
- <option value=""><?php echo $this->__('Please select region, state or province') ?></option>
97
- </select>
98
- <script type="text/javascript">
99
- $('region_id').setAttribute('defaultValue', "<?php echo $this->getFormData()->getRegionId() ?>");
100
- </script>
101
- <input type="text" id="region" name="region" value="<?php echo $this->htmlEscape($this->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none" />
102
- </div>
103
- </li>
104
- <li>
105
- <div class="input-box">
106
- <label for="zip"><?php echo $this->__('Zip/Postal Code') ?> <span class="required">*</span></label><br/>
107
- <input type="text" name="postcode" value="<?php echo $this->htmlEscape($this->getFormData()->getPostcode()) ?>" title="<?php echo $this->__('Zip/Postal Code') ?>" id="zip" class="validate-zip-international required-entry input-text" />
108
- </div>
109
- <div class="input-box">
110
- <label for="country"><?php echo $this->__('Country') ?> <span class="required">*</span></label><br/>
111
- <?php echo $this->getCountryHtmlSelect() ?>
112
- </div>
113
- </li>
114
- </ul>
115
- </fieldset>
116
- <input type="hidden" name="default_billing" value="1" />
117
- <input type="hidden" name="default_shipping" value="1" />
118
- <?php endif; ?>
119
- <fieldset class="group-select wide">
120
- <h4 class="legend"><?php echo $this->__('Login Information') ?></h4>
121
- <ul>
122
- <li>
123
- <div class="input-box">
124
- <label for="password"><?php echo $this->__('Password') ?> <span class="required">*</span></label><br/>
125
- <input type="password" name="password" id="password" title="<?php echo $this->__('Password') ?>" class="required-entry validate-password input-text" />
126
- </div>
127
- <div class="input-box">
128
- <label for="confirmation"><?php echo $this->__('Confirm Password') ?> <span class="required">*</span></label><br />
129
- <input type="password" name="confirmation" title="<?php echo $this->__('Confirm Password') ?>" id="confirmation" class="required-entry validate-cpassword input-text" />
130
- </div>
131
- </li>
132
- </ul>
133
- </fieldset>
134
-
135
- <?php
136
- if (Mage::getStoreConfig("OutsourceOnline_Captcha/captcha/customer")): ?>
137
- <?php echo $this->getChildHtml('captcha_ajax_part'); ?>
138
- <?php endif; ?>
139
-
140
- <div class="button-set">
141
- <p class="required"><?php echo $this->__('* Required Fields') ?></p>
142
- <a href="<?php echo $this->getBackUrl() ?>" class="left">&laquo; <?php echo $this->__('Back') ?></a>
143
- <button class="form-button" type="submit"><span><?php echo $this->__('Submit') ?></span></button>
144
- </div>
145
- </form>
146
- <script type="text/javascript">
147
- //<![CDATA[
148
- var dataForm = new VarienForm('form-validate', true);
149
- <?php if($this->getShowAddressFields()): ?>
150
- new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>);
151
- <?php endif; ?>
152
- //]]>
153
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>&laquo; </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
- * Outsource Online Captcha Extension
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-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
- * @category Outsource Online
16
- * @package OutsourceOnline_Captcha
17
- * @author Sreekanth Dayanand
18
- * @copyright Copyright (c) 2010 Outsource Online. (http://www.outsource-online.net)
19
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
- */
21
-
22
- /**
23
- * Send to friend form
24
- *
25
- * @see Mage_Sendfriend_Block_Index
26
- */
27
- ?>
28
-
29
- <script type="text/javascript">
30
- //<![CDATA[
31
- i=0;
32
- var recipCount = 1;
33
- var maxRecip = <?php echo $this->getMaxRecipients() ?>;
34
- function remove_recipient(i){
35
- $('recipients_name'+i).up(2).remove();
36
- recipCount--;
37
- if(recipCount<maxRecip && maxRecip != 0) {
38
- $('add_recipient_button').show();
39
- $('max_recipient_message').hide();
40
- }
41
- return false;
42
- }
43
-
44
- function add_recipient(){
45
- ul = $('recipients_options');
46
- var li_mail = Element.extend(document.createElement("LI"));
47
- li_mail.addClassName('addElement');
48
- li_mail.innerHTML = '<div align="right"><a href="delete_email" onclick="remove_recipient('+i+');return false"><img src="<?php echo $this->getSkinUrl('images/list_remove_btn.gif') ?>" alt="<?php echo $this->__('Remove Email') ?>"/><\/a><\/div>'
49
- li_mail.innerHTML += '<div class="left"><label for="recipients_name"><?php echo $this->__('Name:') ?> <span class="required">*<\/span><\/label><br /><div style="width:250px"><input name="recipients[name][]" type="text" class="input-text required-entry" id="recipients_name'+i+'" style="width:250px;" /><\/div><br /><br /><\/div>';
50
- li_mail.innerHTML += '<div class="right"><label for="recipients_email"><?php echo $this->__('Email Address:') ?><span class="required">*<\/span><\/label><br /><div style="width:250px"><input name="recipients[email][]" value="" title="<?php echo $this->__('Email Address') ?>" id="recipients_email'+i+'" type="text" class="input-text required-entry validate-email" style="width:250px;" /><\/div><\/div>';
51
- i++;
52
- recipCount++;
53
- if(recipCount>=maxRecip && maxRecip != 0) {
54
- $('add_recipient_button').hide();
55
- $('max_recipient_message').show();
56
- }
57
-
58
- ul.appendChild(li_mail);
59
- }
60
- //]]>
61
- </script>
62
-
63
- <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
64
- <div class="page-head">
65
- <h3><?php echo $this->__('Email to a Friend') ?></h3>
66
- </div>
67
- <form action="<?php echo $this->getUrl('*/*/sendmail', array('id'=>$this->getProductId(), 'cat_id'=>$this->getCategoryId())) ?>" method="post" id="product_sendtofriend_form" onSubmit="return checkOSOLCaptcha(productSendtofriendForm);">
68
- <div class="col-1 login-box">
69
- <div class="col-1 registered-users">
70
- <div class="content ">
71
- <div>
72
- <h4><?php echo $this->__('Sender:') ?></h4>
73
- <ul class="form-list" id="sender_options">
74
- <li>
75
- <div class="left">
76
- <label for="sender_name"><?php echo $this->__('Name:') ?> <span class="required">*</span></label><br/>
77
- <div style="width:250px"><input name="sender[name]" value="<?php echo $this->htmlEscape($this->getUserName()) ?>" title="<?php echo $this->__('Name') ?>" id="sender_name" type="text" class="input-text required-entry" style="width:250px;" /></div>
78
- </div>
79
- <div class="right">
80
- <label for="sender_email"><?php echo $this->__('Email:') ?> <span class="required">*</span></label><br/>
81
- <div style="width:250px"><input name="sender[email]" value="<?php echo $this->htmlEscape($this->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" id="sender_email" type="text" class="input-text required-entry validate-email" style="width:250px;" /></div>
82
- </div>
83
- </li>
84
- <li>
85
- <label for="sender_message"><?php echo $this->__('Message:') ?> <span class="required">*</span></label><br/>
86
- <textarea name="sender[message]" class="input-text required-entry" id="sender_message" cols="3" rows="3" style="width:100%;height:100px"><?php echo $this->htmlEscape($this->getFormData()->getData('sender/message'))?></textarea>
87
- </li>
88
- </ul>
89
- </div>
90
- <div>
91
- <div>
92
- <br />
93
- <h4><?php echo $this->__('Recipient:') ?></h4>
94
- <ul class="form-list" id="recipients_options">
95
- <li>
96
- <div class="left">
97
- <label for="recipients_name"><?php echo $this->__('Name:') ?> <span class="required">*</span></label><br/>
98
- <div style="width:250px"><input name="recipients[name][]" type="text" class="input-text required-entry" id="recipients_name" style="width:250px;" /></div><br /><br />
99
- </div>
100
- <div class="right">
101
- <label for="recipients_email"><?php echo $this->__('Email Address:') ?> <span class="required">*</span></label><br/>
102
- <div style="width:250px"><input name="recipients[email][]" value="" title="<?php echo $this->__('Email Address') ?>" id="recipients_email" type="text" class="input-text required-entry validate-email" style="width:250px;" /></div>
103
- </div>
104
- </li>
105
- </ul>
106
- <div id="max_recipient_message" style="display:none">
107
- <?php if ($this->getMaxRecipients()): ?>
108
- <?php echo $this->__('Maximum %d email addresses allowed.', $this->getMaxRecipients()) ?>
109
- <?php endif; ?>
110
- </div>
111
- <?php if (1 < $this->getMaxRecipients()): ?>
112
- <div id="add_recipient_button">
113
- <button class="form-button" onclick="add_recipient();" type="button"><span><?php echo $this->__('Add Recipient') ?></span></button>
114
- </div>
115
- <?php endif; ?>
116
- </div>
117
- </div>
118
- <div style="clear:both"></div>
119
- </div>
120
-
121
- <?php // recaptcha
122
- if( !(Mage::getStoreConfig("OutsourceOnline_Captcha/captcha/when_loggedin") && (Mage::getSingleton('customer/session')->isLoggedIn())) )
123
- {
124
- if (Mage::getStoreConfig("OutsourceOnline_Captcha/captcha/sendfriend"))
125
- echo $this->getChildHtml('captcha_ajax_part');
126
- }
127
- ?>
128
-
129
- <div class="button-set">
130
- <button class="form-button right" type="submit"><span><?php echo $this->__('Send email') ?></span></button>
131
- </div>
132
- </div>
133
- </div>
134
- </form>
135
- <script type="text/javascript">
136
- var productSendtofriendForm = new VarienForm('product_sendtofriend_form');
137
- productSendtofriendForm.submit = function() {
138
- if(this.validator.validate()) {
139
- this.form.submit();
140
- }
141
- }.bind(productSendtofriendForm);
142
- </script>
 
 
 
 
 
 
 
 
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>&laquo; </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</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>updated to rectify an error caused due to javascript changes in magento 1.8
12
- Fixed a small bug in OnepageController.php</notes>
 
 
 
13
  <authors><author><name>Sreekanth Dayanand</name><user>auto-converted</user><email>blogspot@outsource-online.net</email></author></authors>
14
- <date>2014-01-15</date>
15
- <time>11:20:29</time>
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="acc889439f7f2375c3c55bfd55e7e05a"/><file name="form.phtml" hash="c6c74543a1859affe1c5051516e76da4"/><file name="onepage_billing.phtml" hash="60c45e8b4683ecb4f7a7cda1cf741d2a"/><file name="register.phtml" hash="9140614281ccfd7b8cbc238a34048d6b"/><file name="send.phtml" hash="81196f45080cdfec3741bcab351b92c8"/></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>
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>