├── img ├── logo.jpg ├── login-bg.jpg └── ts-avatar.jpg ├── admin ├── img │ ├── logo.jpg │ ├── login-bg.jpg │ └── ts-avatar.jpg ├── fonts │ ├── FontAwesome.otf │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.ttf │ ├── fontawesome-webfont.woff │ ├── fontawesome-webfont.woff2 │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 ├── logout.php ├── includes │ ├── config.php │ ├── checklogin.php │ ├── pdoconfig.php │ ├── dbcontroller.php │ ├── header.php │ └── sidebar.php ├── css │ ├── css │ │ └── vars.css │ ├── less │ │ └── vars.less │ ├── fileinput.min.css │ ├── dataTables.bootstrap.min.css │ ├── style.less │ ├── bootstrap-select.css │ └── awesome-bootstrap-checkbox.css ├── get_seater.php ├── js │ ├── main.js │ ├── dataTables.bootstrap.min.js │ └── chartData.js ├── check_availability.php ├── index.php ├── access-log.php ├── manage-rooms.php ├── add-courses.php ├── manage-courses.php ├── edit-room.php ├── edit-course.php ├── create-room.php ├── manage-students.php ├── hostel.css ├── dashboard.php ├── admin-profile.php └── hostel.sql ├── pswrd.txt ├── fonts ├── FontAwesome.otf ├── fontawesome-webfont.eot ├── fontawesome-webfont.ttf ├── fontawesome-webfont.woff ├── fontawesome-webfont.woff2 ├── glyphicons-halflings-regular.eot ├── glyphicons-halflings-regular.ttf ├── glyphicons-halflings-regular.woff └── glyphicons-halflings-regular.woff2 ├── logout.php ├── includes ├── config.php ├── checklogin.php ├── pdoconfig.php ├── dbcontroller.php ├── header.php └── sidebar.php ├── css ├── css │ └── vars.css ├── less │ └── vars.less ├── fileinput.min.css ├── dataTables.bootstrap.min.css ├── style.less ├── bootstrap-select.css └── awesome-bootstrap-checkbox.css ├── get_seater.php ├── js ├── main.js ├── dataTables.bootstrap.min.js └── chartData.js ├── check_availability.php ├── README.md ├── forgot-password.php ├── access-log.php ├── dashboard.php ├── login.php ├── index.php ├── hostel.css ├── room-details.php ├── change-password.php ├── registration.php └── my-profile.php /img/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spjagrit/Hostel_Management_System/HEAD/img/logo.jpg -------------------------------------------------------------------------------- /img/login-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spjagrit/Hostel_Management_System/HEAD/img/login-bg.jpg -------------------------------------------------------------------------------- /img/ts-avatar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spjagrit/Hostel_Management_System/HEAD/img/ts-avatar.jpg -------------------------------------------------------------------------------- /admin/img/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spjagrit/Hostel_Management_System/HEAD/admin/img/logo.jpg -------------------------------------------------------------------------------- /pswrd.txt: -------------------------------------------------------------------------------- 1 | Login Details for admin : admin/Test@1234 2 | Login Details for user : test@gmail.com/Test@123 -------------------------------------------------------------------------------- /admin/img/login-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spjagrit/Hostel_Management_System/HEAD/admin/img/login-bg.jpg -------------------------------------------------------------------------------- /fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spjagrit/Hostel_Management_System/HEAD/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /admin/img/ts-avatar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spjagrit/Hostel_Management_System/HEAD/admin/img/ts-avatar.jpg -------------------------------------------------------------------------------- /admin/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spjagrit/Hostel_Management_System/HEAD/admin/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spjagrit/Hostel_Management_System/HEAD/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spjagrit/Hostel_Management_System/HEAD/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spjagrit/Hostel_Management_System/HEAD/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spjagrit/Hostel_Management_System/HEAD/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /admin/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spjagrit/Hostel_Management_System/HEAD/admin/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /admin/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spjagrit/Hostel_Management_System/HEAD/admin/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /admin/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spjagrit/Hostel_Management_System/HEAD/admin/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /admin/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spjagrit/Hostel_Management_System/HEAD/admin/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /logout.php: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /admin/logout.php: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spjagrit/Hostel_Management_System/HEAD/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spjagrit/Hostel_Management_System/HEAD/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spjagrit/Hostel_Management_System/HEAD/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spjagrit/Hostel_Management_System/HEAD/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /admin/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spjagrit/Hostel_Management_System/HEAD/admin/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /admin/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spjagrit/Hostel_Management_System/HEAD/admin/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /admin/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spjagrit/Hostel_Management_System/HEAD/admin/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /admin/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Spjagrit/Hostel_Management_System/HEAD/admin/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /includes/config.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /admin/includes/config.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /css/css/vars.css: -------------------------------------------------------------------------------- 1 | @import url(http://fonts.googleapis.com/css?family=Lato:300,400,700,900,100italic,300italic,400italic); 2 | @import url(https://fonts.googleapis.com/css?family=Oswald:700,400,300); 3 | -------------------------------------------------------------------------------- /admin/css/css/vars.css: -------------------------------------------------------------------------------- 1 | @import url(http://fonts.googleapis.com/css?family=Lato:300,400,700,900,100italic,300italic,400italic); 2 | @import url(https://fonts.googleapis.com/css?family=Oswald:700,400,300); 3 | -------------------------------------------------------------------------------- /includes/checklogin.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /admin/includes/checklogin.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /includes/pdoconfig.php: -------------------------------------------------------------------------------- 1 | setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); 10 | } 11 | catch(PDOException $e) 12 | { 13 | $e->getMessage(); 14 | } 15 | ?> -------------------------------------------------------------------------------- /admin/includes/pdoconfig.php: -------------------------------------------------------------------------------- 1 | setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); 10 | } 11 | catch(PDOException $e) 12 | { 13 | $e->getMessage(); 14 | } 15 | ?> -------------------------------------------------------------------------------- /includes/dbcontroller.php: -------------------------------------------------------------------------------- 1 | setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); 10 | } 11 | catch(PDOException $e) 12 | { 13 | $e->getMessage(); 14 | } 15 | ?> -------------------------------------------------------------------------------- /admin/includes/dbcontroller.php: -------------------------------------------------------------------------------- 1 | setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); 10 | } 11 | catch(PDOException $e) 12 | { 13 | $e->getMessage(); 14 | } 15 | ?> -------------------------------------------------------------------------------- /admin/includes/header.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 13 |
-------------------------------------------------------------------------------- /get_seater.php: -------------------------------------------------------------------------------- 1 | prepare("SELECT * FROM rooms WHERE room_no = :id"); 7 | $stmt->execute(array(':id' => $id)); 8 | ?> 9 | fetch(PDO::FETCH_ASSOC)) 11 | { 12 | ?> 13 | 14 | prepare("SELECT * FROM rooms WHERE room_no = :id"); 24 | $stmt->execute(array(':id' => $id)); 25 | ?> 26 | fetch(PDO::FETCH_ASSOC)) 28 | { 29 | ?> 30 | 31 | -------------------------------------------------------------------------------- /admin/get_seater.php: -------------------------------------------------------------------------------- 1 | prepare("SELECT * FROM rooms WHERE room_no = :id"); 7 | $stmt->execute(array(':id' => $id)); 8 | ?> 9 | fetch(PDO::FETCH_ASSOC)) 11 | { 12 | ?> 13 | 14 | prepare("SELECT * FROM rooms WHERE room_no = :id"); 24 | $stmt->execute(array(':id' => $id)); 25 | ?> 26 | fetch(PDO::FETCH_ASSOC)) 28 | { 29 | ?> 30 | 31 | -------------------------------------------------------------------------------- /includes/header.php: -------------------------------------------------------------------------------- 1 | 2 |
4 | 5 | 6 | 15 |
16 | 17 | 19 |
20 | 21 | 22 | 23 |
24 | -------------------------------------------------------------------------------- /js/main.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function () { 2 | 3 | $(".ts-sidebar-menu li a").each(function () { 4 | if ($(this).next().length > 0) { 5 | $(this).addClass("parent"); 6 | }; 7 | }) 8 | var menux = $('.ts-sidebar-menu li a.parent'); 9 | $('
').insertBefore(menux); 10 | $('.more').click(function () { 11 | $(this).parent('li').toggleClass('open'); 12 | }); 13 | $('.parent').click(function (e) { 14 | e.preventDefault(); 15 | $(this).parent('li').toggleClass('open'); 16 | }); 17 | $('.menu-btn').click(function () { 18 | $('nav.ts-sidebar').toggleClass('menu-open'); 19 | }); 20 | 21 | 22 | $('#zctb').DataTable(); 23 | 24 | 25 | $("#input-43").fileinput({ 26 | showPreview: false, 27 | allowedFileExtensions: ["zip", "rar", "gz", "tgz"], 28 | elErrorContainer: "#errorBlock43" 29 | // you can configure `msgErrorClass` and `msgInvalidFileExtension` as well 30 | }); 31 | 32 | }); 33 | -------------------------------------------------------------------------------- /admin/js/main.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function () { 2 | 3 | $(".ts-sidebar-menu li a").each(function () { 4 | if ($(this).next().length > 0) { 5 | $(this).addClass("parent"); 6 | }; 7 | }) 8 | var menux = $('.ts-sidebar-menu li a.parent'); 9 | $('
').insertBefore(menux); 10 | $('.more').click(function () { 11 | $(this).parent('li').toggleClass('open'); 12 | }); 13 | $('.parent').click(function (e) { 14 | e.preventDefault(); 15 | $(this).parent('li').toggleClass('open'); 16 | }); 17 | $('.menu-btn').click(function () { 18 | $('nav.ts-sidebar').toggleClass('menu-open'); 19 | }); 20 | 21 | 22 | $('#zctb').DataTable(); 23 | 24 | 25 | $("#input-43").fileinput({ 26 | showPreview: false, 27 | allowedFileExtensions: ["zip", "rar", "gz", "tgz"], 28 | elErrorContainer: "#errorBlock43" 29 | // you can configure `msgErrorClass` and `msgInvalidFileExtension` as well 30 | }); 31 | 32 | }); 33 | -------------------------------------------------------------------------------- /admin/includes/sidebar.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /includes/sidebar.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /admin/check_availability.php: -------------------------------------------------------------------------------- 1 | prepare($result); 10 | $stmt->bind_param('i',$roomno); 11 | $stmt->execute(); 12 | $stmt->bind_result($count); 13 | $stmt->fetch(); 14 | $stmt->close(); 15 | if($count>0) 16 | echo "$count. Seats already full."; 17 | else 18 | echo "All Seats are Available"; 19 | } 20 | 21 | if(!empty($_POST["oldpassword"])) 22 | { 23 | $pass=$_POST["oldpassword"]; 24 | $result ="SELECT password FROM userregistration WHERE password=?"; 25 | $stmt = $mysqli->prepare($result); 26 | $stmt->bind_param('s',$pass); 27 | $stmt->execute(); 28 | $stmt -> bind_result($result); 29 | $stmt -> fetch(); 30 | $opass=$result; 31 | if($opass==$pass) 32 | echo " Password matched ."; 33 | else echo " Password Not matched"; 34 | } 35 | ?> 36 | -------------------------------------------------------------------------------- /css/less/vars.less: -------------------------------------------------------------------------------- 1 | // Import Fonts 2 | @import url(http://fonts.googleapis.com/css?family=Lato:300,400,700,900,100italic,300italic,400italic); 3 | @import url(https://fonts.googleapis.com/css?family=Oswald:700,400,300); 4 | 5 | @secondary-font: 'Lato', sans-serif; 6 | //@secondary-font: 'Oswald', sans-serif; 7 | @primary-font: 'Oswald', sans-serif; 8 | 9 | 10 | // Layout Breakpoints 11 | @highdensity: ~"only screen and (-webkit-min-device-pixel-ratio: 1.5)", 12 | ~"only screen and (min--moz-device-pixel-ratio: 1.5)", 13 | ~"only screen and (-o-min-device-pixel-ratio: 3/2)", 14 | ~"only screen and (min-device-pixel-ratio: 1.5)"; 15 | @mobile: ~"only screen and (max-width: 479px)"; 16 | @tablet: ~"only screen and (min-width: 480px)"; 17 | @desktop: ~"only screen and (min-width: 992px)"; 18 | @desktop-xl: ~"only screen and (min-width: 1200px)"; 19 | 20 | // Brand Colors 21 | @background: #fff; 22 | @color1: #37a6c4; 23 | @color2: #ff962f; 24 | @color3: #25292a; 25 | 26 | 27 | @color-primary: #325d88; 28 | @color-success: #93c54b; 29 | @color-warning: #f47c3c; 30 | @color-danger: #d9534f; 31 | @color-info: #29abe0; 32 | 33 | @selection: #4f5362; -------------------------------------------------------------------------------- /admin/css/less/vars.less: -------------------------------------------------------------------------------- 1 | // Import Fonts 2 | @import url(http://fonts.googleapis.com/css?family=Lato:300,400,700,900,100italic,300italic,400italic); 3 | @import url(https://fonts.googleapis.com/css?family=Oswald:700,400,300); 4 | 5 | @secondary-font: 'Lato', sans-serif; 6 | //@secondary-font: 'Oswald', sans-serif; 7 | @primary-font: 'Oswald', sans-serif; 8 | 9 | 10 | // Layout Breakpoints 11 | @highdensity: ~"only screen and (-webkit-min-device-pixel-ratio: 1.5)", 12 | ~"only screen and (min--moz-device-pixel-ratio: 1.5)", 13 | ~"only screen and (-o-min-device-pixel-ratio: 3/2)", 14 | ~"only screen and (min-device-pixel-ratio: 1.5)"; 15 | @mobile: ~"only screen and (max-width: 479px)"; 16 | @tablet: ~"only screen and (min-width: 480px)"; 17 | @desktop: ~"only screen and (min-width: 992px)"; 18 | @desktop-xl: ~"only screen and (min-width: 1200px)"; 19 | 20 | // Brand Colors 21 | @background: #fff; 22 | @color1: #37a6c4; 23 | @color2: #ff962f; 24 | @color3: #25292a; 25 | 26 | 27 | @color-primary: #325d88; 28 | @color-success: #93c54b; 29 | @color-warning: #f47c3c; 30 | @color-danger: #d9534f; 31 | @color-info: #29abe0; 32 | 33 | @selection: #4f5362; -------------------------------------------------------------------------------- /check_availability.php: -------------------------------------------------------------------------------- 1 | prepare($result); 12 | $stmt->bind_param('s',$email); 13 | $stmt->execute(); 14 | $stmt->bind_result($count); 15 | $stmt->fetch(); 16 | $stmt->close(); 17 | if($count>0) 18 | { 19 | echo " Email already exist ."; 20 | } 21 | else{ 22 | echo " Email available for registration ."; 23 | } 24 | } 25 | } 26 | 27 | if(!empty($_POST["oldpassword"])) 28 | { 29 | $pass=$_POST["oldpassword"]; 30 | $result ="SELECT password FROM userregistration WHERE password=?"; 31 | $stmt = $mysqli->prepare($result); 32 | $stmt->bind_param('s',$pass); 33 | $stmt->execute(); 34 | $stmt -> bind_result($result); 35 | $stmt -> fetch(); 36 | $opass=$result; 37 | if($opass==$pass) 38 | echo " Password matched ."; 39 | else echo " Password Not matched"; 40 | } 41 | 42 | 43 | if(!empty($_POST["roomno"])) 44 | { 45 | $roomno=$_POST["roomno"]; 46 | $result ="SELECT count(*) FROM registration WHERE roomno=?"; 47 | $stmt = $mysqli->prepare($result); 48 | $stmt->bind_param('i',$roomno); 49 | $stmt->execute(); 50 | $stmt->bind_result($count); 51 | $stmt->fetch(); 52 | $stmt->close(); 53 | if($count>0) 54 | echo "$count. Seats already full."; 55 | else 56 | echo "All Seats are Available"; 57 | } 58 | ?> -------------------------------------------------------------------------------- /js/dataTables.bootstrap.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | DataTables Bootstrap 3 integration 3 | ©2011-2015 SpryMedia Ltd - datatables.net/license 4 | */ 5 | (function(b){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(a){return b(a,window,document)}):"object"===typeof exports?module.exports=function(a,d){a||(a=window);if(!d||!d.fn.dataTable)d=require("datatables.net")(a,d).$;return b(d,a,a.document)}:b(jQuery,window,document)})(function(b,a,d){var f=b.fn.dataTable;b.extend(!0,f.defaults,{dom:"<'row'<'col-sm-6'l><'col-sm-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-5'i><'col-sm-7'p>>",renderer:"bootstrap"});b.extend(f.ext.classes, 6 | {sWrapper:"dataTables_wrapper form-inline dt-bootstrap",sFilterInput:"form-control input-sm",sLengthSelect:"form-control input-sm",sProcessing:"dataTables_processing panel panel-default"});f.ext.renderer.pageButton.bootstrap=function(a,h,r,m,j,n){var o=new f.Api(a),s=a.oClasses,k=a.oLanguage.oPaginate,t=a.oLanguage.oAria.paginate||{},e,g,p=0,q=function(d,f){var l,h,i,c,m=function(a){a.preventDefault();!b(a.currentTarget).hasClass("disabled")&&o.page()!=a.data.action&&o.page(a.data.action).draw("page")}; 7 | l=0;for(h=f.length;l",{"class":s.sPageButton+" "+g,id:0===r&&"string"===typeof c?a.sTableId+"_"+c:null}).append(b("",{href:"#", 8 | "aria-controls":a.sTableId,"aria-label":t[c],"data-dt-idx":p,tabindex:a.iTabIndex}).html(e)).appendTo(d),a.oApi._fnBindAction(i,{action:c},m),p++)}},i;try{i=b(h).find(d.activeElement).data("dt-idx")}catch(u){}q(b(h).empty().html('