├── bootstrap-3.3.7-dist ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 ├── js │ ├── npm.js │ └── bootstrap.min.js └── css │ ├── jumbotron-narrow.css │ ├── bootstrap-theme.min.css │ ├── bootstrap-theme.min.css.map │ ├── bootstrap-theme.css │ └── bootstrap-theme.css.map ├── core ├── conn_generate.php ├── generate.php ├── create_generate.php ├── function.php ├── edit_generate.php ├── read_generate.php └── generate_function.php ├── README.md └── index.php /bootstrap-3.3.7-dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gandhi-wibowo/php-CRUD-Generator/master/bootstrap-3.3.7-dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /bootstrap-3.3.7-dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gandhi-wibowo/php-CRUD-Generator/master/bootstrap-3.3.7-dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /bootstrap-3.3.7-dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gandhi-wibowo/php-CRUD-Generator/master/bootstrap-3.3.7-dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /bootstrap-3.3.7-dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gandhi-wibowo/php-CRUD-Generator/master/bootstrap-3.3.7-dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /bootstrap-3.3.7-dist/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /core/conn_generate.php: -------------------------------------------------------------------------------- 1 | 22 | "; 23 | if(mkdir("../config")){ 24 | createFile($string, "../config/conn.php"); 25 | } 26 | } 27 | 28 | ?> 29 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # php-CRUD-Generator 2 | 3 | ## How to use 4 | 5 | ``` 6 | a. letakkan folder php-Crud-Generator pada localhost 7 | b. buka localhost/php-Crud-Generator dari browser 8 | c. pada form "create database connection" isikan dengan benar : hostname #biasanya localhost, 9 | database name #adalah nama database yang akan di generate kan CRUD nya, database user #biasanya root, 10 | database password #biasanya kalau di windows di kosongkan saja, link project #copykan saja url 11 | yang di tampilkan pada browser. next klik tombol generate config file 12 | d. next pilih tabel, dan tekan generate atau bisa langsung menekan generate All 13 | e. daftar folder yang telah di generate akan muncul pada "Daftar folder" 14 | ``` 15 | 16 | 17 | ## Cooming Soon 18 | 19 | 1. Checker for Chmod & Chown (Linux Mode) 20 | 2. Security from SQL-injection 21 | 3. Just bootstrap table or bootstrap datatables 22 | 4. Pagination 23 | 5. simple form login 24 | 6. menu generator 25 | 7. etc 26 | 27 | ## Update 28 | 29 | 1. Adding Generate All 30 | 2. Adding form for Create connection file from web browser (21 Des 16) 31 | 3. Adding Bootstrap Template for Generated file 32 | 4. Adding Notif for Generated file (Create, Edit, Delete) 33 | 34 | 35 | > written with <3 by Me Gandhi Wibowo 36 | -------------------------------------------------------------------------------- /core/generate.php: -------------------------------------------------------------------------------- 1 | 64 | -------------------------------------------------------------------------------- /bootstrap-3.3.7-dist/css/jumbotron-narrow.css: -------------------------------------------------------------------------------- 1 | /* Space out content a bit */ 2 | body { 3 | padding-top: 20px; 4 | padding-bottom: 20px; 5 | } 6 | 7 | /* Everything but the jumbotron gets side spacing for mobile first views */ 8 | .header, 9 | .marketing, 10 | .footer { 11 | padding-right: 15px; 12 | padding-left: 15px; 13 | } 14 | 15 | /* Custom page header */ 16 | .header { 17 | padding-bottom: 20px; 18 | border-bottom: 1px solid #e5e5e5; 19 | } 20 | /* Make the masthead heading the same height as the navigation */ 21 | .header h3 { 22 | margin-top: 0; 23 | margin-bottom: 0; 24 | line-height: 40px; 25 | } 26 | 27 | /* Custom page footer */ 28 | .footer { 29 | padding-top: 19px; 30 | color: #777; 31 | border-top: 1px solid #e5e5e5; 32 | } 33 | 34 | /* Customize container */ 35 | @media (min-width: 768px) { 36 | .container { 37 | max-width: 730px; 38 | } 39 | } 40 | 41 | 42 | /* Main marketing message and sign up button */ 43 | .jumbotron { 44 | text-align: center; 45 | border-bottom: 1px solid #e5e5e5; 46 | } 47 | .jumbotron .btn { 48 | padding: 14px 24px; 49 | font-size: 21px; 50 | } 51 | 52 | /* Supporting marketing content */ 53 | .marketing { 54 | margin: 40px 0; 55 | } 56 | .marketing p + h4 { 57 | margin-top: 28px; 58 | } 59 | 60 | /* Responsive: Portrait tablets and up */ 61 | @media screen and (min-width: 768px) { 62 | /* Remove the padding we set earlier */ 63 | .header, 64 | .marketing, 65 | .footer { 66 | padding-right: 0; 67 | padding-left: 0; 68 | } 69 | /* Space out the masthead */ 70 | .header { 71 | margin-bottom: 30px; 72 | } 73 | /* Remove the bottom border on the jumbotron for visual effect */ 74 | .jumbotron { 75 | border-bottom: 0; 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /core/create_generate.php: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 |
10 | 11 | 12 | 13 || No | 45 | "; 46 | foreach ($nopf as $th) { 47 | $string .= "".$th['column_name']." | \n"; 48 | } 49 | $string .= " 50 |Opsi | 51 |\".\$no++.\" | \"; \n"; 60 | foreach ($nopf as $field) { 61 | $string .="echo \"\".\$data['".$field['column_name']."'].\" | \"; \n"; 62 | } 63 | $string .= " 64 | echo \"65 | 69 | | \"; 70 | echo \"71 | 75 | | \"; 76 | } 77 | ?> 78 | "; 79 | 80 | $string .=" 81 | 82 | 83 |
|---|---|---|---|
68 | Config untuk koneksi ke database telah dibuat.
69 | Namun terjadi kesalahan yang mengakibatkan tidak terhubungnya database ke system ini.
70 | Silahkan ubah data pada config/conn.php untuk memperbaikinya
71 | Atau hapus dan buat ulang menggunakan button ini ==> Hapus
72 |
| 194 | 195 | | 196 |197 | Delete 198 | | 199 |