Sindbad~EG File Manager
@extends('layouts.app')
@section('content')
@php
if(isset($_GET["token"])){
$token = $_GET["token"];
$existe=0;
$user = base64_decode($token);
@endphp
@foreach($respuesta1 as $res)
@if($res->user_id == $user)
@php
$existe=1;
@endphp
@endif
@endforeach
@if($existe == 1)
<script>
<!--
window.location.replace('http://encuesta.sumar.com.py/encuesta/cuestionarios/clima');
//-->
</script>
@endif
<style>
input[type=radio] {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
/* IMAGE STYLES */
input[type=radio] + img {
cursor: pointer;
}
/* CHECKED STYLES */
input[type=radio]:checked + img {
outline: 2px solid #AE0303;
}
input[type=radio]:checked + img {
transform: scale(0.9);
box-shadow: 0 0 5px #333;
z-index: -1;
}
input[type=checkbox] + label {
cursor: pointer;
}
input[type=checkbox] {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
input[type=checkbox]:checked + label {
outline: 2px solid #AE0303;
}
input[type=checkbox]:checked + label {
transform: scale(0.9);
box-shadow: 0 0 5px #333;
z-index: -1;
}
.vcenter {
display: inline-block;
vertical-align: middle;
float: none;
}
</style>
<img src="{{ asset('head.png') }}" style="margin-top: -25px;" width="100%" alt="">
<div class="container" style="background-color: #FFFFFF;">
<div class="row justify-content-center align-self-center">
<div class="col-md-12"><br>
<p align="center"><b>Si existen dudas o contas con inconvenientes, podes contactar a:</b></p>
</div>
<div class="col-md-3">
</div>
<div class="col-md-3">
<p align="center"><img src="{{ asset('correo.png') }}" width="20%" alt=""></p>
<h4 align="center" style="color: #002b55;"><b>tutor@sumar.com.py</b></h4>
</div>
<div class="col-md-3">
<p align="center"><img src="{{ asset('telefono.png') }}" width="20%" alt=""></p>
<h4 align="center" style="color: #002b55;"><b>0981 217 504</b></h4>
</div>
<div class="col-md-3">
</div>
<div class="col-md-12" style="background-color: #EAEAEA;border-radius:10px;">
<p align="center" style="font-size: 18px; color: #002b55;"><b>POR FAVOR, CON LA MAYOR SINCERIDAD POSIBLE CALIFICÁ CÓMO TE SIENTES ANTE CADA ENUNCIADO, <br>DONDE 1 ES NOTA MÁS BAJA Y 4 LA NOTA MÁS ALTA.</b></p>
@if (count($errors)>0)
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>
{{$error}}
</li>
@endforeach
</ul>
</div>
@endif
{!! Form::open(array('url'=>'cuestionarios/clima','method'=>'POST','autocomplete'=>'off','name'=>'form1')) !!}
{{Form::token()}}
@foreach ($formulario1 as $for)
@if($for->tipo == 1)
<div class="row">
<div class="col-md-7 vcenter">
<div>
<p style="background-color: #FFFFFF;padding-left: 10px;padding-top: 10px;padding-bottom: 10px;border-radius: 10px;color: #000000;">{{$for->cuestionante}}</p>
</div>
</div>
<div class="col-md-3 vcenter">
<div style="height:4em;">
<center><label>
<input type="radio" name="{{$for->id}}" value="1" required>
<img src="{{ asset('1.png') }}" width="40px" alt="">
</label>
<label>
<input type="radio" name="{{$for->id}}" value="2">
<img src="{{ asset('2.png') }}" width="40px" alt="">
</label>
<label>
<input type="radio" name="{{$for->id}}" value="3">
<img src="{{ asset('3.png') }}" width="40px" alt="">
</label>
<label>
<input type="radio" name="{{$for->id}}" value="4">
<img src="{{ asset('4.png') }}" width="40px" alt="">
</label></center>
</div>
</div>
</div>
@endif
@endforeach
{{--<div class="row">
<!--<div class="col-md-12"><br>
<p align="center" style="font-size: 18px; color: #2b5901;"><b>Lo que más me gusta de formar parte del Equipo Atlas</b><br>Favor seleccione tres opciones</p>
</div> -->
<input type="text" id="megusta" style="display: none;" required>
@foreach ($formulario1 as $for)
@if($for->tipo == 2)
<div class="col-md-2">
<input align="center" type="checkbox" name="megusta[]" id="{{$for->id}}" value="{{$for->cuestionante}}" onclick="chkmegusta({{$for->id}});">
<label for="{{$for->id}}" style="text-align: center; background: #FFFFFF;margin-top: 20px;padding-top: 10px;padding-bottom:10px; border-radius: 10px;color: #000000;height: 100%;width: 100%">{{$for->cuestionante}}</label>
</div>
@endif
@endforeach
<!--<div class="col-md-12"><br>
<p align="center" style="font-size: 18px; color: #2b5901;"><b>En que podríamos seguir mejorando</b><br>Favor seleccione tres opciones</p>
</div> -->
<input type="text" id="nomegusta" style="display: none;" required>
@foreach ($formulario1 as $for)
@if($for->tipo == 3)
<div class="col-md-2">
<input align="center" type="checkbox" id="{{$for->id}}" name="nomegusta[]" value="{{$for->cuestionante}}" onclick="chknomegusta({{$for->id}});">
<label for="{{$for->id}}" style="text-align: center; background: #FFFFFF;margin-top: 20px;padding-top: 10px;padding-bottom:10px; border-radius: 10px;color: #000000;height: 100%;width: 100%">{{$for->cuestionante}}</label>
</div>
@endif
@endforeach
<div class="col-md-12"><br>
<p align="center" style="font-size: 18px; color: #002b55;"><b> </b> </p>
</div>
@foreach ($formulario1 as $for)
@if($for->tipo == 4)
<div class="col-md-12">
<input align="center" type="checkbox" name="otro[]" id="{{$for->id}}" value="{{$for->cuestionante}}">
<label for="{{$for->id}}" style="text-align: center; background: #FFFFFF;margin-top: 20px;padding-top: 10px;padding-bottom:10px; border-radius: 10px;color: #000000;height: 100%;width: 100%">{{$for->cuestionante}}</label>
</div>
@endif
@endforeach
--}}
<div class="col-md-12">
<br>
</div>
@foreach ($formulario1 as $for)
@if($for->tipo == 5)
<div class="col-md-12" style="text-align: center; background-color: #FFFFFF;padding-left: 10px;padding-top: 10px;padding-bottom: 10px;border-radius: 10px;color: #000000; border: 1px solid #002b55;">
<p style="font-size: 18px; color: #002b55;"><b>{{$for->cuestionante}}</b></p>
<textarea name="{{$for->id}}" class="form-control" id="" cols="15" rows="5" maxlength="3000"></textarea>
</div>
@endif
@endforeach
<div class="col-md-12">
<div class="form-group">
<input type="hidden" name="token" value="{{$token}}">
</div>
<div class="form-group">
<center><button class="btn btn-primary" onclick="verificar();" type="submit">Enviar</button></center>
</div>
</div>
</div>
{!!Form::close()!!}
</div>
<div class="col-md-12"><br>
<p align="center" style="font-family: blog script;font-size: 30px; color: #002b55;"><b>¡MUCHAS GRACIAS POR TU APORTE!</b></p><br>
</div>
</div>
</div>
{{--<script type="text/javascript">
var total=0;
function chkmegusta(i) {
if(total < 4){
if(document.getElementById(i).checked == true){
total=total+1;
}else{
total=total-1;
}
}
if(total == 3){
document.getElementById("megusta").value = "listo";
}
if(total > 3){
if(document.getElementById(i).checked == false){
total=total-2;
}else{
alert("Solo puede seleccionar 3 items")
document.getElementById(i).checked = false ;
return false;
}
}
}
var total1=0;
function chknomegusta(j) {
if(total1 < 4){
if(document.getElementById(j).checked == true){
total1=total1+1;
}else{
total1=total1-1;
}
}
if(total1 == 3){
document.getElementById("nomegusta").value = "listo";
}
if(total1 > 3){
if(document.getElementById(j).checked == false){
total1=total1-2;
}else{
alert("Solo puede seleccionar 3 items")
document.getElementById(j).checked = false ;
return false;
}
}
}
function verificar() {
if(total < 3){
alert("Debes seleccionar minimamente 3 opciones de lo que más te gusta de formar parte del Equipo Atlas");
}
if(total1 < 3){
alert("Debes seleccionar minimamente 3 opciones de lo que menos te gusta de formar parte del Equipo Atlas");
}
}
</script>--}}
@php
}else{
echo "Violación de seguridad, Token no generado";
}
@endphp
@endsection
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists