Skip to content
Snippets Groups Projects
Commit 298a8f1f authored by jaimarq's avatar jaimarq
Browse files

borrado cache plantillas

parent b3cda25d
No related branches found
No related tags found
No related merge requests found
Showing
with 0 additions and 3293 deletions
No preview for this file type
<?php
/* Smarty version 3.1.38, created on 2022-06-01 10:51:06
from '/volume1/web/velostat/templates/inicio.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.38',
'unifunc' => 'content_6297287ae0f201_59560290',
'has_nocache_code' => false,
'file_dependency' =>
array (
'145144529a8d2b4be7493fd8bcedd9b43fc5c59a' =>
array (
0 => '/volume1/web/velostat/templates/inicio.tpl',
1 => 1654017270,
2 => 'file',
),
),
'includes' =>
array (
'file:head.tpl' => 1,
'file:footer.tpl' => 1,
),
),false)) {
function content_6297287ae0f201_59560290 (Smarty_Internal_Template $_smarty_tpl) {
?><!DOCTYPE html>
<!-- El head con los estilos y el javascript genérico -->
<?php $_smarty_tpl->_subTemplateRender("file:head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<div class="row">
<div class="x_panel">
<div class="x_title">
<h2> Bienvenido a la <?php echo $_smarty_tpl->tpl_vars['titulo']->value;?>
<small></small></h2>
<div class="clearfix"></div>
</div>
<div class="x_content">
<form class="form-horizontal form-label-left" action="login.php" method="post">
<!-- Mensaje en caso de error de autenticación -->
<div class="x_title">
<p style="color:red;"><?php echo $_smarty_tpl->tpl_vars['mensaje']->value;?>
</p>
<div class="clearfix"></div>
</div>
<!-- Usuario -->
<div class="item form-group">
<label class="control-label col-md-6 col-sm-6 col-xs-12" for="name">Nick de usuario
</label>
<div class="col-md-3 col-sm-3 col-xs-3">
<input class="select2_single form-control" name="login">
</div>
</div>
<!-- Pass -->
<div class="item form-group">
<label class="control-label col-md-6 col-sm-6 col-xs-12" for="name">Contraseña
</label>
<div class="col-md-3 col-sm-3 col-xs-3">
<input class="select2_single form-control" required maxlength="40" type="password" name="pass">
</div>
</div>
<div class="item form-group">
<div class="col-md-6 col-sm-6 col-xs-12"></div>
<div class="col-md-3 col-sm-3 col-xs-3">
<button type="submit" class="p1" class="btn btn-success">Enviar</button>
</div>
</div>
</form>
</div>
</div>
<?php $_smarty_tpl->_subTemplateRender("file:footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}
<?php
/* Smarty version 3.1.38, created on 2022-06-07 19:35:32
from '/volume1/web/velostat/templates/result.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.38',
'unifunc' => 'content_629f8c6448db59_66315122',
'has_nocache_code' => false,
'file_dependency' =>
array (
'15ac0ec4075859219bc813f249c66f9ae8e25cd3' =>
array (
0 => '/volume1/web/velostat/templates/result.tpl',
1 => 1654623318,
2 => 'file',
),
),
'includes' =>
array (
'file:head.tpl' => 1,
'file:barra.tpl' => 1,
'file:footer.tpl' => 1,
),
),false)) {
function content_629f8c6448db59_66315122 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/volume1/web/velostat/plugins/modifier.date_format.php','function'=>'smarty_modifier_date_format',),));
?>
<!DOCTYPE html>
<!-- El head con los estilos y el javascript genérico -->
<?php $_smarty_tpl->_subTemplateRender("file:head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Barra de menu -->
<?php $_smarty_tpl->_subTemplateRender("file:barra.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Zona Central -->
<div class="" role="main">
<div class="tablas" id="recarga">
<h4 style = "text-align: center;">LISTADO DE PACIENTES</h4>
<div class="clearfix"></div>
<table id="datatable" class="table table-striped table-condensed table-bordered" cellspacing="0" width="100%" data-order="[[ 1, &quot;asc&quot; ]]" style="font-size:13px; ">
<thead>
<tr>
<td>DNI</td>
<td>Nombre</td>
<td>Apellidos</td>
<td>Sexo</td>
<td>Edad</td>
<td>Anotaciones</td>
</tr>
</thead>
<tbody>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['entrada']->value, 'element');
$_smarty_tpl->tpl_vars['element']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['element']->value) {
$_smarty_tpl->tpl_vars['element']->do_else = false;
?>
<tr onclick="selecion()" data-toggle="tooltip" data-placement="top" title="Click para ver documentación relaccionada" >
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[0];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[1];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[2];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[3];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[4];?>
(<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['element']->value[6],"%d/%m/%Y");?>
)</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[5];?>
</td>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table> <!-- Se cierra la tabla -->
<?php echo '<script'; ?>
type="text/javascript">
$(document).ready(function() {
var columnas;
if (window.innerWidth > 280) {
columnas= [
{ width: '10%', targets: 0 },
{ width: '10%', targets: 1 },
{ width: '10%', targets: 2 },
{ width: '10%', targets: 3 },
{ width: '10%', targets: 4 },
{ width: '10%', targets: 5 }
];
} else {
columnas= [
//no hago nada dejo que el tamaño se auto ajuste
];
}
$('#datatable').DataTable({
dom: 'Bfrtip',
lengthMenu: [
[ 100, 250, 500, -1 ],
[ '100 filas', '250 filas', '500 filas', 'Todas las filas' ]
],
autoWidth: false,
fixedHeader: false,
columnDefs: columnas,
FixedColumns: true ,
buttons: [
'pageLength',
{
extend: 'collection',
text: 'Exportar',
buttons: [
'copy',
{
extend: 'pdf',
text: 'PDF',
exportOptions: {
modifier: {
page: 'current'
}
},
message: 'PDF creado por Mantenimiento M3.',
header: true,
title: 'Prioridades del Kaizen',
//orientation: 'landscape',
download: 'open',
customize: function(doc) {
doc.defaultStyle.fontSize = 6;
doc.pageOrientation = 'landscape';
doc.styles.tableHeader.fontSize = 7;
doc.styles.tableHeader.color ='white';
doc.styles.title.fontSize = 10;
}
},
'csv', 'excel',
{
extend: 'print',
text: 'Imprimir',
autoPrint: true,
exportOptions: {
columns: ':visible',
},
customize: function (win) {
$(win.document.body).find('table').addClass('display').css('font-size', '7px');
$(win.document.body).find('tr:nth-child(odd) td').each(function(index){
$(this).css('background-color','#D0D0D0');
});
//mio
$(win.document.body).find('h1').css('font-size','20px');
$(win.document.body).find('h1').css('margin-bottom','20px');
$(win.document.body).find('h1').css('text-align','center');
}
}
]
}
]
});
} );
<?php echo '</script'; ?>
>
</div>
</div>
<?php echo '<script'; ?>
type="text/javascript">
function selecion(){
$(document).ready(function() {
var table = $('#datatable').DataTable();
$('#datatable tbody').on( 'click', 'tr', function () {
$(this).toggleClass('selected');
window.location.href="pac_reg.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
&id="+table.rows('.selected').data()[0][0] ;
} );
} );
}
<?php echo '</script'; ?>
>
<?php $_smarty_tpl->_subTemplateRender("file:footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}
<?php
/* Smarty version 3.1.38, created on 2022-06-07 19:47:46
from '/volume1/web/velostat/templates/ges_ens.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.38',
'unifunc' => 'content_629f8f42b6d300_18587096',
'has_nocache_code' => false,
'file_dependency' =>
array (
'15bc92026fa23060a308aa78bb9dfe52e6927371' =>
array (
0 => '/volume1/web/velostat/templates/ges_ens.tpl',
1 => 1654624063,
2 => 'file',
),
),
'includes' =>
array (
'file:head.tpl' => 1,
'file:barra.tpl' => 1,
'file:footer.tpl' => 1,
),
),false)) {
function content_629f8f42b6d300_18587096 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/volume1/web/velostat/plugins/modifier.date_format.php','function'=>'smarty_modifier_date_format',),));
?>
<!DOCTYPE html>
<!-- El head con los estilos y el javascript genérico -->
<?php $_smarty_tpl->_subTemplateRender("file:head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Barra de menu -->
<?php $_smarty_tpl->_subTemplateRender("file:barra.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Zona Central -->
<?php echo '<script'; ?>
type="text/javascript">
function limita(maximoCaracteres) {
var elemento = document.getElementById("texto");
if(elemento.value.length >= maximoCaracteres ) {
return false;
}
else {
return true;
}
}
<?php echo '</script'; ?>
>
<div class="" role="main">
<div class="">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<?php if ($_smarty_tpl->tpl_vars['mod_campos']->value) {?>
<div class="x_content">
<h4 style = "text-align: center;"><?php echo $_smarty_tpl->tpl_vars['mensaje']->value;?>
</h4>
<div class="clearfix"></div>
<form class="form-horizontal form-label-left" action="ges_ens_val.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
&id=<?php echo $_smarty_tpl->tpl_vars['mod_campos']->value[0];?>
" method="post">
<!-- id_ensayo -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">id_ensayo *
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control col-md-7 col-xs-12" data-validate-length-range="11" name="id_ensayo" required disabled type="text"
value="<?php echo $_smarty_tpl->tpl_vars['mod_campos']->value[0];?>
" >
</div>
</div>
<!-- Tipo/Nombre -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tipo *
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control col-md-7 col-xs-12" data-validate-length-range="50" name="tipo" required type="text" value="<?php echo $_smarty_tpl->tpl_vars['mod_campos']->value[1];?>
" >
</div>
</div>
<!-- Colocacion Sensores -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Colocación sensores *
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<textarea class="form-control col-md-7 col-xs-12" rows="3" data-validate-length-range="300" name="coloc_sensores" required type="text"><?php echo $_smarty_tpl->tpl_vars['mod_campos']->value[2];?>
</textarea>
</div>
</div>
<!-- Duracion -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Duracion *
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control col-md-7 col-xs-12" data-validate-length-range="11" name="duracion" required type="decimal" value="<?php echo $_smarty_tpl->tpl_vars['mod_campos']->value[3];?>
" >
</div>
</div>
<!-- Repeticiones -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Repeticiones *
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control col-md-7 col-xs-12" data-validate-length-range="11" name="repeticiones" required type="decimal" value="<?php echo $_smarty_tpl->tpl_vars['mod_campos']->value[4];?>
" >
</div>
</div>
<!-- Comentarios -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Comentarios
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<textarea class="form-control col-md-7 col-xs-12" data-validate-length-range="500" name="comentarios" type="text" value="<?php echo $_smarty_tpl->tpl_vars['mod_campos']->value[5];?>
" ></textarea>
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="col-md-6 col-md-offset-3">
<button onclick="cancel()" type="button" class="btn btn-warning">Cancelar</button>
<button id="send" type="submit" class="btn btn-success">Guardar</button>
<button onclick="eliminar()" type="button" class="btn btn-danger">Eliminar</button>
</div>
</div>
</form>
</div>
<?php } else { ?>
<!-- tabla para seleccionar patologia -->
<div class="x_content">
<h4 style = "text-align: center;"><?php echo $_smarty_tpl->tpl_vars['mensaje']->value;?>
</h4>
<div class="clearfix"></div>
<div class="tablas">
<table id="example" class="table table-striped table-bordered" cellspacing="0" width="99%" role="grid" data-order="[[ 1, &quot;asc&quot; ]]">
<thead>
<tr>
<td>id_ensayo</td>
<td>Tipo / Nombre</td>
<td>Colocación Sensores</td>
<td>Duración</td>
<td>Repeticiones</td>
<td>Comentarios</td>
<td>Fecha creación</td>
<td>Fecha modificación</td>
</tr>
</thead>
<tbody>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['campos']->value, 'element');
$_smarty_tpl->tpl_vars['element']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['element']->value) {
$_smarty_tpl->tpl_vars['element']->do_else = false;
?>
<tr >
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[0];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[1];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[2];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[3];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[4];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[5];?>
</td>
<td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['element']->value[6],"%d/%m/%Y");?>
</td>
<td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['element']->value[7],"%d/%m/%Y");?>
</td>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
<div class="col-md-6 col-md-offset-3">
<button onclick="n_ensayo()" type="button" class="btn btn-primary">Nuevo ensayo</button>
</div>
</div>
<?php }?>
</div>
</div>
</div>
</div>
</div>
<?php echo '<script'; ?>
type="text/javascript">
//estado();
function cancel() {
window.location.href="ges_ens.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
";
}
function eliminar() {
var reply=confirm("¿Seguro que desea borrar el ensayo? \nSe borrarán todas las pruebas asociadas a este ensayo.")
if (reply==true)
{
window.location.href="ges_ens.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
&id=<?php echo $_smarty_tpl->tpl_vars['mod_campos']->value[0];?>
&accion=1";
}
else
{
//AQUI NO HARIA NADA, SE CERRARIA EL POPUP Y SEGUIRIA EN LA PAGINA ACTUAL
}
}
function n_ensayo() {
window.location.href="ges_ens_nuevo.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
";
}
$(document).ready(function() {
$('#example').DataTable({
lengthMenu: [
[ 10, 25, 100, -1 ],
[ '10 filas', '25 filas', '100 filas', 'Todas las filas' ]
]
});
var table = $('#example').DataTable();
$('#example tbody').on( 'click', 'tr', function () {
$(this).toggleClass('selected');
window.location.href="ges_ens.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
&id="+table.rows('.selected').data()[0][0];
} );
} );
<?php echo '</script'; ?>
>
<?php $_smarty_tpl->_subTemplateRender("file:footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}
<?php
/* Smarty version 3.1.38, created on 2022-05-31 19:14:46
from '/volume1/web/velostat/templates/mod_gestor.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.38',
'unifunc' => 'content_62964d06dbdfd6_75887266',
'has_nocache_code' => false,
'file_dependency' =>
array (
'26155bdc414dedbfe8097c8bcba8253443b04dbf' =>
array (
0 => '/volume1/web/velostat/templates/mod_gestor.tpl',
1 => 1654017270,
2 => 'file',
),
),
'includes' =>
array (
'file:head.tpl' => 1,
'file:barra.tpl' => 1,
'file:footer.tpl' => 1,
),
),false)) {
function content_62964d06dbdfd6_75887266 (Smarty_Internal_Template $_smarty_tpl) {
?><!DOCTYPE html>
<!-- El head con los estilos y el javascript genérico -->
<?php $_smarty_tpl->_subTemplateRender("file:head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Barra de menu -->
<?php $_smarty_tpl->_subTemplateRender("file:barra.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Zona Central -->
<div class="" role="main">
<div class="">
<div class="page-title">
<div class="title_left">
</div>
</div>
<div class="clearfix"></div>
<div class="row">
<?php if ($_smarty_tpl->tpl_vars['mod_campos']->value) {?>
<div class="col-md-4 col-sm-4 col-xs-12">
<div class="x_panel">
<div class="x_content">
<div class="x_title">
<h2> <?php echo $_smarty_tpl->tpl_vars['mensaje']->value;?>
<small></small></h2>
<div class="clearfix"></div>
</div>
<div class="profile_pic">
<img src="media/images/personal/<?php echo $_smarty_tpl->tpl_vars['mod_campos']->value[0];?>
.png" alt="..." class="img-circle profile_img">
</div>
</div>
</div>
</div>
<div class="col-md-8 col-sm-8 col-xs-12">
<?php } else { ?>
<div class="col-md-12 col-sm-12 col-xs-12">
<?php }?>
<div class="x_panel">
<?php if ($_smarty_tpl->tpl_vars['mod_campos']->value) {?>
<div class="x_content">
<form class="form-horizontal form-label-left" action="mod_gestor_val.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
&id=<?php echo $_smarty_tpl->tpl_vars['mod_campos']->value[0];?>
" method="post">
<!-- dni_trabajador -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">DNI Trabajador *
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control col-md-7 col-xs-12" data-validate-length-range="9" name="id_ensayo" required disabled type="text"
value="<?php echo $_smarty_tpl->tpl_vars['mod_campos']->value[0];?>
" >
</div>
</div>
<!-- Nombre -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Nombre *
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control" required maxlength="40" type="text" name="nombre" value="<?php echo $_smarty_tpl->tpl_vars['mod_campos']->value[2];?>
">
</div>
</div>
<!-- Apellidos -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Apellidos *
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control" required maxlength="50" type="text" name="apellidos" value="<?php echo $_smarty_tpl->tpl_vars['mod_campos']->value[3];?>
">
</div>
</div>
<!-- login -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Login *
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control" required maxlength="10" type="text" name="login" value="<?php echo $_smarty_tpl->tpl_vars['mod_campos']->value[1];?>
">
</div>
</div>
<!-- titulacion -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Titulación *
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control" required maxlength="20" type="text" name="titulacion" value="<?php echo $_smarty_tpl->tpl_vars['mod_campos']->value[4];?>
">
</div>
</div>
<!-- Pass -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Contraseña
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control" maxlength="40" minlength="6" type="password" placeholder="Mínimo 6 carácteres" name="pass">
</div>
</div>
<!-- Repass -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Repita contraseña
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control" maxlength="40" minlength="6" type="password" placeholder="Mínimo 6 carácteres" name="passrw">
</div>
</div>
<!-- Permisos -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Permisos *
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control" maxlength="1" required type="text" name="permisos" placeholder="0:R - 1:RW - 2:RWX" value="<?php echo $_smarty_tpl->tpl_vars['mod_campos']->value[5];?>
">
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="col-md-6 col-md-offset-3">
<button type="button" onclick="cancel()" class="btn btn-warning">Cancelar</button>
<button id="send" type="submit" class="btn btn-success">Validar</button>
</div>
</div>
</form>
</div>
<?php } else { ?>
<div class="x_content">
<h4 style = "text-align: center;"><?php echo $_smarty_tpl->tpl_vars['mensaje']->value;?>
</h4>
<div class="tablas">
<table id="example" class="table table-striped table-bordered" cellspacing="0" width="100%" role="grid" data-order="[[ 2, &quot;asc&quot; ]]">
<thead>
<tr>
<td>DNI</td>
<td>Foto</td>
<td>Login</td>
<td>Nombre</td>
<td>Apellidos</td>
</tr>
</thead>
<tbody>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['campos']->value, 'element');
$_smarty_tpl->tpl_vars['element']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['element']->value) {
$_smarty_tpl->tpl_vars['element']->do_else = false;
?>
<tr >
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[0];?>
</td>
<td>
<div class="profile_pic">
<img style="padding: 0; margin-top: 0;" src="media/images/personal/<?php echo $_smarty_tpl->tpl_vars['element']->value[0];?>
.png" alt="..." class="img-circle profile_img">
</div>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[1];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[2];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[3];?>
</td>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
</div>
<?php }?>
</div>
</div>
</div>
</div>
</div>
<?php echo '<script'; ?>
type="text/javascript">
function cancel() {
window.location.href="result.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
";
}
$(document).ready(function() {
$('#example').DataTable({
lengthMenu: [
[ -1 ],
[ 'Todas las filas' ]
]
});
var table = $('#example').DataTable();
$('#example tbody').on( 'click', 'tr', function () {
$(this).toggleClass('selected');
window.location.href="mod_gestor.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
&nombre="+table.rows('.selected').data()[0][0];
} );
} );
<?php echo '</script'; ?>
>
<?php $_smarty_tpl->_subTemplateRender("file:footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}
<?php
/* Smarty version 3.1.38, created on 2022-06-09 13:43:02
from '/volume1/web/velostat/templates/footer.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.38',
'unifunc' => 'content_62a1dcc6296863_93373508',
'has_nocache_code' => false,
'file_dependency' =>
array (
'2fd17bd16b8d4c8a67bf614d2ba8745267e73f3a' =>
array (
0 => '/volume1/web/velostat/templates/footer.tpl',
1 => 1654774975,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_62a1dcc6296863_93373508 (Smarty_Internal_Template $_smarty_tpl) {
?> <!-- Java Script... -->
<!--********************************************************
<?php echo '<script'; ?>
type="text/javascript" src="/sources/fastclick/lib/fastclick.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
type="text/javascript" src="/sources/nprogress/nprogress.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
type="text/javascript" src="/sources/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.concat.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
type="text/javascript" src="/sources/dropzone/dist/dropzone.js"><?php echo '</script'; ?>
>-->
<!-- jquery.inputmask
<?php echo '<script'; ?>
type="text/javascript" src="/sources/jquery.inputmask/dist/min/jquery.inputmask.bundle.min.js"><?php echo '</script'; ?>
>-->
<?php echo '<script'; ?>
type="text/javascript" src="/sources/js/custom.min.iacob.js"><?php echo '</script'; ?>
>
<!-- ECharts -->
<?php echo '<script'; ?>
type="text/javascript" src="/sources/echarts/dist/echarts.min.js"><?php echo '</script'; ?>
>
<!-- hemos traducido parte del fichero para la barra de búsqueda -->
<?php echo '<script'; ?>
type="text/javascript" src="/sources/js/jquery.dataTables.es.min.js"><?php echo '</script'; ?>
>
<!-- <?php echo '<script'; ?>
type="text/javascript" src="/sources/js/moment.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
type="text/javascript" src="/sources/fullcalendar-3.5.1/fullcalendar.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
type="text/javascript" src="/sources/fullcalendar-3.5.1/locale/es.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
type="text/javascript" src="/sources/js/datetime.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
type="text/javascript" src="/sources/js/transition.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
type="text/javascript" src="/sources/js/collapse.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
type="text/javascript" src="/sources/js/bootstrap-datetimepicker.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
type="text/javascript" src="/sources/js/daterangepicker.js"><?php echo '</script'; ?>
>-->
<!-- para datatables -->
<?php echo '<script'; ?>
type="text/javascript" src="/sources/js/dataTables.bootstrap.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
type="text/javascript" src="/sources/js/dataTables.fixedColumns.min.js"><?php echo '</script'; ?>
>
<!-- para los botones pdf excel csv print... -->
<!-- hemos traducido parte del fichero para el boton "show" -->
<?php echo '<script'; ?>
type="text/javascript" src="/sources/Buttons-1.3.1/js/dataTables.buttons.es.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
type="text/javascript" src="/sources/Buttons-1.3.1/js/buttons.flash.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
type="text/javascript" src="/sources/JSZip-3.1.3/jszip.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
type="text/javascript" src="/sources/Buttons-1.3.1/js/buttons.html5.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
type="text/javascript" src="/sources/Buttons-1.3.1/js/buttons.print.min.js"><?php echo '</script'; ?>
>
</body>
</html><?php }
}
<?php
/* Smarty version 3.1.38, created on 2022-06-09 15:25:07
from '/volume1/web/velostat/templates/add_reg.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.38',
'unifunc' => 'content_62a1f4b35fbd58_36987265',
'has_nocache_code' => false,
'file_dependency' =>
array (
'345219ed2de3d5f763786a4b5459439094ef0f62' =>
array (
0 => '/volume1/web/velostat/templates/add_reg.tpl',
1 => 1654781102,
2 => 'file',
),
),
'includes' =>
array (
'file:head.tpl' => 1,
'file:barra.tpl' => 1,
'file:footer.tpl' => 1,
),
),false)) {
function content_62a1f4b35fbd58_36987265 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/volume1/web/velostat/plugins/modifier.date_format.php','function'=>'smarty_modifier_date_format',),));
?>
<!DOCTYPE html>
<!-- El head con los estilos y el javascript genérico -->
<?php $_smarty_tpl->_subTemplateRender("file:head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Barra de menu -->
<?php $_smarty_tpl->_subTemplateRender("file:barra.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Zona Central -->
<?php echo '<script'; ?>
type="text/javascript">
function limita(maximoCaracteres) {
var elemento = document.getElementById("texto");
if(elemento.value.length >= maximoCaracteres ) {
return false;
}
else {
return true;
}
}
<?php echo '</script'; ?>
>
<div class="" role="main">
<div class="">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_content">
<!-- tabla para seleccionar sujeto -->
<div class="x_content">
<h4 style = "text-align: center;"><?php echo $_smarty_tpl->tpl_vars['mensaje']->value;?>
</h4>
<div class="tablas">
<table id="example" class="table table-striped table-bordered" cellspacing="0" width="100%" role="grid" data-order="[[ 2, &quot;asc&quot; ]]">
<thead>
<tr>
<td>DNI</td>
<td>Nombre</td>
<td>Apellidos</td>
<td>Sexo</td>
<td >Edad</td>
<td>Anotaciones del paciente</td>
</tr>
</thead>
<tbody>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['campos']->value, 'element');
$_smarty_tpl->tpl_vars['element']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['element']->value) {
$_smarty_tpl->tpl_vars['element']->do_else = false;
?>
<tr >
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[0];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[1];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[2];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[3];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[4];?>
(<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['element']->value[6],"%d/%m/%Y");?>
)</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[5];?>
</td>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
</div>
<h2 style = "text-align: center;">Información del paciente</h2>
<form class="form-horizontal form-label-left" action="add_reg_val.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
" method="post">
<!-- DNI -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">DNI
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="name" class="form-control col-md-7 col-xs-12" name="dni_paciente" type="text" value="<?php echo $_smarty_tpl->tpl_vars['sujeto']->value[0];?>
" readonly="readonly" >
</div>
</div>
<!-- Nombre -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Nombre
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="name" class="form-control col-md-7 col-xs-12" name="nombre" type="text" value="<?php echo $_smarty_tpl->tpl_vars['sujeto']->value[1];?>
" readonly="readonly">
</div>
</div>
<!-- Apellidos -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Apellidos
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="name" class="form-control col-md-7 col-xs-12" name="apellidos" type="text" value="<?php echo $_smarty_tpl->tpl_vars['sujeto']->value[2];?>
" readonly="readonly" >
</div>
</div>
<!-- Edad -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Fecha nacimiento
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="name" class="form-control col-md-7 col-xs-12" name="edad" type="date" value="<?php echo $_smarty_tpl->tpl_vars['sujeto']->value[4];?>
" readonly="readonly" >
</div>
</div>
<!-- ensayo -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tipo de ensayo *
</label>
<div class="col-md-6 col-sm-6 col-xs-12" >
<select class="select2_single form-control" name="ensayo" required>
<option value=""></option>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['ensayos']->value, 'element');
$_smarty_tpl->tpl_vars['element']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['element']->value) {
$_smarty_tpl->tpl_vars['element']->do_else = false;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['element']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['element']->value;?>
</option>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</select>
</div>
</div>
<!-- Simetria -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Simetria de la prueba
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="name" class="form-control col-md-7 col-xs-12" data-validate-length-range="10" name="simetria" type="text">
</div>
</div>
<!-- Anotaciones -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Anotaciones de la prueba
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="name" class="form-control col-md-7 col-xs-12" data-validate-length-range="500" name="anotaciones" type="text">
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="col-md-6 col-md-offset-3">
<button onclick="cancel()" type="button" class="btn btn-warning">Cancelar</button>
<?php if ($_smarty_tpl->tpl_vars['sujeto']->value[0] != '') {?><button id="send" type="submit" class="btn btn-success">Iniciar</button><?php }?>
<?php if ($_smarty_tpl->tpl_vars['sujeto']->value[0] != '') {?><button onclick="limpiar()" type="button" class="btn btn-info">Limpiar</button><?php }?>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo '<script'; ?>
type="text/javascript">
//estado();
function cancel() {
window.location.href="pac_reg.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
&id=<?php echo $_smarty_tpl->tpl_vars['sujeto']->value[0];?>
";
}
function limpiar() {
window.location.href="add_reg.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
";
}
$(document).ready(function() {
$('#example').DataTable({
lengthMenu: [
[ 10, 25, 100, -1 ],
[ '10 filas', '25 filas', '100 filas', 'Todas las filas' ]
]
});
var table = $('#example').DataTable();
$('#example tbody').on( 'click', 'tr', function () {
$(this).toggleClass('selected');
window.location.href="add_reg.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
&id="+table.rows('.selected').data()[0][0];
} );
} );
<?php echo '</script'; ?>
>
<?php $_smarty_tpl->_subTemplateRender("file:footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}
<?php
/* Smarty version 3.1.38, created on 2022-06-07 20:03:41
from '/volume1/web/velostat/templates/ver_pruebas_sujetos.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.38',
'unifunc' => 'content_629f92fd5cd7f2_62336760',
'has_nocache_code' => false,
'file_dependency' =>
array (
'3d61182dbd577100504984bebb40a5601d3a37a6' =>
array (
0 => '/volume1/web/velostat/templates/ver_pruebas_sujetos.tpl',
1 => 1654625010,
2 => 'file',
),
),
'includes' =>
array (
'file:head.tpl' => 1,
'file:barra.tpl' => 1,
'file:footer.tpl' => 1,
),
),false)) {
function content_629f92fd5cd7f2_62336760 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/volume1/web/velostat/plugins/modifier.date_format.php','function'=>'smarty_modifier_date_format',),));
?>
<!DOCTYPE html>
<!-- El head con los estilos y el javascript genérico -->
<?php $_smarty_tpl->_subTemplateRender("file:head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Barra de menu -->
<?php $_smarty_tpl->_subTemplateRender("file:barra.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Zona Central -->
<div class="" role="main">
<h4 style = "text-align: center;"><?php echo $_smarty_tpl->tpl_vars['mensaje']->value;?>
</h4>
<div class="ln_solid"></div>
<div class="x_content">
<div class="">
<h4 style = "text-align: center;">LISTADO DE PRUEBAS</h4>
<table id="example" class="table table-striped table-bordered" cellspacing="0" width="99%" role="grid" data-order="[[ 2, &quot;desc&quot; ]]" style="font-size:13px;">
<thead>
<tr>
<td width="80">id_prueba</td>
<td width="200">Tipo</td>
<td width="120">Fecha - Hora</td>
<td width="80">Sexo</td>
<td width="80">Edad</td>
<td>Simetria</td>
<td>Anotaciones</td>
</tr>
</thead>
<tbody>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['entrada']->value, 'element');
$_smarty_tpl->tpl_vars['element']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['element']->value) {
$_smarty_tpl->tpl_vars['element']->do_else = false;
?>
<tr data-toggle="tooltip" data-placement="top" title="Click para ver documentación relaccionada" >
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[0];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[1];?>
</td>
<td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['element']->value[2],"%d/%m/%Y");?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[3];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[4];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[5];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[6];?>
</td>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
</div>
</div>
<?php echo '<script'; ?>
type="text/javascript">
$(document).ready(function() {
$('#example').DataTable({
lengthMenu: [
[ 10, 25, 100, -1 ],
[ '10 filas', '25 filas', '100 filas', 'Todas las filas' ]
]
});
var table = $('#example').DataTable();
$('#example tbody').on( 'click', 'tr', function () {
$(this).toggleClass('selected');
window.location.href="ver_datos_sujeto.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
&id="+table.rows('.selected').data()[0][0];
} );
} );
<?php echo '</script'; ?>
>
<?php $_smarty_tpl->_subTemplateRender("file:footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}
<?php
/* Smarty version 3.1.38, created on 2022-06-07 19:59:32
from '/volume1/web/velostat/templates/ver_datos.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.38',
'unifunc' => 'content_629f9204b67ea6_05958572',
'has_nocache_code' => false,
'file_dependency' =>
array (
'478051947e1a0b67b97cd373065cddf4f166d358' =>
array (
0 => '/volume1/web/velostat/templates/ver_datos.tpl',
1 => 1654624764,
2 => 'file',
),
),
'includes' =>
array (
'file:head.tpl' => 1,
'file:barra.tpl' => 1,
'file:footer.tpl' => 1,
),
),false)) {
function content_629f9204b67ea6_05958572 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/volume1/web/velostat/plugins/modifier.date_format.php','function'=>'smarty_modifier_date_format',),));
?>
<!DOCTYPE html>
<!-- El head con los estilos y el javascript genérico -->
<?php $_smarty_tpl->_subTemplateRender("file:head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Barra de menu -->
<?php $_smarty_tpl->_subTemplateRender("file:barra.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Zona Central -->
<div class="" role="main">
<div class="x_content">
<canvas id="myChart"></canvas>
<?php echo '<script'; ?>
src="https://cdn.jsdelivr.net/npm/chart.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
>
const labels = [<?php echo $_smarty_tpl->tpl_vars['etiquetas']->value;?>
];
const tension = 0.3;
const data = {
labels: labels,
datasets: [{
label: 'Sensor 1',
data: [<?php echo $_smarty_tpl->tpl_vars['s1']->value;?>
],
fill: false,
borderColor: 'rgb(75, 192, 192)',
tension: tension
},{
label: 'Sensor 2',
data: [<?php echo $_smarty_tpl->tpl_vars['s2']->value;?>
],
fill: false,
borderColor: 'rgb(255, 45, 0)',
tension: tension
},{
label: 'Sensor 3',
data: [<?php echo $_smarty_tpl->tpl_vars['s3']->value;?>
],
fill: false,
borderColor: 'rgb(255, 255, 0 )',
tension: tension
},{
label: 'Sensor 4',
data: [<?php echo $_smarty_tpl->tpl_vars['s4']->value;?>
],
fill: false,
borderColor: 'rgb(0, 255, 46 )',
tension: tension
},{
label: 'Sensor 5',
data: [<?php echo $_smarty_tpl->tpl_vars['s5']->value;?>
],
fill: false,
borderColor: 'rgb(0, 27, 255 )',
tension: tension
},{
label: 'Sensor 6',
data: [<?php echo $_smarty_tpl->tpl_vars['s6']->value;?>
],
fill: false,
borderColor: 'rgb(255, 0, 240 )',
tension: tension
}]
};
const config = {
type: 'line',
data,
options: {
responsive: true,
elements: {
point:{
pointBorderWidth:0.1,
pointHitRadius:0.1,
pointBorderColor:'rgba(0, 0, 0, 0)',
pointBackgroundColor:'rgba(0, 0, 0, 0)',
}
},
plugins: {
title: {
display: true,
text: '<?php echo $_smarty_tpl->tpl_vars['tipo']->value;?>
de <?php echo $_smarty_tpl->tpl_vars['nombre']->value;?>
, a fecha de: <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['fecha']->value,"%d/%m/%Y %H:%M:%S");?>
',
color: '#9',
font: {
family: 'Helvetica Neue',
size: 30,
weight: 'bold',
lineHeight: 1.5,
}
}
},
scales: {
x: {
display: true,
title:{
display: true,
text: 'Tiempo',
color: '#9',
font: {
family: 'Helvetica Neue',
size: 20,
weight: 'bold',
lineHeight: 1.2,
}
}
},
y: {
display: true,
title:{
display: true,
text: 'Señal',
color: '#9',
font: {
family: 'Helvetica Neue',
size: 20,
weight: 'bold',
lineHeight: 1.2,
}
}
}
}
}
};
var myChart = new Chart(
document.getElementById('myChart'),
config
);
<?php echo '</script'; ?>
>
<div class="form-group">
<div class="col-md-7 col-md-offset-4">
<button onclick="salir()" type="button" class="btn btn-warning">Salir</button>
<button onclick="borrar()" type="button" class="btn btn-danger">Borrar prueba</button>
</div>
</div>
</div>
</div>
<?php echo '<script'; ?>
type="text/javascript">
function salir(){
history.back();
//window.location.href="pac_reg.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
&id=<?php echo $_smarty_tpl->tpl_vars['dni_paciente']->value;?>
";
}
function borrar(){
var reply=confirm("¿Seguro que desea borrar la prueba?")
if (reply==true)
{
window.location.href="borrar_prueba.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
&id=<?php echo $_smarty_tpl->tpl_vars['id_prueba']->value;?>
";
}
else
{
//AQUI NO HARIA NADA, SE CERRARIA EL POPUP Y SEGUIRIA EN LA PAGINA ACTUAL
}
}
<?php echo '</script'; ?>
>
<?php $_smarty_tpl->_subTemplateRender("file:footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}
<?php
/* Smarty version 3.1.38, created on 2022-06-01 10:54:43
from '/volume1/web/velostat/templates/login.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.38',
'unifunc' => 'content_629729533962a5_63438249',
'has_nocache_code' => false,
'file_dependency' =>
array (
'6059d6d227d8662e9e78e3b220f9209dfa254a5e' =>
array (
0 => '/volume1/web/velostat/templates/login.tpl',
1 => 1654017270,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_629729533962a5_63438249 (Smarty_Internal_Template $_smarty_tpl) {
?><!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title><?php echo $_smarty_tpl->tpl_vars['titulo']->value;?>
</title>
</head>
<body>
<?php echo '<script'; ?>
>
window.location.href='result.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
';
<?php echo '</script'; ?>
>
</body>
</html><?php }
}
<?php
/* Smarty version 3.1.38, created on 2022-06-09 14:45:55
from '/volume1/web/velostat/templates/prueba_sujeto.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.38',
'unifunc' => 'content_62a1eb83b91f64_59608715',
'has_nocache_code' => false,
'file_dependency' =>
array (
'6f12640b330c3190e957a7923de4fa93d876fcac' =>
array (
0 => '/volume1/web/velostat/templates/prueba_sujeto.tpl',
1 => 1654778750,
2 => 'file',
),
),
'includes' =>
array (
'file:head.tpl' => 1,
'file:barra.tpl' => 1,
'file:footer.tpl' => 1,
),
),false)) {
function content_62a1eb83b91f64_59608715 (Smarty_Internal_Template $_smarty_tpl) {
?><!DOCTYPE html>
<!-- El head con los estilos y el javascript genérico -->
<?php $_smarty_tpl->_subTemplateRender("file:head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Barra de menu -->
<?php $_smarty_tpl->_subTemplateRender("file:barra.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Zona Central -->
<?php echo '<script'; ?>
type="text/javascript">
function limita(maximoCaracteres) {
var elemento = document.getElementById("texto");
if(elemento.value.length >= maximoCaracteres ) {
return false;
}
else {
return true;
}
}
<?php echo '</script'; ?>
>
<div class="" role="main">
<div class="">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_content">
<h2 style = "text-align: center;">Información del sujeto <?php echo $_smarty_tpl->tpl_vars['mensaje']->value;?>
</h2>
<form class="form-horizontal form-label-left" action="prueba_sujeto_val.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
" method="post">
<!-- Edad -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Edad*
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="name" class="form-control col-md-7 col-xs-12" name="edad" type="number" required placeholder="En años">
</div>
</div>
<!-- Sexo -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name" >Sexo Masculino*
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<div class="radio">
<input type="radio" name="sexo" value="M" required style="margin-left: 0px;">
</div>
</div>
</div>
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name" >Sexo Femenino*
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<div class="radio">
<input type="radio" name="sexo" value="F" style="margin-left: 0px;">
</div>
</div>
</div>
<!-- Anotaciones Sujeto-->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Comentarios del sujeto
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<textarea id="name" class="form-control col-md-7 col-xs-12" data-validate-length-range="500" name="anotaciones_sujeto" type="text"></textarea>
</div>
</div>
<!-- ensayo -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tipo de ensayo *
</label>
<div class="col-md-6 col-sm-6 col-xs-12" >
<select class="select2_single form-control" name="ensayo" required>
<option value=""></option>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['ensayos']->value, 'element');
$_smarty_tpl->tpl_vars['element']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['element']->value) {
$_smarty_tpl->tpl_vars['element']->do_else = false;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['element']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['element']->value;?>
</option>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</select>
</div>
</div>
<!-- Simetria -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Simetria de la prueba
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="name" class="form-control col-md-7 col-xs-12" data-validate-length-range="10" name="simetria" type="text">
</div>
</div>
<!-- Anotaciones prueba-->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Anotaciones de la prueba
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<textarea id="name" class="form-control col-md-7 col-xs-12" data-validate-length-range="500" name="anotaciones_prueba" type="text"></textarea>
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="col-md-6 col-md-offset-3">
<button onclick="cancel()" type="button" class="btn btn-warning">Cancelar</button>
<button id="send" type="submit" class="btn btn-success">Iniciar</button>
<button onclick="limpiar()" type="button" class="btn btn-info">Limpiar</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo '<script'; ?>
type="text/javascript">
//estado();
function cancel() {
window.location.href="result.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
";
}
function limpiar() {
window.location.href="prueba_sujeto.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
";
}
<?php echo '</script'; ?>
>
<?php $_smarty_tpl->_subTemplateRender("file:footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}
<?php
/* Smarty version 3.1.38, created on 2022-05-31 19:14:42
from '/volume1/web/velostat/templates/add_gestor.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.38',
'unifunc' => 'content_62964d02be5dc6_40683017',
'has_nocache_code' => false,
'file_dependency' =>
array (
'83d760623fc7756601facaac13319e4f02e250c9' =>
array (
0 => '/volume1/web/velostat/templates/add_gestor.tpl',
1 => 1654017269,
2 => 'file',
),
),
'includes' =>
array (
'file:head.tpl' => 1,
'file:barra.tpl' => 1,
'file:footer.tpl' => 1,
),
),false)) {
function content_62964d02be5dc6_40683017 (Smarty_Internal_Template $_smarty_tpl) {
?><!DOCTYPE html>
<!-- El head con los estilos y el javascript genérico -->
<?php $_smarty_tpl->_subTemplateRender("file:head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Barra de menu -->
<?php $_smarty_tpl->_subTemplateRender("file:barra.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Zona Central -->
<div class="" role="main">
<div class="">
<div class="page-title">
<div class="title_left">
</div>
</div>
<div class="clearfix"></div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
<h2> <?php echo $_smarty_tpl->tpl_vars['mensaje']->value;?>
<small></small></h2>
<div class="clearfix"></div>
</div>
<div class="x_content">
<form class="form-horizontal form-label-left" action="add_gestor.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
" method="post">
<!-- id_admin -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">DNI *
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="select2_single form-control" pattern="[0-9]{8}[A-Z]" required maxlength="30" name="dni_trabajador" placeholder="Introduzca un número válido 8 num + Letra">
</div>
</div>
<!-- Nombre -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Nombre *
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="select2_single form-control" required maxlength="100" type="text" name="nombre">
</div>
</div>
<!-- Apellidos -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Apellidos *
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="select2_single form-control" required maxlength="200" type="text" name="apellidos">
</div>
</div>
<!-- login -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Login *
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="select2_single form-control" required maxlength="15" type="text" name="login">
</div>
</div>
<!-- titulacion -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Titulación *
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="select2_single form-control" required maxlength="20" type="text" name="titulacion">
</div>
</div>
<!-- Pass -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Contraseña *
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="select2_single form-control" required maxlength="40" type="password" placeholder="Mínimo 6 carácteres" pattern=".{6,25}" name="pass">
</div>
</div>
<!-- Repass -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Repita contraseña *
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="select2_single form-control" required maxlength="40" type="password" placeholder="Mínimo 6 carácteres" pattern=".{6,25}" name="passrw">
</div>
</div>
<!-- Permisos -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Permisos *
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="select2_single form-control" pattern="[012]{1}" required type="text" name="permisos" placeholder="0:R - 1:RW - 2:RWX">
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="col-md-6 col-md-offset-3">
<button type="button" onclick="cancel()" class="btn btn-warning">Cancelar</button>
<button id="send" type="submit" class="btn btn-success">Validar</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo '<script'; ?>
type="text/javascript">
function cancel() {
window.location.href="result.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
";
}
<?php echo '</script'; ?>
>
<?php $_smarty_tpl->_subTemplateRender("file:footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}
<?php
/* Smarty version 3.1.38, created on 2022-06-09 14:53:34
from '/volume1/web/velostat/templates/add_reg_val.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.38',
'unifunc' => 'content_62a1ed4ea943f1_41326319',
'has_nocache_code' => false,
'file_dependency' =>
array (
'852385741bddf884fc5ca64b0d046b2e58a8c8e8' =>
array (
0 => '/volume1/web/velostat/templates/add_reg_val.tpl',
1 => 1654779206,
2 => 'file',
),
),
'includes' =>
array (
'file:head.tpl' => 1,
'file:barra.tpl' => 1,
'file:footer.tpl' => 1,
),
),false)) {
function content_62a1ed4ea943f1_41326319 (Smarty_Internal_Template $_smarty_tpl) {
?><!DOCTYPE html>
<!-- El head con los estilos y el javascript genérico -->
<?php $_smarty_tpl->_subTemplateRender("file:head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Barra de menu -->
<?php $_smarty_tpl->_subTemplateRender("file:barra.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Zona Central -->
<div class="" role="main">
<div class="">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_content">
<form action="http://192.168.1.240/<?php echo $_smarty_tpl->tpl_vars['get']->value;?>
" target="esp">
<button type="submit" formmethod="get" id="init" onclick="inicio()" formnovalidate>Iniciar</button>
</form>
</div>
</div>
</div>
<div class="col-md-4 col-sm-4 col-xs-4">
<div class="x_panel">
<div class="x_content">
<iframe name="esp" id="esp" src="http://192.168.1.240/" ></iframe>
</div>
</div>
</div>
<div class="col-md-4 col-sm-4 col-xs-4">
<div class="x_panel">
<div class="x_content">
<form action="http://192.168.1.240/" target="esp">
<button type="submit" formmethod="get" formnovalidate>Reset ESP</button>
</form>
<div >
<img style='height: 300px;' src="<?php echo $_smarty_tpl->tpl_vars['imagen']->value;?>
">
</div>
</div>
</div>
</div>
<div class="col-md-4 col-sm-4 col-xs-4">
<div class="x_panel">
<div class="x_content">
<div >
<h2><strong>Colocación sensores:</strong></h2>
<h2><?php echo $_smarty_tpl->tpl_vars['coloc_sensores']->value;?>
</h2>
</div>
</div>
</div>
</div>
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_content">
</div>
</div>
</div>
<div class="col-md-6 col-6 col-xs-6">
<div class="x_panel">
<div class="x_content">
<h1><?php echo $_smarty_tpl->tpl_vars['segundos']->value;?>
:00</h1>
</div>
</div>
<div class="x_panel">
<div class="x_content">
<button type="submit" formmethod="get" id="done" class="btn btn-success" onclick="done()" formnovalidate>Ver resultados</button>
<button type="submit" formmethod="get" id="salir" class="btn btn-danger" onclick="salir()" formnovalidate>Salir</button>
</div>
</div>
</div>
<div class="col-md-6 col-sm-6 col-xs-6">
<div class="x_panel">
<div class="x_content">
<div id="foto">
Aviso
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo '<script'; ?>
type="text/javascript">
window.onload = function() {
var oFrame = document.getElementById("esp");
oFrame.contentWindow.document.onclick = function() {
alert("frame contents clicked");
};
};
<?php echo '</script'; ?>
>
<?php echo '<script'; ?>
type="text/javascript">
let h1 = document.querySelector("h1");
let centesimas = 0;
let segundos = <?php echo $_smarty_tpl->tpl_vars['segundos']->value;?>
;
var snd1 = new Audio("data:audio/wav;base64,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qJrx4KOQjahZxWbcZgztj2c49nKmkId44S71j0c8eV9yDK6uPRzx5X18eDvjvQ6yKo9ZSS6l//8elePK/Lf//IInrOF/FvDoADYAGBMGb7FtErm5MXMlmPAJQVgWta7Zx2go+8xJ0UiCb8LHHdftWyLJE0QIAIsI+UbXu67dZMjmgDGCGl1H+vpF4NSDckSIkk7Vd+sxEhBQMRU8j/12UIRhzSaUdQ+rQU5kGeFxm+hb1oh6pWWmv3uvmReDl0UnvtapVaIzo1jZbf/pD6ElLqSX+rUmOQNpJFa/r+sa4e/pBlAABoAAAAA3CUgShLdGIxsY7AUABPRrgCABdDuQ5GC7DqPQCgbbJUAoRSUj+NIEig0YfyWUho1VBBBA//uQZB4ABZx5zfMakeAAAAmwAAAAF5F3P0w9GtAAACfAAAAAwLhMDmAYWMgVEG1U0FIGCBgXBXAtfMH10000EEEEEECUBYln03TTTdNBDZopopYvrTTdNa325mImNg3TTPV9q3pmY0xoO6bv3r00y+IDGid/9aaaZTGMuj9mpu9Mpio1dXrr5HERTZSmqU36A3CumzN/9Robv/Xx4v9ijkSRSNLQhAWumap82WRSBUqXStV/YcS+XVLnSS+WLDroqArFkMEsAS+eWmrUzrO0oEmE40RlMZ5+ODIkAyKAGUwZ3mVKmcamcJnMW26MRPgUw6j+LkhyHGVGYjSUUKNpuJUQoOIAyDvEyG8S5yfK6dhZc0Tx1KI/gviKL6qvvFs1+bWtaz58uUNnryq6kt5RzOCkPWlVqVX2a/EEBUdU1KrXLf40GoiiFXK///qpoiDXrOgqDR38JB0bw7SoL+ZB9o1RCkQjQ2CBYZKd/+VJxZRRZlqSkKiws0WFxUyCwsKiMy7hUVFhIaCrNQsKkTIsLivwKKigsj8XYlwt/WKi2N4d//uQRCSAAjURNIHpMZBGYiaQPSYyAAABLAAAAAAAACWAAAAApUF/Mg+0aohSIRobBAsMlO//Kk4soosy1JSFRYWaLC4qZBYWFRGZdwqKiwkNBVmoWFSJkWFxX4FFRQWR+LsS4W/rFRb/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////VEFHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAU291bmRib3kuZGUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMjAwNGh0dHA6Ly93d3cuc291bmRib3kuZGUAAAAAAAAAACU=");
var snd2 = new Audio("media/audio/check.mp3");
var intervalo = 0;
var intervaloBase = segundos/<?php echo $_smarty_tpl->tpl_vars['repeticiones']->value;?>
;
var repSg = segundos-1;
var repCnt = 99;
var estado = 0;
$('#done').hide();
console.log(estado, "Intervalo repetición: ", intervaloBase, "-", intervalo, "(",repSg,":",repCnt,")", "Repeticiones totales:", <?php echo $_smarty_tpl->tpl_vars['repeticiones']->value;?>
);
function run(){
if (estado ==0){
if((centesimas == 0) &&( segundos == 0)){
check();
h1.style.color = 'red';
$("#foto").html("<h1><strong>FIN</strong></h1>");
$('#done').show();
estado = 1;
// función para hacer un delay antes del windows location
// esperamos 2 segundos
function stateChange(newState) {
setTimeout(function () {
if (newState == -1) {
/*
* Comprobamos que el sensor ha enviado los datos y ponemos un mensaje acorde.
* /
$.post("comprobar_post.php", {
recarga:'info' ,
puesto: <?php echo $_smarty_tpl->tpl_vars['puesto']->value;?>
,
linea: '<?php echo $_smarty_tpl->tpl_vars['linea']->value;?>
',
cambio: <?php echo $_smarty_tpl->tpl_vars['prox_cambio']->value;?>
,
serie: '<?php echo $_smarty_tpl->tpl_vars['serie']->value;?>
',
foto: '<?php echo $_smarty_tpl->tpl_vars['imagen']->value;?>
',
posicion_ant: <?php echo $_smarty_tpl->tpl_vars['posicion']->value;?>
} ,
function(data){
//recarga titulo y barcode
$("#resultado").html(data);
});
//*/
alert("Saliendo");
window.location.href="result.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
";
}
}, 2000);
}
}else{
// Comprobamos que llegamos a una repetición y ponemos un aviso
if(centesimas == repCnt && segundos == repSg) {
console.log("intervalo = ", repSg,":",repCnt);
$("#foto").html("<h1><strong><?php echo $_smarty_tpl->tpl_vars['ensayo']->value;?>
</strong></h1>");
beep();
}
// quitamos el aviso 1seg despues y preparamos la siguiente repeticion
if(centesimas == repCnt && segundos == repSg - 1) {
intervalo = intervalo + intervaloBase;
repSg = <?php echo $_smarty_tpl->tpl_vars['segundos']->value;?>
- Math.trunc(intervalo) - 1;
repCnt = 99 - Math.trunc((intervalo - Math.trunc(intervalo))*100);
console.log("Nuevo intervalo:",intervalo,"Proxima Repeticion:", repSg, ":", repCnt, "Tiempo:", segundos +':'+centesimas);
$("#foto").html("<h1><strong>Reposo</strong></h1>");
}
if(centesimas == 0){
--segundos;
centesimas = 99;
}else{
--centesimas;
}
h1.innerHTML = segundos +':'+centesimas;
}
}
}
function inicio(){
$('#salir').hide();
$('#init').hide();
segundos = <?php echo $_smarty_tpl->tpl_vars['segundos']->value;?>
;
setInterval(run, 10);
}
function done() {
window.location.href="ver_datos_paciente.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
&id=<?php echo $_smarty_tpl->tpl_vars['id_prueba']->value;?>
";
}
function salir() {
window.location.href="add_reg.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
&id=<?php echo $_smarty_tpl->tpl_vars['dni_paciente']->value;?>
&id_prueba=<?php echo $_smarty_tpl->tpl_vars['id_prueba']->value;?>
&accion=1";
}
function beep() {
snd1.play();
}
function check(){
snd2.play();
}
<?php echo '</script'; ?>
>
<?php $_smarty_tpl->_subTemplateRender("file:footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}
<?php
/* Smarty version 3.1.38, created on 2022-05-31 19:14:52
from '/volume1/web/velostat/templates/mod_pass.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.38',
'unifunc' => 'content_62964d0c7647a0_10580964',
'has_nocache_code' => false,
'file_dependency' =>
array (
'a340c089a3c33d39af545ca1dda6ba4981614187' =>
array (
0 => '/volume1/web/velostat/templates/mod_pass.tpl',
1 => 1654017270,
2 => 'file',
),
),
'includes' =>
array (
'file:head.tpl' => 1,
'file:barra.tpl' => 1,
'file:footer.tpl' => 1,
),
),false)) {
function content_62964d0c7647a0_10580964 (Smarty_Internal_Template $_smarty_tpl) {
?><!DOCTYPE html>
<!-- El head con los estilos y el javascript genérico -->
<?php $_smarty_tpl->_subTemplateRender("file:head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Barra de menu -->
<?php $_smarty_tpl->_subTemplateRender("file:barra.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Zona Central -->
<div class="" role="main">
<div class="">
<div class="page-title">
<div class="title_left">
</div>
</div>
<div class="clearfix"></div>
<div class="row">
<div class="col-md-4 col-sm-4 col-xs-12">
<div class="x_panel">
<div class="x_content">
<div class="x_title">
<h2> <?php echo $_smarty_tpl->tpl_vars['mensaje']->value;?>
<small></small></h2>
<div class="clearfix"></div>
</div>
<div class="profile_pic">
<img src="media/images/personal/<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
.png" alt="..." class="img-circle profile_img">
</div>
</div>
</div>
</div>
<div class="col-md-8 col-sm-8 col-xs-12">
<div class="x_panel">
<div class="x_content">
<form class="form-horizontal form-label-left" action="mod_pass.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
" method="post">
<!-- Old Pass -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Contraseña antigua *
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control" maxlength="40" minlength="6" required type="password" placeholder="Mínimo 6 carácteres" name="oldpass">
</div>
</div>
<!-- Pass -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Contraseña nueva *
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control" maxlength="40" minlength="6" required type="password" placeholder="Mínimo 6 carácteres" name="pass">
</div>
</div>
<!-- Repass -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Repita nueva contraseña *
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control" maxlength="40" minlength="6" required type="password" placeholder="Mínimo 6 carácteres" name="passrw">
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="col-md-6 col-md-offset-3">
<button type="button" onclick="cancel()" class="btn btn-warning">Cancelar</button>
<button id="send" type="submit" class="btn btn-success">Guardar</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo '<script'; ?>
type="text/javascript">
function cancel() {
window.location.href="result.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
";
}
<?php echo '</script'; ?>
>
<?php $_smarty_tpl->_subTemplateRender("file:footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}
<?php
/* Smarty version 3.1.38, created on 2022-06-09 14:58:17
from '/volume1/web/velostat/templates/ges_pat_nueva.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.38',
'unifunc' => 'content_62a1ee6913af94_79641532',
'has_nocache_code' => false,
'file_dependency' =>
array (
'ae3142fe6bbfcbae3a10c25828b494ac93e1b5a7' =>
array (
0 => '/volume1/web/velostat/templates/ges_pat_nueva.tpl',
1 => 1654017270,
2 => 'file',
),
),
'includes' =>
array (
'file:head.tpl' => 1,
'file:barra.tpl' => 1,
'file:footer.tpl' => 1,
),
),false)) {
function content_62a1ee6913af94_79641532 (Smarty_Internal_Template $_smarty_tpl) {
?><!DOCTYPE html>
<!-- El head con los estilos y el javascript genérico -->
<?php $_smarty_tpl->_subTemplateRender("file:head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Barra de menu -->
<?php $_smarty_tpl->_subTemplateRender("file:barra.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Zona Central -->
<?php echo '<script'; ?>
type="text/javascript">
function limita(maximoCaracteres) {
var elemento = document.getElementById("texto");
if(elemento.value.length >= maximoCaracteres ) {
return false;
}
else {
return true;
}
}
<?php echo '</script'; ?>
>
<div class="" role="main">
<div class="">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
<h2> <?php echo $_smarty_tpl->tpl_vars['mensaje']->value;?>
<small></small></h2>
<div class="clearfix"></div>
</div>
<div class="x_content">
<form class="form-horizontal form-label-left" action="ges_pat_nueva.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
" method="post">
<!-- Nombre -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Nombre *<span class="required"></span>
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control col-md-7 col-xs-12" data-validate-length-range="100" name="nombre" required type="text" >
</div>
</div>
<!-- Descripción -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Descripción
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control col-md-7 col-xs-12" data-validate-length-range="200" name="descripcion" type="text" >
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="col-md-6 col-md-offset-3">
<button onclick="cancel()" type="button" class="btn btn-warning">Cancelar</button>
<button id="send" type="submit" class="btn btn-success">Guardar</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo '<script'; ?>
type="text/javascript">
//estado();
function cancel() {
window.location.href="ges_pat.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
";
}
<?php echo '</script'; ?>
>
<?php $_smarty_tpl->_subTemplateRender("file:footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}
<?php
/* Smarty version 3.1.38, created on 2022-06-09 15:42:41
from '/volume1/web/velostat/templates/add_pac.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.38',
'unifunc' => 'content_62a1f8d142fbb8_07040983',
'has_nocache_code' => false,
'file_dependency' =>
array (
'b530caa1abef0c4158762b9094485c175b74cac8' =>
array (
0 => '/volume1/web/velostat/templates/add_pac.tpl',
1 => 1654782144,
2 => 'file',
),
),
'includes' =>
array (
'file:head.tpl' => 1,
'file:barra.tpl' => 1,
'file:footer.tpl' => 1,
),
),false)) {
function content_62a1f8d142fbb8_07040983 (Smarty_Internal_Template $_smarty_tpl) {
?><!DOCTYPE html>
<!-- El head con los estilos y el javascript genérico -->
<?php $_smarty_tpl->_subTemplateRender("file:head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Barra de menu -->
<?php $_smarty_tpl->_subTemplateRender("file:barra.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Zona Central -->
<?php echo '<script'; ?>
type="text/javascript">
function limita(maximoCaracteres) {
var elemento = document.getElementById("texto");
if(elemento.value.length >= maximoCaracteres ) {
return false;
}
else {
return true;
}
}
<?php echo '</script'; ?>
>
<div class="" role="main">
<div class="">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<h2 style = "text-align: center;"><?php echo $_smarty_tpl->tpl_vars['mensaje']->value;?>
</h2>
<div class="clearfix"></div>
<div class="x_content">
<form class="form-horizontal form-label-left" action="add_pac.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
" method="post">
<!-- DNI -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">DNI *<span class="required"></span>
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="name" class="form-control col-md-7 col-xs-12" data-validate-length-range="10" name="dni" required type="text"
value="<?php echo $_smarty_tpl->tpl_vars['sujeto']->value[0];?>
">
</div>
</div>
<!-- Nombre -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Nombre *<span class="required"></span>
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="name" class="form-control col-md-7 col-xs-12" data-validate-length-range="100" data-validate-words="2" name="nombre" required type="text" value="<?php echo $_smarty_tpl->tpl_vars['sujeto']->value[1];?>
"
>
</div>
</div>
<!-- Apellidos -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Apellidos *<span class="required"></span>
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="name" class="form-control col-md-7 col-xs-12" data-validate-length-range="200" name="apellidos" required type="text" value="<?php echo $_smarty_tpl->tpl_vars['sujeto']->value[2];?>
">
</div>
</div>
<!-- Edad -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Fecha nacimiento *<span class="required"></span>
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="name" class="form-control col-md-7 col-xs-12" data-validate-length-range="200" name="edad" required type="date" value="<?php echo $_smarty_tpl->tpl_vars['sujeto']->value[4];?>
">
</div>
</div>
<!-- Sexo -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name" >Sexo Masculino*
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<div class="radio">
<input type="radio" <?php if ($_smarty_tpl->tpl_vars['sujeto']->value[3] == "M") {?> checked="" value="<?php echo $_smarty_tpl->tpl_vars['sujeto']->value[3];?>
" <?php } else { ?> value="M" <?php }?> name="sexo" style="margin-left: 0px;">
</div>
</div>
</div>
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name" >Sexo Femenino*
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<div class="radio">
<input type="radio" <?php if ($_smarty_tpl->tpl_vars['sujeto']->value[3] == "F") {?> checked="" value="<?php echo $_smarty_tpl->tpl_vars['sujeto']->value[3];?>
" <?php } else { ?> value="F" <?php }?> name="sexo" style="margin-left: 0px;" >
</div>
</div>
</div>
<!-- Anotaciones -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Anotaciones
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="name" class="form-control col-md-7 col-xs-12" data-validate-length-range="500" name="anotaciones" type="text" value="<?php echo $_smarty_tpl->tpl_vars['sujeto']->value[5];?>
">
</div>
</div>
<div class="x_panel">
<h2 style = "text-align: center;">Etiología</h2>
<div class="clearfix"></div>
<!-- Etiologia -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Etiología *<span class="required"></span>
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="name" class="form-control col-md-7 col-xs-12" data-validate-length-range="50" name="etiologia" required type="text">
</div>
</div>
<!-- Fecha lesion -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Fecha lesión *
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="name" class="form-control col-md-7 col-xs-12" name="fecha_lesion" required type="date">
</div>
</div>
<!-- Cuadrantes -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Cuadrantes afectados
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="name" class="form-control col-md-7 col-xs-12" data-validate-length-range="50" name="cuadrantes" type="text">
</div>
</div>
<!-- Comentarios -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Comentarios
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="name" class="form-control col-md-7 col-xs-12" data-validate-length-range="500" name="comentarios" type="text">
</div>
</div>
<!-- Patologia -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Patología *
</label>
<div class="col-md-6 col-sm-6 col-xs-12" >
<select class="select2_single form-control" required name="patologia">
<option value=""></option>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['patologias']->value, 'element');
$_smarty_tpl->tpl_vars['element']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['element']->value) {
$_smarty_tpl->tpl_vars['element']->do_else = false;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['element']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['element']->value;?>
</option>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</select>
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="col-md-6 col-md-offset-3">
<button onclick="cancel()" type="button" class="btn btn-warning">Cancelar</button>
<button id="send" type="submit" class="btn btn-success">Guardar</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo '<script'; ?>
type="text/javascript">
//estado();
function cancel() {
window.location.href="result.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
";
}
<?php echo '</script'; ?>
>
<?php $_smarty_tpl->_subTemplateRender("file:footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}
<?php
/* Smarty version 3.1.38, created on 2022-06-09 14:46:24
from '/volume1/web/velostat/templates/prueba_sujeto_val.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.38',
'unifunc' => 'content_62a1eba0b8f6f9_13894005',
'has_nocache_code' => false,
'file_dependency' =>
array (
'b56ffecaeb77cc372a48f7469792f42936b73f5f' =>
array (
0 => '/volume1/web/velostat/templates/prueba_sujeto_val.tpl',
1 => 1654778519,
2 => 'file',
),
),
'includes' =>
array (
'file:head.tpl' => 1,
'file:barra.tpl' => 1,
'file:footer.tpl' => 1,
),
),false)) {
function content_62a1eba0b8f6f9_13894005 (Smarty_Internal_Template $_smarty_tpl) {
?><!DOCTYPE html>
<!-- El head con los estilos y el javascript genérico -->
<?php $_smarty_tpl->_subTemplateRender("file:head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Barra de menu -->
<?php $_smarty_tpl->_subTemplateRender("file:barra.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Zona Central -->
<div class="" role="main">
<div class="">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_content">
<form action="http://192.168.1.240/<?php echo $_smarty_tpl->tpl_vars['get']->value;?>
" target="esp">
<button type="submit" formmethod="get" id="init" onclick="inicio()" formnovalidate>Iniciar</button>
</form>
</div>
</div>
</div>
<div class="col-md-4 col-sm-4 col-xs-4">
<div class="x_panel">
<div class="x_content">
<iframe name="esp" id="esp" src="http://192.168.1.240/" ></iframe>
</div>
</div>
</div>
<div class="col-md-4 col-sm-4 col-xs-4">
<div class="x_panel">
<div class="x_content">
<form action="http://192.168.1.240/" target="esp">
<button type="submit" formmethod="get" formnovalidate>Reset ESP</button>
</form>
<div >
<img style='height: 300px;' src="<?php echo $_smarty_tpl->tpl_vars['imagen']->value;?>
">
</div>
</div>
</div>
</div>
<div class="col-md-4 col-sm-4 col-xs-4">
<div class="x_panel">
<div class="x_content">
<div >
<h2><strong>Colocación sensores:</strong></h2>
<h2><?php echo $_smarty_tpl->tpl_vars['coloc_sensores']->value;?>
</h2>
</div>
</div>
</div>
</div>
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_content">
</div>
</div>
</div>
<div class="col-md-6 col-6 col-xs-6">
<div class="x_panel">
<div class="x_content">
<h1><?php echo $_smarty_tpl->tpl_vars['segundos']->value;?>
:00</h1>
</div>
</div>
<div class="x_panel">
<div class="x_content">
<button type="submit" formmethod="get" id="done" class="btn btn-success" onclick="done()" formnovalidate>Ver resultados</button>
<button type="submit" formmethod="get" id="salir" class="btn btn-danger" onclick="salir_sujeto()" formnovalidate>Salir</button>
</div>
</div>
</div>
<div class="col-md-6 col-sm-6 col-xs-6">
<div class="x_panel">
<div class="x_content">
<div id="foto">
Aviso
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo '<script'; ?>
type="text/javascript">
window.onload = function() {
var oFrame = document.getElementById("esp");
oFrame.contentWindow.document.onclick = function() {
alert("frame contents clicked");
};
};
<?php echo '</script'; ?>
>
<?php echo '<script'; ?>
type="text/javascript">
let h1 = document.querySelector("h1");
let centesimas = 0;
let segundos = <?php echo $_smarty_tpl->tpl_vars['segundos']->value;?>
;
var snd1 = new Audio("data:audio/wav;base64,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qJrx4KOQjahZxWbcZgztj2c49nKmkId44S71j0c8eV9yDK6uPRzx5X18eDvjvQ6yKo9ZSS6l//8elePK/Lf//IInrOF/FvDoADYAGBMGb7FtErm5MXMlmPAJQVgWta7Zx2go+8xJ0UiCb8LHHdftWyLJE0QIAIsI+UbXu67dZMjmgDGCGl1H+vpF4NSDckSIkk7Vd+sxEhBQMRU8j/12UIRhzSaUdQ+rQU5kGeFxm+hb1oh6pWWmv3uvmReDl0UnvtapVaIzo1jZbf/pD6ElLqSX+rUmOQNpJFa/r+sa4e/pBlAABoAAAAA3CUgShLdGIxsY7AUABPRrgCABdDuQ5GC7DqPQCgbbJUAoRSUj+NIEig0YfyWUho1VBBBA//uQZB4ABZx5zfMakeAAAAmwAAAAF5F3P0w9GtAAACfAAAAAwLhMDmAYWMgVEG1U0FIGCBgXBXAtfMH10000EEEEEECUBYln03TTTdNBDZopopYvrTTdNa325mImNg3TTPV9q3pmY0xoO6bv3r00y+IDGid/9aaaZTGMuj9mpu9Mpio1dXrr5HERTZSmqU36A3CumzN/9Robv/Xx4v9ijkSRSNLQhAWumap82WRSBUqXStV/YcS+XVLnSS+WLDroqArFkMEsAS+eWmrUzrO0oEmE40RlMZ5+ODIkAyKAGUwZ3mVKmcamcJnMW26MRPgUw6j+LkhyHGVGYjSUUKNpuJUQoOIAyDvEyG8S5yfK6dhZc0Tx1KI/gviKL6qvvFs1+bWtaz58uUNnryq6kt5RzOCkPWlVqVX2a/EEBUdU1KrXLf40GoiiFXK///qpoiDXrOgqDR38JB0bw7SoL+ZB9o1RCkQjQ2CBYZKd/+VJxZRRZlqSkKiws0WFxUyCwsKiMy7hUVFhIaCrNQsKkTIsLivwKKigsj8XYlwt/WKi2N4d//uQRCSAAjURNIHpMZBGYiaQPSYyAAABLAAAAAAAACWAAAAApUF/Mg+0aohSIRobBAsMlO//Kk4soosy1JSFRYWaLC4qZBYWFRGZdwqKiwkNBVmoWFSJkWFxX4FFRQWR+LsS4W/rFRb/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////VEFHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAU291bmRib3kuZGUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMjAwNGh0dHA6Ly93d3cuc291bmRib3kuZGUAAAAAAAAAACU=");
var snd2 = new Audio("media/audio/check.mp3");
var intervalo = 0;
var intervaloBase = segundos/<?php echo $_smarty_tpl->tpl_vars['repeticiones']->value;?>
;
var repSg = segundos-1;
var repCnt = 99;
var estado = 0;
$('#done').hide();
console.log(estado, "Intervalo repetición: ", intervaloBase, "-", intervalo, "(",repSg,":",repCnt,")", "Repeticiones totales:", <?php echo $_smarty_tpl->tpl_vars['repeticiones']->value;?>
);
function run(){
if (estado ==0){
if((centesimas == 0) &&( segundos == 0)){
check();
h1.style.color = 'red';
$("#foto").html("<h1><strong>FIN</strong></h1>");
$('#done').show();
estado = 1;
// función para hacer un delay antes del windows location
// esperamos 2 segundos
function stateChange(newState) {
setTimeout(function () {
if (newState == -1) {
/*
* Comprobamos que el sensor ha enviado los datos y ponemos un mensaje acorde.
* /
$.post("comprobar_post.php", {
recarga:'info' ,
puesto: <?php echo $_smarty_tpl->tpl_vars['puesto']->value;?>
,
linea: '<?php echo $_smarty_tpl->tpl_vars['linea']->value;?>
',
cambio: <?php echo $_smarty_tpl->tpl_vars['prox_cambio']->value;?>
,
serie: '<?php echo $_smarty_tpl->tpl_vars['serie']->value;?>
',
foto: '<?php echo $_smarty_tpl->tpl_vars['imagen']->value;?>
',
posicion_ant: <?php echo $_smarty_tpl->tpl_vars['posicion']->value;?>
} ,
function(data){
//recarga titulo y barcode
$("#resultado").html(data);
});
//*/
alert("Saliendo");
window.location.href="result.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
";
}
}, 2000);
}
}else{
// Comprobamos que llegamos a una repetición y ponemos un aviso
if(centesimas == repCnt && segundos == repSg) {
console.log("intervalo = ", repSg,":",repCnt);
$("#foto").html("<h1><strong><?php echo $_smarty_tpl->tpl_vars['ensayo']->value;?>
</strong></h1>");
beep();
}
// quitamos el aviso 1seg despues y preparamos la siguiente repeticion
if(centesimas == repCnt && segundos == repSg - 1) {
intervalo = intervalo + intervaloBase;
repSg = <?php echo $_smarty_tpl->tpl_vars['segundos']->value;?>
- Math.trunc(intervalo) - 1;
repCnt = 99 - Math.trunc((intervalo - Math.trunc(intervalo))*100);
console.log("Nuevo intervalo:",intervalo,"Proxima Repeticion:", repSg, ":", repCnt, "Tiempo:", segundos +':'+centesimas);
$("#foto").html("<h1><strong>Reposo</strong></h1>");
}
if(centesimas == 0){
--segundos;
centesimas = 99;
}else{
--centesimas;
}
h1.innerHTML = segundos +':'+centesimas;
}
}
}
function inicio(){
$('#salir').hide();
$('#init').hide();
segundos = <?php echo $_smarty_tpl->tpl_vars['segundos']->value;?>
;
setInterval(run, 10);
}
function done() {
window.location.href="ver_datos_sujeto.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
&id=<?php echo $_smarty_tpl->tpl_vars['id_prueba']->value;?>
";
}
function salir_sujeto() {
window.location.href="prueba_sujeto.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
&id_prueba=<?php echo $_smarty_tpl->tpl_vars['id_prueba']->value;?>
&accion=1";
history.back();
}
function beep() {
snd1.play();
}
function check(){
snd2.play();
}
<?php echo '</script'; ?>
>
<?php $_smarty_tpl->_subTemplateRender("file:footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}
<?php
/* Smarty version 3.1.38, created on 2022-06-09 13:43:02
from '/volume1/web/velostat/templates/barra.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.38',
'unifunc' => 'content_62a1dcc6280608_32924378',
'has_nocache_code' => false,
'file_dependency' =>
array (
'b5f656167d06e27e9ec6ed576a814f80af41a00f' =>
array (
0 => '/volume1/web/velostat/templates/barra.tpl',
1 => 1654774975,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_62a1dcc6280608_32924378 (Smarty_Internal_Template $_smarty_tpl) {
?><!-- Barra de menu -->
<?php if ($_smarty_tpl->tpl_vars['id_admin']->value == 4100001) {?>
<body class="nav-sm">
<?php } else { ?>
<body class="nav-md">
<?php }?>
<div class="container body">
<div class="main_container">
<!-- Contenedor total -->
<div class="col-md-3 left_col menu_fixed">
<div class="left_col scroll-view">
<div class="navbar nav_title" style="border: 0;">
<a data-toggle="tooltip" data-placement="bottom" title="Inicio" href="result.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
" class="site_title"><i class="fa fa-home"></i> <span style="font-size: 0.8em; ">Sensores de presión</span></a>
</div>
<div class="clearfix"></div>
<!-- menu profile quick info -->
<div class="profile clearfix">
<div class="profile_pic">
<img src="<?php echo $_smarty_tpl->tpl_vars['imagen_id']->value;?>
" alt="Foto trabajador" class="img-circle profile_img">
</div>
<div class="profile_info">
<span>Bienvenido,</span>
<h2><?php echo $_smarty_tpl->tpl_vars['nombre']->value;?>
</h2>
</div>
</div>
<!-- /menu profile quick info -->
<br/>
<!-- sidebar menu -->
<div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
<div class="menu_section">
<!-- GENERAL -->
<h3>General</h3>
<ul class="nav side-menu">
<!-- AÑADIR PACIENTES -->
<li><a href="add_pac.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
">Añadir pacientes</a></li>
<!-- REALIZAR PRUEBA -->
<li><a href="add_reg.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
">Realizar prueba</a></li>
<!-- GESTIONAR ENSAYOS -->
<li><a href="ges_ens.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
">Gestionar ensayos</a></li>
<!-- GESTIONAR PATOLOGIAS -->
<li><a href="ges_pat.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
">Gestionar patologías</a></li>
<!-- OTROS -->
<h3>Otros</h3>
<ul class="nav side-menu">
<!-- PAGINAS ADICIONALES -->
<li><a data-toggle="tooltip" data-placement="top" title="Gestión de Sujetos Sanos"><i class="fa fa-bug" ></i> Gestión de sujetos <span class="fa fa-chevron-down"></span></a>
<ul class="nav child_menu">
<li><a href="prueba_sujeto.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
">Añadir prueba a sujeto</a></li>
<li><a href="ver_pruebas_sujetos.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
">Ver pruebas de sujetos</a></li>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- /sidebar menu -->
<!-- /menu footer buttons -->
<div class="sidebar-footer hidden-small">
<!-- Quito la configuración de perfil
<a data-toggle="tooltip" data-placement="top" title="Settings" href="mod_perfil.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
">
<span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
</a> Quito la pantalla completa
<a data-toggle="tooltip" data-placement="top" title="FullScreen">
<span class="glyphicon glyphicon-fullscreen" aria-hidden="true" onclick="fullscreen()"></span>
</a> -->
<!-- Quito el bloqueo
<a data-toggle="tooltip" data-placement="top" title="Lock">
<span class="glyphicon glyphicon-eye-close" aria-hidden="true"></span>
</a> -->
<a data-toggle="tooltip" data-placement="top" title="Logout" href="log_out.php">
<span class="glyphicon glyphicon-off" aria-hidden="true"></span>
</a>
</div>
<!-- /menu footer buttons -->
</div>
</div>
<!-- top navigation -->
<div class="top_nav">
<div class="nav_menu">
<nav>
<div class="nav toggle">
<a id="menu_toggle"><i class="fa fa-bars"></i></a>
</div>
<!-- Aquí se muestra la información de cargando que habrá que modificar-->
<ul class="nav navbar-nav navbar-left"><h4 id="titulo" style="margin-top: 19px;" ><!-- <i class="fa fa-spinner fa-spin fa-fw"></i> Cargando. Espere --> </h4></ul>
<ul class="nav navbar-nav navbar-right">
<!-- Aquí se muestra la información de cargando que habrá que modificar-->
<li class="">
<a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<img src="<?php echo $_smarty_tpl->tpl_vars['imagen_id']->value;?>
" alt="Foto trabajador">
<span class=" fa fa-angle-down"></span>
</a>
<ul class="dropdown-menu dropdown-usermenu pull-right">
<li><a href="mod_pass.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
"><i class="fa fa-cogs pull-right"></i>Cambiar contraseña</a></li>
<li><a href="log_out.php"><i class="fa fa-sign-out pull-right"></i> Cerrar sesión</a></li>
</ul>
</li>
<!-- Modificar Usuarios si se tiene permiso-->
<?php if ($_smarty_tpl->tpl_vars['permisos']->value == 1 || $_smarty_tpl->tpl_vars['permisos']->value == 2 || $_smarty_tpl->tpl_vars['permisos']->value == 3 || $_smarty_tpl->tpl_vars['permisos']->value == 4) {?>
<li class="">
<a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
Gestión
<span class=" fa fa-angle-down"></span>
</a>
<ul class="dropdown-menu dropdown-usermenu pull-right">
<li><a href="add_gestor.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
">Añadir trabajador</a></li>
<li><a href="mod_gestor.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
">Modificar trabajador</a></li>
</ul>
</li>
<?php }?>
</ul>
</nav>
</div>
</div>
<!-- /top navigation -->
<!-- page content -->
<div class="right_col" role="main" id="contenido">
<!--
<?php echo '<script'; ?>
type="text/javascript">
$(document).ready(function(){
/**
* Determinar si una imagen existe por la propiedad naturalHeight
* la cual sera diferente de 0 si esta existe
**/
$('img').each(function(){
if($(this)[0].naturalHeight == 0){
$(this).attr('src','media/images/no_image/no_image.png');
}
});
});
<?php echo '</script'; ?>
>
--><?php }
}
<?php
/* Smarty version 3.1.38, created on 2022-05-31 19:15:02
from '/volume1/web/velostat/templates/ges_pat.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.38',
'unifunc' => 'content_62964d1676c609_46537970',
'has_nocache_code' => false,
'file_dependency' =>
array (
'be38c18a1f6216cb3f0917cd661938f22cc80d66' =>
array (
0 => '/volume1/web/velostat/templates/ges_pat.tpl',
1 => 1654017270,
2 => 'file',
),
),
'includes' =>
array (
'file:head.tpl' => 1,
'file:barra.tpl' => 1,
'file:footer.tpl' => 1,
),
),false)) {
function content_62964d1676c609_46537970 (Smarty_Internal_Template $_smarty_tpl) {
?><!DOCTYPE html>
<!-- El head con los estilos y el javascript genérico -->
<?php $_smarty_tpl->_subTemplateRender("file:head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Barra de menu -->
<?php $_smarty_tpl->_subTemplateRender("file:barra.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Zona Central -->
<div class="" role="main">
<div class="">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<?php if ($_smarty_tpl->tpl_vars['mod_campos']->value) {?>
<div class="x_content">
<h4 style = "text-align: center;"><?php echo $_smarty_tpl->tpl_vars['mensaje']->value;?>
</h4>
<div class="clearfix"></div>
<form class="form-horizontal form-label-left" action="ges_pat_val.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
&id=<?php echo $_smarty_tpl->tpl_vars['mod_campos']->value[0];?>
" method="post">
<!-- id_patologia -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">id_patologia
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control col-md-7 col-xs-12" data-validate-length-range="10" name="id_patologia" required disabled type="text"
value="<?php echo $_smarty_tpl->tpl_vars['mod_campos']->value[0];?>
" >
</div>
</div>
<!-- Nombre -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Nombre
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control col-md-7 col-xs-12" data-validate-length-range="100" name="nombre" required type="text" value="<?php echo $_smarty_tpl->tpl_vars['mod_campos']->value[1];?>
" >
</div>
</div>
<!-- Descripción -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Descripción
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control col-md-7 col-xs-12" data-validate-length-range="200" name="descripcion" type="text" value="<?php echo $_smarty_tpl->tpl_vars['mod_campos']->value[2];?>
" >
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="col-md-6 col-md-offset-3">
<button onclick="cancel()" type="button" class="btn btn-warning">Cancelar</button>
<button id="send" type="submit" class="btn btn-success">Guardar</button>
<button onclick="eliminar()" type="button" class="btn btn-danger">Eliminar</button>
</div>
</div>
</form>
</div>
<?php } else { ?>
<!-- tabla para seleccionar patologia -->
<div class="x_content">
<h4 style = "text-align: center;"><?php echo $_smarty_tpl->tpl_vars['mensaje']->value;?>
</h4>
<div class="clearfix"></div>
<div class="tablas">
<table id="example" class="table table-striped table-bordered" cellspacing="0" width="99%" role="grid" data-order="[[ 1, &quot;asc&quot; ]]">
<thead>
<tr>
<td>id_patologia</td>
<td>Nombre</td>
<td>Descripción</td>
</tr>
</thead>
<tbody>
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['campos']->value, 'element');
$_smarty_tpl->tpl_vars['element']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['element']->value) {
$_smarty_tpl->tpl_vars['element']->do_else = false;
?>
<tr >
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[0];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[1];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['element']->value[2];?>
</td>
</tr>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</tbody>
</table>
</div>
<div class="col-md-6 col-md-offset-3">
<button onclick="n_patologia()" type="button" class="btn btn-primary">Nueva patologia</button>
</div>
</div>
<?php }?>
</div>
</div>
</div>
</div>
</div>
<?php echo '<script'; ?>
type="text/javascript">
function cancel() {
window.location.href="ges_pat.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
";
}
function eliminar() {
var reply=confirm("¿Seguro que desea borrar la patologia?")
if (reply==true)
{
window.location.href="ges_pat.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
&id=<?php echo $_smarty_tpl->tpl_vars['mod_campos']->value[0];?>
&accion=1";
}
else
{
//AQUI NO HARIA NADA, SE CERRARIA EL POPUP Y SEGUIRIA EN LA PAGINA ACTUAL
}
}
function n_patologia() {
window.location.href="ges_pat_nueva.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
";
}
$(document).ready(function() {
$('#example').DataTable({
lengthMenu: [
[ 10, 25, 100, -1 ],
[ '10 filas', '25 filas', '100 filas', 'Todas las filas' ]
]
});
var table = $('#example').DataTable();
$('#example tbody').on( 'click', 'tr', function () {
$(this).toggleClass('selected');
window.location.href="ges_pat.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
&id="+table.rows('.selected').data()[0][0];
} );
} );
<?php echo '</script'; ?>
>
<?php $_smarty_tpl->_subTemplateRender("file:footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}
<?php
/* Smarty version 3.1.38, created on 2022-06-01 19:00:27
from '/volume1/web/velostat/templates/ges_ens_nuevo.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.38',
'unifunc' => 'content_62979b2bbf22b1_34197800',
'has_nocache_code' => false,
'file_dependency' =>
array (
'ca87c448aeb6614657c25f99529a77ce08340f70' =>
array (
0 => '/volume1/web/velostat/templates/ges_ens_nuevo.tpl',
1 => 1654017269,
2 => 'file',
),
),
'includes' =>
array (
'file:head.tpl' => 1,
'file:barra.tpl' => 1,
'file:footer.tpl' => 1,
),
),false)) {
function content_62979b2bbf22b1_34197800 (Smarty_Internal_Template $_smarty_tpl) {
?><!DOCTYPE html>
<!-- El head con los estilos y el javascript genérico -->
<?php $_smarty_tpl->_subTemplateRender("file:head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Barra de menu -->
<?php $_smarty_tpl->_subTemplateRender("file:barra.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- Zona Central -->
<?php echo '<script'; ?>
type="text/javascript">
function limita(maximoCaracteres) {
var elemento = document.getElementById("texto");
if(elemento.value.length >= maximoCaracteres ) {
return false;
}
else {
return true;
}
}
<?php echo '</script'; ?>
>
<div class="" role="main">
<div class="">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
<h2> <?php echo $_smarty_tpl->tpl_vars['mensaje']->value;?>
<small></small></h2>
<div class="clearfix"></div>
</div>
<div class="x_content">
<form class="form-horizontal form-label-left" action="ges_ens_nuevo.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
" method="post">
<!-- Tipo / Nombre -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Tipo (Nombre) *<span class="required"></span>
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control col-md-7 col-xs-12" data-validate-length-range="50" name="tipo" required type="text" >
</div>
</div>
<!-- Colocacion sensores -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Colocación Sensores *<span class="required"></span>
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control col-md-7 col-xs-12" data-validate-length-range="300" name="coloc_sensores" required type="text" >
</div>
</div>
<!-- Duracion -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Duración *<span class="required"></span>
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control col-md-7 col-xs-12" data-validate-length-range="11" name="duracion" required type="number" placeholder="En segundos">
</div>
</div>
<!-- Repeticiones -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Repeticiones *<span class="required"></span>
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control col-md-7 col-xs-12" data-validate-length-range="11" name="repeticiones" required type="number" placeholder="Número de repeticiones">
</div>
</div>
<!-- Comentarios -->
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Comentarios
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control col-md-7 col-xs-12" data-validate-length-range="500" name="comentarios" type="textarea" >
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="col-md-6 col-md-offset-3">
<button onclick="cancel()" type="button" class="btn btn-warning">Cancelar</button>
<button id="send" type="submit" class="btn btn-success">Guardar</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo '<script'; ?>
type="text/javascript">
//estado();
function cancel() {
window.location.href="ges_ens.php?variable=<?php echo $_smarty_tpl->tpl_vars['id_admin']->value;?>
";
}
<?php echo '</script'; ?>
>
<?php $_smarty_tpl->_subTemplateRender("file:footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment