Esempio n. 1
0
open_session();
$user_id = $_SESSION["mio-username_id"];
$wallet_id = $_POST["wallet_id"];
$balance = get_balance_data($wallet_id);
if (isset($_SESSION) && !empty($_SESSION)) {
    ?>
	<div class="container-fluid">
		<h1>Balances</h1>
		<table class="table">
			<tr>
				<th>ID</th>
				<th>Balance</th>
				<th>Fecha</th>
			<tr>
			
				<?php 
    for ($x = 0; $x < count($balance); $x++) {
        echo "<tr>";
        echo "<td>" . $balance[$x]->balance_id . "</td>";
        echo "<td>" . $balance[$x]->balance . "<span> &euro;</span></td>";
        echo "<td>" . date_mdy($balance[$x]->date_balance) . "</td>";
        echo "<tr>";
    }
    ?>
							
		</table>
	</div>
<?php 
} else {
    echo get_message("no_session");
}
Esempio n. 2
0
	<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 
    $cost = get_all_cost_wallet($wallet_id);
    for ($x = 0; $x < count($cost); $x++) {
        echo "<tr>";
        echo "<td>" . $cost[$x]->cost_id . "</td>";
        echo "<td>" . $cost[$x]->concept . "</td>";
        echo "<td>" . $cost[$x]->import . "</td>";
        echo "<td>" . $cost[$x]->status_c . "</td>";
        echo "<td>" . date_mdy($cost[$x]->date_check) . "</td>";
        echo "<td>" . "<a href='../update/cost.php?cost_id=" . $cost[$x]->cost_id . "'>Editar</a>" . "</td>";
        echo "<td>" . "<a href='../../../../mio-cost/update/disable.php?cost_id=" . $cost[$x]->cost_id . "''>Eliminar</a>" . "</td>";
        echo "<td>" . "<a href='../../../../mio-cost/update/enable.php?cost_id=" . $cost[$x]->cost_id . "'>Recuperar</a>" . "</td>";
    }
    ?>
		</table>
<?php 
} else {
    echo get_message("no_session");
}
Esempio n. 3
0
			<tr>
			<td>ID</td>
			<td>Nombre:</td>
			<td>Descripción</td>
			<td>Fecha de creación</td>
			<td>Fecha de baja</td>
			<td>Modificar</td>
			<td>Eliminar</td>
			<td>Recuperar</td>
			</tr>
			
			<?php 
    $wallet = get_all_wallet();
    for ($x = 0; $x < count($wallet); $x++) {
        echo "<tr>";
        echo "<td>" . $wallet[$x]->wallet_id . "</td>";
        echo "<td>" . $wallet[$x]->name . "</td>";
        echo "<td>" . $wallet[$x]->descr . "</td>";
        echo "<td>" . date_mdy($wallet[$x]->date_up) . "</td>";
        echo "<td>" . date_mdy($wallet[$x]->date_down) . "</td>";
        echo "<td>" . "<a href='../update/wallet.php?wallet_id=" . $wallet[$x]->wallet_id . "'>Editar</a>" . "</td>";
        echo "<td>" . "<a href='../../../../mio-wallet/update/disable.php?wallet_id=" . $wallet[$x]->wallet_id . "''>Eliminar</a>" . "</td>";
        echo "<td>" . "<a href='../../../../mio-wallet/update/enable.php?wallet_id=" . $wallet[$x]->wallet_id . "'>Recuperar</a>" . "</td>";
    }
    ?>
		</table>
	</div>
<?php 
} else {
    echo get_message("no_session");
}
Esempio n. 4
0
	<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 {
    echo get_message("no_session");
}