Example #1
1
File: lab1.php Project: TxrWall/xml
     * @param string $hr_saida
     * 
     * @return array
     */
    public function calcular($hr_entrada, $hr_saida)
    {
        // Modelo de array que deverá ser retornado
        $retorno = array('entrada' => null, 'saida' => null, 'trabalhadas' => null);
        # Capitulo 1 - Laboratorio 1
        // Retorno do array
        return $retorno;
    }
}
// Verifica se formulario foi postado
if ($_POST) {
    $obj_Lab1 = new Lab1();
    $resultado = $obj_Lab1->calcular($_POST['hr_entrada'], $_POST['hr_saida']);
}
?>
<html lang="en">
    <head>
        <meta charset="utf-8">
		<title>Capítulo 1 - Laboratório 1</title>
	</head>
	<body>	
		<form action="" method="post" >
		<table cellpadding="5" border="1">
			<tr><th>Horario Entrada :</th>
				<td><input type="text" name="hr_entrada" /></td>
			</tr>
			<tr><th>Horario Saída :</th>
Example #2
0
File: exec.php Project: pyvil/empi
<?php

require_once 'Lab1.php';
$lab1 = new Lab1();
?>

<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Lab1</title>

    <link rel="stylesheet" href="style.css"/>
    <script src="js/common.js"></script>
    <script src="js/Chart.js"></script>
</head>
<body>
    <div class="content">
        <h1>Лобораторна робота №1</h1>
        <h2>Виконав: Пятін Віталій</h2>
        <h3>Варіант №36</h3>
        <table>
            <thead>
            <tr>
                <td>Початкові дані</td>
            </tr>
            </thead>
            <tbody>
            <?foreach ($lab1->getData() as $item):?>
                <tr>
                    <td><?php