Changeset 1493451
- Timestamp:
- 09/09/2016 07:51:18 PM (10 years ago)
- Location:
- sepa-girocode/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (4 diffs)
-
sepa-girocode.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sepa-girocode/trunk/readme.txt
r1489696 r1493451 30 30 For [girocode]: 31 31 * iban: International Bank Account Number of the beneficiary 32 * bic: Bank Identifier Code , facultative for participants of the European Economic Area32 * bic: Bank Identifier Code 33 33 * beneficiary: Name of the beneficiary 34 34 * amount: Amount of money to transfer in EUR … … 42 42 43 43 For [girocode-generator]: 44 There are currently now parameters available. 44 * demo: with demo="1" the form will be populated with example values, containing a donation for the German Red Coss 45 45 46 46 = Come on, show me an example ... = … … 48 48 OK, let's donate 5 EUR for the German Red Cross: 49 49 [girocode iban="DE63370205000005023307" beneficiary="German Red Cross" amount="5" purpose="Donation"] 50 51 Display generator form in demo mode: 52 [girocode-generator demo="1"] 50 53 51 54 = Which apps do support Girocode? = … … 61 64 62 65 == Changelog == 66 = 0.5.1 (2016-09-09) = 67 * Added girocode-generator demo mode 68 63 69 = 0.5 (2016-09-04) = 64 70 * Added girocode-generator form -
sepa-girocode/trunk/sepa-girocode.php
r1489651 r1493451 9 9 Plugin URI: http://www.halli-online.de/sepa-girocode/ 10 10 Description: Create EPC-Codes (in Germany known as Girocode) for money transfer | Girocode-Barcode für SEPA-Überweisungen erstellen 11 Version: 0.5 11 Version: 0.5.1 12 12 Author: Michael Hallmann 13 13 Author URI: http://www.halli-online.de/ … … 363 363 364 364 $output = ""; 365 366 // Demo-Modus? 367 $demo = 0; 368 $std_beneficiary = ""; 369 $std_iban = ""; 370 $std_bic = ""; 371 $std_amount = ""; 372 $std_purpose = ""; 373 374 if (is_array($atts) && array_key_exists("demo", $atts) && $atts["demo"] == 1) { 375 $std_beneficiary = "Deutsches Rotes Kreuz"; 376 $std_iban = "DE63370205000005023307"; 377 $std_bic = "BFSWDE33XXX"; 378 $std_amount = "20"; 379 $std_purpose = "Spende"; 380 } 381 382 383 365 384 366 385 if ( isset( $_POST['gcf-submitted'] ) ) { … … 400 419 $output .= '<p>'; 401 420 $output .= 'Zahlungsempfänger*<br />'; 402 $output .= '<input type="text" name="gcf-beneficiary" title="nur Buchstaben, Zahlen, Leerzeichen und die Zeichen :?,-(+.)/ sind erlaubt, max. 70 Zeichen" minlength="2" maxlenth="70" pattern="[a-zA-Z0-9 :?,-(+.)/]+" value="' . ( isset( $_POST["gcf-beneficiary"] ) ? esc_attr( $_POST["gcf-beneficiary"] ) : 'Deutsches Rotes Kreuz') . '" size="40" required />';421 $output .= '<input type="text" name="gcf-beneficiary" title="nur Buchstaben, Zahlen, Leerzeichen und die Zeichen :?,-(+.)/ sind erlaubt, max. 70 Zeichen" minlength="2" maxlenth="70" pattern="[a-zA-Z0-9 :?,-(+.)/]+" value="' . ( isset( $_POST["gcf-beneficiary"] ) ? esc_attr( $_POST["gcf-beneficiary"] ) : $std_beneficiary ) . '" size="40" required />'; 403 422 $output .= '</p>'; 404 423 405 424 $output .= '<p>'; 406 425 $output .= 'IBAN* <br />'; 407 $output .= '<input type="text" name="gcf-iban" minlength="15" maxlength="31" title="nur Buchstaben und Zahlen erlaubt" pattern="[a-zA-Z0-9]+" value="' . ( isset( $_POST["gcf-iban"] ) ? esc_attr( $_POST["gcf-iban"] ) : 'DE63370205000005023307') . '" size="40" required/>';426 $output .= '<input type="text" name="gcf-iban" minlength="15" maxlength="31" title="nur Buchstaben und Zahlen erlaubt" pattern="[a-zA-Z0-9]+" value="' . ( isset( $_POST["gcf-iban"] ) ? esc_attr( $_POST["gcf-iban"] ) : $std_iban ) . '" size="40" required/>'; 408 427 $output .= '</p>'; 409 428 410 429 $output .= '<p>'; 411 430 $output .= 'BIC* <br />'; 412 $output .= '<input type="text" name="gcf-bic" minlength="8" maxlength="11" title="nur Buchstaben und Zahlen erlaubt, min. 8, max. 11 Stellen" pattern="[a-zA-Z0-9]+" value="' . ( isset( $_POST["gcf-bic"] ) ? esc_attr( $_POST["gcf-bic"] ) : 'BFSWDE33XXX') . '" size="40" required />';431 $output .= '<input type="text" name="gcf-bic" minlength="8" maxlength="11" title="nur Buchstaben und Zahlen erlaubt, min. 8, max. 11 Stellen" pattern="[a-zA-Z0-9]+" value="' . ( isset( $_POST["gcf-bic"] ) ? esc_attr( $_POST["gcf-bic"] ) : $std_bic ) . '" size="40" required />'; 413 432 $output .= '</p>'; 414 433 415 434 $output .= '<p>'; 416 435 $output .= 'Betrag in EUR* <br />'; 417 $output .= '<input type="number" name="gcf-amount" min="0" max="999999999" step="1" value="' . ( isset( $_POST["gcf-amount"] ) ? esc_attr( $_POST["gcf-amount"] ) : '20') . '" size="40" />';436 $output .= '<input type="number" name="gcf-amount" min="0" max="999999999" step="1" value="' . ( isset( $_POST["gcf-amount"] ) ? esc_attr( $_POST["gcf-amount"] ) : $std_amount ) . '" size="40" />'; 418 437 $output .= '</p>'; 419 438 420 439 $output .= '<p>'; 421 440 $output .= 'Verwendungszweck*<br />'; 422 $output .= '<input type="text" name="gcf-purpose" title="nur Buchstaben, Zahlen, Leerzeichen und die Zeichen :?,-(+.)/ sind erlaubt, max. 140 Zeichen" maxlength="140" pattern="[a-zA-Z0-9 :?,-(+.)/]+" value="' . ( isset( $_POST["gcf-purpose"] ) ? esc_attr( $_POST["gcf-purpose"] ) : 'Spende') . '" size="40" required />';441 $output .= '<input type="text" name="gcf-purpose" title="nur Buchstaben, Zahlen, Leerzeichen und die Zeichen :?,-(+.)/ sind erlaubt, max. 140 Zeichen" maxlength="140" pattern="[a-zA-Z0-9 :?,-(+.)/]+" value="' . ( isset( $_POST["gcf-purpose"] ) ? esc_attr( $_POST["gcf-purpose"] ) : $std_purpose ) . '" size="40" required />'; 423 442 $output .= '</p>'; 424 443
Note: See TracChangeset
for help on using the changeset viewer.