<br /> </div> </div> <div class="sd_left"> <div class="text_padding"> <table> <tr> <th>Data</th> <th>Hora</th> <th>Descrição</th> </tr> <?php $ex = new geralSys(); $aux = $ex->selectGeral("palestras"); $aux->execute(); while ($linha = $aux->fetch(PDO::FETCH_ASSOC)) { $date = new DateTime($linha['data']); print " <tr>\n\n \n <td>" . $date->format('d/m/Y') . " |</td>\n <td>" . $linha['horario'] . " |</td>\n <td>" . $linha['Descricao'] . "</td>\n \n </tr>"; } ?> </table> </div> </div>
<div class=" paneldeful panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Configurações de Usuário</h3> </div> <?php /* Criado em: 01/03/2015 Autor: Guilherme Barbosa Lima Finalidade: Partes do sistema G_Index v2.0.0 */ // include_once "../model/config/configuration_ge.php"; // session_start("administracao"); include "../model/geral_class.php"; $ex = new geralSys(); $aux = $ex->selectGeral("configuracoes"); $aux->execute(); while ($linha = $aux->fetch(PDO::FETCH_ASSOC)) { $nome = $linha['nome']; $email = $linha['email']; $senha = $linha['senha']; } ?> <div class=" panel-body "> <form action="../controle/controle_geral.php" method="post"> <div class="form-group"> <label for="exampleInputEmail1">Nome de Usuário</label> <input type="text" class="form-control" id="exampleInputEmail1" placeholder="Usuário" name="nome" value=<?php
Autor: Guilherme Barbosa Lima Finalidade: Partes do sistema G_Index v2.0.0 */ ?> <div class="panel panel-default"> <div class="panel-heading">Editar Home</div> <div class="panel-body"> <div class="row"> <div class="col-md-12"> <form method="post" action="../../../controle/controle_geral.php" enctype="multipart/form-data"> <?php include "../../../model/geral_class.php"; $ex = new geralSys(); $aux = $ex->selectGeral("home"); $aux->execute(); while ($linha = $aux->fetch(PDO::FETCH_ASSOC)) { $tituloprimario = $linha['tituloprimario']; $textoprimario = $linha['textoprimario']; $titulosecundario = $linha['titulosecundario']; $textosecundario = $linha['textosecundario']; $textolateral1 = $linha['textolateral1']; $textolateral2 = $linha['textolateral2']; $textolateral3 = $linha['textolateral3']; } ?>
Criado em: 31/03/2015 Autor: Guilherme Barbosa Lima Finalidade: Partes do sistema G_Index v2.0.0 */ ?> <div class="panel panel-default"> <div class="panel-heading">Editar EMECAM</div> <div class="panel-body"> <div class="row"> <div class="col-md-12"> <form method="post" action="../../../controle/controle_geral.php" enctype="multipart/form-data"> <?php include "../../../model/geral_class.php"; $ex = new geralSys(); $aux = $ex->selectGeral("emecam"); $aux->execute(); while ($linha = $aux->fetch(PDO::FETCH_ASSOC)) { $titulo = $linha['titulo']; $texto = $linha['texto']; } ?> <div class="form-group"> <label for="exampleInputEmail1">Título</label> <input type="text" class="form-control" id="exampleInputEmail1" placeholder="Título" name="tituloForm" value="<?php print $titulo; ?> ">
<br /> <br /> </div> </div> <div class="sd_left"> <div class="text_padding"> <table> <tr> <th>Título</th> <th>Descrição</th> </tr> <?php $ex = new geralSys(); $aux = $ex->selectGeral("novidades"); $aux->execute(); while ($linha = $aux->fetch(PDO::FETCH_ASSOC)) { print " <tr>\n\n \n <td>" . $linha['titulo'] . " |</td>\n <td>" . $linha['texto'] . "</td>\n \n </tr>"; } ?> </table> </div> </div>
</div> </div> <div class="sd_left"> <div class="text_padding"> <table> <tr> <th>Data</th> <th>Horário</th> <th>Descrição</th> </tr> <?php $ex = new geralSys(); $aux = $ex->selectGeral("programacao"); $aux->execute(); while ($linha = $aux->fetch(PDO::FETCH_ASSOC)) { $date = new DateTime($linha['data']); print " <tr>\n\n \n <td>" . $date->format('d/m/Y') . " |</td>\n <td>" . $linha['horario'] . " |</td>\n <td>" . $linha['Descricao'] . "</td>\n \n </tr>"; } ?> </table> </div> </div>
/** * alteração dos valores da tabela emecam * * @return void * @author Guilherme Barbosa Lima **/ function edit($titulo, $texto, $img) { // include "config/conectar.php"; // include "geral_class.php"; $general = new geralSys(); $pdo = conectar(); $deleteigm = $pdo->prepare("select * from emecam"); $deleteigm->execute(); while ($linha = $deleteigm->fetch(PDO::FETCH_ASSOC)) { $general->delimg($linha['url_foto']); } $edit = $pdo->prepare("update emecam set titulo=:titulo, texto=:texto, url_foto=:url where idemecam=1"); $edit->bindValue(":titulo", $titulo, PDO::PARAM_STR); $edit->bindValue(":texto", $texto, PDO::PARAM_STR); $edit->bindValue(":url", $img, PDO::PARAM_STR); if ($edit->execute()) { print "<SCRIPT>alert (\"Alteração realizada com sucesso!\")</SCRIPT>"; } }