├── system ├── .htaccess ├── fonts │ ├── texb.ttf │ └── index.html ├── index.html ├── core │ ├── index.html │ ├── Model.php │ └── Controller.php ├── database │ ├── index.html │ └── drivers │ │ ├── index.html │ │ ├── pdo │ │ ├── index.html │ │ └── pdo_utility.php │ │ ├── cubrid │ │ └── index.html │ │ ├── mssql │ │ ├── index.html │ │ └── mssql_utility.php │ │ ├── mysql │ │ └── index.html │ │ ├── mysqli │ │ ├── index.html │ │ └── mysqli_utility.php │ │ ├── oci8 │ │ ├── index.html │ │ └── oci8_utility.php │ │ ├── odbc │ │ ├── index.html │ │ └── odbc_utility.php │ │ ├── postgre │ │ ├── index.html │ │ └── postgre_utility.php │ │ ├── sqlite │ │ ├── index.html │ │ └── sqlite_utility.php │ │ └── sqlsrv │ │ ├── index.html │ │ └── sqlsrv_utility.php ├── helpers │ ├── index.html │ ├── language_helper.php │ ├── email_helper.php │ ├── path_helper.php │ ├── xml_helper.php │ ├── number_helper.php │ ├── directory_helper.php │ ├── typography_helper.php │ ├── cookie_helper.php │ ├── array_helper.php │ ├── download_helper.php │ └── security_helper.php ├── language │ ├── index.html │ └── english │ │ ├── index.html │ │ ├── number_lang.php │ │ ├── migration_lang.php │ │ ├── unit_test_lang.php │ │ ├── profiler_lang.php │ │ ├── ftp_lang.php │ │ ├── calendar_lang.php │ │ ├── upload_lang.php │ │ ├── email_lang.php │ │ ├── form_validation_lang.php │ │ ├── imglib_lang.php │ │ ├── db_lang.php │ │ └── date_lang.php └── libraries │ ├── index.html │ ├── Log.php │ └── Cache │ └── drivers │ └── Cache_dummy.php ├── application ├── .htaccess ├── cache │ ├── .htaccess │ └── index.html ├── index.html ├── core │ └── index.html ├── hooks │ ├── index.html │ └── check_login.php ├── logs │ └── index.html ├── views │ ├── index.html │ ├── service_success.php │ ├── departments │ │ ├── add.php │ │ ├── edit.php │ │ └── list.php │ ├── room-type │ │ ├── list.php │ │ ├── edit.php │ │ └── add.php │ ├── room │ │ ├── list.php │ │ ├── add.php │ │ └── edit.php │ ├── massage_room │ │ ├── add.php │ │ └── edit.php │ ├── search.php │ ├── sport_facility │ │ ├── add.php │ │ └── edit.php │ ├── medical_service │ │ ├── add.php │ │ └── edit.php │ ├── employee │ │ ├── list.php │ │ └── add.php │ ├── login.php │ ├── restaurant │ │ ├── add.php │ │ └── edit.php │ ├── customer │ │ └── add.php │ └── reservation │ │ └── list.php ├── config │ ├── index.html │ ├── profiler.php │ ├── hooks.php │ ├── doctypes.php │ ├── migration.php │ ├── constants.php │ ├── routes.php │ └── foreign_chars.php ├── errors │ ├── index.html │ ├── error_php.php │ ├── error_db.php │ ├── error_general.php │ └── error_404.php ├── helpers │ └── index.html ├── libraries │ ├── index.html │ └── user_l.php ├── models │ ├── index.html │ ├── reservation_m.php │ ├── customer_m.php │ ├── user_m.php │ ├── departments_m.php │ ├── medical_service_m.php │ ├── massage_room_m.php │ ├── sport_facility_m.php │ ├── restaurant_m.php │ └── employee_m.php ├── controllers │ ├── index.html │ ├── login.php │ ├── tugbadeneme.php │ ├── search.php │ ├── welcome.php │ ├── departments.php │ ├── service.php │ ├── massage_room.php │ └── room_type.php ├── third_party │ └── index.html └── language │ └── english │ └── index.html ├── img ├── body-bg.png ├── signin │ ├── check.png │ ├── user.png │ ├── fb_btn.png │ ├── password.png │ └── twitter_btn.png ├── message_avatar1.png ├── message_avatar2.png ├── icons-sa7c41345d9.png ├── glyphicons-halflings.html └── glyphicons-halflings-white.html ├── screenshots ├── 1.png ├── 10.png ├── 11.png ├── 2.png ├── 3.png ├── 4.png ├── 5.png ├── 6.png ├── 7.png ├── 8.png └── 9.png ├── font ├── FontAwesome.otf ├── fontawesome-webfont.eot ├── fontawesome-webfont.ttf ├── fontawesome-webfont.svgz ├── fontawesome-webfont.woff └── fontawesome-webfontd41d.eot ├── js ├── guidely │ └── guidely-number.png ├── base.js ├── signin.js └── charts │ ├── donut.js │ ├── line.js │ ├── bar.js │ ├── area.js │ └── pie.js ├── fonts ├── glyphicons-halflings-regular.eot ├── glyphicons-halflings-regular.ttf └── glyphicons-halflings-regular.woff ├── font-awesome-4.0.3 ├── fonts │ ├── FontAwesome.otf │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.ttf │ └── fontawesome-webfont.woff ├── less │ ├── fixed-width.less │ ├── core.less │ ├── bordered-pulled.less │ ├── rotated-flipped.less │ ├── larger.less │ ├── list.less │ ├── font-awesome.less │ ├── stacked.less │ ├── path.less │ ├── mixins.less │ └── spinning.less └── scss │ ├── _fixed-width.scss │ ├── _core.scss │ ├── _bordered-pulled.scss │ ├── _larger.scss │ ├── _rotated-flipped.scss │ ├── _list.scss │ ├── font-awesome.scss │ ├── _stacked.scss │ ├── _path.scss │ ├── _mixins.scss │ └── _spinning.scss ├── css ├── base-admin-responsive.css └── pages │ ├── reports.css │ └── faq.css ├── README.md ├── nginx.conf └── license.txt /system/.htaccess: -------------------------------------------------------------------------------- 1 | Deny from all -------------------------------------------------------------------------------- /application/.htaccess: -------------------------------------------------------------------------------- 1 | Deny from all -------------------------------------------------------------------------------- /application/cache/.htaccess: -------------------------------------------------------------------------------- 1 | deny from all -------------------------------------------------------------------------------- /img/body-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/img/body-bg.png -------------------------------------------------------------------------------- /screenshots/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/screenshots/1.png -------------------------------------------------------------------------------- /screenshots/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/screenshots/10.png -------------------------------------------------------------------------------- /screenshots/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/screenshots/11.png -------------------------------------------------------------------------------- /screenshots/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/screenshots/2.png -------------------------------------------------------------------------------- /screenshots/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/screenshots/3.png -------------------------------------------------------------------------------- /screenshots/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/screenshots/4.png -------------------------------------------------------------------------------- /screenshots/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/screenshots/5.png -------------------------------------------------------------------------------- /screenshots/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/screenshots/6.png -------------------------------------------------------------------------------- /screenshots/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/screenshots/7.png -------------------------------------------------------------------------------- /screenshots/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/screenshots/8.png -------------------------------------------------------------------------------- /screenshots/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/screenshots/9.png -------------------------------------------------------------------------------- /font/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/font/FontAwesome.otf -------------------------------------------------------------------------------- /img/signin/check.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/img/signin/check.png -------------------------------------------------------------------------------- /img/signin/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/img/signin/user.png -------------------------------------------------------------------------------- /img/message_avatar1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/img/message_avatar1.png -------------------------------------------------------------------------------- /img/message_avatar2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/img/message_avatar2.png -------------------------------------------------------------------------------- /img/signin/fb_btn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/img/signin/fb_btn.png -------------------------------------------------------------------------------- /img/signin/password.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/img/signin/password.png -------------------------------------------------------------------------------- /system/fonts/texb.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/system/fonts/texb.ttf -------------------------------------------------------------------------------- /img/icons-sa7c41345d9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/img/icons-sa7c41345d9.png -------------------------------------------------------------------------------- /font/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/font/fontawesome-webfont.eot -------------------------------------------------------------------------------- /font/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/font/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /img/signin/twitter_btn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/img/signin/twitter_btn.png -------------------------------------------------------------------------------- /font/fontawesome-webfont.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/font/fontawesome-webfont.svgz -------------------------------------------------------------------------------- /font/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/font/fontawesome-webfont.woff -------------------------------------------------------------------------------- /js/guidely/guidely-number.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/js/guidely/guidely-number.png -------------------------------------------------------------------------------- /font/fontawesome-webfontd41d.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/font/fontawesome-webfontd41d.eot -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /font-awesome-4.0.3/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/font-awesome-4.0.3/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /font-awesome-4.0.3/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/font-awesome-4.0.3/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /font-awesome-4.0.3/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/font-awesome-4.0.3/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /font-awesome-4.0.3/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tugbadogan/hotelmanagement/HEAD/font-awesome-4.0.3/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /system/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /application/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /font-awesome-4.0.3/less/fixed-width.less: -------------------------------------------------------------------------------- 1 | // Fixed Width Icons 2 | // ------------------------- 3 | .@{fa-css-prefix}-fw { 4 | width: (18em / 14); 5 | text-align: center; 6 | } 7 | -------------------------------------------------------------------------------- /system/core/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /system/fonts/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /application/cache/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /application/core/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /application/hooks/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /application/logs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /application/views/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /font-awesome-4.0.3/scss/_fixed-width.scss: -------------------------------------------------------------------------------- 1 | // Fixed Width Icons 2 | // ------------------------- 3 | .#{$fa-css-prefix}-fw { 4 | width: (18em / 14); 5 | text-align: center; 6 | } 7 | -------------------------------------------------------------------------------- /system/database/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /system/helpers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /system/language/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /system/libraries/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /application/config/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /application/errors/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /application/helpers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /application/libraries/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /application/models/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /application/controllers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /application/third_party/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/pdo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /system/language/english/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /application/language/english/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/cubrid/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/mssql/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/mysql/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/mysqli/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/oci8/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/odbc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/postgre/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/sqlite/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /system/database/drivers/sqlsrv/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |Directory access is forbidden.
8 | 9 | 10 | -------------------------------------------------------------------------------- /img/glyphicons-halflings.html: -------------------------------------------------------------------------------- 1 | 2 |Severity:
6 |Message:
7 |Filename:
8 |Line Number:
9 | 10 | -------------------------------------------------------------------------------- /font-awesome-4.0.3/less/core.less: -------------------------------------------------------------------------------- 1 | // Base Class Definition 2 | // ------------------------- 3 | 4 | .@{fa-css-prefix} { 5 | display: inline-block; 6 | font-family: FontAwesome; 7 | font-style: normal; 8 | font-weight: normal; 9 | line-height: 1; 10 | -webkit-font-smoothing: antialiased; 11 | -moz-osx-font-smoothing: grayscale; 12 | } 13 | -------------------------------------------------------------------------------- /font-awesome-4.0.3/scss/_core.scss: -------------------------------------------------------------------------------- 1 | // Base Class Definition 2 | // ------------------------- 3 | 4 | .#{$fa-css-prefix} { 5 | display: inline-block; 6 | font-family: FontAwesome; 7 | font-style: normal; 8 | font-weight: normal; 9 | line-height: 1; 10 | -webkit-font-smoothing: antialiased; 11 | -moz-osx-font-smoothing: grayscale; 12 | } 13 | -------------------------------------------------------------------------------- /font-awesome-4.0.3/less/bordered-pulled.less: -------------------------------------------------------------------------------- 1 | // Bordered & Pulled 2 | // ------------------------- 3 | 4 | .@{fa-css-prefix}-border { 5 | padding: .2em .25em .15em; 6 | border: solid .08em @fa-border-color; 7 | border-radius: .1em; 8 | } 9 | 10 | .pull-right { float: right; } 11 | .pull-left { float: left; } 12 | 13 | .@{fa-css-prefix} { 14 | &.pull-left { margin-right: .3em; } 15 | &.pull-right { margin-left: .3em; } 16 | } 17 | -------------------------------------------------------------------------------- /font-awesome-4.0.3/less/rotated-flipped.less: -------------------------------------------------------------------------------- 1 | // Rotated & Flipped Icons 2 | // ------------------------- 3 | 4 | .@{fa-css-prefix}-rotate-90 { .fa-icon-rotate(90deg, 1); } 5 | .@{fa-css-prefix}-rotate-180 { .fa-icon-rotate(180deg, 2); } 6 | .@{fa-css-prefix}-rotate-270 { .fa-icon-rotate(270deg, 3); } 7 | 8 | .@{fa-css-prefix}-flip-horizontal { .fa-icon-flip(-1, 1, 0); } 9 | .@{fa-css-prefix}-flip-vertical { .fa-icon-flip(1, -1, 2); } 10 | -------------------------------------------------------------------------------- /font-awesome-4.0.3/scss/_bordered-pulled.scss: -------------------------------------------------------------------------------- 1 | // Bordered & Pulled 2 | // ------------------------- 3 | 4 | .#{$fa-css-prefix}-border { 5 | padding: .2em .25em .15em; 6 | border: solid .08em $fa-border-color; 7 | border-radius: .1em; 8 | } 9 | 10 | .pull-right { float: right; } 11 | .pull-left { float: left; } 12 | 13 | .#{$fa-css-prefix} { 14 | &.pull-left { margin-right: .3em; } 15 | &.pull-right { margin-left: .3em; } 16 | } 17 | -------------------------------------------------------------------------------- /font-awesome-4.0.3/less/larger.less: -------------------------------------------------------------------------------- 1 | // Icon Sizes 2 | // ------------------------- 3 | 4 | /* makes the font 33% larger relative to the icon container */ 5 | .@{fa-css-prefix}-lg { 6 | font-size: (4em / 3); 7 | line-height: (3em / 4); 8 | vertical-align: -15%; 9 | } 10 | .@{fa-css-prefix}-2x { font-size: 2em; } 11 | .@{fa-css-prefix}-3x { font-size: 3em; } 12 | .@{fa-css-prefix}-4x { font-size: 4em; } 13 | .@{fa-css-prefix}-5x { font-size: 5em; } 14 | -------------------------------------------------------------------------------- /font-awesome-4.0.3/scss/_larger.scss: -------------------------------------------------------------------------------- 1 | // Icon Sizes 2 | // ------------------------- 3 | 4 | /* makes the font 33% larger relative to the icon container */ 5 | .#{$fa-css-prefix}-lg { 6 | font-size: (4em / 3); 7 | line-height: (3em / 4); 8 | vertical-align: -15%; 9 | } 10 | .#{$fa-css-prefix}-2x { font-size: 2em; } 11 | .#{$fa-css-prefix}-3x { font-size: 3em; } 12 | .#{$fa-css-prefix}-4x { font-size: 4em; } 13 | .#{$fa-css-prefix}-5x { font-size: 5em; } 14 | -------------------------------------------------------------------------------- /application/views/service_success.php: -------------------------------------------------------------------------------- 1 |";
30 | // $this->user_m->check_login("cihad","12345");
31 | //$this->employee_m->addEmployee("ali", "abc", "Ali", "Abc", "123456789", "x@x.com.tr", 3, "waiter", 1000, "12.12.2013");
32 | $this->employee_m->addEmployee("ayse", "123", "Ayse", "Al", "123456789", "ayse@ayse.com.tr", 3, "waiter", 1000, "22.12.2013");
33 | }
34 | }
35 |
36 | /* End of file welcome.php */
37 | /* Location: ./application/controllers/welcome.php */
--------------------------------------------------------------------------------
/application/views/departments/list.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Add Department
7 |
8 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/application/models/user_m.php:
--------------------------------------------------------------------------------
1 | db->from('employee')->join('department','employee.department_id=department.department_id')->where('employee_username', $username)->where('employee_password', $password)->get();
14 | $data = array();
15 |
16 | foreach (@$query->result() as $row)
17 | {
18 | $data[] = $row;
19 | // $row->customer_id
20 | // $row->customer_username
21 | // $data[0]->customer_id
22 | var_dump($row);
23 | }
24 | if(count($data))
25 | return $data;
26 | return false;
27 | }
28 | }
29 |
30 |
31 | // SELECT * FROM employee WHERE employee_username = '$username' AND employee_password = '$password'
32 |
33 | // $username = admin\' or 1=1--
34 | // $password = 12345
35 |
36 | // SELECT * FROM employee WHERE employee_username = 'admin' or 1=1--' AND employee_password = '12345'
37 |
38 | // $restoran_name = "Cihad'in Yeri"
39 |
40 | // SELECT * FROM restorans WHERE restoran_name = '$restoran_name'
41 | // SELECT * FROM restorans WHERE restoran_name = 'Cihad'in Yeri'
--------------------------------------------------------------------------------
/js/charts/pie.js:
--------------------------------------------------------------------------------
1 | $(function () {
2 | var data = [];
3 | var series = Math.floor(Math.random()*10)+1;
4 | var series = 4;
5 | for( var i = 0; i'+label+'
'+Math.round(series.percent)+'%';
20 | },
21 | threshold: 0.1
22 | }
23 | }
24 | },
25 | legend: {
26 | show: true,
27 | noColumns: 1, // number of colums in legend table
28 | labelFormatter: null, // fn: string -> string
29 | labelBoxBorderColor: "#888", // border color for the little label boxes
30 | container: null, // container (as jQuery object) to put legend in, null means default on top of graph
31 | position: "ne", // position of default legend container within plot
32 | margin: [5, 10], // distance from grid edge to default legend container within plot
33 | backgroundOpacity: 0 // set to 0 to avoid background
34 | },
35 | grid: {
36 | hoverable: false,
37 | clickable: false
38 | },
39 | });
40 |
41 | });
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/system/core/Model.php:
--------------------------------------------------------------------------------
1 | $key;
52 | }
53 | }
54 | // END Model Class
55 |
56 | /* End of file Model.php */
57 | /* Location: ./system/core/Model.php */
--------------------------------------------------------------------------------
/application/errors/error_404.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 404 Page Not Found
5 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
--------------------------------------------------------------------------------
/application/views/room-type/list.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Add Room Type
7 |
8 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/application/controllers/search.php:
--------------------------------------------------------------------------------
1 |
18 | * @see http://codeigniter.com/user_guide/general/urls.html
19 | */
20 |
21 | public function check_login()
22 | {
23 | if(!UID)
24 | redirect("login");
25 | }
26 |
27 | public function index()
28 | {
29 | $this->check_login();
30 |
31 | $word = $this->input->post("customer");
32 |
33 | $result = $this->report_m->search_customers($word);
34 |
35 | $data = array('title' => 'Search - DB Hotel Management System', 'page' => 'dashboard');
36 | $this->load->view('header', $data);
37 |
38 | $vdata = array(
39 | 'query' => $word,
40 | 'result' => $result
41 | );
42 | $this->load->view('search', $vdata);
43 | $this->load->view('footer');
44 | }
45 | }
46 |
47 | /* End of file welcome.php */
48 | /* Location: ./application/controllers/welcome.php */
--------------------------------------------------------------------------------
/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/views/room/list.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Add Rooms
7 |
8 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/application/views/massage_room/add.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/application/views/search.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | if(!count($result)) {
8 | ?>
9 |
10 | No Result Found For "=$query?>"
11 |
12 | } else {
13 | ?>
14 | Search Result for "=$query?>"
15 |
16 |
17 |
18 |
19 | Customer ID
20 | Customer TC
21 | Customer Name
22 |
23 |
24 |
25 |
26 |
27 | foreach (@$result as $cust) {
28 | // $emp->username
29 | ?>
30 |
31 | =$cust->customer_id?>
32 | =$cust->customer_TCno?>
33 | =$cust->customer_firstname." ".$cust->customer_lastname?>
34 |
35 |
36 | } ?>
37 |
38 |
39 | } ?>
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/application/views/sport_facility/add.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/application/views/medical_service/add.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/application/views/employee/list.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Add Employee
7 |
8 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/application/views/massage_room/edit.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/application/views/sport_facility/edit.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/system/helpers/language_helper.php:
--------------------------------------------------------------------------------
1 | lang->line($line);
46 |
47 | if ($id != '')
48 | {
49 | $line = '";
50 | }
51 |
52 | return $line;
53 | }
54 | }
55 |
56 | // ------------------------------------------------------------------------
57 | /* End of file language_helper.php */
58 | /* Location: ./system/helpers/language_helper.php */
--------------------------------------------------------------------------------
/system/language/english/calendar_lang.php:
--------------------------------------------------------------------------------
1 | db->from('department')->get();
14 | $data = array();
15 |
16 | foreach (@$query->result() as $row)
17 | {
18 | $data[] = $row;
19 | }
20 | if(count($data))
21 | return $data;
22 | return false;
23 | }
24 |
25 | function addDepartment($departmentName, $departmentBudget)
26 | {
27 | $data = array('department_name' => $departmentName, 'department_budget' => $departmentBudget);
28 | $this->db->insert('department', $data);
29 | return $this->db->affected_rows();
30 | }
31 |
32 | function deleteDepartment($department_id)
33 | {
34 | $this->db->delete('department', array('department_id' => $department_id));
35 | return $this->db->affected_rows();
36 | }
37 |
38 | function editEmployee($department_id, $departmentName, $departmentBudget)
39 | {
40 | $data = array('department_name' => $departmentName, 'department_budget' => $departmentBudget);
41 |
42 | $this->db->where('department_id', $department_id);
43 | $this->db->update('department', $data);
44 | }
45 |
46 | function getDepartment($department_id)
47 | {
48 | $query = $this->db->get_where('department', array('department_id' => $department_id));
49 | return $query->result();
50 | }
51 |
52 | }
53 |
--------------------------------------------------------------------------------
/application/views/medical_service/edit.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/application/views/room-type/edit.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
43 |
44 |
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/system/language/english/upload_lang.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
50 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/system/helpers/email_helper.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 | Reset Password
52 |
53 |
--------------------------------------------------------------------------------
/application/views/room-type/add.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/application/controllers/welcome.php:
--------------------------------------------------------------------------------
1 |
18 | * @see http://codeigniter.com/user_guide/general/urls.html
19 | */
20 |
21 | public function check_login()
22 | {
23 | if(!UID)
24 | redirect("login");
25 | }
26 |
27 | public function index()
28 | {
29 | $this->check_login();
30 |
31 | $today_stats = $this->report_m->today_stats();
32 | $customer_pay_list = $this->report_m->get_customer_freq_list();
33 | $customer_most_paid = $this->report_m->get_customer_most_paid();
34 | $next_week_freq = $this->report_m->get_next_week_freq();
35 |
36 | $data = array('title' => 'DB Hotel Management System', 'page' => 'dashboard');
37 | $this->load->view('header', $data);
38 |
39 | $viewdata = array(
40 | 'today_stats' => $today_stats,
41 | 'customer_pay_list' => $customer_pay_list,
42 | 'customer_most_paid' => $customer_most_paid,
43 | 'next_week_freq' => $next_week_freq
44 | );
45 | $this->load->view('welcome_message', $viewdata);
46 | $this->load->view('footer', array("next_week_freq"=>$next_week_freq));
47 | $this->session->set_userdata('show_guide',true);
48 | }
49 | }
50 |
51 | /* End of file welcome.php */
52 | /* Location: ./application/controllers/welcome.php */
--------------------------------------------------------------------------------
/application/config/constants.php:
--------------------------------------------------------------------------------
1 | $class)
45 | {
46 | $this->$var =& load_class($class);
47 | }
48 |
49 | $this->load =& load_class('Loader', 'core');
50 |
51 | $this->load->initialize();
52 |
53 | log_message('debug', "Controller Class Initialized");
54 | }
55 |
56 | public static function &get_instance()
57 | {
58 | return self::$instance;
59 | }
60 | }
61 | // END Controller class
62 |
63 | /* End of file Controller.php */
64 | /* Location: ./system/core/Controller.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/views/room/edit.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/application/views/restaurant/add.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/system/language/english/form_validation_lang.php:
--------------------------------------------------------------------------------
1 | db->from('medical_service')->get();
14 | $data = array();
15 |
16 | foreach (@$query->result() as $row)
17 | {
18 | $data[] = $row;
19 | }
20 | if(count($data))
21 | return $data;
22 | return false;
23 | }
24 |
25 | function addMedicalservice($medicalserviceOpenTime, $medicalserviceCloseTime, $medicalserviceDetails)
26 | {
27 | $data = array('medicalservice_open_time' => $medicalserviceOpenTime, 'medicalservice_close_time' => $medicalserviceCloseTime, 'medicalservice_details' => $medicalserviceDetails);
28 | $this->db->insert('medical_service', $data);
29 | return $this->db->affected_rows();
30 | }
31 |
32 | function deleteMedicalservice($medicalservice_id)
33 | {
34 | $this->db->delete('medical_service', array('medicalservice_id' => $medicalservice_id));
35 | return $this->db->affected_rows();
36 | }
37 |
38 | function editMedicalservice($medicalservice_id, $medicalservice_open_time, $medicalservice_close_time, $medicalservice_details)
39 | {
40 | $data = array('medicalservice_open_time' => $medicalservice_open_time, 'medicalservice_close_time' => $medicalservice_close_time, 'medicalservice_details' => $medicalservice_details);
41 |
42 | $this->db->where('medicalservice_id', $medicalservice_id);
43 | $this->db->update('medical_service', $data);
44 | }
45 |
46 | function get_medicalservice($medicalservice_id)
47 | {
48 | $query = $this->db->get_where('medical_service', array('medicalservice_id' => $medicalservice_id));
49 | return $query->result();
50 | }
51 |
52 | }
53 |
--------------------------------------------------------------------------------
/css/pages/faq.css:
--------------------------------------------------------------------------------
1 | /*------------------------------------------------------------------
2 | Bootstrap Admin Template by EGrappler.com
3 | ------------------------------------------------------------------*/
4 |
5 |
6 |
7 |
8 | .faq-search {
9 | margin-bottom: 2em;
10 |
11 | text-align: right;
12 | }
13 |
14 | .faq-search input {
15 | width: 96%;
16 | display: block;
17 | padding: 2%;
18 | }
19 |
20 |
21 |
22 | .faq-empty {
23 | display: none;
24 | }
25 |
26 |
27 |
28 | .faq-toc {
29 | padding: 1.5em 0;
30 | margin: 2em 0 0;
31 |
32 | border: 1px dotted #CCC;
33 | border-right: none;
34 | border-left: none;
35 | }
36 |
37 | .faq-toc ol {
38 | padding: 0;
39 | margin: 0;
40 | }
41 |
42 | .faq-toc li {
43 | margin-bottom: .75em;
44 |
45 | list-style: none;
46 | }
47 |
48 | .faq-toc a {
49 | margin-left: .5em;
50 | }
51 |
52 |
53 |
54 | .faq-list {
55 | padding: 0;
56 | margin: 3em 0 0;
57 |
58 | list-style: none;
59 | }
60 |
61 | .faq-list li {
62 | display: table;
63 | margin-bottom: 2em;
64 | }
65 |
66 | .faq-icon {
67 | display: table-cell;
68 | padding-right: 1.25em;
69 | vertical-align: top;
70 | }
71 |
72 | .faq-text {
73 | display: table-cell;
74 | vertical-align: top;
75 |
76 | }
77 |
78 |
79 | .faq-number {
80 | width: 32px;
81 | height: 32px;
82 |
83 | font-size: 14px;
84 | font-weight: 600;
85 | text-align: center;
86 | line-height: 32px;
87 | color: #FFF;
88 |
89 | background: #00ba8b;
90 |
91 | border: 3px solid #FFF;
92 |
93 |
94 |
95 | border-radius: 100px;
96 |
97 |
98 | }
99 |
100 |
101 |
102 |
103 | .btn-support-ask {
104 | display: block; font-size: 22px; padding: 14px 0; font-weight: 600; margin-bottom: .75em;
105 | }
106 |
107 | .btn-support-contact {
108 | display: block; padding: 12px 0; font-size: 18px; font-weight: 600;
109 | }
--------------------------------------------------------------------------------
/system/helpers/path_helper.php:
--------------------------------------------------------------------------------
1 | ","\"", "'", "-"),
53 | array("&", "<", ">", """, "'", "-"),
54 | $str);
55 |
56 | // Decode the temp markers back to entities
57 | $str = preg_replace("/$temp(\d+);/","\\1;",$str);
58 |
59 | if ($protect_all === TRUE)
60 | {
61 | $str = preg_replace("/$temp(\w+);/","&\\1;", $str);
62 | }
63 |
64 | return $str;
65 | }
66 | }
67 |
68 | // ------------------------------------------------------------------------
69 |
70 | /* End of file xml_helper.php */
71 | /* Location: ./system/helpers/xml_helper.php */
--------------------------------------------------------------------------------
/system/language/english/imglib_lang.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
50 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/system/helpers/number_helper.php:
--------------------------------------------------------------------------------
1 | lang->load('number');
43 |
44 | if ($num >= 1000000000000)
45 | {
46 | $num = round($num / 1099511627776, $precision);
47 | $unit = $CI->lang->line('terabyte_abbr');
48 | }
49 | elseif ($num >= 1000000000)
50 | {
51 | $num = round($num / 1073741824, $precision);
52 | $unit = $CI->lang->line('gigabyte_abbr');
53 | }
54 | elseif ($num >= 1000000)
55 | {
56 | $num = round($num / 1048576, $precision);
57 | $unit = $CI->lang->line('megabyte_abbr');
58 | }
59 | elseif ($num >= 1000)
60 | {
61 | $num = round($num / 1024, $precision);
62 | $unit = $CI->lang->line('kilobyte_abbr');
63 | }
64 | else
65 | {
66 | $unit = $CI->lang->line('bytes');
67 | return number_format($num).' '.$unit;
68 | }
69 |
70 | return number_format($num, $precision).' '.$unit;
71 | }
72 | }
73 |
74 |
75 | /* End of file number_helper.php */
76 | /* Location: ./system/helpers/number_helper.php */
--------------------------------------------------------------------------------
/system/database/drivers/postgre/postgre_utility.php:
--------------------------------------------------------------------------------
1 | db->display_error('db_unsuported_feature');
83 | }
84 | }
85 |
86 |
87 | /* End of file postgre_utility.php */
88 | /* Location: ./system/database/drivers/postgre/postgre_utility.php */
--------------------------------------------------------------------------------
/system/database/drivers/oci8/oci8_utility.php:
--------------------------------------------------------------------------------
1 | db->display_error('db_unsuported_feature');
83 | }
84 | }
85 |
86 | /* End of file oci8_utility.php */
87 | /* Location: ./system/database/drivers/oci8/oci8_utility.php */
--------------------------------------------------------------------------------
/system/language/english/db_lang.php:
--------------------------------------------------------------------------------
1 | db->display_error('db_unsuported_feature');
83 | }
84 |
85 | }
86 |
87 | /* End of file mssql_utility.php */
88 | /* Location: ./system/database/drivers/mssql/mssql_utility.php */
--------------------------------------------------------------------------------
/application/models/massage_room_m.php:
--------------------------------------------------------------------------------
1 | db->from('massage_room')->get();
14 | $data = array();
15 |
16 | foreach (@$query->result() as $row)
17 | {
18 | $data[] = $row;
19 | }
20 | if(count($data))
21 | return $data;
22 | return false;
23 | }
24 |
25 | function addMassageroom($massageroomOpenTime, $massageroomCloseTime, $massageroomDetails)
26 | {
27 | $data = array('massageroom_open_time' => $massageroomOpenTime, 'massageroom_close_time' => $massageroomCloseTime, 'massageroom_details' => $massageroomDetails);
28 | $this->db->insert('massage_room', $data);
29 | return $this->db->affected_rows();
30 | }
31 |
32 | function deleteMassageroom($massageroom_id)
33 | {
34 | $this->db->delete('massage_room', array('massageroom_id' => $massageroom_id));
35 | return $this->db->affected_rows();
36 | }
37 |
38 | function editMassageroom($massageroom_id, $massageroom_open_time, $massageroom_close_time, $massageroom_details)
39 | {
40 | $data = array('massageroom_open_time' => $massageroom_open_time, 'massageroom_close_time' => $massageroom_close_time, 'massageroom_details' => $massageroom_details);
41 |
42 | $this->db->where('massageroom_id', $massageroom_id);
43 | $this->db->update('massage_room', $data);
44 | }
45 |
46 | function get_massageroom($massageroom_id)
47 | {
48 | $query = $this->db->get_where('massage_room', array('massageroom_id' => $massageroom_id));
49 | return $query->result();
50 | }
51 |
52 | function add_service($massage_room, $customer, $date, $details, $price)
53 | {
54 | $data = array(
55 | 'massageroom_id' => $massage_room,
56 | 'customer_id' => $customer,
57 | 'employee_id' => UID,
58 | 'massage_date' => $date,
59 | 'massage_details' => $details,
60 | 'massage_price' => $price
61 | );
62 | $this->db->insert('massage_service', $data);
63 | }
64 | }
65 |
66 |
--------------------------------------------------------------------------------
/system/database/drivers/mysqli/mysqli_utility.php:
--------------------------------------------------------------------------------
1 | db->_escape_identifiers($table);
52 | }
53 |
54 | // --------------------------------------------------------------------
55 |
56 | /**
57 | * Repair table query
58 | *
59 | * Generates a platform-specific query so that a table can be repaired
60 | *
61 | * @access private
62 | * @param string the table name
63 | * @return object
64 | */
65 | function _repair_table($table)
66 | {
67 | return "REPAIR TABLE ".$this->db->_escape_identifiers($table);
68 | }
69 |
70 | // --------------------------------------------------------------------
71 |
72 | /**
73 | * MySQLi Export
74 | *
75 | * @access private
76 | * @param array Preferences
77 | * @return mixed
78 | */
79 | function _backup($params = array())
80 | {
81 | // Currently unsupported
82 | return $this->db->display_error('db_unsuported_feature');
83 | }
84 | }
85 |
86 | /* End of file mysqli_utility.php */
87 | /* Location: ./system/database/drivers/mysqli/mysqli_utility.php */
--------------------------------------------------------------------------------
/system/database/drivers/sqlsrv/sqlsrv_utility.php:
--------------------------------------------------------------------------------
1 | db->display_error('db_unsuported_feature');
83 | }
84 |
85 | }
86 |
87 | /* End of file mssql_utility.php */
88 | /* Location: ./system/database/drivers/mssql/mssql_utility.php */
--------------------------------------------------------------------------------
/system/helpers/directory_helper.php:
--------------------------------------------------------------------------------
1 | 0) && @is_dir($source_dir.$file))
61 | {
62 | $filedata[$file] = directory_map($source_dir.$file.DIRECTORY_SEPARATOR, $new_depth, $hidden);
63 | }
64 | else
65 | {
66 | $filedata[] = $file;
67 | }
68 | }
69 |
70 | closedir($fp);
71 | return $filedata;
72 | }
73 |
74 | return FALSE;
75 | }
76 | }
77 |
78 |
79 | /* End of file directory_helper.php */
80 | /* Location: ./system/helpers/directory_helper.php */
--------------------------------------------------------------------------------
/application/views/customer/add.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
61 |
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/application/models/sport_facility_m.php:
--------------------------------------------------------------------------------
1 | db->from('sport_facilities')->get();
14 | $data = array();
15 |
16 | foreach (@$query->result() as $row)
17 | {
18 | $data[] = $row;
19 | }
20 | if(count($data))
21 | return $data;
22 | return false;
23 | }
24 |
25 | function addSportfacility($sportfacilityOpenTime, $sportfacilityCloseTime, $sportfacilityDetails)
26 | {
27 | $data = array('sportfacility_open_time' => $sportfacilityOpenTime, 'sportfacility_close_time' => $sportfacilityCloseTime, 'sportfacility_details' => $sportfacilityDetails);
28 | $this->db->insert('sport_facilities', $data);
29 | return $this->db->affected_rows();
30 | }
31 |
32 | function deleteSportfacility($sportfacility_id)
33 | {
34 | $this->db->delete('sport_facilities', array('sportfacility_id' => $sportfacility_id));
35 | return $this->db->affected_rows();
36 | }
37 |
38 | function editSportfacility($sportfacility_id, $sportfacility_open_time, $sportfacility_close_time, $sportfacility_details)
39 | {
40 | $data = array('sportfacility_open_time' => $sportfacility_open_time, 'sportfacility_close_time' => $sportfacility_close_time, 'sportfacility_details' => $sportfacility_details);
41 |
42 | $this->db->where('sportfacility_id', $sportfacility_id);
43 | $this->db->update('sport_facilities', $data);
44 | }
45 |
46 | function get_sportfacility($sportfacility_id)
47 | {
48 | $query = $this->db->get_where('sport_facilities', array('sportfacility_id' => $sportfacility_id));
49 | return $query->result();
50 | }
51 | function add_service($sport_facility, $customer, $date, $details, $price)
52 | {
53 | $data = array(
54 | 'sportfacility_id' => $sport_facility,
55 | 'customer_id' => $customer,
56 | 'employee_id' => UID,
57 | 'dosport_date' => $date,
58 | 'dosport_details' => $details,
59 | 'dosport_price' => $price
60 | );
61 | $this->db->insert('do_sport', $data);
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/application/models/restaurant_m.php:
--------------------------------------------------------------------------------
1 | db->from('restaurant')->get();
14 | $data = array();
15 |
16 | foreach (@$query->result() as $row)
17 | {
18 | $data[] = $row;
19 | }
20 | if(count($data))
21 | return $data;
22 | return false;
23 | }
24 |
25 | function addRestaurant($restaurantName, $restaurantOpenTime, $restaurantCloseTime, $restaurantDetails, $tableCount)
26 | {
27 | $data = array('restaurant_name' => $restaurantName, 'restaurant_open_time' => $restaurantOpenTime, 'restaurant_close_time' => $restaurantCloseTime, 'restaurant_details' => $restaurantDetails, 'table_count' => $tableCount);
28 | $this->db->insert('restaurant', $data);
29 | return $this->db->affected_rows();
30 | }
31 |
32 | function deleteRestaurant($restaurant_name)
33 | {
34 | $this->db->delete('restaurant', array('restaurant_name' => $restaurant_name));
35 | return $this->db->affected_rows();
36 | }
37 |
38 | function editRestaurant($restaurant_name, $restaurant_open_time, $restaurant_close_time, $restaurant_details, $tableCount)
39 | {
40 | $data = array('restaurant_name' => $restaurant_name, 'restaurant_open_time' => $restaurant_open_time, 'restaurant_close_time' => $restaurant_close_time, 'restaurant_details' => $restaurant_details, 'table_count' => $tableCount);
41 |
42 | $this->db->where('restaurant_name', $restaurant_name);
43 | $this->db->update('restaurant', $data);
44 | }
45 |
46 | function getRestaurant($restaurant_name)
47 | {
48 | $query = $this->db->get_where('restaurant', array('restaurant_name' => $restaurant_name));
49 | return $query->result();
50 | }
51 |
52 | function add_service($restaurant, $customer, $date, $table_num, $price)
53 | {
54 | $data = array(
55 | 'restaurant_name' => $restaurant,
56 | 'customer_id' => $customer,
57 | 'book_date' => $date,
58 | 'table_number' => $table_num,
59 | 'book_price' => $price
60 | );
61 | $this->db->insert('restaurant_booking', $data);
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/application/views/reservation/list.php:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
65 |
66 |
67 |
--------------------------------------------------------------------------------
/system/database/drivers/sqlite/sqlite_utility.php:
--------------------------------------------------------------------------------
1 | db_debug)
41 | {
42 | return $this->db->display_error('db_unsuported_feature');
43 | }
44 | return array();
45 | }
46 |
47 | // --------------------------------------------------------------------
48 |
49 | /**
50 | * Optimize table query
51 | *
52 | * Is optimization even supported in SQLite?
53 | *
54 | * @access private
55 | * @param string the table name
56 | * @return object
57 | */
58 | function _optimize_table($table)
59 | {
60 | return FALSE;
61 | }
62 |
63 | // --------------------------------------------------------------------
64 |
65 | /**
66 | * Repair table query
67 | *
68 | * Are table repairs even supported in SQLite?
69 | *
70 | * @access private
71 | * @param string the table name
72 | * @return object
73 | */
74 | function _repair_table($table)
75 | {
76 | return FALSE;
77 | }
78 |
79 | // --------------------------------------------------------------------
80 |
81 | /**
82 | * SQLite Export
83 | *
84 | * @access private
85 | * @param array Preferences
86 | * @return mixed
87 | */
88 | function _backup($params = array())
89 | {
90 | // Currently unsupported
91 | return $this->db->display_error('db_unsuported_feature');
92 | }
93 | }
94 |
95 | /* End of file sqlite_utility.php */
96 | /* Location: ./system/database/drivers/sqlite/sqlite_utility.php */
--------------------------------------------------------------------------------
/system/helpers/typography_helper.php:
--------------------------------------------------------------------------------
1 | load->library('typography');
44 |
45 | return $CI->typography->nl2br_except_pre($str);
46 | }
47 | }
48 |
49 | // ------------------------------------------------------------------------
50 |
51 | /**
52 | * Auto Typography Wrapper Function
53 | *
54 | *
55 | * @access public
56 | * @param string
57 | * @param bool whether to allow javascript event handlers
58 | * @param bool whether to reduce multiple instances of double newlines to two
59 | * @return string
60 | */
61 | if ( ! function_exists('auto_typography'))
62 | {
63 | function auto_typography($str, $strip_js_event_handlers = TRUE, $reduce_linebreaks = FALSE)
64 | {
65 | $CI =& get_instance();
66 | $CI->load->library('typography');
67 | return $CI->typography->auto_typography($str, $strip_js_event_handlers, $reduce_linebreaks);
68 | }
69 | }
70 |
71 |
72 | // --------------------------------------------------------------------
73 |
74 | /**
75 | * HTML Entities Decode
76 | *
77 | * This function is a replacement for html_entity_decode()
78 | *
79 | * @access public
80 | * @param string
81 | * @return string
82 | */
83 | if ( ! function_exists('entity_decode'))
84 | {
85 | function entity_decode($str, $charset='UTF-8')
86 | {
87 | global $SEC;
88 | return $SEC->entity_decode($str, $charset);
89 | }
90 | }
91 |
92 | /* End of file typography_helper.php */
93 | /* Location: ./system/helpers/typography_helper.php */
--------------------------------------------------------------------------------
/license.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) 2008 - 2011, EllisLab, Inc.
2 | All rights reserved.
3 |
4 | This license is a legal agreement between you and EllisLab Inc. for the use
5 | of CodeIgniter Software (the "Software"). By obtaining the Software you
6 | agree to comply with the terms and conditions of this license.
7 |
8 | PERMITTED USE
9 | You are permitted to use, copy, modify, and distribute the Software and its
10 | documentation, with or without modification, for any purpose, provided that
11 | the following conditions are met:
12 |
13 | 1. A copy of this license agreement must be included with the distribution.
14 |
15 | 2. Redistributions of source code must retain the above copyright notice in
16 | all source code files.
17 |
18 | 3. Redistributions in binary form must reproduce the above copyright notice
19 | in the documentation and/or other materials provided with the distribution.
20 |
21 | 4. Any files that have been modified must carry notices stating the nature
22 | of the change and the names of those who changed them.
23 |
24 | 5. Products derived from the Software must include an acknowledgment that
25 | they are derived from CodeIgniter in their documentation and/or other
26 | materials provided with the distribution.
27 |
28 | 6. Products derived from the Software may not be called "CodeIgniter",
29 | nor may "CodeIgniter" appear in their name, without prior written
30 | permission from EllisLab, Inc.
31 |
32 | INDEMNITY
33 | You agree to indemnify and hold harmless the authors of the Software and
34 | any contributors for any direct, indirect, incidental, or consequential
35 | third-party claims, actions or suits, as well as any related expenses,
36 | liabilities, damages, settlements or fees arising from your use or misuse
37 | of the Software, or a violation of any terms of this license.
38 |
39 | DISCLAIMER OF WARRANTY
40 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR
41 | IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF QUALITY, PERFORMANCE,
42 | NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
43 |
44 | LIMITATIONS OF LIABILITY
45 | YOU ASSUME ALL RISK ASSOCIATED WITH THE INSTALLATION AND USE OF THE SOFTWARE.
46 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS OF THE SOFTWARE BE LIABLE
47 | FOR CLAIMS, DAMAGES OR OTHER LIABILITY ARISING FROM, OUT OF, OR IN CONNECTION
48 | WITH THE SOFTWARE. LICENSE HOLDERS ARE SOLELY RESPONSIBLE FOR DETERMINING THE
49 | APPROPRIATENESS OF USE AND ASSUME ALL RISKS ASSOCIATED WITH ITS USE, INCLUDING
50 | BUT NOT LIMITED TO THE RISKS OF PROGRAM ERRORS, DAMAGE TO EQUIPMENT, LOSS OF
51 | DATA OR SOFTWARE PROGRAMS, OR UNAVAILABILITY OR INTERRUPTION OF OPERATIONS.
52 |
--------------------------------------------------------------------------------
/system/database/drivers/pdo/pdo_utility.php:
--------------------------------------------------------------------------------
1 | db->db_debug)
37 | {
38 | return $this->db->display_error('db_unsuported_feature');
39 | }
40 | return FALSE;
41 | }
42 |
43 | // --------------------------------------------------------------------
44 |
45 | /**
46 | * Optimize table query
47 | *
48 | * Generates a platform-specific query so that a table can be optimized
49 | *
50 | * @access private
51 | * @param string the table name
52 | * @return object
53 | */
54 | function _optimize_table($table)
55 | {
56 | // Not a supported PDO feature
57 | if ($this->db->db_debug)
58 | {
59 | return $this->db->display_error('db_unsuported_feature');
60 | }
61 | return FALSE;
62 | }
63 |
64 | // --------------------------------------------------------------------
65 |
66 | /**
67 | * Repair table query
68 | *
69 | * Generates a platform-specific query so that a table can be repaired
70 | *
71 | * @access private
72 | * @param string the table name
73 | * @return object
74 | */
75 | function _repair_table($table)
76 | {
77 | // Not a supported PDO feature
78 | if ($this->db->db_debug)
79 | {
80 | return $this->db->display_error('db_unsuported_feature');
81 | }
82 | return FALSE;
83 | }
84 |
85 | // --------------------------------------------------------------------
86 |
87 | /**
88 | * PDO Export
89 | *
90 | * @access private
91 | * @param array Preferences
92 | * @return mixed
93 | */
94 | function _backup($params = array())
95 | {
96 | // Currently unsupported
97 | return $this->db->display_error('db_unsuported_feature');
98 | }
99 |
100 | }
101 |
102 | /* End of file pdo_utility.php */
103 | /* Location: ./system/database/drivers/pdo/pdo_utility.php */
--------------------------------------------------------------------------------
/system/database/drivers/odbc/odbc_utility.php:
--------------------------------------------------------------------------------
1 | db->db_debug)
37 | {
38 | return $this->db->display_error('db_unsuported_feature');
39 | }
40 | return FALSE;
41 | }
42 |
43 | // --------------------------------------------------------------------
44 |
45 | /**
46 | * Optimize table query
47 | *
48 | * Generates a platform-specific query so that a table can be optimized
49 | *
50 | * @access private
51 | * @param string the table name
52 | * @return object
53 | */
54 | function _optimize_table($table)
55 | {
56 | // Not a supported ODBC feature
57 | if ($this->db->db_debug)
58 | {
59 | return $this->db->display_error('db_unsuported_feature');
60 | }
61 | return FALSE;
62 | }
63 |
64 | // --------------------------------------------------------------------
65 |
66 | /**
67 | * Repair table query
68 | *
69 | * Generates a platform-specific query so that a table can be repaired
70 | *
71 | * @access private
72 | * @param string the table name
73 | * @return object
74 | */
75 | function _repair_table($table)
76 | {
77 | // Not a supported ODBC feature
78 | if ($this->db->db_debug)
79 | {
80 | return $this->db->display_error('db_unsuported_feature');
81 | }
82 | return FALSE;
83 | }
84 |
85 | // --------------------------------------------------------------------
86 |
87 | /**
88 | * ODBC Export
89 | *
90 | * @access private
91 | * @param array Preferences
92 | * @return mixed
93 | */
94 | function _backup($params = array())
95 | {
96 | // Currently unsupported
97 | return $this->db->display_error('db_unsuported_feature');
98 | }
99 |
100 | }
101 |
102 | /* End of file odbc_utility.php */
103 | /* Location: ./system/database/drivers/odbc/odbc_utility.php */
--------------------------------------------------------------------------------
/application/models/employee_m.php:
--------------------------------------------------------------------------------
1 | db->from('employee')->join('department', 'department.department_id=employee.department_id')->get();
14 | $data = array();
15 |
16 | foreach (@$query->result() as $row)
17 | {
18 | $data[] = $row;
19 | // $row->customer_id
20 | // $row->customer_username
21 | // $data[0]->customer_id
22 | }
23 | if(count($data))
24 | return $data;
25 | return false;
26 | }
27 |
28 | function addEmployee($username, $password, $firstname, $lastname, $telephone, $email, $departmentid, $employee_type, $employee_salary, $employee_hiring_date)
29 | {
30 | $data = array('employee_username' => $username, 'employee_password' => $password, 'employee_firstname' => $firstname, 'employee_lastname' => $lastname, 'employee_telephone' => $telephone, 'employee_email' => $email, 'department_id' => $departmentid, 'employee_type' => $employee_type, 'employee_salary' => $employee_salary, 'employee_hiring_date' => $employee_hiring_date);
31 | $this->db->insert('employee', $data);
32 | return $this->db->affected_rows();
33 | }
34 |
35 | function deleteEmployee($employee_id)
36 | {
37 | $this->db->delete('employee', array('employee_id' => $employee_id));
38 | return $this->db->affected_rows();
39 | }
40 |
41 | function editEmployee($employee_id, $username, $password, $firstname, $lastname, $telephone, $email, $department_id, $employee_type, $employee_salary, $employee_hiring_date)
42 | {
43 | $data = array('employee_username' => $username, 'employee_password' => $password, 'employee_firstname' => $firstname, 'employee_lastname' => $lastname, 'employee_telephone' => $telephone, 'employee_email' => $email, 'department_id' => $department_id, 'employee_type' => $employee_type, 'employee_salary' => $employee_salary, 'employee_hiring_date' => $employee_hiring_date);
44 |
45 | $this->db->where('employee_id', $employee_id);
46 | $this->db->update('employee', $data);
47 | }
48 |
49 | function getEmployee($employee_id)
50 | {
51 | $query = $this->db->get_where('employee', array('employee_id' => $employee_id));
52 | return $query->result();
53 | }
54 |
55 | function getDepartments()
56 | {
57 | $query = $this->db->from('department')->get();
58 | $data = array();
59 |
60 | foreach ($query->result() as $row)
61 | {
62 | $data[] = $row;
63 | // $row->customer_id
64 | // $row->customer_username
65 | // $data[0]->customer_id
66 | }
67 | if(count($data))
68 | return $data;
69 | return false;
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/application/views/employee/add.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
80 |
81 |
82 |
83 |
84 |
--------------------------------------------------------------------------------
/application/controllers/departments.php:
--------------------------------------------------------------------------------
1 |
18 | * @see http://codeigniter.com/user_guide/general/urls.html
19 | */
20 |
21 | public function check_login()
22 | {
23 | if(!UID)
24 | redirect("login");
25 | }
26 |
27 | public function add()
28 | {
29 |
30 | if($this->input->post("departmentName"))
31 | {
32 | $departmentName = $this->input->post("departmentName");
33 | $departmentBudget = $this->input->post("departmentBudget");
34 |
35 | $this->departments_m->addDepartment($departmentName, $departmentBudget);
36 | redirect("/departments");
37 | }
38 |
39 | $data = array('title' => 'Add Department - DB Hotel Management System', 'page' => 'departments');
40 | $this->load->view('header', $data);
41 | $departments = $this->departments_m->get_departments();
42 | $viewdata = array('departments' => $departments);
43 | $this->load->view('departments/add',$viewdata);
44 | $this->load->view('footer');
45 | }
46 |
47 | function delete($department_id)
48 | {
49 | $this->departments_m->deleteDepartment($department_id);
50 | redirect("/departments");
51 | }
52 |
53 | public function edit($department_id)
54 | {
55 | if($this->input->post("departmentName"))
56 | {
57 | $departmenName = $this->input->post("departmentName");
58 | $departmentBudget = $this->input->post("departmentBudget");
59 |
60 | $this->departments_m->editEmployee($department_id, $departmenName, $departmentBudget);
61 | redirect("/departments");
62 | }
63 |
64 | $data = array('title' => 'Edit Department - DB Hotel Management System', 'page' => 'departments');
65 | $this->load->view('header', $data);
66 |
67 | $department = $this->departments_m->getDepartment($department_id);
68 |
69 | $viewdata = array('department' => $department[0]);
70 |
71 | $this->load->view('departments/edit',$viewdata);
72 |
73 | $this->load->view('footer');
74 | }
75 |
76 | public function index()
77 | {
78 | $departments = $this->departments_m->get_departments();
79 |
80 | $viewdata = array('departments' => $departments);
81 |
82 | $data = array('title' => 'Departments - DB Hotel Management System', 'page' => 'departments');
83 | $this->load->view('header', $data);
84 | $this->load->view('departments/list',$viewdata);
85 | $this->load->view('footer');
86 | }
87 | }
88 |
89 | /* End of file welcome.php */
90 | /* Location: ./application/controllers/welcome.php */
--------------------------------------------------------------------------------
/application/controllers/service.php:
--------------------------------------------------------------------------------
1 |
18 | * @see http://codeigniter.com/user_guide/general/urls.html
19 | */
20 |
21 | public function check_login()
22 | {
23 | if(!UID)
24 | redirect("login");
25 | }
26 |
27 | public function restaurant()
28 | {
29 | $this->check_login();
30 | $restaurant = $this->input->post("restaurant");
31 | $customer = $this->input->post("customer");
32 | $date = $this->input->post("date");
33 | $table_num = $this->input->post("table_num");
34 | $price = $this->input->post("price");
35 |
36 | $this->restaurant_m->add_service($restaurant, $customer, $date, $table_num, $price);
37 |
38 | $data = array('page' => 'restaurant', 'title' => 'Add Restaurant Service');
39 | $vdata = array('type' => 'restaurant');
40 | $this->load->view("header", $data);
41 | $this->load->view('service_success', $vdata);
42 | $this->load->view('footer');
43 | }
44 |
45 | public function massage_room()
46 | {
47 | $this->check_login();
48 | $massage = $this->input->post("massage");
49 | $customer = $this->input->post("customer");
50 | $date = $this->input->post("date");
51 | $details = $this->input->post("details");
52 | $price = $this->input->post("price");
53 |
54 | $this->massage_room_m->add_service($massage, $customer, $date, $details, $price);
55 |
56 | $data = array('page' => 'massage_room', 'title' => 'Add Massage Service');
57 | $vdata = array('type' => 'massage_room');
58 | $this->load->view("header", $data);
59 | $this->load->view('service_success', $vdata);
60 | $this->load->view('footer');
61 | }
62 |
63 | public function sport_facility()
64 | {
65 | $this->check_login();
66 | $sport = $this->input->post("sport");
67 | $customer = $this->input->post("customer");
68 | $date = $this->input->post("date");
69 | $details = $this->input->post("details");
70 | $price = $this->input->post("price");
71 |
72 | $this->sport_facility_m->add_service($sport, $customer, $date, $details, $price);
73 |
74 | $data = array('page' => 'sport_facility', 'title' => 'Add Sport Service');
75 | $vdata = array('type' => 'sport_facility');
76 | $this->load->view("header", $data);
77 | $this->load->view('service_success', $vdata);
78 | $this->load->view('footer');
79 | }
80 |
81 |
82 | }
83 |
84 | /* End of file welcome.php */
85 | /* Location: ./application/controllers/welcome.php */
--------------------------------------------------------------------------------
/system/helpers/cookie_helper.php:
--------------------------------------------------------------------------------
1 | input->set_cookie($name, $value, $expire, $domain, $path, $prefix, $secure);
52 | }
53 | }
54 |
55 | // --------------------------------------------------------------------
56 |
57 | /**
58 | * Fetch an item from the COOKIE array
59 | *
60 | * @access public
61 | * @param string
62 | * @param bool
63 | * @return mixed
64 | */
65 | if ( ! function_exists('get_cookie'))
66 | {
67 | function get_cookie($index = '', $xss_clean = FALSE)
68 | {
69 | $CI =& get_instance();
70 |
71 | $prefix = '';
72 |
73 | if ( ! isset($_COOKIE[$index]) && config_item('cookie_prefix') != '')
74 | {
75 | $prefix = config_item('cookie_prefix');
76 | }
77 |
78 | return $CI->input->cookie($prefix.$index, $xss_clean);
79 | }
80 | }
81 |
82 | // --------------------------------------------------------------------
83 |
84 | /**
85 | * Delete a COOKIE
86 | *
87 | * @param mixed
88 | * @param string the cookie domain. Usually: .yourdomain.com
89 | * @param string the cookie path
90 | * @param string the cookie prefix
91 | * @return void
92 | */
93 | if ( ! function_exists('delete_cookie'))
94 | {
95 | function delete_cookie($name = '', $domain = '', $path = '/', $prefix = '')
96 | {
97 | set_cookie($name, '', '', $domain, $path, $prefix);
98 | }
99 | }
100 |
101 |
102 | /* End of file cookie_helper.php */
103 | /* Location: ./system/helpers/cookie_helper.php */
--------------------------------------------------------------------------------
/system/helpers/array_helper.php:
--------------------------------------------------------------------------------
1 | '1', 'DEBUG' => '2', 'INFO' => '3', 'ALL' => '4');
34 |
35 | /**
36 | * Constructor
37 | */
38 | public function __construct()
39 | {
40 | $config =& get_config();
41 |
42 | $this->_log_path = ($config['log_path'] != '') ? $config['log_path'] : APPPATH.'logs/';
43 |
44 | if ( ! is_dir($this->_log_path) OR ! is_really_writable($this->_log_path))
45 | {
46 | $this->_enabled = FALSE;
47 | }
48 |
49 | if (is_numeric($config['log_threshold']))
50 | {
51 | $this->_threshold = $config['log_threshold'];
52 | }
53 |
54 | if ($config['log_date_format'] != '')
55 | {
56 | $this->_date_fmt = $config['log_date_format'];
57 | }
58 | }
59 |
60 | // --------------------------------------------------------------------
61 |
62 | /**
63 | * Write Log File
64 | *
65 | * Generally this function will be called using the global log_message() function
66 | *
67 | * @param string the error level
68 | * @param string the error message
69 | * @param bool whether the error is a native PHP error
70 | * @return bool
71 | */
72 | public function write_log($level = 'error', $msg, $php_error = FALSE)
73 | {
74 | if ($this->_enabled === FALSE)
75 | {
76 | return FALSE;
77 | }
78 |
79 | $level = strtoupper($level);
80 |
81 | if ( ! isset($this->_levels[$level]) OR ($this->_levels[$level] > $this->_threshold))
82 | {
83 | return FALSE;
84 | }
85 |
86 | $filepath = $this->_log_path.'log-'.date('Y-m-d').'.php';
87 | $message = '';
88 |
89 | if ( ! file_exists($filepath))
90 | {
91 | $message .= "<"."?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?".">\n\n";
92 | }
93 |
94 | if ( ! $fp = @fopen($filepath, FOPEN_WRITE_CREATE))
95 | {
96 | return FALSE;
97 | }
98 |
99 | $message .= $level.' '.(($level == 'INFO') ? ' -' : '-').' '.date($this->_date_fmt). ' --> '.$msg."\n";
100 |
101 | flock($fp, LOCK_EX);
102 | fwrite($fp, $message);
103 | flock($fp, LOCK_UN);
104 | fclose($fp);
105 |
106 | @chmod($filepath, FILE_WRITE_MODE);
107 | return TRUE;
108 | }
109 |
110 | }
111 | // END Log Class
112 |
113 | /* End of file Log.php */
114 | /* Location: ./system/libraries/Log.php */
--------------------------------------------------------------------------------
/application/controllers/massage_room.php:
--------------------------------------------------------------------------------
1 |
18 | * @see http://codeigniter.com/user_guide/general/urls.html
19 | */
20 |
21 | public function check_login()
22 | {
23 | if(!UID)
24 | redirect("login");
25 | }
26 |
27 | public function add()
28 | {
29 |
30 | if($this->input->post("massageroomOpenTime"))
31 | {
32 | $massageroomOpenTime = $this->input->post("massageroomOpenTime");
33 | $massageroomCloseTime = $this->input->post("massageroomCloseTime");
34 | $massageroomDetails = $this->input->post("massageroomDetails");
35 |
36 | $this->massage_room_m->addMassageroom($massageroomOpenTime, $massageroomCloseTime, $massageroomDetails);
37 | redirect("/massage_room");
38 | }
39 |
40 | $data = array('title' => 'Add Massage Room - DB Hotel Management System', 'page' => 'massage_room');
41 | $this->load->view('header', $data);
42 | $this->load->view('massage_room/add');
43 | $this->load->view('footer');
44 | }
45 |
46 | function delete($massageroom_id)
47 | {
48 | $this->massage_room_m->deleteMassageroom($massageroom_id);
49 | redirect("/massage_room");
50 | }
51 |
52 | public function edit($massageroom_id)
53 | {
54 | if($this->input->post("massageroomOpenTime"))
55 | {
56 | $massageroom_open_time = $this->input->post("massageroomOpenTime");
57 | $massageroom_close_time = $this->input->post("massageroomCloseTime");
58 | $massageroom_details = $this->input->post("massageroomDetails");
59 |
60 | $this->massage_room_m->editMassageroom($massageroom_id, $massageroom_open_time, $massageroom_close_time, $massageroom_details);
61 | redirect("/massage_room");
62 | }
63 | $data = array('title' => 'Edit Massage Room - DB Hotel Management System', 'page' => 'massage_room');
64 | $this->load->view('header', $data);
65 | $Massagerooms = $this->massage_room_m->get_massageroom($massageroom_id);
66 | $viewdata = array('massage_room' => $Massagerooms[0]);
67 | $this->load->view('massage_room/edit',$viewdata);
68 |
69 | $this->load->view('footer');
70 | }
71 |
72 | public function index()
73 | {
74 | $massageRooms = $this->massage_room_m->get_massageRooms();
75 | $customers = $this->customer_m->get_active_customers();
76 |
77 | $viewdata = array('massageRooms' => $massageRooms, 'customers' => $customers);
78 |
79 | $data = array('title' => 'Massage Room - DB Hotel Management System', 'page' => 'massage_room');
80 | $this->load->view('header', $data);
81 | $this->load->view('massage_room/list',$viewdata);
82 | $this->load->view('footer');
83 | }
84 | }
85 |
86 | /* End of file welcome.php */
87 | /* Location: ./application/controllers/welcome.php */
--------------------------------------------------------------------------------
/system/helpers/download_helper.php:
--------------------------------------------------------------------------------
1 | security->xss_clean($str, $is_image);
44 | }
45 | }
46 |
47 | // ------------------------------------------------------------------------
48 |
49 | /**
50 | * Sanitize Filename
51 | *
52 | * @access public
53 | * @param string
54 | * @return string
55 | */
56 | if ( ! function_exists('sanitize_filename'))
57 | {
58 | function sanitize_filename($filename)
59 | {
60 | $CI =& get_instance();
61 | return $CI->security->sanitize_filename($filename);
62 | }
63 | }
64 |
65 | // --------------------------------------------------------------------
66 |
67 | /**
68 | * Hash encode a string
69 | *
70 | * @access public
71 | * @param string
72 | * @return string
73 | */
74 | if ( ! function_exists('do_hash'))
75 | {
76 | function do_hash($str, $type = 'sha1')
77 | {
78 | if ($type == 'sha1')
79 | {
80 | return sha1($str);
81 | }
82 | else
83 | {
84 | return md5($str);
85 | }
86 | }
87 | }
88 |
89 | // ------------------------------------------------------------------------
90 |
91 | /**
92 | * Strip Image Tags
93 | *
94 | * @access public
95 | * @param string
96 | * @return string
97 | */
98 | if ( ! function_exists('strip_image_tags'))
99 | {
100 | function strip_image_tags($str)
101 | {
102 | $str = preg_replace("#
#", "\\1", $str);
103 | $str = preg_replace("#
#", "\\1", $str);
104 |
105 | return $str;
106 | }
107 | }
108 |
109 | // ------------------------------------------------------------------------
110 |
111 | /**
112 | * Convert PHP tags to entities
113 | *
114 | * @access public
115 | * @param string
116 | * @return string
117 | */
118 | if ( ! function_exists('encode_php_tags'))
119 | {
120 | function encode_php_tags($str)
121 | {
122 | return str_replace(array(''), array('<?php', '<?PHP', '<?', '?>'), $str);
123 | }
124 | }
125 |
126 |
127 | /* End of file security_helper.php */
128 | /* Location: ./system/helpers/security_helper.php */
--------------------------------------------------------------------------------
/system/libraries/Cache/drivers/Cache_dummy.php:
--------------------------------------------------------------------------------
1 |
18 | * @see http://codeigniter.com/user_guide/general/urls.html
19 | */
20 |
21 | public function check_login()
22 | {
23 | if(!UID)
24 | redirect("login");
25 | }
26 |
27 | public function add()
28 | {
29 |
30 | $viewdata = array();
31 |
32 | if($this->input->post("type") && $this->input->post("price") /*&& $this->input->post("quantity")*/)
33 | {
34 |
35 | $type = $this->input->post("type");
36 | $price = $this->input->post("price");
37 | $details = $this->input->post("details");
38 | $quantity = $this->input->post("quantity");
39 |
40 | if(count($this->room_m->getRoomType($type))==0) {
41 | $this->room_m->addRoomType($type, $price, $details, $quantity);
42 | redirect("/room-type");
43 | }
44 | else {
45 | $viewdata['error'] = "Room type alread exists";
46 | }
47 | }
48 |
49 | $data = array('title' => 'Add Room Type - DB Hotel Management System', 'page' => 'room_type');
50 | $this->load->view('header', $data);
51 | $this->load->view('room-type/add', $viewdata);
52 | $this->load->view('footer');
53 | }
54 |
55 | function delete($room_type)
56 | {
57 | $this->room_m->deleteRoomType($room_type);
58 | redirect("/room-type");
59 | }
60 |
61 | public function edit($room_type)
62 | {
63 | if($this->input->post("type") && $this->input->post("price") /*&& $this->input->post("quantity")*/)
64 | {
65 |
66 | $type = $this->input->post("type");
67 | $price = $this->input->post("price");
68 | $details = $this->input->post("details");
69 | $quantity = $this->input->post("quantity");
70 |
71 | $this->room_m->editRoomType($type, $price, $details, $quantity);
72 | redirect("/room-type");
73 | }
74 |
75 | $data = array('title' => 'Edit Room Type - DB Hotel Management System', 'page' => 'room_type');
76 | $this->load->view('header', $data);
77 |
78 | $room_type = $this->room_m->getRoomType($room_type);
79 |
80 | $viewdata = array('room_type' => $room_type[0]);
81 | $this->load->view('room-type/edit',$viewdata);
82 |
83 | $this->load->view('footer');
84 | }
85 |
86 | public function index()
87 | {
88 | $room_types = $this->room_m->get_room_types();
89 |
90 | $viewdata = array('room_types' => $room_types);
91 |
92 | $data = array('title' => 'Rooms - DB Hotel Management System', 'page' => 'room_type');
93 | $this->load->view('header', $data);
94 | $this->load->view('room-type/list',$viewdata);
95 | $this->load->view('footer');
96 | }
97 | }
98 |
99 | /* End of file welcome.php */
100 | /* Location: ./application/controllers/welcome.php */
--------------------------------------------------------------------------------
/system/language/english/date_lang.php:
--------------------------------------------------------------------------------
1 |