Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnLetter3.php |
— | — | @@ -59,6 +59,20 @@ |
60 | 60 | $form .= $this->generateBillingContainer(); |
61 | 61 | return $form; |
62 | 62 | } |
| 63 | + |
| 64 | + function generateFormSubmit() { |
| 65 | + // submit button |
| 66 | + $form = Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-form-submit' ) ); |
| 67 | + $form .= Xml::openElement( 'div', array( 'id' => 'mw-donate-submit-button' ) ); |
| 68 | + // $form .= Xml::submitButton( wfMsg( 'payflowpro_gateway-submit-button' )); |
| 69 | + $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'payflowpro_gateway-cc-button' ), 'onclick' => 'submit_form( this )', 'type' => 'submit' ) ); |
| 70 | + $form .= Xml::closeElement( 'div' ); // close div#mw-donate-submit-button |
| 71 | + $form .= Xml::openElement( 'div', array( 'class' => 'mw-donate-submessage', 'id' => 'payflowpro_gateway-donate-submessage' ) ) . |
| 72 | + Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/padlock.gif", 'style' => 'vertical-align:baseline;margin-right:4px;' ) ) . wfMsg( 'payflowpro_gateway-donate-click' ); |
| 73 | + $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-submessage |
| 74 | + $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-form-submit |
| 75 | + return $form; |
| 76 | + } |
63 | 77 | |
64 | 78 | public function generateFormEnd() { |
65 | 79 | $form = ''; |
— | — | @@ -106,7 +120,17 @@ |
107 | 121 | $form .= '</tr>'; |
108 | 122 | |
109 | 123 | // name |
110 | | - $form .= $this->getNameField(); |
| 124 | + $form .= '<tr>'; |
| 125 | + $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['fname'] . '</span></td>'; |
| 126 | + $form .= '</tr>'; |
| 127 | + $form .= '<tr>'; |
| 128 | + $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['lname'] . '</span></td>'; |
| 129 | + $form .= '</tr>'; |
| 130 | + $form .= '<tr>'; |
| 131 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-name-on-card' ), 'fname' ) . '</td>'; |
| 132 | + $form .= '<td>' . Xml::input( 'fname', '30', $this->form_data['fname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-first' ).'\' )', 'maxlength' => '25', 'class' => 'required', 'id' => 'fname' ) ) . |
| 133 | + Xml::input( 'lname', '30', $this->form_data['lname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-last' ).'\' )', 'maxlength' => '25', 'id' => 'lname' ) ) . '</td>'; |
| 134 | + $form .= "</tr>"; |
111 | 135 | |
112 | 136 | // email |
113 | 137 | $form .= $this->getEmailField(); |