Changeset 470701
- Timestamp:
- 12/03/2011 09:07:38 PM (14 years ago)
- Location:
- price-calc/trunk
- Files:
-
- 5 edited
-
ajax/front.js (modified) (2 diffs)
-
control/Mailer.php (modified) (1 diff)
-
price-calc.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
templates/front.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
price-calc/trunk/ajax/front.js
r176167 r470701 206 206 207 207 function printWindow() { 208 var all_with_contact = ttpc_all.slice().concat( ttpc_contact ); 208 var all_with_contact = ttpc_all.slice(); 209 if(jQuery("#company_mail").is(':checked')) { 210 all_with_contact = all_with_contact.concat( ttpc_contact ); 211 } 209 212 210 213 if( !validate_extra() ) … … 216 219 } 217 220 var values=''; 218 for( var idx=0; idx< ttpc_all.length; idx++ ) {221 for( var idx=0; idx<all_with_contact.length; idx++ ) { 219 222 var id = all_with_contact[idx]; 220 223 var value = jQuery("#" + id).val(); -
price-calc/trunk/control/Mailer.php
r135969 r470701 14 14 'X-Mailer: PHP/' . phpversion(); 15 15 16 return @ mail( $to, $subject, $message, $headers );16 return @wp_mail( $to, $subject, $message, $headers ); 17 17 } 18 18 } -
price-calc/trunk/price-calc.php
r176167 r470701 113 113 function price_calc_get_from_request( $id ) { 114 114 $value = $_REQUEST[$id]; 115 if(function_exists('get_magic_quotes_gpc')) 116 if(get_magic_quotes_gpc()) 117 $value = stripslashes( $value ); 115 $value = stripslashes( $value ); 118 116 return $value; 119 117 } -
price-calc/trunk/readme.txt
r176167 r470701 4 4 Tags: price, calculator, calculate, calculation, product, variations 5 5 Requires at least: 2.8 6 Tested up to: 2.8.67 Stable tag: 0.6. 2.16 Tested up to: 3.2.1 7 Stable tag: 0.6.3 8 8 9 9 "price-calc" is a WordPress plug-in that shows a nice inter-active price calculator for your product variations on any post or page. … … 15 15 [price-calc] 16 16 mark-up anywhere in your text. The user gets a nice interactive form to choose all the characteristics he needs. When he's ready he can see the quote instantly on the screen, print it out or get it by email. 17 18 PLEASE NOTE: There will not be any further development of this software. It will be replaced by [Jazzy Forms](http://www.l90r.com/posts/jazzy-forms). 17 19 18 20 Features are: … … 86 88 * Bug-fixes 87 89 * Fixing problems with "magic quotes" 90 91 = 0.6.3 = 92 * Show contact information on print page 93 * Improve E-Mail compatibility -
price-calc/trunk/templates/front.php
r175183 r470701 140 140 <tr> 141 141 <td ><?php pc_phrase('fullname') ?></td> 142 <td><input name="fname" type="text" /> <?php pc_phrase('required') ?></td>142 <td><input name="fname" id="fname" type="text" /> <?php pc_phrase('required') ?></td> 143 143 </tr> 144 144 <tr> 145 145 <td ><?php pc_phrase('number') ?></td> 146 <td><input name="cno" type="text" /> <?php pc_phrase('required') ?></td>146 <td><input name="cno" id="cno" type="text" /> <?php pc_phrase('required') ?></td> 147 147 </tr> 148 148 <tr> 149 149 <td ><?php pc_phrase('email') ?></td> 150 <td><input name="email" type="text" /> <?php pc_phrase('required') ?></td>150 <td><input name="email" id="email" type="text" /> <?php pc_phrase('required') ?></td> 151 151 </tr> 152 152 <tr> 153 153 <td ><?php pc_phrase('address') ?></td> 154 <td><input name="address" type="text" /></td>154 <td><input name="address" id="address" type="text" /></td> 155 155 </tr> 156 156 <tr> 157 157 <td ><?php pc_phrase('city') ?></td> 158 <td><input name="city" type="text" /></td>158 <td><input name="city" id="city" type="text" /></td> 159 159 </tr> 160 160 <tr> 161 161 <td ><?php pc_phrase('state') ?></td> 162 <td><input name="state" type="text" /></td>162 <td><input name="state" id="state" type="text" /></td> 163 163 </tr> 164 164 <tr> 165 165 <td ><?php pc_phrase('comments') ?></td> 166 <td><textarea style="width: 300px; height: 150px;" name="comments" ></textarea></td>166 <td><textarea style="width: 300px; height: 150px;" name="comments" id="comments"></textarea></td> 167 167 </tr> 168 168 </table>
Note: See TracChangeset
for help on using the changeset viewer.