<?php

include_once direction . functions . 'html.inc.php';
include_once direction . functions . 'form.inc.php';
open_html_head($pestanapag);
load_jquery();
load_jqueryvalidation();
?>
<script type="text/javascript">
  $(document).ready(function() {
    $("#plantaform").validate({
      rules: {
        razonsocial: {
         required: true
        },
        planta: {
         required: true
        },
        calle: {
         required: true
        },
        colonia: {
         required: true
        },
        ciudad: {
         required: true
        },
        estado: {
         required: true
        },
        cp: {
Example #2
0
<?php

include_once direction . functions . 'html.inc.php';
open_html_head('Acreditación');
load_jquery();
load_datatables();
?>

<script type="text/javascript">
  $(document).ready(function(){
      $('#datatable').DataTable({
        "language": {
                    "sProcessing":     "Procesando...",
                    "sLengthMenu":     "Mostrar _MENU_ registros",
                    "sZeroRecords":    "No se encontraron resultados",
                    "sEmptyTable":     "Ningún dato disponible en esta tabla",
                    "sInfo":           "Mostrando registros del _START_ al _END_ de un total de _TOTAL_ registros",
                    "sInfoEmpty":      "Mostrando registros del 0 al 0 de un total de 0 registros",
                    "sInfoFiltered":   "(filtrado de un total de _MAX_ registros)",
                    "sInfoPostFix":    "",
                    "sSearch":         "Buscar:",
                    "sUrl":            "",
                    "sInfoThousands":  ",",
                    "sLoadingRecords": "Cargando...",
                    "oPaginate": {
                        "sFirst":    "Primero",
                        "sLast":     "Último",
                        "sNext":     "Siguiente",
                        "sPrevious": "Anterior"
                    },
                    "oAria": {
<?php

include_once direction . functions . 'html.inc.php';
include_once direction . functions . 'form.inc.php';
open_html_head('Acceso Denegado');
close_head_open_body();
get_header();
?>
<div id="pantallaerror">
  <div id="mensajerror">
    <h3> Acceso denegado </h3>
    <div>
      <h4> <?php 
htmlout($mensaje);
?>
 </h4>
    </div>
  <div>
</div>  <!-- cuerpoprincipal -->
<?php 
close_html_body_footer();
<?php

include_once direction . functions . 'html.inc.php';
include_once direction . functions . 'form.inc.php';
open_html_head('Confirmación');
close_head_open_body();
get_header();
?>
<div>
  <div id="confirma">
    <h3>Confirmación de borrado de la planta</h3>
    <form action="" method="post">
      <h4>Estás seguro de que deseas borrar la planta número: <?php 
htmlout(htmldecode($valores['planta']));
?>
, 
      de: <?php 
htmlout(htmldecode($valores['razonsocial']));
?>
, 
      ubicada en el estado: <?php 
htmlout(htmldecode($valores['estado']));
?>
,
      ciudad: <?php 
htmlout(htmldecode($valores['ciudad']));
?>
.<h4>
      <p>
        <input type="hidden" name="id" value="<?php 
htmlout($id);
<?php

include_once direction . functions . 'html.inc.php';
open_html_head('Metodos');
load_jquery();
load_datatables();
?>

<script type="text/javascript">
  $(document).ready(function(){
      $('#datatable').DataTable({
        "language": {
                    "sProcessing":     "Procesando...",
                    "sLengthMenu":     "Mostrar _MENU_ registros",
                    "sZeroRecords":    "No se encontraron resultados",
                    "sEmptyTable":     "Ningún dato disponible en esta tabla",
                    "sInfo":           "Mostrando registros del _START_ al _END_ de un total de _TOTAL_ registros",
                    "sInfoEmpty":      "Mostrando registros del 0 al 0 de un total de 0 registros",
                    "sInfoFiltered":   "(filtrado de un total de _MAX_ registros)",
                    "sInfoPostFix":    "",
                    "sSearch":         "Buscar:",
                    "sUrl":            "",
                    "sInfoThousands":  ",",
                    "sLoadingRecords": "Cargando...",
                    "oPaginate": {
                        "sFirst":    "Primero",
                        "sLast":     "Último",
                        "sNext":     "Siguiente",
                        "sPrevious": "Anterior"
                    },
                    "oAria": {
<?php

include_once direction . functions . 'html.inc.php';
open_html_head('Documentos');
load_jquery();
load_datatables();
?>

<script type="text/javascript">
  $(document).ready(function(){
      $('#datatable').DataTable({
        "filter": false,
        "paging":   false,
        "ordering": false,
        "info":     false,
        "language": {
                    "sProcessing":     "Procesando...",
                    "sLengthMenu":     "Mostrar _MENU_ registros",
                    "sZeroRecords":    "No se encontraron resultados",
                    "sEmptyTable":     "Ningún dato disponible en esta tabla",
                    "sInfo":           "Mostrando registros del _START_ al _END_ de un total de _TOTAL_ registros",
                    "sInfoEmpty":      "Mostrando registros del 0 al 0 de un total de 0 registros",
                    "sInfoFiltered":   "(filtrado de un total de _MAX_ registros)",
                    "sInfoPostFix":    "",
                    "sSearch":         "Buscar:",
                    "sUrl":            "",
                    "sInfoThousands":  ",",
                    "sLoadingRecords": "Cargando...",
                    "oPaginate": {
                        "sFirst":    "Primero",
                        "sLast":     "Último",
Example #7
0
<?php

include_once direction . functions . 'html.inc.php';
include_once direction . functions . 'form.inc.php';
open_html_head('Laboratorio');
close_head_open_body();
get_header();
?>
<div>
  <h3>Laboratorio</h3>
  <form id="medsform" name="medsform" class="form-inline" action="index.php" method="post">
    <div class="form-group">
      <label>Norma: </label>
      <select name="norma" class="form-control">
        <?php 
foreach ($normas as $value) {
    ?>
          <option value="<?php 
    echo $value;
    ?>
"><?php 
    echo $value;
    ?>
</option>
        <?php 
}
?>
      </select>
    </div>
    <br><br>
    <div>
<?php

include_once direction . functions . 'html.inc.php';
open_html_head('Plantas');
load_jquery();
load_datatables();
?>

<script type="text/javascript">
  $(document).ready(function(){
      $('#datatable').DataTable({
        "language": {
                    "sProcessing":     "Procesando...",
                    "sLengthMenu":     "Mostrar _MENU_ registros",
                    "sZeroRecords":    "No se encontraron resultados",
                    "sEmptyTable":     "Ningún dato disponible en esta tabla",
                    "sInfo":           "Mostrando registros del _START_ al _END_ de un total de _TOTAL_ registros",
                    "sInfoEmpty":      "Mostrando registros del 0 al 0 de un total de 0 registros",
                    "sInfoFiltered":   "(filtrado de un total de _MAX_ registros)",
                    "sInfoPostFix":    "",
                    "sSearch":         "Buscar:",
                    "sUrl":            "",
                    "sInfoThousands":  ",",
                    "sLoadingRecords": "Cargando...",
                    "oPaginate": {
                        "sFirst":    "Primero",
                        "sLast":     "Último",
                        "sNext":     "Siguiente",
                        "sPrevious": "Anterior"
                    },
                    "oAria": {
<?php

include_once direction . functions . 'html.inc.php';
open_html_head('Equipos');
load_jquery();
load_datatables();
?>

<script type="text/javascript">
  $(document).ready(function(){
      $('#datatable').DataTable({
        "language": {
                    "sProcessing":     "Procesando...",
                    "sLengthMenu":     "Mostrar _MENU_ registros",
                    "sZeroRecords":    "No se encontraron resultados",
                    "sEmptyTable":     "Ningún dato disponible en esta tabla",
                    "sInfo":           "Mostrando registros del _START_ al _END_ de un total de _TOTAL_ registros",
                    "sInfoEmpty":      "Mostrando registros del 0 al 0 de un total de 0 registros",
                    "sInfoFiltered":   "(filtrado de un total de _MAX_ registros)",
                    "sInfoPostFix":    "",
                    "sSearch":         "Buscar:",
                    "sUrl":            "",
                    "sInfoThousands":  ",",
                    "sLoadingRecords": "Cargando...",
                    "oPaginate": {
                        "sFirst":    "Primero",
                        "sLast":     "Último",
                        "sNext":     "Siguiente",
                        "sPrevious": "Anterior"
                    },
                    "oAria": {
<?php

include_once direction . functions . 'html.inc.php';
include_once direction . functions . 'form.inc.php';
open_html_head('Ordenes');
close_head_open_body();
get_header();
?>
<div>
	<h3>Administrador de ordenes</h3>
	<p><a class="btn btn-default" href="?ordenueva">Agrega una orden nueva</a></p>
	<form action="?" class="form-inline" method="get">
		<p>Buscar a una orden de acuerdo con los siguientes criterios</p>
		<div class="form-group">
			<label for="ot">Num de OT:</label>
			<input type="text" class="form-control" name="ot" id="ot">
		</div>
		<br><br>
		<div class="form-group">
			<label for="fechaini">Fecha de inicio:</label>
			<input type="date" class="form-control" name="fechaini" id="fechaini">
			<label for="fechafin">Fecha fin:
			<input type="date" class="form-control" name="fechafin" id="fechafin"> (aaaa-mm-dd)</label>
		</div>
		<br><br>
		<div class="form-group">
			<label for="tipo">Tipo:</label>
			<select name="tipo" id="tipo" class="form-control">
				<option value="">Cualquier especialidad</option>
				<?php 
$num = count($especialidades);
Example #11
0
<?php

open_html_head('Captura');
close_head_open_body();
get_header();
?>
  <div style="display:table;width:100%;height:100%;">
    <?php 
get_menu();
?>
    <?php 
get_principal_view();
?>
  </div>
<?php 
close_html_body_footer();
<?php 
include_once direction . functions . 'html.inc.php';
open_html_head('Representantes');
load_jquery();
load_datatables();
?>

<script type="text/javascript">
  $(document).ready(function(){
      $('#datatable').DataTable({
        "language": {
                    "sProcessing":     "Procesando...",
                    "sLengthMenu":     "Mostrar _MENU_ registros",
                    "sZeroRecords":    "No se encontraron resultados",
                    "sEmptyTable":     "Ningún dato disponible en esta tabla",
                    "sInfo":           "Mostrando registros del _START_ al _END_ de un total de _TOTAL_ registros",
                    "sInfoEmpty":      "Mostrando registros del 0 al 0 de un total de 0 registros",
                    "sInfoFiltered":   "(filtrado de un total de _MAX_ registros)",
                    "sInfoPostFix":    "",
                    "sSearch":         "Buscar:",
                    "sUrl":            "",
                    "sInfoThousands":  ",",
                    "sLoadingRecords": "Cargando...",
                    "oPaginate": {
                        "sFirst":    "Primero",
                        "sLast":     "Último",
                        "sNext":     "Siguiente",
                        "sPrevious": "Anterior"
                    },
                    "oAria": {
                        "sSortAscending":  ": Activar para ordenar la columna de manera ascendente",
Example #13
0
<?php

include_once direction . functions . 'html.inc.php';
include_once direction . functions . 'form.inc.php';
open_html_head('Error');
close_head_open_body();
get_header();
?>
<div id="pantallaerror">
  <div id="mensajerror">
    <h3> Error!!! </h3>
    <div>
      <h4> <?php 
htmlout($mensaje);
?>
 </h4>
    </div>
    <?php 
if (isset($_POST['arquitectura'])) {
    ?>
      <form action="<?php 
    htmlout($_POST['url']);
    ?>
" method="post">
        <?php 
    foreach (json_decode($_POST['arquitectura'], TRUE) as $nombrevariable => $estructura) {
        if ($estructura['tipo'] === 0) {
            $valor = isset($estructura['valor']) ? $estructura['valor'] : $_POST[$estructura['variables']];
            echo '<input type="hidden" name="' . $nombrevariable . '" value="' . $valor . '">';
        } elseif ($estructura['tipo'] === 1) {
            $inputs = explode(',', $estructura['variables']);
Example #14
0
<?php

include_once direction . functions . 'html.inc.php';
include_once direction . functions . 'form.inc.php';
open_html_head('Firma');
close_head_open_body();
get_header();
?>
<div>
  <h2>Muestreador: <?php 
echo $nombremuestreador;
?>
</h2>
  <div>
    <h4>Para subir documentos al sistema</h4>
    <form action="?" method="post" class="form-inline" enctype="multipart/form-data">
      <div class="form-group">
        <label for="archivo">Selecciona el archivo a subir</label>
        <input type="file" id="archivo" name="archivo">
      </div>
      <br>
      <div>
        <input type="hidden" name="id" value="<?php 
htmlout($id);
?>
">
        <input type="hidden" name="hora" value="<?php 
htmlout(time());
?>
">
        <input type="hidden" name="accion" value="subir"> 
<?php

include_once direction . functions . 'html.inc.php';
open_html_head('Normas');
load_jquery();
load_datatables();
?>

<script type="text/javascript">
  $(document).ready(function(){
      $('#datatable').DataTable({
        "language": {
                    "sProcessing":     "Procesando...",
                    "sLengthMenu":     "Mostrar _MENU_ registros",
                    "sZeroRecords":    "No se encontraron resultados",
                    "sEmptyTable":     "Ningún dato disponible en esta tabla",
                    "sInfo":           "Mostrando registros del _START_ al _END_ de un total de _TOTAL_ registros",
                    "sInfoEmpty":      "Mostrando registros del 0 al 0 de un total de 0 registros",
                    "sInfoFiltered":   "(filtrado de un total de _MAX_ registros)",
                    "sInfoPostFix":    "",
                    "sSearch":         "Buscar:",
                    "sUrl":            "",
                    "sInfoThousands":  ",",
                    "sLoadingRecords": "Cargando...",
                    "oPaginate": {
                        "sFirst":    "Primero",
                        "sLast":     "Último",
                        "sNext":     "Siguiente",
                        "sPrevious": "Anterior"
                    },
                    "oAria": {
<?php

include_once direction . functions . 'html.inc.php';
include_once direction . functions . 'form.inc.php';
open_html_head('Orden nueva');
close_head_open_body();
get_header();
?>
<div>
  <h3>Alta de ordenes</h3>
  <h4>Para que dar de alta una orden en el sistema de captura es necesario que antes se de alta administrativamente</h4> 
  <?php 
if (isset($mensaje)) {
    ?>
    <p><strong><?php 
    htmlout($mensaje);
    ?>
</strong></p>
  <?php 
}
?>
	
  <form action="?contordenueva" class="form-inline" method="post">
    <div class="form-group">
      <label for="ot">Num. de OT: </label>
      <input type="text" class="form-control" name="ot" id="ot" value="">
    </div>
    <br><br>
    <div>	
      <input type="submit" class="btn btn-success" value="Continuar">
    </div> 
<?php

include_once direction . functions . 'html.inc.php';
open_html_head('Muestreadores');
load_jquery();
load_datatables();
?>

<script type="text/javascript">
  $(document).ready(function(){
      $('#datatable').DataTable({
        "language": {
                    "sProcessing":     "Procesando...",
                    "sLengthMenu":     "Mostrar _MENU_ registros",
                    "sZeroRecords":    "No se encontraron resultados",
                    "sEmptyTable":     "Ningún dato disponible en esta tabla",
                    "sInfo":           "Mostrando registros del _START_ al _END_ de un total de _TOTAL_ registros",
                    "sInfoEmpty":      "Mostrando registros del 0 al 0 de un total de 0 registros",
                    "sInfoFiltered":   "(filtrado de un total de _MAX_ registros)",
                    "sInfoPostFix":    "",
                    "sSearch":         "Buscar:",
                    "sUrl":            "",
                    "sInfoThousands":  ",",
                    "sLoadingRecords": "Cargando...",
                    "oPaginate": {
                        "sFirst":    "Primero",
                        "sLast":     "Último",
                        "sNext":     "Siguiente",
                        "sPrevious": "Anterior"
                    },
                    "oAria": {
<?php 
include_once direction . functions . 'html.inc.php';
open_html_head('Usuarios');
load_jquery();
load_datatables();
?>

<script type="text/javascript">
  $(document).ready(function(){
      $('#datatable').DataTable({
        "language": {
                    "sProcessing":     "Procesando...",
                    "sLengthMenu":     "Mostrar _MENU_ registros",
                    "sZeroRecords":    "No se encontraron resultados",
                    "sEmptyTable":     "Ningún dato disponible en esta tabla",
                    "sInfo":           "Mostrando registros del _START_ al _END_ de un total de _TOTAL_ registros",
                    "sInfoEmpty":      "Mostrando registros del 0 al 0 de un total de 0 registros",
                    "sInfoFiltered":   "(filtrado de un total de _MAX_ registros)",
                    "sInfoPostFix":    "",
                    "sSearch":         "Buscar:",
                    "sUrl":            "",
                    "sInfoThousands":  ",",
                    "sLoadingRecords": "Cargando...",
                    "oPaginate": {
                        "sFirst":    "Primero",
                        "sLast":     "Último",
                        "sNext":     "Siguiente",
                        "sPrevious": "Anterior"
                    },
                    "oAria": {
                        "sSortAscending":  ": Activar para ordenar la columna de manera ascendente",