Exemple #1
0
<?php

$folder = "";
include_once "class/testimonio.php";
$testimonio = new testimonio();
$tes = $testimonio->mostrarTodoRegistro("", 1, "");
include_once "cabecerahtml.php";
include_once "cabecera.php";
?>
<section class="">
    <div class="container">
         <div class="row">
                <h2 class="section-title">Quienes Somos </h2>
                <div class="col-sm-6">
                    <img src="<?php 
echo $folder;
?>
imagenes/quienessomos/1.jpg" alt="" class="img-responsive">
                    <h4 class="strong"><a href="#">Decoraciónes</a></h4>
                    <p>Para otorgar a su documento un aspecto profesional, Word proporciona encabezados, pies de página, páginas de portada y diseños de cuadro de texto que se complementan entre sí. Por ejemplo, puede agregar una portada coincidente, el encabezado y la barra lateral. Haga clic en Insertar y elija los elementos que desee de las distintas galerías.Los temas y estilos también ayudan a mantener su documento coordinado.</p>
                </div>
                <div class="col-sm-6">
                    <img src="<?php 
echo $folder;
?>
imagenes/quienessomos/2.jpg" alt="" class="img-responsive">
                    <h4 class="strong"><a href="#">Eventos </a></h4>

                    <p>Si necesita detener la lectura antes de llegar al final, Word le recordará dónde dejó la lectura, incluso en otros dispositivos.El vídeo proporciona una manera eficaz para ayudarle a demostrar el punto.</p>
                </div>
Exemple #2
0
<?php

$codtestimonio = $_GET['c'];
include_once "../../class/testimonio.php";
$testimonio = new testimonio();
$tes = $testimonio->mostrarTodoRegistro(" codtestimonio='{$codtestimonio}'", 1, "");
$col = array_shift($tes);
$folder = "../../";
include_once $folder . "cabecerahtml.php";
include_once $folder . "cabecera.php";
?>
<section class="">
    <div class="container">
        <div class="row">
            <h2 class="section-title">Modificar Testimonio</h2>
            <div class="col-sm-offset-3 col-sm-6">
                <fieldset>
                    <legend>Datos del Testimonio</legend>
                    <form action="actualizar.php" method="post" class="formulario" enctype="multipart/form-data">
                    <input type="hidden" name="codtestimonio" value="<?php 
echo $codtestimonio;
?>
">
                        <table class="table table-bordered">
                            <tr>
                                <td>Título</td>
                                <td><input type="text" name="titulo" class="form-control" value="<?php 
echo $col['titulo'];
?>
"></td>
                            </tr>
Exemple #3
0
<?php

include_once "../../class/testimonio.php";
$testimonio = new testimonio();
extract($_POST);
$col = $testimonio->mostrarTodoRegistro("titulo LIKE '{$titulo}%' and nombre LIKE '{$nombre}%'", 1, "");
?>
<table class="table table-bordered table-striped table-hover">
<thead>
<tr><th width="50">Nº</th><th>Título</th><th>Testimonio</th><th>Nombre</th><th>Facebook</th><th></th></tr>
</thead>
<?php 
foreach ($col as $c) {
    $i++;
    ?>
<tr>
    <td class="der"><?php 
    echo $i;
    ?>
</td>
    <td><?php 
    echo $c['titulo'];
    ?>
</td>
    <td><?php 
    echo $c['testimonio'];
    ?>
</td>
    <td><?php 
    echo $c['nombre'];
    ?>
Exemple #4
0
<?php

include_once "../../login/check.php";
$folder = "../../";
$codtestimonio = $_POST['codtestimonio'];
include_once "../../class/testimonio.php";
$testimonio = new testimonio();
$col = $testimonio->eliminarRegistro("codtestimonio=" . $codtestimonio);
Exemple #5
0
    $nombrearchivo = str_ireplace(" ", "_", $_FILES['img1']['name']);
    @copy($_FILES['img1']['tmp_name'], "../../imagenes/testimonio/" . $nombrearchivo);
    $img1 = $nombrearchivo;
}
if ($_FILES['img2']['name'] != "") {
    $nombrearchivo = str_ireplace(" ", "_", $_FILES['img2']['name']);
    @copy($_FILES['img2']['tmp_name'], "../../imagenes/testimonio/" . $nombrearchivo);
    $img2 = $nombrearchivo;
}
if ($_FILES['img3']['name'] != "") {
    $nombrearchivo = str_ireplace(" ", "_", $_FILES['img3']['name']);
    @copy($_FILES['img3']['tmp_name'], "../../imagenes/testimonio/" . $nombrearchivo);
    $img3 = $nombrearchivo;
}
include_once "../../class/testimonio.php";
$test = new testimonio();
$valores = array("nombre" => "'{$nombre}'", "facebook" => "'{$facebook}'", "titulo" => "'{$titulo}'", "testimonio" => "'{$testimonio}'", "img1" => "'{$img1}'", "img2" => "'{$img2}'", "img3" => "'{$img3}'");
$test->insertarRegistro($valores);
$folder = "../../";
include_once $folder . "cabecerahtml.php";
include_once $folder . "cabecera.php";
?>
<section class="">
    <div class="container">
        <div class="row">
            <h2 class="section-title">Mensaje de Confirmación</h2>
            <div class="col-sm-offset-3 col-sm-6">
                <div class="panel panel-default">
                    <div class="panel-heading"></div>
                    <div class="panel-body">
                        <h5>Su Testimonio se Registro Correctamente</h5>
Exemple #6
0
<?php

include_once "../../login/check.php";
extract($_POST);
$codtestimonio = $_POST['codtestimonio'];
include_once "../../class/testimonio.php";
$test = new testimonio();
$valores = array("nombre" => "'{$nombre}'", "facebook" => "'{$facebook}'", "titulo" => "'{$titulo}'", "testimonio" => "'{$testimonio}'");
if ($_FILES['img1']['name'] != "") {
    $nombrearchivo = str_ireplace(" ", "_", $_FILES['img1']['name']);
    @copy($_FILES['img1']['tmp_name'], "../../imagenes/testimonio/" . $nombrearchivo);
    $img1 = $nombrearchivo;
    $valores['img1'] = "'{$img1}'";
}
if ($_FILES['img2']['name'] != "") {
    $nombrearchivo = str_ireplace(" ", "_", $_FILES['img2']['name']);
    @copy($_FILES['img2']['tmp_name'], "../../imagenes/testimonio/" . $nombrearchivo);
    $img1 = $nombrearchivo;
    $valores['img2'] = "'{$img2}'";
}
if ($_FILES['img3']['name'] != "") {
    $nombrearchivo = str_ireplace(" ", "_", $_FILES['img3']['name']);
    @copy($_FILES['img3']['tmp_name'], "../../imagenes/testimonio/" . $nombrearchivo);
    $img1 = $nombrearchivo;
    $valores['img3'] = "'{$img3}'";
}
$test->actualizarRegistro($valores, "codtestimonio=" . $codtestimonio);
$folder = "../../";
include_once $folder . "cabecerahtml.php";
include_once $folder . "cabecera.php";
?>