at path:
ROOT
/
sistema
/
assets
/
js
/
web.js
run:
R
W
Run
init-scripts
DIR
2026-04-09 04:12:40
R
W
Run
ajax.js
390 By
2020-03-21 21:04:06
R
W
Run
Delete
Rename
apuntes.js
3.16 KB
2020-09-04 15:07:24
R
W
Run
Delete
Rename
dashboard.js
3.28 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
index.html
0 By
2018-11-08 02:46:18
R
W
Run
Delete
Rename
main.js
894 By
2018-11-08 02:46:18
R
W
Run
Delete
Rename
modacceso.js
34.52 KB
2020-07-31 00:11:56
R
W
Run
Delete
Rename
modalertas.js
2.55 KB
2020-11-02 20:27:14
R
W
Run
Delete
Rename
modceproceso.js
57.56 KB
2020-11-09 23:40:36
R
W
Run
Delete
Rename
modcms.js
333.75 KB
2020-11-16 21:17:02
R
W
Run
Delete
Rename
modpersonal.js
32.37 KB
2020-05-23 19:43:12
R
W
Run
Delete
Rename
modproyectos.js
70.66 KB
2020-06-13 00:57:06
R
W
Run
Delete
Rename
web.js
5.77 KB
2020-09-21 22:29:16
R
W
Run
Delete
Rename
widgets.js
6.09 KB
2018-11-08 02:46:18
R
W
Run
Delete
Rename
error_log
up
📄
web.js
Save
// JavaScript Document function EnviarFormulario(form) { var Formulario = document.getElementById(form); if (Formulario) { var longitudFormulario = Formulario.elements.length; var cadenaFormulario = "" var sepCampos = "" for (var i = 0; i <= Formulario.elements.length - 1; i++) { if (Formulario.elements[i].type) { if (Formulario.elements[i].type == "checkbox") { if (Formulario.elements[i].checked == true) { cadenaFormulario += sepCampos + Formulario.elements[i].name + '=' + encodeURI(Formulario.elements[i].value); sepCampos = "&"; } } else if (Formulario.elements[i].type == "radio") { if (Formulario.elements[i].checked == true) { value = Formulario.elements[i].value cadenaFormulario += sepCampos + Formulario.elements[i].name + '=' + encodeURI(Formulario.elements[i].value); sepCampos = "&"; } } else if (Formulario.elements[i].type == "select-multiple") { if (Formulario.elements[i].selectedIndex != undefined && Formulario.elements[i].selectedIndex != -1) { var c = 0; for (j = 0; j < Formulario.elements[i].options.length; j++) { if (Formulario.elements[i].options[j].selected == true) { ///alert(Formulario.elements[i].options[j].value) value = Formulario.elements[i].options[j].value cadenaFormulario += sepCampos + Formulario.elements[i].name + '[' + c + ']=' + encodeURI(value); sepCampos = "&"; c++; } } } /*if(Formulario.elements[i].selected==true){ value=Formulario.elements[i].value cadenaFormulario += sepCampos+Formulario.elements[i].name+'='+encodeURI(Formulario.elements[i].value); sepCampos="&"; }*/ } else if (Formulario.elements[i].type != "fieldset") { value = Formulario.elements[i].value //if (value != "") { if (Formulario.elements[i].name == "txteditor") { /*alert(Formulario.elements[i].name); alert(Formulario.elements[i].type); alert(value)*/ } value = value.split("&").join("[as]"); value = value.split("+").join("[mas]"); value = value.split("'").join("`"); cadenaFormulario += sepCampos + Formulario.elements[i].name + '=' + value; sepCampos = "&"; // } } } } return cadenaFormulario; } else { return ''; } } var sitePlusMinus = function() { $('.js-btn-minus').on('click', function(e){ e.preventDefault(); if ( $(this).closest('.input-group').find('.form-control').val() != 0 ) { $(this).closest('.input-group').find('.form-control').val(parseInt($(this).closest('.input-group').find('.form-control').val()) - 1); } else { $(this).closest('.input-group').find('.form-control').val(parseInt(0)); } //alert($(this).closest('.input-group').find('.form-control').val()) //alert(document.getElementById('txt_abc').value); car_producto_lista_01_actualizar($(this).closest('.input-group').find('.form-control').val(),document.getElementById('txt_abc').value); }); $('.js-btn-plus').on('click', function(e){ e.preventDefault(); $(this).closest('.input-group').find('.form-control').val(parseInt($(this).closest('.input-group').find('.form-control').val()) + 1); //alert($(this).closest('.input-group').find('.form-control').val()) //alert(document.getElementById('txt_abc').value); car_producto_lista_01_actualizar($(this).closest('.input-group').find('.form-control').val(),document.getElementById('txt_abc').value); }); }; sitePlusMinus(); function car_producto_lista_01_eliminar(contador,idcarrito) { var ajax=nuevoAjax(); url="car_producto_lista_01_eliminar.php"; ajax.open("POST", url, true); ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); ajax.send("contador="+contador+"&idcarrito="+idcarrito); ajax.onreadystatechange=function(){ if (ajax.readyState==4) { var respuesta=ajax.responseText; //alert(respuesta); //return false; var gl=this; if(window.execScript){ window.execScript(respuesta); }else if( gl.eval ){ gl.eval(respuesta) }else{ eval(respuesta); } } } } function car_producto_lista_01_actualizar(cantidad,idcarrito) { var ajax=nuevoAjax(); url="car_producto_lista_01_actualizar.php"; ajax.open("POST", url, true); ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); ajax.send("cantidad="+cantidad+"&idcarrito="+idcarrito); ajax.onreadystatechange=function(){ if (ajax.readyState==4) { var respuesta=ajax.responseText; //alert(respuesta); //return false; var gl=this; if(window.execScript){ window.execScript(respuesta); }else if( gl.eval ){ gl.eval(respuesta) }else{ eval(respuesta); } } } }