Пример #1
0
<?
require("seguranca.php");

require "../controller/periodoController.php";

$periodoController = new periodoController();

$periodo = $periodoController->excluir();
$periodo = $periodoController->salvar();
$periodo = $periodoController->abrir();
if(isset($periodo[0]))
extract($periodo[0]);

if(!isset($id))
{
	$nome = '';
	$id = 0;
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	
        
		<script src="js/jquery.js"></script>
   		<script src="js/jquery.datetimepicker.full.js"></script>
        <script src="js/dateformat.js"></script>
        
        <!-- <link href="css/select2.min.css" rel="stylesheet" /> -->
Пример #2
0
<?php

require_once '../_loadPaths.inc.php';
$path = $_SESSION['PATH_SYS'];
include_once $path['beans'] . 'Periodo.php';
include_once $path['beans'] . 'Grupo.php';
include_once $path['controller'] . 'PeriodoController.php';
include_once $path['controller'] . 'GrupoController.php';
$periodoController = new periodoController();
$grupoController = new GrupoController();
switch ($_REQUEST["acao"]) {
    case "selectAll":
        $periodos = $periodoController->selectAll();
        $retorno = array("erro" => false, "retorno" => array());
        if (count($periodos) > 0) {
            foreach ($periodos as $periodo) {
                $prd = array("id" => utf8_encode($periodo->getPrd_id()), "periodo" => utf8_encode($periodo->getPrd_periodo()));
                array_push($retorno["retorno"], $prd);
            }
        } else {
            $prd = array("mensagem" => "Nenhum periodo cadastrado ate o momento.");
            array_push($retorno["retorno"], $prd);
        }
        echo json_encode($retorno);
        break;
    case "selectById":
        $retorno = array("erro" => false, "retorno" => array());
        if (isset($_REQUEST["id"])) {
            $idperiodo = $_REQUEST["id"];
            $periodo = $periodoController->selectById($idperiodo);
            if ($periodo->getPrd_id()) {
Пример #3
0
<?

require("seguranca.php");

require "../controller/periodoController.php";

$periodoController = new periodoController();
$lista = $periodoController->listarcontroller();

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

		<script src="js/jquery.js"></script>
   		<script src="js/jquery.datetimepicker.full.js"></script>
        <script src="js/dateformat.js"></script>
        
        <!-- <link href="css/select2.min.css" rel="stylesheet" /> -->
        <link rel="stylesheet" type="text/css" href="css/estilo.css">
        <link rel="stylesheet" type="text/css" href="css/jquery.datetimepicker.css">
        
		<!-- <script src="js/select2.min.js"></script> -->
  	 <script src="js/lib.js"></script>
     
     </head>
     <title>Cadastro de Períodos</title>
     <body>

<!-- form -->