├── .editorconfig
├── .gitattributes
├── .gitignore
├── .htaccess
├── .npmrc
├── .php_cs
├── application
├── .htaccess
├── cache
│ ├── .htaccess
│ └── index.html
├── config
│ ├── autoload.php
│ ├── config.php
│ ├── constants.php
│ ├── database.php
│ ├── doctypes.php
│ ├── foreign_chars.php
│ ├── hooks.php
│ ├── index.html
│ ├── memcached.php
│ ├── migration.php
│ ├── mimes.php
│ ├── profiler.php
│ ├── routes.php
│ ├── smileys.php
│ └── user_agents.php
├── controllers
│ ├── Home.php
│ ├── Login.php
│ ├── Logout.php
│ ├── Profile.php
│ ├── administrator
│ │ ├── Dashboard.php
│ │ ├── Destroy_data.php
│ │ ├── Jabatan.php
│ │ ├── Jadwal_akademik.php
│ │ ├── Jam_mengajar.php
│ │ ├── Jurusan.php
│ │ ├── Kelas.php
│ │ ├── Mapel.php
│ │ ├── Panel_siswa.php
│ │ ├── Report.php
│ │ ├── Setting.php
│ │ ├── Staff.php
│ │ ├── Tahun_ajaran.php
│ │ └── Users.php
│ ├── index.html
│ ├── siswa
│ │ ├── Dashboard.php
│ │ ├── Data_nilai.php
│ │ └── Setting.php
│ └── staff
│ │ ├── Control_kenaikan_kelas.php
│ │ ├── Dashboard.php
│ │ ├── Data_nilai.php
│ │ ├── Data_siswa.php
│ │ ├── Setting.php
│ │ └── View_nilai.php
├── core
│ ├── MY_Controller.php
│ └── index.html
├── helpers
│ └── index.html
├── hooks
│ └── index.html
├── index.html
├── language
│ ├── english
│ │ └── index.html
│ └── index.html
├── libraries
│ └── index.html
├── logs
│ └── index.html
├── models
│ ├── A_model.php
│ ├── Ajax_model.php
│ ├── B_model.php
│ ├── El_model.php
│ └── index.html
├── third_party
│ └── index.html
└── views
│ ├── _layouts
│ ├── private
│ │ ├── admin_nav.php
│ │ ├── guru_nav.php
│ │ └── siswa_nav.php
│ └── public
│ │ └── nav.php
│ ├── _modules
│ └── login.php
│ ├── _templates
│ ├── private
│ │ ├── admin
│ │ │ ├── footer.php
│ │ │ └── head.php
│ │ ├── guru
│ │ │ ├── footer.php
│ │ │ └── head.php
│ │ └── siswa
│ │ │ ├── footer.php
│ │ │ └── head.php
│ └── public
│ │ ├── footer.php
│ │ └── head.php
│ ├── errors
│ ├── cli
│ │ ├── error_404.php
│ │ ├── error_db.php
│ │ ├── error_exception.php
│ │ ├── error_general.php
│ │ ├── error_php.php
│ │ └── index.html
│ ├── html
│ │ ├── error_404.php
│ │ ├── error_db.php
│ │ ├── error_exception.php
│ │ ├── error_general.php
│ │ ├── error_php.php
│ │ └── index.html
│ └── index.html
│ ├── home.php
│ ├── index.html
│ └── private
│ ├── admin
│ ├── akademik
│ │ ├── jam_mengajar.php
│ │ ├── modals_jm
│ │ │ ├── modal_delete.php
│ │ │ └── modal_update.php
│ │ ├── modals_thn
│ │ │ ├── modal_delete.php
│ │ │ └── modal_update.php
│ │ ├── new_setup_jadwal_weekly.php
│ │ ├── result
│ │ │ ├── result_jadwal_akademik.php
│ │ │ └── result_jadwal_akademik_unvalid.php
│ │ ├── select_kelas_for_setup.php
│ │ ├── tahun_ajaran.php
│ │ ├── update_setup_jadwal_weekly.php
│ │ └── view_jadwal_akademik.php
│ ├── control_panel
│ │ ├── berita
│ │ │ └── berita_panel.php
│ │ ├── jabatan
│ │ │ ├── jabatan_panel.php
│ │ │ └── modals
│ │ │ │ ├── modal_delete.php
│ │ │ │ └── modal_update.php
│ │ ├── jurusan
│ │ │ ├── jurusan_panel.php
│ │ │ └── modals
│ │ │ │ ├── modal_delete.php
│ │ │ │ └── modal_update.php
│ │ ├── kelas
│ │ │ ├── kelas_panel.php
│ │ │ └── modals
│ │ │ │ ├── modal_delete.php
│ │ │ │ └── modal_update.php
│ │ ├── kesiswaan
│ │ │ ├── _form_add_siswa.php
│ │ │ ├── _table_all_siswa.php
│ │ │ ├── _view_siswa.php
│ │ │ ├── modals
│ │ │ │ ├── modal_delete.php
│ │ │ │ ├── modal_set_user.php
│ │ │ │ └── modal_update.php
│ │ │ └── siswa_panel.php
│ │ ├── mapel
│ │ │ ├── mapel_panel.php
│ │ │ └── modals
│ │ │ │ ├── modal_delete.php
│ │ │ │ └── modal_update.php
│ │ ├── pengajar
│ │ │ ├── _form_add_pengajar.php
│ │ │ ├── _table_all_pengajar.php
│ │ │ ├── modals
│ │ │ │ ├── modal_delete.php
│ │ │ │ ├── modal_set_user.php
│ │ │ │ └── modal_update.php
│ │ │ └── pengajar_panel.php
│ │ ├── program
│ │ │ ├── _daftar_bidang_studi.php
│ │ │ ├── _daftar_jadwal_mengajar.php
│ │ │ ├── _daftar_kelas.php
│ │ │ ├── _daftar_nilai.php
│ │ │ └── program_panel.php
│ │ └── users
│ │ │ ├── _form_add_user.php
│ │ │ ├── _siswa.php
│ │ │ ├── _table_all_users.php
│ │ │ ├── modals
│ │ │ ├── modal_delete.php
│ │ │ └── modal_update.php
│ │ │ └── user_panel.php
│ ├── dashboard.php
│ ├── report
│ │ ├── nilai_siswa.php
│ │ ├── result
│ │ │ ├── nilai_available.php
│ │ │ └── nilai_unavailable.php
│ │ └── siswa.php
│ └── setting.php
│ ├── siswa
│ ├── control_panel
│ │ ├── auth_new_data
│ │ │ ├── n_val_empty.php
│ │ │ └── n_val_valid.php
│ │ ├── nilai_data_siswa.php
│ │ └── select_to_view.php
│ ├── dashboard.php
│ ├── profile_siswa.php
│ ├── setting.php
│ └── view_jadwal_akademik.php
│ └── staff
│ ├── control_panel
│ ├── nilai_data_siswa.php
│ └── select_to_view.php
│ ├── dashboard.php
│ ├── kontrol_kenaikan_kelas_nilai_siswa.php
│ ├── profile_staff.php
│ ├── result_evaluasi
│ ├── result_empty.php
│ └── result_eval.php
│ ├── setting.php
│ ├── view_data_siswa_kelas.php
│ ├── view_jadwal_akademik.php
│ └── view_nilai_siswa.php
├── assets
├── css
│ ├── bootstrap-theme.min.css
│ ├── bootstrap.min.css
│ ├── dataTables.bootstrap.css
│ ├── font-awesome.min.css
│ └── main.css
├── fonts
│ ├── FontAwesome.otf
│ ├── fontawesome-webfont.eot
│ ├── fontawesome-webfont.svg
│ ├── fontawesome-webfont.ttf
│ ├── fontawesome-webfont.woff
│ ├── fontawesome-webfont.woff2
│ ├── glyphicons-halflings-regular.eot
│ ├── glyphicons-halflings-regular.svg
│ ├── glyphicons-halflings-regular.ttf
│ ├── glyphicons-halflings-regular.woff
│ └── glyphicons-halflings-regular.woff2
├── images
│ ├── 552c38936ea834aa238b4568.jpeg
│ ├── LOGO-KEMENTERIAN-PENDIDIKAN-NASIONAL.png
│ ├── bg-input-login.jpg
│ └── gravatar-default.jpg
└── js
│ ├── bootstrap.min.js
│ ├── dataTable.functions.js
│ ├── dataTables.bootstrap.min.js
│ ├── functions.js
│ ├── jquery.dataTables.min.js
│ ├── jquery.min.js
│ ├── jquery.min.map
│ └── modernizr.min.js
├── database
└── db.sql.zip
├── gulpfile.js
├── index.php
├── license
├── package.json
├── readme.md
├── resources
├── js
│ ├── ajax-script.js
│ ├── global.js
│ ├── input-nilai-siswa.js
│ ├── livereload.js
│ ├── login-event.js
│ ├── nis-nip-check.js
│ └── view-print.js
└── sass
│ ├── base
│ ├── _base.sass
│ └── _vars.sass
│ ├── global
│ ├── _admin-layout.sass
│ ├── _customs.sass
│ ├── _jadwal-akademik.sass
│ ├── _login-page.sass
│ ├── notif.sass
│ └── profile-siswa.sass
│ ├── index.sass
│ └── vendors
│ ├── _animate.scss
│ ├── _fonts.scss
│ └── _normalize.scss
└── system
├── .htaccess
├── core
├── Benchmark.php
├── CodeIgniter.php
├── Common.php
├── Config.php
├── Controller.php
├── Exceptions.php
├── Hooks.php
├── Input.php
├── Lang.php
├── Loader.php
├── Log.php
├── Model.php
├── Output.php
├── Router.php
├── Security.php
├── URI.php
├── Utf8.php
├── compat
│ ├── hash.php
│ ├── index.html
│ ├── mbstring.php
│ ├── password.php
│ └── standard.php
└── index.html
├── database
├── DB.php
├── DB_cache.php
├── DB_driver.php
├── DB_forge.php
├── DB_query_builder.php
├── DB_result.php
├── DB_utility.php
├── drivers
│ ├── cubrid
│ │ ├── cubrid_driver.php
│ │ ├── cubrid_forge.php
│ │ ├── cubrid_result.php
│ │ ├── cubrid_utility.php
│ │ └── index.html
│ ├── ibase
│ │ ├── ibase_driver.php
│ │ ├── ibase_forge.php
│ │ ├── ibase_result.php
│ │ ├── ibase_utility.php
│ │ └── index.html
│ ├── index.html
│ ├── mssql
│ │ ├── index.html
│ │ ├── mssql_driver.php
│ │ ├── mssql_forge.php
│ │ ├── mssql_result.php
│ │ └── mssql_utility.php
│ ├── mysql
│ │ ├── index.html
│ │ ├── mysql_driver.php
│ │ ├── mysql_forge.php
│ │ ├── mysql_result.php
│ │ └── mysql_utility.php
│ ├── mysqli
│ │ ├── index.html
│ │ ├── mysqli_driver.php
│ │ ├── mysqli_forge.php
│ │ ├── mysqli_result.php
│ │ └── mysqli_utility.php
│ ├── oci8
│ │ ├── index.html
│ │ ├── oci8_driver.php
│ │ ├── oci8_forge.php
│ │ ├── oci8_result.php
│ │ └── oci8_utility.php
│ ├── odbc
│ │ ├── index.html
│ │ ├── odbc_driver.php
│ │ ├── odbc_forge.php
│ │ ├── odbc_result.php
│ │ └── odbc_utility.php
│ ├── pdo
│ │ ├── index.html
│ │ ├── pdo_driver.php
│ │ ├── pdo_forge.php
│ │ ├── pdo_result.php
│ │ ├── pdo_utility.php
│ │ └── subdrivers
│ │ │ ├── index.html
│ │ │ ├── pdo_4d_driver.php
│ │ │ ├── pdo_4d_forge.php
│ │ │ ├── pdo_cubrid_driver.php
│ │ │ ├── pdo_cubrid_forge.php
│ │ │ ├── pdo_dblib_driver.php
│ │ │ ├── pdo_dblib_forge.php
│ │ │ ├── pdo_firebird_driver.php
│ │ │ ├── pdo_firebird_forge.php
│ │ │ ├── pdo_ibm_driver.php
│ │ │ ├── pdo_ibm_forge.php
│ │ │ ├── pdo_informix_driver.php
│ │ │ ├── pdo_informix_forge.php
│ │ │ ├── pdo_mysql_driver.php
│ │ │ ├── pdo_mysql_forge.php
│ │ │ ├── pdo_oci_driver.php
│ │ │ ├── pdo_oci_forge.php
│ │ │ ├── pdo_odbc_driver.php
│ │ │ ├── pdo_odbc_forge.php
│ │ │ ├── pdo_pgsql_driver.php
│ │ │ ├── pdo_pgsql_forge.php
│ │ │ ├── pdo_sqlite_driver.php
│ │ │ ├── pdo_sqlite_forge.php
│ │ │ ├── pdo_sqlsrv_driver.php
│ │ │ └── pdo_sqlsrv_forge.php
│ ├── postgre
│ │ ├── index.html
│ │ ├── postgre_driver.php
│ │ ├── postgre_forge.php
│ │ ├── postgre_result.php
│ │ └── postgre_utility.php
│ ├── sqlite
│ │ ├── index.html
│ │ ├── sqlite_driver.php
│ │ ├── sqlite_forge.php
│ │ ├── sqlite_result.php
│ │ └── sqlite_utility.php
│ ├── sqlite3
│ │ ├── index.html
│ │ ├── sqlite3_driver.php
│ │ ├── sqlite3_forge.php
│ │ ├── sqlite3_result.php
│ │ └── sqlite3_utility.php
│ └── sqlsrv
│ │ ├── index.html
│ │ ├── sqlsrv_driver.php
│ │ ├── sqlsrv_forge.php
│ │ ├── sqlsrv_result.php
│ │ └── sqlsrv_utility.php
└── index.html
├── fonts
├── index.html
└── texb.ttf
├── helpers
├── array_helper.php
├── captcha_helper.php
├── cookie_helper.php
├── date_helper.php
├── directory_helper.php
├── download_helper.php
├── email_helper.php
├── file_helper.php
├── form_helper.php
├── html_helper.php
├── index.html
├── inflector_helper.php
├── language_helper.php
├── number_helper.php
├── path_helper.php
├── security_helper.php
├── smiley_helper.php
├── string_helper.php
├── text_helper.php
├── typography_helper.php
├── url_helper.php
└── xml_helper.php
├── index.html
├── language
├── english
│ ├── calendar_lang.php
│ ├── date_lang.php
│ ├── db_lang.php
│ ├── email_lang.php
│ ├── form_validation_lang.php
│ ├── ftp_lang.php
│ ├── imglib_lang.php
│ ├── index.html
│ ├── migration_lang.php
│ ├── number_lang.php
│ ├── pagination_lang.php
│ ├── profiler_lang.php
│ ├── unit_test_lang.php
│ └── upload_lang.php
└── index.html
└── libraries
├── Cache
├── Cache.php
├── drivers
│ ├── Cache_apc.php
│ ├── Cache_dummy.php
│ ├── Cache_file.php
│ ├── Cache_memcached.php
│ ├── Cache_redis.php
│ ├── Cache_wincache.php
│ └── index.html
└── index.html
├── Calendar.php
├── Cart.php
├── Driver.php
├── Email.php
├── Encrypt.php
├── Encryption.php
├── Form_validation.php
├── Ftp.php
├── Image_lib.php
├── Javascript.php
├── Javascript
├── Jquery.php
└── index.html
├── Migration.php
├── Pagination.php
├── Parser.php
├── Profiler.php
├── Session
├── Session.php
├── SessionHandlerInterface.php
├── Session_driver.php
├── drivers
│ ├── Session_database_driver.php
│ ├── Session_files_driver.php
│ ├── Session_memcached_driver.php
│ ├── Session_redis_driver.php
│ └── index.html
└── index.html
├── Table.php
├── Trackback.php
├── Typography.php
├── Unit_test.php
├── Upload.php
├── User_agent.php
├── Xmlrpc.php
├── Xmlrpcs.php
├── Zip.php
└── index.html
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | indent_style = tab
5 | indent_size = 4
6 | end_of_line = lf
7 | charset = utf-8
8 | trim_trailing_whitespace = true
9 | insert_final_newline = true
10 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
4 | # Custom for Visual Studio
5 | *.cs diff=csharp
6 |
7 | # Standard to msysgit
8 | *.doc diff=astextplain
9 | *.DOC diff=astextplain
10 | *.docx diff=astextplain
11 | *.DOCX diff=astextplain
12 | *.dot diff=astextplain
13 | *.DOT diff=astextplain
14 | *.pdf diff=astextplain
15 | *.PDF diff=astextplain
16 | *.rtf diff=astextplain
17 | *.RTF diff=astextplain
18 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea
2 | /node_modules
3 | /bower_components
4 |
--------------------------------------------------------------------------------
/.htaccess:
--------------------------------------------------------------------------------
1 | RewriteEngine on
2 | RewriteCond $1 !^(index\.php|resources|robots\.txt)
3 | RewriteCond %{REQUEST_FILENAME} !-f
4 | RewriteCond %{REQUEST_FILENAME} !-d
5 | RewriteRule ^(.*)$ index.php/$1 [L,QSA]
--------------------------------------------------------------------------------
/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/application/.htaccess:
--------------------------------------------------------------------------------
1 |
Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/config/doctypes.php: -------------------------------------------------------------------------------- 1 | '', 7 | 'xhtml1-strict' => '', 8 | 'xhtml1-trans' => '', 9 | 'xhtml1-frame' => '', 10 | 'xhtml-basic11' => '', 11 | 'html5' => '', 12 | 'html4-strict' => '', 13 | 'html4-trans' => '', 14 | 'html4-frame' => '', 15 | 'mathml1' => '', 16 | 'mathml2' => '', 17 | 'svg10' => '', 18 | 'svg11' => '', 19 | 'svg11-basic' => '', 20 | 'svg11-tiny' => '', 21 | 'xhtml-math-svg-xh' => '', 22 | 'xhtml-math-svg-sh' => '', 23 | 'xhtml-rdfa-1' => '', 24 | 'xhtml-rdfa-2' => '', 25 | ]; 26 | -------------------------------------------------------------------------------- /application/config/hooks.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/config/memcached.php: -------------------------------------------------------------------------------- 1 | [ 16 | 'hostname' => '127.0.0.1', 17 | 'port' => '11211', 18 | 'weight' => '1', 19 | ], 20 | ]; 21 | -------------------------------------------------------------------------------- /application/config/profiler.php: -------------------------------------------------------------------------------- 1 | my_controller/index 51 | | my-controller/my-method -> my_controller/my_method 52 | */ 53 | $route['default_controller'] = 'login'; 54 | $route['404_override'] = ''; 55 | $route['translate_uri_dashes'] = false; 56 | 57 | // ---------------------------------------------------------- 58 | // Routing Administrator 59 | $route['admin'] = 'administrator/dashboard'; 60 | $route['staff'] = 'staff/dashboard'; 61 | $route['siswa'] = 'siswa/dashboard'; 62 | 63 | // Route Kenaikan Kelas 64 | $route['staff/setup-naik-kelas'] = 'staff/control_kenaikan_kelas/index'; 65 | -------------------------------------------------------------------------------- /application/controllers/Home.php: -------------------------------------------------------------------------------- 1 | load->helper('form'); 11 | $this->load->library('form_validation'); 12 | $this->load->model('a_model'); 13 | } 14 | 15 | public function index() 16 | { 17 | $this->load->view('home'); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /application/controllers/Login.php: -------------------------------------------------------------------------------- 1 | load->helper('form'); 12 | $this->load->library('form_validation'); 13 | $this->load->model('el_model'); 14 | 15 | if ($this->session->userdata('hak_akses') == 1) { 16 | $this->session->set_flashdata( 17 | 'notif_result', 18 | "" 24 | ); 25 | redirect('administrator/dashboard'); 26 | } elseif ($this->session->userdata('hak_akses') == 2) { 27 | $this->session->set_flashdata( 28 | 'notif_result', 29 | "" 33 | ); 34 | 35 | redirect('staff/dashboard'); 36 | } elseif ($this->session->userdata('hak_akses') == 3) { 37 | $this->session->set_flashdata( 38 | 'notif_result', 39 | "" 43 | ); 44 | 45 | redirect('siswa/dashboard'); 46 | } 47 | } 48 | 49 | public function index() 50 | { 51 | $data['title'] = 'Login | Sistem Informasi Akademik'; 52 | $this->load->view('_modules/login', $data); 53 | } 54 | 55 | public function validations() 56 | { 57 | $this->form_validation->set_rules('username', 'User Name', 'trim|required'); 58 | $this->form_validation->set_rules('password', 'Password', 'trim|required|md5'); 59 | 60 | if ($this->form_validation->run() == false) { 61 | redirect('login'); 62 | } else { 63 | $username = set_value('username'); 64 | $password = set_value('password'); 65 | $is_loggin = $this->el_model->login($username, $password); 66 | 67 | if ($is_loggin == false) { 68 | $this->session->set_flashdata('error', 'Salah Memasukkan Username atau Password'); 69 | redirect('login'); 70 | } elseif ($is_loggin == true) { 71 | if ($this->session->userdata('hak_akses') == 1) { 72 | redirect('administrator/dashboard'); 73 | } elseif ($this->session->userdata('hak_akses') == 2) { 74 | redirect('staff/dashboard'); 75 | } elseif ($this->session->userdata('hak_akses') == 3) { 76 | redirect('siswa/dashboard'); 77 | } 78 | } 79 | } 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /application/controllers/Logout.php: -------------------------------------------------------------------------------- 1 | session->sess_destroy(); 10 | $this->db->cache_delete_all(); 11 | 12 | return redirect('/login'); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /application/controllers/Profile.php: -------------------------------------------------------------------------------- 1 | a_model->getBySiswa($param); 14 | $data['myAccount'] = $this->session->userdata('nama_awal'); 15 | $this->load->view('private/siswa/profile_siswa', $data); 16 | } 17 | 18 | public function staff($param = '') 19 | { 20 | $data['staff'] = $this->a_model->getByStaff($param); 21 | $data['myAccount'] = $this->session->userdata('nama_awal'); 22 | $this->load->view('private/staff/profile_staff', $data); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /application/controllers/administrator/Dashboard.php: -------------------------------------------------------------------------------- 1 | session->userdata('hak_akses') != 1) { 12 | $this->session->set_flashdata('error', " "); 13 | 14 | return redirect('login'); 15 | } 16 | } 17 | 18 | public function index() 19 | { 20 | $data['myAccount'] = $this->session->userdata('nama_awal'); 21 | 22 | $this->load->view('private/admin/dashboard', $data); 23 | } 24 | 25 | public function jadwal_akademik() 26 | { 27 | $data['myAccount'] = $this->session->userdata('nama_awal'); 28 | $data['tahun_ajaran'] = $this->a_model->getTahunAjaran(); 29 | $data['kelas_jurusan'] = $this->a_model->getKelas(); 30 | 31 | $this->load->view('private/admin/akademik/view_jadwal_akademik', $data); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /application/controllers/administrator/Destroy_data.php: -------------------------------------------------------------------------------- 1 | db->query('TRUNCATE ' . $table_name . ''); 12 | 13 | $destroy = ($destroy == true) ? redirect('administrator/setting') : ''; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /application/controllers/administrator/Report.php: -------------------------------------------------------------------------------- 1 | session->userdata('hak_akses') != 1) { 12 | $this->session->set_flashdata('error', " "); 13 | redirect('login'); 14 | } 15 | } 16 | 17 | public function index() 18 | { 19 | redirect('administrator/report/siswa'); 20 | } 21 | 22 | public function siswa() 23 | { 24 | $data['myAccount'] = $this->session->userdata('nama_awal'); 25 | $data['tahun_angkatan'] = $this->a_model->getTahunAjaran(); 26 | 27 | if (! isset($_POST['tahun_angkatan'])) { 28 | $data['filter'] = 'Pilih Angkatan'; 29 | $data['siswa'] = $this->a_model->joinKelas_tabSiswa_tabPengajar($data['filter']); 30 | $this->load->view('private/admin/report/siswa', $data); 31 | } else { 32 | $data['filter'] = $this->input->post('tahun_angkatan'); 33 | $data['siswa'] = $this->a_model->joinKelas_tabSiswa_tabPengajar($data['filter']); 34 | 35 | $this->load->view('private/admin/report/siswa', $data); 36 | } 37 | } 38 | 39 | public function nilai($param = null) 40 | { 41 | $data['myAccount'] = $this->session->userdata('nama_awal'); 42 | 43 | if ($param == null) { 44 | redirect('administrator/report'); 45 | } 46 | 47 | $data['nis'] = $param; 48 | $data['tahun_ajaran'] = $this->a_model->getTahunAjaran(); 49 | $data['siswa'] = $this->a_model->getBySiswa($data['nis']); 50 | 51 | foreach ($data['siswa'] as $value) { 52 | $no_nis = $value['nis'] . 'Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/controllers/siswa/Dashboard.php: -------------------------------------------------------------------------------- 1 | session->userdata('hak_akses') != 3) { 12 | $this->session->set_flashdata('error', ""); 13 | redirect('login'); 14 | } 15 | } 16 | 17 | public function index() 18 | { 19 | $data['myAccount'] = $this->session->userdata('nama_awal'); 20 | $data['nis'] = $this->session->userdata('nis'); 21 | 22 | $this->load->view('private/siswa/dashboard', $data); 23 | } 24 | 25 | public function jadwal_akademik() 26 | { 27 | $data['myAccount'] = $this->session->userdata('nama_awal'); 28 | $data['tahun_ajaran'] = $this->a_model->getTahunAjaran(); 29 | $data['kelas_jurusan'] = $this->a_model->getKelas(); 30 | 31 | $this->load->view('private/siswa/view_jadwal_akademik', $data); 32 | } 33 | 34 | public function showJadwalAkademik() 35 | { 36 | if ($_GET['id_kelas'] && $_GET['tahun_ajaran'] && $_GET['semester'] !== null) { 37 | $id_kelas = $_GET['id_kelas']; 38 | $tahun_ajaran = $_GET['tahun_ajaran']; 39 | $semester = $_GET['semester']; 40 | 41 | $kelas = $this->db->query("SELECT * FROM kelas WHERE id_kelas = '$id_kelas'")->result_array(); 42 | 43 | foreach ($kelas as $value) { 44 | $data['kelas'] = $value['kelas_jurusan']; 45 | } 46 | 47 | $jaGlobal = $this->a_model->getJadwalGlobal($id_kelas, $tahun_ajaran, $semester); 48 | 49 | if ($jaGlobal == false) { 50 | $data['tahun_ajaran'] = 'Jadwal Ini Belum Tersedia'; 51 | $data['semester'] = 'Hubungi Administrator Untuk Konfirmasi'; 52 | $this->load->view('private/admin/akademik/result/result_jadwal_akademik_unvalid', $data); 53 | } else { 54 | foreach ($jaGlobal as $value) { 55 | $id_key = $value['id_key']; // Get Data Jadwal Weekly 56 | $data['tahun_ajaran'] = $value['tahun_ajaran']; 57 | $data['semester'] = $value['semester']; 58 | } 59 | 60 | $data['show_jadwal'] = $this->a_model->getJadwalWeekly($id_key); 61 | $this->load->view('private/admin/akademik/result/result_jadwal_akademik', $data); 62 | } 63 | } 64 | 65 | return false; 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /application/controllers/siswa/Data_nilai.php: -------------------------------------------------------------------------------- 1 | session->userdata('hak_akses') != 3) { 12 | $this->session->set_flashdata('error', ""); 13 | redirect('login'); 14 | } 15 | } 16 | 17 | public function index() 18 | { 19 | $data['myAccount'] = $this->session->userdata('nama_awal'); 20 | $data['tahun_ajaran'] = $this->a_model->getTahunAjaran(); 21 | 22 | $this->load->view('private/siswa/control_panel/select_to_view', $data); 23 | } 24 | 25 | public function nilai_siswa() 26 | { 27 | $data['myAccount'] = $this->session->userdata('nama_awal'); 28 | $data['nis'] = $this->session->userdata('nis'); 29 | 30 | $data['s_ta'] = $this->input->post('tahun_ajaran'); 31 | $data['semester'] = $this->input->post('semester'); 32 | $data['profile'] = $this->a_model->getBySiswa($data['nis']); 33 | $data['by_nilai_siswa'] = $this->a_model->getNilai_join_tabPengajar( 34 | $data['nis'], $data['s_ta'], $data['semester'] 35 | ); 36 | 37 | // Get Nama Wali Kelas 38 | foreach ($data['profile'] as $value) { 39 | $key_kelas = $value['kelas']; // Get Nama Kelas from tabel siswa 40 | } 41 | 42 | $data_kelas = $this->a_model->getNama_Wali_Kelas($key_kelas); 43 | 44 | foreach ($data_kelas as $field) { 45 | $key_nip_wali_kelas = $field['wali_kelas']; 46 | } 47 | 48 | $get_nama_wali_kelas = $this->a_model->getByStaff($key_nip_wali_kelas); 49 | 50 | foreach ($get_nama_wali_kelas as $field) { 51 | $data['valid_nip_wali_kelas'] = $field['nip']; 52 | $data['valid_nama_wali_kelas'] = $field['nama_pengajar']; 53 | } 54 | 55 | $this->load->view('private/siswa/control_panel/nilai_data_siswa', $data); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /application/controllers/staff/Control_kenaikan_kelas.php: -------------------------------------------------------------------------------- 1 | session->userdata('hak_akses') != 2) { 12 | $this->session->set_flashdata('error', ""); 13 | redirect('login'); 14 | } 15 | } 16 | 17 | public function index() 18 | { 19 | $data['myAccount'] = $this->session->userdata('nama_awal'); 20 | $data['nip'] = $this->session->userdata('nip'); 21 | 22 | $var_a = $this->a_model->getMyClass($data['nip']); 23 | 24 | if ($var_a == false) { 25 | $this->session->set_flashdata( 26 | 'notif_result', 27 | "" 31 | ); 32 | 33 | redirect('staff/dashboard'); 34 | } else { 35 | foreach ($var_a as $value) { 36 | $var_class = $value['kelas_jurusan']; 37 | } 38 | 39 | // Data As Wali Kelas 40 | $ndata = $this->a_model->showMydataAsWaliKelas($data['nip']); 41 | $data['wali_kelas'] = $ndata[0]; 42 | 43 | // Get Siswa By $var_class 44 | $data['siswa_in_class'] = $this->db->query(" SELECT * FROM tabel_siswa WHERE kelas = '$var_class' ")->result_array(); 45 | } 46 | 47 | $this->load->view('private/staff/kontrol_kenaikan_kelas_nilai_siswa', $data); 48 | } 49 | 50 | public function reqNilai() 51 | { 52 | $data['myAccount'] = $this->session->userdata('nama_awal'); 53 | $data['nip'] = $this->session->userdata('nip'); 54 | 55 | if ($_GET['nis'] && $_GET['semester'] != null) { 56 | $reqNis = $_GET['nis']; 57 | $reqSeem = $_GET['semester']; 58 | 59 | $data['eval'] = $this->a_model->getNilaiToEval($reqNis, $reqSeem); 60 | 61 | if ($data['eval'] == null) { 62 | $this->load->view('private/staff/result_evaluasi/result_empty'); 63 | } else { 64 | $this->load->view('private/staff/result_evaluasi/result_eval', $data); 65 | } 66 | } 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /application/controllers/staff/Dashboard.php: -------------------------------------------------------------------------------- 1 | session->userdata('hak_akses') != 2) { 12 | $this->session->set_flashdata('error', ""); 13 | redirect('login'); 14 | } 15 | // | Session 16 | $eq = $this->session->userdata('nip'); 17 | $check = $this->db->query("SELECT guru_bid_studi FROM tabel_pengajar 18 | WHERE nip = '$eq' 19 | "); 20 | } 21 | 22 | public function index() 23 | { 24 | $data['myAccount'] = $this->session->userdata('nama_awal'); 25 | $data['nip'] = $this->session->userdata('nip'); 26 | 27 | $this->load->view('private/staff/dashboard', $data); 28 | } 29 | 30 | public function jadwal_akademik() 31 | { 32 | $data['myAccount'] = $this->session->userdata('nama_awal'); 33 | $data['tahun_ajaran'] = $this->a_model->getTahunAjaran(); 34 | $data['kelas_jurusan'] = $this->a_model->getKelas(); 35 | 36 | $this->load->view('private/staff/view_jadwal_akademik', $data); 37 | } 38 | 39 | public function showJadwalAkademik() 40 | { 41 | if ($_GET['id_kelas'] != null) { 42 | $id_kelas = $_GET['id_kelas']; 43 | $tahun_ajaran = $_GET['tahun_ajaran']; 44 | $semester = $_GET['semester']; 45 | 46 | $kelas = $this->db->query("SELECT * FROM kelas WHERE id_kelas = '$id_kelas'")->result_array(); 47 | 48 | foreach ($kelas as $value) { 49 | $data['kelas'] = $value['kelas_jurusan']; 50 | } 51 | 52 | $jaGlobal = $this->a_model->getJadwalGlobal($id_kelas, $tahun_ajaran, $semester); 53 | 54 | if ($jaGlobal == false) { 55 | $data['tahun_ajaran'] = 'Jadwal Ini Belum Tersedia'; 56 | $data['semester'] = 'Hubungi Administrator Untuk Konfirmasi'; 57 | $this->load->view('private/admin/akademik/result/result_jadwal_akademik_unvalid', $data); 58 | } else { 59 | foreach ($jaGlobal as $value) { 60 | $id_key = $value['id_key']; // Get Data Jadwal Weekly 61 | $data['tahun_ajaran'] = $value['tahun_ajaran']; 62 | $data['semester'] = $value['semester']; 63 | } 64 | 65 | $data['show_jadwal'] = $this->a_model->getJadwalWeekly($id_key); 66 | $this->load->view('private/admin/akademik/result/result_jadwal_akademik', $data); 67 | } 68 | } 69 | 70 | return false; 71 | } 72 | 73 | public function getSession() 74 | { 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /application/controllers/staff/Data_siswa.php: -------------------------------------------------------------------------------- 1 | session->userdata('hak_akses') != 2) { 12 | $this->session->set_flashdata('error', ""); 13 | redirect('login'); 14 | } 15 | } 16 | 17 | public function index() 18 | { 19 | $data['myAccount'] = $this->session->userdata('nama_awal'); 20 | $data['nip'] = $this->session->userdata('nip'); 21 | 22 | $var_a = $this->a_model->getMyClass($data['nip']); 23 | 24 | if ($var_a == false) { 25 | $this->session->set_flashdata( 26 | 'notif_result', 27 | "" 33 | ); 34 | redirect('staff/dashboard'); 35 | } else { 36 | foreach ($var_a as $value) { 37 | $var_class = $value['kelas_jurusan']; 38 | } 39 | // Data As Wali Kelas 40 | $ndata = $this->a_model->showMydataAsWaliKelas($data['nip']); 41 | $data['wali_kelas'] = $ndata[0]; 42 | 43 | // Get Siswa By $var_class 44 | $data['siswa_in_class'] = $this->db->query(" SELECT * FROM tabel_siswa WHERE kelas = '$var_class' ")->result_array(); 45 | } 46 | 47 | $this->load->view('private/staff/view_data_siswa_kelas', $data); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /application/controllers/staff/View_nilai.php: -------------------------------------------------------------------------------- 1 | session->userdata('hak_akses') != 2) { 12 | $this->session->set_flashdata('error', ""); 13 | redirect('login'); 14 | } 15 | } 16 | 17 | public function index() 18 | { 19 | $data['myAccount'] = $this->session->userdata('nama_awal'); 20 | $data['nip'] = $this->session->userdata('nip'); 21 | 22 | $this->load->view('private/staff/view_nilai_siswa', $data); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /application/core/MY_Controller.php: -------------------------------------------------------------------------------- 1 | session->userdata('username')) { 12 | $this->session->set_flashdata('error', 'Please, Login!!!'); 13 | redirect('login'); 14 | } 15 | 16 | // Load Libarary and Helper 17 | $this->load->library('form_validation'); 18 | $this->load->helper(['form', 'url', 'file']); 19 | 20 | // Load Model 21 | // $this->load->model('el_model'); 22 | $this->load->model('a_model'); 23 | $this->load->model('b_model'); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /application/core/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/helpers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/hooks/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/language/english/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/language/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/libraries/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/logs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/models/Ajax_model.php: -------------------------------------------------------------------------------- 1 | db->insert($tabelname, $data); 10 | 11 | return $query; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /application/models/B_model.php: -------------------------------------------------------------------------------- 1 | db->query("SELECT username FROM users WHERE username = '$username'"); 10 | 11 | if ($query->num_rows() == 0) { 12 | return true; 13 | } 14 | 15 | if ($query->num_rows() == 1) { 16 | return false; 17 | } 18 | } 19 | 20 | public function getAvailable_Nis($nis) 21 | { 22 | $query = $this->db->select('nis') 23 | ->from('tabel_siswa') 24 | ->where('nis', $nis) 25 | ->get(); 26 | 27 | return $query->result_array(); 28 | } 29 | 30 | public function getAvailable_Nip($nip) 31 | { 32 | $query = $this->db->select('nip') 33 | ->from('tabel_pengajar') 34 | ->where('nip', $nip) 35 | ->get(); 36 | 37 | return $query->result_array(); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /application/models/El_model.php: -------------------------------------------------------------------------------- 1 | db->select('*') 10 | ->from('users') 11 | ->join('tabel_siswa', 'tabel_siswa.id_user = users.id_user', 'left') 12 | ->join('tabel_pengajar', 'tabel_pengajar.id_user = users.id_user', 'left') 13 | ->join('tabel_admin', 'tabel_admin.id_user = users.id_user', 'left') 14 | ->where('username', $username) 15 | ->where('password', $password) 16 | ->get(); 17 | 18 | // return $query -> result_array(); 19 | 20 | if ($query->num_rows() > 0) { 21 | foreach ($query->result() as $sess) { 22 | $sess_data['nama_awal'] = $sess->nama_user; 23 | $sess_data['username'] = $sess->username; 24 | $sess_data['hak_akses'] = $sess->hak_akses; 25 | $sess_data['nis'] = $sess->nis; 26 | $sess_data['nip'] = $sess->nip; 27 | $sess_data['id_admin'] = $sess->id_admin; 28 | $this->session->set_userdata($sess_data); 29 | } 30 | 31 | return $query->row(); 32 | } 33 | 34 | return false; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /application/models/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/third_party/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Directory access is forbidden.
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /application/views/_layouts/private/siswa_nav.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /application/views/_layouts/public/nav.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /application/views/_templates/private/admin/footer.php: -------------------------------------------------------------------------------- 1 | 2 | 5 | session->flashdata('notif_result'); ?> 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |