* * */ require_once __DIR__ . "/../../../../mio-wallet/show/wallet_func.php"; require_once __DIR__ . "/../../../../session.php"; require_once __DIR__ . "/../../../../moneyio.php"; require_once __DIR__ . "/../../../../mio-wallet/update/wallet_func.php"; require_once __DIR__ . "/../../../../mio-cost/show/cost_func.php"; require_once __DIR__ . "/../../../../mio-ingress/show/ingress_func.php"; open_session(); $user_id = $_SESSION["mio-username_id"]; $wallet_id = $_POST["wallet_id"]; //$wallet_id = 1; $lang = $moneyio_data->lang; $cost = get_all_cost_wallet($wallet_id); $ingress = get_all_ingress_wallet($wallet_id); $balance = get_balance_data($wallet_id); $balance_date = get_max_min_date_balance($wallet_id); $month_chart = generate_month($balance_date[0]->old_date, $lang); if (isset($_SESSION) && !empty($_SESSION)) { ?> <script> // Get context with jQuery - using jQuery's .get() method. function get_chart(){ var ctx = $("#balanceChart").get(0).getContext("2d"); // This will get the first returned node in the jQuery collection. var myNewChart = new Chart(ctx); var data = { labels: [
if (isset($_SESSION) && !empty($_SESSION)) { ?> <table> <tr> <td>ID</td> <td>Concepto:</td> <td>Importe:</td> <td>Estado:</td> <td>Fecha de creación:</td> <td>Modificar</td> <td>Eliminar</td> <td>Recuperar</td> </tr> <?php $ingress = get_all_ingress_wallet(1); for ($x = 0; $x < count($ingress); $x++) { echo "<tr>"; echo "<td>" . $ingress[$x]->ingress_id . "</td>"; echo "<td>" . $ingress[$x]->concept . "</td>"; echo "<td>" . $ingress[$x]->import . "</td>"; echo "<td>" . $ingress[$x]->status_i . "</td>"; echo "<td>" . date_mdy($ingress[$x]->date_check) . "</td>"; echo "<td>" . "<a href='../update/ingress.php?ingress_id=" . $ingress[$x]->ingress_id . "'>Editar</a>" . "</td>"; echo "<td>" . "<a href='../../../../mio-ingress/update/disable.php?ingress_id=" . $ingress[$x]->ingress_id . "''>Eliminar</a>" . "</td>"; echo "<td>" . "<a href='../../../../mio-ingress/update/enable.php?ingress_id=" . $ingress[$x]->ingress_id . "'>Recuperar</a>" . "</td>"; } ?> </table> <?php } else {