$transQ = new MemberAccountQuery(); $transQ->connect(); if ($transQ->errorOccurred()) { $transQ->close(); displayErrorPage($transQ); } $trans = $transQ->insert($trans); if ($transQ->errorOccurred()) { $transQ->close(); displayErrorPage($transQ); } // Set fee message if (OBIB_LOCALE == 'th') { $balText = number_format($fee, 2) . ' บาท'; } else { $balText = moneyFormat($fee, 2); } $_SESSION['feeMsg'] = "<font class=\"error\">" . $loc->getText("mbrViewBalMsg2", array("fee" => $balText)) . " <a href=\"../circ/mbr_account.php?mbrid=" . $saveMbrid . "&reset=Y\">" . $loc->getText('mbrAccountLink') . "</a></font><br><br>"; $transQ->close(); } // Update activity $mbrQ = new MemberQuery(); $mbrQ->connect(); $mbrQ->updateActivity($saveMbrid); $mbrQ->close(); } #************************************************************************** #* Destroy form values and errors #************************************************************************** unset($_SESSION["postVars"]); unset($_SESSION["pageErrors"]);
?> </td> <td valign="top" align="center" class="<?php echo H($row_class); ?> "> <?php echo H($dm->getDaysDueBack()); ?> </td> <td valign="top" align="center" class="<?php echo H($row_class); ?> "> <?php echo H(moneyFormat($dm->getDailyLateFee(), 2)); ?> </td> <td valign="top" align="center" class="<?php echo H($row_class); ?> "> <?php echo H($dm->getCount()); ?> </td> </tr> <?php # swap row color if ($row_class == "primary") { $row_class = "alt1";
$memberQ = new MemberQuery(); $mbr = $memberQ->get($_GET['mbrid']); echo '<p>'; echo $loc->getText("Checked in %barcode% for ", array('barcode' => $_GET['barcode'])); echo '<a href="../circ/mbr_view.php?mbrid=' . HURL($mbr->getMbrid()) . '&reset=Y">'; echo $loc->getText("%fname% %lname%", array('fname' => $mbr->getFirstName(), 'lname' => $mbr->getLastName())); echo '</a>.'; echo '</p>'; if (isset($_GET['late']) and $_GET['late']) { echo '<p><font class="error">' . $loc->getText("mbrViewOutHdr7") . ': ' . $_GET['late'] . '</font></p>'; } $acctQ = new MemberAccountQuery(); $balance = $acctQ->getBalance($mbr->getMbrid()); $balMsg = ""; if ($balance > 0) { $balText = moneyFormat($balance, 2); $balMsg = "<font class=\"error\">" . $loc->getText("mbrViewBalMsg", array("bal" => $balText)) . "</font><br><br>"; } echo $balMsg; } else { echo '<p>' . $loc->getText("Checked in %barcode%.", array('barcode' => $_GET['barcode'])) . '</p>'; } } ?> <form name="barcodesearch" method="POST" action="../circ/shelving_cart.php"> <table class="primary"> <tr> <th valign="top" nowrap="yes" align="left"> <?php echo $loc->getText("checkinFormHdr1");
?> </td> </tr> </tbody> <tfoot> <tr> <th scope="row" colspan="3">Saldo:</th> <td class="amount <?php if ($acc->balance >= 0) { echo 'positive'; } else { echo 'negative'; } ?> "><?php echo moneyFormat($acc->balance, true); ?> </td> </tr> </tfoot> </table> </div> </div> </div> </div> <!-- Script --> <script> jQuery(document).ready(function(){ <?php if (count($accounts) > 1) {
</td> <td class="primary" valign="top" > <?php echo H($trans->getTransactionTypeDesc()); ?> </td> <td class="primary" valign="top" > <?php echo H($trans->getDescription()); ?> </td> <td class="primary" valign="top" > <?php echo H(moneyFormat($trans->getAmount(), 2)); ?> </td> <td class="primary" valign="top" > <?php echo H(moneyFormat($bal, 2)); ?> </td> </tr> <?php } } $transQ->close(); ?> </table> <?php require_once "../shared/footer.php";
echo $tag->name; ?> " data-role="tag"> <td class="name"><?php echo $tag->name; ?> :</td> <td class="amount <?php if ($tag->total_spend >= 0) { echo 'positive'; } else { echo 'negative'; } ?> "><?php echo moneyFormat($tag->total_spend, true); ?> </td> <td class="actions"> <span class="viewSmall"><a href="#verTag?id=<?php echo $tag->id; ?> " title="Ver transações para esta tag"></a></span> <span class="editSmall"><a href="#editarTag?id=<?php echo $tag->id; ?> " title="Editar esta tag"></a></span> <span class="removeSmall"><a href="#removerTag?id=<?php echo $tag->id; ?> " title="Excluir esta tag"></a></span>
<li class="subtitle">Em <?php echo thisMonthName(); ?> ...</li> <li>ganhei: <span class="amount positive"><?php echo moneyFormat($totalGanhos, true); ?> </span></li> <li>gastei: <span class="amount negative"><?php echo moneyFormat($totalGastos, true); ?> </span></li> <li class="total">EU TENHO: <span class="amount <?php if ($totalSaldo >= 0) { echo 'positive'; } else { echo 'negative'; } ?> "><?php echo moneyFormat($totalSaldo, true); ?> </span></li> </ul> </div> </div> <?php } ?>
} } ?> </table> <?php } ?> </div> <!-- Total gasto nesta TAG --> <?php if (count($transactions) != 0) { ?> <div class="footerInfo"><strong>Total:</strong> <?php echo moneyFormat($totalAmount, true); ?> </div> <?php } ?> <!-- Script --> <script> (function($){ /* ***** Gerar gráfico mensal ***** */ <?php /* Caso não exista valores */ ?>
<form> <fieldset> <label for="transDescription">Descrição:</label> <input type="text" name="description" id="transDescription" value="<?php echo $_GET['description']; ?> " /> </fieldset> <fieldset> <label for="transAmount">Valor:</label> <input type="text" id="transAmount" name="amount" value="<?php $a = $_GET['amount']; if ($a < 0) { $a = $a * -1; } echo moneyFormat($a); ?> " /> R$ </fieldset> <fieldset> <label for="transType">Tipo:</label> <select id="transType" name="transType"> <?php foreach ($api->getTransactionTypes() as $type) { ?> <option value="<?php echo $type->id; ?> " <?php if (isset($_GET['type'])) {
?> <option value="<?php echo $type->id; ?> " <?php if ($type->id == $_GET['accountType']) { echo "selected='selected'"; } ?> ><?php echo $type->name; ?> </option> <?php } ?> </select> </fieldset> <fieldset> <label for="initialBalance">Saldo inicial:</label> <input class="maskDecimal" id="initialBalance" name="initialBalance" type="text" value="<?php echo moneyFormat($_GET['initialBalance']); ?> " /> <span class="valid">R$</span> </fieldset> <input type="hidden" id="accountId" name="accountId" value="<?php echo $_GET['id']; ?> " /> </form>