Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aplicação Multi idiomas #2

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
2b5b8c4
[#1] delete files pt-br
bjverde Jul 24, 2019
1963354
:hammer: #1 change file name
bjverde Jul 24, 2019
da2d5f5
:hammer: #1 move files
bjverde Jul 24, 2019
03d6c3e
:hammer: #1 move files
bjverde Jul 24, 2019
8b73101
:hammer: #1 move files
bjverde Jul 24, 2019
44ac095
:bug: #1 fix images in md files
bjverde Jul 24, 2019
187969b
:hammer: #1 include lang
bjverde Jul 24, 2019
832211b
:hammer: #1 show number version
bjverde Jul 24, 2019
79f620c
:hammer: #1
bjverde Jul 24, 2019
f338f3d
:hammer: #1
bjverde Jul 24, 2019
e602ce7
:bug: #1 arquivo
bjverde Jul 24, 2019
7e6f5b1
:hammer: #1 translate step01
bjverde Jul 24, 2019
20f6a22
#1 change labels
bjverde Jul 24, 2019
4da9cd8
#1 melhorias
bjverde Jul 24, 2019
e3f5fa7
:hammer: #1 header html move
bjverde Jul 24, 2019
9442a2d
:fire: #1 remove file
bjverde Jul 24, 2019
625d969
:hammer: #1 include step2
bjverde Jul 24, 2019
97a5248
:hammer: #1 change sgbd to select
bjverde Jul 24, 2019
250d01a
:hammer: #1 melhoria da mensagem
bjverde Jul 24, 2019
a4e9082
change
bjverde Jul 24, 2019
7be626f
#1 move files
bjverde Jul 24, 2019
d763edf
:hammer: #1 alteração
bjverde Jul 24, 2019
dcc6f7f
:art: #1 include css
bjverde Jul 24, 2019
7381ea0
correções
bjverde Jul 24, 2019
a4f65a5
:art: #1 melhoria do css
bjverde Jul 25, 2019
b9ff032
:fire: #1 move file
bjverde Jul 25, 2019
f92fa0d
#1 session
bjverde Jul 25, 2019
b3da75e
[#1] melhorias
bjverde Jul 25, 2019
d9f4ae6
:fire: movendo arquivos
bjverde Jul 25, 2019
473f311
:hammer: #2 criando uma nova estrutura
bjverde Jul 25, 2019
e0bf095
[#2] novos campos de entrada
bjverde Jul 25, 2019
c217347
[#2] gerando estrutura fora
bjverde Jul 25, 2019
cfd4d66
Merge remote-tracking branch 'upstream/master'
bjverde Oct 26, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Ignore all directories, and all sub-directories, and it's contents:
# Ignore * all files in directories
# Ignore **/ alll subdirectories

# VsCode files
.vscode/

# Eclipse files
/.settings/
/.vscode/
/.project
/.buildpath
8 changes: 4 additions & 4 deletions en/README.md → README.en.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# PHP Automatic Application

## Em Português
![](../images/brasil.png) https://github.com/ribafs/auto-app/tree/master/pt_BR
![](assets/images/brasil.png) https://github.com/ribafs/auto-app/tree/master/pt_BR

Are only two classes, Connection() and Crud() with good methods and the basic files from CRUD. You will not have to type any field names and no lines of code.
It will automatically generate the code of a CRUD for each table in the database, no matter how many.
Expand Down Expand Up @@ -36,16 +36,16 @@ https://github.com/ribafs/auto-app/archive/master.zip
- Call by browser with - http://localhost/auto-app
- It will open the form for entering the data of the bank, as below:

![](../images/form.png)
![](assets/images/form.png)

- Enter the database info and click in Send.
- Then you will already be in front of the menu with links to all database tables, as the screen below

![](../images/menu.png)
![](assets/images/menu.png)

Select a table clicking in your link to access your CRUD, as the screen below

![](../images/crud.png)
![](assets/images/crud.png)

Now try and see anothers features.

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
This software automates the creation of simple applications in PHP with good resources.

## Em Português
![](images/brasil.png) https://github.com/ribafs/auto-app/blob/master/pt_BR/README.md
![](assets/images/brasil.png) https://github.com/ribafs/auto-app/blob/master/README.pt-br.md

## In English
![](images/en.png) https://github.com/ribafs/auto-app/blob/master/en/README.md
![](assets/images/en.png) https://github.com/ribafs/auto-app/blob/master/README.en.md

### Download
https://github.com/ribafs/auto-app/archive/master.zip
Expand Down
8 changes: 4 additions & 4 deletions pt_BR/README.md → README.pt-br.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Aplicativo Automático em PHP

## In English
![](../images/en.png) https://github.com/ribafs/auto-app/tree/master/en
![](assets/images/en.png) https://github.com/ribafs/auto-app/tree/master/en

Temos apenas duas classes, Connection() e Crud() com bons métodos e os arquivos básicos do CRUD. Você não precisará digitar nenhum nome de campo e nenhuma linha de código. Ele gerará automaticamente o código de um CRUD para cada tabela do banco de dados, não importando quantas sejam.

Expand Down Expand Up @@ -35,16 +35,16 @@ https://github.com/ribafs/auto-app/archive/master.zip
- E chame pelo navegador com - http://localhost/auto-app
- Abrirá o formulário para entrada dos dados do banco, como abaixo:

![](../images/form.png)
![](assets/images/form.png)

- Entre com os dados do banco e com o nome da tabela e clique em Send
Já estará em frente ao menu com links para todas as tabelas do banco, como a tela abaixo

![](../images/menu.png)
![](assets/images/menu.png)

Clique em um link para ver o CRUD completo para a tabela selecionada:

![](../images/crud.png)
![](assets/images/crud.png)

## Origem

Expand Down
File renamed without changes.
8 changes: 6 additions & 2 deletions pt_BR/assets/css/style.css → assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
padding-top: 5px;
}

.footer{
footer{
position: fixed;
left: 0;
bottom: 0;
width: 100%;
vertical-align: middle;
background-color:#e6e6e6;
width:85%;
font-size:11px;
text-align:center;
}
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
50 changes: 50 additions & 0 deletions controllers/TGeneratorHelper.class.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?php
/**
* Part of SysGen
*
* @author Bjverde <bjverde@yahoo.com.br>
* @link https://github.com/bjverde/sysgen
*
* PHP Version 5.6
*/
class TGeneratorHelper
{
public static function mkDir($path)
{
if (!is_dir($path)) {
mkdir($path, 0744, true);
}
}
public static function getPathNewSystem()
{
return ROOT_PATH.$_SESSION[SYSTEM_ACRONYM]['GEN_SYSTEM_ACRONYM'];
}
public static function createRootDirNewApp()
{
$path = self::getPathNewSystem();
self::mkDir($path);
}

public static function copySystemSkeletonToNewSystemByTpSystem($pathSkeleton)
{
$pathNewSystem = self::getPathNewSystem();

$list = new RecursiveDirectoryIterator($pathSkeleton);
$it = new RecursiveIteratorIterator($list);

foreach ($it as $file) {
if ($it->isFile()) {
//echo ' SubPathName: ' . $it->getSubPathName();
//echo ' SubPath: ' . $it->getSubPath()."<br>";
self::mkDir($pathNewSystem.DS.$it->getSubPath());
copy($pathSkeleton.DS.$it->getSubPathName(), $pathNewSystem.DS.$it->getSubPathName());
}
}
}

public static function copySystemSkeletonToNewSystem()
{
$pathSkeleton = 'system_skeleton';
self::copySystemSkeletonToNewSystemByTpSystem($pathSkeleton);
}
}
13 changes: 13 additions & 0 deletions controllers/autoload_class_autoapp.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php
if ( !function_exists( 'autoapp_class_autoload') ) {
function autoapp_class_autoload( $class_name )
{
$path = __DIR__.DS.$class_name.'.class.php';
if (file_exists($path)){
require_once $path;
} else {
return false;
}
}
spl_autoload_register('autoapp_class_autoload');
}
21 changes: 21 additions & 0 deletions controllers/constants.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php
session_start();

define('SYSTEM_NAME' , 'PHP Automatic Application');
define('SYSTEM_ACRONYM' , 'auto-app');
define('SYSTEM_VERSION' , '1.2.0');

define('ROOT_PATH', '../');

if(!defined('DS')) {
define('DS', DIRECTORY_SEPARATOR);
}
if (!defined('EOL')) {
define('EOL', "\n");
}
if (!defined('ESP')) {
define('ESP', ' ');
}
if (!defined('TAB')) {
define('TAB', chr(9));
}
6 changes: 0 additions & 6 deletions en/footer.php

This file was deleted.

14 changes: 0 additions & 14 deletions en/header.php

This file was deleted.

96 changes: 0 additions & 96 deletions en/install.php

This file was deleted.

Loading