public function insereEvento(PDO $conexao, agenda $obj) { try { $stmtInsert = $conexao->prepare(agendaDAO::$INSERT_EVENTO); $stmtInsert->execute(array(':data' => $obj->getDataEvento(), ':idTurma' => $obj->getIdTurma(), ':descricao' => $obj->getDescEvento())); echo "<script type=\"text/javascript\" > showSuccessToast('Evento criado com sucesso.'); </script>"; } catch (PDOException $e) { echo "<script type=\"text/javascript\" > showErrorToast('" . $e->getMessage() . "'); </script>"; } }
<?php include_once 'agenda.class.php'; $login = $_POST['login']; $entrar = $_POST['entrar']; $senha = md5($_POST['senha']); $obj = new agenda(); $obj->connection(); $obj->geraLog($login); if (isset($entrar)) { $verifica = $obj->verificaLogin($login, $senha); if (mysql_num_rows($verifica) <= 0) { echo "<script language='javascript' type='text/javascript'>alert('Login e/ou senha incorretos');window.location.href='index.html';</script>"; die; } else { setcookie("login", $login); header("Location:agenda.php"); } }
<?php include_once "../../login/check.php"; if (!empty($_GET) && $_GET['lock'] == md5('lock')) { $titulo = $idioma['ReporteIndependienteAgenda']; $CodAlumno = $_SESSION['CodAl']; include_once "../../class/alumno.php"; include_once "../../class/curso.php"; include_once "../../class/agenda.php"; include_once "../../class/observaciones.php"; include_once "../../class/materias.php"; include_once "../../class/config.php"; $agenda = new agenda(); $materia = new materias(); $observaciones = new observaciones(); $alumno = new alumno(); $curso = new curso(); $config = new config(); $al = array_shift($alumno->mostrarTodoDatos($CodAlumno)); $cur = array_shift($curso->mostrarCurso($al['CodCurso'])); //Cantidad de Observaciones $CodObser = $observaciones->CodObservaciones(1); foreach ($CodObser as $CodO) { $Obser[] = $CodO['CodObservacion']; } $CodigosObservaciones = implode(",", $Obser); $CantObser = $agenda->CantidadObservaciones($CodAlumno, $CodigosObservaciones, $_GET['CodMateria']); $CantObser = array_shift($CantObser); //Cantidad de Faltas $Obser = array(); $CodObser = $observaciones->CodObservaciones(2);
<?php include_once "../../login/check.php"; include_once "../../class/agenda.php"; include_once "../../class/alumno.php"; include_once "../../class/curso.php"; include_once "../../class/materias.php"; include_once "../../class/config.php"; include_once "../../class/observaciones.php"; if (isset($_POST)) { $Fecha = fecha2Str($_POST['Fecha'], 0); //$CodAl=$_SESSION['CodAl']; $alumno = new alumno(); $curso = new curso(); $agenda = new agenda(); $materia = new materias(); $observaciones = new observaciones(); $config = new config(); //Cantidad de Observaciones $CodObser = $observaciones->CodObservaciones(1); foreach ($CodObser as $CodO) { $Obser[] = $CodO['CodObservacion']; } $CodigosObservaciones = implode(",", $Obser); $CantObser = $agenda->CantidadObservaciones($CodAl, $CodigosObservaciones, $_POST['CodMateria'], $Fecha); $CantObser = array_shift($CantObser); //Cantidad de Faltas $Obser = array(); $CodObser = $observaciones->CodObservaciones(2); foreach ($CodObser as $CodO) { $Obser[] = $CodO['CodObservacion'];
</form> </div> </fieldset> <?php } else { echo "Bem-Vindo, convidado <br>"; echo "Essas informações <font color='red'>NÃO PODEM</font> ser acessadas por você"; echo "<br><a href='index.html'>Faça Login</a> Para ler o conteúdo"; } ?> </div> <div> <?php $obj = new agenda(); $obj->connection(); $dados = $obj->getContato($login_cookie); $total = mysql_num_rows($dados); echo '<p>Numeros de Contatos: ' . $total . '</p>'; for ($i = 0; $i < $total; $i++) { $linha[] = mysql_fetch_assoc($dados); } //print_r($linha); foreach ($linha as $key => $row) { $nome[$key] = $row['nome']; $email[$key] = $row['email']; $endereco[$key] = $row['endereco']; $telefone_celular[$key] = $row['telefone_celular']; $telefone_fixo[$key] = $row['telefone_fixo']; }
$telefone_fixo = $_POST['telefone_fixo']; $erro = 0; if (empty($nome)) { echo "Favor digitar nome corretamente.<br>"; $erro = 1; } if (empty($endereco)) { echo "Favor digitar email corretamente.<br>"; $erro = 1; } if (strlen($email) < 8) { echo "Favor digitar diaria corretamente.<br>"; $erro = 1; } if (empty($telefone_celular)) { echo "Favor digitar quantidade de pessoa corretamente.<br>"; $erro = 1; } if (empty($telefone_fixo)) { echo "Favor digitar valor da diaria corretamente.<br>"; $erro = 1; } if ($erro == 0) { //entao gravar $obj = new agenda(); $obj->connection(); $obj->insertContact($nome, $endereco, $email, $telefone_celular, $telefone_fixo); } ?>
<?php include_once "../../login/check.php"; if (!empty($_GET)) { extract($_GET); include_once "../../csv/csv.php"; include_once "../../class/alumno.php"; include_once "../../class/cursomateriaexportar.php"; include_once "../../class/registronotas.php"; include_once "../../class/casilleros.php"; include_once "../../class/config.php"; include_once "../../class/agenda.php"; include_once "../../class/curso.php"; $config = new config(); $agenda = new agenda(); $curso = new curso(); $cur = $curso->mostrarCurso($CodCurso); $cur = array_shift($cur); if ($cur['Bimestre']) { $InicioBimestre1 = $config->mostrarConfig("InicioBimestre1", 1); $FinBimestre1 = $config->mostrarConfig("FinBimestre1", 1); $InicioBimestre2 = $config->mostrarConfig("InicioBimestre2", 1); $FinBimestre2 = $config->mostrarConfig("FinBimestre2", 1); $InicioBimestre3 = $config->mostrarConfig("InicioBimestre3", 1); $FinBimestre3 = $config->mostrarConfig("FinBimestre3", 1); $InicioBimestre4 = $config->mostrarConfig("InicioBimestre4", 1); $FinBimestre4 = $config->mostrarConfig("FinBimestre4", 1); } else { $InicioTrimestre1 = $config->mostrarConfig("InicioTrimestre1", 1); $FinTrimestre1 = $config->mostrarConfig("FinTrimestre1", 1); $InicioTrimestre2 = $config->mostrarConfig("InicioTrimestre2", 1);
$model = $_REQUEST['model']; $action = $_REQUEST['action']; include_once MODELS_ADMIN . "/" . $model . "_model.php"; switch (strtoupper($action)) { case 'ADD': break; case 'SAVE': $objAgenda = new agenda(); $objAgenda->setAgenda($_REQUEST); $objComm->redirect('index.php?model=' . $model); break; case 'VIEW': case 'EDIT': $objAgenda = new agenda(); $row = $objAgenda->getAgenda($_REQUEST['id']); break; case 'UPDATE': $objAgenda = new agenda(); $objAgenda->setAgenda($_REQUEST); $objComm->redirect('index.php?model=' . $model . '&action=edit&id=' . $_REQUEST['pk_id']); break; case 'DELETE': $objAgenda = new agenda(); $objAgenda->delAgenda($_REQUEST['id']); $objComm->redirect('index.php?model=' . $model); break; default: $objAgenda = new agenda(); $Records = $objAgenda->getAllAgenda(); break; }
<?php include_once "../../login/check.php"; if (isset($_POST)) { include_once "../../class/asistencia.php"; include_once "../../class/alumno.php"; include_once "../../class/agenda.php"; include_once "../../class/config.php"; $asistencia = new asistencia(); $alumno = new alumno(); $config = new config(); $agenda = new agenda(); if ($_POST['Fecha'] != "") { $Fecha = fecha2Str($_POST['Fecha'], 0); } else { $Fecha = date("Y-m-d"); } $FechaActual = $Fecha; $al = $alumno->contarInscritosTotal(); $al = array_shift($al); $CantidadTotal = $al['CantidadTotal']; $TipoEstadisticaAsistenciaInicio = $config->mostrarConfig("TipoEstadisticaAsistenciaInicio", 1); if ($TipoEstadisticaAsistenciaInicio == "Agenda") { $ag = $agenda->CantidadObservaciones("", "6", "", $Fecha); $ag = array_shift($ag); $Faltas = $ag['Cantidad']; $ag = $agenda->CantidadObservaciones("", "8", "", $Fecha); $ag = array_shift($ag); $Atrasos = $ag['Cantidad']; $asistenciaAtraso = $Atrasos; $asistenciaFaltas = $Faltas;
<?php include_once "../../login/check.php"; if (!empty($_POST)) { include_once "../../class/agenda.php"; $agenda = new agenda(); $CodAgenda = $_POST['CodAgenda']; $a = $agenda->MostrarAgenda($CodAgenda); $a = array_shift($a); $Valor = $_POST['Valor']; $values = array("resaltar2" => $Valor); $agenda->actualizarAgendaE($values, "CodAgenda={$CodAgenda}"); $valores = array("Mensaje" => "OK", "EnviadoSMS" => $a['EnviadoSMS'], "Accion" => 0); echo json_encode($valores); }
if (!empty($_POST)) { $CodCurso = $_POST['CodCurso']; $CodMateria = $_POST['CodMateria']; $Periodo = $_POST['Periodo']; ///cambiar include_once "../../class/alumno.php"; include_once "../../class/curso.php"; include_once "../../class/config.php"; include_once "../../class/materias.php"; include_once "../../class/casilleros.php"; include_once "../../class/registronotas.php"; include_once "../../class/agenda.php"; include_once "../../class/observaciones.php"; $alumno = new alumno(); $curso = new curso(); $agenda = new agenda(); $materias = new materias(); $casilleros = new casilleros(); $registronotas = new registronotas(); $observaciones = new observaciones(); $config = new config(); $cur = $curso->mostrarCurso($CodCurso); $cur = array_shift($cur); $notareprobacion = $cur['NotaAprobacion']; $mat = $materias->mostrarMateria($CodMateria); $mat = array_shift($mat); $ini = $cur['Bimestre'] ? 'Bimestre' : 'Trimestre'; $fin = $cur['Bimestre'] ? 'Bimestre' : 'Trimestre'; $PeriodoInicio = $config->mostrarConfig('Inicio' . $ini . $Periodo, 1); $PeriodoFin = $config->mostrarConfig('Fin' . $fin . $Periodo, 1); $casillas = $casilleros->mostrarMateriaCursoTrimestre($CodMateria, $CodCurso, $Periodo);
include_once "../../class/materias.php"; include_once "../../class/cuota.php"; include_once "../../class/observaciones.php"; include_once "../../class/curso.php"; include_once "../../class/tarea.php"; include_once "../../class/agenda.php"; include_once "../../class/tarea.php"; include_once "../../class/registronotas.php"; include_once "../../class/casilleros.php"; $alumno = new alumno(); $config = new config(); $curso = new curso(); $tarea = new tarea(); $materia = new materias(); $cuota = new cuota(); $agenda = new agenda(); $tarea = new tarea(); $cursomateria = new cursomateria(); $observaciones = new observaciones(); $registronotas = new registronotas(); $casilleros = new casilleros(); $CodAlumno = $_SESSION['CodUsuarioLog']; $al = $alumno->mostrarTodoDatos($CodAlumno); $al = array_shift($al); $cur = $curso->mostrarCurso($al['CodCurso']); $cur = array_shift($cur); $Moneda = $config->mostrarConfig("Moneda", 1); $FechaCuota1 = $config->mostrarConfig("FechaCuota1", 1); $FechaCuota2 = $config->mostrarConfig("FechaCuota2", 1); $FechaCuota3 = $config->mostrarConfig("FechaCuota3", 1); $FechaCuota4 = $config->mostrarConfig("FechaCuota4", 1);
<?php include_once "../../login/check.php"; if (!empty($_POST)) { include_once "../../class/agenda.php"; include_once "../../class/curso.php"; include_once "../../class/alumno.php"; include_once "../../class/materias.php"; include_once "../../class/observaciones.php"; $agenda = new agenda(); $observaciones = new observaciones(); $alumno = new agenda(); $cursos = new curso(); $materias = new materias(); $FechaInicio = $_POST['FechaInicio']; $FechaFinal = $_POST['FechaFinal']; $Curso = $_POST['Curso']; $Materia = $_POST['Materia']; $Alumnos = $_POST['Alumnos']; $Observacion = $_POST['Observacion']; //print_r($Observacion); $FechaInicio = fecha2Str($FechaInicio, 0); $FechaFinal = fecha2Str($FechaFinal, 0); $Cod = array_shift($_POST['Observacion']); if ($Cod == "") { //echo "Asd"; $Observacion = array(); foreach ($observaciones->mostrarObservaciones("Nombre") as $obs) { //$obs=array_shift($obs); array_push($Observacion, $obs['CodObservacion']); }
<?php include_once "../../login/check.php"; if (!empty($_POST)) { include_once "../../class/agenda.php"; include_once "../../class/materias.php"; include_once "../../class/alumno.php"; include_once "../../class/config.php"; include_once "../../class/curso.php"; include_once "../../class/observaciones.php"; $agenda = new agenda(); $materias = new materias(); $obser = new observaciones(); $alumno = new alumno(); $config = new config(); $curso = new curso(); $CodDocente = $_SESSION['CodDocente']; $CodCurso = $_POST['CodCurso']; $CodMateria = $_POST['CodMateria']; $cur = $curso->mostrarCurso($CodCurso); $cur = array_shift($cur); /*Sacando Fecha de Trimestre*/ if ($cur['Bimestre']) { $cnf = $config->mostrarConfig("InicioBimestre1"); $fechaInicioBimestre1 = $cnf['Valor']; $cnf = $config->mostrarConfig("FinBimestre1"); $fechaFinBimestre1 = $cnf['Valor']; $cnf = $config->mostrarConfig("InicioBimestre2"); $fechaInicioBimestre2 = $cnf['Valor']; $cnf = $config->mostrarConfig("FinBimestre2"); $fechaFinBimestre2 = $cnf['Valor'];
<?php include_once 'agenda.class.php'; $login = $_POST['login']; $senha = MD5($_POST['senha']); $nome_completo = $_POST['nome_completo']; $obj = new agenda(); $obj->connection(); $obj->insertUser($login, $senha, $nome_completo); ?>
public function actionCreateException() { $model = new agenda(); $model->owner = $_POST['owner']; $model->lastUpdate = $_POST['lastUpdate']; $content = json_decode($_POST['data']); $slotbuff = json_decode($_POST['slotbuff']); $slotnum = json_decode($_POST['slotnum']); $status = $model->saveException($content, $slotbuff, $slotnum); $value = array('status' => $status); // 'status' => $model->lastUpdate echo json_encode($value); }
<?php include_once "../../login/check.php"; include_once "../../class/agenda.php"; if (!empty($_POST)) { $agenda = new agenda(); $fecha = date("Y-m-d"); $hora = date("H:i:s"); $FechaObs = date("Y-m-d", strtotime($_POST['Fecha'])); $CodUsuario = $_SESSION['CodUsuarioLog']; $Nivel = $_SESSION['Nivel']; $agendaValues = array("CodAgenda" => 'NULL', 'CodCurso' => $_POST['CodCurso'], 'CodAlumno' => $_SESSION['CodAl'], 'CodMateria' => $_POST['CodMateria'], 'CodObservacion' => $_POST['CodObs'], 'Fecha' => "'{$FechaObs}'", 'FechaRegistro' => "'{$fecha}'", 'HoraRegistro' => "'{$hora}'", 'Activo' => 1, 'Detalle' => "'{$_POST['Detalle']}'", 'CodUsuario' => $CodUsuario, 'Nivel' => $Nivel, 'Resaltar' => $_POST['Resaltar']); //print_r($agendaValues); $res = $agenda->insertarRegistro($agendaValues); $CodigoInsertado = $agenda->ultimo(); //print_r( $agendaValues); if ($res) { $valores = array("Mensaje" => "OK", "Cod" => $CodigoInsertado, "EnviadoSMS" => 0, "Accion" => 1); } else { $valores = array("Mensaje" => "NO", "Cod" => $CodigoInsertado); } echo json_encode($valores); }
<?php include_once "../../login/check.php"; include_once "../../class/alumno.php"; include_once "../../class/curso.php"; include_once "../../class/asistencia.php"; include_once "../../class/cursoarea.php"; include_once "../../class/config.php"; include_once "../../class/agenda.php"; $alumno = new alumno(); $curso = new curso(); $cursoarea = new cursoarea(); $asistencia = new asistencia(); $config = new config(); $agenda = new agenda(); $Codigo = $_POST['Codigo']; $folder = "../../"; $cnf = $config->mostrarConfig("AtrasoAgenda"); $AtrasoAgenda = $cnf['Valor']; $al = $alumno->mostrarDatosCodBarra("CodBarra='{$Codigo}'"); if (count($al) <= 0) { ?> <div class="alert alert-error grande"><?php echo $idioma['CodigoNoAsignado']; ?> </div> <script language="javascript">$("#Codigo").val('').focus();mostrar();</script> <?php exit; } $al = array_shift($al);
<?php include_once "../../login/check.php"; include_once "../../class/agenda.php"; if (!empty($_POST)) { $agenda = new agenda(); $CodAgenda = $_POST['CodAgenda']; $Fecha = date("Y-m-d"); $Hora = date("H:i:s"); $CodUsuario = $_SESSION['CodUsuarioLog']; $Nivel = $_SESSION['Nivel']; $values = array('CodUsuarioElimina' => $CodUsuario, 'NivelElimina' => $Nivel, 'Activo' => 0, 'FechaElimina' => "'{$Fecha}'", 'HoraElimina' => "'{$Hora}'"); $res = $agenda->actualizarAgendaE($values, "CodAgenda={$CodAgenda}"); $valores = array("Mensaje" => "OK", "EnviadoSMS" => $al['1']); echo json_encode($valores); }
<?php include_once "../../login/check.php"; if (isset($_GET)) { $CodCurso = $_GET['CodCurso']; include_once "../pdf.php"; include_once "../../class/alumno.php"; include_once "../../class/curso.php"; include_once "../../class/observaciones.php"; include_once "../../class/agenda.php"; $curso = new curso(); $alumno = new alumno(); $observaciones = new observaciones(); $agenda = new agenda(); $cur = array_shift($curso->mostrarCurso($CodCurso)); $titulo = $idioma["AgendaReporteGeneral"]; class PDF extends PPDF { function Cabecera() { global $idioma, $cur; $this->CuadroCabecera(15, $idioma['Curso'] . ":", 35, $cur['Nombre']); $this->Pagina(); $this->CuadroCabecera(10, sacarIniciales($idioma['Observaciones']) . "=", 30, $idioma['Observaciones']); $this->CuadroCabecera(10, sacarIniciales($idioma['Faltas']) . "=", 30, $idioma['Faltas']); $this->CuadroCabecera(10, sacarIniciales($idioma['Atrasos']) . "=", 30, $idioma['Atrasos']); $this->CuadroCabecera(10, sacarIniciales($idioma['Licencias']) . "=", 30, $idioma['Licencias']); $this->Ln(); $this->CuadroCabecera(35, "", 50, ""); $this->CuadroCabecera(10, sacarIniciales($idioma['NotificacionPadres']) . "=", 40, $idioma['NotificacionPadres']); $this->CuadroCabecera(10, sacarIniciales($idioma['NoRespondeTelf']) . "=", 40, $idioma['NoRespondeTelf']);
<?php include_once "../../login/check.php"; if (!empty($_POST)) { include_once "../../class/config.php"; $config = new config(); $PuertoUsb = $config->mostrarConfig("PuertoUsb", 1); $Sigla = $config->mostrarConfig("Sigla", 1); $CodAgenda = $_POST['Codigo']; include_once "../../sms/funciones.php"; include_once "../../class/alumno.php"; include_once "../../class/agenda.php"; include_once "../../class/materias.php"; include_once "../../class/curso.php"; include_once "../../class/observaciones.php"; $agenda = new agenda(); $alumno = new alumno(); $materias = new materias(); $observaciones = new observaciones(); $curso = new curso(); $ag = $agenda->MostrarAgenda($CodAgenda); $ag = array_shift($ag); //print_r($ag); $cur = $curso->mostrarCurso($ag['CodCurso']); $cur = array_shift($cur); $mat = $materias->mostrarMateria($ag['CodMateria']); $mat = array_shift($mat); $obs = $observaciones->mostrarObser($ag['CodObservacion']); $obs = array_shift($obs); $al = $alumno->mostrarTodoDatos($ag['CodAlumno']); $al = array_shift($al);