Exemple #1
0
    $estatus = GetSQLValueString("V", "text");
    $b = GetSQLValueString(" ", "text");
    $conexion = conectaBDSICLAB();
    $consulta = sprintf("insert into lbsolicitudlaboratorios values(%s,%s,%s,%s,%s,%s,%s,%s,%d,%d,%s,%s,%s,%s,%s)", $cveDep, $periodo, $b, $fe, $fs, $hs, $lab, $uso, $prac, $clave, $firma, $mat, $gp, $cant, $estatus);
    $res = mysql_query($consulta);
    if (mysql_affected_rows() > 0) {
        $respuesta = true;
    }
    $arrayJSON = array('respuesta' => $respuesta);
    print json_encode($arrayJSON);
}
//Menú principal
$opc = $_POST["opc"];
switch ($opc) {
    case 'usuario1':
        usuario();
        break;
    case 'solicitudesAceptadas1':
        solicitudesAceptadas();
        break;
    case 'liberarPractica1':
        liberarPractica();
        break;
    case 'solicitudesPendientes1':
        solicitudesPendientes();
        break;
    case 'solicitudesRealizadas1':
        solicitudesRealizadas();
        break;
    case 'editarSolicitud1':
        editarSolicitud();
Exemple #2
0
include_once "menu/m_principal.php";
?>
	
    <DIV align="center">
		
        <img src="img/softunicorn.png"><br>
       	<div class="row-fluid">
        	<div class="span6" align="center">
        		<h1 class="text-info">Bienvenido al Sistema - <?php 
echo $Nombre;
?>
</h1><br>    
            </div>
        	<div class="span6" align="center">
        		<h1 class="text-info"> Tipo de Usuario <br> * * * <?php 
echo usuario($_SESSION['tipo_user']);
?>
  * * *  </h1><br>    
            </div>
        </div>
        </div>
    </DIV>
    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="js/jquery.js"></script>
    <script src="js/bootstrap-transition.js"></script>
    <script src="js/bootstrap-alert.js"></script>
    <script src="js/bootstrap-modal.js"></script>
    <script src="js/bootstrap-dropdown.js"></script>
    <script src="js/bootstrap-scrollspy.js"></script>
Exemple #3
0
<?php

session_start();
if (isset($_SESSION["username"])) {
    require_once "lib/conectar.php";
    require_once "lib/funciones.php";
    $id = $_GET['id'];
    $u = usuario($id);
    $fila = mysql_fetch_array($u);
    ?>
<!DOCTYPE html>
<html lang="es-MX">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>Sección de Usuarios</title>

    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">

    <!-- Custom styles for this template -->
    <link href="css/dashboard.css" rel="stylesheet">
  </head>

  <body>
<?php

include '../UIL/main.php';
session_start();
if (usuario()) {
    ?>
<!DOCTYPE html>
<html>
	<head>
		<?php 
    cabecera();
    ?>
	</head>
	<body style="background-color:lightblue">
		<?php 
    indice();
    ?>
		<div class="container">
			<h2>Consulta General de Clientes</h2>
			<div class="row">
				<div class="col-xs-1"></div>
				<div class="col-xs-10">
					<?php 
    require '../../capaDatos/conexion.php';
    $conexion = new conexion();
    $conn = $conexion->enlace();
    $sql_Select = 'SELECT * FROM clientes';
    $res_Select = $conn->query($sql_Select);
    $num_R = $res_Select->num_rows;
    echo '<p>Nu&#769mero de clientes encontrados: ' . $num_R . '</p>';
    ?>
Exemple #5
0
" >
            <input class="token" title="A Tooltip"  type="hidden" id="id_posteo" value="<?php 
    echo $chat[0]['token'];
    ?>
" >
            <input class="id_categoria" title="A Tooltip"  type="hidden" id="id_posteo" value="<?php 
    echo $t['id_categoria'];
    ?>
" >       


            <div class="firma-topico" id="<?php 
    echo $chat[0]['nombre'];
    ?>
">Creado por: <?php 
    echo usuario($t['id_usuario']);
    ?>
 / <?php 
    echo tiempo_transcurrido($t['fecha_topico']);
    ?>
</div>
            <div class="option"> <a  id="<?php 
    echo $t['id_topico'];
    ?>
"  class="aa btn i_bended_arrow_right small nt" title="Responder a este topico" ></a></div>
            <div class="b-<?php 
    echo $t['id_topico'];
    ?>
" style="display:none; box-shadow: 10px 14px 100px 10px #999; position:fixed; top:-112%; z-index: 99999; right: 20%">           
            </div>
        </div>
<?php 
	include("conector.php");
  $mysqlUserName      = usuario();
  $mysqlPassword      = pass();
  $mysqlHostName      = servidor();
  $DbName             = bd();
  $backup_name        = "respaldo_procedimientos.sql";
  $tables             = "*";

  Exportar_BD($mysqlHostName,$mysqlUserName,$mysqlPassword,$DbName,  $tables=false, $backup_name=false );

  function Exportar_BD($host,$user,$pass,$name,  $tables=false, $backup_name=false )
  {
    $mysqli = new mysqli($host,$user,$pass,$name); 
    $mysqli->select_db($name); 
    $mysqli->query("SET NAMES 'utf8'");

    $queryTables    = $mysqli->query('SHOW TABLES'); 
    while($row = $queryTables->fetch_row()) 
    { 
      $target_tables[] = $row[0]; 
    }   
    if($tables !== false) 
    { 
      $target_tables = array_intersect( $target_tables, $tables); 
    }
    foreach($target_tables as $table)
    {
      $result         =   $mysqli->query('SELECT * FROM '.$table);  
      $fields_amount  =   $result->field_count;  
      $rows_num=$mysqli->affected_rows;