Skip to content

Commit

Permalink
Apply fixes from StyleCI (#2685)
Browse files Browse the repository at this point in the history
  • Loading branch information
DawoudIO authored Jul 3, 2017
1 parent b326977 commit e8393a6
Show file tree
Hide file tree
Showing 5 changed files with 185 additions and 185 deletions.
28 changes: 14 additions & 14 deletions src/AutoPaymentEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -708,10 +708,10 @@ function CreatePaymentMethod() {
$.ajax({
type: "POST",
url: "<?php if ($VancoTest) {
echo 'https://www.vancodev.com/cgi-bin/wsnvptest.vps';
} else {
echo 'https://www.vancoservices.com/cgi-bin/wsnvp.vps';
} ?>",
echo 'https://www.vancodev.com/cgi-bin/wsnvptest.vps';
} else {
echo 'https://www.vancoservices.com/cgi-bin/wsnvp.vps';
} ?>",
data: {
"sessionid": "<?= $sessionid ?>",
"nvpvar": "<?= $nvpvarcontent ?>",
Expand Down Expand Up @@ -790,10 +790,10 @@ function CreatePaymentMethod() {
<input type="submit" class="btn" value="<?= gettext('Save') ?>" name="Submit">
<input type="button" class="btn" value="<?= gettext('Cancel') ?>" name="Cancel"
onclick="javascript:document.location='<?php if (strlen($linkBack) > 0) {
echo $linkBack;
} else {
echo 'Menu.php';
} ?>';">
echo $linkBack;
} else {
echo 'Menu.php';
} ?>';">
</td>
</tr>

Expand Down Expand Up @@ -828,16 +828,16 @@ function CreatePaymentMethod() {
<td class="LabelColumn"><?= gettext('Automatic payment type') ?></td>
<td class="TextColumn"><input type="radio" Name="EnableButton" value="1"
id="EnableBankDraft"<?php if ($bEnableBankDraft) {
echo ' checked';
} ?>><?= _("Bank Draft ") ?>
echo ' checked';
} ?>><?= _("Bank Draft ") ?>
<input type="radio" Name="EnableButton" value="2"
id="EnableCreditCard" <?php if ($bEnableCreditCard) {
echo ' checked';
} ?>><?= _("Credit Card ") ?>
echo ' checked';
} ?>><?= _("Credit Card ") ?>
<input type="radio" Name="EnableButton" value="3"
id="Disable" <?php if ((!$bEnableBankDraft) && (!$bEnableCreditCard)) {
echo ' checked';
} ?>><?= _("Disable ") ?></td>
echo ' checked';
} ?>><?= _("Disable ") ?></td>
</tr>

<tr>
Expand Down
56 changes: 28 additions & 28 deletions src/CartView.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,36 +230,36 @@ function codename() {
<?php
LabelGroupSelect('groupbymode');

echo ' <tr><td>' . gettext('Bulk Mail Presort') . '</td>';
echo ' <td>';
echo ' <input name="bulkmailpresort" type="checkbox" onclick="codename()"';
echo ' id="BulkMailPresort" value="1" ';
if (array_key_exists('buildmailpresort', $_COOKIE) && $_COOKIE['bulkmailpresort']) {
echo 'checked';
}
echo ' ><br></td></tr>';

echo ' <tr><td>' . gettext('Quiet Presort') . '</td>';
echo ' <td>';
echo ' <input ';
if (array_key_exists('buildmailpresort', $_COOKIE) && !$_COOKIE['bulkmailpresort']) {
echo 'disabled ';
} // This would be better with $_SESSION variable
echo ' <tr><td>' . gettext('Bulk Mail Presort') . '</td>';
echo ' <td>';
echo ' <input name="bulkmailpresort" type="checkbox" onclick="codename()"';
echo ' id="BulkMailPresort" value="1" ';
if (array_key_exists('buildmailpresort', $_COOKIE) && $_COOKIE['bulkmailpresort']) {
echo 'checked';
}
echo ' ><br></td></tr>';

echo ' <tr><td>' . gettext('Quiet Presort') . '</td>';
echo ' <td>';
echo ' <input ';
if (array_key_exists('buildmailpresort', $_COOKIE) && !$_COOKIE['bulkmailpresort']) {
echo 'disabled ';
} // This would be better with $_SESSION variable
// instead of cookie ... (save $_SESSION in MySQL)
echo 'name="bulkmailquiet" type="checkbox" onclick="codename()"';
echo ' id="QuietBulkMail" value="1" ';
if (array_key_exists('bulkmailquiet', $_COOKIE) && $_COOKIE['bulkmailquiet'] && array_key_exists('buildmailpresort', $_COOKIE) && $_COOKIE['bulkmailpresort']) {
echo 'checked';
}
echo ' ><br></td></tr>';

ToParentsOfCheckBox('toparents');
LabelSelect('labeltype');
FontSelect('labelfont');
FontSizeSelect('labelfontsize');
StartRowStartColumn();
IgnoreIncompleteAddresses();
LabelFileType(); ?>
echo ' id="QuietBulkMail" value="1" ';
if (array_key_exists('bulkmailquiet', $_COOKIE) && $_COOKIE['bulkmailquiet'] && array_key_exists('buildmailpresort', $_COOKIE) && $_COOKIE['bulkmailpresort']) {
echo 'checked';
}
echo ' ><br></td></tr>';

ToParentsOfCheckBox('toparents');
LabelSelect('labeltype');
FontSelect('labelfont');
FontSizeSelect('labelfontsize');
StartRowStartColumn();
IgnoreIncompleteAddresses();
LabelFileType(); ?>

<tr>
<td></td>
Expand Down
Loading

0 comments on commit e8393a6

Please sign in to comment.