From b67ab225e5119b6d9da7e5eea9e03e85821cc853 Mon Sep 17 00:00:00 2001 From: Mayureshp007 Date: Fri, 28 Jan 2022 16:28:37 +0530 Subject: [PATCH] Updated Styling for better user Experience. (#40) * Updated Styling for better user Experience. I have added and removed several Bootstrap classes without changing the original HTML code. Just Removed one
tag though! * Added Some Bootstrap Classes for Better UX In this file, I have added and removed some Bootstrap classes to give this page a new look and better user Interface/experience. * Added few Bootstrap Classes to change the look --- core/columns.php | 18 +++--- core/generate.php | 6 +- core/tables.php | 150 +++++++++++++++++++++++----------------------- 3 files changed, 86 insertions(+), 88 deletions(-) diff --git a/core/columns.php b/core/columns.php index b931d8d..624d305 100644 --- a/core/columns.php +++ b/core/columns.php @@ -6,16 +6,16 @@ - +
-
+
-

All available columns

+

All Available Columns

-
+
@@ -88,7 +88,7 @@ function get_foreign_keys($table){ if (isset($table['tablecheckbox']) && $table['tablecheckbox'] == 1) { $tablename = $table['tablename']; $tabledisplay = $table['tabledisplay']; - echo "
Table: " . $tabledisplay . " (". $tablename .")
"; + echo "
Table: " . $tabledisplay . " (". $tablename .")
"; $sql = "SHOW columns FROM $tablename"; $primary_keys = get_primary_keys($tablename); $auto_keys = get_autoincrement_cols($tablename); @@ -132,7 +132,7 @@ function get_foreign_keys($table){ - +
@@ -147,7 +147,7 @@ function get_foreign_keys($table){ ?>
-
+

Cruddiy will create a fresh startpage in the app/ sub-folder, with link 1 ? 's' : '' ?> to manage the table 1 ? 's' : '' ?> above.
@@ -164,8 +164,8 @@ function get_foreign_keys($table){

-
- +
+
diff --git a/core/generate.php b/core/generate.php index 10753ea..00986ae 100644 --- a/core/generate.php +++ b/core/generate.php @@ -581,11 +581,11 @@ function generate($postdata) { - +
-
+
-
+


Your app has been created! It is completely self contained in the /app folder. You can move this folder anywhere on your server.

diff --git a/core/tables.php b/core/tables.php index 2d13cec..ecc38dc 100644 --- a/core/tables.php +++ b/core/tables.php @@ -1,90 +1,88 @@ - - - - - - CRUD generator - + + + + + + CRUD generator + - - -
-
-
-
-
-

All available tables

-
+ + +
+
+
+
+
+

All Available Tables

+
-
-
- - +
+
+ + +
-
-
-
- +
+ -
- -
-
- - -
-
- + echo + '
+
+ +
+
+ + +
+
+ +
-
- - -
'; + '; - $i++; - } - ?> -
-
- - + $i++; + } + ?> +
+
+ + +
-
-
- +
+ +
-
-
-
+
+
- - - - + + + - - + + +