Beispiel #1
0
$rta = $selectHosting->getSelects('php/db.php');
echo $rta;
?>
                </select>
            </div>
            <input type="submit" id="agregarHosting" value="Payed">
        </form>
    </div>
</section>

<section id="right">
	<div id="table">
        <?php 
include_once 'php/table/table.php';
$table = new tables();
$rta = $table->getTable('', '', 'php/db.php');
echo $rta;
?>
    </div>
</section>

<div id="divGastosMod">
	<h2>Modify Payment <a href="javascript:;" onClick="hideModGastos()">Close</a></h2>
    <form method="post" id="formGastosMod" onSubmit="return gastos('mod','','')">
            <div class="editRow">
            	<input type="text" id="conceptoMod" value="" autocomplete="off">
                <input type="hidden" id="idMod" value="">
	            <input type="hidden" id="fechaMod" value="">
            </div>
            <div class="editRow" id="monedaRadiosMod">
                <div class="radiosBox fixModMonedas">
Beispiel #2
0
<?php

class tables
{
    public function getTable($arr)
    {
        echo "<table cellpadding='5' cellspacing='0' border='1'>";
        foreach ($arr as $key => $val) {
            echo "<tr>";
            echo "<td>";
            echo $key;
            echo "</td>";
            echo "<td>";
            echo $val;
            echo "</td>";
            echo "</tr>";
        }
        echo "</table>";
    }
}
$array = array("name" => "Иванов И.И.", "age" => "25", "email" => "*****@*****.**");
$table = new tables();
echo $table->getTable($array);
Beispiel #3
0
<?php

include_once 'table.php';
$oop = new tables();
if ($_POST[action] == 'reload') {
    $rta = $oop->getTable($_POST[mes], $_POST[anio], $_POST[tipo], '../db.php');
    echo $rta;
} else {
    if ($_POST[action] == 'saldo') {
        $rta = $oop->reloadSaldo();
        echo $rta;
    }
}
Beispiel #4
0
<?php

session_start();
if (!$_SESSION[userPagos]) {
    die;
}
include_once 'table.php';
$oop = new tables();
if ($_POST[action] == 'reload') {
    $rta = $oop->getTable($_POST[mes], $_POST[anio], $_POST[tipo], 1);
    echo $rta;
} else {
    if ($_POST[action] == 'saldo') {
        $rta = $oop->reloadSaldo();
        echo $rta;
    }
}
Beispiel #5
0
        <a class="logoutIcon" href="/ios/"><img title="Logout <?php 
echo ucfirst($_SESSION[userPagos]);
?>
" alt="Logout Icon" src="images/logout-icon.png" height="25" width="21"></a>
        <a href="javascript:;" onClick="toggleEditor(4)" ><img title="Notify <?php 
echo ucfirst($_SESSION[userPagos]);
?>
" alt="Notify Icon" src="images/notify-icon.png" height="21" width="30"></a>
    </h1>
</header>

<section id="table">
	<?php 
include_once 'php/table/table.php';
$table = new tables();
$rta = $table->getTable('', '', 0);
echo $rta;
?>
</section>

<section id="saldo">
	<?php 
$resumen = $table->reloadSaldo();
echo $resumen;
?>
</section>

<footer>
	<ul>
    	<li id="addPayment"><a href="javascript:;" onClick="toggleEditor(1)">Payment</a></li>
    	<li id="addHosting"><a href="javascript:;" onClick="toggleEditor(2)">Students</a></li>