├── .github └── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── .gitignore ├── .htaccess ├── README.md ├── application ├── .htaccess ├── cache │ ├── .htaccess │ └── index.html ├── config │ ├── autoload.php │ ├── bitauth.php │ ├── config.php │ ├── constants.php │ ├── database.php │ ├── doctypes.php │ ├── foreign_chars.php │ ├── hooks.php │ ├── index.html │ ├── migration.php │ ├── mimes.php │ ├── profiler.php │ ├── routes.php │ ├── smileys.php │ └── user_agents.php ├── controllers │ ├── account.php │ ├── comment.php │ ├── drug.php │ ├── home.php │ ├── index.html │ ├── patient.php │ ├── report_bug.php │ ├── test.php │ └── xray.php ├── core │ ├── MY_Model.php │ └── index.html ├── errors │ ├── error_404.php │ ├── error_db.php │ ├── error_general.php │ ├── error_php.php │ └── index.html ├── helpers │ └── index.html ├── hooks │ └── index.html ├── index.html ├── language │ └── english │ │ ├── bitauth_lang.php │ │ └── index.html ├── libraries │ ├── Bitauth.php │ ├── MY_Form_validation.php │ ├── MY_Pagination.php │ ├── index.html │ └── phpass.php ├── logs │ └── index.html ├── models │ ├── comments.php │ ├── drug_patient.php │ ├── drugs.php │ ├── index.html │ ├── lab.php │ ├── lab_files.php │ ├── lab_patient.php │ ├── patient_doctor.php │ ├── patients.php │ ├── purchased_drugs.php │ ├── reports.php │ ├── returned_drugs.php │ ├── xray_files.php │ ├── xray_patient.php │ └── xrays.php ├── third_party │ └── index.html └── views │ ├── account │ ├── add_group.php │ ├── add_user.php │ ├── confirm_delete.php │ ├── edit_group.php │ ├── edit_user.php │ ├── groups.php │ ├── index.html │ ├── login.php │ ├── no_access.php │ └── users.php │ ├── drug │ ├── add_drug.php │ ├── check.php │ ├── confirm_delete.php │ ├── edit.php │ ├── list.php │ ├── new.php │ ├── result.php │ ├── return_drug.php │ └── search.php │ ├── footer.php │ ├── header.php │ ├── home │ ├── cp.php │ └── cp │ │ ├── admin.php │ │ ├── doctor.php │ │ ├── lab.php │ │ ├── pharmacy.php │ │ ├── receptionist.php │ │ └── xray.php │ ├── index.html │ ├── index.php │ ├── lab │ ├── confirm_delete.php │ ├── edit.php │ ├── list.php │ ├── new.php │ ├── result.php │ └── search.php │ ├── patient │ ├── add_patient.php │ ├── comment.php │ ├── edit_patient.php │ ├── index.html │ ├── list.php │ ├── panel.php │ ├── panel │ │ ├── comments.php │ │ ├── drugs.php │ │ ├── labs.php │ │ └── xrays.php │ ├── ticket.php │ └── waiting.php │ ├── report │ └── add.php │ ├── repository │ ├── dropdown_userlist.php │ ├── index.html │ ├── login.php │ ├── logo.php │ ├── nav.php │ ├── nav │ │ ├── admin.php │ │ ├── default.php │ │ ├── doctor.php │ │ ├── guest.php │ │ ├── lab.php │ │ ├── nav_templates.php │ │ ├── patient.php │ │ ├── pharmacy.php │ │ ├── receptionist.php │ │ └── xray.php │ ├── sidebar.php │ └── sidebar │ │ ├── admin.php │ │ ├── default.php │ │ ├── doctor.php │ │ ├── guest.php │ │ ├── lab.php │ │ ├── panel_template.php │ │ ├── patient.php │ │ ├── pharmacy.php │ │ ├── receptionist.php │ │ └── xray.php │ ├── view_config.php │ └── xray │ ├── confirm_delete.php │ ├── details.php │ ├── edit.php │ ├── list.php │ ├── new.php │ ├── result.php │ └── search.php ├── content ├── css │ ├── bootstrap-fileupload.min.css │ ├── bootstrap.min.css │ ├── index.html │ ├── print.css │ └── ui │ │ └── jquery-ui.min.css ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── index.html ├── img │ └── index.html ├── index.html └── js │ ├── bootstrap-fileupload.js │ ├── bootstrap.min.js │ ├── html5shiv.js │ ├── index.html │ ├── jquery-2.1.0.min.js │ ├── jquery.cookie.js │ ├── jquery.js │ ├── jszip.js │ └── main.js ├── diagrams ├── 001-MindMap01.png ├── 002-UC00 - Overall Usecase.png ├── 003-UC01 - Admin, Receptionist.png ├── 004-UC02 - Doctor, X-Ray.png ├── 005-UC03 - Pharmacy, Laboratory.png ├── 006-SQ01.png ├── 007-SQ02.png ├── ERD_Authentication System.png ├── ERD_Clinic mgmt.png └── ERD_bitAuthTables.png ├── index.html ├── index.php ├── license.txt ├── sql └── clinic.sql ├── system ├── .htaccess ├── core │ ├── Benchmark.php │ ├── CodeIgniter.php │ ├── Common.php │ ├── Config.php │ ├── Controller.php │ ├── Exceptions.php │ ├── Hooks.php │ ├── Input.php │ ├── Lang.php │ ├── Loader.php │ ├── Model.php │ ├── Output.php │ ├── Router.php │ ├── Security.php │ ├── URI.php │ ├── Utf8.php │ └── index.html ├── database │ ├── DB.php │ ├── DB_active_rec.php │ ├── DB_cache.php │ ├── DB_driver.php │ ├── DB_forge.php │ ├── DB_result.php │ ├── DB_utility.php │ ├── drivers │ │ ├── cubrid │ │ │ ├── cubrid_driver.php │ │ │ ├── cubrid_forge.php │ │ │ ├── cubrid_result.php │ │ │ ├── cubrid_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 │ │ ├── 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 │ │ └── 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 │ │ ├── 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 │ ├── Calendar.php │ ├── Cart.php │ ├── Driver.php │ ├── Email.php │ ├── Encrypt.php │ ├── Form_validation.php │ ├── Ftp.php │ ├── Image_lib.php │ ├── Javascript.php │ ├── Log.php │ ├── Migration.php │ ├── Pagination.php │ ├── Parser.php │ ├── Profiler.php │ ├── Session.php │ ├── Sha1.php │ ├── Table.php │ ├── Trackback.php │ ├── Typography.php │ ├── Unit_test.php │ ├── Upload.php │ ├── User_agent.php │ ├── Xmlrpc.php │ ├── Xmlrpcs.php │ ├── Zip.php │ ├── index.html │ └── javascript │ └── Jquery.php └── uploads ├── hospital ├── index.html ├── readMe.txt └── staff │ └── index.html ├── index.html └── patient ├── index.html └── readMe.txt /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | - Version [e.g. 22] 30 | 31 | **Smartphone (please complete the following information):** 32 | - Device: [e.g. iPhone6] 33 | - OS: [e.g. iOS8.1] 34 | - Browser [e.g. stock browser, safari] 35 | - Version [e.g. 22] 36 | 37 | **Additional context** 38 | Add any other context about the problem here. 39 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | application/logs/* 2 | uploads/* 3 | -------------------------------------------------------------------------------- /.htaccess: -------------------------------------------------------------------------------- 1 | RewriteEngine on 2 | RewriteCond $1 !^(index\.php|uploads|content|robots\.txt) 3 | RewriteCond %{REQUEST_FILENAME} !-f 4 | RewriteCond %{REQUEST_FILENAME} !-d 5 | RewriteRule ^(.*)$ index.php/$1 [L,QSA] -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Clinic Management System 2 | Healthcare computer system, commonly known as clinic management system, is created to computerize manual operations in clinics. The primary purpose is to digitize patient records so as to make data retrieval easy and efficient. Clinic Management System web application is developed by using PHP & MySql and is designed to automate internal work flows and manage different aspect of a small to medium size medical clinics. 3 | 4 | # Features 5 | - Patient Registration 6 | - Keep Track of Patient Electronic Health Record History 7 | - Laboratory Management 8 | - Pharmacy Management 9 | - X-Ray Management 10 | 11 | # Preparation Steps: 12 | 1. You need to create the database. The scripts for the database is in the 'sql' directory. 13 | 2. Change your database configuration in 'application/configs/database.php'. 14 | 3. Now you can browse the web application. 15 | 4. To sign up for a user account, change your browser location to 'http://< hostname >[:portnumber]/[subdirectory/][index.php/]account/signup'. Ensure that the first user to register must be of role admin. 16 | 17 | Signup page address examples: 18 | - http://localhost:8080/clinic-management-system/index.php/account/signup 19 | - http://localhost/account/signup 20 | -------------------------------------------------------------------------------- /application/.htaccess: -------------------------------------------------------------------------------- 1 | Deny from all -------------------------------------------------------------------------------- /application/cache/.htaccess: -------------------------------------------------------------------------------- 1 | deny from all -------------------------------------------------------------------------------- /application/cache/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/config/constants.php: -------------------------------------------------------------------------------- 1 | '', 5 | 'xhtml1-strict' => '', 6 | 'xhtml1-trans' => '', 7 | 'xhtml1-frame' => '', 8 | 'html5' => '', 9 | 'html4-strict' => '', 10 | 'html4-trans' => '', 11 | 'html4-frame' => '' 12 | ); 13 | 14 | /* End of file doctypes.php */ 15 | /* Location: ./application/config/doctypes.php */ -------------------------------------------------------------------------------- /application/config/foreign_chars.php: -------------------------------------------------------------------------------- 1 | 'ae', 12 | '/ö|œ/' => 'oe', 13 | '/ü/' => 'ue', 14 | '/Ä/' => 'Ae', 15 | '/Ü/' => 'Ue', 16 | '/Ö/' => 'Oe', 17 | '/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ/' => 'A', 18 | '/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª/' => 'a', 19 | '/Ç|Ć|Ĉ|Ċ|Č/' => 'C', 20 | '/ç|ć|ĉ|ċ|č/' => 'c', 21 | '/Ð|Ď|Đ/' => 'D', 22 | '/ð|ď|đ/' => 'd', 23 | '/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě/' => 'E', 24 | '/è|é|ê|ë|ē|ĕ|ė|ę|ě/' => 'e', 25 | '/Ĝ|Ğ|Ġ|Ģ/' => 'G', 26 | '/ĝ|ğ|ġ|ģ/' => 'g', 27 | '/Ĥ|Ħ/' => 'H', 28 | '/ĥ|ħ/' => 'h', 29 | '/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ/' => 'I', 30 | '/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı/' => 'i', 31 | '/Ĵ/' => 'J', 32 | '/ĵ/' => 'j', 33 | '/Ķ/' => 'K', 34 | '/ķ/' => 'k', 35 | '/Ĺ|Ļ|Ľ|Ŀ|Ł/' => 'L', 36 | '/ĺ|ļ|ľ|ŀ|ł/' => 'l', 37 | '/Ñ|Ń|Ņ|Ň/' => 'N', 38 | '/ñ|ń|ņ|ň|ʼn/' => 'n', 39 | '/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ/' => 'O', 40 | '/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º/' => 'o', 41 | '/Ŕ|Ŗ|Ř/' => 'R', 42 | '/ŕ|ŗ|ř/' => 'r', 43 | '/Ś|Ŝ|Ş|Š/' => 'S', 44 | '/ś|ŝ|ş|š|ſ/' => 's', 45 | '/Ţ|Ť|Ŧ/' => 'T', 46 | '/ţ|ť|ŧ/' => 't', 47 | '/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ/' => 'U', 48 | '/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ/' => 'u', 49 | '/Ý|Ÿ|Ŷ/' => 'Y', 50 | '/ý|ÿ|ŷ/' => 'y', 51 | '/Ŵ/' => 'W', 52 | '/ŵ/' => 'w', 53 | '/Ź|Ż|Ž/' => 'Z', 54 | '/ź|ż|ž/' => 'z', 55 | '/Æ|Ǽ/' => 'AE', 56 | '/ß/'=> 'ss', 57 | '/IJ/' => 'IJ', 58 | '/ij/' => 'ij', 59 | '/Œ/' => 'OE', 60 | '/ƒ/' => 'f' 61 | ); 62 | 63 | /* End of file foreign_chars.php */ 64 | /* Location: ./application/config/foreign_chars.php */ -------------------------------------------------------------------------------- /application/config/hooks.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/config/migration.php: -------------------------------------------------------------------------------- 1 | migration->latest() this is the version that schema will 21 | | be upgraded / downgraded to. 22 | | 23 | */ 24 | $config['migration_version'] = 0; 25 | 26 | 27 | /* 28 | |-------------------------------------------------------------------------- 29 | | Migrations Path 30 | |-------------------------------------------------------------------------- 31 | | 32 | | Path to your migrations folder. 33 | | Typically, it will be within your application path. 34 | | Also, writing permission is required within the migrations path. 35 | | 36 | */ 37 | $config['migration_path'] = APPPATH . 'migrations/'; 38 | 39 | 40 | /* End of file migration.php */ 41 | /* Location: ./application/config/migration.php */ -------------------------------------------------------------------------------- /application/config/profiler.php: -------------------------------------------------------------------------------- 1 | 18 | * @see http://codeigniter.com/user_guide/general/urls.html 19 | */ 20 | 21 | /** 22 | * this is the index of home page 23 | * this should load the main panel for user 24 | */ 25 | public function index() 26 | { 27 | //initialize and load header 28 | $data['title'] = 'Clinic Management System'; 29 | $data['navActiveId']='navbarLiHome'; 30 | 31 | $data['includes']=array('home/cp'); 32 | 33 | $this->load->view('header',$data); 34 | $this->load->view('index',$data); 35 | $this->load->view('footer',$data); 36 | } 37 | } 38 | 39 | /* End of file home.php */ 40 | /* Location: ./application/controllers/home.php */ -------------------------------------------------------------------------------- /application/controllers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/controllers/report_bug.php: -------------------------------------------------------------------------------- 1 | form_validation->set_error_delimiters('
', '
'); 14 | } 15 | 16 | /** 17 | * Comment::index() 18 | */ 19 | public function index($patient_id=0,$page = 1, $limit = 15) 20 | { 21 | if (!$this->bitauth->logged_in()) 22 | { 23 | $this->session->set_userdata('redir', current_url()); 24 | redirect('account/login'); 25 | } 26 | } 27 | 28 | /* 29 | * Comment::add() 30 | * 31 | */ 32 | public function add() 33 | { 34 | if (!$this->bitauth->logged_in()) 35 | { 36 | $this->session->set_userdata('redir', current_url()); 37 | redirect('account/login'); 38 | } 39 | $data=array(); 40 | $this->load->model('reports'); 41 | if($this->input->post()) 42 | { 43 | $this->form_validation->set_rules(array( 44 | array( 'field' => 'subject', 'label' => 'Subject', 'rules' => '', ), 45 | array( 'field' => 'url', 'label' => 'URL', 'rules' => '', ), 46 | array( 'field' => 'description', 'label' => 'Description', 'rules' => '', ), 47 | )); 48 | if($this->form_validation->run() == TRUE) 49 | { 50 | $this->reports->user_id=$this->session->userdata('ba_user_id'); 51 | $this->reports->subject=$this->input->post('subject'); 52 | $this->reports->url=$this->input->post('subject'); 53 | $this->reports->description=$this->input->post('description'); 54 | $this->reports->create_date=now(); 55 | $this->reports->save(); 56 | } 57 | } 58 | if($this->reports->report_id){ 59 | $data['report']=$this->reports; 60 | } 61 | $this->load->view('report/add', $data); 62 | 63 | } 64 | } 65 | 66 | /* End of file patient.php */ 67 | /* Location: ./application/controllers/patient.php */ -------------------------------------------------------------------------------- /application/core/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/errors/error_404.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 404 Page Not Found 5 | 55 | 56 | 57 |
58 |

59 | 60 |
61 | 62 | -------------------------------------------------------------------------------- /application/errors/error_db.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Database Error 5 | 55 | 56 | 57 |
58 |

59 | 60 |
61 | 62 | -------------------------------------------------------------------------------- /application/errors/error_general.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Error 5 | 55 | 56 | 57 |
58 |

59 | 60 |
61 | 62 | -------------------------------------------------------------------------------- /application/errors/error_php.php: -------------------------------------------------------------------------------- 1 |
2 | 3 |

A PHP Error was encountered

4 | 5 |

Severity:

6 |

Message:

7 |

Filename:

8 |

Line Number:

9 | 10 |
-------------------------------------------------------------------------------- /application/errors/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/helpers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/hooks/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/language/english/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/libraries/MY_Form_validation.php: -------------------------------------------------------------------------------- 1 | CI->bitauth->username_is_unique($username, $exclude_id)) 13 | { 14 | $this->set_message('bitauth_unique_username', $this->CI->bitauth->get_error(FALSE)); 15 | return FALSE; 16 | } 17 | 18 | return TRUE; 19 | } 20 | 21 | /** 22 | * My_Form_validation::has_no_schar() 23 | * 24 | */ 25 | public function has_no_schar($input) 26 | { 27 | for ($i=0; $i < strlen($input); $i++) { 28 | if( $input[$i]=='<' || 29 | $input[$i]=='>') 30 | { 31 | $this->set_message('', $this->CI->bitauth->get_error(FALSE)); 32 | return FALSE; 33 | } 34 | } 35 | return TRUE; 36 | } 37 | 38 | /** 39 | * My_Form_validation::bitauth_unique_group() 40 | * 41 | */ 42 | public function bitauth_unique_group($group_name, $exclude_id = FALSE) 43 | { 44 | if( ! $this->CI->bitauth->group_is_unique($group_name, $exclude_id)) 45 | { 46 | $this->set_message('bitauth_unique_group', $this->CI->bitauth->get_error(FALSE)); 47 | return FALSE; 48 | } 49 | 50 | return TRUE; 51 | } 52 | 53 | /** 54 | * My_Form_validation::bitauth_unique_permission_key() 55 | * 56 | */ 57 | public function bitauth_unique_permission_key($permission_key, $exclude_id = FALSE) 58 | { 59 | if( ! $this->CI->bitauth->permission_key_is_unique($permission_key, $exclude_id)) 60 | { 61 | $this->set_message('bitauth_unique_permission_key', $this->CI->bitauth->get_error(FALSE)); 62 | return FALSE; 63 | } 64 | 65 | return TRUE; 66 | } 67 | 68 | /** 69 | * My_Form_validation::bitauth_unique_permission_name() 70 | * 71 | */ 72 | public function bitauth_unique_permission_name($permission_name, $exclude_id = FALSE) 73 | { 74 | if( ! $this->CI->bitauth->permission_name_is_unique($permission_name, $exclude_id)) 75 | { 76 | $this->set_message('bitauth_unique_permission_name', $this->CI->bitauth->get_error(FALSE)); 77 | return FALSE; 78 | } 79 | 80 | return TRUE; 81 | } 82 | 83 | /** 84 | * MY_Form_validation::bitauth_valid_password() 85 | * 86 | */ 87 | public function bitauth_valid_password($password) 88 | { 89 | if( ! $this->CI->bitauth->password_is_valid($password)) 90 | { 91 | $this->set_message('bitauth_valid_password', $this->CI->bitauth->get_error(FALSE)); 92 | return FALSE; 93 | } 94 | 95 | return TRUE; 96 | } 97 | } -------------------------------------------------------------------------------- /application/libraries/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/logs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/models/comments.php: -------------------------------------------------------------------------------- 1 | db->where($where); 72 | if($drug_id!=0) $this->db->where('drug_id', $drug_id); 73 | $query = $this->db->get($this::DB_TABLE); 74 | $ret_val = array(); 75 | $class = get_class($this); 76 | foreach ($query->result() as $row) { 77 | $model = new $class; 78 | $model->populate($row); 79 | $ret_val[$row->{$this::DB_TABLE_PK}] = $model; 80 | } 81 | return $ret_val; 82 | } 83 | } -------------------------------------------------------------------------------- /application/models/drugs.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/models/lab.php: -------------------------------------------------------------------------------- 1 | db->where('user_id',0); 43 | if(!is_array($doctor_id)) 44 | $this->db->or_where('user_id',$doctor_id); 45 | else 46 | foreach ($doctor_id as $id) 47 | $this->db->or_where('user_id',$id); 48 | } 49 | $this->db->where('status',0); 50 | if($order_by) 51 | { 52 | $this->db->order_by($order_by[0],$order_by[1]); 53 | } 54 | if ($limit) { 55 | $query = $this->db->get($this::DB_TABLE, $limit, $offset); 56 | }else{ 57 | $query = $this->db->get($this::DB_TABLE); 58 | } 59 | $ret_val = array(); 60 | $class = get_class($this); 61 | foreach ($query->result() as $row) { 62 | $model = new $class; 63 | $model->populate($row); 64 | $ret_val[$row->{$this::DB_TABLE_PK}] = $model; 65 | } 66 | return $ret_val; 67 | } 68 | } -------------------------------------------------------------------------------- /application/models/patients.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/views/account/add_group.php: -------------------------------------------------------------------------------- 1 | '; 3 | echo form_open(current_url(),array('class'=>'form-horizontal','id'=>'edit_group_form','role'=>'form')); 4 | if(validation_errors()) 5 | { 6 | echo validation_errors(); 7 | } 8 | echo "
- Group Information"; 9 | echo '
10 | 11 |
'.form_input('name', set_value('name'),'class="form-control" title="Group Name" placeholder="Group Name" required').'
12 |
'; 13 | echo '
14 | 15 |
'.form_textarea('description', set_value('description'),'class="form-control" title="Description" placeholder="Description" style="height:68px;"').'
16 |
'; 17 | echo '
18 | 19 |
'.form_multiselect('roles[]', $roles, set_value('roles[]','guest'),'class="form-control" title="Role" required').'
20 |
'; 21 | echo '
22 | 23 |
'.form_multiselect('members[]', $users, set_value('members[]'),'class="form-control" title="Members"').'
24 |
'; 25 | echo '
26 |
27 |
'.anchor('account/groups','Cancel',array('class'=>'form-control btn btn-info')).'
28 |
'; 29 | echo form_close(); 30 | echo ""; 31 | ?> -------------------------------------------------------------------------------- /application/views/account/confirm_delete.php: -------------------------------------------------------------------------------- 1 |
2 | 22 | 27 |
-------------------------------------------------------------------------------- /application/views/account/edit_group.php: -------------------------------------------------------------------------------- 1 | '; 5 | echo form_open(current_url(),array('class'=>'form-horizontal','id'=>'edit_group_form','role'=>'form')); 6 | if(validation_errors()) 7 | { 8 | echo validation_errors(); 9 | } 10 | echo "
- Group Information"; 11 | echo '
12 | 13 |
'.form_input('name', set_value('name', $group->name),'class="form-control"').'
14 |
'; 15 | echo '
16 | 17 |
'.form_textarea('description', set_value('description', $group->description),'class="form-control" style="height:68px;"').'
18 |
'; 19 | echo '
20 | 21 |
'.form_multiselect('roles[]', $roles, set_value('roles[]', $group_roles),'class="form-control" title=""').'
22 |
'; 23 | echo '
24 | 25 |
'.form_multiselect('members[]', $users, set_value('members[]', $group->members),'class="form-control"').'
26 |
'; 27 | echo '
28 |
29 |
'.anchor('account/groups','Cancel',array('class'=>'form-control btn btn-info')).'
30 |
'; 31 | echo form_close(); 32 | echo ""; 33 | } else { 34 | echo '

Group Not Found

'.anchor('account/groups', 'Go Back').'
'; 35 | } 36 | ?> 37 | -------------------------------------------------------------------------------- /application/views/account/groups.php: -------------------------------------------------------------------------------- 1 | 2 | ".$pagination."
6 | 7 | 8 | 9 | 10 | "; 11 | $start = ($page-1) * $per_page; 12 | for($i=(int)$start;$i<(int)$start+(int)$per_page;$i++) 13 | { 14 | if(isset($groups[$i])) 15 | { 16 | $_group = $groups[$i]; 17 | $actions = ''; 18 | if($this->bitauth->is_admin()) 19 | { 20 | $actions = anchor('account/edit_group/'.$_group->group_id,'',array('title'=>'Edit Group')); 21 | $actions .= anchor('#','',array('title'=>'Remove Group', 22 | 'onclick'=>"$.ajax('".base_url()."index.php/account/remove_group/$_group->group_id').done(function(data){jQuery('#tmpDiv').html(data);});return false;")); 23 | } 24 | 25 | echo ''. 26 | ''. 27 | ''. 28 | ''. 29 | ''. 30 | ''; 31 | } 32 | } 33 | echo '
GroupIDNameDescription
'.$_group->group_id.''.html_escape($_group->name).''.html_escape(sum_string($_group->description,100)).''.$actions.'
'.$pagination.""; 34 | } 35 | if($this->bitauth->is_admin()) 36 | { 37 | echo '
'.anchor('account/add_group', 'Add Group',array('class'=>'hidden-print')).'
'; 38 | } 39 | ?> 40 | -------------------------------------------------------------------------------- /application/views/account/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/views/account/login.php: -------------------------------------------------------------------------------- 1 |
2 | "loginForm", "role"=>"form",)); ?> 3 |
4 | Login 5 | 6 |
7 | 'sr-only')); 9 | echo form_input('username',null,"class='form-control' placeholder='User Name' title='User Name'"); 10 | ?> 11 |
12 |
13 | 'sr-only')); 15 | echo form_password('password',null,"class='form-control' placeholder='Password' title='Password'"); 16 | ?> 17 |
18 |
19 | 20 |
21 |
22 | Forgot Password? / Sign up ?> 23 |
24 |
25 | 26 |
27 |
28 | 29 |
-------------------------------------------------------------------------------- /application/views/account/no_access.php: -------------------------------------------------------------------------------- 1 |
You are not authorize to view this page. Please contact system administrator for more information or to get access.
'; 3 | ?> -------------------------------------------------------------------------------- /application/views/account/users.php: -------------------------------------------------------------------------------- 1 | 2 | ".$pagination."
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | "; 14 | $start = ($page-1) * $per_page; 15 | for($i=(int)$start;$i<(int)$start+(int)$per_page;$i++) 16 | { 17 | if(isset($users[$i])) 18 | { 19 | $_user = $users[$i]; 20 | 21 | $actions = ''; 22 | if($this->bitauth->is_admin()) 23 | { 24 | //$actions = anchor('account/users/'.$_user->user_id, ' ',array('title'=>'View User Details')); 25 | $actions = anchor('account/edit_user/'.$_user->user_id, '',array('title'=>'Edit User')); 26 | if(!$_user->active) 27 | $actions .= anchor('#', ' ',array('title'=>'Activate User','onclick'=>"$.ajax('".base_url()."index.php/account/activate/$_user->activation_code').done(function(){window.location='".current_url()."';});return false;")); 28 | else 29 | $actions .= anchor('#', ' ',array('title'=>'Suspend User','onclick'=>"$.ajax('".base_url()."index.php/account/deactivate/$_user->user_id').done(function(){window.location='".current_url()."';});return false;")); 30 | } 31 | echo ''. 32 | ''. 33 | ''. 34 | ''. 35 | ''. 36 | ''. 37 | ''. 38 | ''. 39 | ''; 40 | } 41 | } 42 | echo "
UsernameNameFather NamePositionEmailPhone
'.html_escape($_user->username).''.html_escape($_user->first_name.' '.$_user->last_name).''.html_escape($_user->fname).''.html_escape($_user->position).''.html_escape($_user->email).''.html_escape($_user->phone).''.$actions.'
".$pagination.""; 43 | } 44 | if($this->bitauth->is_admin()) 45 | { 46 | echo '
'.anchor('account/signup', 'Add User',array('class'=>'hidden-print')).'
'; 47 | } 48 | ?> -------------------------------------------------------------------------------- /application/views/drug/check.php: -------------------------------------------------------------------------------- 1 |
2 | 18 | 23 |
-------------------------------------------------------------------------------- /application/views/drug/confirm_delete.php: -------------------------------------------------------------------------------- 1 |
2 | 23 | 44 |
-------------------------------------------------------------------------------- /application/views/drug/edit.php: -------------------------------------------------------------------------------- 1 |
2 | drug_id)){ ?> 3 |
4 | drug_id,array("id"=>"newDrugForm", "role"=>"form",)); ?> 5 |
6 | - Drug Information: 7 |
8 | 9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | - Memo: 21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
'form-control btn btn-info'));?>
30 |
31 | 32 |
33 |

Drug Not Found

'.anchor('drug', '').'
'; 36 | } 37 | ?> 38 | 39 | -------------------------------------------------------------------------------- /application/views/drug/list.php: -------------------------------------------------------------------------------- 1 | 2 | ".$pagination."
6 | 7 | 8 | 9 | 10 | 11 | 12 | "; 13 | $start = ($page-1) * $per_page; 14 | $i=0; 15 | foreach($drugs as $_drug) 16 | { 17 | if($i>=(int)$start&&$i<(int)$start+(int)$per_page) 18 | { 19 | $actions = ''; 20 | if($this->bitauth->has_role('pharmacy')) 21 | { 22 | $actions .= anchor('drug/edit/'.$_drug->drug_id, '',array('title'=>'Edit Drug')); 23 | $actions .= anchor('drug/delete/'.$_drug->drug_id, '',array('title'=>'Delete Drug')); 24 | $actions .= anchor('drug/check/'.$_drug->drug_id, '',array('title'=>'Check Availability')); 25 | } 26 | echo ''. 27 | ''. 28 | ''. 29 | ''. 30 | ''. 31 | ''. 32 | ''. 33 | ''; 34 | } 35 | $i++; 36 | } 37 | echo '
IDNameنام فارسیUnit PriceMemo
'.html_escape($_drug->drug_id).''.html_escape($_drug->drug_name_en).''.html_escape($_drug->drug_name_fa).''.html_escape($_drug->price).''.html_escape(character_limiter($_drug->memo, 50,'...')).''.$actions.'
'.$pagination.""; 38 | ?> 39 | 59 | '.anchor('drug/new_drug', 'Register new drug',array('class'=>'hidden-print')).''; 62 | ?> -------------------------------------------------------------------------------- /application/views/drug/new.php: -------------------------------------------------------------------------------- 1 |
2 |
3 | "newDrugForm", "role"=>"form",)); ?> 4 |
5 | - Drug Information: 6 |
7 | 8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | - Memo: 20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
'form-control btn btn-info'));?>
29 |
30 | 31 |
32 |
33 | -------------------------------------------------------------------------------- /application/views/drug/search.php: -------------------------------------------------------------------------------- 1 |
2 | 25 | 39 |
-------------------------------------------------------------------------------- /application/views/footer.php: -------------------------------------------------------------------------------- 1 | 4 |
5 | 6 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /application/views/header.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | <?php echo @$title ?> 8 | 9 | 10 | 11 | 12 | 13 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 39 | 40 | 41 | 42 |
43 |
44 |
45 | bitauth->logged_in()){ 47 | include_once __DIR__ . '/repository/nav.php'; 48 | }else{ 49 | include_once __DIR__ . '/repository/logo.php'; 50 | } 51 | ?> 52 |
53 | 54 |
55 |
56 | -------------------------------------------------------------------------------- /application/views/home/cp.php: -------------------------------------------------------------------------------- 1 |
2 | bitauth->get_users()) 4 | include_once __DIR__ . '/cp/admin.php'; 5 | if($this->bitauth->logged_in()) 6 | { 7 | if($this->bitauth->is_admin()) 8 | include_once __DIR__ . '/cp/admin.php'; 9 | include_once __DIR__ . '/cp/doctor.php'; 10 | if($this->bitauth->has_role('receptionist')) 11 | include_once __DIR__ . '/cp/receptionist.php'; 12 | if($this->bitauth->has_role('pharmacy')) 13 | include_once __DIR__ . '/cp/pharmacy.php'; 14 | if($this->bitauth->has_role('lab')) 15 | include_once __DIR__ . '/cp/lab.php'; 16 | if($this->bitauth->has_role('xray')) 17 | include_once __DIR__ . '/cp/xray.php'; 18 | } 19 | ?> 20 | 23 |
-------------------------------------------------------------------------------- /application/views/home/cp/admin.php: -------------------------------------------------------------------------------- 1 |
Register User',array("class"=>"btn btn-primary btn-lg", "role"=>"button")); 3 | if($this->bitauth->logged_in()) 4 | { 5 | echo anchor('account/users','
Users',array("class"=>"btn btn-primary btn-lg", "role"=>"button")); 6 | echo anchor('account/groups','
Groups',array("class"=>"btn btn-primary btn-lg", "role"=>"button")); 7 | echo anchor('account/add_group','
Create Group',array("class"=>"btn btn-primary btn-lg", "role"=>"button")); 8 | } 9 | ?> 10 | -------------------------------------------------------------------------------- /application/views/home/cp/doctor.php: -------------------------------------------------------------------------------- 1 |
Patients',array("class"=>"btn btn-info btn-lg", "role"=>"button")); 3 | echo anchor('patient/waiting','
Waiting List',array("class"=>"btn btn-info btn-lg", "role"=>"button")); 4 | ?> 5 | -------------------------------------------------------------------------------- /application/views/home/cp/lab.php: -------------------------------------------------------------------------------- 1 |
Laboratory',array("class"=>"btn btn-danger btn-lg", "role"=>"button", "title"=>"List of All Tests")); 3 | echo anchor('test/new_test','
Register New Test',array("class"=>"btn btn-danger btn-lg", "role"=>"button", "title"=>"Register New Test to Database")); 4 | ?> 5 | -------------------------------------------------------------------------------- /application/views/home/cp/pharmacy.php: -------------------------------------------------------------------------------- 1 |
Drugs',array("class"=>"btn btn-warning btn-lg", "role"=>"button", "title"=>"List of All Drugs")); 3 | echo anchor('drug/new_drug','
Register New Drug',array("class"=>"btn btn-warning btn-lg", "role"=>"button", "title"=>"Register New Drugs to Database")); 4 | echo anchor('drug/add_drug','
Add Drugs',array("class"=>"btn btn-warning btn-lg", "role"=>"button", "title"=>"Add Purchased Drugs to Database")); 5 | echo anchor('drug/return_drug','
Return Drugs',array("class"=>"btn btn-warning btn-lg", "role"=>"button", "title"=>"Return Drugs")); 6 | ?> 7 | -------------------------------------------------------------------------------- /application/views/home/cp/receptionist.php: -------------------------------------------------------------------------------- 1 |
Register Patient',array("class"=>"btn btn-success btn-lg", "role"=>"button")); 3 | ?> 4 | -------------------------------------------------------------------------------- /application/views/home/cp/xray.php: -------------------------------------------------------------------------------- 1 |
X-rays',array("class"=>"btn btn-info btn-lg", "role"=>"button", "title"=>"List of All Xrays")); 3 | echo anchor('xray/new_xray','
Register New X-ray',array("class"=>"btn btn-info btn-lg", "role"=>"button", "title"=>"Register New Xray to Database")); 4 | ?> 5 | -------------------------------------------------------------------------------- /application/views/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/views/index.php: -------------------------------------------------------------------------------- 1 | 4 |
5 | 14 |
15 | 20 |
21 | 23 | 24 | */ 25 | ?> 26 |
-------------------------------------------------------------------------------- /application/views/lab/confirm_delete.php: -------------------------------------------------------------------------------- 1 |
2 | 23 | 44 |
-------------------------------------------------------------------------------- /application/views/lab/edit.php: -------------------------------------------------------------------------------- 1 |
2 | test_id)){ ?> 3 |
4 | test_id,array("id"=>"editTestForm", "role"=>"form",)); ?> 5 |
6 | - Test Information: 7 |
8 | 9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | - Memo: 21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
'form-control btn btn-info'));?>
30 |
31 | 32 |
33 |

Test Not Found

'.anchor('test', '').'
'; 36 | } 37 | ?> 38 |
39 | -------------------------------------------------------------------------------- /application/views/lab/list.php: -------------------------------------------------------------------------------- 1 | 2 | ".$pagination."
6 | 7 | 8 | 9 | 10 | 11 | 12 | "; 13 | $start = ($page-1) * $per_page; 14 | $i=0; 15 | foreach($tests as $test) 16 | { 17 | if($i>=(int)$start&&$i<(int)$start+(int)$per_page) 18 | { 19 | $actions = ''; 20 | if($this->bitauth->has_role('lab')) 21 | { 22 | $actions .= anchor('test/edit/'.$test->test_id, '',array('title'=>'Edit Test')); 23 | $actions .= anchor('test/delete/'.$test->test_id, '',array('title'=>'Delete Test')); 24 | } 25 | echo ''. 26 | ''. 27 | ''. 28 | ''. 29 | ''. 30 | ''. 31 | ''. 32 | ''; 33 | } 34 | $i++; 35 | } 36 | echo '
IDNameنام فارسیUnit PriceMemo
'.html_escape($test->test_id).''.html_escape($test->test_name_en).''.html_escape($test->test_name_fa).''.html_escape($test->price).''.html_escape(character_limiter($test->memo, 50,'...')).''.$actions.'
'.$pagination."
"; 37 | ?> 38 | 50 | '.anchor('test/new_test', 'Register new test',array('class'=>'hidden-print')).''; 53 | ?> -------------------------------------------------------------------------------- /application/views/lab/new.php: -------------------------------------------------------------------------------- 1 |
2 |
3 | "newTestForm", "role"=>"form",)); ?> 4 |
5 | - Test Information: 6 |
7 | 8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | - Memo: 20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
'form-control btn btn-info'));?>
29 |
30 | 31 |
32 |
33 | -------------------------------------------------------------------------------- /application/views/lab/search.php: -------------------------------------------------------------------------------- 1 |
2 | 25 | 39 |
-------------------------------------------------------------------------------- /application/views/patient/comment.php: -------------------------------------------------------------------------------- 1 | comment_id."' class='well well-md'>"; 5 | echo "
".$comment->comment.'
'; 6 | echo "
Create Date: ".date('M d, Y',gmt_to_local($comment->create_date,'UP45'))."
"; 7 | echo ""; 8 | //} 9 | //} 10 | ?> -------------------------------------------------------------------------------- /application/views/patient/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/views/patient/list.php: -------------------------------------------------------------------------------- 1 | 2 | ".$pagination."
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | "; 14 | $start = ($page-1) * $per_page; 15 | $i=0; 16 | foreach ($patients as $_patient) 17 | { 18 | if($i>=(int)$start&&$i<(int)$start+(int)$per_page) 19 | { 20 | $actions = anchor('patient/panel/'.$_patient->patient_id, '',array('title'=>'Patient Control Panel')); 21 | if($this->bitauth->has_role('receptionist')) 22 | { 23 | $actions .= anchor('patient/edit_patient/'.$_patient->patient_id, '',array('title'=>'Edit Patient')); 24 | } 25 | 26 | echo ''. 27 | ''. 28 | ''. 29 | ''. 30 | ''. 33 | ''. 34 | ''; 35 | } 36 | $i++; 37 | } 38 | echo "
IDNameFather NamePhoneAgeG
'.html_escape($_patient->patient_id).''.html_escape($_patient->first_name.' '.$_patient->last_name).''.html_escape($_patient->fname).''.html_escape($_patient->phone).''; 31 | if(isset($_patient->birth_date))echo ((int)date('Y'))-((int)date('Y',$_patient->birth_date));else echo ''; echo''; 32 | if($_patient->gender) echo 'M' ;else echo 'F'; echo ''.$actions.'
".$pagination.""; 39 | } 40 | echo '
'.anchor('patient/register', 'Register Patient',array('class'=>'hidden-print')).'
'; 41 | ?> -------------------------------------------------------------------------------- /application/views/patient/panel/comments.php: -------------------------------------------------------------------------------- 1 |
2 | 18 | session->userdata('ba_user_id')==$doctor->user_id&&$status_code>1) 20 | { 21 | echo form_open('comment/add/'.$doctor->patient_doctor_id,array('id'=>'commentBox')); 22 | echo form_hidden('patient_doctor_id',$doctor->patient_doctor_id); 23 | echo form_input('comment','','class="form-control" id="comment" placeholder="Write your comment about this patient..." required'); 24 | echo form_close(); 25 | echo "

"; 26 | } 27 | if(@$comments!='unauthorized'){ 28 | echo "
"; 29 | foreach ($comments as $comment) { 30 | echo "
"; 31 | echo "
".$comment->comment.'
'; 32 | echo "
Create Date: ".date('M d, Y',gmt_to_local($comment->create_date,'UP45'))."
";//× 33 | echo "
"; 34 | } 35 | echo "
"; 36 | }else{ 37 | echo "
"; 38 | echo "
You are not authorized to view the comments.
"; 39 | echo "
"; 40 | } 41 | ?> 42 |
43 | -------------------------------------------------------------------------------- /application/views/patient/ticket.php: -------------------------------------------------------------------------------- 1 | 2 | patient_id)){ 4 | ?> 5 |
6 |
7 |
8 |
9 | first_name.' '.$patient->last_name);?>
10 | fname);?>
11 | gender?'Male':'Female';?>
12 | phone);?>
13 | birth_date));?>
14 |
15 |
16 | create_date,'UP45'));?>
17 | patient_id;?>
18 | social_id);?>
19 | first_name.' '.@$doc_info->last_name);?>
20 |
21 |
22 |
23 |
24 | ');?> 25 |
26 |

Patient Not Found

'.anchor('patient', '').'
'; 29 | } 30 | ?> -------------------------------------------------------------------------------- /application/views/patient/waiting.php: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | "; 15 | foreach($waitings as $waiting) 16 | { 17 | $this->patients->load($waiting->patient_id); 18 | $_patient=$this->patients; 19 | $_doctor=$this->bitauth->get_user_by_id($waiting->user_id); 20 | $actions = ''; 21 | if($this->bitauth->has_role('receptionist')) 22 | { 23 | $actions = anchor('patient/panel/'.$_patient->patient_id, '',array('title'=>'Patient Control Panel')); 24 | $actions .= anchor('patient/edit_patient/'.$_patient->patient_id, '',array('title'=>'Edit Patient')); 25 | } 26 | 27 | echo ''. 28 | ''. 29 | ''. 30 | ''. 31 | ''. 34 | ''. 35 | ''. 36 | ''; 37 | } 38 | echo "
IDNameFather NamePhoneAgeGDoctor
'.html_escape($_patient->patient_id).''.html_escape($_patient->first_name.' '.$_patient->last_name).''.html_escape($_patient->fname).''.html_escape($_patient->phone).''; 32 | if(isset($_patient->birth_date))echo ((int)date('Y'))-((int)date('Y',$_patient->birth_date));else echo ''; echo''; 33 | if($_patient->gender) echo 'M' ;else echo 'F'; echo ''.@$_doctor->first_name.' '.@$_doctor->last_name.''.$actions.'
"; 39 | } 40 | echo ''.anchor('patient/register', 'Register Patient',array('class'=>'hidden-print')).''; 41 | ?> -------------------------------------------------------------------------------- /application/views/report/add.php: -------------------------------------------------------------------------------- 1 |
2 | 23 | 35 |
-------------------------------------------------------------------------------- /application/views/repository/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Directory access is forbidden.

8 | 9 | 10 | -------------------------------------------------------------------------------- /application/views/repository/login.php: -------------------------------------------------------------------------------- 1 | 5 | 6 |
7 |
8 |
9 | Login 10 |
11 |

Invalid user name or password

12 |
13 |
14 | 15 | 16 |
17 |
18 | 19 | 20 |
21 |
22 | 25 |
26 | 29 |
30 | Login 31 |
32 |
33 |
34 |
35 | 36 | 37 |
38 | "loginForm", "role"=>"form",)); ?> 39 |
40 | Login 41 | 42 |
43 | 'sr-only')); 45 | echo form_input('username',null,"class='form-control' placeholder='User Name' title='User Name'"); 46 | ?> 47 |
48 |
49 | 'sr-only')); 51 | echo form_password('password',null,"class='form-control' placeholder='Password' title='Password'"); 52 | ?> 53 |
54 |
55 | 56 |
57 | 60 |
61 | 62 |
63 |
64 | 65 |
66 | -------------------------------------------------------------------------------- /application/views/repository/logo.php: -------------------------------------------------------------------------------- 1 |
2 |

3 |
4 | -------------------------------------------------------------------------------- /application/views/repository/nav/admin.php: -------------------------------------------------------------------------------- 1 | 22 | 23 | 23 | 23 | 23 | 23 | 23 | 23 | 23 |