Alba-desarrollo
Threads by month
- ----- 2026 -----
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
September 2007
- 5 participants
- 146 discussions
Author: ftoledo
Date: 2007-09-26 13:45:45 -0300 (Wed, 26 Sep 2007)
New Revision: 5159
Removed:
prosistem/alba/trunk/alba/web/instalar.old.php
Log:
eliminando el archivo anterior del instalador
Deleted: prosistem/alba/trunk/alba/web/instalar.old.php
===================================================================
--- prosistem/alba/trunk/alba/web/instalar.old.php 2007-09-26 16:41:16 UTC (rev 5158)
+++ prosistem/alba/trunk/alba/web/instalar.old.php 2007-09-26 16:45:45 UTC (rev 5159)
@@ -1,655 +0,0 @@
-<?php
-/**
- * This file is part of Alba.
- *
- * Alba 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 2 of the License, or
- * (at your option) any later version.
- *
- * Alba 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.
- *
- * You should have received a copy of the GNU General Public License
- * along with Alba; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-
-/**
- * instalador
- *
- * @package alba
- * @author José Luis Di Biase <josx(a)interorganic.com.ar>
- * @author Héctor Sanchez <hsanchez(a)pressenter.com.ar>
- * @author Fernando Toledo <ftoledo(a)pressenter.com.ar>
- * @version SVN: $Id: instalar.php 4883 2007-07-30 21:41:42Z ftoledo $
- * @filesource
- * @license GPL
- */
-
-
- define("OS_WINDOWS",((strtoupper(substr(PHP_OS,0,3))=='WIN'))?true:false);
-
- define("APACHE_REQUIRED_VERSION","2.0.0");
- define("PHP_REQUIRED_VERSION","5.0.0");
- define("MEMORY_LIMIT_REQUIRED", "16");
- define("MYSQL_REQUIRED_VERSION","4.1.0");
-
- define("INSTALL_DIR", realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR). DIRECTORY_SEPARATOR);
- define("DEBUG_LOG",INSTALL_DIR."log".DIRECTORY_SEPARATOR."install.log");
- define("ALBA_WEB",INSTALL_DIR."web" . DIRECTORY_SEPARATOR);
- define("ALBA_CONFIG", INSTALL_DIR."config".DIRECTORY_SEPARATOR);
-
- define("APACHE_CONFIG_DIST", ALBA_CONFIG."apache.conf.dist");
- define("DATABASE_CONFIG_DIST", ALBA_CONFIG."databases.yml.dist");
- define("PROPEL_CONFIG_DIST", ALBA_CONFIG."propel.ini.dist");
- define("HTACCESS_DIST", ALBA_WEB.".htaccess.dist");
-
- define("DATABASE_CONFIG", ALBA_CONFIG."databases.yml");
- define("PROPEL_CONFIG", ALBA_CONFIG."propel.ini");
- define("HTACCESS", ALBA_WEB.".htaccess");
- define("SCHEMA", ALBA_CONFIG."schema.yml");
-
-
- define("IMG_OK", "<img src='images/installer/save.png'>");
- define("IMG_NOT_OK", "<img src='images/installer/delete.png'>");
-
- define("SQL_CREATE_DB", INSTALL_DIR."data".DIRECTORY_SEPARATOR."sql".DIRECTORY_SEPARATOR."create-db.sql");
- define("SQL_CREATE", INSTALL_DIR."data".DIRECTORY_SEPARATOR."sql".DIRECTORY_SEPARATOR."lib.model.schema.sql");
- define("SQL_INSERT_INICIAL", INSTALL_DIR."data".DIRECTORY_SEPARATOR."sql".DIRECTORY_SEPARATOR."datos_desde_cero.sql");
- define("SQL_INSERT_EJEMPLO", INSTALL_DIR."data".DIRECTORY_SEPARATOR."sql".DIRECTORY_SEPARATOR."datos_ejemplo.sql");
-
- if(!file_exists(INSTALL_COMPLETE_FILE)) {
-
- $fp = fopen(DEBUG_LOG, "at" );
- fputs( $fp,date( "d/m/Y H:m:s")." ---- INICIO DE VERIFICACIONES ----\n\n" );
-
- if(OS_WINDOWS) {
- @unlink(ALBA_PATH.".htaccess");
- @unlink(INSTALL_DIR."dist/.htaccess");
- fputs( $fp,date( "d/m/Y H:m:s")." SO: Windows \n\n" );
- }
- else
- fputs( $fp,date( "d/m/Y H:m:s")." SO: Linux \n\n" );
-
- //muchas veces tarda demasiado por lo que es prudente ponerle un infinito tiempo de ejecucion
- set_time_limit(0);
-
-
-
-
- $f_phpversion = function_exists ("phpversion");
- $f_apache_get_version = function_exists ("apache_get_version");
- $f_get_magic_quotes_gpc = function_exists ("get_magic_quotes_gpc");
- $f_mysql_module = function_exists ("mysql_connect");
-
- $msg_phpversion = "";
- $msg_apache_get_version = "";
- $msg_mysql_module = "";
- $msg_mod_rewrite = "";
- $msg_get_magic_quotes_gpc = "";
-
- $bool_mysql_module = false;
- $bool_phpversion = false;
- $bool_apache_get_version = false;
- $bool_gd = estaExtensionPHP("gd");
- $bool_mod_rewrite = false;
- $bool_get_magic_quotes_gpc = false;
-
- $memory_limit = ini_get('memory_limit');
- if($memory_limit != '') {
- $bool_memory_limit = compruebaMemoriaMaxima($memory_limit);
- $bool_memory_no_chequeo = true;
- } else {
- $bool_memory_limit = true;
- $memory_limit = "No se pudo conocer la cantidad de memoria disponible en su PHP.";
- $bool_memory_no_chequeo = false;
- }
- fputs( $fp,date( "d/m/Y H:m:s")." memory_limit: $memory_limit\n\n" );
-
- $bool_cache = tienePermisoEscritura(ALBA_PATH."cache");
- $bool_log = tienePermisoEscritura(ALBA_PATH."log");
- $bool_upload = tienePermisoEscritura(ALBA_WEB."uploads");
- $bool_tmp = tienePermisoEscritura(ALBA_WEB."tmp");
- $bool_config = tienePermisoEscritura(ALBA_PATH."config");
-
- if($f_phpversion) {
- $bool_phpversion = compruebaVersion(phpversion(),PHP_REQUIRED_VERSION);
- $msg_phpversion = "Su versión de PHP es ".phpversion();
- } else {
- $msg_phpversion = "No se pudo verificar la versión de PHP";
-
- }
- fputs( $fp,date( "d/m/Y H:m:s")." phpversion: $msg_phpversion\n\n" );
-
- if($f_apache_get_version) {
- preg_match('!Apache/(.*) !U', apache_get_version(), $v);
- $apache_installed_version = $v[1];
- $bool_apache_get_version = compruebaVersion($apache_installed_version, APACHE_REQUIRED_VERSION);
- $msg_apache_get_version = "Su versión de APACHE es ".$apache_installed_version;
- $bool_mod_rewrite = estaExtensionApache("mod_rewrite");
-
- if($bool_mod_rewrite) {
- $msg_mod_rewrite = "";
- } else {
- $msg_mod_rewrite = "Por favor instale el mod_rewrite en el apache";
- }
-
- } else {
- $msg_apache_get_version = "No se pudo verificar la versión de APACHE";
- $msg_mod_rewrite = "( Al no poder verificar la versión de APACHE, tampoco pudo hacerlo para el mod_rewrite )";
- }
- fputs( $fp,date( "d/m/Y H:m:s")." apache_get_version: $msg_apache_get_version\n\n" );
- fputs( $fp,date( "d/m/Y H:m:s")." mod_rewrite: $msg_mod_rewrite\n\n" );
-
- if($f_mysql_module) {
- $bool_mysql_module = true;
- $msg_mysql_module = "Tiene instalado el modulo MYSQL en PHP";
- } else
- $msg_mysql_module = "No tiene instalado el modulo MYSQL en PHP";
-
- fputs( $fp,date( "d/m/Y H:m:s")." mysql_module: $msg_mysql_module\n\n" );
-
- if($f_get_magic_quotes_gpc) {
- $bool_get_magic_quotes_gpc = get_magic_quotes_gpc();
- if(!$bool_get_magic_quotes_gpc) {
- $bool_get_magic_quotes_gpc = true;
- $msg_get_magic_quotes_gpc = "";
- } else {
- $msg_get_magic_quotes_gpc = "Tiene que cambiar el valor de la variable magic_quotes_gpc de On a Off";
- }
- } else {
- $msg_get_magic_quotes_gpc = " No se pudo verificar si usted tiene (magic_quotes_gpc = off) en el php.ini";
- }
- fputs( $fp,date( "d/m/Y H:m:s")." magic_quotes: $msg_get_magic_quotes_gpc\n\n" );
-
- $hasErrors = false;
- $aError = array();
- $aDb = array( 'server' => '', 'user' => '', 'password' => '', 'name' => '', 'createdb' => '' ) ;
-
- if(!file_exists(SQL_CREATE)) {
- $hasErrors = true;
- $aError['sql_files'] = 'El archivo para el SQL no puede abrirse';
- fputs( $fp,date( "d/m/Y H:m:s")." SQL_CREATE: ".$aError['sql_files']."\n\n" );
- }
- else
- fputs( $fp,date( "d/m/Y H:m:s")." SQL_CREATE: OK \n\n" );
-
- if(!file_exists(SQL_INSERT_INICIAL)){
- $hasErrors = true;
- $aError['sql_files'] = 'El archivo para el SQL no puede abrirse';
- fputs( $fp,date( "d/m/Y H:m:s")." SQL_INSERT_INICIAL: ".$aError['sql_files']."\n\n" );
- }
- else
- fputs( $fp,date( "d/m/Y H:m:s")." SQL_INSERT_INICIAL: OK \n\n" );
-
- if(!file_exists(SQL_INSERT_EJEMPLO)){
- $hasErrors = true;
- $aError['sql_files'] = 'El archivo para el SQL no puede abrirse';
- fputs( $fp,date( "d/m/Y H:m:s")." SQL_INSERT_EJEMPLO: ".$aError['sql_files']."\n\n" );
- }
- else
- fputs( $fp,date( "d/m/Y H:m:s")." SQL_INSERT_EJEMPLO: OK \n\n" );
-
- fputs( $fp,date( "d/m/Y H:m:s")." ---- FIN DE VERIFICACIONES ----\n\n" );
- fputs( $fp,date( "d/m/Y H:m:s")." ---- INICIO DB ----\n\n" );
- if ($_SERVER['REQUEST_METHOD'] == "POST") {
-
- if(!isset($_POST['db']['createdb']))
- $_POST['db']['createdb'] = false;
-
- $db_connection = @mysql_connect( $_POST['db']['server'], $_POST['db']['user'], $_POST['db']['password']);
- if ($db_connection) {
- $mysql_server_version = mysql_get_server_info();
- fputs( $fp,date( "d/m/Y H:m:s")." mysql_server_version: ".$mysql_server_version ."\n\n" );
- if(compruebaVersion($mysql_server_version, MYSQL_REQUIRED_VERSION)) {
- if($_POST['db']['createdb']) {
- fputs( $fp,date( "d/m/Y H:m:s")." -- Create DB --\n\n" );
- if(!@mysql_query('CREATE DATABASE '.$_POST['db']['name'].' DEFAULT CHARACTER SET utf8 COLLATE utf8_bin')) {
- $hasErrors = true;
- $aError['newdb'] = 'No se pudo crear la base de datos ('.mysql_error().')';
- fputs( $fp,date( "d/m/Y H:m:s")." newdb: ".$aError['newdb']."\n\n" );
- $aDb = array( 'server' => $_POST['db']['server'] , 'user' => $_POST['db']['user'], 'password' => $_POST['db']['password'], 'name' => $_POST['db']['name'], 'createdb' => $_POST['db']['createdb']) ;
- } else {
- fputs( $fp,date( "d/m/Y H:m:s")." Se creo la base de datos OK--\n\n" );
- if(doInstall($fp)) {
- fputs( $fp,date( "d/m/Y H:m:s")." Fin doInstall (create_db): OK \n\n" );
- fclose( $fp );
- header("Location: ".REDIRECT_URL);
- } else {
- fputs( $fp,date( "d/m/Y H:m:s")." Fin doInstall (create_db): con Error \n\n" );
- if (!@mysql_query('DROP DATABASE '.$_POST['db']['name'])){
- $aError['insert_create'] = 'No se pudo eliminar la base de datos creada ('.mysql_error().')';
- fputs( $fp,date( "d/m/Y H:m:s")." insert_create (create_db): ".$aError['insert_create']."\n\n" );
- }
- else {
- $aError['insert_create'] = 'Se elimino la base de datos creada ('.mysql_error().')';
- fputs( $fp,date( "d/m/Y H:m:s")." insert_create (create_db): ".$aError['insert_create']."\n\n" );
- }
- $hasErrors = true;
- }
- }
- } else {
- fputs( $fp,date( "d/m/Y H:m:s")." -- Select DB --\n\n" );
- if(@mysql_select_db($_POST['db']['name'])) {
- if(doInstall($fp)) {
- fputs( $fp,date( "d/m/Y H:m:s")." Fin doInstall (select_db): OK \n\n" );
- fclose( $fp );
- header("Location: ".REDIRECT_URL);
- } else {
- $aError['insert_create'] = 'No se pudo agregar los datos a la base de datos existente ('.mysql_error().')';
- fputs( $fp,date( "d/m/Y H:m:s")." insert_create (select_db): ".$aError['insert_create']."\n\n" );
- $hasErrors = true;
- }
- } else {
- $hasErrors = true;
- $aError['currentdb'] = 'No se pudo usar la base de datos ('.mysql_error().')';
- fputs( $fp,date( "d/m/Y H:m:s")." currentdb (select_db): ".$aError['currentdb']."\n\n" );
- $aDb = array( 'server' => $_POST['db']['server'] , 'user' => $_POST['db']['user'], 'password' => $_POST['db']['password'], 'name' => $_POST['db']['name'], 'createdb' => $_POST['db']['createdb']) ;
- }
- }
- } else {
- $hasErrors = true;
- $aError['mysql_version'] = 'Usted tiene una versión de MYSQL inferior a la'.MYSQL_REQUIRED_VERSION. '(Su versión actual es '.$mysql_server_version. ')';
- fputs( $fp,date( "d/m/Y H:m:s")." mysql_server_version: ".$aError['mysql_version']."\n\n" );
- $aDb = array( 'server' => $_POST['db']['server'] , 'user' => $_POST['db']['user'], 'password' => $_POST['db']['password'], 'name' => $_POST['db']['name'], 'createdb' => $_POST['db']['createdb'] );
- }
-
- mysql_close($db_connection);
- } else {
- $hasErrors = true;
- $aError['connect'] = 'No pudo conectarse al Servidor de Base de datos ('.mysql_error().')';
- fputs( $fp,date( "d/m/Y H:m:s")." connect: ".$aError['connect']."\n\n" );
- $aDb = array( 'server' => $_POST['db']['server'] , 'user' => $_POST['db']['user'], 'password' => $_POST['db']['password'], 'name' => $_POST['db']['name'], 'createdb' => $_POST['db']['createdb'] );
- }
-
- }
- fclose( $fp );
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2000/REC-xhtml1-200000126/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <meta name="title" content="Proyecto ALBA" />
- <meta name="robots" content="index, follow" />
- <meta name="description" content="Proyecto de Gestión Educativa ALBA" />
- <meta name="keywords" content="alba, proyecto, software libre, educacion" />
- <meta name="language" content="es" />
- <title>Proyecto ALBA</title>
- <link rel="stylesheet" type="text/css" href="installer/css/main.css"/>
-</head>
-
-<body>
-<div id ="sf_admin_container">
-<h2>Verificaciones necesarias para la instalación</h2>
-<br>
-<h2>Programas</h2>
-
-<table border="0" cellpadding="3" width="600" class="sf_admin_list">
- <thead>
- <tr>
- <th id="sf_admin_list_th_verfica">Verificación</th>
- <th id="sf_admin_list_th_resultado">Resultado</th>
- </tr>
- </thead>
- <tr class="sf_admin_row_0" >
- <td>Versión de PHP >= 5.0.0</td>
- <td>
- <?=($bool_phpversion)?IMG_OK:IMG_NOT_OK?>(<?=$msg_phpversion?>)
- </td>
- </tr>
-
- <tr class="sf_admin_row_1" >
- <td>¿ Esta instalado MYSQL en PHP ?</td>
- <td>
- <?=($bool_mysql_module)?IMG_OK:IMG_NOT_OK?>(<?=$msg_mysql_module?>)
- </td>
- </tr>
-
-
- <tr class="sf_admin_row_0">
- <td>¿ Esta Instalado GD en PHP ? (optativo) </td>
- <td><?=($bool_gd)?IMG_OK:IMG_NOT_OK." (Si queres ver los gráficos de estadísticas necesitas instalar GD - http://www.php.net/manual/es/ref.image.php)";?></td>
- </tr>
-
- <tr class="sf_admin_row_1">
- <td>En php.ini memory_limit >= 32</td>
- <td><?=($bool_memory_limit AND $bool_memory_no_chequeo)?IMG_OK:IMG_NOT_OK;?>(<?=$memory_limit?>)</td>
- </tr>
-
- <tr class="sf_admin_row_1">
- <td>En php.ini magic_quotes_gpc = off</td>
- <td><?=($bool_get_magic_quotes_gpc)?IMG_OK:IMG_NOT_OK;?><?=$msg_get_magic_quotes_gpc?></td>
- </tr>
-
-
-
- <tr class="sf_admin_row_0">
- <td>Versióon de APACHE >= 2.0</td>
- <td><?=($bool_apache_get_version)?IMG_OK:IMG_NOT_OK?>(<?=$msg_apache_get_version?>)</td>
- </tr>
-
- <tr class="sf_admin_row_1">
- <td>¿ Esta instalado MOD_REWRITE en APACHE ?</td>
- <td><?=($bool_mod_rewrite)?IMG_OK:IMG_NOT_OK.$msg_mod_rewrite?></td>
- </tr>
-
-</table>
-<br>
-<h2>Directorios con permisos para escritura:</h2>
-<table border="0" cellpadding="3" width="600" class="sf_admin_list">
- <thead>
- <tr>
- <th id="sf_admin_list_th_dir">Directorios</th>
- <th id="sf_admin_list_th_resultado">Resultados</th>
- </tr>
- </thead>
- <tr class="sf_admin_row_0" >
- <td>/cache</td>
- <td><?=($bool_cache)?IMG_OK:IMG_NOT_OK." (chmod 777 ./alba/cache)";?></td>
- </tr>
- <tr class="sf_admin_row_1">
- <td>/log</td>
- <td><?=($bool_log)?IMG_OK:IMG_NOT_OK." (chmod 777 ./alba/logs)";?></td>
- </tr>
- <tr class="sf_admin_row_0">
- <td>/uploads</td>
- <td><?=($bool_upload)?IMG_OK:IMG_NOT_OK." (chmod 777 ./alba/web/uploads)";?></td>
- </tr>
- <tr class="sf_admin_row_1">
- <td>/config</td>
- <td><?=($bool_config)?IMG_OK:IMG_NOT_OK." (chmod 777 ./alba/config)";?></td>
-<?php // Aqui no deberiamos probar si tienen permisos los archivos databases.yml, propel.ini y web/.htaccess ?>
- </tr>
- <tr class="sf_admin_row_0">
- <td>/tmp</td>
- <td><?=($bool_tmp)?IMG_OK:IMG_NOT_OK." (chmod 777 ./alba/web/tmp)";?></td>
- </tr>
-
-</table>
-
-<?php if($bool_config AND $bool_upload AND $bool_tmp AND $bool_log AND $bool_cache AND $bool_memory_limit AND $bool_apache_get_version AND $bool_phpversion AND $bool_mysql_module AND $bool_mod_rewrite AND $bool_get_magic_quotes_gpc) { ?>
-
-<?php if($hasErrors) { ?>
- <br><br>
- <div class="form-errors">
- <h2>Arreglar errores para continuar</h2>
- <ul>
- <?php foreach ($aError as $idx => $name) { ?>
- <li><?php echo $name; ?></li>
- <?php } ?>
- </ul>
- </div>
-<?php } ?>
-
-
-
-<br>
-<h2>Datos para la instalación</h2>
-<form action="<?=$_SERVER['PHP_SELF']?>" method="POST" >
- <fieldset id="sf_fieldset_base_de_datos" class="">
- <h2>Conección a la base de datos</h2>
- <div class="form-row">
- <label for="db_server" class="required">Servidor:</label><div class="content"><input type="text" name="db[server]" value="<?=$aDb['server']?>" size="64" /></div>
- </div>
- <div class="form-row">
- <label for="db_user" class="required">Usuario:</label><div class="content"><input type="text" name="db[user]" value="<?=$aDb['user']?>" size="64" /></div>
- </div>
- <div class="form-row">
- <label for="db_password" class="required">Contraseña:</label><div class="content"><input type="password" name="db[password]" value="<?=$aDb['password']?>" size="64" /></div>
- </div>
- <div class="form-row">
- <label for="db_name" class="required">Nombre de base de datos:</label><div class="content"><input type="text" name="db[name]" value="<?=$aDb['name']?>" size="64" />
- Crear Base de datos <input type="checkbox" name="db[createdb]" value="crear" <?=($aDb['createdb'])?'checked':''?>>
- </div>
-
- <div class="form-row">
- <label for="db_name" class="required">¿Que datos quiere por defecto?:</label>
- <div class="content">
- Datos mínimos<input type="radio" name="db[datos]" value="minimos" checked >
- Caso de Ejemplo<input type="radio" name="db[datos]" value="ejemplo">
- </div>
- </div>
- </fieldset>
-
- <ul class="sf_admin_actions">
- <li><input type="submit" name="instalar" value="Instalar" class="sf_admin_action_instalar" /></li>
- <li><input type="reset" name="borrar" value="Borrar" class="sf_admin_action_borrar" /></li>
- </ul>
-</form>
-<? } else { ?>
-<br>
-<div align="center"><h2 style="color: #FF0000;">Para poder seguir con la instalción debe pasar completa la verificación.</h2></div>
-<? } ?>
-</div>
-</body>
-</html>
-
-
-<?
-// si existe el archivo de flag para la instacion
-} else { ?>
-<html>
-<body>
-Usted ya ha instalado el Proyetco ALBA. Si quiere volver a instalarlo debe borra el archivo alba/log/instalacion_completa.
-</body>
-</html>
-<? } ?>
-
-
-<?php
-
-/**
-* Funciones del instalador
-*/
-
-function compruebaVersion($instalada, $requireda) {
- return (version_compare($instalada, $requireda, ">="));
-}
-
-
-function compruebaMemoriaMaxima($php_memory) {
- $memory_limit = eregi_replace('[gmk]','',$php_memory);
- return ($memory_limit >= MEMORY_LIMIT_REQUIRED);
-
-}
-
-function estaExtensionPHP($ext) {
- $aExtension = get_loaded_extensions();
- if(count($aExtension)>0) {
- $res = array_search($ext, $aExtension);
- if($res === false) {
- return false;
- } else {
- return true;
- }
- } else {
- return false;
- }
-}
-
-
-function estaExtensionApache($ext) {
- $aApacheModulos = apache_get_modules();
- if(count($aApacheModulos)>0) {
- $res = array_search($ext, $aApacheModulos);
- if($res === false) {
- return false;
- } else {
- return true;
- }
- } else {
- return false;
- }
-}
-
-
-function tienePermisoEscritura($dir) {
- $octalPermiso = substr(sprintf('%o', @fileperms($dir)), -4);
- return ($octalPermiso == "0777" OR $octalPermiso == "1777");
-}
-
-
-function reemplzarArchivo($archivo, $aReemplazo) {
- $contenido = "";
- if(file_exists($archivo)) {
- $contenido = file_get_contents ($archivo);
- foreach($aReemplazo as $indice => $reemplazo) {
- $contenido = str_replace($indice, $reemplazo, $contenido);
- }
- }
- return $contenido;
-}
-
-
-
-// ojo que esto no funciona para cualquier cosa si dentro de un string de un insert hay un dato con ;\n se separa por eso tambien
-function dump2Array($file) {
- $aSql = array();
- $res_sql = "";
- if(file_exists($file)) {
- $sql = file($file);
- foreach($sql as $sql_line) {
- $sql_line = trim($sql_line);
- if (($sql_line != "") && (substr($sql_line, 0, 2) != "--") && (substr($sql_line, 0, 1) != "#") ) {
- $res_sql .= $sql_line."\n";
- }
- }
- $aSql= array_slice(explode(";\n", $res_sql),0,-1);
- }
- return $aSql;
-}
-
-function executeDump($file, $db,$fp) {
- fputs( $fp,date( "d/m/Y H:m:s")." Entrando ExecuteDump: $file - $db \n\n" );
- $aSql = dump2Array($file);
- $error = false;
- if(count($aSql) > 0 AND file_exists($file)) {
- if(mysql_select_db($db)) {
- fputs( $fp,date( "d/m/Y H:m:s")." ejecutando BEGIN \n\n" );
- mysql_query("BEGIN");
- foreach($aSql as $sql_line) {
- $res = mysql_query(trim($sql_line));
- if(!$res) {
- fputs( $fp,date( "d/m/Y H:m:s")." Fallo SQL: $sql_line \n\n" );
- fputs( $fp,date( "d/m/Y H:m:s")." error:". mysql_error()." \n\n" );
- $error = true;
- }
- }
- if($error == true) {
- fputs( $fp,date( "d/m/Y H:m:s")." Se encontraron errores ejecutando ROLLBACK y saliendo \n\n" );
- mysql_query("ROLLBACK");
- return false;
- } else {
- fputs( $fp,date( "d/m/Y H:m:s")." Sin errores ejecutando COMMIT y saliendo \n\n" );
- mysql_query("COMMIT");
- return true;
- }
- }
- else {
- fputs( $fp,date( "d/m/Y H:m:s")." Error al seleccionar la base: $db \n\n" );
- return false;
- }
- } else {
- fputs( $fp,date( "d/m/Y H:m:s")." Devuele false no ejecuta nada : $db \n\n" );
- return false;
- }
-
-}
-
-function doInstall($fp) {
- global $_POST;
- fputs( $fp,date( "d/m/Y H:m:s")." Entrando doInstall() \n\n" );
- //verifica que base de datos instalar si la del ejemplo o solamente la
- //de los datos_desde_cero iniciales
- switch($_POST['db']['datos']) {
- case "ejemplo": $sql_insert = SQL_INSERT_INICIAL; break;
- case "minimos": $sql_insert = SQL_INSERT_EJEMPLO; break;
- default: $sql_insert = SQL_INSERT_EJEMPLO;
- }
- fputs( $fp,date( "d/m/Y H:m:s")." Utilizando SQL: $sql_insert \n\n" );
- if(executeDump(SQL_CREATE, $_POST['db']['name'],$fp)) {
- if(executeDump($sql_insert, $_POST['db']['name'],$fp)) {
- $aReemplazo = array( 'USERDB' => $_POST['db']['user'], 'PASSDB' => $_POST['db']['password'], 'SERVER' => $_POST['db']['server'], 'DBNAME'=> $_POST['db']['name']);
- $contenido_archivo = reemplzarArchivo(DATABASE_CONFIG_DIST,$aReemplazo);
- file_put_contents(DATABASE_CONFIG, $contenido_archivo);
-
- $aReemplazo = array( 'USERDB' => $_POST['db']['user'], 'PASSDB' => $_POST['db']['password'], 'SERVER' => $_POST['db']['server'], 'DBNAME'=> $_POST['db']['name']);
- $contenido_archivo = reemplzarArchivo(PROPEL_CONFIG_DIST,$aReemplazo);
- file_put_contents(PROPEL_CONFIG, $contenido_archivo);
-
-
- _symlink(INSTALL_DIR."dist/".SYMFONY_DIR."/data/", ALBA_PATH."data/symfony");
- _symlink(INSTALL_DIR."dist/pake/", ALBA_PATH."lib/pake");
- _symlink(INSTALL_DIR."dist/phing.sandbox/", ALBA_PATH."lib/phing");
- _symlink(INSTALL_DIR."dist/".SYMFONY_DIR."/lib/", ALBA_PATH."lib/symfony");
- _symlink(INSTALL_DIR."alba/data/symfony/web/sf/", ALBA_WEB."sf");
- fputs( $fp,date( "d/m/Y H:m:s")." Creando Links \n\n" );
-
- $rewrite_path = (OS_WINDOWS)?CURRENT_WEB_DIR.SYMFONY_WINDOWS_WEB_DIR:CURRENT_WEB_DIR.SYMFONY_WEB_DIR;
-
- if(!OS_WINDOWS)
- _symlink(ALBA_WEB, INSTALL_DIR.SYMFONY_WEB_DIR); // crea nuevo link afuera de la estructura de alba
-
- $aReemplazo = Array('REWRITE_PATH' => $rewrite_path);
- $contenido_archivo = reemplzarArchivo(HTACCESS_DIST,$aReemplazo);
- file_put_contents(HTACCESS, $contenido_archivo);
- touch(INSTALL_COMPLETE_FILE);
- fputs( $fp,date( "d/m/Y H:m:s")." Creando bandera INSTALL_COMPLETE_FILE \n\n" );
- return true;
- }
- fputs( $fp,date( "d/m/Y H:m:s")." Fallo ejecutando: $sql_insert \n\n" );
- return false;
- } else {
- fputs( $fp,date( "d/m/Y H:m:s")." Fallo ejecutando: SQL_CREATE \n\n" );
- return false;
- }
-
-}
-
-
-function doUninstall() {
-
-}
-
-function _symlink( $target, $link ) {
- if (OS_WINDOWS) {
- @dircopy($target, $link);
- } else {
- @symlink($target,$link);
- }
-}
-
-
-function dircopy($srcdir, $dstdir, $verbose = false) {
- $num = 0;
- if(!is_dir($dstdir)) mkdir($dstdir);
- if($curdir = opendir($srcdir)) {
- while($file = readdir($curdir)) {
- if($file != '.' && $file != '..') {
- $srcfile = $srcdir . DIRECTORY_SEPARATOR . $file;
- $dstfile = $dstdir . DIRECTORY_SEPARATOR . $file;
- if(is_file($srcfile)) {
- if(is_file($dstfile)) $ow = filemtime($srcfile) - filemtime($dstfile); else $ow = 1;
- if($ow > 0) {
- if($verbose) echo "Copying '$srcfile' to '$dstfile'...";
- if(copy($srcfile, $dstfile)) {
- touch($dstfile, filemtime($srcfile)); $num++;
- if($verbose) echo "OK\n";
- }
- else echo "Error: File '$srcfile' could not be copied!\n";
- }
- }
- else if(is_dir($srcfile)) {
- $num += dircopy($srcfile, $dstfile, $verbose);
- }
- }
- }
- closedir($curdir);
- }
- return $num;
-}
-?>
\ No newline at end of file
1
0
26 Sep '07
Author: ftoledo
Date: 2007-09-26 13:41:16 -0300 (Wed, 26 Sep 2007)
New Revision: 5158
Added:
prosistem/alba/trunk/alba/web/instalar/ver_log.php
Modified:
prosistem/alba/trunk/alba/web/instalar/funciones.php
prosistem/alba/trunk/alba/web/instalar/instalar.php
prosistem/alba/trunk/alba/web/instalar/paso1.php
prosistem/alba/trunk/alba/web/instalar/paso3.php
prosistem/alba/trunk/alba/web/instalar/paso6.php
Log:
visor del log de isntalacion
detectar la instalacion si existe databases.yml
Modified: prosistem/alba/trunk/alba/web/instalar/funciones.php
===================================================================
--- prosistem/alba/trunk/alba/web/instalar/funciones.php 2007-09-26 16:25:08 UTC (rev 5157)
+++ prosistem/alba/trunk/alba/web/instalar/funciones.php 2007-09-26 16:41:16 UTC (rev 5158)
@@ -32,12 +32,12 @@
return realpath(dirname(__FILE__) .DIRECTORY_SEPARATOR. ".." . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR);
}
-function DebugLog($str) {
+function DebugLog($str,$modo = 'I') {
date_default_timezone_set('America/Argentina/Buenos_Aires');
$log = AlbaPath() . DIRECTORY_SEPARATOR . "log" . DIRECTORY_SEPARATOR . "install.log";
$fp = fopen($log,"a+");
if ($fp) {
- fwrite($fp,date('d/m/Y H:i:s') . " $str\n");
+ fwrite($fp,date('d/m/Y H:i:s') . " $modo: $str\n");
fclose($fp);
}
}
@@ -115,7 +115,7 @@
*/
function generate_databases_yml($host,$user,$pass,$db) {
$yml = AlbaPath() . DIRECTORY_SEPARATOR . "config" . DIRECTORY_SEPARATOR . "databases.yml";
- DebugLog ("generate_databases_yml(): generando archivo de cnonexion $yml");
+ DebugLog ("generate_databases_yml(): generando archivo de conexion $yml");
if ($fp = @fopen ($yml,'w')) {
fwrite ($fp,"#Archivo generando por el instalador " . date('m/d/Y H:i:s') . "\n");
fwrite ($fp,"all:\n");
Modified: prosistem/alba/trunk/alba/web/instalar/instalar.php
===================================================================
--- prosistem/alba/trunk/alba/web/instalar/instalar.php 2007-09-26 16:25:08 UTC (rev 5157)
+++ prosistem/alba/trunk/alba/web/instalar/instalar.php 2007-09-26 16:41:16 UTC (rev 5158)
@@ -66,31 +66,42 @@
<h1>Instalación de ALBA</h1>
</div>
<div id="contenido">
- <?php
- switch ($paso) {
- case 1:
- include ("paso1.php");
- break;
- case 2:
- include ("paso2.php");
- break;
- case 3:
- include ("paso3.php");
- break;
- case 4:
- include ("paso4.php");
- break;
- case 5:
- include ("paso5.php");
- break;
- case 6:
- include ("paso6.php");
- break;
- default:
- die("Uhmmm, error del instalador =(");
- break;
- }
- ?>
+ <?php if (file_exists(AlbaPath() . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR .'databases.yml')): ?>
+ <?php $error_flag = true;?>
+ <p>El sistema se encuentra instalado.</p>
+ <p>Si desea volver a iniciar la instalación, por favor elimine el archivo
+ de configuracion <b>databases.yml</b> que<br/>
+ se encuentra en el directorio de <b>config</b> de la aplicación.
+ </p>
+
+ <?php else: ?>
+ <?php
+ switch ($paso) {
+ case 1:
+ include ("paso1.php");
+ break;
+ case 2:
+ include ("paso2.php");
+ break;
+ case 3:
+ include ("paso3.php");
+ break;
+ case 4:
+ include ("paso4.php");
+ break;
+ case 5:
+ include ("paso5.php");
+ break;
+ case 6:
+ include ("paso6.php");
+ break;
+ default:
+ die("Uhmmm, error del instalador =(");
+ break;
+ }
+
+ ?>
+ <?php endif; ?>
</div>
<br/>
<?php if (!$error_flag && !$completo): ?>
Modified: prosistem/alba/trunk/alba/web/instalar/paso1.php
===================================================================
--- prosistem/alba/trunk/alba/web/instalar/paso1.php 2007-09-26 16:25:08 UTC (rev 5157)
+++ prosistem/alba/trunk/alba/web/instalar/paso1.php 2007-09-26 16:41:16 UTC (rev 5158)
@@ -55,10 +55,14 @@
<p>Directorio base: <?php echo $alba_path?></p>
<table>
+<?php DebugLog("Comprobacion de los permisos de los directorios");?>
<?php foreach($dirs as $dir):?>
<?php
- if (!is_writable($alba_path .DIRECTORY_SEPARATOR . $dir))
+ DebugLog("Directorio: $dir");
+ if (!is_writable($alba_path .DIRECTORY_SEPARATOR . $dir)) {
+ DebugLog("El directorio $dir no tiene permisos de escritura",'E');
$error_flag = true;
+ }
?>
<tr>
<td>Comprobando permisos en: <?php echo $dir ?></td>
Modified: prosistem/alba/trunk/alba/web/instalar/paso3.php
===================================================================
--- prosistem/alba/trunk/alba/web/instalar/paso3.php 2007-09-26 16:25:08 UTC (rev 5157)
+++ prosistem/alba/trunk/alba/web/instalar/paso3.php 2007-09-26 16:41:16 UTC (rev 5158)
@@ -48,17 +48,20 @@
$pass = $_POST['pass'];
$db = $_POST['db'];
$creardb = (isset($_POST['creardb']) && $_POST['creardb'] == 1);
-
+ DebugLog('Probando conexión');
$conn = @mysql_connect($host,$user,$pass);
if (!$conn) {
$cnx_error_flag = true;
+ DebugLog('Error al conectar con la base de datos','E');
$cnx_error_msg = "No se puede conectar a la base de datos: <br>" . mysql_error();
}
else {
+ DebugLog('Probando crear base de datos');
if ($creardb) {
$ret = @mysql_query('CREATE DATABASE ' . $db , $conn);
if (!$ret) {
$cnx_error_flag = true;
+ DebugLog('No se puede crear la base de datos: ' . mysql_error() ,'E');
$cnx_error_msg = "No se puede crear la base de datos: <br>" . mysql_error();
$error_flag = true;
}
Modified: prosistem/alba/trunk/alba/web/instalar/paso6.php
===================================================================
--- prosistem/alba/trunk/alba/web/instalar/paso6.php 2007-09-26 16:25:08 UTC (rev 5157)
+++ prosistem/alba/trunk/alba/web/instalar/paso6.php 2007-09-26 16:41:16 UTC (rev 5158)
@@ -32,12 +32,13 @@
if (!defined('ALBA_INSTALLER')) die();
- $host = $_SESSION['albainstall']['host'];
- $user = $_SESSION['albainstall']['user'];
- $pass = $_SESSION['albainstall']['pass'];
- $db = $_SESSION['albainstall']['db'];
- $tipo_base = $_SESSION ['albainstall']['tipo_base'];
+$host = $_SESSION['albainstall']['host'];
+$user = $_SESSION['albainstall']['user'];
+$pass = $_SESSION['albainstall']['pass'];
+$db = $_SESSION['albainstall']['db'];
+$tipo_base = $_SESSION ['albainstall']['tipo_base'];
+$error_flag = false;
?>
<div id="detalle">
<p>Resultado de la instalación:</p>
@@ -46,13 +47,21 @@
<tr>
<td>Generando archivo de configuración:</td>
<td>
- <?php echo generate_databases_yml($host,$user,$pass,$db) ? IMG_OK : IMG_ERROR?>
+ <?php
+ $ret = generate_databases_yml($host,$user,$pass,$db);
+ echo $ret ? IMG_OK : IMG_ERROR;
+ if (!$ret) ; $error_flag = true;
+ ?>
</td>
</tr>
<tr>
<td>Creando esquema de base de datos:</td>
<td>
- <?php echo crear_schema('lib.model.schema.sql', $host, $user, $pass, $db) ? IMG_OK : IMG_ERROR?>
+ <?php
+ $ret = crear_schema('lib.model.schema.sql', $host, $user, $pass, $db);
+ echo $ret ? IMG_OK : IMG_ERROR;
+ if (!$ret) ; $error_flag = true;
+ ?>
</td>
</tr>
<tr>
@@ -66,18 +75,32 @@
else
$archivo = "";
?>
- <?php echo crear_base_modelo($archivo,$host,$user,$pass,$db) ? IMG_OK : IMG_ERROR?>
+ <?php
+ $ret = crear_base_modelo($archivo,$host,$user,$pass,$db);
+ echo $ret ? IMG_OK : IMG_ERROR;
+ if (!$ret) ; $error_flag = true;
+ ?>
</td>
</tr>
</table>
<p>La instalación ha finalizado!</p>
+<?php if ($error_flag):?>
+<div class="error">
+<p>
+Se encontraron errores en la instalación, es posible que debe realizar algun paso<br/>
+de forma manual, por favor revise el registro de la instalación haciendo click <br/>
+en el siguiente enlace:
+</p>
+<p><a href ="ver_log.php" target="_blank">Ver Registro de Instalación</a></p>
+</div>
+<?php endif;?>
<p><a href="../">Ingresar al Sistema de Gestión Educactiva Alba</a></p>
<p><i>* Recuerde que para ingresar al sistema el nombre de usuario por defecto es <b>admin</b> y la clave es <b>admin</b>.</i></p>
<?php
// ir al siguiente paso
$completo = true;
- $paso = 7;
+ $paso = 7;
?>
\ No newline at end of file
Added: prosistem/alba/trunk/alba/web/instalar/ver_log.php
===================================================================
--- prosistem/alba/trunk/alba/web/instalar/ver_log.php 2007-09-26 16:25:08 UTC (rev 5157)
+++ prosistem/alba/trunk/alba/web/instalar/ver_log.php 2007-09-26 16:41:16 UTC (rev 5158)
@@ -0,0 +1,53 @@
+<?php
+/**
+ * This file is part of Alba.
+ *
+ * Alba 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 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Alba 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Alba; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+
+/**
+ * instalador
+ *
+ * @package alba
+ * @author José Luis Di Biase <josx(a)interorganic.com.ar>
+ * @author Héctor Sanchez <hsanchez(a)pressenter.com.ar>
+ * @author Fernando Toledo <ftoledo(a)pressenter.com.ar>
+ * @version SVN: $Id: instalar.php 4883 2007-07-30 21:41:42Z ftoledo $
+ * @filesource
+ * @license GPL
+ */
+
+require ("funciones.php");
+$alba_path = AlbaPath();
+
+?>
+<html>
+<body>
+<pre>
+<?php
+$fp = @fopen ($alba_path . DIRECTORY_SEPARATOR . 'log' . DIRECTORY_SEPARATOR . 'install.log','r');
+if ($fp) {
+ while ($linea = fread($fp,1024)) {
+ echo $linea;
+ }
+}
+else {
+ echo "No se puede acceder al archivo install.log";
+}
+?>
+</pre>
+</body>
+</html>
\ No newline at end of file
Property changes on: prosistem/alba/trunk/alba/web/instalar/ver_log.php
___________________________________________________________________
Name: svn:keywords
+ "Id Author URL Date Rev"
1
0
SVN Alba r5157 - prosistem/alba/trunk/alba/apps/principal/modules/docente/config
by commits@pressenter.com.ar 26 Sep '07
by commits@pressenter.com.ar 26 Sep '07
26 Sep '07
Author: hsanchez
Date: 2007-09-26 13:25:08 -0300 (Wed, 26 Sep 2007)
New Revision: 5157
Modified:
prosistem/alba/trunk/alba/apps/principal/modules/docente/config/generator.yml
Log:
orden de los docentes en el listado
Modified: prosistem/alba/trunk/alba/apps/principal/modules/docente/config/generator.yml
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/docente/config/generator.yml 2007-09-26 15:19:50 UTC (rev 5156)
+++ prosistem/alba/trunk/alba/apps/principal/modules/docente/config/generator.yml 2007-09-26 16:25:08 UTC (rev 5157)
@@ -44,6 +44,7 @@
title: Listado de Docentes
display: [ =apellido, nombre, tipodocumento, nro_documento, telefono, email, activo ]
filters: [ apellido, nombre ]
+ sort: [ apellido , asc ]
object_actions:
_edit: -
_delete: -
1
0
26 Sep '07
Author: josx
Date: 2007-09-26 12:19:50 -0300 (Wed, 26 Sep 2007)
New Revision: 5156
Modified:
prosistem/alba/trunk/alba/lib/model/Evento.php
Log:
Mas cambios en como muestra la parte textual de un evento
Modified: prosistem/alba/trunk/alba/lib/model/Evento.php
===================================================================
--- prosistem/alba/trunk/alba/lib/model/Evento.php 2007-09-26 15:11:34 UTC (rev 5155)
+++ prosistem/alba/trunk/alba/lib/model/Evento.php 2007-09-26 15:19:50 UTC (rev 5156)
@@ -80,7 +80,7 @@
switch($this->getFrecuencia()) {
case '0' : $frecuencia = ""; break;
case '4' : $frecuencia .= "diaria";
- $frecuencia_intervalo = " cada " . $this->getFrecuenciaIntervalo() . "días";;
+ $frecuencia_intervalo = " cada " . $this->getFrecuenciaIntervalo() . (($this->getFrecuenciaIntervalo()==1)?" día":" días");
break;
case '5' : $frecuencia .= "semanal";
$numero_binario = $this->getRecurrenciaDiasEnBinario();
1
0
SVN Alba r5155 - prosistem/alba/trunk/alba/apps/principal/modules/relDivisionActividadDocente/templates
by commits@pressenter.com.ar 26 Sep '07
by commits@pressenter.com.ar 26 Sep '07
26 Sep '07
Author: josx
Date: 2007-09-26 12:11:34 -0300 (Wed, 26 Sep 2007)
New Revision: 5155
Modified:
prosistem/alba/trunk/alba/apps/principal/modules/relDivisionActividadDocente/templates/_list.php
Log:
Se soluciona problema grafico de no mostrar un columna
Modified: prosistem/alba/trunk/alba/apps/principal/modules/relDivisionActividadDocente/templates/_list.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/relDivisionActividadDocente/templates/_list.php 2007-09-26 15:06:08 UTC (rev 5154)
+++ prosistem/alba/trunk/alba/apps/principal/modules/relDivisionActividadDocente/templates/_list.php 2007-09-26 15:11:34 UTC (rev 5155)
@@ -18,7 +18,7 @@
<?php endforeach; ?>
</tbody>
<tfoot>
-<tr><th colspan="4">
+<tr><th colspan="5">
<div class="float-right">
<?php if ($pager->haveToPaginate()): ?>
<?php echo link_to(image_tag(sfConfig::get('sf_admin_web_dir').'/images/first.png', array('align' => 'absmiddle', 'alt' => __('First'), 'title' => __('First'))), 'relDivisionActividadDocente/list?page=1') ?>
1
0
26 Sep '07
Author: josx
Date: 2007-09-26 12:06:08 -0300 (Wed, 26 Sep 2007)
New Revision: 5154
Modified:
prosistem/alba/trunk/alba/data/sql/datos_ejemplo.sql
Log:
Se agregaron a los datos de ejemplo los nombres de los eventos
Modified: prosistem/alba/trunk/alba/data/sql/datos_ejemplo.sql
===================================================================
--- prosistem/alba/trunk/alba/data/sql/datos_ejemplo.sql 2007-09-26 14:51:46 UTC (rev 5153)
+++ prosistem/alba/trunk/alba/data/sql/datos_ejemplo.sql 2007-09-26 15:06:08 UTC (rev 5154)
@@ -3383,77 +3383,71 @@
-- Volcar la base de datos para la tabla `evento`
--
-INSERT INTO `evento` (`id`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`, `titulo`) VALUES (1, '2007-03-05 07:30:00', '2007-03-05 12:15:00', 1, 5, 1, '2007-12-14 00:00', 62, 1, '');
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (1, '', '2007-03-05 07:30:00', '2007-03-05 12:15:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
-INSERT INTO `evento` (`id`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`, `titulo`) VALUES (2, '2007-03-05 07:30:00', '2007-03-05 12:15:00', 1, 5, 1, '2007-12-14 00:00', 62, 1, '');
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (2, '', '2007-03-05 07:30:00', '2007-03-05 12:15:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
-INSERT INTO `evento` (`id`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`, `titulo`) VALUES (3, '2007-03-05 07:30:00', '2007-03-05 12:15:00', 1, 5, 1, '2007-12-14 00:00', 62, 1, '');
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (3, '', '2007-03-05 07:30:00', '2007-03-05 12:15:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
-INSERT INTO `evento` (`id`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`, `titulo`) VALUES (4, '2007-03-05 07:30:00', '2007-03-05 12:15:00', 1, 5, 1, '2007-12-14 00:00', 62, 1, '');
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (4, '', '2007-03-05 07:30:00', '2007-03-05 12:15:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
-INSERT INTO `evento` (`id`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`, `titulo`) VALUES (5, '2007-03-05 07:30:00', '2007-03-05 12:15:00', 1, 5, 1, '2007-12-14 00:00', 62, 1, '');
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (5, '', '2007-03-05 07:30:00', '2007-03-05 12:15:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
-INSERT INTO `evento` (`id`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`, `titulo`) VALUES (6, '2007-03-05 07:30:00', '2007-03-05 12:15:00', 1, 5, 1, '2007-12-14 00:00', 62, 1, '');
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (6, '', '2007-03-05 07:30:00', '2007-03-05 12:15:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (7, 'Primera hora', '2007-03-05 07:30:00', '2007-03-05 08:10:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (7, '', '2007-03-05 07:30:00', '2007-03-05 08:10:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (8, 'Segunda hora.', '2007-03-05 08:10:00', '2007-03-05 08:50:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (8, '', '2007-03-05 08:10:00', '2007-03-05 08:50:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (9, 'Primer recreo.', '2007-03-05 08:50:00', '2007-03-05 09:10:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (9, '', '2007-03-05 08:50:00', '2007-03-05 09:10:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (10, 'Tercera hora.', '2007-03-05 09:10:00', '2007-03-05 09:50:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (10, '', '2007-03-05 09:10:00', '2007-03-05 09:50:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (11, 'Cuarta hora.', '2007-03-05 09:50:00', '2007-03-05 10:30:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (11, '', '2007-03-05 09:50:00', '2007-03-05 10:30:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (12, 'Segundo recreo.', '2007-03-05 10:30:00', '2007-03-05 10:40:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (12, '', '2007-03-05 10:30:00', '2007-03-05 10:40:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (13, 'Quinta hora. ', '2007-03-05 10:40:00', '2007-03-05 11:20:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (13, '', '2007-03-05 10:40:00', '2007-03-05 11:20:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (14, 'Tercer recreo.', '2007-03-05 11:20:00', '2007-03-05 11:30:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (14, '', '2007-03-05 11:20:00', '2007-03-05 11:30:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (15, 'Sexta hora. ', '2007-03-05 11:30:00', '2007-03-05 12:10:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (15, '', '2007-03-05 11:30:00', '2007-03-05 12:10:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (16, 'Primera hora.', '2007-03-05 12:30:00', '2007-03-05 13:10:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (16, '', '2007-03-05 12:30:00', '2007-03-05 13:10:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (17, 'Segunda hora.', '2007-03-05 13:10:00', '2007-03-05 13:50:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (18, 'Primer recreo.', '2007-03-05 13:50:00', '2007-03-05 14:10:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (17, '', '2007-03-05 13:10:00', '2007-03-05 13:50:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
-
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (18, '', '2007-03-05 13:50:00', '2007-03-05 14:10:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
-
INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (19, '', '2007-03-05 14:10:00', '2007-03-05 14:50:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (20, 'Cuarta hora.', '2007-03-05 14:50:00', '2007-03-05 15:30:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (20, '', '2007-03-05 14:50:00', '2007-03-05 15:30:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (21, 'Segundo recreo.', '2007-03-05 15:30:00', '2007-03-05 15:40:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (21, '', '2007-03-05 15:30:00', '2007-03-05 15:40:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (22, 'Quinta hora. ', '2007-03-05 15:40:00', '2007-03-05 16:20:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (23, 'Tercer recreo.', '2007-03-05 16:20:00', '2007-03-05 16:30:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (22, '', '2007-03-05 15:40:00', '2007-03-05 16:20:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (24, 'Sexta hora. ', '2007-03-05 16:30:00', '2007-03-05 17:10:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (23, '', '2007-03-05 16:20:00', '2007-03-05 16:30:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (25, 'Primer Grado A - Lengua', '2007-03-05 07:30:00', '2007-03-05 08:10:00', 1, 5, 1, '2007-12-14 00:00', 6, 1);
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (24, '', '2007-03-05 16:30:00', '2007-03-05 17:10:00', 1, 5, 1, '2007-12-14 00:00', 62, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (26, 'Primer Grado A - Lengua', '2007-03-05 14:50:00', '2007-03-05 15:30:00', 1, 5, 1, '2007-12-14 00:00', 6, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (27, 'Segundo Grado A - Matemáticas', '2007-03-05 07:30:00', '2007-03-05 08:10:00', 1, 5, 1, '2007-12-14 00:00', 6, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (28, 'Segundo Grado A - Matemáticas', '2007-03-05 14:50:00', '2007-03-05 15:30:00', 1, 5, 1, '2007-12-14 00:00', 6, 1);
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (25, '', '2007-03-05 07:30:00', '2007-03-05 08:10:00', 1, 5, 1, '2007-12-14 00:00', 6, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (29, 'Tercer Grado A - Ciencias naturales', '2007-03-05 07:30:00', '2007-03-05 08:10:00', 1, 5, 1, '2007-12-14 00:00', 6, 1);
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (26, '', '2007-03-05 14:50:00', '2007-03-05 15:30:00', 1, 5, 1, '2007-12-14 00:00', 6, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (30, 'Tercer Grado A - Ciencias naturales', '2007-03-05 14:50:00', '2007-03-05 15:30:00', 1, 5, 1, '2007-12-14 00:00', 6, 1);
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (27, '', '2007-03-05 07:30:00', '2007-03-05 08:10:00', 1, 5, 1, '2007-12-14 00:00', 6, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (31, 'Cuarto Grado A - Estudios sociales', '2007-03-05 07:30:00', '2007-03-05 08:10:00', 1, 5, 1, '2007-12-14 00:00', 6, 1);
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (28, '', '2007-03-05 14:50:00', '2007-03-05 15:30:00', 1, 5, 1, '2007-12-14 00:00', 6, 1);
+INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (32, 'Cuarto Grado A - Estudios sociales', '2007-03-05 14:50:00', '2007-03-05 15:30:00', 1, 5, 1, '2007-12-14 00:00', 6, 1);
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (29, '', '2007-03-05 07:30:00', '2007-03-05 08:10:00', 1, 5, 1, '2007-12-14 00:00', 6, 1);
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (30, '', '2007-03-05 14:50:00', '2007-03-05 15:30:00', 1, 5, 1, '2007-12-14 00:00', 6, 1);
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (31, '', '2007-03-05 07:30:00', '2007-03-05 08:10:00', 1, 5, 1, '2007-12-14 00:00', 6, 1);
-
-INSERT INTO `evento` (`id`, `titulo`, `fecha_inicio`, `fecha_fin`, `tipo`, `frecuencia`, `frecuencia_intervalo`, `recurrencia_fin`, `recurrencia_dias`, `estado`) VALUES (32, '', '2007-03-05 14:50:00', '2007-03-05 15:30:00', 1, 5, 1, '2007-12-14 00:00', 6, 1);
-
-
-
SET FOREIGN_KEY_CHECKS = 1;
1
0
SVN Alba r5153 - in prosistem/alba/trunk/alba/apps/principal/modules: evento/actions horarioescolar/actions relDivisionActividadDocente/actions
by commits@pressenter.com.ar 26 Sep '07
by commits@pressenter.com.ar 26 Sep '07
26 Sep '07
Author: josx
Date: 2007-09-26 11:51:46 -0300 (Wed, 26 Sep 2007)
New Revision: 5153
Modified:
prosistem/alba/trunk/alba/apps/principal/modules/evento/actions/actions.class.php
prosistem/alba/trunk/alba/apps/principal/modules/horarioescolar/actions/actions.class.php
prosistem/alba/trunk/alba/apps/principal/modules/relDivisionActividadDocente/actions/actions.class.php
Log:
Ahora graba el nombre del evento para ser mostrado en los calendarios
Modified: prosistem/alba/trunk/alba/apps/principal/modules/evento/actions/actions.class.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/evento/actions/actions.class.php 2007-09-26 13:33:05 UTC (rev 5152)
+++ prosistem/alba/trunk/alba/apps/principal/modules/evento/actions/actions.class.php 2007-09-26 14:51:46 UTC (rev 5153)
@@ -234,7 +234,7 @@
$this->evento->setRecurrenciaFin($value);
break;
}
- }
+ }
}
Modified: prosistem/alba/trunk/alba/apps/principal/modules/horarioescolar/actions/actions.class.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/horarioescolar/actions/actions.class.php 2007-09-26 13:33:05 UTC (rev 5152)
+++ prosistem/alba/trunk/alba/apps/principal/modules/horarioescolar/actions/actions.class.php 2007-09-26 14:51:46 UTC (rev 5153)
@@ -42,7 +42,10 @@
if ($this->getRequest()->getMethod() == sfRequest::POST) {
$evento = $this->getRequestParameter('evento');
if($evento['fecha_inicio'] AND $evento['fecha_fin']) {
- $this->evento = $evento_generico->updateEventoFromRequest($this->evento, $this->getRequestParameter('evento'), $this->getUser()->getCulture());
+ $e = $this->getRequestParameter('evento');
+ $h = $this->getRequestParameter('horarioescolar');
+ $e['titulo'] = $h["nombre"];
+ $this->evento = $evento_generico->updateEventoFromRequest($this->evento, $e, $this->getUser()->getCulture());
$this->evento->save();
$this->forward404Unless($this->evento);
$this->updateHorarioescolarFromRequest($this->evento->getId());
@@ -63,38 +66,35 @@
}
}
-
-
protected function updateHorarioescolarFromRequest($fk_evento_id = '') {
$horarioescolar = $this->getRequestParameter('horarioescolar');
- if ($fk_evento_id) {
+ if ($fk_evento_id) {
$this->horarioescolar->setFkEventoId($fk_evento_id);
- } else {
+ } else {
$this->horarioescolar->setFkEventoId(null);
- }
+ }
- if (isset($horarioescolar['nombre']))
- {
- $this->horarioescolar->setNombre($horarioescolar['nombre']);
+ if (isset($horarioescolar['nombre'])) {
+ $this->horarioescolar->setNombre($horarioescolar['nombre']);
+ }
+
+ if (isset($horarioescolar['descripcion'])) {
+ $this->horarioescolar->setDescripcion($horarioescolar['descripcion']);
+ }
+
+ if (isset($horarioescolar['fk_horarioescolartipo_id'])) {
+ $this->horarioescolar->setFkHorarioescolartipoId($horarioescolar['fk_horarioescolartipo_id']);
+ }
+
+ if (isset($horarioescolar['fk_establecimiento_id'])) {
+ $this->horarioescolar->setFkEstablecimientoId($horarioescolar['fk_establecimiento_id']);
+ }
+
+ if (isset($horarioescolar['fk_turno_id'])) {
+ $this->horarioescolar->setFkTurnoId($horarioescolar['fk_turno_id']);
+ }
}
- if (isset($horarioescolar['descripcion']))
- {
- $this->horarioescolar->setDescripcion($horarioescolar['descripcion']);
- }
- if (isset($horarioescolar['fk_horarioescolartipo_id']))
- {
- $this->horarioescolar->setFkHorarioescolartipoId($horarioescolar['fk_horarioescolartipo_id']);
- }
- if (isset($horarioescolar['fk_establecimiento_id']))
- {
- $this->horarioescolar->setFkEstablecimientoId($horarioescolar['fk_establecimiento_id']);
- }
- if (isset($horarioescolar['fk_turno_id']))
- {
- $this->horarioescolar->setFkTurnoId($horarioescolar['fk_turno_id']);
- }
- }
function addFiltersCriteria($c) {
Modified: prosistem/alba/trunk/alba/apps/principal/modules/relDivisionActividadDocente/actions/actions.class.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/relDivisionActividadDocente/actions/actions.class.php 2007-09-26 13:33:05 UTC (rev 5152)
+++ prosistem/alba/trunk/alba/apps/principal/modules/relDivisionActividadDocente/actions/actions.class.php 2007-09-26 14:51:46 UTC (rev 5153)
@@ -32,36 +32,38 @@
*/
class relDivisionActividadDocenteActions extends autorelDivisionActividadDocenteActions
{
- public function executeEdit()
- {
+ public function executeEdit() {
+ $evento_generico = new miEvento();
- $evento_generico = new miEvento();
+ $this->rel_division_actividad_docente = $this->getRelDivisionActividadDocenteOrCreate();
+ $this->evento = $evento_generico->getEventoOrCreate($this->rel_division_actividad_docente->getFkEventoId());
- $this->rel_division_actividad_docente = $this->getRelDivisionActividadDocenteOrCreate();
- $this->evento = $evento_generico->getEventoOrCreate($this->rel_division_actividad_docente->getFkEventoId());
-
- if ($this->getRequest()->getMethod() == sfRequest::POST) {
+ if ($this->getRequest()->getMethod() == sfRequest::POST) {
+ $e = $this->getRequestParameter('evento');
+ $r = $this->getRequestParameter('rel_division_actividad_docente');
+ $division = DivisionPeer::retrieveByPk($r["fk_division_id"]);
+ $actividad = ActividadPeer::retrieveByPk($r["fk_actividad_id"]);
+ $docente = DocentePeer::retrieveByPk($r["fk_docente_id"]);
+ $e['titulo'] = $division." - ".$actividad->getNombre();
+ $this->evento = $evento_generico->updateEventoFromRequest($this->evento, $e, $this->getUser()->getCulture());
+ $this->evento->save();
+ $this->forward404Unless($this->evento);
- $this->evento = $evento_generico->updateEventoFromRequest($this->evento, $this->getRequestParameter('evento'), $this->getUser()->getCulture());
- $this->evento->save();
- $this->forward404Unless($this->evento);
+ $this->updateRelDivisionActividadDocenteFromRequest($this->evento->getId());
+ $this->saveRelDivisionActividadDocente($this->rel_division_actividad_docente);
- $this->updateRelDivisionActividadDocenteFromRequest($this->evento->getId());
- $this->saveRelDivisionActividadDocente($this->rel_division_actividad_docente);
-
- $this->setFlash('notice', 'Your modifications have been saved');
- if ($this->getRequestParameter('save_and_add')) {
- return $this->redirect('relDivisionActividadDocente/create');
- }
- else if ($this->getRequestParameter('save_and_list')) {
- return $this->redirect('relDivisionActividadDocente/list');
- } else {
- return $this->redirect('relDivisionActividadDocente/edit?id='.$this->rel_division_actividad_docente->getId());
- }
- } else {
- $this->labels = $this->getLabels();
+ $this->setFlash('notice', 'Your modifications have been saved');
+ if ($this->getRequestParameter('save_and_add')) {
+ return $this->redirect('relDivisionActividadDocente/create');
+ } else if ($this->getRequestParameter('save_and_list')) {
+ return $this->redirect('relDivisionActividadDocente/list');
+ } else {
+ return $this->redirect('relDivisionActividadDocente/edit?id='.$this->rel_division_actividad_docente->getId());
+ }
+ } else {
+ $this->labels = $this->getLabels();
+ }
}
- }
protected function getLabels()
{
1
0
26 Sep '07
Author: josx
Date: 2007-09-26 10:33:05 -0300 (Wed, 26 Sep 2007)
New Revision: 5152
Modified:
prosistem/alba/trunk/alba/lib/model/Evento.php
Log:
Cambio de texto para como muestra el evento
Modified: prosistem/alba/trunk/alba/lib/model/Evento.php
===================================================================
--- prosistem/alba/trunk/alba/lib/model/Evento.php 2007-09-26 13:22:25 UTC (rev 5151)
+++ prosistem/alba/trunk/alba/lib/model/Evento.php 2007-09-26 13:33:05 UTC (rev 5152)
@@ -102,7 +102,7 @@
if(is_numeric($this->getRecurrenciaFin())) {
$recurrencia_fin = " luego de " .$this->getRecurrenciaFin(). " veces";
} else {
- $recurrencia_fin = " el " .$this->getRecurrenciaFin();
+ $recurrencia_fin = " hasta el " .date( "d-m-Y" , strtotime($this->getRecurrenciaFin()));
}
} else {
$recurrencia_fin = "";
1
0
SVN Alba r5151 - prosistem/alba/trunk/alba/apps/principal/modules/default/templates
by commits@pressenter.com.ar 26 Sep '07
by commits@pressenter.com.ar 26 Sep '07
26 Sep '07
Author: josx
Date: 2007-09-26 10:22:25 -0300 (Wed, 26 Sep 2007)
New Revision: 5151
Modified:
prosistem/alba/trunk/alba/apps/principal/modules/default/templates/indexSuccess.php
Log:
Cambio de texto en los titulos de la pantalla de principal
Modified: prosistem/alba/trunk/alba/apps/principal/modules/default/templates/indexSuccess.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/default/templates/indexSuccess.php 2007-09-25 14:04:51 UTC (rev 5150)
+++ prosistem/alba/trunk/alba/apps/principal/modules/default/templates/indexSuccess.php 2007-09-26 13:22:25 UTC (rev 5151)
@@ -1,11 +1,11 @@
<?php if ($sf_user->isAuthenticated()): ?>
<div align="center">
-<h1>¡Bienvenidos al Sistema de Gestión Educativa ALBA!</h1>
+<h1>¡Bienvenidos al Sistema Libre de Gestión Educativa ALBA!</h1>
<h3>Versión <?php echo link_to(sfConfig::get("app_alba_version"),"http://www.proyectoalba.com.ar/",array('title'=> 'Comprobar Versión...')) ?><h3>
</div>
<br/>
<div align="center">
-El Proyecto Alba, es un proyecto de desarrollo de Software para la realización de un<br><b>"Sistema Informático Abierto de Gestión Unificada para Unidades Educacionales"</b>
+El Proyecto Alba, es un proyecto de desarrollo de Software para la realización de un<br><b>"Sistema Libre de Gestión Educativa"</b>
</div>
<br>
<br>
1
0
SVN Alba r5150 - in prosistem/alba/trunk/alba/web/instalar: . images
by commits@pressenter.com.ar 25 Sep '07
by commits@pressenter.com.ar 25 Sep '07
25 Sep '07
Author: ftoledo
Date: 2007-09-25 11:04:51 -0300 (Tue, 25 Sep 2007)
New Revision: 5150
Added:
prosistem/alba/trunk/alba/web/instalar/funciones.php
prosistem/alba/trunk/alba/web/instalar/images/header.png
prosistem/alba/trunk/alba/web/instalar/paso5.php
prosistem/alba/trunk/alba/web/instalar/paso6.php
Modified:
prosistem/alba/trunk/alba/web/instalar/images/estilos.css
prosistem/alba/trunk/alba/web/instalar/instalar.php
prosistem/alba/trunk/alba/web/instalar/paso1.php
prosistem/alba/trunk/alba/web/instalar/paso3.php
prosistem/alba/trunk/alba/web/instalar/paso4.php
Log:
se movieron las funciones al otro archivo
argegue paso 5 y 6
se cambiaron estilos
Added: prosistem/alba/trunk/alba/web/instalar/funciones.php
===================================================================
--- prosistem/alba/trunk/alba/web/instalar/funciones.php 2007-09-24 21:42:02 UTC (rev 5149)
+++ prosistem/alba/trunk/alba/web/instalar/funciones.php 2007-09-25 14:04:51 UTC (rev 5150)
@@ -0,0 +1,158 @@
+<?php
+/**
+ * This file is part of Alba.
+ *
+ * Alba 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 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Alba 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Alba; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+/**
+ * instalador
+ *
+ * @package alba
+ * @author José Luis Di Biase <josx(a)interorganic.com.ar>
+ * @author Héctor Sanchez <hsanchez(a)pressenter.com.ar>
+ * @author Fernando Toledo <ftoledo(a)pressenter.com.ar>
+ * @version SVN: $Id: instalar.php 4883 2007-07-30 21:41:42Z ftoledo $
+ * @filesource
+ * @license GPL
+ */
+
+function AlbaPath() {
+ return realpath(dirname(__FILE__) .DIRECTORY_SEPARATOR. ".." . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR);
+}
+
+function DebugLog($str) {
+ date_default_timezone_set('America/Argentina/Buenos_Aires');
+ $log = AlbaPath() . DIRECTORY_SEPARATOR . "log" . DIRECTORY_SEPARATOR . "install.log";
+ $fp = fopen($log,"a+");
+ if ($fp) {
+ fwrite($fp,date('d/m/Y H:i:s') . " $str\n");
+ fclose($fp);
+ }
+}
+
+function dump2Array($file) {
+ $aSql = array();
+ $res_sql = "";
+ DebugLog ("dump2Array(): Comprobando si existe el archivo");
+ if(file_exists($file)) {
+ $sql = file($file);
+ DebugLog("dump2Array(): Leyendo archivo .SQL");
+ foreach($sql as $sql_line) {
+ $sql_line = trim($sql_line);
+ if (($sql_line != "") && (substr($sql_line, 0, 2) != "--") && (substr($sql_line, 0, 1) != "#") ) {
+ $res_sql .= $sql_line."\n";
+ }
+ }
+ $aSql= array_slice(explode(";\n", $res_sql),0,-1);
+ DebugLog ("dump2Array(): Total de lineas :" . count($aSql));
+ }
+ else {
+ DebugLog ("dump2Array(): El archivo no existe: $file");
+ return array();
+ }
+
+ return $aSql;
+}
+
+function executeDump($file, $host, $user, $pass, $db) {
+ DebugLog("executeDump(): file: $file");
+ DebugLog("executeDump(): user: $user");
+ DebugLog("executeDump(): db: $db");
+ $aSql = dump2Array($file);
+ $error = false;
+ if(count($aSql) > 0 && file_exists($file)) {
+ if (mysql_connect($host,$user,$pass)) {
+ if(mysql_select_db($db)) {
+ DebugLog("executeDump(): ejecutando BEGIN" );
+ mysql_query("BEGIN");
+ foreach($aSql as $sql_line) {
+ $res = mysql_query(trim($sql_line));
+ if(!$res) {
+ DebugLog("executeDump(): Fallo SQL: $sql_line");
+ DebugLog("executeDump(): error:". mysql_error());
+ $error = true;
+ }
+ }
+ if($error == true) {
+ DebugLog("executeDump(): Se encontraron errores ejecutando ROLLBACK y saliendo");
+ mysql_query("ROLLBACK");
+ return false;
+ } else {
+ DebugLog("executeDump(): Sin errores ejecutando COMMIT y saliendo");
+ mysql_query("COMMIT");
+ return true;
+ }
+ }
+ else {
+ DebugLog("executeDump(): Error al seleccionar la base: $db");
+ return false;
+ }
+
+ }
+ else {
+ DebugLog("excuteDump(): No se puede conectar ala base de datos. " . mysql_error());
+ }
+ } else {
+ DebugLog("executeDump(): No hay instrucciones SQL en el archivo");
+ return false;
+ }
+
+}
+/**
+* genera el archivo de conexion a la base de datos
+*/
+function generate_databases_yml($host,$user,$pass,$db) {
+ $yml = AlbaPath() . DIRECTORY_SEPARATOR . "config" . DIRECTORY_SEPARATOR . "databases.yml";
+ DebugLog ("generate_databases_yml(): generando archivo de cnonexion $yml");
+ if ($fp = @fopen ($yml,'w')) {
+ fwrite ($fp,"#Archivo generando por el instalador " . date('m/d/Y H:i:s') . "\n");
+ fwrite ($fp,"all:\n");
+ fwrite ($fp," propel:\n");
+ fwrite ($fp," class: sfPropelDatabase\n");
+ fwrite ($fp," param:\n");
+ if ($pass != "")
+ fwrite ($fp," dsn: $user:$pass@$host/$db\n");
+ else
+ fwrite ($fp," dsn: $user@$host/$db\n");
+ fwrite ($fp," datasource: alba\n");
+ fwrite ($fp, "\n");
+ DebugLog("generate_databases_yml(): archivo yml generado");
+ return true;
+ }
+ else {
+ DebugLog("generate_databases_yml(): no se puede abrir el archivo. ");
+ return false;
+ }
+
+}
+
+/**
+* carga el schema a l abase de datos
+*/
+function crear_schema ($filesql, $host, $user, $pass, $db) {
+ DebugLog ("crear_schema(): Agregando $filesql");
+ return executeDump(AlbaPath() . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'sql' . DIRECTORY_SEPARATOR .$filesql, $host, $user, $pass, $db);
+
+}
+
+/**
+* caga los datos ejemplo/minima
+*/
+function crear_base_modelo($filesql, $host, $user, $pass, $db) {
+ DebugLog("crear_base_modelo(): Creado base de datos modelo");
+ return executeDump(AlbaPath() . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'sql' . DIRECTORY_SEPARATOR .$filesql, $host, $user, $pass, $db);
+
+}
+?>
\ No newline at end of file
Property changes on: prosistem/alba/trunk/alba/web/instalar/funciones.php
___________________________________________________________________
Name: svn:keywords
+ "Id Author Rev Date URL"
Modified: prosistem/alba/trunk/alba/web/instalar/images/estilos.css
===================================================================
--- prosistem/alba/trunk/alba/web/instalar/images/estilos.css 2007-09-24 21:42:02 UTC (rev 5149)
+++ prosistem/alba/trunk/alba/web/instalar/images/estilos.css 2007-09-25 14:04:51 UTC (rev 5150)
@@ -1,3 +1,44 @@
+body {
+ font-size: 12px;
+ font-family: Helvetica;
+}
div .error {
color: red;
-}
\ No newline at end of file
+}
+#contenido {
+ padding-left: 25px;
+
+}
+#cabeza {
+ padding-left: 25px;
+}
+#siguiente {
+ padding-left: 25px;
+}
+h1 {
+ font-size: 14px;
+}
+input:focus {
+ background-color: #ededed;
+}
+.boton {
+ background: #D4D0C8;
+ color: #000000;
+ font-size: 11px;
+ padding: 0px 5px;
+ font-weight: normal;
+ text-decoration: none;
+ border: 1px solid #000000;
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+}
+.texto {
+ color: #000000;
+ font-size: 11px;
+ padding: 0px 5px;
+ font-weight: normal;
+ border: 1px solid gray;
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+}
+.check {
+ border: 1px solid black;
+}
Added: prosistem/alba/trunk/alba/web/instalar/images/header.png
===================================================================
(Binary files differ)
Property changes on: prosistem/alba/trunk/alba/web/instalar/images/header.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: prosistem/alba/trunk/alba/web/instalar/instalar.php
===================================================================
--- prosistem/alba/trunk/alba/web/instalar/instalar.php 2007-09-24 21:42:02 UTC (rev 5149)
+++ prosistem/alba/trunk/alba/web/instalar/instalar.php 2007-09-25 14:04:51 UTC (rev 5150)
@@ -35,6 +35,7 @@
define ('IMG_OK','<img src="images/ok.png" title="Correcto" alt="Correcto">');
define ('IMG_ERROR', '<img src="images/error.png" title="Incorrecto" alt="Incorrecto">');
+require ("funciones.php");
if (!isset($_GET['paso']))
$paso = 1;
@@ -45,18 +46,6 @@
$completo = false;
-function AlbaPath() {
- return realpath(dirname(__FILE__) .DIRECTORY_SEPARATOR. ".." . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR);
-}
-
-function DebugLog($str) {
- $log = AlbaPath() . DIRECTORY_SEPARATOR . "log" . DIRECTORY_SEPARATOR . "install.log";
- $fp = fopen($log,"a+");
- if ($fp) {
- fwrite($fp,date('d/m/Y H:i:s') . " $str\n");
- fclose($fp);
- }
-}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2000/REC-xhtml1-200000126/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es">
@@ -71,6 +60,8 @@
<link rel="StyleSheet" type="text/css" href="images/estilos.css">
</head>
<body>
+
+ <img src="images/header.png">
<div id="cabeza">
<h1>Instalación de ALBA</h1>
</div>
@@ -89,6 +80,15 @@
case 4:
include ("paso4.php");
break;
+ case 5:
+ include ("paso5.php");
+ break;
+ case 6:
+ include ("paso6.php");
+ break;
+ default:
+ die("Uhmmm, error del instalador =(");
+ break;
}
?>
</div>
@@ -97,7 +97,7 @@
<div id="siguiente">
<form method="get" action="instalar.php">
<input type="hidden" name="paso" value="<?php echo $paso?>">
- <input type="submit" name="btSiguiente" value="Siguiente">
+ <input type="submit" name="b" value="Siguiente" class="boton">
</form>
</div>
<?php endif;?>
Modified: prosistem/alba/trunk/alba/web/instalar/paso1.php
===================================================================
--- prosistem/alba/trunk/alba/web/instalar/paso1.php 2007-09-24 21:42:02 UTC (rev 5149)
+++ prosistem/alba/trunk/alba/web/instalar/paso1.php 2007-09-25 14:04:51 UTC (rev 5150)
@@ -44,11 +44,13 @@
$alba_path = AlbaPath();
?>
<div id="detalle">
+<p>Bienvenidos al Sistema De Gestión para Unidades Educacionales Alba!</p>
<p>Antes de continuar con la instalación, es necesario comprobar los permisos
de algunos directorios en particular.<br/>
Por favor, corrija los mismos y vuelva a recargar ésta página hasta que todos
-esten correctos.
+estén correctos.
</p>
+<p>Una vez que los permisos sean los necesarios, puede continuar con la instalación</p>
</div>
<p>Directorio base: <?php echo $alba_path?></p>
Modified: prosistem/alba/trunk/alba/web/instalar/paso3.php
===================================================================
--- prosistem/alba/trunk/alba/web/instalar/paso3.php 2007-09-24 21:42:02 UTC (rev 5149)
+++ prosistem/alba/trunk/alba/web/instalar/paso3.php 2007-09-25 14:04:51 UTC (rev 5150)
@@ -88,27 +88,27 @@
<table>
<tr>
<td>Servidor:</td>
- <td><input type="text" name="host" value="<?php echo $host?>"></td>
+ <td><input type="text" name="host" value="<?php echo $host?>" class="texto"></td>
</tr>
<tr>
<td>Usuario:</td>
- <td><input type="text" name="user" value="<?php echo $user?>"></td>
+ <td><input type="text" name="user" value="<?php echo $user?>" class="texto"></td>
</tr>
<tr>
<td>Clave:</td>
- <td><input type="password" name="pass" value="<?php echo $pass?>"></td>
+ <td><input type="password" name="pass" value="<?php echo $pass?>" class="texto"></td>
</tr>
<tr>
<td>Base de datos:</td>
- <td><input type="text" name="db" value="<?php echo $db?>"></td>
+ <td><input type="text" name="db" value="<?php echo $db?>" class="texto"></td>
</tr>
<tr>
<td>Crear base de datos:<br/><span style="font-size:9px">(debe tener los permisos para poder hacerlo)</style></td>
- <td><input type="checkbox" name="creardb" value="1" <?php echo $creardb ? "checked" : ""?>></td>
+ <td><input type="checkbox" name="creardb" value="1" <?php echo $creardb ? "checked" : ""?> class="check"></td>
</tr>
</table>
<br/>
-<input type="submit" name="btTextConn" value="Comprobar conexión a la Base de Datos">
+<input type="submit" name="btTextConn" value="Comprobar conexión a la Base de Datos" class="boton">
</form>
<?php
// ir al siguiente paso
Modified: prosistem/alba/trunk/alba/web/instalar/paso4.php
===================================================================
--- prosistem/alba/trunk/alba/web/instalar/paso4.php 2007-09-24 21:42:02 UTC (rev 5149)
+++ prosistem/alba/trunk/alba/web/instalar/paso4.php 2007-09-25 14:04:51 UTC (rev 5150)
@@ -36,7 +36,20 @@
$user = $_SESSION['albainstall']['user'];
$pass = $_SESSION['albainstall']['pass'];
$db = $_SESSION['albainstall']['db'];
-
+
+
+ if (isset($_POST['set_tipo_base']) && $_POST['set_tipo_base'] == 1) {
+ if(!isset($_POST['tipo_base'])) {
+ $error_flag= true;
+ $error_msg = "Por favor seleccione un tipo de base de datos";
+ }
+ else {
+ $_SESSION['albainstall']['tipo_base'] = $_POST['tipo_base'];
+ $completo = false;
+ }
+ }
+ else
+ $completo = true;
?>
<div id="detalle">
<p>Selección de base de datos inicial:</p>
@@ -45,6 +58,33 @@
ó con una base de datos de Ejemplo (datos de prueba).</p>
</div>
+<?php if ($error_flag):?>
+<div class="error">
+ <p>Ocurrió el siguiente error:</p>
+ <p><?php echo $error_msg?></p>
+</div>
+<?php endif;?>
+
+
+<div>
+<form name="tipobase" method="post">
+ <input type="hidden" name="set_tipo_base" value="1">
+ <table>
+ <tr>
+ <td>Datos mínimos:</td>
+ <td><input type="radio" name="tipo_base" value="minima" <?php echo isset($_POST['tipo_base']) && $_POST['tipo_base'] == 'minima' ? 'checked' : ''?> ></td>
+ </tr>
+ <tr>
+ <td>Datos ejemplo:</td>
+ <td><input type="radio" name="tipo_base" value="ejemplo1" <?php echo isset($_POST['tipo_base']) && $_POST['tipo_base'] == 'ejemplo1' ? 'checked' : ''?>></td>
+ </tr>
+
+ </table>
+ <br/>
+ <input type="submit" name="btEnviar" value="Seleccionar base de datos" class="boton">
+</form>
+</div>
+
<?php
// ir al siguiente paso
$paso = 5;
Added: prosistem/alba/trunk/alba/web/instalar/paso5.php
===================================================================
--- prosistem/alba/trunk/alba/web/instalar/paso5.php 2007-09-24 21:42:02 UTC (rev 5149)
+++ prosistem/alba/trunk/alba/web/instalar/paso5.php 2007-09-25 14:04:51 UTC (rev 5150)
@@ -0,0 +1,84 @@
+<?php
+/**
+ * This file is part of Alba.
+ *
+ * Alba 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 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Alba 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Alba; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+
+/**
+ * instalador
+ *
+ * @package alba
+ * @author José Luis Di Biase <josx(a)interorganic.com.ar>
+ * @author Héctor Sanchez <hsanchez(a)pressenter.com.ar>
+ * @author Fernando Toledo <ftoledo(a)pressenter.com.ar>
+ * @version SVN: $Id: instalar.php 4883 2007-07-30 21:41:42Z ftoledo $
+ * @filesource
+ * @license GPL
+ */
+
+if (!defined('ALBA_INSTALLER')) die();
+
+ $host = $_SESSION['albainstall']['host'];
+ $user = $_SESSION['albainstall']['user'];
+ $pass = $_SESSION['albainstall']['pass'];
+ $db = $_SESSION['albainstall']['db'];
+ $tipo_base = $_SESSION ['albainstall']['tipo_base'];
+
+?>
+<div id="detalle">
+<p>Finalizar instalación:</p>
+<p>Ahora se procederá a instalar el sistema. <br/>
+Los datos que se van a utilizar son los siguientes, si desea cambiar
+alguno por favor haga click aquí.
+</p>
+</div>
+
+<?php if ($error_flag):?>
+<div class="error">
+ <p>Ocurrió el siguiente error:</p>
+ <p><?php echo $error_msg?></p>
+</div>
+<?php endif;?>
+
+<table>
+ <tr>
+ <td>Servidor:</td>
+ <td><?php echo $_SESSION['albainstall']['host']?></td>
+ </tr>
+ <tr>
+ <td>Usuario:</td>
+ <td><?php echo $_SESSION['albainstall']['user']?></td>
+ </tr>
+ <tr>
+ <td>Clave:</td>
+ <td><?php echo str_repeat('X',strlen($_SESSION['albainstall']['pass']))?></td>
+ </tr>
+ <tr>
+ <td>Base de datos:</td>
+ <td><?php echo $_SESSION['albainstall']['db']?></td>
+ </tr>
+ <tr>
+ <td>Modelo de Base:</td>
+ <td><?php echo $_SESSION['albainstall']['tipo_base']?></td>
+ </tr>
+</table>
+
+<?php
+// ir al siguiente paso
+ $paso = 6;
+
+?>
\ No newline at end of file
Property changes on: prosistem/alba/trunk/alba/web/instalar/paso5.php
___________________________________________________________________
Name: svn:keywords
+ "Id Author Rev Date URL"
Added: prosistem/alba/trunk/alba/web/instalar/paso6.php
===================================================================
--- prosistem/alba/trunk/alba/web/instalar/paso6.php 2007-09-24 21:42:02 UTC (rev 5149)
+++ prosistem/alba/trunk/alba/web/instalar/paso6.php 2007-09-25 14:04:51 UTC (rev 5150)
@@ -0,0 +1,83 @@
+<?php
+/**
+ * This file is part of Alba.
+ *
+ * Alba 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 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Alba 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Alba; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+
+/**
+ * instalador
+ *
+ * @package alba
+ * @author José Luis Di Biase <josx(a)interorganic.com.ar>
+ * @author Héctor Sanchez <hsanchez(a)pressenter.com.ar>
+ * @author Fernando Toledo <ftoledo(a)pressenter.com.ar>
+ * @version SVN: $Id: instalar.php 4883 2007-07-30 21:41:42Z ftoledo $
+ * @filesource
+ * @license GPL
+ */
+
+if (!defined('ALBA_INSTALLER')) die();
+
+ $host = $_SESSION['albainstall']['host'];
+ $user = $_SESSION['albainstall']['user'];
+ $pass = $_SESSION['albainstall']['pass'];
+ $db = $_SESSION['albainstall']['db'];
+ $tipo_base = $_SESSION ['albainstall']['tipo_base'];
+
+?>
+<div id="detalle">
+<p>Resultado de la instalación:</p>
+
+<table>
+ <tr>
+ <td>Generando archivo de configuración:</td>
+ <td>
+ <?php echo generate_databases_yml($host,$user,$pass,$db) ? IMG_OK : IMG_ERROR?>
+ </td>
+ </tr>
+ <tr>
+ <td>Creando esquema de base de datos:</td>
+ <td>
+ <?php echo crear_schema('lib.model.schema.sql', $host, $user, $pass, $db) ? IMG_OK : IMG_ERROR?>
+ </td>
+ </tr>
+ <tr>
+ <td>Cargando modelo de base de datos <?php echo $_SESSION['albainstall']['tipo_base']?>:</td>
+ <td>
+ <?php
+ if ($_SESSION['albainstall']['tipo_base'] =='minima')
+ $archivo = "datos_desde_cero.sql";
+ elseif ($_SESSION['albainstall']['tipo_base'] =='ejemplo1')
+ $archivo = "datos_ejemplo.sql";
+ else
+ $archivo = "";
+ ?>
+ <?php echo crear_base_modelo($archivo,$host,$user,$pass,$db) ? IMG_OK : IMG_ERROR?>
+ </td>
+ </tr>
+</table>
+
+<p>La instalación ha finalizado!</p>
+
+<p><a href="../">Ingresar al Sistema de Gestión Educactiva Alba</a></p>
+<p><i>* Recuerde que para ingresar al sistema el nombre de usuario por defecto es <b>admin</b> y la clave es <b>admin</b>.</i></p>
+<?php
+// ir al siguiente paso
+ $completo = true;
+ $paso = 7;
+
+?>
\ No newline at end of file
Property changes on: prosistem/alba/trunk/alba/web/instalar/paso6.php
___________________________________________________________________
Name: svn:keywords
+ "Id Author Rev Date URL"
1
0