Location: PHPKode > projects > Map:catalog[WebGUI] > administrador/demon-inst.php
* @version     $Id: 'administrador/demon-inst.php' 08-08-2007 02:29:00 Moises Jafet$
* @package     "[:DRmap(WebGUI):]"
* @copyright   Copyright (C) 2007 Moises Jafet Cornelio-Vargas. All rights reserved.
* @license     GNU/GPL, see LICENSE.TXT
* [:DRmap(WebGUI):] is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software Foundation;
* either version 3 of the License, or any later version. As distributed it includes or
* is derivative of works licensed under the GNU General Public License or other free
* or open source software licenses.
* [:DRmap(WebGUI):] is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE.  See the GNU General Public License for more details and
* COPYRIGHT.TXT for copyright notices and details.

define( '_VALID_CPTICRD', 1 );

require_once "includes/mantenimientos.php";

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

  <title>Administraci&oacute;n | <?php echo $titulo ?></title>
  <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
  <meta http-equiv="refresh" content="3; URL=index2.php?admin=inst">
  <link href="<?php echo $css ?>" rel="stylesheet" type="text/css">

  <div class="wrapper" align="center">
    <div id="core">

      $demon = $_POST["institucion"];

      if (!$demon) {
      	die('Prohibido el acesso directo a este Recurso');

      if (!$db_conector) {
          die('NO conecta; alerta al Webmaster!: ' . mysql_error());


      $nombre_tabla = "institu_patrocinadora";

      //Articula el nombre local de la tabla con el prefijo general en la base de datos. 
      $db_tabla     =  $db_prefijo.$nombre_tabla;

      switch ($demon = NULL) {
      case TRUE:

      case FALSE:
          $sql="INSERT INTO `$db_tabla` ( `institucion` , `direccion`,`ciudad`,`id_provincia`, `website`,`email`, `telefono`, `id_Institu_Tipo` )
              if (!mysql_query($sql,$db_conector)) {
              die('Error: ' . mysql_error());


              echo 'ยกCompletado! <img name="Completado" src="../imagenes/completado.gif"><br>';
              echo 'Ser&aacute;s regresad@ en pocos segundos...';


    </div><!-- Fin del Core -->
  </div><!-- Fin del Wrapper -->
Return current item: Map:catalog[WebGUI]