[ Index ] |
PHP Cross Reference of phpwcms V1.5.0 _r431 (28.01.12) |
[Summary view] [Print] [Text view]
1 <?php 2 /************************************************************************************* 3 Copyright notice 4 5 (c) 2002-2012 Oliver Georgi <oliver@phpwcms.de> // All rights reserved. 6 7 This script is part of PHPWCMS. The PHPWCMS web content management system is 8 free software; you can redistribute it and/or modify it under the terms of 9 the GNU General Public License as published by the Free Software Foundation; 10 either version 2 of the License, or (at your option) any later version. 11 12 The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html 13 A copy is found in the textfile GPL.txt and important notices to the license 14 from the author is found in LICENSE.txt distributed with these scripts. 15 16 This script is distributed in the hope that it will be useful, but WITHOUT ANY 17 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 18 PARTICULAR PURPOSE. See the GNU General Public License for more details. 19 20 This copyright notice MUST APPEAR in all copies of the script! 21 *************************************************************************************/ 22 23 // ---------------------------------------------------------------- 24 // obligate check for phpwcms constants 25 if (!defined('PHPWCMS_ROOT')) { 26 die("You Cannot Access This Script Directly, Have a Nice Day."); 27 } 28 // ---------------------------------------------------------------- 29 30 31 ?> 32 <form action="<?php echo shop_url('controller=pref'); ?>" method="post" class="editform1"> 33 34 <table border="0" cellpadding="0" cellspacing="0" width="100%" summary=""> 35 36 <!-- Frontend Language Support --> 37 <tr> 38 <td align="right" class="chatlist tdtop4"><?php echo $BL['be_profile_label_lang'] ?>: </td> 39 <td><table summary="" cellpadding="0" cellspacing="0" border="0"> 40 <tr> 41 <td><input type="checkbox" name="pref_felang" id="pref_felang" value="1"<?php is_checked('1', $plugin['data']['shop_pref_felang']) ?> onchange="enableSubmit();" /></td> 42 <td class="f10"><label for="pref_felang"><?php echo $BLM['shopprod_lang_support'] . ' (' . strtoupper(implode('/', $phpwcms['allowed_lang'])) . ')' ?></label></td> 43 </tr> 44 </table></td> 45 46 </tr> 47 48 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr> 49 50 <tr> 51 <td align="right" class="chatlist"><?php echo $BLM['shopprod_currency'] ?>: </td> 52 <td><table cellpadding="0" cellspacing="0" border="0" summary=""> 53 54 <tr> 55 <td><input name="pref_currency" type="text" id="pref_currency" class="v12 width125" value="<?php echo html_entities($plugin['data']['shop_pref_currency']) ?>" size="10" maxlength="10" onchange="enableSubmit();" /></td> 56 <td class="chatlist"> EUR, USD, €, $, £, ¥</td> 57 </tr> 58 59 </table></td> 60 </tr> 61 62 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr> 63 64 <tr> 65 <td align="right" class="chatlist"><?php echo $BLM['shopprod_unit'] . ' - ' . $BLM['shopprod_weight'] ?>: </td> 66 <td><table cellpadding="0" cellspacing="0" border="0" summary=""> 67 68 <tr> 69 <td><input name="pref_unit_weight" type="text" id="pref_unit_weight" class="v12 width125" value="<?php echo html_specialchars($plugin['data']['shop_pref_unit_weight']) ?>" size="10" maxlength="10" onchange="enableSubmit();" /></td> 70 <td class="chatlist"> <?php echo $BLM['shopprod_units_weight'] ?></td> 71 </tr> 72 73 </table></td> 74 </tr> 75 76 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr> 77 78 <tr> 79 <td align="right" class="chatlist tdtop4"><?php echo $BLM['shopprod_vat_rates'] ?>: </td> 80 <td><table cellpadding="0" cellspacing="0" border="0" summary=""> 81 82 <tr> 83 <td><textarea name="pref_vat" id="pref_vat" class="v12 width125 right" onchange="enableSubmit();" rows="3"><?php 84 85 foreach( $plugin['data']['shop_pref_vat'] as $value ) { 86 echo number_format($value, 2, $BLM['dec_point'], $BLM['thousands_sep']) . LF; 87 } 88 ?></textarea></td> 89 <td class="chatlist tdtop4"> %</td> 90 </tr> 91 92 </table></td> 93 </tr> 94 95 96 97 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr> 98 99 <tr> 100 <td align="right" class="chatlist"><?php echo $BLM['shopprod_email_to'] ?>: </td> 101 <td><input name="pref_email_to" type="text" id="pref_email_to" class="v12 width375" value="<?php echo html_specialchars(str_replace(';', '; ', $plugin['data']['shop_pref_email_to'])) ?>" size="30" maxlength="200" onchange="enableSubmit();" /></td> 102 </tr> 103 104 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr> 105 106 <tr> 107 <td align="right" class="chatlist"><?php echo $BLM['shopprod_email_from'] ?>: </td> 108 <td><input name="pref_email_from" type="text" id="pref_email_from" class="v12 width375" value="<?php echo html_specialchars($plugin['data']['shop_pref_email_from']) ?>" size="30" maxlength="200" onchange="enableSubmit();" /></td> 109 </tr> 110 111 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr> 112 113 <tr> 114 <td align="right" class="chatlist"><?php echo $BLM['shopprod_id_shop'] ?>: </td> 115 <td><input name="pref_shop_id" type="text" id="pref_shop_id" class="v12 width375" value="<?php echo html_specialchars($plugin['data']['shop_pref_id_shop']) ?>" size="30" maxlength="200" onchange="enableSubmit();" /></td> 116 </tr> 117 118 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr> 119 120 <tr> 121 <td align="right" class="chatlist"><?php echo $BLM['shopprod_id_cart'] ?>: </td> 122 <td><input name="pref_cart_id" type="text" id="pref_cart_id" class="v12 width375" value="<?php echo html_specialchars($plugin['data']['shop_pref_id_cart']) ?>" size="30" maxlength="200" onchange="enableSubmit();" /></td> 123 </tr> 124 125 126 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr> 127 128 <tr> 129 <td align="right" class="chatlist" valign="top"><?php echo $BLM['shopprod_shipping'] ?>: </td> 130 <td><table cellpadding="0" cellspacing="0" border="0" summary=""> 131 132 <tr> 133 <td class="chatlist"><?php echo $BLM['shopprod_weight'].', '.$BLM['shopprod_weight_max'] ?> </td> 134 <td class="chatlist"><?php echo $BLM['shopprod_net'] ?> </td> 135 <td class="chatlist"><?php echo $BLM['shopprod_vat'] ?> %</td> 136 </tr> 137 <?php 138 for( $x = 0; $x <= 4; $x++ ) { 139 140 echo ' 141 <tr> 142 <td class="tdtop3"><input name="pref_shipping_weight['.$x.']" type="text" class="v12 width100" value="' . html_specialchars( @number_format($plugin['data']['shop_pref_shipping'][$x]['weight'], 3, $BLM['dec_point'], $BLM['thousands_sep'] ) ) . '" size="10" maxlength="10" onchange="enableSubmit();" /> </td> 143 <td class="tdtop3"><input name="pref_shipping_net['.$x.']" type="text" class="v12 width100" value="' . html_specialchars( @number_format($plugin['data']['shop_pref_shipping'][$x]['net'], 3, $BLM['dec_point'], $BLM['thousands_sep'] ) ) . '" size="10" maxlength="10" onchange="enableSubmit();" /> </td> 144 <td class="tdtop3"><input name="pref_shipping_vat['.$x.']" type="text" class="v12 width100" value="' . html_specialchars( @number_format($plugin['data']['shop_pref_shipping'][$x]['vat'], 2, $BLM['dec_point'], $BLM['thousands_sep'] ) ) . '" size="10" maxlength="10" onchange="enableSubmit();" /></td> 145 </tr> 146 '; 147 148 } 149 ?> 150 151 </table></td> 152 </tr> 153 154 155 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr> 156 157 <!-- Low order surcharge --> 158 <tr> 159 <td align="right" class="chatlist tdtop4"><?php echo $BLM['shopprod_loworder'] ?>: </td> 160 <td><table summary="" cellpadding="0" cellspacing="0" border="0"> 161 <tr> 162 <td><input type="checkbox" name="pref_loworder" id="pref_loworder" value="1"<?php is_checked('1', $plugin['data']['shop_pref_loworder']['loworder']) ?> onchange="enableSubmit();" /></td> 163 <td align="right" class="chatlist"> <?php echo trim($BLM['shopprod_loworder_under'].' '.html_entities($plugin['data']['shop_pref_currency'])) ?>: </td> 164 <td><input name="pref_loworder_under" type="text" id="pref_loworder_under" class="v12 width60" value="<?php echo html_specialchars( @number_format($plugin['data']['shop_pref_loworder']['under'], 2, $BLM['dec_point'], $BLM['thousands_sep'] ) ) ?>" size="10" maxlength="10" onchange="enableSubmit();" /></td> 165 <td align="right" class="chatlist"> <?php echo $BLM['shopprod_loworder_charge'] ?>: </td> 166 <td><input name="pref_loworder_charge" type="text" id="pref_loworder_charge" class="v12 width50" value="<?php echo html_specialchars( @number_format($plugin['data']['shop_pref_loworder']['charge'], 2, $BLM['dec_point'], $BLM['thousands_sep'] ) ) ?>" size="10" maxlength="10" onchange="enableSubmit();" /></td> 167 <td class="chatlist"> <?php echo $BLM['shopprod_vat'] ?>: </td> 168 <td><input name="pref_loworder_vat" type="text" id="pref_loworder_vat" class="v12 width40" value="<?php echo html_specialchars( @number_format($plugin['data']['shop_pref_loworder']['vat'], 2, $BLM['dec_point'], $BLM['thousands_sep'] ) ) ?>" size="10" maxlength="10" onchange="enableSubmit();" /></td> 169 <td class="chatlist"> %</td> 170 </tr> 171 </table></td> 172 173 </tr> 174 175 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr> 176 177 <!-- Discount --> 178 <tr> 179 <td align="right" class="chatlist tdtop4"><?php echo $BLM['shopprod_discount'] ?>: </td> 180 <td><table summary="" cellpadding="0" cellspacing="0" border="0"> 181 <tr> 182 <td><input type="checkbox" name="pref_discount" id="pref_discount" value="1"<?php is_checked('1', $plugin['data']['shop_pref_discount']['discount']) ?> onchange="enableSubmit();" /></td> 183 <td> </td> 184 <td><input name="pref_discount_percent" type="text" id="pref_discount_percent" class="v12 width60" value="<?php echo html_specialchars( @number_format($plugin['data']['shop_pref_discount']['percent'], 2, $BLM['dec_point'], $BLM['thousands_sep'] ) ) ?>" size="10" maxlength="10" onchange="enableSubmit();" /></td> 185 <td align="right" class="chatlist"> %</td> 186 </tr> 187 </table></td> 188 189 </tr> 190 191 192 193 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr> 194 195 <tr> 196 <td align="right" class="chatlist tdtop4"><?php echo $BLM['shopprod_payment_method'] ?>: </td> 197 <td><table cellpadding="0" cellspacing="0" border="0" summary=""> 198 199 <tr> 200 <td><input type="checkbox" name="pref_payment_paypal" id="pref_payment_paypal" value="1"<?php is_checked(1, $plugin['data']['shop_pref_payment']['paypal']) ?> onchange="enableSubmit();" /></td> 201 <td><label for="pref_payment_paypal"> <?php echo $BLM['shopprod_payby_paypal'] ?> </label></td> 202 <td align="right" class="chatlist"><?php echo $BLM['shopprod_email_paypal'] ?>: </td> 203 <td><input name="pref_email_paypal" type="text" id="pref_email_paypal" class="v12 width175" value="<?php echo html_specialchars($plugin['data']['shop_pref_email_paypal']) ?>" size="30" maxlength="200" onchange="enableSubmit();" /></td> 204 </tr> 205 206 <tr><td colspan="4"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr> 207 208 <tr> 209 <td valign="top"><input type="checkbox" name="pref_payment_ccard" id="pref_payment_ccard" value="1"<?php is_checked(1, $plugin['data']['shop_pref_payment']['ccard']) ?> onchange="enableSubmit();" /></td> 210 <td class="tdtop4"><label for="pref_payment_ccard"> <?php echo $BLM['shopprod_payby_ccard'] ?> </label></td> 211 <td align="right" class="chatlist tdtop4"><?php echo $BLM['shopprod_supported_ccard'] ?>: </td> 212 <td><select name="pref_supported_ccard[]" id="pref_supported_ccard" size="4" multiple="multiple" onchange="enableSubmit();" class="v12 width175"> 213 214 <option value="americanexpress"<?php if(in_array('americanexpress', $plugin['data']['shop_pref_payment']['accepted_ccard'])) echo ' selected="selected"'; ?> style="margin-bottom:1px">American Express</option> 215 <option value="mastercard"<?php if(in_array('mastercard', $plugin['data']['shop_pref_payment']['accepted_ccard'])) echo ' selected="selected"'; ?> style="margin-bottom:1px">MasterCard/EuroCard</option> 216 <option value="visa"<?php if(in_array('visa', $plugin['data']['shop_pref_payment']['accepted_ccard'])) echo ' selected="selected"'; ?> style="margin-bottom:1px">Visa</option> 217 218 </select></td> 219 </tr> 220 221 <tr><td colspan="4"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr> 222 223 <tr> 224 <td><input type="checkbox" name="pref_payment_prepay" id="pref_payment_prepay" value="1"<?php is_checked(1, $plugin['data']['shop_pref_payment']['prepay']) ?> onchange="enableSubmit();" /></td> 225 <td><label for="pref_payment_prepay"> <?php echo $BLM['shopprod_payby_prepay'] ?> </label></td> 226 <td> </td> 227 <td> </td> 228 </tr> 229 230 <tr><td colspan="4"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr> 231 232 <tr> 233 <td><input type="checkbox" name="pref_payment_pod" id="pref_payment_pod" value="1"<?php is_checked(1, $plugin['data']['shop_pref_payment']['pod']) ?> onchange="enableSubmit();" /></td> 234 <td><label for="pref_payment_pod"> <?php echo $BLM['shopprod_payby_pod'] ?> </label></td> 235 <td> </td> 236 <td> </td> 237 </tr> 238 239 <tr><td colspan="4"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr> 240 241 <tr> 242 <td><input type="checkbox" name="pref_payment_onbill" id="pref_payment_onbill" value="1"<?php is_checked(1, $plugin['data']['shop_pref_payment']['onbill']) ?> onchange="enableSubmit();" /></td> 243 <td><label for="pref_payment_onbill"> <?php echo $BLM['shopprod_payby_onbill'] ?> </label></td> 244 <td> </td> 245 <td> </td> 246 </tr> 247 248 </table></td> 249 </tr> 250 251 252 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr> 253 254 <tr> 255 <td> </td> 256 <td><table summary="" cellpadding="1" cellspacing="0" border="0" bgcolor="#E7E8EB"> 257 <tr> 258 <td><input type="radio" name="pref_terms_format" id="pref_terms_text" value="0"<?php is_checked('0', $plugin['data']['shop_pref_terms_format']) ?> onchange="enableSubmit();" /></td> 259 <td class="f10"><label for="pref_terms_text">TEXT</label> </td> 260 <td><input type="radio" name="pref_terms_format" id="pref_terms_html" value="1"<?php is_checked('1', $plugin['data']['shop_pref_terms_format']) ?> onchange="enableSubmit();" /></td> 261 <td class="f10"><label for="pref_terms_html">HTML</label> </td> 262 </tr> 263 </table></td> 264 265 </tr> 266 267 <tr> 268 <td align="right" class="chatlist tdtop4"><?php echo $BLM['shopprod_terms'] ?>: </td> 269 <td><textarea name="pref_terms" id="pref_terms" class="v12 width375" onchange="enableSubmit();" rows="10"><?php 270 271 echo $plugin['data']['shop_pref_terms_format'] ? html_entities($plugin['data']['shop_pref_terms']) : html_specialchars($plugin['data']['shop_pref_terms']); 272 273 ?></textarea></td> 274 </tr> 275 276 277 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="18" /></td></tr> 278 27