00001 <?php 00002 // vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4: 00003 // +----------------------------------------------------------------------+ 00004 // | PHP Version 4 | 00005 // +----------------------------------------------------------------------+ 00006 // | Copyright (c) 1997-2003 The PHP Group | 00007 // +----------------------------------------------------------------------+ 00008 // | This source file is subject to version 2.02 of the PHP license, | 00009 // | that is bundled with this package in the file LICENSE, and is | 00010 // | available at through the world-wide-web at | 00011 // | http://www.php.net/license/2_02.txt. | 00012 // | If you did not receive a copy of the PHP license and are unable to | 00013 // | obtain it through the world-wide-web, please send a note to | 00014 // | license@php.net so we can mail you a copy immediately. | 00015 // +----------------------------------------------------------------------+ 00016 // | Created: Tue May 27 11:20:04 2003 00017 // | Author: Martin Marrese - Myrna Degano <mmarre@mecon.gov.ar - mdegan@mecon.gov.ar> 00018 // +----------------------------------------------------------------------+ 00019 // 00020 // $Id: consultas.php 26 2003-07-07 22:45:35Z mmarre $ 00021 // $Author: mmarre $ 00022 // $URL: http://portal.mecon.ar/svn/samurai/tronco/lib/SAMURAI/Sistema/consultas.php $ 00023 // $Date: 2003-07-07 19:45:35 -0300 (Mon, 07 Jul 2003) $ 00024 // $Rev: 26 $ 00025 // 00026 return array ( 00027 //OBTENER DATOS 00028 'obtener_datos_sistema' => 'SELECT id_sistema, nombre_sistema, desc_sistema, fecha_inicio, fecha_fin, fecha_implementacion, contacto,responsable FROM samurai.sistema ', 00029 'obtener_datos_sistema2' => ' WHERE id_sistema = ? ', 00030 'obtener_permisos' => 'SELECT id_permiso, observaciones FROM samurai.perm_sist WHERE id_sistema = ?', 00031 'obtener_permisos2' => ' ORDER BY id_permiso', 00032 'obtener_permisos3' => ' AND id_permiso = ?', 00033 'obtener_permisos4' => ' AND observaciones = ?', 00034 'obtener_max_id_sistemas' => 'SELECT IFNULL(max(id_sistema), 1) as id_sistema FROM samurai.sistema', 00035 //BORRAR DATOS 00036 'borrar_permisos' => 'DELETE FROM samurai.perm_sist WHERE id_sistema = ? ', 00037 'borrar_permisos2' => ' AND observaciones = ?', 00038 'borrar_permisos3' => ' AND id_permiso = ?', 00039 ); 00040 ?>