echo "Markup"; } else { echo "Discount"; } ?> on Sales">Sell: <?php echo $GLOBALS['gsMarkup']; ?> %</span> <button type='button' title="Minimize Gems, Jewelry & Art List"class='minimize btn btn-success'><span class='glyphicon glyphicon-chevron-up'></span></button> <button type='button' rel='gjaList' title="Reload Gems, Jewelry, & Art List" ref="getGJA" class='refresh btn btn-success'><span class='glyphicon glyphicon-refresh'></span></button> </div> </div> <div class="panel-body" id="gjaList"> <?php getGJA($GLOBALS['vault']); ?> </div> </div> <div class="panel panel-primary"> <div class="panel-heading"> <span class="panel-title">Items & Equipment</span> <div class="pull-right"> <span class="label label-success" title="<?php if ($GLOBALS['ibMarkup'] >= 0) { echo "Markup"; } else { echo "Discount"; } ?> on Purchases">Buy: <?php
function moveGJA($item) { $q1 = "UPDATE `gemsjewelryart` SET `gjaLoc` = '" . $item[0] . "', changeBy = '" . $GLOBALS['user'] . "' WHERE `gjaId` = '" . $item[1] . "'"; $r1 = $GLOBALS['mysqli']->query($q1); getGJA(); }