diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..ab68ae7
--- /dev/null
+++ b/.gitignore
@@ -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
\ No newline at end of file
diff --git a/en/README.md b/README.en.md
similarity index 94%
rename from en/README.md
rename to README.en.md
index 17efb8d..d8ceaf7 100644
--- a/en/README.md
+++ b/README.en.md
@@ -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.
@@ -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.
diff --git a/README.md b/README.md
index babf519..5aa9b64 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/pt_BR/README.md b/README.pt-br.md
similarity index 94%
rename from pt_BR/README.md
rename to README.pt-br.md
index 76f788d..9f17414 100644
--- a/pt_BR/README.md
+++ b/README.pt-br.md
@@ -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.
@@ -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
diff --git a/en/assets/css/bootstrap.min.css b/assets/css/bootstrap.min.css
similarity index 100%
rename from en/assets/css/bootstrap.min.css
rename to assets/css/bootstrap.min.css
diff --git a/pt_BR/assets/css/style.css b/assets/css/style.css
similarity index 67%
rename from pt_BR/assets/css/style.css
rename to assets/css/style.css
index 965bed7..4a532ca 100644
--- a/pt_BR/assets/css/style.css
+++ b/assets/css/style.css
@@ -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;
}
diff --git a/en/assets/fonts/glyphicons-halflings-regular.eot b/assets/fonts/glyphicons-halflings-regular.eot
similarity index 100%
rename from en/assets/fonts/glyphicons-halflings-regular.eot
rename to assets/fonts/glyphicons-halflings-regular.eot
diff --git a/en/assets/fonts/glyphicons-halflings-regular.svg b/assets/fonts/glyphicons-halflings-regular.svg
similarity index 100%
rename from en/assets/fonts/glyphicons-halflings-regular.svg
rename to assets/fonts/glyphicons-halflings-regular.svg
diff --git a/en/assets/fonts/glyphicons-halflings-regular.ttf b/assets/fonts/glyphicons-halflings-regular.ttf
similarity index 100%
rename from en/assets/fonts/glyphicons-halflings-regular.ttf
rename to assets/fonts/glyphicons-halflings-regular.ttf
diff --git a/en/assets/fonts/glyphicons-halflings-regular.woff b/assets/fonts/glyphicons-halflings-regular.woff
similarity index 100%
rename from en/assets/fonts/glyphicons-halflings-regular.woff
rename to assets/fonts/glyphicons-halflings-regular.woff
diff --git a/en/assets/fonts/glyphicons-halflings-regular.woff2 b/assets/fonts/glyphicons-halflings-regular.woff2
similarity index 100%
rename from en/assets/fonts/glyphicons-halflings-regular.woff2
rename to assets/fonts/glyphicons-halflings-regular.woff2
diff --git a/en/assets/images/ajax-loader.gif b/assets/images/ajax-loader.gif
similarity index 100%
rename from en/assets/images/ajax-loader.gif
rename to assets/images/ajax-loader.gif
diff --git a/images/brasil.png b/assets/images/brasil.png
similarity index 100%
rename from images/brasil.png
rename to assets/images/brasil.png
diff --git a/images/crud-en.png b/assets/images/crud-en.png
similarity index 100%
rename from images/crud-en.png
rename to assets/images/crud-en.png
diff --git a/images/crud.png b/assets/images/crud.png
similarity index 100%
rename from images/crud.png
rename to assets/images/crud.png
diff --git a/images/en.png b/assets/images/en.png
similarity index 100%
rename from images/en.png
rename to assets/images/en.png
diff --git a/images/form.png b/assets/images/form.png
similarity index 100%
rename from images/form.png
rename to assets/images/form.png
diff --git a/images/menu-en.png b/assets/images/menu-en.png
similarity index 100%
rename from images/menu-en.png
rename to assets/images/menu-en.png
diff --git a/images/menu.png b/assets/images/menu.png
similarity index 100%
rename from images/menu.png
rename to assets/images/menu.png
diff --git a/en/assets/js/bootstrap.min.js b/assets/js/bootstrap.min.js
similarity index 100%
rename from en/assets/js/bootstrap.min.js
rename to assets/js/bootstrap.min.js
diff --git a/en/assets/js/jquery-1.10.2.min.js b/assets/js/jquery-1.10.2.min.js
similarity index 100%
rename from en/assets/js/jquery-1.10.2.min.js
rename to assets/js/jquery-1.10.2.min.js
diff --git a/en/assets/js/jquery.bootpag.min.js b/assets/js/jquery.bootpag.min.js
similarity index 100%
rename from en/assets/js/jquery.bootpag.min.js
rename to assets/js/jquery.bootpag.min.js
diff --git a/en/assets/tip.txt b/assets/tip.txt
similarity index 100%
rename from en/assets/tip.txt
rename to assets/tip.txt
diff --git a/controllers/TGeneratorHelper.class.php b/controllers/TGeneratorHelper.class.php
new file mode 100644
index 0000000..b026a81
--- /dev/null
+++ b/controllers/TGeneratorHelper.class.php
@@ -0,0 +1,50 @@
+
+ * @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()."
";
+ 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);
+ }
+}
\ No newline at end of file
diff --git a/controllers/autoload_class_autoapp.php b/controllers/autoload_class_autoapp.php
new file mode 100644
index 0000000..38dc874
--- /dev/null
+++ b/controllers/autoload_class_autoapp.php
@@ -0,0 +1,13 @@
+
- "Adapted by Ribamar FS
-
-
-