Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
square_admin_notification - simplify br tag syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
drbyte committed Mar 12, 2024
1 parent 3d13312 commit 6dcc935
Showing 1 changed file with 20 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
* Square payments module
* www.squareup.com
*
* @package square
* @copyright Copyright 2003-2020 Zen Cart Development Team
* @copyright Copyright 2003-2022 Zen Cart Development Team
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: Author: Chris Brown <[email protected]> Modified in v1.5.7 $
* @version $Id: DrByte 2020 Dec 25 Modified in v1.5.8-alpha $
*/

$outputStartBlock = '';
Expand Down Expand Up @@ -87,42 +86,42 @@
if (method_exists($this, '_doRefund')) {
$outputRefund .= '<td><table class="noprint">' . "\n";
$outputRefund .= '<tr style="background-color : #dddddd; border: 1px solid black;">' . "\n";
$outputRefund .= '<td class="main">' . MODULE_PAYMENT_SQUARE_ENTRY_REFUND_TITLE . '<br />' . "\n";
$outputRefund .= '<td class="main">' . MODULE_PAYMENT_SQUARE_ENTRY_REFUND_TITLE . '<br>' . "\n";
$outputRefund .= zen_draw_form('squarerefund', FILENAME_ORDERS, zen_get_all_get_params(array('action')) . 'action=doRefund', 'post', '', true) . zen_hide_session_id();;
$outputRefund .= MODULE_PAYMENT_SQUARE_ENTRY_REFUND . '<br />';
$outputRefund .= MODULE_PAYMENT_SQUARE_ENTRY_REFUND_AMOUNT_TEXT . ' ' . zen_draw_input_field('refamt', '', 'length="10" placeholder="amount"') . '<br />';
$outputRefund .= MODULE_PAYMENT_SQUARE_TEXT_REFUND_CONFIRM_CHECK . zen_draw_checkbox_field('refconfirm', '', false) . '<br />';
$outputRefund .= '<br />' . MODULE_PAYMENT_SQUARE_ENTRY_REFUND_TEXT_COMMENTS . '<br />' . zen_draw_textarea_field('refnote', 'soft', '50', '3', MODULE_PAYMENT_SQUARE_ENTRY_REFUND_DEFAULT_MESSAGE);
$outputRefund .= '<br />' . MODULE_PAYMENT_SQUARE_ENTRY_REFUND_SUFFIX;
$outputRefund .= '<br /><input type="submit" name="buttonrefund" value="' . MODULE_PAYMENT_SQUARE_ENTRY_REFUND_BUTTON_TEXT . '" title="' . MODULE_PAYMENT_SQUARE_ENTRY_REFUND_BUTTON_TEXT . '" />';
$outputRefund .= MODULE_PAYMENT_SQUARE_ENTRY_REFUND . '<br>';
$outputRefund .= MODULE_PAYMENT_SQUARE_ENTRY_REFUND_AMOUNT_TEXT . ' ' . zen_draw_input_field('refamt', '', 'length="10" placeholder="amount"') . '<br>';
$outputRefund .= MODULE_PAYMENT_SQUARE_TEXT_REFUND_CONFIRM_CHECK . zen_draw_checkbox_field('refconfirm', '', false) . '<br>';
$outputRefund .= '<br>' . MODULE_PAYMENT_SQUARE_ENTRY_REFUND_TEXT_COMMENTS . '<br>' . zen_draw_textarea_field('refnote', 'soft', '50', '3', MODULE_PAYMENT_SQUARE_ENTRY_REFUND_DEFAULT_MESSAGE);
$outputRefund .= '<br>' . MODULE_PAYMENT_SQUARE_ENTRY_REFUND_SUFFIX;
$outputRefund .= '<br><input type="submit" name="buttonrefund" value="' . MODULE_PAYMENT_SQUARE_ENTRY_REFUND_BUTTON_TEXT . '" title="' . MODULE_PAYMENT_SQUARE_ENTRY_REFUND_BUTTON_TEXT . '">';
$outputRefund .= '</form>';
$outputRefund .= '</td></tr></table></td>' . "\n";
}

if (method_exists($this, '_doCapt')) {
$outputCapt .= '<td valign="top"><table class="noprint">' . "\n";
$outputCapt .= '<tr style="background-color : #dddddd; border: 1px solid black;">' . "\n";
$outputCapt .= '<td class="main">' . MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_TITLE . '<br />' . "\n";
$outputCapt .= '<td class="main">' . MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_TITLE . '<br>' . "\n";
$outputCapt .= zen_draw_form('squarecapture', FILENAME_ORDERS, zen_get_all_get_params(array('action')) . 'action=doCapture', 'post', '', true) . zen_hide_session_id();
$outputCapt .= MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE . '<br />';
$outputCapt .= MODULE_PAYMENT_SQUARE_TEXT_CAPTURE_CONFIRM_CHECK . zen_draw_checkbox_field('captconfirm', '', false) . '<br />';
$outputCapt .= '<br />' . MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_TEXT_COMMENTS . '<br />' . zen_draw_textarea_field('captnote', 'soft', '50', '2', MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_DEFAULT_MESSAGE);
$outputCapt .= '<br />' . MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_SUFFIX;
$outputCapt .= '<br /><input type="submit" name="btndocapture" value="' . MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_BUTTON_TEXT . '" title="' . MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_BUTTON_TEXT . '" />';
$outputCapt .= MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE . '<br>';
$outputCapt .= MODULE_PAYMENT_SQUARE_TEXT_CAPTURE_CONFIRM_CHECK . zen_draw_checkbox_field('captconfirm', '', false) . '<br>';
$outputCapt .= '<br>' . MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_TEXT_COMMENTS . '<br>' . zen_draw_textarea_field('captnote', 'soft', '50', '2', MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_DEFAULT_MESSAGE);
$outputCapt .= '<br>' . MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_SUFFIX;
$outputCapt .= '<br><input type="submit" name="btndocapture" value="' . MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_BUTTON_TEXT . '" title="' . MODULE_PAYMENT_SQUARE_ENTRY_CAPTURE_BUTTON_TEXT . '">';
$outputCapt .= '</form>';
$outputCapt .= '</td></tr></table></td>' . "\n";
}

if (method_exists($this, '_doVoid')) {
$outputVoid .= '<td valign="top"><table class="noprint">' . "\n";
$outputVoid .= '<tr style="background-color : #dddddd; border: 1px solid black;">' . "\n";
$outputVoid .= '<td class="main">' . MODULE_PAYMENT_SQUARE_ENTRY_VOID_TITLE . '<br />' . "\n";
$outputVoid .= '<td class="main">' . MODULE_PAYMENT_SQUARE_ENTRY_VOID_TITLE . '<br>' . "\n";
$outputVoid .= zen_draw_form('squarevoid', FILENAME_ORDERS, zen_get_all_get_params(array('action')) . 'action=doVoid', 'post', '', true) . zen_hide_session_id();
$outputVoid .= MODULE_PAYMENT_SQUARE_ENTRY_VOID;
$outputVoid .= '<br />' . MODULE_PAYMENT_SQUARE_TEXT_VOID_CONFIRM_CHECK . zen_draw_checkbox_field('voidconfirm', '', false);
$outputVoid .= '<br /><br />' . MODULE_PAYMENT_SQUARE_ENTRY_VOID_TEXT_COMMENTS . '<br />' . zen_draw_textarea_field('voidnote', 'soft', '50', '3', MODULE_PAYMENT_SQUARE_ENTRY_VOID_DEFAULT_MESSAGE);
$outputVoid .= '<br />' . MODULE_PAYMENT_SQUARE_ENTRY_VOID_SUFFIX;
$outputVoid .= '<br /><input type="submit" name="ordervoid" value="' . MODULE_PAYMENT_SQUARE_ENTRY_VOID_BUTTON_TEXT . '" title="' . MODULE_PAYMENT_SQUARE_ENTRY_VOID_BUTTON_TEXT . '" />';
$outputVoid .= '<br>' . MODULE_PAYMENT_SQUARE_TEXT_VOID_CONFIRM_CHECK . zen_draw_checkbox_field('voidconfirm', '', false);
$outputVoid .= '<br><br>' . MODULE_PAYMENT_SQUARE_ENTRY_VOID_TEXT_COMMENTS . '<br>' . zen_draw_textarea_field('voidnote', 'soft', '50', '3', MODULE_PAYMENT_SQUARE_ENTRY_VOID_DEFAULT_MESSAGE);
$outputVoid .= '<br>' . MODULE_PAYMENT_SQUARE_ENTRY_VOID_SUFFIX;
$outputVoid .= '<br><input type="submit" name="ordervoid" value="' . MODULE_PAYMENT_SQUARE_ENTRY_VOID_BUTTON_TEXT . '" title="' . MODULE_PAYMENT_SQUARE_ENTRY_VOID_BUTTON_TEXT . '">';
$outputVoid .= '</form>';
$outputVoid .= '</td></tr></table></td>' . "\n";
}
Expand Down

0 comments on commit 6dcc935

Please sign in to comment.