forked from SecareLupus/fc_pos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsalesbox.inc
110 lines (100 loc) · 4.85 KB
/
salesbox.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php
/**
* @file salesbox.inc
* @brief salesbox.inc prints the quicksale boxes in the register.php page
*
* It uses functions that were included in register.php
*
* This file uses, but does not include:
* funcs.inc:
* - selectMember()
*
* giftcert.inc:
* - GiftCert::displaySelectForm()
* - GiftCert::displayForm()
*
* credits.inc:
* - CreditSpending::displayCheckBoxes()
*
* @link http://www.worldsapartgames.org/fc/register.php @endlink
*
* @author Michael Whitehouse
* @author Creidieki Crouch
* @author Desmond Duval
* @copyright 2009-2014 Pioneer Valley Gaming Collective
* @version 1.8d
* @since Project has existed since time immemorial.
*/
echo "<hr>
<table><tr><td valign=top rowspan=2>";
echo "<button name='submit' value='submit'>Update Order</button>
<button name='close' value='1'>Conclude Order</button><p>";
echo "Member: ";
selectMember('member', $member);
echo "<br>Discount: <input type='text' name='discount' value='$discount' maxlength=9 size=4>%<br>
Payment Type:
<select name='pay'>\n";
// sets to account if a pickup is being made.
$payment = ($specOrder->pickUp == true) ? 4 : $_POST['pay'];
echo "<option value=0>Select Payment Type</option>\n";
echo ($payment == 1) ? "<option value=1 selected>Cash</option>\n" : "<option value=1>Cash</option>\n";
echo ($payment == 2) ? "<option value=2 selected>Credit Card</option>\n" : "<option value=2>Credit Card</option>\n";
echo ($payment == 3) ? "<option value=3 selected>Check</option>\n" : "<option value=3>Check</option>\n";
echo ($payment == 4) ? "<option value=4 selected>Account</option>\n" : "<option value=4>Account</option>\n";
echo ($payment == 5) ? "<option value=5 selected>Gift Certificate</option>\n" : "<option value=5>Gift Certificate</option>\n";
echo ($payment == 6) ? "<option value=6 selected>Mixed Payment</option>\n" : "<option value=6>Mixed Payment</option>\n";
echo "</select><p>";
if ($payment == 5) {
$giftCert->displaySelectForm();
}
echo "Enter skus in this box: <a href='help/register.htm#skus' target='help'>(?)</a><br>
<textarea cols=20 rows=7 name='sku'></textarea></td>
<td valign=top align=right width=220 rowspan=2>$0.25 snacks <input type='text' name='specqty[731]' maxlength=4 size=4><br>
$0.50 snacks <input type='text' name='specqty[732]' maxlength=4 size=4><br>
$0.75 snacks <input type='text' name='specqty[733]' maxlength=4 size=4><br>
$1.00 snacks <input type='text' name='specqty[734]' maxlength=4 size=4><br>
$1.25 snacks <input type='text' name='specqty[1655]' maxlength=4 size=4><br>
Water <input type='text' name='specqty[1035]' maxlength=4 size=4><br>
Polar $1.50 <input type='text' name='specqty[1031]' maxlength=4 size=4><br>
Izze $2.00 <input type='text' name='specqty[1033]' maxlength=4 size=4><br>
Nantucket$2 <input type='text' name='specqty[1030]' maxlength=4 size=4><br>
Energy $2.50 <input type='text' name='specqty[1034]' maxlength=4 size=4><br>
Snack Card <input type='text' name='specqty[784]' maxlength=4 size=4><p>
</td><td valign=top align=right width=220>
50 Di(c)e <input type='text' name='specqty[741]' maxlength=4 size=4><br>
75 Di(c)e <input type='text' name='specqty[735]' maxlength=4 size=4><br>
1.00 Di(c)e <input type='text' name='specqty[736]' maxlength=4 size=4><br>
1.25 Di(c)e <input type='text' name='specqty[1157]' maxlength=4 size=4><p>
Draft: <input type='text' name='specqty[780]' maxlength=4 size=4><p>
Draft Card: <input type='text' name='specqty[1158]' maxlength=4 size=4><br>
Draft Punch: <input type=text' name='specqty[1159]' maxlength=4 size=4><p>
Magic League: <input type='text' name='specqty[1160]' maxlength=4 size=4><p>
Copies/Char Sheets <input type='text' name='specqty[1161]' maxlength=4 size=4><p>
Sign Donation: \$<input type='text' name='specqty[1162]' maxlength=6 size 6><p>
</td>";
// this will wipe out existing data, so we only want to show it if there is not already singles data
if (!isset($_POST['qty'][778])) {
echo '<td valign=top align=left width=350 style="padding-left:15px">
Total price of all<br>Magic Singles:<br>
$<input type="text" name="price[778]" maxlength=8 size=8><br>
Common - $0.25ea<br>
Uncommon - $0.50ea<br>
Rare - $1.00+ea, Click Below!<br>
<a href="http://magic.tcgplayer.com/all_magic_sets.asp" target="_BLANK">TCGPlayer Values</a><br>
<br>
Case Cards: As Marked<br>
Bulk Foils: $0.50ea<br>
Bulk Box:<br>1/$1.00, 10/$7.00, 20/$10.00<br>
</td>';
}
echo"</tr>";
// display gift cert selling
echo "<tr><td colspan=2 align=right>\n";
$giftCert->displayForm();
echo "</td>";
// spend credits
if ($_POST['member'] > 0) {
$creditSpending->displayCheckBoxes();
}
echo"</table><br>";
?>