コード例 #1
0
ファイル: login.php プロジェクト: alchemixt99/book_store
function login()
{
    $msg = new messages();
    $fun = new funciones();
    if (!$fun->isAjax()) {
        header("Location: login.php");
    }
    $con = new con();
    $con->connect();
    $response = new StdClass();
    $usu = $_POST['usr'];
    $pass = $_POST['psw'];
    $pass = sha1(md5($pass));
    /*Consulta a la Bd*/
    $selectSQL = "SELECT * FROM `tbl_users` WHERE `us_usuario` = '{$usu}' AND `us_clave` = '{$pass}' AND us_estado = 1";
    $row_cons = mysql_query($selectSQL);
    $existe = mysql_fetch_assoc($row_cons);
    /*Termina Consulta*/
    /*Existe*/
    //$existe = 1;
    if ($existe) {
        $res = true;
        $mes = "panel.html";
        $_SESSION["ses_id"] = $existe['us_id'];
        //$menu = 1;
    } else {
        $res = false;
        $mes = $msg->get_msg("e002");
    }
    $response->res = $res;
    $response->mes = $mes;
    echo json_encode($response);
    $con->disconnect();
}
コード例 #2
0
ファイル: books.php プロジェクト: alchemixt99/book_store
 function del_item($id)
 {
     $fun = new funciones();
     $tbl = 'books';
     $field = 'tb_id';
     $var = $id;
     return $fun->borrar($tbl, $field, $var);
 }
コード例 #3
0
ファイル: ajax_charts.php プロジェクト: alchemixt99/STL
function add_persona()
{
    $fun = new funciones();
    $msg = new messages();
    $response = new StdClass();
    /*recibimos variables*/
    $tipo = $_POST['tipo'];
    $nombre = $_POST['nombre'];
    $ced = $_POST['ced'];
    $lic = $_POST['lic'];
    $lic_v = $_POST['lic_v'];
    $dir = $_POST['dir'];
    $tel = $_POST['tel'];
    $cel = $_POST['cel'];
    $f1 = $_POST['f1'];
    $f2 = $_POST['f2'];
    $placa = $_POST['placa'];
    if ($tipo == 1) {
        $placa = "0";
    }
    if ($nombre == "") {
        $res = false;
        $mes = $msg->get_msg("e005");
    } else {
        $con = new con();
        $con->connect();
        /* verificamos que no esté registrado en la tabla de personas*/
        $res_existe = $fun->existe("personas", "pe_cedula", $ced);
        if (!$res_existe) {
            /* ingresamos datos de la persona */
            $qry = "INSERT INTO tbl_personas \n\t\t\t\t(pe_nombre, pe_tel, pe_cedula, pe_licencia, pe_licencia_vigencia, pe_dir, pe_cel, pe_tipo, pe_created, pe_estado, pe_f1, pe_f2, pe_ve_id) \n\t\t\t\tVALUES \n\t\t\t\t('" . $nombre . "', '" . $tel . "', '" . $ced . "', '" . $lic . "', '" . $lic_v . "', '" . $dir . "', '" . $cel . "', '" . $tipo . "', " . $_SESSION["ses_id"] . ", 1 , '" . $f1 . "', '" . $f2 . "', " . $placa . ");";
            //echo "QUERY: ".$qry;
            $resp = mysql_query($qry);
            if (!$resp) {
                $res = false;
                $mes = $msg->get_msg("e003");
            } else {
                $res = true;
                $mes = $msg->get_msg("e004");
            }
        } else {
            $res = false;
            $mes = $msg->get_msg("e003-1", "El usuario ya existe");
        }
    }
    $response->res = $res;
    $response->mes = $mes;
    echo json_encode($response);
    $con->disconnect();
}
コード例 #4
0
ファイル: ajax_vehiculos.php プロジェクト: alchemixt99/STL
function remove_user()
{
    $fun = new funciones();
    $msg = new messages();
    $response = new StdClass();
    /*recibimos variables*/
    $user = $_POST["user"];
    $res = $fun->borrar("vehiculos", "ve_id", $user);
    if ($res) {
        $res = true;
        $mes = $msg->get_msg("e004");
    } else {
        $res = false;
        $mes = $msg->get_msg("e022");
    }
    $response->res = $res;
    $response->mes = $mes;
    echo json_encode($response);
}
コード例 #5
0
ファイル: ajax_reportar.php プロジェクト: alchemixt99/STL
function change_pack()
{
    $fun = new funciones();
    $msg = new messages();
    $response = new StdClass();
    /*recibimos variables*/
    $act = $_POST["a"];
    $id = $_POST["id"];
    if ($act == "" || $id == "") {
        $res = false;
        $mes = $msg->get_msg("e005");
    } else {
        $con = new con();
        $con->connect();
        if ($act == 1) {
            //activar, cambiar a 99
            if ($fun->borrar("remisiones_fisicas", "rf_id", $id)) {
                $res = true;
                $mes = $msg->get_msg("e004");
            } else {
                $res = false;
                $mes = $msg->get_msg("e003-1", "Activando remision.");
            }
        } else {
            //desactivar, cambiar a 1
            if ($fun->activar("remisiones_fisicas", "rf_id", $id)) {
                $res = true;
                $mes = $msg->get_msg("e004");
            } else {
                $res = false;
                $mes = $msg->get_msg("e003-1", "Desactivando remision.");
            }
        }
    }
    $response->res = $res;
    $response->mes = $mes;
    echo json_encode($response);
    $con->disconnect();
}
コード例 #6
0
ファイル: cronjob_ica.php プロジェクト: alchemixt99/STL
 function asignar_ica()
 {
     $con = new con();
     $msg = new messages();
     $fun = new funciones();
     $con->connect();
     //Fecha
     date_default_timezone_set("America/Bogota");
     $fecha = date('Y-m-d G:i:s');
     $filename = "I_" . date('YmdGis');
     $filename .= ".html";
     $content = "";
     $hoy = date('Y-m-d');
     $content .= "<h1>Informe, asignación de código ICA</h1>";
     $content .= "<br>Fecha " . $fecha . "<br>";
     $content .= "<br>Archivo generado: " . $filename . "<br>";
     //traemos listado de despachos aprobados
     $qry_des = 'SELECT * FROM tbl_despachos WHERE de_estado=2 AND de_ica = "" ORDER BY de_id';
     $arr_des = $fun->get_array($qry_des);
     $can_des = count($arr_des);
     $content .= "cantidad de despachos aprobados: " . $can_des;
     //$fun->print_array($arr_des);
     for ($i = 0; $i < $can_des; $i++) {
         $content .= "<pre>";
         $content .= "<br> Despacho #" . $i;
         // traemos el último ica disponible del paquete autorizado
         $qry_rem = 'SELECT * FROM tbl_remisiones_fisicas WHERE rf_estado = 99 LIMIT 1;';
         $arr_rem = $fun->get_array($qry_rem);
         $content .= "<br>  ->cantidad de consecutivos usados: " . $arr_rem[0]['rf_cant_usados'];
         $restantes = $arr_rem[0]['rf_dig_fin'] - $arr_rem[0]['rf_dig_ini'] - $arr_rem[0]['rf_cant_usados'];
         if ($restantes > 0) {
             $content .= "<br>  ->consecutivos restantes: " . $restantes;
             $cons = $arr_rem[0]['rf_dig_fin'] - $restantes;
             $content .= "<br>  ->consecutivo a usar: " . $cons;
             // lo asignamos al despacho actual y guardamos
             $content .= "<br>  ->despacho actual: " . $arr_des[$i]["de_id"];
             $tbl_de = "despachos";
             $cam_de = "de_ica = '" . $cons . "'";
             $whe_de = "de_id = " . $arr_des[$i]["de_id"];
             $res_de = $fun->actualizar($tbl_de, $cam_de, $whe_de);
             $tbl_rf = "remisiones_fisicas";
             $cam_rf = "rf_cant_usados = '" . ($arr_rem[0]['rf_cant_usados'] + 1) . "'";
             $whe_rf = "rf_id = " . $arr_rem[0]['rf_id'];
             $res_rf = $fun->actualizar($tbl_rf, $cam_rf, $whe_rf);
             if ($res_de == true && $res_rf == true) {
                 $r = "sin problemas";
             } else {
                 $r = "con problemas, comuniquese con soporte";
             }
             $content .= "<br>Actualización completada " . $r;
             $content .= "</pre>";
         }
     }
     $content .= "<hr>";
     // generamos informe
     $fun->create_file($content, $filename);
     //echo $content;
     $con->disconnect();
 }
コード例 #7
0
<?php
$tipo = $_GET['tipo'];
$usuario = $_GET['usuario'];
include ("validar.php");
include ("header.php");
include_once("clases.class.php");

$sql=new mysql();
$tpl=new plantilla();
$f=new funciones();

$transaccion = $_GET['transaccion'];

?>

<tr>
	<td valign="top" background="../images/bg_table.png" style="background-repeat:repeat">
		<table width="100%" border="0" cellspacing="3" cellpadding="0">
			<tr>
            	<td colspan="4" align="center"><div class="titulostaf"></div></td>
   			</tr>
            <!-- ======================================== AQUI VA TODO EL CONTENIDO DEL SITIO DIVIDIDO EN 3 COLUMNAS ======================== -->
            <tr>
            	<td>
                
                	<table width="1151" border="0" align="center" cellpadding="0" cellspacing="0">
                    	<tr>
                        
                    	<!-- primera columna, aqui va el menu de links xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -->
                		<td width="224" valign="top" align="left">
                        	<?php
コード例 #8
0
ファイル: productos.php プロジェクト: laiello/coopcrucial
<?php

require_once "clases/funciones.php";
//Objeto
$dato = new funciones();
$dato->obtenerSessionUsuario();
$dato->autentificarSessionUsuario();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Productos</title>
        <!--Estilo-->
        <link type="text/css" rel="stylesheet" href="estilo/admin_css.css" />
        <!--Efecto-->
        <script type="text/javascript" src="js/jquery-1.4.4.js"></script>
        <!--Efecto Session-->
        <script type="text/javascript" src="js/efectoSession.js" ></script>
        <!--Efecto Lstado seccion-->
        <script type="text/javascript" src="js/efectoListadoSeccion.js" ></script>
    </head>
    <body>
        <!-- top lines for style -->
        <div id="top_green"></div>
        <div id="top_dark"></div>
        <div id="wrapper">
            <div id="header">
                <div id="logo"></div>
                <div id="user_links">
                    <a id="btnVerSitioWeb" href="#" target="_blank">Ver sitio web</a>&nbsp;|
コード例 #9
0
	function subiravatar(){
		include_once("imageresize.class.php");
		$f=new funciones();
		$pagina="perfil.php?usuario=".$_GET["usuario"]."&tipo=".$_GET["tipo"]." ";
		$idusuario=mysql::uncampo("SELECT id_usuario FROM usuario WHERE login='******'");
		
		mysql::consulta("DELETE FROM avatares WHERE idusuario='".$idusuario."'");
		
		$ruta=$f->subir_archivos("avatares");
		if(mysql::consulta("INSERT INTO avatares VALUES(Null,'".$idusuario."','".$ruta."')")){
				
			/////////////////////    Crear thumbnail     //////////////////////
			//$source = $ruta;
			//$dest = str_replace("galerias","galerias/thumbs",$ruta);
			//$oResize = new ImageResize($source);
			//$oResize->resizeArea(8); //porcentaje
			//$oResize->resizeWidth(160);
			//$oResize->resizeWidthHeight(130,130);
			//$oResize->save($dest);
			//////////////////////////////////////////
			header("Location: ".$pagina);			
		}
		else echo "Error al subir el avatar";
	}	
コード例 #10
0
ファイル: amiga.php プロジェクト: laiello/coopcrucial
<?php

require_once "91f5167c34c400758115c2a6826ec2e3/clases/funciones.php";
$dato = new funciones();
$_GET = $dato->getVariables($_GET['route']);
//$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
if ($_GET) {
    if (isset($_GET[catalogo])) {
        include_once 'catalogoBusqueda.php';
    } elseif (isset($_GET[producto])) {
        include_once 'catalogoProducto.php';
    }
} else {
    //echo 'No hay variables GET';
    header('Location: ' . $dato->urlBaseSitio);
}
コード例 #11
0
<?php
$tipo = $_GET['tipo'];
$usuario = $_GET['usuario'];
include_once("perfil_funciones.php");
$f=new funciones();

							
switch($_GET["accion"]){

	case "chats":
		$plantilla=$f->leer_plantilla("formbuskedachats.html");
		$optionsagent=$f->qaconsultas("SELECT id_usuario AS id, nombre AS nombre FROM usuario WHERE estado='1' AND id_tipo_usuario='3'","options");
		
		$plantilla=str_replace("{fecha}",$f->fechadehoy(),$plantilla);
		$plantilla=str_replace("{optionsagent}",$optionsagent,$plantilla);
		echo $plantilla;

	break;
	
	case "mails":
		$plantilla=$f->leer_plantilla("formbuskedamails.html");
		$optionsagent=$f->qaconsultas("SELECT id_usuario AS id, nombre AS nombre FROM usuario WHERE estado='1' AND id_tipo_usuario='3'","options");
		
		$plantilla=str_replace("{fecha}",$f->fechadehoy(),$plantilla);
		$plantilla=str_replace("{optionsagent}",$optionsagent,$plantilla);
		echo $plantilla;
	break;
	
	case "calls":
		$plantilla=$f->leer_plantilla("formbuskedacalls.html");
		$optionsagent=$f->qaconsultas("SELECT id_usuario AS id, nombre AS nombre FROM usuario WHERE estado='1' AND id_tipo_usuario='3'","options");
コード例 #12
0
<?php

require_once "clases/funciones.php";
//Objeto
$dato = new funciones();
$dato->obtenerSessionUsuario();
$dato->autentificarSessionUsuario();
//include_once("FCKeditor/fckeditor.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Crear Oferta Especial</title>

        <!--Estilo-->
        <link type="text/css" rel="stylesheet" href="estilo/admin_css.css" />
        <!--Efecto-->
        <script type="text/javascript" src="js/jquery-1.4.4.js"></script>
        <!--Efecto Session-->
        <script type="text/javascript" src="js/efectoSession.js" ></script>
        <!--Editor-->
        <script type="text/javascript" src="ckeditor/ckeditor.js"></script>
    </head>

    <body>
        <!-- top lines for style -->
        <div id="top_green"></div>
        <div id="top_dark"></div>

        <div id="wrapper">
コード例 #13
0
ファイル: registrar.php プロジェクト: rafaaban/ERP
<?php

include "funciones.php";
$codigo = new funciones();
$codigo->conectar();
$tabla = "empleados";
$codigo->insertar($tabla);
コード例 #14
0
ファイル: ica.php プロジェクト: alchemixt99/STL
include '../../mods/route.php';
include '../../php/jslib.php';
require "../../php/funciones.php";
include '../../php/app_menu.php';
include '../../php/aside_menu.php';
include '../../php/rutas.php';
include '../../php/fincas.php';
include '../../php/html_snippets.php';
//menu aplicacion
$app_menu = new app_menu();
$aside_menu = new aside_menu();
$html_snippet = new html_snippets();
$fincas = new fincas();
$rutas = new rutas();
$fun = new funciones();
$rt = new route();
$rt->check_session();
$libs = new jslib();
$css = $libs->get_css();
$js = $libs->get_js();
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>ICA - STL SAS</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
      
    <script src="js/jquery.min.js"></script>
コード例 #15
0
ファイル: set_turn.php プロジェクト: alchemixt99/iepProc
<?php

session_start();
require "../php/funciones.php";
$fun = new funciones();
if (!$fun->isAjax()) {
    header("Location: ../pages/index.html");
}
/*recibimos variables*/
$d = $_POST['dia'];
$t = $_POST['turno'];
$e = $_POST['espacio'];
$u = $_POST['usuario'];
$con = new con();
$fun = new funciones();
$con->connect();
$response = new StdClass();
$debug = false;
if ($fun->check_turno($d, $t, $e)) {
    /*consultamos registros*/
    $selectSQL = "SELECT * FROM tbl_turnos WHERE tu_us_id=" . $u . " AND tu_dia=" . $d . " AND tu_turno =" . $t . ";";
    #$debug .= "Consulta SQL: ".$selectSQL;
    $row_cons = mysql_query($selectSQL);
    $row_cant = mysql_num_rows($row_cons);
    $turno = mysql_fetch_assoc($row_cons);
    #$debug .= "Cantidad de registros consultados: ".$row_cant;
    if ($row_cant > 0) {
        #Significa que tenemos registro existente y procedemos a modificar
        $sql_update = "UPDATE tbl_turnos SET tu_espacio = " . $e . " WHERE tu_id= " . $turno["tu_id"] . ";";
        $resp = mysql_query($sql_update);
        #$debug .= "SQL_UPDATE: ".$sql_update;
コード例 #16
0
							<th>Teléfono</th>
						</tr>
					</thead>
					<tbody id="verDatos" style="text-aling:center;">
						<?php 
require_once 'funciones.php';
$objeto = new funciones();
$objeto->verTodosClientes();
?>
					</tbody>
				</table>
				<div id="cargando" style="display: none;"><img src="../img/loader.gif" alt=""></div>
		        <div id="paginacion">
		    	 	 <?php 
require_once 'funciones.php';
$objeto = new funciones();
$objeto->paginacionDatosPersonales();
?>
		    	</div>
			</div>
		</div>
		<div class="row">
			
		</div>
	</section>

	<!-- codigo para registrar clientes -->
	<div class="hide" id="registrarDatos" title="Registrar Cliente">
		<form action="acciones.php" method="post" id="registrarCliente"  class="limpiar">
			<label>N° Identificación:</label>
			<input type="text" name="codigo" required>
コード例 #17
0
<?php

require_once "clases/funciones.php";
//Objeto
$dato = new funciones();
$dato->obtenerSessionUsuario();
$dato->autentificarSessionUsuario();
//include_once("FCKeditor/fckeditor.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Crear Producto</title>
        <!--Estilo-->
        <link type="text/css" rel="stylesheet" href="estilo/admin_css.css" />
        <style type="text/css" >
            fieldset{width: 160px;};
        </style>
        <!--Efecto-->
        <script type="text/javascript" src="js/jquery-1.4.4.js"></script>
        <!--Efecto Session-->
        <script type="text/javascript" src="js/efectoSession.js" ></script>
        <!--Editor-->
        <script type="text/javascript" src="ckeditor/ckeditor.js"></script>
        <script type="text/javascript">
            var contImagenes = 2;
            var contCaracteristicas = 2;
            var contEspecificaciones = 2;
            function agregarImagen(){
                if(contImagenes>1 && contImagenes<9){
コード例 #18
0
ファイル: usosModificar.php プロジェクト: laiello/coopcrucial
<?php

require_once "clases/funciones.php";
//Objeto
$dato = new funciones();
$dato->obtenerSessionUsuario();
$dato->autentificarSessionUsuario();
//include_once("FCKeditor/fckeditor.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Modificar Categoria</title>
        <!--Estilo-->
        <link type="text/css" rel="stylesheet" href="estilo/admin_css.css" />
        <!--Efecto-->
        <script type="text/javascript" src="js/jquery-1.4.4.js"></script>
        <!--Efecto Session-->
        <script type="text/javascript" src="js/efectoSession.js" ></script>
        <!--Editor-->
        <script type="text/javascript" src="ckeditor/ckeditor.js"></script>
        <!--Efecto Yox-->
        <script type="text/javascript" src="js/yoxview/yoxview-init.js" ></script>
        <script type="text/javascript" src="js/efectoYox.js"></script>
    </head>
    <body>
        <!-- top lines for style -->
        <div id="top_green"></div>
        <div id="top_dark"></div>
        <div id="wrapper">
コード例 #19
0
ファイル: categorias.php プロジェクト: laiello/coopcrucial
<?php

require_once "clases/funciones.php";
//Objeto
$dato = new funciones();
$dato->obtenerSessionUsuario();
$dato->autentificarSessionUsuario();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Categorias</title>

        <!--Estilo-->
        <link type="text/css" rel="stylesheet" href="estilo/admin_css.css" />
        <!--Efecto-->
        <script type="text/javascript" src="js/jquery-1.4.4.js"></script>
        <!--Efecto Session-->
        <script type="text/javascript" src="js/efectoSession.js" ></script>
        <!--Efecto Lstado seccion-->
        <script type="text/javascript" src="js/efectoListadoSeccion.js" ></script>
    </head>

    <body>

        <!-- top lines for style -->
        <div id="top_green"></div>
        <div id="top_dark"></div>

        <div id="wrapper">
コード例 #20
0
ファイル: logout.php プロジェクト: alchemixt99/book_store
<?php

session_start();
session_unset();
//borro todas las variables de session
session_destroy();
//destruyo la sesion
include "funciones.php";
$fn = new funciones();
$response = new StdClass();
$response->res = true;
$response->mes = $fn->path("login");
echo json_encode($response);
?>
 
コード例 #21
0
<?php
$tipo = $_GET['tipo'];
$usuario = $_GET['usuario'];
include ("validar.php");
include ("header.php");
$transaccion = $_GET['transaccion'];
include("clases.class.php");
$sql=new mysql();
$f=new funciones();
$tpl=new plantilla();

function shift(){

	if(strtotime(date("H:i:s")) >= strtotime("06:00:00") && strtotime(date("H:i:s")) <= strtotime("13:59:59")){
		return 1;
	}
	elseif(strtotime(date("H:i:s")) >= strtotime("14:00:00") && strtotime(date("H:i:s")) <= strtotime("21:59:59")){
		return 2;
	}
	else{return 3;}
}

if(shift()==1){
	$sh="6-2";
}
elseif(shift()==2){
	$sh="2-10";
}
else{$sh="10-6";}

?>
コード例 #22
0
ファイル: index.php プロジェクト: alchemixt99/book_store
<?php

session_start();
include "../class/funciones.php";
$fun = new funciones();
$fun->check_session();
コード例 #23
0
ファイル: menu.php プロジェクト: johnsi15/pruebaPhpPrestamos
							<th>Saldo</th>
						</tr>
					</thead>
					<tbody id="verClien">
						<?php 
require_once 'includes/funciones.php';
$objeto = new funciones();
$objeto->verClientes();
?>
					</tbody>
				</table>
				<div id="cargando" style="display: none;"><img src="img/loader.gif" alt=""></div>
		        <div id="paginacion">
		    	 	 <?php 
require_once 'includes/funciones.php';
$objeto = new funciones();
$objeto->paginacionClientesMenu();
?>
		    	</div>
			</div>
		</div>
		<div class="row">
			
		</div>
	</article>

     <!--Codigo para modificar pago-->
     <div class="hide" id="editarPago" title="Editar Registro">
     	<form action="includes/acciones.php" method="post">
     		<input type="hidden" id="id_registro" name="id_registro" value="0">
     			<label>Nombre:</label>
コード例 #24
0
ファイル: funciones.php プロジェクト: flytechsistemas/isum
         * VALIDACIONES
         */
        $salida = false;
        $datos = $db->delete("s_emergencias_acciones_usuarios", ["s_id" => $idAccion]);
        setNotificacion();
        header("location: ../home.php?s=emergencias&a=accion_responsable&id=" . $id);
    }
    public function index()
    {
        /*
         * VALIDACIONES
         */
        header("location: ../home.php?s=emergencias");
    }
}
$funcion = new funciones();
if ($_GET["s"] == "crear") {
    $funcion->crear($db, $_POST);
} else {
    if ($_GET["s"] == "editar") {
        $funcion->editar($db, $_POST, $_GET["id"]);
    } else {
        if ($_GET["s"] == "eliminar") {
            $funcion->eliminar($db, $_GET["id"]);
        } else {
            if ($_GET["s"] == "accion_responsable") {
                $funcion->accionResponsable($db, $_POST, $_GET["id"]);
            } else {
                if ($_GET["s"] == "eliminar_accion_responsable") {
                    $funcion->eliminarAccionResponsable($db, $_GET["id"], $_GET["idAccion"]);
                } else {
コード例 #25
0
<?php

session_start();
require "../php/funciones.php";
require "../semestre.php";
$fun = new funciones();
if (!$fun->isAjax()) {
    header("Location: ../pages/index.html");
}
$con = new con();
$con->connect();
$response = new StdClass();
/* GET */
$sala = $_POST['s'];
$mes = $_POST['m'];
$ini = $_POST['i'];
$fin = $_POST['f'];
$day = split(" ", $semestre_ini);
$sem_i = $day[0];
$sem_f = $semestre_fin;
$a = $fun->get_total_students_x_dh($sala, $mes, "Lunes", $ini, $fin);
$b = $fun->get_total_students_x_dh($sala, $mes, "Martes", $ini, $fin);
$c = $fun->get_total_students_x_dh($sala, $mes, "Miercoles", $ini, $fin);
$d = $fun->get_total_students_x_dh($sala, $mes, "Jueves", $ini, $fin);
$e = $fun->get_total_students_x_dh($sala, $mes, "Viernes", $ini, $fin);
$arr_cant = array($a, $b, $c, $d, $e);
$response->rows = $arr_cant;
echo json_encode($response);
コード例 #26
0
<?php

require_once "clases/funciones.php";
//Objeto
$dato = new funciones();
$dato->obtenerSessionUsuario();
$dato->autentificarSessionUsuario();
//include_once("FCKeditor/fckeditor.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Modificar Registro</title>

        <!--Estilo-->
        <link type="text/css" rel="stylesheet" href="estilo/admin_css.css" />
        <!--Efecto-->
        <script type="text/javascript" src="js/jquery-1.4.4.js"></script>
        <!--Efecto Session-->
        <script type="text/javascript" src="js/efectoSession.js" ></script>
        <!--Editor-->
        <script type="text/javascript" src="ckeditor/ckeditor.js"></script>
        <!--Efecto Yox-->
        <script type="text/javascript" src="js/yoxview/yoxview-init.js" ></script>
        <script type="text/javascript" src="js/efectoYox.js"></script>



    </head>
コード例 #27
0
ファイル: get_flujo.php プロジェクト: alchemixt99/iepProc
<?php

session_start();
require "../php/funciones.php";
$fun = new funciones();
if (!$fun->isAjax()) {
    header("Location: ../pages/index.html");
}
//Verificamos si la peticion viene por get o por post
//modificacion requerida para refrescar tablas
if (isset($_GET['sala'])) {
    $sala = $_GET["sala"];
} else {
    $sala = $_POST['sala'];
}
$con = new con();
$con->connect();
$response = new StdClass();
/*Consulta a la Bd*/
$selectSQL = "SELECT FE.fe_pc,ES.es_nombre, ES.es_codigo, ES.es_plan, FE.fe_id FROM tbl_flujo_estudiantes FE\n\t\t\t\tInner Join tbl_estudiantes ES\n\t\t\t\tWHERE FE.fe_es_codigo = ES.es_codigo AND\n\t\t\t\tFE.fe_sala = " . $sala . " AND\n\t\t\t\tFE.fe_estado = 1;";
$row_cons = mysql_query($selectSQL);
while ($fila = mysql_fetch_array($row_cons)) {
    $codplan = $fila[2] . "-" . $fila[3];
    $arrayData[] = array('<button type="button" class="btn btn-primary"><i class="fa fa-desktop"></i>&nbsp;&nbsp;&nbsp;' . $fila[0] . '</button>', $fila[1], $fila[2] . "-" . $fila[3], '
				<button type="button" id="salida' . $fila[4] . '" onclick="registrar_salida(' . $fila[4] . ',' . $fila[2] . ',this);" title="Registrar Salida" class="btn btn-success btn-circle"><i class="fa fa-paper-plane-o"></i></button>
				<button type="button" id="borrar' . $fila[4] . '" onclick="borrar_registro(' . $fila[4] . ',' . $fila[2] . ',this);" title="Borrar Registro" class="btn btn-danger btn-circle"><i class="fa fa-trash"></i></button>
				');
}
#print_r($arrayData);
echo json_encode($arrayData);
$con->disconnect();
コード例 #28
0
ファイル: guardarnota.php プロジェクト: anthonycab15/colegio
<?php

include_once "../../login/check.php";
include_once "../../class/registronotas.php";
include_once "../../class/casilleros.php";
include_once "../../class/curso.php";
include_once "../../class/alumno.php";
include_once "../fn.php";
if (!empty($_POST)) {
    $regNota = new registronotas();
    $casilleros = new casilleros();
    $curso = new curso();
    $fn = new funciones();
    $alumno = new alumno();
    $CodCasilleros = $_POST['CodCasilleros'];
    $casillas = array_shift($casilleros->mostrar($CodCasilleros));
    $CodAlumno = $_POST['CodAlumno'];
    $NumeroNota = $_POST['NumeroNota'];
    $Nota = $_POST['Nota'];
    $TipoNota = $_POST['TipoNota'];
    //$al=array_shift($alumno->mostrarDatos($CodAlumno));
    //$cur=array_shift($curso->mostrarCurso($al['CodCurso']));
    $trimestre = $casillas['Trimestre'];
    $Nota = trim($Nota);
    $Nota = (int) $Nota;
    $Fecha = date("Y-m-d");
    $Hora = date("H:i:s");
    if (!ereg("[0-9]{1,3}", $Nota)) {
        $Nota = 0;
    }
    $Values = array("Nota" . $NumeroNota => $Nota, "FechaRegistro" => "'{$Fecha}'", "HoraRegistro" => "'{$Hora}'");
コード例 #29
0
ファイル: ajax_rfisicas.php プロジェクト: alchemixt99/STL
function load_row()
{
    $fun = new funciones();
    $msg = new messages();
    $response = new StdClass();
    /*recibimos variables*/
    $id = $_POST["id"];
    if ($id == "") {
        $res = false;
        $mes = $msg->get_msg("e005");
    } else {
        $con = new con();
        $con->connect();
        //traemos datos según sea el id
        $qry = "SELECT * FROM `tbl_remisiones_fisicas` WHERE rf_id =" . $id . ";";
        $data = $fun->get_array($qry);
        if ($data != false) {
            $res = true;
            $response->key = $data[0]['rf_id'];
            $response->ini = $data[0]['rf_dig_ini'];
            $response->fin = $data[0]['rf_dig_fin'];
            $response->inter = $data[0]['rf_interventor'];
            $response->persona = $data[0]['rf_persona_entrega'];
        } else {
            $res = false;
            $response->mes = $msg->get_msg("e034");
        }
    }
    $response->res = $res;
    echo json_encode($response);
    $con->disconnect();
}
コード例 #30
0
ファイル: functions.php プロジェクト: flytechsistemas/isum
<?php

session_start();
include '../includes/db.php';
include '../includes/functions.php';
$funcion = new funciones();
if ($_GET["s"] == "crear") {
    $funcion->crear($db);
} else {
    if ($_GET["s"] == "editar") {
        $funcion->editar($db, $_GET["id"]);
    } else {
        if ($_GET["s"] == "eliminar") {
            $funcion->eliminar($db, $_GET["id"]);
        } else {
            $funcion->index();
        }
    }
}
class funciones
{
    private $salida;
    public function crear($db)
    {
        /*
         * VALIDACIONES
         */
        $salida = false;
        $datos = $db->insert("table", ["" => "", "" => "", "" => ""]);
        return $salida;
    }