Viewing file: reporte_cobros.php (3.73 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<div class="content-wrapper" style="min-height: 946px;"> <div style="margin-left:20px;"> <section class="content-header"> <h1><?= $titulo ?></h1> <br> </section>
<!-- Main content --> <section class="content"> <div id="container" style="min-width: 300px; height: auto; margin: 0 auto"></div> </section><!-- /.content --> </div><!-- /.content-wrapper --> <script type="text/javascript">
$(function () { $('#container').highcharts({ chart: { type: 'column' }, title: { text: 'COBRANZA/MES' }, xAxis: { type: 'category', labels: { rotation: -45, style: { fontSize: '13px', fontFamily: 'Verdana, sans-serif' } } }, yAxis: { min: 0, title: { text: 'Acumulado en Pesos' } }, legend: { enabled: false }, tooltip: { pointFormat: 'Pagos acumulados: <b>{point.y:.1f} pesos</b>' }, series: [{ name: 'Population', data: [ <?php $resultado=$this->consultas_model->Cobros($filtro); foreach($resultado as $file): echo ("['".$file['mes']."',"); echo ($file['cant']." ],"); // echo ($file['porcentaje']."%"); endforeach; ?> ], dataLabels: { enabled: true, rotation: 0, color: '#FFFFFF', align: 'center', format: '{point.y:.1f}', // one decimal y: 100, // 10 pixels down from the top style: { fontSize: '13px', fontFamily: 'Verdana, sans-serif' } } }] }); });
document.onkeydown = function(){ if (window.event && (window.event.keyCode == 8)) { valor = document.activeElement.value; if (valor==undefined) { return false; } //Evita Back en página. else { if (document.activeElement.getAttribute('type')=='sel ect-one') { return false; } //Evita Back en select. if (document.activeElement.getAttribute('type')=='but ton') { return false; } //Evita Back en button. if (document.activeElement.getAttribute('type')=='rad io') { return false; } //Evita Back en radio. if (document.activeElement.getAttribute('type')=='che ckbox') { return false; } //Evita Back en checkbox. if (document.activeElement.getAttribute('type')=='fil e') { return false; } //Evita Back en file. if (document.activeElement.getAttribute('type')=='res et') { return false; } //Evita Back en reset. if (document.activeElement.getAttribute('type')=='sub mit') { return false; } //Evita Back en submit. else //Text, textarea o password { if (document.activeElement.value.length==0) { return false; } //No realiza el backspace(largo igual a 0). else { document.activeElement.value.keyCode = 8; } //Realiza el backspace. } } } if(window.event && window.event.keyCode == 505){ window.event.keyCode = 505; } }
</script>
|