Mister Spy Say ="Hello Kids ... :D"
___ ____ _ _____
| \/ (_) | | / ___|
| . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _
| |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | |
| | | | \__ \ || __/ | /\__/ / |_) | |_| |
\_| |_/_|___/\__\___|_| \____/| .__/ \__, |
| | __/ |
|_| |___/
Bot Mister Spy V3
Mister Spy
Mister Spy
/**
* Theme: Ubold Admin Template
* Author: Coderthemes
* JsGrid page
*/
/**
* JsGrid Controller
*/
var urlJsonData = "json-categoriassubrubros.php";
var urlJsonAdd = "json-categoriassubrubros-add.php";
var urlJsonMod = "json-categoriassubrubros-mod.php";
var urlJsonDel = "json-categoriassubrubros-del.php";
var EntidadNombre = "Tipo de competencia";
disableInsert = true;
disableEdit = true;
var CategoriasF = [{IdCategoria: '', Nombre: 'Indistinto' }].concat(Categorias);
// var Secciones = [{IdSeccion: '', Nombre: 'Indistinto' }];
var fields_grid = [
{
name: "IdCategoria",
title: "Competencia",
type: "select",
items: CategoriasF,
valueField: "IdCategoria",
textField: "Nombre",
width: "25%",
filtercss: "categoria-filter",
validate: {
validator: function(value) { return value > 0; },
message: "Seleccione una categoria"
}
},
{
name: "Nombre",
type: "text",
width: "45%",
validate: {
validator: "required",
message: "Ingrese el nombre"
}
},
{
name: "Orden",
type: "text",
width: "15%",
validate: {
validator: "required",
message: "Ingrese el orden"
}
},
{
type: "control",
width: "15%",
deleteButtonTooltip: "Eliminar",
searchButtonTooltip: "Buscar",
editButtonTooltip: "Editar",
cancelEditButtonTooltip: "Cancelar",
updateButtonTooltip: "Actualizar",
insertButtonTooltip: "Insertar",
itemTemplate: function(value, item) {
var $result = jsGrid.fields.control.prototype.itemTemplate.apply(this, arguments);
var eb = $result[0];
$(eb).on("click", function () {
$('#modal-update #IdCategoriaSubrubro').val(item.IdCategoriaSubrubro);
$('#modal-update #IdCategoriaU').val(item.IdCategoria);
$('#modal-update #NombreU').val(item.Nombre);
$('#modal-update #OrdenU').val(item.Orden);
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