git://git.iain.cx/iain
/
readifood.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into uat
[readifood.git]
/
lib
/
order.php
diff --git
a/lib/order.php
b/lib/order.php
index
7c68455
..
6c75211
100644
(file)
--- a/
lib/order.php
+++ b/
lib/order.php
@@
-111,9
+111,9
@@
echo "<p>Restrict to order states:\n";
for ($i = 0; $i < count($states); $i++) {
echo "<p>Restrict to order states:\n";
for ($i = 0; $i < count($states); $i++) {
- echo " <input type=\"checkbox\" name=\"state_$i\"";
+ echo " <input type=\"checkbox\"
id=\"state_$i\"
name=\"state_$i\"";
if ($state_mask & (1 << $i)) echo " checked";
if ($state_mask & (1 << $i)) echo " checked";
- echo ">
$states[$i]
\n";
+ echo ">
<label for=\"state_$i\">$states[$i]</label>
\n";
}
echo "</p>\n";
}
}
echo "</p>\n";
}
@@
-309,9
+309,9
@@
echo " <td>Parcel contents</td>\n";
echo " <td>";
for ($i = count($parcel_sizes); $i < count($parcel_contents); $i++) {
echo " <td>Parcel contents</td>\n";
echo " <td>";
for ($i = count($parcel_sizes); $i < count($parcel_contents); $i++) {
- echo " <input type=\"checkbox\" name=\"parcel_$i\"";
+ echo " <input type=\"checkbox\"
id=\"parcel_$i\"
name=\"parcel_$i\"";
if ($order->getParcel() & (1 << $i)) echo " checked";
if ($order->getParcel() & (1 << $i)) echo " checked";
- echo ">
$parcel_contents[$i]
\n";
+ echo ">
<label for=\"parcel_$i\">$parcel_contents[$i]</label>
\n";
}
echo "</td>\n";
echo "</tr>\n";
}
echo "</td>\n";
echo "</tr>\n";