Version Description
- First stable version released.
=
Download this release
Release Info
Developer | codepeople |
Plugin | Payment Form for PayPal Pro |
Version | 1.0.1 |
Comparing to | |
See all releases |
Version 1.0.1
- README.txt +166 -0
- captcha/captcha.php +173 -0
- captcha/font-1.ttf +0 -0
- captcha/font-2.ttf +0 -0
- captcha/font-3.ttf +0 -0
- captcha/font-4.ttf +0 -0
- cp_ppp.php +1452 -0
- cp_ppp_admin_int.php +723 -0
- cp_ppp_admin_int_list.inc.php +300 -0
- cp_ppp_admin_int_message_list.inc.php +230 -0
- cp_ppp_data_source.inc.php +342 -0
- cp_ppp_paypal_pro_int.inc.php +379 -0
- cp_ppp_public_int.inc.php +148 -0
- cp_ppp_scripts.js +3 -0
- css/cupertino/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png +0 -0
- css/cupertino/images/ui-bg_flat_15_cd0a0a_40x100.png +0 -0
- css/cupertino/images/ui-bg_glass_100_e4f1fb_1x400.png +0 -0
- css/cupertino/images/ui-bg_glass_50_3baae3_1x400.png +0 -0
- css/cupertino/images/ui-bg_glass_80_d7ebf9_1x400.png +0 -0
- css/cupertino/images/ui-bg_glass_80_eebd4d_1x400.png +0 -0
- css/cupertino/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png +0 -0
- css/cupertino/images/ui-bg_highlight-hard_70_000000_1x100.png +0 -0
- css/cupertino/images/ui-bg_highlight-soft_100_deedf7_1x100.png +0 -0
- css/cupertino/images/ui-bg_highlight-soft_25_ffef8f_1x100.png +0 -0
- css/cupertino/images/ui-icons_2694e8_256x240.png +0 -0
- css/cupertino/images/ui-icons_2e83ff_256x240.png +0 -0
- css/cupertino/images/ui-icons_3d80b3_256x240.png +0 -0
- css/cupertino/images/ui-icons_72a7cf_256x240.png +0 -0
- css/cupertino/images/ui-icons_ffffff_256x240.png +0 -0
- css/cupertino/jquery-ui-1.8.20.custom.css +565 -0
- css/style.css +105 -0
- css/stylepublic.css +80 -0
- images/Thumbs.db +0 -0
- images/blank.gif +0 -0
- images/colorpicker_background.png +0 -0
- images/colorpicker_hex.png +0 -0
- images/colorpicker_hsb_b.png +0 -0
- images/colorpicker_hsb_h.png +0 -0
- images/colorpicker_hsb_s.png +0 -0
- images/colorpicker_indic.gif +0 -0
- images/colorpicker_overlay.png +0 -0
- images/colorpicker_rgb_b.png +0 -0
- images/colorpicker_rgb_g.png +0 -0
- images/colorpicker_rgb_r.png +0 -0
- images/colorpicker_select.gif +0 -0
- images/colorpicker_submit.png +0 -0
- images/cp_form.gif +0 -0
- images/custom_background.png +0 -0
- images/custom_hex.png +0 -0
- images/custom_hsb_b.png +0 -0
- images/custom_hsb_h.png +0 -0
- images/custom_hsb_s.png +0 -0
- images/custom_indic.gif +0 -0
- images/custom_rgb_b.png +0 -0
- images/custom_rgb_g.png +0 -0
- images/custom_rgb_r.png +0 -0
- images/custom_submit.png +0 -0
- images/loading.gif +0 -0
- images/recycle_bin.png +0 -0
- images/select.png +0 -0
- images/select2.png +0 -0
- images/slider.png +0 -0
- images/tooltop.gif +0 -0
- js/fbuilder-loader-admin.php +83 -0
- js/fbuilder-loader-public.php +90 -0
- js/fbuilder-pro-admin.jquery.js +918 -0
- js/fbuilder-pro-public.jquery.js +338 -0
- js/fields-admin/000_category.form.js +4 -0
- js/fields-admin/001_category.ds.js +4 -0
- js/fields-admin/003_category.containers.js +4 -0
- js/fields-admin/00_jquery.parse.min.js +6 -0
- js/fields-admin/01_fbuilder.ftext.js +30 -0
- js/fields-admin/02_fbuilder.fcurrency.js +35 -0
- js/fields-admin/02_fbuilder.fnumber.js +33 -0
- js/fields-admin/03_fbuilder.femail.js +56 -0
- js/fields-admin/04_fbuilder.fdate.js +51 -0
- js/fields-admin/05_fbuilder.ftextarea.js +30 -0
- js/fields-admin/06_fbuilder.fcheck.js +26 -0
- js/fields-admin/07_fbuilder.fradio.js +27 -0
- js/fields-admin/08_fbuilder.fdropdown.js +27 -0
- js/fields-admin/09_fbuilder.ffile.js +28 -0
- js/fields-admin/10_fbuilder.fpassword.js +30 -0
- js/fields-admin/11_fbuilder.fphone.js +26 -0
- js/fields-admin/12_fbuilder.fcommentarea.js +24 -0
- js/fields-admin/13_fbuilder.fhidden.js +24 -0
- js/fields-admin/14_fbuilder.fsectionbreak.js +24 -0
- js/fields-admin/15_fbuilder.fpagebreak.js +23 -0
- js/fields-admin/16_fbuilder.fsummary.js +26 -0
- js/fields-admin/17_fbuilder.datasource.js +560 -0
- js/fields-admin/18_fbuilder.ftext.ds.js +23 -0
- js/fields-admin/19_fbuilder.femail.ds.js +22 -0
- js/fields-admin/20_fbuilder.ftextarea.ds.js +23 -0
- js/fields-admin/21_fbuilder.fcheck.ds.js +22 -0
- js/fields-admin/22_fbuilder.fradio.ds.js +23 -0
- js/fields-admin/23_fbuilder.fphone.ds.js +23 -0
- js/fields-admin/26_fbuilder.fdropdown.ds.js +23 -0
- js/fields-admin/27_fbuilder.fhidden.ds.js +24 -0
- js/fields-admin/28_fbuilder.fcontainer.js +96 -0
- js/fields-admin/29_fbuilder.ffieldset.fc.js +25 -0
- js/fields-admin/30_fbuilder.fdiv.fc.js +25 -0
- js/fields-public/03_fbuilder.femail.js +24 -0
- js/jQuery.stringify.js +50 -0
- js/jquery.caret.js +55 -0
- js/jquery.validate.js +1253 -0
- js/modules/index.html +0 -0
- languages/cpppp-af.mo +0 -0
- languages/cpppp-af.po +78 -0
- languages/cpppp-ar.mo +0 -0
- languages/cpppp-ar.po +75 -0
- languages/cpppp-az.mo +0 -0
- languages/cpppp-az.po +74 -0
- languages/cpppp-be_BY.mo +0 -0
- languages/cpppp-be_BY.po +80 -0
- languages/cpppp-bg_BG.mo +0 -0
- languages/cpppp-bg_BG.po +73 -0
- languages/cpppp-bn_IN.mo +0 -0
- languages/cpppp-bn_IN.po +76 -0
- languages/cpppp-bs_BA.mo +0 -0
- languages/cpppp-bs_BA.po +65 -0
- languages/cpppp-ca.mo +0 -0
- languages/cpppp-ca.po +73 -0
- languages/cpppp-ckb.mo +0 -0
- languages/cpppp-ckb.po +79 -0
- languages/cpppp-cs_CZ.mo +0 -0
- languages/cpppp-cs_CZ.po +73 -0
- languages/cpppp-da_DK.mo +0 -0
- languages/cpppp-da_DK.po +67 -0
- languages/cpppp-de_DE.mo +0 -0
- languages/cpppp-de_DE.po +71 -0
- languages/cpppp-el.mo +0 -0
- languages/cpppp-el.po +73 -0
- languages/cpppp-eo_EO.mo +0 -0
- languages/cpppp-eo_EO.po +69 -0
- languages/cpppp-es_ES.mo +0 -0
- languages/cpppp-es_ES.po +62 -0
- languages/cpppp-et.mo +0 -0
- languages/cpppp-et.po +73 -0
- languages/cpppp-eu.mo +0 -0
- languages/cpppp-eu.po +70 -0
- languages/cpppp-fa_IR.mo +0 -0
- languages/cpppp-fa_IR.po +73 -0
- languages/cpppp-fi.mo +0 -0
- languages/cpppp-fi.po +84 -0
- languages/cpppp-fr_FR.mo +0 -0
- languages/cpppp-fr_FR.po +72 -0
- languages/cpppp-ga_IE.mo +0 -0
- languages/cpppp-ga_IE.po +72 -0
- languages/cpppp-gl_ES.mo +0 -0
- languages/cpppp-gl_ES.po +74 -0
- languages/cpppp-gu_IN.mo +0 -0
- languages/cpppp-gu_IN.po +74 -0
- languages/cpppp-he_IL.mo +0 -0
- languages/cpppp-he_IL.po +73 -0
- languages/cpppp-hi_IN.mo +0 -0
- languages/cpppp-hi_IN.po +77 -0
- languages/cpppp-hr.mo +0 -0
- languages/cpppp-hr.po +73 -0
- languages/cpppp-hu_HU.mo +0 -0
- languages/cpppp-hu_HU.po +77 -0
- languages/cpppp-hy_AM.mo +0 -0
- languages/cpppp-hy_AM.po +69 -0
- languages/cpppp-id_ID.mo +0 -0
- languages/cpppp-id_ID.po +76 -0
- languages/cpppp-it_IT.mo +0 -0
- languages/cpppp-it_IT.po +72 -0
- languages/cpppp-ja.mo +0 -0
- languages/cpppp-ja.po +76 -0
- languages/cpppp-ka_GE.mo +0 -0
- languages/cpppp-ka_GE.po +73 -0
- languages/cpppp-ko_KR.mo +0 -0
- languages/cpppp-ko_KR.po +75 -0
- languages/cpppp-lt_LT.mo +0 -0
- languages/cpppp-lt_LT.po +75 -0
- languages/cpppp-lv.mo +0 -0
- languages/cpppp-lv.po +77 -0
- languages/cpppp-mk_MK.mo +0 -0
- languages/cpppp-mk_MK.po +73 -0
- languages/cpppp-ml_IN.mo +0 -0
- languages/cpppp-ml_IN.po +66 -0
- languages/cpppp-ms_MY.mo +0 -0
- languages/cpppp-ms_MY.po +70 -0
- languages/cpppp-mt_MT.mo +0 -0
- languages/cpppp-mt_MT.po +68 -0
- languages/cpppp-nb_NO.mo +0 -0
- languages/cpppp-nb_NO.po +71 -0
- languages/cpppp-nl_NL.mo +0 -0
- languages/cpppp-nl_NL.po +70 -0
- languages/cpppp-pa_IN.mo +0 -0
- languages/cpppp-pa_IN.po +75 -0
- languages/cpppp-pl_PL.mo +0 -0
- languages/cpppp-pl_PL.po +71 -0
- languages/cpppp-pt_BR.mo +0 -0
- languages/cpppp-pt_BR.po +65 -0
- languages/cpppp-pt_PT.mo +0 -0
- languages/cpppp-pt_PT.po +65 -0
- languages/cpppp-ro_RO.mo +0 -0
- languages/cpppp-ro_RO.po +79 -0
- languages/cpppp-ru_RU.mo +0 -0
- languages/cpppp-ru_RU.po +73 -0
- languages/cpppp-sk_SK.mo +0 -0
- languages/cpppp-sk_SK.po +72 -0
- languages/cpppp-sl_SI.mo +0 -0
- languages/cpppp-sl_SI.po +75 -0
- languages/cpppp-sq.mo +0 -0
- languages/cpppp-sq.po +72 -0
- languages/cpppp-sr_RS.mo +0 -0
- languages/cpppp-sr_RS.po +74 -0
- languages/cpppp-sv_SE.mo +0 -0
- languages/cpppp-sv_SE.po +78 -0
- languages/cpppp-ta.mo +0 -0
- languages/cpppp-ta.po +76 -0
- languages/cpppp-th.mo +0 -0
- languages/cpppp-th.po +76 -0
- languages/cpppp-tl.mo +0 -0
- languages/cpppp-tl.po +69 -0
- languages/cpppp-tr_TR.mo +0 -0
- languages/cpppp-tr_TR.po +74 -0
- languages/cpppp-uk.mo +0 -0
- languages/cpppp-uk.po +74 -0
- languages/cpppp-vi.mo +0 -0
- languages/cpppp-vi.po +73 -0
- languages/cpppp-zh_CN.mo +0 -0
- languages/cpppp-zh_CN.po +72 -0
- languages/cpppp-zh_TW.mo +0 -0
- languages/cpppp-zh_TW.po +72 -0
- templates/01/bg_top.png +0 -0
- templates/01/config.ini +5 -0
- templates/01/style.css +13 -0
- templates/01/thumbnail.jpg +0 -0
- templates/02/config.ini +5 -0
- templates/02/style.css +54 -0
- templates/02/thumbnail.png +0 -0
- templates/03/config.ini +5 -0
- templates/03/style.css +16 -0
- templates/03/thumbnail.jpg +0 -0
- templates/03/top_bg.png +0 -0
- templates/04/config.ini +5 -0
- templates/04/style.css +21 -0
- templates/04/thumbnail.jpg +0 -0
- templates/05/config.ini +5 -0
- templates/05/form_bg.jpg +0 -0
- templates/05/style.css +23 -0
- templates/05/thumbnail.png +0 -0
- templates/06/config.ini +5 -0
- templates/06/style.css +36 -0
- templates/06/thumbnail.jpg +0 -0
README.txt
ADDED
@@ -0,0 +1,166 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== Payment Form for PayPal Pro ===
|
2 |
+
Contributors: codepeople
|
3 |
+
Donate link: http://wordpress.dwbooster.com/forms/paypal-payment-pro-form
|
4 |
+
Tags: paypal,paypal pro,paypal advanced,pro,accept,credit,cards,card,payment,processing
|
5 |
+
Requires at least: 3.0.5
|
6 |
+
Tested up to: 4.2
|
7 |
+
Stable tag: trunk
|
8 |
+
License: GPLv2 or later
|
9 |
+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
+
|
11 |
+
Payment Form for PayPal Pro for accepting credit cards directly into your website without navigating to a PayPal page. Official Paypal Partner.
|
12 |
+
|
13 |
+
== Description ==
|
14 |
+
|
15 |
+
This plugin is for integrating **PayPal Pro** to accept credit cards directly into your website without navigating to a PayPal hosted payment page.
|
16 |
+
|
17 |
+
The PayPal integration available in this plugin **requires a PayPal Pro account**.
|
18 |
+
|
19 |
+
If you aren't sure if you have a **PayPal Pro account** or if you are looking for a classic **PayPal Standard** integration then use the [CP Contact Form with PayPal](http://wordpress.org/extend/plugins/cp-contact-form-with-paypal/) plugin.
|
20 |
+
|
21 |
+
You can check the differences betwen **PayPal Pro** and **PayPal Standard** at https://www.paypal.com/webapps/mpp/compare-business-products
|
22 |
+
|
23 |
+
**Special note:** This plugin has been developed by an Official PayPal Partner and it includes a special offer: Your PayPal Pro account fee will be waived by PayPal when you use this extension to accept the payments.
|
24 |
+
|
25 |
+
With **Payment Form for PayPal Pro** you can insert a form into a WordPress website and use it to process credit card payments **directly into your website** without navigating to an external payment page.
|
26 |
+
|
27 |
+
This plugin uses the PayPal Pro API to process the credit cards. The credit card related data is used only to process the payment through the payment API, it isn't stored in the website for keeping it secure.
|
28 |
+
|
29 |
+
Once the user has filled the form fields and clicks the submit button the payment is processed and the posted data (excluding the credit card related information) is saved into the WordPress database. The website administrator (the email indicated from the settings) will receive an email with the form data and the user will receive a confirmation/thank you email.
|
30 |
+
|
31 |
+
= Features: =
|
32 |
+
|
33 |
+
* Supports PayPal Pro to accept payments directly into your website without navigating to PayPal
|
34 |
+
* Supports many contact forms into the same WP website, each one with its own prices and settings.
|
35 |
+
* You can customize the notification email details, including from address, subject and content.
|
36 |
+
* Includes optional captcha verification.
|
37 |
+
* Supports HTML formatted emails (*)
|
38 |
+
* Can be tested with the PayPal Sandbox
|
39 |
+
* Exports the submissions to CSV/Excel
|
40 |
+
* Developer by an [Official PayPal Partner](https://www.paypal-marketing.com/paypal/html/hosted/emarketing/partner/directory/#k=net+factor&n=2000009361343&m=p).
|
41 |
+
|
42 |
+
= Proffesional Version Features: =
|
43 |
+
|
44 |
+
The following features aren't part of the free version. The following features are present only in the pro version
|
45 |
+
|
46 |
+
* Visual form builder: The free version includes the payment form with an email field plus the required PayPal fields. If you need a different form you should opt for the commercial version.
|
47 |
+
* In the commercial version PayPal Standard is supported in addition to PayPal Pro.
|
48 |
+
|
49 |
+
If you are interested in a version with the pro features you can get it here: http://wordpress.dwbooster.com/forms/paypal-payment-pro-form
|
50 |
+
|
51 |
+
= Language Support =
|
52 |
+
|
53 |
+
The Payment Form for PayPal Pro plugin is compatible with all charsets. The troubleshoot area contains options to change the encoding of the plugin database tables if needed.
|
54 |
+
|
55 |
+
Translations are supported through PO/MO files located in the Payment Form for PayPal Pro plugin folder "languages".
|
56 |
+
|
57 |
+
The following translations are already included in the plugin:
|
58 |
+
|
59 |
+
* Afrikaans (af)
|
60 |
+
* Albanian (sq)
|
61 |
+
* Arabic (ar)
|
62 |
+
* Armenian (hy_AM)
|
63 |
+
* Azerbaijani (az)
|
64 |
+
* Basque (eu)
|
65 |
+
* Belarusian (be_BY)
|
66 |
+
* Bosnian (bs_BA)
|
67 |
+
* Bulgarian (bg_BG)
|
68 |
+
* Catalan (ca)
|
69 |
+
* Central Kurdish (ckb)
|
70 |
+
* Chinese (China zh_CN)
|
71 |
+
* Chinese (Taiwan zh_TW)
|
72 |
+
* Croatian (hr)
|
73 |
+
* Czech (cs_CZ)
|
74 |
+
* Danish (da_DK)
|
75 |
+
* Dutch (nl_NL)
|
76 |
+
* Esperanto (eo_EO)
|
77 |
+
* Estonian (et)
|
78 |
+
* Finnish (fi)
|
79 |
+
* French (fr_FR)
|
80 |
+
* Galician (gl_ES)
|
81 |
+
* Georgian (ka_GE)
|
82 |
+
* German (de_DE)
|
83 |
+
* Greek (el)
|
84 |
+
* Gujarati (gu_IN)
|
85 |
+
* Hebrew (he_IL)
|
86 |
+
* Hindi (hi_IN)
|
87 |
+
* Hungarian (hu_HU)
|
88 |
+
* Indian Bengali (bn_IN)
|
89 |
+
* Indonesian (id_ID)
|
90 |
+
* Irish (ga_IE)
|
91 |
+
* Italian (it_IT)
|
92 |
+
* Japanese (ja)
|
93 |
+
* Korean (ko_KR)
|
94 |
+
* Latvian (lv)
|
95 |
+
* Lithuanian (lt_LT)
|
96 |
+
* Macedonian (mk_MK)
|
97 |
+
* Malay (ms_MY)
|
98 |
+
* Malayalam (ml_IN)
|
99 |
+
* Maltese (mt_MT)
|
100 |
+
* Norwegian (nb_NO)
|
101 |
+
* Persian (fa_IR)
|
102 |
+
* Polish (pl_PL)
|
103 |
+
* Portuguese Brazil(pt_BR)
|
104 |
+
* Portuguese (pt_PT)
|
105 |
+
* Punjabi (pa_IN)
|
106 |
+
* Russian (ru_RU)
|
107 |
+
* Romanian (ro_RO)
|
108 |
+
* Serbian (sr_RS)
|
109 |
+
* Slovak (sk_SK)
|
110 |
+
* Slovene (sl_SI)
|
111 |
+
* Spanish (es_ES)
|
112 |
+
* Swedish (sv_SE)
|
113 |
+
* Tagalog (tl)
|
114 |
+
* Tamil (ta)
|
115 |
+
* Thai (th)
|
116 |
+
* Turkish (tr_TR)
|
117 |
+
* Ukrainian (uk)
|
118 |
+
* Vietnamese (vi)
|
119 |
+
|
120 |
+
|
121 |
+
== Installation ==
|
122 |
+
|
123 |
+
To install Payment Form for PayPal Pro, follow these steps:
|
124 |
+
|
125 |
+
1. Download and unzip the Payment Form for PayPal Pro plugin
|
126 |
+
2. Upload the entire paypal-payment-pro-form/ directory to the /wp-content/plugins/ directory
|
127 |
+
3. Activate the Payment Form for PayPal Pro plugin through the Plugins menu in WordPress
|
128 |
+
4. Configure the PayPal contact form settings at the administration menu >> Settings >> Payment Form for PayPal Pro
|
129 |
+
5. To insert the PayPal contact form into some content or post use the icon that will appear when editing contents
|
130 |
+
|
131 |
+
== Frequently Asked Questions ==
|
132 |
+
|
133 |
+
= Q: Where can I find more info about this plugin? =
|
134 |
+
|
135 |
+
A: The product's page contains more information:
|
136 |
+
|
137 |
+
http://wordpress.dwbooster.com/forms/paypal-payment-pro-form
|
138 |
+
|
139 |
+
= Q: Where can I publish the PayPal Pro form with the PayPal button? =
|
140 |
+
|
141 |
+
A: You can publish the PayPal contact forms / PayPal button into pages, posts and as a widget in the sidebar.
|
142 |
+
|
143 |
+
= Q: I'm not receiving the emails after PayPal payment. =
|
144 |
+
|
145 |
+
A: Try first using a "from" email address that belongs to your website domain, this is the most common restriction applied in most hosting services.
|
146 |
+
|
147 |
+
If that doesn't work please check if your hosting service requires some specific configuration to send emails from PHP/WordPress websites. The plugin uses the settings specified into the WordPress website to deliver the emails, if your hosting has some specific requirements like a fixed "from" address or a custom "SMTP" server those settings must be configured into the WordPress website.
|
148 |
+
|
149 |
+
|
150 |
+
== Screenshots ==
|
151 |
+
|
152 |
+
1. PayPal Pro Forms List
|
153 |
+
2. PayPal Pro Form Settings
|
154 |
+
3. Inserting a PayPal Pro form into a page
|
155 |
+
4. Sample
|
156 |
+
|
157 |
+
== Changelog ==
|
158 |
+
|
159 |
+
= 1.0.1 =
|
160 |
+
* First stable version released.
|
161 |
+
|
162 |
+
|
163 |
+
== Upgrade Notice ==
|
164 |
+
|
165 |
+
= 1.0.1 =
|
166 |
+
* First stable version released.
|
captcha/captcha.php
ADDED
@@ -0,0 +1,173 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
PHP Captcha by Codepeople.net
|
4 |
+
http://www.codepeople.net
|
5 |
+
*/
|
6 |
+
|
7 |
+
if (!ini_get("zlib.output_compression")) ob_clean();
|
8 |
+
|
9 |
+
if (!isset($_GET["ps"])) $_GET["ps"] = '';
|
10 |
+
|
11 |
+
if ($_GET["hdwtest"] == "sessiontest")
|
12 |
+
{
|
13 |
+
session_start();
|
14 |
+
session_register("tmpvar");
|
15 |
+
if ($_GET["autocall"]!=1){
|
16 |
+
$_SESSION["tmpvar"] = "ok";
|
17 |
+
} else {
|
18 |
+
if ($_SESSION["tmpvar"]!="ok") {
|
19 |
+
die("Session Error");
|
20 |
+
} else {
|
21 |
+
die("Sessions works on your server!");
|
22 |
+
}
|
23 |
+
}
|
24 |
+
header("Location: ".$PHP_SELF."?hdwtest=sessiontest&autocall=1" );
|
25 |
+
exit;
|
26 |
+
}
|
27 |
+
|
28 |
+
if ($_GET["width"] == '' || !is_numeric($_GET["width"])) $_GET["width"] = "180";
|
29 |
+
if ($_GET["height"] == '' || !is_numeric($_GET["height"])) $_GET["height"] = "60";
|
30 |
+
if ($_GET["letter_count"] == ''|| !is_numeric($_GET["letter_count"])) $_GET["letter_count"] = "5";
|
31 |
+
if ($_GET["min_size"] == ''|| !is_numeric($_GET["min_size"])) $_GET["min_size"] = "35";
|
32 |
+
if ($_GET["max_size"] == ''|| !is_numeric($_GET["max_size"])) $_GET["max_size"] = "45";
|
33 |
+
if ($_GET["noise"] == ''|| !is_numeric($_GET["noise"])) $_GET["noise"] = "200";
|
34 |
+
if ($_GET["noiselength"] == ''|| !is_numeric($_GET["noiselength"])) $_GET["noiselength"] = "5";
|
35 |
+
if ($_GET["bcolor"] == '') $_GET["bcolor"] = "FFFFFF";
|
36 |
+
if ($_GET["border"] == '') $_GET["border"] = "000000";
|
37 |
+
|
38 |
+
//configuration
|
39 |
+
$imgX = $_GET["width"];
|
40 |
+
$imgY = $_GET["height"];
|
41 |
+
|
42 |
+
$letter_count = $_GET["letter_count"];
|
43 |
+
$min_size = $_GET["min_size"];
|
44 |
+
$max_size = $_GET["max_size"];
|
45 |
+
$noise = $_GET["noise"];
|
46 |
+
$noiselength = $_GET["noiselength"];
|
47 |
+
$bcolor = cpcff_decodeColor($_GET["bcolor"]);
|
48 |
+
$border = cpcff_decodeColor($_GET["border"]);
|
49 |
+
|
50 |
+
$noisecolor = 0xcdcdcd;
|
51 |
+
$random_noise_color= true;
|
52 |
+
$tcolor = cpcff_decodeColor("666666");
|
53 |
+
$random_text_color= true;
|
54 |
+
|
55 |
+
|
56 |
+
header("Cache-Control: no-store, no-cache, must-revalidate");
|
57 |
+
header("Pragma: no-cache");
|
58 |
+
|
59 |
+
function cpcff_decodeColor($hexcolor)
|
60 |
+
{
|
61 |
+
$color = hexdec($hexcolor);
|
62 |
+
$c["b"] = $color % 256;
|
63 |
+
$color = $color / 256;
|
64 |
+
$c["g"] = $color % 256;
|
65 |
+
$color = $color / 256;
|
66 |
+
$c["r"] = $color % 256;
|
67 |
+
return $c;
|
68 |
+
}
|
69 |
+
|
70 |
+
function cpcff_similarColors($c1, $c2)
|
71 |
+
{
|
72 |
+
return sqrt( pow($c1["r"]-$c2["r"],2) + pow($c1["g"]-$c2["g"],2) + pow($c1["b"]-$c2["b"],2)) < 125;
|
73 |
+
}
|
74 |
+
|
75 |
+
|
76 |
+
// USAGE
|
77 |
+
// if (empty($_POST['hdcaptcha']) || $_POST['hdcaptcha'] != $_SESSION['rand_code']) header("Location: /form.html");
|
78 |
+
|
79 |
+
session_start();
|
80 |
+
|
81 |
+
function cpcff_make_seed() {
|
82 |
+
list($usec, $sec) = explode(' ', microtime());
|
83 |
+
return (float) $sec + ((float) $usec * 100000);
|
84 |
+
}
|
85 |
+
mt_srand(cpcff_make_seed());
|
86 |
+
$randval = mt_rand();
|
87 |
+
|
88 |
+
$str = "";
|
89 |
+
$length = 0;
|
90 |
+
for ($i = 0; $i < $letter_count; $i++) {
|
91 |
+
$str .= chr(mt_rand(97, 122))." ";
|
92 |
+
}
|
93 |
+
$_SESSION['rand_code'.$_GET["ps"]] = str_replace(" ", "", $str);
|
94 |
+
|
95 |
+
setCookie('rand_code'.$_GET["ps"], md5(str_replace(" ", "", $str)), time()+36000,"/");
|
96 |
+
|
97 |
+
$image = imagecreatetruecolor($imgX, $imgY);
|
98 |
+
$backgr_col = imagecolorallocate($image, $bcolor["r"],$bcolor["g"],$bcolor["b"]);
|
99 |
+
$border_col = imagecolorallocate($image, $border["r"],$border["g"],$border["b"]);
|
100 |
+
|
101 |
+
if ($random_text_color)
|
102 |
+
{
|
103 |
+
do
|
104 |
+
{
|
105 |
+
$selcolor = mt_rand(0,256*256*256);
|
106 |
+
} while ( cpcff_similarColors(cpcff_decodeColor($selcolor), $bcolor) );
|
107 |
+
$tcolor = cpcff_decodeColor($selcolor);
|
108 |
+
}
|
109 |
+
|
110 |
+
$text_col = imagecolorallocate($image, $tcolor["r"],$tcolor["g"],$tcolor["b"]);
|
111 |
+
|
112 |
+
imagefilledrectangle($image, 0, 0, $imgX, $imgY, $backgr_col);
|
113 |
+
imagerectangle($image, 0, 0, $imgX-1, $imgY-1, $border_col);
|
114 |
+
for ($i=0;$i<$noise;$i++)
|
115 |
+
{
|
116 |
+
if ($random_noise_color)
|
117 |
+
$color = mt_rand(0, 256*256*256);
|
118 |
+
else
|
119 |
+
$color = $noisecolor;
|
120 |
+
$x1 = mt_rand(2,$imgX-2);
|
121 |
+
$y1 = mt_rand(2,$imgY-2);
|
122 |
+
imageline ( $image, $x1, $y1, mt_rand($x1-$noiselength,$x1+$noiselength), mt_rand($y1-$noiselength,$y1+$noiselength), $color);
|
123 |
+
}
|
124 |
+
|
125 |
+
$font = dirname( __FILE__ ) . "/font-1.ttf"; // font
|
126 |
+
if ($_GET["font"]) $font = dirname( __FILE__ ) . "/".$_GET["font"];
|
127 |
+
/**if (!file_exists($font))
|
128 |
+
$font = $_SERVER["DOCUMENT_ROOT"]."/HDWFormCaptcha/".$font;
|
129 |
+
if (!file_exists($font))
|
130 |
+
$font = dirname(__FILE__)."/".$font;
|
131 |
+
*/
|
132 |
+
|
133 |
+
$font_size = rand($min_size, $max_size);
|
134 |
+
|
135 |
+
$angle = rand(-15, 15);
|
136 |
+
|
137 |
+
if (function_exists("imagettfbbox") && function_exists("imagettftext"))
|
138 |
+
{
|
139 |
+
$box = imagettfbbox($font_size, $angle, $font, $str);
|
140 |
+
$x = (int)($imgX - $box[4]) / 2;
|
141 |
+
$y = (int)($imgY - $box[5]) / 2;
|
142 |
+
imagettftext($image, $font_size, $angle, $x, $y, $text_col, $font, $str);
|
143 |
+
}
|
144 |
+
else if (function_exists("imageFtBBox") && function_exists("imageFTText"))
|
145 |
+
{
|
146 |
+
$box = imageFtBBox($font_size, $angle, $font, $str);
|
147 |
+
$x = (int)($imgX - $box[4]) / 2;
|
148 |
+
$y = (int)($imgY - $box[5]) / 2;
|
149 |
+
imageFTText ($image, $font_size, $angle, $x, $y, $text_col, $font, $str);
|
150 |
+
}
|
151 |
+
else
|
152 |
+
{
|
153 |
+
$angle = 0;
|
154 |
+
$font = 6;
|
155 |
+
$wf = ImageFontWidth(6) * strlen($str);
|
156 |
+
$hf = ImageFontHeight(6);
|
157 |
+
$x = (int)($imgX - $wf) / 2;
|
158 |
+
$y = (int)($imgY - $hf) / 2;
|
159 |
+
imagestring ( $image, $font, $x, $y, $str, $text_col);
|
160 |
+
}
|
161 |
+
|
162 |
+
function ppp_output_handler($img) {
|
163 |
+
header('Content-type: image/png');
|
164 |
+
header('Content-Length: ' . strlen($img));
|
165 |
+
return $img;
|
166 |
+
}
|
167 |
+
|
168 |
+
ob_start("ppp_output_handler");
|
169 |
+
imagepng($image);
|
170 |
+
ob_end_flush();
|
171 |
+
imagedestroy ($image);
|
172 |
+
exit;
|
173 |
+
?>
|
captcha/font-1.ttf
ADDED
Binary file
|
captcha/font-2.ttf
ADDED
Binary file
|
captcha/font-3.ttf
ADDED
Binary file
|
captcha/font-4.ttf
ADDED
Binary file
|
cp_ppp.php
ADDED
@@ -0,0 +1,1452 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Payment Form for PayPal Pro
|
4 |
+
Plugin URI: http://wordpress.dwbooster.com/forms/paypal-payment-pro-form
|
5 |
+
Description: Payment Form for PayPal Pro to accept credit cards directly into your website. Official PayPal Partner.
|
6 |
+
Version: 1.0.1
|
7 |
+
Author: CodePeople.net
|
8 |
+
Author URI: http://codepeople.net
|
9 |
+
License: GPL
|
10 |
+
*/
|
11 |
+
|
12 |
+
|
13 |
+
/* initialization / install / uninstall functions */
|
14 |
+
|
15 |
+
|
16 |
+
// Payment Form for PayPal Pro constants
|
17 |
+
|
18 |
+
define('CP_PPP_DEFAULT_CURRENCY_SYMBOL','$');
|
19 |
+
define('CP_PPP_GBP_CURRENCY_SYMBOL',chr(163));
|
20 |
+
define('CP_PPP_EUR_CURRENCY_SYMBOL_A',chr(226)); //'EUR '
|
21 |
+
define('CP_PPP_EUR_CURRENCY_SYMBOL_B',chr(128));
|
22 |
+
|
23 |
+
define('CP_PPP_DEFAULT_DEFER_SCRIPTS_LOADING', (get_option('CP_CFPP_LOAD_SCRIPTS',"1") == "1"?true:false));
|
24 |
+
define('CP_PPP_DEFAULT_DEFER_SCRIPTS_LOADING_ADMIN', (get_option('CP_CFPP_LOAD_SCRIPTS_ADMIN',"1") == "1"?true:false));
|
25 |
+
|
26 |
+
define('CP_PPP_DEFAULT_form_structure', '[[{"form_identifier":"","name":"email","shortlabel":"","index":0,"ftype":"femail","userhelp":"","userhelpTooltip":false,"csslayout":"","title":"Email","predefined":"","predefinedClick":false,"required":true,"size":"medium","equalTo":"","fBuild":{}}],[{"title":"","description":"","formlayout":"top_aligned","formtemplate":"","evalequations":1,"autocomplete":1}]]');
|
27 |
+
|
28 |
+
define('CP_PPP_DEFAULT_fp_subject', 'Payment received...');
|
29 |
+
define('CP_PPP_DEFAULT_fp_inc_additional_info', 'true');
|
30 |
+
define('CP_PPP_DEFAULT_fp_return_page', get_site_url());
|
31 |
+
define('CP_PPP_DEFAULT_fp_message', "The following payment has been received:\n\n<"."%INFO%".">\n\n");
|
32 |
+
|
33 |
+
define('CP_PPP_DEFAULT_cu_enable_copy_to_user', 'true');
|
34 |
+
define('CP_PPP_DEFAULT_cu_user_email_field', '');
|
35 |
+
define('CP_PPP_DEFAULT_cu_subject', 'Confirmation: Message received...');
|
36 |
+
define('CP_PPP_DEFAULT_cu_message', "Thank you for your message. We will reply you as soon as possible.\n\nThis is a copy of the data sent:\n\n<"."%INFO%".">\n\nBest Regards.");
|
37 |
+
define('CP_PPP_DEFAULT_email_format','text');
|
38 |
+
|
39 |
+
define('CP_PPP_DEFAULT_vs_use_validation', 'true');
|
40 |
+
|
41 |
+
define('CP_PPP_DEFAULT_vs_text_is_required', 'This field is required.');
|
42 |
+
define('CP_PPP_DEFAULT_vs_text_is_email', 'Please enter a valid email address.');
|
43 |
+
|
44 |
+
define('CP_PPP_DEFAULT_vs_text_datemmddyyyy', 'Please enter a valid date with this format(mm/dd/yyyy)');
|
45 |
+
define('CP_PPP_DEFAULT_vs_text_dateddmmyyyy', 'Please enter a valid date with this format(dd/mm/yyyy)');
|
46 |
+
define('CP_PPP_DEFAULT_vs_text_number', 'Please enter a valid number.');
|
47 |
+
define('CP_PPP_DEFAULT_vs_text_digits', 'Please enter only digits.');
|
48 |
+
define('CP_PPP_DEFAULT_vs_text_max', 'Please enter a value less than or equal to {0}.');
|
49 |
+
define('CP_PPP_DEFAULT_vs_text_min', 'Please enter a value greater than or equal to {0}.');
|
50 |
+
|
51 |
+
|
52 |
+
define('CP_PPP_DEFAULT_cv_enable_captcha', 'true');
|
53 |
+
define('CP_PPP_DEFAULT_cv_width', '180');
|
54 |
+
define('CP_PPP_DEFAULT_cv_height', '60');
|
55 |
+
define('CP_PPP_DEFAULT_cv_chars', '5');
|
56 |
+
define('CP_PPP_DEFAULT_cv_font', 'font-1.ttf');
|
57 |
+
define('CP_PPP_DEFAULT_cv_min_font_size', '25');
|
58 |
+
define('CP_PPP_DEFAULT_cv_max_font_size', '35');
|
59 |
+
define('CP_PPP_DEFAULT_cv_noise', '200');
|
60 |
+
define('CP_PPP_DEFAULT_cv_noise_length', '4');
|
61 |
+
define('CP_PPP_DEFAULT_cv_background', 'ffffff');
|
62 |
+
define('CP_PPP_DEFAULT_cv_border', '000000');
|
63 |
+
define('CP_PPP_DEFAULT_cv_text_enter_valid_captcha', 'Please enter a valid captcha code.');
|
64 |
+
|
65 |
+
define('CP_PPP_PAYPAL_OPTION_YES', 'Pay with PayPal.');
|
66 |
+
define('CP_PPP_PAYPAL_OPTION_NO', 'Pay later.');
|
67 |
+
|
68 |
+
define('CP_PPP_DEFAULT_ENABLE_PAYPAL', 3);
|
69 |
+
define('CP_PPP_DEFAULT_PAYPAL_MODE', 'production');
|
70 |
+
define('CP_PPP_DEFAULT_PAYPAL_RECURRENT', '0');
|
71 |
+
define('CP_PPP_DEFAULT_PAYPAL_IDENTIFY_PRICES', '0');
|
72 |
+
define('CP_PPP_DEFAULT_PAYPAL_ZERO_PAYMENT', '0');
|
73 |
+
define('CP_PPP_DEFAULT_PAYPAL_EMAIL','put_your@email_here.com');
|
74 |
+
define('CP_PPP_DEFAULT_PRODUCT_NAME','Reservation');
|
75 |
+
define('CP_PPP_DEFAULT_COST','25');
|
76 |
+
define('CP_PPP_DEFAULT_CURRENCY','USD');
|
77 |
+
define('CP_PPP_DEFAULT_PAYPAL_LANGUAGE','EN');
|
78 |
+
|
79 |
+
// database
|
80 |
+
define('CP_PPP_FORMS_TABLE', 'cp_ppp_settings');
|
81 |
+
|
82 |
+
define('CP_PPP_DISCOUNT_CODES_TABLE_NAME_NO_PREFIX', "cp_ppp_discount_codes");
|
83 |
+
define('CP_PPP_DISCOUNT_CODES_TABLE_NAME', @$wpdb->prefix ."cp_ppp_discount_codes");
|
84 |
+
|
85 |
+
define('CP_PPP_POSTS_TABLE_NAME_NO_PREFIX', "cp_ppp_posts");
|
86 |
+
define('CP_PPP_POSTS_TABLE_NAME', @$wpdb->prefix ."cp_ppp_posts");
|
87 |
+
|
88 |
+
require_once 'cp_ppp_data_source.inc.php';
|
89 |
+
|
90 |
+
// end Payment Form for PayPal Pro constants
|
91 |
+
|
92 |
+
// code initialization, hooks
|
93 |
+
// -----------------------------------------
|
94 |
+
|
95 |
+
register_activation_hook(__FILE__,'cp_ppp_install');
|
96 |
+
|
97 |
+
add_action( 'init', 'cp_ppp_check_posted_data', 11 );
|
98 |
+
add_action( 'widgets_init', create_function('', 'return register_widget("CP_PPP_Widget");') );
|
99 |
+
|
100 |
+
function cpppp_plugin_init() {
|
101 |
+
load_plugin_textdomain( 'cpppp', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
102 |
+
}
|
103 |
+
add_action('plugins_loaded', 'cpppp_plugin_init');
|
104 |
+
|
105 |
+
|
106 |
+
if ( is_admin() ) {
|
107 |
+
add_action('media_buttons', 'set_cp_ppp_insert_button', 100);
|
108 |
+
add_action('admin_enqueue_scripts', 'set_cp_ppp_insert_adminScripts', 1);
|
109 |
+
add_action('admin_menu', 'cp_ppp_admin_menu');
|
110 |
+
|
111 |
+
$plugin = plugin_basename(__FILE__);
|
112 |
+
add_filter("plugin_action_links_".$plugin, 'cp_ppp_customAdjustmentsLink');
|
113 |
+
add_filter("plugin_action_links_".$plugin, 'cp_ppp_settingsLink');
|
114 |
+
add_filter("plugin_action_links_".$plugin, 'cp_ppp_helpLink');
|
115 |
+
|
116 |
+
function cp_ppp_admin_menu() {
|
117 |
+
add_options_page('Payment Form for PayPal Pro Options', 'Payment Form for PayPal Pro', 'manage_options', 'cp_ppp', 'cp_ppp_html_post_page' );
|
118 |
+
add_menu_page( 'Payment Form for PayPal Pro', 'Payment Form for PayPal Pro', 'read', 'cp_ppp', 'cp_ppp_html_post_page' );
|
119 |
+
|
120 |
+
add_submenu_page( 'cp_ppp', 'Manage Forms', 'Manage Forms', 'manage_options', "cp_ppp", 'cp_ppp_html_post_page' );
|
121 |
+
add_submenu_page( 'cp_ppp', 'Upgrade', 'Upgrade', 'edit_pages', "cp_ppp_upgrade", 'cp_ppp_html_post_page' );
|
122 |
+
}
|
123 |
+
} else { // if not admin
|
124 |
+
add_shortcode( 'CP_PPP', 'cp_ppp_filter_content' );
|
125 |
+
add_shortcode( 'CP_PPP_LIST', 'cp_ppp_filter_list' );
|
126 |
+
}
|
127 |
+
|
128 |
+
|
129 |
+
// functions
|
130 |
+
//------------------------------------------
|
131 |
+
|
132 |
+
function cp_ppp_install($networkwide) {
|
133 |
+
global $wpdb;
|
134 |
+
|
135 |
+
if (function_exists('is_multisite') && is_multisite()) {
|
136 |
+
// check if it is a network activation - if so, run the activation function for each blog id
|
137 |
+
if ($networkwide) {
|
138 |
+
$old_blog = $wpdb->blogid;
|
139 |
+
// Get all blog ids
|
140 |
+
$blogids = $wpdb->get_col($wpdb->prepare("SELECT blog_id FROM $wpdb->blogs"));
|
141 |
+
foreach ($blogids as $blog_id) {
|
142 |
+
switch_to_blog($blog_id);
|
143 |
+
_cp_ppp_install();
|
144 |
+
}
|
145 |
+
switch_to_blog($old_blog);
|
146 |
+
return;
|
147 |
+
}
|
148 |
+
}
|
149 |
+
_cp_ppp_install();
|
150 |
+
}
|
151 |
+
|
152 |
+
function _cp_ppp_install() {
|
153 |
+
global $wpdb;
|
154 |
+
|
155 |
+
define('CP_PPP_DEFAULT_fp_from_email', get_the_author_meta('user_email', get_current_user_id()) );
|
156 |
+
define('CP_PPP_DEFAULT_fp_destination_emails', CP_PPP_DEFAULT_fp_from_email);
|
157 |
+
|
158 |
+
$table_name = $wpdb->prefix.CP_PPP_FORMS_TABLE;
|
159 |
+
|
160 |
+
$sql = "CREATE TABLE ".$wpdb->prefix.CP_PPP_POSTS_TABLE_NAME_NO_PREFIX." (
|
161 |
+
id mediumint(9) NOT NULL AUTO_INCREMENT,
|
162 |
+
formid INT NOT NULL,
|
163 |
+
time datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
|
164 |
+
ipaddr VARCHAR(32) DEFAULT '' NOT NULL,
|
165 |
+
notifyto VARCHAR(250) DEFAULT '' NOT NULL,
|
166 |
+
data mediumtext,
|
167 |
+
paypal_post mediumtext,
|
168 |
+
posted_data mediumtext,
|
169 |
+
paid INT DEFAULT 0 NOT NULL,
|
170 |
+
UNIQUE KEY id (id)
|
171 |
+
);";
|
172 |
+
$wpdb->query( $wpdb->prepare ($sql, array()) );
|
173 |
+
|
174 |
+
$sql = "CREATE TABLE ".$wpdb->prefix.CP_PPP_DISCOUNT_CODES_TABLE_NAME_NO_PREFIX." (
|
175 |
+
id mediumint(9) NOT NULL AUTO_INCREMENT,
|
176 |
+
form_id mediumint(9) NOT NULL DEFAULT 1,
|
177 |
+
code VARCHAR(250) DEFAULT '' NOT NULL,
|
178 |
+
discount VARCHAR(250) DEFAULT '' NOT NULL,
|
179 |
+
dc_times VARCHAR(10) DEFAULT '0' NOT NULL,
|
180 |
+
expires datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
|
181 |
+
availability int(10) unsigned NOT NULL DEFAULT 0,
|
182 |
+
used int(10) unsigned NOT NULL DEFAULT 0,
|
183 |
+
UNIQUE KEY id (id)
|
184 |
+
);";
|
185 |
+
$wpdb->query( $wpdb->prepare ($sql, array()) );
|
186 |
+
|
187 |
+
|
188 |
+
$sql = "CREATE TABLE $table_name (
|
189 |
+
id mediumint(9) NOT NULL AUTO_INCREMENT,
|
190 |
+
|
191 |
+
form_name VARCHAR(250) DEFAULT '' NOT NULL,
|
192 |
+
|
193 |
+
form_structure mediumtext,
|
194 |
+
|
195 |
+
fp_from_email VARCHAR(250) DEFAULT '' NOT NULL,
|
196 |
+
fp_destination_emails text,
|
197 |
+
fp_subject VARCHAR(250) DEFAULT '' NOT NULL,
|
198 |
+
fp_inc_additional_info VARCHAR(10) DEFAULT '' NOT NULL,
|
199 |
+
fp_return_page VARCHAR(250) DEFAULT '' NOT NULL,
|
200 |
+
fp_message text,
|
201 |
+
fp_emailformat VARCHAR(10) DEFAULT '' NOT NULL,
|
202 |
+
|
203 |
+
cu_enable_copy_to_user VARCHAR(10) DEFAULT '' NOT NULL,
|
204 |
+
cu_user_email_field VARCHAR(250) DEFAULT '' NOT NULL,
|
205 |
+
cu_subject VARCHAR(250) DEFAULT '' NOT NULL,
|
206 |
+
cu_message text,
|
207 |
+
cu_emailformat VARCHAR(10) DEFAULT '' NOT NULL,
|
208 |
+
|
209 |
+
enable_paypal_option_yes VARCHAR(250) DEFAULT '' NOT NULL,
|
210 |
+
enable_paypal_option_no VARCHAR(250) DEFAULT '' NOT NULL,
|
211 |
+
paypal_recurrent_setup VARCHAR(20) DEFAULT '' NOT NULL,
|
212 |
+
vs_use_validation VARCHAR(10) DEFAULT '' NOT NULL,
|
213 |
+
vs_text_is_required VARCHAR(250) DEFAULT '' NOT NULL,
|
214 |
+
vs_text_is_email VARCHAR(250) DEFAULT '' NOT NULL,
|
215 |
+
vs_text_datemmddyyyy VARCHAR(250) DEFAULT '' NOT NULL,
|
216 |
+
vs_text_dateddmmyyyy VARCHAR(250) DEFAULT '' NOT NULL,
|
217 |
+
vs_text_number VARCHAR(250) DEFAULT '' NOT NULL,
|
218 |
+
vs_text_digits VARCHAR(250) DEFAULT '' NOT NULL,
|
219 |
+
vs_text_max VARCHAR(250) DEFAULT '' NOT NULL,
|
220 |
+
vs_text_min VARCHAR(250) DEFAULT '' NOT NULL,
|
221 |
+
vs_text_submitbtn VARCHAR(250) DEFAULT '' NOT NULL,
|
222 |
+
vs_text_previousbtn VARCHAR(250) DEFAULT '' NOT NULL,
|
223 |
+
vs_text_nextbtn VARCHAR(250) DEFAULT '' NOT NULL,
|
224 |
+
|
225 |
+
enable_paypal varchar(10) DEFAULT '' NOT NULL,
|
226 |
+
paypal_notiemails varchar(10) DEFAULT '' NOT NULL,
|
227 |
+
paypal_email varchar(255) DEFAULT '' NOT NULL ,
|
228 |
+
request_cost varchar(255) DEFAULT '' NOT NULL ,
|
229 |
+
paypal_price_field varchar(255) DEFAULT '' NOT NULL ,
|
230 |
+
request_taxes varchar(20) DEFAULT '' NOT NULL ,
|
231 |
+
request_address varchar(20) DEFAULT '' NOT NULL ,
|
232 |
+
paypal_product_name varchar(255) DEFAULT '' NOT NULL,
|
233 |
+
currency varchar(10) DEFAULT '' NOT NULL,
|
234 |
+
paypal_language varchar(10) DEFAULT '' NOT NULL,
|
235 |
+
paypal_mode varchar(20) DEFAULT '' NOT NULL ,
|
236 |
+
paypal_recurrent varchar(20) DEFAULT '' NOT NULL ,
|
237 |
+
paypal_identify_prices varchar(20) DEFAULT '' NOT NULL ,
|
238 |
+
paypal_zero_payment varchar(10) DEFAULT '' NOT NULL ,
|
239 |
+
|
240 |
+
paypalpro_api_username varchar(255) DEFAULT '' NOT NULL ,
|
241 |
+
paypalpro_api_password varchar(255) DEFAULT '' NOT NULL ,
|
242 |
+
paypalpro_api_signature varchar(255) DEFAULT '' NOT NULL ,
|
243 |
+
|
244 |
+
cp_user_access text,
|
245 |
+
|
246 |
+
script_load_method varchar(10) DEFAULT '' NOT NULL ,
|
247 |
+
|
248 |
+
cv_enable_captcha VARCHAR(20) DEFAULT '' NOT NULL,
|
249 |
+
cv_width VARCHAR(20) DEFAULT '' NOT NULL,
|
250 |
+
cv_height VARCHAR(20) DEFAULT '' NOT NULL,
|
251 |
+
cv_chars VARCHAR(20) DEFAULT '' NOT NULL,
|
252 |
+
cv_font VARCHAR(20) DEFAULT '' NOT NULL,
|
253 |
+
cv_min_font_size VARCHAR(20) DEFAULT '' NOT NULL,
|
254 |
+
cv_max_font_size VARCHAR(20) DEFAULT '' NOT NULL,
|
255 |
+
cv_noise VARCHAR(20) DEFAULT '' NOT NULL,
|
256 |
+
cv_noise_length VARCHAR(20) DEFAULT '' NOT NULL,
|
257 |
+
cv_background VARCHAR(20) DEFAULT '' NOT NULL,
|
258 |
+
cv_border VARCHAR(20) DEFAULT '' NOT NULL,
|
259 |
+
cv_text_enter_valid_captcha VARCHAR(200) DEFAULT '' NOT NULL,
|
260 |
+
|
261 |
+
UNIQUE KEY id (id)
|
262 |
+
);";
|
263 |
+
$wpdb->query( $wpdb->prepare ($sql, array()) );
|
264 |
+
|
265 |
+
$count = $wpdb->get_var( "SELECT COUNT(id) FROM ".$table_name );
|
266 |
+
if (!$count)
|
267 |
+
{
|
268 |
+
$wpdb->insert( $table_name, array( 'id' => 1,
|
269 |
+
'form_name' => 'Form 1',
|
270 |
+
|
271 |
+
'form_structure' => cp_ppp_get_option('form_structure', CP_PPP_DEFAULT_form_structure),
|
272 |
+
|
273 |
+
'fp_from_email' => cp_ppp_get_option('fp_from_email', CP_PPP_DEFAULT_fp_from_email),
|
274 |
+
'fp_destination_emails' => cp_ppp_get_option('fp_destination_emails', CP_PPP_DEFAULT_fp_destination_emails),
|
275 |
+
'fp_subject' => cp_ppp_get_option('fp_subject', CP_PPP_DEFAULT_fp_subject),
|
276 |
+
'fp_inc_additional_info' => cp_ppp_get_option('fp_inc_additional_info', CP_PPP_DEFAULT_fp_inc_additional_info),
|
277 |
+
'fp_return_page' => cp_ppp_get_option('fp_return_page', CP_PPP_DEFAULT_fp_return_page),
|
278 |
+
'fp_message' => cp_ppp_get_option('fp_message', CP_PPP_DEFAULT_fp_message),
|
279 |
+
'fp_emailformat' => cp_ppp_get_option('fp_emailformat', CP_PPP_DEFAULT_email_format),
|
280 |
+
|
281 |
+
'cu_enable_copy_to_user' => cp_ppp_get_option('cu_enable_copy_to_user', CP_PPP_DEFAULT_cu_enable_copy_to_user),
|
282 |
+
'cu_user_email_field' => cp_ppp_get_option('cu_user_email_field', CP_PPP_DEFAULT_cu_user_email_field),
|
283 |
+
'cu_subject' => cp_ppp_get_option('cu_subject', CP_PPP_DEFAULT_cu_subject),
|
284 |
+
'cu_message' => cp_ppp_get_option('cu_message', CP_PPP_DEFAULT_cu_message),
|
285 |
+
'cu_emailformat' => cp_ppp_get_option('cu_emailformat', CP_PPP_DEFAULT_email_format),
|
286 |
+
|
287 |
+
'vs_use_validation' => cp_ppp_get_option('vs_use_validation', CP_PPP_DEFAULT_vs_use_validation),
|
288 |
+
'vs_text_is_required' => cp_ppp_get_option('vs_text_is_required', CP_PPP_DEFAULT_vs_text_is_required),
|
289 |
+
'vs_text_is_email' => cp_ppp_get_option('vs_text_is_email', CP_PPP_DEFAULT_vs_text_is_email),
|
290 |
+
'vs_text_datemmddyyyy' => cp_ppp_get_option('vs_text_datemmddyyyy', CP_PPP_DEFAULT_vs_text_datemmddyyyy),
|
291 |
+
'vs_text_dateddmmyyyy' => cp_ppp_get_option('vs_text_dateddmmyyyy', CP_PPP_DEFAULT_vs_text_dateddmmyyyy),
|
292 |
+
'vs_text_number' => cp_ppp_get_option('vs_text_number', CP_PPP_DEFAULT_vs_text_number),
|
293 |
+
'vs_text_digits' => cp_ppp_get_option('vs_text_digits', CP_PPP_DEFAULT_vs_text_digits),
|
294 |
+
'vs_text_max' => cp_ppp_get_option('vs_text_max', CP_PPP_DEFAULT_vs_text_max),
|
295 |
+
'vs_text_min' => cp_ppp_get_option('vs_text_min', CP_PPP_DEFAULT_vs_text_min),
|
296 |
+
'vs_text_submitbtn' => cp_ppp_get_option('vs_text_submitbtn', 'Submit'),
|
297 |
+
'vs_text_previousbtn' => cp_ppp_get_option('vs_text_previousbtn', 'Previous'),
|
298 |
+
'vs_text_nextbtn' => cp_ppp_get_option('vs_text_nextbtn', 'Next'),
|
299 |
+
|
300 |
+
'script_load_method' => cp_ppp_get_option('script_load_method', '0'),
|
301 |
+
|
302 |
+
'enable_paypal' => cp_ppp_get_option('enable_paypal', CP_PPP_DEFAULT_ENABLE_PAYPAL),
|
303 |
+
'paypal_notiemails' => cp_ppp_get_option('paypal_notiemails', '0'),
|
304 |
+
'paypal_email' => cp_ppp_get_option('paypal_email', CP_PPP_DEFAULT_PAYPAL_EMAIL),
|
305 |
+
'request_cost' => cp_ppp_get_option('request_cost', CP_PPP_DEFAULT_COST),
|
306 |
+
'paypal_price_field' => cp_ppp_get_option('paypal_price_field', ''),
|
307 |
+
'request_taxes' => cp_ppp_get_option('request_taxes', '0'),
|
308 |
+
'request_address' => cp_ppp_get_option('request_address', '0'),
|
309 |
+
'paypal_product_name' => cp_ppp_get_option('paypal_product_name', CP_PPP_DEFAULT_PRODUCT_NAME),
|
310 |
+
'currency' => cp_ppp_get_option('currency', CP_PPP_DEFAULT_CURRENCY),
|
311 |
+
'paypal_language' => cp_ppp_get_option('paypal_language', CP_PPP_DEFAULT_PAYPAL_LANGUAGE),
|
312 |
+
'paypal_mode' => cp_ppp_get_option('paypal_mode', CP_PPP_DEFAULT_PAYPAL_MODE),
|
313 |
+
'paypal_recurrent' => cp_ppp_get_option('paypal_recurrent', CP_PPP_DEFAULT_PAYPAL_RECURRENT),
|
314 |
+
'paypal_identify_prices' => cp_ppp_get_option('paypal_identify_prices', CP_PPP_DEFAULT_PAYPAL_IDENTIFY_PRICES),
|
315 |
+
'paypal_zero_payment' => cp_ppp_get_option('paypal_zero_payment', CP_PPP_DEFAULT_PAYPAL_ZERO_PAYMENT),
|
316 |
+
|
317 |
+
'cv_enable_captcha' => cp_ppp_get_option('cv_enable_captcha', CP_PPP_DEFAULT_cv_enable_captcha),
|
318 |
+
'cv_width' => cp_ppp_get_option('cv_width', CP_PPP_DEFAULT_cv_width),
|
319 |
+
'cv_height' => cp_ppp_get_option('cv_height', CP_PPP_DEFAULT_cv_height),
|
320 |
+
'cv_chars' => cp_ppp_get_option('cv_chars', CP_PPP_DEFAULT_cv_chars),
|
321 |
+
'cv_font' => cp_ppp_get_option('cv_font', CP_PPP_DEFAULT_cv_font),
|
322 |
+
'cv_min_font_size' => cp_ppp_get_option('cv_min_font_size', CP_PPP_DEFAULT_cv_min_font_size),
|
323 |
+
'cv_max_font_size' => cp_ppp_get_option('cv_max_font_size', CP_PPP_DEFAULT_cv_max_font_size),
|
324 |
+
'cv_noise' => cp_ppp_get_option('cv_noise', CP_PPP_DEFAULT_cv_noise),
|
325 |
+
'cv_noise_length' => cp_ppp_get_option('cv_noise_length', CP_PPP_DEFAULT_cv_noise_length),
|
326 |
+
'cv_background' => cp_ppp_get_option('cv_background', CP_PPP_DEFAULT_cv_background),
|
327 |
+
'cv_border' => cp_ppp_get_option('cv_border', CP_PPP_DEFAULT_cv_border),
|
328 |
+
'cv_text_enter_valid_captcha' => cp_ppp_get_option('cv_text_enter_valid_captcha', CP_PPP_DEFAULT_cv_text_enter_valid_captcha)
|
329 |
+
)
|
330 |
+
);
|
331 |
+
}
|
332 |
+
|
333 |
+
}
|
334 |
+
|
335 |
+
function cp_ppp_filter_list($atts) {
|
336 |
+
global $wpdb;
|
337 |
+
extract( shortcode_atts( array(
|
338 |
+
'id' => '',
|
339 |
+
'from' => 'today -30 days',
|
340 |
+
'to' => 'today +30 days',
|
341 |
+
'fields' => 'time,email,fieldname1,fieldname2',
|
342 |
+
), $atts ) );
|
343 |
+
ob_start();
|
344 |
+
|
345 |
+
$from = date("Y-m-d 00:00:00", strtotime($from));
|
346 |
+
$to = date("Y-m-d 23:59:59", strtotime($to));
|
347 |
+
$cond = "(`time` >= '".esc_sql($from)."')";
|
348 |
+
$cond .= " AND (`time` <= '".esc_sql($to)."')";
|
349 |
+
|
350 |
+
if ($id != '')
|
351 |
+
$myrows = $wpdb->get_results( $wpdb->prepare("SELECT * FROM ".$wpdb->prefix.CP_PPP_FORMS_TABLE." WHERE id=%d",$id) );
|
352 |
+
else
|
353 |
+
$myrows = $wpdb->get_results( $wpdb->prepare("SELECT * FROM ".$wpdb->prefix.CP_PPP_FORMS_TABLE,array()) );
|
354 |
+
|
355 |
+
|
356 |
+
if ($id == '') $id = $myrows[0]->id;
|
357 |
+
$cond = "(`formid` = %d)";
|
358 |
+
|
359 |
+
$events = $wpdb->get_results( $wpdb->prepare(
|
360 |
+
"SELECT * FROM ".CP_PPP_POSTS_TABLE_NAME." WHERE ".$cond." ORDER BY `time` DESC",
|
361 |
+
$id
|
362 |
+
)
|
363 |
+
);
|
364 |
+
|
365 |
+
$fields = explode(",",$fields);
|
366 |
+
|
367 |
+
for ($k=0; $k<count($fields); $k++)
|
368 |
+
$fields[$k] = trim($fields[$k]);
|
369 |
+
|
370 |
+
wp_enqueue_style ('cp_ppp_buikder_script_f_list_styles', plugins_url('css/stylepublic.css', __FILE__));
|
371 |
+
foreach ($events as $event)
|
372 |
+
{
|
373 |
+
$posted_data = unserialize($event->posted_data);
|
374 |
+
|
375 |
+
for ($k=0;$k<count($fields); $k++)
|
376 |
+
if ($fields[$k] == 'time')
|
377 |
+
echo '<div class="cfpp_field_'.$k.'">'.date("Y-m-d H:i:s", strtotime($event->time) ).'</div>';
|
378 |
+
else
|
379 |
+
echo '<div class="cfpp_field_'.$k.'">'.(isset($posted_data[$fields[$k]])?$posted_data[$fields[$k]]:" ").'</div>';
|
380 |
+
echo '<div class="cfpp_field_clear"></div>';
|
381 |
+
}
|
382 |
+
|
383 |
+
$buffered_contents = ob_get_contents();
|
384 |
+
ob_end_clean();
|
385 |
+
return $buffered_contents;
|
386 |
+
}
|
387 |
+
|
388 |
+
function cp_ppp_available_templates(){
|
389 |
+
global $CP_CFPP_global_templates;
|
390 |
+
|
391 |
+
if( empty( $CP_CFPP_global_templates ) )
|
392 |
+
{
|
393 |
+
// Get available designs
|
394 |
+
$tpls_dir = dir( plugin_dir_path( __FILE__ ).'templates' );
|
395 |
+
$CP_CFPP_global_templates = array();
|
396 |
+
while( false !== ( $entry = $tpls_dir->read() ) )
|
397 |
+
{
|
398 |
+
if ( $entry != '.' && $entry != '..' && is_dir( $tpls_dir->path.'/'.$entry ) && file_exists( $tpls_dir->path.'/'.$entry.'/config.ini' ) )
|
399 |
+
{
|
400 |
+
if( ( $ini_array = parse_ini_file( $tpls_dir->path.'/'.$entry.'/config.ini' ) ) !== false )
|
401 |
+
{
|
402 |
+
if( !empty( $ini_array[ 'file' ] ) ) $ini_array[ 'file' ] = plugins_url( 'templates/'.$entry.'/'.$ini_array[ 'file' ], __FILE__ );
|
403 |
+
if( !empty( $ini_array[ 'thumbnail' ] ) ) $ini_array[ 'thumbnail' ] = plugins_url( 'templates/'.$entry.'/'.$ini_array[ 'thumbnail' ], __FILE__ );
|
404 |
+
$CP_CFPP_global_templates[ $ini_array[ 'prefix' ] ] = $ini_array;
|
405 |
+
}
|
406 |
+
}
|
407 |
+
}
|
408 |
+
}
|
409 |
+
|
410 |
+
return $CP_CFPP_global_templates;
|
411 |
+
}
|
412 |
+
|
413 |
+
function cp_ppp_filter_content($atts) {
|
414 |
+
global $wpdb;
|
415 |
+
extract( shortcode_atts( array(
|
416 |
+
'id' => '',
|
417 |
+
), $atts ) );
|
418 |
+
//if ($id != '')
|
419 |
+
// define ('CP_PPP_ID',$id);
|
420 |
+
ob_start();
|
421 |
+
cp_ppp_get_public_form($id);
|
422 |
+
$buffered_contents = ob_get_contents();
|
423 |
+
ob_end_clean();
|
424 |
+
return $buffered_contents;
|
425 |
+
}
|
426 |
+
|
427 |
+
$CP_CFPP_global_form_count_number = 0;
|
428 |
+
$CP_CPP_global_form_count = "_".$CP_CFPP_global_form_count_number;
|
429 |
+
|
430 |
+
function cp_ppp_get_public_form($id) {
|
431 |
+
global $wpdb;
|
432 |
+
global $CP_CPP_global_form_count;
|
433 |
+
global $CP_CFPP_global_form_count_number;
|
434 |
+
$CP_CFPP_global_form_count_number++;
|
435 |
+
$CP_CPP_global_form_count = "_".$CP_CFPP_global_form_count_number;
|
436 |
+
if (!defined('CP_AUTH_INCLUDE')) define('CP_AUTH_INCLUDE', true);
|
437 |
+
|
438 |
+
if ($id != '')
|
439 |
+
$myrows = $wpdb->get_results( $wpdb->prepare("SELECT * FROM ".$wpdb->prefix.CP_PPP_FORMS_TABLE." WHERE id=%d", $id) );
|
440 |
+
else
|
441 |
+
$myrows = $wpdb->get_results( $wpdb->prepare("SELECT * FROM ".$wpdb->prefix.CP_PPP_FORMS_TABLE, array()) );
|
442 |
+
|
443 |
+
$previous_label = cp_ppp_get_option('vs_text_previousbtn', 'Previous',$id);
|
444 |
+
$previous_label = ($previous_label==''?'Previous':$previous_label);
|
445 |
+
$next_label = cp_ppp_get_option('vs_text_nextbtn', 'Next',$id);
|
446 |
+
$next_label = ($next_label==''?'Next':$next_label);
|
447 |
+
if ($id == '') $id = $myrows[0]->id;
|
448 |
+
if (CP_PPP_DEFAULT_DEFER_SCRIPTS_LOADING)
|
449 |
+
{
|
450 |
+
wp_deregister_script('query-stringify');
|
451 |
+
wp_register_script('query-stringify', plugins_url('/js/jQuery.stringify.js', __FILE__));
|
452 |
+
|
453 |
+
wp_deregister_script('cp_ppp_validate_script');
|
454 |
+
wp_register_script('cp_ppp_validate_script', plugins_url('/js/jquery.validate.js', __FILE__));
|
455 |
+
|
456 |
+
wp_enqueue_script( 'cp_ppp_buikder_script',
|
457 |
+
get_site_url( get_current_blog_id() ).'?cp_ppp_resources=public',array("jquery","jquery-ui-core","jquery-ui-datepicker","jquery-ui-widget","jquery-ui-position","jquery-ui-tooltip","query-stringify","cp_ppp_validate_script"), false, true );
|
458 |
+
|
459 |
+
|
460 |
+
wp_localize_script('cp_ppp_buikder_script', 'cp_ppp_fbuilder_config'.$CP_CPP_global_form_count, array('obj' =>
|
461 |
+
'{"pub":true,"identifier":"'.$CP_CPP_global_form_count.'","messages": {
|
462 |
+
"required": "'.str_replace(array('"'),array('\\"'),cp_ppp_get_option('vs_text_is_required', CP_PPP_DEFAULT_vs_text_is_required,$id)).'",
|
463 |
+
"email": "'.str_replace(array('"'),array('\\"'),cp_ppp_get_option('vs_text_is_email', CP_PPP_DEFAULT_vs_text_is_email,$id)).'",
|
464 |
+
"datemmddyyyy": "'.str_replace(array('"'),array('\\"'),cp_ppp_get_option('vs_text_datemmddyyyy', CP_PPP_DEFAULT_vs_text_datemmddyyyy,$id)).'",
|
465 |
+
"dateddmmyyyy": "'.str_replace(array('"'),array('\\"'),cp_ppp_get_option('vs_text_dateddmmyyyy', CP_PPP_DEFAULT_vs_text_dateddmmyyyy,$id)).'",
|
466 |
+
"number": "'.str_replace(array('"'),array('\\"'),cp_ppp_get_option('vs_text_number', CP_PPP_DEFAULT_vs_text_number,$id)).'",
|
467 |
+
"digits": "'.str_replace(array('"'),array('\\"'),cp_ppp_get_option('vs_text_digits', CP_PPP_DEFAULT_vs_text_digits,$id)).'",
|
468 |
+
"max": "'.str_replace(array('"'),array('\\"'),cp_ppp_get_option('vs_text_max', CP_PPP_DEFAULT_vs_text_max,$id)).'",
|
469 |
+
"min": "'.str_replace(array('"'),array('\\"'),cp_ppp_get_option('vs_text_min', CP_PPP_DEFAULT_vs_text_min,$id)).'",
|
470 |
+
"previous": "'.str_replace(array('"'),array('\\"'),$previous_label).'",
|
471 |
+
"next": "'.str_replace(array('"'),array('\\"'),$next_label).'"
|
472 |
+
}}'
|
473 |
+
));
|
474 |
+
}
|
475 |
+
else
|
476 |
+
{
|
477 |
+
wp_enqueue_script( "jquery" );
|
478 |
+
wp_enqueue_script( "jquery-ui-core" );
|
479 |
+
wp_enqueue_script( "jquery-ui-datepicker" );
|
480 |
+
}
|
481 |
+
|
482 |
+
wp_enqueue_style ('cp_ppp_buikder_script_f_p_styles', plugins_url('css/stylepublic.css', __FILE__));
|
483 |
+
wp_enqueue_style('cp_ppp_buikder_script_jq_styles', plugins_url('css/cupertino/jquery-ui-1.8.20.custom.css', __FILE__));
|
484 |
+
|
485 |
+
$codes = array();
|
486 |
+
|
487 |
+
$button_label = cp_ppp_get_option('vs_text_submitbtn', 'Submit',$id);
|
488 |
+
$button_label = ($button_label==''?'Submit':$button_label);
|
489 |
+
@include dirname( __FILE__ ) . '/cp_ppp_public_int.inc.php';
|
490 |
+
if (!CP_PPP_DEFAULT_DEFER_SCRIPTS_LOADING) {
|
491 |
+
$prefix_ui = '';
|
492 |
+
if (file_exists(dirname( __FILE__ ).'/../../../wp-includes/js/jquery/ui/jquery.ui.core.min.js'))
|
493 |
+
$prefix_ui = 'jquery.ui.';
|
494 |
+
?>
|
495 |
+
<?php $plugin_url = plugins_url('', __FILE__); ?>
|
496 |
+
<script> if( typeof jQuery != 'undefined' ) var jQueryBK = jQuery.noConflict(); </script>
|
497 |
+
<script type='text/javascript' src='<?php echo $plugin_url.'/../../../wp-includes/js/jquery/jquery.js'; ?>'></script>
|
498 |
+
<script type='text/javascript' src='<?php echo $plugin_url.'/../../../wp-includes/js/jquery/ui/'.$prefix_ui.'core.min.js'; ?>'></script>
|
499 |
+
<script type='text/javascript' src='<?php echo $plugin_url.'/../../../wp-includes/js/jquery/ui/'.$prefix_ui.'datepicker.min.js'; ?>'></script>
|
500 |
+
<script type='text/javascript' src='<?php echo $plugin_url.'/../../../wp-includes/js/jquery/ui/'.$prefix_ui.'widget.min.js'; ?>'></script>
|
501 |
+
<script type='text/javascript' src='<?php echo $plugin_url.'/../../../wp-includes/js/jquery/ui/'.$prefix_ui.'position.min.js'; ?>'></script>
|
502 |
+
<script type='text/javascript' src='<?php echo $plugin_url.'/../../../wp-includes/js/jquery/ui/'.$prefix_ui.'tooltip.min.js'; ?>'></script>
|
503 |
+
<script>
|
504 |
+
var fbuilderjQuery = jQuery.noConflict( );
|
505 |
+
if( typeof jQueryBK != 'undefined' ) jQuery = jQueryBK;
|
506 |
+
</script>
|
507 |
+
<script type='text/javascript' src='<?php echo plugins_url('js/jQuery.stringify.js', __FILE__); ?>'></script>
|
508 |
+
<script type='text/javascript' src='<?php echo plugins_url('js/jquery.validate.js', __FILE__); ?>'></script>
|
509 |
+
<script type='text/javascript'>
|
510 |
+
/* <![CDATA[ */
|
511 |
+
var cp_ppp_fbuilder_config<?php echo $CP_CPP_global_form_count; ?> = {"obj":"{\"pub\":true,\"identifier\":\"<?php echo $CP_CPP_global_form_count; ?>\",\"messages\": {\n \t \t\"required\": \"This field is required.\",\n \t \t\"email\": \"Please enter a valid email address.\",\n \t \t\"datemmddyyyy\": \"Please enter a valid date with this format(mm\/dd\/yyyy)\",\n \t \t\"dateddmmyyyy\": \"Please enter a valid date with this format(dd\/mm\/yyyy)\",\n \t \t\"number\": \"Please enter a valid number.\",\n \t \t\"digits\": \"Please enter only digits.\",\n \t \t\"max\": \"Please enter a value less than or equal to {0}.\",\n \t \t\"min\": \"Please enter a value greater than or equal to {0}.\",\"previous\": \"<?php echo str_replace(array('"'),array('\\"'),$previous_label); ?>\",\"next\": \"<?php echo str_replace(array('"'),array('\\"'),$next_label); ?>\"\n \t }}"};
|
512 |
+
/* ]]> */
|
513 |
+
</script>
|
514 |
+
<script type='text/javascript' src='<?php echo get_site_url( get_current_blog_id() ).'?cp_ppp_resources=public'; ?>'></script>
|
515 |
+
<?php
|
516 |
+
}
|
517 |
+
}
|
518 |
+
|
519 |
+
|
520 |
+
function cp_ppp_settingsLink($links) {
|
521 |
+
$settings_link = '<a href="options-general.php?page=cp_ppp">'.__('Settings').'</a>';
|
522 |
+
array_unshift($links, $settings_link);
|
523 |
+
return $links;
|
524 |
+
}
|
525 |
+
|
526 |
+
|
527 |
+
function cp_ppp_helpLink($links) {
|
528 |
+
$help_link = '<a href="http://wordpress.dwbooster.com/forms/cp-contact-form-with-paypal">'.__('Help').'</a>';
|
529 |
+
array_unshift($links, $help_link);
|
530 |
+
return $links;
|
531 |
+
}
|
532 |
+
|
533 |
+
|
534 |
+
function cp_ppp_customAdjustmentsLink($links) {
|
535 |
+
$customAdjustments_link = '<a href="http://wordpress.dwbooster.com/contact-us">'.__('Request custom changes').'</a>';
|
536 |
+
array_unshift($links, $customAdjustments_link);
|
537 |
+
return $links;
|
538 |
+
}
|
539 |
+
|
540 |
+
|
541 |
+
function set_cp_ppp_insert_button() {
|
542 |
+
print '<a href="javascript:cp_ppp_insertForm();" title="'.__('Insert Payment Form for PayPal Pro').'"><img hspace="5" src="'.plugins_url('/images/cp_form.gif', __FILE__).'" alt="'.__('Insert Payment Form for PayPal Pro').'" /></a>';
|
543 |
+
}
|
544 |
+
|
545 |
+
|
546 |
+
function cp_ppp_html_post_page() {
|
547 |
+
if (isset($_GET["cal"]) && $_GET["cal"] != '')
|
548 |
+
{
|
549 |
+
if (isset($_GET["list"]) && $_GET["list"] == '1')
|
550 |
+
@include_once dirname( __FILE__ ) . '/cp_ppp_admin_int_message_list.inc.php';
|
551 |
+
else if (current_user_can('manage_options'))
|
552 |
+
@include_once dirname( __FILE__ ) . '/cp_ppp_admin_int.php';
|
553 |
+
else
|
554 |
+
echo 'Current user permissions aren\'t enough for accesing this page.';
|
555 |
+
}
|
556 |
+
else
|
557 |
+
{
|
558 |
+
if (isset($_GET["page"]) &&$_GET["page"] == 'cp_ppp_upgrade')
|
559 |
+
{
|
560 |
+
echo("Redirecting to upgrade page...<script type='text/javascript'>document.location='http://wordpress.dwbooster.com/forms/paypal-payment-pro-form#download';</script>");
|
561 |
+
exit;
|
562 |
+
}
|
563 |
+
else if (isset($_GET["page"]) &&$_GET["page"] == 'cp_ppp_demo')
|
564 |
+
{
|
565 |
+
echo("Redirecting to demo page...<script type='text/javascript'>document.location='http://wordpress.dwbooster.com/forms/cp-contact-form-with-paypal#demo';</script>");
|
566 |
+
exit;
|
567 |
+
}
|
568 |
+
else
|
569 |
+
@include_once dirname( __FILE__ ) . '/cp_ppp_admin_int_list.inc.php';
|
570 |
+
}
|
571 |
+
}
|
572 |
+
|
573 |
+
|
574 |
+
function set_cp_ppp_insert_adminScripts($hook) {
|
575 |
+
if (isset($_GET["page"]) && $_GET["page"] == "cp_ppp")
|
576 |
+
{
|
577 |
+
wp_deregister_script('query-stringify');
|
578 |
+
wp_register_script('query-stringify', plugins_url('/js/jQuery.stringify.js', __FILE__));
|
579 |
+
wp_enqueue_script( 'cp_ppp_buikder_script', get_site_url( get_current_blog_id() ).'?cp_ppp_resources=admin',array("jquery","jquery-ui-core","jquery-ui-sortable","jquery-ui-tabs","jquery-ui-droppable","jquery-ui-button","jquery-ui-datepicker","query-stringify") );
|
580 |
+
|
581 |
+
wp_enqueue_style('cp_ppp_buikder_script_f_styles', plugins_url('css/style.css', __FILE__));
|
582 |
+
wp_enqueue_style('cp_ppp_buikder_script_jq_styles', plugins_url('css/cupertino/jquery-ui-1.8.20.custom.css', __FILE__));
|
583 |
+
}
|
584 |
+
|
585 |
+
if( 'post.php' != $hook && 'post-new.php' != $hook )
|
586 |
+
return;
|
587 |
+
wp_enqueue_script( 'cp_ppp_script', plugins_url('/cp_ppp_scripts.js', __FILE__) );
|
588 |
+
}
|
589 |
+
|
590 |
+
|
591 |
+
function cp_ppp_get_site_url($admin = false)
|
592 |
+
{
|
593 |
+
$blog = get_current_blog_id();
|
594 |
+
if( $admin )
|
595 |
+
$url = get_admin_url( $blog );
|
596 |
+
else
|
597 |
+
$url = get_home_url( $blog );
|
598 |
+
|
599 |
+
$url = parse_url($url);
|
600 |
+
$url = rtrim(@$url["path"],"/");
|
601 |
+
return $url;
|
602 |
+
}
|
603 |
+
|
604 |
+
function cp_ppp_get_FULL_site_url($admin = false)
|
605 |
+
{
|
606 |
+
$url = cp_ppp_get_site_url($admin);
|
607 |
+
$pos = strpos($url, "://");
|
608 |
+
if ($pos === false)
|
609 |
+
$url = 'http://'.$_SERVER["HTTP_HOST"].$url;
|
610 |
+
// if (!empty($_SERVER['HTTPS']))
|
611 |
+
// $url = str_replace("http://","https://",$url);
|
612 |
+
return $url;
|
613 |
+
}
|
614 |
+
|
615 |
+
function cp_ppp_cleanJSON($str)
|
616 |
+
{
|
617 |
+
$str = str_replace('&qquot;','"',$str);
|
618 |
+
$str = str_replace(' ',' ',$str);
|
619 |
+
$str = str_replace("\n",'\n',$str);
|
620 |
+
$str = str_replace("\r",'',$str);
|
621 |
+
return $str;
|
622 |
+
}
|
623 |
+
|
624 |
+
|
625 |
+
function cp_ppp_load_discount_codes() {
|
626 |
+
global $wpdb;
|
627 |
+
|
628 |
+
if ( ! current_user_can('edit_pages') ) // prevent loading coupons from outside admin area
|
629 |
+
{
|
630 |
+
echo 'No enough privilegies to load this content.';
|
631 |
+
exit;
|
632 |
+
}
|
633 |
+
|
634 |
+
if (!defined('CP_PPP_ID'))
|
635 |
+
define ('CP_PPP_ID',intval($_GET["dex_item"]));
|
636 |
+
|
637 |
+
cp_ppp_add_field_verify($wpdb->prefix.CP_PPP_DISCOUNT_CODES_TABLE_NAME_NO_PREFIX ,"dc_times", "varchar(10) DEFAULT '0' NOT NULL");
|
638 |
+
|
639 |
+
if (isset($_GET["add"]) && $_GET["add"] == "1")
|
640 |
+
$wpdb->insert( CP_PPP_DISCOUNT_CODES_TABLE_NAME, array('form_id' => CP_PPP_ID,
|
641 |
+
'code' => esc_sql($_GET["code"]),
|
642 |
+
'discount' => $_GET["discount"],
|
643 |
+
'availability' => $_GET["discounttype"],
|
644 |
+
'dc_times' => $_GET["tm"],
|
645 |
+
'expires' => esc_sql($_GET["expires"]),
|
646 |
+
));
|
647 |
+
|
648 |
+
if (isset($_GET["delete"]) && $_GET["delete"] == "1")
|
649 |
+
$wpdb->query( $wpdb->prepare( "DELETE FROM ".CP_PPP_DISCOUNT_CODES_TABLE_NAME." WHERE id = %d", $_GET["code"] ));
|
650 |
+
|
651 |
+
$codes = $wpdb->get_results( $wpdb->prepare('SELECT * FROM '.CP_PPP_DISCOUNT_CODES_TABLE_NAME.' WHERE `form_id`=%d', CP_PPP_ID) );
|
652 |
+
if (count ($codes))
|
653 |
+
{
|
654 |
+
echo '<table>';
|
655 |
+
echo '<tr>';
|
656 |
+
echo ' <th style="padding:2px;background-color: #cccccc;font-weight:bold;">Cupon Code</th>';
|
657 |
+
echo ' <th style="padding:2px;background-color: #cccccc;font-weight:bold;">Discount</th>';
|
658 |
+
echo ' <th style="padding:2px;background-color: #cccccc;font-weight:bold;">Type</th>';
|
659 |
+
echo ' <th style="padding:2px;background-color: #cccccc;font-weight:bold;" nowrap>Can be used?</th>';
|
660 |
+
echo ' <th style="padding:2px;background-color: #cccccc;font-weight:bold;" nowrap>Used so far</th>';
|
661 |
+
echo ' <th style="padding:2px;background-color: #cccccc;font-weight:bold;">Valid until</th>';
|
662 |
+
echo ' <th style="padding:2px;background-color: #cccccc;font-weight:bold;">Options</th>';
|
663 |
+
echo '</tr>';
|
664 |
+
foreach ($codes as $value)
|
665 |
+
{
|
666 |
+
echo '<tr>';
|
667 |
+
echo '<td>'.$value->code.'</td>';
|
668 |
+
echo '<td>'.$value->discount.'</td>';
|
669 |
+
echo '<td>'.($value->availability==1?"Fixed Value":"Percent").'</td>';
|
670 |
+
echo '<td nowrap>'.($value->dc_times=='0'?'Unlimited':$value->dc_times.' times').'</td>';
|
671 |
+
echo '<td nowrap>'.$value->used.' times</td>';
|
672 |
+
echo '<td>'.substr($value->expires,0,10).'</td>';
|
673 |
+
echo '<td>[<a href="javascript:dex_delete_coupon('.$value->id.')">Delete</a>]</td>';
|
674 |
+
echo '</tr>';
|
675 |
+
}
|
676 |
+
echo '</table>';
|
677 |
+
}
|
678 |
+
else
|
679 |
+
echo 'No discount codes listed for this form yet.';
|
680 |
+
exit;
|
681 |
+
}
|
682 |
+
|
683 |
+
|
684 |
+
function cp_ppp_check_posted_data() {
|
685 |
+
|
686 |
+
global $wpdb;
|
687 |
+
|
688 |
+
|
689 |
+
if( isset( $_REQUEST[ 'cp_ppp_resources' ] ) )
|
690 |
+
{
|
691 |
+
if( $_REQUEST[ 'cp_ppp_resources' ] == 'admin' )
|
692 |
+
{
|
693 |
+
require_once dirname( __FILE__ ).'/js/fbuilder-loader-admin.php';
|
694 |
+
}
|
695 |
+
else
|
696 |
+
{
|
697 |
+
require_once dirname( __FILE__ ).'/js/fbuilder-loader-public.php';
|
698 |
+
}
|
699 |
+
exit;
|
700 |
+
}
|
701 |
+
|
702 |
+
if (isset( $_GET['cp_ppp_encodingfix'] ) && $_GET['cp_ppp_encodingfix'] == '1')
|
703 |
+
{
|
704 |
+
$wpdb->query( $wpdb->prepare('alter table '.CP_PPP_DISCOUNT_CODES_TABLE_NAME.' convert to character set utf8 collate utf8_unicode_ci;', array()) );
|
705 |
+
$wpdb->query( $wpdb->prepare('alter table '.CP_PPP_FORMS_TABLE.' convert to character set utf8 collate utf8_unicode_ci;', array()) );
|
706 |
+
$wpdb->query( $wpdb->prepare('alter table '.CP_PPP_POSTS_TABLE_NAME.' convert to character set utf8 collate utf8_unicode_ci;', array()) );
|
707 |
+
echo 'Ok, encoding fixed.';
|
708 |
+
exit;
|
709 |
+
}
|
710 |
+
|
711 |
+
if(isset($_GET) && array_key_exists('cp_ppp_post',$_GET)) {
|
712 |
+
if ($_GET["cp_ppp_post"] == 'loadcoupons')
|
713 |
+
cp_ppp_load_discount_codes();
|
714 |
+
}
|
715 |
+
|
716 |
+
if (isset( $_GET['cp_ppp'] ) && $_GET['cp_ppp'] == 'captcha' )
|
717 |
+
{
|
718 |
+
@include_once dirname( __FILE__ ) . '/captcha/captcha.php';
|
719 |
+
exit;
|
720 |
+
}
|
721 |
+
|
722 |
+
if (isset( $_GET['cp_ppp_csv'] ) && is_admin() )
|
723 |
+
{
|
724 |
+
cp_ppp_export_csv();
|
725 |
+
return;
|
726 |
+
}
|
727 |
+
|
728 |
+
if (isset( $_GET['script_load_method'] ) )
|
729 |
+
{
|
730 |
+
cp_ppp_update_script_method();
|
731 |
+
return;
|
732 |
+
}
|
733 |
+
|
734 |
+
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST['cp_ppp_post_options'] ) && is_admin() )
|
735 |
+
{
|
736 |
+
cp_ppp_save_options();
|
737 |
+
return;
|
738 |
+
}
|
739 |
+
|
740 |
+
if ( 'POST' != $_SERVER['REQUEST_METHOD'] || ! isset( $_POST['cp_ppp_pform_process'] ) )
|
741 |
+
if ( 'GET' != $_SERVER['REQUEST_METHOD'] || !isset( $_GET['hdcaptcha_cp_ppp_post'] ) )
|
742 |
+
return;
|
743 |
+
|
744 |
+
if (isset($_GET["cp_ppp_id"])) $_POST["cp_ppp_id"] = intval($_GET["cp_ppp_id"]);
|
745 |
+
if (isset($_POST["cp_ppp_id"])) define("CP_PPP_ID",intval($_POST["cp_ppp_id"]));
|
746 |
+
|
747 |
+
@session_start();
|
748 |
+
if (isset($_GET["ps"])) $sequence = $_GET["ps"]; else if (isset($_POST["cp_pform_psequence"])) $sequence = $_POST["cp_pform_psequence"];
|
749 |
+
if (!isset($_GET['hdcaptcha_cp_ppp_post']) || $_GET['hdcaptcha_cp_ppp_post'] == '') $_GET['hdcaptcha_cp_ppp_post'] = @$_POST['hdcaptcha_cp_ppp_post'];
|
750 |
+
if (
|
751 |
+
(cp_ppp_get_option('cv_enable_captcha', CP_PPP_DEFAULT_cv_enable_captcha) != 'false') &&
|
752 |
+
( (strtolower($_GET['hdcaptcha_cp_ppp_post']) != strtolower(@$_SESSION['rand_code'.$sequence])) ||
|
753 |
+
($_SESSION['rand_code'.$sequence] == '')
|
754 |
+
)
|
755 |
+
&&
|
756 |
+
( (md5(strtolower($_GET['hdcaptcha_cp_ppp_post'])) != $_COOKIE['rand_code'.$sequence]) ||
|
757 |
+
($_COOKIE['rand_code'.$sequence] == '')
|
758 |
+
)
|
759 |
+
)
|
760 |
+
{
|
761 |
+
echo 'captchafailed';
|
762 |
+
exit;
|
763 |
+
}
|
764 |
+
|
765 |
+
// if this isn't the real post (it was the captcha verification) then echo ok and exit
|
766 |
+
if ( 'POST' != $_SERVER['REQUEST_METHOD'] || ! isset( $_POST['cp_ppp_pform_process'] ) )
|
767 |
+
{
|
768 |
+
echo 'ok';
|
769 |
+
exit;
|
770 |
+
}
|
771 |
+
|
772 |
+
|
773 |
+
// get base price
|
774 |
+
$price = cp_ppp_get_option('request_cost', CP_PPP_DEFAULT_COST);
|
775 |
+
$price = trim(str_replace(',','', str_replace(CP_PPP_DEFAULT_CURRENCY_SYMBOL,'',
|
776 |
+
str_replace(CP_PPP_GBP_CURRENCY_SYMBOL,'',
|
777 |
+
str_replace(CP_PPP_EUR_CURRENCY_SYMBOL_A, '',
|
778 |
+
str_replace(CP_PPP_EUR_CURRENCY_SYMBOL_B,'', $price )))) ));
|
779 |
+
$added_cost = @$_POST[cp_ppp_get_option('paypal_price_field', '').$sequence];
|
780 |
+
$added_cost = str_replace('$','',$added_cost);
|
781 |
+
$added_cost = str_replace('USD','',$added_cost);
|
782 |
+
$added_cost = str_replace('EUR','',$added_cost);
|
783 |
+
$added_cost = str_replace('GBP','',$added_cost);
|
784 |
+
$added_cost = trim($added_cost);
|
785 |
+
if (!is_numeric($added_cost))
|
786 |
+
$added_cost = 0;
|
787 |
+
$price += $added_cost;
|
788 |
+
$taxes = trim(str_replace("%","",cp_ppp_get_option('request_taxes', '0')));
|
789 |
+
|
790 |
+
// get form info
|
791 |
+
//---------------------------
|
792 |
+
$identify_prices = cp_ppp_get_option('paypal_identify_prices',CP_PPP_DEFAULT_PAYPAL_IDENTIFY_PRICES);
|
793 |
+
$paypal_zero_payment = cp_ppp_get_option('paypal_zero_payment',CP_PPP_DEFAULT_PAYPAL_ZERO_PAYMENT);
|
794 |
+
require_once(ABSPATH . "wp-admin" . '/includes/file.php');
|
795 |
+
$form_data = json_decode(cp_ppp_cleanJSON(cp_ppp_get_option('form_structure', CP_PPP_DEFAULT_form_structure)));
|
796 |
+
$fields = array();
|
797 |
+
foreach ($form_data[0] as $item)
|
798 |
+
{
|
799 |
+
$fields[$item->name] = $item->title;
|
800 |
+
if ($item->predefined == $_POST[$item->name.$sequence] && $item->predefinedClick == '1')
|
801 |
+
$_POST[$item->name.$sequence] = '';
|
802 |
+
if ($item->ftype == 'fPhone') // join fields for phone fields
|
803 |
+
{
|
804 |
+
if (isset($_POST[$item->name.$sequence."_0"]))
|
805 |
+
{
|
806 |
+
$_POST[$item->name.$sequence] = '';
|
807 |
+
for($i=0; $i<=substr_count($item->dformat," "); $i++)
|
808 |
+
{
|
809 |
+
$_POST[$item->name.$sequence] .= ($_POST[$item->name.$sequence."_".$i]!=''?($i==0?'':'-').$_POST[$item->name.$sequence."_".$i]:'');
|
810 |
+
unset($_POST[$item->name.$sequence."_".$i]);
|
811 |
+
}
|
812 |
+
}
|
813 |
+
}
|
814 |
+
else if (isset($_POST[$item->name.$sequence]) && $identify_prices && ($item->ftype == 'fcheck' || $item->ftype == 'fradio' || $item->ftype == 'fdropdown'))
|
815 |
+
{
|
816 |
+
$values = ( is_array($_POST[$item->name.$sequence]) ? $_POST[$item->name.$sequence] : array($_POST[$item->name.$sequence]) );
|
817 |
+
|
818 |
+
foreach ($values as $value)
|
819 |
+
{
|
820 |
+
$matches_eur_a = array();
|
821 |
+
preg_match_all ('/([0-9,]+(\.[0-9]{2})?)/', $value, $matches_eur_a);
|
822 |
+
$matches = $matches_eur_a[0];
|
823 |
+
|
824 |
+
foreach ($matches as $item)
|
825 |
+
{
|
826 |
+
$item = trim(str_replace(',','', str_replace(CP_PPP_DEFAULT_CURRENCY_SYMBOL,'',
|
827 |
+
str_replace(CP_PPP_GBP_CURRENCY_SYMBOL,'',
|
828 |
+
str_replace(CP_PPP_EUR_CURRENCY_SYMBOL_A, '',
|
829 |
+
str_replace(CP_PPP_EUR_CURRENCY_SYMBOL_B,'', $item )))) ));
|
830 |
+
if (is_numeric($item)) {
|
831 |
+
$nindex = strpos($value, " ".$item);
|
832 |
+
$nindex2 = substr($value,0,strlen($item));
|
833 |
+
if ($nindex === false && $nindex2 != $item) // exclude items with a black space before it
|
834 |
+
$price += $item;
|
835 |
+
}
|
836 |
+
}
|
837 |
+
}
|
838 |
+
}
|
839 |
+
}
|
840 |
+
|
841 |
+
// calculate discounts if any
|
842 |
+
//---------------------------
|
843 |
+
$discount_note = "";
|
844 |
+
$coupon = false;
|
845 |
+
$codes = $wpdb->get_results( $wpdb->prepare(
|
846 |
+
"SELECT * FROM ".CP_PPP_DISCOUNT_CODES_TABLE_NAME." WHERE ((dc_times>used) OR dc_times='0') AND code=%s AND expires>=%s AND `form_id`=%d",
|
847 |
+
@$_POST["couponcode"], date("Y-m-d")." 00:00:00", CP_PPP_ID
|
848 |
+
)
|
849 |
+
);
|
850 |
+
if (count($codes))
|
851 |
+
{
|
852 |
+
$coupon = $codes[0];
|
853 |
+
if ($coupon->availability==1)
|
854 |
+
{
|
855 |
+
$price = number_format (floatval ($price) - $coupon->discount,2);
|
856 |
+
$discount_note = " (".cp_ppp_get_option('currency', CP_PPP_DEFAULT_CURRENCY)." ".$coupon->discount." discount applied)";
|
857 |
+
}
|
858 |
+
else
|
859 |
+
{
|
860 |
+
$price = number_format (floatval ($price) - $price*$coupon->discount/100,2);
|
861 |
+
$discount_note = " (".$coupon->discount."% discount applied)";
|
862 |
+
}
|
863 |
+
}
|
864 |
+
|
865 |
+
if ( cp_ppp_get_option('enable_paypal',CP_PPP_DEFAULT_ENABLE_PAYPAL) == "3" && ($_POST['cp_ppp_paymentspro'.$sequence] == "1") )
|
866 |
+
{
|
867 |
+
cp_ppp_payments_pro($price);
|
868 |
+
exit;
|
869 |
+
}
|
870 |
+
|
871 |
+
// grab posted data
|
872 |
+
//---------------------------
|
873 |
+
$buffer = "";
|
874 |
+
foreach ($_POST as $item => $value)
|
875 |
+
if (isset($fields[str_replace($sequence,'',$item)]))
|
876 |
+
{
|
877 |
+
$buffer .= $fields[str_replace($sequence,'',$item)] . ": ". (is_array($value)?(implode(", ",$value)):($value)) . "\n\n";
|
878 |
+
$params[str_replace($sequence,'',$item)] = $value;
|
879 |
+
}
|
880 |
+
|
881 |
+
$buffer_A = $buffer;
|
882 |
+
|
883 |
+
$paypal_product_name = cp_ppp_get_option('paypal_product_name', CP_PPP_DEFAULT_PRODUCT_NAME).$discount_note;
|
884 |
+
$params["PayPal Product Name"] = $paypal_product_name;
|
885 |
+
$params["Cost"] = $price;
|
886 |
+
$params["Costtax"] = $price + round($price * ($taxes/100),2);
|
887 |
+
$params["coupon"] = ($coupon?$coupon->code:"");
|
888 |
+
|
889 |
+
$current_user = wp_get_current_user();
|
890 |
+
$params["user_login"] = $current_user->user_login;
|
891 |
+
$params["user_id"] = $current_user->ID;
|
892 |
+
$params["user_email"] = $current_user->user_email;
|
893 |
+
$params["user_firstname"] = $current_user->user_firstname;
|
894 |
+
$params["user_lastname"] = $current_user->user_lastname;
|
895 |
+
$params["display_name"] = $current_user->display_name;
|
896 |
+
|
897 |
+
if (isset($_POST["bccf_payment_option_paypal"]) && $_POST["bccf_payment_option_paypal"] == '0')
|
898 |
+
$params["payment_type"] = 'Other';
|
899 |
+
else
|
900 |
+
$params["payment_type"] = 'PayPal';
|
901 |
+
|
902 |
+
cp_ppp_add_field_verify(CP_PPP_POSTS_TABLE_NAME,'posted_data');
|
903 |
+
|
904 |
+
// insert into database
|
905 |
+
//---------------------------
|
906 |
+
$to = cp_ppp_get_option('cu_user_email_field', CP_PPP_DEFAULT_cu_user_email_field).$sequence;
|
907 |
+
$rows_affected = $wpdb->insert( CP_PPP_POSTS_TABLE_NAME, array( 'formid' => CP_PPP_ID,
|
908 |
+
'time' => current_time('mysql'),
|
909 |
+
'ipaddr' => $_SERVER['REMOTE_ADDR'],
|
910 |
+
'notifyto' => @$_POST[$to],
|
911 |
+
'paypal_post' => serialize($params),
|
912 |
+
'posted_data' => serialize($params),
|
913 |
+
'data' =>$buffer_A .($coupon?"\n\nCoupon code:".$coupon->code.$discount_note:"")
|
914 |
+
) );
|
915 |
+
if (!$rows_affected)
|
916 |
+
{
|
917 |
+
echo 'Error saving data! Please try again.';
|
918 |
+
echo '<br /><br />Error debug information: '.mysql_error();
|
919 |
+
exit;
|
920 |
+
}
|
921 |
+
|
922 |
+
$myrows = $wpdb->get_results( "SELECT MAX(id) as max_id FROM ".CP_PPP_POSTS_TABLE_NAME );
|
923 |
+
|
924 |
+
|
925 |
+
// save data here
|
926 |
+
$item_number = $myrows[0]->max_id;
|
927 |
+
|
928 |
+
$paypal_optional = (cp_ppp_get_option('enable_paypal',CP_PPP_DEFAULT_ENABLE_PAYPAL) == '2');
|
929 |
+
$paypal_recurrent = cp_ppp_get_option('paypal_recurrent_setup','0');
|
930 |
+
|
931 |
+
//if (cp_ppp_get_option('enable_paypal',CP_PPP_DEFAULT_ENABLE_PAYPAL) == "3")
|
932 |
+
$wpdb->query( $wpdb->prepare(
|
933 |
+
"UPDATE ".CP_PPP_POSTS_TABLE_NAME." SET paid=1,paypal_post='' WHERE id=%d",
|
934 |
+
$item_number
|
935 |
+
)
|
936 |
+
);
|
937 |
+
|
938 |
+
cp_ppp_process_ready_to_go_reservation($item_number, "", $params);
|
939 |
+
header("Location: ".cp_ppp_get_option('fp_return_page', CP_PPP_DEFAULT_fp_return_page));
|
940 |
+
exit;
|
941 |
+
|
942 |
+
}
|
943 |
+
|
944 |
+
function cp_ppp_add_field_verify ($table, $field, $type = "text")
|
945 |
+
{
|
946 |
+
global $wpdb;
|
947 |
+
$results = $wpdb->get_results( $wpdb->prepare(
|
948 |
+
"SHOW columns FROM `".$table."` where field=%s",
|
949 |
+
$field
|
950 |
+
)
|
951 |
+
);
|
952 |
+
if (!count($results))
|
953 |
+
{
|
954 |
+
$sql = "ALTER TABLE `".$table."` ADD `".$field."` ".$type;
|
955 |
+
$wpdb->query($sql);
|
956 |
+
}
|
957 |
+
}
|
958 |
+
|
959 |
+
function cp_ppp_check_upload($uploadfiles) {
|
960 |
+
$filetmp = $uploadfiles['tmp_name'];
|
961 |
+
//clean filename and extract extension
|
962 |
+
$filename = $uploadfiles['name'];
|
963 |
+
// get file info
|
964 |
+
$filetype = wp_check_filetype( basename( $filename ), null );
|
965 |
+
|
966 |
+
if ( in_array ($filetype["ext"],array("php","asp","aspx","cgi","pl","perl","exe")) )
|
967 |
+
return false;
|
968 |
+
else
|
969 |
+
return true;
|
970 |
+
}
|
971 |
+
|
972 |
+
function cp_ppp_payments_pro_POST($methodName_, $nvpStr_) {
|
973 |
+
global $wpdb;
|
974 |
+
|
975 |
+
|
976 |
+
// Set up your API credentials, PayPal end point, and API version.
|
977 |
+
$API_UserName = urlencode(cp_ppp_get_option('paypalpro_api_username',''));
|
978 |
+
$API_Password = urlencode(cp_ppp_get_option('paypalpro_api_password',''));
|
979 |
+
$API_Signature = urlencode(cp_ppp_get_option('paypalpro_api_signature',''));
|
980 |
+
if (cp_ppp_get_option('paypal_mode',CP_PPP_DEFAULT_PAYPAL_MODE) == "sandbox")
|
981 |
+
$API_Endpoint = "https://api-3t.sandbox.paypal.com/nvp";
|
982 |
+
else
|
983 |
+
$API_Endpoint = "https://api-3t.paypal.com/nvp";
|
984 |
+
$version = urlencode('51.0');
|
985 |
+
|
986 |
+
// Set the curl parameters.
|
987 |
+
$ch = curl_init();
|
988 |
+
curl_setopt($ch, CURLOPT_URL, $API_Endpoint);
|
989 |
+
curl_setopt($ch, CURLOPT_VERBOSE, 1);
|
990 |
+
|
991 |
+
// Turn off the server and peer verification (TrustManager Concept).
|
992 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
|
993 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
|
994 |
+
|
995 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
996 |
+
curl_setopt($ch, CURLOPT_POST, 1);
|
997 |
+
|
998 |
+
// Set the API operation, version, and API signature in the request.
|
999 |
+
$nvpreq = "METHOD=$methodName_&VERSION=$version&PWD=$API_Password&USER=$API_UserName&SIGNATURE=$API_Signature$nvpStr_";
|
1000 |
+
|
1001 |
+
// Set the request as a POST FIELD for curl.
|
1002 |
+
curl_setopt($ch, CURLOPT_POSTFIELDS, $nvpreq);
|
1003 |
+
|
1004 |
+
// Get response from the server.
|
1005 |
+
$httpResponse = curl_exec($ch);
|
1006 |
+
|
1007 |
+
if(!$httpResponse) {
|
1008 |
+
exit("$methodName_ failed: ".curl_error($ch).'('.curl_errno($ch).')');
|
1009 |
+
}
|
1010 |
+
|
1011 |
+
// Extract the response details.
|
1012 |
+
$httpResponseAr = explode("&", $httpResponse);
|
1013 |
+
|
1014 |
+
$httpParsedResponseAr = array();
|
1015 |
+
foreach ($httpResponseAr as $i => $value) {
|
1016 |
+
$tmpAr = explode("=", $value);
|
1017 |
+
if(sizeof($tmpAr) > 1) {
|
1018 |
+
$httpParsedResponseAr[$tmpAr[0]] = $tmpAr[1];
|
1019 |
+
}
|
1020 |
+
}
|
1021 |
+
|
1022 |
+
if((0 == sizeof($httpParsedResponseAr)) || !array_key_exists('ACK', $httpParsedResponseAr)) {
|
1023 |
+
exit("Invalid HTTP Response for POST request($nvpreq) to $API_Endpoint.");
|
1024 |
+
}
|
1025 |
+
|
1026 |
+
return $httpParsedResponseAr;
|
1027 |
+
}
|
1028 |
+
|
1029 |
+
function cp_ppp_payments_pro($price) {
|
1030 |
+
global $wpdb;
|
1031 |
+
|
1032 |
+
// Set request-specific fields.
|
1033 |
+
$paymentType = urlencode('Sale'); // or 'Authorization'
|
1034 |
+
|
1035 |
+
$firstName = urlencode($_POST['cfpp_customer_first_name']);
|
1036 |
+
$lastName = urlencode($_POST['cfpp_customer_last_name']);
|
1037 |
+
$creditCardType = urlencode($_POST['cfpp_customer_credit_card_type']);
|
1038 |
+
$creditCardNumber = urlencode($_POST['cfpp_customer_credit_card_number']);
|
1039 |
+
$expDateMonth = $_POST['cfpp_cc_expiration_month'];
|
1040 |
+
// Month must be padded with leading zero
|
1041 |
+
$padDateMonth = urlencode(str_pad($expDateMonth, 2, '0', STR_PAD_LEFT));
|
1042 |
+
|
1043 |
+
$expDateYear = urlencode($_POST['cfpp_cc_expiration_year']);
|
1044 |
+
$cvv2Number = urlencode($_POST['cfpp_cc_cvv2_number']);
|
1045 |
+
$address1 = urlencode($_POST['cfpp_customer_address1']);
|
1046 |
+
$address2 = urlencode($_POST['cfpp_customer_address2']);
|
1047 |
+
$city = urlencode($_POST['cfpp_customer_city']);
|
1048 |
+
$state = urlencode($_POST['cfpp_customer_state']);
|
1049 |
+
$zip = urlencode($_POST['cfpp_customer_zip']);
|
1050 |
+
$country = urlencode($_POST['cfpp_customer_country']); // US or other valid country code
|
1051 |
+
|
1052 |
+
$amount = urlencode($price);
|
1053 |
+
$currencyID = urlencode(strtoupper(cp_ppp_get_option('currency', CP_PPP_DEFAULT_CURRENCY)));
|
1054 |
+
|
1055 |
+
// Add request-specific fields to the request string.
|
1056 |
+
$nvpStr = "&PAYMENTACTION=$paymentType&AMT=$amount&CREDITCARDTYPE=$creditCardType&ACCT=$creditCardNumber".
|
1057 |
+
"&EXPDATE=$padDateMonth$expDateYear&CVV2=$cvv2Number&FIRSTNAME=$firstName&LASTNAME=$lastName".
|
1058 |
+
"&STREET=$address1&CITY=$city&STATE=$state&ZIP=$zip&COUNTRYCODE=$country&CURRENCYCODE=$currencyID&BUTTONSOURCE=NetFactorSL_SI_Custom";
|
1059 |
+
|
1060 |
+
// Execute the API operation; see the PPHttpPost function above.
|
1061 |
+
$httpParsedResponseAr = cp_ppp_payments_pro_POST('DoDirectPayment', $nvpStr);
|
1062 |
+
foreach ($httpParsedResponseAr as $item => $value)
|
1063 |
+
$httpParsedResponseAr[$item] = urldecode($value);
|
1064 |
+
if("SUCCESS" == strtoupper($httpParsedResponseAr["ACK"]) || "SUCCESSWITHWARNING" == strtoupper($httpParsedResponseAr["ACK"])) {
|
1065 |
+
exit('OK');
|
1066 |
+
} else {
|
1067 |
+
exit("Payment failed: ".$httpParsedResponseAr["L_LONGMESSAGE0"]."\n\nError Code: " . $httpParsedResponseAr["L_ERRORCODE0"]." (". $httpParsedResponseAr["L_SHORTMESSAGE0"].")");
|
1068 |
+
}
|
1069 |
+
|
1070 |
+
}
|
1071 |
+
|
1072 |
+
|
1073 |
+
function cp_ppp_process_ready_to_go_reservation($itemnumber, $payer_email = "", $params = array())
|
1074 |
+
{
|
1075 |
+
|
1076 |
+
global $wpdb;
|
1077 |
+
|
1078 |
+
if (!defined('CP_PPP_DEFAULT_fp_from_email')) define('CP_PPP_DEFAULT_fp_from_email', get_the_author_meta('user_email', get_current_user_id()) );
|
1079 |
+
if (!defined('CP_PPP_DEFAULT_fp_destination_emails')) define('CP_PPP_DEFAULT_fp_destination_emails', CP_PPP_DEFAULT_fp_from_email);
|
1080 |
+
|
1081 |
+
$myrows = $wpdb->get_results( $wpdb->prepare(
|
1082 |
+
"SELECT * FROM ".CP_PPP_POSTS_TABLE_NAME." WHERE id=%d",
|
1083 |
+
$itemnumber
|
1084 |
+
)
|
1085 |
+
);
|
1086 |
+
|
1087 |
+
$mycalendarrows = $wpdb->get_results( $wpdb->prepare(
|
1088 |
+
'SELECT * FROM '. $wpdb->prefix.CP_PPP_FORMS_TABLE .' WHERE `id`=%d',
|
1089 |
+
$myrows[0]->formid
|
1090 |
+
)
|
1091 |
+
);
|
1092 |
+
|
1093 |
+
if (!defined('CP_PPP_ID'))
|
1094 |
+
define ('CP_PPP_ID',$myrows[0]->formid);
|
1095 |
+
|
1096 |
+
$buffer_A = $myrows[0]->data;
|
1097 |
+
$buffer = $buffer_A;
|
1098 |
+
|
1099 |
+
if ($params["coupon"] != '')
|
1100 |
+
$wpdb->query( $wpdb->prepare(
|
1101 |
+
"UPDATE ".CP_PPP_DISCOUNT_CODES_TABLE_NAME." SET used=used+1 WHERE code=%s AND expires>=%s AND `form_id`=%d",
|
1102 |
+
@$params["coupon"], date("Y-m-d")." 00:00:00", $myrows[0]->formid
|
1103 |
+
)
|
1104 |
+
);
|
1105 |
+
|
1106 |
+
if ('true' == cp_ppp_get_option('fp_inc_additional_info', CP_PPP_DEFAULT_fp_inc_additional_info))
|
1107 |
+
{
|
1108 |
+
$buffer .="ADDITIONAL INFORMATION\n"
|
1109 |
+
."*********************************\n"
|
1110 |
+
."IP: ".$myrows[0]->ipaddr."\n"
|
1111 |
+
."Server Time: ".date("Y-m-d H:i:s")."\n";
|
1112 |
+
}
|
1113 |
+
|
1114 |
+
// 1- Send email
|
1115 |
+
//---------------------------
|
1116 |
+
|
1117 |
+
/**
|
1118 |
+
$username = "user".$itemnumber;
|
1119 |
+
$password = wp_generate_password( $length=12, $include_standard_special_chars=false );
|
1120 |
+
$email = trim($myrows[0]->notifyto);
|
1121 |
+
wp_create_user( $username, $password, $email );
|
1122 |
+
*/
|
1123 |
+
$attachments = array();
|
1124 |
+
if ('html' == cp_ppp_get_option('fp_emailformat', CP_PPP_DEFAULT_email_format))
|
1125 |
+
$message = str_replace('<'.'%INFO%'.'>',str_replace("\n","<br />",str_replace('<','<',$buffer)),cp_ppp_get_option('fp_message', CP_PPP_DEFAULT_fp_message));
|
1126 |
+
else
|
1127 |
+
$message = str_replace('<'.'%INFO%'.'>',$buffer,cp_ppp_get_option('fp_message', CP_PPP_DEFAULT_fp_message));
|
1128 |
+
foreach ($params as $item => $value)
|
1129 |
+
{
|
1130 |
+
$message = str_replace('<'.'%'.$item.'%'.'>',(is_array($value)?(implode(", ",$value)):($value)),$message);
|
1131 |
+
if (strpos($item,"_link"))
|
1132 |
+
{
|
1133 |
+
foreach ($value as $filevalue)
|
1134 |
+
$attachments[] = $filevalue;
|
1135 |
+
}
|
1136 |
+
}
|
1137 |
+
for ($i=0;$i<500;$i++)
|
1138 |
+
$message = str_replace('<'.'%fieldname'.$i.'%'.'>',"",$message);
|
1139 |
+
$message = str_replace('<'.'%itemnumber%'.'>',$itemnumber,$message);
|
1140 |
+
|
1141 |
+
$message = str_replace('<'.'%username%'.'>',$username,$message);
|
1142 |
+
$message = str_replace('<'.'%password%'.'>',$password,$message);
|
1143 |
+
|
1144 |
+
$subject = cp_ppp_get_option('fp_subject', CP_PPP_DEFAULT_fp_subject);
|
1145 |
+
$from = cp_ppp_get_option('fp_from_email', CP_PPP_DEFAULT_fp_from_email);
|
1146 |
+
$to = explode(",",cp_ppp_get_option('fp_destination_emails', CP_PPP_DEFAULT_fp_destination_emails));
|
1147 |
+
if ('html' == cp_ppp_get_option('fp_emailformat', CP_PPP_DEFAULT_email_format)) $content_type = "Content-Type: text/html; charset=utf-8\n"; else $content_type = "Content-Type: text/plain; charset=utf-8\n";
|
1148 |
+
$replyto = $myrows[0]->notifyto;
|
1149 |
+
|
1150 |
+
foreach ($to as $item)
|
1151 |
+
if (trim($item) != '')
|
1152 |
+
{
|
1153 |
+
wp_mail(trim($item), $subject, $message,
|
1154 |
+
"From: \"$from\" <".$from.">\r\n".
|
1155 |
+
($replyto!=''?"Reply-To: \"$replyto\" <".$replyto.">\r\n":'').
|
1156 |
+
$content_type.
|
1157 |
+
"X-Mailer: PHP/" . phpversion(), $attachments);
|
1158 |
+
}
|
1159 |
+
|
1160 |
+
// 2- Send copy to user
|
1161 |
+
//---------------------------
|
1162 |
+
|
1163 |
+
|
1164 |
+
|
1165 |
+
$to = cp_ppp_get_option('cu_user_email_field', CP_PPP_DEFAULT_cu_user_email_field);
|
1166 |
+
$_POST[$to] = $myrows[0]->notifyto;
|
1167 |
+
if ((trim($_POST[$to]) != '' || $payer_email != '') && 'true' == cp_ppp_get_option('cu_enable_copy_to_user', CP_PPP_DEFAULT_cu_enable_copy_to_user))
|
1168 |
+
{
|
1169 |
+
|
1170 |
+
if ('html' == cp_ppp_get_option('cu_emailformat', CP_PPP_DEFAULT_email_format))
|
1171 |
+
$message = str_replace('<'.'%INFO%'.'>',str_replace("\n","<br />",str_replace('<','<',$buffer_A)).'</pre>',cp_ppp_get_option('cu_message', CP_PPP_DEFAULT_cu_message));
|
1172 |
+
else
|
1173 |
+
$message = str_replace('<'.'%INFO%'.'>',$buffer_A,cp_ppp_get_option('cu_message', CP_PPP_DEFAULT_cu_message));
|
1174 |
+
foreach ($params as $item => $value)
|
1175 |
+
$message = str_replace('<'.'%'.$item.'%'.'>',(is_array($value)?(implode(", ",$value)):($value)),$message);
|
1176 |
+
for ($i=0;$i<500;$i++)
|
1177 |
+
$message = str_replace('<'.'%fieldname'.$i.'%'.'>',"",$message);
|
1178 |
+
|
1179 |
+
$message = str_replace('<'.'%itemnumber%'.'>',$itemnumber,$message);
|
1180 |
+
|
1181 |
+
$message = str_replace('<'.'%username%'.'>',$username,$message);
|
1182 |
+
$message = str_replace('<'.'%password%'.'>',$password,$message);
|
1183 |
+
|
1184 |
+
|
1185 |
+
$subject = cp_ppp_get_option('cu_subject', CP_PPP_DEFAULT_cu_subject);
|
1186 |
+
if ('html' == cp_ppp_get_option('cu_emailformat', CP_PPP_DEFAULT_email_format)) $content_type = "Content-Type: text/html; charset=utf-8\n"; else $content_type = "Content-Type: text/plain; charset=utf-8\n";
|
1187 |
+
if ($_POST[$to] != '')
|
1188 |
+
wp_mail(trim($_POST[$to]), $subject, $message,
|
1189 |
+
"From: \"$from\" <".$from.">\r\n".
|
1190 |
+
$content_type.
|
1191 |
+
"X-Mailer: PHP/" . phpversion());
|
1192 |
+
if ($_POST[$to] != $payer_email && $payer_email != '')
|
1193 |
+
wp_mail(trim($payer_email), $subject, $message,
|
1194 |
+
"From: \"$from\" <".$from.">\r\n".
|
1195 |
+
$content_type.
|
1196 |
+
"X-Mailer: PHP/" . phpversion());
|
1197 |
+
}
|
1198 |
+
|
1199 |
+
}
|
1200 |
+
|
1201 |
+
function cp_ppp_get_field_name ($fieldid, $form)
|
1202 |
+
{
|
1203 |
+
if (is_array($form))
|
1204 |
+
foreach($form as $item)
|
1205 |
+
if ($item->name == $fieldid)
|
1206 |
+
return $item->title;
|
1207 |
+
return $fieldid;
|
1208 |
+
}
|
1209 |
+
|
1210 |
+
function cp_ppp_export_csv ()
|
1211 |
+
{
|
1212 |
+
if (!is_admin())
|
1213 |
+
return;
|
1214 |
+
global $wpdb;
|
1215 |
+
|
1216 |
+
if (!defined('CP_PPP_ID'))
|
1217 |
+
define ('CP_PPP_ID',intval($_GET["cal"]));
|
1218 |
+
|
1219 |
+
$form_data = json_decode(cp_ppp_cleanJSON(cp_ppp_get_option('form_structure', CP_PPP_DEFAULT_form_structure)));
|
1220 |
+
|
1221 |
+
$cond = '';
|
1222 |
+
if ($_GET["search"] != '') $cond .= " AND (data like '%".esc_sql($_GET["search"])."%' OR paypal_post LIKE '%".esc_sql($_GET["search"])."%')";
|
1223 |
+
if ($_GET["dfrom"] != '') $cond .= " AND (`time` >= '".esc_sql($_GET["dfrom"])."')";
|
1224 |
+
if ($_GET["dto"] != '') $cond .= " AND (`time` <= '".esc_sql($_GET["dto"])." 23:59:59')";
|
1225 |
+
if (CP_PPP_ID != 0) $cond .= " AND formid=".CP_PPP_ID;
|
1226 |
+
|
1227 |
+
$events = $wpdb->get_results( "SELECT * FROM ".CP_PPP_POSTS_TABLE_NAME." WHERE 1=1 ".$cond." ORDER BY `time` DESC" );
|
1228 |
+
|
1229 |
+
$fields = array("Form ID", "ItemNumber","Time", "IP Address", "email", "Paid");
|
1230 |
+
$values = array();
|
1231 |
+
foreach ($events as $item)
|
1232 |
+
{
|
1233 |
+
$value = array($item->formid, $item->id, $item->time, $item->ipaddr, $item->notifyto, ($item->paid?"Yes":"No"));
|
1234 |
+
$data = array();
|
1235 |
+
if ($item->posted_data)
|
1236 |
+
$data = unserialize($item->posted_data);
|
1237 |
+
else if (!$item->paid)
|
1238 |
+
$data = unserialize($item->paypal_post);
|
1239 |
+
|
1240 |
+
$end = count($fields);
|
1241 |
+
for ($i=0; $i<$end; $i++)
|
1242 |
+
if (isset($data[$fields[$i]]) ){
|
1243 |
+
$value[$i] = $data[$fields[$i]];
|
1244 |
+
unset($data[$fields[$i]]);
|
1245 |
+
}
|
1246 |
+
|
1247 |
+
foreach ($data as $k => $d)
|
1248 |
+
{
|
1249 |
+
$fields[] = $k;
|
1250 |
+
$value[] = $d;
|
1251 |
+
}
|
1252 |
+
$values[] = $value;
|
1253 |
+
}
|
1254 |
+
|
1255 |
+
|
1256 |
+
header("Content-type: application/octet-stream");
|
1257 |
+
header("Content-Disposition: attachment; filename=export.csv");
|
1258 |
+
|
1259 |
+
$end = count($fields);
|
1260 |
+
for ($i=0; $i<$end; $i++)
|
1261 |
+
echo '"'.str_replace('"','""', cp_ppp_get_field_name($fields[$i],@$form_data[0])).'",';
|
1262 |
+
echo "\n";
|
1263 |
+
foreach ($values as $item)
|
1264 |
+
{
|
1265 |
+
for ($i=0; $i<$end; $i++)
|
1266 |
+
{
|
1267 |
+
if (!isset($item[$i]))
|
1268 |
+
$item[$i] = '';
|
1269 |
+
if (is_array($item[$i]))
|
1270 |
+
$item[$i] = implode($item[$i],',');
|
1271 |
+
echo '"'.str_replace('"','""', $item[$i]).'",';
|
1272 |
+
}
|
1273 |
+
echo "\n";
|
1274 |
+
}
|
1275 |
+
|
1276 |
+
exit;
|
1277 |
+
}
|
1278 |
+
|
1279 |
+
function cp_ppp_update_script_method()
|
1280 |
+
{
|
1281 |
+
global $wpdb;
|
1282 |
+
update_option( 'CP_CFPP_LOAD_SCRIPTS', ($_GET['script_load_method']=="1"?false:true) );
|
1283 |
+
echo '<br />Script Loading Method Updated.';
|
1284 |
+
exit;
|
1285 |
+
}
|
1286 |
+
|
1287 |
+
function cp_ppp_save_options()
|
1288 |
+
{
|
1289 |
+
global $wpdb;
|
1290 |
+
if (!defined('CP_PPP_ID'))
|
1291 |
+
define ('CP_PPP_ID',intval($_POST["cp_ppp_id"]));
|
1292 |
+
|
1293 |
+
foreach ($_POST as $item => $value)
|
1294 |
+
if (!is_array($value))
|
1295 |
+
$_POST[$item] = stripcslashes($value);
|
1296 |
+
|
1297 |
+
$data = array(
|
1298 |
+
'form_structure' => $_POST['form_structure'],
|
1299 |
+
|
1300 |
+
'fp_from_email' => $_POST['fp_from_email'],
|
1301 |
+
'fp_destination_emails' => $_POST['fp_destination_emails'],
|
1302 |
+
'fp_subject' => $_POST['fp_subject'],
|
1303 |
+
'fp_inc_additional_info' => $_POST['fp_inc_additional_info'],
|
1304 |
+
'fp_return_page' => $_POST['fp_return_page'],
|
1305 |
+
'fp_message' => $_POST['fp_message'],
|
1306 |
+
'fp_emailformat' => $_POST['fp_emailformat'],
|
1307 |
+
|
1308 |
+
'cu_enable_copy_to_user' => $_POST['cu_enable_copy_to_user'],
|
1309 |
+
'cu_user_email_field' => $_POST['cu_user_email_field'],
|
1310 |
+
'cu_subject' => $_POST['cu_subject'],
|
1311 |
+
'cu_message' => $_POST['cu_message'],
|
1312 |
+
'cu_emailformat' => $_POST['cu_emailformat'],
|
1313 |
+
|
1314 |
+
'enable_paypal' => @$_POST["enable_paypal"],
|
1315 |
+
'paypal_notiemails' => @$_POST["paypal_notiemails"],
|
1316 |
+
'paypal_email' => $_POST["paypal_email"],
|
1317 |
+
'request_cost' => $_POST["request_cost"],
|
1318 |
+
'paypal_price_field' => @$_POST["paypal_price_field"],
|
1319 |
+
'request_taxes' => $_POST["request_taxes"],
|
1320 |
+
'request_address' => $_POST["request_address"],
|
1321 |
+
'paypal_product_name' => $_POST["paypal_product_name"],
|
1322 |
+
'currency' => $_POST["currency"],
|
1323 |
+
'paypal_language' => $_POST["paypal_language"],
|
1324 |
+
'paypal_mode' => $_POST["paypal_mode"],
|
1325 |
+
'paypal_recurrent' => $_POST["paypal_recurrent"],
|
1326 |
+
'paypal_identify_prices' => @$_POST["paypal_identify_prices"],
|
1327 |
+
'paypal_zero_payment' => $_POST["paypal_zero_payment"],
|
1328 |
+
|
1329 |
+
'paypalpro_api_username' => $_POST["paypalpro_api_username"],
|
1330 |
+
'paypalpro_api_password' => $_POST["paypalpro_api_password"],
|
1331 |
+
'paypalpro_api_signature' => $_POST["paypalpro_api_signature"],
|
1332 |
+
|
1333 |
+
'cp_user_access' => serialize($_POST["cp_user_access"]),
|
1334 |
+
|
1335 |
+
'enable_paypal_option_yes' => (@$_POST['enable_paypal_option_yes']?$_POST['enable_paypal_option_yes']:CP_PPP_PAYPAL_OPTION_YES),
|
1336 |
+
'enable_paypal_option_no' => (@$_POST['enable_paypal_option_no']?$_POST['enable_paypal_option_no']:CP_PPP_PAYPAL_OPTION_NO),
|
1337 |
+
|
1338 |
+
'paypal_recurrent_setup' => @$_POST["paypal_recurrent_setup"],
|
1339 |
+
|
1340 |
+
//'vs_use_validation' => $_POST['vs_use_validation'],
|
1341 |
+
'vs_text_is_required' => $_POST['vs_text_is_required'],
|
1342 |
+
'vs_text_is_email' => $_POST['vs_text_is_email'],
|
1343 |
+
'vs_text_datemmddyyyy' => $_POST['vs_text_datemmddyyyy'],
|
1344 |
+
'vs_text_dateddmmyyyy' => $_POST['vs_text_dateddmmyyyy'],
|
1345 |
+
'vs_text_number' => $_POST['vs_text_number'],
|
1346 |
+
'vs_text_digits' => $_POST['vs_text_digits'],
|
1347 |
+
'vs_text_max' => $_POST['vs_text_max'],
|
1348 |
+
'vs_text_min' => $_POST['vs_text_min'],
|
1349 |
+
'vs_text_submitbtn' => $_POST['vs_text_submitbtn'],
|
1350 |
+
'vs_text_previousbtn' => $_POST['vs_text_previousbtn'],
|
1351 |
+
'vs_text_nextbtn' => $_POST['vs_text_nextbtn'],
|
1352 |
+
|
1353 |
+
'cv_enable_captcha' => $_POST['cv_enable_captcha'],
|
1354 |
+
'cv_width' => $_POST['cv_width'],
|
1355 |
+
'cv_height' => $_POST['cv_height'],
|
1356 |
+
'cv_chars' => $_POST['cv_chars'],
|
1357 |
+
'cv_font' => $_POST['cv_font'],
|
1358 |
+
'cv_min_font_size' => $_POST['cv_min_font_size'],
|
1359 |
+
'cv_max_font_size' => $_POST['cv_max_font_size'],
|
1360 |
+
'cv_noise' => $_POST['cv_noise'],
|
1361 |
+
'cv_noise_length' => $_POST['cv_noise_length'],
|
1362 |
+
'cv_background' => $_POST['cv_background'],
|
1363 |
+
'cv_border' => $_POST['cv_border'],
|
1364 |
+
'cv_text_enter_valid_captcha' => $_POST['cv_text_enter_valid_captcha']
|
1365 |
+
);
|
1366 |
+
$wpdb->update ( $wpdb->prefix.CP_PPP_FORMS_TABLE, $data, array( 'id' => CP_PPP_ID ));
|
1367 |
+
|
1368 |
+
}
|
1369 |
+
|
1370 |
+
// cp_ppp_get_option:
|
1371 |
+
$cp_ppp_option_buffered_item = false;
|
1372 |
+
$cp_ppp_option_buffered_id = -1;
|
1373 |
+
|
1374 |
+
function cp_ppp_get_option ($field, $default_value, $id = '')
|
1375 |
+
{
|
1376 |
+
if (!defined("CP_PPP_ID"))
|
1377 |
+
{
|
1378 |
+
if (!(isset($_GET["itemnumber"]) && intval($_GET["itemnumber"]) != ''))
|
1379 |
+
define ("CP_PPP_ID", 1);
|
1380 |
+
}
|
1381 |
+
if ($id == '')
|
1382 |
+
$id = CP_PPP_ID;
|
1383 |
+
global $wpdb, $cp_ppp_option_buffered_item, $cp_ppp_option_buffered_id;
|
1384 |
+
if ($cp_ppp_option_buffered_id == $id)
|
1385 |
+
$value = @$cp_ppp_option_buffered_item->$field;
|
1386 |
+
else
|
1387 |
+
{
|
1388 |
+
$myrows = $wpdb->get_results( $wpdb->prepare("SELECT * FROM ".$wpdb->prefix.CP_PPP_FORMS_TABLE." WHERE id=%d", $id) );
|
1389 |
+
$value = @$myrows[0]->$field;
|
1390 |
+
$cp_ppp_option_buffered_item = $myrows[0];
|
1391 |
+
$cp_ppp_option_buffered_id = $id;
|
1392 |
+
}
|
1393 |
+
if ($value == '' && $cp_ppp_option_buffered_item->form_structure == '')
|
1394 |
+
$value = $default_value;
|
1395 |
+
return $value;
|
1396 |
+
}
|
1397 |
+
|
1398 |
+
|
1399 |
+
// WIDGET CODE BELOW
|
1400 |
+
// ***********************************************************************
|
1401 |
+
|
1402 |
+
class CP_PPP_Widget extends WP_Widget
|
1403 |
+
{
|
1404 |
+
function CP_PPP_Widget()
|
1405 |
+
{
|
1406 |
+
$widget_ops = array('classname' => 'CP_PPP_Widget', 'description' => 'Displays a form integrated with Paypal' );
|
1407 |
+
$this->WP_Widget('CP_PPP_Widget', 'Payment Form for PayPal Pro', $widget_ops);
|
1408 |
+
}
|
1409 |
+
|
1410 |
+
function form($instance)
|
1411 |
+
{
|
1412 |
+
$instance = wp_parse_args( (array) $instance, array( 'title' => '', 'formid' => '' ) );
|
1413 |
+
$title = $instance['title'];
|
1414 |
+
$formid = $instance['formid'];
|
1415 |
+
?><p><label for="<?php echo $this->get_field_id('title'); ?>">Title: <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></label>
|
1416 |
+
<label for="<?php echo $this->get_field_id('formid'); ?>">Form ID: <input class="widefat" id="<?php echo $this->get_field_id('formid'); ?>" name="<?php echo $this->get_field_name('formid'); ?>" type="text" value="<?php echo esc_attr($formid); ?>" /></label>
|
1417 |
+
</p><?php
|
1418 |
+
}
|
1419 |
+
|
1420 |
+
function update($new_instance, $old_instance)
|
1421 |
+
{
|
1422 |
+
$instance = $old_instance;
|
1423 |
+
$instance['title'] = $new_instance['title'];
|
1424 |
+
$instance['formid'] = $new_instance['formid'];
|
1425 |
+
return $instance;
|
1426 |
+
}
|
1427 |
+
|
1428 |
+
function widget($args, $instance)
|
1429 |
+
{
|
1430 |
+
extract($args, EXTR_SKIP);
|
1431 |
+
|
1432 |
+
echo $before_widget;
|
1433 |
+
$title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']);
|
1434 |
+
$formid = $instance['formid'];
|
1435 |
+
|
1436 |
+
if (!empty($title))
|
1437 |
+
echo $before_title . $title . $after_title;
|
1438 |
+
|
1439 |
+
if ($formid != '' && !defined('CP_PPP_ID'))
|
1440 |
+
define ('CP_PPP_ID',$formid);
|
1441 |
+
|
1442 |
+
// WIDGET CODE GOES HERE
|
1443 |
+
cp_ppp_get_public_form($formid);
|
1444 |
+
|
1445 |
+
echo $after_widget;
|
1446 |
+
}
|
1447 |
+
|
1448 |
+
}
|
1449 |
+
|
1450 |
+
|
1451 |
+
|
1452 |
+
?>
|
cp_ppp_admin_int.php
ADDED
@@ -0,0 +1,723 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if ( !is_admin() )
|
4 |
+
{
|
5 |
+
echo 'Direct access not allowed.';
|
6 |
+
exit;
|
7 |
+
}
|
8 |
+
|
9 |
+
global $wpdb;
|
10 |
+
|
11 |
+
if (!defined('CP_PPP_ID'))
|
12 |
+
define ('CP_PPP_ID',intval($_GET["cal"]));
|
13 |
+
|
14 |
+
|
15 |
+
define('CP_PPP_DEFAULT_fp_from_email', get_the_author_meta('user_email', get_current_user_id()) );
|
16 |
+
define('CP_PPP_DEFAULT_fp_destination_emails', CP_PPP_DEFAULT_fp_from_email);
|
17 |
+
|
18 |
+
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST['cp_ppp_post_options'] ) )
|
19 |
+
echo "<div id='setting-error-settings_updated' class='updated settings-error'> <p><strong>Settings saved.</strong></p></div>";
|
20 |
+
|
21 |
+
$scriptmethod = cp_ppp_get_option('script_load_method','0');
|
22 |
+
|
23 |
+
?>
|
24 |
+
<div class="wrap">
|
25 |
+
<h2>Payment Form for PayPal Pro</h2>
|
26 |
+
|
27 |
+
<script type="text/javascript">
|
28 |
+
$easyFormQueryPPP = jQuery.noConflict();
|
29 |
+
window.$ = jQuery;
|
30 |
+
if (typeof $easyFormQueryPPP == 'undefined')
|
31 |
+
{
|
32 |
+
// This code won't be used in most cases. This code is for preventing problems in wrong WP themes and conflicts with third party plugins.
|
33 |
+
alert('JQuery not detected in your WordPress, some features may not work. You can contact our support service for more information: http://wordpress.dwbooster.com/support');
|
34 |
+
}
|
35 |
+
</script>
|
36 |
+
|
37 |
+
<input type="button" name="backbtn" value="Back to items list..." onclick="document.location='options-general.php?page=cp_ppp';">
|
38 |
+
<br /><br />
|
39 |
+
|
40 |
+
<form method="post" action="" name="cpformconf">
|
41 |
+
<input name="cp_ppp_post_options" type="hidden" id="1" />
|
42 |
+
<input name="cp_ppp_id" type="hidden" value="<?php echo CP_PPP_ID; ?>" />
|
43 |
+
|
44 |
+
|
45 |
+
<div style="border:1px solid black;background-color:#ffffaa;padding:10px;">
|
46 |
+
This plugin is for integrating <strong>PayPal Pro</strong> to accept credit cards directly into your website
|
47 |
+
without navigating to a PayPal hosted payment page.
|
48 |
+
<br><br />
|
49 |
+
<strong>The PayPal integration available in this plugin requires a PayPal Pro account.</strong>
|
50 |
+
<br><br />
|
51 |
+
If you aren't sure if you have a <strong>PayPal Pro account</strong> or if you are looking for a classic <strong>PayPal Standard</strong> integration
|
52 |
+
then use the <a href="http://wordpress.dwbooster.com/forms/cp-contact-form-with-paypal">CP Contact Form with PayPal</a> plugin.
|
53 |
+
<br /><br />
|
54 |
+
You can check the differences betwen <strong>PayPal Pro</strong> and <strong>PayPal Standard</strong> at <a href="https://www.paypal.com/webapps/mpp/compare-business-products" target="_blank">https://www.paypal.com/webapps/mpp/compare-business-products</a>
|
55 |
+
</div>
|
56 |
+
|
57 |
+
<br />
|
58 |
+
|
59 |
+
<div id="normal-sortables" class="meta-box-sortables">
|
60 |
+
|
61 |
+
|
62 |
+
<div id="metabox_basic_settings" class="postbox" >
|
63 |
+
<h3 class='hndle' style="padding:5px;"><span>Paypal Payment Configuration</span></h3>
|
64 |
+
<div class="inside">
|
65 |
+
|
66 |
+
<table class="form-table">
|
67 |
+
|
68 |
+
<tr valign="top">
|
69 |
+
<th scope="row">Type of Paypal Integration:</th>
|
70 |
+
<td><select name="enable_paypal" onchange="cfpp_update_pp_payment_selection();">
|
71 |
+
<option value="3" <?php if (cp_ppp_get_option('enable_paypal',CP_PPP_DEFAULT_ENABLE_PAYPAL) == '3') echo 'selected'; ?> >PayPal Pro</option>
|
72 |
+
</select>
|
73 |
+
<br /><em style="font-size:11px;">Note: This plugin is for <strong>PayPal Pro</strong> payments. For <strong>PayPal Standard</strong> use the <a href="http://wordpress.dwbooster.com/forms/cp-contact-form-with-paypal">CP Contact Form with PayPal plugin</a>.</em>
|
74 |
+
|
75 |
+
<div id="cfpp_paypal_options_label" style="display:none;margin-top:10px;background:#EEF5FB;border: 1px dotted #888888;padding:10px;width:260px;">
|
76 |
+
Label for the "<strong>Pay with PayPal</strong>" option:<br />
|
77 |
+
<input type="text" name="enable_paypal_option_yes" size="40" style="width:250px;" value="<?php echo esc_attr(cp_ppp_get_option('enable_paypal_option_yes',CP_PPP_DEFAULT_PAYPAL_OPTION_YES)); ?>" />
|
78 |
+
<br />
|
79 |
+
Label for the "<strong>Pay later</strong>" option:<br />
|
80 |
+
<input type="text" name="enable_paypal_option_no" size="40" style="width:250px;" value="<?php echo esc_attr(cp_ppp_get_option('enable_paypal_option_no',CP_PPP_DEFAULT_PAYPAL_OPTION_NO)); ?>" />
|
81 |
+
</div>
|
82 |
+
|
83 |
+
<div id="cfpp_paypal_options_pro" style="display:none;margin-top:10px;background:#EEF5FB;border: 1px dotted #888888;padding:10px;width:570px;">
|
84 |
+
<table>
|
85 |
+
<tr valign="top">
|
86 |
+
<th scope="row">PayPal Pro <nobr>API UserName</nobr></th>
|
87 |
+
<td><input type="text" name="paypalpro_api_username" size="40" value="<?php echo esc_attr(cp_ppp_get_option('paypalpro_api_username','')); ?>" /></td>
|
88 |
+
</tr>
|
89 |
+
<tr valign="top">
|
90 |
+
<th scope="row">PayPal Pro <nobr>API Password</nobr></th>
|
91 |
+
<td><input type="text" name="paypalpro_api_password" size="20" value="<?php echo esc_attr(cp_ppp_get_option('paypalpro_api_password','')); ?>" /></td>
|
92 |
+
</tr>
|
93 |
+
<tr valign="top">
|
94 |
+
<th scope="row">PayPal Pro <nobr>API Signature</nobr></th>
|
95 |
+
<td><input type="text" name="paypalpro_api_signature" size="60" value="<?php echo esc_attr(cp_ppp_get_option('paypalpro_api_signature','')); ?>" /></td>
|
96 |
+
</tr>
|
97 |
+
</table>
|
98 |
+
</div>
|
99 |
+
</td>
|
100 |
+
</tr>
|
101 |
+
|
102 |
+
<tr valign="top" style="display:none">
|
103 |
+
<th scope="row">When should be sent the notification-confirmation emails?</th>
|
104 |
+
<td><select name="paypal_notiemails">
|
105 |
+
<option value="0" <?php if (cp_ppp_get_option('paypal_notiemails','0') != '0') echo 'selected'; ?>>When paid: AFTER receiving the PayPal payment</option>
|
106 |
+
<option value="1" <?php if (cp_ppp_get_option('paypal_notiemails','1') == '1') echo 'selected'; ?>>Always: BEFORE receiving the PayPal payment</option>
|
107 |
+
</select>
|
108 |
+
</td>
|
109 |
+
</tr>
|
110 |
+
|
111 |
+
<tr valign="top">
|
112 |
+
<th scope="row">Paypal Mode</th>
|
113 |
+
<td><select name="paypal_mode">
|
114 |
+
<option value="production" <?php if (cp_ppp_get_option('paypal_mode',CP_PPP_DEFAULT_PAYPAL_MODE) != 'sandbox') echo 'selected'; ?>>Production - real payments processed</option>
|
115 |
+
<option value="sandbox" <?php if (cp_ppp_get_option('paypal_mode',CP_PPP_DEFAULT_PAYPAL_MODE) == 'sandbox') echo 'selected'; ?>>SandBox - PayPal testing sandbox area</option>
|
116 |
+
</select>
|
117 |
+
</td>
|
118 |
+
</tr>
|
119 |
+
|
120 |
+
<tr valign="top" style="display:none">
|
121 |
+
<th scope="row">Paypal email</th>
|
122 |
+
<td><input type="text" name="paypal_email" size="40" value="<?php echo esc_attr(cp_ppp_get_option('paypal_email',CP_PPP_DEFAULT_PAYPAL_EMAIL)); ?>" /></td>
|
123 |
+
</tr>
|
124 |
+
|
125 |
+
<tr valign="top">
|
126 |
+
<th scope="row">Request cost</th>
|
127 |
+
<td><input type="text" name="request_cost" value="<?php echo esc_attr(cp_ppp_get_option('request_cost',CP_PPP_DEFAULT_COST)); ?>" /></td>
|
128 |
+
</tr>
|
129 |
+
|
130 |
+
<tr valign="top">
|
131 |
+
<th scope="row">Currency</th>
|
132 |
+
<td><input type="text" name="currency" value="<?php echo esc_attr(cp_ppp_get_option('currency',CP_PPP_DEFAULT_CURRENCY)); ?>" /></td>
|
133 |
+
</tr>
|
134 |
+
|
135 |
+
<tr valign="top">
|
136 |
+
<th scope="row" colspan="2">---- The following fields are useful in the <a href="http://wordpress.dwbooster.com/forms/paypal-payment-pro-form#download">commercial version of the plugin</a>:</th>
|
137 |
+
</tr>
|
138 |
+
|
139 |
+
<tr valign="top" style="color:#cccccc">
|
140 |
+
<th scope="row" style="color:#cccccc">Automatically identify prices on dropdown and checkboxes?</th>
|
141 |
+
<td><input type="checkbox" name="paypal_identify_prices" value="1" <?php if (cp_ppp_get_option('paypal_identify_prices',CP_PPP_DEFAULT_PAYPAL_IDENTIFY_PRICES)) echo 'checked'; ?> />
|
142 |
+
<em>If marked, any price in the selected checkboxes and dropdown fields will be added to the above request cost.</em>
|
143 |
+
<br />
|
144 |
+
<div id="cpcfppmoreinlink" style="color:#cccccc">[<a href="javascript:displaymorein();">+ more information</a>]</div>
|
145 |
+
<div id="cpcfppmorein" style="display:none;border:1px solid black;background-color:#ffffaa;padding:10px;">
|
146 |
+
<p>If marked, any price in the selected checkboxes, radiobuttons and dropdown fields will be added to the above request cost.
|
147 |
+
Prices will be identified if are entered in the format $NNNN.NN, example: $30 , $24.99 and also $1,499.99</p>
|
148 |
+
<p>For example, you can create a drop-down/select field with these options:
|
149 |
+
<br /><br />
|
150 |
+
- 1 hour tutoring for $30<br />
|
151 |
+
- 2 hours tutoring for $60<br />
|
152 |
+
- 3 hours tutoring for $90<br />
|
153 |
+
- 4 hours tutoring for $120
|
154 |
+
</p>
|
155 |
+
<p>... and put the basic request cost to 0. After submission the price sent to PayPal will be the total sum of the selected options.</p>
|
156 |
+
[<a href="javascript:displaylessin();">- less information</a>]
|
157 |
+
</div>
|
158 |
+
<script type="text/javascript">
|
159 |
+
function displaymorein()
|
160 |
+
{
|
161 |
+
document.getElementById("cpcfppmorein").style.display="";
|
162 |
+
document.getElementById("cpcfppmoreinlink").style.display="none";
|
163 |
+
}
|
164 |
+
function displaylessin()
|
165 |
+
{
|
166 |
+
document.getElementById("cpcfppmorein").style.display="none";
|
167 |
+
document.getElementById("cpcfppmoreinlink").style.display="";
|
168 |
+
}
|
169 |
+
</script>
|
170 |
+
</td>
|
171 |
+
</tr>
|
172 |
+
|
173 |
+
<tr valign="top"style="color:#cccccc">
|
174 |
+
<th scope="row"style="color:#cccccc">Use a specific field from the form for the payment amount</th>
|
175 |
+
<td><select style="color:#cccccc" id="paypal_price_field" name="paypal_price_field" def="<?php echo esc_attr(cp_ppp_get_option('paypal_price_field', '')); ?>"></select>
|
176 |
+
<br /><em>If selected, any price in the selected field will be added to the above request cost. Use this field for example for having an open donation amount.</em>
|
177 |
+
</td>
|
178 |
+
</tr>
|
179 |
+
|
180 |
+
<tr valign="top" style="display:none">
|
181 |
+
<th scope="row">Taxes (percent)</th>
|
182 |
+
<td><input type="text" name="request_taxes" value="<?php echo esc_attr(cp_ppp_get_option('request_taxes','0')); ?>" /></td>
|
183 |
+
</tr>
|
184 |
+
|
185 |
+
<tr valign="top" style="display:none">
|
186 |
+
<th scope="row">Request address at PayPal</th>
|
187 |
+
<td><select name="request_address">
|
188 |
+
<option value="0" <?php if (cp_ppp_get_option('request_address','0') != '1') echo 'selected'; ?>>No</option>
|
189 |
+
<option value="1" <?php if (cp_ppp_get_option('request_address','0') == '1') echo 'selected'; ?>>Yes</option>
|
190 |
+
</select>
|
191 |
+
</td>
|
192 |
+
</tr>
|
193 |
+
|
194 |
+
<tr valign="top" style="display:none">
|
195 |
+
<th scope="row">A $0 amount to pay means:</th>
|
196 |
+
<td><select name="paypal_zero_payment">
|
197 |
+
<option value="0" <?php if (cp_ppp_get_option('paypal_zero_payment',CP_PPP_DEFAULT_PAYPAL_ZERO_PAYMENT) != '1') echo 'selected'; ?>>Let the user enter any amount at PayPal (ex: for a donation)</option>
|
198 |
+
<option value="1" <?php if (cp_ppp_get_option('paypal_zero_payment',CP_PPP_DEFAULT_PAYPAL_ZERO_PAYMENT) == '1') echo 'selected'; ?>>Don't require any payment. Form is submitted skiping the PayPal page.</option>
|
199 |
+
</select>
|
200 |
+
</td>
|
201 |
+
</tr>
|
202 |
+
|
203 |
+
<tr valign="top" style="display:none">
|
204 |
+
<th scope="row">Paypal product name</th>
|
205 |
+
<td><input type="text" name="paypal_product_name" size="50" value="<?php echo esc_attr(cp_ppp_get_option('paypal_product_name',CP_PPP_DEFAULT_PRODUCT_NAME)); ?>" /></td>
|
206 |
+
</tr>
|
207 |
+
|
208 |
+
<tr valign="top" style="display:none">
|
209 |
+
<th scope="row">Paypal language</th>
|
210 |
+
<td><input type="text" name="paypal_language" value="<?php echo esc_attr(cp_ppp_get_option('paypal_language',CP_PPP_DEFAULT_PAYPAL_LANGUAGE)); ?>" /></td>
|
211 |
+
</tr>
|
212 |
+
|
213 |
+
<tr valign="top" style="display:none">
|
214 |
+
<th scope="row">Payment frequency</th>
|
215 |
+
<td><select name="paypal_recurrent" id="paypal_recurrent" onchange="ppp_update_recurrent();">
|
216 |
+
<option value="0" <?php if (cp_ppp_get_option('paypal_recurrent',CP_PPP_DEFAULT_PAYPAL_RECURRENT) == '0' ||
|
217 |
+
cp_ppp_get_option('paypal_recurrent',CP_PPP_DEFAULT_PAYPAL_RECURRENT) == ''
|
218 |
+
) echo 'selected'; ?>>One time payment (default option, user is billed only once)</option>
|
219 |
+
<option value="0.4" <?php if (cp_ppp_get_option('paypal_recurrent',CP_PPP_DEFAULT_PAYPAL_RECURRENT) == '0.4') echo 'selected'; ?>>Bill the user every 1 week</option>
|
220 |
+
<option value="1" <?php if (cp_ppp_get_option('paypal_recurrent',CP_PPP_DEFAULT_PAYPAL_RECURRENT) == '1') echo 'selected'; ?>>Bill the user every 1 month</option>
|
221 |
+
<option value="3" <?php if (cp_ppp_get_option('paypal_recurrent',CP_PPP_DEFAULT_PAYPAL_RECURRENT) == '3') echo 'selected'; ?>>Bill the user every 3 months</option>
|
222 |
+
<option value="6" <?php if (cp_ppp_get_option('paypal_recurrent',CP_PPP_DEFAULT_PAYPAL_RECURRENT) == '6') echo 'selected'; ?>>Bill the user every 6 months</option>
|
223 |
+
<option value="12" <?php if (cp_ppp_get_option('paypal_recurrent',CP_PPP_DEFAULT_PAYPAL_RECURRENT) == '12') echo 'selected'; ?>>Bill the user every 12 months</option>
|
224 |
+
</select>
|
225 |
+
<div id="ppp_setupfee" style="width:350px;margin-top:5px;padding:5px;background-color:#ddddff;display:none;border:1px dotted black;">
|
226 |
+
First period price (ex: include setup fee here if any):<br />
|
227 |
+
<input type="text" name="paypal_recurrent_setup" size="10" value="<?php echo esc_attr(cp_ppp_get_option('paypal_recurrent_setup','0')); ?>" />
|
228 |
+
</div>
|
229 |
+
<script type="text/javascript">
|
230 |
+
function ppp_update_recurrent() {
|
231 |
+
var f = document.getElementById("paypal_recurrent");
|
232 |
+
if (f.options[f.options.selectedIndex].value != '0')
|
233 |
+
document.getElementById("ppp_setupfee").style .display = "";
|
234 |
+
else
|
235 |
+
document.getElementById("ppp_setupfee").style .display = "none";
|
236 |
+
}
|
237 |
+
ppp_update_recurrent();
|
238 |
+
</script>
|
239 |
+
</td>
|
240 |
+
</tr>
|
241 |
+
|
242 |
+
<tr valign="top"style="color:#cccccc">
|
243 |
+
<th scope="row" style="color:#cccccc">Discount Codes</th>
|
244 |
+
<td>
|
245 |
+
<div id="dex_nocodes_availmsg">Loading...</div>
|
246 |
+
|
247 |
+
<br />
|
248 |
+
<strong>Add new discount code:</strong>
|
249 |
+
<br />
|
250 |
+
<table border="0" cellpadding="0" cellspacing="0" style="margin-top:5px;">
|
251 |
+
<tr>
|
252 |
+
<td style="padding:0px;">Code:</td>
|
253 |
+
<td style="padding:0px;">Discount:</td>
|
254 |
+
<td style="padding:0px;">Can be used:</td>
|
255 |
+
<td style="padding:0px;">Valid until:</td>
|
256 |
+
<td style="padding:0px;"></td>
|
257 |
+
</tr>
|
258 |
+
<tr>
|
259 |
+
<td style="padding:0px;" nowrap><input style="color:#cccccc" type="text" name="dex_dc_code" id="dex_dc_code" size="4" value="" /> </td>
|
260 |
+
<td style="padding:0px;" nowrap><input style="color:#cccccc" type="text" size="3" name="dex_dc_discount" id="dex_dc_discount" value="25" /><select style="color:#cccccc" name="dex_dc_discounttype" id="dex_dc_discounttype">
|
261 |
+
<option value="0">Percent</option>
|
262 |
+
<option value="1">Fixed Value</option>
|
263 |
+
</select> </td>
|
264 |
+
<td style="padding:0px;" nowrap><select style="color:#cccccc" name="dex_dc_times" id="dex_dc_times">
|
265 |
+
<option value="0">Unlimited</option>
|
266 |
+
<?php for ($i=1;$i<20;$i++) { ?><option value="<?php echo $i; ?>"><?php echo $i; ?> times</option><?php } ?>
|
267 |
+
<?php for ($i=20;$i<50;$i+=5) { ?><option value="<?php echo $i; ?>"><?php echo $i; ?> times</option><?php } ?>
|
268 |
+
<?php for ($i=50;$i<500;$i+=10) { ?><option value="<?php echo $i; ?>"><?php echo $i; ?> times</option><?php } ?>
|
269 |
+
<?php for ($i=500;$i<10000;$i+=50) { ?><option value="<?php echo $i; ?>"><?php echo $i; ?></option><?php } ?>
|
270 |
+
</select> </td>
|
271 |
+
<td style="padding:0px;" nowrap><input style="color:#cccccc" type="text" size="10" name="dex_dc_expires" id="dex_dc_expires" value="" /> </td>
|
272 |
+
<td style="padding:0px;"><input style="color:#cccccc" type="button" name="dex_dc_subccode" id="dex_dc_subccode" value="Add" /></td>
|
273 |
+
</tr>
|
274 |
+
</table>
|
275 |
+
<em>Note: Expiration date based in server time. Server time now is <?php echo date("Y-m-d H:i"); ?></em>
|
276 |
+
</td>
|
277 |
+
</tr>
|
278 |
+
|
279 |
+
</table>
|
280 |
+
|
281 |
+
</div>
|
282 |
+
</div>
|
283 |
+
|
284 |
+
|
285 |
+
<div id="metabox_basic_settings" class="postbox" >
|
286 |
+
<h3 class='hndle' style="padding:5px;"><span>Notification Email Settings</span></h3>
|
287 |
+
<div class="inside">
|
288 |
+
<table class="form-table">
|
289 |
+
<tr valign="top">
|
290 |
+
<th scope="row">"From" email</th>
|
291 |
+
<td><input type="text" name="fp_from_email" size="40" value="<?php echo esc_attr(cp_ppp_get_option('fp_from_email', CP_PPP_DEFAULT_fp_from_email)); ?>" /></td>
|
292 |
+
</tr>
|
293 |
+
<tr valign="top">
|
294 |
+
<th scope="row">Destination emails (comma separated)</th>
|
295 |
+
<td><input type="text" name="fp_destination_emails" size="40" value="<?php echo esc_attr(cp_ppp_get_option('fp_destination_emails', CP_PPP_DEFAULT_fp_destination_emails)); ?>" /></td>
|
296 |
+
</tr>
|
297 |
+
<tr valign="top">
|
298 |
+
<th scope="row">Email subject</th>
|
299 |
+
<td><input type="text" name="fp_subject" size="70" value="<?php echo esc_attr(cp_ppp_get_option('fp_subject', CP_PPP_DEFAULT_fp_subject)); ?>" /></td>
|
300 |
+
</tr>
|
301 |
+
<tr valign="top">
|
302 |
+
<th scope="row">Include additional information?</th>
|
303 |
+
<td>
|
304 |
+
<?php $option = cp_ppp_get_option('fp_inc_additional_info', CP_PPP_DEFAULT_fp_inc_additional_info); ?>
|
305 |
+
<select name="fp_inc_additional_info">
|
306 |
+
<option value="true"<?php if ($option == 'true') echo ' selected'; ?>>Yes</option>
|
307 |
+
<option value="false"<?php if ($option == 'false') echo ' selected'; ?>>No</option>
|
308 |
+
</select>
|
309 |
+
</td>
|
310 |
+
</tr>
|
311 |
+
<tr valign="top">
|
312 |
+
<th scope="row">Thank you page (after sending the message)</th>
|
313 |
+
<td><input type="text" name="fp_return_page" size="70" value="<?php echo esc_attr(cp_ppp_get_option('fp_return_page', CP_PPP_DEFAULT_fp_return_page)); ?>" /></td>
|
314 |
+
</tr>
|
315 |
+
<tr valign="top">
|
316 |
+
<th scope="row">Email format?</th>
|
317 |
+
<td>
|
318 |
+
<?php $option = cp_ppp_get_option('fp_emailformat', CP_PPP_DEFAULT_email_format); ?>
|
319 |
+
<select name="fp_emailformat">
|
320 |
+
<option value="text"<?php if ($option != 'html') echo ' selected'; ?>>Plain Text (default)</option>
|
321 |
+
<option value="html"<?php if ($option == 'html') echo ' selected'; ?>>HTML (use html in the textarea below)</option>
|
322 |
+
</select>
|
323 |
+
</td>
|
324 |
+
</tr>
|
325 |
+
<tr valign="top">
|
326 |
+
<th scope="row">Message</th>
|
327 |
+
<td><textarea type="text" name="fp_message" rows="6" cols="80"><?php echo esc_attr(cp_ppp_get_option('fp_message', CP_PPP_DEFAULT_fp_message)); ?></textarea></td>
|
328 |
+
</tr>
|
329 |
+
</table>
|
330 |
+
</div>
|
331 |
+
</div>
|
332 |
+
|
333 |
+
<div id="metabox_basic_settings" class="postbox" >
|
334 |
+
<h3 class='hndle' style="padding:5px;"><span>Form Builder</span></h3>
|
335 |
+
<div class="inside">
|
336 |
+
|
337 |
+
<div style="border:1px solid black;background-color:#ffffaa;padding:10px;">
|
338 |
+
The following Form Builder is editable in the <a href="http://wordpress.dwbooster.com/forms/paypal-payment-pro-form#download">commercial version of the plugin</a>:
|
339 |
+
</div>
|
340 |
+
<br />
|
341 |
+
<input type="hidden" name="form_structure" id="form_structure" size="180" value="<?php echo str_replace('"','"',str_replace("\r","",str_replace("\n","",esc_attr(cp_ppp_cleanJSON(cp_ppp_get_option('form_structure', CP_PPP_DEFAULT_form_structure)))))); ?>" />
|
342 |
+
<input type="hidden" name="templates" id="templates" value="<?php echo esc_attr( json_encode( cp_ppp_available_templates() ) ); ?>" />
|
343 |
+
|
344 |
+
<script>
|
345 |
+
$contactFormPPQuery = jQuery.noConflict();
|
346 |
+
window.$ = jQuery;
|
347 |
+
$contactFormPPQuery(document).ready(function() {
|
348 |
+
var f = $contactFormPPQuery("#fbuilder").fbuilder();
|
349 |
+
|
350 |
+
f.fBuild.loadData( "form_structure", "templates" );
|
351 |
+
|
352 |
+
$contactFormPPQuery("#saveForm").click(function() {
|
353 |
+
f.fBuild.saveData("form_structure");
|
354 |
+
});
|
355 |
+
|
356 |
+
$contactFormPPQuery(".itemForm").click(function() {
|
357 |
+
f.fBuild.addItem($contactFormPPQuery(this).attr("id"));
|
358 |
+
});
|
359 |
+
|
360 |
+
$contactFormPPQuery( ".itemForm" ).draggable({revert1: "invalid",helper: "clone",cursor: "move"});
|
361 |
+
$contactFormPPQuery( "#fbuilder" ).droppable({
|
362 |
+
accept: ".button",
|
363 |
+
drop: function( event, ui ) {
|
364 |
+
f.fBuild.addItem(ui.draggable.attr("id"));
|
365 |
+
}
|
366 |
+
});
|
367 |
+
|
368 |
+
});
|
369 |
+
|
370 |
+
|
371 |
+
var $j = jQuery.noConflict();
|
372 |
+
window.$ = jQuery;
|
373 |
+
$j(function() {
|
374 |
+
$j("#dex_dc_expires").datepicker({
|
375 |
+
dateFormat: 'yy-mm-dd'
|
376 |
+
});
|
377 |
+
});
|
378 |
+
$j('#dex_nocodes_availmsg').load('<?php echo cp_ppp_get_site_url(true); ?>/?cp_ppp_post=loadcoupons&inAdmin=1&dex_item=<?php echo CP_PPP_ID; ?>');
|
379 |
+
$j('#dex_dc_subccode').click (function() {
|
380 |
+
var code = $j('#dex_dc_code').val();
|
381 |
+
var discount = $j('#dex_dc_discount').val();
|
382 |
+
var dc_times = $j('#dex_dc_times').val();
|
383 |
+
var discounttype = $j('#dex_dc_discounttype').val();
|
384 |
+
var expires = $j('#dex_dc_expires').val();
|
385 |
+
if (code == '') { alert('Please enter a code'); return; }
|
386 |
+
if (parseInt(discount)+"" != discount) { alert('Please numeric discount percent'); return; }
|
387 |
+
if (expires == '') { alert('Please enter an expiration date for the code'); return; }
|
388 |
+
var params = '&add=1&expires='+encodeURI(expires)+'&discount='+encodeURI(discount)+'&discounttype='+encodeURI(discounttype)+'&code='+encodeURI(code)+'&tm='+encodeURI(dc_times);
|
389 |
+
$j('#dex_nocodes_availmsg').load('<?php echo cp_ppp_get_site_url(true); ?>/?cp_ppp_post=loadcoupons&inAdmin=1&dex_item=<?php echo CP_PPP_ID; ?>'+params);
|
390 |
+
$j('#dex_dc_code').val();
|
391 |
+
});
|
392 |
+
|
393 |
+
function dex_delete_coupon(id)
|
394 |
+
{
|
395 |
+
$j('#dex_nocodes_availmsg').load('<?php echo cp_ppp_get_site_url(true); ?>/?cp_ppp_post=loadcoupons&inAdmin=1&dex_item=<?php echo CP_PPP_ID; ?>&delete=1&code='+id);
|
396 |
+
}
|
397 |
+
|
398 |
+
|
399 |
+
function generateCaptcha()
|
400 |
+
{
|
401 |
+
var d=new Date();
|
402 |
+
var f = document.cpformconf;
|
403 |
+
var qs = "&width="+f.cv_width.value;
|
404 |
+
qs += "&height="+f.cv_height.value;
|
405 |
+
qs += "&letter_count="+f.cv_chars.value;
|
406 |
+
qs += "&min_size="+f.cv_min_font_size.value;
|
407 |
+
qs += "&max_size="+f.cv_max_font_size.value;
|
408 |
+
qs += "&noise="+f.cv_noise.value;
|
409 |
+
qs += "&noiselength="+f.cv_noise_length.value;
|
410 |
+
qs += "&bcolor="+f.cv_background.value;
|
411 |
+
qs += "&border="+f.cv_border.value;
|
412 |
+
qs += "&font="+f.cv_font.options[f.cv_font.selectedIndex].value;
|
413 |
+
qs += "&rand="+d;
|
414 |
+
|
415 |
+
document.getElementById("captchaimg").src= "<?php echo cp_ppp_get_site_url(true); ?>/?cp_ppp=captcha&inAdmin=1"+qs;
|
416 |
+
}
|
417 |
+
|
418 |
+
|
419 |
+
function cfpp_update_pp_payment_selection()
|
420 |
+
{
|
421 |
+
var f = document.cpformconf;
|
422 |
+
var ppoption = f.enable_paypal.options[f.enable_paypal.selectedIndex].value;
|
423 |
+
if (ppoption == '2')
|
424 |
+
{
|
425 |
+
document.getElementById("cfpp_paypal_options_label").style.display = "";
|
426 |
+
document.getElementById("cfpp_paypal_options_pro").style.display = "none";
|
427 |
+
}
|
428 |
+
else if (ppoption == '3')
|
429 |
+
{
|
430 |
+
document.getElementById("cfpp_paypal_options_label").style.display = "none";
|
431 |
+
document.getElementById("cfpp_paypal_options_pro").style.display = "";
|
432 |
+
} else
|
433 |
+
{
|
434 |
+
document.getElementById("cfpp_paypal_options_label").style.display = "none";
|
435 |
+
document.getElementById("cfpp_paypal_options_pro").style.display = "none";
|
436 |
+
}
|
437 |
+
}
|
438 |
+
|
439 |
+
cfpp_update_pp_payment_selection();
|
440 |
+
|
441 |
+
</script>
|
442 |
+
|
443 |
+
<div style="background:#fafafa;width:780px;" class="form-builder">
|
444 |
+
|
445 |
+
<div class="column width50">
|
446 |
+
<div id="tabs">
|
447 |
+
<ul>
|
448 |
+
<li><a href="#tabs-1">Add a Field</a></li>
|
449 |
+
<li><a href="#tabs-2">Field Settings</a></li>
|
450 |
+
<li><a href="#tabs-3">Form Settings</a></li>
|
451 |
+
</ul>
|
452 |
+
<div id="tabs-1">
|
453 |
+
|
454 |
+
</div>
|
455 |
+
<div id="tabs-2"></div>
|
456 |
+
<div id="tabs-3"></div>
|
457 |
+
</div>
|
458 |
+
</div>
|
459 |
+
<div class="columnr width50 padding10" id="fbuilder">
|
460 |
+
<div id="formheader"></div>
|
461 |
+
<div id="fieldlist"></div>
|
462 |
+
<!--<div class="button" id="saveForm">Save Form</div>-->
|
463 |
+
</div>
|
464 |
+
<div class="clearer"></div>
|
465 |
+
|
466 |
+
</div>
|
467 |
+
|
468 |
+
</div>
|
469 |
+
</div>
|
470 |
+
|
471 |
+
<div id="metabox_basic_settings" class="postbox" >
|
472 |
+
<h3 class='hndle' style="padding:5px;"><span>Submit Button</span></h3>
|
473 |
+
<div class="inside">
|
474 |
+
<table class="form-table">
|
475 |
+
<tr valign="top">
|
476 |
+
<th scope="row">Submit button label (text):</th>
|
477 |
+
<td><input type="text" name="vs_text_submitbtn" size="40" value="<?php $label = esc_attr(cp_ppp_get_option('vs_text_submitbtn', 'Submit')); echo ($label==''?'Submit':$label); ?>" /></td>
|
478 |
+
</tr>
|
479 |
+
<tr valign="top">
|
480 |
+
<th scope="row">Previous button label (text):</th>
|
481 |
+
<td><input type="text" name="vs_text_previousbtn" size="40" value="<?php $label = esc_attr(cp_ppp_get_option('vs_text_previousbtn', 'Previous')); echo ($label==''?'Previous':$label); ?>" /></td>
|
482 |
+
</tr>
|
483 |
+
<tr valign="top">
|
484 |
+
<th scope="row">Next button label (text):</th>
|
485 |
+
<td><input type="text" name="vs_text_nextbtn" size="40" value="<?php $label = esc_attr(cp_ppp_get_option('vs_text_nextbtn', 'Next')); echo ($label==''?'Next':$label); ?>" /></td>
|
486 |
+
</tr>
|
487 |
+
<tr valign="top">
|
488 |
+
<td colspan="2"> - The <em>class="pbSubmit"</em> can be used to modify the button styles. <br />
|
489 |
+
- The styles can be applied into any of the CSS files of your theme or into the CSS file <em>"cp-contact-form-with-paypal\css\stylepublic.css"</em>. <br />
|
490 |
+
- For further modifications the submit button is located at the end of the file <em>"cp_ppp_public_int.inc.php"</em>.<br />
|
491 |
+
- For general CSS styles modifications to the form and samples <a href="http://wordpress.dwbooster.com/faq/cp-contact-form-with-paypal#q61" target="_blank">check this FAQ</a>.
|
492 |
+
</tr>
|
493 |
+
</table>
|
494 |
+
</div>
|
495 |
+
</div>
|
496 |
+
|
497 |
+
|
498 |
+
|
499 |
+
<div id="metabox_basic_settings" class="postbox" >
|
500 |
+
<h3 class='hndle' style="padding:5px;"><span>Validation Settings</span></h3>
|
501 |
+
<div class="inside">
|
502 |
+
<table class="form-table">
|
503 |
+
<tr valign="top">
|
504 |
+
<th scope="row">Use Validation?</th>
|
505 |
+
<td>
|
506 |
+
<?php $option = cp_ppp_get_option('vs_use_validation', CP_PPP_DEFAULT_vs_use_validation); ?>
|
507 |
+
<select name="vs_use_validation">
|
508 |
+
<option value="true"<?php if ($option == 'true') echo ' selected'; ?>>Yes</option>
|
509 |
+
<!--<option value="false"<?php if ($option == 'false') echo ' selected'; ?>>No</option>-->
|
510 |
+
</select>
|
511 |
+
</td>
|
512 |
+
</tr>
|
513 |
+
<tr valign="top">
|
514 |
+
<th scope="row">"is required" text:</th>
|
515 |
+
<td><input type="text" name="vs_text_is_required" size="40" value="<?php echo esc_attr(cp_ppp_get_option('vs_text_is_required', CP_PPP_DEFAULT_vs_text_is_required)); ?>" /></td>
|
516 |
+
</tr>
|
517 |
+
<tr valign="top">
|
518 |
+
<th scope="row">"is email" text:</th>
|
519 |
+
<td><input type="text" name="vs_text_is_email" size="70" value="<?php echo esc_attr(cp_ppp_get_option('vs_text_is_email', CP_PPP_DEFAULT_vs_text_is_email)); ?>" /></td>
|
520 |
+
</tr>
|
521 |
+
<tr valign="top">
|
522 |
+
<th scope="row">"is valid captcha" text:</th>
|
523 |
+
<td><input type="text" name="cv_text_enter_valid_captcha" size="70" value="<?php echo esc_attr(cp_ppp_get_option('cv_text_enter_valid_captcha', CP_PPP_DEFAULT_cv_text_enter_valid_captcha)); ?>" /></td>
|
524 |
+
</tr>
|
525 |
+
|
526 |
+
<tr valign="top">
|
527 |
+
<th scope="row">"is valid date (mm/dd/yyyy)" text:</th>
|
528 |
+
<td><input type="text" name="vs_text_datemmddyyyy" size="70" value="<?php echo esc_attr(cp_ppp_get_option('vs_text_datemmddyyyy', CP_PPP_DEFAULT_vs_text_datemmddyyyy)); ?>" /></td>
|
529 |
+
</tr>
|
530 |
+
<tr valign="top">
|
531 |
+
<th scope="row">"is valid date (dd/mm/yyyy)" text:</th>
|
532 |
+
<td><input type="text" name="vs_text_dateddmmyyyy" size="70" value="<?php echo esc_attr(cp_ppp_get_option('vs_text_dateddmmyyyy', CP_PPP_DEFAULT_vs_text_dateddmmyyyy)); ?>" /></td>
|
533 |
+
</tr>
|
534 |
+
<tr valign="top">
|
535 |
+
<th scope="row">"is number" text:</th>
|
536 |
+
<td><input type="text" name="vs_text_number" size="70" value="<?php echo esc_attr(cp_ppp_get_option('vs_text_number', CP_PPP_DEFAULT_vs_text_number)); ?>" /></td>
|
537 |
+
</tr>
|
538 |
+
<tr valign="top">
|
539 |
+
<th scope="row">"only digits" text:</th>
|
540 |
+
<td><input type="text" name="vs_text_digits" size="70" value="<?php echo esc_attr(cp_ppp_get_option('vs_text_digits', CP_PPP_DEFAULT_vs_text_digits)); ?>" /></td>
|
541 |
+
</tr>
|
542 |
+
<tr valign="top">
|
543 |
+
<th scope="row">"under maximum" text:</th>
|
544 |
+
<td><input type="text" name="vs_text_max" size="70" value="<?php echo esc_attr(cp_ppp_get_option('vs_text_max', CP_PPP_DEFAULT_vs_text_max)); ?>" /></td>
|
545 |
+
</tr>
|
546 |
+
<tr valign="top">
|
547 |
+
<th scope="row">"over minimum" text:</th>
|
548 |
+
<td><input type="text" name="vs_text_min" size="70" value="<?php echo esc_attr(cp_ppp_get_option('vs_text_min', CP_PPP_DEFAULT_vs_text_min)); ?>" /></td>
|
549 |
+
</tr>
|
550 |
+
|
551 |
+
</table>
|
552 |
+
</div>
|
553 |
+
</div>
|
554 |
+
|
555 |
+
|
556 |
+
|
557 |
+
<div id="metabox_basic_settings" class="postbox" >
|
558 |
+
<h3 class='hndle' style="padding:5px;"><span>Email Copy to User</span></h3>
|
559 |
+
<div class="inside">
|
560 |
+
<table class="form-table">
|
561 |
+
<tr valign="top">
|
562 |
+
<th scope="row">Send confirmation/thank you message to user?</th>
|
563 |
+
<td>
|
564 |
+
<?php $option = cp_ppp_get_option('cu_enable_copy_to_user', CP_PPP_DEFAULT_cu_enable_copy_to_user); ?>
|
565 |
+
<select name="cu_enable_copy_to_user">
|
566 |
+
<option value="true"<?php if ($option == 'true') echo ' selected'; ?>>Yes</option>
|
567 |
+
<option value="false"<?php if ($option == 'false') echo ' selected'; ?>>No</option>
|
568 |
+
</select>
|
569 |
+
</td>
|
570 |
+
</tr>
|
571 |
+
<tr valign="top">
|
572 |
+
<th scope="row">Email field on the form</th>
|
573 |
+
<td><select id="cu_user_email_field" name="cu_user_email_field" def="<?php echo esc_attr(cp_ppp_get_option('cu_user_email_field', CP_PPP_DEFAULT_cu_user_email_field)); ?>"></select></td>
|
574 |
+
</tr>
|
575 |
+
<tr valign="top">
|
576 |
+
<th scope="row">Email subject</th>
|
577 |
+
<td><input type="text" name="cu_subject" size="70" value="<?php echo esc_attr(cp_ppp_get_option('cu_subject', CP_PPP_DEFAULT_cu_subject)); ?>" /></td>
|
578 |
+
</tr>
|
579 |
+
<tr valign="top">
|
580 |
+
<th scope="row">Email format?</th>
|
581 |
+
<td>
|
582 |
+
<?php $option = cp_ppp_get_option('cu_emailformat', CP_PPP_DEFAULT_email_format); ?>
|
583 |
+
<select name="cu_emailformat">
|
584 |
+
<option value="text"<?php if ($option != 'html') echo ' selected'; ?>>Plain Text (default)</option>
|
585 |
+
<option value="html"<?php if ($option == 'html') echo ' selected'; ?>>HTML (use html in the textarea below)</option>
|
586 |
+
</select>
|
587 |
+
</td>
|
588 |
+
</tr>
|
589 |
+
<tr valign="top">
|
590 |
+
<th scope="row">Message</th>
|
591 |
+
<td><textarea type="text" name="cu_message" rows="6" cols="80"><?php echo esc_attr(cp_ppp_get_option('cu_message', CP_PPP_DEFAULT_cu_message)); ?></textarea></td>
|
592 |
+
</tr>
|
593 |
+
</table>
|
594 |
+
</div>
|
595 |
+
</div>
|
596 |
+
|
597 |
+
|
598 |
+
<div id="metabox_basic_settings" class="postbox" >
|
599 |
+
<h3 class='hndle' style="padding:5px;"><span>Captcha Verification</span></h3>
|
600 |
+
<div class="inside">
|
601 |
+
<table class="form-table">
|
602 |
+
<tr valign="top">
|
603 |
+
<th scope="row">Use Captcha Verification?</th>
|
604 |
+
<td colspan="5">
|
605 |
+
<?php $option = cp_ppp_get_option('cv_enable_captcha', CP_PPP_DEFAULT_cv_enable_captcha); ?>
|
606 |
+
<select name="cv_enable_captcha">
|
607 |
+
<option value="true"<?php if ($option == 'true') echo ' selected'; ?>>Yes</option>
|
608 |
+
<option value="false"<?php if ($option == 'false') echo ' selected'; ?>>No</option>
|
609 |
+
</select>
|
610 |
+
</td>
|
611 |
+
</tr>
|
612 |
+
|
613 |
+
<tr valign="top">
|
614 |
+
<th scope="row">Width:</th>
|
615 |
+
<td><input type="text" name="cv_width" size="10" value="<?php echo esc_attr(cp_ppp_get_option('cv_width', CP_PPP_DEFAULT_cv_width)); ?>" onblur="generateCaptcha();" /></td>
|
616 |
+
<th scope="row">Height:</th>
|
617 |
+
<td><input type="text" name="cv_height" size="10" value="<?php echo esc_attr(cp_ppp_get_option('cv_height', CP_PPP_DEFAULT_cv_height)); ?>" onblur="generateCaptcha();" /></td>
|
618 |
+
<th scope="row">Chars:</th>
|
619 |
+
<td><input type="text" name="cv_chars" size="10" value="<?php echo esc_attr(cp_ppp_get_option('cv_chars', CP_PPP_DEFAULT_cv_chars)); ?>" onblur="generateCaptcha();" /></td>
|
620 |
+
</tr>
|
621 |
+
|
622 |
+
<tr valign="top">
|
623 |
+
<th scope="row">Min font size:</th>
|
624 |
+
<td><input type="text" name="cv_min_font_size" size="10" value="<?php echo esc_attr(cp_ppp_get_option('cv_min_font_size', CP_PPP_DEFAULT_cv_min_font_size)); ?>" onblur="generateCaptcha();" /></td>
|
625 |
+
<th scope="row">Max font size:</th>
|
626 |
+
<td><input type="text" name="cv_max_font_size" size="10" value="<?php echo esc_attr(cp_ppp_get_option('cv_max_font_size', CP_PPP_DEFAULT_cv_max_font_size)); ?>" onblur="generateCaptcha();" /></td>
|
627 |
+
<td colspan="2" rowspan="">
|
628 |
+
Preview:<br />
|
629 |
+
<br />
|
630 |
+
<img src="<?php echo cp_ppp_get_site_url(true); ?>/?cp_ppp=captcha&inAdmin=1" id="captchaimg" alt="security code" border="0" />
|
631 |
+
</td>
|
632 |
+
</tr>
|
633 |
+
|
634 |
+
|
635 |
+
<tr valign="top">
|
636 |
+
<th scope="row">Noise:</th>
|
637 |
+
<td><input type="text" name="cv_noise" size="10" value="<?php echo esc_attr(cp_ppp_get_option('cv_noise', CP_PPP_DEFAULT_cv_noise)); ?>" onblur="generateCaptcha();" /></td>
|
638 |
+
<th scope="row">Noise Length:</th>
|
639 |
+
<td><input type="text" name="cv_noise_length" size="10" value="<?php echo esc_attr(cp_ppp_get_option('cv_noise_length', CP_PPP_DEFAULT_cv_noise_length)); ?>" onblur="generateCaptcha();" /></td>
|
640 |
+
</tr>
|
641 |
+
|
642 |
+
|
643 |
+
<tr valign="top">
|
644 |
+
<th scope="row">Background:</th>
|
645 |
+
<td><input type="text" name="cv_background" size="10" value="<?php echo esc_attr(cp_ppp_get_option('cv_background', CP_PPP_DEFAULT_cv_background)); ?>" onblur="generateCaptcha();" /></td>
|
646 |
+
<th scope="row">Border:</th>
|
647 |
+
<td><input type="text" name="cv_border" size="10" value="<?php echo esc_attr(cp_ppp_get_option('cv_border', CP_PPP_DEFAULT_cv_border)); ?>" onblur="generateCaptcha();" /></td>
|
648 |
+
</tr>
|
649 |
+
|
650 |
+
<tr valign="top">
|
651 |
+
<th scope="row">Font:</th>
|
652 |
+
<td>
|
653 |
+
<select name="cv_font" onchange="generateCaptcha();" >
|
654 |
+
<option value="font-1.ttf"<?php if ("font-1.ttf" == cp_ppp_get_option('cv_font', CP_PPP_DEFAULT_cv_font)) echo " selected"; ?>>Font 1</option>
|
655 |
+
<option value="font-2.ttf"<?php if ("font-2.ttf" == cp_ppp_get_option('cv_font', CP_PPP_DEFAULT_cv_font)) echo " selected"; ?>>Font 2</option>
|
656 |
+
<option value="font-3.ttf"<?php if ("font-3.ttf" == cp_ppp_get_option('cv_font', CP_PPP_DEFAULT_cv_font)) echo " selected"; ?>>Font 3</option>
|
657 |
+
<option value="font-4.ttf"<?php if ("font-4.ttf" == cp_ppp_get_option('cv_font', CP_PPP_DEFAULT_cv_font)) echo " selected"; ?>>Font 4</option>
|
658 |
+
</select>
|
659 |
+
</td>
|
660 |
+
</tr>
|
661 |
+
|
662 |
+
|
663 |
+
</table>
|
664 |
+
</div>
|
665 |
+
</div>
|
666 |
+
|
667 |
+
<div id="metabox_basic_settings" class="postbox" >
|
668 |
+
<h3 class='hndle' style="padding:5px;"><span>Users with access to the messages list</span></h3>
|
669 |
+
<div class="inside">
|
670 |
+
<table class="form-table">
|
671 |
+
<tr valign="top">
|
672 |
+
<th scope="row">Select users with access (CTRL+click for multiple selection):</th>
|
673 |
+
<td>
|
674 |
+
<?php
|
675 |
+
$users = $wpdb->get_results( "SELECT user_login,ID FROM ".$wpdb->users." ORDER BY ID DESC" );
|
676 |
+
$options = unserialize(cp_ppp_get_option('cp_user_access', array()));
|
677 |
+
?>
|
678 |
+
<select name="cp_user_access[]" multiple="multiple" size="5">
|
679 |
+
<?php foreach ($users as $user) { ?>
|
680 |
+
<option value="<?php echo $user->ID; ?>"<?php if ( in_array ($user->ID, $options) ) echo ' selected'; ?>><?php echo $user->user_login; ?></option>
|
681 |
+
<?php } ?>
|
682 |
+
</select>
|
683 |
+
</td>
|
684 |
+
</tr>
|
685 |
+
</table>
|
686 |
+
</div>
|
687 |
+
</div>
|
688 |
+
|
689 |
+
|
690 |
+
|
691 |
+
<div id="metabox_basic_settings" class="postbox" >
|
692 |
+
<h3 class='hndle' style="padding:5px;"><span>Note</span></h3>
|
693 |
+
<div class="inside">
|
694 |
+
To insert this form in a post/page, use the dedicated icon
|
695 |
+
<?php print '<a href="javascript:cp_ppp_insertForm();" title="'.__('Insert Payment Form for PayPal Pro').'"><img hspace="5" src="'.plugins_url('/images/cp_form.gif', __FILE__).'" alt="'.__('Insert Payment Form for PayPal Pro').'" /></a>'; ?>
|
696 |
+
which has been added to your Upload/Insert Menu, just below the title of your Post/Page.
|
697 |
+
<br /><br />
|
698 |
+
</div>
|
699 |
+
</div>
|
700 |
+
|
701 |
+
</div>
|
702 |
+
|
703 |
+
|
704 |
+
<p class="submit"><input type="submit" name="submit" id="submit" class="button-primary" value="Save Changes" /></p>
|
705 |
+
|
706 |
+
|
707 |
+
[<a href="http://wordpress.dwbooster.com/contact-us" target="_blank">Request Custom Modifications</a>] | [<a href="http://wordpress.dwbooster.com/forms/cp-contact-form-with-paypal" target="_blank">Help</a>]
|
708 |
+
</form>
|
709 |
+
</div>
|
710 |
+
<script type="text/javascript">generateCaptcha();</script>
|
711 |
+
|
712 |
+
|
713 |
+
|
714 |
+
|
715 |
+
|
716 |
+
|
717 |
+
|
718 |
+
|
719 |
+
|
720 |
+
|
721 |
+
|
722 |
+
|
723 |
+
|
cp_ppp_admin_int_list.inc.php
ADDED
@@ -0,0 +1,300 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if ( !is_admin() )
|
4 |
+
{
|
5 |
+
echo 'Direct access not allowed.';
|
6 |
+
exit;
|
7 |
+
}
|
8 |
+
|
9 |
+
global $wpdb;
|
10 |
+
$message = "";
|
11 |
+
|
12 |
+
$current_user_access = current_user_can('manage_options');
|
13 |
+
|
14 |
+
if (isset($_GET['a']) && $_GET['a'] == '1' && $current_user_access)
|
15 |
+
{
|
16 |
+
define('CP_PPP_DEFAULT_fp_from_email', get_the_author_meta('user_email', get_current_user_id()) );
|
17 |
+
define('CP_PPP_DEFAULT_fp_destination_emails', CP_PPP_DEFAULT_fp_from_email);
|
18 |
+
|
19 |
+
// insert line
|
20 |
+
$wpdb->insert( $wpdb->prefix.CP_PPP_FORMS_TABLE, array(
|
21 |
+
'form_name' => stripcslashes($_GET["name"]),
|
22 |
+
|
23 |
+
'form_structure' => CP_PPP_DEFAULT_form_structure,
|
24 |
+
|
25 |
+
'fp_from_email' => cp_ppp_get_option('fp_from_email', CP_PPP_DEFAULT_fp_from_email),
|
26 |
+
'fp_destination_emails' => cp_ppp_get_option('fp_destination_emails', CP_PPP_DEFAULT_fp_destination_emails),
|
27 |
+
'fp_subject' => cp_ppp_get_option('fp_subject', CP_PPP_DEFAULT_fp_subject),
|
28 |
+
'fp_inc_additional_info' => cp_ppp_get_option('fp_inc_additional_info', CP_PPP_DEFAULT_fp_inc_additional_info),
|
29 |
+
'fp_return_page' => cp_ppp_get_option('fp_return_page', CP_PPP_DEFAULT_fp_return_page),
|
30 |
+
'fp_message' => cp_ppp_get_option('fp_message', CP_PPP_DEFAULT_fp_message),
|
31 |
+
'fp_emailformat' => cp_ppp_get_option('fp_emailformat', CP_PPP_DEFAULT_email_format),
|
32 |
+
|
33 |
+
'cu_enable_copy_to_user' => cp_ppp_get_option('cu_enable_copy_to_user', CP_PPP_DEFAULT_cu_enable_copy_to_user),
|
34 |
+
'cu_user_email_field' => cp_ppp_get_option('cu_user_email_field', CP_PPP_DEFAULT_cu_user_email_field),
|
35 |
+
'cu_subject' => cp_ppp_get_option('cu_subject', CP_PPP_DEFAULT_cu_subject),
|
36 |
+
'cu_message' => cp_ppp_get_option('cu_message', CP_PPP_DEFAULT_cu_message),
|
37 |
+
'cu_emailformat' => cp_ppp_get_option('cu_emailformat', CP_PPP_DEFAULT_email_format),
|
38 |
+
|
39 |
+
'vs_use_validation' => cp_ppp_get_option('vs_use_validation', CP_PPP_DEFAULT_vs_use_validation),
|
40 |
+
'vs_text_is_required' => cp_ppp_get_option('vs_text_is_required', CP_PPP_DEFAULT_vs_text_is_required),
|
41 |
+
'vs_text_is_email' => cp_ppp_get_option('vs_text_is_email', CP_PPP_DEFAULT_vs_text_is_email),
|
42 |
+
'vs_text_datemmddyyyy' => cp_ppp_get_option('vs_text_datemmddyyyy', CP_PPP_DEFAULT_vs_text_datemmddyyyy),
|
43 |
+
'vs_text_dateddmmyyyy' => cp_ppp_get_option('vs_text_dateddmmyyyy', CP_PPP_DEFAULT_vs_text_dateddmmyyyy),
|
44 |
+
'vs_text_number' => cp_ppp_get_option('vs_text_number', CP_PPP_DEFAULT_vs_text_number),
|
45 |
+
'vs_text_digits' => cp_ppp_get_option('vs_text_digits', CP_PPP_DEFAULT_vs_text_digits),
|
46 |
+
'vs_text_max' => cp_ppp_get_option('vs_text_max', CP_PPP_DEFAULT_vs_text_max),
|
47 |
+
'vs_text_min' => cp_ppp_get_option('vs_text_min', CP_PPP_DEFAULT_vs_text_min),
|
48 |
+
|
49 |
+
'enable_paypal' => cp_ppp_get_option('enable_paypal', CP_PPP_DEFAULT_ENABLE_PAYPAL),
|
50 |
+
'paypal_notiemails' => cp_ppp_get_option('paypal_notiemails', '0'),
|
51 |
+
'paypal_email' => cp_ppp_get_option('paypal_email', CP_PPP_DEFAULT_PAYPAL_EMAIL),
|
52 |
+
'request_cost' => cp_ppp_get_option('request_cost', CP_PPP_DEFAULT_COST),
|
53 |
+
'paypal_product_name' => cp_ppp_get_option('paypal_product_name', CP_PPP_DEFAULT_PRODUCT_NAME),
|
54 |
+
'currency' => cp_ppp_get_option('currency', CP_PPP_DEFAULT_CURRENCY),
|
55 |
+
'paypal_language' => cp_ppp_get_option('paypal_language', CP_PPP_DEFAULT_PAYPAL_LANGUAGE),
|
56 |
+
|
57 |
+
'cv_enable_captcha' => cp_ppp_get_option('cv_enable_captcha', CP_PPP_DEFAULT_cv_enable_captcha),
|
58 |
+
'cv_width' => cp_ppp_get_option('cv_width', CP_PPP_DEFAULT_cv_width),
|
59 |
+
'cv_height' => cp_ppp_get_option('cv_height', CP_PPP_DEFAULT_cv_height),
|
60 |
+
'cv_chars' => cp_ppp_get_option('cv_chars', CP_PPP_DEFAULT_cv_chars),
|
61 |
+
'cv_font' => cp_ppp_get_option('cv_font', CP_PPP_DEFAULT_cv_font),
|
62 |
+
'cv_min_font_size' => cp_ppp_get_option('cv_min_font_size', CP_PPP_DEFAULT_cv_min_font_size),
|
63 |
+
'cv_max_font_size' => cp_ppp_get_option('cv_max_font_size', CP_PPP_DEFAULT_cv_max_font_size),
|
64 |
+
'cv_noise' => cp_ppp_get_option('cv_noise', CP_PPP_DEFAULT_cv_noise),
|
65 |
+
'cv_noise_length' => cp_ppp_get_option('cv_noise_length', CP_PPP_DEFAULT_cv_noise_length),
|
66 |
+
'cv_background' => cp_ppp_get_option('cv_background', CP_PPP_DEFAULT_cv_background),
|
67 |
+
'cv_border' => cp_ppp_get_option('cv_border', CP_PPP_DEFAULT_cv_border),
|
68 |
+
'cv_text_enter_valid_captcha' => cp_ppp_get_option('cv_text_enter_valid_captcha', CP_PPP_DEFAULT_cv_text_enter_valid_captcha)
|
69 |
+
)
|
70 |
+
);
|
71 |
+
|
72 |
+
$message = "Item added";
|
73 |
+
}
|
74 |
+
else if (isset($_GET['u']) && $_GET['u'] != '' && $current_user_access)
|
75 |
+
{
|
76 |
+
$wpdb->query( $wpdb->prepare (
|
77 |
+
'UPDATE `'.$wpdb->prefix.CP_PPP_FORMS_TABLE.'` SET form_name=%s WHERE id=%d',
|
78 |
+
$_GET["name"], $_GET['u']
|
79 |
+
)
|
80 |
+
);
|
81 |
+
$message = "Item updated";
|
82 |
+
}
|
83 |
+
else if (isset($_GET['d']) && $_GET['d'] != '' && $current_user_access)
|
84 |
+
{
|
85 |
+
$wpdb->query( $wpdb->prepare ( 'DELETE FROM `'.$wpdb->prefix.CP_PPP_FORMS_TABLE.'` WHERE id=%d', $_GET['d']) );
|
86 |
+
$message = "Item deleted";
|
87 |
+
}
|
88 |
+
else if (isset($_GET['c']) && $_GET['c'] != '' && $current_user_access)
|
89 |
+
{
|
90 |
+
$myrows = $wpdb->get_row( $wpdb->prepare ("SELECT * FROM ".$wpdb->prefix.CP_PPP_FORMS_TABLE." WHERE id=%d", $_GET['c']), ARRAY_A);
|
91 |
+
unset($myrows["id"]);
|
92 |
+
$myrows["form_name"] = 'Cloned: '.$myrows["form_name"];
|
93 |
+
$wpdb->insert( $wpdb->prefix.CP_PPP_FORMS_TABLE, $myrows);
|
94 |
+
$message = "Item duplicated/cloned";
|
95 |
+
}
|
96 |
+
else if (isset($_GET['ac']) && $_GET['ac'] == 'st' && $current_user_access)
|
97 |
+
{
|
98 |
+
update_option( 'CP_CFPP_LOAD_SCRIPTS', ($_GET["scr"]=="1"?"0":"1") );
|
99 |
+
update_option( 'CP_CFPP_LOAD_SCRIPTS_ADMIN', ($_GET["scradmin"]=="1"?"0":"1") );
|
100 |
+
if ($_GET["chs"] != '')
|
101 |
+
{
|
102 |
+
$target_charset = esc_sql($_GET["chs"]);
|
103 |
+
$tables = array( $wpdb->prefix.CP_PPP_POSTS_TABLE_NAME_NO_PREFIX, $wpdb->prefix.CP_PPP_FORMS_TABLE );
|
104 |
+
foreach ($tables as $tab)
|
105 |
+
{
|
106 |
+
$myrows = $wpdb->get_results( "DESCRIBE {$tab}" );
|
107 |
+
foreach ($myrows as $item)
|
108 |
+
{
|
109 |
+
$name = $item->Field;
|
110 |
+
$type = $item->Type;
|
111 |
+
if (preg_match("/^varchar\((\d+)\)$/i", $type, $mat) || !strcasecmp($type, "CHAR") || !strcasecmp($type, "TEXT") || !strcasecmp($type, "MEDIUMTEXT"))
|
112 |
+
{
|
113 |
+
$wpdb->query("ALTER TABLE {$tab} CHANGE {$name} {$name} {$type} COLLATE {$target_charset}");
|
114 |
+
}
|
115 |
+
}
|
116 |
+
}
|
117 |
+
}
|
118 |
+
$message = "Troubleshoot settings updated";
|
119 |
+
}
|
120 |
+
|
121 |
+
|
122 |
+
if ($message) echo "<div id='setting-error-settings_updated' class='updated settings-error'><p><strong>".$message."</strong></p></div>";
|
123 |
+
|
124 |
+
?>
|
125 |
+
<div class="wrap">
|
126 |
+
<h2>Payment Form for PayPal Pro</h2>
|
127 |
+
|
128 |
+
<script type="text/javascript">
|
129 |
+
function cp_addItem()
|
130 |
+
{
|
131 |
+
var calname = document.getElementById("cp_itemname").value;
|
132 |
+
document.location = 'options-general.php?page=cp_ppp&a=1&r='+Math.random()+'&name='+encodeURIComponent(calname);
|
133 |
+
}
|
134 |
+
|
135 |
+
function cp_updateItem(id)
|
136 |
+
{
|
137 |
+
var calname = document.getElementById("calname_"+id).value;
|
138 |
+
document.location = 'options-general.php?page=cp_ppp&u='+id+'&r='+Math.random()+'&name='+encodeURIComponent(calname);
|
139 |
+
}
|
140 |
+
|
141 |
+
function cp_cloneItem(id)
|
142 |
+
{
|
143 |
+
document.location = 'options-general.php?page=cp_ppp&c='+id+'&r='+Math.random();
|
144 |
+
}
|
145 |
+
|
146 |
+
function cp_manageSettings(id)
|
147 |
+
{
|
148 |
+
document.location = 'options-general.php?page=cp_ppp&cal='+id+'&r='+Math.random();
|
149 |
+
}
|
150 |
+
|
151 |
+
function cp_viewMessages(id)
|
152 |
+
{
|
153 |
+
document.location = 'admin.php?page=cp_ppp&cal='+id+'&list=1&r='+Math.random();
|
154 |
+
}
|
155 |
+
|
156 |
+
function cp_deleteItem(id)
|
157 |
+
{
|
158 |
+
if (confirm('Are you sure that you want to delete this item?'))
|
159 |
+
{
|
160 |
+
document.location = 'options-general.php?page=cp_ppp&d='+id+'&r='+Math.random();
|
161 |
+
}
|
162 |
+
}
|
163 |
+
|
164 |
+
function cp_updateConfig()
|
165 |
+
{
|
166 |
+
if (confirm('Are you sure that you want to update these settings?'))
|
167 |
+
{
|
168 |
+
var scr = document.getElementById("ccscriptload").value;
|
169 |
+
var scradmin = document.getElementById("ccscriptloadadmin").value;
|
170 |
+
var chs = document.getElementById("cccharsets").value;
|
171 |
+
document.location = 'options-general.php?page=cp_ppp&ac=st&scr='+scr+'&scradmin='+scradmin+'&chs='+chs+'&r='+Math.random();
|
172 |
+
}
|
173 |
+
}
|
174 |
+
|
175 |
+
</script>
|
176 |
+
|
177 |
+
|
178 |
+
<div id="normal-sortables" class="meta-box-sortables">
|
179 |
+
|
180 |
+
|
181 |
+
<div id="metabox_basic_settings" class="postbox" >
|
182 |
+
<h3 class='hndle' style="padding:5px;"><span>Form List / Items List</span></h3>
|
183 |
+
<div class="inside">
|
184 |
+
|
185 |
+
|
186 |
+
<table cellspacing="10">
|
187 |
+
<tr>
|
188 |
+
<th align="left">ID</th><th align="left">Form Name</th><th align="left"> Options</th><?php if ($current_user_access) { ?> <th align="left">Shorttag for Pages and Posts</th> <?php } ?>
|
189 |
+
</tr>
|
190 |
+
<?php
|
191 |
+
|
192 |
+
$current_user = wp_get_current_user();
|
193 |
+
$myrows = $wpdb->get_results( "SELECT * FROM ".$wpdb->prefix.CP_PPP_FORMS_TABLE );
|
194 |
+
foreach ($myrows as $item)
|
195 |
+
if ($current_user_access || @in_array($current_user->ID, unserialize($item->cp_user_access)))
|
196 |
+
{
|
197 |
+
?>
|
198 |
+
<tr>
|
199 |
+
<td nowrap><?php echo $item->id; ?></td>
|
200 |
+
<td nowrap><input type="text" name="calname_<?php echo $item->id; ?>" id="calname_<?php echo $item->id; ?>" value="<?php echo esc_attr($item->form_name); ?>" /></td>
|
201 |
+
|
202 |
+
<td nowrap>
|
203 |
+
<?php if ($current_user_access) { ?>
|
204 |
+
<input type="button" name="calupdate_<?php echo $item->id; ?>" value="Update" onclick="cp_updateItem(<?php echo $item->id; ?>);" />
|
205 |
+
<input type="button" name="calmanage_<?php echo $item->id; ?>" value="Settings" onclick="cp_manageSettings(<?php echo $item->id; ?>);" />
|
206 |
+
<?php } ?>
|
207 |
+
<input type="button" name="calmanage_<?php echo $item->id; ?>" value="Messages" onclick="cp_viewMessages(<?php echo $item->id; ?>);" />
|
208 |
+
<?php if ($current_user_access) { ?>
|
209 |
+
<input type="button" name="calclone_<?php echo $item->id; ?>" value="Clone" onclick="cp_cloneItem(<?php echo $item->id; ?>);" />
|
210 |
+
<input type="button" name="caldelete_<?php echo $item->id; ?>" value="Delete" onclick="cp_deleteItem(<?php echo $item->id; ?>);" />
|
211 |
+
<?php } ?>
|
212 |
+
</td>
|
213 |
+
<?php if ($current_user_access) { ?> <td nowrap>[CP_PPP id="<?php echo $item->id; ?>"]</td> <?php } ?>
|
214 |
+
</tr>
|
215 |
+
<?php
|
216 |
+
}
|
217 |
+
?>
|
218 |
+
|
219 |
+
</table>
|
220 |
+
|
221 |
+
|
222 |
+
|
223 |
+
</div>
|
224 |
+
</div>
|
225 |
+
|
226 |
+
<?php if ($current_user_access) { ?>
|
227 |
+
|
228 |
+
<div id="metabox_basic_settings" class="postbox" >
|
229 |
+
<h3 class='hndle' style="padding:5px;"><span>New Form</span></h3>
|
230 |
+
<div class="inside">
|
231 |
+
|
232 |
+
<form name="additem">
|
233 |
+
Item Name:<br />
|
234 |
+
<input type="text" name="cp_itemname" id="cp_itemname" value="" /> <input type="button" onclick="cp_addItem();" name="gobtn" value="Add" />
|
235 |
+
<br /><br />
|
236 |
+
</form>
|
237 |
+
|
238 |
+
</div>
|
239 |
+
</div>
|
240 |
+
|
241 |
+
|
242 |
+
<div id="metabox_basic_settings" class="postbox" >
|
243 |
+
<h3 class='hndle' style="padding:5px;"><span>Troubleshoot Area</span></h3>
|
244 |
+
<div class="inside">
|
245 |
+
<p><strong>Important!</strong>: Use this area <strong>only</strong> if you are experiencing conflicts with third party plugins, with the theme scripts or with the character encoding.</p>
|
246 |
+
<form name="updatesettings">
|
247 |
+
Script load method for public website:<br />
|
248 |
+
<select id="ccscriptload" name="ccscriptload">
|
249 |
+
<option value="0" <?php if (get_option('CP_CFPP_LOAD_SCRIPTS',"1") == "1") echo 'selected'; ?>>Classic (Recommended)</option>
|
250 |
+
<option value="1" <?php if (get_option('CP_CFPP_LOAD_SCRIPTS',"1") != "1") echo 'selected'; ?>>Direct</option>
|
251 |
+
</select><br />
|
252 |
+
<em>* Change the script load method if the form doesn't appear in the public website.</em>
|
253 |
+
<br /><br />
|
254 |
+
<div style="display:none">
|
255 |
+
Script load method for admin area:<br />
|
256 |
+
<select id="ccscriptloadadmin" name="ccscriptloadadmin">
|
257 |
+
<option value="0" <?php if (get_option('CP_CFPP_LOAD_SCRIPTS_ADMIN',"1") == "1") echo 'selected'; ?>>Classic (Recommended)</option>
|
258 |
+
<option value="1" <?php if (get_option('CP_CFPP_LOAD_SCRIPTS_ADMIN',"1") != "1") echo 'selected'; ?>>Direct</option>
|
259 |
+
</select><br />
|
260 |
+
<em>* Change the script load method if the form builder doesn't appear in the admin/settings area.</em>
|
261 |
+
<br /><br />
|
262 |
+
</div>
|
263 |
+
|
264 |
+
Character encoding:<br />
|
265 |
+
<select id="cccharsets" name="cccharsets">
|
266 |
+
<option value="">Keep current charset (Recommended)</option>
|
267 |
+
<option value="utf8_general_ci">UTF-8 (try this first)</option>
|
268 |
+
<option value="latin1_swedish_ci">latin1_swedish_ci</option>
|
269 |
+
</select><br />
|
270 |
+
<em>* Update the charset if you are getting problems displaying special/non-latin characters. After updated you need to edit the special characters again.</em>
|
271 |
+
<br />
|
272 |
+
<input type="button" onclick="cp_updateConfig();" name="gobtn" value="UPDATE" />
|
273 |
+
<br /><br />
|
274 |
+
</form>
|
275 |
+
|
276 |
+
</div>
|
277 |
+
</div>
|
278 |
+
|
279 |
+
<?php } ?>
|
280 |
+
|
281 |
+
</div>
|
282 |
+
|
283 |
+
|
284 |
+
[<a href="http://wordpress.dwbooster.com/contact-us" target="_blank">Request Custom Modifications</a>] | [<a href="http://wordpress.dwbooster.com/forms/cp-contact-form-with-paypal" target="_blank">Help</a>]
|
285 |
+
</form>
|
286 |
+
</div>
|
287 |
+
|
288 |
+
|
289 |
+
|
290 |
+
|
291 |
+
|
292 |
+
|
293 |
+
|
294 |
+
|
295 |
+
|
296 |
+
|
297 |
+
|
298 |
+
|
299 |
+
|
300 |
+
|
cp_ppp_admin_int_message_list.inc.php
ADDED
@@ -0,0 +1,230 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if ( !is_admin() )
|
4 |
+
{
|
5 |
+
echo 'Direct access not allowed.';
|
6 |
+
exit;
|
7 |
+
}
|
8 |
+
|
9 |
+
if (!defined('CP_PPP_ID'))
|
10 |
+
define ('CP_PPP_ID',intval($_GET["cal"]));
|
11 |
+
|
12 |
+
global $wpdb;
|
13 |
+
|
14 |
+
|
15 |
+
$current_user = wp_get_current_user();
|
16 |
+
$current_user_access = current_user_can('manage_options');
|
17 |
+
|
18 |
+
$message = "";
|
19 |
+
|
20 |
+
if (isset($_GET['lu']) && $_GET['lu'] != '')
|
21 |
+
{
|
22 |
+
$wpdb->query( $wpdb->prepare (
|
23 |
+
'UPDATE `'.CP_PPP_POSTS_TABLE_NAME.'` SET paid=%s WHERE id=%d',
|
24 |
+
$_GET["status"], intval($_GET['lu'])
|
25 |
+
)
|
26 |
+
);
|
27 |
+
$message = "Item updated";
|
28 |
+
}
|
29 |
+
else if (isset($_GET['ld']) && $_GET['ld'] != '')
|
30 |
+
{
|
31 |
+
$wpdb->query( $wpdb->prepare ( 'DELETE FROM `'.CP_PPP_POSTS_TABLE_NAME.'` WHERE id=%d', intval($_GET['ld'])) );
|
32 |
+
$message = "Item deleted";
|
33 |
+
}
|
34 |
+
|
35 |
+
if (CP_PPP_ID != 0) {
|
36 |
+
$myform = $wpdb->get_results( $wpdb->prepare ('SELECT * FROM '.$wpdb->prefix.CP_PPP_FORMS_TABLE .' WHERE id=%d', CP_PPP_ID) );
|
37 |
+
if (!$current_user_access && !@in_array($current_user->ID, unserialize($myform[0]->cp_user_access)))
|
38 |
+
{
|
39 |
+
echo 'Current user permissions don\'t have access to this messages list.';
|
40 |
+
exit;
|
41 |
+
}
|
42 |
+
}
|
43 |
+
|
44 |
+
|
45 |
+
$current_page = intval($_GET["p"]);
|
46 |
+
if (!$current_page) $current_page = 1;
|
47 |
+
$records_per_page = 50;
|
48 |
+
|
49 |
+
$cond = '';
|
50 |
+
if ($_GET["search"] != '') $cond .= " AND (data like '%".esc_sql($_GET["search"])."%' OR paypal_post LIKE '%".esc_sql($_GET["search"])."%')";
|
51 |
+
if ($_GET["dfrom"] != '') $cond .= " AND (`time` >= '".esc_sql($_GET["dfrom"])."')";
|
52 |
+
if ($_GET["dto"] != '') $cond .= " AND (`time` <= '".esc_sql($_GET["dto"])." 23:59:59')";
|
53 |
+
if (CP_PPP_ID != 0) $cond .= " AND formid=".CP_PPP_ID;
|
54 |
+
|
55 |
+
if (!$current_user_access && CP_PPP_ID == 0)
|
56 |
+
{
|
57 |
+
echo 'Current user permissions don\'t have access to this messages list.';
|
58 |
+
exit;
|
59 |
+
}
|
60 |
+
|
61 |
+
$events = $wpdb->get_results( "SELECT * FROM ".CP_PPP_POSTS_TABLE_NAME." WHERE 1=1 ".$cond." ORDER BY `time` DESC" );
|
62 |
+
$total_pages = ceil(count($events) / $records_per_page);
|
63 |
+
|
64 |
+
|
65 |
+
|
66 |
+
if ($message) echo "<div id='setting-error-settings_updated' class='updated settings-error'><p><strong>".$message."</strong></p></div>";
|
67 |
+
|
68 |
+
|
69 |
+
?>
|
70 |
+
<script type="text/javascript">
|
71 |
+
function cp_updateMessageItem(id,status)
|
72 |
+
{
|
73 |
+
document.location = 'admin.php?page=cp_ppp&cal=<?php echo $_GET["cal"]; ?>&list=1&status='+status+'&lu='+id+'&r='+Math.random( );
|
74 |
+
}
|
75 |
+
function cp_deleteMessageItem(id)
|
76 |
+
{
|
77 |
+
if (confirm('Are you sure that you want to delete this item?'))
|
78 |
+
{
|
79 |
+
document.location = 'admin.php?page=cp_ppp&cal=<?php echo $_GET["cal"]; ?>&list=1&ld='+id+'&r='+Math.random();
|
80 |
+
}
|
81 |
+
}
|
82 |
+
</script>
|
83 |
+
<div class="wrap">
|
84 |
+
<h2>Payment Form for PayPal Pro - Message List</h2>
|
85 |
+
|
86 |
+
<input type="button" name="backbtn" value="Back to items list..." onclick="document.location='admin.php?page=cp_ppp';">
|
87 |
+
|
88 |
+
|
89 |
+
<div id="normal-sortables" class="meta-box-sortables">
|
90 |
+
<hr />
|
91 |
+
<h3>This message list is from: <?php if (CP_PPP_ID != 0) echo $myform[0]->form_name; else echo 'All forms'; ?></h3>
|
92 |
+
</div>
|
93 |
+
|
94 |
+
|
95 |
+
<form action="admin.php" method="get">
|
96 |
+
<input type="hidden" name="page" value="cp_ppp" />
|
97 |
+
<input type="hidden" name="cal" value="<?php echo CP_PPP_ID; ?>" />
|
98 |
+
<input type="hidden" name="list" value="1" />
|
99 |
+
<nobr>Search for: <input type="text" name="search" value="<?php echo esc_attr($_GET["search"]); ?>" /> </nobr>
|
100 |
+
<nobr>From: <input type="text" id="dfrom" name="dfrom" value="<?php echo esc_attr($_GET["dfrom"]); ?>" /> </nobr>
|
101 |
+
<nobr>To: <input type="text" id="dto" name="dto" value="<?php echo esc_attr($_GET["dto"]); ?>" /> </nobr>
|
102 |
+
<nobr>Item: <select id="cal" name="cal">
|
103 |
+
<?php if ($current_user_access) { ?><option value="0">[All Items]</option><?php } ?>
|
104 |
+
<?php
|
105 |
+
$myrows = $wpdb->get_results( "SELECT * FROM ".$wpdb->prefix.CP_PPP_FORMS_TABLE );
|
106 |
+
foreach ($myrows as $item)
|
107 |
+
if ($current_user_access || @in_array($current_user->ID, unserialize($item->cp_user_access)))
|
108 |
+
echo '<option value="'.$item->id.'"'.(intval($item->id)==intval(CP_PPP_ID)?" selected":"").'>'.$item->form_name.'</option>';
|
109 |
+
?>
|
110 |
+
</select></nobr>
|
111 |
+
<nobr><span class="submit"><input type="submit" name="ds" value="Filter" /></span>
|
112 |
+
<span class="submit"><input type="submit" name="cp_ppp_csv" value="Export to CSV" /></span></nobr>
|
113 |
+
</form>
|
114 |
+
|
115 |
+
<br />
|
116 |
+
|
117 |
+
<?php
|
118 |
+
|
119 |
+
|
120 |
+
echo paginate_links( array(
|
121 |
+
'base' => 'admin.php?page=cp_ppp&cal='.CP_PPP_ID.'&list=1%_%&dfrom='.urlencode($_GET["dfrom"]).'&dto='.urlencode($_GET["dto"]).'&search='.urlencode($_GET["search"]),
|
122 |
+
'format' => '&p=%#%',
|
123 |
+
'total' => $total_pages,
|
124 |
+
'current' => $current_page,
|
125 |
+
'show_all' => False,
|
126 |
+
'end_size' => 1,
|
127 |
+
'mid_size' => 2,
|
128 |
+
'prev_next' => True,
|
129 |
+
'prev_text' => __('« Previous'),
|
130 |
+
'next_text' => __('Next »'),
|
131 |
+
'type' => 'plain',
|
132 |
+
'add_args' => False
|
133 |
+
) );
|
134 |
+
|
135 |
+
?>
|
136 |
+
|
137 |
+
<div id="dex_printable_contents">
|
138 |
+
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
139 |
+
<thead>
|
140 |
+
<tr>
|
141 |
+
<th style="padding-left:7px;font-weight:bold;" width="50" nowrap>ID</th>
|
142 |
+
<th style="padding-left:7px;font-weight:bold;" width="125">Date</th>
|
143 |
+
<th style="padding-left:7px;font-weight:bold;">Email</th>
|
144 |
+
<th style="padding-left:7px;font-weight:bold;">Message</th>
|
145 |
+
<th style="padding-left:7px;font-weight:bold;">Payment Info</th>
|
146 |
+
<th style="padding-left:7px;font-weight:bold;">Options</th>
|
147 |
+
</tr>
|
148 |
+
</thead>
|
149 |
+
<tbody id="the-list">
|
150 |
+
<?php for ($i=($current_page-1)*$records_per_page; $i<$current_page*$records_per_page; $i++) if (isset($events[$i])) { ?>
|
151 |
+
<tr class='<?php if (!($i%2)) { ?>alternate <?php } ?>author-self status-draft format-default iedit' valign="top">
|
152 |
+
<td><?php echo $events[$i]->id; ?></td>
|
153 |
+
<td><?php echo substr($events[$i]->time,0,16); ?></td>
|
154 |
+
<td><?php echo $events[$i]->notifyto; ?></td>
|
155 |
+
<td><?php
|
156 |
+
$data = $events[$i]->data;
|
157 |
+
$posted_data = unserialize($events[$i]->posted_data);
|
158 |
+
foreach ($posted_data as $item => $value)
|
159 |
+
if (strpos($item,"_url") && is_array($value))
|
160 |
+
{
|
161 |
+
$data = str_replace ($posted_data[str_replace("_url","",$item)],'<a href="'.$value[0].'" target="_blank">'.$posted_data[str_replace("_url","",$item)].'</a><br />',$data);
|
162 |
+
}
|
163 |
+
echo str_replace("\n","<br />",$data);
|
164 |
+
|
165 |
+
?></td>
|
166 |
+
<td>
|
167 |
+
<?php
|
168 |
+
if ($events[$i]->paid) {
|
169 |
+
echo '<span style="color:#00aa00;font-weight:bold">'.__("Paid").'</span><hr />';
|
170 |
+
if (substr($events[$i]->paypal_post,0,2) != 'a:') echo str_replace("\n","<br />",$events[$i]->paypal_post);
|
171 |
+
}
|
172 |
+
else
|
173 |
+
echo '<span style="color:#ff0000;font-weight:bold">'.__("Not Paid").'</span>';
|
174 |
+
?>
|
175 |
+
|
176 |
+
</td>
|
177 |
+
<td>
|
178 |
+
<?php if ($events[$i]->paid) { ?>
|
179 |
+
<input type="button" name="calmanage_<?php echo $events[$i]->id; ?>" value="Change status to NOT PAID" onclick="cp_updateMessageItem(<?php echo $events[$i]->id; ?>,0);" />
|
180 |
+
<?php } else { ?>
|
181 |
+
<input type="button" name="calmanage_<?php echo $events[$i]->id; ?>" value="Change status to PAID" onclick="cp_updateMessageItem(<?php echo $events[$i]->id; ?>,1);" />
|
182 |
+
<?php } ?>
|
183 |
+
|
184 |
+
<input type="button" name="caldelete_<?php echo $events[$i]->id; ?>" value="Delete" onclick="cp_deleteMessageItem(<?php echo $events[$i]->id; ?>);" />
|
185 |
+
</td>
|
186 |
+
</tr>
|
187 |
+
<?php } ?>
|
188 |
+
</tbody>
|
189 |
+
</table>
|
190 |
+
</div>
|
191 |
+
|
192 |
+
<p class="submit"><input type="button" name="pbutton" value="Print" onclick="do_dexapp_print();" /></p>
|
193 |
+
|
194 |
+
</div>
|
195 |
+
|
196 |
+
|
197 |
+
<script type="text/javascript">
|
198 |
+
function do_dexapp_print()
|
199 |
+
{
|
200 |
+
w=window.open();
|
201 |
+
w.document.write("<style>table{border:2px solid black;width:100%;}th{border-bottom:2px solid black;text-align:left}td{padding-left:10px;border-bottom:1px solid black;}</style>"+document.getElementById('dex_printable_contents').innerHTML);
|
202 |
+
w.print();
|
203 |
+
w.close();
|
204 |
+
}
|
205 |
+
|
206 |
+
var $j = jQuery.noConflict();
|
207 |
+
$j(function() {
|
208 |
+
$j("#dfrom").datepicker({
|
209 |
+
dateFormat: 'yy-mm-dd'
|
210 |
+
});
|
211 |
+
$j("#dto").datepicker({
|
212 |
+
dateFormat: 'yy-mm-dd'
|
213 |
+
});
|
214 |
+
});
|
215 |
+
|
216 |
+
</script>
|
217 |
+
|
218 |
+
|
219 |
+
|
220 |
+
|
221 |
+
|
222 |
+
|
223 |
+
|
224 |
+
|
225 |
+
|
226 |
+
|
227 |
+
|
228 |
+
|
229 |
+
|
230 |
+
|
cp_ppp_data_source.inc.php
ADDED
@@ -0,0 +1,342 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
add_action( 'init', 'cp_ppp_init_ds', 0 );
|
4 |
+
|
5 |
+
function cp_ppp_init_ds()
|
6 |
+
{
|
7 |
+
if( isset( $_REQUEST[ 'cffaction' ] ) )
|
8 |
+
{
|
9 |
+
switch( $_REQUEST[ 'cffaction' ] )
|
10 |
+
{
|
11 |
+
case 'test_db_connection':
|
12 |
+
global $cpcff_db_connect;
|
13 |
+
|
14 |
+
$_REQUEST[ 'data_source' ] = 'database';
|
15 |
+
$_REQUEST[ 'query' ] = 'SHOW tables';
|
16 |
+
$result = cp_ppp_ds( $_REQUEST );
|
17 |
+
$err = mysqli_error( $cpcff_db_connect );
|
18 |
+
if( !is_null( mysqli_connect_error() ) ) $err .= mysqli_connect_error();
|
19 |
+
print( ( ( empty( $err ) ) ? 'Connection OK' : $err ) );
|
20 |
+
exit;
|
21 |
+
break;
|
22 |
+
case 'test_db_query':
|
23 |
+
if( $_REQUEST[ 'active' ] == 'structure' )
|
24 |
+
{
|
25 |
+
_cp_ppp_check_for_variable( $_REQUEST[ 'table' ] );
|
26 |
+
_cp_ppp_check_for_variable( $_REQUEST[ 'where' ] );
|
27 |
+
}
|
28 |
+
else
|
29 |
+
{
|
30 |
+
_cp_ppp_check_for_variable( $_REQUEST[ 'query' ] );
|
31 |
+
}
|
32 |
+
case 'get_data_from_database':
|
33 |
+
global $cpcff_db_connect;
|
34 |
+
|
35 |
+
$_REQUEST[ 'data_source' ] = 'database';
|
36 |
+
if( $_REQUEST[ 'active' ] == 'structure' )
|
37 |
+
{
|
38 |
+
$_REQUEST[ 'query' ] = '';
|
39 |
+
}
|
40 |
+
|
41 |
+
$query_result = cp_ppp_ds( $_REQUEST );
|
42 |
+
$err = mysqli_error( $cpcff_db_connect );
|
43 |
+
if( !is_null( mysqli_connect_error() ) ) $err .= mysqli_connect_error();
|
44 |
+
if( $_REQUEST[ 'cffaction' ] == test_db_query )
|
45 |
+
{
|
46 |
+
print_r( ( ( empty( $err ) ) ? $query_result : $err ) );
|
47 |
+
}
|
48 |
+
else
|
49 |
+
{
|
50 |
+
$result_obj = new stdClass;
|
51 |
+
if( !empty( $err ) )
|
52 |
+
{
|
53 |
+
$result_obj->error = $err;
|
54 |
+
}
|
55 |
+
else
|
56 |
+
{
|
57 |
+
$result_obj->data = $query_result;
|
58 |
+
}
|
59 |
+
print( json_encode( $result_obj ) );
|
60 |
+
}
|
61 |
+
exit;
|
62 |
+
break;
|
63 |
+
case 'get_post_types':
|
64 |
+
print json_encode( get_post_types( array('public' => true) ) );
|
65 |
+
exit;
|
66 |
+
break;
|
67 |
+
case 'get_posts':
|
68 |
+
$_REQUEST[ 'data_source' ] = 'post_type';
|
69 |
+
$result_obj = new stdClass;
|
70 |
+
$result_obj->data = cp_ppp_ds( $_REQUEST );
|
71 |
+
print( json_encode( $result_obj ) );
|
72 |
+
exit;
|
73 |
+
break;
|
74 |
+
case 'get_available_taxonomies':
|
75 |
+
print json_encode( get_taxonomies( array('public' => true), 'objects' ) );
|
76 |
+
exit;
|
77 |
+
break;
|
78 |
+
case 'get_taxonomies':
|
79 |
+
$_REQUEST[ 'data_source' ] = 'taxonomy';
|
80 |
+
$result_obj = new stdClass;
|
81 |
+
$result_obj->data = cp_ppp_ds( $_REQUEST );
|
82 |
+
print( json_encode( $result_obj ) );
|
83 |
+
exit;
|
84 |
+
break;
|
85 |
+
case 'get_users':
|
86 |
+
$_REQUEST[ 'data_source' ] = 'user';
|
87 |
+
$result_obj = new stdClass;
|
88 |
+
$result_obj->data = cp_ppp_ds( $_REQUEST );
|
89 |
+
print( json_encode( $result_obj ) );
|
90 |
+
exit;
|
91 |
+
break;
|
92 |
+
}
|
93 |
+
}
|
94 |
+
|
95 |
+
} // End cp_ppp_init_ds
|
96 |
+
|
97 |
+
function cp_ppp_ds( $data )
|
98 |
+
{
|
99 |
+
switch( $data[ 'data_source' ] )
|
100 |
+
{
|
101 |
+
case 'database':
|
102 |
+
return cp_ppp_ds_db( $data );
|
103 |
+
break;
|
104 |
+
case 'csv':
|
105 |
+
return cp_ppp_ds_csv( $data );
|
106 |
+
break;
|
107 |
+
case 'post_type':
|
108 |
+
return cp_ppp_ds_post_type( $data );
|
109 |
+
break;
|
110 |
+
case 'taxonomy':
|
111 |
+
return cp_ppp_ds_taxonomy( $data );
|
112 |
+
break;
|
113 |
+
case 'user':
|
114 |
+
return cp_ppp_ds_user( $data );
|
115 |
+
break;
|
116 |
+
}
|
117 |
+
}
|
118 |
+
|
119 |
+
/**
|
120 |
+
Displays a text about the existence of variables in the query, and stops the script execution.
|
121 |
+
**/
|
122 |
+
function _cp_ppp_check_for_variable( $str )
|
123 |
+
{
|
124 |
+
if( preg_match( '/<%fieldname\d+%>/', $str ) )
|
125 |
+
{
|
126 |
+
print 'Your query includes variables, so it cannot be tested from the form\'s edition';
|
127 |
+
exit;
|
128 |
+
}
|
129 |
+
}
|
130 |
+
function _cp_ppp_set_attr( &$obj, $attr, $arr, $elem )
|
131 |
+
{
|
132 |
+
$arr = (array)$arr;
|
133 |
+
if( !empty( $elem ) && !empty( $arr[ $elem ] ) )
|
134 |
+
{
|
135 |
+
$tmp = (array)$obj;
|
136 |
+
$tmp[ $attr ] = $arr[ $elem ];
|
137 |
+
$obj = (object)$tmp;
|
138 |
+
}
|
139 |
+
}
|
140 |
+
|
141 |
+
function cp_ppp_ds_db( $data )
|
142 |
+
{
|
143 |
+
global $wpdb, $cpcff_db_connect;
|
144 |
+
|
145 |
+
if( !empty( $data[ 'query' ] ) )
|
146 |
+
{
|
147 |
+
$query = $data[ 'query' ];
|
148 |
+
}
|
149 |
+
else
|
150 |
+
{
|
151 |
+
$separator = '';
|
152 |
+
$select = '';
|
153 |
+
if( !empty( $data[ 'value' ] ) )
|
154 |
+
{
|
155 |
+
$separator = ',';
|
156 |
+
$select .= $data[ 'value' ] . ' AS value';
|
157 |
+
}
|
158 |
+
|
159 |
+
if( !empty( $data[ 'text' ] ) )
|
160 |
+
{
|
161 |
+
$select .= $separator . $data[ 'text' ] . ' AS text';
|
162 |
+
}
|
163 |
+
|
164 |
+
$query = 'SELECT DISTINCT ' . $select . ' FROM ' . $data[ 'table' ] . ( ( !empty( $data[ 'where' ] ) ) ? ' WHERE ' . $data[ 'where' ] : '' ) . ( ( !empty( $data[ 'orderby' ] ) ) ? ' ORDER BY ' . $data[ 'orderby' ] : '' ).( ( !empty( $data[ 'limit' ] ) ) ? ' LIMIT ' . $data[ 'limit' ] : '' );
|
165 |
+
|
166 |
+
}
|
167 |
+
$query = stripcslashes( $query );
|
168 |
+
|
169 |
+
if( !empty( $data[ 'connection' ] ) && !empty( $data[ 'form' ] ) )
|
170 |
+
{
|
171 |
+
$connection_data = unserialize( mcrypt_decrypt( MCRYPT_RIJNDAEL_256, cp_ppp_get_option( 'form_structure', CP_PPP_DEFAULT_form_structure, $data[ 'form' ] ), base64_decode( $data[ 'connection' ] ), MCRYPT_MODE_ECB ) );
|
172 |
+
foreach( $connection_data as $key => $val )
|
173 |
+
{
|
174 |
+
$data[ $key ] = $val;
|
175 |
+
}
|
176 |
+
}
|
177 |
+
|
178 |
+
if( !empty( $data[ 'host' ] ) ) // External database
|
179 |
+
{
|
180 |
+
$results = array();
|
181 |
+
$cpcff_db_connect = mysqli_connect( $data[ 'host' ], $data[ 'user' ], $data[ 'pass' ], $data[ 'database' ] );
|
182 |
+
|
183 |
+
if( $cpcff_db_connect !== false )
|
184 |
+
{
|
185 |
+
$query_result = mysqli_query( $cpcff_db_connect, $query );
|
186 |
+
while( $query_result && $row = mysqli_fetch_object( $query_result ) )
|
187 |
+
{
|
188 |
+
$results[] = $row;
|
189 |
+
}
|
190 |
+
}
|
191 |
+
return $results;
|
192 |
+
}
|
193 |
+
else // Local database
|
194 |
+
{
|
195 |
+
return $wpdb->get_results( $query, ARRAY_A );
|
196 |
+
}
|
197 |
+
} // End cp_ppp_ds_db
|
198 |
+
|
199 |
+
function cp_ppp_ds_csv( $data )
|
200 |
+
{
|
201 |
+
}
|
202 |
+
|
203 |
+
function cp_ppp_ds_post_type( $data )
|
204 |
+
{
|
205 |
+
|
206 |
+
$posts = array();
|
207 |
+
if( !empty( $data[ 'id' ] ) )
|
208 |
+
{
|
209 |
+
$result = get_post( $data[ 'id' ], ARRAY_A );
|
210 |
+
if( !is_null( $result ) )
|
211 |
+
{
|
212 |
+
$tmp = new stdClass;
|
213 |
+
_cp_ppp_set_attr( $tmp, 'value', $result, $data[ 'value' ] );
|
214 |
+
_cp_ppp_set_attr( $tmp, 'text', $result, $data[ 'text' ] );
|
215 |
+
array_push( $posts, $tmp );
|
216 |
+
}
|
217 |
+
}
|
218 |
+
else
|
219 |
+
{
|
220 |
+
$args = array(
|
221 |
+
'post_status' => 'publish',
|
222 |
+
'orderby' => 'post_date',
|
223 |
+
'order' => 'DESC'
|
224 |
+
);
|
225 |
+
|
226 |
+
if( !empty( $data[ 'posttype' ] ) )
|
227 |
+
{
|
228 |
+
$args[ 'post_type' ] = $data[ 'posttype' ];
|
229 |
+
}
|
230 |
+
|
231 |
+
if( !empty( $data[ 'last' ] ) )
|
232 |
+
{
|
233 |
+
$args[ 'posts_per_page' ] = $data[ 'last' ];
|
234 |
+
}
|
235 |
+
|
236 |
+
$results = get_posts( $args );
|
237 |
+
|
238 |
+
foreach ( $results as $result )
|
239 |
+
{
|
240 |
+
$tmp = new stdClass;
|
241 |
+
_cp_ppp_set_attr( $tmp, 'value', $result, $data[ 'value' ] );
|
242 |
+
_cp_ppp_set_attr( $tmp, 'text', $result, $data[ 'text' ] );
|
243 |
+
array_push( $posts, $tmp );
|
244 |
+
}
|
245 |
+
}
|
246 |
+
return $posts;
|
247 |
+
}
|
248 |
+
|
249 |
+
function cp_ppp_ds_taxonomy( $data )
|
250 |
+
{
|
251 |
+
$taxonomies = array();
|
252 |
+
if( !empty( $data[ 'id' ] ) || !empty( $data[ 'slug' ] ) )
|
253 |
+
{
|
254 |
+
if( !empty( $data[ 'taxonomy' ] ) )
|
255 |
+
{
|
256 |
+
if( !empty( $data[ 'id' ] ) )
|
257 |
+
{
|
258 |
+
$result = get_term( $data[ 'id' ], $data[ 'taxonomy' ], ARRAY_A );
|
259 |
+
}
|
260 |
+
else
|
261 |
+
{
|
262 |
+
$result = get_term_by( 'slug', $data[ 'slug' ], $data[ 'taxonomy' ], ARRAY_A );
|
263 |
+
}
|
264 |
+
|
265 |
+
if( !is_null( $result ) )
|
266 |
+
{
|
267 |
+
$tmp = new stdClass;
|
268 |
+
_cp_ppp_set_attr( $tmp, 'value', $result, $data[ 'value' ] );
|
269 |
+
_cp_ppp_set_attr( $tmp, 'text', $result, $data[ 'text' ] );
|
270 |
+
array_push( $taxonomies, $tmp );
|
271 |
+
}
|
272 |
+
}
|
273 |
+
}
|
274 |
+
else
|
275 |
+
{
|
276 |
+
if( !empty( $data[ 'taxonomy' ] ) )
|
277 |
+
{
|
278 |
+
$results = get_terms( $data[ 'taxonomy' ], array( 'hide_empty' => 0 ) );
|
279 |
+
|
280 |
+
foreach ( $results as $result )
|
281 |
+
{
|
282 |
+
$tmp = new stdClass;
|
283 |
+
_cp_ppp_set_attr( $tmp, 'value', $result, $data[ 'value' ] );
|
284 |
+
_cp_ppp_set_attr( $tmp, 'text', $result, $data[ 'text' ] );
|
285 |
+
array_push( $taxonomies, $tmp );
|
286 |
+
}
|
287 |
+
}
|
288 |
+
}
|
289 |
+
return $taxonomies;
|
290 |
+
}
|
291 |
+
|
292 |
+
|
293 |
+
function cp_ppp_ds_user( $data )
|
294 |
+
{
|
295 |
+
$users = array();
|
296 |
+
if( !empty( $data[ 'logged' ] ) && $data[ 'logged' ] !== 'false' )
|
297 |
+
{
|
298 |
+
$result = wp_get_current_user();
|
299 |
+
if( !empty( $result ) )
|
300 |
+
{
|
301 |
+
$tmp = new stdClass;
|
302 |
+
_cp_ppp_set_attr( $tmp, 'value', $result->data, $data[ 'value' ] );
|
303 |
+
$users[] = $tmp;
|
304 |
+
}
|
305 |
+
}
|
306 |
+
elseif( !empty( $data[ 'id' ] ) || !empty( $data[ 'login' ] ) )
|
307 |
+
{
|
308 |
+
if( !empty( $data[ 'id' ] ) )
|
309 |
+
{
|
310 |
+
$tmp = new stdClass;
|
311 |
+
$result = get_user_by( 'id', $data[ 'id' ] );
|
312 |
+
}
|
313 |
+
else
|
314 |
+
{
|
315 |
+
$tmp = new stdClass;
|
316 |
+
$result = get_user_by( 'login', $data[ 'login' ] );
|
317 |
+
}
|
318 |
+
|
319 |
+
if( !empty( $result ) )
|
320 |
+
{
|
321 |
+
$tmp = new stdClass;
|
322 |
+
_cp_ppp_set_attr( $tmp, 'value', $result->data, $data[ 'value' ] );
|
323 |
+
$users[] = $tmp;
|
324 |
+
}
|
325 |
+
}
|
326 |
+
else
|
327 |
+
{
|
328 |
+
|
329 |
+
$results = get_users();
|
330 |
+
foreach( $results as $result )
|
331 |
+
{
|
332 |
+
$tmp = new stdClass;
|
333 |
+
_cp_ppp_set_attr( $tmp, 'value', $result->data, $data[ 'value' ] );
|
334 |
+
_cp_ppp_set_attr( $tmp, 'text', $result->data, $data[ 'text' ] );
|
335 |
+
$users[] = $tmp;
|
336 |
+
}
|
337 |
+
}
|
338 |
+
|
339 |
+
return $users;
|
340 |
+
}
|
341 |
+
|
342 |
+
?>
|
cp_ppp_paypal_pro_int.inc.php
ADDED
@@ -0,0 +1,379 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<br />
|
2 |
+
<table cellpadding="0" cellspacing="0" style="margin:0px;border:0px;width:100%;">
|
3 |
+
<tr style="border:0px;">
|
4 |
+
<td style="padding:0px;border:0px;">
|
5 |
+
<div class="fields" id="field-c0-ppp">
|
6 |
+
<label>First Name:</label>
|
7 |
+
<div class="dfield">
|
8 |
+
<input type="text" size="15" name="cfpp_customer_first_name" id="cfpp_customer_first_name" value="" />
|
9 |
+
</div>
|
10 |
+
<div class="clearer"></div>
|
11 |
+
</div><div class="dfield">
|
12 |
+
</td>
|
13 |
+
<td style="border:0px;">
|
14 |
+
<div class="fields" id="field-c0-ppp">
|
15 |
+
<label>Last Name:</label>
|
16 |
+
<div class="dfield">
|
17 |
+
<input type="text" size="15" name="cfpp_customer_last_name" id="cfpp_customer_last_name" value="" />
|
18 |
+
</div>
|
19 |
+
<div class="clearer"></div>
|
20 |
+
</div>
|
21 |
+
</td>
|
22 |
+
</tr>
|
23 |
+
</table>
|
24 |
+
<table cellpadding="0" cellspacing="0" style="margin:0px;border:0px;width:100%;">
|
25 |
+
<tr>
|
26 |
+
<td style="padding:0px; border:0px;" nowrap>
|
27 |
+
<div class="fields" id="field-c0-ppp">
|
28 |
+
<label>Credit Card Number:</label>
|
29 |
+
<div class="dfield">
|
30 |
+
<input type="text" size="18" name="cfpp_customer_credit_card_number" id="cfpp_customer_credit_card_number" value="" />
|
31 |
+
</div>
|
32 |
+
<div class="clearer"></div>
|
33 |
+
</div>
|
34 |
+
</td>
|
35 |
+
<td style="border:0px;" nowrap>
|
36 |
+
<div class="fields" id="field-c0-ppp">
|
37 |
+
<label>CVV Number:</label>
|
38 |
+
<div class="dfield">
|
39 |
+
<input type="text" size="5" name="cfpp_cc_cvv2_number" id="cfpp_cc_cvv2_number" value="" />
|
40 |
+
</div>
|
41 |
+
<div class="clearer"></div>
|
42 |
+
</div>
|
43 |
+
</td>
|
44 |
+
</tr>
|
45 |
+
</table>
|
46 |
+
<table cellpadding="0" cellspacing="0" style="margin:0px;border:0px;width:100%;">
|
47 |
+
<tr>
|
48 |
+
<td style="padding:0px;border:0px;" nowrap>
|
49 |
+
<div class="fields" id="field-c0-ppp">
|
50 |
+
<label>Card Type:</label>
|
51 |
+
<div class="dfield">
|
52 |
+
<select name="cfpp_customer_credit_card_type" id="cfpp_customer_credit_card_type"><option value="Visa">Visa</option><option value="MasterCard">MasterCard</option><option value="Discover">Discover</option><option value="Amex">Amex</option></select>
|
53 |
+
</div>
|
54 |
+
<div class="clearer"></div>
|
55 |
+
</div>
|
56 |
+
</td>
|
57 |
+
<td style="border:0px;" nowrap>
|
58 |
+
<div class="fields" id="field-c0-ppp">
|
59 |
+
<label>Expiration:</label>
|
60 |
+
<div class="dfield">
|
61 |
+
<select name="cfpp_cc_expiration_month">
|
62 |
+
<option value="01">January</option>
|
63 |
+
<option value="02">February</option>
|
64 |
+
<option value="03">March</option>
|
65 |
+
<option value="04">April</option>
|
66 |
+
<option value="05">May</option>
|
67 |
+
<option value="06">June</option>
|
68 |
+
<option value="07">July</option>
|
69 |
+
<option value="08">August</option>
|
70 |
+
<option value="09">September</option>
|
71 |
+
<option value="10">October</option>
|
72 |
+
<option value="11">November</option>
|
73 |
+
<option value="12">December</option>
|
74 |
+
</select> /
|
75 |
+
<select name="cfpp_cc_expiration_year">
|
76 |
+
<?php $d= intval(date("Y")); for($i=$d;$i<$d+10;$i++) echo '<option value="'.$i.'">'.$i.'</option>'; ?>
|
77 |
+
</select>
|
78 |
+
</div>
|
79 |
+
<div class="clearer"></div>
|
80 |
+
</div>
|
81 |
+
</td>
|
82 |
+
</tr>
|
83 |
+
</table>
|
84 |
+
<table cellpadding="0" cellspacing="0" style="margin:0px;border:0px;width:100%;">
|
85 |
+
<tr>
|
86 |
+
<td style="padding:0px;border:0px;" colspan="3" nowrap>Address:<br /><div class="dfield"><input type="text" size="30" name="cfpp_customer_address1" id="cfpp_customer_address1" value="" /><br /><input type="text" size="30" name="cfpp_customer_address2" id="cfpp_customer_address2" value="" /></div></td>
|
87 |
+
</tr>
|
88 |
+
<tr>
|
89 |
+
<td style="padding:0px;border:0px;" nowrap>
|
90 |
+
<div class="fields" id="field-c0-ppp">
|
91 |
+
<label>City:</label>
|
92 |
+
<div class="dfield">
|
93 |
+
<input type="text" size="15" name="cfpp_customer_city" id="cfpp_customer_city" value="" />
|
94 |
+
</div>
|
95 |
+
<div class="clearer"></div>
|
96 |
+
</div>
|
97 |
+
</td>
|
98 |
+
<td style="border:0px;" nowrap>
|
99 |
+
<div class="fields" id="field-c0-ppp">
|
100 |
+
<label>County:</label>
|
101 |
+
<div class="dfield">
|
102 |
+
<input type="text" size="15" name="cfpp_customer_state" id="cfpp_customer_state" value="" />
|
103 |
+
</div>
|
104 |
+
<div class="clearer"></div>
|
105 |
+
</div>
|
106 |
+
</td>
|
107 |
+
<td style="border:0px;" nowrap>
|
108 |
+
<div class="fields" id="field-c0-ppp">
|
109 |
+
<label>Post Code:</label>
|
110 |
+
<div class="dfield">
|
111 |
+
<input type="text" size="5" name="cfpp_customer_zip" id="cfpp_customer_zip" value="" />
|
112 |
+
</div>
|
113 |
+
<div class="clearer"></div>
|
114 |
+
</div>
|
115 |
+
</td>
|
116 |
+
</tr>
|
117 |
+
<tr>
|
118 |
+
<td style="padding:0px;border:0px;" colspan="3" nowrap>
|
119 |
+
|
120 |
+
<div class="fields" id="field-c0-ppp">
|
121 |
+
<label>Country:</label>
|
122 |
+
<div class="dfield">
|
123 |
+
<select name="cfpp_customer_country" id="cfpp_customer_country">
|
124 |
+
<option value="AF">Afghanistan</option>
|
125 |
+
<option value="AX">Åland Islands</option>
|
126 |
+
<option value="AL">Albania</option>
|
127 |
+
<option value="DZ">Algeria</option>
|
128 |
+
<option value="AS">American Samoa</option>
|
129 |
+
<option value="AD">Andorra</option>
|
130 |
+
<option value="AO">Angola</option>
|
131 |
+
<option value="AI">Anguilla</option>
|
132 |
+
<option value="AQ">Antarctica</option>
|
133 |
+
<option value="AG">Antigua and Barbuda</option>
|
134 |
+
<option value="AR">Argentina</option>
|
135 |
+
<option value="AM">Armenia</option>
|
136 |
+
<option value="AW">Aruba</option>
|
137 |
+
<option value="AU">Australia</option>
|
138 |
+
<option value="AT">Austria</option>
|
139 |
+
<option value="AZ">Azerbaijan</option>
|
140 |
+
<option value="BS">Bahamas</option>
|
141 |
+
<option value="BH">Bahrain</option>
|
142 |
+
<option value="BD">Bangladesh</option>
|
143 |
+
<option value="BB">Barbados</option>
|
144 |
+
<option value="BY">Belarus</option>
|
145 |
+
<option value="BE">Belgium</option>
|
146 |
+
<option value="BZ">Belize</option>
|
147 |
+
<option value="BJ">Benin</option>
|
148 |
+
<option value="BM">Bermuda</option>
|
149 |
+
<option value="BT">Bhutan</option>
|
150 |
+
<option value="BO">Bolivia, Plurinational State of</option>
|
151 |
+
<option value="BQ">Bonaire, Sint Eustatius and Saba</option>
|
152 |
+
<option value="BA">Bosnia and Herzegovina</option>
|
153 |
+
<option value="BW">Botswana</option>
|
154 |
+
<option value="BV">Bouvet Island</option>
|
155 |
+
<option value="BR">Brazil</option>
|
156 |
+
<option value="IO">British Indian Ocean Territory</option>
|
157 |
+
<option value="BN">Brunei Darussalam</option>
|
158 |
+
<option value="BG">Bulgaria</option>
|
159 |
+
<option value="BF">Burkina Faso</option>
|
160 |
+
<option value="BI">Burundi</option>
|
161 |
+
<option value="KH">Cambodia</option>
|
162 |
+
<option value="CM">Cameroon</option>
|
163 |
+
<option value="CA">Canada</option>
|
164 |
+
<option value="CV">Cape Verde</option>
|
165 |
+
<option value="KY">Cayman Islands</option>
|
166 |
+
<option value="CF">Central African Republic</option>
|
167 |
+
<option value="TD">Chad</option>
|
168 |
+
<option value="CL">Chile</option>
|
169 |
+
<option value="CN">China</option>
|
170 |
+
<option value="CX">Christmas Island</option>
|
171 |
+
<option value="CC">Cocos (Keeling) Islands</option>
|
172 |
+
<option value="CO">Colombia</option>
|
173 |
+
<option value="KM">Comoros</option>
|
174 |
+
<option value="CG">Congo</option>
|
175 |
+
<option value="CD">Congo, the Democratic Republic of the</option>
|
176 |
+
<option value="CK">Cook Islands</option>
|
177 |
+
<option value="CR">Costa Rica</option>
|
178 |
+
<option value="CI">Côte d'Ivoire</option>
|
179 |
+
<option value="HR">Croatia</option>
|
180 |
+
<option value="CU">Cuba</option>
|
181 |
+
<option value="CW">Curaçao</option>
|
182 |
+
<option value="CY">Cyprus</option>
|
183 |
+
<option value="CZ">Czech Republic</option>
|
184 |
+
<option value="DK">Denmark</option>
|
185 |
+
<option value="DJ">Djibouti</option>
|
186 |
+
<option value="DM">Dominica</option>
|
187 |
+
<option value="DO">Dominican Republic</option>
|
188 |
+
<option value="EC">Ecuador</option>
|
189 |
+
<option value="EG">Egypt</option>
|
190 |
+
<option value="SV">El Salvador</option>
|
191 |
+
<option value="GQ">Equatorial Guinea</option>
|
192 |
+
<option value="ER">Eritrea</option>
|
193 |
+
<option value="EE">Estonia</option>
|
194 |
+
<option value="ET">Ethiopia</option>
|
195 |
+
<option value="FK">Falkland Islands (Malvinas)</option>
|
196 |
+
<option value="FO">Faroe Islands</option>
|
197 |
+
<option value="FJ">Fiji</option>
|
198 |
+
<option value="FI">Finland</option>
|
199 |
+
<option value="FR">France</option>
|
200 |
+
<option value="GF">French Guiana</option>
|
201 |
+
<option value="PF">French Polynesia</option>
|
202 |
+
<option value="TF">French Southern Territories</option>
|
203 |
+
<option value="GA">Gabon</option>
|
204 |
+
<option value="GM">Gambia</option>
|
205 |
+
<option value="GE">Georgia</option>
|
206 |
+
<option value="DE">Germany</option>
|
207 |
+
<option value="GH">Ghana</option>
|
208 |
+
<option value="GI">Gibraltar</option>
|
209 |
+
<option value="GR">Greece</option>
|
210 |
+
<option value="GL">Greenland</option>
|
211 |
+
<option value="GD">Grenada</option>
|
212 |
+
<option value="GP">Guadeloupe</option>
|
213 |
+
<option value="GU">Guam</option>
|
214 |
+
<option value="GT">Guatemala</option>
|
215 |
+
<option value="GG">Guernsey</option>
|
216 |
+
<option value="GN">Guinea</option>
|
217 |
+
<option value="GW">Guinea-Bissau</option>
|
218 |
+
<option value="GY">Guyana</option>
|
219 |
+
<option value="HT">Haiti</option>
|
220 |
+
<option value="HM">Heard Island and McDonald Islands</option>
|
221 |
+
<option value="VA">Holy See (Vatican City State)</option>
|
222 |
+
<option value="HN">Honduras</option>
|
223 |
+
<option value="HK">Hong Kong</option>
|
224 |
+
<option value="HU">Hungary</option>
|
225 |
+
<option value="IS">Iceland</option>
|
226 |
+
<option value="IN">India</option>
|
227 |
+
<option value="ID">Indonesia</option>
|
228 |
+
<option value="IR">Iran, Islamic Republic of</option>
|
229 |
+
<option value="IQ">Iraq</option>
|
230 |
+
<option value="IE">Ireland</option>
|
231 |
+
<option value="IM">Isle of Man</option>
|
232 |
+
<option value="IL">Israel</option>
|
233 |
+
<option value="IT">Italy</option>
|
234 |
+
<option value="JM">Jamaica</option>
|
235 |
+
<option value="JP">Japan</option>
|
236 |
+
<option value="JE">Jersey</option>
|
237 |
+
<option value="JO">Jordan</option>
|
238 |
+
<option value="KZ">Kazakhstan</option>
|
239 |
+
<option value="KE">Kenya</option>
|
240 |
+
<option value="KI">Kiribati</option>
|
241 |
+
<option value="KP">Korea, Democratic People's Republic of</option>
|
242 |
+
<option value="KR">Korea, Republic of</option>
|
243 |
+
<option value="KW">Kuwait</option>
|
244 |
+
<option value="KG">Kyrgyzstan</option>
|
245 |
+
<option value="LA">Lao People's Democratic Republic</option>
|
246 |
+
<option value="LV">Latvia</option>
|
247 |
+
<option value="LB">Lebanon</option>
|
248 |
+
<option value="LS">Lesotho</option>
|
249 |
+
<option value="LR">Liberia</option>
|
250 |
+
<option value="LY">Libya</option>
|
251 |
+
<option value="LI">Liechtenstein</option>
|
252 |
+
<option value="LT">Lithuania</option>
|
253 |
+
<option value="LU">Luxembourg</option>
|
254 |
+
<option value="MO">Macao</option>
|
255 |
+
<option value="MK">Macedonia, the former Yugoslav Republic of</option>
|
256 |
+
<option value="MG">Madagascar</option>
|
257 |
+
<option value="MW">Malawi</option>
|
258 |
+
<option value="MY">Malaysia</option>
|
259 |
+
<option value="MV">Maldives</option>
|
260 |
+
<option value="ML">Mali</option>
|
261 |
+
<option value="MT">Malta</option>
|
262 |
+
<option value="MH">Marshall Islands</option>
|
263 |
+
<option value="MQ">Martinique</option>
|
264 |
+
<option value="MR">Mauritania</option>
|
265 |
+
<option value="MU">Mauritius</option>
|
266 |
+
<option value="YT">Mayotte</option>
|
267 |
+
<option value="MX">Mexico</option>
|
268 |
+
<option value="FM">Micronesia, Federated States of</option>
|
269 |
+
<option value="MD">Moldova, Republic of</option>
|
270 |
+
<option value="MC">Monaco</option>
|
271 |
+
<option value="MN">Mongolia</option>
|
272 |
+
<option value="ME">Montenegro</option>
|
273 |
+
<option value="MS">Montserrat</option>
|
274 |
+
<option value="MA">Morocco</option>
|
275 |
+
<option value="MZ">Mozambique</option>
|
276 |
+
<option value="MM">Myanmar</option>
|
277 |
+
<option value="NA">Namibia</option>
|
278 |
+
<option value="NR">Nauru</option>
|
279 |
+
<option value="NP">Nepal</option>
|
280 |
+
<option value="NL">Netherlands</option>
|
281 |
+
<option value="NC">New Caledonia</option>
|
282 |
+
<option value="NZ">New Zealand</option>
|
283 |
+
<option value="NI">Nicaragua</option>
|
284 |
+
<option value="NE">Niger</option>
|
285 |
+
<option value="NG">Nigeria</option>
|
286 |
+
<option value="NU">Niue</option>
|
287 |
+
<option value="NF">Norfolk Island</option>
|
288 |
+
<option value="MP">Northern Mariana Islands</option>
|
289 |
+
<option value="NO">Norway</option>
|
290 |
+
<option value="OM">Oman</option>
|
291 |
+
<option value="PK">Pakistan</option>
|
292 |
+
<option value="PW">Palau</option>
|
293 |
+
<option value="PS">Palestinian Territory, Occupied</option>
|
294 |
+
<option value="PA">Panama</option>
|
295 |
+
<option value="PG">Papua New Guinea</option>
|
296 |
+
<option value="PY">Paraguay</option>
|
297 |
+
<option value="PE">Peru</option>
|
298 |
+
<option value="PH">Philippines</option>
|
299 |
+
<option value="PN">Pitcairn</option>
|
300 |
+
<option value="PL">Poland</option>
|
301 |
+
<option value="PT">Portugal</option>
|
302 |
+
<option value="PR">Puerto Rico</option>
|
303 |
+
<option value="QA">Qatar</option>
|
304 |
+
<option value="RE">Réunion</option>
|
305 |
+
<option value="RO">Romania</option>
|
306 |
+
<option value="RU">Russian Federation</option>
|
307 |
+
<option value="RW">Rwanda</option>
|
308 |
+
<option value="BL">Saint Barthélemy</option>
|
309 |
+
<option value="SH">Saint Helena, Ascension and Tristan da Cunha</option>
|
310 |
+
<option value="KN">Saint Kitts and Nevis</option>
|
311 |
+
<option value="LC">Saint Lucia</option>
|
312 |
+
<option value="MF">Saint Martin (French part)</option>
|
313 |
+
<option value="PM">Saint Pierre and Miquelon</option>
|
314 |
+
<option value="VC">Saint Vincent and the Grenadines</option>
|
315 |
+
<option value="WS">Samoa</option>
|
316 |
+
<option value="SM">San Marino</option>
|
317 |
+
<option value="ST">Sao Tome and Principe</option>
|
318 |
+
<option value="SA">Saudi Arabia</option>
|
319 |
+
<option value="SN">Senegal</option>
|
320 |
+
<option value="RS">Serbia</option>
|
321 |
+
<option value="SC">Seychelles</option>
|
322 |
+
<option value="SL">Sierra Leone</option>
|
323 |
+
<option value="SG">Singapore</option>
|
324 |
+
<option value="SX">Sint Maarten (Dutch part)</option>
|
325 |
+
<option value="SK">Slovakia</option>
|
326 |
+
<option value="SI">Slovenia</option>
|
327 |
+
<option value="SB">Solomon Islands</option>
|
328 |
+
<option value="SO">Somalia</option>
|
329 |
+
<option value="ZA">South Africa</option>
|
330 |
+
<option value="GS">South Georgia and the South Sandwich Islands</option>
|
331 |
+
<option value="SS">South Sudan</option>
|
332 |
+
<option value="ES">Spain</option>
|
333 |
+
<option value="LK">Sri Lanka</option>
|
334 |
+
<option value="SD">Sudan</option>
|
335 |
+
<option value="SR">Suriname</option>
|
336 |
+
<option value="SJ">Svalbard and Jan Mayen</option>
|
337 |
+
<option value="SZ">Swaziland</option>
|
338 |
+
<option value="SE">Sweden</option>
|
339 |
+
<option value="CH">Switzerland</option>
|
340 |
+
<option value="SY">Syrian Arab Republic</option>
|
341 |
+
<option value="TW">Taiwan, Province of China</option>
|
342 |
+
<option value="TJ">Tajikistan</option>
|
343 |
+
<option value="TZ">Tanzania, United Republic of</option>
|
344 |
+
<option value="TH">Thailand</option>
|
345 |
+
<option value="TL">Timor-Leste</option>
|
346 |
+
<option value="TG">Togo</option>
|
347 |
+
<option value="TK">Tokelau</option>
|
348 |
+
<option value="TO">Tonga</option>
|
349 |
+
<option value="TT">Trinidad and Tobago</option>
|
350 |
+
<option value="TN">Tunisia</option>
|
351 |
+
<option value="TR">Turkey</option>
|
352 |
+
<option value="TM">Turkmenistan</option>
|
353 |
+
<option value="TC">Turks and Caicos Islands</option>
|
354 |
+
<option value="TV">Tuvalu</option>
|
355 |
+
<option value="UG">Uganda</option>
|
356 |
+
<option value="UA">Ukraine</option>
|
357 |
+
<option value="AE">United Arab Emirates</option>
|
358 |
+
<option value="GB">United Kingdom</option>
|
359 |
+
<option value="US" selected>United States</option>
|
360 |
+
<option value="UM">United States Minor Outlying Islands</option>
|
361 |
+
<option value="UY">Uruguay</option>
|
362 |
+
<option value="UZ">Uzbekistan</option>
|
363 |
+
<option value="VU">Vanuatu</option>
|
364 |
+
<option value="VE">Venezuela, Bolivarian Republic of</option>
|
365 |
+
<option value="VN">Viet Nam</option>
|
366 |
+
<option value="VG">Virgin Islands, British</option>
|
367 |
+
<option value="VI">Virgin Islands, U.S.</option>
|
368 |
+
<option value="WF">Wallis and Futuna</option>
|
369 |
+
<option value="EH">Western Sahara</option>
|
370 |
+
<option value="YE">Yemen</option>
|
371 |
+
<option value="ZM">Zambia</option>
|
372 |
+
<option value="ZW">Zimbabwe</option>
|
373 |
+
</select>
|
374 |
+
</div>
|
375 |
+
<div class="clearer"></div>
|
376 |
+
</div>
|
377 |
+
</td>
|
378 |
+
</tr>
|
379 |
+
</table>
|
cp_ppp_public_int.inc.php
ADDED
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php if ( !defined('CP_AUTH_INCLUDE') ) { echo 'Direct access not allowed.'; exit; } ?>
|
2 |
+
</p>
|
3 |
+
<?php
|
4 |
+
$raw_form_str = str_replace("\r"," ",str_replace("\n"," ",cp_ppp_cleanJSON(cp_ppp_get_option('form_structure', CP_PPP_DEFAULT_form_structure,$id))));
|
5 |
+
|
6 |
+
$form_data = json_decode( $raw_form_str );
|
7 |
+
if( is_null( $form_data ) ){
|
8 |
+
$json = new JSON;
|
9 |
+
$form_data = $json->unserialize( $raw_form_str );
|
10 |
+
}
|
11 |
+
|
12 |
+
if( !is_null( $form_data ) )
|
13 |
+
{
|
14 |
+
if( !empty( $form_data[ 0 ] ) )
|
15 |
+
{
|
16 |
+
foreach( $form_data[ 0 ] as $key => $object )
|
17 |
+
{
|
18 |
+
if( isset( $object->isDataSource ) && $object->isDataSource && function_exists( 'mcrypt_encrypt' ) )
|
19 |
+
{
|
20 |
+
$connection = new stdClass();
|
21 |
+
$connection->connection = base64_encode( mcrypt_encrypt( MCRYPT_RIJNDAEL_256, cp_ppp_get_option('form_structure', CP_PPP_DEFAULT_form_structure,$id), serialize( $object->list->database->databaseData ), MCRYPT_MODE_ECB ) );
|
22 |
+
$connection->form = $id;
|
23 |
+
|
24 |
+
$object->list->database->databaseData = $connection;
|
25 |
+
$form_data[ 0 ][ $key ] = $object;
|
26 |
+
$raw_form_str = json_encode( $form_data );
|
27 |
+
}
|
28 |
+
}
|
29 |
+
}
|
30 |
+
|
31 |
+
if( isset( $form_data[ 1 ] ) && isset( $form_data[ 1 ][ 0 ] ) && isset( $form_data[ 1 ][ 0 ]->formtemplate ) )
|
32 |
+
{
|
33 |
+
$templatelist = cp_ppp_available_templates();
|
34 |
+
if( isset( $templatelist[ $form_data[ 1 ][ 0 ]->formtemplate ] ) );
|
35 |
+
print '<link href="'.esc_attr( esc_url( $templatelist[ $form_data[ 1 ][ 0 ]->formtemplate ][ 'file' ] ) ).'" type="text/css" rel="stylesheet" />';
|
36 |
+
}
|
37 |
+
}
|
38 |
+
|
39 |
+
$raw_form_str = str_replace('"','"',esc_attr($raw_form_str));
|
40 |
+
?>
|
41 |
+
<script type="text/javascript">
|
42 |
+
function cp_ppp_cerror(id){$dexQuery = jQuery.noConflict();$dexQuery("#hdcaptcha_error"+id).css('top',$dexQuery("#hdcaptcha"+id).outerHeight());$dexQuery("#hdcaptcha_error"+id).css("display","inline");}
|
43 |
+
function doValidate<?php echo $CP_CPP_global_form_count; ?>(form)
|
44 |
+
{
|
45 |
+
$dexQuery = jQuery.noConflict();
|
46 |
+
document.cp_ppp_pform<?php echo $CP_CPP_global_form_count; ?>.cp_ref_page.value = document.location;
|
47 |
+
<?php if (cp_ppp_get_option('cv_enable_captcha', CP_PPP_DEFAULT_cv_enable_captcha,$id) != 'false') { ?> if ($dexQuery("#hdcaptcha_cp_ppp_post<?php echo $CP_CPP_global_form_count; ?>").val() == '')
|
48 |
+
{
|
49 |
+
//alert('<?php _e('Please enter the captcha verification code.'); ?>');
|
50 |
+
setTimeout( "cp_ppp_cerror('<?php echo $CP_CPP_global_form_count; ?>')", 100);
|
51 |
+
return false;
|
52 |
+
}
|
53 |
+
var result = $dexQuery.ajax({
|
54 |
+
type: "GET",
|
55 |
+
url: "<?php echo cp_ppp_get_site_url(); ?>?ps=<?php echo $CP_CPP_global_form_count; ?>"+String.fromCharCode(38)+"inAdmin=1"+String.fromCharCode(38)+"cp_ppp_id=<?php echo $id; ?>"+String.fromCharCode(38)+"hdcaptcha_cp_ppp_post="+$dexQuery("#hdcaptcha_cp_ppp_post<?php echo $CP_CPP_global_form_count; ?>").val(),
|
56 |
+
async: false
|
57 |
+
}).responseText;
|
58 |
+
if (result.indexOf("captchafailed") != -1)
|
59 |
+
{
|
60 |
+
$dexQuery("#captchaimg<?php echo $CP_CPP_global_form_count; ?>").attr('src', $dexQuery("#captchaimg<?php echo $CP_CPP_global_form_count; ?>").attr('src')+'&'+Date());
|
61 |
+
//alert('<?php _e('Incorrect captcha code. Please try again.'); ?>');
|
62 |
+
setTimeout( "cp_ppp_cerror('<?php echo $CP_CPP_global_form_count; ?>')", 100);
|
63 |
+
return false;
|
64 |
+
}
|
65 |
+
else <?php } ?>
|
66 |
+
{
|
67 |
+
<?php if (cp_ppp_get_option('enable_paypal',CP_PPP_DEFAULT_ENABLE_PAYPAL) == "3") { ?>
|
68 |
+
if (document.getElementById("cp_ppp_paymentspro<?php echo $CP_CPP_global_form_count; ?>").value != "")
|
69 |
+
$dexQuery.ajax({
|
70 |
+
type: "POST",
|
71 |
+
async: false,
|
72 |
+
url: '<?php echo cp_ppp_get_site_url(); ?>/',
|
73 |
+
data: $dexQuery("#cp_ppp_pform<?php echo $CP_CPP_global_form_count; ?>").serialize(), // serializes the form's elements.
|
74 |
+
success: function(data)
|
75 |
+
{
|
76 |
+
if (data != 'OK')
|
77 |
+
alert(data);
|
78 |
+
else
|
79 |
+
document.getElementById("cp_ppp_paymentspro<?php echo $CP_CPP_global_form_count; ?>").value = "";
|
80 |
+
}
|
81 |
+
});
|
82 |
+
if (document.getElementById("cp_ppp_paymentspro<?php echo $CP_CPP_global_form_count; ?>").value == "")
|
83 |
+
{
|
84 |
+
<?php } ?>
|
85 |
+
var cpefb_error = 0;
|
86 |
+
$dexQuery("#cp_ppp_pform<?php echo $CP_CPP_global_form_count; ?>").find(".cpefb_error").each(function(index){
|
87 |
+
if ($dexQuery(this).css("display")!="none")
|
88 |
+
cpefb_error++;
|
89 |
+
});
|
90 |
+
if (cpefb_error==0)
|
91 |
+
{
|
92 |
+
$dexQuery("#cp_ppp_pform<?php echo $CP_CPP_global_form_count; ?>").find("select").children().each(function(){
|
93 |
+
$dexQuery(this).val($dexQuery(this).attr("vt"));
|
94 |
+
});
|
95 |
+
$dexQuery("#cp_ppp_pform<?php echo $CP_CPP_global_form_count; ?>").find("input:checkbox,input:radio").each(function(){
|
96 |
+
$dexQuery(this).val($dexQuery(this).attr("vt"));
|
97 |
+
});
|
98 |
+
$dexQuery("#cp_ppp_pform<?php echo $CP_CPP_global_form_count; ?>").find( '.ignore' ).parents( '.fields' ).remove();
|
99 |
+
}
|
100 |
+
document.getElementById("form_structure<?php echo $CP_CPP_global_form_count; ?>").value = '';
|
101 |
+
return true;
|
102 |
+
<?php if (cp_ppp_get_option('enable_paypal',CP_PPP_DEFAULT_ENABLE_PAYPAL) == "3") { ?>
|
103 |
+
}
|
104 |
+
else
|
105 |
+
{
|
106 |
+
return false;
|
107 |
+
}
|
108 |
+
<?php } ?>
|
109 |
+
}
|
110 |
+
}
|
111 |
+
</script>
|
112 |
+
<form class="cpp_form" name="cp_ppp_pform<?php echo $CP_CPP_global_form_count; ?>" id="cp_ppp_pform<?php echo $CP_CPP_global_form_count; ?>" action="<?php get_site_url(); ?>" method="post" enctype="multipart/form-data" onsubmit="return doValidate<?php echo $CP_CPP_global_form_count; ?>(this);"><input type="hidden" name="cp_pform_psequence" value="<?php echo $CP_CPP_global_form_count; ?>" /><input type="hidden" name="cp_ppp_pform_process" value="1" /><input type="hidden" name="cp_ppp_id" value="<?php echo $id; ?>" /><input type="hidden" name="cp_ref_page" value="<?php esc_attr(cp_ppp_get_FULL_site_url); ?>" /><input type="hidden" name="form_structure<?php echo $CP_CPP_global_form_count; ?>" id="form_structure<?php echo $CP_CPP_global_form_count; ?>" size="180" value="<?php echo $raw_form_str; ?>" /><input type="hidden" id="cp_ppp_paymentspro<?php echo $CP_CPP_global_form_count; ?>" name="cp_ppp_paymentspro<?php echo $CP_CPP_global_form_count; ?>" value="1" />
|
113 |
+
<div id="fbuilder">
|
114 |
+
<div id="fbuilder<?php echo $CP_CPP_global_form_count; ?>">
|
115 |
+
<div id="formheader<?php echo $CP_CPP_global_form_count; ?>"></div>
|
116 |
+
<div id="fieldlist<?php echo $CP_CPP_global_form_count; ?>"></div>
|
117 |
+
</div>
|
118 |
+
</div>
|
119 |
+
<div id="cpcaptchalayer<?php echo $CP_CPP_global_form_count; ?>">
|
120 |
+
<?php if (count($codes)) { ?>
|
121 |
+
<?php _e('Coupon code (optional)'); ?>:<br />
|
122 |
+
<input type="text" name="couponcode" value=""><br />
|
123 |
+
<?php } ?>
|
124 |
+
<?php if (cp_ppp_get_option('enable_paypal',CP_PPP_DEFAULT_ENABLE_PAYPAL,$id) == '2') { ?>
|
125 |
+
<div class="fields" id="field-c0">
|
126 |
+
<label>Payment options:</label>
|
127 |
+
<div class="dfield">
|
128 |
+
<input type="radio" name="bccf_payment_option_paypal" vt="1" value="1" checked> <?php echo cp_ppp_get_option('enable_paypal_option_yes',CP_PPP_PAYPAL_OPTION_YES,$id); ?><br />
|
129 |
+
<input type="radio" name="bccf_payment_option_paypal" vt="0" value="0"> <?php echo cp_ppp_get_option('enable_paypal_option_no',CP_PPP_PAYPAL_OPTION_NO,$id); ?>
|
130 |
+
</div>
|
131 |
+
<div class="clearer"></div>
|
132 |
+
</div>
|
133 |
+
<?php } ?>
|
134 |
+
<?php if (cp_ppp_get_option('enable_paypal',CP_PPP_DEFAULT_ENABLE_PAYPAL) == "3") @include_once dirname( __FILE__ ) . '/cp_ppp_paypal_pro_int.inc.php'; ?>
|
135 |
+
<?php if (cp_ppp_get_option('cv_enable_captcha', CP_PPP_DEFAULT_cv_enable_captcha,$id) != 'false') { ?>
|
136 |
+
<br /><?php echo __('Please enter the security code','cpppp'); ?>:<br />
|
137 |
+
<img src="<?php echo cp_ppp_get_site_url().'/?cp_ppp=captcha&ps='.$CP_CPP_global_form_count.'&inAdmin=1&width='.cp_ppp_get_option('cv_width', CP_PPP_DEFAULT_cv_width,$id).'&height='.cp_ppp_get_option('cv_height', CP_PPP_DEFAULT_cv_height,$id).'&letter_count='.cp_ppp_get_option('cv_chars', CP_PPP_DEFAULT_cv_chars,$id).'&min_size='.cp_ppp_get_option('cv_min_font_size', CP_PPP_DEFAULT_cv_min_font_size,$id).'&max_size='.cp_ppp_get_option('cv_max_font_size', CP_PPP_DEFAULT_cv_max_font_size,$id).'&noise='.cp_ppp_get_option('cv_noise', CP_PPP_DEFAULT_cv_noise,$id).'&noiselength='.cp_ppp_get_option('cv_noise_length', CP_PPP_DEFAULT_cv_noise_length,$id).'&bcolor='.cp_ppp_get_option('cv_background', CP_PPP_DEFAULT_cv_background,$id).'&border='.cp_ppp_get_option('cv_border', CP_PPP_DEFAULT_cv_border,$id).'&font='.cp_ppp_get_option('cv_font', CP_PPP_DEFAULT_cv_font,$id); ?>" id="captchaimg<?php echo $CP_CPP_global_form_count; ?>" alt="security code" border="0" />
|
138 |
+
<br />
|
139 |
+
<?php echo __('Security Code','cpppp'); ?>:<br />
|
140 |
+
<div class="dfield">
|
141 |
+
<input type="text" size="20" name="hdcaptcha_cp_ppp_post" id="hdcaptcha_cp_ppp_post<?php echo $CP_CPP_global_form_count; ?>" value="" />
|
142 |
+
<div class="error cpefb_error message" id="hdcaptcha_error<?php echo $CP_CPP_global_form_count; ?>" generated="true" style="display:none;position: absolute; left: 0px; top: 25px;"><?php _e('Please enter the captcha verification code.'); ?></div>
|
143 |
+
</div>
|
144 |
+
<br />
|
145 |
+
<?php } ?>
|
146 |
+
</div>
|
147 |
+
<div id="cp_subbtn<?php echo $CP_CPP_global_form_count; ?>" class="cp_subbtn"><?php _e($button_label); ?></div>
|
148 |
+
</form>
|
cp_ppp_scripts.js
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
function cp_ppp_insertForm() {
|
2 |
+
send_to_editor('[CP_PPP]');
|
3 |
+
}
|
css/cupertino/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png
ADDED
Binary file
|
css/cupertino/images/ui-bg_flat_15_cd0a0a_40x100.png
ADDED
Binary file
|
css/cupertino/images/ui-bg_glass_100_e4f1fb_1x400.png
ADDED
Binary file
|
css/cupertino/images/ui-bg_glass_50_3baae3_1x400.png
ADDED
Binary file
|
css/cupertino/images/ui-bg_glass_80_d7ebf9_1x400.png
ADDED
Binary file
|
css/cupertino/images/ui-bg_glass_80_eebd4d_1x400.png
ADDED
Binary file
|
css/cupertino/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png
ADDED
Binary file
|
css/cupertino/images/ui-bg_highlight-hard_70_000000_1x100.png
ADDED
Binary file
|
css/cupertino/images/ui-bg_highlight-soft_100_deedf7_1x100.png
ADDED
Binary file
|
css/cupertino/images/ui-bg_highlight-soft_25_ffef8f_1x100.png
ADDED
Binary file
|
css/cupertino/images/ui-icons_2694e8_256x240.png
ADDED
Binary file
|
css/cupertino/images/ui-icons_2e83ff_256x240.png
ADDED
Binary file
|
css/cupertino/images/ui-icons_3d80b3_256x240.png
ADDED
Binary file
|
css/cupertino/images/ui-icons_72a7cf_256x240.png
ADDED
Binary file
|
css/cupertino/images/ui-icons_ffffff_256x240.png
ADDED
Binary file
|
css/cupertino/jquery-ui-1.8.20.custom.css
ADDED
@@ -0,0 +1,565 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* jQuery UI CSS Framework 1.8.20
|
3 |
+
*
|
4 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
5 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
6 |
+
* http://jquery.org/license
|
7 |
+
*
|
8 |
+
* http://docs.jquery.com/UI/Theming/API
|
9 |
+
*/
|
10 |
+
|
11 |
+
/* Layout helpers
|
12 |
+
----------------------------------*/
|
13 |
+
.ui-helper-hidden { display: none; }
|
14 |
+
.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
|
15 |
+
.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
|
16 |
+
.ui-helper-clearfix:before, .ui-helper-clearfix:after { content: ""; display: table; }
|
17 |
+
.ui-helper-clearfix:after { clear: both; }
|
18 |
+
.ui-helper-clearfix { zoom: 1; }
|
19 |
+
.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
|
20 |
+
|
21 |
+
|
22 |
+
/* Interaction Cues
|
23 |
+
----------------------------------*/
|
24 |
+
.ui-state-disabled { cursor: default !important; }
|
25 |
+
|
26 |
+
|
27 |
+
/* Icons
|
28 |
+
----------------------------------*/
|
29 |
+
|
30 |
+
/* states and images */
|
31 |
+
.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
|
32 |
+
|
33 |
+
|
34 |
+
/* Misc visuals
|
35 |
+
----------------------------------*/
|
36 |
+
|
37 |
+
/* Overlays */
|
38 |
+
.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
|
39 |
+
|
40 |
+
|
41 |
+
/*!
|
42 |
+
* jQuery UI CSS Framework 1.8.20
|
43 |
+
*
|
44 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
45 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
46 |
+
* http://jquery.org/license
|
47 |
+
*
|
48 |
+
* http://docs.jquery.com/UI/Theming/API
|
49 |
+
*
|
50 |
+
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Lucida%20Grande,%20Lucida%20Sans,%20Arial,%20sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=6px&bgColorHeader=deedf7&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=100&borderColorHeader=aed0ea&fcHeader=222222&iconColorHeader=72a7cf&bgColorContent=f2f5f7&bgTextureContent=04_highlight_hard.png&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=362b36&iconColorContent=72a7cf&bgColorDefault=d7ebf9&bgTextureDefault=02_glass.png&bgImgOpacityDefault=80&borderColorDefault=aed0ea&fcDefault=2779aa&iconColorDefault=3d80b3&bgColorHover=e4f1fb&bgTextureHover=02_glass.png&bgImgOpacityHover=100&borderColorHover=74b2e2&fcHover=0070a3&iconColorHover=2694e8&bgColorActive=3baae3&bgTextureActive=02_glass.png&bgImgOpacityActive=50&borderColorActive=2694e8&fcActive=ffffff&iconColorActive=ffffff&bgColorHighlight=ffef8f&bgTextureHighlight=03_highlight_soft.png&bgImgOpacityHighlight=25&borderColorHighlight=f9dd34&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=cd0a0a&bgTextureError=01_flat.png&bgImgOpacityError=15&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffffff&bgColorOverlay=eeeeee&bgTextureOverlay=08_diagonals_thick.png&bgImgOpacityOverlay=90&opacityOverlay=80&bgColorShadow=000000&bgTextureShadow=04_highlight_hard.png&bgImgOpacityShadow=70&opacityShadow=30&thicknessShadow=7px&offsetTopShadow=-7px&offsetLeftShadow=-7px&cornerRadiusShadow=8px
|
51 |
+
*/
|
52 |
+
|
53 |
+
|
54 |
+
/* Component containers
|
55 |
+
----------------------------------*/
|
56 |
+
.ui-widget { font-family: Lucida Grande, Lucida Sans, Arial, sans-serif; font-size: 1.1em; }
|
57 |
+
.ui-widget .ui-widget { font-size: 1em; }
|
58 |
+
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Lucida Grande, Lucida Sans, Arial, sans-serif; font-size: 1em; }
|
59 |
+
.ui-widget-content { border: 1px solid #dddddd; background: #f2f5f7 url(images/ui-bg_highlight-hard_100_f2f5f7_1x100.png) 50% top repeat-x; color: #362b36; }
|
60 |
+
.ui-widget-content a { color: #362b36; }
|
61 |
+
.ui-widget-header { border: 1px solid #aed0ea; background: #deedf7 url(images/ui-bg_highlight-soft_100_deedf7_1x100.png) 50% 50% repeat-x; color: #222222; font-weight: bold; }
|
62 |
+
.ui-widget-header a { color: #222222; }
|
63 |
+
|
64 |
+
/* Interaction states
|
65 |
+
----------------------------------*/
|
66 |
+
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #aed0ea; background: #d7ebf9 url(images/ui-bg_glass_80_d7ebf9_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #2779aa; }
|
67 |
+
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #2779aa; text-decoration: none; }
|
68 |
+
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #74b2e2; background: #e4f1fb url(images/ui-bg_glass_100_e4f1fb_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #0070a3; }
|
69 |
+
.ui-state-hover a, .ui-state-hover a:hover { color: #0070a3; text-decoration: none; }
|
70 |
+
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #2694e8; background: #3baae3 url(images/ui-bg_glass_50_3baae3_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #ffffff; }
|
71 |
+
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #ffffff; text-decoration: none; }
|
72 |
+
.ui-widget :active { outline: none; }
|
73 |
+
|
74 |
+
/* Interaction Cues
|
75 |
+
----------------------------------*/
|
76 |
+
.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #f9dd34; background: #ffef8f url(images/ui-bg_highlight-soft_25_ffef8f_1x100.png) 50% top repeat-x; color: #363636; }
|
77 |
+
.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; }
|
78 |
+
.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a; background: #cd0a0a url(images/ui-bg_flat_15_cd0a0a_40x100.png) 50% 50% repeat-x; color: #ffffff; }
|
79 |
+
.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #ffffff; }
|
80 |
+
.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #ffffff; }
|
81 |
+
.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
|
82 |
+
.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
|
83 |
+
.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
|
84 |
+
|
85 |
+
/* Icons
|
86 |
+
----------------------------------*/
|
87 |
+
|
88 |
+
/* states and images */
|
89 |
+
.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_72a7cf_256x240.png); }
|
90 |
+
.ui-widget-content .ui-icon {background-image: url(images/ui-icons_72a7cf_256x240.png); }
|
91 |
+
.ui-widget-header .ui-icon {background-image: url(images/ui-icons_72a7cf_256x240.png); }
|
92 |
+
.ui-state-default .ui-icon { background-image: url(images/ui-icons_3d80b3_256x240.png); }
|
93 |
+
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_2694e8_256x240.png); }
|
94 |
+
.ui-state-active .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); }
|
95 |
+
.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_2e83ff_256x240.png); }
|
96 |
+
.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); }
|
97 |
+
|
98 |
+
/* positioning */
|
99 |
+
.ui-icon-carat-1-n { background-position: 0 0; }
|
100 |
+
.ui-icon-carat-1-ne { background-position: -16px 0; }
|
101 |
+
.ui-icon-carat-1-e { background-position: -32px 0; }
|
102 |
+
.ui-icon-carat-1-se { background-position: -48px 0; }
|
103 |
+
.ui-icon-carat-1-s { background-position: -64px 0; }
|
104 |
+
.ui-icon-carat-1-sw { background-position: -80px 0; }
|
105 |
+
.ui-icon-carat-1-w { background-position: -96px 0; }
|
106 |
+
.ui-icon-carat-1-nw { background-position: -112px 0; }
|
107 |
+
.ui-icon-carat-2-n-s { background-position: -128px 0; }
|
108 |
+
.ui-icon-carat-2-e-w { background-position: -144px 0; }
|
109 |
+
.ui-icon-triangle-1-n { background-position: 0 -16px; }
|
110 |
+
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
|
111 |
+
.ui-icon-triangle-1-e { background-position: -32px -16px; }
|
112 |
+
.ui-icon-triangle-1-se { background-position: -48px -16px; }
|
113 |
+
.ui-icon-triangle-1-s { background-position: -64px -16px; }
|
114 |
+
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
|
115 |
+
.ui-icon-triangle-1-w { background-position: -96px -16px; }
|
116 |
+
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
|
117 |
+
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
|
118 |
+
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
|
119 |
+
.ui-icon-arrow-1-n { background-position: 0 -32px; }
|
120 |
+
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
|
121 |
+
.ui-icon-arrow-1-e { background-position: -32px -32px; }
|
122 |
+
.ui-icon-arrow-1-se { background-position: -48px -32px; }
|
123 |
+
.ui-icon-arrow-1-s { background-position: -64px -32px; }
|
124 |
+
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
|
125 |
+
.ui-icon-arrow-1-w { background-position: -96px -32px; }
|
126 |
+
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
|
127 |
+
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
|
128 |
+
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
|
129 |
+
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
|
130 |
+
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
|
131 |
+
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
|
132 |
+
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
|
133 |
+
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
|
134 |
+
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
|
135 |
+
.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
|
136 |
+
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
|
137 |
+
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
|
138 |
+
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
|
139 |
+
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
|
140 |
+
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
|
141 |
+
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
|
142 |
+
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
|
143 |
+
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
|
144 |
+
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
|
145 |
+
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
|
146 |
+
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
|
147 |
+
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
|
148 |
+
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
|
149 |
+
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
|
150 |
+
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
|
151 |
+
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
|
152 |
+
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
|
153 |
+
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
|
154 |
+
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
|
155 |
+
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
|
156 |
+
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
|
157 |
+
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
|
158 |
+
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
|
159 |
+
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
|
160 |
+
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
|
161 |
+
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
|
162 |
+
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
|
163 |
+
.ui-icon-arrow-4 { background-position: 0 -80px; }
|
164 |
+
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
|
165 |
+
.ui-icon-extlink { background-position: -32px -80px; }
|
166 |
+
.ui-icon-newwin { background-position: -48px -80px; }
|
167 |
+
.ui-icon-refresh { background-position: -64px -80px; }
|
168 |
+
.ui-icon-shuffle { background-position: -80px -80px; }
|
169 |
+
.ui-icon-transfer-e-w { background-position: -96px -80px; }
|
170 |
+
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
|
171 |
+
.ui-icon-folder-collapsed { background-position: 0 -96px; }
|
172 |
+
.ui-icon-folder-open { background-position: -16px -96px; }
|
173 |
+
.ui-icon-document { background-position: -32px -96px; }
|
174 |
+
.ui-icon-document-b { background-position: -48px -96px; }
|
175 |
+
.ui-icon-note { background-position: -64px -96px; }
|
176 |
+
.ui-icon-mail-closed { background-position: -80px -96px; }
|
177 |
+
.ui-icon-mail-open { background-position: -96px -96px; }
|
178 |
+
.ui-icon-suitcase { background-position: -112px -96px; }
|
179 |
+
.ui-icon-comment { background-position: -128px -96px; }
|
180 |
+
.ui-icon-person { background-position: -144px -96px; }
|
181 |
+
.ui-icon-print { background-position: -160px -96px; }
|
182 |
+
.ui-icon-trash { background-position: -176px -96px; }
|
183 |
+
.ui-icon-locked { background-position: -192px -96px; }
|
184 |
+
.ui-icon-unlocked { background-position: -208px -96px; }
|
185 |
+
.ui-icon-bookmark { background-position: -224px -96px; }
|
186 |
+
.ui-icon-tag { background-position: -240px -96px; }
|
187 |
+
.ui-icon-home { background-position: 0 -112px; }
|
188 |
+
.ui-icon-flag { background-position: -16px -112px; }
|
189 |
+
.ui-icon-calendar { background-position: -32px -112px; }
|
190 |
+
.ui-icon-cart { background-position: -48px -112px; }
|
191 |
+
.ui-icon-pencil { background-position: -64px -112px; }
|
192 |
+
.ui-icon-clock { background-position: -80px -112px; }
|
193 |
+
.ui-icon-disk { background-position: -96px -112px; }
|
194 |
+
.ui-icon-calculator { background-position: -112px -112px; }
|
195 |
+
.ui-icon-zoomin { background-position: -128px -112px; }
|
196 |
+
.ui-icon-zoomout { background-position: -144px -112px; }
|
197 |
+
.ui-icon-search { background-position: -160px -112px; }
|
198 |
+
.ui-icon-wrench { background-position: -176px -112px; }
|
199 |
+
.ui-icon-gear { background-position: -192px -112px; }
|
200 |
+
.ui-icon-heart { background-position: -208px -112px; }
|
201 |
+
.ui-icon-star { background-position: -224px -112px; }
|
202 |
+
.ui-icon-link { background-position: -240px -112px; }
|
203 |
+
.ui-icon-cancel { background-position: 0 -128px; }
|
204 |
+
.ui-icon-plus { background-position: -16px -128px; }
|
205 |
+
.ui-icon-plusthick { background-position: -32px -128px; }
|
206 |
+
.ui-icon-minus { background-position: -48px -128px; }
|
207 |
+
.ui-icon-minusthick { background-position: -64px -128px; }
|
208 |
+
.ui-icon-close { background-position: -80px -128px; }
|
209 |
+
.ui-icon-closethick { background-position: -96px -128px; }
|
210 |
+
.ui-icon-key { background-position: -112px -128px; }
|
211 |
+
.ui-icon-lightbulb { background-position: -128px -128px; }
|
212 |
+
.ui-icon-scissors { background-position: -144px -128px; }
|
213 |
+
.ui-icon-clipboard { background-position: -160px -128px; }
|
214 |
+
.ui-icon-copy { background-position: -176px -128px; }
|
215 |
+
.ui-icon-contact { background-position: -192px -128px; }
|
216 |
+
.ui-icon-image { background-position: -208px -128px; }
|
217 |
+
.ui-icon-video { background-position: -224px -128px; }
|
218 |
+
.ui-icon-script { background-position: -240px -128px; }
|
219 |
+
.ui-icon-alert { background-position: 0 -144px; }
|
220 |
+
.ui-icon-info { background-position: -16px -144px; }
|
221 |
+
.ui-icon-notice { background-position: -32px -144px; }
|
222 |
+
.ui-icon-help { background-position: -48px -144px; }
|
223 |
+
.ui-icon-check { background-position: -64px -144px; }
|
224 |
+
.ui-icon-bullet { background-position: -80px -144px; }
|
225 |
+
.ui-icon-radio-off { background-position: -96px -144px; }
|
226 |
+
.ui-icon-radio-on { background-position: -112px -144px; }
|
227 |
+
.ui-icon-pin-w { background-position: -128px -144px; }
|
228 |
+
.ui-icon-pin-s { background-position: -144px -144px; }
|
229 |
+
.ui-icon-play { background-position: 0 -160px; }
|
230 |
+
.ui-icon-pause { background-position: -16px -160px; }
|
231 |
+
.ui-icon-seek-next { background-position: -32px -160px; }
|
232 |
+
.ui-icon-seek-prev { background-position: -48px -160px; }
|
233 |
+
.ui-icon-seek-end { background-position: -64px -160px; }
|
234 |
+
.ui-icon-seek-start { background-position: -80px -160px; }
|
235 |
+
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
|
236 |
+
.ui-icon-seek-first { background-position: -80px -160px; }
|
237 |
+
.ui-icon-stop { background-position: -96px -160px; }
|
238 |
+
.ui-icon-eject { background-position: -112px -160px; }
|
239 |
+
.ui-icon-volume-off { background-position: -128px -160px; }
|
240 |
+
.ui-icon-volume-on { background-position: -144px -160px; }
|
241 |
+
.ui-icon-power { background-position: 0 -176px; }
|
242 |
+
.ui-icon-signal-diag { background-position: -16px -176px; }
|
243 |
+
.ui-icon-signal { background-position: -32px -176px; }
|
244 |
+
.ui-icon-battery-0 { background-position: -48px -176px; }
|
245 |
+
.ui-icon-battery-1 { background-position: -64px -176px; }
|
246 |
+
.ui-icon-battery-2 { background-position: -80px -176px; }
|
247 |
+
.ui-icon-battery-3 { background-position: -96px -176px; }
|
248 |
+
.ui-icon-circle-plus { background-position: 0 -192px; }
|
249 |
+
.ui-icon-circle-minus { background-position: -16px -192px; }
|
250 |
+
.ui-icon-circle-close { background-position: -32px -192px; }
|
251 |
+
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
|
252 |
+
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
|
253 |
+
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
|
254 |
+
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
|
255 |
+
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
|
256 |
+
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
|
257 |
+
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
|
258 |
+
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
|
259 |
+
.ui-icon-circle-zoomin { background-position: -176px -192px; }
|
260 |
+
.ui-icon-circle-zoomout { background-position: -192px -192px; }
|
261 |
+
.ui-icon-circle-check { background-position: -208px -192px; }
|
262 |
+
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
|
263 |
+
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
|
264 |
+
.ui-icon-circlesmall-close { background-position: -32px -208px; }
|
265 |
+
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
|
266 |
+
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
|
267 |
+
.ui-icon-squaresmall-close { background-position: -80px -208px; }
|
268 |
+
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
|
269 |
+
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
|
270 |
+
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
|
271 |
+
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
|
272 |
+
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
|
273 |
+
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
|
274 |
+
|
275 |
+
|
276 |
+
/* Misc visuals
|
277 |
+
----------------------------------*/
|
278 |
+
|
279 |
+
/* Corner radius */
|
280 |
+
.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 6px; -webkit-border-top-left-radius: 6px; -khtml-border-top-left-radius: 6px; border-top-left-radius: 6px; }
|
281 |
+
.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 6px; -webkit-border-top-right-radius: 6px; -khtml-border-top-right-radius: 6px; border-top-right-radius: 6px; }
|
282 |
+
.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 6px; -webkit-border-bottom-left-radius: 6px; -khtml-border-bottom-left-radius: 6px; border-bottom-left-radius: 6px; }
|
283 |
+
.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 6px; -webkit-border-bottom-right-radius: 6px; -khtml-border-bottom-right-radius: 6px; border-bottom-right-radius: 6px; }
|
284 |
+
|
285 |
+
/* Overlays */
|
286 |
+
.ui-widget-overlay { background: #eeeeee url(images/ui-bg_diagonals-thick_90_eeeeee_40x40.png) 50% 50% repeat; opacity: .80;filter:Alpha(Opacity=80); }
|
287 |
+
.ui-widget-shadow { margin: -7px 0 0 -7px; padding: 7px; background: #000000 url(images/ui-bg_highlight-hard_70_000000_1x100.png) 50% top repeat-x; opacity: .30;filter:Alpha(Opacity=30); -moz-border-radius: 8px; -khtml-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px; }/*!
|
288 |
+
* jQuery UI Resizable 1.8.20
|
289 |
+
*
|
290 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
291 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
292 |
+
* http://jquery.org/license
|
293 |
+
*
|
294 |
+
* http://docs.jquery.com/UI/Resizable#theming
|
295 |
+
*/
|
296 |
+
.ui-resizable { position: relative;}
|
297 |
+
.ui-resizable-handle { position: absolute;font-size: 0.1px; display: block; }
|
298 |
+
.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
|
299 |
+
.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
|
300 |
+
.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
|
301 |
+
.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
|
302 |
+
.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
|
303 |
+
.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
|
304 |
+
.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
|
305 |
+
.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
|
306 |
+
.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/*!
|
307 |
+
* jQuery UI Selectable 1.8.20
|
308 |
+
*
|
309 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
310 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
311 |
+
* http://jquery.org/license
|
312 |
+
*
|
313 |
+
* http://docs.jquery.com/UI/Selectable#theming
|
314 |
+
*/
|
315 |
+
.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
|
316 |
+
/*!
|
317 |
+
* jQuery UI Accordion 1.8.20
|
318 |
+
*
|
319 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
320 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
321 |
+
* http://jquery.org/license
|
322 |
+
*
|
323 |
+
* http://docs.jquery.com/UI/Accordion#theming
|
324 |
+
*/
|
325 |
+
/* IE/Win - Fix animation bug - #4615 */
|
326 |
+
.ui-accordion { width: 100%; }
|
327 |
+
.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
|
328 |
+
.ui-accordion .ui-accordion-li-fix { display: inline; }
|
329 |
+
.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
|
330 |
+
.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
|
331 |
+
.ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
|
332 |
+
.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
|
333 |
+
.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
|
334 |
+
.ui-accordion .ui-accordion-content-active { display: block; }
|
335 |
+
/*!
|
336 |
+
* jQuery UI Autocomplete 1.8.20
|
337 |
+
*
|
338 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
339 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
340 |
+
* http://jquery.org/license
|
341 |
+
*
|
342 |
+
* http://docs.jquery.com/UI/Autocomplete#theming
|
343 |
+
*/
|
344 |
+
.ui-autocomplete { position: absolute; cursor: default; }
|
345 |
+
|
346 |
+
/* workarounds */
|
347 |
+
* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
|
348 |
+
|
349 |
+
/*
|
350 |
+
* jQuery UI Menu 1.8.20
|
351 |
+
*
|
352 |
+
* Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
|
353 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
354 |
+
* http://jquery.org/license
|
355 |
+
*
|
356 |
+
* http://docs.jquery.com/UI/Menu#theming
|
357 |
+
*/
|
358 |
+
.ui-menu {
|
359 |
+
list-style:none;
|
360 |
+
padding: 2px;
|
361 |
+
margin: 0;
|
362 |
+
display:block;
|
363 |
+
float: left;
|
364 |
+
}
|
365 |
+
.ui-menu .ui-menu {
|
366 |
+
margin-top: -3px;
|
367 |
+
}
|
368 |
+
.ui-menu .ui-menu-item {
|
369 |
+
margin:0;
|
370 |
+
padding: 0;
|
371 |
+
zoom: 1;
|
372 |
+
float: left;
|
373 |
+
clear: left;
|
374 |
+
width: 100%;
|
375 |
+
}
|
376 |
+
.ui-menu .ui-menu-item a {
|
377 |
+
text-decoration:none;
|
378 |
+
display:block;
|
379 |
+
padding:.2em .4em;
|
380 |
+
line-height:1.5;
|
381 |
+
zoom:1;
|
382 |
+
}
|
383 |
+
.ui-menu .ui-menu-item a.ui-state-hover,
|
384 |
+
.ui-menu .ui-menu-item a.ui-state-active {
|
385 |
+
font-weight: normal;
|
386 |
+
margin: -1px;
|
387 |
+
}
|
388 |
+
/*!
|
389 |
+
* jQuery UI Button 1.8.20
|
390 |
+
*
|
391 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
392 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
393 |
+
* http://jquery.org/license
|
394 |
+
*
|
395 |
+
* http://docs.jquery.com/UI/Button#theming
|
396 |
+
*/
|
397 |
+
.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
|
398 |
+
.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
|
399 |
+
button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
|
400 |
+
.ui-button-icons-only { width: 3.4em; }
|
401 |
+
button.ui-button-icons-only { width: 3.7em; }
|
402 |
+
|
403 |
+
/*button text element */
|
404 |
+
.ui-button .ui-button-text { display: block; line-height: 1.4; }
|
405 |
+
.ui-button-text-only .ui-button-text { padding: .4em 1em; }
|
406 |
+
.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
|
407 |
+
.ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
|
408 |
+
.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
|
409 |
+
.ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
|
410 |
+
/* no icon support for input elements, provide padding by default */
|
411 |
+
input.ui-button { padding: .4em 1em; }
|
412 |
+
|
413 |
+
/*button icon element(s) */
|
414 |
+
.ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
|
415 |
+
.ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
|
416 |
+
.ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
|
417 |
+
.ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
|
418 |
+
.ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
|
419 |
+
|
420 |
+
/*button sets*/
|
421 |
+
.ui-buttonset { margin-right: 7px; }
|
422 |
+
.ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
|
423 |
+
|
424 |
+
/* workarounds */
|
425 |
+
button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
|
426 |
+
/*!
|
427 |
+
* jQuery UI Dialog 1.8.20
|
428 |
+
*
|
429 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
430 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
431 |
+
* http://jquery.org/license
|
432 |
+
*
|
433 |
+
* http://docs.jquery.com/UI/Dialog#theming
|
434 |
+
*/
|
435 |
+
.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
|
436 |
+
.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
|
437 |
+
.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
|
438 |
+
.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
|
439 |
+
.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
|
440 |
+
.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
|
441 |
+
.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
|
442 |
+
.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
|
443 |
+
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
|
444 |
+
.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
|
445 |
+
.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
|
446 |
+
.ui-draggable .ui-dialog-titlebar { cursor: move; }
|
447 |
+
/*!
|
448 |
+
* jQuery UI Slider 1.8.20
|
449 |
+
*
|
450 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
451 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
452 |
+
* http://jquery.org/license
|
453 |
+
*
|
454 |
+
* http://docs.jquery.com/UI/Slider#theming
|
455 |
+
*/
|
456 |
+
.ui-slider { position: relative; text-align: left; }
|
457 |
+
.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
|
458 |
+
.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
|
459 |
+
|
460 |
+
.ui-slider-horizontal { height: .8em; }
|
461 |
+
.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
|
462 |
+
.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
|
463 |
+
.ui-slider-horizontal .ui-slider-range-min { left: 0; }
|
464 |
+
.ui-slider-horizontal .ui-slider-range-max { right: 0; }
|
465 |
+
|
466 |
+
.ui-slider-vertical { width: .8em; height: 100px; }
|
467 |
+
.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
|
468 |
+
.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
|
469 |
+
.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
|
470 |
+
.ui-slider-vertical .ui-slider-range-max { top: 0; }/*!
|
471 |
+
* jQuery UI Tabs 1.8.20
|
472 |
+
*
|
473 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
474 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
475 |
+
* http://jquery.org/license
|
476 |
+
*
|
477 |
+
* http://docs.jquery.com/UI/Tabs#theming
|
478 |
+
*/
|
479 |
+
#tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
|
480 |
+
#tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; width:auto}
|
481 |
+
#tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
|
482 |
+
#tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none;width:auto }
|
483 |
+
#tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; width:auto}
|
484 |
+
#tabs .ui-tabs-nav li.ui-tabs-selected a, #tabs .ui-tabs-nav li.ui-state-disabled a, #tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; width:auto}
|
485 |
+
#tabs .ui-tabs-nav li a, #tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
|
486 |
+
#tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none;width:auto;float:none }
|
487 |
+
#tabs .ui-tabs-hide { display: none !important; }
|
488 |
+
/*!
|
489 |
+
* jQuery UI Datepicker 1.8.20
|
490 |
+
*
|
491 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
492 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
493 |
+
* http://jquery.org/license
|
494 |
+
*
|
495 |
+
* http://docs.jquery.com/UI/Datepicker#theming
|
496 |
+
*/
|
497 |
+
.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
|
498 |
+
.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
|
499 |
+
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
|
500 |
+
.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
|
501 |
+
.ui-datepicker .ui-datepicker-prev { left:2px; }
|
502 |
+
.ui-datepicker .ui-datepicker-next { right:2px; }
|
503 |
+
.ui-datepicker .ui-datepicker-prev-hover { left:1px; }
|
504 |
+
.ui-datepicker .ui-datepicker-next-hover { right:1px; }
|
505 |
+
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
|
506 |
+
.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
|
507 |
+
.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
|
508 |
+
.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
|
509 |
+
.ui-datepicker select.ui-datepicker-month,
|
510 |
+
.ui-datepicker select.ui-datepicker-year { width: 49%;}
|
511 |
+
.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
|
512 |
+
.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
|
513 |
+
.ui-datepicker td { border: 0; padding: 1px; }
|
514 |
+
.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
|
515 |
+
.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
|
516 |
+
.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
|
517 |
+
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
|
518 |
+
|
519 |
+
/* with multiple calendars */
|
520 |
+
.ui-datepicker.ui-datepicker-multi { width:auto; }
|
521 |
+
.ui-datepicker-multi .ui-datepicker-group { float:left; }
|
522 |
+
.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
|
523 |
+
.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
|
524 |
+
.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
|
525 |
+
.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
|
526 |
+
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
|
527 |
+
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
|
528 |
+
.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
|
529 |
+
.ui-datepicker-row-break { clear:both; width:100%; font-size:0em; }
|
530 |
+
|
531 |
+
/* RTL support */
|
532 |
+
.ui-datepicker-rtl { direction: rtl; }
|
533 |
+
.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
|
534 |
+
.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
|
535 |
+
.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
|
536 |
+
.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
|
537 |
+
.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
|
538 |
+
.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
|
539 |
+
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
|
540 |
+
.ui-datepicker-rtl .ui-datepicker-group { float:right; }
|
541 |
+
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
|
542 |
+
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
|
543 |
+
|
544 |
+
/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
|
545 |
+
.ui-datepicker-cover {
|
546 |
+
display: none; /*sorry for IE5*/
|
547 |
+
display/**/: block; /*sorry for IE5*/
|
548 |
+
position: absolute; /*must have*/
|
549 |
+
z-index: -1; /*must have*/
|
550 |
+
filter: mask(); /*must have*/
|
551 |
+
top: -4px; /*must have*/
|
552 |
+
left: -4px; /*must have*/
|
553 |
+
width: 200px; /*must have*/
|
554 |
+
height: 200px; /*must have*/
|
555 |
+
}/*!
|
556 |
+
* jQuery UI Progressbar 1.8.20
|
557 |
+
*
|
558 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
559 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
560 |
+
* http://jquery.org/license
|
561 |
+
*
|
562 |
+
* http://docs.jquery.com/UI/Progressbar#theming
|
563 |
+
*/
|
564 |
+
.ui-progressbar { height:2em; text-align: left; overflow: hidden; }
|
565 |
+
.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
|
css/style.css
ADDED
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.form-builder{font-size:11px;width:100%;min-width:780px;}
|
2 |
+
.clearer{clear:both;}
|
3 |
+
.column{float:left;}
|
4 |
+
.columnr{float:right;}
|
5 |
+
.ctrlsColumn{width:380px;}
|
6 |
+
.dashboardColumn{ width:calc(100% - 400px); }
|
7 |
+
.width50{width:48%}
|
8 |
+
.width20{width:24%}
|
9 |
+
.width40{width:40%}
|
10 |
+
.width30{width:30%}
|
11 |
+
.padding10{padding:10px;}
|
12 |
+
.button, .form-builder .button{float:left;margin:5px 15px;}
|
13 |
+
.button.n span{color:#AED0EA}
|
14 |
+
#tabs{height:650px;width:100%;overflow-y:auto;}
|
15 |
+
#fbuilder{height:640px;overflow:auto;position:relative;}
|
16 |
+
#fbuilder .fields{border:1px solid transparent;padding:3px 10px 14px 10px;margin:5px 0px;display:block;position:relative}
|
17 |
+
#fbuilder .fields .arrow{position:absolute;left:-15px;top:20px;display:none}
|
18 |
+
#fbuilder .fields .remove{position:absolute;bottom:0;right:0;display:none;background-color:#fff;cursor:pointer}
|
19 |
+
#fbuilder .fields .copy{position:absolute;bottom:0;right:20px;display:none;background-color:#fff;cursor:pointer}
|
20 |
+
#fbuilder legend{ border:1px solid rgba(222,222,222,.75); background:#FFF; margin-left:5px; padding: 0 5px; }
|
21 |
+
#fbuilder .fcontainer{ border:1px solid rgba(222,222,222,.75); min-height:67px; }
|
22 |
+
.groupBox,
|
23 |
+
.dependenciesBox,
|
24 |
+
.choicesSet{border:1px dashed #888;margin:10px 0px;padding:5px}
|
25 |
+
.choicesEdit input[type=text]{width:120px;}
|
26 |
+
.choicesEdit,.choicesEditDep{position:relative;}
|
27 |
+
.choicesSet .t{margin-left:18px;width:115px;float:left}
|
28 |
+
.addComplexRule{cursor:pointer;}
|
29 |
+
.cf_dependence_rule{width:230px;}
|
30 |
+
.choicesEdit .choice_down{position:absolute;top:5px;left:255px;cursor:pointer;}
|
31 |
+
.choicesEdit .choice_up{position:absolute;top:5px;left:266px;cursor:pointer;}
|
32 |
+
.addDep,
|
33 |
+
.choicesEdit .choice_add{position:absolute;top:5px;left:278px;cursor:pointer;}
|
34 |
+
.removeDep,
|
35 |
+
.choicesEdit .choice_remove{position:absolute;top:5px;left:293px;cursor:pointer;}
|
36 |
+
.choicesEditDep .choice_addDep{position:absolute;top:5px;left:278px;cursor:pointer;}
|
37 |
+
.choicesEditDep .choice_removeDep{position:absolute;top:5px;left:293px;cursor:pointer;}
|
38 |
+
.calc_dependent{width:150px;}
|
39 |
+
.choicesEditDep select{width:170px;}
|
40 |
+
.addDep,
|
41 |
+
.ui-widget-content .choice_addDep.ui-icon {background-image: url(cupertino/images/ui-icons_2e83ff_256x240.png); }
|
42 |
+
.removeDep,
|
43 |
+
.ui-widget-content .choice_removeDep.ui-icon {background-image: url(cupertino/images/ui-icons_2e83ff_256x240.png); }
|
44 |
+
.addDep, .removeDep{float:right;}
|
45 |
+
.cf_dependence_field{width:150px;}
|
46 |
+
.showHideDependencies,.dep{float:right}
|
47 |
+
.choicesSet.hide {display:block !important;visibility: visible !important;}
|
48 |
+
.choicesSet.hide .choicesEditDep{display:none}
|
49 |
+
.choicesSet.show .choicesEditDep{display:block}
|
50 |
+
a.helpfbuilder.dep{font-size:100%;padding-left:10px}
|
51 |
+
input [disabled] {background-color: #f00;}
|
52 |
+
input [readonly] {background-color: #f00;}
|
53 |
+
#fbuilder .fields.ui-selected{background-color:#DFEFFF;border:1px solid #C2D7EF}
|
54 |
+
#fbuilder .fields.ui-selected .arrow,#fbuilder .fields.ui-selected>.remove,#fbuilder .fields.ui-selected>.copy{display:inline}
|
55 |
+
#fbuilder .fields.fmark,
|
56 |
+
#fbuilder .fields.ui-over{border:1px dashed #888;}
|
57 |
+
|
58 |
+
#fbuilder .fform{border:1px solid transparent;padding:10px 10px 20px 10px;margin:5px 0px;display:block;position:relative}
|
59 |
+
#fbuilder .fform .arrow{position:absolute;left:-15px;top:20px;display:none}
|
60 |
+
#fbuilder .fform.ui-selected{background-color:#E7FFCF;border:1px solid #C2EF95}
|
61 |
+
#fbuilder .fform.ui-selected .arrow{display:inline}
|
62 |
+
#fbuilder .fform.ui-over{border:1px dashed #888;}
|
63 |
+
#fbuilder .fform h1{margin:5px 0px;padding:0px;}
|
64 |
+
input.disabled {background: #fff;color: #888;cursor: default;}
|
65 |
+
label1{display:inline}
|
66 |
+
input.small, select.small, textarea.small, .small{width:25%}
|
67 |
+
input.medium, select.medium, textarea.medium, .medium{width:50%}
|
68 |
+
input.large, select.large, textarea.large, .large{width:100%;box-sizing: border-box;-webkit-box-sizing:border-box;-moz-box-sizing: border-box;}
|
69 |
+
textarea {resize: none}
|
70 |
+
.one_column{}
|
71 |
+
.two_column{float:left;width:48%}
|
72 |
+
.three_column{float:left;width:30%}
|
73 |
+
.side_by_side{float:left;}
|
74 |
+
.top_aligned .fields label{}
|
75 |
+
.top_aligned .fields .dfield{}
|
76 |
+
.left_aligned .fields label{float:left;width:31%}
|
77 |
+
.left_aligned .fields .dfield{float:left;width:65%;}
|
78 |
+
.right_aligned .fields label{float:left;width:31%;text-align:right;padding:3px 3px 0px 0px}
|
79 |
+
.right_aligned .fields .dfield{float:left;width:65%}
|
80 |
+
#tabs span.uh,
|
81 |
+
#fbuilder span.uh{display:block;font-size:80%;clear:both}
|
82 |
+
#fbuilder .section_break{border-top:1px dotted #555;clear:both}
|
83 |
+
|
84 |
+
#fbuilder .uh_phone{float:left;margin:0px 5px;font-size:80%;text-align:center;position: relative;}
|
85 |
+
#fbuilder .uh_phone input{text-align:center;font-size:100%;}
|
86 |
+
#fbuilder .uh_phone div.cpefb_error{display:block;white-space:nowrap;width:400px}
|
87 |
+
|
88 |
+
.eq_btn{min-width:45px;}
|
89 |
+
.cf_dependence_value{ width:20%; }
|
90 |
+
#sEq{resize:vertical; min-height:70px;}
|
91 |
+
#fCalculated{
|
92 |
+
background: url("cupertino/images/ui-bg_glass_80_eebd4d_1x400.png") repeat-x scroll 50% 50% #EEBD4D;
|
93 |
+
border: 1px solid #D0771D;
|
94 |
+
color: #643F0D;
|
95 |
+
font-weight: bold;
|
96 |
+
}
|
97 |
+
a.helpfbuilder{font-size:80%;text-decoration:underline;color:#00f;cursor:pointer;}
|
98 |
+
.working_dates input[type='checkbox']{width:8%}
|
99 |
+
.form-builder .ui-button-text {
|
100 |
+
display: block !important;
|
101 |
+
}
|
102 |
+
|
103 |
+
.form-builder-error-messages .error-text{ color: #FF0000; border: 1px solid #FF0000; margin-bottom: 10px; padding:5px; }
|
104 |
+
|
105 |
+
.form-builder #tabs label{ font-size:12px !important; }
|
css/stylepublic.css
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.clearer{clear:both;}
|
2 |
+
|
3 |
+
#fbuilder{}
|
4 |
+
#fbuilder .fields,#fbuilder .fform{padding:5px 0px;}
|
5 |
+
#fbuilder .fform h1{margin:5px 0px;padding:0px;}
|
6 |
+
|
7 |
+
#fbuilder .small{width:25% !important;padding-left:0;padding-right:0;}
|
8 |
+
#fbuilder .medium{width:50% !important;padding-left:0;padding-right:0;}
|
9 |
+
#fbuilder .large{width:100% !important;padding-left:0;padding-right:0;}
|
10 |
+
|
11 |
+
@media screen and (min-width: 740px){
|
12 |
+
#fbuilder .fields.column2{float:left;width:49.9%;}
|
13 |
+
#fbuilder .fields.column3{float:left;width:33.3%;}
|
14 |
+
#fbuilder .fields.column4{float:left;width:24.9%;}
|
15 |
+
}
|
16 |
+
|
17 |
+
@media screen and (max-width: 640px){
|
18 |
+
#fbuilder .small,
|
19 |
+
#fbuilder .medium{width:100% !important;}
|
20 |
+
}
|
21 |
+
|
22 |
+
#fbuilder .one_column{}
|
23 |
+
#fbuilder .two_column{float:left;width:48%;}
|
24 |
+
#fbuilder .three_column{float:left;width:30%;}
|
25 |
+
#fbuilder .side_by_side{float:left;}
|
26 |
+
|
27 |
+
|
28 |
+
#fbuilder .dfield{position:relative;}
|
29 |
+
#fbuilder .top_aligned .fields label{}
|
30 |
+
#fbuilder .top_aligned .fields .dfield{}
|
31 |
+
#fbuilder .left_aligned .fields label{float:left;width:31%;}
|
32 |
+
#fbuilder .left_aligned .fields .dfield{float:left;width:65%;}
|
33 |
+
#fbuilder .right_aligned .fields label{float:left;width:31%;text-align:right;padding:3px 3px 0px 0px;}
|
34 |
+
#fbuilder .right_aligned .fields .dfield{float:left;width:65%;}
|
35 |
+
#fbuilder .right_aligned .fields .dfield label{text-align:left;}
|
36 |
+
|
37 |
+
#fbuilder .one_column label,
|
38 |
+
#fbuilder .two_column label,
|
39 |
+
#fbuilder .three_column label,
|
40 |
+
#fbuilder .side_by_side label{ width:100% !important; }
|
41 |
+
|
42 |
+
#fbuilder .left_aligned .section_breaks.fields label,
|
43 |
+
#fbuilder .left_aligned .comment_area.fields label,
|
44 |
+
#fbuilder .right_aligned .section_breaks.fields label,
|
45 |
+
#fbuilder .right_aligned .comment_area.fields label{width:100%;clear:both;}
|
46 |
+
|
47 |
+
#fbuilder .cpefb_error{border1:1px solid red;}
|
48 |
+
#fbuilder .top_aligned .fields label.cpefb_error,.left_aligned .fields label.cpefb_error,.right_aligned .fields label.cpefb_error{display:block;border:0px;color:#f00;float:none;}
|
49 |
+
|
50 |
+
#fbuilder div.cpefb_error{background:#FDF9E5;border:1px solid #f00;opacity:0.9;margin-top:7px;position:relative;padding:0px 5px;z-index:1000;}
|
51 |
+
#fbuilder div.cpefb_error:after{content:"";position:absolute;background:transparent url("../images/tooltop.gif") no-repeat scroll 10px center;color:red;font-weight:bold;height:8px;width:100%;top:-8px;left:0px;z-index:1000;}
|
52 |
+
|
53 |
+
#fbuilder .ui-datepicker{ z-index:9999 !important;}
|
54 |
+
#fbuilder span.uh{display:block;font-size:80%;clear:both;}
|
55 |
+
#fbuilder .section_break{border-top:1px dotted #555;clear:both;}
|
56 |
+
|
57 |
+
#fbuilder .uh_phone{float:left;margin:0px 5px;font-size:80%;text-align:center;position:relative;}
|
58 |
+
#fbuilder .uh_phone input{text-align:center;font-size:100%;}
|
59 |
+
#fbuilder .uh_phone div.cpefb_error{white-space:nowrap;}
|
60 |
+
#fbuilder .cpp_form { text-align:left;}
|
61 |
+
#fbuilder .pbreak{display:none;}
|
62 |
+
#fbuilder .pbreak.pb0{display:block;}
|
63 |
+
#fbuilder .pbreak .pbPrevious,.pbreak .pbNext,.pbSubmit{background:#ccc;color:#000;display:block;float:left;cursor:pointer;margin:10px 10px 0px 0px;padding:5px 20px;}
|
64 |
+
#fbuilder .pbreak.pb0 .pbPrevious{display:none;}
|
65 |
+
#fbuilder .pbreak.pbEnd .pbNext{display:none;}
|
66 |
+
#fbuilder .ignore{border:5px solid black;}
|
67 |
+
#fbuilder fieldset{border:1px solid #ccc;padding:10px;}
|
68 |
+
#fbuilder legend{border:1px solid #ccc;padding:5px 10px;}
|
69 |
+
#fbuilder .cpcaptchalayer,.cp_subbtn{display:none;}
|
70 |
+
#fbuilder .captcha img{ cursor:pointer; }
|
71 |
+
|
72 |
+
#fbuilder input[type='radio'],#fbuilder input[type='checkbox']{width:auto;}
|
73 |
+
.ui-tooltip.uh-tooltip{width:250px;font-size:10px;font-weight:normal;padding:5px;}
|
74 |
+
#fbuilder input[type="checkbox"]{-webkit-appearance:checkbox!important;}
|
75 |
+
#fbuilder input[type="radio"]{-webkit-appearance:radio!important;}
|
76 |
+
|
77 |
+
#fbuilder .cff-summary-title:after{ content: ': '; }
|
78 |
+
|
79 |
+
#fbuilder .hide{ display:none; }
|
80 |
+
#fbuilder .clear{ clear:both; }
|
images/Thumbs.db
ADDED
Binary file
|
images/blank.gif
ADDED
Binary file
|
images/colorpicker_background.png
ADDED
Binary file
|
images/colorpicker_hex.png
ADDED
Binary file
|
images/colorpicker_hsb_b.png
ADDED
Binary file
|
images/colorpicker_hsb_h.png
ADDED
Binary file
|
images/colorpicker_hsb_s.png
ADDED
Binary file
|
images/colorpicker_indic.gif
ADDED
Binary file
|
images/colorpicker_overlay.png
ADDED
Binary file
|
images/colorpicker_rgb_b.png
ADDED
Binary file
|
images/colorpicker_rgb_g.png
ADDED
Binary file
|
images/colorpicker_rgb_r.png
ADDED
Binary file
|
images/colorpicker_select.gif
ADDED
Binary file
|
images/colorpicker_submit.png
ADDED
Binary file
|
images/cp_form.gif
ADDED
Binary file
|
images/custom_background.png
ADDED
Binary file
|
images/custom_hex.png
ADDED
Binary file
|
images/custom_hsb_b.png
ADDED
Binary file
|
images/custom_hsb_h.png
ADDED
Binary file
|
images/custom_hsb_s.png
ADDED
Binary file
|
images/custom_indic.gif
ADDED
Binary file
|
images/custom_rgb_b.png
ADDED
Binary file
|
images/custom_rgb_g.png
ADDED
Binary file
|
images/custom_rgb_r.png
ADDED
Binary file
|
images/custom_submit.png
ADDED
Binary file
|
images/loading.gif
ADDED
Binary file
|
images/recycle_bin.png
ADDED
Binary file
|
images/select.png
ADDED
Binary file
|
images/select2.png
ADDED
Binary file
|
images/slider.png
ADDED
Binary file
|
images/tooltop.gif
ADDED
Binary file
|
js/fbuilder-loader-admin.php
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
header('Content-Type: application/x-javascript; charset=UTF-8');
|
3 |
+
?>
|
4 |
+
|
5 |
+
$fbuilderloadedflag = true;
|
6 |
+
|
7 |
+
fbuilderjQuery = (typeof fbuilderjQuery != 'undefined' ) ? fbuilderjQuery : jQuery;
|
8 |
+
fbuilderjQuery(function(){
|
9 |
+
(function($) {
|
10 |
+
// Namespace of fbuilder
|
11 |
+
$.fbuilder = $.fbuilder || {};
|
12 |
+
$.fbuilder[ 'objName' ] = 'fbuilderjQuery';
|
13 |
+
|
14 |
+
<?php
|
15 |
+
// Load Module files
|
16 |
+
try
|
17 |
+
{
|
18 |
+
$md = dir( dirname( __FILE__ )."/modules");
|
19 |
+
$modules_files = array();
|
20 |
+
while( false !== ( $entry = $md->read() ) )
|
21 |
+
{
|
22 |
+
if ( strlen( $entry ) > 3 && is_dir( $md->path.'/'.$entry ) )
|
23 |
+
{
|
24 |
+
if ( file_exists( $md->path.'/'.$entry.'/admin' ) )
|
25 |
+
{
|
26 |
+
$m = dir( $md->path.'/'.$entry.'/admin' );
|
27 |
+
while( false !== ( $mentry = $m->read() ) )
|
28 |
+
{
|
29 |
+
if( strlen( $mentry ) > 3 && strtolower( substr( $mentry, strlen( $mentry ) - 3 ) ) == '.js' )
|
30 |
+
{
|
31 |
+
$modules_files[] = $m->path.'/'.$mentry;
|
32 |
+
}
|
33 |
+
}
|
34 |
+
}
|
35 |
+
|
36 |
+
}
|
37 |
+
}
|
38 |
+
sort( $modules_files );
|
39 |
+
foreach( $modules_files as $file )
|
40 |
+
{
|
41 |
+
require $file;
|
42 |
+
}
|
43 |
+
}
|
44 |
+
catch (Exception $e)
|
45 |
+
{
|
46 |
+
// ignore the error
|
47 |
+
}
|
48 |
+
|
49 |
+
// Load Control files
|
50 |
+
require 'fbuilder-pro-admin.jquery.js';
|
51 |
+
try
|
52 |
+
{
|
53 |
+
$d = dir( dirname( __FILE__ )."/fields-admin" );
|
54 |
+
$controls_files = array();
|
55 |
+
while (false !== ($entry = $d->read()))
|
56 |
+
{
|
57 |
+
if (strlen($entry) > 3 && strtolower(substr($entry,strlen($entry)-3)) == '.js')
|
58 |
+
{
|
59 |
+
if (file_exists( $d->path.'/'.$entry ) )
|
60 |
+
{
|
61 |
+
$controls_files[] = $d->path.'/'.$entry;
|
62 |
+
}
|
63 |
+
}
|
64 |
+
}
|
65 |
+
sort( $controls_files );
|
66 |
+
foreach( $controls_files as $file )
|
67 |
+
{
|
68 |
+
require $file;
|
69 |
+
}
|
70 |
+
}
|
71 |
+
catch (Exception $e)
|
72 |
+
{
|
73 |
+
// ignore the error
|
74 |
+
}
|
75 |
+
|
76 |
+
?>
|
77 |
+
// Global events
|
78 |
+
$('[name="paypal_recurrent"]').change( function(){
|
79 |
+
if( $( this ).val() == 'field' ) $( '[name="paypal_recurrent_field"]' ).show();
|
80 |
+
else $( '[name="paypal_recurrent_field"]' ).hide();
|
81 |
+
} );
|
82 |
+
})(fbuilderjQuery);
|
83 |
+
});
|
js/fbuilder-loader-public.php
ADDED
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php header('Content-Type: application/x-javascript; charset=UTF-8'); ?>
|
2 |
+
fbuilderjQuery = (typeof fbuilderjQuery != 'undefined' ) ? fbuilderjQuery : jQuery;
|
3 |
+
fbuilderjQuery(function(){
|
4 |
+
(function($) {
|
5 |
+
// Namespace of fbuilder
|
6 |
+
$.fbuilder = $.fbuilder || {};
|
7 |
+
$.fbuilder[ 'objName' ] = 'fbuilderjQuery';
|
8 |
+
|
9 |
+
<?php
|
10 |
+
// Load Module files
|
11 |
+
try
|
12 |
+
{
|
13 |
+
$md = dir( dirname( __FILE__ )."/modules" );
|
14 |
+
$modules_files = array();
|
15 |
+
while( false !== ( $entry = $md->read() ) )
|
16 |
+
{
|
17 |
+
if ( strlen( $entry ) > 3 && is_dir( $md->path.'/'.$entry ) )
|
18 |
+
{
|
19 |
+
if ( file_exists( $md->path.'/'.$entry.'/public' ) )
|
20 |
+
{
|
21 |
+
$m = dir( $md->path.'/'.$entry.'/public' );
|
22 |
+
while( false !== ( $mentry = $m->read() ) )
|
23 |
+
{
|
24 |
+
if( strlen( $mentry ) > 3 && strtolower( substr( $mentry, strlen( $mentry ) - 3 ) ) == '.js' )
|
25 |
+
{
|
26 |
+
$modules_files[] = $m->path.'/'.$mentry;
|
27 |
+
}
|
28 |
+
}
|
29 |
+
}
|
30 |
+
|
31 |
+
}
|
32 |
+
}
|
33 |
+
sort( $modules_files );
|
34 |
+
foreach( $modules_files as $file )
|
35 |
+
{
|
36 |
+
require $file;
|
37 |
+
}
|
38 |
+
}
|
39 |
+
catch (Exception $e)
|
40 |
+
{
|
41 |
+
// ignore the error
|
42 |
+
}
|
43 |
+
|
44 |
+
// Load Control files
|
45 |
+
require 'fbuilder-pro-public.jquery.js';
|
46 |
+
try {
|
47 |
+
$d = dir( dirname( __FILE__ )."/fields-public" );
|
48 |
+
$controls_files = array();
|
49 |
+
while (false !== ($entry = $d->read())) {
|
50 |
+
if (strlen($entry) > 3 && strtolower(substr($entry,strlen($entry)-3)) == '.js')
|
51 |
+
if ( file_exists( $d->path.'/'.$entry ) )
|
52 |
+
$controls_files[] = $d->path.'/'.$entry;
|
53 |
+
}
|
54 |
+
sort( $controls_files );
|
55 |
+
foreach( $controls_files as $file )
|
56 |
+
{
|
57 |
+
require $file;
|
58 |
+
}
|
59 |
+
} catch (Exception $e) {
|
60 |
+
// ignore the error
|
61 |
+
}
|
62 |
+
?>
|
63 |
+
var fcount = 1;
|
64 |
+
var fnum = "_"+fcount;
|
65 |
+
while (eval("typeof cp_ppp_fbuilder_config"+fnum+" != 'undefined'"))
|
66 |
+
{
|
67 |
+
try {
|
68 |
+
var cp_ppp_fbuilder_config = eval("cp_ppp_fbuilder_config"+fnum);
|
69 |
+
var f = $("#fbuilder"+fnum).fbuilder($.parseJSON(cp_ppp_fbuilder_config.obj));
|
70 |
+
f.fBuild.loadData("form_structure"+fnum);
|
71 |
+
$("#cp_ppp_pform"+fnum).validate({
|
72 |
+
ignore:".ignore,.ignorepb",
|
73 |
+
errorElement: "div",
|
74 |
+
errorPlacement: function(e, element)
|
75 |
+
{
|
76 |
+
if (element.hasClass('group'))
|
77 |
+
element = element.parent();
|
78 |
+
e.insertBefore(element);
|
79 |
+
e.addClass('message'); // add a class to the wrapper
|
80 |
+
e.css('position', 'absolute');
|
81 |
+
e.css('left',0 );
|
82 |
+
e.css('top',element.parent().outerHeight(true));
|
83 |
+
}
|
84 |
+
});
|
85 |
+
} catch (e) {}
|
86 |
+
fcount++;
|
87 |
+
fnum = "_"+fcount;
|
88 |
+
}
|
89 |
+
})(fbuilderjQuery);
|
90 |
+
});
|
js/fbuilder-pro-admin.jquery.js
ADDED
@@ -0,0 +1,918 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
var ppp_started=false;
|
2 |
+
$.fbuilder[ 'typeList' ] = [];
|
3 |
+
$.fbuilder[ 'categoryList' ] = [];
|
4 |
+
$.fbuilder[ 'controls' ] = {};
|
5 |
+
|
6 |
+
$.fbuilder[ 'preview' ] = function( e )
|
7 |
+
{
|
8 |
+
var f = $( e.form );
|
9 |
+
f.attr( 'target', 'formpopup' ).attr(
|
10 |
+
'onsubmit',
|
11 |
+
function( f )
|
12 |
+
{
|
13 |
+
var w = screen.width*0.8,
|
14 |
+
h = screen.height*0.7,
|
15 |
+
l = screen.width/2 - w/2,
|
16 |
+
t = screen.height/2 - h/2,
|
17 |
+
new_window = window.open('', 'formpopup', 'resizeable,scrollbars,width='+w+',height='+h+',left='+l+',top='+t);
|
18 |
+
|
19 |
+
$( f ).removeAttr( 'onsubmit' );
|
20 |
+
new_window.focus();
|
21 |
+
}
|
22 |
+
);
|
23 |
+
$( '<input type="hidden" name="preview" value="1" />' ).appendTo( f );
|
24 |
+
|
25 |
+
f[ 0 ].submit();
|
26 |
+
f.attr( 'target', '_self' ).find( 'input[name="preview"]').remove();
|
27 |
+
};
|
28 |
+
|
29 |
+
$.fbuilder[ 'htmlEncode' ] = function(value)
|
30 |
+
{
|
31 |
+
value = $('<div/>').text(value).html()
|
32 |
+
value = value.replace( /&/g, '&' ).replace(/"/g, """);
|
33 |
+
return value;
|
34 |
+
};
|
35 |
+
|
36 |
+
$.fbuilder[ 'escape_symbol' ] = function( value ) // Escape the symbols used in regulars expressions
|
37 |
+
{
|
38 |
+
return value.replace(/([\^\$\-\.\,\[\]\(\)\/\\\*\?\+\!\{\}])/g, "\\$1");
|
39 |
+
};
|
40 |
+
|
41 |
+
$.fbuilder[ 'parseVal' ] = function( value, thousandSeparator, decimalSymbol )
|
42 |
+
{
|
43 |
+
if( value == '' ) return 0;
|
44 |
+
value += '';
|
45 |
+
|
46 |
+
thousandSeparator = new RegExp( $.fbuilder.escape_symbol( ( typeof thousandSeparator == 'undefined' ) ? ',' : thousandSeparator ), 'g' );
|
47 |
+
decimalSymbol = new RegExp( $.fbuilder.escape_symbol( ( typeof decimalSymbol == 'undefined' ) ? '.' : decimalSymbol ), 'g' );
|
48 |
+
|
49 |
+
var t = value.replace( thousandSeparator, '' ).replace( decimalSymbol, '.' ).replace( /\s/g, '' ),
|
50 |
+
p = /[+-]?((\d+(\.\d+)?)|(\.\d+))/.exec( t );
|
51 |
+
|
52 |
+
return ( p ) ? p[0]*1 : '"' + value.replace(/'/g, "\\'").replace( /\$/g, '') + '"';
|
53 |
+
};
|
54 |
+
|
55 |
+
$.fbuilder[ 'showErrorMssg' ] = function( str ) // Display an error message
|
56 |
+
{
|
57 |
+
$( '.form-builder-error-messages' ).html( '<div class="error-text">' + str + '</div>' );
|
58 |
+
};
|
59 |
+
|
60 |
+
// fbuilder plugin
|
61 |
+
$.fn.fbuilder = function(options){
|
62 |
+
var opt = $.extend({},
|
63 |
+
{
|
64 |
+
pub:false,
|
65 |
+
identifier:"",
|
66 |
+
title:""
|
67 |
+
},
|
68 |
+
options, true),
|
69 |
+
typeList = $.fbuilder.typeList,
|
70 |
+
categoryList = $.fbuilder.categoryList;
|
71 |
+
|
72 |
+
$.fbuilder[ 'getNameByIdFromType' ] = function( id )
|
73 |
+
{
|
74 |
+
for ( var i = 0, h = typeList.length; i < h; i++ )
|
75 |
+
{
|
76 |
+
if ( typeList[i].id == id )
|
77 |
+
{
|
78 |
+
return typeList[i].name;
|
79 |
+
}
|
80 |
+
}
|
81 |
+
return "";
|
82 |
+
};
|
83 |
+
|
84 |
+
for ( var i=0, h = typeList.length; i < h; i++ )
|
85 |
+
{
|
86 |
+
var category_id = typeList[ i ].control_category;
|
87 |
+
|
88 |
+
if( typeof categoryList[ category_id ] == 'undefined' )
|
89 |
+
{
|
90 |
+
categoryList[ category_id ] = { title : '', description : '', typeList : [] };
|
91 |
+
}
|
92 |
+
else if( typeof categoryList[ category_id ][ 'typeList' ] == 'undefined' )
|
93 |
+
{
|
94 |
+
categoryList[ category_id ][ 'typeList' ] = [];
|
95 |
+
}
|
96 |
+
|
97 |
+
categoryList[ category_id ].typeList.push( i );
|
98 |
+
}
|
99 |
+
|
100 |
+
for ( var i in categoryList )
|
101 |
+
{
|
102 |
+
$("#tabs-1").append('<div style="clear:both;"></div><div>'+categoryList[ i ].title+'</div><hr />');
|
103 |
+
if( typeof categoryList[ i ][ 'description' ] != 'undefined' && !/^\s*$/.test( categoryList[ i ][ 'description' ] ) )
|
104 |
+
{
|
105 |
+
$("#tabs-1").append('<div style="clear:both;"></div><div class="category-description">'+categoryList[ i ].description+'</div>');
|
106 |
+
}
|
107 |
+
|
108 |
+
if( typeof categoryList[ i ][ 'typeList' ] != 'undefined' )
|
109 |
+
{
|
110 |
+
for( var j = 0, k = categoryList[ i ].typeList.length; j < k; j++ )
|
111 |
+
{
|
112 |
+
var index = categoryList[ i ].typeList[ j ];
|
113 |
+
$("#tabs-1").append('<div class="button itemForm width40" id="'+typeList[ index ].id+'">'+typeList[ index ].name+'</div>');
|
114 |
+
}
|
115 |
+
}
|
116 |
+
}
|
117 |
+
|
118 |
+
$("#tabs-1").append('<div class="clearer"></div>');
|
119 |
+
$( ".button").button();
|
120 |
+
|
121 |
+
// Create a items object
|
122 |
+
var items = [],
|
123 |
+
fieldsIndex = {},
|
124 |
+
calculatedFields = {},
|
125 |
+
selected = -3;
|
126 |
+
|
127 |
+
$.fbuilder[ 'editItem' ] = function( id )
|
128 |
+
{
|
129 |
+
selected = id;
|
130 |
+
try
|
131 |
+
{
|
132 |
+
$('#tabs-2').html( items[id].showAllSettings() );
|
133 |
+
} catch (e) {}
|
134 |
+
items[id].editItemEvents();
|
135 |
+
};
|
136 |
+
|
137 |
+
$.fbuilder[ 'removeItem' ] = function( index )
|
138 |
+
{
|
139 |
+
if( typeof items[ index ][ 'remove' ] != 'undefined' ) items[ index ][ 'remove' ]();
|
140 |
+
items.splice(index,1);
|
141 |
+
for ( var i=0, h = items.length; i<h; i++ )
|
142 |
+
{
|
143 |
+
items[i].index = i;
|
144 |
+
}
|
145 |
+
selected = -2;
|
146 |
+
$('#tabs').tabs("option", "active", 0);
|
147 |
+
$.fbuilder.reloadItems();
|
148 |
+
};
|
149 |
+
|
150 |
+
$.fbuilder[ 'duplicateItem' ] = function( index )
|
151 |
+
{
|
152 |
+
var n = 0;
|
153 |
+
for ( var i=0, h = items.length; i<h; i++ )
|
154 |
+
{
|
155 |
+
n1 = parseInt( items[i].name.replace( /fieldname/g,"" ) );
|
156 |
+
if (n1>n)
|
157 |
+
n = n1;
|
158 |
+
}
|
159 |
+
|
160 |
+
if( $( '#field-' + items[ index ].index ).parents( '.fields' ).length )
|
161 |
+
{
|
162 |
+
var i = $( '#field-' + items[ index ].index ).parents( '.fields' ).attr( 'id' ).replace( 'field-', '' );
|
163 |
+
if( typeof items[ i ][ 'duplicateItem' ] != 'undefined' ) items[ i ][ 'duplicateItem' ]( items[ index ].name, 'fieldname'+( n + 1 ) );
|
164 |
+
}
|
165 |
+
|
166 |
+
items.splice( index*1+1, 0, $.extend( true, {}, items[index], { name:"fieldname"+(n+1) } ) );
|
167 |
+
for ( var i=index*1+1, h = items.length; i<h; i++ )
|
168 |
+
{
|
169 |
+
items[i].index = i;
|
170 |
+
}
|
171 |
+
|
172 |
+
$('#tabs').tabs("option", "active", 0);
|
173 |
+
$.fbuilder.reloadItems();
|
174 |
+
}
|
175 |
+
|
176 |
+
$.fbuilder[ 'editForm' ] = function()
|
177 |
+
{
|
178 |
+
$('#tabs-3').html(theForm.showAllSettings());
|
179 |
+
selected = -1;
|
180 |
+
|
181 |
+
$("#fTitle").keyup(function()
|
182 |
+
{
|
183 |
+
theForm.title = $(this).val();
|
184 |
+
$.fbuilder.reloadItems();
|
185 |
+
});
|
186 |
+
|
187 |
+
$("#fEvalEquations").click(function()
|
188 |
+
{
|
189 |
+
theForm.evalequations = ($(this).is( ':checked' )) ? 1 : 0;
|
190 |
+
$.fbuilder.reloadItems();
|
191 |
+
});
|
192 |
+
|
193 |
+
$("#fAutocomplete").click(function()
|
194 |
+
{
|
195 |
+
theForm.autocomplete = ($(this).is( ':checked' )) ? 1 : 0;
|
196 |
+
$.fbuilder.reloadItems();
|
197 |
+
});
|
198 |
+
|
199 |
+
$("#fDescription").keyup(function()
|
200 |
+
{
|
201 |
+
theForm.description = $(this).val();
|
202 |
+
$.fbuilder.reloadItems();
|
203 |
+
});
|
204 |
+
|
205 |
+
$("#fLayout").change(function()
|
206 |
+
{
|
207 |
+
theForm.formlayout = $(this).val();
|
208 |
+
$.fbuilder.reloadItems();
|
209 |
+
});
|
210 |
+
|
211 |
+
$("#fTemplate").change(function()
|
212 |
+
{
|
213 |
+
theForm.formtemplate = $(this).val();
|
214 |
+
var template = $.fbuilder.showSettings.formTemplateDic[ theForm.formtemplate ],
|
215 |
+
thumbnail = '',
|
216 |
+
description = '';
|
217 |
+
|
218 |
+
if( typeof template != 'undefined' )
|
219 |
+
{
|
220 |
+
if( typeof template[ 'thumbnail' ] != 'undefined' )
|
221 |
+
{
|
222 |
+
thumbnail = '<img src="' + template[ 'thumbnail' ] + '">';
|
223 |
+
}
|
224 |
+
if( typeof template[ 'description' ] != 'undefined' )
|
225 |
+
{
|
226 |
+
description = template[ 'description' ];
|
227 |
+
}
|
228 |
+
}
|
229 |
+
$( '#fTemplateThumbnail' ).html( thumbnail );
|
230 |
+
$( '#fTemplateDescription' ).html( description );
|
231 |
+
$.fbuilder.reloadItems();
|
232 |
+
});
|
233 |
+
};
|
234 |
+
|
235 |
+
$.fbuilder[ 'reloadItems' ] = function()
|
236 |
+
{
|
237 |
+
if (ppp_started){alert('* Note: The Form Builder is read-only in this version.');return;}else {ppp_started=true;}
|
238 |
+
for ( var i=0, h = $.fbuilder.showSettings.formlayoutList.length; i < h; i++ )
|
239 |
+
{
|
240 |
+
$("#fieldlist"+opt.identifier).removeClass( $.fbuilder.showSettings.formlayoutList[i].id );
|
241 |
+
}
|
242 |
+
$("#fieldlist"+opt.identifier).addClass(theForm.formlayout);
|
243 |
+
$("#formheader"+opt.identifier).html(theForm.display());
|
244 |
+
$("#fieldlist"+opt.identifier).html("");
|
245 |
+
if ( parseInt( selected ) == -1 )
|
246 |
+
{
|
247 |
+
$(".fform").addClass("ui-selected");
|
248 |
+
}
|
249 |
+
else
|
250 |
+
{
|
251 |
+
$(".fform").removeClass("ui-selected");
|
252 |
+
}
|
253 |
+
|
254 |
+
fieldsIndex = {};
|
255 |
+
calculatedFields = {};
|
256 |
+
for ( var i=0, h = items.length; i < h; i++ )
|
257 |
+
{
|
258 |
+
items[i].index = i;
|
259 |
+
fieldsIndex[ items[i].name ] = i;
|
260 |
+
if( items[i].ftype == 'fCalculated')
|
261 |
+
{
|
262 |
+
calculatedFields[ items[i].name ] = i;
|
263 |
+
}
|
264 |
+
$("#fieldlist"+opt.identifier).append(items[i].display());
|
265 |
+
if ( i == selected )
|
266 |
+
{
|
267 |
+
$("#field"+opt.identifier+"-"+i).addClass("ui-selected");
|
268 |
+
if( $('#tabs').tabs("option", "active") != 1 )
|
269 |
+
{
|
270 |
+
$.fbuilder[ 'editItem' ]( i );
|
271 |
+
}
|
272 |
+
}
|
273 |
+
else
|
274 |
+
{
|
275 |
+
$("#field"+opt.identifier+"-"+i).removeClass("ui-selected");
|
276 |
+
}
|
277 |
+
$("#field"+opt.identifier+"-"+i+" .remove").click(function()
|
278 |
+
{
|
279 |
+
$.fbuilder[ 'removeItem' ]($(this).parent().attr("id").replace("field"+opt.identifier+"-",""));
|
280 |
+
});
|
281 |
+
|
282 |
+
$("#field"+opt.identifier+"-"+i+" .copy").click(function()
|
283 |
+
{
|
284 |
+
$.fbuilder[ 'duplicateItem' ]($(this).parent().attr("id").replace("field"+opt.identifier+"-",""));
|
285 |
+
});
|
286 |
+
|
287 |
+
}
|
288 |
+
for ( var i=0, h = items.length; i < h; i++ )
|
289 |
+
{
|
290 |
+
if( typeof items[ i ].after_show != 'undefined' ) items[ i ].after_show();
|
291 |
+
}
|
292 |
+
if (items.length>0)
|
293 |
+
{
|
294 |
+
$(".fields").mouseover(function( evt )
|
295 |
+
{
|
296 |
+
$(this).addClass("ui-over");
|
297 |
+
evt.stopPropagation();
|
298 |
+
})
|
299 |
+
.mouseout(function( evt )
|
300 |
+
{
|
301 |
+
$(this).removeClass("ui-over");
|
302 |
+
evt.stopPropagation();
|
303 |
+
})
|
304 |
+
.click(function( evt )
|
305 |
+
{
|
306 |
+
evt.stopPropagation();
|
307 |
+
$.fbuilder[ 'editItem' ]($(this).attr("id").replace("field"+opt.identifier+"-",""));
|
308 |
+
$( '#fieldlist .ui-selected' ).removeClass("ui-selected");
|
309 |
+
$(this).addClass("ui-selected");
|
310 |
+
$('#tabs').tabs("option", "active", 1);
|
311 |
+
});
|
312 |
+
$(".field").focus(function()
|
313 |
+
{
|
314 |
+
$(this).blur();
|
315 |
+
});
|
316 |
+
}
|
317 |
+
|
318 |
+
$(".fform").mouseover(function()
|
319 |
+
{
|
320 |
+
$(this).addClass("ui-over");
|
321 |
+
})
|
322 |
+
.mouseout(function()
|
323 |
+
{
|
324 |
+
$(this).removeClass("ui-over");
|
325 |
+
})
|
326 |
+
.click(function( evt ){
|
327 |
+
evt.stopPropagation();
|
328 |
+
$('#tabs').tabs("option", "active", 2);
|
329 |
+
$.fbuilder.editForm();
|
330 |
+
$(this).siblings().removeClass("ui-selected");
|
331 |
+
$(this).addClass("ui-selected");
|
332 |
+
});
|
333 |
+
|
334 |
+
ffunct.saveData("form_structure");
|
335 |
+
|
336 |
+
//email list
|
337 |
+
var str = "",
|
338 |
+
cu_user_email_field = $('#cu_user_email_field').attr("def").split( ',' );
|
339 |
+
|
340 |
+
for ( var i=0, h = items.length; i < h; i++ )
|
341 |
+
{
|
342 |
+
var item = items[ i ];
|
343 |
+
if (item.ftype=="femail" || item.ftype=="femailds")
|
344 |
+
{
|
345 |
+
str += '<option value="'+item.name+'" '+( ( $.inArray( item.name, cu_user_email_field ) != -1 ) ? "selected" : "" )+'>'+item.name+' ('+item.title+')'+'</option>';
|
346 |
+
}
|
347 |
+
}
|
348 |
+
$('#cu_user_email_field').html(str);
|
349 |
+
|
350 |
+
// recurrent payments
|
351 |
+
var str = "",
|
352 |
+
paypal_recurrent_field = $('[name="paypal_recurrent_field"]').attr("def");
|
353 |
+
|
354 |
+
for ( var i=0, h = items.length; i < h; i++ )
|
355 |
+
{
|
356 |
+
var item = items[ i ];
|
357 |
+
if (item.ftype=="fradio" || item.ftype=="fdropdown")
|
358 |
+
{
|
359 |
+
str += '<option value="'+item.name+'" '+( ( item.name == paypal_recurrent_field ) ? "selected" : "" )+'>'+item.name+' ('+item.title+')'+'</option>';
|
360 |
+
}
|
361 |
+
}
|
362 |
+
$('[name="paypal_recurrent_field"]').html(str);
|
363 |
+
|
364 |
+
//field list for paypal request
|
365 |
+
if (($('#request_cost').length > 0) && ($('#request_cost').is('select')))
|
366 |
+
{
|
367 |
+
var str = "",
|
368 |
+
request_cost = $('#request_cost').attr("def");
|
369 |
+
|
370 |
+
for (var i=0, h = items.length; i<h; i++)
|
371 |
+
{
|
372 |
+
var item = items[ i ];
|
373 |
+
str += '<option value="'+item.name+'" '+( ( item.name == request_cost ) ? "selected" : "" )+'>'+item.name+'('+(item.title)+')</option>';
|
374 |
+
}
|
375 |
+
$('#request_cost').html(str);
|
376 |
+
}
|
377 |
+
|
378 |
+
//request amount list
|
379 |
+
if ($('#paypal_price_field').length > 0)
|
380 |
+
{
|
381 |
+
var paypal_price_field = $('#paypal_price_field').attr("def"),
|
382 |
+
str = '<option value="" '+( ('' == paypal_price_field ) ? "selected" : "" )+'> ---- No ---- </option>';
|
383 |
+
|
384 |
+
for (var i=0, h = items.length; i < h; i++)
|
385 |
+
{
|
386 |
+
var item = items[ i ];
|
387 |
+
str += '<option value="'+item.name+'" '+( ( item.name == paypal_price_field ) ? "selected" : "" )+'>'+(item.title)+'</option>';
|
388 |
+
}
|
389 |
+
$('#paypal_price_field').html(str);
|
390 |
+
}
|
391 |
+
};
|
392 |
+
|
393 |
+
var fform=function(){};
|
394 |
+
$.extend(fform.prototype,
|
395 |
+
{
|
396 |
+
title:"Untitled Form",
|
397 |
+
description:"This is my form. Please fill it out. It's awesome!",
|
398 |
+
formlayout:"top_aligned",
|
399 |
+
formtemplate:"",
|
400 |
+
evalequations:1,
|
401 |
+
autocomplete:1,
|
402 |
+
display:function()
|
403 |
+
{
|
404 |
+
return '<div class="fform" id="field"><div class="arrow ui-icon ui-icon-play "></div><h1>'+this.title+'</h1><span>'+this.description+'</span></div>';
|
405 |
+
},
|
406 |
+
|
407 |
+
showAllSettings:function()
|
408 |
+
{
|
409 |
+
var layout = '',
|
410 |
+
template = '<option value="">Use default template</option>',
|
411 |
+
thumbnail = '',
|
412 |
+
description = '',
|
413 |
+
selected = '';
|
414 |
+
|
415 |
+
for ( var i = 0; i< $.fbuilder.showSettings.formlayoutList.length; i++ )
|
416 |
+
{
|
417 |
+
layout += '<option value="'+$.fbuilder.showSettings.formlayoutList[i].id+'" '+(($.fbuilder.showSettings.formlayoutList[i].id==this.formlayout)?"selected":"")+'>'+$.fbuilder.showSettings.formlayoutList[i].name+'</option>';
|
418 |
+
}
|
419 |
+
|
420 |
+
for ( var i in $.fbuilder.showSettings.formTemplateDic )
|
421 |
+
{
|
422 |
+
if( /^\s*$/.test( i ) ) break;
|
423 |
+
selected = '';
|
424 |
+
if( $.fbuilder.showSettings.formTemplateDic[i].prefix==this.formtemplate )
|
425 |
+
{
|
426 |
+
selected = 'SELECTED';
|
427 |
+
if( typeof $.fbuilder.showSettings.formTemplateDic[i].thumbnail != 'undefined' )
|
428 |
+
{
|
429 |
+
thumbnail = '<img src="'+$.fbuilder.showSettings.formTemplateDic[i].thumbnail+'">';
|
430 |
+
}
|
431 |
+
|
432 |
+
if( typeof $.fbuilder.showSettings.formTemplateDic[i].description != 'undefined' )
|
433 |
+
{
|
434 |
+
description = $.fbuilder.showSettings.formTemplateDic[i].description;
|
435 |
+
}
|
436 |
+
}
|
437 |
+
|
438 |
+
template += '<option value="'+$.fbuilder.showSettings.formTemplateDic[i].prefix+'" ' + selected + '>'+$.fbuilder.showSettings.formTemplateDic[i].title+'</option>';
|
439 |
+
}
|
440 |
+
return '<div><label>Form Name</label><input class="large" name="fTitle" id="fTitle" value="'+$.fbuilder.htmlEncode(this.title)+'" /></div><div><label>Description</label><textarea class="large" name="fDescription" id="fDescription">'+this.description+'</textarea></div><div><label>Label Placement</label><br /><select name="fLayout" id="fLayout" class="large">'+layout+'</select></div><div><label><input type="checkbox" name="fAutocomplete" id="fAutocomplete" '+( ( this.autocomplete ) ? 'CHECKED' : '' )+' /> Enable autocompletion</label></div>' + ( ( typeof $.fbuilder.controls[ 'fCalculated' ] != 'undefined' ) ? '<div><label><input type="checkbox" name="fEvalEquations" id="fEvalEquations" '+( ( this.evalequations ) ? 'CHECKED' : '' )+' /> Eval dynamically the equations associated to the calculated fields</label></div>' : '' ) + '<div><label>Form Template</label><br /><select name="fTemplate" id="fTemplate" class="large">'+template+'</select></div><br /><div><span id="fTemplateThumbnail" style="float:left;padding-right:10px;">'+thumbnail+'</span><span id="fTemplateDescription" style="float:left;">'+description+'</span></div>' ;
|
441 |
+
}
|
442 |
+
}
|
443 |
+
);
|
444 |
+
|
445 |
+
var theForm = new fform();
|
446 |
+
$("#fbuilder").click( function( evt )
|
447 |
+
{
|
448 |
+
evt.stopPropagation();
|
449 |
+
selected = -2;
|
450 |
+
$(".fform").removeClass("ui-selected")
|
451 |
+
$( '#fieldlist .ui-selected' ).removeClass("ui-selected");
|
452 |
+
$('#tabs').tabs("option", "active", 0);
|
453 |
+
}
|
454 |
+
);
|
455 |
+
$("#fieldlist"+opt.identifier).sortable(
|
456 |
+
{
|
457 |
+
'connectWith': '.ui-sortable',
|
458 |
+
'items': '.fields',
|
459 |
+
'update': function( event, ui )
|
460 |
+
{
|
461 |
+
var i, h = items.length;
|
462 |
+
for( i = 0; i < h; i++ )
|
463 |
+
{
|
464 |
+
if( ui.item.hasClass( items[ i ].name ) ) break;
|
465 |
+
}
|
466 |
+
|
467 |
+
if( ui.item.parent().attr( 'id' ) == 'fieldlist' )
|
468 |
+
{
|
469 |
+
// receive or change order in fieldlist
|
470 |
+
var end_pos = parseInt( ui.item.index() );
|
471 |
+
items.splice( end_pos, 0, items.splice( i, 1 )[ 0 ] );
|
472 |
+
$.fbuilder.reloadItems();
|
473 |
+
}
|
474 |
+
else
|
475 |
+
{
|
476 |
+
// remove
|
477 |
+
items = items.concat( items.splice( i, 1 ) );
|
478 |
+
}
|
479 |
+
}
|
480 |
+
}
|
481 |
+
);
|
482 |
+
|
483 |
+
$('#tabs').tabs(
|
484 |
+
{
|
485 |
+
activate: function(event, ui)
|
486 |
+
{
|
487 |
+
switch( $(this).tabs( "option", "active" ) )
|
488 |
+
{
|
489 |
+
case 0:
|
490 |
+
$(".fform").removeClass("ui-selected");
|
491 |
+
break;
|
492 |
+
case 1:
|
493 |
+
$(".fform").removeClass("ui-selected");
|
494 |
+
if (selected < 0)
|
495 |
+
{
|
496 |
+
$('#tabs-2').html('<b>No Field Selected</b><br />Please click on a field in the form preview on the right to change its properties.');
|
497 |
+
}
|
498 |
+
break;
|
499 |
+
case 2:
|
500 |
+
$(".fields").removeClass("ui-selected");
|
501 |
+
$(".fform").addClass("ui-selected");
|
502 |
+
$.fbuilder.editForm();
|
503 |
+
break;
|
504 |
+
}
|
505 |
+
}
|
506 |
+
}
|
507 |
+
);
|
508 |
+
|
509 |
+
var ffunct = {
|
510 |
+
getFieldsIndex: function()
|
511 |
+
{
|
512 |
+
return fieldsIndex;
|
513 |
+
},
|
514 |
+
getCalculatedFields: function()
|
515 |
+
{
|
516 |
+
return calculatedFields;
|
517 |
+
},
|
518 |
+
getItems: function()
|
519 |
+
{
|
520 |
+
return items;
|
521 |
+
},
|
522 |
+
addItem: function(id)
|
523 |
+
{
|
524 |
+
var obj = eval("new $.fbuilder.controls['"+id+"']();"),
|
525 |
+
fBuild = this,
|
526 |
+
n = 0;
|
527 |
+
|
528 |
+
obj.init();
|
529 |
+
for (var i=0, h = items.length; i < h; i++)
|
530 |
+
{
|
531 |
+
n1 = parseInt(items[i].name.replace(/fieldname/g,""));
|
532 |
+
if (n1>n)
|
533 |
+
{
|
534 |
+
n = n1;
|
535 |
+
}
|
536 |
+
}
|
537 |
+
n++;
|
538 |
+
obj.fBuild = fBuild;
|
539 |
+
$.extend(obj,{name:"fieldname"+n});
|
540 |
+
|
541 |
+
if( selected >= 0 )
|
542 |
+
{
|
543 |
+
items.splice( (selected)*1+1, 0, obj );
|
544 |
+
if( typeof items[ selected ][ 'addItem' ] != 'undefined' )
|
545 |
+
{
|
546 |
+
items[ selected ][ 'addItem' ]( obj.name );
|
547 |
+
}
|
548 |
+
else
|
549 |
+
{
|
550 |
+
selected++;
|
551 |
+
}
|
552 |
+
}
|
553 |
+
else
|
554 |
+
{
|
555 |
+
selected = items.length;
|
556 |
+
items[selected] = obj;
|
557 |
+
}
|
558 |
+
$.fbuilder.reloadItems();
|
559 |
+
},
|
560 |
+
saveData:function(f)
|
561 |
+
{
|
562 |
+
var itemsStringified = $.stringifyXX( items ),
|
563 |
+
theFormStringified = $.stringifyXX( theForm ),
|
564 |
+
errorTxt = 'The entered data includes invalid characters. Please, if you are copying and pasting from another platform, be sure the data not include invalid characters.',
|
565 |
+
str;
|
566 |
+
|
567 |
+
if( typeof global_varible_save_data != 'undefined' )
|
568 |
+
{
|
569 |
+
// If the global_varible_save_data exists clear the form-builder-error-messages
|
570 |
+
$( '.form-builder-error-messages' ).html( '' );
|
571 |
+
}
|
572 |
+
|
573 |
+
try{
|
574 |
+
if( $.parseJSON( itemsStringified ) != null && $.parseJSON( theFormStringified ) != null )
|
575 |
+
{
|
576 |
+
str = "["+ itemsStringified +",["+ theFormStringified +"]]";
|
577 |
+
$( "#"+f ).val( str );
|
578 |
+
$( "#form_structure_crc" ).val( str.length );
|
579 |
+
}
|
580 |
+
else
|
581 |
+
{
|
582 |
+
$.fbuilder[ 'showErrorMssg' ]( errorTxt );
|
583 |
+
}
|
584 |
+
}
|
585 |
+
catch( err )
|
586 |
+
{
|
587 |
+
$.fbuilder[ 'showErrorMssg' ]( errorTxt );
|
588 |
+
}
|
589 |
+
|
590 |
+
global_varible_save_data = true;
|
591 |
+
},
|
592 |
+
loadData:function(form_structure, available_templates)
|
593 |
+
{
|
594 |
+
var structure = $.parseJSON( $("#"+form_structure).val() ), // JSON data
|
595 |
+
templates = ( typeof available_templates == 'undefined' ) ? null : $.parseJSON( $("#"+available_templates).val() ),
|
596 |
+
fBuild = this;
|
597 |
+
|
598 |
+
if ( structure )
|
599 |
+
{
|
600 |
+
if (structure.length==2)
|
601 |
+
{
|
602 |
+
items = [];
|
603 |
+
for (var i=0;i<structure[0].length;i++)
|
604 |
+
{
|
605 |
+
var obj = eval("new $.fbuilder.controls['"+structure[0][i].ftype+"']();");
|
606 |
+
obj = $.extend( true, {}, obj, structure[0][i] );
|
607 |
+
obj.name = obj.name+opt.identifier;
|
608 |
+
obj.form_identifier = opt.identifier;
|
609 |
+
obj.fBuild = fBuild;
|
610 |
+
items[items.length] = obj;
|
611 |
+
}
|
612 |
+
theForm = new fform();
|
613 |
+
theForm = $.extend(theForm,structure[1][0]);
|
614 |
+
$.fbuilder.reloadItems();
|
615 |
+
}
|
616 |
+
}
|
617 |
+
|
618 |
+
if( templates )
|
619 |
+
{
|
620 |
+
$.fbuilder.showSettings.formTemplateDic = templates;
|
621 |
+
}
|
622 |
+
},
|
623 |
+
removeItem: $.fbuilder[ 'removeItem' ],
|
624 |
+
editItem: $.fbuilder[ 'editItem' ]
|
625 |
+
}
|
626 |
+
|
627 |
+
this.fBuild = ffunct;
|
628 |
+
return this;
|
629 |
+
};
|
630 |
+
|
631 |
+
$.fbuilder[ 'showSettings' ] = {
|
632 |
+
sizeList:new Array({id:"small",name:"Small"},{id:"medium",name:"Medium"},{id:"large",name:"Large"}),
|
633 |
+
layoutList:new Array({id:"one_column",name:"One Column"},{id:"two_column",name:"Two Column"},{id:"three_column",name:"Three Column"},{id:"side_by_side",name:"Side by Side"}),
|
634 |
+
formlayoutList:new Array({id:"top_aligned",name:"Top Aligned"},{id:"left_aligned",name:"Left Aligned"},{id:"right_aligned",name:"Right Aligned"}),
|
635 |
+
formTemplateDic: {}, // Form Template dictionary
|
636 |
+
showFieldType: function( v )
|
637 |
+
{
|
638 |
+
return '<label>Field Type: '+$.fbuilder[ 'getNameByIdFromType' ]( v )+'</label><br /><br />';
|
639 |
+
},
|
640 |
+
showTitle: function(v)
|
641 |
+
{
|
642 |
+
return '<label>Field Label</label><textarea class="large" name="sTitle" id="sTitle">'+v+'</textarea>';
|
643 |
+
},
|
644 |
+
showShortLabel: function( v )
|
645 |
+
{
|
646 |
+
return '<div><label>Short label (optional) [<a class="helpfbuilder" text="The short label is used at title for the column when exporting the form data to CSV files.\n\nIf the short label is empty then, the field label will be used for the CSV file.">help?</a>] :</label><input class="large" name="sShortlabel" id="sShortlabel" value="'+v+'" /></div>';
|
647 |
+
},
|
648 |
+
showName: function( v )
|
649 |
+
{
|
650 |
+
return '<div><label>Field name, tag for the message:</label><input readonly="readonly" class="large" name="sNametag" id="sNametag" value="<%'+v+'%>" />'+
|
651 |
+
'<input style="display:none" readonly="readonly" class="large" name="sName" id="sName" value="'+v+'" /></div>';
|
652 |
+
},
|
653 |
+
showPredefined: function(v,c)
|
654 |
+
{
|
655 |
+
return '<div><label>Predefined Value</label><textarea class="large" name="sPredefined" id="sPredefined">'+v+'</textarea><br /><input type="checkbox" name="sPredefinedClick" id="sPredefinedClick" '+((c)?"checked":"")+' value="1" > Use predefined value as placeholder.</div>';
|
656 |
+
},
|
657 |
+
showEqualTo: function(v,name)
|
658 |
+
{
|
659 |
+
return '<div><label>Equal to [<a class="helpfbuilder" text="Use this field to create password confirmation field or email confirmation fields.\n\nSpecify this setting ONLY into the confirmation field, not in the original field.">help?</a>]</label><br /><select class="equalTo" name="sEqualTo" id="sEqualTo" dvalue="'+v+'" dname="'+name+'"></select></div>';
|
660 |
+
},
|
661 |
+
showRequired: function(v)
|
662 |
+
{
|
663 |
+
return '<div><input type="checkbox" name="sRequired" id="sRequired" '+((v)?"checked":"")+'><label>Required</label></div>';
|
664 |
+
},
|
665 |
+
showSize: function(v)
|
666 |
+
{
|
667 |
+
var str = "";
|
668 |
+
for (var i=0;i<this.sizeList.length;i++)
|
669 |
+
{
|
670 |
+
str += '<option value="'+this.sizeList[i].id+'" '+((this.sizeList[i].id==v)?"selected":"")+'>'+this.sizeList[i].name+'</option>';
|
671 |
+
}
|
672 |
+
return '<label>Field Size</label><br /><select name="sSize" id="sSize">'+str+'</select>';
|
673 |
+
},
|
674 |
+
showLayout: function(v)
|
675 |
+
{
|
676 |
+
var str = "";
|
677 |
+
for (var i=0;i<this.layoutList.length;i++)
|
678 |
+
{
|
679 |
+
str += '<option value="'+this.layoutList[i].id+'" '+((this.layoutList[i].id==v)?"selected":"")+'>'+this.layoutList[i].name+'</option>';
|
680 |
+
}
|
681 |
+
return '<label>Field Layout</label><br /><select name="sLayout" id="sLayout">'+str+'</select>';
|
682 |
+
},
|
683 |
+
showUserhelp: function(v,c)
|
684 |
+
{
|
685 |
+
return '<div><label>Instructions for User</label><textarea class="large" name="sUserhelp" id="sUserhelp">'+v+'</textarea><br /><input type="checkbox" name="sUserhelpTooltip" id="sUserhelpTooltip" '+((c)?"checked":"")+' value="1" > Show as floating tooltip.</div>';
|
686 |
+
},
|
687 |
+
showCsslayout: function(v)
|
688 |
+
{
|
689 |
+
return '<label>Add Css Layout Keywords</label><input class="large" name="sCsslayout" id="sCsslayout" value="'+v+'" />';
|
690 |
+
}
|
691 |
+
};
|
692 |
+
|
693 |
+
$.fbuilder.controls[ 'ffields' ] = function(){};
|
694 |
+
$.extend( $.fbuilder.controls[ 'ffields' ].prototype,
|
695 |
+
{
|
696 |
+
form_identifier:"",
|
697 |
+
name:"",
|
698 |
+
shortlabel:"",
|
699 |
+
index:-1,
|
700 |
+
ftype:"",
|
701 |
+
userhelp:"",
|
702 |
+
userhelpTooltip:false,
|
703 |
+
csslayout:"",
|
704 |
+
init:function(){},
|
705 |
+
editItemEvents:function()
|
706 |
+
{
|
707 |
+
$("#sTitle").bind("keyup", {obj: this}, function(e)
|
708 |
+
{
|
709 |
+
var str = $(this).val();
|
710 |
+
e.data.obj.title = str.replace(/\n/g,"<br />");
|
711 |
+
$.fbuilder.reloadItems();
|
712 |
+
});
|
713 |
+
|
714 |
+
$("#sShortlabel").bind("keyup", {obj: this}, function(e)
|
715 |
+
{
|
716 |
+
e.data.obj.shortlabel = $(this).val();
|
717 |
+
$.fbuilder.reloadItems();
|
718 |
+
});
|
719 |
+
|
720 |
+
$("#sPredefined").bind("keyup", {obj: this}, function(e)
|
721 |
+
{
|
722 |
+
e.data.obj.predefined = $(this).val();
|
723 |
+
$.fbuilder.reloadItems();
|
724 |
+
});
|
725 |
+
|
726 |
+
$("#sPredefinedClick").bind("click", {obj: this}, function(e)
|
727 |
+
{
|
728 |
+
e.data.obj.predefinedClick = $(this).is(':checked');
|
729 |
+
$.fbuilder.reloadItems();
|
730 |
+
});
|
731 |
+
|
732 |
+
$("#sRequired").bind("click", {obj: this}, function(e)
|
733 |
+
{
|
734 |
+
e.data.obj.required = $(this).is(':checked');
|
735 |
+
$.fbuilder.reloadItems();
|
736 |
+
});
|
737 |
+
|
738 |
+
$("#sUserhelp").bind("keyup", {obj: this}, function(e)
|
739 |
+
{
|
740 |
+
e.data.obj.userhelp = $(this).val();
|
741 |
+
$.fbuilder.reloadItems();
|
742 |
+
});
|
743 |
+
|
744 |
+
$("#sUserhelpTooltip").bind("click", {obj: this}, function(e)
|
745 |
+
{
|
746 |
+
e.data.obj.userhelpTooltip = $(this).is(':checked');
|
747 |
+
$.fbuilder.reloadItems();
|
748 |
+
});
|
749 |
+
|
750 |
+
$("#sCsslayout").bind("keyup", {obj: this}, function(e)
|
751 |
+
{
|
752 |
+
e.data.obj.csslayout = $(this).val();
|
753 |
+
$.fbuilder.reloadItems();
|
754 |
+
});
|
755 |
+
|
756 |
+
$(".helpfbuilder").click(function()
|
757 |
+
{
|
758 |
+
alert($(this).attr("text"));
|
759 |
+
});
|
760 |
+
},
|
761 |
+
|
762 |
+
showSpecialData:function()
|
763 |
+
{
|
764 |
+
if(typeof this.showSpecialDataInstance != 'undefined')
|
765 |
+
{
|
766 |
+
return this.showSpecialDataInstance();
|
767 |
+
}
|
768 |
+
else
|
769 |
+
{
|
770 |
+
return "";
|
771 |
+
}
|
772 |
+
},
|
773 |
+
|
774 |
+
showEqualTo:function()
|
775 |
+
{
|
776 |
+
if(typeof this.equalTo != 'undefined')
|
777 |
+
{
|
778 |
+
return $.fbuilder.showSettings.showEqualTo(this.equalTo,this.name);
|
779 |
+
}
|
780 |
+
else
|
781 |
+
{
|
782 |
+
return "";
|
783 |
+
}
|
784 |
+
},
|
785 |
+
|
786 |
+
showPredefined:function()
|
787 |
+
{
|
788 |
+
if(typeof this.predefined != 'undefined')
|
789 |
+
{
|
790 |
+
return $.fbuilder.showSettings.showPredefined(this.predefined,this.predefinedClick);
|
791 |
+
}
|
792 |
+
else
|
793 |
+
{
|
794 |
+
return "";
|
795 |
+
}
|
796 |
+
},
|
797 |
+
|
798 |
+
showRequired:function()
|
799 |
+
{
|
800 |
+
if(typeof this.required != 'undefined')
|
801 |
+
{
|
802 |
+
return $.fbuilder.showSettings.showRequired(this.required);
|
803 |
+
}
|
804 |
+
else
|
805 |
+
{
|
806 |
+
return "";
|
807 |
+
}
|
808 |
+
},
|
809 |
+
|
810 |
+
showSize:function()
|
811 |
+
{
|
812 |
+
if(typeof this.size != 'undefined')
|
813 |
+
{
|
814 |
+
return $.fbuilder.showSettings.showSize(this.size);
|
815 |
+
}
|
816 |
+
else
|
817 |
+
{
|
818 |
+
return "";
|
819 |
+
}
|
820 |
+
},
|
821 |
+
|
822 |
+
showLayout:function()
|
823 |
+
{
|
824 |
+
if(typeof this.layout != 'undefined')
|
825 |
+
{
|
826 |
+
return $.fbuilder.showSettings.showLayout(this.layout);
|
827 |
+
}
|
828 |
+
else
|
829 |
+
{
|
830 |
+
return "";
|
831 |
+
}
|
832 |
+
},
|
833 |
+
|
834 |
+
showRange:function()
|
835 |
+
{
|
836 |
+
if(typeof this.min != 'undefined')
|
837 |
+
{
|
838 |
+
return this.showRangeIntance();
|
839 |
+
}
|
840 |
+
else
|
841 |
+
{
|
842 |
+
return "";
|
843 |
+
}
|
844 |
+
},
|
845 |
+
|
846 |
+
showFormat:function()
|
847 |
+
{
|
848 |
+
if(typeof this.dformat != 'undefined')
|
849 |
+
{
|
850 |
+
try
|
851 |
+
{
|
852 |
+
return this.showFormatIntance();
|
853 |
+
} catch(e) {return "";}
|
854 |
+
}
|
855 |
+
else
|
856 |
+
{
|
857 |
+
return "";
|
858 |
+
}
|
859 |
+
},
|
860 |
+
|
861 |
+
showChoice:function()
|
862 |
+
{
|
863 |
+
if(typeof this.choices != 'undefined')
|
864 |
+
{
|
865 |
+
return this.showChoiceIntance();
|
866 |
+
}
|
867 |
+
else
|
868 |
+
{
|
869 |
+
return "";
|
870 |
+
}
|
871 |
+
},
|
872 |
+
|
873 |
+
showUserhelp:function()
|
874 |
+
{
|
875 |
+
return $.fbuilder.showSettings.showUserhelp(this.userhelp,this.userhelpTooltip);
|
876 |
+
},
|
877 |
+
|
878 |
+
showCsslayout:function()
|
879 |
+
{
|
880 |
+
return $.fbuilder.showSettings.showCsslayout(this.csslayout);
|
881 |
+
},
|
882 |
+
|
883 |
+
showAllSettings:function()
|
884 |
+
{
|
885 |
+
return this.showFieldType()+this.showTitle()+this.showShortLabel()+this.showName()+this.showSize()+this.showLayout()+this.showFormat()+this.showRange()+this.showRequired()+this.showSpecialData()+this.showEqualTo()+this.showPredefined()+this.showChoice()+this.showUserhelp()+this.showCsslayout();
|
886 |
+
},
|
887 |
+
|
888 |
+
showFieldType:function()
|
889 |
+
{
|
890 |
+
return $.fbuilder.showSettings.showFieldType(this.ftype);
|
891 |
+
},
|
892 |
+
|
893 |
+
showTitle:function()
|
894 |
+
{
|
895 |
+
return $.fbuilder.showSettings.showTitle(this.title);
|
896 |
+
},
|
897 |
+
|
898 |
+
showName:function()
|
899 |
+
{
|
900 |
+
return $.fbuilder.showSettings.showName(this.name);
|
901 |
+
},
|
902 |
+
|
903 |
+
showShortLabel:function()
|
904 |
+
{
|
905 |
+
return $.fbuilder.showSettings.showShortLabel(this.shortlabel);
|
906 |
+
},
|
907 |
+
|
908 |
+
display:function()
|
909 |
+
{
|
910 |
+
return 'Not available yet';
|
911 |
+
},
|
912 |
+
|
913 |
+
show:function()
|
914 |
+
{
|
915 |
+
return 'Not available yet';
|
916 |
+
}
|
917 |
+
}
|
918 |
+
);
|
js/fbuilder-pro-public.jquery.js
ADDED
@@ -0,0 +1,338 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder[ 'controls' ] = ( typeof $.fbuilder[ 'controls' ] != 'undefined' ) ? $.fbuilder[ 'controls' ]: {};
|
2 |
+
$.fbuilder[ 'forms' ] = ( typeof $.fbuilder[ 'forms' ] != 'undefined' ) ? $.fbuilder[ 'forms' ]: {};
|
3 |
+
|
4 |
+
$.fbuilder[ 'htmlEncode' ] = function(value)
|
5 |
+
{
|
6 |
+
value = $('<div/>').text(value).html()
|
7 |
+
value = value.replace( /&/g, '&').replace(/"/g, """);
|
8 |
+
return value;
|
9 |
+
};
|
10 |
+
|
11 |
+
$.fbuilder[ 'escape_symbol' ] = function( value ) // Escape the symbols used in regulars expressions
|
12 |
+
{
|
13 |
+
return value.replace(/([\^\$\-\.\,\[\]\(\)\/\\\*\?\+\!\{\}])/g, "\\$1");
|
14 |
+
};
|
15 |
+
|
16 |
+
$.fbuilder[ 'parseValStr' ] = function( value )
|
17 |
+
{
|
18 |
+
return '"' + value.replace(/'/g, "\\'").replace( /\$/g, '') + '"';
|
19 |
+
};
|
20 |
+
|
21 |
+
$.fbuilder[ 'parseVal' ] = function( value, thousandSeparator, decimalSymbol )
|
22 |
+
{
|
23 |
+
if( value == '' ) return 0;
|
24 |
+
value += '';
|
25 |
+
|
26 |
+
thousandSeparator = new RegExp( $.fbuilder.escape_symbol( ( typeof thousandSeparator == 'undefined' ) ? ',' : thousandSeparator ), 'g' );
|
27 |
+
decimalSymbol = new RegExp( $.fbuilder.escape_symbol( ( typeof decimalSymbol == 'undefined' ) ? '.' : decimalSymbol ), 'g' );
|
28 |
+
|
29 |
+
var t = value.replace( thousandSeparator, '' ).replace( decimalSymbol, '.' ).replace( /\s/g, '' ),
|
30 |
+
p = /[+-]?((\d+(\.\d+)?)|(\.\d+))/.exec( t );
|
31 |
+
|
32 |
+
return ( p ) ? p[0]*1 : $.fbuilder[ 'parseValStr' ]( value );
|
33 |
+
};
|
34 |
+
|
35 |
+
|
36 |
+
$.fn.fbuilder = function(options){
|
37 |
+
var opt = $.extend({},
|
38 |
+
{
|
39 |
+
pub:false,
|
40 |
+
identifier:"",
|
41 |
+
title:""
|
42 |
+
},options, true);
|
43 |
+
|
44 |
+
opt.messages = $.extend({
|
45 |
+
previous: "Previous",
|
46 |
+
next: "Next",
|
47 |
+
pageof: "Page {0} of {0}",
|
48 |
+
required: "This field is required.",
|
49 |
+
email: "Please enter a valid email address.",
|
50 |
+
datemmddyyyy: "Please enter a valid date with this format(mm/dd/yyyy)",
|
51 |
+
dateddmmyyyy: "Please enter a valid date with this format(dd/mm/yyyy)",
|
52 |
+
number: "Please enter a valid number.",
|
53 |
+
digits: "Please enter only digits.",
|
54 |
+
maxlength: $.validator.format("Please enter no more than {0} characters"),
|
55 |
+
minlength: $.validator.format("Please enter at least {0} characters."),
|
56 |
+
equalTo: "Please enter the same value again.",
|
57 |
+
max: $.validator.format("Please enter a value less than or equal to {0}."),
|
58 |
+
min: $.validator.format("Please enter a value greater than or equal to {0}.")
|
59 |
+
},opt.messages);
|
60 |
+
|
61 |
+
opt.messages.max = $.validator.format(opt.messages.max);
|
62 |
+
opt.messages.min = $.validator.format(opt.messages.min);
|
63 |
+
|
64 |
+
$.extend($.validator.messages, opt.messages);
|
65 |
+
|
66 |
+
var items = [];
|
67 |
+
var reloadItemsPublic = function()
|
68 |
+
{
|
69 |
+
$("#fieldlist"+opt.identifier).closest( 'form' ).addClass( theForm.formtemplate );
|
70 |
+
$("#fieldlist"+opt.identifier).html("").addClass(theForm.formlayout);
|
71 |
+
$("#formheader"+opt.identifier).html(theForm.show());
|
72 |
+
|
73 |
+
var page = 0;
|
74 |
+
$("#fieldlist"+opt.identifier).append('<div class="pb'+page+' pbreak" page="'+page+'"></div>');
|
75 |
+
for (var i=0;i<items.length;i++)
|
76 |
+
{
|
77 |
+
items[i].index = i;
|
78 |
+
if (items[i].ftype=="fPageBreak")
|
79 |
+
{
|
80 |
+
page++;
|
81 |
+
$("#fieldlist"+opt.identifier).append('<div class="pb'+page+' pbreak" page="'+page+'"></div>');
|
82 |
+
}
|
83 |
+
else
|
84 |
+
{
|
85 |
+
$("#fieldlist"+opt.identifier+" .pb"+page).append(items[i].show());
|
86 |
+
if (items[i].predefinedClick)
|
87 |
+
{
|
88 |
+
$("#fieldlist"+opt.identifier+" .pb"+page).find("#"+items[i].name).attr("placeholder",items[i].predefined);
|
89 |
+
$("#fieldlist"+opt.identifier+" .pb"+page).find("#"+items[i].name).attr("value","");
|
90 |
+
}
|
91 |
+
if (items[i].userhelpTooltip)
|
92 |
+
{
|
93 |
+
var uh = $("#fieldlist"+opt.identifier+" .pb"+page).find("#"+items[i].name).closest(".fields");
|
94 |
+
uh.find(".uh").css("display","none");
|
95 |
+
if (uh.find(".uh").text()!="")
|
96 |
+
{
|
97 |
+
uh.attr("uh",uh.find(".uh").text());
|
98 |
+
}
|
99 |
+
}
|
100 |
+
}
|
101 |
+
}
|
102 |
+
|
103 |
+
if (page>0)
|
104 |
+
{
|
105 |
+
|
106 |
+
$("#fieldlist"+opt.identifier+" .pb"+page).addClass("pbEnd");
|
107 |
+
$("#fieldlist"+opt.identifier+" .pbreak").each(function(index) {
|
108 |
+
var code = $(this).html();
|
109 |
+
var bSubmit = '';
|
110 |
+
|
111 |
+
if (index == page)
|
112 |
+
{
|
113 |
+
|
114 |
+
if ( $( "#cpcaptchalayer"+opt.identifier ).length && !/^\s*$/.test( $( "#cpcaptchalayer"+opt.identifier ).html() ) )
|
115 |
+
{
|
116 |
+
code += '<div class="captcha">'+$("#cpcaptchalayer"+opt.identifier).html()+'</div><div class="clearer"></div>';
|
117 |
+
$("#cpcaptchalayer"+opt.identifier).html("");
|
118 |
+
}
|
119 |
+
if ($("#cp_subbtn"+opt.identifier).html())
|
120 |
+
{
|
121 |
+
bSubmit = '<div class="pbSubmit">'+$("#cp_subbtn"+opt.identifier).html()+'</div>';
|
122 |
+
}
|
123 |
+
}
|
124 |
+
$(this).html('<fieldset><legend>'+opt.messages.pageof.replace( /\{\s*\d+\s*\}/, (index+1) ).replace( /\{\s*\d+\s*\}/, (page+1) )+'</legend>'+code+'<div class="pbPrevious">'+opt.messages.previous+'</div><div class="pbNext">'+opt.messages.next+'</div>'+bSubmit+'<div class="clearer"></div></fieldset>');
|
125 |
+
});
|
126 |
+
$( '#fieldlist'+opt.identifier).find(".pbPrevious,.pbNext").bind("click", { 'identifier' : opt.identifier }, function( evt ) {
|
127 |
+
var identifier = evt.data.identifier;
|
128 |
+
if ( ($(this).hasClass("pbPrevious")) || (($(this).hasClass("pbNext")) && $(this).parents("form").valid()) )
|
129 |
+
{
|
130 |
+
var page = parseInt($(this).parents(".pbreak").attr("page"));
|
131 |
+
|
132 |
+
(($(this).hasClass("pbPrevious"))?page--:page++);
|
133 |
+
$("#fieldlist"+identifier+" .pbreak").css("display","none");
|
134 |
+
$("#fieldlist"+identifier+" .pbreak").find(".field").addClass("ignorepb");
|
135 |
+
|
136 |
+
$("#fieldlist"+identifier+" .pb"+page).css("display","block");
|
137 |
+
$("#fieldlist"+identifier+" .pb"+page).find(".field").removeClass("ignorepb");
|
138 |
+
if ($("#fieldlist"+identifier+" .pb"+page).find(".field").length>0)
|
139 |
+
{
|
140 |
+
try
|
141 |
+
{
|
142 |
+
$("#fieldlist"+identifier+" .pb"+page).find(".field")[0].focus();
|
143 |
+
}
|
144 |
+
catch(e){}
|
145 |
+
}
|
146 |
+
}
|
147 |
+
else
|
148 |
+
{
|
149 |
+
$(this).parents("form").validate().focusInvalid();
|
150 |
+
}
|
151 |
+
return false;
|
152 |
+
});
|
153 |
+
}
|
154 |
+
else
|
155 |
+
{
|
156 |
+
if ( $( "#cpcaptchalayer"+opt.identifier ).length && !/^\s*$/.test( $( "#cpcaptchalayer"+opt.identifier ).html() ) )
|
157 |
+
{
|
158 |
+
$("#fieldlist"+opt.identifier+" .pb"+page).append('<div class="captcha">'+$("#cpcaptchalayer"+opt.identifier).html()+'</div>');
|
159 |
+
$("#cpcaptchalayer"+opt.identifier).html("");
|
160 |
+
}
|
161 |
+
if ($("#cp_subbtn"+opt.identifier).html())
|
162 |
+
{
|
163 |
+
$("#fieldlist"+opt.identifier+" .pb"+page).append('<div class="pbSubmit">'+$("#cp_subbtn"+opt.identifier).html()+'</div>');
|
164 |
+
}
|
165 |
+
}
|
166 |
+
|
167 |
+
// Set Captcha Event
|
168 |
+
$( document ).on( 'click', '#fbuilder .captcha img', function(){ var e = $( this ); e.attr( 'src', e.attr( 'src' ).replace( /&\d+$/, '' ) + '&' + Math.floor( Math.random()*1000 ) ); } );
|
169 |
+
|
170 |
+
$( '#fieldlist'+opt.identifier).find(".pbSubmit").bind("click", { 'identifier' : opt.identifier }, function( evt )
|
171 |
+
{
|
172 |
+
$(this).closest("form").submit();
|
173 |
+
});
|
174 |
+
|
175 |
+
if (i>0)
|
176 |
+
{
|
177 |
+
theForm.after_show( opt.identifier );
|
178 |
+
for (var i=0;i<items.length;i++)
|
179 |
+
{
|
180 |
+
items[i].after_show();
|
181 |
+
}
|
182 |
+
|
183 |
+
$.fbuilder.showHideDep(
|
184 |
+
{
|
185 |
+
'formIdentifier' : opt.identifier,
|
186 |
+
'throwEvent' : true
|
187 |
+
}
|
188 |
+
);
|
189 |
+
|
190 |
+
$( '#fieldlist'+opt.identifier).find(".depItemSel,.depItem").bind("change", { 'identifier' : opt.identifier }, function( evt )
|
191 |
+
{
|
192 |
+
$.fbuilder.showHideDep(
|
193 |
+
{
|
194 |
+
'formIdentifier' : evt.data.identifier,
|
195 |
+
'throwEvent' : true
|
196 |
+
}
|
197 |
+
);
|
198 |
+
});
|
199 |
+
try
|
200 |
+
{
|
201 |
+
$( "#fbuilder"+opt.identifier ).tooltip({show: false,hide:false,tooltipClass:"uh-tooltip",position: { my: "left top", at: "left bottom+5", collision: "none" },items: "[uh]",content: function (){return $(this).attr("uh");} });
|
202 |
+
} catch(e){}
|
203 |
+
}
|
204 |
+
$("#fieldlist"+opt.identifier+" .pbreak:not(.pb0)").find(".field").addClass("ignorepb");
|
205 |
+
};
|
206 |
+
|
207 |
+
var fform=function(){};
|
208 |
+
$.extend(fform.prototype,
|
209 |
+
{
|
210 |
+
title:"Untitled Form",
|
211 |
+
description:"This is my form. Please fill it out. It's awesome!",
|
212 |
+
formlayout:"top_aligned",
|
213 |
+
formtemplate:"",
|
214 |
+
evalequations:1,
|
215 |
+
autocomplete:1,
|
216 |
+
show:function(){
|
217 |
+
return '<div class="fform" id="field"><h1>'+this.title+'</h1><span>'+this.description+'</span></div>';
|
218 |
+
},
|
219 |
+
after_show:function( id ){
|
220 |
+
$( '#cp_calculatedfieldsf_pform'+id ).attr( 'data-evalequations', this.evalequations ).attr( 'autocomplete', ( ( this.autocomplete ) ? 'on' : 'off' ) );
|
221 |
+
}
|
222 |
+
});
|
223 |
+
|
224 |
+
//var theForm = new fform(),
|
225 |
+
var theForm,
|
226 |
+
ffunct = {
|
227 |
+
getItem: function( name )
|
228 |
+
{
|
229 |
+
for( var i in items )
|
230 |
+
{
|
231 |
+
if( items[ i ].name == name )
|
232 |
+
{
|
233 |
+
return items[ i ];
|
234 |
+
}
|
235 |
+
}
|
236 |
+
return false;
|
237 |
+
},
|
238 |
+
getItems: function()
|
239 |
+
{
|
240 |
+
return items;
|
241 |
+
},
|
242 |
+
loadData:function(f)
|
243 |
+
{
|
244 |
+
var d,
|
245 |
+
e = $("#"+f);
|
246 |
+
|
247 |
+
this.formId = e.parents( 'form' ).attr( 'id' );
|
248 |
+
if ( d = $.parseJSON( e.val() ))
|
249 |
+
{
|
250 |
+
if (d.length==2)
|
251 |
+
{
|
252 |
+
items = [];
|
253 |
+
for (var i=0;i<d[0].length;i++)
|
254 |
+
{
|
255 |
+
var obj = eval("new $.fbuilder.controls['"+d[0][i].ftype+"']();");
|
256 |
+
obj = $.extend(true, {}, obj,d[0][i]);
|
257 |
+
obj.name = obj.name+opt.identifier;
|
258 |
+
obj.form_identifier = opt.identifier;
|
259 |
+
obj.init();
|
260 |
+
items[items.length] = obj;
|
261 |
+
}
|
262 |
+
theForm = new fform();
|
263 |
+
theForm = $.extend(theForm,d[1][0]);
|
264 |
+
reloadItemsPublic();
|
265 |
+
}
|
266 |
+
}
|
267 |
+
|
268 |
+
if( typeof window[ 'cpcff_load_defaults' ] != 'undefined' )
|
269 |
+
{
|
270 |
+
window[ 'cpcff_load_defaults' ]();
|
271 |
+
}
|
272 |
+
}
|
273 |
+
};
|
274 |
+
|
275 |
+
$.fbuilder[ 'forms' ][ opt.identifier ] = ffunct;
|
276 |
+
this.fBuild = ffunct;
|
277 |
+
return this;
|
278 |
+
}; // End fbuilder plugin
|
279 |
+
|
280 |
+
$.fbuilder[ 'showSettings' ] = {
|
281 |
+
formlayoutList : [{id:"top_aligned",name:"Top Aligned"},{id:"left_aligned",name:"Left Aligned"},{id:"right_aligned",name:"Right Aligned"}]
|
282 |
+
};
|
283 |
+
|
284 |
+
$.fbuilder.controls[ 'ffields' ] = function(){};
|
285 |
+
$.extend($.fbuilder.controls[ 'ffields' ].prototype,
|
286 |
+
{
|
287 |
+
form_identifier:"",
|
288 |
+
name:"",
|
289 |
+
shortlabel:"",
|
290 |
+
index:-1,
|
291 |
+
ftype:"",
|
292 |
+
userhelp:"",
|
293 |
+
userhelpTooltip:false,
|
294 |
+
csslayout:"",
|
295 |
+
init:function(){},
|
296 |
+
show:function()
|
297 |
+
{
|
298 |
+
return 'Not available yet';
|
299 |
+
},
|
300 |
+
after_show:function(){},
|
301 |
+
val:function(){
|
302 |
+
var e = $( "[id='" + this.name + "']:not(.ignore)" );
|
303 |
+
if( e.length )
|
304 |
+
{
|
305 |
+
return $.fbuilder.parseVal( $.trim( e.val() ) );
|
306 |
+
}
|
307 |
+
return 0;
|
308 |
+
}
|
309 |
+
});
|
310 |
+
|
311 |
+
$.fbuilder[ 'showHideDep' ] = function( configObj )
|
312 |
+
{
|
313 |
+
if( typeof configObj[ 'formIdentifier' ] !== 'undefined' )
|
314 |
+
{
|
315 |
+
var identifier = configObj[ 'formIdentifier' ];
|
316 |
+
|
317 |
+
if( typeof $.fbuilder[ 'forms' ][ identifier ] != 'undefined' )
|
318 |
+
{
|
319 |
+
var toShow = [],
|
320 |
+
toHide = [],
|
321 |
+
items = $.fbuilder[ 'forms' ][ identifier ].getItems();
|
322 |
+
|
323 |
+
for( var i = 0, h = items.length; i < h; i++ )
|
324 |
+
{
|
325 |
+
if( typeof items[ i ][ 'showHideDep' ] != 'undefined' )
|
326 |
+
{
|
327 |
+
items[ i ][ 'showHideDep' ]( toShow, toHide );
|
328 |
+
}
|
329 |
+
}
|
330 |
+
|
331 |
+
if( typeof configObj[ 'throwEvent' ] == 'undefined' || configObj[ 'throwEvent' ] )
|
332 |
+
{
|
333 |
+
$( document ).trigger( 'showHideDepEvent', $.fbuilder[ 'forms' ][ identifier ][ 'formId' ] );
|
334 |
+
}
|
335 |
+
}
|
336 |
+
}
|
337 |
+
}; // End showHideDep
|
338 |
+
|
js/fields-admin/000_category.form.js
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.categoryList[1]={
|
2 |
+
title : "Form Controls",
|
3 |
+
description : ""
|
4 |
+
};
|
js/fields-admin/001_category.ds.js
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.categoryList[20]={
|
2 |
+
title : "Form Controls with Datasource Connection",
|
3 |
+
description : ""
|
4 |
+
};
|
js/fields-admin/003_category.containers.js
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.categoryList[10]={
|
2 |
+
title : "Container Controls",
|
3 |
+
description : ""
|
4 |
+
};
|
js/fields-admin/00_jquery.parse.min.js
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
Papa Parse
|
3 |
+
v2.0.3
|
4 |
+
https://github.com/mholt/jquery.parse
|
5 |
+
*/
|
6 |
+
;(function(e){"use strict";function t(e){return typeof e==="function"}function n(e,t){function a(n){var r=s+n.target.result;s="";if(r>=t.chunkSize){var u=r.lastIndexOf("\n");if(u<0)u=r.lastIndexOf("\r");if(u>-1){s=r.substring(u+1);r=r.substring(0,u)}}var a=o.parse(r);if(i>=e.size)return f(n);else if(a.errors.abort)return;else c()}function f(n){if(typeof t.onComplete==="function")t.onComplete(undefined,e,t.inputElem,n)}function l(){if(typeof t.onFileError==="function")t.onFileError(u.error,e,t.inputElem)}function c(){if(i<e.size){u.readAsText(e.slice(i,Math.min(i+t.chunkSize,e.size)));i+=t.chunkSize}}if(!t)t={};if(!t.chunkSize)t.chunkSize=1024*1024*5;if(t.config.step){var n=t.config.step;t.config.step=function(r){n(r,e,t.inputElem)}}var i=0;var s="";var o=new r(t.config);var u=new FileReader;u.onload=a;u.onerror=l;this.stream=function(e,n){t.onComplete=e;t.onFileError=n;c()};}function r(e){function c(e){if(typeof e!=="object")e={};if(typeof e.delimiter!=="string"||e.delimiter.length!=1)e.delimiter=f.delimiter;if(e.deimiter=='"'||e.delimiter=="\n")e.delimiter=f.delimiter;if(typeof e.header!=="boolean")e.header=f.header;if(typeof e.dynamicTyping!=="boolean")e.dynamicTyping=f.dynamicTyping;if(typeof e.preview!=="number")e.preview=f.preview;if(typeof e.step!=="function")e.step=f.step;return e}function h(e){var t=[","," ","|",";"];var n,i,s;for(var o in t){var a=t[o];var f=0,l=0;var c=(new r({delimiter:a,header:false,dynamicTyping:false,preview:10})).parse(e);for(var h in c.results){var p=c.results[h].length;l+=p;if(typeof s==="undefined"){s=p;continue}else if(p>1){f+=Math.abs(p-s);s=p}}l/=c.results.length;if((typeof i==="undefined"||f<i)&&l>1.99){i=f;n=a}}u.delimiter=n;return!!n}function p(){var e=a.i>0&&g(a.i-1)||a.i==0;var t=a.i<i.length-1&&g(a.i+1)||a.i==i.length-1;var n=a.i<i.length-1&&i[a.i+1]=='"';if(a.inQuotes&&n){a.fieldVal+='"';a.i++}else if(e||t)a.inQuotes=!a.inQuotes;else C("Quotes","UnexpectedQuotes","Unexpected quotes")}function d(){v()}function v(){a.fieldVal+=a.ch}function m(){if(a.ch==u.delimiter)b();else if(a.ch=="\r"&&a.i<i.length-1&&i[a.i+1]=="\n"||a.ch=="\n"&&a.i<i.length-1&&i[a.i+1]=="\r"){w();a.i++}else if(a.ch=="\n"||a.ch=="\r")w();else v()}function g(e){if(e>=i.length)return false;var t=i[e];if(t==u.delimiter||t=="\n"||t=="\r"&&e<i.length-1&&i[e+1]=="\n")return true;else return false}function y(e){if(e>=i.length)return false;if(e<i.length-1)return i[e]=="\n"||i[e]=="\r"&&i[e+1]=="\n";else return i[e]=="\n"}function b(){if(u.header){if(a.lineNum==1&&n==1)a.parsed.fields.push(a.fieldVal);else{var e=a.parsed.rows[a.parsed.rows.length-1];var t=a.parsed.fields[a.field];if(t){if(u.dynamicTyping)a.fieldVal=x(a.fieldVal);e[t]=a.fieldVal}else{if(typeof e.__parsed_extra==="undefined")e.__parsed_extra=[];e.__parsed_extra.push(a.fieldVal)}}}else{if(u.dynamicTyping)a.fieldVal=x(a.fieldVal);a.parsed[a.parsed.length-1].push(a.fieldVal)}a.fieldVal="";a.field++}function w(){E();if(S()){a.errors={};a.errors.length=0}if(u.header&&a.lineNum>0){if(S())a.parsed.rows=[{}];else a.parsed.rows.push({})}else{if(S())a.parsed=[[]];else a.parsed.push([])}a.lineNum++;a.line="";a.field=0}function E(){if(o)return;b();var e=T();if(!e&&u.header)N();if(S()&&(!u.header||u.header&&a.parsed.rows.length>0)){var t=u.step(k());if(t===false)o=true}}function S(){return typeof u.step==="function"}function x(e){var t=l.floats.test(e);return t?parseFloat(e):e}function T(){if(l.empty.test(a.line)){if(u.header){if(a.lineNum==1){a.parsed.fields=[];a.lineNum--}else a.parsed.rows.splice(a.parsed.rows.length-1,1)}else a.parsed.splice(a.parsed.length-1,1);return true}return false}function N(){if(!u.header)return true;if(a.parsed.rows.length==0)return true;var e=a.parsed.fields.length;var t=0;var n=a.parsed.rows[a.parsed.rows.length-1];for(var r in n)if(n.hasOwnProperty(r))t++;if(t<e)return C("FieldMismatch","TooFewFields","Too few fields: expected "+e+" fields but parsed "+t);else if(t>e)return C("FieldMismatch","TooManyFields","Too many fields: expected "+e+" fields but parsed "+t);return true}function C(e,t,n,r){var i=u.header?a.parsed.rows.length?a.parsed.rows.length-1:undefined:a.parsed.length-1;var o=r||i;if(typeof a.errors[o]==="undefined")a.errors[o]=[];a.errors[o].push({type:e,code:t,message:n,line:a.lineNum,row:i,index:a.i+s});a.errors.length++;return false}function k(){return{results:a.parsed,errors:a.errors}}function L(e){n++;if(n>1&&S())s+=e.length;a=A();i=e}function A(){var e;if(u.header){e={fields:S()?a.parsed.fields||[]:[],rows:S()&&n>1?[{}]:[]}}else e=[[]];return{i:0,lineNum:S()?a.lineNum:1,field:0,fieldVal:"",line:"",ch:"",inQuotes:false,parsed:e,errors:{length:0}}}var t=this;var n=0;var i="";var s=0;var o=false;var u={};var a=A();var f={delimiter:"",header:true,dynamicTyping:true,preview:0};var l={floats:/^\s*-?(\d*\.?\d+|\d+\.?\d*)(e[-+]?\d+)?\s*$/i,empty:/^\s*$/};e=c(e);u={delimiter:e.delimiter,header:e.header,dynamicTyping:e.dynamicTyping,preview:e.preview,step:e.step};this.parse=function(e){if(typeof e!=="string")return k();L(e);if(!u.delimiter&&!h(e)){C("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to comma","config");u.delimiter=","}for(a.i=0;a.i<i.length;a.i++){if(o||u.preview>0&&a.lineNum>u.preview)break;a.ch=i[a.i];a.line+=a.ch;if(a.ch=='"')p();else if(a.inQuotes)d();else m()}if(o)C("Abort","ParseAbort","Parsing was aborted by the user's step function","abort");else{E();if(a.inQuotes)C("Quotes","MissingQuotes","Unescaped or mismatched quotes")}return k()};this.getOptions=function(){return{delimiter:u.delimiter,header:u.header,dynamicTyping:u.dynamicTyping,preview:u.preview,step:u.step}}}e.fn.parse=function(r){function o(i){var s=a,o;if(t(r.error))o=function(){r.error(c.error,i.file,i.inputElem)};if(t(r.complete))s=function(e,t,n,i){r.complete(e,t,n,i);a()};if(t(r.before)){var f=r.before(i.file,i.inputElem);if(typeof f==="object")i.instanceConfig=e.extend(i.instanceConfig,f);else if(f==="skip")return a();else if(f===false){u("AbortError",i.file,i.inputElem);return}}if(i.instanceConfig.step){var l=new n(i.file,{inputElem:i.inputElem,config:e.extend({},i.instanceConfig)});l.stream(s,o)}else{var c=new FileReader;c.onerror=o;c.onload=function(t){var n=t.target.result;var r=e.parse(n,i.instanceConfig);s(r,i.file,i.inputElem,t)};c.readAsText(i.file)}}function u(e,n,i){if(t(r.error))r.error({name:e},n,i)}function a(){s.splice(0,1);if(s.length>0)o(s[0])}var i=r.config||{};var s=[];this.each(function(t){var n=e(this).prop("tagName").toUpperCase()=="INPUT"&&e(this).attr("type")=="file"&&window.FileReader;if(!n)return true;var r=e.extend({},i);if(!this.files||this.files.length==0){u("NoFileError",undefined,this);return true}for(var a=0;a<this.files.length;a++)s.push({file:this.files[a],inputElem:this,instanceConfig:r});if(s.length>0)o(s[0])});return this};e.parse=function(e,t){var n=new r(t);return n.parse(e)}})(jQuery);
|
js/fields-admin/01_fbuilder.ftext.js
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"ftext",
|
4 |
+
name:"Single Line Text",
|
5 |
+
control_category:1
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'ftext' ]=function(){};
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'ftext' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'ffields' ].prototype,
|
12 |
+
{
|
13 |
+
title:"Untitled",
|
14 |
+
ftype:"ftext",
|
15 |
+
predefined:"",
|
16 |
+
predefinedClick:false,
|
17 |
+
required:false,
|
18 |
+
size:"medium",
|
19 |
+
minlength:"",
|
20 |
+
maxlength:"",
|
21 |
+
equalTo:"",
|
22 |
+
display:function()
|
23 |
+
{
|
24 |
+
return '- available only in commercial version of plugin -';
|
25 |
+
},
|
26 |
+
editItemEvents:function()
|
27 |
+
{
|
28 |
+
$.fbuilder.controls[ 'ffields' ].prototype.editItemEvents.call(this);
|
29 |
+
}
|
30 |
+
});
|
js/fields-admin/02_fbuilder.fcurrency.js
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"fcurrency",
|
4 |
+
name:"Currency",
|
5 |
+
control_category:1
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'fcurrency' ] = function(){};
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'fcurrency' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'ffields' ].prototype,
|
12 |
+
{
|
13 |
+
title:"Currency",
|
14 |
+
ftype:"fcurrency",
|
15 |
+
predefined:"",
|
16 |
+
predefinedClick:false,
|
17 |
+
required:false,
|
18 |
+
size:"small",
|
19 |
+
readonly:false,
|
20 |
+
currencySymbol:"$",
|
21 |
+
currencyText:"USD",
|
22 |
+
thousandSeparator:",",
|
23 |
+
centSeparator:".",
|
24 |
+
min:"",
|
25 |
+
max:"",
|
26 |
+
formatDynamically:false,
|
27 |
+
display:function()
|
28 |
+
{
|
29 |
+
return '- available only in commercial version of plugin -';
|
30 |
+
},
|
31 |
+
editItemEvents:function()
|
32 |
+
{
|
33 |
+
$.fbuilder.controls[ 'ffields' ].prototype.editItemEvents.call(this);
|
34 |
+
}
|
35 |
+
});
|
js/fields-admin/02_fbuilder.fnumber.js
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"fnumber",
|
4 |
+
name:"Number",
|
5 |
+
control_category:1
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'fnumber' ] = function(){};
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'fnumber' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'ffields' ].prototype,
|
12 |
+
{
|
13 |
+
title:"Number",
|
14 |
+
ftype:"fnumber",
|
15 |
+
predefined:"",
|
16 |
+
predefinedClick:false,
|
17 |
+
required:false,
|
18 |
+
size:"small",
|
19 |
+
thousandSeparator:"",
|
20 |
+
decimalSymbol:".",
|
21 |
+
min:"",
|
22 |
+
max:"",
|
23 |
+
dformat:"digits",
|
24 |
+
formats:new Array("digits","number"),
|
25 |
+
display:function()
|
26 |
+
{
|
27 |
+
return '- available only in commercial version of plugin -';
|
28 |
+
},
|
29 |
+
editItemEvents:function()
|
30 |
+
{
|
31 |
+
$.fbuilder.controls[ 'ffields' ].prototype.editItemEvents.call(this);
|
32 |
+
}
|
33 |
+
});
|
js/fields-admin/03_fbuilder.femail.js
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"femail",
|
4 |
+
name:"Email",
|
5 |
+
control_category:1
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'femail'] = function(){};
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'femail' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'ffields' ].prototype,
|
12 |
+
{
|
13 |
+
title:"Email",
|
14 |
+
ftype:"femail",
|
15 |
+
predefined:"",
|
16 |
+
predefinedClick:false,
|
17 |
+
required:false,
|
18 |
+
size:"medium",
|
19 |
+
equalTo:"",
|
20 |
+
display:function()
|
21 |
+
{
|
22 |
+
return '<div class="fields '+this.name+'" id="field'+this.form_identifier+'-'+this.index+'"><div class="arrow ui-icon ui-icon-play "></div><div title="Delete" class="remove ui-icon ui-icon-trash "></div><div title="Duplicate" class="copy ui-icon ui-icon-copy "></div><label>'+this.title+''+((this.required)?"*":"")+'</label><div class="dfield"><input class="field disabled '+this.size+'" type="text" value="'+$.fbuilder.htmlEncode(this.predefined)+'"/><span class="uh">'+this.userhelp+'</span></div><div class="clearer"></div></div>';
|
23 |
+
},
|
24 |
+
editItemEvents:function()
|
25 |
+
{
|
26 |
+
$("#sSize").bind("change", {obj: this}, function(e)
|
27 |
+
{
|
28 |
+
e.data.obj.size = $(this).val();
|
29 |
+
$.fbuilder.reloadItems();
|
30 |
+
});
|
31 |
+
$("#sEqualTo").bind("change", {obj: this}, function(e)
|
32 |
+
{
|
33 |
+
e.data.obj.equalTo = $(this).val();
|
34 |
+
$.fbuilder.reloadItems();
|
35 |
+
});
|
36 |
+
var items = this.fBuild.getItems();
|
37 |
+
$('.equalTo').each(function()
|
38 |
+
{
|
39 |
+
var str = '<option value="" '+(("" == $(this).attr("dvalue"))?"selected":"")+'></option>';
|
40 |
+
for (var i=0;i<items.length;i++)
|
41 |
+
{
|
42 |
+
if ((items[i].ftype=="ftext" || items[i].ftype=="femail" || items[i].ftype=="fpassword") && (items[i].name != $(this).attr("dname")))
|
43 |
+
{
|
44 |
+
str += '<option value="'+items[i].name+'" '+((items[i].name == $(this).attr("dvalue"))?"selected":"")+'>'+(items[i].title)+'</option>';
|
45 |
+
}
|
46 |
+
}
|
47 |
+
$(this).html(str);
|
48 |
+
});
|
49 |
+
$.fbuilder.controls[ 'ffields' ].prototype.editItemEvents.call(this);
|
50 |
+
},
|
51 |
+
showSpecialDataInstance: function()
|
52 |
+
{
|
53 |
+
var str = "";
|
54 |
+
return str;
|
55 |
+
}
|
56 |
+
});
|
js/fields-admin/04_fbuilder.fdate.js
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"fdate",
|
4 |
+
name:"Date Time",
|
5 |
+
control_category:1
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'fdate' ] = function(){};
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'fdate' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'ffields' ].prototype,
|
12 |
+
{
|
13 |
+
title:"Date",
|
14 |
+
ftype:"fdate",
|
15 |
+
predefined:"",
|
16 |
+
predefinedClick:false,
|
17 |
+
size:"medium",
|
18 |
+
required:false,
|
19 |
+
dformat:"mm/dd/yyyy",
|
20 |
+
tformat:"24",
|
21 |
+
showDropdown:false,
|
22 |
+
dropdownRange:"-10:+10",
|
23 |
+
|
24 |
+
minDate:"",
|
25 |
+
maxDate:"",
|
26 |
+
invalidDates:"",
|
27 |
+
minHour:0,
|
28 |
+
maxHour:23,
|
29 |
+
minMinute:0,
|
30 |
+
maxMinute:59,
|
31 |
+
|
32 |
+
stepHour: 1,
|
33 |
+
stepMinute: 1,
|
34 |
+
|
35 |
+
showTimepicker: false,
|
36 |
+
|
37 |
+
defaultDate:"",
|
38 |
+
defaultTime:"",
|
39 |
+
working_dates:[true,true,true,true,true,true,true],
|
40 |
+
|
41 |
+
formats:new Array("mm/dd/yyyy","dd/mm/yyyy"),
|
42 |
+
|
43 |
+
display:function()
|
44 |
+
{
|
45 |
+
return '- available only in commercial version of plugin -';
|
46 |
+
},
|
47 |
+
editItemEvents:function()
|
48 |
+
{
|
49 |
+
$.fbuilder.controls[ 'ffields' ].prototype.editItemEvents.call(this);
|
50 |
+
}
|
51 |
+
});
|
js/fields-admin/05_fbuilder.ftextarea.js
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"ftextarea",
|
4 |
+
name:"Text Area",
|
5 |
+
control_category:1
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'ftextarea' ] = function(){};
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'ftextarea' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'ffields' ].prototype,
|
12 |
+
{
|
13 |
+
title:"Untitled",
|
14 |
+
ftype:"ftextarea",
|
15 |
+
predefined:"",
|
16 |
+
predefinedClick:false,
|
17 |
+
required:false,
|
18 |
+
size:"medium",
|
19 |
+
minlength:"",
|
20 |
+
maxlength:"",
|
21 |
+
rows:4,
|
22 |
+
display:function()
|
23 |
+
{
|
24 |
+
return '- available only in commercial version of plugin -';
|
25 |
+
},
|
26 |
+
editItemEvents:function()
|
27 |
+
{
|
28 |
+
$.fbuilder.controls[ 'ffields' ].prototype.editItemEvents.call(this);
|
29 |
+
}
|
30 |
+
});
|
js/fields-admin/06_fbuilder.fcheck.js
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"fcheck",
|
4 |
+
name:"Checkboxes",
|
5 |
+
control_category:1
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'fcheck' ] = function(){};
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'fcheck' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'ffields' ].prototype,
|
12 |
+
{
|
13 |
+
title:"Check All That Apply",
|
14 |
+
ftype:"fcheck",
|
15 |
+
layout:"one_column",
|
16 |
+
required:false,
|
17 |
+
showDep:false,
|
18 |
+
display:function()
|
19 |
+
{
|
20 |
+
return '- available only in commercial version of plugin -';
|
21 |
+
},
|
22 |
+
editItemEvents:function()
|
23 |
+
{
|
24 |
+
$.fbuilder.controls[ 'ffields' ].prototype.editItemEvents.call(this);
|
25 |
+
}
|
26 |
+
});
|
js/fields-admin/07_fbuilder.fradio.js
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"fradio",
|
4 |
+
name:"Radio Buttons",
|
5 |
+
control_category:1
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'fradio' ] = function(){};
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'fradio' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'ffields' ].prototype,
|
12 |
+
{
|
13 |
+
title:"Select a Choice",
|
14 |
+
ftype:"fradio",
|
15 |
+
layout:"one_column",
|
16 |
+
required:false,
|
17 |
+
choiceSelected:"",
|
18 |
+
showDep:false,
|
19 |
+
display:function()
|
20 |
+
{
|
21 |
+
return '- available only in commercial version of plugin -';
|
22 |
+
},
|
23 |
+
editItemEvents:function()
|
24 |
+
{
|
25 |
+
$.fbuilder.controls[ 'ffields' ].prototype.editItemEvents.call(this);
|
26 |
+
}
|
27 |
+
});
|
js/fields-admin/08_fbuilder.fdropdown.js
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"fdropdown",
|
4 |
+
name:"Dropdown",
|
5 |
+
control_category:1
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'fdropdown' ] = function(){};
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'fdropdown' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'ffields' ].prototype,
|
12 |
+
{
|
13 |
+
title:"Select a Choice",
|
14 |
+
ftype:"fdropdown",
|
15 |
+
size:"medium",
|
16 |
+
required:false,
|
17 |
+
choiceSelected:"",
|
18 |
+
showDep:false,
|
19 |
+
display:function()
|
20 |
+
{
|
21 |
+
return '- available only in commercial version of plugin -';
|
22 |
+
},
|
23 |
+
editItemEvents:function()
|
24 |
+
{
|
25 |
+
$.fbuilder.controls[ 'ffields' ].prototype.editItemEvents.call(this);
|
26 |
+
}
|
27 |
+
});
|
js/fields-admin/09_fbuilder.ffile.js
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"ffile",
|
4 |
+
name:"Upload File",
|
5 |
+
control_category:1
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'ffile' ] = function(){};
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'ffile' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'ffields' ].prototype,
|
12 |
+
{
|
13 |
+
title:"Untitled",
|
14 |
+
ftype:"ffile",
|
15 |
+
required:false,
|
16 |
+
size:"medium",
|
17 |
+
accept:"",
|
18 |
+
upload_size:"",
|
19 |
+
multiple:false,
|
20 |
+
display:function()
|
21 |
+
{
|
22 |
+
return '- available only in commercial version of plugin -';
|
23 |
+
},
|
24 |
+
editItemEvents:function()
|
25 |
+
{
|
26 |
+
$.fbuilder.controls[ 'ffields' ].prototype.editItemEvents.call(this);
|
27 |
+
}
|
28 |
+
});
|
js/fields-admin/10_fbuilder.fpassword.js
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"fpassword",
|
4 |
+
name:"Password",
|
5 |
+
control_category:1
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'fpassword' ] = function(){};
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'fpassword' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'ffields' ].prototype,
|
12 |
+
{
|
13 |
+
title:"Untitled",
|
14 |
+
ftype:"fpassword",
|
15 |
+
predefined:"",
|
16 |
+
predefinedClick:false,
|
17 |
+
required:false,
|
18 |
+
size:"medium",
|
19 |
+
minlength:"",
|
20 |
+
maxlength:"",
|
21 |
+
equalTo:"",
|
22 |
+
display:function()
|
23 |
+
{
|
24 |
+
return '- available only in commercial version of plugin -';
|
25 |
+
},
|
26 |
+
editItemEvents:function()
|
27 |
+
{
|
28 |
+
$.fbuilder.controls[ 'ffields' ].prototype.editItemEvents.call(this);
|
29 |
+
}
|
30 |
+
});
|
js/fields-admin/11_fbuilder.fphone.js
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"fPhone",
|
4 |
+
name:"Phone field",
|
5 |
+
control_category:1
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'fPhone' ] = function(){};
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'fPhone' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'ffields' ].prototype,
|
12 |
+
{
|
13 |
+
title:"Phone",
|
14 |
+
ftype:"fPhone",
|
15 |
+
required:false,
|
16 |
+
dformat:"### ### ####",
|
17 |
+
predefined:"888 888 8888",
|
18 |
+
display:function()
|
19 |
+
{
|
20 |
+
return '- available only in commercial version of plugin -';
|
21 |
+
},
|
22 |
+
editItemEvents:function()
|
23 |
+
{
|
24 |
+
$.fbuilder.controls[ 'ffields' ].prototype.editItemEvents.call(this);
|
25 |
+
}
|
26 |
+
});
|
js/fields-admin/12_fbuilder.fcommentarea.js
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"fCommentArea",
|
4 |
+
name:"Instruct. Text",
|
5 |
+
control_category:1
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'fCommentArea' ]=function(){};
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'fCommentArea' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'ffields' ].prototype,
|
12 |
+
{
|
13 |
+
title:"Comments here",
|
14 |
+
ftype:"fCommentArea",
|
15 |
+
userhelp:"A description of the section goes here.",
|
16 |
+
display:function()
|
17 |
+
{
|
18 |
+
return '- available only in commercial version of plugin -';
|
19 |
+
},
|
20 |
+
editItemEvents:function()
|
21 |
+
{
|
22 |
+
$.fbuilder.controls[ 'ffields' ].prototype.editItemEvents.call(this);
|
23 |
+
}
|
24 |
+
});
|
js/fields-admin/13_fbuilder.fhidden.js
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"fhidden",
|
4 |
+
name:"Hidden",
|
5 |
+
control_category:1
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'fhidden' ]=function(){};
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'fhidden' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'ffields' ].prototype,
|
12 |
+
{
|
13 |
+
title:"Hidden",
|
14 |
+
ftype:"fhidden",
|
15 |
+
predefined:"",
|
16 |
+
display:function()
|
17 |
+
{
|
18 |
+
return '- available only in commercial version of plugin -';
|
19 |
+
},
|
20 |
+
editItemEvents:function()
|
21 |
+
{
|
22 |
+
$.fbuilder.controls[ 'ffields' ].prototype.editItemEvents.call(this);
|
23 |
+
}
|
24 |
+
});
|
js/fields-admin/14_fbuilder.fsectionbreak.js
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"fSectionBreak",
|
4 |
+
name:"Section break",
|
5 |
+
control_category:1
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'fSectionBreak' ] = function(){};
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'fSectionBreak' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'ffields' ].prototype,
|
12 |
+
{
|
13 |
+
title:"Section Break",
|
14 |
+
ftype:"fSectionBreak",
|
15 |
+
userhelp:"A description of the section goes here.",
|
16 |
+
display:function()
|
17 |
+
{
|
18 |
+
return '- available only in commercial version of plugin -';
|
19 |
+
},
|
20 |
+
editItemEvents:function()
|
21 |
+
{
|
22 |
+
$.fbuilder.controls[ 'ffields' ].prototype.editItemEvents.call(this);
|
23 |
+
}
|
24 |
+
});
|
js/fields-admin/15_fbuilder.fpagebreak.js
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"fPageBreak",
|
4 |
+
name:"Page break",
|
5 |
+
control_category:1
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'fPageBreak' ] = function(){};
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'fPageBreak' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'ffields' ].prototype,
|
12 |
+
{
|
13 |
+
title:"Page Break",
|
14 |
+
ftype:"fPageBreak",
|
15 |
+
display:function()
|
16 |
+
{
|
17 |
+
return '- available only in commercial version of plugin -';
|
18 |
+
},
|
19 |
+
editItemEvents:function()
|
20 |
+
{
|
21 |
+
$.fbuilder.controls[ 'ffields' ].prototype.editItemEvents.call(this);
|
22 |
+
}
|
23 |
+
});
|
js/fields-admin/16_fbuilder.fsummary.js
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"fsummary",
|
4 |
+
name:"Summary",
|
5 |
+
control_category:1
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'fsummary' ] = function(){};
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'fsummary' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'ffields' ].prototype,
|
12 |
+
{
|
13 |
+
title:"Summary",
|
14 |
+
ftype:"fsummary",
|
15 |
+
fields:"",
|
16 |
+
titleClassname:"summary-field-title",
|
17 |
+
valueClassname:"summary-field-value",
|
18 |
+
display:function()
|
19 |
+
{
|
20 |
+
return '- available only in commercial version of plugin -';
|
21 |
+
},
|
22 |
+
editItemEvents:function()
|
23 |
+
{
|
24 |
+
$.fbuilder.controls[ 'ffields' ].prototype.editItemEvents.call(this);
|
25 |
+
}
|
26 |
+
});
|
js/fields-admin/17_fbuilder.datasource.js
ADDED
@@ -0,0 +1,560 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.controls[ 'datasource' ] = function(){
|
2 |
+
this.list = {
|
3 |
+
'database' : {
|
4 |
+
title : 'Database',
|
5 |
+
databaseData: {
|
6 |
+
host: '',
|
7 |
+
user: '',
|
8 |
+
pass: '',
|
9 |
+
database: ''
|
10 |
+
},
|
11 |
+
queryData : {
|
12 |
+
active: 'structure',
|
13 |
+
query: '',
|
14 |
+
value: '',
|
15 |
+
text: '',
|
16 |
+
table: '',
|
17 |
+
where: '',
|
18 |
+
orderby: '',
|
19 |
+
limit: ''
|
20 |
+
},
|
21 |
+
show : function( type ) // Type can be 'pair' or 'single', for 'pair' are shown options for text and value, for 'single' is shown only the option for value
|
22 |
+
{
|
23 |
+
var str = '<div>Database Connection</div>';
|
24 |
+
str += '<div><label>Host:<label><input class="large" name="sHost" id="sHost" value="' + this.databaseData.host + '" /></div>';
|
25 |
+
str += '<div><label>Username:<label><input class="large" name="sUser" id="sUser" value="' + this.databaseData.user + '" /></div>';
|
26 |
+
str += '<div><label>Password:<label><input class="large" name="sPass" id="sPass" value="' + this.databaseData.pass + '" /></div>';
|
27 |
+
str += '<div><label>Database:<label><input class="large" name="sDatabase" id="sDatabase" value="' + this.databaseData.database + '" /></div>';
|
28 |
+
str += '<div><input type="button" class="button" name="sTestConnection" id="sTestConnection" value="Test Connection" style="float:right;margin:5px 0;" /></div>';
|
29 |
+
str += '<div style="clear:both;"></div>';
|
30 |
+
|
31 |
+
str += '<div><label><input type="radio" name="sQueryType" id="sQueryType" value="structure" ' + ( ( this.queryData.active == 'structure' ) ? 'CHECKED' : '' ) + ' /> Query Structure</label><label><input type="radio" name="sQueryType" id="sQueryType" value="query" ' + ( ( this.queryData.active == 'query' ) ? 'CHECKED' : '' ) + ' /> Custom Query</label></div>';
|
32 |
+
|
33 |
+
str += '<div id="databaseQueryData_structure" class="queryType" style="display:' + ( ( this.queryData.active == 'structure' ) ? 'block' : 'none' ) + ';" >';
|
34 |
+
str += '<div><label>Column for values:<label><input class="large" name="sQueryValue" id="sQueryValue" value="' + this.queryData.value + '" /></div>';
|
35 |
+
if( type == 'pair' )
|
36 |
+
{
|
37 |
+
str += '<div><label>Column for texts:<label><input class="large" name="sQueryText" id="sQueryText" value="' + this.queryData.text + '" /></div>';
|
38 |
+
}
|
39 |
+
str += '<div><label>Table name:<label><input class="large" name="sQueryTable" id="sQueryTable" value="' + this.queryData.table + '" /></div>';
|
40 |
+
str += '<div><label>Condition:<label><input class="large" name="sQueryWhere" id="sQueryWhere" value="' + this.queryData.where + '" /></div>';
|
41 |
+
str += '<div><label>Order by:<label><input class="large" name="sQueryOrderBy" id="sQueryOrderBy" value="' + this.queryData.orderby + '" /></div>';
|
42 |
+
str += '<div><label>Limit:<label><input class="large" name="sQueryLimit" id="sQueryLimit" value="' + this.queryData.limit + '" /></div>';
|
43 |
+
str += '</div>';
|
44 |
+
|
45 |
+
str += '<div id="databaseQueryData_query" class="queryType" style="display:' + ( ( this.queryData.active == 'query' ) ? 'block' : 'none' ) + ';" >';
|
46 |
+
str += '<div><label>Type the query:<label><input class="large" name="sCustomQuery" id="sCustomQuery" value="' + this.queryData.query + '" /></div>';
|
47 |
+
str += '</div>';
|
48 |
+
|
49 |
+
str += '<div><input type="button" class="button" name="sTestQuery" id="sTestQuery" value="Test Query" style="float:right;margin:5px 0;" /></div>';
|
50 |
+
str += '<div style="clear:both;"></div>';
|
51 |
+
|
52 |
+
return str;
|
53 |
+
},
|
54 |
+
events : function()
|
55 |
+
{
|
56 |
+
$( '#sHost' ).bind( 'keyup change', { obj: this }, function( e )
|
57 |
+
{
|
58 |
+
e.data.obj.databaseData.host = $.trim( $(this).val() );
|
59 |
+
$.fbuilder.reloadItems();
|
60 |
+
});
|
61 |
+
$( '#sUser' ).bind( 'keyup change', { obj: this }, function( e )
|
62 |
+
{
|
63 |
+
e.data.obj.databaseData.user = $.trim( $(this).val() );
|
64 |
+
$.fbuilder.reloadItems();
|
65 |
+
});
|
66 |
+
$( '#sPass' ).bind( 'keyup change', { obj: this }, function( e )
|
67 |
+
{
|
68 |
+
e.data.obj.databaseData.pass = $.trim( $(this).val() );
|
69 |
+
$.fbuilder.reloadItems();
|
70 |
+
});
|
71 |
+
$( '#sDatabase' ).bind( 'keyup change', { obj: this }, function( e )
|
72 |
+
{
|
73 |
+
e.data.obj.databaseData.database = $.trim( $(this).val() );
|
74 |
+
$.fbuilder.reloadItems();
|
75 |
+
});
|
76 |
+
$( '[name="sQueryType"]' ).bind( "click", { obj: this }, function( e )
|
77 |
+
{
|
78 |
+
$( '.queryType' ).hide();
|
79 |
+
$( '#databaseQueryData_'+e.target.value ).show();
|
80 |
+
e.data.obj.queryData.active = $.trim( $(this).val() );
|
81 |
+
});
|
82 |
+
$( '#sQueryValue' ).bind( 'keyup change', { obj: this }, function( e )
|
83 |
+
{
|
84 |
+
e.data.obj.queryData.value = $.trim( $(this).val() );
|
85 |
+
$.fbuilder.reloadItems();
|
86 |
+
});
|
87 |
+
$( '#sQueryText' ).bind( 'keyup change', { obj: this }, function( e )
|
88 |
+
{
|
89 |
+
e.data.obj.queryData.text = $.trim( $(this).val() );
|
90 |
+
$.fbuilder.reloadItems();
|
91 |
+
});
|
92 |
+
$( '#sQueryTable' ).bind( 'keyup change', { obj: this }, function( e )
|
93 |
+
{
|
94 |
+
e.data.obj.queryData.table = $.trim( $(this).val() );
|
95 |
+
$.fbuilder.reloadItems();
|
96 |
+
});
|
97 |
+
$( '#sQueryWhere' ).bind( 'keyup change', { obj: this }, function( e )
|
98 |
+
{
|
99 |
+
e.data.obj.queryData.where = $.trim( $(this).val() );
|
100 |
+
$.fbuilder.reloadItems();
|
101 |
+
});
|
102 |
+
$( '#sQueryOrderBy' ).bind( 'keyup change', { obj: this }, function( e )
|
103 |
+
{
|
104 |
+
e.data.obj.queryData.orderby = $.trim( $(this).val() );
|
105 |
+
$.fbuilder.reloadItems();
|
106 |
+
});
|
107 |
+
$( '#sQueryLimit' ).bind( 'keyup change', { obj: this }, function( e )
|
108 |
+
{
|
109 |
+
e.data.obj.queryData.limit = $.trim( $(this).val() );
|
110 |
+
$.fbuilder.reloadItems();
|
111 |
+
});
|
112 |
+
$( '#sCustomQuery' ).bind( 'keyup change', { obj: this }, function( e )
|
113 |
+
{
|
114 |
+
e.data.obj.queryData.query = $.trim( $(this).val() );
|
115 |
+
$.fbuilder.reloadItems();
|
116 |
+
});
|
117 |
+
$( '#sTestConnection' ).bind( 'click', { obj: this }, function( e )
|
118 |
+
{
|
119 |
+
var form_url = $( this ).parents( 'form' ).attr( 'action' );
|
120 |
+
$.ajax(
|
121 |
+
{
|
122 |
+
url : form_url,
|
123 |
+
cache : false,
|
124 |
+
data : $.extend( { cffaction: 'test_db_connection' }, e.data.obj.databaseData ),
|
125 |
+
success : function( data ){
|
126 |
+
alert( data );
|
127 |
+
}
|
128 |
+
}
|
129 |
+
);
|
130 |
+
});
|
131 |
+
$( '#sTestQuery' ).bind( 'click', { obj: this }, function( e )
|
132 |
+
{
|
133 |
+
var form_url = $( this ).parents( 'form' ).attr( 'action' );
|
134 |
+
$.ajax(
|
135 |
+
{
|
136 |
+
url : form_url,
|
137 |
+
cache : false,
|
138 |
+
data : $.extend( { cffaction: 'test_db_query' }, e.data.obj.databaseData, e.data.obj.queryData ),
|
139 |
+
success : function( data ){
|
140 |
+
alert( data );
|
141 |
+
}
|
142 |
+
}
|
143 |
+
);
|
144 |
+
});
|
145 |
+
}
|
146 |
+
},
|
147 |
+
'csv' : {
|
148 |
+
title : 'CSV',
|
149 |
+
csvData : {
|
150 |
+
text : 0,
|
151 |
+
value : 0,
|
152 |
+
file : '',
|
153 |
+
fields : [],
|
154 |
+
headline : false,
|
155 |
+
delimiter : 'tabulator',
|
156 |
+
character : ',',
|
157 |
+
rows : []
|
158 |
+
},
|
159 |
+
show : function()
|
160 |
+
{
|
161 |
+
|
162 |
+
var str = '<div>CSV Import</div>',
|
163 |
+
optionsTexts = '',
|
164 |
+
optionsValues = '';
|
165 |
+
for( var index in this.csvData.fields )
|
166 |
+
{
|
167 |
+
optionsTexts += '<option value="' + index + '" ' + ( ( index == this.csvData.text ) ? 'SELECTED' : '' ) + ' >' + this.csvData.fields[ index ] + '</option>';
|
168 |
+
optionsValues += '<option value="' + index + '" ' + ( ( index == this.csvData.value ) ? 'SELECTED' : '' ) + ' >' + this.csvData.fields[ index ] + '</option>';
|
169 |
+
}
|
170 |
+
|
171 |
+
str += '<div><label>Select CSV file:<label><input type="file" class="large" name="sCSVLocation" id="sCSVLocation" value="' + this.csvData.file + '" /></div>';
|
172 |
+
str += '<div><label>Use headline: <input type="checkbox" name="sCSVUseHeadline" id="sCSVUseHeadline" ' + ( ( this.csvData.headline ) ? 'CHECKED' : '' ) + ' /><label></div>';
|
173 |
+
str += '<div><label>Delimiter:</label> <label><input type="radio" name="sCSVDelimiter" id="sCSVDelimiter" value="tabulator" ' + ( ( this.csvData.delimiter == 'tabulator' ) ? 'CHECKED' : '' ) + ' /> Tabulator<label> <label><input type="radio" name="sCSVDelimiter" id="sCSVDelimiter" value="character" ' + ( ( this.csvData.delimiter == 'character' ) ? 'CHECKED' : '' ) + ' /> Character <input type="text" class="small" name="sCSVCharacter" id="sCSVCharacter" value="' + this.csvData.character + '" /><label></div>';
|
174 |
+
str += '<div><input type="button" class="button" name="sCSVImport" id="sCSVImport" value="Import CSV" style="float:right;margin:5px 0;" /></div>';
|
175 |
+
str += '<div><label>Select column for texts:<label><select class="large" name="sCSVTexts" id="sCSVTexts">' + optionsTexts + '</select></div>';
|
176 |
+
str += '<div><label>Select column for values:<label><select class="large" name="sCSVValues" id="sCSVValues">' + optionsValues + '</select></div>';
|
177 |
+
str += '<div style="clear:both;"></div>';
|
178 |
+
|
179 |
+
return str;
|
180 |
+
},
|
181 |
+
events : function()
|
182 |
+
{
|
183 |
+
$( '#sCSVUseHeadline' ).bind( 'click', { obj: this}, function( e )
|
184 |
+
{
|
185 |
+
e.data.obj.csvData.headline = $( this ).is( ':checked' );
|
186 |
+
$.fbuilder.reloadItems();
|
187 |
+
});
|
188 |
+
$( '#sCSVTexts' ).bind( 'change', { obj: this}, function( e )
|
189 |
+
{
|
190 |
+
e.data.obj.csvData.text = $( this ).val();
|
191 |
+
$.fbuilder.reloadItems();
|
192 |
+
});
|
193 |
+
$( '#sCSVValues' ).bind( 'change', { obj: this}, function( e )
|
194 |
+
{
|
195 |
+
e.data.obj.csvData.value = $( this ).val();
|
196 |
+
$.fbuilder.reloadItems();
|
197 |
+
});
|
198 |
+
$( '#sCSVImport' ).bind( 'click', { obj: this}, function( e )
|
199 |
+
{
|
200 |
+
e.data.obj.csvData.fields = [];
|
201 |
+
e.data.obj.csvData.rows = [];
|
202 |
+
e.data.obj.csvData.text = 0;
|
203 |
+
e.data.obj.csvData.value = 0;
|
204 |
+
e.data.obj.csvData.file = '';
|
205 |
+
|
206 |
+
var obj = {
|
207 |
+
config : {
|
208 |
+
header : e.data.obj.csvData.headline,
|
209 |
+
dynamicTyping : false,
|
210 |
+
delimiter : ( ( e.data.obj.csvData.delimiter != 'tabulator' ) ? e.data.obj.csvData.character : '' ),
|
211 |
+
preview : 0
|
212 |
+
},
|
213 |
+
complete : function( results, file, inputElem, event )
|
214 |
+
{
|
215 |
+
function setFields( c )
|
216 |
+
{
|
217 |
+
for ( var i = 0; i < c; i++ )
|
218 |
+
{
|
219 |
+
e.data.obj.csvData.fields.push( 'Field_' + i );
|
220 |
+
}
|
221 |
+
};
|
222 |
+
|
223 |
+
if( results.errors.length == 0 )
|
224 |
+
{
|
225 |
+
if( typeof results.results.fields != 'undefined' )
|
226 |
+
{
|
227 |
+
e.data.obj.csvData.fields = results.results.fields;
|
228 |
+
e.data.obj.csvData.text = e.data.obj.csvData.value = results.results.fields[ 0 ];
|
229 |
+
}
|
230 |
+
else if( typeof results.results.rows != 'undefined' )
|
231 |
+
{
|
232 |
+
if( results.results.rows.length )
|
233 |
+
{
|
234 |
+
setFields( results.results.rows[ 0 ].length );
|
235 |
+
}
|
236 |
+
}
|
237 |
+
else if( typeof results.results != 'undefined' )
|
238 |
+
{
|
239 |
+
setFields( results.results[ 0 ].length );
|
240 |
+
}
|
241 |
+
|
242 |
+
e.data.obj.csvData.text = e.data.obj.csvData.value = 0;
|
243 |
+
e.data.obj.csvData.rows = ( typeof results.results.rows != 'undefined' ) ? results.results.rows : results.results;
|
244 |
+
e.data.obj.csvData.file = $( '#sCSVLocation' ).val();
|
245 |
+
$.fbuilder.reloadItems();
|
246 |
+
$( '#datasourceSettings' ).html( e.data.obj.show() );
|
247 |
+
e.data.obj.events();
|
248 |
+
}
|
249 |
+
else
|
250 |
+
{
|
251 |
+
alert( 'Error, checks the CSV file structure' );
|
252 |
+
}
|
253 |
+
}
|
254 |
+
};
|
255 |
+
$( '#sCSVLocation' ).parse( obj );
|
256 |
+
});
|
257 |
+
}
|
258 |
+
},
|
259 |
+
'posttype' : {
|
260 |
+
title : 'Post Type',
|
261 |
+
posttypeData:{
|
262 |
+
posttype : '',
|
263 |
+
value : 'ID',
|
264 |
+
text : 'post_title',
|
265 |
+
last : '',
|
266 |
+
id : ''
|
267 |
+
},
|
268 |
+
loadPostTypes : function()
|
269 |
+
{
|
270 |
+
var me = this,
|
271 |
+
e = $( '#sPostType' ),
|
272 |
+
form_url = e.parents( 'form' ).attr( 'action' );
|
273 |
+
|
274 |
+
$.ajax(
|
275 |
+
{
|
276 |
+
dataType : 'json',
|
277 |
+
url : form_url,
|
278 |
+
cache : false,
|
279 |
+
data : { cffaction: 'get_post_types' },
|
280 |
+
success : function( data ){
|
281 |
+
var opt = '',
|
282 |
+
v,
|
283 |
+
selected = ( me.posttypeData.posttype != '' ) ? me.posttypeData.posttype : Object.keys( data )[ 0 ];
|
284 |
+
|
285 |
+
for( var index in data )
|
286 |
+
{
|
287 |
+
opt += '<option value="' + index + '" ' + ( ( index == selected ) ? 'SELECTED' : '') + ' >' + data[ index ] + '</option>';
|
288 |
+
}
|
289 |
+
|
290 |
+
e.html( opt ).change();
|
291 |
+
}
|
292 |
+
}
|
293 |
+
);
|
294 |
+
},
|
295 |
+
show : function( type ) // Type can be 'pair' or 'single', for 'pair' are shown options for text and value, for 'single' is shown only the option for value
|
296 |
+
{
|
297 |
+
var str = '<div>Select Post Type</div>',
|
298 |
+
columns = [ 'ID', 'post_title', 'post_excerpt', 'post_content' ],
|
299 |
+
optionsValues = '',
|
300 |
+
optionsTexts = '';
|
301 |
+
|
302 |
+
for( var i in columns )
|
303 |
+
{
|
304 |
+
optionsValues += '<option value="' + columns[ i ] + '" ' + ( ( this.posttypeData.value == columns[ i ] ) ? 'SELECTED' : '' ) + ' >' + columns[ i ] + '</option>';
|
305 |
+
optionsTexts += '<option value="' + columns[ i ] + '" ' + ( ( this.posttypeData.text == columns[ i ] ) ? 'SELECTED' : '' ) + ' >' + columns[ i ] + '</option>';
|
306 |
+
}
|
307 |
+
|
308 |
+
str += '<div><label>Post Type:<label><select class="large" name="sPostType" id="sPostType"></select></div>';
|
309 |
+
str += '<div><label>Attribute for values:<label><select class="large" name="sPostTypeValue" id="sPostTypeValue">' + optionsValues + '</select></div>';
|
310 |
+
if( type == 'pair' )
|
311 |
+
{
|
312 |
+
this.posttypeData.id = '';
|
313 |
+
str += '<div><label>Attribute for texts:<label><select class="large" name="sPostTypeText" id="sPostTypeText">' + optionsTexts + '</select></div>';
|
314 |
+
str += '<div><label>Display the last:<label><input type="text" class="large" name="sPostTypeLast" id="sPostTypeLast" value="' + this.posttypeData.last + '" /></div>';
|
315 |
+
}
|
316 |
+
else
|
317 |
+
{
|
318 |
+
str += '<div><label>Type a post ID:<label><input class="large" name="sPostId" id="sPostId" type="text" value="' + this.posttypeData.id + '" /></div>';
|
319 |
+
}
|
320 |
+
str += '<div style="clear:both;"></div>';
|
321 |
+
|
322 |
+
return str;
|
323 |
+
},
|
324 |
+
events : function()
|
325 |
+
{
|
326 |
+
$( '#sPostType' ).bind( 'change', { obj: this }, function( e )
|
327 |
+
{
|
328 |
+
e.data.obj.posttypeData.posttype = $( this ).val();
|
329 |
+
$.fbuilder.reloadItems();
|
330 |
+
});
|
331 |
+
$( '#sPostTypeText' ).bind( 'change', { obj: this }, function( e )
|
332 |
+
{
|
333 |
+
e.data.obj.posttypeData.text = $( this ).val();
|
334 |
+
$.fbuilder.reloadItems();
|
335 |
+
});
|
336 |
+
$( '#sPostTypeValue' ).bind( 'change', { obj: this }, function( e )
|
337 |
+
{
|
338 |
+
e.data.obj.posttypeData.value = $( this ).val();
|
339 |
+
$.fbuilder.reloadItems();
|
340 |
+
});
|
341 |
+
$( '#sPostTypeLast' ).bind( 'keyup change', { obj: this }, function( e )
|
342 |
+
{
|
343 |
+
e.data.obj.posttypeData.last = $.trim( $( this ).val() );
|
344 |
+
$.fbuilder.reloadItems();
|
345 |
+
});
|
346 |
+
$( '#sPostId' ).bind( 'keyup change', { obj: this }, function( e )
|
347 |
+
{
|
348 |
+
e.data.obj.posttypeData.id = $.trim( $( this ).val() );
|
349 |
+
$.fbuilder.reloadItems();
|
350 |
+
});
|
351 |
+
this.loadPostTypes();
|
352 |
+
}
|
353 |
+
},
|
354 |
+
'taxonomy' : {
|
355 |
+
title : 'Taxonomy',
|
356 |
+
taxonomyData:{
|
357 |
+
taxonomy : '',
|
358 |
+
value : 'term_id',
|
359 |
+
text : 'name',
|
360 |
+
id : '',
|
361 |
+
slug : ''
|
362 |
+
},
|
363 |
+
loadTaxonomies : function()
|
364 |
+
{
|
365 |
+
var me = this,
|
366 |
+
e = $( '#sTaxonomy' ),
|
367 |
+
form_url = e.parents( 'form' ).attr( 'action' );
|
368 |
+
|
369 |
+
$.ajax(
|
370 |
+
{
|
371 |
+
dataType : 'json',
|
372 |
+
url : form_url,
|
373 |
+
cache : false,
|
374 |
+
data : { cffaction: 'get_available_taxonomies' },
|
375 |
+
success : function( data ){
|
376 |
+
var opt = '',
|
377 |
+
v,
|
378 |
+
selected = ( me.taxonomyData.taxonomy != '' ) ? me.taxonomyData.taxonomy : Object.keys( data )[ 0 ];
|
379 |
+
|
380 |
+
for( var index in data )
|
381 |
+
{
|
382 |
+
opt += '<option value="' + index + '" ' + ( ( index == selected ) ? 'SELECTED' : '') + ' >' + data[ index ].labels.name + '</option>';
|
383 |
+
}
|
384 |
+
|
385 |
+
e.html( opt ).change();
|
386 |
+
}
|
387 |
+
}
|
388 |
+
);
|
389 |
+
},
|
390 |
+
show : function( type ) // Type can be 'pair' or 'single', for 'pair' are shown options for text and value, for 'single' is shown only the option for value
|
391 |
+
{
|
392 |
+
var str = '<div>Select Taxonomy</div>',
|
393 |
+
columns = [ 'term_id', 'name', 'slug' ],
|
394 |
+
optionsValues = '',
|
395 |
+
optionsTexts = '';
|
396 |
+
|
397 |
+
str += '<div><label>Taxonomy:<label><select class="large" name="sTaxonomy" id="sTaxonomy"></select></div>';
|
398 |
+
for( var i in columns )
|
399 |
+
{
|
400 |
+
optionsValues += '<option value="' + columns[ i ] + '" ' + ( ( this.taxonomyData.value == columns[ i ] ) ? 'SELECTED' : '' ) + ' >' + columns[ i ] + '</option>';
|
401 |
+
optionsTexts += '<option value="' + columns[ i ] + '" ' + ( ( this.taxonomyData.text == columns[ i ] ) ? 'SELECTED' : '' ) + ' >' + columns[ i ] + '</option>';
|
402 |
+
}
|
403 |
+
|
404 |
+
str += '<div><label>Attribute for values:<label><select class="large" name="sTaxonomyValue" id="sTaxonomyValue">' + optionsValues + '</select></div>';
|
405 |
+
if( type == 'pair' )
|
406 |
+
{
|
407 |
+
this.taxonomyData.id = '';
|
408 |
+
this.taxonomyData.slug = '';
|
409 |
+
str += '<div><label>Attribute for texts:<label><select class="large" name="sTaxonomyText" id="sTaxonomyText">' + optionsTexts + '</select></div>';
|
410 |
+
}
|
411 |
+
else
|
412 |
+
{
|
413 |
+
str += '<div><label>Type a term ID:<label><input class="large" name="sTermId" id="sTermId" type="text" value="' + this.taxonomyData.id + '" /></div>';
|
414 |
+
str += '<div><label>or type a term slug:<label><input class="large" name="sTermSlug" id="sTermSlug" type="text" value="' + this.taxonomyData.slug + '" /></div>';
|
415 |
+
}
|
416 |
+
str += '<div style="clear:both;"></div>';
|
417 |
+
|
418 |
+
return str;
|
419 |
+
},
|
420 |
+
events : function()
|
421 |
+
{
|
422 |
+
$( '#sTaxonomy' ).bind( 'change', { obj: this }, function( e )
|
423 |
+
{
|
424 |
+
e.data.obj.taxonomyData.taxonomy = $( this ).val();
|
425 |
+
$.fbuilder.reloadItems();
|
426 |
+
});
|
427 |
+
$( '#sTaxonomyText' ).bind( 'change', { obj: this }, function( e )
|
428 |
+
{
|
429 |
+
e.data.obj.taxonomyData.text = $( this ).val();
|
430 |
+
$.fbuilder.reloadItems();
|
431 |
+
});
|
432 |
+
$( '#sTaxonomyValue' ).bind( 'change', { obj: this }, function( e )
|
433 |
+
{
|
434 |
+
e.data.obj.taxonomyData.value = $( this ).val();
|
435 |
+
$.fbuilder.reloadItems();
|
436 |
+
});
|
437 |
+
$( '#sTermId' ).bind( 'keyup change', { obj: this }, function( e )
|
438 |
+
{
|
439 |
+
e.data.obj.taxonomyData.id = $.trim( $( this ).val() );
|
440 |
+
$.fbuilder.reloadItems();
|
441 |
+
});
|
442 |
+
$( '#sTermSlug' ).bind( 'keyup change', { obj: this }, function( e )
|
443 |
+
{
|
444 |
+
e.data.obj.taxonomyData.slug = $.trim( $( this ).val() );
|
445 |
+
$.fbuilder.reloadItems();
|
446 |
+
});
|
447 |
+
|
448 |
+
this.loadTaxonomies();
|
449 |
+
}
|
450 |
+
},
|
451 |
+
'user' : {
|
452 |
+
title : 'User Data',
|
453 |
+
userData : {
|
454 |
+
logged : false,
|
455 |
+
text : 'user_nicename',
|
456 |
+
value : 'ID',
|
457 |
+
id : '',
|
458 |
+
login : ''
|
459 |
+
},
|
460 |
+
show : function( type ) // Type can be 'pair' or 'single', for 'pair' are shown options for text and value, for 'single' is shown only the option for value
|
461 |
+
{
|
462 |
+
var str = '<div>Display for Users</div>',
|
463 |
+
columns = [ 'ID', 'user_login', 'user_nicename', 'display_name', 'user_email' ],
|
464 |
+
optionsValues = '',
|
465 |
+
optionsTexts = '';
|
466 |
+
|
467 |
+
for( var i in columns )
|
468 |
+
{
|
469 |
+
optionsValues += '<option value="' + columns[ i ] + '" ' + ( ( this.userData.value == columns[ i ] ) ? 'SELECTED' : '' ) + ' >' + columns[ i ] + '</option>';
|
470 |
+
optionsTexts += '<option value="' + columns[ i ] + '" ' + ( ( this.userData.text == columns[ i ] ) ? 'SELECTED' : '' ) + ' >' + columns[ i ] + '</option>';
|
471 |
+
}
|
472 |
+
|
473 |
+
str += '<div><label>Attribute for values:<label><select class="large" name="sUserValue" id="sUserValue">' + optionsValues + '</select></div>';
|
474 |
+
if( type == 'pair' )
|
475 |
+
{
|
476 |
+
this.userData.logged = false;
|
477 |
+
this.userData.id = '';
|
478 |
+
this.userData.login = '';
|
479 |
+
str += '<div><label>Attribute for texts:<label><select class="large" name="sUserText" id="sUserText">' + optionsTexts + '</select></div>';
|
480 |
+
}
|
481 |
+
else
|
482 |
+
{
|
483 |
+
this.userData.text = '';
|
484 |
+
str += '<div><label>Display data of logged user:<label><input name="sUserLogged" id="sUserLogged" type="checkbox" ' + ( ( this.userData.logged ) ? 'CHECKED' : '' ) + ' /></div>';
|
485 |
+
str += '<div><label> or display data of user ID:<label><input class="large" name="sUserId" id="sUserId" type="text" value="' + this.userData.id + '" ' + ( ( this.userData.logged ) ? 'DISABLED' : '' ) + ' /></div>';
|
486 |
+
str += '<div><label> or display data of user with user login:<label><input class="large" name="sUserLogin" id="sUserLogin" type="text" value="' + this.userData.login + '" ' + ( ( this.userData.logged ) ? 'DISABLED' : '' ) + ' /></div>';
|
487 |
+
}
|
488 |
+
str += '<div style="clear:both;"></div>';
|
489 |
+
|
490 |
+
return str;
|
491 |
+
},
|
492 |
+
events : function()
|
493 |
+
{
|
494 |
+
$( '#sUserValue' ).bind( 'change', { obj : this }, function( e )
|
495 |
+
{
|
496 |
+
e.data.obj.userData.value = $(this).val();
|
497 |
+
$.fbuilder.reloadItems();
|
498 |
+
});
|
499 |
+
$( '#sUserText' ).bind( 'change', { obj : this }, function( e )
|
500 |
+
{
|
501 |
+
e.data.obj.userData.text = $(this).val();
|
502 |
+
$.fbuilder.reloadItems();
|
503 |
+
});
|
504 |
+
$( '#sUserLogged' ).bind( 'click', { obj : this }, function( e )
|
505 |
+
{
|
506 |
+
var isChecked = $(this).is( ':checked' );
|
507 |
+
e.data.obj.userData.logged = isChecked;
|
508 |
+
$.fbuilder.reloadItems();
|
509 |
+
$( '#sUserId' ).attr( 'disabled', isChecked );
|
510 |
+
$( '#sUserLogin' ).attr( 'disabled', isChecked );
|
511 |
+
});
|
512 |
+
$( '#sUserId' ).bind( 'keyup change', { obj : this }, function( e )
|
513 |
+
{
|
514 |
+
e.data.obj.userData.id = $.trim( $(this).val() );
|
515 |
+
$.fbuilder.reloadItems();
|
516 |
+
});
|
517 |
+
$( '#sUserLogin' ).bind( 'keyup change', { obj : this }, function( e )
|
518 |
+
{
|
519 |
+
e.data.obj.userData.login = $.trim( $(this).val() );
|
520 |
+
$.fbuilder.reloadItems();
|
521 |
+
});
|
522 |
+
}
|
523 |
+
}
|
524 |
+
};
|
525 |
+
};
|
526 |
+
|
527 |
+
$.fbuilder.controls[ 'datasource' ].prototype = {
|
528 |
+
isDataSource:true,
|
529 |
+
active : '',
|
530 |
+
editItemEventsDS : function()
|
531 |
+
{
|
532 |
+
for( var index in this.list )
|
533 |
+
{
|
534 |
+
this.list[ index ].events();
|
535 |
+
}
|
536 |
+
|
537 |
+
$( '#sDataSource' ).bind( 'change', { obj: this }, function( e )
|
538 |
+
{
|
539 |
+
e.data.obj.active = $(this).val();
|
540 |
+
$.fbuilder.editItem( e.data.obj.index );
|
541 |
+
$.fbuilder.reloadItems();
|
542 |
+
});
|
543 |
+
},
|
544 |
+
|
545 |
+
showDataSource : function( list, type )
|
546 |
+
{
|
547 |
+
if( this.active == '' )
|
548 |
+
{
|
549 |
+
this.active = list[ 0 ];
|
550 |
+
}
|
551 |
+
|
552 |
+
var str = '<div style="border:1px dashed #888;padding:5px;position:relative;"><label>Define Datasource</label><div><select class="large" name="sDataSource" id="sDataSource">';
|
553 |
+
for( var i in list )
|
554 |
+
{
|
555 |
+
str += '<option value="' + list[ i ] + '" ' + ( ( list[ i ] == this.active ) ? 'SELECTED' : '' ) + ' >' + this.list[ list[ i ] ].title + '</option>';
|
556 |
+
}
|
557 |
+
str += '</select></div><div id="datasourceSettings">' + this.list[ this.active ].show( type ) + '</div></div>';
|
558 |
+
return str;
|
559 |
+
}
|
560 |
+
};
|
js/fields-admin/18_fbuilder.ftext.ds.js
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"ftextds",
|
4 |
+
name:"Line Text DS",
|
5 |
+
control_category:20
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'ftextds' ]=function(){ this.init(); };
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'ftextds' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'ftext' ].prototype,
|
12 |
+
{
|
13 |
+
ftype:"ftextds",
|
14 |
+
display:function()
|
15 |
+
{
|
16 |
+
return '- available only in commercial version of plugin -';
|
17 |
+
},
|
18 |
+
editItemEvents:function()
|
19 |
+
{
|
20 |
+
$.fbuilder.controls[ 'ftext' ].prototype.editItemEvents.call(this);
|
21 |
+
}
|
22 |
+
}
|
23 |
+
);
|
js/fields-admin/19_fbuilder.femail.ds.js
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"femailds",
|
4 |
+
name:"Email DS",
|
5 |
+
control_category:20
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'femailds'] = function(){ this.init(); };
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'femailds' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'femail' ].prototype,
|
12 |
+
{
|
13 |
+
ftype:"femailds",
|
14 |
+
display:function()
|
15 |
+
{
|
16 |
+
return '- available only in commercial version of plugin -';
|
17 |
+
},
|
18 |
+
editItemEvents:function()
|
19 |
+
{
|
20 |
+
$.fbuilder.controls[ 'femail' ].prototype.editItemEvents.call(this);
|
21 |
+
}
|
22 |
+
});
|
js/fields-admin/20_fbuilder.ftextarea.ds.js
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"ftextareads",
|
4 |
+
name:"Text Area DS",
|
5 |
+
control_category:20
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'ftextareads' ] = function(){ this.init(); };
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'ftextareads' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'ftextarea' ].prototype,
|
12 |
+
{
|
13 |
+
ftype:"ftextareads",
|
14 |
+
display:function()
|
15 |
+
{
|
16 |
+
return '- available only in commercial version of plugin -';
|
17 |
+
},
|
18 |
+
editItemEvents:function()
|
19 |
+
{
|
20 |
+
$.fbuilder.controls[ 'ftextarea' ].prototype.editItemEvents.call(this);
|
21 |
+
}
|
22 |
+
}
|
23 |
+
);
|
js/fields-admin/21_fbuilder.fcheck.ds.js
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"fcheckds",
|
4 |
+
name:"Checkboxes DS",
|
5 |
+
control_category:20
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'fcheckds' ] = function(){ this.init(); };
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'fcheckds' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'fcheck' ].prototype,
|
12 |
+
{
|
13 |
+
ftype:"fcheckds",
|
14 |
+
display:function()
|
15 |
+
{
|
16 |
+
return '- available only in commercial version of plugin -';
|
17 |
+
},
|
18 |
+
editItemEvents:function()
|
19 |
+
{
|
20 |
+
$.fbuilder.controls[ 'fcheck' ].prototype.editItemEvents.call(this);
|
21 |
+
}
|
22 |
+
});
|
js/fields-admin/22_fbuilder.fradio.ds.js
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"fradiods",
|
4 |
+
name:"Radio Btns DS",
|
5 |
+
control_category:20
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'fradiods' ] = function(){ this.init(); };
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'fradiods' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'fradio' ].prototype,
|
12 |
+
{
|
13 |
+
ftype:"fradiods",
|
14 |
+
display:function()
|
15 |
+
{
|
16 |
+
return '- available only in commercial version of plugin -';
|
17 |
+
},
|
18 |
+
editItemEvents:function()
|
19 |
+
{
|
20 |
+
$.fbuilder.controls[ 'fradio' ].prototype.editItemEvents.call(this);
|
21 |
+
}
|
22 |
+
}
|
23 |
+
);
|
js/fields-admin/23_fbuilder.fphone.ds.js
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"fPhoneds",
|
4 |
+
name:"Phone DS",
|
5 |
+
control_category:20
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'fPhoneds' ] = function(){ this.init(); };
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'fPhoneds' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'fPhone' ].prototype,
|
12 |
+
{
|
13 |
+
ftype:"fPhoneds",
|
14 |
+
display:function()
|
15 |
+
{
|
16 |
+
return '- available only in commercial version of plugin -';
|
17 |
+
},
|
18 |
+
editItemEvents:function()
|
19 |
+
{
|
20 |
+
$.fbuilder.controls[ 'fPhone' ].prototype.editItemEvents.call(this);
|
21 |
+
}
|
22 |
+
}
|
23 |
+
);
|
js/fields-admin/26_fbuilder.fdropdown.ds.js
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"fdropdownds",
|
4 |
+
name:"Dropdown DS",
|
5 |
+
control_category:20
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'fdropdownds' ] = function(){ this.init(); };
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'fdropdownds' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'fdropdown' ].prototype,
|
12 |
+
{
|
13 |
+
ftype:"fdropdownds",
|
14 |
+
display:function()
|
15 |
+
{
|
16 |
+
return '- available only in commercial version of plugin -';
|
17 |
+
},
|
18 |
+
editItemEvents:function()
|
19 |
+
{
|
20 |
+
$.fbuilder.controls[ 'fdropdown' ].prototype.editItemEvents.call(this);
|
21 |
+
}
|
22 |
+
}
|
23 |
+
);
|
js/fields-admin/27_fbuilder.fhidden.ds.js
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"fhiddends",
|
4 |
+
name:"Hidden DS",
|
5 |
+
control_category:20
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'fhiddends' ]=function(){ this.init(); };
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'fhiddends' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'fhidden' ].prototype,
|
12 |
+
{
|
13 |
+
ftype:"fhiddends",
|
14 |
+
display:function()
|
15 |
+
{
|
16 |
+
return '- available only in commercial version of plugin -';
|
17 |
+
},
|
18 |
+
editItemEvents:function()
|
19 |
+
{
|
20 |
+
$.fbuilder.controls[ 'fhidden' ].prototype.editItemEvents.call(this);
|
21 |
+
this.editItemEventsDS();
|
22 |
+
}
|
23 |
+
}
|
24 |
+
);
|
js/fields-admin/28_fbuilder.fcontainer.js
ADDED
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.controls[ 'fcontainer' ]=function(){};
|
2 |
+
$.extend(
|
3 |
+
$.fbuilder.controls[ 'fcontainer' ].prototype,
|
4 |
+
$.fbuilder.controls[ 'ffields' ].prototype,
|
5 |
+
{
|
6 |
+
fields:[],
|
7 |
+
columns:1,
|
8 |
+
editItemEvents:function()
|
9 |
+
{
|
10 |
+
$.fbuilder.controls[ 'ffields' ].prototype.editItemEvents.call(this);
|
11 |
+
$("#sColumns").bind("change", {obj: this}, function(e)
|
12 |
+
{
|
13 |
+
e.data.obj.columns = $(this).val();
|
14 |
+
$.fbuilder.reloadItems();
|
15 |
+
});
|
16 |
+
},
|
17 |
+
showShortLabel:function(){ return ''; },
|
18 |
+
showUserhelp:function(){ return ''; },
|
19 |
+
showSpecialDataInstance: function()
|
20 |
+
{
|
21 |
+
var columns = [1,2,3,4],
|
22 |
+
cStr = '';
|
23 |
+
for( var i = 0, h = columns.length; i < h; i++ )
|
24 |
+
{
|
25 |
+
cStr += '<option value="'+columns[ i ]+'" '+( ( this.columns == columns[ i ] ) ? 'SELECTED' : '' )+'>'+columns[ i ]+' column'+( ( i ) ? 's' : '' )+'</option>';
|
26 |
+
}
|
27 |
+
return '<div><label>Columns</label><br /><select name="sColumns" id="sColumns">' + cStr + '</select><div class="clearer"><span class="uh">Shown in columns the fields into the container.</span></div></div>';
|
28 |
+
},
|
29 |
+
remove : function()
|
30 |
+
{
|
31 |
+
for( var i = this.fields.length - 1, h = 0; i >= h; i-- )
|
32 |
+
{
|
33 |
+
this.fBuild.removeItem( $( '.'+this.fields[ i ] ).attr( 'id' ).replace( 'field-', '' ) );
|
34 |
+
}
|
35 |
+
},
|
36 |
+
duplicateItem: function( currentField, newField )
|
37 |
+
{
|
38 |
+
for( var i = 0, h = this.fields.length; i < h; i++ )
|
39 |
+
{
|
40 |
+
if( this.fields[ i ] == currentField )
|
41 |
+
{
|
42 |
+
this.fields.splice( i+1, 0, newField );
|
43 |
+
return;
|
44 |
+
}
|
45 |
+
}
|
46 |
+
},
|
47 |
+
addItem: function( newField )
|
48 |
+
{
|
49 |
+
this.fields.push( newField );
|
50 |
+
},
|
51 |
+
after_show:function()
|
52 |
+
{
|
53 |
+
var me = this,
|
54 |
+
e = $( '#field' + me.form_identifier + '-' + me.index + ' .fcontainer' ),
|
55 |
+
tmp = [];
|
56 |
+
|
57 |
+
for( var i = 0, h = me.fields.length; i < h; i++ )
|
58 |
+
{
|
59 |
+
var f = $( '.' + me.fields[ i ] );
|
60 |
+
if( f.length )
|
61 |
+
{
|
62 |
+
f.detach().appendTo( e );
|
63 |
+
tmp.push( me.fields[ i ] );
|
64 |
+
}
|
65 |
+
}
|
66 |
+
me.fields = tmp;
|
67 |
+
|
68 |
+
e.sortable(
|
69 |
+
{
|
70 |
+
'connectWith': '.ui-sortable',
|
71 |
+
'items': '.fields',
|
72 |
+
'update': function( event, ui )
|
73 |
+
{
|
74 |
+
var p = ui.item.parents('.fields');
|
75 |
+
if( p.length && $(this ).parents( '.fields' ).attr( 'id' ) == p.attr( 'id' ) )
|
76 |
+
{
|
77 |
+
// receive or or changing the ordering in the fcontainer
|
78 |
+
me.fields = [];
|
79 |
+
$( event.target ).children( '.fields' )
|
80 |
+
.each( function()
|
81 |
+
{
|
82 |
+
me.fields.push( /fieldname\d+/.exec( $(this).attr( 'class' ) )[ 0 ] );
|
83 |
+
} );
|
84 |
+
$.fbuilder.reloadItems();
|
85 |
+
}
|
86 |
+
else
|
87 |
+
{
|
88 |
+
// remove
|
89 |
+
me.fields.splice( $.inArray( me.fBuild.getItems()[ ui.item.attr( 'id' ).replace( 'field-', '' ) ].name, me.fields ), 1 );
|
90 |
+
}
|
91 |
+
}
|
92 |
+
}
|
93 |
+
);
|
94 |
+
}
|
95 |
+
|
96 |
+
});
|
js/fields-admin/29_fbuilder.ffieldset.fc.js
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"ffieldset",
|
4 |
+
name:"Fieldset",
|
5 |
+
control_category:10
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'ffieldset' ]=function(){};
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'ffieldset' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'fcontainer' ].prototype,
|
12 |
+
{
|
13 |
+
title:"Untitled",
|
14 |
+
ftype:"ffieldset",
|
15 |
+
fields:[],
|
16 |
+
columns:1,
|
17 |
+
display:function()
|
18 |
+
{
|
19 |
+
return '- available only in commercial version of plugin -';
|
20 |
+
},
|
21 |
+
editItemEvents:function()
|
22 |
+
{
|
23 |
+
$.fbuilder.controls[ 'fcontainer' ].prototype.editItemEvents.call(this);
|
24 |
+
}
|
25 |
+
});
|
js/fields-admin/30_fbuilder.fdiv.fc.js
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.typeList.push(
|
2 |
+
{
|
3 |
+
id:"fdiv",
|
4 |
+
name:"Div",
|
5 |
+
control_category:10
|
6 |
+
}
|
7 |
+
);
|
8 |
+
$.fbuilder.controls[ 'fdiv' ]=function(){};
|
9 |
+
$.extend(
|
10 |
+
$.fbuilder.controls[ 'fdiv' ].prototype,
|
11 |
+
$.fbuilder.controls[ 'fcontainer' ].prototype,
|
12 |
+
{
|
13 |
+
title: 'div',
|
14 |
+
ftype:"fdiv",
|
15 |
+
fields:[],
|
16 |
+
columns:1,
|
17 |
+
display:function()
|
18 |
+
{
|
19 |
+
return '- available only in commercial version of plugin -';
|
20 |
+
},
|
21 |
+
editItemEvents:function()
|
22 |
+
{
|
23 |
+
$.fbuilder.controls[ 'fcontainer' ].prototype.editItemEvents.call(this);
|
24 |
+
}
|
25 |
+
});
|
js/fields-public/03_fbuilder.femail.js
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$.fbuilder.controls[ 'femail' ] = function(){};
|
2 |
+
$.extend(
|
3 |
+
$.fbuilder.controls[ 'femail' ].prototype,
|
4 |
+
$.fbuilder.controls[ 'ffields' ].prototype,
|
5 |
+
{
|
6 |
+
title:"Email",
|
7 |
+
ftype:"femail",
|
8 |
+
predefined:"",
|
9 |
+
predefinedClick:false,
|
10 |
+
required:false,
|
11 |
+
size:"medium",
|
12 |
+
equalTo:"",
|
13 |
+
show:function()
|
14 |
+
{
|
15 |
+
return '<div class="fields '+this.csslayout+'" id="field'+this.form_identifier+'-'+this.index+'"><label for="'+this.name+'">'+this.title+''+((this.required)?"<span class='r'>*</span>":"")+'</label><div class="dfield"><input id="'+this.name+'" name="'+this.name+'" '+((this.equalTo!="")?"equalTo=\"#"+$.fbuilder.htmlEncode(this.equalTo+this.form_identifier)+"\"":"" )+' class="field email '+this.size+((this.required)?" required":"")+'" type="text" value="'+$.fbuilder.htmlEncode(this.predefined)+'"/><span class="uh">'+this.userhelp+'</span></div><div class="clearer"></div></div>';
|
16 |
+
},
|
17 |
+
val:function()
|
18 |
+
{
|
19 |
+
var e = $( '[id="' + this.name + '"]:not(.ignore)' );
|
20 |
+
if( e.length ) return $.fbuilder.parseValStr( e.val() );
|
21 |
+
return '';
|
22 |
+
}
|
23 |
+
}
|
24 |
+
);
|
js/jQuery.stringify.js
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
fbuilderjQuery = (typeof fbuilderjQuery != 'undefined' ) ? fbuilderjQuery : jQuery;
|
2 |
+
|
3 |
+
fbuilderjQuery(function(){
|
4 |
+
(function($) {
|
5 |
+
$.extend({
|
6 |
+
|
7 |
+
stringifyXX : function stringifyXX(obj) {
|
8 |
+
var enc = function(param) {
|
9 |
+
var escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
|
10 |
+
meta = {
|
11 |
+
'\b' : '\\b',
|
12 |
+
'\t' : '\\t',
|
13 |
+
'\n' : '\\n',
|
14 |
+
'\f' : '\\f',
|
15 |
+
'\r' : '\\r',
|
16 |
+
'"' : '\\"',
|
17 |
+
'\\' : '\\\\'
|
18 |
+
};
|
19 |
+
|
20 |
+
escapable.lastIndex = 0;
|
21 |
+
return escapable.test(param) ? param.replace(escapable, function (a) {
|
22 |
+
var c = meta[a];
|
23 |
+
return typeof c === 'string' ? c : '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
|
24 |
+
}) : param;
|
25 |
+
};
|
26 |
+
|
27 |
+
var t = typeof (obj);
|
28 |
+
if (t != "object" || obj === null) {
|
29 |
+
// simple data type
|
30 |
+
if (t == "string") obj = '"' + obj + '"';
|
31 |
+
return String(obj);
|
32 |
+
} else {
|
33 |
+
// recurse array or object
|
34 |
+
var n, v, json = [], arr = (obj && obj.constructor == Array);
|
35 |
+
|
36 |
+
for (n in obj) {
|
37 |
+
v = obj[n];
|
38 |
+
t = typeof(v);
|
39 |
+
if (t!="function")
|
40 |
+
{
|
41 |
+
if (t == "string") v = '"' + enc(v) + '"'; else if (t == "object" && v !== null) v = $.stringifyXX(v);
|
42 |
+
json.push((arr ? "" : '"' + n + '":') + String(v));
|
43 |
+
}
|
44 |
+
}
|
45 |
+
return (arr ? "[" : "{") + String(json) + (arr ? "]" : "}");
|
46 |
+
}
|
47 |
+
}
|
48 |
+
});
|
49 |
+
})(fbuilderjQuery);
|
50 |
+
});
|
js/jquery.caret.js
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
fbuilderjQuery = (typeof fbuilderjQuery != 'undefined' ) ? fbuilderjQuery : jQuery;
|
2 |
+
|
3 |
+
(function($) {
|
4 |
+
$.fn.caret = function(pos) {
|
5 |
+
var target = this[0];
|
6 |
+
//get
|
7 |
+
if (arguments.length == 0) {
|
8 |
+
//HTML5
|
9 |
+
if (window.getSelection) {
|
10 |
+
//contenteditable
|
11 |
+
if (target.contentEditable == 'true') {
|
12 |
+
target.focus();
|
13 |
+
var range1 = window.getSelection().getRangeAt(0);
|
14 |
+
var range2 = range1.cloneRange();
|
15 |
+
range2.selectNodeContents(target);
|
16 |
+
range2.setEnd(range1.endContainer, range1.endOffset);
|
17 |
+
return range2.toString().length;
|
18 |
+
}
|
19 |
+
//textarea
|
20 |
+
return target.selectionStart;
|
21 |
+
}
|
22 |
+
//IE<9
|
23 |
+
if (document.selection) {
|
24 |
+
target.focus();
|
25 |
+
var range1 = document.selection.createRange();
|
26 |
+
var range2 = document.body.createTextRange();
|
27 |
+
range2.moveToElementText(target);
|
28 |
+
range2.setEndPoint('EndToEnd', range1);
|
29 |
+
return range2.text.length;
|
30 |
+
}
|
31 |
+
//not supported
|
32 |
+
return 0;
|
33 |
+
}
|
34 |
+
//set
|
35 |
+
//HTML5
|
36 |
+
if (window.getSelection) {
|
37 |
+
//contenteditable
|
38 |
+
if (target.contentEditable == 'true') {
|
39 |
+
target.focus();
|
40 |
+
window.getSelection().collapse(target.firstChild, pos);
|
41 |
+
}
|
42 |
+
//textarea
|
43 |
+
else
|
44 |
+
target.setSelectionRange(pos, pos);
|
45 |
+
}
|
46 |
+
//IE<9
|
47 |
+
else if (document.body.createTextRange) {
|
48 |
+
var range = document.body.createTextRange();
|
49 |
+
range.moveToElementText(target)
|
50 |
+
range.moveStart('character', pos);
|
51 |
+
range.collapse(true);
|
52 |
+
range.select();
|
53 |
+
}
|
54 |
+
}
|
55 |
+
})(fbuilderjQuery)
|
js/jquery.validate.js
ADDED
@@ -0,0 +1,1253 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* jQuery Validation Plugin @VERSION
|
3 |
+
*
|
4 |
+
* http://bassistance.de/jquery-plugins/jquery-plugin-validation/
|
5 |
+
* http://docs.jquery.com/Plugins/Validation
|
6 |
+
*
|
7 |
+
* Copyright (c) 2012 Jörn Zaefferer
|
8 |
+
*
|
9 |
+
* Dual licensed under the MIT and GPL licenses:
|
10 |
+
* http://www.opensource.org/licenses/mit-license.php
|
11 |
+
* http://www.gnu.org/licenses/gpl.html
|
12 |
+
*/
|
13 |
+
fbuilderjQuery = (typeof fbuilderjQuery != 'undefined' ) ? fbuilderjQuery : jQuery;
|
14 |
+
|
15 |
+
fbuilderjQuery(function(){
|
16 |
+
(function($) {
|
17 |
+
|
18 |
+
$.extend($.fn, {
|
19 |
+
// http://docs.jquery.com/Plugins/Validation/validate
|
20 |
+
validate: function( options ) {
|
21 |
+
// if nothing is selected, return nothing; can't chain anyway
|
22 |
+
if (!this.length) {
|
23 |
+
if (options && options.debug && window.console) {
|
24 |
+
console.warn( "nothing selected, can't validate, returning nothing" );
|
25 |
+
}
|
26 |
+
return;
|
27 |
+
}
|
28 |
+
|
29 |
+
// check if a validator for this form was already created
|
30 |
+
var validator = $.data(this[0], 'validator');
|
31 |
+
if ( validator ) {
|
32 |
+
return validator;
|
33 |
+
}
|
34 |
+
|
35 |
+
// Add novalidate tag if HTML5.
|
36 |
+
this.attr('novalidate', 'novalidate');
|
37 |
+
|
38 |
+
validator = new $.validator( options, this[0] );
|
39 |
+
$.data(this[0], 'validator', validator);
|
40 |
+
|
41 |
+
if ( validator.settings.onsubmit ) {
|
42 |
+
|
43 |
+
this.validateDelegate( ":submit", "click", function(ev) {
|
44 |
+
if ( validator.settings.submitHandler ) {
|
45 |
+
validator.submitButton = ev.target;
|
46 |
+
}
|
47 |
+
// allow suppressing validation by adding a cancel class to the submit button
|
48 |
+
if ( $(ev.target).hasClass('cancel') ) {
|
49 |
+
validator.cancelSubmit = true;
|
50 |
+
}
|
51 |
+
});
|
52 |
+
|
53 |
+
// validate the form on submit
|
54 |
+
this.submit( function( event ) {
|
55 |
+
if ( validator.settings.debug ) {
|
56 |
+
// prevent form submit to be able to see console output
|
57 |
+
event.preventDefault();
|
58 |
+
}
|
59 |
+
function handle() {
|
60 |
+
var hidden;
|
61 |
+
if ( validator.settings.submitHandler ) {
|
62 |
+
if (validator.submitButton) {
|
63 |
+
// insert a hidden input as a replacement for the missing submit button
|
64 |
+
hidden = $("<input type='hidden'/>").attr("name", validator.submitButton.name).val(validator.submitButton.value).appendTo(validator.currentForm);
|
65 |
+
}
|
66 |
+
validator.settings.submitHandler.call( validator, validator.currentForm, event );
|
67 |
+
if (validator.submitButton) {
|
68 |
+
// and clean up afterwards; thanks to no-block-scope, hidden can be referenced
|
69 |
+
hidden.remove();
|
70 |
+
}
|
71 |
+
return false;
|
72 |
+
}
|
73 |
+
return true;
|
74 |
+
}
|
75 |
+
|
76 |
+
// prevent submit for invalid forms or custom submit handlers
|
77 |
+
if ( validator.cancelSubmit ) {
|
78 |
+
validator.cancelSubmit = false;
|
79 |
+
return handle();
|
80 |
+
}
|
81 |
+
if ( validator.form() ) {
|
82 |
+
if ( validator.pendingRequest ) {
|
83 |
+
validator.formSubmitted = true;
|
84 |
+
return false;
|
85 |
+
}
|
86 |
+
return handle();
|
87 |
+
} else {
|
88 |
+
validator.focusInvalid();
|
89 |
+
return false;
|
90 |
+
}
|
91 |
+
});
|
92 |
+
}
|
93 |
+
|
94 |
+
return validator;
|
95 |
+
},
|
96 |
+
// http://docs.jquery.com/Plugins/Validation/valid
|
97 |
+
valid: function() {
|
98 |
+
if ( $(this[0]).is('form')) {
|
99 |
+
return this.validate().form();
|
100 |
+
} else {
|
101 |
+
var valid = true;
|
102 |
+
var validator = $(this[0].form).validate();
|
103 |
+
this.each(function() {
|
104 |
+
valid &= validator.element(this);
|
105 |
+
});
|
106 |
+
return valid;
|
107 |
+
}
|
108 |
+
},
|
109 |
+
// attributes: space seperated list of attributes to retrieve and remove
|
110 |
+
removeAttrs: function(attributes) {
|
111 |
+
var result = {},
|
112 |
+
$element = this;
|
113 |
+
$.each(attributes.split(/\s/), function(index, value) {
|
114 |
+
result[value] = $element.attr(value);
|
115 |
+
$element.removeAttr(value);
|
116 |
+
});
|
117 |
+
return result;
|
118 |
+
},
|
119 |
+
// http://docs.jquery.com/Plugins/Validation/rules
|
120 |
+
rules: function(command, argument) {
|
121 |
+
var element = this[0];
|
122 |
+
|
123 |
+
if (command) {
|
124 |
+
var settings = $.data(element.form, 'validator').settings;
|
125 |
+
var staticRules = settings.rules;
|
126 |
+
var existingRules = $.validator.staticRules(element);
|
127 |
+
switch(command) {
|
128 |
+
case "add":
|
129 |
+
$.extend(existingRules, $.validator.normalizeRule(argument));
|
130 |
+
staticRules[element.name] = existingRules;
|
131 |
+
if (argument.messages) {
|
132 |
+
settings.messages[element.name] = $.extend( settings.messages[element.name], argument.messages );
|
133 |
+
}
|
134 |
+
break;
|
135 |
+
case "remove":
|
136 |
+
if (!argument) {
|
137 |
+
delete staticRules[element.name];
|
138 |
+
return existingRules;
|
139 |
+
}
|
140 |
+
var filtered = {};
|
141 |
+
$.each(argument.split(/\s/), function(index, method) {
|
142 |
+
filtered[method] = existingRules[method];
|
143 |
+
delete existingRules[method];
|
144 |
+
});
|
145 |
+
return filtered;
|
146 |
+
}
|
147 |
+
}
|
148 |
+
|
149 |
+
var data = $.validator.normalizeRules(
|
150 |
+
$.extend(
|
151 |
+
{},
|
152 |
+
$.validator.metadataRules(element),
|
153 |
+
$.validator.classRules(element),
|
154 |
+
$.validator.attributeRules(element),
|
155 |
+
$.validator.staticRules(element)
|
156 |
+
), element);
|
157 |
+
|
158 |
+
// make sure required is at front
|
159 |
+
if (data.required) {
|
160 |
+
var param = data.required;
|
161 |
+
delete data.required;
|
162 |
+
data = $.extend({required: param}, data);
|
163 |
+
}
|
164 |
+
|
165 |
+
return data;
|
166 |
+
}
|
167 |
+
});
|
168 |
+
|
169 |
+
// Custom selectors
|
170 |
+
$.extend($.expr[":"], {
|
171 |
+
// http://docs.jquery.com/Plugins/Validation/blank
|
172 |
+
blank: function(a) {return !$.trim("" + a.value);},
|
173 |
+
// http://docs.jquery.com/Plugins/Validation/filled
|
174 |
+
filled: function(a) {return !!$.trim("" + a.value);},
|
175 |
+
// http://docs.jquery.com/Plugins/Validation/unchecked
|
176 |
+
unchecked: function(a) {return !a.checked;}
|
177 |
+
});
|
178 |
+
|
179 |
+
// constructor for validator
|
180 |
+
$.validator = function( options, form ) {
|
181 |
+
this.settings = $.extend( true, {}, $.validator.defaults, options );
|
182 |
+
this.currentForm = form;
|
183 |
+
this.init();
|
184 |
+
};
|
185 |
+
|
186 |
+
$.validator.format = function(source, params) {
|
187 |
+
if ( arguments.length === 1 ) {
|
188 |
+
return function() {
|
189 |
+
var args = $.makeArray(arguments);
|
190 |
+
args.unshift(source);
|
191 |
+
return $.validator.format.apply( this, args );
|
192 |
+
};
|
193 |
+
}
|
194 |
+
if ( arguments.length > 2 && params.constructor !== Array ) {
|
195 |
+
params = $.makeArray(arguments).slice(1);
|
196 |
+
}
|
197 |
+
if ( params.constructor !== Array ) {
|
198 |
+
params = [ params ];
|
199 |
+
}
|
200 |
+
$.each(params, function(i, n) {
|
201 |
+
source = source.replace(new RegExp("\\{" + i + "\\}", "g"), n);
|
202 |
+
});
|
203 |
+
return source;
|
204 |
+
};
|
205 |
+
|
206 |
+
$.extend($.validator, {
|
207 |
+
|
208 |
+
defaults: {
|
209 |
+
messages: {},
|
210 |
+
groups: {},
|
211 |
+
rules: {},
|
212 |
+
errorClass: "cpefb_error",
|
213 |
+
validClass: "valid",
|
214 |
+
errorElement: "label",
|
215 |
+
focusInvalid: true,
|
216 |
+
errorContainer: $( [] ),
|
217 |
+
errorLabelContainer: $( [] ),
|
218 |
+
onsubmit: true,
|
219 |
+
ignore: ":hidden",
|
220 |
+
ignoreTitle: false,
|
221 |
+
onfocusin: function(element, event) {
|
222 |
+
this.lastActive = element;
|
223 |
+
|
224 |
+
// hide error label and remove error class on focus if enabled
|
225 |
+
if ( this.settings.focusCleanup && !this.blockFocusCleanup ) {
|
226 |
+
if ( this.settings.unhighlight ) {
|
227 |
+
this.settings.unhighlight.call( this, element, this.settings.errorClass, this.settings.validClass );
|
228 |
+
}
|
229 |
+
this.addWrapper(this.errorsFor(element)).hide();
|
230 |
+
}
|
231 |
+
},
|
232 |
+
onfocusout: function(element, event) {
|
233 |
+
if ( !this.checkable(element) && (element.name in this.submitted || !this.optional(element)) ) {
|
234 |
+
this.element(element);
|
235 |
+
}
|
236 |
+
},
|
237 |
+
onkeyup: function(element, event) {
|
238 |
+
if ( element.name in this.submitted || element === this.lastElement ) {
|
239 |
+
this.element(element);
|
240 |
+
}
|
241 |
+
},
|
242 |
+
onclick: function(element, event) {
|
243 |
+
// click on selects, radiobuttons and checkboxes
|
244 |
+
if ( element.name in this.submitted ) {
|
245 |
+
this.element(element);
|
246 |
+
}
|
247 |
+
// or option elements, check parent select in that case
|
248 |
+
else if (element.parentNode.name in this.submitted) {
|
249 |
+
this.element(element.parentNode);
|
250 |
+
}
|
251 |
+
},
|
252 |
+
highlight: function(element, errorClass, validClass) {
|
253 |
+
if (element.type === 'radio') {
|
254 |
+
this.findByName(element.name).addClass(errorClass).removeClass(validClass);
|
255 |
+
} else {
|
256 |
+
$(element).addClass(errorClass).removeClass(validClass);
|
257 |
+
}
|
258 |
+
},
|
259 |
+
unhighlight: function(element, errorClass, validClass) {
|
260 |
+
if (element.type === 'radio') {
|
261 |
+
this.findByName(element.name).removeClass(errorClass).addClass(validClass);
|
262 |
+
} else {
|
263 |
+
$(element).removeClass(errorClass).addClass(validClass);
|
264 |
+
}
|
265 |
+
}
|
266 |
+
},
|
267 |
+
|
268 |
+
// http://docs.jquery.com/Plugins/Validation/Validator/setDefaults
|
269 |
+
setDefaults: function(settings) {
|
270 |
+
$.extend( $.validator.defaults, settings );
|
271 |
+
},
|
272 |
+
|
273 |
+
messages: {
|
274 |
+
required: "This field is required.",
|
275 |
+
remote: "Please fix this field.",
|
276 |
+
email: "Please enter a valid email address.",
|
277 |
+
url: "Please enter a valid URL.",
|
278 |
+
date: "Please enter a valid date.",
|
279 |
+
dateISO: "Please enter a valid date (ISO).",
|
280 |
+
number: "Please enter a valid number.",
|
281 |
+
digits: "Please enter only digits.",
|
282 |
+
creditcard: "Please enter a valid credit card number.",
|
283 |
+
equalTo: "Please enter the same value again.",
|
284 |
+
accept: "Please enter a value with a valid extension.",
|
285 |
+
upload_size: $.validator.format("The file you've chosen is too big, maximum is {0} kB."),
|
286 |
+
maxlength: $.validator.format("Please enter no more than {0} characters."),
|
287 |
+
minlength: $.validator.format("Please enter at least {0} characters."),
|
288 |
+
rangelength: $.validator.format("Please enter a value between {0} and {1} characters long."),
|
289 |
+
range: $.validator.format("Please enter a value between {0} and {1}."),
|
290 |
+
max: $.validator.format("Please enter a value less than or equal to {0}."),
|
291 |
+
min: $.validator.format("Please enter a value greater than or equal to {0}.")
|
292 |
+
},
|
293 |
+
|
294 |
+
autoCreateRanges: false,
|
295 |
+
|
296 |
+
prototype: {
|
297 |
+
|
298 |
+
init: function() {
|
299 |
+
this.labelContainer = $(this.settings.errorLabelContainer);
|
300 |
+
this.errorContext = this.labelContainer.length && this.labelContainer || $(this.currentForm);
|
301 |
+
this.containers = $(this.settings.errorContainer).add( this.settings.errorLabelContainer );
|
302 |
+
this.submitted = {};
|
303 |
+
this.valueCache = {};
|
304 |
+
this.pendingRequest = 0;
|
305 |
+
this.pending = {};
|
306 |
+
this.invalid = {};
|
307 |
+
this.reset();
|
308 |
+
|
309 |
+
var groups = (this.groups = {});
|
310 |
+
$.each(this.settings.groups, function(key, value) {
|
311 |
+
$.each(value.split(/\s/), function(index, name) {
|
312 |
+
groups[name] = key;
|
313 |
+
});
|
314 |
+
});
|
315 |
+
var rules = this.settings.rules;
|
316 |
+
$.each(rules, function(key, value) {
|
317 |
+
rules[key] = $.validator.normalizeRule(value);
|
318 |
+
});
|
319 |
+
|
320 |
+
function delegate(event) {
|
321 |
+
var validator = $.data(this[0].form, "validator"),
|
322 |
+
eventType = "on" + event.type.replace(/^validate/, "");
|
323 |
+
if (validator.settings[eventType]) {
|
324 |
+
validator.settings[eventType].call(validator, this[0], event);
|
325 |
+
}
|
326 |
+
}
|
327 |
+
$(this.currentForm)
|
328 |
+
.validateDelegate("[type='text'], [type='password'], [type='file'], select, textarea, " +
|
329 |
+
"[type='number'], [type='search'] ,[type='tel'], [type='url'], " +
|
330 |
+
"[type='email'], [type='datetime'], [type='date'], [type='month'], " +
|
331 |
+
"[type='week'], [type='time'], [type='datetime-local'], " +
|
332 |
+
"[type='range'], [type='color'] ",
|
333 |
+
"focusin focusout keyup", delegate)
|
334 |
+
.validateDelegate("[type='radio'], [type='checkbox'], select, option", "click", delegate);
|
335 |
+
|
336 |
+
if (this.settings.invalidHandler) {
|
337 |
+
$(this.currentForm).bind("invalid-form.validate", this.settings.invalidHandler);
|
338 |
+
}
|
339 |
+
},
|
340 |
+
|
341 |
+
// http://docs.jquery.com/Plugins/Validation/Validator/form
|
342 |
+
form: function() {
|
343 |
+
this.checkForm();
|
344 |
+
$.extend(this.submitted, this.errorMap);
|
345 |
+
this.invalid = $.extend({}, this.errorMap);
|
346 |
+
if (!this.valid()) {
|
347 |
+
$(this.currentForm).triggerHandler("invalid-form", [this]);
|
348 |
+
}
|
349 |
+
this.showErrors();
|
350 |
+
return this.valid();
|
351 |
+
},
|
352 |
+
|
353 |
+
checkForm: function() {
|
354 |
+
this.prepareForm();
|
355 |
+
for ( var i = 0, elements = (this.currentElements = this.elements()); elements[i]; i++ ) {
|
356 |
+
this.check( elements[i] );
|
357 |
+
}
|
358 |
+
return this.valid();
|
359 |
+
},
|
360 |
+
|
361 |
+
// http://docs.jquery.com/Plugins/Validation/Validator/element
|
362 |
+
element: function( element ) {
|
363 |
+
element = this.validationTargetFor( this.clean( element ) );
|
364 |
+
this.lastElement = element;
|
365 |
+
this.prepareElement( element );
|
366 |
+
this.currentElements = $(element);
|
367 |
+
var result = this.check( element ) !== false;
|
368 |
+
if (result) {
|
369 |
+
delete this.invalid[element.name];
|
370 |
+
} else {
|
371 |
+
this.invalid[element.name] = true;
|
372 |
+
}
|
373 |
+
if ( !this.numberOfInvalids() ) {
|
374 |
+
// Hide error containers on last error
|
375 |
+
this.toHide = this.toHide.add( this.containers );
|
376 |
+
}
|
377 |
+
this.showErrors();
|
378 |
+
return result;
|
379 |
+
},
|
380 |
+
|
381 |
+
// http://docs.jquery.com/Plugins/Validation/Validator/showErrors
|
382 |
+
showErrors: function(errors) {
|
383 |
+
if(errors) {
|
384 |
+
// add items to error list and map
|
385 |
+
$.extend( this.errorMap, errors );
|
386 |
+
this.errorList = [];
|
387 |
+
for ( var name in errors ) {
|
388 |
+
this.errorList.push({
|
389 |
+
message: errors[name],
|
390 |
+
element: this.findByName(name)[0]
|
391 |
+
});
|
392 |
+
}
|
393 |
+
// remove items from success list
|
394 |
+
this.successList = $.grep( this.successList, function(element) {
|
395 |
+
return !(element.name in errors);
|
396 |
+
});
|
397 |
+
}
|
398 |
+
if (this.settings.showErrors) {
|
399 |
+
this.settings.showErrors.call( this, this.errorMap, this.errorList );
|
400 |
+
} else {
|
401 |
+
this.defaultShowErrors();
|
402 |
+
}
|
403 |
+
},
|
404 |
+
|
405 |
+
// http://docs.jquery.com/Plugins/Validation/Validator/resetForm
|
406 |
+
resetForm: function() {
|
407 |
+
if ( $.fn.resetForm ) {
|
408 |
+
$( this.currentForm ).resetForm();
|
409 |
+
}
|
410 |
+
this.submitted = {};
|
411 |
+
this.lastElement = null;
|
412 |
+
this.prepareForm();
|
413 |
+
this.hideErrors();
|
414 |
+
this.elements().removeClass( this.settings.errorClass );
|
415 |
+
},
|
416 |
+
|
417 |
+
numberOfInvalids: function() {
|
418 |
+
return this.objectLength(this.invalid);
|
419 |
+
},
|
420 |
+
|
421 |
+
objectLength: function( obj ) {
|
422 |
+
var count = 0;
|
423 |
+
for ( var i in obj ) {
|
424 |
+
count++;
|
425 |
+
}
|
426 |
+
return count;
|
427 |
+
},
|
428 |
+
|
429 |
+
hideErrors: function() {
|
430 |
+
this.addWrapper( this.toHide ).hide();
|
431 |
+
},
|
432 |
+
|
433 |
+
valid: function() {
|
434 |
+
return this.size() === 0;
|
435 |
+
},
|
436 |
+
|
437 |
+
size: function() {
|
438 |
+
return this.errorList.length;
|
439 |
+
},
|
440 |
+
|
441 |
+
focusInvalid: function() {
|
442 |
+
if( this.settings.focusInvalid ) {
|
443 |
+
try {
|
444 |
+
$(this.findLastActive() || this.errorList.length && this.errorList[0].element || [])
|
445 |
+
.filter(":visible")
|
446 |
+
.focus()
|
447 |
+
// manually trigger focusin event; without it, focusin handler isn't called, findLastActive won't have anything to find
|
448 |
+
.trigger("focusin");
|
449 |
+
} catch(e) {
|
450 |
+
// ignore IE throwing errors when focusing hidden elements
|
451 |
+
}
|
452 |
+
}
|
453 |
+
},
|
454 |
+
|
455 |
+
findLastActive: function() {
|
456 |
+
var lastActive = this.lastActive;
|
457 |
+
return lastActive && $.grep(this.errorList, function(n) {
|
458 |
+
return n.element.name === lastActive.name;
|
459 |
+
}).length === 1 && lastActive;
|
460 |
+
},
|
461 |
+
|
462 |
+
elements: function() {
|
463 |
+
var validator = this,
|
464 |
+
rulesCache = {};
|
465 |
+
|
466 |
+
// select all valid inputs inside the form (no submit or reset buttons)
|
467 |
+
return $(this.currentForm)
|
468 |
+
.find("input, select, textarea")
|
469 |
+
.not(":submit, :reset, :image, [disabled]")
|
470 |
+
.not( this.settings.ignore )
|
471 |
+
.filter(function() {
|
472 |
+
if ( !this.name && validator.settings.debug && window.console ) {
|
473 |
+
console.error( "%o has no name assigned", this);
|
474 |
+
}
|
475 |
+
|
476 |
+
// select only the first element for each name, and only those with rules specified
|
477 |
+
if ( this.name in rulesCache || !validator.objectLength($(this).rules()) ) {
|
478 |
+
return false;
|
479 |
+
}
|
480 |
+
|
481 |
+
rulesCache[this.name] = true;
|
482 |
+
return true;
|
483 |
+
});
|
484 |
+
},
|
485 |
+
|
486 |
+
clean: function( selector ) {
|
487 |
+
return $( selector )[0];
|
488 |
+
},
|
489 |
+
|
490 |
+
errors: function() {
|
491 |
+
var errorClass = this.settings.errorClass.replace(' ', '.');
|
492 |
+
return $( this.settings.errorElement + "." + errorClass, this.errorContext );
|
493 |
+
},
|
494 |
+
|
495 |
+
reset: function() {
|
496 |
+
this.successList = [];
|
497 |
+
this.errorList = [];
|
498 |
+
this.errorMap = {};
|
499 |
+
this.toShow = $([]);
|
500 |
+
this.toHide = $([]);
|
501 |
+
this.currentElements = $([]);
|
502 |
+
},
|
503 |
+
|
504 |
+
prepareForm: function() {
|
505 |
+
this.reset();
|
506 |
+
this.toHide = this.errors().add( this.containers );
|
507 |
+
},
|
508 |
+
|
509 |
+
prepareElement: function( element ) {
|
510 |
+
this.reset();
|
511 |
+
this.toHide = this.errorsFor(element);
|
512 |
+
},
|
513 |
+
|
514 |
+
elementValue: function( element ) {
|
515 |
+
var val = $(element).val();
|
516 |
+
if( typeof val === 'string' ) {
|
517 |
+
return val.replace(/\r/g, "");
|
518 |
+
}
|
519 |
+
return val;
|
520 |
+
},
|
521 |
+
|
522 |
+
check: function( element ) {
|
523 |
+
element = this.validationTargetFor( this.clean( element ) );
|
524 |
+
|
525 |
+
var rules = $(element).rules();
|
526 |
+
var dependencyMismatch = false;
|
527 |
+
var val = this.elementValue(element);
|
528 |
+
var result;
|
529 |
+
|
530 |
+
for (var method in rules ) {
|
531 |
+
var rule = { method: method, parameters: rules[method] };
|
532 |
+
try {
|
533 |
+
|
534 |
+
result = $.validator.methods[method].call( this, val, element, rule.parameters );
|
535 |
+
|
536 |
+
// if a method indicates that the field is optional and therefore valid,
|
537 |
+
// don't mark it as valid when there are no other rules
|
538 |
+
if ( result === "dependency-mismatch" ) {
|
539 |
+
dependencyMismatch = true;
|
540 |
+
continue;
|
541 |
+
}
|
542 |
+
dependencyMismatch = false;
|
543 |
+
|
544 |
+
if ( result === "pending" ) {
|
545 |
+
this.toHide = this.toHide.not( this.errorsFor(element) );
|
546 |
+
return;
|
547 |
+
}
|
548 |
+
|
549 |
+
if( !result ) {
|
550 |
+
this.formatAndAdd( element, rule );
|
551 |
+
return false;
|
552 |
+
}
|
553 |
+
} catch(e) {
|
554 |
+
if ( this.settings.debug && window.console ) {
|
555 |
+
console.log("exception occurred when checking element " + element.id + ", check the '" + rule.method + "' method", e);
|
556 |
+
}
|
557 |
+
throw e;
|
558 |
+
}
|
559 |
+
}
|
560 |
+
if (dependencyMismatch) {
|
561 |
+
return;
|
562 |
+
}
|
563 |
+
if ( this.objectLength(rules) ) {
|
564 |
+
this.successList.push(element);
|
565 |
+
}
|
566 |
+
return true;
|
567 |
+
},
|
568 |
+
|
569 |
+
// return the custom message for the given element and validation method
|
570 |
+
// specified in the element's "messages" metadata
|
571 |
+
customMetaMessage: function(element, method) {
|
572 |
+
if (!$.metadata) {
|
573 |
+
return;
|
574 |
+
}
|
575 |
+
var meta = this.settings.meta ? $(element).metadata()[this.settings.meta] : $(element).metadata();
|
576 |
+
return meta && meta.messages && meta.messages[method];
|
577 |
+
},
|
578 |
+
|
579 |
+
// return the custom message for the given element name and validation method
|
580 |
+
customMessage: function( name, method ) {
|
581 |
+
var m = this.settings.messages[name];
|
582 |
+
return m && (m.constructor === String ? m : m[method]);
|
583 |
+
},
|
584 |
+
|
585 |
+
// return the first defined argument, allowing empty strings
|
586 |
+
findDefined: function() {
|
587 |
+
for(var i = 0; i < arguments.length; i++) {
|
588 |
+
if (arguments[i] !== undefined) {
|
589 |
+
return arguments[i];
|
590 |
+
}
|
591 |
+
}
|
592 |
+
return undefined;
|
593 |
+
},
|
594 |
+
|
595 |
+
defaultMessage: function( element, method) {
|
596 |
+
return this.findDefined(
|
597 |
+
this.customMessage( element.name, method ),
|
598 |
+
this.customMetaMessage( element, method ),
|
599 |
+
// title is never undefined, so handle empty string as undefined
|
600 |
+
!this.settings.ignoreTitle && element.title || undefined,
|
601 |
+
$.validator.messages[method],
|
602 |
+
"<strong>Warning: No message defined for " + element.name + "</strong>"
|
603 |
+
);
|
604 |
+
},
|
605 |
+
|
606 |
+
formatAndAdd: function( element, rule ) {
|
607 |
+
var message = this.defaultMessage( element, rule.method ),
|
608 |
+
theregex = /\$?\{(\d+)\}/g;
|
609 |
+
if ( typeof message === "function" ) {
|
610 |
+
message = message.call(this, rule.parameters, element);
|
611 |
+
} else if (theregex.test(message)) {
|
612 |
+
message = $.validator.format(message.replace(theregex, '{$1}'), rule.parameters);
|
613 |
+
}
|
614 |
+
this.errorList.push({
|
615 |
+
message: message,
|
616 |
+
element: element
|
617 |
+
});
|
618 |
+
|
619 |
+
this.errorMap[element.name] = message;
|
620 |
+
this.submitted[element.name] = message;
|
621 |
+
},
|
622 |
+
|
623 |
+
addWrapper: function(toToggle) {
|
624 |
+
if ( this.settings.wrapper ) {
|
625 |
+
toToggle = toToggle.add( toToggle.parent( this.settings.wrapper ) );
|
626 |
+
}
|
627 |
+
return toToggle;
|
628 |
+
},
|
629 |
+
|
630 |
+
defaultShowErrors: function() {
|
631 |
+
var i, elements;
|
632 |
+
for ( i = 0; this.errorList[i]; i++ ) {
|
633 |
+
var error = this.errorList[i];
|
634 |
+
if ( this.settings.highlight ) {
|
635 |
+
this.settings.highlight.call( this, error.element, this.settings.errorClass, this.settings.validClass );
|
636 |
+
}
|
637 |
+
this.showLabel( error.element, error.message );
|
638 |
+
}
|
639 |
+
if( this.errorList.length ) {
|
640 |
+
this.toShow = this.toShow.add( this.containers );
|
641 |
+
}
|
642 |
+
if (this.settings.success) {
|
643 |
+
for ( i = 0; this.successList[i]; i++ ) {
|
644 |
+
this.showLabel( this.successList[i] );
|
645 |
+
}
|
646 |
+
}
|
647 |
+
if (this.settings.unhighlight) {
|
648 |
+
for ( i = 0, elements = this.validElements(); elements[i]; i++ ) {
|
649 |
+
this.settings.unhighlight.call( this, elements[i], this.settings.errorClass, this.settings.validClass );
|
650 |
+
}
|
651 |
+
}
|
652 |
+
this.toHide = this.toHide.not( this.toShow );
|
653 |
+
this.hideErrors();
|
654 |
+
this.addWrapper( this.toShow ).show();
|
655 |
+
},
|
656 |
+
|
657 |
+
validElements: function() {
|
658 |
+
return this.currentElements.not(this.invalidElements());
|
659 |
+
},
|
660 |
+
|
661 |
+
invalidElements: function() {
|
662 |
+
return $(this.errorList).map(function() {
|
663 |
+
return this.element;
|
664 |
+
});
|
665 |
+
},
|
666 |
+
|
667 |
+
showLabel: function(element, message) {
|
668 |
+
var label = this.errorsFor( element );
|
669 |
+
if ( label.length ) {
|
670 |
+
// refresh error/success class
|
671 |
+
label.removeClass( this.settings.validClass ).addClass( this.settings.errorClass );
|
672 |
+
|
673 |
+
// check if we have a generated label, replace the message then
|
674 |
+
if ( label.attr("generated") ) {
|
675 |
+
label.html(message);
|
676 |
+
}
|
677 |
+
} else {
|
678 |
+
// create label
|
679 |
+
label = $("<" + this.settings.errorElement + "/>")
|
680 |
+
.attr({"for": this.idOrName(element), generated: true})
|
681 |
+
.addClass(this.settings.errorClass)
|
682 |
+
.html(message || "");
|
683 |
+
if ( this.settings.wrapper ) {
|
684 |
+
// make sure the element is visible, even in IE
|
685 |
+
// actually showing the wrapped element is handled elsewhere
|
686 |
+
label = label.hide().show().wrap("<" + this.settings.wrapper + "/>").parent();
|
687 |
+
}
|
688 |
+
if ( !this.labelContainer.append(label).length ) {
|
689 |
+
if ( this.settings.errorPlacement ) {
|
690 |
+
this.settings.errorPlacement(label, $(element) );
|
691 |
+
} else {
|
692 |
+
label.insertAfter(element);
|
693 |
+
}
|
694 |
+
}
|
695 |
+
}
|
696 |
+
if ( !message && this.settings.success ) {
|
697 |
+
label.text("");
|
698 |
+
if ( typeof this.settings.success === "string" ) {
|
699 |
+
label.addClass( this.settings.success );
|
700 |
+
} else {
|
701 |
+
this.settings.success( label );
|
702 |
+
}
|
703 |
+
}
|
704 |
+
this.toShow = this.toShow.add(label);
|
705 |
+
},
|
706 |
+
|
707 |
+
errorsFor: function(element) {
|
708 |
+
var name = this.idOrName(element);
|
709 |
+
return this.errors().filter(function() {
|
710 |
+
return $(this).attr('for') === name;
|
711 |
+
});
|
712 |
+
},
|
713 |
+
|
714 |
+
idOrName: function(element) {
|
715 |
+
return this.groups[element.name] || (this.checkable(element) ? element.name : element.id || element.name);
|
716 |
+
},
|
717 |
+
|
718 |
+
validationTargetFor: function(element) {
|
719 |
+
// if radio/checkbox, validate first element in group instead
|
720 |
+
if (this.checkable(element)) {
|
721 |
+
element = this.findByName( element.name ).not(this.settings.ignore)[0];
|
722 |
+
}
|
723 |
+
return element;
|
724 |
+
},
|
725 |
+
|
726 |
+
checkable: function( element ) {
|
727 |
+
return (/radio|checkbox/i).test(element.type);
|
728 |
+
},
|
729 |
+
|
730 |
+
findByName: function( name ) {
|
731 |
+
// select by name and filter by form for performance over form.find("[name=...]")
|
732 |
+
var form = this.currentForm;
|
733 |
+
return $(document.getElementsByName(name)).map(function(index, element) {
|
734 |
+
return element.form === form && element.name === name && element || null;
|
735 |
+
});
|
736 |
+
},
|
737 |
+
|
738 |
+
getLength: function(value, element) {
|
739 |
+
switch( element.nodeName.toLowerCase() ) {
|
740 |
+
case 'select':
|
741 |
+
return $("option:selected", element).length;
|
742 |
+
case 'input':
|
743 |
+
if( this.checkable( element) ) {
|
744 |
+
return this.findByName(element.name).filter(':checked').length;
|
745 |
+
}
|
746 |
+
}
|
747 |
+
return value.length;
|
748 |
+
},
|
749 |
+
|
750 |
+
depend: function(param, element) {
|
751 |
+
return this.dependTypes[typeof param] ? this.dependTypes[typeof param](param, element) : true;
|
752 |
+
},
|
753 |
+
|
754 |
+
dependTypes: {
|
755 |
+
"boolean": function(param, element) {
|
756 |
+
return param;
|
757 |
+
},
|
758 |
+
"string": function(param, element) {
|
759 |
+
return !!$(param, element.form).length;
|
760 |
+
},
|
761 |
+
"function": function(param, element) {
|
762 |
+
return param(element);
|
763 |
+
}
|
764 |
+
},
|
765 |
+
|
766 |
+
optional: function(element) {
|
767 |
+
var val = this.elementValue(element);
|
768 |
+
return !$.validator.methods.required.call(this, val, element) && "dependency-mismatch";
|
769 |
+
},
|
770 |
+
|
771 |
+
startRequest: function(element) {
|
772 |
+
if (!this.pending[element.name]) {
|
773 |
+
this.pendingRequest++;
|
774 |
+
this.pending[element.name] = true;
|
775 |
+
}
|
776 |
+
},
|
777 |
+
|
778 |
+
stopRequest: function(element, valid) {
|
779 |
+
this.pendingRequest--;
|
780 |
+
// sometimes synchronization fails, make sure pendingRequest is never < 0
|
781 |
+
if (this.pendingRequest < 0) {
|
782 |
+
this.pendingRequest = 0;
|
783 |
+
}
|
784 |
+
delete this.pending[element.name];
|
785 |
+
if ( valid && this.pendingRequest === 0 && this.formSubmitted && this.form() ) {
|
786 |
+
$(this.currentForm).submit();
|
787 |
+
this.formSubmitted = false;
|
788 |
+
} else if (!valid && this.pendingRequest === 0 && this.formSubmitted) {
|
789 |
+
$(this.currentForm).triggerHandler("invalid-form", [this]);
|
790 |
+
this.formSubmitted = false;
|
791 |
+
}
|
792 |
+
},
|
793 |
+
|
794 |
+
previousValue: function(element) {
|
795 |
+
return $.data(element, "previousValue") || $.data(element, "previousValue", {
|
796 |
+
old: null,
|
797 |
+
valid: true,
|
798 |
+
message: this.defaultMessage( element, "remote" )
|
799 |
+
});
|
800 |
+
}
|
801 |
+
|
802 |
+
},
|
803 |
+
|
804 |
+
classRuleSettings: {
|
805 |
+
required: {required: true},
|
806 |
+
email: {email: true},
|
807 |
+
url: {url: true},
|
808 |
+
date: {date: true},
|
809 |
+
dateISO: {dateISO: true},
|
810 |
+
number: {number: true},
|
811 |
+
digits: {digits: true},
|
812 |
+
creditcard: {creditcard: true}
|
813 |
+
},
|
814 |
+
|
815 |
+
addClassRules: function(className, rules) {
|
816 |
+
if ( className.constructor === String ) {
|
817 |
+
this.classRuleSettings[className] = rules;
|
818 |
+
} else {
|
819 |
+
$.extend(this.classRuleSettings, className);
|
820 |
+
}
|
821 |
+
},
|
822 |
+
|
823 |
+
classRules: function(element) {
|
824 |
+
var rules = {};
|
825 |
+
var classes = $(element).attr('class');
|
826 |
+
if ( classes ) {
|
827 |
+
$.each(classes.split(' '), function() {
|
828 |
+
if (this in $.validator.classRuleSettings) {
|
829 |
+
$.extend(rules, $.validator.classRuleSettings[this]);
|
830 |
+
}
|
831 |
+
});
|
832 |
+
}
|
833 |
+
return rules;
|
834 |
+
},
|
835 |
+
|
836 |
+
attributeRules: function(element) {
|
837 |
+
var rules = {};
|
838 |
+
var $element = $(element);
|
839 |
+
|
840 |
+
for (var method in $.validator.methods) {
|
841 |
+
var value;
|
842 |
+
|
843 |
+
// support for <input required> in both html5 and older browsers
|
844 |
+
if (method === 'required') {
|
845 |
+
value = $element.get(0).getAttribute(method);
|
846 |
+
// Some browsers return an empty string for the required attribute
|
847 |
+
// and non-HTML5 browsers might have required="" markup
|
848 |
+
if (value === "") {
|
849 |
+
value = true;
|
850 |
+
} else if (value === "false") {
|
851 |
+
value = false;
|
852 |
+
}
|
853 |
+
// force non-HTML5 browsers to return bool
|
854 |
+
value = !!value;
|
855 |
+
} else {
|
856 |
+
value = $element.attr(method);
|
857 |
+
}
|
858 |
+
|
859 |
+
if (value) {
|
860 |
+
rules[method] = value;
|
861 |
+
} else if ($element[0].getAttribute("type") === method) {
|
862 |
+
rules[method] = true;
|
863 |
+
}
|
864 |
+
}
|
865 |
+
|
866 |
+
// maxlength may be returned as -1, 2147483647 (IE) and 524288 (safari) for text inputs
|
867 |
+
if (rules.maxlength && /-1|2147483647|524288/.test(rules.maxlength)) {
|
868 |
+
delete rules.maxlength;
|
869 |
+
}
|
870 |
+
|
871 |
+
return rules;
|
872 |
+
},
|
873 |
+
|
874 |
+
metadataRules: function(element) {
|
875 |
+
if (!$.metadata) {
|
876 |
+
return {};
|
877 |
+
}
|
878 |
+
|
879 |
+
var meta = $.data(element.form, 'validator').settings.meta;
|
880 |
+
return meta ?
|
881 |
+
$(element).metadata()[meta] :
|
882 |
+
$(element).metadata();
|
883 |
+
},
|
884 |
+
|
885 |
+
staticRules: function(element) {
|
886 |
+
var rules = {};
|
887 |
+
var validator = $.data(element.form, 'validator');
|
888 |
+
if (validator.settings.rules) {
|
889 |
+
rules = $.validator.normalizeRule(validator.settings.rules[element.name]) || {};
|
890 |
+
}
|
891 |
+
return rules;
|
892 |
+
},
|
893 |
+
|
894 |
+
normalizeRules: function(rules, element) {
|
895 |
+
// handle dependency check
|
896 |
+
$.each(rules, function(prop, val) {
|
897 |
+
// ignore rule when param is explicitly false, eg. required:false
|
898 |
+
if (val === false) {
|
899 |
+
delete rules[prop];
|
900 |
+
return;
|
901 |
+
}
|
902 |
+
if (val.param || val.depends) {
|
903 |
+
var keepRule = true;
|
904 |
+
switch (typeof val.depends) {
|
905 |
+
case "string":
|
906 |
+
keepRule = !!$(val.depends, element.form).length;
|
907 |
+
break;
|
908 |
+
case "function":
|
909 |
+
keepRule = val.depends.call(element, element);
|
910 |
+
break;
|
911 |
+
}
|
912 |
+
if (keepRule) {
|
913 |
+
rules[prop] = val.param !== undefined ? val.param : true;
|
914 |
+
} else {
|
915 |
+
delete rules[prop];
|
916 |
+
}
|
917 |
+
}
|
918 |
+
});
|
919 |
+
|
920 |
+
// evaluate parameters
|
921 |
+
$.each(rules, function(rule, parameter) {
|
922 |
+
rules[rule] = $.isFunction(parameter) ? parameter(element) : parameter;
|
923 |
+
});
|
924 |
+
|
925 |
+
// clean number parameters
|
926 |
+
$.each(['minlength', 'maxlength', 'min', 'max'], function() {
|
927 |
+
if (rules[this]) {
|
928 |
+
rules[this] = Number(rules[this]);
|
929 |
+
}
|
930 |
+
});
|
931 |
+
$.each(['rangelength', 'range'], function() {
|
932 |
+
if (rules[this]) {
|
933 |
+
rules[this] = [Number(rules[this][0]), Number(rules[this][1])];
|
934 |
+
}
|
935 |
+
});
|
936 |
+
|
937 |
+
if ($.validator.autoCreateRanges) {
|
938 |
+
// auto-create ranges
|
939 |
+
if (rules.min && rules.max) {
|
940 |
+
rules.range = [rules.min, rules.max];
|
941 |
+
delete rules.min;
|
942 |
+
delete rules.max;
|
943 |
+
}
|
944 |
+
if (rules.minlength && rules.maxlength) {
|
945 |
+
rules.rangelength = [rules.minlength, rules.maxlength];
|
946 |
+
delete rules.minlength;
|
947 |
+
delete rules.maxlength;
|
948 |
+
}
|
949 |
+
}
|
950 |
+
|
951 |
+
// To support custom messages in metadata ignore rule methods titled "messages"
|
952 |
+
if (rules.messages) {
|
953 |
+
delete rules.messages;
|
954 |
+
}
|
955 |
+
|
956 |
+
return rules;
|
957 |
+
},
|
958 |
+
|
959 |
+
// Converts a simple string to a {string: true} rule, e.g., "required" to {required:true}
|
960 |
+
normalizeRule: function(data) {
|
961 |
+
if( typeof data === "string" ) {
|
962 |
+
var transformed = {};
|
963 |
+
$.each(data.split(/\s/), function() {
|
964 |
+
transformed[this] = true;
|
965 |
+
});
|
966 |
+
data = transformed;
|
967 |
+
}
|
968 |
+
return data;
|
969 |
+
},
|
970 |
+
|
971 |
+
// http://docs.jquery.com/Plugins/Validation/Validator/addMethod
|
972 |
+
addMethod: function(name, method, message) {
|
973 |
+
$.validator.methods[name] = method;
|
974 |
+
$.validator.messages[name] = message !== undefined ? message : $.validator.messages[name];
|
975 |
+
if (method.length < 3) {
|
976 |
+
$.validator.addClassRules(name, $.validator.normalizeRule(name));
|
977 |
+
}
|
978 |
+
},
|
979 |
+
|
980 |
+
methods: {
|
981 |
+
|
982 |
+
// http://docs.jquery.com/Plugins/Validation/Methods/required
|
983 |
+
required: function(value, element, param) {
|
984 |
+
// check if dependency is met
|
985 |
+
if ( !this.depend(param, element) ) {
|
986 |
+
return "dependency-mismatch";
|
987 |
+
}
|
988 |
+
if ( element.nodeName.toLowerCase() === "select" ) {
|
989 |
+
// could be an array for select-multiple or a string, both are fine this way
|
990 |
+
var val = $(element).val();
|
991 |
+
return val && val.length > 0;
|
992 |
+
}
|
993 |
+
if ( this.checkable(element) ) {
|
994 |
+
return this.getLength(value, element) > 0;
|
995 |
+
}
|
996 |
+
return $.trim(value).length > 0;
|
997 |
+
},
|
998 |
+
|
999 |
+
// http://docs.jquery.com/Plugins/Validation/Methods/remote
|
1000 |
+
remote: function(value, element, param) {
|
1001 |
+
if ( this.optional(element) ) {
|
1002 |
+
return "dependency-mismatch";
|
1003 |
+
}
|
1004 |
+
|
1005 |
+
var previous = this.previousValue(element);
|
1006 |
+
if (!this.settings.messages[element.name] ) {
|
1007 |
+
this.settings.messages[element.name] = {};
|
1008 |
+
}
|
1009 |
+
previous.originalMessage = this.settings.messages[element.name].remote;
|
1010 |
+
this.settings.messages[element.name].remote = previous.message;
|
1011 |
+
|
1012 |
+
param = typeof param === "string" && {url:param} || param;
|
1013 |
+
|
1014 |
+
if ( this.pending[element.name] ) {
|
1015 |
+
return "pending";
|
1016 |
+
}
|
1017 |
+
if ( previous.old === value ) {
|
1018 |
+
return previous.valid;
|
1019 |
+
}
|
1020 |
+
|
1021 |
+
previous.old = value;
|
1022 |
+
var validator = this;
|
1023 |
+
this.startRequest(element);
|
1024 |
+
var data = {};
|
1025 |
+
data[element.name] = value;
|
1026 |
+
$.ajax($.extend(true, {
|
1027 |
+
url: param,
|
1028 |
+
mode: "abort",
|
1029 |
+
port: "validate" + element.name,
|
1030 |
+
dataType: "json",
|
1031 |
+
data: data,
|
1032 |
+
success: function(response) {
|
1033 |
+
validator.settings.messages[element.name].remote = previous.originalMessage;
|
1034 |
+
var valid = response === true;
|
1035 |
+
if ( valid ) {
|
1036 |
+
var submitted = validator.formSubmitted;
|
1037 |
+
validator.prepareElement(element);
|
1038 |
+
validator.formSubmitted = submitted;
|
1039 |
+
validator.successList.push(element);
|
1040 |
+
validator.showErrors();
|
1041 |
+
} else {
|
1042 |
+
var errors = {};
|
1043 |
+
var message = response || validator.defaultMessage( element, "remote" );
|
1044 |
+
errors[element.name] = previous.message = $.isFunction(message) ? message(value) : message;
|
1045 |
+
validator.showErrors(errors);
|
1046 |
+
}
|
1047 |
+
previous.valid = valid;
|
1048 |
+
validator.stopRequest(element, valid);
|
1049 |
+
}
|
1050 |
+
}, param));
|
1051 |
+
return "pending";
|
1052 |
+
},
|
1053 |
+
|
1054 |
+
// http://docs.jquery.com/Plugins/Validation/Methods/minlength
|
1055 |
+
minlength: function(value, element, param) {
|
1056 |
+
var length = $.isArray( value ) ? value.length : this.getLength($.trim(value), element);
|
1057 |
+
return this.optional(element) || length >= param;
|
1058 |
+
},
|
1059 |
+
|
1060 |
+
// http://docs.jquery.com/Plugins/Validation/Methods/maxlength
|
1061 |
+
maxlength: function(value, element, param) {
|
1062 |
+
var length = $.isArray( value ) ? value.length : this.getLength($.trim(value), element);
|
1063 |
+
return this.optional(element) || length <= param;
|
1064 |
+
},
|
1065 |
+
|
1066 |
+
// http://docs.jquery.com/Plugins/Validation/Methods/rangelength
|
1067 |
+
rangelength: function(value, element, param) {
|
1068 |
+
var length = $.isArray( value ) ? value.length : this.getLength($.trim(value), element);
|
1069 |
+
return this.optional(element) || ( length >= param[0] && length <= param[1] );
|
1070 |
+
},
|
1071 |
+
|
1072 |
+
// http://docs.jquery.com/Plugins/Validation/Methods/min
|
1073 |
+
min: function( value, element, param ) {
|
1074 |
+
return this.optional(element) || value >= param;
|
1075 |
+
},
|
1076 |
+
|
1077 |
+
// http://docs.jquery.com/Plugins/Validation/Methods/max
|
1078 |
+
max: function( value, element, param ) {
|
1079 |
+
return this.optional(element) || value <= param;
|
1080 |
+
},
|
1081 |
+
|
1082 |
+
// http://docs.jquery.com/Plugins/Validation/Methods/range
|
1083 |
+
range: function( value, element, param ) {
|
1084 |
+
return this.optional(element) || ( value >= param[0] && value <= param[1] );
|
1085 |
+
},
|
1086 |
+
|
1087 |
+
// http://docs.jquery.com/Plugins/Validation/Methods/email
|
1088 |
+
email: function(value, element) {
|
1089 |
+
// contributed by Scott Gonzalez: http://projects.scottsplayground.com/email_address_validation/
|
1090 |
+
return this.optional(element) || /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(value);
|
1091 |
+
},
|
1092 |
+
|
1093 |
+
// http://docs.jquery.com/Plugins/Validation/Methods/url
|
1094 |
+
url: function(value, element) {
|
1095 |
+
// contributed by Scott Gonzalez: http://projects.scottsplayground.com/iri/
|
1096 |
+
return this.optional(element) || /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(value);
|
1097 |
+
},
|
1098 |
+
|
1099 |
+
// http://docs.jquery.com/Plugins/Validation/Methods/date
|
1100 |
+
date: function(value, element) {
|
1101 |
+
return this.optional(element) || !/Invalid|NaN/.test(new Date(value));
|
1102 |
+
},
|
1103 |
+
|
1104 |
+
// http://docs.jquery.com/Plugins/Validation/Methods/dateISO
|
1105 |
+
dateISO: function(value, element) {
|
1106 |
+
return this.optional(element) || /^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(value);
|
1107 |
+
},
|
1108 |
+
|
1109 |
+
// http://docs.jquery.com/Plugins/Validation/Methods/number
|
1110 |
+
number: function(value, element) {
|
1111 |
+
return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(value);
|
1112 |
+
},
|
1113 |
+
|
1114 |
+
// http://docs.jquery.com/Plugins/Validation/Methods/digits
|
1115 |
+
digits: function(value, element) {
|
1116 |
+
return this.optional(element) || /^\d+$/.test(value);
|
1117 |
+
},
|
1118 |
+
|
1119 |
+
// http://docs.jquery.com/Plugins/Validation/Methods/creditcard
|
1120 |
+
// based on http://en.wikipedia.org/wiki/Luhn
|
1121 |
+
creditcard: function(value, element) {
|
1122 |
+
if ( this.optional(element) ) {
|
1123 |
+
return "dependency-mismatch";
|
1124 |
+
}
|
1125 |
+
// accept only spaces, digits and dashes
|
1126 |
+
if (/[^0-9 \-]+/.test(value)) {
|
1127 |
+
return false;
|
1128 |
+
}
|
1129 |
+
var nCheck = 0,
|
1130 |
+
nDigit = 0,
|
1131 |
+
bEven = false;
|
1132 |
+
|
1133 |
+
value = value.replace(/\D/g, "");
|
1134 |
+
|
1135 |
+
for (var n = value.length - 1; n >= 0; n--) {
|
1136 |
+
var cDigit = value.charAt(n);
|
1137 |
+
nDigit = parseInt(cDigit, 10);
|
1138 |
+
if (bEven) {
|
1139 |
+
if ((nDigit *= 2) > 9) {
|
1140 |
+
nDigit -= 9;
|
1141 |
+
}
|
1142 |
+
}
|
1143 |
+
nCheck += nDigit;
|
1144 |
+
bEven = !bEven;
|
1145 |
+
}
|
1146 |
+
|
1147 |
+
return (nCheck % 10) === 0;
|
1148 |
+
},
|
1149 |
+
|
1150 |
+
// http://docs.jquery.com/Plugins/Validation/Methods/accept
|
1151 |
+
accept: function(value, element, param) {
|
1152 |
+
param = typeof param === "string" ? param.replace(/,/g, '|') : "png|jpe?g|gif";
|
1153 |
+
return this.optional(element) || value.match(new RegExp(".(" + param + ")$", "i"));
|
1154 |
+
},
|
1155 |
+
|
1156 |
+
// http://docs.jquery.com/Plugins/Validation/Methods/equalTo
|
1157 |
+
equalTo: function(value, element, param) {
|
1158 |
+
// bind to the blur event of the target in order to revalidate whenever the target field is updated
|
1159 |
+
// TODO find a way to bind the event just once, avoiding the unbind-rebind overhead
|
1160 |
+
var target = $(param).unbind(".validate-equalTo").bind("blur.validate-equalTo", function() {
|
1161 |
+
$(element).valid();
|
1162 |
+
});
|
1163 |
+
return value === target.val();
|
1164 |
+
}
|
1165 |
+
|
1166 |
+
}
|
1167 |
+
|
1168 |
+
});
|
1169 |
+
|
1170 |
+
// deprecated, use $.validator.format instead
|
1171 |
+
$.format = $.validator.format;
|
1172 |
+
|
1173 |
+
}(fbuilderjQuery));
|
1174 |
+
|
1175 |
+
// ajax mode: abort
|
1176 |
+
// usage: $.ajax({ mode: "abort"[, port: "uniqueport"]});
|
1177 |
+
// if mode:"abort" is used, the previous request on that port (port can be undefined) is aborted via XMLHttpRequest.abort()
|
1178 |
+
(function($) {
|
1179 |
+
var pendingRequests = {};
|
1180 |
+
// Use a prefilter if available (1.5+)
|
1181 |
+
if ( $.ajaxPrefilter ) {
|
1182 |
+
$.ajaxPrefilter(function(settings, _, xhr) {
|
1183 |
+
var port = settings.port;
|
1184 |
+
if (settings.mode === "abort") {
|
1185 |
+
if ( pendingRequests[port] ) {
|
1186 |
+
pendingRequests[port].abort();
|
1187 |
+
}
|
1188 |
+
pendingRequests[port] = xhr;
|
1189 |
+
}
|
1190 |
+
});
|
1191 |
+
} else {
|
1192 |
+
// Proxy ajax
|
1193 |
+
var ajax = $.ajax;
|
1194 |
+
$.ajax = function(settings) {
|
1195 |
+
var mode = ( "mode" in settings ? settings : $.ajaxSettings ).mode,
|
1196 |
+
port = ( "port" in settings ? settings : $.ajaxSettings ).port;
|
1197 |
+
if (mode === "abort") {
|
1198 |
+
if ( pendingRequests[port] ) {
|
1199 |
+
pendingRequests[port].abort();
|
1200 |
+
}
|
1201 |
+
return (pendingRequests[port] = ajax.apply(this, arguments));
|
1202 |
+
}
|
1203 |
+
return ajax.apply(this, arguments);
|
1204 |
+
};
|
1205 |
+
}
|
1206 |
+
}(fbuilderjQuery));
|
1207 |
+
|
1208 |
+
// provides cross-browser focusin and focusout events
|
1209 |
+
// IE has native support, in other browsers, use event caputuring (neither bubbles)
|
1210 |
+
|
1211 |
+
// provides delegate(type: String, delegate: Selector, handler: Callback) plugin for easier event delegation
|
1212 |
+
// handler is only called when $(event.target).is(delegate), in the scope of the jquery-object for event.target
|
1213 |
+
(function($) {
|
1214 |
+
// only implement if not provided by jQuery core (since 1.4)
|
1215 |
+
// TODO verify if jQuery 1.4's implementation is compatible with older jQuery special-event APIs
|
1216 |
+
if (!fbuilderjQuery.event.special.focusin && !fbuilderjQuery.event.special.focusout && document.addEventListener) {
|
1217 |
+
$.each({
|
1218 |
+
focus: 'focusin',
|
1219 |
+
blur: 'focusout'
|
1220 |
+
}, function( original, fix ){
|
1221 |
+
$.event.special[fix] = {
|
1222 |
+
setup:function() {
|
1223 |
+
this.addEventListener( original, handler, true );
|
1224 |
+
},
|
1225 |
+
teardown:function() {
|
1226 |
+
this.removeEventListener( original, handler, true );
|
1227 |
+
},
|
1228 |
+
handler: function(e) {
|
1229 |
+
var args = arguments;
|
1230 |
+
args[0] = $.event.fix(e);
|
1231 |
+
args[0].type = fix;
|
1232 |
+
return $.event.dispatch.apply(this, args);
|
1233 |
+
}
|
1234 |
+
};
|
1235 |
+
function handler(e) {
|
1236 |
+
e = $.event.fix(e);
|
1237 |
+
e.type = fix;
|
1238 |
+
return $.event.dispatch.call(this, e);
|
1239 |
+
}
|
1240 |
+
});
|
1241 |
+
}
|
1242 |
+
$.extend($.fn, {
|
1243 |
+
validateDelegate: function(delegate, type, handler) {
|
1244 |
+
return this.bind(type, function(event) {
|
1245 |
+
var target = $(event.target);
|
1246 |
+
if (target.is(delegate)) {
|
1247 |
+
return handler.apply(target, arguments);
|
1248 |
+
}
|
1249 |
+
});
|
1250 |
+
}
|
1251 |
+
});
|
1252 |
+
}(fbuilderjQuery));
|
1253 |
+
});
|
js/modules/index.html
ADDED
File without changes
|
languages/cpppp-af.mo
ADDED
Binary file
|
languages/cpppp-af.po
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 19:58+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: af\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "E-pos"
|
18 |
+
|
19 |
+
# RevTran=Subjects
|
20 |
+
# RevTran=Subjects
|
21 |
+
msgid "Subject"
|
22 |
+
msgstr "Onderwerp"
|
23 |
+
|
24 |
+
msgid "Message"
|
25 |
+
msgstr "Boodskap"
|
26 |
+
|
27 |
+
# RevTran=Please enter the CAPTCHA verification code.
|
28 |
+
msgid "Please enter the captcha verification code."
|
29 |
+
msgstr "Tik asb die captcha verifikasiekode."
|
30 |
+
|
31 |
+
# RevTran=Wrong captcha code. Please try again.
|
32 |
+
msgid "Incorrect captcha code. Please try again."
|
33 |
+
msgstr "Verkeerde captcha kode. Probeer asseblief weer."
|
34 |
+
|
35 |
+
# RevTran=INVALID LANGUAGE PAIR SPECIFIED. EXAMPLE: LANGPAIR=EN|IT USING 2 LETTER ISO OR RFC3066 LIKE ZH-CN. ALMOST ALL LANGUAGES SUPPORTED BUT SOME MAY HAVE NO CONTENT
|
36 |
+
msgid "Please enter the security code"
|
37 |
+
msgstr "Voer asseblief die sekuriteit's kode"
|
38 |
+
|
39 |
+
msgid "Security Code"
|
40 |
+
msgstr "Sekuriteit Kode"
|
41 |
+
|
42 |
+
msgid "Coupon code"
|
43 |
+
msgstr "Koepon kode"
|
44 |
+
|
45 |
+
msgid "This field is required."
|
46 |
+
msgstr "Hierdie veld word vereis."
|
47 |
+
|
48 |
+
# RevTran=INVALID LANGUAGE PAIR SPECIFIED. EXAMPLE: LANGPAIR=EN|IT USING 2 LETTER ISO OR RFC3066 LIKE ZH-CN. ALMOST ALL LANGUAGES SUPPORTED BUT SOME MAY HAVE NO CONTENT
|
49 |
+
msgid "Please enter a valid email address."
|
50 |
+
msgstr "Voer asseblief 'n geldige e-pos adres."
|
51 |
+
|
52 |
+
# RevTran=INVALID LANGUAGE PAIR SPECIFIED. EXAMPLE: LANGPAIR=EN|IT USING 2 LETTER ISO OR RFC3066 LIKE ZH-CN. ALMOST ALL LANGUAGES SUPPORTED BUT SOME MAY HAVE NO CONTENT
|
53 |
+
msgid "Please enter a valid captcha code."
|
54 |
+
msgstr "Voer asseblief 'n geldige captcha kode."
|
55 |
+
|
56 |
+
# RevTran=INVALID LANGUAGE PAIR SPECIFIED. EXAMPLE: LANGPAIR=EN|IT USING 2 LETTER ISO OR RFC3066 LIKE ZH-CN. ALMOST ALL LANGUAGES SUPPORTED BUT SOME MAY HAVE NO CONTENT
|
57 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
58 |
+
msgstr "Tik 'n geldige datum met hierdie formaat (mm/dd/jjjj)"
|
59 |
+
|
60 |
+
# RevTran=INVALID LANGUAGE PAIR SPECIFIED. EXAMPLE: LANGPAIR=EN|IT USING 2 LETTER ISO OR RFC3066 LIKE ZH-CN. ALMOST ALL LANGUAGES SUPPORTED BUT SOME MAY HAVE NO CONTENT
|
61 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
62 |
+
msgstr "Tik 'n geldige datum met hierdie formaat (dd/mm/jjjj)"
|
63 |
+
|
64 |
+
# RevTran=INVALID LANGUAGE PAIR SPECIFIED. EXAMPLE: LANGPAIR=EN|IT USING 2 LETTER ISO OR RFC3066 LIKE ZH-CN. ALMOST ALL LANGUAGES SUPPORTED BUT SOME MAY HAVE NO CONTENT
|
65 |
+
msgid "Please enter a valid number."
|
66 |
+
msgstr "Tik 'n geldige nommer."
|
67 |
+
|
68 |
+
# RevTran=Enter only digits.
|
69 |
+
msgid "Please enter only digits."
|
70 |
+
msgstr "Tik net syfers."
|
71 |
+
|
72 |
+
# RevTran=INVALID LANGUAGE PAIR SPECIFIED. EXAMPLE: LANGPAIR=EN|IT USING 2 LETTER ISO OR RFC3066 LIKE ZH-CN. ALMOST ALL LANGUAGES SUPPORTED BUT SOME MAY HAVE NO CONTENT
|
73 |
+
msgid "Please enter a value less than or equal to {0}."
|
74 |
+
msgstr "Voer asseblief 'n waarde van minder as of gelyk aan {0}."
|
75 |
+
|
76 |
+
# RevTran=INVALID LANGUAGE PAIR SPECIFIED. EXAMPLE: LANGPAIR=EN|IT USING 2 LETTER ISO OR RFC3066 LIKE ZH-CN. ALMOST ALL LANGUAGES SUPPORTED BUT SOME MAY HAVE NO CONTENT
|
77 |
+
msgid "Please enter a value greater than or equal to {0}."
|
78 |
+
msgstr "Voer asseblief 'n waarde groter as of gelyk aan {0}."
|
languages/cpppp-ar.mo
ADDED
Binary file
|
languages/cpppp-ar.po
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:00+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: ar\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "البريد الإلكتروني"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "الموضوع"
|
21 |
+
|
22 |
+
# RevTran=Mission:
|
23 |
+
msgid "Message"
|
24 |
+
msgstr "الرسالة"
|
25 |
+
|
26 |
+
# RevTran=Please enter the verification code CAPTCHA.
|
27 |
+
msgid "Please enter the captcha verification code."
|
28 |
+
msgstr "الرجاء إدخال رمز التحقق CAPTCHA."
|
29 |
+
|
30 |
+
# RevTran=CAPTCHA incorrect code. Please try again.
|
31 |
+
msgid "Incorrect captcha code. Please try again."
|
32 |
+
msgstr "كود الكابتشا غير صحيحة. يرجى المحاولة مرة أخرى."
|
33 |
+
|
34 |
+
msgid "Please enter the security code"
|
35 |
+
msgstr "الرجاء إدخال رمز الأمان"
|
36 |
+
|
37 |
+
# RevTran=Security code
|
38 |
+
msgid "Security Code"
|
39 |
+
msgstr "رمز الأمان"
|
40 |
+
|
41 |
+
msgid "Coupon code"
|
42 |
+
msgstr "رمز الكوبون"
|
43 |
+
|
44 |
+
# RevTran=This field is required
|
45 |
+
msgid "This field is required."
|
46 |
+
msgstr "هذا الحقل مطلوب"
|
47 |
+
|
48 |
+
msgid "Please enter a valid email address."
|
49 |
+
msgstr "يرجى إدخال عنوان بريد إلكتروني صالح."
|
50 |
+
|
51 |
+
# RevTran=Please enter the CAPTCHA valid code.
|
52 |
+
msgid "Please enter a valid captcha code."
|
53 |
+
msgstr "الرجاء إدخال رمز CAPTCHA صالح."
|
54 |
+
|
55 |
+
# RevTran=Please enter a valid date with this format (Day \\/month \\/year)
|
56 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
57 |
+
msgstr "الرجاء إدخال تاريخ صالح مع هذا الشكل (يوم/شهر/سنة)"
|
58 |
+
|
59 |
+
# RevTran=Please enter a valid date with this format (Day \\/month \\/year)
|
60 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
61 |
+
msgstr "الرجاء إدخال تاريخ صالح مع هذا الشكل (يوم/شهر/سنة)"
|
62 |
+
|
63 |
+
# RevTran=Please enter a valid year number
|
64 |
+
msgid "Please enter a valid number."
|
65 |
+
msgstr "الرجاء إدخال رقم عام صحيح"
|
66 |
+
|
67 |
+
# RevTran=Please enter only numbers.
|
68 |
+
msgid "Please enter only digits."
|
69 |
+
msgstr "الرجاء إدخال الأرقام فقط."
|
70 |
+
|
71 |
+
msgid "Please enter a value less than or equal to {0}."
|
72 |
+
msgstr "يرجى إدخال قيمة أقل من أو يساوي إلى {0}."
|
73 |
+
|
74 |
+
msgid "Please enter a value greater than or equal to {0}."
|
75 |
+
msgstr "يرجى إدخال قيمة أكبر من أو يساوي إلى {0}."
|
languages/cpppp-az.mo
ADDED
Binary file
|
languages/cpppp-az.po
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:00+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: az\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "Elektron poçt"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "Subyekt"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "Çatdırış"
|
24 |
+
|
25 |
+
# RevTran=Enter the verification code Captcha.
|
26 |
+
msgid "Please enter the captcha verification code."
|
27 |
+
msgstr "Captcha təsdiq kodunu daxil edin."
|
28 |
+
|
29 |
+
# RevTran=The wrong captcha code. Please try again.
|
30 |
+
msgid "Incorrect captcha code. Please try again."
|
31 |
+
msgstr "Yanlış captcha kodu. Daha cəhd edin."
|
32 |
+
|
33 |
+
# RevTran=Enter the security code
|
34 |
+
msgid "Please enter the security code"
|
35 |
+
msgstr "Təhlükəsizlik kodunu daxil edin"
|
36 |
+
|
37 |
+
msgid "Security Code"
|
38 |
+
msgstr "Təhlükəsizlik Kodu"
|
39 |
+
|
40 |
+
# RevTran=Coupon Code
|
41 |
+
msgid "Coupon code"
|
42 |
+
msgstr "Kupon kodu"
|
43 |
+
|
44 |
+
msgid "This field is required."
|
45 |
+
msgstr "Bu sahədə tələb olunur."
|
46 |
+
|
47 |
+
msgid "Please enter a valid email address."
|
48 |
+
msgstr "Düzgün e-mail daxil edin."
|
49 |
+
|
50 |
+
# RevTran=Enter the captcha code.
|
51 |
+
msgid "Please enter a valid captcha code."
|
52 |
+
msgstr "Cari captcha kodunu daxil edin."
|
53 |
+
|
54 |
+
# RevTran=This format (mm \\/dd \\/year) and enter a valid date
|
55 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
56 |
+
msgstr "Bu format (mm/dd/il) ilə etibarlı tarixi daxil edin"
|
57 |
+
|
58 |
+
# RevTran=This format (dd \\/mm \\/year) and enter a valid date
|
59 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
60 |
+
msgstr "Bu format (dd/mm/il) ilə etibarlı tarixi daxil edin"
|
61 |
+
|
62 |
+
msgid "Please enter a valid number."
|
63 |
+
msgstr "Cari nömrəsi daxil edin."
|
64 |
+
|
65 |
+
msgid "Please enter only digits."
|
66 |
+
msgstr "Yalnız rəqəm daxil edin."
|
67 |
+
|
68 |
+
# RevTran=A value less than or equal to {0} Enter.
|
69 |
+
msgid "Please enter a value less than or equal to {0}."
|
70 |
+
msgstr "Daha az və ya {0} bərabər bir dəyər daxil edin."
|
71 |
+
|
72 |
+
# RevTran=Greater than or equal to {0} Please enter a value.
|
73 |
+
msgid "Please enter a value greater than or equal to {0}."
|
74 |
+
msgstr "Və ya daha çox üçün {0} bərabər bir dəyər daxil edin."
|
languages/cpppp-be_BY.mo
ADDED
Binary file
|
languages/cpppp-be_BY.po
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:00+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: be_BY\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
# RevTran=E-mail address
|
17 |
+
msgid "Email"
|
18 |
+
msgstr "Электронная пошта"
|
19 |
+
|
20 |
+
msgid "Subject"
|
21 |
+
msgstr "Тэма"
|
22 |
+
|
23 |
+
msgid "Message"
|
24 |
+
msgstr "Паведамленьне"
|
25 |
+
|
26 |
+
# RevTran=Enter the captcha verification code.
|
27 |
+
msgid "Please enter the captcha verification code."
|
28 |
+
msgstr "Калі ласка, увядзіце капчу праверачны код."
|
29 |
+
|
30 |
+
# RevTran=Incorrect CAPTCHA Code. Please try again.
|
31 |
+
msgid "Incorrect captcha code. Please try again."
|
32 |
+
msgstr "Няправільнае CAPTCHA Code. Калі ласка, паспрабуйце яшчэ раз."
|
33 |
+
|
34 |
+
# RevTran=Enter the security code
|
35 |
+
msgid "Please enter the security code"
|
36 |
+
msgstr "Калі ласка, увядзіце ахоўны код"
|
37 |
+
|
38 |
+
# RevTran=Security code
|
39 |
+
msgid "Security Code"
|
40 |
+
msgstr "Код бяспекі"
|
41 |
+
|
42 |
+
# RevTran=Coupon Code
|
43 |
+
msgid "Coupon code"
|
44 |
+
msgstr "Код купона"
|
45 |
+
|
46 |
+
# RevTran=Filling out this field is mandatory.
|
47 |
+
msgid "This field is required."
|
48 |
+
msgstr "Запаўненне дадзенага поля абавязкова."
|
49 |
+
|
50 |
+
# RevTran=Please enter a valid address.
|
51 |
+
msgid "Please enter a valid email address."
|
52 |
+
msgstr "Калі ласка, увядзіце верны адрас."
|
53 |
+
|
54 |
+
# RevTran=Enter the captcha.
|
55 |
+
msgid "Please enter a valid captcha code."
|
56 |
+
msgstr "Калі ласка, увядзіце капчу."
|
57 |
+
|
58 |
+
# RevTran=Enter the date in this format (mm \\/dd \\/yyyy)
|
59 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
60 |
+
msgstr "Калі ласка, увядзіце даты ў гэтым фармаце (мм/дд/гггг)"
|
61 |
+
|
62 |
+
# RevTran=Enter the date in this format (dd \\/mm \\/yyyy)
|
63 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
64 |
+
msgstr "Калі ласка, увядзіце даты ў гэтым фармаце (дд/мм/гггг)"
|
65 |
+
|
66 |
+
# RevTran=Enter the correct number.
|
67 |
+
msgid "Please enter a valid number."
|
68 |
+
msgstr "Калі ласка, увядзіце правільны нумар."
|
69 |
+
|
70 |
+
# RevTran=Enter only numbers.
|
71 |
+
msgid "Please enter only digits."
|
72 |
+
msgstr "Калі ласка, увядзіце толькі лічбы."
|
73 |
+
|
74 |
+
# RevTran=Enter a value that is less than or equal to {0}.
|
75 |
+
msgid "Please enter a value less than or equal to {0}."
|
76 |
+
msgstr "Калі ласка, увядзіце значэнне, якое менш або роўна {0}."
|
77 |
+
|
78 |
+
# RevTran=Enter a value greater than or equal to {0}.
|
79 |
+
msgid "Please enter a value greater than or equal to {0}."
|
80 |
+
msgstr "Калі ласка, увядзіце значэнне, большая ці роўнае {0}."
|
languages/cpppp-bg_BG.mo
ADDED
Binary file
|
languages/cpppp-bg_BG.po
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:00+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: bg_BG\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "Имейл"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "Предмет"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "Съобщение"
|
24 |
+
|
25 |
+
# RevTran=Please enter the confirmation code Captcha.
|
26 |
+
msgid "Please enter the captcha verification code."
|
27 |
+
msgstr "Моля, въведете кода за потвърждение Captcha."
|
28 |
+
|
29 |
+
# RevTran=Wrong code Captcha. Please try again.
|
30 |
+
msgid "Incorrect captcha code. Please try again."
|
31 |
+
msgstr "Грешен код Captcha. Моля, опитайте отново."
|
32 |
+
|
33 |
+
msgid "Please enter the security code"
|
34 |
+
msgstr "Моля, въведете кода за сигурност"
|
35 |
+
|
36 |
+
msgid "Security Code"
|
37 |
+
msgstr "Код за сигурност"
|
38 |
+
|
39 |
+
msgid "Coupon code"
|
40 |
+
msgstr "Купон код"
|
41 |
+
|
42 |
+
# RevTran=This is a required field.
|
43 |
+
msgid "This field is required."
|
44 |
+
msgstr "Това поле е задължително."
|
45 |
+
|
46 |
+
# RevTran=Please enter a valid email address
|
47 |
+
msgid "Please enter a valid email address."
|
48 |
+
msgstr "Моля въведете актуален имейл адрес"
|
49 |
+
|
50 |
+
# RevTran=Please, enter a valid keycode.
|
51 |
+
msgid "Please enter a valid captcha code."
|
52 |
+
msgstr "Моля, въведете валиден CAPTCHA кодекс."
|
53 |
+
|
54 |
+
# RevTran=Please enter a valid date in this format (dd \\/mm \\/yyyy)
|
55 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
56 |
+
msgstr "Моля въведете валидна дата с този формат (дд/мм/гггг)"
|
57 |
+
|
58 |
+
# RevTran=Please enter a valid date in this format (dd \\/mm \\/yyyy)
|
59 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
60 |
+
msgstr "Моля въведете валидна дата с този формат (дд/мм/гггг)"
|
61 |
+
|
62 |
+
msgid "Please enter a valid number."
|
63 |
+
msgstr "Моля, въведете валиден номер."
|
64 |
+
|
65 |
+
# RevTran=Please enter only numbers.
|
66 |
+
msgid "Please enter only digits."
|
67 |
+
msgstr "Моля въведете само цифри."
|
68 |
+
|
69 |
+
msgid "Please enter a value less than or equal to {0}."
|
70 |
+
msgstr "Моля въведете стойност по-малка или равна на {0}."
|
71 |
+
|
72 |
+
msgid "Please enter a value greater than or equal to {0}."
|
73 |
+
msgstr "Моля, въведете стойност по-голяма от или равна на {0}."
|
languages/cpppp-bn_IN.mo
ADDED
Binary file
|
languages/cpppp-bn_IN.po
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:00+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: bn_IN\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
# RevTran=E-mail
|
17 |
+
msgid "Email"
|
18 |
+
msgstr "ই-মেইল"
|
19 |
+
|
20 |
+
# RevTran=~Subject
|
21 |
+
msgid "Subject"
|
22 |
+
msgstr "বিষয় (~স)"
|
23 |
+
|
24 |
+
msgid "Message"
|
25 |
+
msgstr "বার্তা"
|
26 |
+
|
27 |
+
# RevTran=Captcha Please enter the verification code.
|
28 |
+
msgid "Please enter the captcha verification code."
|
29 |
+
msgstr "ক্যাপচা যাচাই কোড লিখুন দয়া করে."
|
30 |
+
|
31 |
+
# RevTran=The wrong captcha code. Please try again.
|
32 |
+
msgid "Incorrect captcha code. Please try again."
|
33 |
+
msgstr "ভুল ক্যাপচা কোড. আবার চেষ্টা করুন."
|
34 |
+
|
35 |
+
# RevTran=Enter the security code
|
36 |
+
msgid "Please enter the security code"
|
37 |
+
msgstr "নিরাপত্তা কোড লিখুন"
|
38 |
+
|
39 |
+
msgid "Security Code"
|
40 |
+
msgstr "নিরাপত্তা কোড"
|
41 |
+
|
42 |
+
# RevTran=Coupon Code
|
43 |
+
msgid "Coupon code"
|
44 |
+
msgstr "কুপন কোড"
|
45 |
+
|
46 |
+
msgid "This field is required."
|
47 |
+
msgstr "এই ক্ষেত্রটি প্রয়োজন বোধ করা হয়."
|
48 |
+
|
49 |
+
msgid "Please enter a valid email address."
|
50 |
+
msgstr "একটি বৈধ ইমেইল ঠিকানা লিখুন."
|
51 |
+
|
52 |
+
msgid "Please enter a valid captcha code."
|
53 |
+
msgstr "একটি বৈধ ক্যাপচা কোড লিখুন দয়া করে."
|
54 |
+
|
55 |
+
# RevTran=This format (mm \\/DD \\/YYYY) Please enter a valid date
|
56 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
57 |
+
msgstr "এই বিন্যাস (মিমি/ডিডি/YYYY) সঙ্গে একটি বৈধ তারিখ লিখুন দয়া করে"
|
58 |
+
|
59 |
+
# RevTran=This format (DD \\/MM \\/YYYY) Please enter a valid date
|
60 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
61 |
+
msgstr "এই ফরম্যাট (ডিডি/MM/YYYY) সঙ্গে একটি বৈধ তারিখ লিখুন দয়া করে"
|
62 |
+
|
63 |
+
msgid "Please enter a valid number."
|
64 |
+
msgstr "একটি বৈধ সংখ্যা লিখুন."
|
65 |
+
|
66 |
+
# RevTran=Please enter only numbers.
|
67 |
+
msgid "Please enter only digits."
|
68 |
+
msgstr "শুধুমাত্র সংখ্যা লিখুন."
|
69 |
+
|
70 |
+
# RevTran=Enter a value less than or equal to {0}.
|
71 |
+
msgid "Please enter a value less than or equal to {0}."
|
72 |
+
msgstr "কম বা {0} সমান একটি মান লিখুন."
|
73 |
+
|
74 |
+
# RevTran=S Enter a value greater than or equal to {0}.
|
75 |
+
msgid "Please enter a value greater than or equal to {0}."
|
76 |
+
msgstr "এর চেয়ে বড় বা {0} সমান একটি মান লিখুন."
|
languages/cpppp-bs_BA.mo
ADDED
Binary file
|
languages/cpppp-bs_BA.po
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:00+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: bs_BA\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "E-mail"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "Subject"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "Message"
|
24 |
+
|
25 |
+
msgid "Please enter the captcha verification code."
|
26 |
+
msgstr "Molim unesite captcha provjeru koda."
|
27 |
+
|
28 |
+
msgid "Incorrect captcha code. Please try again."
|
29 |
+
msgstr "Neispravan captcha koda. Pokušajte ponovno."
|
30 |
+
|
31 |
+
msgid "Please enter the security code"
|
32 |
+
msgstr "Molim vas unesite sigurnosni kod"
|
33 |
+
|
34 |
+
msgid "Security Code"
|
35 |
+
msgstr "Sigurnosni kod"
|
36 |
+
|
37 |
+
msgid "Coupon code"
|
38 |
+
msgstr "Kupon kod"
|
39 |
+
|
40 |
+
msgid "This field is required."
|
41 |
+
msgstr "Ovo polje je obavezno."
|
42 |
+
|
43 |
+
msgid "Please enter a valid email address."
|
44 |
+
msgstr "Unesite ispravnu email adresu."
|
45 |
+
|
46 |
+
msgid "Please enter a valid captcha code."
|
47 |
+
msgstr "Unesite ispravnu captcha koda."
|
48 |
+
|
49 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
50 |
+
msgstr "Unesite ispravan datum s ovom formatu (mm / dd / yyyy)"
|
51 |
+
|
52 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
53 |
+
msgstr "Unesite ispravan datum s ovom formatu (dd / mm / gggg"
|
54 |
+
|
55 |
+
msgid "Please enter a valid number."
|
56 |
+
msgstr "Unesite ispravan broj."
|
57 |
+
|
58 |
+
msgid "Please enter only digits."
|
59 |
+
msgstr "Unesite samo cifre."
|
60 |
+
|
61 |
+
msgid "Please enter a value less than or equal to {0}."
|
62 |
+
msgstr "Unesite vrijednost manja od ili jednak {0}."
|
63 |
+
|
64 |
+
msgid "Please enter a value greater than or equal to {0}."
|
65 |
+
msgstr "Unesite vrijednost veca od ili jednak {0}."
|
languages/cpppp-ca.mo
ADDED
Binary file
|
languages/cpppp-ca.po
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: \n"
|
4 |
+
"POT-Creation-Date: \n"
|
5 |
+
"PO-Revision-Date: \n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=iso-8859-1\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"Language: ca\n"
|
12 |
+
"X-Generator: Poedit 1.6.10\n"
|
13 |
+
|
14 |
+
msgid "Email"
|
15 |
+
msgstr "Correu electrònic"
|
16 |
+
|
17 |
+
msgid "Subject"
|
18 |
+
msgstr "Subjecte"
|
19 |
+
|
20 |
+
msgid "Message"
|
21 |
+
msgstr "Missatge"
|
22 |
+
|
23 |
+
# RevTran=Please enter the verification code captcha.
|
24 |
+
msgid "Please enter the captcha verification code."
|
25 |
+
msgstr "Si us plau introduïu el codi de verificació captcha."
|
26 |
+
|
27 |
+
# RevTran=CAPTCHA Code incorrect. Please try it.
|
28 |
+
msgid "Incorrect captcha code. Please try again."
|
29 |
+
msgstr "Codi CAPTCHA incorrecta. Si us plau, torneu a intentar-ho."
|
30 |
+
|
31 |
+
msgid "Please enter the security code"
|
32 |
+
msgstr "Si us plau introduïu el codi de seguretat"
|
33 |
+
|
34 |
+
msgid "Security Code"
|
35 |
+
msgstr "Codi de seguretat"
|
36 |
+
|
37 |
+
# RevTran=Coupon codes
|
38 |
+
msgid "Coupon code"
|
39 |
+
msgstr "Codi de descompte"
|
40 |
+
|
41 |
+
msgid "This field is required."
|
42 |
+
msgstr "Aquest camp és obligatori."
|
43 |
+
|
44 |
+
msgid "Please enter a valid email address."
|
45 |
+
msgstr "Introduïu una adreça de correu electrònic vàlida."
|
46 |
+
|
47 |
+
# RevTran=Please enter a valid Captcha code.
|
48 |
+
msgid "Please enter a valid captcha code."
|
49 |
+
msgstr "Introdueix un codi Captcha vàlid."
|
50 |
+
|
51 |
+
# RevTran=Please enter a valid date in this format (dd \\ mm/\\/yyyy)
|
52 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
53 |
+
msgstr ""
|
54 |
+
"Si us plau, introdueixi una data vàlida amb aquest format (dd/mm/aaaa)"
|
55 |
+
|
56 |
+
# RevTran=Please enter a valid date in this format (dd \\ mm/\\/yyyy)
|
57 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
58 |
+
msgstr ""
|
59 |
+
"Si us plau, introdueixi una data vàlida amb aquest format (dd/mm/aaaa)"
|
60 |
+
|
61 |
+
# RevTran=Put a valid number.
|
62 |
+
msgid "Please enter a valid number."
|
63 |
+
msgstr "Posa un nombre vàlid."
|
64 |
+
|
65 |
+
# RevTran=Enter only digits.
|
66 |
+
msgid "Please enter only digits."
|
67 |
+
msgstr "Introduïu només dígits."
|
68 |
+
|
69 |
+
msgid "Please enter a value less than or equal to {0}."
|
70 |
+
msgstr "Si us plau, introduïu un valor menor o igual a {0}."
|
71 |
+
|
72 |
+
msgid "Please enter a value greater than or equal to {0}."
|
73 |
+
msgstr "Si us plau, introduïu un valor major o igual a {0}."
|
languages/cpppp-ckb.mo
ADDED
Binary file
|
languages/cpppp-ckb.po
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:00+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: ckb\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "E-peyam"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "Mijar"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "Peyam"
|
24 |
+
|
25 |
+
# RevTran=Please enter the fax number.
|
26 |
+
msgid "Please enter the captcha verification code."
|
27 |
+
msgstr "Numra faksê bidine."
|
28 |
+
|
29 |
+
# RevTran=An incorrect password was entered. Please enter it again.
|
30 |
+
msgid "Incorrect captcha code. Please try again."
|
31 |
+
msgstr "Şîfreyeke çewt hate nivîsandin. Ji kerema xwe re dîsa biceribîne."
|
32 |
+
|
33 |
+
# RevTran=Please enter the fax number.
|
34 |
+
msgid "Please enter the security code"
|
35 |
+
msgstr "Numra faksê bidine."
|
36 |
+
|
37 |
+
# RevTran=Security
|
38 |
+
msgid "Security Code"
|
39 |
+
msgstr "Ewlehî"
|
40 |
+
|
41 |
+
# RevTran=CODE
|
42 |
+
msgid "Coupon code"
|
43 |
+
msgstr "KOD"
|
44 |
+
|
45 |
+
# RevTran=Area
|
46 |
+
msgid "This field is required."
|
47 |
+
msgstr "Qad"
|
48 |
+
|
49 |
+
# RevTran=The DTD could not be found. Please enter a valid path.
|
50 |
+
msgid "Please enter a valid email address."
|
51 |
+
msgstr "DTD nehate dîtin.Ji kerema xwe pêristeke derbasdar têkevinê."
|
52 |
+
|
53 |
+
# RevTran=The DTD could not be found. Please enter a valid path.
|
54 |
+
msgid "Please enter a valid captcha code."
|
55 |
+
msgstr "DTD nehate dîtin.Ji kerema xwe pêristeke derbasdar têkevinê."
|
56 |
+
|
57 |
+
# RevTran=The DTD could not be found. Please enter a valid path.
|
58 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
59 |
+
msgstr "DTD nehate dîtin.Ji kerema xwe pêristeke derbasdar têkevinê."
|
60 |
+
|
61 |
+
# RevTran=The DTD could not be found. Please enter a valid path.
|
62 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
63 |
+
msgstr "DTD nehate dîtin.Ji kerema xwe pêristeke derbasdar têkevinê."
|
64 |
+
|
65 |
+
# RevTran=Please enter the fax number.
|
66 |
+
msgid "Please enter a valid number."
|
67 |
+
msgstr "Numra faksê bidine."
|
68 |
+
|
69 |
+
# RevTran=Please enter your information.
|
70 |
+
msgid "Please enter only digits."
|
71 |
+
msgstr "Kerema xwe ra agahiyên xwe binivisîne"
|
72 |
+
|
73 |
+
# RevTran=<= (Less than or equal to)
|
74 |
+
msgid "Please enter a value less than or equal to {0}."
|
75 |
+
msgstr "piçûk an jî wekhev e"
|
76 |
+
|
77 |
+
# RevTran=>= (Greater than or equal to)
|
78 |
+
msgid "Please enter a value greater than or equal to {0}."
|
79 |
+
msgstr "mezin an jî wekhev e"
|
languages/cpppp-cs_CZ.mo
ADDED
Binary file
|
languages/cpppp-cs_CZ.po
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:00+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: cs_CZ\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "E-mail"
|
18 |
+
|
19 |
+
# RevTran=Aim
|
20 |
+
msgid "Subject"
|
21 |
+
msgstr "Předmět"
|
22 |
+
|
23 |
+
# RevTran=Report
|
24 |
+
msgid "Message"
|
25 |
+
msgstr "Zpráva"
|
26 |
+
|
27 |
+
# RevTran=Please enter the verification code captcha.
|
28 |
+
msgid "Please enter the captcha verification code."
|
29 |
+
msgstr "Prosím, zadejte ověřovací kód captcha."
|
30 |
+
|
31 |
+
msgid "Incorrect captcha code. Please try again."
|
32 |
+
msgstr "Nesprávný captcha kód. Zkuste to prosím znovu."
|
33 |
+
|
34 |
+
msgid "Please enter the security code"
|
35 |
+
msgstr "Prosím, zadejte bezpečnostní kód"
|
36 |
+
|
37 |
+
# RevTran=Security code:
|
38 |
+
msgid "Security Code"
|
39 |
+
msgstr "Bezpečnostní kód:"
|
40 |
+
|
41 |
+
# RevTran=Coupon Code
|
42 |
+
msgid "Coupon code"
|
43 |
+
msgstr "Kupon kód"
|
44 |
+
|
45 |
+
msgid "This field is required."
|
46 |
+
msgstr "Toto pole je povinné."
|
47 |
+
|
48 |
+
msgid "Please enter a valid email address."
|
49 |
+
msgstr "Zadejte prosím platnou elektronickou adresu."
|
50 |
+
|
51 |
+
msgid "Please enter a valid captcha code."
|
52 |
+
msgstr "Zadejte prosím platný captcha kód."
|
53 |
+
|
54 |
+
# RevTran=Please enter a valid date in this format (mm \\/dd \\/yyyy)
|
55 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
56 |
+
msgstr "Zadejte prosím platné datum v tomto formátu (mm/dd/rrrr)"
|
57 |
+
|
58 |
+
# RevTran=Please enter a valid date in this format (dd \\/mm \\/yyyy)
|
59 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
60 |
+
msgstr "Zadejte prosím platné datum v tomto formátu (dd/mm/rrrr)"
|
61 |
+
|
62 |
+
msgid "Please enter a valid number."
|
63 |
+
msgstr "Zadejte prosím platné číslo."
|
64 |
+
|
65 |
+
# RevTran=Please enter only numbers.
|
66 |
+
msgid "Please enter only digits."
|
67 |
+
msgstr "Prosím, zadejte pouze číslice."
|
68 |
+
|
69 |
+
msgid "Please enter a value less than or equal to {0}."
|
70 |
+
msgstr "Prosím, zadejte hodnotu menší nebo rovnou {0}."
|
71 |
+
|
72 |
+
msgid "Please enter a value greater than or equal to {0}."
|
73 |
+
msgstr "Prosím, zadejte hodnotu větší než nebo rovno {0}."
|
languages/cpppp-da_DK.mo
ADDED
Binary file
|
languages/cpppp-da_DK.po
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:00+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: da_DK\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "E-mail"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "Emne"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "Meddelelse"
|
24 |
+
|
25 |
+
msgid "Please enter the captcha verification code."
|
26 |
+
msgstr "Indtast venligst captcha bekræftelseskode."
|
27 |
+
|
28 |
+
msgid "Incorrect captcha code. Please try again."
|
29 |
+
msgstr "Forkert captcha kode. Prøv venligst igen."
|
30 |
+
|
31 |
+
# RevTran=Enter the security code
|
32 |
+
msgid "Please enter the security code"
|
33 |
+
msgstr "Indtast sikkerhedskoden"
|
34 |
+
|
35 |
+
msgid "Security Code"
|
36 |
+
msgstr "Security Code"
|
37 |
+
|
38 |
+
msgid "Coupon code"
|
39 |
+
msgstr "Værdikuponkode"
|
40 |
+
|
41 |
+
# RevTran=This field is required
|
42 |
+
msgid "This field is required."
|
43 |
+
msgstr "Dette felt er påkrævet"
|
44 |
+
|
45 |
+
msgid "Please enter a valid email address."
|
46 |
+
msgstr "Indtast en gyldig e-mail-adresse"
|
47 |
+
|
48 |
+
msgid "Please enter a valid captcha code."
|
49 |
+
msgstr "Angiv en gyldig captcha kode."
|
50 |
+
|
51 |
+
# RevTran=Enter a valid date in this format (dd \\/mm \\/yyyy)
|
52 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
53 |
+
msgstr "Indtast en gyldig dato med dette format (dd/mm/åååå)"
|
54 |
+
|
55 |
+
msgid "Please enter a valid number."
|
56 |
+
msgstr "Indtast venligst et gyldigt tal."
|
57 |
+
|
58 |
+
# RevTran=Enter only digits.
|
59 |
+
msgid "Please enter only digits."
|
60 |
+
msgstr "Indtast kun cifre."
|
61 |
+
|
62 |
+
msgid "Please enter a value less than or equal to {0}."
|
63 |
+
msgstr "Indtast venligst en værdi mindre end eller lig med {0}."
|
64 |
+
|
65 |
+
# RevTran=Enter a value greater than or equal to {0}.
|
66 |
+
msgid "Please enter a value greater than or equal to {0}."
|
67 |
+
msgstr "Angiv en værdi større end eller lig med {0}."
|
languages/cpppp-de_DE.mo
ADDED
Binary file
|
languages/cpppp-de_DE.po
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:00+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: de_DE\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
# RevTran=E-mail
|
17 |
+
msgid "Email"
|
18 |
+
msgstr "E-Mail"
|
19 |
+
|
20 |
+
# RevTran=Reference
|
21 |
+
msgid "Subject"
|
22 |
+
msgstr "Betreff"
|
23 |
+
|
24 |
+
msgid "Message"
|
25 |
+
msgstr "Nachricht"
|
26 |
+
|
27 |
+
# RevTran=Please enter the verification code.
|
28 |
+
msgid "Please enter the captcha verification code."
|
29 |
+
msgstr "Bitte geben sie das Bestätigungscode."
|
30 |
+
|
31 |
+
# RevTran=Wrong Captcha code. Please try again.
|
32 |
+
msgid "Incorrect captcha code. Please try again."
|
33 |
+
msgstr "Falsche Captcha-Code ein. Bitte versuchen Sie es erneut."
|
34 |
+
|
35 |
+
msgid "Please enter the security code"
|
36 |
+
msgstr "Bitte geben Sie den Sicherheitscode ein"
|
37 |
+
|
38 |
+
# RevTran=Security Code:
|
39 |
+
msgid "Security Code"
|
40 |
+
msgstr "Sicherheits-Code:"
|
41 |
+
|
42 |
+
msgid "Coupon code"
|
43 |
+
msgstr "Belegnummer"
|
44 |
+
|
45 |
+
msgid "This field is required."
|
46 |
+
msgstr "Dieses Feld ist obligatorisch."
|
47 |
+
|
48 |
+
msgid "Please enter a valid email address."
|
49 |
+
msgstr "Bitte geben Sie eine gültige E-Mail-Adresse ein."
|
50 |
+
|
51 |
+
msgid "Please enter a valid captcha code."
|
52 |
+
msgstr "Bitte geben Sie eine gültige Captcha-Code ein."
|
53 |
+
|
54 |
+
# RevTran=Please enter a valid date in this format (mm \\/dd \\/yyyy)
|
55 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
56 |
+
msgstr "Bitte geben Sie ein gültiges Datum in diesem Format (mm/dd/yyyy)"
|
57 |
+
|
58 |
+
msgid "Please enter a valid number."
|
59 |
+
msgstr "Bitte geben Sie eine gültige Zahl ein."
|
60 |
+
|
61 |
+
# RevTran=Please enter only numbers.
|
62 |
+
msgid "Please enter only digits."
|
63 |
+
msgstr "Bitte geben Sie nur Ziffern."
|
64 |
+
|
65 |
+
# RevTran=Please enter a value less than or equal to 0.
|
66 |
+
msgid "Please enter a value less than or equal to {0}."
|
67 |
+
msgstr "Bitte geben Sie einen Wert ein, der kleiner oder gleich 0 ist."
|
68 |
+
|
69 |
+
# RevTran=Please enter a value greater than or equal to 0.
|
70 |
+
msgid "Please enter a value greater than or equal to {0}."
|
71 |
+
msgstr "Bitte geben Sie einen Wert ein, der größer oder gleich 0 ist."
|
languages/cpppp-el.mo
ADDED
Binary file
|
languages/cpppp-el.po
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:00+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: el\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "Email"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "Θέμα"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "Μήνυμα"
|
24 |
+
|
25 |
+
# RevTran=Please enter the verification code displayed.
|
26 |
+
# RevTran=Please enter the verification code displayed.
|
27 |
+
msgid "Please enter the captcha verification code."
|
28 |
+
msgstr "Παρακαλώ εισάγετε τον κωδικό επαλήθευσης που εμφανίζεται."
|
29 |
+
|
30 |
+
# RevTran=Invalid confirmation code. Please try again.
|
31 |
+
# RevTran=Invalid confirmation code. Please try again.
|
32 |
+
msgid "Incorrect captcha code. Please try again."
|
33 |
+
msgstr "Λάθος κωδικός επαλήθευσης. Παρακαλώ δοκιμάστε ξανά."
|
34 |
+
|
35 |
+
msgid "Please enter the security code"
|
36 |
+
msgstr "Παρακαλώ εισάγετε τον κωδικό ασφαλείας"
|
37 |
+
|
38 |
+
msgid "Security Code"
|
39 |
+
msgstr "Κωδικός Ασφαλείας"
|
40 |
+
|
41 |
+
msgid "Coupon code"
|
42 |
+
msgstr "Ο κωδικός κουπονιού"
|
43 |
+
|
44 |
+
msgid "This field is required."
|
45 |
+
msgstr "Αυτό το πεδίο είναι υποχρεωτικό."
|
46 |
+
|
47 |
+
# RevTran=Please enter a valid email address
|
48 |
+
# RevTran=Please enter a valid email address
|
49 |
+
msgid "Please enter a valid email address."
|
50 |
+
msgstr "Παρακαλώ εισάγετε μια έγκυρη διεύθυνση ηλεκτρονικού ταχυδρομείου"
|
51 |
+
|
52 |
+
msgid "Please enter a valid captcha code."
|
53 |
+
msgstr "Παρακαλώ εισάγετε έναν έγκυρο κωδικό επαλήθευσης."
|
54 |
+
|
55 |
+
# RevTran=Please enter a valid date in this format (dd \\/dd \\/yyyy)
|
56 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
57 |
+
msgstr "Παρακαλώ εισάγετε μια έγκυρη ημερομηνία με αυτή τη μορφή (ηη/μμ/εεεε)"
|
58 |
+
|
59 |
+
# RevTran=Please enter a valid date in this format (dd \\/dd \\/yyyy)
|
60 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
61 |
+
msgstr "Παρακαλώ εισάγετε μια έγκυρη ημερομηνία με αυτή τη μορφή (ηη/μμ/εεεε)"
|
62 |
+
|
63 |
+
msgid "Please enter a valid number."
|
64 |
+
msgstr "Παρακαλώ εισάγετε έναν έγκυρο αριθμό."
|
65 |
+
|
66 |
+
msgid "Please enter only digits."
|
67 |
+
msgstr "Παρακαλώ εισάγετε μόνο ψηφία."
|
68 |
+
|
69 |
+
msgid "Please enter a value less than or equal to {0}."
|
70 |
+
msgstr "Παρακαλώ εισάγετε μια τιμή μικρότερη ή ίση με {0}."
|
71 |
+
|
72 |
+
msgid "Please enter a value greater than or equal to {0}."
|
73 |
+
msgstr "Παρακαλώ εισάγετε μια τιμή μεγαλύτερη από ή ίση με {0}."
|
languages/cpppp-eo_EO.mo
ADDED
Binary file
|
languages/cpppp-eo_EO.po
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:00+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: eo_EO\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "Retpoŝto"
|
18 |
+
|
19 |
+
# RevTran=subject
|
20 |
+
msgid "Subject"
|
21 |
+
msgstr "reserve Deputy"
|
22 |
+
|
23 |
+
msgid "Message"
|
24 |
+
msgstr "Mesaĝo"
|
25 |
+
|
26 |
+
msgid "Please enter the captcha verification code."
|
27 |
+
msgstr "Bonvolu eniri la captcha verificación kodo."
|
28 |
+
|
29 |
+
msgid "Incorrect captcha code. Please try again."
|
30 |
+
msgstr "Malĝustaj captcha kodo. Bonvolu provi denove."
|
31 |
+
|
32 |
+
msgid "Please enter the security code"
|
33 |
+
msgstr "Bonvolu eniri la sekureco kodo"
|
34 |
+
|
35 |
+
msgid "Security Code"
|
36 |
+
msgstr "Sekureca Kodo"
|
37 |
+
|
38 |
+
msgid "Coupon code"
|
39 |
+
msgstr "Kupono kodo"
|
40 |
+
|
41 |
+
msgid "This field is required."
|
42 |
+
msgstr "Tiu kampo estas bezonata."
|
43 |
+
|
44 |
+
msgid "Please enter a valid email address."
|
45 |
+
msgstr "Bonvolu entajpi validan retpoŝtadreson."
|
46 |
+
|
47 |
+
msgid "Please enter a valid captcha code."
|
48 |
+
msgstr "Bonvolu entajpi validan captcha kodo."
|
49 |
+
|
50 |
+
# RevTran=Please enter a valid date with this format (mm \\/dd \\/yyyy)
|
51 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
52 |
+
msgstr "Bonvolu entajpi validan daton kun tiu formato (mm/dd/jjjj)"
|
53 |
+
|
54 |
+
# RevTran=Please enter a valid date with this format (dd \\/mm \\/yyyy)
|
55 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
56 |
+
msgstr "Bonvolu entajpi validan daton kun tiu formato (tt/mm/jjjj)"
|
57 |
+
|
58 |
+
msgid "Please enter a valid number."
|
59 |
+
msgstr "Bonvolu entajpi validan ciferon."
|
60 |
+
|
61 |
+
# RevTran=Please enter only numbers.
|
62 |
+
msgid "Please enter only digits."
|
63 |
+
msgstr "Bonvolu eniri nur ciferoj."
|
64 |
+
|
65 |
+
msgid "Please enter a value less than or equal to {0}."
|
66 |
+
msgstr "Bonvolu entajpi valoron malpli ol aŭ egala al {0}."
|
67 |
+
|
68 |
+
msgid "Please enter a value greater than or equal to {0}."
|
69 |
+
msgstr "Bonvolu entajpi valoron pli granda ol aŭ egala al {0}."
|
languages/cpppp-es_ES.mo
ADDED
Binary file
|
languages/cpppp-es_ES.po
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 16:28+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: es_ES\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "Email"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "Asunto"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "Mensaje"
|
24 |
+
|
25 |
+
msgid "Please enter the captcha verification code."
|
26 |
+
msgstr "Por favor entre el código de verificación captcha."
|
27 |
+
|
28 |
+
msgid "Incorrect captcha code. Please try again."
|
29 |
+
msgstr "Código de seguridad incorrecto. Por favor intente nuevamente."
|
30 |
+
|
31 |
+
msgid "Please enter the security code"
|
32 |
+
msgstr "Por favor entre el código de seguridad"
|
33 |
+
|
34 |
+
msgid "Security Code"
|
35 |
+
msgstr "Código de Seguridad"
|
36 |
+
|
37 |
+
msgid "Coupon code"
|
38 |
+
msgstr "Cupón"
|
39 |
+
|
40 |
+
msgid "This field is required."
|
41 |
+
msgstr "Este campo es requerido."
|
42 |
+
|
43 |
+
msgid "Please enter a valid email address."
|
44 |
+
msgstr "Por favor entre un email válido"
|
45 |
+
|
46 |
+
msgid "Please enter a valid captcha code."
|
47 |
+
msgstr "Por favor entre un código de seguridad válido."
|
48 |
+
|
49 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
50 |
+
msgstr "Por favor entre una fecha válida con formato(mm/dd/yyyy)"
|
51 |
+
|
52 |
+
msgid "Please enter a valid number."
|
53 |
+
msgstr "Por favor entre un número válido."
|
54 |
+
|
55 |
+
msgid "Please enter only digits."
|
56 |
+
msgstr "Por favor entre solo dígitos."
|
57 |
+
|
58 |
+
msgid "Please enter a value less than or equal to {0}."
|
59 |
+
msgstr "Por favor entre un valor menor o igual a {0}"
|
60 |
+
|
61 |
+
msgid "Please enter a value greater than or equal to {0}."
|
62 |
+
msgstr "Por favor entre un valor mayor o igual a {0}"
|
languages/cpppp-et.mo
ADDED
Binary file
|
languages/cpppp-et.po
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:00+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: et\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "E-post"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "Teema"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "Teade"
|
24 |
+
|
25 |
+
msgid "Please enter the captcha verification code."
|
26 |
+
msgstr "Palun sisesta captcha kontrollkood."
|
27 |
+
|
28 |
+
msgid "Incorrect captcha code. Please try again."
|
29 |
+
msgstr "Vale captcha koodi. Palun proovige uuesti."
|
30 |
+
|
31 |
+
msgid "Please enter the security code"
|
32 |
+
msgstr "Palun sisesta turvakood"
|
33 |
+
|
34 |
+
# RevTran=security ID
|
35 |
+
msgid "Security Code"
|
36 |
+
msgstr "Turvakood"
|
37 |
+
|
38 |
+
# RevTran=Coupon Code
|
39 |
+
msgid "Coupon code"
|
40 |
+
msgstr "Kupongi kood"
|
41 |
+
|
42 |
+
# RevTran=This field is mandatory.
|
43 |
+
msgid "This field is required."
|
44 |
+
msgstr "See väli on kohustuslik."
|
45 |
+
|
46 |
+
# RevTran=Please enter a valid address
|
47 |
+
msgid "Please enter a valid email address."
|
48 |
+
msgstr "Palume sisestada kehtiv aadress"
|
49 |
+
|
50 |
+
msgid "Please enter a valid captcha code."
|
51 |
+
msgstr "Palun sisestage kehtiv captcha koodi."
|
52 |
+
|
53 |
+
# RevTran=Please enter dates in this format (dd \\/dd \\/yyyy)
|
54 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
55 |
+
msgstr "Palun sisestage kuupäevad seda formaati (pp/kk/aaaa)"
|
56 |
+
|
57 |
+
# RevTran=Please enter a valid date in the format (dd \\/dd \\/yyyy)
|
58 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
59 |
+
msgstr "Palun sisestage kehtiv kuupäeva selles formaadis (pp/kk/aaaa)"
|
60 |
+
|
61 |
+
# RevTran=Please enter a number.
|
62 |
+
msgid "Please enter a valid number."
|
63 |
+
msgstr "Palun sisestage number."
|
64 |
+
|
65 |
+
# RevTran=Please enter only numbers.
|
66 |
+
msgid "Please enter only digits."
|
67 |
+
msgstr "Palun sisestage ainult numbrid."
|
68 |
+
|
69 |
+
msgid "Please enter a value less than or equal to {0}."
|
70 |
+
msgstr "Palun sisestage väärtus on väiksem või võrdne {0}."
|
71 |
+
|
72 |
+
msgid "Please enter a value greater than or equal to {0}."
|
73 |
+
msgstr "Palun sisestage väärtus on suurem kui või võrdne {0}."
|
languages/cpppp-eu.mo
ADDED
Binary file
|
languages/cpppp-eu.po
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:01+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: eu\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "Posta elektroniko"
|
18 |
+
|
19 |
+
# RevTran=Gaia
|
20 |
+
msgid "Subject"
|
21 |
+
msgstr "Gaia"
|
22 |
+
|
23 |
+
msgid "Message"
|
24 |
+
msgstr "Mezu"
|
25 |
+
|
26 |
+
msgid "Please enter the captcha verification code."
|
27 |
+
msgstr "Mesedez sartu captcha egiaztapen-kodea."
|
28 |
+
|
29 |
+
# RevTran=Captcha code incorrect. Please try again.
|
30 |
+
msgid "Incorrect captcha code. Please try again."
|
31 |
+
msgstr "Captcha kode okerra. Mesedez, saiatu berriz."
|
32 |
+
|
33 |
+
msgid "Please enter the security code"
|
34 |
+
msgstr "Mesedez, sartu segurtasun kodea"
|
35 |
+
|
36 |
+
msgid "Security Code"
|
37 |
+
msgstr "Segurtasun kodea"
|
38 |
+
|
39 |
+
msgid "Coupon code"
|
40 |
+
msgstr "Kupoi kodea"
|
41 |
+
|
42 |
+
msgid "This field is required."
|
43 |
+
msgstr "Eremu hau beharrezkoa da."
|
44 |
+
|
45 |
+
msgid "Please enter a valid email address."
|
46 |
+
msgstr "Sartu baliozko helbide elektronikoa."
|
47 |
+
|
48 |
+
msgid "Please enter a valid captcha code."
|
49 |
+
msgstr "Sartu baliozko captcha kode bat."
|
50 |
+
|
51 |
+
# RevTran=Please enter a valid date in the following format (mm \\/dd \\/yyyy) with
|
52 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
53 |
+
msgstr "Mesedez sartu baliozko data formatu honetan (mm/ee/uuuu) ekin"
|
54 |
+
|
55 |
+
# RevTran=Please enter a valid date in the following format (dd \\/dd \\/yyyy) with
|
56 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
57 |
+
msgstr "Mesedez sartu baliozko data formatu honetan (ee/hh/uuuu) ekin"
|
58 |
+
|
59 |
+
msgid "Please enter a valid number."
|
60 |
+
msgstr "Sartu baliozko zenbaki bat."
|
61 |
+
|
62 |
+
msgid "Please enter only digits."
|
63 |
+
msgstr "Mesedez, sartu digituak bakarrik."
|
64 |
+
|
65 |
+
msgid "Please enter a value less than or equal to {0}."
|
66 |
+
msgstr "Mesedez, sartu balio bat baino gutxiago edo {0} berdina."
|
67 |
+
|
68 |
+
# RevTran=Please enter a value less than or equal to {0}.
|
69 |
+
msgid "Please enter a value greater than or equal to {0}."
|
70 |
+
msgstr "Mesedez sartu baino handiagoa edo {0} den balio bat."
|
languages/cpppp-fa_IR.mo
ADDED
Binary file
|
languages/cpppp-fa_IR.po
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:01+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: fa_IR\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "رایانامه"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "فاعل"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "پیام"
|
24 |
+
|
25 |
+
# RevTran=Please enter the verification code image.
|
26 |
+
msgid "Please enter the captcha verification code."
|
27 |
+
msgstr "لطفا کد تایید تصویر امنیتی را وارد کنید."
|
28 |
+
|
29 |
+
# RevTran=Image is incorrect. Please try again later.
|
30 |
+
msgid "Incorrect captcha code. Please try again."
|
31 |
+
msgstr "تصویر امنیتی اشتباه است. لطفا دوباره تلاش کنید."
|
32 |
+
|
33 |
+
msgid "Please enter the security code"
|
34 |
+
msgstr "لطفا کد امنیتی را وارد کنید"
|
35 |
+
|
36 |
+
msgid "Security Code"
|
37 |
+
msgstr "کد امنیتی"
|
38 |
+
|
39 |
+
# RevTran=Coupon Code
|
40 |
+
msgid "Coupon code"
|
41 |
+
msgstr "کد کوپن"
|
42 |
+
|
43 |
+
msgid "This field is required."
|
44 |
+
msgstr "این فیلد الزامی است."
|
45 |
+
|
46 |
+
msgid "Please enter a valid email address."
|
47 |
+
msgstr "لطفا یک آدرس ایمیل معتبر وارد کنید."
|
48 |
+
|
49 |
+
# RevTran=Please enter a valid image.
|
50 |
+
msgid "Please enter a valid captcha code."
|
51 |
+
msgstr "لطفا یک تصویر امنیتی معتبر وارد کنید."
|
52 |
+
|
53 |
+
# RevTran=Please enter a valid date in the format (MM \\/DD \\/YYYY) Enter
|
54 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
55 |
+
msgstr "لطفا یک تاریخ معتبر با این فرمت (MM/DD/YYYY) وارد کنید"
|
56 |
+
|
57 |
+
# RevTran=Please enter a valid date format (DD \\/MM \\/YYYY) Enter
|
58 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
59 |
+
msgstr "لطفا یک تاریخ معتبر با این فرمت (DD/MM/YYYY) وارد کنید"
|
60 |
+
|
61 |
+
# RevTran=Please enter a valid phone number.
|
62 |
+
msgid "Please enter a valid number."
|
63 |
+
msgstr "لطفا یک شماره تلفن معتبر وارد کنید."
|
64 |
+
|
65 |
+
# RevTran=Please enter only numbers.
|
66 |
+
msgid "Please enter only digits."
|
67 |
+
msgstr "لطفا فقط رقم وارد کنید."
|
68 |
+
|
69 |
+
msgid "Please enter a value less than or equal to {0}."
|
70 |
+
msgstr "لطفا یک مقدار کمتر یا {0} برابر را وارد کنید."
|
71 |
+
|
72 |
+
msgid "Please enter a value greater than or equal to {0}."
|
73 |
+
msgstr "لطفا یک مقدار بزرگتر یا {0} برابر را وارد کنید."
|
languages/cpppp-fi.mo
ADDED
Binary file
|
languages/cpppp-fi.po
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:01+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: fi\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
# RevTran=E-mail
|
17 |
+
# RevTran=E-mail
|
18 |
+
msgid "Email"
|
19 |
+
msgstr "Sähköposti"
|
20 |
+
|
21 |
+
msgid "Subject"
|
22 |
+
msgstr "Aihe"
|
23 |
+
|
24 |
+
# RevTran=Nachricht
|
25 |
+
# RevTran=Nachricht
|
26 |
+
msgid "Message"
|
27 |
+
msgstr "Viesti"
|
28 |
+
|
29 |
+
# RevTran=Enter the captcha verification code.
|
30 |
+
# RevTran=Enter the captcha verification code.
|
31 |
+
msgid "Please enter the captcha verification code."
|
32 |
+
msgstr "Kirjoita captcha vahvistuskoodi."
|
33 |
+
|
34 |
+
# RevTran=Wrong captcha code. Please try again.
|
35 |
+
# RevTran=Wrong captcha code. Please try again.
|
36 |
+
msgid "Incorrect captcha code. Please try again."
|
37 |
+
msgstr "Väärä captcha koodin. Ole hyvä ja yritä uudelleen."
|
38 |
+
|
39 |
+
# RevTran=Enter security code
|
40 |
+
# RevTran=Enter security code
|
41 |
+
msgid "Please enter the security code"
|
42 |
+
msgstr "Syötä turvakoodi"
|
43 |
+
|
44 |
+
msgid "Security Code"
|
45 |
+
msgstr "Turvakoodi"
|
46 |
+
|
47 |
+
# RevTran=Coupon Code
|
48 |
+
# RevTran=Coupon Code
|
49 |
+
msgid "Coupon code"
|
50 |
+
msgstr "Kuponkikoodi"
|
51 |
+
|
52 |
+
msgid "This field is required."
|
53 |
+
msgstr "Tämä kenttä on pakollinen."
|
54 |
+
|
55 |
+
# RevTran=Please enter a valid email address
|
56 |
+
# RevTran=Please enter a valid email address
|
57 |
+
msgid "Please enter a valid email address."
|
58 |
+
msgstr "Kirjoita voimassa oleva sähköpostiosoite"
|
59 |
+
|
60 |
+
msgid "Please enter a valid captcha code."
|
61 |
+
msgstr "Anna kelvollinen captcha koodin."
|
62 |
+
|
63 |
+
# RevTran=Please enter a valid date in the format (mm \\/dd \\/yyyy)
|
64 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
65 |
+
msgstr "Anna kelvollinen päivämäärä tässä muodossa (kk/pp/vvvv)"
|
66 |
+
|
67 |
+
# RevTran=Please enter a valid date in this format (dd \\/m \\/yyyy)
|
68 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
69 |
+
msgstr "Anna kelvollinen päivämäärä tässä muodossa (pp/kk/vvvv)"
|
70 |
+
|
71 |
+
msgid "Please enter a valid number."
|
72 |
+
msgstr "Anna kelvollinen numero."
|
73 |
+
|
74 |
+
# RevTran=Just type in the numbers.
|
75 |
+
msgid "Please enter only digits."
|
76 |
+
msgstr "Kirjoita vain numeroita."
|
77 |
+
|
78 |
+
# RevTran=Enter a value less than or equal to {0}.
|
79 |
+
msgid "Please enter a value less than or equal to {0}."
|
80 |
+
msgstr "Syötä arvo pienempi tai yhtä suuri kuin {0}."
|
81 |
+
|
82 |
+
# RevTran=Enter the value is greater than or equal to {0}.
|
83 |
+
msgid "Please enter a value greater than or equal to {0}."
|
84 |
+
msgstr "Syötä arvo on suurempi tai yhtä suuri kuin {0}."
|
languages/cpppp-fr_FR.mo
ADDED
Binary file
|
languages/cpppp-fr_FR.po
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:01+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: fr_FR\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "E-Mail"
|
18 |
+
|
19 |
+
# RevTran=Purpose:
|
20 |
+
msgid "Subject"
|
21 |
+
msgstr "Objet"
|
22 |
+
|
23 |
+
msgid "Message"
|
24 |
+
msgstr "Message"
|
25 |
+
|
26 |
+
msgid "Please enter the captcha verification code."
|
27 |
+
msgstr "Se il vous plaît entrer le code de vérification de captcha."
|
28 |
+
|
29 |
+
# RevTran=Captcha incorrect code. Please try again.
|
30 |
+
msgid "Incorrect captcha code. Please try again."
|
31 |
+
msgstr "Captcha code incorrect. Se il vous plaît essayer à nouveau."
|
32 |
+
|
33 |
+
msgid "Please enter the security code"
|
34 |
+
msgstr "Se il vous plaît entrer le code de sécurité"
|
35 |
+
|
36 |
+
# RevTran=Security code
|
37 |
+
msgid "Security Code"
|
38 |
+
msgstr "Code de sécurité"
|
39 |
+
|
40 |
+
# RevTran=Promo code
|
41 |
+
msgid "Coupon code"
|
42 |
+
msgstr "Code promo"
|
43 |
+
|
44 |
+
# RevTran=This field is required
|
45 |
+
msgid "This field is required."
|
46 |
+
msgstr "Ce champ est requis"
|
47 |
+
|
48 |
+
msgid "Please enter a valid email address."
|
49 |
+
msgstr "Veuillez inscrire une adresse électronique valide."
|
50 |
+
|
51 |
+
msgid "Please enter a valid captcha code."
|
52 |
+
msgstr "Se il vous plaît entrer un code captcha valide."
|
53 |
+
|
54 |
+
# RevTran=Please enter a valid date in this format (dd \\/mm \\/yyyy)
|
55 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
56 |
+
msgstr "Se il vous plaît entrer une date valide avec ce format (jj/mm/aaaa)"
|
57 |
+
|
58 |
+
# RevTran=Please enter a valid number
|
59 |
+
msgid "Please enter a valid number."
|
60 |
+
msgstr "Merci de saisir un nombre valide"
|
61 |
+
|
62 |
+
# RevTran=Please enter only numbers.
|
63 |
+
msgid "Please enter only digits."
|
64 |
+
msgstr "Se il vous plaît saisir que des chiffres."
|
65 |
+
|
66 |
+
# RevTran=Please enter a value less than or equal to {0}
|
67 |
+
msgid "Please enter a value less than or equal to {0}."
|
68 |
+
msgstr "Veuillez entrer une valeur inférieure ou égale à {0}"
|
69 |
+
|
70 |
+
# RevTran=Please enter a value greater than or equal to {0}
|
71 |
+
msgid "Please enter a value greater than or equal to {0}."
|
72 |
+
msgstr "Veuillez entrer une valeur supérieure ou égale à {0}"
|
languages/cpppp-ga_IE.mo
ADDED
Binary file
|
languages/cpppp-ga_IE.po
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: \n"
|
4 |
+
"POT-Creation-Date: \n"
|
5 |
+
"PO-Revision-Date: \n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=iso-8859-1\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"Language: ga_IE\n"
|
12 |
+
"X-Generator: Poedit 1.6.10\n"
|
13 |
+
|
14 |
+
msgid "Email"
|
15 |
+
msgstr "Ríomhphost"
|
16 |
+
|
17 |
+
msgid "Subject"
|
18 |
+
msgstr "Ábhar"
|
19 |
+
|
20 |
+
msgid "Message"
|
21 |
+
msgstr "Teachtaireacht"
|
22 |
+
|
23 |
+
# RevTran=Enter the verification code captcha.
|
24 |
+
msgid "Please enter the captcha verification code."
|
25 |
+
msgstr "Cuir isteach an Cód fíorú captcha."
|
26 |
+
|
27 |
+
# RevTran=Wrong captcha code. Please try again.
|
28 |
+
msgid "Incorrect captcha code. Please try again."
|
29 |
+
msgstr "Cód captcha mícheart. Déan iarracht eile."
|
30 |
+
|
31 |
+
# RevTran=Enter the security code
|
32 |
+
msgid "Please enter the security code"
|
33 |
+
msgstr "Cuir isteach an Cód slándála"
|
34 |
+
|
35 |
+
msgid "Security Code"
|
36 |
+
msgstr "Cód Slándáil"
|
37 |
+
|
38 |
+
msgid "Coupon code"
|
39 |
+
msgstr "Cód cúpón"
|
40 |
+
|
41 |
+
msgid "This field is required."
|
42 |
+
msgstr "Tá an réimse ag teastáil."
|
43 |
+
|
44 |
+
msgid "Please enter a valid email address."
|
45 |
+
msgstr "Cuir isteach seoladh ríomhphoist bailí."
|
46 |
+
|
47 |
+
# RevTran=Enter the captcha code valid.
|
48 |
+
msgid "Please enter a valid captcha code."
|
49 |
+
msgstr "Iontráil cód captcha bailí."
|
50 |
+
|
51 |
+
# RevTran=Enter a valid date in the following format (mm \\/ll \\/yyyy)
|
52 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
53 |
+
msgstr "Iontráil dáta bailí leis an bhformáid seo (mm/ll/bbbb)"
|
54 |
+
|
55 |
+
# RevTran=Enter a valid date in the following format (ll \\/mm \\/yyyy)
|
56 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
57 |
+
msgstr "Iontráil dáta bailí leis an bhformáid seo (ll/mm/bbbb)"
|
58 |
+
|
59 |
+
msgid "Please enter a valid number."
|
60 |
+
msgstr "Iontráil uimhir bhailí."
|
61 |
+
|
62 |
+
# RevTran=Enter only digits.
|
63 |
+
msgid "Please enter only digits."
|
64 |
+
msgstr "Cuir isteach amháin digití."
|
65 |
+
|
66 |
+
# RevTran=Enter a value less than or equal to {0}.
|
67 |
+
msgid "Please enter a value less than or equal to {0}."
|
68 |
+
msgstr "Iontráil ar luach níos lú ná nó cothrom le {0}."
|
69 |
+
|
70 |
+
# RevTran=Enter a value greater than or equal to {0}.
|
71 |
+
msgid "Please enter a value greater than or equal to {0}."
|
72 |
+
msgstr "Iontráil ar luach níos mó ná nó cothrom le {0}."
|
languages/cpppp-gl_ES.mo
ADDED
Binary file
|
languages/cpppp-gl_ES.po
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:01+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: gl_ES\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "Correo electrónico"
|
18 |
+
|
19 |
+
# RevTran=Issue
|
20 |
+
msgid "Subject"
|
21 |
+
msgstr "Asunto"
|
22 |
+
|
23 |
+
msgid "Message"
|
24 |
+
msgstr "Mensaxe"
|
25 |
+
|
26 |
+
# RevTran=Please enter the verification code captcha.
|
27 |
+
msgid "Please enter the captcha verification code."
|
28 |
+
msgstr "Por favor, introduza o código de verificación captcha."
|
29 |
+
|
30 |
+
# RevTran=Wrong captcha code. Please try again.
|
31 |
+
msgid "Incorrect captcha code. Please try again."
|
32 |
+
msgstr "Código captcha incorrecto. Por favor, ténteo de novo."
|
33 |
+
|
34 |
+
# RevTran=Enter the security code
|
35 |
+
msgid "Please enter the security code"
|
36 |
+
msgstr "Introduza o código de seguridade"
|
37 |
+
|
38 |
+
# RevTran=Security code
|
39 |
+
msgid "Security Code"
|
40 |
+
msgstr "Código de seguridade"
|
41 |
+
|
42 |
+
msgid "Coupon code"
|
43 |
+
msgstr "Código do cupón"
|
44 |
+
|
45 |
+
msgid "This field is required."
|
46 |
+
msgstr "Este campo é obrigado."
|
47 |
+
|
48 |
+
# RevTran=Please enter an email address invalid.
|
49 |
+
msgid "Please enter a valid email address."
|
50 |
+
msgstr "Por favor, introduce un enderezo de correo electrónico válido."
|
51 |
+
|
52 |
+
msgid "Please enter a valid captcha code."
|
53 |
+
msgstr "Por favor, introduce un código captcha válido."
|
54 |
+
|
55 |
+
# RevTran=Please enter a valid date in this format (dd \\/mm \\/yyyy)
|
56 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
57 |
+
msgstr "Por favor, introduce unha data válida con este formato (dd/mm/aaaa)"
|
58 |
+
|
59 |
+
# RevTran=Please enter a valid date in this format (dd \\/mm \\/yyyy)
|
60 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
61 |
+
msgstr "Por favor, introduce unha data válida con este formato (dd/mm/aaaa)"
|
62 |
+
|
63 |
+
msgid "Please enter a valid number."
|
64 |
+
msgstr "Por favor, introduce un número válido."
|
65 |
+
|
66 |
+
# RevTran=Enter only digits.
|
67 |
+
msgid "Please enter only digits."
|
68 |
+
msgstr "Escriba só díxitos."
|
69 |
+
|
70 |
+
msgid "Please enter a value less than or equal to {0}."
|
71 |
+
msgstr "Por favor, introduza un valor inferior ou igual a {0}."
|
72 |
+
|
73 |
+
msgid "Please enter a value greater than or equal to {0}."
|
74 |
+
msgstr "Por favor, introduce un valor maior ou igual a {0}."
|
languages/cpppp-gu_IN.mo
ADDED
Binary file
|
languages/cpppp-gu_IN.po
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:01+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: gu_IN\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "ઇમેલ"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "વિષય"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "સંદેશ"
|
24 |
+
|
25 |
+
# RevTran=Please enter the CAPTCHA verification code.
|
26 |
+
msgid "Please enter the captcha verification code."
|
27 |
+
msgstr "આ કેપ્ચા ચકાસણી કોડ દાખલ કરો."
|
28 |
+
|
29 |
+
msgid "Incorrect captcha code. Please try again."
|
30 |
+
msgstr "ખોટો કેપ્ચા કોડ. ફરીથી પ્રયત્ન કરો."
|
31 |
+
|
32 |
+
msgid "Please enter the security code"
|
33 |
+
msgstr "સુરક્ષા કોડ દાખલ કરો"
|
34 |
+
|
35 |
+
msgid "Security Code"
|
36 |
+
msgstr "સુરક્ષા કોડ"
|
37 |
+
|
38 |
+
# RevTran=Coupon Code
|
39 |
+
msgid "Coupon code"
|
40 |
+
msgstr "કૂપન કોડ"
|
41 |
+
|
42 |
+
# RevTran=Field is required
|
43 |
+
msgid "This field is required."
|
44 |
+
msgstr "ક્ષેત્ર જરૂરી છે"
|
45 |
+
|
46 |
+
msgid "Please enter a valid email address."
|
47 |
+
msgstr "માન્ય ઇમેઇલ સરનામું દાખલ કરો."
|
48 |
+
|
49 |
+
# RevTran=Please enter a valid Captcha code.
|
50 |
+
msgid "Please enter a valid captcha code."
|
51 |
+
msgstr "માન્ય કેપ્ચા કોડ દાખલ કરો."
|
52 |
+
|
53 |
+
# RevTran=The format (mm \\/dd ne \\/yyyy) Please enter a valid date with
|
54 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
55 |
+
msgstr "આ બંધારણમાં (મીમી/dd ને/yyyy) સાથે માન્ય તારીખ દાખલ કરો"
|
56 |
+
|
57 |
+
# RevTran=The format (dd \\/mm \\/yyyy) Please enter a valid date with
|
58 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
59 |
+
msgstr "આ બંધારણમાં (dd/mm/yyyy) સાથે માન્ય તારીખ દાખલ કરો"
|
60 |
+
|
61 |
+
msgid "Please enter a valid number."
|
62 |
+
msgstr "માન્ય નંબર દાખલ કરો."
|
63 |
+
|
64 |
+
# RevTran=Simply enter digits.
|
65 |
+
msgid "Please enter only digits."
|
66 |
+
msgstr "ફક્ત અંકો દાખલ કરો."
|
67 |
+
|
68 |
+
# RevTran=Enter a value less than or equal to {0}.
|
69 |
+
msgid "Please enter a value less than or equal to {0}."
|
70 |
+
msgstr "કરતાં ઓછા અથવા માટે {0} સમાન નીચેની દાખલ કરો."
|
71 |
+
|
72 |
+
# RevTran=Enter a value greater than or equal to {0}.
|
73 |
+
msgid "Please enter a value greater than or equal to {0}."
|
74 |
+
msgstr "કરતાં વધારે અથવા માટે {0} સમાન નીચેની દાખલ કરો."
|
languages/cpppp-he_IL.mo
ADDED
Binary file
|
languages/cpppp-he_IL.po
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:01+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: he_IL\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "אי-מייל"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "נושא"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "הודעה"
|
24 |
+
|
25 |
+
# RevTran=Please enter a valid email address.
|
26 |
+
msgid "Please enter the captcha verification code."
|
27 |
+
msgstr "אנא הזן את קוד האימות captcha."
|
28 |
+
|
29 |
+
msgid "Incorrect captcha code. Please try again."
|
30 |
+
msgstr "קוד שגוי captcha. נא נסה שוב."
|
31 |
+
|
32 |
+
# RevTran=Please enter a valid email address.
|
33 |
+
msgid "Please enter the security code"
|
34 |
+
msgstr "אנא הזן את קוד האבטחה"
|
35 |
+
|
36 |
+
# RevTran=Security code
|
37 |
+
msgid "Security Code"
|
38 |
+
msgstr "קוד אבטחה"
|
39 |
+
|
40 |
+
msgid "Coupon code"
|
41 |
+
msgstr "קוד קופון"
|
42 |
+
|
43 |
+
# RevTran=This field is required
|
44 |
+
msgid "This field is required."
|
45 |
+
msgstr "שדה זה נדרש"
|
46 |
+
|
47 |
+
msgid "Please enter a valid email address."
|
48 |
+
msgstr "אנא הזן כתובת דוא\"ל תקפה."
|
49 |
+
|
50 |
+
# RevTran=interest
|
51 |
+
msgid "Please enter a valid captcha code."
|
52 |
+
msgstr "נא להזין קוד חוקית captcha."
|
53 |
+
|
54 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
55 |
+
msgstr "נא להקליד תאריך עם format(mm/dd/yyyy) הזה"
|
56 |
+
|
57 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
58 |
+
msgstr "נא להקליד תאריך עם format(dd/mm/yyyy) הזה"
|
59 |
+
|
60 |
+
msgid "Please enter a valid number."
|
61 |
+
msgstr "נא הזן מספר תקף."
|
62 |
+
|
63 |
+
# RevTran=turns on sounds only
|
64 |
+
msgid "Please enter only digits."
|
65 |
+
msgstr "אנא הזן ספרות בלבד."
|
66 |
+
|
67 |
+
# RevTran=Enter a value less than or equal to {0} ...
|
68 |
+
msgid "Please enter a value less than or equal to {0}."
|
69 |
+
msgstr "הזינו ערך קטן או שווה ל {0}."
|
70 |
+
|
71 |
+
# RevTran=Please enter a value greater than or equal to {0} ...
|
72 |
+
msgid "Please enter a value greater than or equal to {0}."
|
73 |
+
msgstr "נא הזן ערך גדול או שווה ל {0}."
|
languages/cpppp-hi_IN.mo
ADDED
Binary file
|
languages/cpppp-hi_IN.po
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 19:59+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: hi_IN\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "प-पत्र"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "विषय"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "संदेश"
|
24 |
+
|
25 |
+
# RevTran=Captcha Enter the verification code.
|
26 |
+
msgid "Please enter the captcha verification code."
|
27 |
+
msgstr "कैप्चा सत्यापन कोड दर्ज करें।"
|
28 |
+
|
29 |
+
# RevTran=Captcha code wrong. Please try again.
|
30 |
+
msgid "Incorrect captcha code. Please try again."
|
31 |
+
msgstr "गलत कैप्चा कोड। पुन: प्रयास करें।"
|
32 |
+
|
33 |
+
# RevTran=Enter the security code
|
34 |
+
msgid "Please enter the security code"
|
35 |
+
msgstr "सुरक्षा कोड दर्ज करें"
|
36 |
+
|
37 |
+
# RevTran=Safety devices
|
38 |
+
msgid "Security Code"
|
39 |
+
msgstr "सुरक्षा कोड"
|
40 |
+
|
41 |
+
# RevTran=rathinavel
|
42 |
+
msgid "Coupon code"
|
43 |
+
msgstr "कूपन कोड"
|
44 |
+
|
45 |
+
msgid "This field is required."
|
46 |
+
msgstr "यह फ़ील्ड आवश्यक है।"
|
47 |
+
|
48 |
+
# RevTran=Please enter a valid e-mail address
|
49 |
+
msgid "Please enter a valid email address."
|
50 |
+
msgstr "एक मान्य ईमेल पता दर्ज करें."
|
51 |
+
|
52 |
+
# RevTran=Please enter a valid Captcha code.
|
53 |
+
msgid "Please enter a valid captcha code."
|
54 |
+
msgstr "एक वैध कैप्चा कोड दर्ज करें।"
|
55 |
+
|
56 |
+
# RevTran=The format (dd \\/mm \\/year), enter a valid date
|
57 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
58 |
+
msgstr "इस प्रारूप (dd/mm/वर्ष) के साथ एक मान्य दिनांक दर्ज करें"
|
59 |
+
|
60 |
+
# RevTran=The format (dd \\/mm \\/year), enter a valid date
|
61 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
62 |
+
msgstr "इस प्रारूप (dd/mm/वर्ष) के साथ एक मान्य दिनांक दर्ज करें"
|
63 |
+
|
64 |
+
msgid "Please enter a valid number."
|
65 |
+
msgstr "एक मान्य नंबर दर्ज करें।"
|
66 |
+
|
67 |
+
# RevTran=Please enter only numbers.
|
68 |
+
msgid "Please enter only digits."
|
69 |
+
msgstr "केवल अंक दर्ज करें।"
|
70 |
+
|
71 |
+
# RevTran=Less than or equal to {0} Enter a value.
|
72 |
+
msgid "Please enter a value less than or equal to {0}."
|
73 |
+
msgstr "कम से कम या करने के लिए {0} बराबर एक मूल्य दर्ज करें।"
|
74 |
+
|
75 |
+
# RevTran=Greater than or equal to {0} Enter a value.
|
76 |
+
msgid "Please enter a value greater than or equal to {0}."
|
77 |
+
msgstr "से अधिक है या करने के लिए {0} बराबर एक मूल्य दर्ज करें।"
|
languages/cpppp-hr.mo
ADDED
Binary file
|
languages/cpppp-hr.po
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:02+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: hr\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "Elektronička pošta"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "Predmet"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "Poruka"
|
24 |
+
|
25 |
+
# RevTran=Please enter the code captcha.
|
26 |
+
# RevTran=Please enter the code captcha.
|
27 |
+
msgid "Please enter the captcha verification code."
|
28 |
+
msgstr "Molimo unesite kôd captcha."
|
29 |
+
|
30 |
+
msgid "Incorrect captcha code. Please try again."
|
31 |
+
msgstr "Netočna captcha koda. Molimo pokušajte ponovno."
|
32 |
+
|
33 |
+
# RevTran=Enter the security code
|
34 |
+
msgid "Please enter the security code"
|
35 |
+
msgstr "Unesite sigurnosni kod"
|
36 |
+
|
37 |
+
msgid "Security Code"
|
38 |
+
msgstr "Sigurnosni kod"
|
39 |
+
|
40 |
+
# RevTran=Coupon Code
|
41 |
+
msgid "Coupon code"
|
42 |
+
msgstr "Kupon kod"
|
43 |
+
|
44 |
+
msgid "This field is required."
|
45 |
+
msgstr "Ovo polje je obavezno."
|
46 |
+
|
47 |
+
msgid "Please enter a valid email address."
|
48 |
+
msgstr "Unesite važeću e-mail adresu."
|
49 |
+
|
50 |
+
msgid "Please enter a valid captcha code."
|
51 |
+
msgstr "Unesite valjanu captcha koda."
|
52 |
+
|
53 |
+
# RevTran=Please enter a valid date with the format (mm \\/dd \\/yyyy)
|
54 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
55 |
+
msgstr "Unesite valjani datum s ovom formatu (mm/dd/gggg)"
|
56 |
+
|
57 |
+
# RevTran=Please enter a valid date with this format (dd \\/mm \\/yyyy)
|
58 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
59 |
+
msgstr "Unesite valjani datum s ovom formatu (dd/mm/gggg)"
|
60 |
+
|
61 |
+
msgid "Please enter a valid number."
|
62 |
+
msgstr "Unesite valjani broj."
|
63 |
+
|
64 |
+
# RevTran=Enter only digits.
|
65 |
+
msgid "Please enter only digits."
|
66 |
+
msgstr "Unesite samo znamenke."
|
67 |
+
|
68 |
+
# RevTran=Enter a value less than or equal to {0}.
|
69 |
+
msgid "Please enter a value less than or equal to {0}."
|
70 |
+
msgstr "Unesite vrijednost manju ili jednaku {0}."
|
71 |
+
|
72 |
+
msgid "Please enter a value greater than or equal to {0}."
|
73 |
+
msgstr "Molimo unesite vrijednost veća od ili jednak {0}."
|
languages/cpppp-hu_HU.mo
ADDED
Binary file
|
languages/cpppp-hu_HU.po
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:02+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: hu_HU\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
# RevTran=E-mail Address
|
17 |
+
msgid "Email"
|
18 |
+
msgstr "E-mail cím"
|
19 |
+
|
20 |
+
# RevTran=Object
|
21 |
+
msgid "Subject"
|
22 |
+
msgstr "Tárgy"
|
23 |
+
|
24 |
+
msgid "Message"
|
25 |
+
msgstr "Üzenet"
|
26 |
+
|
27 |
+
# RevTran=Please enter the captcha code.
|
28 |
+
msgid "Please enter the captcha verification code."
|
29 |
+
msgstr "Kérjük, adja meg captcha ellenőrző kódot."
|
30 |
+
|
31 |
+
# RevTran=Wrong captcha code. Please try again.
|
32 |
+
msgid "Incorrect captcha code. Please try again."
|
33 |
+
msgstr "Helytelen captcha kódot. Kérjük, próbálja újra."
|
34 |
+
|
35 |
+
msgid "Please enter the security code"
|
36 |
+
msgstr "Kérjük, írja be a biztonsági kódot"
|
37 |
+
|
38 |
+
msgid "Security Code"
|
39 |
+
msgstr "Biztonsági kód"
|
40 |
+
|
41 |
+
# RevTran=Coupon Code
|
42 |
+
msgid "Coupon code"
|
43 |
+
msgstr "Kupon kód"
|
44 |
+
|
45 |
+
msgid "This field is required."
|
46 |
+
msgstr "A mező kitöltése kötelező."
|
47 |
+
|
48 |
+
# RevTran=Please enter a valid email address
|
49 |
+
msgid "Please enter a valid email address."
|
50 |
+
msgstr "Kérjük, adjon meg egy érvényes e-mail címet"
|
51 |
+
|
52 |
+
msgid "Please enter a valid captcha code."
|
53 |
+
msgstr "Adjon meg egy érvényes captcha kódot."
|
54 |
+
|
55 |
+
# RevTran=Please enter a valid date with this format (mm \\/dd \\/yyyy)
|
56 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
57 |
+
msgstr "Adjon meg egy érvényes dátumot ezzel a formátummal (mm/dd/yyyy)"
|
58 |
+
|
59 |
+
# RevTran=Please enter a valid date with this format (dd \\/mm \\/yyyy)
|
60 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
61 |
+
msgstr "Adjon meg egy érvényes dátumot ezzel a formátummal (dd/mm/yyyy)"
|
62 |
+
|
63 |
+
# RevTran=Please enter a valid integer value!
|
64 |
+
msgid "Please enter a valid number."
|
65 |
+
msgstr "Adjon meg egy érvényes számot."
|
66 |
+
|
67 |
+
# RevTran=Please enter only numbers.
|
68 |
+
msgid "Please enter only digits."
|
69 |
+
msgstr "Kérjük, adja csak számok."
|
70 |
+
|
71 |
+
# RevTran=Enter a value less than or equal to {0}.
|
72 |
+
msgid "Please enter a value less than or equal to {0}."
|
73 |
+
msgstr "Adjon meg egy értéket kisebb vagy egyenlő {0}."
|
74 |
+
|
75 |
+
# RevTran=Enter a value greater than or equal to {0}.
|
76 |
+
msgid "Please enter a value greater than or equal to {0}."
|
77 |
+
msgstr "Adjon meg egy értéket nagyobb vagy egyenlő {0}."
|
languages/cpppp-hy_AM.mo
ADDED
Binary file
|
languages/cpppp-hy_AM.po
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: \n"
|
4 |
+
"POT-Creation-Date: \n"
|
5 |
+
"PO-Revision-Date: \n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"Language: hy_AM\n"
|
12 |
+
"X-Generator: Poedit 1.6.10\n"
|
13 |
+
|
14 |
+
msgid "Email"
|
15 |
+
msgstr "Էլեկտրոնային փոստ"
|
16 |
+
|
17 |
+
msgid "Subject"
|
18 |
+
msgstr "Ենթակա"
|
19 |
+
|
20 |
+
msgid "Message"
|
21 |
+
msgstr "Հաղորդագրություն"
|
22 |
+
|
23 |
+
# RevTran=Please enter a captcha verification code.
|
24 |
+
msgid "Please enter the captcha verification code."
|
25 |
+
msgstr "Խնդրում ենք մուտքագրել captcha ստուգման կոդը."
|
26 |
+
|
27 |
+
# RevTran=The wrong captcha code. Please try again.
|
28 |
+
msgid "Incorrect captcha code. Please try again."
|
29 |
+
msgstr "Սխալ captcha կոդը. Խնդրում ենք կրկին փորձել:"
|
30 |
+
|
31 |
+
msgid "Please enter the security code"
|
32 |
+
msgstr "Խնդրում ենք մուտքագրել անվտանգության կոդը"
|
33 |
+
|
34 |
+
msgid "Security Code"
|
35 |
+
msgstr "Անվտանգության կոդ"
|
36 |
+
|
37 |
+
# RevTran=Coupon Code
|
38 |
+
msgid "Coupon code"
|
39 |
+
msgstr "Արժեկտրոնի կոդը"
|
40 |
+
|
41 |
+
msgid "This field is required."
|
42 |
+
msgstr "Այս դաշտը պարտադիր է:"
|
43 |
+
|
44 |
+
msgid "Please enter a valid email address."
|
45 |
+
msgstr "Խնդրում ենք մուտքագրեք էլ փոստի հասցե."
|
46 |
+
|
47 |
+
msgid "Please enter a valid captcha code."
|
48 |
+
msgstr "Խնդրում ենք մուտքագրել վավեր captcha կոդը."
|
49 |
+
|
50 |
+
# RevTran=Please enter a valid date format (mm \\/day \\/year)
|
51 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
52 |
+
msgstr "Խնդրում ենք մուտքագրել վավեր ամսաթիվ այս ձեւաչափով (մմ/օր/տարի)"
|
53 |
+
|
54 |
+
# RevTran=Please enter a valid date format (eg \\/month \\/year)
|
55 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
56 |
+
msgstr "Խնդրում ենք մուտքագրել վավեր ամսաթիվ այս ձեւաչափով (օր/ամիս/տարի)"
|
57 |
+
|
58 |
+
msgid "Please enter a valid number."
|
59 |
+
msgstr "Խնդրում ենք մուտքագրել վավեր թիվը."
|
60 |
+
|
61 |
+
# RevTran=Please enter only numbers.
|
62 |
+
msgid "Please enter only digits."
|
63 |
+
msgstr "Խնդրում ենք մուտքագրել միայն թվեր:"
|
64 |
+
|
65 |
+
msgid "Please enter a value less than or equal to {0}."
|
66 |
+
msgstr "Խնդրում ենք մուտքագրել մի արժեք պակաս է կամ հավասար է {0}."
|
67 |
+
|
68 |
+
msgid "Please enter a value greater than or equal to {0}."
|
69 |
+
msgstr "Խնդրում ենք մուտքագրել մի արժեք ավելի մեծ է կամ հավասար է {0}."
|
languages/cpppp-id_ID.mo
ADDED
Binary file
|
languages/cpppp-id_ID.po
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:02+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: id_ID\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "Email"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "Subyek"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "Pesan"
|
24 |
+
|
25 |
+
# RevTran=Please enter the verification code captcha.
|
26 |
+
msgid "Please enter the captcha verification code."
|
27 |
+
msgstr "Silakan masukkan kode verifikasi captcha."
|
28 |
+
|
29 |
+
# RevTran=The wrong captcha code. Please try again.
|
30 |
+
msgid "Incorrect captcha code. Please try again."
|
31 |
+
msgstr "Kode captcha yang salah. Silakan coba lagi."
|
32 |
+
|
33 |
+
msgid "Please enter the security code"
|
34 |
+
msgstr "Silakan masukkan kode keamanan"
|
35 |
+
|
36 |
+
msgid "Security Code"
|
37 |
+
msgstr "Kode Keamanan"
|
38 |
+
|
39 |
+
# RevTran=Coupon Code
|
40 |
+
msgid "Coupon code"
|
41 |
+
msgstr "Kode kupon"
|
42 |
+
|
43 |
+
msgid "This field is required."
|
44 |
+
msgstr "Bidang ini diperlukan."
|
45 |
+
|
46 |
+
# RevTran=Enter valid email adress
|
47 |
+
msgid "Please enter a valid email address."
|
48 |
+
msgstr "Silakan masukkan alamat email yang valid."
|
49 |
+
|
50 |
+
# RevTran=Enter the captcha code valid.
|
51 |
+
msgid "Please enter a valid captcha code."
|
52 |
+
msgstr "Masukkan kode captcha yang valid."
|
53 |
+
|
54 |
+
# RevTran=Enter a valid date in this format (mm \\/dd \\/yyyy)
|
55 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
56 |
+
msgstr "Masukkan tanggal yang valid dengan format ini (mm/dd/yyyy)"
|
57 |
+
|
58 |
+
# RevTran=Enter a valid date in this format (dd \\/mm \\/yyyy)
|
59 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
60 |
+
msgstr "Masukkan tanggal yang valid dengan format ini (dd/mm/yyyy)"
|
61 |
+
|
62 |
+
# RevTran=Enter a valid number.
|
63 |
+
msgid "Please enter a valid number."
|
64 |
+
msgstr "Masukkan nomor yang valid."
|
65 |
+
|
66 |
+
# RevTran=Enter only digits.
|
67 |
+
msgid "Please enter only digits."
|
68 |
+
msgstr "Masukkan hanya digit."
|
69 |
+
|
70 |
+
# RevTran=Enter a value less than or equal to {0}.
|
71 |
+
msgid "Please enter a value less than or equal to {0}."
|
72 |
+
msgstr "Masukkan nilai kurang dari atau sama dengan {0}."
|
73 |
+
|
74 |
+
# RevTran=Enter a value greater than or equal to {0}.
|
75 |
+
msgid "Please enter a value greater than or equal to {0}."
|
76 |
+
msgstr "Masukkan nilai yang lebih besar dari atau sama dengan {0}."
|
languages/cpppp-it_IT.mo
ADDED
Binary file
|
languages/cpppp-it_IT.po
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:02+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: it_IT\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "E-mail"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "Oggetto"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "Messaggio"
|
24 |
+
|
25 |
+
# RevTran=Enter the verification code captcha.
|
26 |
+
msgid "Please enter the captcha verification code."
|
27 |
+
msgstr "Inserisci il codice di verifica captcha."
|
28 |
+
|
29 |
+
# RevTran=Captcha code incorrectly. Try again.
|
30 |
+
msgid "Incorrect captcha code. Please try again."
|
31 |
+
msgstr "Codice captcha non corretto. Riprova."
|
32 |
+
|
33 |
+
# RevTran=Please enter a security code.
|
34 |
+
msgid "Please enter the security code"
|
35 |
+
msgstr "Inserire un codice di sicurezza."
|
36 |
+
|
37 |
+
# RevTran=Security code
|
38 |
+
msgid "Security Code"
|
39 |
+
msgstr "Codice di sicurezza"
|
40 |
+
|
41 |
+
# RevTran=Coupon Code
|
42 |
+
msgid "Coupon code"
|
43 |
+
msgstr "Codice Coupon"
|
44 |
+
|
45 |
+
# RevTran=This field is mandatory
|
46 |
+
msgid "This field is required."
|
47 |
+
msgstr "Questo campo è obbligatorio."
|
48 |
+
|
49 |
+
msgid "Please enter a valid email address."
|
50 |
+
msgstr "Inserisci un indirizzo e-mail valido."
|
51 |
+
|
52 |
+
# RevTran=Please enter a valid captcha.
|
53 |
+
msgid "Please enter a valid captcha code."
|
54 |
+
msgstr "Si prega di inserire un codice captcha valido."
|
55 |
+
|
56 |
+
# RevTran=Please enter a valid date in the following format (gg \\/mm \\/yyyy)
|
57 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
58 |
+
msgstr "Si prega di inserire una data valida con questo formato (gg/mm/aaaa)"
|
59 |
+
|
60 |
+
msgid "Please enter a valid number."
|
61 |
+
msgstr "Specificare un numero valido."
|
62 |
+
|
63 |
+
# RevTran=Enter only digits.
|
64 |
+
msgid "Please enter only digits."
|
65 |
+
msgstr "Inserisci solo cifre."
|
66 |
+
|
67 |
+
# RevTran=Enter a value less than or equal to {0}.
|
68 |
+
msgid "Please enter a value less than or equal to {0}."
|
69 |
+
msgstr "Inserire un valore minore o uguale a {0}."
|
70 |
+
|
71 |
+
msgid "Please enter a value greater than or equal to {0}."
|
72 |
+
msgstr "Si prega di inserire un valore maggiore o uguale a {0}."
|
languages/cpppp-ja.mo
ADDED
Binary file
|
languages/cpppp-ja.po
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: \n"
|
4 |
+
"POT-Creation-Date: \n"
|
5 |
+
"PO-Revision-Date: \n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"Language: ja\n"
|
12 |
+
"X-Generator: Poedit 1.6.10\n"
|
13 |
+
|
14 |
+
msgid "Email"
|
15 |
+
msgstr "E メール"
|
16 |
+
|
17 |
+
msgid "Subject"
|
18 |
+
msgstr "件名"
|
19 |
+
|
20 |
+
msgid "Message"
|
21 |
+
msgstr "内容"
|
22 |
+
|
23 |
+
# RevTran=Please, enter verification code of CAPTCHA.
|
24 |
+
# RevTran=Please, enter verification code of CAPTCHA.
|
25 |
+
msgid "Please enter the captcha verification code."
|
26 |
+
msgstr "CAPTCHAの確認コードを入力してください。"
|
27 |
+
|
28 |
+
# RevTran=Illegal CAPTCHA code. Please try again.
|
29 |
+
# RevTran=Illegal CAPTCHA code. Please try again.
|
30 |
+
msgid "Incorrect captcha code. Please try again."
|
31 |
+
msgstr "不正なCAPTCHAのコード。もう一度やり直してください。"
|
32 |
+
|
33 |
+
msgid "Please enter the security code"
|
34 |
+
msgstr "セキュリティコードを入力してください"
|
35 |
+
|
36 |
+
# RevTran=Card security code
|
37 |
+
# RevTran=Card security code
|
38 |
+
msgid "Security Code"
|
39 |
+
msgstr "セキュリティコード"
|
40 |
+
|
41 |
+
msgid "Coupon code"
|
42 |
+
msgstr "クーポンコード"
|
43 |
+
|
44 |
+
# RevTran=
|
45 |
+
msgid "This field is required."
|
46 |
+
msgstr "このフィールドは必須です"
|
47 |
+
|
48 |
+
msgid "Please enter a valid email address."
|
49 |
+
msgstr "有効なメールアドレスを入力してください。"
|
50 |
+
|
51 |
+
# RevTran=Please enter a valid capture code.
|
52 |
+
msgid "Please enter a valid captcha code."
|
53 |
+
msgstr "有効なキャプチャコードを入力してください。"
|
54 |
+
|
55 |
+
# RevTran=Please enter a valid date in this format (MM \\/DD \\/YYYY)
|
56 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
57 |
+
msgstr "この形式(MM/DD/YYYY)で有効な日付を入力してください"
|
58 |
+
|
59 |
+
# RevTran=Please enter a valid date in this format (DD \\/MM \\/YYYY)
|
60 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
61 |
+
msgstr "この形式(DD/MM/YYYY)で有効な日付を入力してください"
|
62 |
+
|
63 |
+
msgid "Please enter a valid number."
|
64 |
+
msgstr "有効な数字を入力してください。"
|
65 |
+
|
66 |
+
# RevTran=Please enter only numbers.
|
67 |
+
msgid "Please enter only digits."
|
68 |
+
msgstr "数字のみを入力してください。"
|
69 |
+
|
70 |
+
# RevTran=Please enter a value less than or equal to 0.
|
71 |
+
msgid "Please enter a value less than or equal to {0}."
|
72 |
+
msgstr "0 以下の値を入力してください。"
|
73 |
+
|
74 |
+
# RevTran=Please enter a value greater than or equal to 0.
|
75 |
+
msgid "Please enter a value greater than or equal to {0}."
|
76 |
+
msgstr "0 以上の値を入力してください。"
|
languages/cpppp-ka_GE.mo
ADDED
Binary file
|
languages/cpppp-ka_GE.po
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:02+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: ka_GE\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "ელექტრონული ფოსტა"
|
18 |
+
|
19 |
+
# RevTran=Theme
|
20 |
+
msgid "Subject"
|
21 |
+
msgstr "თემა"
|
22 |
+
|
23 |
+
msgid "Message"
|
24 |
+
msgstr "შეტყობინება"
|
25 |
+
|
26 |
+
# RevTran=Please enter the captcha code.
|
27 |
+
msgid "Please enter the captcha verification code."
|
28 |
+
msgstr "გთხოვთ შეიყვანოთ captcha კოდს."
|
29 |
+
|
30 |
+
# RevTran=The wrong security code. Please try again.
|
31 |
+
msgid "Incorrect captcha code. Please try again."
|
32 |
+
msgstr "არასწორი დამცავი კოდი. გთხოვთ ისევ სცადოთ."
|
33 |
+
|
34 |
+
msgid "Please enter the security code"
|
35 |
+
msgstr "გთხოვთ შეიყვანოთ უსაფრთხოების კოდი"
|
36 |
+
|
37 |
+
# RevTran=Security code
|
38 |
+
msgid "Security Code"
|
39 |
+
msgstr "უსაფრთხოების კოდი"
|
40 |
+
|
41 |
+
msgid "Coupon code"
|
42 |
+
msgstr "კუპონის კოდი"
|
43 |
+
|
44 |
+
msgid "This field is required."
|
45 |
+
msgstr "ამ სფეროში აუცილებელია."
|
46 |
+
|
47 |
+
msgid "Please enter a valid email address."
|
48 |
+
msgstr "გთხოვთ, შეიყვანოთ სწორი ელ-ფოსტის მისამართი."
|
49 |
+
|
50 |
+
# RevTran=Please enter the correct security code.
|
51 |
+
msgid "Please enter a valid captcha code."
|
52 |
+
msgstr "გთხოვთ, შეიყვანოთ სწორი დამცავი კოდი."
|
53 |
+
|
54 |
+
# RevTran=Please enter a valid date in the format (mm \\/dd \\/yyyy)
|
55 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
56 |
+
msgstr "გთხოვთ, შეიყვანოთ სწორი თარიღი ამ ფორმატში (mm/dd/yyyy)"
|
57 |
+
|
58 |
+
# RevTran=Please enter a valid date in the format (dd \\/mm \\/yyyy)
|
59 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
60 |
+
msgstr "გთხოვთ, შეიყვანოთ სწორი თარიღი ამ ფორმატში (dd/mm/yyyy)"
|
61 |
+
|
62 |
+
msgid "Please enter a valid number."
|
63 |
+
msgstr "გთხოვთ, შეიყვანოთ სწორი ნომერი."
|
64 |
+
|
65 |
+
# RevTran=Please enter only numbers.
|
66 |
+
msgid "Please enter only digits."
|
67 |
+
msgstr "გთხოვთ შეიყვანოთ მხოლოდ ციფრები."
|
68 |
+
|
69 |
+
msgid "Please enter a value less than or equal to {0}."
|
70 |
+
msgstr "გთხოვთ შეიყვანოთ ღირებულება ნაკლებია ან ტოლი {0}."
|
71 |
+
|
72 |
+
msgid "Please enter a value greater than or equal to {0}."
|
73 |
+
msgstr "გთხოვთ შეიყვანოთ მნიშვნელობა მეტია ან ტოლია {0}."
|
languages/cpppp-ko_KR.mo
ADDED
Binary file
|
languages/cpppp-ko_KR.po
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:02+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: ko_KR\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "이메일"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "제목"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "메시지"
|
24 |
+
|
25 |
+
# RevTran=Please enter the CAPTCHA verification code.
|
26 |
+
msgid "Please enter the captcha verification code."
|
27 |
+
msgstr "보안 문자 확인 코드를 입력하세요."
|
28 |
+
|
29 |
+
# RevTran=The wrong captcha code. Please try again.
|
30 |
+
msgid "Incorrect captcha code. Please try again."
|
31 |
+
msgstr "잘못된 보안 문자 코드. 다시 시도하십시오."
|
32 |
+
|
33 |
+
msgid "Please enter the security code"
|
34 |
+
msgstr "보안 코드를 입력하세요"
|
35 |
+
|
36 |
+
msgid "Security Code"
|
37 |
+
msgstr "보안 코드"
|
38 |
+
|
39 |
+
# RevTran=Coupon codes
|
40 |
+
msgid "Coupon code"
|
41 |
+
msgstr "쿠폰 코드"
|
42 |
+
|
43 |
+
msgid "This field is required."
|
44 |
+
msgstr "이 필드는 필수입니다."
|
45 |
+
|
46 |
+
# RevTran=Please enter a valid address
|
47 |
+
msgid "Please enter a valid email address."
|
48 |
+
msgstr "유효한 주소를 입력하십시오."
|
49 |
+
|
50 |
+
# RevTran=Please enter a valid Captcha code.
|
51 |
+
msgid "Please enter a valid captcha code."
|
52 |
+
msgstr "유효한 보안 문자 코드를 입력하세요."
|
53 |
+
|
54 |
+
# RevTran=This format (MM \\/DD \\/YYYY) Please enter a valid date
|
55 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
56 |
+
msgstr "이 형식 (MM/DD/YYYY)로 유효한 날짜를 입력하세요"
|
57 |
+
|
58 |
+
# RevTran=Please enter a valid date in this format (day \\/mo \\/year)
|
59 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
60 |
+
msgstr "이 형식 (일/월/년)으로 유효한 날짜를 입력하세요"
|
61 |
+
|
62 |
+
msgid "Please enter a valid number."
|
63 |
+
msgstr "유효한 번호를 입력하십시오."
|
64 |
+
|
65 |
+
# RevTran=Please enter only numbers.
|
66 |
+
msgid "Please enter only digits."
|
67 |
+
msgstr "숫자 만 입력하세요."
|
68 |
+
|
69 |
+
# RevTran=Less than or equal to {0}, enter the same value.
|
70 |
+
msgid "Please enter a value less than or equal to {0}."
|
71 |
+
msgstr "보다 작거나 {0} 같은 값을 입력하세요."
|
72 |
+
|
73 |
+
# RevTran=Greater than or equal to {0}, enter the same value.
|
74 |
+
msgid "Please enter a value greater than or equal to {0}."
|
75 |
+
msgstr "보다 크거나 {0} 같은 값을 입력하세요."
|
languages/cpppp-lt_LT.mo
ADDED
Binary file
|
languages/cpppp-lt_LT.po
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:02+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: lt_LT\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
# RevTran=E-mail
|
17 |
+
msgid "Email"
|
18 |
+
msgstr "El. paštas"
|
19 |
+
|
20 |
+
# RevTran=Subject-matter
|
21 |
+
msgid "Subject"
|
22 |
+
msgstr "Dalykas"
|
23 |
+
|
24 |
+
msgid "Message"
|
25 |
+
msgstr "Pranešimas"
|
26 |
+
|
27 |
+
msgid "Please enter the captcha verification code."
|
28 |
+
msgstr "Prašome įvesti captcha patvirtinimo kodą."
|
29 |
+
|
30 |
+
# RevTran=Wrong captcha code. Please try again.
|
31 |
+
msgid "Incorrect captcha code. Please try again."
|
32 |
+
msgstr "Neteisingas captcha kodą. Bandykite dar kartą."
|
33 |
+
|
34 |
+
msgid "Please enter the security code"
|
35 |
+
msgstr "Prašome įvesti apsaugos kodą"
|
36 |
+
|
37 |
+
# RevTran=Security code
|
38 |
+
msgid "Security Code"
|
39 |
+
msgstr "Apsaugos kodas"
|
40 |
+
|
41 |
+
# RevTran=Coupon Code
|
42 |
+
msgid "Coupon code"
|
43 |
+
msgstr "Kupono kodas"
|
44 |
+
|
45 |
+
msgid "This field is required."
|
46 |
+
msgstr "Šis laukas būtinas."
|
47 |
+
|
48 |
+
# RevTran=Please enter a valid e-mail address
|
49 |
+
msgid "Please enter a valid email address."
|
50 |
+
msgstr "Įveskite galiojantį el. pašto adresą"
|
51 |
+
|
52 |
+
msgid "Please enter a valid captcha code."
|
53 |
+
msgstr "Prašome įvesti galiojantį captcha kodą."
|
54 |
+
|
55 |
+
# RevTran=Please enter a valid date with this format (mm \\/dd \\/yyyy)
|
56 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
57 |
+
msgstr "Prašome įvesti galiojantį datą su šiuo formatu (mm/dd/yyyy)"
|
58 |
+
|
59 |
+
# RevTran=Please enter a valid date with this format (dd \\/mm \\/yyyy)
|
60 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
61 |
+
msgstr "Prašome įvesti galiojantį datą su šiuo formatu (dd/mm/yyyy)"
|
62 |
+
|
63 |
+
# RevTran=Please enter a valid account number.
|
64 |
+
msgid "Please enter a valid number."
|
65 |
+
msgstr "Įveskite teisingą sąskaitos numerį."
|
66 |
+
|
67 |
+
# RevTran=Please enter only numbers.
|
68 |
+
msgid "Please enter only digits."
|
69 |
+
msgstr "Prašome įvesti tik skaitmenis."
|
70 |
+
|
71 |
+
msgid "Please enter a value less than or equal to {0}."
|
72 |
+
msgstr "Prašome įvesti reikšmę mažesnis arba lygus {0}."
|
73 |
+
|
74 |
+
msgid "Please enter a value greater than or equal to {0}."
|
75 |
+
msgstr "Prašome įvesti reikšmę didesnę nei arba lygus {0}."
|
languages/cpppp-lv.mo
ADDED
Binary file
|
languages/cpppp-lv.po
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:02+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: lv\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
# RevTran=E-mail
|
17 |
+
msgid "Email"
|
18 |
+
msgstr "E-pasts"
|
19 |
+
|
20 |
+
# RevTran=Topic
|
21 |
+
msgid "Subject"
|
22 |
+
msgstr "Temats"
|
23 |
+
|
24 |
+
# RevTran=alert
|
25 |
+
msgid "Message"
|
26 |
+
msgstr "ziņojums"
|
27 |
+
|
28 |
+
# RevTran=Enter the captcha verification code.
|
29 |
+
msgid "Please enter the captcha verification code."
|
30 |
+
msgstr "Ievadiet captcha verifikācijas kodu."
|
31 |
+
|
32 |
+
# RevTran=Wrong captcha code. Please try again.
|
33 |
+
msgid "Incorrect captcha code. Please try again."
|
34 |
+
msgstr "Nepareizs captcha kodu. Lūdzu, mēģiniet vēlreiz."
|
35 |
+
|
36 |
+
# RevTran=Enter the security code
|
37 |
+
msgid "Please enter the security code"
|
38 |
+
msgstr "Ievadiet drošības kodu"
|
39 |
+
|
40 |
+
msgid "Security Code"
|
41 |
+
msgstr "Drošības kods"
|
42 |
+
|
43 |
+
# RevTran=Coupon Code
|
44 |
+
msgid "Coupon code"
|
45 |
+
msgstr "Kupona kods"
|
46 |
+
|
47 |
+
msgid "This field is required."
|
48 |
+
msgstr "Šis lauks ir vajadzīgs."
|
49 |
+
|
50 |
+
# RevTran=Please enter a valid address
|
51 |
+
msgid "Please enter a valid email address."
|
52 |
+
msgstr "Lūdzu ievadiet derīgu adresi"
|
53 |
+
|
54 |
+
# RevTran=Please enter a valid CAPTCHA code.
|
55 |
+
msgid "Please enter a valid captcha code."
|
56 |
+
msgstr "Lūdzu, ievadiet derīgu CAPTCHA kodu."
|
57 |
+
|
58 |
+
# RevTran=Please enter a valid date with the format (mm \\/dd \\/yyyy)
|
59 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
60 |
+
msgstr "Lūdzu, ievadiet derīgu datumu ar šo formātu (mm/dd/gggg)"
|
61 |
+
|
62 |
+
# RevTran=Please enter a valid date with the format (dd \\/mm \\/yyyy)
|
63 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
64 |
+
msgstr "Lūdzu, ievadiet derīgu datumu ar šo formātu (dd/mm/gggg)"
|
65 |
+
|
66 |
+
msgid "Please enter a valid number."
|
67 |
+
msgstr "Lūdzu, ievadiet derīgu numuru."
|
68 |
+
|
69 |
+
# RevTran=Please enter only numbers.
|
70 |
+
msgid "Please enter only digits."
|
71 |
+
msgstr "Lūdzu, ievadiet tikai ciparus."
|
72 |
+
|
73 |
+
msgid "Please enter a value less than or equal to {0}."
|
74 |
+
msgstr "Lūdzu, ievadiet vērtība ir mazāka vai vienāda ar {0}."
|
75 |
+
|
76 |
+
msgid "Please enter a value greater than or equal to {0}."
|
77 |
+
msgstr "Lūdzu, ievadiet spēks ir lielāks par vai vienāds ar {0}."
|
languages/cpppp-mk_MK.mo
ADDED
Binary file
|
languages/cpppp-mk_MK.po
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 19:58+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: mk_MK\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "Електронско писмо"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "Тема"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "Порака"
|
24 |
+
|
25 |
+
# RevTran=Please enter the CAPTCHA verification code.
|
26 |
+
msgid "Please enter the captcha verification code."
|
27 |
+
msgstr "Ве молиме внесете го CAPTCHA код за потврда."
|
28 |
+
|
29 |
+
# RevTran=Incorrect CAPTCHA code. Please try again.
|
30 |
+
msgid "Incorrect captcha code. Please try again."
|
31 |
+
msgstr "Неправилна CAPTCHA код. Ве молиме обидете се повторно."
|
32 |
+
|
33 |
+
msgid "Please enter the security code"
|
34 |
+
msgstr "Ве молиме внесете ја безбедносната шифра"
|
35 |
+
|
36 |
+
msgid "Security Code"
|
37 |
+
msgstr "Безбедносен код"
|
38 |
+
|
39 |
+
# RevTran=Coupon Code
|
40 |
+
msgid "Coupon code"
|
41 |
+
msgstr "Купони законик"
|
42 |
+
|
43 |
+
# RevTran=This field is mandatory.
|
44 |
+
msgid "This field is required."
|
45 |
+
msgstr "Ова поле е задолжително."
|
46 |
+
|
47 |
+
msgid "Please enter a valid email address."
|
48 |
+
msgstr "Ве молиме внесете валидна е-мејл адреса."
|
49 |
+
|
50 |
+
# RevTran=Please enter a valid CAPTCHA code.
|
51 |
+
msgid "Please enter a valid captcha code."
|
52 |
+
msgstr "Ве молиме внесете валидна CAPTCHA код."
|
53 |
+
|
54 |
+
# RevTran=Please enter a valid date in this format (MM \\/DD \\/YYYY)
|
55 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
56 |
+
msgstr "Ве молиме внесете валидна датум со овој формат (MM/DD/YYYY)"
|
57 |
+
|
58 |
+
# RevTran=Please enter a valid date in this format (dd \\/mm \\/yyyy)
|
59 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
60 |
+
msgstr "Ве молиме внесете валидна датум со овој формат (дд/мм/гггг)"
|
61 |
+
|
62 |
+
msgid "Please enter a valid number."
|
63 |
+
msgstr "Ве молиме внесете валидна број."
|
64 |
+
|
65 |
+
# RevTran=Please enter only numbers.
|
66 |
+
msgid "Please enter only digits."
|
67 |
+
msgstr "Внеси го само бројки."
|
68 |
+
|
69 |
+
msgid "Please enter a value less than or equal to {0}."
|
70 |
+
msgstr "Ве молиме внесете вредност помалку од или еднакво на {0}."
|
71 |
+
|
72 |
+
msgid "Please enter a value greater than or equal to {0}."
|
73 |
+
msgstr "Ве молиме внесете вредност е поголема или еднаква на {0}."
|
languages/cpppp-ml_IN.mo
ADDED
Binary file
|
languages/cpppp-ml_IN.po
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:02+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: ml_IN\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "ഇ-മെയിൽ"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "Subject"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "Message"
|
24 |
+
|
25 |
+
msgid "Please enter the captcha verification code."
|
26 |
+
msgstr "Please enter the captcha verification code."
|
27 |
+
|
28 |
+
msgid "Incorrect captcha code. Please try again."
|
29 |
+
msgstr "Incorrect captcha code. Please try again."
|
30 |
+
|
31 |
+
msgid "Please enter the security code"
|
32 |
+
msgstr "Please enter the security code"
|
33 |
+
|
34 |
+
msgid "Security Code"
|
35 |
+
msgstr "Security Code"
|
36 |
+
|
37 |
+
msgid "Coupon code"
|
38 |
+
msgstr "Coupon code"
|
39 |
+
|
40 |
+
msgid "This field is required."
|
41 |
+
msgstr "This field is required."
|
42 |
+
|
43 |
+
# RevTran=Email
|
44 |
+
msgid "Please enter a valid email address."
|
45 |
+
msgstr "ഇ-മെയിൽ"
|
46 |
+
|
47 |
+
msgid "Please enter a valid captcha code."
|
48 |
+
msgstr "Please enter a valid captcha code."
|
49 |
+
|
50 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
51 |
+
msgstr "Please enter a valid date with this format(mm/dd/yyyy)"
|
52 |
+
|
53 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
54 |
+
msgstr "Please enter a valid date with this format(dd/mm/yyyy)"
|
55 |
+
|
56 |
+
msgid "Please enter a valid number."
|
57 |
+
msgstr "Please enter a valid number."
|
58 |
+
|
59 |
+
msgid "Please enter only digits."
|
60 |
+
msgstr "Please enter only digits."
|
61 |
+
|
62 |
+
msgid "Please enter a value less than or equal to {0}."
|
63 |
+
msgstr "Please enter a value less than or equal to {0}."
|
64 |
+
|
65 |
+
msgid "Please enter a value greater than or equal to {0}."
|
66 |
+
msgstr "Please enter a value greater than or equal to {0}."
|
languages/cpppp-ms_MY.mo
ADDED
Binary file
|
languages/cpppp-ms_MY.po
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: \n"
|
4 |
+
"POT-Creation-Date: \n"
|
5 |
+
"PO-Revision-Date: \n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=iso-8859-1\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"Language: ms_MY\n"
|
12 |
+
"X-Generator: Poedit 1.6.10\n"
|
13 |
+
|
14 |
+
# RevTran=Intan.01@gmail.com
|
15 |
+
msgid "Email"
|
16 |
+
msgstr "Emel"
|
17 |
+
|
18 |
+
# RevTran=subject syllabus
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "kemahiran hidup"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "Mesej"
|
24 |
+
|
25 |
+
# RevTran=Please enter the verification code captcha.
|
26 |
+
msgid "Please enter the captcha verification code."
|
27 |
+
msgstr "Sila masukkan kod pengesahan captcha."
|
28 |
+
|
29 |
+
msgid "Incorrect captcha code. Please try again."
|
30 |
+
msgstr "Kod captcha tidak betul. Sila cuba sekali lagi."
|
31 |
+
|
32 |
+
msgid "Please enter the security code"
|
33 |
+
msgstr "Sila masukkan kod keselamatan"
|
34 |
+
|
35 |
+
msgid "Security Code"
|
36 |
+
msgstr "Kod Keselamatan"
|
37 |
+
|
38 |
+
msgid "Coupon code"
|
39 |
+
msgstr "Kod kupon"
|
40 |
+
|
41 |
+
msgid "This field is required."
|
42 |
+
msgstr "Medan ini dikehendaki."
|
43 |
+
|
44 |
+
# RevTran=Please enter a valid email address
|
45 |
+
msgid "Please enter a valid email address."
|
46 |
+
msgstr "Sila masukkan alamat e-mel yang sah"
|
47 |
+
|
48 |
+
msgid "Please enter a valid captcha code."
|
49 |
+
msgstr "Sila masukkan kod captcha yang sah."
|
50 |
+
|
51 |
+
# RevTran=Please enter a valid date with this format (mm \\/dd \\/yyyy)
|
52 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
53 |
+
msgstr "Sila masukkan tarikh yang sah dengan format ini (mm/dd/yyyy)"
|
54 |
+
|
55 |
+
# RevTran=Please enter a valid date with this format (dd \\/mm \\/yyyy)
|
56 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
57 |
+
msgstr "Sila masukkan tarikh yang sah dengan format ini (dd/mm/yyyy)"
|
58 |
+
|
59 |
+
msgid "Please enter a valid number."
|
60 |
+
msgstr "Sila masukkan nombor yang sah."
|
61 |
+
|
62 |
+
# RevTran=Please enter only numbers.
|
63 |
+
msgid "Please enter only digits."
|
64 |
+
msgstr "Sila masukkan hanya angka."
|
65 |
+
|
66 |
+
msgid "Please enter a value less than or equal to {0}."
|
67 |
+
msgstr "Sila masukkan nilai yang kurang daripada atau sama dengan {0}."
|
68 |
+
|
69 |
+
msgid "Please enter a value greater than or equal to {0}."
|
70 |
+
msgstr "Sila masukkan nilai yang lebih besar daripada atau sama dengan {0}."
|
languages/cpppp-mt_MT.mo
ADDED
Binary file
|
languages/cpppp-mt_MT.po
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:02+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: mt_MT\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "Posta elettronika"
|
18 |
+
|
19 |
+
# RevTran=Subject matter
|
20 |
+
msgid "Subject"
|
21 |
+
msgstr "Suġġett"
|
22 |
+
|
23 |
+
# RevTran=Message:
|
24 |
+
msgid "Message"
|
25 |
+
msgstr "Messaġġ:"
|
26 |
+
|
27 |
+
# RevTran=Please enter the verification code captcha.
|
28 |
+
msgid "Please enter the captcha verification code."
|
29 |
+
msgstr "Jekk jogħġbok daħħal il-kodiċi verifika captcha."
|
30 |
+
|
31 |
+
msgid "Incorrect captcha code. Please try again."
|
32 |
+
msgstr "Kodiċi captcha żbaljata. Jekk jogħġbok erġa 'pprova."
|
33 |
+
|
34 |
+
msgid "Please enter the security code"
|
35 |
+
msgstr "Jekk jogħġbok daħħal il-kodiċi tas-sigurtà"
|
36 |
+
|
37 |
+
msgid "Security Code"
|
38 |
+
msgstr "Kodiċi tas-Sigurtà"
|
39 |
+
|
40 |
+
msgid "Coupon code"
|
41 |
+
msgstr "Kodiċi tal-kupun"
|
42 |
+
|
43 |
+
msgid "This field is required."
|
44 |
+
msgstr "Dan il-qasam hija meħtieġa."
|
45 |
+
|
46 |
+
msgid "Please enter a valid email address."
|
47 |
+
msgstr "Daħħal indirizz ta 'email validu."
|
48 |
+
|
49 |
+
msgid "Please enter a valid captcha code."
|
50 |
+
msgstr "Jekk joghgbok ikteb kodiċi captcha valida."
|
51 |
+
|
52 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
53 |
+
msgstr "Jekk joghgbok ikteb id-data valida ma dan il-format (mm/jj/ssss)"
|
54 |
+
|
55 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
56 |
+
msgstr "Jekk joghgbok ikteb id-data valida ma dan il-format (jj/xx/ssss)"
|
57 |
+
|
58 |
+
msgid "Please enter a valid number."
|
59 |
+
msgstr ""
|
60 |
+
|
61 |
+
msgid "Please enter only digits."
|
62 |
+
msgstr ""
|
63 |
+
|
64 |
+
msgid "Please enter a value less than or equal to {0}."
|
65 |
+
msgstr ""
|
66 |
+
|
67 |
+
msgid "Please enter a value greater than or equal to {0}."
|
68 |
+
msgstr ""
|
languages/cpppp-nb_NO.mo
ADDED
Binary file
|
languages/cpppp-nb_NO.po
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 19:58+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: nb_NO\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "E-post"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "Emne"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "Melding"
|
24 |
+
|
25 |
+
msgid "Please enter the captcha verification code."
|
26 |
+
msgstr "Vennligst skriv inn captcha bekreftelseskode."
|
27 |
+
|
28 |
+
msgid "Incorrect captcha code. Please try again."
|
29 |
+
msgstr "Feil captcha-kode. Vennligst prøv igjen."
|
30 |
+
|
31 |
+
msgid "Please enter the security code"
|
32 |
+
msgstr "Vennligst oppgi sikkerhetskoden"
|
33 |
+
|
34 |
+
msgid "Security Code"
|
35 |
+
msgstr "Sikkerhetskode"
|
36 |
+
|
37 |
+
msgid "Coupon code"
|
38 |
+
msgstr "Kupongkode"
|
39 |
+
|
40 |
+
# RevTran=This field is mandatory.
|
41 |
+
# RevTran=This field is mandatory.
|
42 |
+
msgid "This field is required."
|
43 |
+
msgstr "Dette feltet er obligatorisk."
|
44 |
+
|
45 |
+
msgid "Please enter a valid email address."
|
46 |
+
msgstr "Skriv inn en gyldig e-postadresse."
|
47 |
+
|
48 |
+
msgid "Please enter a valid captcha code."
|
49 |
+
msgstr "Skriv inn en gyldig captcha-kode."
|
50 |
+
|
51 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
52 |
+
msgstr "Skriv inn en gyldig dato med dette formatet (mm/dd/åååå)"
|
53 |
+
|
54 |
+
# RevTran=Please enter a valid date in this format (dd \\/mm \\/yyyy)
|
55 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
56 |
+
msgstr "Skriv inn en gyldig dato med dette formatet (dd/mm/åååå)"
|
57 |
+
|
58 |
+
msgid "Please enter a valid number."
|
59 |
+
msgstr "Skriv inn et gyldig nummer."
|
60 |
+
|
61 |
+
# RevTran=Enter only numbers.
|
62 |
+
msgid "Please enter only digits."
|
63 |
+
msgstr "Skriv inn bare tall."
|
64 |
+
|
65 |
+
# RevTran=Enter a value that is less than or equal to {0}.
|
66 |
+
msgid "Please enter a value less than or equal to {0}."
|
67 |
+
msgstr "Skriv inn en verdi som er mindre enn eller lik {0}."
|
68 |
+
|
69 |
+
# RevTran=Enter a value greater than or equal to {0}.
|
70 |
+
msgid "Please enter a value greater than or equal to {0}."
|
71 |
+
msgstr "Skriv inn en verdi som er større enn eller lik {0}."
|
languages/cpppp-nl_NL.mo
ADDED
Binary file
|
languages/cpppp-nl_NL.po
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:02+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: nl_NL\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
# RevTran=E-mail
|
17 |
+
msgid "Email"
|
18 |
+
msgstr "E-mail"
|
19 |
+
|
20 |
+
msgid "Subject"
|
21 |
+
msgstr "Onderwerp"
|
22 |
+
|
23 |
+
msgid "Message"
|
24 |
+
msgstr "Bericht"
|
25 |
+
|
26 |
+
# RevTran=Enter the captcha verification code.
|
27 |
+
msgid "Please enter the captcha verification code."
|
28 |
+
msgstr "Vul de captcha verificatiecode."
|
29 |
+
|
30 |
+
msgid "Incorrect captcha code. Please try again."
|
31 |
+
msgstr "Onjuiste captcha code. Gelieve opnieuw te proberen."
|
32 |
+
|
33 |
+
msgid "Please enter the security code"
|
34 |
+
msgstr "Vul de beveiligingscode"
|
35 |
+
|
36 |
+
# RevTran=Security code
|
37 |
+
msgid "Security Code"
|
38 |
+
msgstr "Beveiligingscode"
|
39 |
+
|
40 |
+
msgid "Coupon code"
|
41 |
+
msgstr "Kortingsbon-code"
|
42 |
+
|
43 |
+
msgid "This field is required."
|
44 |
+
msgstr "Dit veld is verplicht."
|
45 |
+
|
46 |
+
msgid "Please enter a valid email address."
|
47 |
+
msgstr "Voer alstublieft een geldig e-mailadres in."
|
48 |
+
|
49 |
+
# RevTran=Please enter a valid security code.
|
50 |
+
msgid "Please enter a valid captcha code."
|
51 |
+
msgstr "Vul een geldig captcha code."
|
52 |
+
|
53 |
+
# RevTran=Please enter a valid date in this format (dd \\/mm \\/yyyy)
|
54 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
55 |
+
msgstr "Vul een geldige datum met dit formaat (dd/mm/jjjj)"
|
56 |
+
|
57 |
+
msgid "Please enter a valid number."
|
58 |
+
msgstr "Voer alstublieft een geldig getal in."
|
59 |
+
|
60 |
+
# RevTran=Enter only numbers.
|
61 |
+
msgid "Please enter only digits."
|
62 |
+
msgstr "Vul alleen cijfers."
|
63 |
+
|
64 |
+
# RevTran=Please enter a value less than or equal to 0.
|
65 |
+
msgid "Please enter a value less than or equal to {0}."
|
66 |
+
msgstr "Voer alstublieft een waarde van minder of gelijk aan 0 in."
|
67 |
+
|
68 |
+
# RevTran=Please enter a value greater than or equal to 0.
|
69 |
+
msgid "Please enter a value greater than or equal to {0}."
|
70 |
+
msgstr "Voer alstublieft een waarde groter of gelijk aan 0 in."
|
languages/cpppp-pa_IN.mo
ADDED
Binary file
|
languages/cpppp-pa_IN.po
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 19:58+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: pa_IN\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "ਈ-ਮੇਲ"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "ਵਿਸ਼ਾ"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "ਸੁਨੇਹਾ"
|
24 |
+
|
25 |
+
# RevTran=Enter the verification code CAPTCHA.
|
26 |
+
msgid "Please enter the captcha verification code."
|
27 |
+
msgstr "ਕੈਪਟਚਾ ਤਸਦੀਕ ਕੋਡ ਦਰਜ ਕਰੋ."
|
28 |
+
|
29 |
+
# RevTran=The wrong captcha code. Please try again.
|
30 |
+
msgid "Incorrect captcha code. Please try again."
|
31 |
+
msgstr "ਗਲਤ ਕੈਪਟਚਾ ਦਾ ਕੋਡ ਹੈ. ਮੁੜ ਕੋਸ਼ਿਸ ਕਰੋ ਜੀ."
|
32 |
+
|
33 |
+
msgid "Please enter the security code"
|
34 |
+
msgstr "ਸੁਰੱਖਿਆ ਕੋਡ ਦਿਓ ਜੀ"
|
35 |
+
|
36 |
+
# RevTran=Security code
|
37 |
+
msgid "Security Code"
|
38 |
+
msgstr "ਸੁਰੱਖਿਆ ਕੋਡ"
|
39 |
+
|
40 |
+
# RevTran=Coupon Code
|
41 |
+
msgid "Coupon code"
|
42 |
+
msgstr "ਕੂਪਨ ਕੋਡ"
|
43 |
+
|
44 |
+
msgid "This field is required."
|
45 |
+
msgstr "ਇਸ ਫੀਲਡ ਦੀ ਲੋੜ ਹੈ."
|
46 |
+
|
47 |
+
msgid "Please enter a valid email address."
|
48 |
+
msgstr "ਇੱਕ ਜਾਇਜ ਈਮੇਲ ਪਤਾ ਦਰਜ ਕਰੋ."
|
49 |
+
|
50 |
+
# RevTran=Please enter a CAPTCHA code.
|
51 |
+
msgid "Please enter a valid captcha code."
|
52 |
+
msgstr "ਇੱਕ ਠੀਕ ਕੈਪਟਚਾ ਕੋਡ ਦਿਓ ਜੀ."
|
53 |
+
|
54 |
+
# RevTran=This format (MM \\/dd \\/year) Please enter a valid date
|
55 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
56 |
+
msgstr "ਇਸ ਨੂੰ ਫਾਰਮੈਟ (MM/dd/ਿਾਲ) ਦੇ ਨਾਲ ਇੱਕ ਠੀਕ ਤਾਰੀਖ ਦਿਓ ਜੀ"
|
57 |
+
|
58 |
+
# RevTran=This format (dd \\/MM \\/year) Please enter a valid date
|
59 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
60 |
+
msgstr "ਇਸ ਨੂੰ ਫਾਰਮੈਟ (dd/MM/ਿਾਲ) ਦੇ ਨਾਲ ਇੱਕ ਠੀਕ ਤਾਰੀਖ ਦਿਓ ਜੀ"
|
61 |
+
|
62 |
+
msgid "Please enter a valid number."
|
63 |
+
msgstr "ਇੱਕ ਯੋਗ ਨੰਬਰ ਦਿਓ ਜੀ."
|
64 |
+
|
65 |
+
# RevTran=Please enter only numbers.
|
66 |
+
msgid "Please enter only digits."
|
67 |
+
msgstr "ਸਿਰਫ ਅੰਕ ਦਿਓ ਜੀ."
|
68 |
+
|
69 |
+
# RevTran=Less than or equal to {0} value.
|
70 |
+
msgid "Please enter a value less than or equal to {0}."
|
71 |
+
msgstr "ਵੱਧ ਘੱਟ ਜ {0} ਦੇ ਬਰਾਬਰ ਮੁੱਲ ਦਿਓ ਜੀ."
|
72 |
+
|
73 |
+
# RevTran=Than or equal to {0} value.
|
74 |
+
msgid "Please enter a value greater than or equal to {0}."
|
75 |
+
msgstr "ਵੱਧ ਜ {0} ਦੇ ਬਰਾਬਰ ਮੁੱਲ ਦਿਓ ਜੀ."
|
languages/cpppp-pl_PL.mo
ADDED
Binary file
|
languages/cpppp-pl_PL.po
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: \n"
|
4 |
+
"POT-Creation-Date: \n"
|
5 |
+
"PO-Revision-Date: \n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"Language: pl_PL\n"
|
12 |
+
"X-Generator: Poedit 1.6.10\n"
|
13 |
+
|
14 |
+
# RevTran=E-mail
|
15 |
+
msgid "Email"
|
16 |
+
msgstr "E-mail"
|
17 |
+
|
18 |
+
# RevTran=Courses
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "Przedmiot"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "Wiadomość"
|
24 |
+
|
25 |
+
# RevTran=Please enter the verification code
|
26 |
+
msgid "Please enter the captcha verification code."
|
27 |
+
msgstr "Podaj kod weryfikacyjny"
|
28 |
+
|
29 |
+
msgid "Incorrect captcha code. Please try again."
|
30 |
+
msgstr "Nieprawidłowy kod captcha. Prosimy spróbować ponownie."
|
31 |
+
|
32 |
+
msgid "Please enter the security code"
|
33 |
+
msgstr "Proszę wpisać kod zabezpieczający"
|
34 |
+
|
35 |
+
# RevTran=security code
|
36 |
+
msgid "Security Code"
|
37 |
+
msgstr "kod bezpieczeństwa"
|
38 |
+
|
39 |
+
# RevTran=coupon code
|
40 |
+
msgid "Coupon code"
|
41 |
+
msgstr "kod kuponu"
|
42 |
+
|
43 |
+
# RevTran=This field is necessary.
|
44 |
+
msgid "This field is required."
|
45 |
+
msgstr "Pole to jest konieczne."
|
46 |
+
|
47 |
+
# RevTran=Please enter a valid email address
|
48 |
+
msgid "Please enter a valid email address."
|
49 |
+
msgstr "Wprowadź prawidłowy adres e-mail"
|
50 |
+
|
51 |
+
msgid "Please enter a valid captcha code."
|
52 |
+
msgstr "Proszę podać poprawny kod captcha."
|
53 |
+
|
54 |
+
# RevTran=Please enter a valid date in this format (dd \\/mm \\/yyyy)
|
55 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
56 |
+
msgstr "Proszę podać poprawną datę w tym formacie (dd/mm/rrrr)"
|
57 |
+
|
58 |
+
# RevTran=Please enter a valid customer number.
|
59 |
+
msgid "Please enter a valid number."
|
60 |
+
msgstr "Wprowadź prawidłowy numer klienta."
|
61 |
+
|
62 |
+
# RevTran=Please enter only numbers.
|
63 |
+
msgid "Please enter only digits."
|
64 |
+
msgstr "Proszę wpisać tylko cyfry."
|
65 |
+
|
66 |
+
msgid "Please enter a value less than or equal to {0}."
|
67 |
+
msgstr "Prosimy podać wartość mniejszą lub równą {0}."
|
68 |
+
|
69 |
+
# RevTran=Enter a value greater than or equal to {0}.
|
70 |
+
msgid "Please enter a value greater than or equal to {0}."
|
71 |
+
msgstr "Wprowadź wartość większą lub równą {0}."
|
languages/cpppp-pt_BR.mo
ADDED
Binary file
|
languages/cpppp-pt_BR.po
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 19:58+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: pt_BR\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "E-mail"
|
18 |
+
|
19 |
+
msgid "Assunto"
|
20 |
+
msgstr "Disciplina"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "Mensagem"
|
24 |
+
|
25 |
+
msgid "Please enter the captcha verification code."
|
26 |
+
msgstr "Por favor insira o código de verificação captcha."
|
27 |
+
|
28 |
+
msgid "Incorrect captcha code. Please try again."
|
29 |
+
msgstr "Código captcha incorreta. Por favor, tente novamente."
|
30 |
+
|
31 |
+
msgid "Please enter the security code"
|
32 |
+
msgstr "Digite o código de segurança"
|
33 |
+
|
34 |
+
msgid "Security Code"
|
35 |
+
msgstr "Código de Segurança"
|
36 |
+
|
37 |
+
msgid "Coupon code"
|
38 |
+
msgstr "Código do cupão"
|
39 |
+
|
40 |
+
msgid "This field is required."
|
41 |
+
msgstr "Este campo é obrigatório"
|
42 |
+
|
43 |
+
msgid "Please enter a valid email address."
|
44 |
+
msgstr "Por favor insira um endereço de email válido."
|
45 |
+
|
46 |
+
msgid "Please enter a valid captcha code."
|
47 |
+
msgstr "Por favor insira um código captcha válido."
|
48 |
+
|
49 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
50 |
+
msgstr "Por favor, insira uma data válida com este formato(mm/dd/yyyy)"
|
51 |
+
|
52 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
53 |
+
msgstr "Por favor, insira uma data válida com este formato(dd/mm/yyyy)"
|
54 |
+
|
55 |
+
msgid "Please enter a valid number."
|
56 |
+
msgstr "Por favor insira um número válido"
|
57 |
+
|
58 |
+
msgid "Please enter only digits."
|
59 |
+
msgstr "Digite apenas dígitos."
|
60 |
+
|
61 |
+
msgid "Please enter a value less than or equal to {0}."
|
62 |
+
msgstr "Por favor insira um valor inferior ou igual a {0}."
|
63 |
+
|
64 |
+
msgid "Please enter a value greater than or equal to {0}."
|
65 |
+
msgstr "Por favor insira um valor maior ou igual a {0}."
|
languages/cpppp-pt_PT.mo
ADDED
Binary file
|
languages/cpppp-pt_PT.po
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:03+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: pt_PT\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "E-mail"
|
18 |
+
|
19 |
+
msgid "Assunto"
|
20 |
+
msgstr "Disciplina"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "Mensagem"
|
24 |
+
|
25 |
+
msgid "Please enter the captcha verification code."
|
26 |
+
msgstr "Por favor insira o código de verificação captcha."
|
27 |
+
|
28 |
+
msgid "Incorrect captcha code. Please try again."
|
29 |
+
msgstr "Código captcha incorreta. Por favor, tente novamente."
|
30 |
+
|
31 |
+
msgid "Please enter the security code"
|
32 |
+
msgstr "Digite o código de segurança"
|
33 |
+
|
34 |
+
msgid "Security Code"
|
35 |
+
msgstr "Código de Segurança"
|
36 |
+
|
37 |
+
msgid "Coupon code"
|
38 |
+
msgstr "Código do cupão"
|
39 |
+
|
40 |
+
msgid "This field is required."
|
41 |
+
msgstr "Este campo é obrigatório"
|
42 |
+
|
43 |
+
msgid "Please enter a valid email address."
|
44 |
+
msgstr "Por favor insira um endereço de email válido."
|
45 |
+
|
46 |
+
msgid "Please enter a valid captcha code."
|
47 |
+
msgstr "Por favor insira um código captcha válido."
|
48 |
+
|
49 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
50 |
+
msgstr "Por favor, insira uma data válida com este formato(mm/dd/yyyy)"
|
51 |
+
|
52 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
53 |
+
msgstr "Por favor, insira uma data válida com este formato(dd/mm/yyyy)"
|
54 |
+
|
55 |
+
msgid "Please enter a valid number."
|
56 |
+
msgstr "Por favor insira um número válido"
|
57 |
+
|
58 |
+
msgid "Please enter only digits."
|
59 |
+
msgstr "Digite apenas dígitos."
|
60 |
+
|
61 |
+
msgid "Please enter a value less than or equal to {0}."
|
62 |
+
msgstr "Por favor insira um valor inferior ou igual a {0}."
|
63 |
+
|
64 |
+
msgid "Please enter a value greater than or equal to {0}."
|
65 |
+
msgstr "Por favor insira um valor maior ou igual a {0}."
|
languages/cpppp-ro_RO.mo
ADDED
Binary file
|
languages/cpppp-ro_RO.po
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 19:57+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: ro_RO\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
# RevTran=Vitreous enamel
|
17 |
+
# RevTran=Vitreous enamel
|
18 |
+
msgid "Email"
|
19 |
+
msgstr "Email"
|
20 |
+
|
21 |
+
msgid "Subject"
|
22 |
+
msgstr "Subiect"
|
23 |
+
|
24 |
+
msgid "Message"
|
25 |
+
msgstr "Mesaj"
|
26 |
+
|
27 |
+
# RevTran=Please enter the verification code captcha.
|
28 |
+
# RevTran=Please enter the verification code captcha.
|
29 |
+
msgid "Please enter the captcha verification code."
|
30 |
+
msgstr "Va rugam sa introduceti codul de verificare captcha."
|
31 |
+
|
32 |
+
# RevTran=Captcha code incorrectly. Please try again.
|
33 |
+
# RevTran=Captcha code incorrectly. Please try again.
|
34 |
+
msgid "Incorrect captcha code. Please try again."
|
35 |
+
msgstr "Captcha code incorect. Vă rugăm să încercați din nou."
|
36 |
+
|
37 |
+
msgid "Please enter the security code"
|
38 |
+
msgstr "Va rugam sa introduceti codul de securitate"
|
39 |
+
|
40 |
+
msgid "Security Code"
|
41 |
+
msgstr "Cod de securitate"
|
42 |
+
|
43 |
+
# RevTran=Coupon
|
44 |
+
# RevTran=Coupon
|
45 |
+
msgid "Coupon code"
|
46 |
+
msgstr "Coduri promoționale"
|
47 |
+
|
48 |
+
msgid "This field is required."
|
49 |
+
msgstr "Acest câmp este obligatoriu."
|
50 |
+
|
51 |
+
# RevTran=Please enter a valid email address
|
52 |
+
# RevTran=Please enter a valid email address
|
53 |
+
msgid "Please enter a valid email address."
|
54 |
+
msgstr "Vă rugăm să introduceți o adresă de e-mail valabilă"
|
55 |
+
|
56 |
+
# RevTran=Please enter a valid captcha.
|
57 |
+
# RevTran=Please enter a valid captcha.
|
58 |
+
msgid "Please enter a valid captcha code."
|
59 |
+
msgstr "Vă rugăm să introduceți un cod captcha valid."
|
60 |
+
|
61 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
62 |
+
msgstr "Vă rugăm să introduceți o dată validă pentru acest format (mm/dd/yyyy)"
|
63 |
+
|
64 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
65 |
+
msgstr "Vă rugăm să introduceți o dată validă pentru acest format (dd/mm/yyyy)"
|
66 |
+
|
67 |
+
# RevTran=Please enter a Valid Telephone number
|
68 |
+
msgid "Please enter a valid number."
|
69 |
+
msgstr "Vă rugăm să introduceți un număr de telefon valid"
|
70 |
+
|
71 |
+
# RevTran=Please enter only numbers.
|
72 |
+
msgid "Please enter only digits."
|
73 |
+
msgstr "Vă rugăm să introduceți numai cifre."
|
74 |
+
|
75 |
+
msgid "Please enter a value less than or equal to {0}."
|
76 |
+
msgstr "Vă rugăm să introduceți o valoare mai mică sau egală cu {0}."
|
77 |
+
|
78 |
+
msgid "Please enter a value greater than or equal to {0}."
|
79 |
+
msgstr "Vă rugăm să introduceți o valoare mai mare sau egală cu {0}."
|
languages/cpppp-ru_RU.mo
ADDED
Binary file
|
languages/cpppp-ru_RU.po
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"MIME-Version: 1.0\n"
|
4 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
5 |
+
"Content-Transfer-Encoding: 8bit\n"
|
6 |
+
"X-Poedit-SourceCharset: iso-8859-1\n"
|
7 |
+
"Project-Id-Version: \n"
|
8 |
+
"POT-Creation-Date: \n"
|
9 |
+
"PO-Revision-Date: \n"
|
10 |
+
"Last-Translator: \n"
|
11 |
+
"Language-Team: \n"
|
12 |
+
"Language: ru\n"
|
13 |
+
"X-Generator: Poedit 1.6.10\n"
|
14 |
+
|
15 |
+
# RevTran=File details
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "Email"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "Предмет"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "Сообщение"
|
24 |
+
|
25 |
+
msgid "Please enter the captcha verification code."
|
26 |
+
msgstr "Пожалуйста, введите капчу проверочный код."
|
27 |
+
|
28 |
+
# RevTran=Incorrect CAPTCHA Code. Please try again.
|
29 |
+
msgid "Incorrect captcha code. Please try again."
|
30 |
+
msgstr "Неправильное CAPTCHA Code. Пожалуйста, попробуйте еще раз."
|
31 |
+
|
32 |
+
msgid "Please enter the security code"
|
33 |
+
msgstr "Пожалуйста, введите защитный код"
|
34 |
+
|
35 |
+
# RevTran=Security Code*:
|
36 |
+
msgid "Security Code"
|
37 |
+
msgstr "Код безопасности*:"
|
38 |
+
|
39 |
+
msgid "Coupon code"
|
40 |
+
msgstr "Код купона"
|
41 |
+
|
42 |
+
# RevTran=This field is required
|
43 |
+
msgid "This field is required."
|
44 |
+
msgstr "Это поле обязательно для заполнения"
|
45 |
+
|
46 |
+
msgid "Please enter a valid email address."
|
47 |
+
msgstr "Введите действительный адрес электронной почты."
|
48 |
+
|
49 |
+
# RevTran=Please enter the captcha.
|
50 |
+
msgid "Please enter a valid captcha code."
|
51 |
+
msgstr "Пожалуйста, введите капчу."
|
52 |
+
|
53 |
+
# RevTran=Please enter the date in this format (mm \\/dd \\/yyyy)
|
54 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
55 |
+
msgstr "Пожалуйста, введите даты в этом формате (мм/дд/гггг)"
|
56 |
+
|
57 |
+
# RevTran=Please enter the date in this format (dd \\/mm \\/yyyy)
|
58 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
59 |
+
msgstr "Пожалуйста, введите даты в этом формате (дд/мм/гггг)"
|
60 |
+
|
61 |
+
# RevTran=Please enter a valid account number.
|
62 |
+
msgid "Please enter a valid number."
|
63 |
+
msgstr "Пожалуйста, введите действительный номер счета."
|
64 |
+
|
65 |
+
# RevTran=Please enter only numbers.
|
66 |
+
msgid "Please enter only digits."
|
67 |
+
msgstr "Пожалуйста, введите только цифры."
|
68 |
+
|
69 |
+
msgid "Please enter a value less than or equal to {0}."
|
70 |
+
msgstr "Пожалуйста, введите значение меньше или равное {0}."
|
71 |
+
|
72 |
+
msgid "Please enter a value greater than or equal to {0}."
|
73 |
+
msgstr "Пожалуйста, введите значение, большее или равное {0}."
|
languages/cpppp-sk_SK.mo
ADDED
Binary file
|
languages/cpppp-sk_SK.po
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 19:59+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: sk_SK\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "E-mail"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "Predmet"
|
21 |
+
|
22 |
+
# RevTran=Administration
|
23 |
+
msgid "Message"
|
24 |
+
msgstr "Správa"
|
25 |
+
|
26 |
+
# RevTran=Please enter the verification code captcha.
|
27 |
+
msgid "Please enter the captcha verification code."
|
28 |
+
msgstr "Prosím, zadajte overovací kód captcha."
|
29 |
+
|
30 |
+
msgid "Incorrect captcha code. Please try again."
|
31 |
+
msgstr "Nesprávny captcha kód. Skúste to prosím znova."
|
32 |
+
|
33 |
+
msgid "Please enter the security code"
|
34 |
+
msgstr "Prosím, zadajte bezpečnostný kód"
|
35 |
+
|
36 |
+
msgid "Security Code"
|
37 |
+
msgstr "Bezpečnostný kód"
|
38 |
+
|
39 |
+
# RevTran=Coupon Code
|
40 |
+
msgid "Coupon code"
|
41 |
+
msgstr "Kupon kód"
|
42 |
+
|
43 |
+
msgid "This field is required."
|
44 |
+
msgstr "Toto pole je povinné."
|
45 |
+
|
46 |
+
# RevTran=Please enter a valid address
|
47 |
+
msgid "Please enter a valid email address."
|
48 |
+
msgstr "Zadajte platnú adresu."
|
49 |
+
|
50 |
+
msgid "Please enter a valid captcha code."
|
51 |
+
msgstr "Zadajte prosím platný captcha kód."
|
52 |
+
|
53 |
+
# RevTran=Please enter a valid date in the following format (mm \\/dd \\/yyyy)
|
54 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
55 |
+
msgstr "Zadajte prosím platný dátum v tomto formáte (mm/dd/rrrr)"
|
56 |
+
|
57 |
+
# RevTran=Please enter a valid date in the following format (dd \\/mm \\/yyyy)
|
58 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
59 |
+
msgstr "Zadajte prosím platný dátum v tomto formáte (dd/mm/rrrr)"
|
60 |
+
|
61 |
+
msgid "Please enter a valid number."
|
62 |
+
msgstr "Zadajte platné číslo."
|
63 |
+
|
64 |
+
# RevTran=Please enter only numbers.
|
65 |
+
msgid "Please enter only digits."
|
66 |
+
msgstr "Prosím, zadajte iba číslice."
|
67 |
+
|
68 |
+
msgid "Please enter a value less than or equal to {0}."
|
69 |
+
msgstr "Prosím, zadajte hodnotu menšiu alebo rovnú {0}."
|
70 |
+
|
71 |
+
msgid "Please enter a value greater than or equal to {0}."
|
72 |
+
msgstr "Prosím, zadajte hodnotu väčšiu alebo rovné {0}."
|
languages/cpppp-sl_SI.mo
ADDED
Binary file
|
languages/cpppp-sl_SI.po
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 19:59+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: sl_SI\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "Elektronska pošta"
|
18 |
+
|
19 |
+
# RevTran=Subject matter
|
20 |
+
msgid "Subject"
|
21 |
+
msgstr "Predmet"
|
22 |
+
|
23 |
+
msgid "Message"
|
24 |
+
msgstr "Sporočilo"
|
25 |
+
|
26 |
+
# RevTran=Enter the verification code captcha.
|
27 |
+
msgid "Please enter the captcha verification code."
|
28 |
+
msgstr "Vnesite kodo za preverjanje captcha."
|
29 |
+
|
30 |
+
msgid "Incorrect captcha code. Please try again."
|
31 |
+
msgstr "Nepravilno captcha kodo. Prosimo, poskusite znova."
|
32 |
+
|
33 |
+
msgid "Please enter the security code"
|
34 |
+
msgstr "Prosimo vnesite varnostno kodo"
|
35 |
+
|
36 |
+
# RevTran=Security code
|
37 |
+
msgid "Security Code"
|
38 |
+
msgstr "Varnostna koda"
|
39 |
+
|
40 |
+
# RevTran=Coupon Code
|
41 |
+
msgid "Coupon code"
|
42 |
+
msgstr "Kupon koda"
|
43 |
+
|
44 |
+
msgid "This field is required."
|
45 |
+
msgstr "To polje je obvezno."
|
46 |
+
|
47 |
+
# RevTran=Please enter a valid address
|
48 |
+
msgid "Please enter a valid email address."
|
49 |
+
msgstr "Vnesite veljaven e-poštni naslov."
|
50 |
+
|
51 |
+
msgid "Please enter a valid captcha code."
|
52 |
+
msgstr "Prosimo, vnesite veljaven captcha kodo."
|
53 |
+
|
54 |
+
# RevTran=Please enter a valid date in this format (mm \\/dd \\/yyyy)
|
55 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
56 |
+
msgstr "Prosimo, vnesite veljaven datum, s tem formatu (mm/dd/llll)"
|
57 |
+
|
58 |
+
# RevTran=Please enter a valid date in this format (dd \\/mm \\/yyyy)
|
59 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
60 |
+
msgstr "Prosimo, vnesite veljaven datum, s tem formatu (dd/mm/llll)"
|
61 |
+
|
62 |
+
msgid "Please enter a valid number."
|
63 |
+
msgstr "Vnesite veljavno številko."
|
64 |
+
|
65 |
+
# RevTran=Please enter only numbers.
|
66 |
+
msgid "Please enter only digits."
|
67 |
+
msgstr "Vnesite samo številke."
|
68 |
+
|
69 |
+
# RevTran=Enter a value less than or equal to {0}.
|
70 |
+
msgid "Please enter a value less than or equal to {0}."
|
71 |
+
msgstr "Vnesite vrednost manjša ali enaka za {0}."
|
72 |
+
|
73 |
+
# RevTran=Enter a value greater than or equal to {0}.
|
74 |
+
msgid "Please enter a value greater than or equal to {0}."
|
75 |
+
msgstr "Vnesite vrednost je večja ali enaka do {0}."
|
languages/cpppp-sq.mo
ADDED
Binary file
|
languages/cpppp-sq.po
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 19:59+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: sq\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
# RevTran=Outbox
|
17 |
+
msgid "Email"
|
18 |
+
msgstr "Posta elektronike"
|
19 |
+
|
20 |
+
msgid "Subject"
|
21 |
+
msgstr "Subjekti"
|
22 |
+
|
23 |
+
# RevTran=Messages
|
24 |
+
msgid "Message"
|
25 |
+
msgstr "Lajmi"
|
26 |
+
|
27 |
+
# RevTran=Please enter verification code captcha.
|
28 |
+
msgid "Please enter the captcha verification code."
|
29 |
+
msgstr "Ju lutemi shkruani kodin e verifikimit captcha."
|
30 |
+
|
31 |
+
msgid "Incorrect captcha code. Please try again."
|
32 |
+
msgstr "Kodi i pasaktë captcha. Ju lutemi provoni përsëri."
|
33 |
+
|
34 |
+
msgid "Please enter the security code"
|
35 |
+
msgstr "Ju lutemi shkruani kodin e sigurisë"
|
36 |
+
|
37 |
+
msgid "Security Code"
|
38 |
+
msgstr "Kodi i sigurise"
|
39 |
+
|
40 |
+
# RevTran=Coupon Code
|
41 |
+
msgid "Coupon code"
|
42 |
+
msgstr "Kodi kupon"
|
43 |
+
|
44 |
+
msgid "This field is required."
|
45 |
+
msgstr "Kjo fushë është e nevojshme."
|
46 |
+
|
47 |
+
msgid "Please enter a valid email address."
|
48 |
+
msgstr "Ju lutem shkruani një adresë e vlefshme email."
|
49 |
+
|
50 |
+
msgid "Please enter a valid captcha code."
|
51 |
+
msgstr "Ju lutem shkruani një kod të vlefshme captcha."
|
52 |
+
|
53 |
+
# RevTran=Please enter a valid date in this format (mm \\/dd \\/yyyy)
|
54 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
55 |
+
msgstr "Ju lutem, jepni një datë të vlefshme me këtë format (mm/dd/vvv)"
|
56 |
+
|
57 |
+
# RevTran=Please enter a valid date in this format (dd \\/mm \\/yyyy)
|
58 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
59 |
+
msgstr "Ju lutem, jepni një datë të vlefshme me këtë format (dd/mm/vvv)"
|
60 |
+
|
61 |
+
msgid "Please enter a valid number."
|
62 |
+
msgstr "Ju lutem shkruani një numër të vlefshme."
|
63 |
+
|
64 |
+
# RevTran=Please enter only numbers.
|
65 |
+
msgid "Please enter only digits."
|
66 |
+
msgstr "Ju lutem shkruani vetëm shifra."
|
67 |
+
|
68 |
+
msgid "Please enter a value less than or equal to {0}."
|
69 |
+
msgstr "Ju lutem shkruani një vlerë më pak se ose e barabartë {0} për të."
|
70 |
+
|
71 |
+
msgid "Please enter a value greater than or equal to {0}."
|
72 |
+
msgstr "Ju lutemi hyjë një vlerë më të madhe se ose e barabartë {0} për të."
|
languages/cpppp-sr_RS.mo
ADDED
Binary file
|
languages/cpppp-sr_RS.po
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 19:59+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: sr_RS\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "Imejl"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "Предмет"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "Poruka"
|
24 |
+
|
25 |
+
# RevTran=Please enter the area code Captcha verification.
|
26 |
+
msgid "Please enter the captcha verification code."
|
27 |
+
msgstr "Молимо вас да унесете позивни број Цаптцха верификација."
|
28 |
+
|
29 |
+
# RevTran=Improper Captcha code. Try again.
|
30 |
+
msgid "Incorrect captcha code. Please try again."
|
31 |
+
msgstr "Неправилно Цаптцха код. Покушајте поново."
|
32 |
+
|
33 |
+
msgid "Please enter the security code"
|
34 |
+
msgstr "Молимо Вас да унесете сигурносни код"
|
35 |
+
|
36 |
+
msgid "Security Code"
|
37 |
+
msgstr "Сигурносни код"
|
38 |
+
|
39 |
+
# RevTran=Coupon Code
|
40 |
+
msgid "Coupon code"
|
41 |
+
msgstr "Код купона"
|
42 |
+
|
43 |
+
msgid "This field is required."
|
44 |
+
msgstr "Поље је обавезно."
|
45 |
+
|
46 |
+
# RevTran=Please enter a valid email address
|
47 |
+
msgid "Please enter a valid email address."
|
48 |
+
msgstr "Unesi važeću imejl adresu"
|
49 |
+
|
50 |
+
msgid "Please enter a valid captcha code."
|
51 |
+
msgstr "Унесите важећи цаптцха код."
|
52 |
+
|
53 |
+
# RevTran=Please enter a valid date with the format (mm \\/dd \\/iiii)
|
54 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
55 |
+
msgstr "Унесите важећи датум са овом формату (мм/дд/ииии)"
|
56 |
+
|
57 |
+
# RevTran=Please enter a valid date with the format (day \\/month \\/year)
|
58 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
59 |
+
msgstr "Унесите важећи датум са овом формату (дан/месец/година)"
|
60 |
+
|
61 |
+
msgid "Please enter a valid number."
|
62 |
+
msgstr "Унесите важећи број."
|
63 |
+
|
64 |
+
# RevTran=Please enter only numbers.
|
65 |
+
msgid "Please enter only digits."
|
66 |
+
msgstr "Молимо Вас да унесете само цифре."
|
67 |
+
|
68 |
+
# RevTran=Enter a value less than or equal to {0}.
|
69 |
+
msgid "Please enter a value less than or equal to {0}."
|
70 |
+
msgstr "Унесите вриједност мања или једнака у {0}."
|
71 |
+
|
72 |
+
# RevTran=Enter a value greater than or equal to {0}.
|
73 |
+
msgid "Please enter a value greater than or equal to {0}."
|
74 |
+
msgstr "Унесите вриједност већу од или једнаку {0}."
|
languages/cpppp-sv_SE.mo
ADDED
Binary file
|
languages/cpppp-sv_SE.po
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:03+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: sv_SE\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
# RevTran=E-Mail
|
17 |
+
msgid "Email"
|
18 |
+
msgstr "E-post"
|
19 |
+
|
20 |
+
msgid "Subject"
|
21 |
+
msgstr "Angående"
|
22 |
+
|
23 |
+
# RevTran=Notice
|
24 |
+
msgid "Message"
|
25 |
+
msgstr "Meddelande"
|
26 |
+
|
27 |
+
# RevTran=Enter the captcha verification code.
|
28 |
+
msgid "Please enter the captcha verification code."
|
29 |
+
msgstr "Ange captcha verifieringskod."
|
30 |
+
|
31 |
+
# RevTran=Incorrect captcha code. Try again.
|
32 |
+
msgid "Incorrect captcha code. Please try again."
|
33 |
+
msgstr "Felaktig captcha kod. Försök igen."
|
34 |
+
|
35 |
+
# RevTran=Enter the security code
|
36 |
+
msgid "Please enter the security code"
|
37 |
+
msgstr "Ange säkerhetskoden"
|
38 |
+
|
39 |
+
# RevTran=access code
|
40 |
+
msgid "Security Code"
|
41 |
+
msgstr "Säkerhetskod"
|
42 |
+
|
43 |
+
msgid "Coupon code"
|
44 |
+
msgstr "Kupongkod"
|
45 |
+
|
46 |
+
# RevTran=This field is required
|
47 |
+
msgid "This field is required."
|
48 |
+
msgstr "Detta fält är obligatoriskt"
|
49 |
+
|
50 |
+
msgid "Please enter a valid email address."
|
51 |
+
msgstr "Ange en giltig e-postadress."
|
52 |
+
|
53 |
+
msgid "Please enter a valid captcha code."
|
54 |
+
msgstr "Ange en giltig captcha-kod."
|
55 |
+
|
56 |
+
# RevTran=Please enter a valid date in this format (dd \\/mm \\/yyyy)
|
57 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
58 |
+
msgstr "Ange ett giltigt datum med detta format (dd/mm/åååå)"
|
59 |
+
|
60 |
+
# RevTran=Please enter a valid date in this format (dd \\/mm \\/yyyy)
|
61 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
62 |
+
msgstr "Ange ett giltigt datum med detta format (dd/mm/åååå)"
|
63 |
+
|
64 |
+
# RevTran=Please enter a valid number
|
65 |
+
msgid "Please enter a valid number."
|
66 |
+
msgstr "Vänligen ange ett giltigt nummer"
|
67 |
+
|
68 |
+
# RevTran=Please enter only numbers.
|
69 |
+
msgid "Please enter only digits."
|
70 |
+
msgstr "Ange endast siffror."
|
71 |
+
|
72 |
+
# RevTran=Enter a value that is less than or equal to {0}.
|
73 |
+
msgid "Please enter a value less than or equal to {0}."
|
74 |
+
msgstr "Ange ett värde som är mindre än eller lika med {0}."
|
75 |
+
|
76 |
+
# RevTran=Enter a value greater than or equal to {0}.
|
77 |
+
msgid "Please enter a value greater than or equal to {0}."
|
78 |
+
msgstr "Ange ett värde som är större än eller lika med {0}."
|
languages/cpppp-ta.mo
ADDED
Binary file
|
languages/cpppp-ta.po
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:03+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: ta\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
# RevTran=E-mail
|
17 |
+
msgid "Email"
|
18 |
+
msgstr "மின்னஞ்சல்"
|
19 |
+
|
20 |
+
# RevTran=Matter
|
21 |
+
msgid "Subject"
|
22 |
+
msgstr "பொருள்"
|
23 |
+
|
24 |
+
# RevTran=News
|
25 |
+
msgid "Message"
|
26 |
+
msgstr "செய்தி"
|
27 |
+
|
28 |
+
# RevTran=Enter the verification code captcha.
|
29 |
+
msgid "Please enter the captcha verification code."
|
30 |
+
msgstr "கேப்ட்சா சரிபார்ப்பு குறியீடு உள்ளிடவும்."
|
31 |
+
|
32 |
+
# RevTran=The wrong captcha code. Please try again.
|
33 |
+
msgid "Incorrect captcha code. Please try again."
|
34 |
+
msgstr "தவறான கேப்ட்சா குறியீடு. மீண்டும் முயற்சிக்கவும்."
|
35 |
+
|
36 |
+
# RevTran=Enter the security code
|
37 |
+
msgid "Please enter the security code"
|
38 |
+
msgstr "பாதுகாப்பு குறியீடு உள்ளிடவும்"
|
39 |
+
|
40 |
+
msgid "Security Code"
|
41 |
+
msgstr "பாதுகாப்பு குறியீடு"
|
42 |
+
|
43 |
+
# RevTran=Postal code
|
44 |
+
msgid "Coupon code"
|
45 |
+
msgstr "கூப்பன் குறியீடு"
|
46 |
+
|
47 |
+
msgid "This field is required."
|
48 |
+
msgstr "இந்த துறையில் தேவைப்படுகிறது."
|
49 |
+
|
50 |
+
msgid "Please enter a valid email address."
|
51 |
+
msgstr "ஒரு சரியான மின்னஞ்சல் முகவரியை உள்ளிடவும்."
|
52 |
+
|
53 |
+
msgid "Please enter a valid captcha code."
|
54 |
+
msgstr "ஒரு செல்லுபடியாகும் கேப்ட்சா குறியீடு உள்ளிடவும்."
|
55 |
+
|
56 |
+
# RevTran=This form (DD \\/MM \\/YYYY) Please enter a valid date
|
57 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
58 |
+
msgstr "இந்த வடிவம் (DD/MM/YYYY) ஒரு செல்லுபடியாகும் தேதியை உள்ளிடவும்"
|
59 |
+
|
60 |
+
# RevTran=This form (DD \\/MM \\/YYYY) Please enter a valid date
|
61 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
62 |
+
msgstr "இந்த வடிவம் (DD/MM/YYYY) ஒரு செல்லுபடியாகும் தேதியை உள்ளிடவும்"
|
63 |
+
|
64 |
+
msgid "Please enter a valid number."
|
65 |
+
msgstr "சரியான எண் உள்ளிடவும்."
|
66 |
+
|
67 |
+
# RevTran=Please enter only numbers.
|
68 |
+
msgid "Please enter only digits."
|
69 |
+
msgstr "ஒரே இலக்கங்கள் உள்ளிடவும்."
|
70 |
+
|
71 |
+
msgid "Please enter a value less than or equal to {0}."
|
72 |
+
msgstr "குறைவாக அல்லது {0} சமமான மதிப்பை உள்ளிடவும்."
|
73 |
+
|
74 |
+
# RevTran=Enter a value greater than or equal to {0}.
|
75 |
+
msgid "Please enter a value greater than or equal to {0}."
|
76 |
+
msgstr "அதிகமான அல்லது {0} சமமான மதிப்பை உள்ளிடவும்."
|
languages/cpppp-th.mo
ADDED
Binary file
|
languages/cpppp-th.po
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: \n"
|
4 |
+
"POT-Creation-Date: \n"
|
5 |
+
"PO-Revision-Date: \n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"Language: th\n"
|
12 |
+
"X-Generator: Poedit 1.6.10\n"
|
13 |
+
|
14 |
+
msgid "Email"
|
15 |
+
msgstr "อีเมล"
|
16 |
+
|
17 |
+
# RevTran=Headline
|
18 |
+
msgid "Subject"
|
19 |
+
msgstr "หัวเรื่อง"
|
20 |
+
|
21 |
+
# RevTran=Messages
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "ข้อความ"
|
24 |
+
|
25 |
+
# RevTran=Please check the comments.
|
26 |
+
msgid "Please enter the captcha verification code."
|
27 |
+
msgstr "กรุณาใส่รหัสตรวจสอบแจ้งลบความคิดเห็น"
|
28 |
+
|
29 |
+
# RevTran=Report this comment to the wrong code. Please try again
|
30 |
+
msgid "Incorrect captcha code. Please try again."
|
31 |
+
msgstr "แจ้งลบความคิดเห็นที่ไม่ถูกต้องรหัส โปรดลองอีกครั้ง"
|
32 |
+
|
33 |
+
msgid "Please enter the security code"
|
34 |
+
msgstr "กรุณากรอกรหัสรักษาความปลอดภัย"
|
35 |
+
|
36 |
+
# RevTran=Security guard
|
37 |
+
msgid "Security Code"
|
38 |
+
msgstr "รหัสความปลอดภัย"
|
39 |
+
|
40 |
+
# RevTran=Character encoding
|
41 |
+
msgid "Coupon code"
|
42 |
+
msgstr "รหัสคูปอง"
|
43 |
+
|
44 |
+
# RevTran=This field is required
|
45 |
+
msgid "This field is required."
|
46 |
+
msgstr "ฟิลด์นี้จะต้อง"
|
47 |
+
|
48 |
+
# RevTran=Please enter a valid email address
|
49 |
+
msgid "Please enter a valid email address."
|
50 |
+
msgstr "กรุณาป้อนอีเมลที่ถูกต้อง"
|
51 |
+
|
52 |
+
# RevTran=Please enter the code, the comments are correct.
|
53 |
+
msgid "Please enter a valid captcha code."
|
54 |
+
msgstr "กรุณากรอกรหัสที่แจ้งลบความคิดเห็นที่ถูกต้อง"
|
55 |
+
|
56 |
+
# RevTran=Please enter a valid with this format (month \\/day \\/year).
|
57 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
58 |
+
msgstr "กรุณากรอกวันที่ถูกต้องกับรูปแบบนี้ (เดือน/วัน/ปี)"
|
59 |
+
|
60 |
+
# RevTran=Please enter a valid with this format (dd \\/m \\/year).
|
61 |
+
msgid "Please enter a valid date with this format(dd/mm/yyyy)"
|
62 |
+
msgstr "กรุณากรอกวันที่ถูกต้องกับรูปแบบนี้ (วัน/เดือน/ปี)"
|
63 |
+
|
64 |
+
# RevTran=Please enter a valid number
|
65 |
+
msgid "Please enter a valid number."
|
66 |
+
msgstr "กรุณาใส่ตัวเลขที่ถูกต้อง"
|
67 |
+
|
68 |
+
# RevTran=Please enter only numeric characters
|
69 |
+
msgid "Please enter only digits."
|
70 |
+
msgstr "กรุณากรอกตัวอักษรตัวเลขเท่านั้น"
|
71 |
+
|
72 |
+
msgid "Please enter a value less than or equal to {0}."
|
73 |
+
msgstr "กรุณาป้อนค่าน้อยกว่าหรือเท่ากับ {0}"
|
74 |
+
|
75 |
+
msgid "Please enter a value greater than or equal to {0}."
|
76 |
+
msgstr "กรุณาป้อนค่ามากกว่าหรือเท่ากับ {0}"
|
languages/cpppp-tl.mo
ADDED
Binary file
|
languages/cpppp-tl.po
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:03+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: tl\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "Email"
|
18 |
+
|
19 |
+
msgid "Subject"
|
20 |
+
msgstr "Paksa"
|
21 |
+
|
22 |
+
msgid "Message"
|
23 |
+
msgstr "Mensahe"
|
24 |
+
|
25 |
+
# RevTran=Please enter the verification code captcha.
|
26 |
+
msgid "Please enter the captcha verification code."
|
27 |
+
msgstr "Mangyaring ipasok ang verification code na captcha."
|
28 |
+
|
29 |
+
msgid "Incorrect captcha code. Please try again."
|
30 |
+
msgstr "Hindi tamang captcha code. Pakisubukang muli."
|
31 |
+
|
32 |
+
msgid "Please enter the security code"
|
33 |
+
msgstr "Mangyaring ipasok ang security code"
|
34 |
+
|
35 |
+
msgid "Security Code"
|
36 |
+
msgstr "Code ng Seguridad"
|
37 |
+
|
38 |
+
# RevTran=The coupon code
|
39 |
+
msgid "Coupon code"
|
40 |
+
msgstr "Ang code ng kupon"
|
41 |
+
|
42 |
+
msgid "This field is required."
|
43 |
+
msgstr "Ang patlang na ito ay kinakailangan."
|
44 |
+
|
45 |
+
# RevTran=Please enter a valid email address
|
46 |
+
msgid "Please enter a valid email address."
|
47 |
+
msgstr "Mangyaring magpasok ng isang wastong email address"
|
48 |
+
|
49 |
+
msgid "Please enter a valid captcha code."
|
50 |
+
msgstr "Mangyaring magpasok ng wastong captcha code."
|
51 |
+
|
52 |
+
# RevTran=Please enter a valid date format (mm \\/dd \\/yyyy)
|
53 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
54 |
+
msgstr "Mangyaring magpasok ng wastong petsa sa format (mm/dd/yyyy)"
|
55 |
+
|
56 |
+
msgid "Please enter a valid number."
|
57 |
+
msgstr "Mangyaring magpasok ng isang wastong numero."
|
58 |
+
|
59 |
+
msgid "Please enter only digits."
|
60 |
+
msgstr "Mangyaring ipasok lamang ang mga digit."
|
61 |
+
|
62 |
+
msgid "Please enter a value less than or equal to {0}."
|
63 |
+
msgstr ""
|
64 |
+
"Mangyaring magpasok ng isang halaga na mas mababa sa o katumbas ng {0}."
|
65 |
+
|
66 |
+
# RevTran=Please enter a value less than or equal to {0}.
|
67 |
+
msgid "Please enter a value greater than or equal to {0}."
|
68 |
+
msgstr ""
|
69 |
+
"Mangyaring magpasok ng isang halaga na mas mababa sa o katumbas ng {0}."
|
languages/cpppp-tr_TR.mo
ADDED
Binary file
|
languages/cpppp-tr_TR.po
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 19:59+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: tr_TR\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
# RevTran=E-mail (*)
|
17 |
+
msgid "Email"
|
18 |
+
msgstr "E-posta"
|
19 |
+
|
20 |
+
# RevTran=Topic
|
21 |
+
msgid "Subject"
|
22 |
+
msgstr "Konu"
|
23 |
+
|
24 |
+
msgid "Message"
|
25 |
+
msgstr "Mesaj"
|
26 |
+
|
27 |
+
# RevTran=Please enter the Captcha code.
|
28 |
+
msgid "Please enter the captcha verification code."
|
29 |
+
msgstr "Captcha doğrulama kodunu giriniz."
|
30 |
+
|
31 |
+
# RevTran=Wrong Captcha code. Please try again.
|
32 |
+
msgid "Incorrect captcha code. Please try again."
|
33 |
+
msgstr "Yanlış Captcha kodu. Lütfen tekrar deneyin."
|
34 |
+
|
35 |
+
# RevTran=Please enter the code
|
36 |
+
msgid "Please enter the security code"
|
37 |
+
msgstr "Lütfen Kodu girin"
|
38 |
+
|
39 |
+
# RevTran=Security Code:
|
40 |
+
msgid "Security Code"
|
41 |
+
msgstr "Güvenlik Kodu:"
|
42 |
+
|
43 |
+
# RevTran=Coupon Code
|
44 |
+
msgid "Coupon code"
|
45 |
+
msgstr "Kupon kodu"
|
46 |
+
|
47 |
+
msgid "This field is required."
|
48 |
+
msgstr "Bu alan gereklidir."
|
49 |
+
|
50 |
+
# RevTran=Please enter a valid email address
|
51 |
+
msgid "Please enter a valid email address."
|
52 |
+
msgstr "Lütfen geçerli bir e-posta adresi girin."
|
53 |
+
|
54 |
+
# RevTran=Please enter a valid verification code.
|
55 |
+
msgid "Please enter a valid captcha code."
|
56 |
+
msgstr "Geçerli bir doğrulama kodunu giriniz."
|
57 |
+
|
58 |
+
# RevTran=In this format (aa \\/dd \\/yyyy) Enter a valid date
|
59 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
60 |
+
msgstr "Bu formatta (aa/gg/yyyy) geçerli bir tarih girin"
|
61 |
+
|
62 |
+
msgid "Please enter a valid number."
|
63 |
+
msgstr "Geçerli bir sayı giriniz."
|
64 |
+
|
65 |
+
msgid "Please enter only digits."
|
66 |
+
msgstr "Sadece basamak giriniz."
|
67 |
+
|
68 |
+
# RevTran=Or, enter a value equal to less than {0}.
|
69 |
+
msgid "Please enter a value less than or equal to {0}."
|
70 |
+
msgstr "Veya daha az {0} eşit bir değer girin."
|
71 |
+
|
72 |
+
# RevTran=Enter a value greater than or equal to {0}.
|
73 |
+
msgid "Please enter a value greater than or equal to {0}."
|
74 |
+
msgstr "Daha büyük veya {0} eşit bir değer girin."
|
languages/cpppp-uk.mo
ADDED
Binary file
|
languages/cpppp-uk.po
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:03+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: uk\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
# RevTran=E-mail
|
17 |
+
msgid "Email"
|
18 |
+
msgstr "Електронна пошта"
|
19 |
+
|
20 |
+
msgid "Subject"
|
21 |
+
msgstr "Суб'єкт"
|
22 |
+
|
23 |
+
msgid "Message"
|
24 |
+
msgstr "Повідомлення"
|
25 |
+
|
26 |
+
# RevTran=Please enter the captcha code verification.
|
27 |
+
msgid "Please enter the captcha verification code."
|
28 |
+
msgstr "Будь ласка, введіть капчу код перевірки."
|
29 |
+
|
30 |
+
# RevTran=Wrong CAPTCHA Code. Please try again.
|
31 |
+
msgid "Incorrect captcha code. Please try again."
|
32 |
+
msgstr "Неправильне CAPTCHA Code. Будь ласка, спробуйте ще раз."
|
33 |
+
|
34 |
+
msgid "Please enter the security code"
|
35 |
+
msgstr "Будь ласка, введіть захисний код"
|
36 |
+
|
37 |
+
# RevTran=Security code
|
38 |
+
msgid "Security Code"
|
39 |
+
msgstr "Код доступу"
|
40 |
+
|
41 |
+
# RevTran=Coupon Code
|
42 |
+
msgid "Coupon code"
|
43 |
+
msgstr "Код купона"
|
44 |
+
|
45 |
+
# RevTran=INVALID LANGUAGE PAIR SPECIFIED. EXAMPLE: LANGPAIR=EN|IT USING 2 LETTER ISO OR RFC3066 LIKE ZH-CN. ALMOST ALL LANGUAGES SUPPORTED BUT SOME MAY HAVE NO CONTENT
|
46 |
+
msgid "This field is required."
|
47 |
+
msgstr "Заповнення даного поля обов'язково."
|
48 |
+
|
49 |
+
# RevTran=Please enter a valid email address
|
50 |
+
msgid "Please enter a valid email address."
|
51 |
+
msgstr "Будь ласка, введіть дійсну адресу"
|
52 |
+
|
53 |
+
# RevTran=Please enter a captcha.
|
54 |
+
msgid "Please enter a valid captcha code."
|
55 |
+
msgstr "Будь ласка, введіть капчу."
|
56 |
+
|
57 |
+
# RevTran=Please enter in this format (mm \\/dd \\/yyyy)
|
58 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
59 |
+
msgstr "Будь ласка, введіть дати в цьому форматі (мм/дд/рррр)"
|
60 |
+
|
61 |
+
# RevTran=Please enter the correct number.
|
62 |
+
msgid "Please enter a valid number."
|
63 |
+
msgstr "Будь ласка, введіть правильний номер."
|
64 |
+
|
65 |
+
# RevTran=Please enter only numbers.
|
66 |
+
msgid "Please enter only digits."
|
67 |
+
msgstr "Будь ласка, введіть тільки цифри."
|
68 |
+
|
69 |
+
# RevTran=Please enter a value that is less than or equal to {0}.
|
70 |
+
msgid "Please enter a value less than or equal to {0}."
|
71 |
+
msgstr "Будь ласка, введіть значення, яке менше або дорівнює {0}."
|
72 |
+
|
73 |
+
msgid "Please enter a value greater than or equal to {0}."
|
74 |
+
msgstr "Будь ласка, введіть значення, більше або рівне {0}."
|
languages/cpppp-vi.mo
ADDED
Binary file
|
languages/cpppp-vi.po
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 19:59+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: vi\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
# RevTran=E-mail
|
17 |
+
msgid "Email"
|
18 |
+
msgstr "Email"
|
19 |
+
|
20 |
+
# RevTran=Topics
|
21 |
+
msgid "Subject"
|
22 |
+
msgstr "Chủ đề"
|
23 |
+
|
24 |
+
# RevTran=Messages
|
25 |
+
msgid "Message"
|
26 |
+
msgstr "Tin nhắn"
|
27 |
+
|
28 |
+
# RevTran=Please enter confirmation code captcha.
|
29 |
+
msgid "Please enter the captcha verification code."
|
30 |
+
msgstr "Vui lòng nhập mã xác nhận mã xác nhận khác."
|
31 |
+
|
32 |
+
# RevTran=Code verification code is incorrect. Please try again.
|
33 |
+
msgid "Incorrect captcha code. Please try again."
|
34 |
+
msgstr "Mã mã xác nhận không chính xác. Vui lòng thử lại."
|
35 |
+
|
36 |
+
msgid "Please enter the security code"
|
37 |
+
msgstr "Vui lòng nhập mã bảo mật"
|
38 |
+
|
39 |
+
# RevTran=Protect
|
40 |
+
msgid "Security Code"
|
41 |
+
msgstr "Mã bảo vệ"
|
42 |
+
|
43 |
+
# RevTran=Coupons
|
44 |
+
msgid "Coupon code"
|
45 |
+
msgstr "Phiếu mua hàng"
|
46 |
+
|
47 |
+
msgid "This field is required."
|
48 |
+
msgstr "Lĩnh vực này là cần thiết."
|
49 |
+
|
50 |
+
# RevTran=Please enter a valid email address
|
51 |
+
msgid "Please enter a valid email address."
|
52 |
+
msgstr "Vui lòng nhập một địa chỉ email hợp lệ"
|
53 |
+
|
54 |
+
# RevTran=Please enter the validation code.
|
55 |
+
msgid "Please enter a valid captcha code."
|
56 |
+
msgstr "Vui lòng nhập mã xác thực hợp lệ."
|
57 |
+
|
58 |
+
# RevTran=Please enter a valid date with the format (mm \\/dd \\/yyyy)
|
59 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
60 |
+
msgstr "Vui lòng nhập một ngày hợp lệ với định dạng này (mm/dd/yyyy)"
|
61 |
+
|
62 |
+
msgid "Please enter a valid number."
|
63 |
+
msgstr "Xin vui lòng nhập một số hợp lệ."
|
64 |
+
|
65 |
+
# RevTran=Just enter digits.
|
66 |
+
msgid "Please enter only digits."
|
67 |
+
msgstr "Chỉ nhập chữ số."
|
68 |
+
|
69 |
+
msgid "Please enter a value less than or equal to {0}."
|
70 |
+
msgstr "Vui lòng nhập một giá trị nhỏ hơn hoặc bằng {0}."
|
71 |
+
|
72 |
+
msgid "Please enter a value greater than or equal to {0}."
|
73 |
+
msgstr "Vui lòng nhập một giá trị lớn hơn hoặc bằng {0}."
|
languages/cpppp-zh_CN.mo
ADDED
Binary file
|
languages/cpppp-zh_CN.po
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 19:59+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: zh_CN\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "电子邮箱"
|
18 |
+
|
19 |
+
# RevTran=The theme
|
20 |
+
msgid "Subject"
|
21 |
+
msgstr "主题"
|
22 |
+
|
23 |
+
msgid "Message"
|
24 |
+
msgstr "留言"
|
25 |
+
|
26 |
+
# RevTran=Please enter the verification code.
|
27 |
+
msgid "Please enter the captcha verification code."
|
28 |
+
msgstr "请输入验证码验证码。"
|
29 |
+
|
30 |
+
# RevTran=Captcha code is incorrect. Please try again.
|
31 |
+
msgid "Incorrect captcha code. Please try again."
|
32 |
+
msgstr "不正确图形验证码。请重试。"
|
33 |
+
|
34 |
+
# RevTran=Please enter the verification code
|
35 |
+
msgid "Please enter the security code"
|
36 |
+
msgstr "请输入验证码"
|
37 |
+
|
38 |
+
# RevTran=CAPTCHA
|
39 |
+
msgid "Security Code"
|
40 |
+
msgstr "验证码"
|
41 |
+
|
42 |
+
msgid "Coupon code"
|
43 |
+
msgstr "优惠券代码"
|
44 |
+
|
45 |
+
# RevTran=This field is required
|
46 |
+
msgid "This field is required."
|
47 |
+
msgstr "此字段必填"
|
48 |
+
|
49 |
+
msgid "Please enter a valid email address."
|
50 |
+
msgstr "请输入一个有效的电子邮件地址。"
|
51 |
+
|
52 |
+
# RevTran=Please enter a valid Captcha code.
|
53 |
+
msgid "Please enter a valid captcha code."
|
54 |
+
msgstr "请输入有效的图形验证码。"
|
55 |
+
|
56 |
+
# RevTran=Please enter a valid date in this format (MM \\/DD \\/YYYY) of
|
57 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
58 |
+
msgstr "请用此格式(MM/DD/YYYY)的有效输入日期"
|
59 |
+
|
60 |
+
msgid "Please enter a valid number."
|
61 |
+
msgstr "请输入一个有效的数字。"
|
62 |
+
|
63 |
+
# RevTran=Please enter only numbers.
|
64 |
+
msgid "Please enter only digits."
|
65 |
+
msgstr "请只输入数字。"
|
66 |
+
|
67 |
+
msgid "Please enter a value less than or equal to {0}."
|
68 |
+
msgstr "请输入一个值小于或等于{0}。"
|
69 |
+
|
70 |
+
# RevTran=Enter a value greater than or equal to {0}.
|
71 |
+
msgid "Please enter a value greater than or equal to {0}."
|
72 |
+
msgstr "请输入值大于或等于{0}。"
|
languages/cpppp-zh_TW.mo
ADDED
Binary file
|
languages/cpppp-zh_TW.po
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: CP Contact Form with PayPal\n"
|
4 |
+
"POT-Creation-Date: 2013-09-01 17:05+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-11-24 20:03+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.6.10\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
|
13 |
+
"Language: zh_TW\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
|
16 |
+
msgid "Email"
|
17 |
+
msgstr "电子邮箱"
|
18 |
+
|
19 |
+
# RevTran=The theme
|
20 |
+
msgid "Subject"
|
21 |
+
msgstr "主题"
|
22 |
+
|
23 |
+
msgid "Message"
|
24 |
+
msgstr "留言"
|
25 |
+
|
26 |
+
# RevTran=Please enter the verification code.
|
27 |
+
msgid "Please enter the captcha verification code."
|
28 |
+
msgstr "请输入验证码验证码。"
|
29 |
+
|
30 |
+
# RevTran=Captcha code is incorrect. Please try again.
|
31 |
+
msgid "Incorrect captcha code. Please try again."
|
32 |
+
msgstr "不正确图形验证码。请重试。"
|
33 |
+
|
34 |
+
# RevTran=Please enter the verification code
|
35 |
+
msgid "Please enter the security code"
|
36 |
+
msgstr "请输入验证码"
|
37 |
+
|
38 |
+
# RevTran=CAPTCHA
|
39 |
+
msgid "Security Code"
|
40 |
+
msgstr "验证码"
|
41 |
+
|
42 |
+
msgid "Coupon code"
|
43 |
+
msgstr "优惠券代码"
|
44 |
+
|
45 |
+
# RevTran=This field is required
|
46 |
+
msgid "This field is required."
|
47 |
+
msgstr "此字段必填"
|
48 |
+
|
49 |
+
msgid "Please enter a valid email address."
|
50 |
+
msgstr "请输入一个有效的电子邮件地址。"
|
51 |
+
|
52 |
+
# RevTran=Please enter a valid Captcha code.
|
53 |
+
msgid "Please enter a valid captcha code."
|
54 |
+
msgstr "请输入有效的图形验证码。"
|
55 |
+
|
56 |
+
# RevTran=Please enter a valid date in this format (MM \\/DD \\/YYYY) of
|
57 |
+
msgid "Please enter a valid date with this format(mm/dd/yyyy)"
|
58 |
+
msgstr "请用此格式(MM/DD/YYYY)的有效输入日期"
|
59 |
+
|
60 |
+
msgid "Please enter a valid number."
|
61 |
+
msgstr "请输入一个有效的数字。"
|
62 |
+
|
63 |
+
# RevTran=Please enter only numbers.
|
64 |
+
msgid "Please enter only digits."
|
65 |
+
msgstr "请只输入数字。"
|
66 |
+
|
67 |
+
msgid "Please enter a value less than or equal to {0}."
|
68 |
+
msgstr "请输入一个值小于或等于{0}。"
|
69 |
+
|
70 |
+
# RevTran=Enter a value greater than or equal to {0}.
|
71 |
+
msgid "Please enter a value greater than or equal to {0}."
|
72 |
+
msgstr "请输入值大于或等于{0}。"
|
templates/01/bg_top.png
ADDED
Binary file
|
templates/01/config.ini
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
prefix="cp_cff_letter"
|
2 |
+
file="style.css"
|
3 |
+
title="Letter"
|
4 |
+
thumbnail="thumbnail.jpg"
|
5 |
+
description="Display your form with a letter design"
|
templates/01/style.css
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.cp_cff_letter{background:url("bg_top.png") 0 0 repeat-x #E4E4E4; border:1px solid #C4C4C4; padding:10px;}
|
2 |
+
.cp_cff_letter #fbuilder{}
|
3 |
+
.cp_cff_letter #fbuilder h1{color:#204a70;}
|
4 |
+
.cp_cff_letter #fbuilder select,
|
5 |
+
.cp_cff_letter #fbuilder textarea,
|
6 |
+
.cp_cff_letter #fbuilder input[type=text],
|
7 |
+
.cp_cff_letter #fbuilder input[type=file]{border-bottom:1px solid #bbb;border-top:1px solid #999;border-left:1px solid #bbb;border-right:1px solid #bbb;padding:5px 0;font-size:14px;-webkit-box-shadow:#fdfdfd 0px 1px 1px;color:#888;}
|
8 |
+
.cp_cff_letter #fbuilder{text-shadow:0px 1px 0px #fff;}
|
9 |
+
.cp_cff_letter #fbuilder legend{background:#FFF; border:1px solid #C4C4C4;}
|
10 |
+
.cp_cff_letter #fbuilder fieldset{border:1px solid #C4C4C4;}
|
11 |
+
.cp_cff_letter #fbuilder .pbSubmit,
|
12 |
+
.cp_cff_letter #fbuilder .pbPrevious,
|
13 |
+
.cp_cff_letter #fbuilder .pbNext{color:#fff;font-size:13px;font-weight:bold;text-shadow:0px 1px 0px #000;background:#3b679e; /* Old browsers */background:-moz-linear-gradient(top, #3b679e 0%, #2b88d9 50%, #207cca 51%, #7db9e8 100%); /* FF3.6+ */background:-webkit-gradient(linear, left top, left bottom, color-stop(0%,#3b679e), color-stop(50%,#2b88d9), color-stop(51%,#207cca), color-stop(100%,#7db9e8)); /* Chrome,Safari4+ */background:-webkit-linear-gradient(top, #3b679e 0%,#2b88d9 50%,#207cca 51%,#7db9e8 100%); /* Chrome10+,Safari5.1+ */background:-o-linear-gradient(top, #3b679e 0%,#2b88d9 50%,#207cca 51%,#7db9e8 100%); /* Opera 11.10+ */background:-ms-linear-gradient(top, #3b679e 0%,#2b88d9 50%,#207cca 51%,#7db9e8 100%); /* IE10+ */background:linear-gradient(to bottom, #3b679e 0%,#2b88d9 50%,#207cca 51%,#7db9e8 100%); /* W3C */filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#3b679e', endColorstr='#7db9e8',GradientType=0 ); /* IE6-9 */-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;}
|
templates/01/thumbnail.jpg
ADDED
Binary file
|
templates/02/config.ini
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
prefix="cp_cff_professional"
|
2 |
+
file="style.css"
|
3 |
+
title="Professional"
|
4 |
+
thumbnail="thumbnail.png"
|
5 |
+
description="Professional design with appearance of mobile device"
|
templates/02/style.css
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.cp_cff_professional{-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;padding:10px;background: #5e513e;
|
2 |
+
background: -moz-linear-gradient(top, #5e513e 0%, #423524 100%);
|
3 |
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#5e513e), color-stop(100%,#423524));
|
4 |
+
background: -webkit-linear-gradient(top, #5e513e 0%,#423524 100%);
|
5 |
+
background: -o-linear-gradient(top, #5e513e 0%,#423524 100%);
|
6 |
+
background: -ms-linear-gradient(top, #5e513e 0%,#423524 100%);
|
7 |
+
background: linear-gradient(to bottom, #5e513e 0%,#423524 100%);
|
8 |
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#5e513e', endColorstr='#423524',GradientType=0 );
|
9 |
+
}
|
10 |
+
.cp_cff_professional #fbuilder{ color:#FFF;text-shadow:0px 1px 0px #000000;font-weight:normal; }
|
11 |
+
.cp_cff_professional #fbuilder .cpefb_error.message{text-shadow:none;color:#000;}
|
12 |
+
.cp_cff_professional #fbuilder .dfield label,
|
13 |
+
.cp_cff_professional #fbuilder .uh{color:#c9c2b7;}
|
14 |
+
.cp_cff_professional #fbuilder select,
|
15 |
+
.cp_cff_professional #fbuilder textarea,
|
16 |
+
.cp_cff_professional #fbuilder input[type=text],
|
17 |
+
.cp_cff_professional #fbuilder input[type=file]{
|
18 |
+
border-bottom:1px solid #776D5D;
|
19 |
+
border-top:1px solid #252118;
|
20 |
+
border-left:1px solid #312C20;
|
21 |
+
border-right:1px solid #312C20;padding:5px;
|
22 |
+
color:#c9c2b7;
|
23 |
+
-webkit-border-radius:10px;
|
24 |
+
-moz-border-radius:10px;
|
25 |
+
border-radius:10px;
|
26 |
+
background: #322c20;
|
27 |
+
background: -moz-linear-gradient(top, #322c20 0%, #3b3425 8%, #483f2e 100%);
|
28 |
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#322c20), color-stop(8%,#3b3425), color-stop(100%,#483f2e));
|
29 |
+
background: -webkit-linear-gradient(top, #322c20 0%,#3b3425 8%,#483f2e 100%);
|
30 |
+
background: -o-linear-gradient(top, #322c20 0%,#3b3425 8%,#483f2e 100%);
|
31 |
+
background: -ms-linear-gradient(top, #322c20 0%,#3b3425 8%,#483f2e 100%);
|
32 |
+
background: linear-gradient(to bottom, #322c20 0%,#3b3425 8%,#483f2e 100%);
|
33 |
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#322c20', endColorstr='#483f2e',GradientType=0 );
|
34 |
+
}
|
35 |
+
.cp_cff_professional #fbuilder .large{
|
36 |
+
width: calc( 100% - 10px ) !important;
|
37 |
+
width: -webkit-calc( 100% - 10px ) !important;
|
38 |
+
width: -moz-calc( 100% - 10px ) !important;
|
39 |
+
}
|
40 |
+
|
41 |
+
.cp_cff_professional #fbuilder fieldset{border:0;}
|
42 |
+
.cp_cff_professional #fbuilder legend{border:0;padding:0;font-size:150%;}
|
43 |
+
|
44 |
+
.cp_cff_professional #fbuilder .pbSubmit,
|
45 |
+
.cp_cff_professional #fbuilder .pbPrevious,
|
46 |
+
.cp_cff_professional #fbuilder .pbNext{color:#fff;font-size:13px;font-weight:bold;text-shadow:0px 1px 0px #000;background: #bfd255;
|
47 |
+
background: -moz-linear-gradient(top, #bfd255 0%, #8eb92a 50%, #72aa00 51%, #9ecb2d 100%);
|
48 |
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#bfd255), color-stop(50%,#8eb92a), color-stop(51%,#72aa00), color-stop(100%,#9ecb2d));
|
49 |
+
background: -webkit-linear-gradient(top, #bfd255 0%,#8eb92a 50%,#72aa00 51%,#9ecb2d 100%);
|
50 |
+
background: -o-linear-gradient(top, #bfd255 0%,#8eb92a 50%,#72aa00 51%,#9ecb2d 100%);
|
51 |
+
background: -ms-linear-gradient(top, #bfd255 0%,#8eb92a 50%,#72aa00 51%,#9ecb2d 100%);
|
52 |
+
background: linear-gradient(to bottom, #bfd255 0%,#8eb92a 50%,#72aa00 51%,#9ecb2d 100%);
|
53 |
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#bfd255', endColorstr='#9ecb2d',GradientType=0 );
|
54 |
+
-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;}
|
templates/02/thumbnail.png
ADDED
Binary file
|
templates/03/config.ini
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
prefix="cp_cff_natural"
|
2 |
+
file="style.css"
|
3 |
+
title="Natural"
|
4 |
+
thumbnail="thumbnail.jpg"
|
5 |
+
description="A design with natural decorations"
|
templates/03/style.css
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.cp_cff_natural{background:url("top_bg.png") 0 0 repeat-x #f3f6ea; padding:10px;}
|
2 |
+
.cp_cff_natural #fbuilder{padding:10px;}
|
3 |
+
.cp_cff_natural #fbuilder h1{color:rgb(255, 255, 255);font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;margin-bottom:0;font-size:200%;font-weight:normal;font-variant:small-caps;}
|
4 |
+
.cp_cff_natural #fbuilder .fform span{font-style:italic;font-family:Georgia, 'Times New Roman', Times, serif;}
|
5 |
+
.cp_cff_natural #fbuilder select,
|
6 |
+
.cp_cff_natural #fbuilder textarea,
|
7 |
+
.cp_cff_natural #fbuilder input[type=text],
|
8 |
+
.cp_cff_natural #fbuilder input[type=file]{border:1px solid rgb(150, 150, 150);padding:5px 0;font-size:14px;background:#FFF;color:#000;}
|
9 |
+
.cp_cff_natural #fbuilder{color:rgb(64, 63, 61);}
|
10 |
+
.cp_cff_natural #fbuilder .uh{color:rgb(112, 140, 0);}
|
11 |
+
|
12 |
+
.cp_cff_natural #fbuilder legend{background:url("top_bg.png"); border:3px solid #FFF;color:#FFF;font-weight:bold;-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;}
|
13 |
+
.cp_cff_natural #fbuilder fieldset{border:0;padding:0;}
|
14 |
+
.cp_cff_natural #fbuilder .pbSubmit,
|
15 |
+
.cp_cff_natural #fbuilder .pbPrevious,
|
16 |
+
.cp_cff_natural #fbuilder .pbNext{color:#fff;font-variant:small-caps;font-size:14px;font-weight:bold;background:url("top_bg.png");-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;}
|
templates/03/thumbnail.jpg
ADDED
Binary file
|
templates/03/top_bg.png
ADDED
Binary file
|
templates/04/config.ini
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
prefix="cp_cff_elegant"
|
2 |
+
file="style.css"
|
3 |
+
title="Elegant"
|
4 |
+
thumbnail="thumbnail.jpg"
|
5 |
+
description="Elegant style with a light appearance"
|
templates/04/style.css
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.cp_cff_elegant{padding:10px;}
|
2 |
+
.cp_cff_elegant #fbuilder{color: rgb(81, 62, 43);font-family: Cambria, Georgia, 'Times New Roman', Times, serif;}
|
3 |
+
.cp_cff_elegant #fbuilder h1{color: rgb(81, 62, 43);font-family:p22-underground, arial, sans-serif;margin-bottom:0;font-size:200%;font-weight:normal;text-align: center;text-transform: uppercase;}
|
4 |
+
.cp_cff_elegant #fbuilder .fields.section_breaks,
|
5 |
+
.cp_cff_elegant #fbuilder .fform span{color:rgb(164, 147, 132);text-align:center;font-variant:small-caps;border-top:1px dotted rgb(164, 147, 132);border-bottom:1px dotted rgb(164, 147, 132);display:block;padding:0;}
|
6 |
+
.cp_cff_elegant #fbuilder .fields .section_break{display:none;}
|
7 |
+
.cp_cff_elegant #fbuilder select,
|
8 |
+
.cp_cff_elegant #fbuilder textarea,
|
9 |
+
.cp_cff_elegant #fbuilder input[type=text],
|
10 |
+
.cp_cff_elegant #fbuilder input[type=file]{border:1px solid rgb(148, 132, 116);padding:5px 0;font-size:14px;background:#FFF;color:rgb(81, 62, 43);-webkit-box-shadow:inset 0px 2px 7px 0px rgba(0, 0, 0, 0.09);-moz-box-shadow:inset 0px 2px 7px 0px rgba(0, 0, 0, 0.09);box-shadow:inset 0px 2px 7px 0px rgba(0, 0, 0, 0.09);}
|
11 |
+
.cp_cff_elegant #fbuilder .uh{color:rgb(164, 147, 132);}
|
12 |
+
|
13 |
+
.cp_cff_elegant #fbuilder legend{color:rgb(164, 147, 132);font-weight:normal;text-align:center;border:0;font-family:p22-underground, arial, sans-serif;}
|
14 |
+
.cp_cff_elegant #fbuilder legend:before,
|
15 |
+
.cp_cff_elegant #fbuilder legend:after{content:"\007E";}
|
16 |
+
|
17 |
+
.cp_cff_elegant #fbuilder fieldset{border:0;padding:0;}
|
18 |
+
.cp_cff_elegant #fbuilder .pbSubmit,
|
19 |
+
.cp_cff_elegant #fbuilder .pbPrevious,
|
20 |
+
.cp_cff_elegant #fbuilder .pbNext{color:#fff;font-variant:small-caps;font-size:14px;font-weight:bold;background:rgb(115, 185, 214);-webkit-border-top-right-radius: 10px;-webkit-border-bottom-left-radius: 10px;-moz-border-radius-topright: 10px;-moz-border-radius-bottomleft: 10px;border-top-right-radius: 10px;border-bottom-left-radius: 10px;}
|
21 |
+
.cp_cff_elegant #fbuilder .r{color:rgb(115, 185, 214);}
|
templates/04/thumbnail.jpg
ADDED
Binary file
|
templates/05/config.ini
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
prefix="cp_cff_decorative"
|
2 |
+
file="style.css"
|
3 |
+
title="Decorative"
|
4 |
+
thumbnail="thumbnail.png"
|
5 |
+
description="Decorative style"
|
templates/05/form_bg.jpg
ADDED
Binary file
|
templates/05/style.css
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.cp_cff_decorative{padding:20px;background:url("form_bg.jpg");-webkit-border-radius: 10px;-moz-border-radius: 10px;border-radius: 10px;-webkit-box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.32);-moz-box-shadow:0px 0px 5px 2px rgba(0, 0, 0, 0.32);box-shadow:0px 0px 5px 2px rgba(0, 0, 0, 0.32);}
|
2 |
+
.cp_cff_decorative #fbuilder{color: rgb(0, 34, 65);font-family: Cambria, Georgia, 'Times New Roman', Times, serif;}
|
3 |
+
.cp_cff_decorative #fbuilder h1{font: bold 43px/58px georgia, 'Times New Roman', Times, serif;color:rgb(0, 34, 65);margin-bottom:0;font-size:200%;font-weight:normal;text-align: center;text-transform: uppercase;letter-spacing:-2px;line-height:26px;margin-top:10px;}
|
4 |
+
.cp_cff_decorative #fbuilder .fields.section_breaks label,
|
5 |
+
.cp_cff_decorative #fbuilder .fform span{text-align:center;font-variant:small-caps;display:block;}
|
6 |
+
.cp_cff_decorative #fbuilder .fields .section_break{display:none;}
|
7 |
+
.cp_cff_decorative #fbuilder select,
|
8 |
+
.cp_cff_decorative #fbuilder textarea,
|
9 |
+
.cp_cff_decorative #fbuilder input[type=text],
|
10 |
+
.cp_cff_decorative #fbuilder input[type=file]{border-bottom: 1px solid rgb(223, 221, 193);border-left:0px;border-right:0px;border-top:0px;padding:5px 0;font-size:14px;background:#FCFAE6;color:rgb(0, 34, 65);}
|
11 |
+
.cp_cff_decorative #fbuilder textarea{border: 1px solid rgb(223, 221, 193);}
|
12 |
+
.cp_cff_decorative #fbuilder .fields:not(.section_breaks) label{font: bold 11px 'century gothic', Arial, Helvetica, sans-serif;text-transform: uppercase;color: rgb(229, 27, 36);}
|
13 |
+
.cp_cff_decorative #fbuilder .fields .dfield label{color: rgb(0, 34, 65);}
|
14 |
+
|
15 |
+
.cp_cff_decorative #fbuilder legend{font-weight:normal;text-align:center;border:0;}
|
16 |
+
|
17 |
+
.cp_cff_decorative #fbuilder fieldset{border:0;padding:0;}
|
18 |
+
.cp_cff_decorative #fbuilder .pbSubmit,
|
19 |
+
.cp_cff_decorative #fbuilder .pbPrevious,
|
20 |
+
.cp_cff_decorative #fbuilder .pbNext{color:#fff;font-family: 'century gothic', Arial, Helvetica, sans-serif;text-transform:uppercase;font-size:14px;font-weight:bold;background: #cc3333;background:-moz-linear-gradient(top, #cc3333 11%, #8c0000 77%, #8c0000 100%);background: -webkit-gradient(linear, left top, left bottom, color-stop(11%,#cc3333), color-stop(77%,#8c0000), color-stop(100%,#8c0000));background: -webkit-linear-gradient(top, #cc3333 11%,#8c0000 77%,#8c0000 100%);background: -o-linear-gradient(top, #cc3333 11%,#8c0000 77%,#8c0000 100%);background: -ms-linear-gradient(top, #cc3333 11%,#8c0000 77%,#8c0000 100%);background: linear-gradient(to bottom, #cc3333 11%,#8c0000 77%,#8c0000 100%);filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cc3333', endColorstr='#8c0000',GradientType=0 );border:2px solid #FCFAE6;-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;-webkit-box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.32);-moz-box-shadow:0px 0px 5px 2px rgba(0, 0, 0, 0.32);box-shadow:0px 0px 5px 2px rgba(0, 0, 0, 0.32);}
|
21 |
+
.cp_cff_decorative #fbuilder .r{color:rgb(0,0,0);}
|
22 |
+
.cp_cff_decorative #fbuilder .r:before{content:" (";}
|
23 |
+
.cp_cff_decorative #fbuilder .r:after{content:")";}
|
templates/05/thumbnail.png
ADDED
Binary file
|
templates/06/config.ini
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
prefix="cp_cff_clean"
|
2 |
+
file="style.css"
|
3 |
+
title="Clean Design"
|
4 |
+
thumbnail="thumbnail.jpg"
|
5 |
+
description="Clean style for forms"
|
templates/06/style.css
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.cp_cff_clean #fbuilder{color:#384248;font-family: "MuseoSans-100" "Lucida Grande","Lucida Sans Unicode",Verdana,"Jamrul",sans-serif;text-shadow:0px 1px 0px #fff;}
|
2 |
+
.cp_cff_clean #fbuilder .fields.section_breaks label,
|
3 |
+
.cp_cff_clean #fbuilder .fform span,
|
4 |
+
.cp_cff_clean #fbuilder .uh{color:#0093DA;}
|
5 |
+
|
6 |
+
.cp_cff_clean #fbuilder select,
|
7 |
+
.cp_cff_clean #fbuilder textarea,
|
8 |
+
.cp_cff_clean #fbuilder input[type=text],
|
9 |
+
.cp_cff_clean #fbuilder input[type=file]{
|
10 |
+
border: solid 1px #D7D9DA;
|
11 |
+
background:#FFF;
|
12 |
+
padding-left:5px;
|
13 |
+
padding-right:5px;
|
14 |
+
}
|
15 |
+
.cp_cff_clean #fbuilder .large{
|
16 |
+
width: calc( 100% - 10px ) !important;
|
17 |
+
width: -webkit-calc( 100% - 10px ) !important;
|
18 |
+
width: -moz-calc( 100% - 10px ) !important;
|
19 |
+
}
|
20 |
+
|
21 |
+
.cp_cff_clean #fbuilder .captcha,
|
22 |
+
.cp_cff_clean #fbuilder .fields:not(.section_breaks){padding: 10px;margin-bottom:10px;background:#EBECEC;-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;}
|
23 |
+
.cp_cff_clean #fbuilder fieldset,
|
24 |
+
.cp_cff_clean #fbuilder legend{-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;border-color:#EBECEC;}
|
25 |
+
.cp_cff_clean #fbuilder legend{background: #EBECEC;border:0;}
|
26 |
+
|
27 |
+
@media screen and (min-width: 740px){
|
28 |
+
.cp_cff_clean #fbuilder .fields.column2{float:left;width:calc( 49.9% - 20px );width:-webkit-calc( 49.9% - 20px );width:-moz-calc( 49.9% - 20px );}
|
29 |
+
.cp_cff_clean #fbuilder .fields.column3{float:left;width:calc( 33.3% - 20px );width:-webkit-calc( 33.3% - 20px );width:-moz-calc( 33.3% - 20px );}
|
30 |
+
.cp_cff_clean #fbuilder .fields.column4{float:left;width:calc( 24.9% - 20px );width:-webkit-calc( 24.9% - 20px );width:-moz-calc( 24.9% - 20px );}
|
31 |
+
}
|
32 |
+
|
33 |
+
.cp_cff_clean #fbuilder .pbSubmit,
|
34 |
+
.cp_cff_clean #fbuilder .pbPrevious,
|
35 |
+
.cp_cff_clean #fbuilder .pbNext{color:#fff;font-size:14px;background: #0093DA;-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;margin:0 10px 0 0;}
|
36 |
+
.cp_cff_clean #fbuilder .r{color:rgb(255,0,0);}
|
templates/06/thumbnail.jpg
ADDED
Binary file
|