示例#1
0
-->

<!doctype html>
<html lang="en">
    <?php 
include_once '../../controladores/ctrl_permisos.php';
$includeIdioma = permisos("juradoNacional", "../../");
include_once $includeIdioma;
//Datos necesarios
$premio = $_GET['premio'];
$reto = $_GET['reto'];
$equipo = $_GET['equipo'];
$usuario = $_SESSION['login_usuario'];
include_once '../../modelo/model_solucion.php';
$s = new Solucion();
$datos = $s->consultar(false, $equipo, $reto);
//Usado para saber si el usuario ya ha votado y mostrar el voto
include_once "../../modelo/model_jurado_puntua_solucion.php";
$v = new Jurado_puntua_Solucion();
$voto = null;
if ($v->exists($usuario, $premio, false, $equipo, $reto)) {
    $voto = $v->consultar($usuario, $premio, false, $equipo, $reto);
}
?>
    
    <body>
        <div class="wrapper">
            <!-- Barra de navegacion lateral -->
            <?php 
include_once '../Sidebars/jn_sidebar.php';
jn_sidebar('', 'class="active"');
示例#2
0
Fecha: 12/01/2016
======================================================================
-->
<!doctype html>
<html lang="en">
    <?php 
include_once '../../controladores/ctrl_permisos.php';
$includeIdioma = permisos("participante", "../../");
include_once $includeIdioma;
$reto = $_GET['reto'];
include_once "../../modelo/model_usuario.php";
$usu = new Usuario();
$datos = $usu->consultar($_SESSION['login_usuario']);
include_once "../../modelo/model_solucion.php";
$sol = new Solucion();
$datosSol = $sol->consultar(true, $datos['equipo'], $reto);
?>

    <body>
        <div class="wrapper">
            <!-- Barra de navegacion lateral -->
            <?php 
include_once '../Sidebars/p_sidebar.php';
p_sidebar('', '', 'class="active"');
?>
            <div class="main-panel">
                <!-- Barra de logout superior -->
                <nav class="navbar navbar-default navbar-fixed">
                    <div class="container-fluid">    
                        <div class="navbar-header">
                            <a class="navbar-brand" href="#">Propuesta de solución</a>
示例#3
0
</th>
                                        <th><?php 
echo $idioma["reto"];
?>
</th>
                                        <th>Sede</th>
                                        <th><?php 
echo $idioma["votar"];
?>
</th>
                                    </thead>
                                    <tbody>
                                        <?php 
$count = 0;
for ($i = 0; $i < count($soluciones); $i++) {
    $s = $sol->consultar(false, $soluciones[$i]['equipo'], $soluciones[$i]['reto']);
    ?>
                                        <tr>
                                            <td width='30%'><?php 
    echo $s['titulo'];
    ?>
</td>
                                            <td width='40%'><?php 
    echo $s['equipo'];
    ?>
</td>
                                            <td width='40%'><?php 
    echo $s['reto'];
    ?>
</td>
                                            <td width='40%'><?php