Changeset 1cd3990 in prototipo_portal_2018
- Timestamp:
- Jul 8, 2015, 10:18:11 AM (9 years ago)
- Branches:
- master
- Children:
- 7e8ad27
- Parents:
- 36a8003
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WebContent/index.html
r36a8003 r1cd3990 4 4 <head> <!--Inicio del head --> 5 5 <meta charset="UTF-8"/> 6 <title>Portal de verificación y firma electrónica</title>7 6 <link href="bootstrap.min.css" rel="stylesheet"> 7 <link rel="stylesheet" type="text/css" href="css/dataTables.bootstrap.css"> 8 <link rel="stylesheet" type="text/css" href="css/font-awesome.css"> 9 10 <script type="text/javascript" src="jquery.min.js"></script> 11 <script type="text/javascript" src="js/jquery.dataTables.min.js"></script> 12 <script type="text/javascript" src="js/dataTables.bootstrap.js"></script> 13 <script src="bootstrap.min.js" type="text/javascript"></script> 14 8 15 <link href="css/fileinput.css" media="all" rel="stylesheet" type="text/css" /> 9 <script src="jquery.min.js"></script> 10 <script src="js/fileinput.js" type="text/javascript"></script> 11 <script src="bootstrap.min.js" type="text/javascript"></script> 12 <script src="jquery.form.js"></script> 16 <script src="js/jquery.form.js" type="text/javascript"></script> 17 <script src="js/fileinput.js" type="text/javascript"></script> 18 <script type="text/javascript" src="gitversion.js"></script> 19 <script type="text/javascript" src="hwcrypto-legacy.js"></script> 20 <script type="text/javascript" src="hwcrypto.js"></script> 21 <script type="text/javascript" src="hex2base.js"></script> 13 22 14 <script src="gitversion.js"></script> 15 <script src="hwcrypto-legacy.js"></script> 16 <script src="hwcrypto.js"></script> 17 <script src="jquery.js"></script> 18 <script src="hex2base.js"></script> 23 <script type="text/javascript" charset="utf-8"> 24 $(document).ready(function() { 25 $('table.display').dataTable(); 26 } ); 27 </script> 28 19 29 20 30 </head> <!--fin del head --> … … 394 404 alert("ver respuesta") 395 405 document.getElementById("respuestaVerificacion").innerHTML = html; 406 $('table.display').dataTable(); 396 407 }, 397 408 error: function(response) { … … 440 451 var signatures = ''; //variable que maneja las firmas 441 452 var fields = ''; //variable que maneja los campos de la firma 442 var title = '<h2> Información</h2> \n <p>Información de la firma electronica \n';443 var head = '<div class=\'container\'> \n < div class=\'table-responsive\'> \n <table id=\'example\' class=\'table table-bordered\' data-height=\'299\' > \n <thead> \n <tr>\n <th>#</th>\n <th>Campo</th>\n <th>Descripción</th> \n </tr>\n </thead>\n <tbody>\n';453 var title = '<h2> Información de la firma electronica </h2> \n '; 454 var head = '<div class=\'container\'> \n <table id=\' \' class=\'display table table-striped table-bordered\' cellspacing=\'0\' width=\'100%\' > \n <thead> \n <tr>\n <th>#</th>\n <th>Campo</th>\n <th>Descripción</th> \n </tr>\n </thead>\n <tbody> \n'; 444 455 var footer = '</tbody> \n </table> \n </div> \n </div>'; 445 var html = title + head;456 var html = title; 446 457 var numsign = 0; 447 458 448 459 $.each(objVarVerifique, function(idx, obj) { 449 if(idx == "fileExist"){450 html += '<tr>\n<td>1</td>\n<td>' + ' El archivo se cargo exitosamente del servidor ' + '</td>\n<td>' + obj +' </td>\n</tr>\n';451 }452 460 453 461 if(idx == "numberOfSignatures"){ 454 462 numsign = obj; 455 html += '<tr>\n<td>2</td>\n<td>' + ' Número de firmas existentes en el archivo ' + '</td>\n<td>' + obj +' </td>\n</tr>\n'; 456 html += footer + head; 463 html += '<h4>' + fielJsonEs[idx] + ': ' + obj +' </h4>\n <br><br>'; 457 464 } 458 465 … … 467 474 468 475 $.each(signatures, function(idx, obj) { 476 html += '<h4> Información de la firma: '+contsing+'<h4> \n'; 477 html += head; 469 478 var contfiels = 1; // variable que indica el campo de la firma 470 479 fields = obj; // variable que almacena los campos de la firma … … 474 483 }); 475 484 contsing++; 476 if(contsing>numsign) html += footer; 477 else html += footer + head 485 html += footer; 486 //if(contsing>numsign) html += footer; 487 //else html += footer + head 478 488 }); 479 html += footer;489 //html += footer; 480 490 return(html); 481 491 }
Note: See TracChangeset
for help on using the changeset viewer.