@extends('BaseSistemaWeb') @section('CSS') {{ HTML::style('DataTables/dataTables.bootstrap.min.css') }} {{ HTML::style('DataTables/responsive.dataTables.min.css') }} {{ HTML::style('DataTables/select.dataTables.min.css') }} {{ HTML::style('DataTables/buttons.dataTables.min.css') }} {{ HTML::style('SysWeb/SumeClientes/Paginas.min.css') }} {{ HTML::style('gentemplate/css/min/editor.min.css?=v0.1.48') }} {{-- HTML::style('gentemplate/css/editor.css?=v0.1.31') --}} @stop @section('Contenido')

Páginas de captura

Listado de ventanas hola creadas {{ HTML::linkRoute('SysWebPAterrizajeVentanasEmergentesAgregar', 'Agregar', array(), array('class' => 'btn btn-primary')) }}

Nombre Acciones
{{ HTML::linkRoute('SysWebPAterrizajeVentanasEmergentesAgregar', 'Agregar', array(), array('class' => 'btn btn-primary')) }}
@stop @section('JS') {{ HTML::script('DataTables/jquery.dataTables.min.js') }} {{ HTML::script('DataTables/dataTables.bootstrap.min.js') }} {{ HTML::script('DataTables/dataTables.responsive.min.js') }} {{ HTML::script('DataTables/dataTables.select.min.js') }} {{ HTML::script('DataTables/dataTables.buttons.min.js') }} @stop @section('JSOr') @if (Session::has('message')) new PNotify({ title: "¡Felicidades!", text: "{{ Session::get('message') }}", type: "success" }); @endif var tabla = $("#tblVentanasEmergentes").DataTable({ "processing": true, "serverSide": true, "ajax": "{{ URL::route('SysWebPAterrizajeVentanasEmergentes') }}", columns: [ {data: null, defaultContent: "", "searchable": false, "orderable": false}, {data: "nombre", name: "nombre"}, {data: "acciones", name: "acciones", "searchable": false, "orderable": false, "class": "text-center"} ], "language": { "url": "{{ asset('DataTables/Spanish.json') }}", select: { rows: { _: "Tienes seleccionada %d filas", 0: "De clic sobre la fila para seleccionarla", 1: "Solo tiene 1 fila seleccionada" } } }, "fnDrawCallback": function( oSettings ) { $(".tooltips").tooltip(); $(".table-responsive").find("[title]").tooltip(); }, autoWidth: false, responsive: { "details": { "type": "column", "target": 0 } }, columnDefs: [{ "data": null, "defaultContent": "", "className": "control", "orderable": false, "width": "9%", "targets": 0 }], select: { style: "multi", selector: "td:not(.control)" }, dom: "Blfrtip", buttons: [ { text: " ", action: function(){ tabla.rows().select(); }, titleAttr: "Seleccionar todos los elementos" }, { text: " ", action: function(){ tabla.rows().deselect(); }, titleAttr: "Deseleccionar todos los elementos seleccionados" } ], order: [[ 1, "asc" ]] }).on("select", function (e, dt, type, indexes){ var seleccionados = tabla.rows({ selected: true }).count(); if( seleccionados > 0 ){ $("#btnEliminarSeleccionados").show(); } else{ $("#btnEliminarSeleccionados").hide(); } }).on("deselect", function(e, dt, type, indexes){ var seleccionados = tabla.rows({ selected: true }).count(); if( seleccionados > 0 ){ $("#btnEliminarSeleccionados").show(); } else{ $("#btnEliminarSeleccionados").hide(); } }); $("#btnEliminarSeleccionados").click(function(e){ var mensaje = "
\
\
\

¿Seguro que desea eliminar los registros seleccionados?

\
\
\
"; BootstrapDialog.show({ title: "Eliminar registro", type: BootstrapDialog.TYPE_DANGER, message: mensaje, draggable: true, cssClass: "ModalEliminar", buttons: [{ id: "btnEliminar", label: "Eliminar", cssClass: "btn-danger", action: function(dialogItself){ $.isLoading({ text: "Cargando..." }); NProgress.start(); var ids = new Array(); $("#tblVentanasEmergentes").find(".selected").each(function(e){ ids.push($(this).find(".hdnid").val()); }); $("#btnEliminarSeleccionados").prop("disabled", true).html(' Eliminando...'); $("#btnEliminar").prop("disabled", true).html(' Eliminando...'); $.post( "{{ URL::route('SysWebPAterrizajeVentanasEmergentesEliminar') }}", { idVE: ids }, function(data){ $.isLoading("hide"); NProgress.done(); $("#btnEliminarSeleccionados").prop("disabled", false).html("Eliminar seleccionados").hide(); $("#btnEliminar").prop("disabled", false).html("Eliminar"); if(data.success){ new PNotify({ title: "Felicidades!", text: data.mensaje, type: "success" }); dialogItself.close(); var table = $("#tblVentanasEmergentes").DataTable(); table.ajax.reload(null, false); } else{ if(data.mensaje != ''){ new PNotify({ title: "Error", text: data.mensaje, type: "error" }); } $.each(data.errMensajes, function(key, value){ if(value != ''){ $("#err"+key).html(value); } else{ $("#err"+key).html(""); } }); } }, "json" ); } }] }); }); $(".paginas").on("click", function(){ if($(this).find("a").attr("href") == "#ptabvT"){ $("div.bottom").addClass("hide"); } else{ $("div.bottom").removeClass("hide"); } }); @stop