Browse Source

This closes #11 by turning shop_id into a link.

* transaction.css was too low a priority so added style in transaction_log.
devel
Jonathan Rosenbaum 7 years ago
parent
commit
57c7bcd615
  1. 7
      css/transactions.css
  2. 6
      transaction_log.php

7
css/transactions.css

@ -138,4 +138,11 @@ input[value=Save]:focus, input[value=Close]:focus {
#original_price, #membership_discount, #membership_discount_price {
display: none;
color: blueviolet;
}
//.css({color: "#1b691e", textDecoration: "none", cursor: "crosshair"});
.shop_id a {
background-color: #1b691e;
cursor: crosshair;
text-decoration: none;
}

6
transaction_log.php

@ -660,12 +660,14 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "ChangeDate")) {
<?php while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)) { //do { ?>
<form method="post" name="FormView_<?php echo $row_Recordset1['transaction_id']; ?>" action="<?php echo $editFormAction; ?>">
<tr bordercolor='#CCCCCC' <?php echo "title='Transaction ID: " . $row_Recordset1['transaction_id'] . "'";
<tr bordercolor='#CCCCCC' <?php echo "title='Transaction ID: " . $row_Recordset1['transaction_id'] . "'";
echo ((intval($row_Recordset1['transaction_id']) == intval($trans_id)) ? "bgcolor='#CCCC33'" : "");
if ($row_Recordset1['paid'] == 1) { echo "bgcolor='#E6E7E6'"; }
if ($row_Recordset1['transaction_type'] == "Deposit") { echo "class='deposit'"; }
?> >
<td><?php echo $row_Recordset1['shop_id']; ?></td>
<td class="shop_id">
<a style="color: rgb(27, 105, 30); text-decoration: none; cursor: crosshair;" href="./shop_log.php?shop_id=<?php echo $row_Recordset1['shop_id']; ?>">
<?php echo $row_Recordset1['shop_id']; ?></a></td>
<td><span id="wday" style="font-size:96%;"><?php echo $row_Recordset1['date_wday']; ?></span></td>
<td><?php echo $row_Recordset1['transaction_type']; ?></td>

Loading…
Cancel
Save