├── .gitattributes ├── home_page ├── css │ ├── modal1.css │ ├── responsiveslides.css │ └── home.css ├── images │ ├── 10.jpg │ ├── 6.jpg │ ├── 7.jpg │ ├── 8.jpg │ ├── 9.jpg │ ├── sl3.jpg │ ├── Thumbs.db │ ├── clogo.jpg │ ├── logo.jpg │ ├── mem1.jpg │ ├── mem2.jpg │ └── plogo.jpg └── js │ ├── move-top.js │ ├── responsiveslides.min.js │ └── easing.js ├── about ├── demo │ ├── 1.jpg │ ├── 2.jpg │ ├── 3.jpg │ ├── 4.jpg │ ├── 01.jpg │ ├── 02.jpg │ ├── 03.jpg │ ├── 04.jpg │ ├── 05.jpg │ ├── 06.jpg │ ├── 07.jpg │ ├── 08.jpg │ ├── pic1.jpg │ ├── pic2.jpg │ ├── Thumbs.db │ └── about.jpg ├── css │ ├── images │ │ ├── bg1.png │ │ ├── Thumbs.db │ │ ├── btnNext.png │ │ ├── loader.gif │ │ ├── sprite.png │ │ ├── sprite_x.png │ │ ├── sprite_y.png │ │ ├── btnPrevious.png │ │ ├── sprite_next.png │ │ ├── sprite_prev.png │ │ ├── contentPattern.png │ │ ├── contentPatternLeft.png │ │ ├── contentPatternTop.png │ │ ├── default_thumbnail.gif │ │ ├── contentPatternBottom.png │ │ └── contentPatternRight.png │ └── fonts │ │ ├── FontAwesome.otf │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.ttf │ │ ├── fontawesome-webfont.woff │ │ └── fontawesome-webfont.woff2 ├── js │ ├── jquery.inview.min.js │ ├── custom-scripts.js │ └── wow.min.js └── about.html ├── images ├── Thumbs.db ├── reply.png ├── Invoice.png ├── category.jpg ├── confirm.png ├── payment.png ├── prescri.jpg ├── admin_icon.jpg ├── hd_invoice.jpg ├── invoic_ 1.jpg ├── main_logo.jpg ├── patients_1.png ├── stock_icon.jpg ├── u27082107.jpg ├── cashier_icon.jpg ├── delete-icon.jpg ├── manager_icon.png ├── patients-icon.gif ├── update-icon.png ├── Text-Edit-icon.png ├── pharmacist_icon.jpg └── Valid PBS Public Hospital Prescription with a non-PBS medicine prescribed.jpg ├── js ├── Liberation_Sans_font.js ├── tests │ ├── server.js │ ├── unit │ │ ├── bootstrap-transition.js │ │ ├── bootstrap-affix.js │ │ ├── bootstrap-phantom.js │ │ ├── bootstrap-scrollspy.js │ │ ├── bootstrap-alert.js │ │ ├── bootstrap-tab.js │ │ ├── bootstrap-carousel.js │ │ ├── bootstrap-collapse.js │ │ ├── bootstrap-button.js │ │ ├── bootstrap-dropdown.js │ │ ├── bootstrap-modal.js │ │ └── bootstrap-popover.js │ ├── index.html │ ├── phantom.js │ └── vendor │ │ └── qunit.css ├── function1.js ├── function.js ├── google-code-prettify │ └── prettify.css ├── bootstrap-transition.js ├── jquery.pngFix.pack.js ├── bootstrap-alert.js ├── bootstrap-button.js ├── superfish │ ├── hoverIntent.js │ ├── supersubs.js │ └── superfish.js ├── bootstrap-popover.js ├── bootstrap-affix.js ├── README.md ├── bootstrap-tab.js ├── validation_script.js ├── bootstrap-dropdown.js ├── bootstrap-scrollspy.js ├── bootstrap-collapse.js └── application.js ├── connect_db.php ├── logout.php ├── delete_stock.php ├── delete_invoice.php ├── delete_cashier.php ├── delete_manager.php ├── delete_payment.php ├── delete_pharmacist.php ├── delete_prescription.php ├── style ├── table.css ├── style.css ├── mystyle.css └── mystyle_login.css ├── README.md ├── cashier.php ├── pharmacist.php ├── admin.php ├── manager.php ├── view_prescription.php ├── update_cashier.php ├── update_manager.php ├── update_pharmacist.php ├── update_stock.php ├── payment.php ├── prescription.php ├── stock.php ├── stock_pharmacist.php └── index.php /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /home_page/css/modal1.css: -------------------------------------------------------------------------------- 1 | .modalDialog { 2 | 3 | 4 | .modalDialog:target { 5 | 6 | } -------------------------------------------------------------------------------- /about/demo/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/demo/1.jpg -------------------------------------------------------------------------------- /about/demo/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/demo/2.jpg -------------------------------------------------------------------------------- /about/demo/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/demo/3.jpg -------------------------------------------------------------------------------- /about/demo/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/demo/4.jpg -------------------------------------------------------------------------------- /images/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/images/Thumbs.db -------------------------------------------------------------------------------- /images/reply.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/images/reply.png -------------------------------------------------------------------------------- /about/demo/01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/demo/01.jpg -------------------------------------------------------------------------------- /about/demo/02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/demo/02.jpg -------------------------------------------------------------------------------- /about/demo/03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/demo/03.jpg -------------------------------------------------------------------------------- /about/demo/04.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/demo/04.jpg -------------------------------------------------------------------------------- /about/demo/05.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/demo/05.jpg -------------------------------------------------------------------------------- /about/demo/06.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/demo/06.jpg -------------------------------------------------------------------------------- /about/demo/07.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/demo/07.jpg -------------------------------------------------------------------------------- /about/demo/08.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/demo/08.jpg -------------------------------------------------------------------------------- /about/demo/pic1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/demo/pic1.jpg -------------------------------------------------------------------------------- /about/demo/pic2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/demo/pic2.jpg -------------------------------------------------------------------------------- /images/Invoice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/images/Invoice.png -------------------------------------------------------------------------------- /images/category.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/images/category.jpg -------------------------------------------------------------------------------- /images/confirm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/images/confirm.png -------------------------------------------------------------------------------- /images/payment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/images/payment.png -------------------------------------------------------------------------------- /images/prescri.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/images/prescri.jpg -------------------------------------------------------------------------------- /about/demo/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/demo/Thumbs.db -------------------------------------------------------------------------------- /about/demo/about.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/demo/about.jpg -------------------------------------------------------------------------------- /images/admin_icon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/images/admin_icon.jpg -------------------------------------------------------------------------------- /images/hd_invoice.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/images/hd_invoice.jpg -------------------------------------------------------------------------------- /images/invoic_ 1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/images/invoic_ 1.jpg -------------------------------------------------------------------------------- /images/main_logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/images/main_logo.jpg -------------------------------------------------------------------------------- /images/patients_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/images/patients_1.png -------------------------------------------------------------------------------- /images/stock_icon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/images/stock_icon.jpg -------------------------------------------------------------------------------- /images/u27082107.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/images/u27082107.jpg -------------------------------------------------------------------------------- /about/css/images/bg1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/css/images/bg1.png -------------------------------------------------------------------------------- /home_page/images/10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/home_page/images/10.jpg -------------------------------------------------------------------------------- /home_page/images/6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/home_page/images/6.jpg -------------------------------------------------------------------------------- /home_page/images/7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/home_page/images/7.jpg -------------------------------------------------------------------------------- /home_page/images/8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/home_page/images/8.jpg -------------------------------------------------------------------------------- /home_page/images/9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/home_page/images/9.jpg -------------------------------------------------------------------------------- /home_page/images/sl3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/home_page/images/sl3.jpg -------------------------------------------------------------------------------- /images/cashier_icon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/images/cashier_icon.jpg -------------------------------------------------------------------------------- /images/delete-icon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/images/delete-icon.jpg -------------------------------------------------------------------------------- /images/manager_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/images/manager_icon.png -------------------------------------------------------------------------------- /images/patients-icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/images/patients-icon.gif -------------------------------------------------------------------------------- /images/update-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/images/update-icon.png -------------------------------------------------------------------------------- /about/css/images/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/css/images/Thumbs.db -------------------------------------------------------------------------------- /home_page/images/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/home_page/images/Thumbs.db -------------------------------------------------------------------------------- /home_page/images/clogo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/home_page/images/clogo.jpg -------------------------------------------------------------------------------- /home_page/images/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/home_page/images/logo.jpg -------------------------------------------------------------------------------- /home_page/images/mem1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/home_page/images/mem1.jpg -------------------------------------------------------------------------------- /home_page/images/mem2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/home_page/images/mem2.jpg -------------------------------------------------------------------------------- /home_page/images/plogo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/home_page/images/plogo.jpg -------------------------------------------------------------------------------- /images/Text-Edit-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/images/Text-Edit-icon.png -------------------------------------------------------------------------------- /images/pharmacist_icon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/images/pharmacist_icon.jpg -------------------------------------------------------------------------------- /js/Liberation_Sans_font.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/js/Liberation_Sans_font.js -------------------------------------------------------------------------------- /about/css/images/btnNext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/css/images/btnNext.png -------------------------------------------------------------------------------- /about/css/images/loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/css/images/loader.gif -------------------------------------------------------------------------------- /about/css/images/sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/css/images/sprite.png -------------------------------------------------------------------------------- /about/css/images/sprite_x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/css/images/sprite_x.png -------------------------------------------------------------------------------- /about/css/images/sprite_y.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/css/images/sprite_y.png -------------------------------------------------------------------------------- /about/css/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/css/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /about/css/images/btnPrevious.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/css/images/btnPrevious.png -------------------------------------------------------------------------------- /about/css/images/sprite_next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/css/images/sprite_next.png -------------------------------------------------------------------------------- /about/css/images/sprite_prev.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/css/images/sprite_prev.png -------------------------------------------------------------------------------- /about/css/images/contentPattern.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/css/images/contentPattern.png -------------------------------------------------------------------------------- /about/css/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/css/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /about/css/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/css/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /about/css/images/contentPatternLeft.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/css/images/contentPatternLeft.png -------------------------------------------------------------------------------- /about/css/images/contentPatternTop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/css/images/contentPatternTop.png -------------------------------------------------------------------------------- /about/css/images/default_thumbnail.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/css/images/default_thumbnail.gif -------------------------------------------------------------------------------- /about/css/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/css/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /about/css/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/css/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /about/css/images/contentPatternBottom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/css/images/contentPatternBottom.png -------------------------------------------------------------------------------- /about/css/images/contentPatternRight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/about/css/images/contentPatternRight.png -------------------------------------------------------------------------------- /connect_db.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /images/Valid PBS Public Hospital Prescription with a non-PBS medicine prescribed.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abhishekkt15/Pharmacy-Management-System/HEAD/images/Valid PBS Public Hospital Prescription with a non-PBS medicine prescribed.jpg -------------------------------------------------------------------------------- /js/tests/server.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Simple connect server for phantom.js 3 | * Adapted from Modernizr 4 | */ 5 | 6 | var connect = require('connect') 7 | , http = require('http') 8 | , fs = require('fs') 9 | , app = connect() 10 | .use(connect.static(__dirname + '/../../')); 11 | 12 | http.createServer(app).listen(3000); 13 | 14 | fs.writeFileSync(__dirname + '/pid.txt', process.pid, 'utf-8') -------------------------------------------------------------------------------- /logout.php: -------------------------------------------------------------------------------- 1 | 13 | -------------------------------------------------------------------------------- /js/tests/unit/bootstrap-transition.js: -------------------------------------------------------------------------------- 1 | $(function () { 2 | 3 | module("bootstrap-transition") 4 | 5 | test("should be defined on jquery support object", function () { 6 | ok($.support.transition !== undefined, 'transition object is defined') 7 | }) 8 | 9 | test("should provide an end object", function () { 10 | ok($.support.transition ? $.support.transition.end : true, 'end string is defined') 11 | }) 12 | 13 | }) -------------------------------------------------------------------------------- /delete_stock.php: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /delete_invoice.php: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /delete_cashier.php: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /delete_manager.php: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /delete_payment.php: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /delete_pharmacist.php: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /delete_prescription.php: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /style/table.css: -------------------------------------------------------------------------------- 1 | /*Collapse Borders*/ 2 | table 3 | { 4 | border-collapse:collapse; 5 | } 6 | table,th 7 | { 8 | border: 2px solid blue; 9 | } 10 | th 11 | { 12 | background-color: #00CED1; 13 | color:white; 14 | } 15 | .uneditable-input, 16 | .uneditable-textarea { 17 | color: #999999; 18 | cursor: not-allowed; 19 | background-color: #fcfcfc; 20 | border-color: #cccccc; 21 | -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); 22 | -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); 23 | box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); 24 | } -------------------------------------------------------------------------------- /js/function1.js: -------------------------------------------------------------------------------- 1 | /*Activates the Tabs*/ 2 | function tabSwitch(new_tab, new_content) { 3 | 4 | document.getElementById('content_1').style.display = 'none'; 5 | document.getElementById('content_2').style.display = 'none'; 6 | document.getElementById('content_3').style.display = 'none'; 7 | document.getElementById(new_content).style.display = 'block'; 8 | document.getElementById('tab_1').className = ''; 9 | document.getElementById('tab_2').className = ''; 10 | document.getElementById('tab_3').className = ''; 11 | document.getElementById(new_tab).className = 'active'; 12 | } 13 | -------------------------------------------------------------------------------- /js/function.js: -------------------------------------------------------------------------------- 1 | /*Activates the Tabs*/ 2 | function tabSwitch(new_tab, new_content) { 3 | 4 | document.getElementById('content_1').style.display = 'none'; 5 | document.getElementById('content_2').style.display = 'none'; 6 | /*document.getElementById('content_3').style.display = 'none';*/ 7 | document.getElementById(new_content).style.display = 'block'; 8 | document.getElementById('tab_1').className = ''; 9 | document.getElementById('tab_2').className = ''; 10 | /*document.getElementById('tab_3').className = ''; */ 11 | document.getElementById(new_tab).className = 'active'; 12 | } 13 | -------------------------------------------------------------------------------- /js/tests/unit/bootstrap-affix.js: -------------------------------------------------------------------------------- 1 | $(function () { 2 | 3 | module("bootstrap-affix") 4 | 5 | test("should be defined on jquery object", function () { 6 | ok($(document.body).affix, 'affix method is defined') 7 | }) 8 | 9 | test("should return element", function () { 10 | ok($(document.body).affix()[0] == document.body, 'document.body returned') 11 | }) 12 | 13 | test("should exit early if element is not visible", function () { 14 | var $affix = $('
').affix() 15 | $affix.data('affix').checkPosition() 16 | ok(!$affix.hasClass('affix'), 'affix class was not added') 17 | }) 18 | 19 | }) -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Pharmacy Management System 2 | Installation Steps(Configuration) 3 | 1. Download and Unzip file on your local system. 4 | 2. Put Pharmacy-Management-System folder inside root directory 5 | 6 | Database Configuration 7 | 8 | Open phpmyadmin 9 | Create Database pms 10 | Import database pms.sql 11 | 12 | Login and Password Details of Pharmacy-Management-System 13 | 14 | Login Details for admin : 15 | Username: admin 16 | Password: admin 17 | 18 | Login Details for pharmacist : 19 | Username: abhi 20 | password: abhi 21 | 22 | Login Details for manager : 23 | Username: vinay 24 | password: vinay 25 | 26 | Login Details for cashier : 27 | Username: abc 28 | password: abc 29 | -------------------------------------------------------------------------------- /home_page/css/responsiveslides.css: -------------------------------------------------------------------------------- 1 | /*! http://responsiveslides.com v1.53 by @viljamis */ 2 | 3 | .rslides { 4 | position: relative; 5 | list-style: none; 6 | overflow: hidden; 7 | padding: 0; 8 | margin: 0; 9 | z-index: -1; 10 | } 11 | 12 | .rslides li { 13 | -webkit-backface-visibility: hidden; 14 | position: absolute; 15 | display: none; 16 | 17 | left: 0; 18 | top: 0; 19 | z-index: -1; 20 | } 21 | 22 | .rslides li:first-child { 23 | position: relative; 24 | display: block; 25 | float: left; 26 | 27 | z-index: -1; 28 | } 29 | 30 | .rslides img { 31 | 32 | display: block; 33 | height: auto; 34 | float: left; 35 | border: 0; 36 | width: 1336px; 37 | height: 375px; 38 | z-index: -1; 39 | } 40 | -------------------------------------------------------------------------------- /js/tests/unit/bootstrap-phantom.js: -------------------------------------------------------------------------------- 1 | // Logging setup for phantom integration 2 | // adapted from Modernizr 3 | 4 | QUnit.begin = function () { 5 | console.log("Starting test suite") 6 | console.log("================================================\n") 7 | } 8 | 9 | QUnit.moduleDone = function (opts) { 10 | if (opts.failed === 0) { 11 | console.log("\u2714 All tests passed in '" + opts.name + "' module") 12 | } else { 13 | console.log("\u2716 " + opts.failed + " tests failed in '" + opts.name + "' module") 14 | } 15 | } 16 | 17 | QUnit.done = function (opts) { 18 | console.log("\n================================================") 19 | console.log("Tests completed in " + opts.runtime + " milliseconds") 20 | console.log(opts.passed + " tests of " + opts.total + " passed, " + opts.failed + " failed.") 21 | } -------------------------------------------------------------------------------- /js/google-code-prettify/prettify.css: -------------------------------------------------------------------------------- 1 | .com { color: #93a1a1; } 2 | .lit { color: #195f91; } 3 | .pun, .opn, .clo { color: #93a1a1; } 4 | .fun { color: #dc322f; } 5 | .str, .atv { color: #D14; } 6 | .kwd, .linenums .tag { color: #1e347b; } 7 | .typ, .atn, .dec, .var { color: teal; } 8 | .pln { color: #48484c; } 9 | 10 | .prettyprint { 11 | padding: 8px; 12 | background-color: #f7f7f9; 13 | border: 1px solid #e1e1e8; 14 | } 15 | .prettyprint.linenums { 16 | -webkit-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0; 17 | -moz-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0; 18 | box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0; 19 | } 20 | 21 | /* Specify class=linenums on a pre to get line numbering */ 22 | ol.linenums { 23 | margin: 0 0 0 33px; /* IE indents via margin-left */ 24 | } 25 | ol.linenums li { 26 | padding-left: 12px; 27 | color: #bebec5; 28 | line-height: 18px; 29 | text-shadow: 0 1px 0 #fff; 30 | } -------------------------------------------------------------------------------- /js/tests/unit/bootstrap-scrollspy.js: -------------------------------------------------------------------------------- 1 | $(function () { 2 | 3 | module("bootstrap-scrollspy") 4 | 5 | test("should be defined on jquery object", function () { 6 | ok($(document.body).scrollspy, 'scrollspy method is defined') 7 | }) 8 | 9 | test("should return element", function () { 10 | ok($(document.body).scrollspy()[0] == document.body, 'document.body returned') 11 | }) 12 | 13 | test("should switch active class on scroll", function () { 14 | var sectionHTML = '
' 15 | , $section = $(sectionHTML).append('#qunit-fixture') 16 | , topbarHTML ='
' 17 | + '
' 18 | + '
' 19 | + '

Bootstrap

' 20 | + '' 23 | + '
' 24 | + '
' 25 | + '
' 26 | , $topbar = $(topbarHTML).scrollspy() 27 | 28 | ok($topbar.find('.active', true)) 29 | }) 30 | 31 | }) -------------------------------------------------------------------------------- /home_page/js/move-top.js: -------------------------------------------------------------------------------- 1 | /* UItoTop jQuery Plugin 1.2 | Matt Varone | http://www.mattvarone.com/web-design/uitotop-jquery-plugin */ 2 | (function($){$.fn.UItoTop=function(options){var defaults={text:'To Top',min:200,inDelay:600,outDelay:400,containerID:'toTop',containerHoverID:'toTopHover',scrollSpeed:1200,easingType:'linear'},settings=$.extend(defaults,options),containerIDhash='#'+settings.containerID,containerHoverIDHash='#'+settings.containerHoverID;$('body').append(''+settings.text+'');$(containerIDhash).hide().on('click.UItoTop',function(){$('html, body').animate({scrollTop:0},settings.scrollSpeed,settings.easingType);$('#'+settings.containerHoverID,this).stop().animate({'opacity':0},settings.inDelay,settings.easingType);return false;}).prepend('').hover(function(){$(containerHoverIDHash,this).stop().animate({'opacity':1},600,'linear');},function(){$(containerHoverIDHash,this).stop().animate({'opacity':0},700,'linear');});$(window).scroll(function(){var sd=$(window).scrollTop();if(typeof document.body.style.maxHeight==="undefined"){$(containerIDhash).css({'position':'absolute','top':sd+$(window).height()-50});} 3 | if(sd>settings.min) 4 | $(containerIDhash).fadeIn(settings.inDelay);else 5 | $(containerIDhash).fadeOut(settings.Outdelay);});};})(jQuery); -------------------------------------------------------------------------------- /about/js/jquery.inview.min.js: -------------------------------------------------------------------------------- 1 | !function(t){function e(){var e,i,n={height:a.innerHeight,width:a.innerWidth};return n.height||(e=r.compatMode,(e||!t.support.boxModel)&&(i="CSS1Compat"===e?f:r.body,n={height:i.clientHeight,width:i.clientWidth})),n}function i(){return{top:a.pageYOffset||f.scrollTop||r.body.scrollTop,left:a.pageXOffset||f.scrollLeft||r.body.scrollLeft}}function n(){var n,l=t(),r=0;if(t.each(d,function(t,e){var i=e.data.selector,n=e.$element;l=l.add(i?n.find(i):n)}),n=l.length)for(o=o||e(),h=h||i();n>r;r++)if(t.contains(f,l[r])){var a,c,p,s=t(l[r]),u={height:s.height(),width:s.width()},g=s.offset(),v=s.data("inview");if(!h||!o)return;g.top+u.height>h.top&&g.toph.left&&g.leftg.left?"right":h.left+o.widthg.top?"bottom":h.top+o.heightbody #button li a{ 74 | width: auto; 75 | } 76 | #button li a:hover { 77 | border-left: 10px solid #1c64d1; 78 | border-left: 10px solid #56a3e0; 79 | background-color: #2586d7; 80 | color: #fff; 81 | } 82 | 83 | #footer{ 84 | width: 900px; 85 | height: 55px; 86 | background: #00CED1; 87 | clear: all; 88 | border-top: solid 2px blue; 89 | } 90 | 91 | -------------------------------------------------------------------------------- /js/bootstrap-transition.js: -------------------------------------------------------------------------------- 1 | /* =================================================== 2 | * bootstrap-transition.js v2.1.0 3 | * http://twitter.github.com/bootstrap/javascript.html#transitions 4 | * =================================================== 5 | * Copyright 2012 Twitter, Inc. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | 21 | !function ($) { 22 | 23 | $(function () { 24 | 25 | "use strict"; // jshint ;_; 26 | 27 | 28 | /* CSS TRANSITION SUPPORT (http://www.modernizr.com/) 29 | * ======================================================= */ 30 | 31 | $.support.transition = (function () { 32 | 33 | var transitionEnd = (function () { 34 | 35 | var el = document.createElement('bootstrap') 36 | , transEndEventNames = { 37 | 'WebkitTransition' : 'webkitTransitionEnd' 38 | , 'MozTransition' : 'transitionend' 39 | , 'OTransition' : 'oTransitionEnd otransitionend' 40 | , 'transition' : 'transitionend' 41 | } 42 | , name 43 | 44 | for (name in transEndEventNames){ 45 | if (el.style[name] !== undefined) { 46 | return transEndEventNames[name] 47 | } 48 | } 49 | 50 | }()) 51 | 52 | return transitionEnd && { 53 | end: transitionEnd 54 | } 55 | 56 | })() 57 | 58 | }) 59 | 60 | }(window.jQuery); -------------------------------------------------------------------------------- /cashier.php: -------------------------------------------------------------------------------- 1 | 15 | 16 | 17 | 18 | <?php echo $user;?> - Pharmacy Management System 19 | 20 | 21 | 22 | 23 | 28 | 29 | 30 |
31 | 33 |
34 |
35 | 40 |
41 |
42 | 55 | 56 |
57 | 58 | 59 | -------------------------------------------------------------------------------- /js/tests/unit/bootstrap-alert.js: -------------------------------------------------------------------------------- 1 | $(function () { 2 | 3 | module("bootstrap-alerts") 4 | 5 | test("should be defined on jquery object", function () { 6 | ok($(document.body).alert, 'alert method is defined') 7 | }) 8 | 9 | test("should return element", function () { 10 | ok($(document.body).alert()[0] == document.body, 'document.body returned') 11 | }) 12 | 13 | test("should fade element out on clicking .close", function () { 14 | var alertHTML = '
' 15 | + '×' 16 | + '

Holy guacamole! Best check yo self, you\'re not looking too good.

' 17 | + '
' 18 | , alert = $(alertHTML).alert() 19 | 20 | alert.find('.close').click() 21 | 22 | ok(!alert.hasClass('in'), 'remove .in class on .close click') 23 | }) 24 | 25 | test("should remove element when clicking .close", function () { 26 | $.support.transition = false 27 | 28 | var alertHTML = '
' 29 | + '×' 30 | + '

Holy guacamole! Best check yo self, you\'re not looking too good.

' 31 | + '
' 32 | , alert = $(alertHTML).appendTo('#qunit-fixture').alert() 33 | 34 | ok($('#qunit-fixture').find('.alert-message').length, 'element added to dom') 35 | 36 | alert.find('.close').click() 37 | 38 | ok(!$('#qunit-fixture').find('.alert-message').length, 'element removed from dom') 39 | }) 40 | 41 | test("should not fire closed when close is prevented", function () { 42 | $.support.transition = false 43 | stop(); 44 | $('
') 45 | .bind('close', function (e) { 46 | e.preventDefault(); 47 | ok(true); 48 | start(); 49 | }) 50 | .bind('closed', function () { 51 | ok(false); 52 | }) 53 | .alert('close') 54 | }) 55 | 56 | }) -------------------------------------------------------------------------------- /js/tests/unit/bootstrap-tab.js: -------------------------------------------------------------------------------- 1 | $(function () { 2 | 3 | module("bootstrap-tabs") 4 | 5 | test("should be defined on jquery object", function () { 6 | ok($(document.body).tab, 'tabs method is defined') 7 | }) 8 | 9 | test("should return element", function () { 10 | ok($(document.body).tab()[0] == document.body, 'document.body returned') 11 | }) 12 | 13 | test("should activate element by tab id", function () { 14 | var tabsHTML = 15 | '' 19 | 20 | $('
').appendTo("#qunit-fixture") 21 | 22 | $(tabsHTML).find('li:last a').tab('show') 23 | equals($("#qunit-fixture").find('.active').attr('id'), "profile") 24 | 25 | $(tabsHTML).find('li:first a').tab('show') 26 | equals($("#qunit-fixture").find('.active').attr('id'), "home") 27 | }) 28 | 29 | test("should activate element by tab id", function () { 30 | var pillsHTML = 31 | '' 35 | 36 | $('
').appendTo("#qunit-fixture") 37 | 38 | $(pillsHTML).find('li:last a').tab('show') 39 | equals($("#qunit-fixture").find('.active').attr('id'), "profile") 40 | 41 | $(pillsHTML).find('li:first a').tab('show') 42 | equals($("#qunit-fixture").find('.active').attr('id'), "home") 43 | }) 44 | 45 | 46 | test("should not fire closed when close is prevented", function () { 47 | $.support.transition = false 48 | stop(); 49 | $('
') 50 | .bind('show', function (e) { 51 | e.preventDefault(); 52 | ok(true); 53 | start(); 54 | }) 55 | .bind('shown', function () { 56 | ok(false); 57 | }) 58 | .tab('show') 59 | }) 60 | 61 | }) -------------------------------------------------------------------------------- /js/tests/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Bootstrap Plugin Test Suite 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 |
49 |

Bootstrap Plugin Test Suite

50 |

51 |

52 |
    53 |
    54 |
    55 | 56 | -------------------------------------------------------------------------------- /js/tests/phantom.js: -------------------------------------------------------------------------------- 1 | // Simple phantom.js integration script 2 | // Adapted from Modernizr 3 | 4 | function waitFor(testFx, onReady, timeOutMillis) { 5 | var maxtimeOutMillis = timeOutMillis ? timeOutMillis : 5001 //< Default Max Timout is 5s 6 | , start = new Date().getTime() 7 | , condition = false 8 | , interval = setInterval(function () { 9 | if ((new Date().getTime() - start < maxtimeOutMillis) && !condition) { 10 | // If not time-out yet and condition not yet fulfilled 11 | condition = (typeof(testFx) === "string" ? eval(testFx) : testFx()) //< defensive code 12 | } else { 13 | if (!condition) { 14 | // If condition still not fulfilled (timeout but condition is 'false') 15 | console.log("'waitFor()' timeout") 16 | phantom.exit(1) 17 | } else { 18 | // Condition fulfilled (timeout and/or condition is 'true') 19 | typeof(onReady) === "string" ? eval(onReady) : onReady() //< Do what it's supposed to do once the condition is fulfilled 20 | clearInterval(interval) //< Stop this interval 21 | } 22 | } 23 | }, 100) //< repeat check every 100ms 24 | } 25 | 26 | 27 | if (phantom.args.length === 0 || phantom.args.length > 2) { 28 | console.log('Usage: phantom.js URL') 29 | phantom.exit() 30 | } 31 | 32 | var page = new WebPage() 33 | 34 | // Route "console.log()" calls from within the Page context to the main Phantom context (i.e. current "this") 35 | page.onConsoleMessage = function(msg) { 36 | console.log(msg) 37 | }; 38 | 39 | page.open(phantom.args[0], function(status){ 40 | if (status !== "success") { 41 | console.log("Unable to access network") 42 | phantom.exit() 43 | } else { 44 | waitFor(function(){ 45 | return page.evaluate(function(){ 46 | var el = document.getElementById('qunit-testresult') 47 | if (el && el.innerText.match('completed')) { 48 | return true 49 | } 50 | return false 51 | }) 52 | }, function(){ 53 | var failedNum = page.evaluate(function(){ 54 | var el = document.getElementById('qunit-testresult') 55 | try { 56 | return el.getElementsByClassName('failed')[0].innerHTML 57 | } catch (e) { } 58 | return 10000 59 | }); 60 | phantom.exit((parseInt(failedNum, 10) > 0) ? 1 : 0) 61 | }) 62 | } 63 | }) -------------------------------------------------------------------------------- /pharmacist.php: -------------------------------------------------------------------------------- 1 | 15 | 16 | 17 | 18 | <?php echo $user;?> - Pharmacy Management System 19 | 20 | 21 | 22 | 23 | 28 | 29 | 30 |
    31 | 33 |
    34 |
    35 | 41 |
    42 |
    43 | 61 | 62 |
    63 | 64 | 65 | -------------------------------------------------------------------------------- /js/jquery.pngFix.pack.js: -------------------------------------------------------------------------------- 1 | /** 2 | * -------------------------------------------------------------------- 3 | * jQuery-Plugin "pngFix" 4 | * Version: 1.1, 11.09.2007 5 | * by Andreas Eberhard, andreas.eberhard@gmail.com 6 | * http://jquery.andreaseberhard.de/ 7 | * 8 | * Copyright (c) 2007 Andreas Eberhard 9 | * Licensed under GPL (http://www.opensource.org/licenses/gpl-license.php) 10 | */ 11 | eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'([237-9n-zA-Z]|1\\w)'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(s(m){3.fn.pngFix=s(c){c=3.extend({P:\'blank.gif\'},c);8 e=(o.Q=="t R S"&&T(o.u)==4&&o.u.A("U 5.5")!=-1);8 f=(o.Q=="t R S"&&T(o.u)==4&&o.u.A("U 6.0")!=-1);p(3.browser.msie&&(e||f)){3(2).B("img[n$=.C]").D(s(){3(2).7(\'q\',3(2).q());3(2).7(\'r\',3(2).r());8 a=\'\';8 b=\'\';8 g=(3(2).7(\'E\'))?\'E="\'+3(2).7(\'E\')+\'" \':\'\';8 h=(3(2).7(\'F\'))?\'F="\'+3(2).7(\'F\')+\'" \':\'\';8 i=(3(2).7(\'G\'))?\'G="\'+3(2).7(\'G\')+\'" \':\'\';8 j=(3(2).7(\'H\'))?\'H="\'+3(2).7(\'H\')+\'" \':\'\';8 k=(3(2).7(\'V\'))?\'float:\'+3(2).7(\'V\')+\';\':\'\';8 d=(3(2).parent().7(\'href\'))?\'cursor:hand;\':\'\';p(2.9.v){a+=\'v:\'+2.9.v+\';\';2.9.v=\'\'}p(2.9.w){a+=\'w:\'+2.9.w+\';\';2.9.w=\'\'}p(2.9.x){a+=\'x:\'+2.9.x+\';\';2.9.x=\'\'}8 l=(2.9.cssText);b+=\'\';p(a!=\'\'){b=\'\'+b+\'\'}3(2).hide();3(2).after(b)});3(2).B("*").D(s(){8 a=3(2).11(\'I-12\');p(a.A(".C")!=-1){8 b=a.13(\'url("\')[1].13(\'")\')[0];3(2).11(\'I-12\',\'none\');3(2).14(0).15.J="K:L.t.M(n=\'"+b+"\',N=\'O\')"}});3(2).B("input[n$=.C]").D(s(){8 a=3(2).7(\'n\');3(2).14(0).15.J=\'K:L.t.M(n=\\\'\'+a+\'\\\', N=\\\'O\\\');\';3(2).7(\'n\',c.P)})}return 3}})(3);',[],68,'||this|jQuery||||attr|var|style||||||||||||||src|navigator|if|width|height|function|Microsoft|appVersion|border|padding|margin|span|px|indexOf|find|png|each|id|class|title|alt|background|filter|progid|DXImageTransform|AlphaImageLoader|sizingMethod|scale|blankgif|appName|Internet|Explorer|parseInt|MSIE|align|position|relative|display|inline|block|css|image|split|get|runtimeStyle'.split('|'),0,{})) -------------------------------------------------------------------------------- /js/tests/unit/bootstrap-carousel.js: -------------------------------------------------------------------------------- 1 | $(function () { 2 | 3 | module("bootstrap-carousel") 4 | 5 | test("should be defined on jquery object", function () { 6 | ok($(document.body).carousel, 'carousel method is defined') 7 | }) 8 | 9 | test("should return element", function () { 10 | ok($(document.body).carousel()[0] == document.body, 'document.body returned') 11 | }) 12 | 13 | test("should not fire sliden when slide is prevented", function () { 14 | $.support.transition = false 15 | stop() 16 | $(' 77 | 78 |
    CSE STUDENTS
    79 | -------------------------------------------------------------------------------- /js/tests/unit/bootstrap-collapse.js: -------------------------------------------------------------------------------- 1 | $(function () { 2 | 3 | module("bootstrap-collapse") 4 | 5 | test("should be defined on jquery object", function () { 6 | ok($(document.body).collapse, 'collapse method is defined') 7 | }) 8 | 9 | test("should return element", function () { 10 | ok($(document.body).collapse()[0] == document.body, 'document.body returned') 11 | }) 12 | 13 | test("should show a collapsed element", function () { 14 | var el = $('
    ').collapse('show') 15 | ok(el.hasClass('in'), 'has class in') 16 | ok(/height/.test(el.attr('style')), 'has height set') 17 | }) 18 | 19 | test("should hide a collapsed element", function () { 20 | var el = $('
    ').collapse('hide') 21 | ok(!el.hasClass('in'), 'does not have class in') 22 | ok(/height/.test(el.attr('style')), 'has height set') 23 | }) 24 | 25 | test("should not fire shown when show is prevented", function () { 26 | $.support.transition = false 27 | stop() 28 | $('
    ') 29 | .bind('show', function (e) { 30 | e.preventDefault(); 31 | ok(true); 32 | start(); 33 | }) 34 | .bind('shown', function () { 35 | ok(false); 36 | }) 37 | .collapse('show') 38 | }) 39 | 40 | test("should reset style to auto after finishing opening collapse", function () { 41 | $.support.transition = false 42 | stop() 43 | $('
    ') 44 | .bind('show', function () { 45 | ok(this.style.height == '0px') 46 | }) 47 | .bind('shown', function () { 48 | ok(this.style.height == 'auto') 49 | start() 50 | }) 51 | .collapse('show') 52 | }) 53 | 54 | test("should add active class to target when collapse shown", function () { 55 | $.support.transition = false 56 | stop() 57 | 58 | var target = $('') 59 | .appendTo($('#qunit-fixture')) 60 | 61 | var collapsible = $('
    ') 62 | .appendTo($('#qunit-fixture')) 63 | .on('show', function () { 64 | ok(!target.hasClass('collapsed')) 65 | start() 66 | }) 67 | 68 | target.click() 69 | }) 70 | 71 | test("should remove active class to target when collapse hidden", function () { 72 | $.support.transition = false 73 | stop() 74 | 75 | var target = $('') 76 | .appendTo($('#qunit-fixture')) 77 | 78 | var collapsible = $('
    ') 79 | .appendTo($('#qunit-fixture')) 80 | .on('hide', function () { 81 | ok(target.hasClass('collapsed')) 82 | start() 83 | }) 84 | 85 | target.click() 86 | }) 87 | 88 | }) -------------------------------------------------------------------------------- /js/bootstrap-button.js: -------------------------------------------------------------------------------- 1 | /* ============================================================ 2 | * bootstrap-button.js v2.1.0 3 | * http://twitter.github.com/bootstrap/javascript.html#buttons 4 | * ============================================================ 5 | * Copyright 2012 Twitter, Inc. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ============================================================ */ 19 | 20 | 21 | !function ($) { 22 | 23 | "use strict"; // jshint ;_; 24 | 25 | 26 | /* BUTTON PUBLIC CLASS DEFINITION 27 | * ============================== */ 28 | 29 | var Button = function (element, options) { 30 | this.$element = $(element) 31 | this.options = $.extend({}, $.fn.button.defaults, options) 32 | } 33 | 34 | Button.prototype.setState = function (state) { 35 | var d = 'disabled' 36 | , $el = this.$element 37 | , data = $el.data() 38 | , val = $el.is('input') ? 'val' : 'html' 39 | 40 | state = state + 'Text' 41 | data.resetText || $el.data('resetText', $el[val]()) 42 | 43 | $el[val](data[state] || this.options[state]) 44 | 45 | // push to event loop to allow forms to submit 46 | setTimeout(function () { 47 | state == 'loadingText' ? 48 | $el.addClass(d).attr(d, d) : 49 | $el.removeClass(d).removeAttr(d) 50 | }, 0) 51 | } 52 | 53 | Button.prototype.toggle = function () { 54 | var $parent = this.$element.parent('[data-toggle="buttons-radio"]') 55 | 56 | $parent && $parent 57 | .find('.active') 58 | .removeClass('active') 59 | 60 | this.$element.toggleClass('active') 61 | } 62 | 63 | 64 | /* BUTTON PLUGIN DEFINITION 65 | * ======================== */ 66 | 67 | $.fn.button = function (option) { 68 | return this.each(function () { 69 | var $this = $(this) 70 | , data = $this.data('button') 71 | , options = typeof option == 'object' && option 72 | if (!data) $this.data('button', (data = new Button(this, options))) 73 | if (option == 'toggle') data.toggle() 74 | else if (option) data.setState(option) 75 | }) 76 | } 77 | 78 | $.fn.button.defaults = { 79 | loadingText: 'loading...' 80 | } 81 | 82 | $.fn.button.Constructor = Button 83 | 84 | 85 | /* BUTTON DATA-API 86 | * =============== */ 87 | 88 | $(function () { 89 | $('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) { 90 | var $btn = $(e.target) 91 | if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn') 92 | $btn.button('toggle') 93 | }) 94 | }) 95 | 96 | }(window.jQuery); -------------------------------------------------------------------------------- /js/tests/unit/bootstrap-button.js: -------------------------------------------------------------------------------- 1 | $(function () { 2 | 3 | module("bootstrap-buttons") 4 | 5 | test("should be defined on jquery object", function () { 6 | ok($(document.body).button, 'button method is defined') 7 | }) 8 | 9 | test("should return element", function () { 10 | ok($(document.body).button()[0] == document.body, 'document.body returned') 11 | }) 12 | 13 | test("should return set state to loading", function () { 14 | var btn = $('') 15 | equals(btn.html(), 'mdo', 'btn text equals mdo') 16 | btn.button('loading') 17 | equals(btn.html(), 'fat', 'btn text equals fat') 18 | stop() 19 | setTimeout(function () { 20 | ok(btn.attr('disabled'), 'btn is disabled') 21 | ok(btn.hasClass('disabled'), 'btn has disabled class') 22 | start() 23 | }, 0) 24 | }) 25 | 26 | test("should return reset state", function () { 27 | var btn = $('') 28 | equals(btn.html(), 'mdo', 'btn text equals mdo') 29 | btn.button('loading') 30 | equals(btn.html(), 'fat', 'btn text equals fat') 31 | stop() 32 | setTimeout(function () { 33 | ok(btn.attr('disabled'), 'btn is disabled') 34 | ok(btn.hasClass('disabled'), 'btn has disabled class') 35 | start() 36 | stop() 37 | }, 0) 38 | btn.button('reset') 39 | equals(btn.html(), 'mdo', 'btn text equals mdo') 40 | setTimeout(function () { 41 | ok(!btn.attr('disabled'), 'btn is not disabled') 42 | ok(!btn.hasClass('disabled'), 'btn does not have disabled class') 43 | start() 44 | }, 0) 45 | }) 46 | 47 | test("should toggle active", function () { 48 | var btn = $('') 49 | ok(!btn.hasClass('active'), 'btn does not have active class') 50 | btn.button('toggle') 51 | ok(btn.hasClass('active'), 'btn has class active') 52 | }) 53 | 54 | test("should toggle active when btn children are clicked", function () { 55 | var btn = $('') 56 | , inner = $('') 57 | btn 58 | .append(inner) 59 | .appendTo($('#qunit-fixture')) 60 | ok(!btn.hasClass('active'), 'btn does not have active class') 61 | inner.click() 62 | ok(btn.hasClass('active'), 'btn has class active') 63 | }) 64 | 65 | test("should toggle active when btn children are clicked within btn-group", function () { 66 | var btngroup = $('
    ') 67 | , btn = $('') 68 | , inner = $('') 69 | btngroup 70 | .append(btn.append(inner)) 71 | .appendTo($('#qunit-fixture')) 72 | ok(!btn.hasClass('active'), 'btn does not have active class') 73 | inner.click() 74 | ok(btn.hasClass('active'), 'btn has class active') 75 | }) 76 | 77 | }) -------------------------------------------------------------------------------- /view_prescription.php: -------------------------------------------------------------------------------- 1 | 15 | 16 | 17 | 18 | <?php $user?> Pharmacy Management System 19 | 20 | 21 | 22 | 23 | 26 | 27 | 28 |
    29 | 31 |
    32 |
    33 | 40 |
    41 |
    42 |
    43 |
    44 |

    View Prescription

    45 |
    46 |
    47 | 48 | 52 | 53 |
    54 | "; 65 | echo " Prescription_idDrug_name StrengthDoseQuantity"; 66 | // loop through results of database query, displaying them in the table 67 | while($row = mysql_fetch_array( $result )) { 68 | // echo out the contents of each row into a table 69 | echo ""; 70 | echo '' . $row['prescription_id'] . ''; 71 | echo '' . $row['drug_name'] . ''; 72 | echo '' . $row['strength'] . ''; 73 | echo '' . $row['dose'] . ''; 74 | 75 | echo '' . $row['quantity'] . ''; 76 | ?> 77 | 78 | 81 | echo ""; 82 | ?> 83 |
    84 | 85 |
    86 |
    87 |
    88 | 89 |
    90 | 91 | -------------------------------------------------------------------------------- /home_page/js/responsiveslides.min.js: -------------------------------------------------------------------------------- 1 | /*! http://responsiveslides.com v1.53 by @viljamis */ 2 | (function(c,I,B){c.fn.responsiveSlides=function(l){var a=c.extend({auto:!0,speed:500,timeout:4E3,pager:!1,nav:!1,random:!1,pause:!1,pauseControls:!0,prevText:"Previous",nextText:"Next",maxwidth:"",navContainer:"",manualControls:"",namespace:"rslides",before:c.noop,after:c.noop},l);return this.each(function(){B++;var f=c(this),s,r,t,m,p,q,n=0,e=f.children(),C=e.size(),h=parseFloat(a.speed),D=parseFloat(a.timeout),u=parseFloat(a.maxwidth),g=a.namespace,d=g+B,E=g+"_nav "+d+"_nav",v=g+"_here",j=d+"_on", 3 | w=d+"_s",k=c("
      "),x={"float":"left",position:"relative",opacity:1,zIndex:2},y={"float":"none",position:"absolute",opacity:0,zIndex:1},F=function(){var b=(document.body||document.documentElement).style,a="transition";if("string"===typeof b[a])return!0;s=["Moz","Webkit","Khtml","O","ms"];var a=a.charAt(0).toUpperCase()+a.substr(1),c;for(c=0;c"+a+""});k.append(A);l.navContainer?c(a.navContainer).append(k):f.after(k)}a.manualControls&&(k=c(a.manualControls),k.addClass(g+"_tabs "+d+"_tabs"));(a.pager||a.manualControls)&&k.find("li").each(function(a){c(this).addClass(w+(a+1))});if(a.pager||a.manualControls)q= 6 | k.find("a"),r=function(a){q.closest("li").removeClass(v).eq(a).addClass(v)};a.auto&&(t=function(){p=setInterval(function(){e.stop(!0,!0);var b=n+1"+a.prevText+"";l.navContainer?c(a.navContainer).append(g):f.after(g);var d=c("."+d+"_nav"),G=d.filter(".prev");d.bind("click",function(b){b.preventDefault();b=c("."+j);if(!b.queue("fx").length){var d=e.index(b);b=d-1;d=d+1u&&f.css("width",u)};H();c(I).bind("resize",function(){H()})}})}})(jQuery,this,0); -------------------------------------------------------------------------------- /js/superfish/hoverIntent.js: -------------------------------------------------------------------------------- 1 | (function($){ 2 | $.fn.hoverIntent = function(f,g) { 3 | var cfg = { 4 | sensitivity: 7, 5 | interval: 100, 6 | timeout: 0 7 | }; 8 | // override configuration options with user supplied object 9 | cfg = $.extend(cfg, g ? { over: f, out: g } : f ); 10 | 11 | // instantiate variables 12 | // cX, cY = current X and Y position of mouse, updated by mousemove event 13 | // pX, pY = previous X and Y position of mouse, set by mouseover and polling interval 14 | var cX, cY, pX, pY; 15 | 16 | // A private function for getting mouse position 17 | var track = function(ev) { 18 | cX = ev.pageX; 19 | cY = ev.pageY; 20 | }; 21 | 22 | // A private function for comparing current and previous mouse position 23 | var compare = function(ev,ob) { 24 | ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); 25 | // compare mouse positions to see if they've crossed the threshold 26 | if ( ( Math.abs(pX-cX) + Math.abs(pY-cY) ) < cfg.sensitivity ) { 27 | $(ob).unbind("mousemove",track); 28 | // set hoverIntent state to true (so mouseOut can be called) 29 | ob.hoverIntent_s = 1; 30 | return cfg.over.apply(ob,[ev]); 31 | } else { 32 | // set previous coordinates for next time 33 | pX = cX; pY = cY; 34 | // use self-calling timeout, guarantees intervals are spaced out properly (avoids JavaScript timer bugs) 35 | ob.hoverIntent_t = setTimeout( function(){compare(ev, ob);} , cfg.interval ); 36 | } 37 | }; 38 | 39 | // A private function for delaying the mouseOut function 40 | var delay = function(ev,ob) { 41 | ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); 42 | ob.hoverIntent_s = 0; 43 | return cfg.out.apply(ob,[ev]); 44 | }; 45 | 46 | // A private function for handling mouse 'hovering' 47 | var handleHover = function(e) { 48 | // next three lines copied from jQuery.hover, ignore children onMouseOver/onMouseOut 49 | var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget; 50 | while ( p && p != this ) { try { p = p.parentNode; } catch(e) { p = this; } } 51 | if ( p == this ) { return false; } 52 | 53 | // copy objects to be passed into t (required for event object to be passed in IE) 54 | var ev = jQuery.extend({},e); 55 | var ob = this; 56 | 57 | // cancel hoverIntent timer if it exists 58 | if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); } 59 | 60 | // else e.type == "onmouseover" 61 | if (e.type == "mouseover") { 62 | // set "previous" X and Y position based on initial entry point 63 | pX = ev.pageX; pY = ev.pageY; 64 | // update "current" X and Y position based on mousemove 65 | $(ob).bind("mousemove",track); 66 | // start polling interval (self-calling timeout) to compare mouse coordinates over time 67 | if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );} 68 | 69 | // else e.type == "onmouseout" 70 | } else { 71 | // unbind expensive mousemove event 72 | $(ob).unbind("mousemove",track); 73 | // if hoverIntent state is true, then call the mouseOut function after the specified delay 74 | if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );} 75 | } 76 | }; 77 | 78 | // bind the function to the two event listeners 79 | return this.mouseover(handleHover).mouseout(handleHover); 80 | }; 81 | 82 | })(jQuery); -------------------------------------------------------------------------------- /js/bootstrap-popover.js: -------------------------------------------------------------------------------- 1 | /* =========================================================== 2 | * bootstrap-popover.js v2.1.0 3 | * http://twitter.github.com/bootstrap/javascript.html#popovers 4 | * =========================================================== 5 | * Copyright 2012 Twitter, Inc. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * =========================================================== */ 19 | 20 | 21 | !function ($) { 22 | 23 | "use strict"; // jshint ;_; 24 | 25 | 26 | /* POPOVER PUBLIC CLASS DEFINITION 27 | * =============================== */ 28 | 29 | var Popover = function (element, options) { 30 | this.init('popover', element, options) 31 | } 32 | 33 | 34 | /* NOTE: POPOVER EXTENDS BOOTSTRAP-TOOLTIP.js 35 | ========================================== */ 36 | 37 | Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype, { 38 | 39 | constructor: Popover 40 | 41 | , setContent: function () { 42 | var $tip = this.tip() 43 | , title = this.getTitle() 44 | , content = this.getContent() 45 | 46 | $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title) 47 | $tip.find('.popover-content > *')[this.options.html ? 'html' : 'text'](content) 48 | 49 | $tip.removeClass('fade top bottom left right in') 50 | } 51 | 52 | , hasContent: function () { 53 | return this.getTitle() || this.getContent() 54 | } 55 | 56 | , getContent: function () { 57 | var content 58 | , $e = this.$element 59 | , o = this.options 60 | 61 | content = $e.attr('data-content') 62 | || (typeof o.content == 'function' ? o.content.call($e[0]) : o.content) 63 | 64 | return content 65 | } 66 | 67 | , tip: function () { 68 | if (!this.$tip) { 69 | this.$tip = $(this.options.template) 70 | } 71 | return this.$tip 72 | } 73 | 74 | , destroy: function () { 75 | this.hide().$element.off('.' + this.type).removeData(this.type) 76 | } 77 | 78 | }) 79 | 80 | 81 | /* POPOVER PLUGIN DEFINITION 82 | * ======================= */ 83 | 84 | $.fn.popover = function (option) { 85 | return this.each(function () { 86 | var $this = $(this) 87 | , data = $this.data('popover') 88 | , options = typeof option == 'object' && option 89 | if (!data) $this.data('popover', (data = new Popover(this, options))) 90 | if (typeof option == 'string') data[option]() 91 | }) 92 | } 93 | 94 | $.fn.popover.Constructor = Popover 95 | 96 | $.fn.popover.defaults = $.extend({} , $.fn.tooltip.defaults, { 97 | placement: 'right' 98 | , trigger: 'click' 99 | , content: '' 100 | , template: '

      ' 101 | }) 102 | 103 | }(window.jQuery); -------------------------------------------------------------------------------- /about/js/custom-scripts.js: -------------------------------------------------------------------------------- 1 | jQuery(function ($) { 2 | 'use strict'; 3 | 4 | $(window).scroll(function (event) { 5 | Scroll(); 6 | }); 7 | 8 | $('.navbar-collapse ul li a').on('click', function () { 9 | $('html, body').animate({ 10 | scrollTop: $(this.hash).offset().top - 5 11 | }, 1000); 12 | return false; 13 | }); 14 | 15 | function Scroll() { 16 | var contentTop = []; 17 | var contentBottom = []; 18 | var winTop = $(window).scrollTop(); 19 | var rangeTop = 200; 20 | var rangeBottom = 500; 21 | $('.navbar-collapse').find('.scroll a').each(function () { 22 | contentTop.push($($(this).attr('href')).offset().top); 23 | contentBottom.push($($(this).attr('href')).offset().top + $($(this).attr('href')).height()); 24 | }) 25 | $.each(contentTop, function (i) { 26 | if (winTop > contentTop[i] - rangeTop) { 27 | $('.navbar-collapse li.scroll') 28 | .removeClass('active') 29 | .eq(i).addClass('active'); 30 | } 31 | }) 32 | }; 33 | 34 | $('#tohash').on('click', function () { 35 | $('html, body').animate({ 36 | scrollTop: $(this.hash).offset().top - 5 37 | }, 1000); 38 | return false; 39 | }); 40 | 41 | 42 | new WOW().init(); 43 | 44 | smoothScroll.init(); 45 | 46 | 47 | $(window).load(function () { 48 | 'use strict'; 49 | var $portfolio_selectors = $('.portfolio-filter >li>a'); 50 | var $portfolio = $('.portfolio-items'); 51 | $portfolio.isotope({ 52 | itemSelector: '.portfolio-item', 53 | layoutMode: 'fitRows' 54 | }); 55 | 56 | $portfolio_selectors.on('click', function () { 57 | $portfolio_selectors.removeClass('active'); 58 | $(this).addClass('active'); 59 | var selector = $(this).attr('data-filter'); 60 | $portfolio.isotope({ 61 | filter: selector 62 | }); 63 | return false; 64 | }); 65 | }); 66 | 67 | $(document).ready(function () { 68 | 69 | $.fn.animateNumbers = function (stop, commas, duration, ease) { 70 | return this.each(function () { 71 | var $this = $(this); 72 | var start = parseInt($this.text().replace(/,/g, "")); 73 | commas = (commas === undefined) ? true : commas; 74 | $({ 75 | value: start 76 | }).animate({ 77 | value: stop 78 | }, { 79 | duration: duration == undefined ? 1000 : duration, 80 | easing: ease == undefined ? "swing" : ease, 81 | step: function () { 82 | $this.text(Math.floor(this.value)); 83 | if (commas) { 84 | $this.text($this.text().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,")); 85 | } 86 | }, 87 | complete: function () { 88 | if (parseInt($this.text()) !== stop) { 89 | $this.text(stop); 90 | if (commas) { 91 | $this.text($this.text().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,")); 92 | } 93 | } 94 | } 95 | }); 96 | }); 97 | }; 98 | 99 | $('.business-stats').bind('inview', function (event, visible, visiblePartX, visiblePartY) { 100 | var $this = $(this); 101 | if (visible) { 102 | $this.animateNumbers($this.data('digit'), false, $this.data('duration')); 103 | $this.unbind('inview'); 104 | } 105 | }); 106 | }); 107 | 108 | 109 | $("a[rel^='prettyPhoto']").prettyPhoto({ 110 | social_tools: false 111 | }); 112 | 113 | 114 | }); -------------------------------------------------------------------------------- /js/bootstrap-affix.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-affix.js v2.1.0 3 | * http://twitter.github.com/bootstrap/javascript.html#affix 4 | * ========================================================== 5 | * Copyright 2012 Twitter, Inc. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | 21 | !function ($) { 22 | 23 | "use strict"; // jshint ;_; 24 | 25 | 26 | /* AFFIX CLASS DEFINITION 27 | * ====================== */ 28 | 29 | var Affix = function (element, options) { 30 | this.options = $.extend({}, $.fn.affix.defaults, options) 31 | this.$window = $(window).on('scroll.affix.data-api', $.proxy(this.checkPosition, this)) 32 | this.$element = $(element) 33 | this.checkPosition() 34 | } 35 | 36 | Affix.prototype.checkPosition = function () { 37 | if (!this.$element.is(':visible')) return 38 | 39 | var scrollHeight = $(document).height() 40 | , scrollTop = this.$window.scrollTop() 41 | , position = this.$element.offset() 42 | , offset = this.options.offset 43 | , offsetBottom = offset.bottom 44 | , offsetTop = offset.top 45 | , reset = 'affix affix-top affix-bottom' 46 | , affix 47 | 48 | if (typeof offset != 'object') offsetBottom = offsetTop = offset 49 | if (typeof offsetTop == 'function') offsetTop = offset.top() 50 | if (typeof offsetBottom == 'function') offsetBottom = offset.bottom() 51 | 52 | affix = this.unpin != null && (scrollTop + this.unpin <= position.top) ? 53 | false : offsetBottom != null && (position.top + this.$element.height() >= scrollHeight - offsetBottom) ? 54 | 'bottom' : offsetTop != null && scrollTop <= offsetTop ? 55 | 'top' : false 56 | 57 | if (this.affixed === affix) return 58 | 59 | this.affixed = affix 60 | this.unpin = affix == 'bottom' ? position.top - scrollTop : null 61 | 62 | this.$element.removeClass(reset).addClass('affix' + (affix ? '-' + affix : '')) 63 | } 64 | 65 | 66 | /* AFFIX PLUGIN DEFINITION 67 | * ======================= */ 68 | 69 | $.fn.affix = function (option) { 70 | return this.each(function () { 71 | var $this = $(this) 72 | , data = $this.data('affix') 73 | , options = typeof option == 'object' && option 74 | if (!data) $this.data('affix', (data = new Affix(this, options))) 75 | if (typeof option == 'string') data[option]() 76 | }) 77 | } 78 | 79 | $.fn.affix.Constructor = Affix 80 | 81 | $.fn.affix.defaults = { 82 | offset: 0 83 | } 84 | 85 | 86 | /* AFFIX DATA-API 87 | * ============== */ 88 | 89 | $(window).on('load', function () { 90 | $('[data-spy="affix"]').each(function () { 91 | var $spy = $(this) 92 | , data = $spy.data() 93 | 94 | data.offset = data.offset || {} 95 | 96 | data.offsetBottom && (data.offset.bottom = data.offsetBottom) 97 | data.offsetTop && (data.offset.top = data.offsetTop) 98 | 99 | $spy.affix(data) 100 | }) 101 | }) 102 | 103 | 104 | }(window.jQuery); -------------------------------------------------------------------------------- /js/superfish/supersubs.js: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Supersubs v0.2b - jQuery plugin 4 | * Copyright (c) 2008 Joel Birch 5 | * 6 | * Dual licensed under the MIT and GPL licenses: 7 | * http://www.opensource.org/licenses/mit-license.php 8 | * http://www.gnu.org/licenses/gpl.html 9 | * 10 | * 11 | * This plugin automatically adjusts submenu widths of suckerfish-style menus to that of 12 | * their longest list item children. If you use this, please expect bugs and report them 13 | * to the jQuery Google Group with the word 'Superfish' in the subject line. 14 | * 15 | */ 16 | 17 | ;(function($){ // $ will refer to jQuery within this closure 18 | 19 | $.fn.supersubs = function(options){ 20 | var opts = $.extend({}, $.fn.supersubs.defaults, options); 21 | // return original object to support chaining 22 | return this.each(function() { 23 | // cache selections 24 | var $$ = $(this); 25 | // support metadata 26 | var o = $.meta ? $.extend({}, opts, $$.data()) : opts; 27 | // get the font size of menu. 28 | // .css('fontSize') returns various results cross-browser, so measure an em dash instead 29 | var fontsize = $('').css({ 30 | 'padding' : 0, 31 | 'position' : 'absolute', 32 | 'top' : '-999em', 33 | 'width' : 'auto' 34 | }).appendTo($$).width(); //clientWidth is faster, but was incorrect here 35 | // remove em dash 36 | $('#menu-fontsize').remove(); 37 | // cache all ul elements 38 | $ULs = $$.find('ul'); 39 | // loop through each ul in menu 40 | $ULs.each(function(i) { 41 | // cache this ul 42 | var $ul = $ULs.eq(i); 43 | // get all (li) children of this ul 44 | var $LIs = $ul.children(); 45 | // get all anchor grand-children 46 | var $As = $LIs.children('a'); 47 | // force content to one line and save current float property 48 | var liFloat = $LIs.css('white-space','nowrap').css('float'); 49 | // remove width restrictions and floats so elements remain vertically stacked 50 | var emWidth = $ul.add($LIs).add($As).css({ 51 | 'float' : 'none', 52 | 'width' : 'auto' 53 | }) 54 | // this ul will now be shrink-wrapped to longest li due to position:absolute 55 | // so save its width as ems. Clientwidth is 2 times faster than .width() - thanks Dan Switzer 56 | .end().end()[0].clientWidth / fontsize; 57 | // add more width to ensure lines don't turn over at certain sizes in various browsers 58 | emWidth += o.extraWidth; 59 | // restrict to at least minWidth and at most maxWidth 60 | if (emWidth > o.maxWidth) { emWidth = o.maxWidth; } 61 | else if (emWidth < o.minWidth) { emWidth = o.minWidth; } 62 | emWidth += 'em'; 63 | // set ul to width in ems 64 | $ul.css('width',emWidth); 65 | // restore li floats to avoid IE bugs 66 | // set li width to full width of this ul 67 | // revert white-space to normal 68 | $LIs.css({ 69 | 'float' : liFloat, 70 | 'width' : '100%', 71 | 'white-space' : 'normal' 72 | }) 73 | // update offset position of descendant ul to reflect new width of parent 74 | .each(function(){ 75 | var $childUl = $('>ul',this); 76 | var offsetDirection = $childUl.css('left')!==undefined ? 'left' : 'right'; 77 | $childUl.css(offsetDirection,emWidth); 78 | }); 79 | }); 80 | 81 | }); 82 | }; 83 | // expose defaults 84 | $.fn.supersubs.defaults = { 85 | minWidth : 9, // requires em unit. 86 | maxWidth : 25, // requires em unit. 87 | extraWidth : 0 // extra width can ensure lines don't sometimes turn over due to slight browser differences in how they round-off values 88 | }; 89 | 90 | })(jQuery); // plugin code ends 91 | -------------------------------------------------------------------------------- /js/README.md: -------------------------------------------------------------------------------- 1 | ## 2.0 BOOTSTRAP JS PHILOSOPHY 2 | These are the high-level design rules which guide the development of Bootstrap's plugin apis. 3 | 4 | --- 5 | 6 | ### DATA-ATTRIBUTE API 7 | 8 | We believe you should be able to use all plugins provided by Bootstrap purely through the markup API without writing a single line of javascript. 9 | 10 | We acknowledge that this isn't always the most performant and sometimes it may be desirable to turn this functionality off altogether. Therefore, as of 2.0 we provide the ability to disable the data attribute API by unbinding all events on the body namespaced with `'data-api'`. This looks like this: 11 | 12 | $('body').off('.data-api') 13 | 14 | To target a specific plugin, just include the plugins name as a namespace along with the data-api namespace like this: 15 | 16 | $('body').off('.alert.data-api') 17 | 18 | --- 19 | 20 | ### PROGRAMATIC API 21 | 22 | We also believe you should be able to use all plugins provided by Bootstrap purely through the JS API. 23 | 24 | All public APIs should be single, chainable methods, and return the collection acted upon. 25 | 26 | $(".btn.danger").button("toggle").addClass("fat") 27 | 28 | All methods should accept an optional options object, a string which targets a particular method, or null which initiates the default behavior: 29 | 30 | $("#myModal").modal() // initialized with defaults 31 | $("#myModal").modal({ keyboard: false }) // initialized with now keyboard 32 | $("#myModal").modal('show') // initializes and invokes show immediately afterqwe2 33 | 34 | --- 35 | 36 | ### OPTIONS 37 | 38 | Options should be sparse and add universal value. We should pick the right defaults. 39 | 40 | All plugins should have a default object which can be modified to effect all instance's default options. The defaults object should be available via `$.fn.plugin.defaults`. 41 | 42 | $.fn.modal.defaults = { … } 43 | 44 | An options definition should take the following form: 45 | 46 | *noun*: *adjective* - describes or modifies a quality of an instance 47 | 48 | examples: 49 | 50 | backdrop: true 51 | keyboard: false 52 | placement: 'top' 53 | 54 | --- 55 | 56 | ### EVENTS 57 | 58 | All events should have an infinitive and past participle form. The infinitive is fired just before an action takes place, the past participle on completion of the action. 59 | 60 | show | shown 61 | hide | hidden 62 | 63 | --- 64 | 65 | ### CONSTRUCTORS 66 | 67 | Each plugin should expose it's raw constructor on a `Constructor` property -- accessed in the following way: 68 | 69 | 70 | $.fn.popover.Constructor 71 | 72 | --- 73 | 74 | ### DATA ACCESSOR 75 | 76 | Each plugin stores a copy of the invoked class on an object. This class instance can be accessed directly through jQuery's data API like this: 77 | 78 | $('[rel=popover]').data('popover') instanceof $.fn.popover.Constructor 79 | 80 | --- 81 | 82 | ### DATA ATTRIBUTES 83 | 84 | Data attributes should take the following form: 85 | 86 | - data-{{verb}}={{plugin}} - defines main interaction 87 | - data-target || href^=# - defined on "control" element (if element controls an element other than self) 88 | - data-{{noun}} - defines class instance options 89 | 90 | examples: 91 | 92 | // control other targets 93 | data-toggle="modal" data-target="#foo" 94 | data-toggle="collapse" data-target="#foo" data-parent="#bar" 95 | 96 | // defined on element they control 97 | data-spy="scroll" 98 | 99 | data-dismiss="modal" 100 | data-dismiss="alert" 101 | 102 | data-toggle="dropdown" 103 | 104 | data-toggle="button" 105 | data-toggle="buttons-checkbox" 106 | data-toggle="buttons-radio" -------------------------------------------------------------------------------- /update_cashier.php: -------------------------------------------------------------------------------- 1 | 14 | 15 | 16 | 17 | <?php $username?> Pharmacy Management System 18 | 19 | 20 | 21 | 23 | 24 | 25 |
      26 | 28 |
      29 |
      30 | 37 |
      38 |
      39 |
      40 |
      41 |

      Manage Users

      42 |
      43 |
      44 | 45 | 49 | 50 |
      51 | 52 |
      53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 |
      id="first_name" />
      64 |
      65 |
      66 |
      67 |
      68 |
      69 | 70 |
      71 | 72 | 73 | -------------------------------------------------------------------------------- /update_manager.php: -------------------------------------------------------------------------------- 1 | 14 | 15 | 16 | 17 | <?php $username?> Pharmacy Management System 18 | 19 | 20 | 21 | 23 | 24 | 25 |
      26 | 28 |
      29 |
      30 | 37 |
      38 |
      39 |
      40 |
      41 |

      Manage Users

      42 |
      43 |
      44 | 45 | 49 | 50 |
      51 | 52 |
      53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 |
      id="first_name" />
      64 |
      65 |
      66 |
      67 |
      68 |
      69 | 70 |
      71 | 72 | 73 | -------------------------------------------------------------------------------- /update_pharmacist.php: -------------------------------------------------------------------------------- 1 | 14 | 15 | 16 | 17 | <?php $username?> Pharmacy Management System 18 | 19 | 20 | 21 | 23 | 24 | 25 |
      26 | 28 |
      29 |
      30 | 37 |
      38 |
      39 |
      40 |
      41 |

      Manage Users

      42 |
      43 |
      44 | 45 | 49 | 50 |
      51 | 52 |
      53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 |
      id="first_name" />
      64 |
      65 |
      66 |
      67 |
      68 |
      69 | 70 |
      71 | 72 | 73 | -------------------------------------------------------------------------------- /js/tests/unit/bootstrap-dropdown.js: -------------------------------------------------------------------------------- 1 | $(function () { 2 | 3 | module("bootstrap-dropdowns") 4 | 5 | test("should be defined on jquery object", function () { 6 | ok($(document.body).dropdown, 'dropdown method is defined') 7 | }) 8 | 9 | test("should return element", function () { 10 | ok($(document.body).dropdown()[0] == document.body, 'document.body returned') 11 | }) 12 | 13 | test("should not open dropdown if target is disabled", function () { 14 | var dropdownHTML = '' 25 | , dropdown = $(dropdownHTML).find('[data-toggle="dropdown"]').dropdown().click() 26 | 27 | ok(!dropdown.parent('.dropdown').hasClass('open'), 'open class added on click') 28 | }) 29 | 30 | test("should not open dropdown if target is disabled", function () { 31 | var dropdownHTML = '' 42 | , dropdown = $(dropdownHTML).find('[data-toggle="dropdown"]').dropdown().click() 43 | 44 | ok(!dropdown.parent('.dropdown').hasClass('open'), 'open class added on click') 45 | }) 46 | 47 | test("should add class open to menu if clicked", function () { 48 | var dropdownHTML = '' 59 | , dropdown = $(dropdownHTML).find('[data-toggle="dropdown"]').dropdown().click() 60 | 61 | ok(dropdown.parent('.dropdown').hasClass('open'), 'open class added on click') 62 | }) 63 | 64 | test("should remove open class if body clicked", function () { 65 | var dropdownHTML = '' 76 | , dropdown = $(dropdownHTML) 77 | .appendTo('#qunit-fixture') 78 | .find('[data-toggle="dropdown"]') 79 | .dropdown() 80 | .click() 81 | ok(dropdown.parent('.dropdown').hasClass('open'), 'open class added on click') 82 | $('body').click() 83 | ok(!dropdown.parent('.dropdown').hasClass('open'), 'open class removed') 84 | dropdown.remove() 85 | }) 86 | 87 | }) -------------------------------------------------------------------------------- /update_stock.php: -------------------------------------------------------------------------------- 1 | 0) {header("location:http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/stock.php"); 28 | }else{ 29 | $message1="Update Failed, Try again"; 30 | }} 31 | ?> 32 | 33 | 34 | 35 | <?php $username?> Pharmacy Management System 36 | 37 | 38 | 39 | 41 | 42 | 43 |
      44 | 46 |
      47 |
      48 | 55 |
      56 |
      57 |
      58 |
      59 |

      Manage Stock

      60 |
      61 |
      62 | 63 | 67 | 68 |
      69 | 70 |
      71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 |
      81 |
      82 |
      83 |
      84 |
      85 |
      86 | 87 |
      88 | 89 | 90 | -------------------------------------------------------------------------------- /js/bootstrap-tab.js: -------------------------------------------------------------------------------- 1 | /* ======================================================== 2 | * bootstrap-tab.js v2.1.0 3 | * http://twitter.github.com/bootstrap/javascript.html#tabs 4 | * ======================================================== 5 | * Copyright 2012 Twitter, Inc. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ======================================================== */ 19 | 20 | 21 | !function ($) { 22 | 23 | "use strict"; // jshint ;_; 24 | 25 | 26 | /* TAB CLASS DEFINITION 27 | * ==================== */ 28 | 29 | var Tab = function (element) { 30 | this.element = $(element) 31 | } 32 | 33 | Tab.prototype = { 34 | 35 | constructor: Tab 36 | 37 | , show: function () { 38 | var $this = this.element 39 | , $ul = $this.closest('ul:not(.dropdown-menu)') 40 | , selector = $this.attr('data-target') 41 | , previous 42 | , $target 43 | , e 44 | 45 | if (!selector) { 46 | selector = $this.attr('href') 47 | selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7 48 | } 49 | 50 | if ( $this.parent('li').hasClass('active') ) return 51 | 52 | previous = $ul.find('.active a').last()[0] 53 | 54 | e = $.Event('show', { 55 | relatedTarget: previous 56 | }) 57 | 58 | $this.trigger(e) 59 | 60 | if (e.isDefaultPrevented()) return 61 | 62 | $target = $(selector) 63 | 64 | this.activate($this.parent('li'), $ul) 65 | this.activate($target, $target.parent(), function () { 66 | $this.trigger({ 67 | type: 'shown' 68 | , relatedTarget: previous 69 | }) 70 | }) 71 | } 72 | 73 | , activate: function ( element, container, callback) { 74 | var $active = container.find('> .active') 75 | , transition = callback 76 | && $.support.transition 77 | && $active.hasClass('fade') 78 | 79 | function next() { 80 | $active 81 | .removeClass('active') 82 | .find('> .dropdown-menu > .active') 83 | .removeClass('active') 84 | 85 | element.addClass('active') 86 | 87 | if (transition) { 88 | element[0].offsetWidth // reflow for transition 89 | element.addClass('in') 90 | } else { 91 | element.removeClass('fade') 92 | } 93 | 94 | if ( element.parent('.dropdown-menu') ) { 95 | element.closest('li.dropdown').addClass('active') 96 | } 97 | 98 | callback && callback() 99 | } 100 | 101 | transition ? 102 | $active.one($.support.transition.end, next) : 103 | next() 104 | 105 | $active.removeClass('in') 106 | } 107 | } 108 | 109 | 110 | /* TAB PLUGIN DEFINITION 111 | * ===================== */ 112 | 113 | $.fn.tab = function ( option ) { 114 | return this.each(function () { 115 | var $this = $(this) 116 | , data = $this.data('tab') 117 | if (!data) $this.data('tab', (data = new Tab(this))) 118 | if (typeof option == 'string') data[option]() 119 | }) 120 | } 121 | 122 | $.fn.tab.Constructor = Tab 123 | 124 | 125 | /* TAB DATA-API 126 | * ============ */ 127 | 128 | $(function () { 129 | $('body').on('click.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) { 130 | e.preventDefault() 131 | $(this).tab('show') 132 | }) 133 | }) 134 | 135 | }(window.jQuery); -------------------------------------------------------------------------------- /js/tests/unit/bootstrap-modal.js: -------------------------------------------------------------------------------- 1 | $(function () { 2 | 3 | module("bootstrap-modal") 4 | 5 | test("should be defined on jquery object", function () { 6 | var div = $("") 7 | ok(div.modal, 'modal method is defined') 8 | }) 9 | 10 | test("should return element", function () { 11 | var div = $("") 12 | ok(div.modal() == div, 'document.body returned') 13 | $('#modal-test').remove() 14 | }) 15 | 16 | test("should expose defaults var for settings", function () { 17 | ok($.fn.modal.defaults, 'default object exposed') 18 | }) 19 | 20 | test("should insert into dom when show method is called", function () { 21 | stop() 22 | $.support.transition = false 23 | $("") 24 | .bind("shown", function () { 25 | ok($('#modal-test').length, 'modal insterted into dom') 26 | $(this).remove() 27 | start() 28 | }) 29 | .modal("show") 30 | }) 31 | 32 | test("should fire show event", function () { 33 | stop() 34 | $.support.transition = false 35 | $("") 36 | .bind("show", function () { 37 | ok(true, "show was called") 38 | }) 39 | .bind("shown", function () { 40 | $(this).remove() 41 | start() 42 | }) 43 | .modal("show") 44 | }) 45 | 46 | test("should not fire shown when default prevented", function () { 47 | stop() 48 | $.support.transition = false 49 | $("") 50 | .bind("show", function (e) { 51 | e.preventDefault() 52 | ok(true, "show was called") 53 | start() 54 | }) 55 | .bind("shown", function () { 56 | ok(false, "shown was called") 57 | }) 58 | .modal("show") 59 | }) 60 | 61 | test("should hide modal when hide is called", function () { 62 | stop() 63 | $.support.transition = false 64 | 65 | $("") 66 | .bind("shown", function () { 67 | ok($('#modal-test').is(":visible"), 'modal visible') 68 | ok($('#modal-test').length, 'modal insterted into dom') 69 | $(this).modal("hide") 70 | }) 71 | .bind("hidden", function() { 72 | ok(!$('#modal-test').is(":visible"), 'modal hidden') 73 | $('#modal-test').remove() 74 | start() 75 | }) 76 | .modal("show") 77 | }) 78 | 79 | test("should toggle when toggle is called", function () { 80 | stop() 81 | $.support.transition = false 82 | var div = $("") 83 | div 84 | .bind("shown", function () { 85 | ok($('#modal-test').is(":visible"), 'modal visible') 86 | ok($('#modal-test').length, 'modal insterted into dom') 87 | div.modal("toggle") 88 | }) 89 | .bind("hidden", function() { 90 | ok(!$('#modal-test').is(":visible"), 'modal hidden') 91 | div.remove() 92 | start() 93 | }) 94 | .modal("toggle") 95 | }) 96 | 97 | test("should remove from dom when click [data-dismiss=modal]", function () { 98 | stop() 99 | $.support.transition = false 100 | var div = $("") 101 | div 102 | .bind("shown", function () { 103 | ok($('#modal-test').is(":visible"), 'modal visible') 104 | ok($('#modal-test').length, 'modal insterted into dom') 105 | div.find('.close').click() 106 | }) 107 | .bind("hidden", function() { 108 | ok(!$('#modal-test').is(":visible"), 'modal hidden') 109 | div.remove() 110 | start() 111 | }) 112 | .modal("toggle") 113 | }) 114 | }) -------------------------------------------------------------------------------- /js/superfish/superfish.js: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Superfish v1.4.8 - jQuery menu widget 4 | * Copyright (c) 2008 Joel Birch 5 | * 6 | * Dual licensed under the MIT and GPL licenses: 7 | * http://www.opensource.org/licenses/mit-license.php 8 | * http://www.gnu.org/licenses/gpl.html 9 | * 10 | * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt 11 | */ 12 | 13 | (function($){ 14 | $.fn.superfish = function(op){ 15 | 16 | var sf = $.fn.superfish, 17 | c = sf.c, 18 | $arrow = $([' »'].join('')), 19 | over = function(){ 20 | var $$ = $(this), menu = getMenu($$); 21 | clearTimeout(menu.sfTimer); 22 | $$.showSuperfishUl().siblings().hideSuperfishUl(); 23 | }, 24 | out = function(){ 25 | var $$ = $(this), menu = getMenu($$), o = sf.op; 26 | clearTimeout(menu.sfTimer); 27 | menu.sfTimer=setTimeout(function(){ 28 | o.retainPath=($.inArray($$[0],o.$path)>-1); 29 | $$.hideSuperfishUl(); 30 | if (o.$path.length && $$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);} 31 | },o.delay); 32 | }, 33 | getMenu = function($menu){ 34 | var menu = $menu.parents(['ul.',c.menuClass,':first'].join(''))[0]; 35 | sf.op = sf.o[menu.serial]; 36 | return menu; 37 | }, 38 | addArrow = function($a){ $a.addClass(c.anchorClass).append($arrow.clone()); }; 39 | 40 | return this.each(function() { 41 | var s = this.serial = sf.o.length; 42 | var o = $.extend({},sf.defaults,op); 43 | o.$path = $('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){ 44 | $(this).addClass([o.hoverClass,c.bcClass].join(' ')) 45 | .filter('li:has(ul)').removeClass(o.pathClass); 46 | }); 47 | sf.o[s] = sf.op = o; 48 | 49 | $('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() { 50 | if (o.autoArrows) addArrow( $('>a:first-child',this) ); 51 | }) 52 | .not('.'+c.bcClass) 53 | .hideSuperfishUl(); 54 | 55 | var $a = $('a',this); 56 | $a.each(function(i){ 57 | var $li = $a.eq(i).parents('li'); 58 | $a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);}); 59 | }); 60 | o.onInit.call(this); 61 | 62 | }).each(function() { 63 | var menuClasses = [c.menuClass]; 64 | if (sf.op.dropShadows && !($.browser.msie && $.browser.version < 7)) menuClasses.push(c.shadowClass); 65 | $(this).addClass(menuClasses.join(' ')); 66 | }); 67 | }; 68 | 69 | var sf = $.fn.superfish; 70 | sf.o = []; 71 | sf.op = {}; 72 | sf.IE7fix = function(){ 73 | var o = sf.op; 74 | if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity!=undefined) 75 | this.toggleClass(sf.c.shadowClass+'-off'); 76 | }; 77 | sf.c = { 78 | bcClass : 'sf-breadcrumb', 79 | menuClass : 'sf-js-enabled', 80 | anchorClass : 'sf-with-ul', 81 | arrowClass : 'sf-sub-indicator', 82 | shadowClass : 'sf-shadow' 83 | }; 84 | sf.defaults = { 85 | hoverClass : 'sfHover', 86 | pathClass : 'overideThisToUse', 87 | pathLevels : 1, 88 | delay : 800, 89 | animation : {opacity:'show'}, 90 | speed : 'normal', 91 | autoArrows : true, 92 | dropShadows : true, 93 | disableHI : false, 94 | onInit : function(){}, 95 | onBeforeShow: function(){}, 96 | onShow : function(){}, 97 | onHide : function(){} 98 | }; 99 | $.fn.extend({ 100 | hideSuperfishUl : function(){ 101 | var o = sf.op, 102 | not = (o.retainPath===true) ? o.$path : ''; 103 | o.retainPath = false; 104 | var $ul = $(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass) 105 | .find('>ul').hide().css('visibility','hidden'); 106 | o.onHide.call($ul); 107 | return this; 108 | }, 109 | showSuperfishUl : function(){ 110 | var o = sf.op, 111 | sh = sf.c.shadowClass+'-off', 112 | $ul = this.addClass(o.hoverClass) 113 | .find('>ul:hidden').css('visibility','visible'); 114 | sf.IE7fix.call($ul); 115 | o.onBeforeShow.call($ul); 116 | $ul.animate(o.animation,o.speed,function(){ sf.IE7fix.call($ul); o.onShow.call($ul); }); 117 | return this; 118 | } 119 | }); 120 | 121 | })(jQuery); 122 | -------------------------------------------------------------------------------- /about/js/wow.min.js: -------------------------------------------------------------------------------- 1 | /*! WOW - v0.1.9 - 2014-05-10 2 | * Copyright (c) 2014 Matthieu Aussaguel; Licensed MIT */(function(){var a,b,c=function(a,b){return function(){return a.apply(b,arguments)}};a=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in a)d=a[c],null!=d&&(b[c]=d);return b},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a}(),b=this.WeakMap||(b=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),this.WOW=function(){function d(a){null==a&&(a={}),this.scrollCallback=c(this.scrollCallback,this),this.scrollHandler=c(this.scrollHandler,this),this.start=c(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),this.animationNameCache=new b}return d.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0},d.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():document.addEventListener("DOMContentLoaded",this.start)},d.prototype.start=function(){var a,b,c,d;if(this.boxes=this.element.getElementsByClassName(this.config.boxClass),this.boxes.length){if(this.disabled())return this.resetStyle();for(d=this.boxes,b=0,c=d.length;c>b;b++)a=d[b],this.applyStyle(a,!0);return window.addEventListener("scroll",this.scrollHandler,!1),window.addEventListener("resize",this.scrollHandler,!1),this.interval=setInterval(this.scrollCallback,50)}},d.prototype.stop=function(){return window.removeEventListener("scroll",this.scrollHandler,!1),window.removeEventListener("resize",this.scrollHandler,!1),null!=this.interval?clearInterval(this.interval):void 0},d.prototype.show=function(a){return this.applyStyle(a),a.className=""+a.className+" "+this.config.animateClass},d.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},d.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),d.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.setAttribute("style","visibility: visible;"));return e},d.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a},d.prototype.vendors=["moz","webkit"],d.prototype.vendorSet=function(a,b){var c,d,e,f;f=[];for(c in b)d=b[c],a[""+c]=d,f.push(function(){var b,f,g,h;for(g=this.vendors,h=[],b=0,f=g.length;f>b;b++)e=g[b],h.push(a[""+e+c.charAt(0).toUpperCase()+c.substr(1)]=d);return h}.call(this));return f},d.prototype.vendorCSS=function(a,b){var c,d,e,f,g,h;for(d=window.getComputedStyle(a),c=d.getPropertyCSSValue(b),h=this.vendors,f=0,g=h.length;g>f;f++)e=h[f],c=c||d.getPropertyCSSValue("-"+e+"-"+b);return c},d.prototype.animationName=function(a){var b;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=window.getComputedStyle(a).getPropertyValue("animation-name")}return"none"===b?"":b},d.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},d.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},d.prototype.scrollHandler=function(){return this.scrolled=!0},d.prototype.scrollCallback=function(){var a;return this.scrolled&&(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),!this.boxes.length)?this.stop():void 0},d.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},d.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=window.pageYOffset,e=f+this.element.clientHeight-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},d.prototype.util=function(){return this._util||(this._util=new a)},d.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},d}()}).call(this); -------------------------------------------------------------------------------- /js/validation_script.js: -------------------------------------------------------------------------------- 1 | function validateForm() 2 | { 3 | 4 | //for alphabet characters only 5 | var str=document.form1.first_name.value; 6 | var valid="abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ"; 7 | //comparing user input with the characters one by one 8 | for(i=0;i60) 82 | { 83 | alert("Please Give age in the range of 18 to 60"); 84 | document.form1.age.focus(); 85 | return false; 86 | } 87 | //Validating Gender to be selected by radio 88 | if(document.form1.gender[0].checked==false && document.form1.gender[0].checked==false ){ 89 | alert("Please Select Gender"); 90 | document.form1.gender.focus(); 91 | return false; 92 | } 93 | //validating langauge that is selected by a check box 94 | if(document.form1.langauge1.checked==false && document.form1.langauge2.checked==false && document.form1.langauge.checked==false ){ 95 | alert("Please Select Langauge of your choice"); 96 | return false; 97 | } 98 | 99 | 100 | if(document.form1.country.value=="") 101 | { 102 | alert("Please Choose the country"); 103 | document.form1.country.focus(); 104 | return false; 105 | } 106 | 107 | if(document.form1.username.value=="") 108 | { 109 | alert("Username Field is Empty"); 110 | document.form1.username.focus(); 111 | return false; 112 | } 113 | 114 | if(document.form1.password.value=="") 115 | { 116 | alert("Password Field is Empty "); 117 | document.form1.password.focus(); 118 | return false; 119 | } 120 | 121 | if(document.form1.password.length<6) 122 | { 123 | alert("Password must be atleast 6 characters long"); 124 | document.form1.password.focus(); 125 | return false; 126 | } 127 | if(document.form1.retype_password.value=="") 128 | { 129 | alert("Retype Password "); 130 | document.form1.retype_password.focus(); 131 | return false; 132 | } 133 | 134 | if((document.form1.password.value)!=(document.form1.retype_password.value)) 135 | { 136 | alert("Password Does Not match "); 137 | document.form1.retype_password.value=""; 138 | document.form1.retype_password.focus(); 139 | return false; 140 | }} -------------------------------------------------------------------------------- /home_page/css/home.css: -------------------------------------------------------------------------------- 1 | 2 | #header{ 3 | width:100%; 4 | margin:0; 5 | padding:0; 6 | color: white; 7 | height: 20%; 8 | background-color: #A2A0A0; 9 | } 10 | #center{ 11 | margin-top: 5px; 12 | float: left; 13 | text-align: center; 14 | z-index: -1; 15 | 16 | } 17 | #login{ 18 | margin-top: 5px; 19 | float: right; 20 | } 21 | #admin{ 22 | opacity: 0.5; 23 | filter: alpha(opacity=40); 24 | background-image:url(home_page/images/icon5.jpeg); 25 | float: right; 26 | border-radius: 0px 10px 0px 10px; 27 | height: 80%; 28 | background-color: #A2A0A0; 29 | text-align: center; 30 | } 31 | #principal{ 32 | opacity: 0.5; 33 | filter: alpha(opacity=40); 34 | background-image:url(home_page/images/icon5.jpeg); 35 | float: right; 36 | border-radius: 0px 10px 0px 10px; 37 | height: 76%; 38 | background-color: #A2A0A0; 39 | text-align: center; 40 | 41 | 42 | } 43 | #hod{ 44 | opacity: 0.5; 45 | filter: alpha(opacity=40); 46 | float: right; 47 | background-image:url(home_page/images/icon5.jpeg); 48 | border-radius: 0px 10px 0px 10px; 49 | height:76%; 50 | background-color: #A2A0A0; 51 | text-align: center; 52 | 53 | } 54 | 55 | #teach{ 56 | opacity: 0.5; 57 | filter: alpha(opacity=40); 58 | float: right; 59 | background-image:url(home_page/images/icon5.jpeg); 60 | border-radius: 0px 10px 0px 10px; 61 | height: 76%; 62 | background-color: #A2A0A0; 63 | text-align: center; 64 | 65 | 66 | } 67 | #stud{ 68 | opacity: 0.5; 69 | filter: alpha(opacity=40); 70 | background-image:url(home_page/images/icon5.jpeg); 71 | float: right; 72 | border-radius: 0px 10px 0px 10px;; 73 | height: 76%; 74 | background-color: #A2A0A0; 75 | text-align: center; 76 | 77 | } 78 | #btm{ 79 | margin-top: 385px; 80 | background-color:#2E2E2E; 81 | height: 30%; 82 | color: ; 83 | width: 100%; 84 | 85 | } 86 | p 87 | { margin-top: 10px; 88 | color: white; 89 | font-size:18; 90 | } 91 | 92 | #down2 { 93 | height: 5%; 94 | background-color:#3C3C3C ; 95 | width:100%; 96 | text-align: center; 97 | color: white; 98 | font-size: 15; 99 | } 100 | 101 | #admin:hover { 102 | opacity: 0.9; 103 | filter: alpha(opacity=100); 104 | } 105 | #principal:hover { 106 | opacity: 0.9; 107 | filter: alpha(opacity=100); 108 | } 109 | #hod:hover { 110 | opacity: 0.9; 111 | filter: alpha(opacity=100); 112 | } 113 | #teach:hover { 114 | opacity: 0.9; 115 | filter: alpha(opacity=100); 116 | } 117 | #stud:hover { 118 | opacity: 0.9; 119 | filter: alpha(opacity=100); 120 | } 121 | 122 | 123 | #admin p a:hover { 124 | color:#3C3C3C ; 125 | } 126 | #principal p a:hover{ 127 | color:#3C3C3C ; 128 | } 129 | #hod p a:hover { 130 | color:#3C3C3C ; 131 | } 132 | #teach p a:hover { 133 | color:#3C3C3C ; 134 | } 135 | #stud p a:hover { 136 | color:#3C3C3C ; 137 | } 138 | div { 139 | width: 280px; 140 | height: 100px; 141 | 142 | /* For Safari 3.1 to 6.0 */ 143 | -webkit-transition-property: width; 144 | -webkit-transition-duration: 0.1s; 145 | -webkit-transition-timing-function: linear; 146 | 147 | /* Standard syntax */ 148 | transition-property: width; 149 | transition-duration: 0.1s; 150 | transition-timing-function: linear; 151 | 152 | } 153 | 154 | #admin:hover { 155 | width: 330px; 156 | } 157 | #principal:hover { 158 | width: 330px; 159 | } 160 | #hod:hover { 161 | width: 330px; 162 | } 163 | #teach:hover { 164 | width: 330px; 165 | } 166 | #stud:hover { 167 | width: 330px; 168 | } 169 | body{ 170 | background-color: #e3e0cf; 171 | } 172 | ul{margin-top: 25px; 173 | opacity: 0.9; 174 | filter: alpha(opacity=100); 175 | list-style-type: none; 176 | float:left; 177 | 178 | } 179 | ul:hover { 180 | opacity: 0.5; 181 | filter: alpha(opacity=40); 182 | } 183 | .im{ 184 | margin-top: 40px; 185 | width: 350px; 186 | z-index: 9999; 187 | height: 100px; 188 | } 189 | #imga{ 190 | 191 | width: 150px; 192 | height: 100px; 193 | margin-left: 70%; 194 | z-index: 99999; 195 | } 196 | .i{ float: left; 197 | width: 300px; 198 | height: 100px; 199 | z-index: 99999; 200 | 201 | } 202 | .head{ 203 | margin-left: 340px; 204 | text-shadow: 2px 2px #2E2E2E; 205 | } 206 | a{ color: white; 207 | text-decoration: none; 208 | } 209 | .foot{ 210 | font-size: 15px; 211 | font-weight: 300; 212 | 213 | } 214 | h3{ 215 | font-weight: 300; 216 | } -------------------------------------------------------------------------------- /js/bootstrap-dropdown.js: -------------------------------------------------------------------------------- 1 | /* ============================================================ 2 | * bootstrap-dropdown.js v2.1.0 3 | * http://twitter.github.com/bootstrap/javascript.html#dropdowns 4 | * ============================================================ 5 | * Copyright 2012 Twitter, Inc. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ============================================================ */ 19 | 20 | 21 | !function ($) { 22 | 23 | "use strict"; // jshint ;_; 24 | 25 | 26 | /* DROPDOWN CLASS DEFINITION 27 | * ========================= */ 28 | 29 | var toggle = '[data-toggle=dropdown]' 30 | , Dropdown = function (element) { 31 | var $el = $(element).on('click.dropdown.data-api', this.toggle) 32 | $('html').on('click.dropdown.data-api', function () { 33 | $el.parent().removeClass('open') 34 | }) 35 | } 36 | 37 | Dropdown.prototype = { 38 | 39 | constructor: Dropdown 40 | 41 | , toggle: function (e) { 42 | var $this = $(this) 43 | , $parent 44 | , isActive 45 | 46 | if ($this.is('.disabled, :disabled')) return 47 | 48 | $parent = getParent($this) 49 | 50 | isActive = $parent.hasClass('open') 51 | 52 | clearMenus() 53 | 54 | if (!isActive) { 55 | $parent.toggleClass('open') 56 | $this.focus() 57 | } 58 | 59 | return false 60 | } 61 | 62 | , keydown: function (e) { 63 | var $this 64 | , $items 65 | , $active 66 | , $parent 67 | , isActive 68 | , index 69 | 70 | if (!/(38|40|27)/.test(e.keyCode)) return 71 | 72 | $this = $(this) 73 | 74 | e.preventDefault() 75 | e.stopPropagation() 76 | 77 | if ($this.is('.disabled, :disabled')) return 78 | 79 | $parent = getParent($this) 80 | 81 | isActive = $parent.hasClass('open') 82 | 83 | if (!isActive || (isActive && e.keyCode == 27)) return $this.click() 84 | 85 | $items = $('[role=menu] li:not(.divider) a', $parent) 86 | 87 | if (!$items.length) return 88 | 89 | index = $items.index($items.filter(':focus')) 90 | 91 | if (e.keyCode == 38 && index > 0) index-- // up 92 | if (e.keyCode == 40 && index < $items.length - 1) index++ // down 93 | if (!~index) index = 0 94 | 95 | $items 96 | .eq(index) 97 | .focus() 98 | } 99 | 100 | } 101 | 102 | function clearMenus() { 103 | getParent($(toggle)) 104 | .removeClass('open') 105 | } 106 | 107 | function getParent($this) { 108 | var selector = $this.attr('data-target') 109 | , $parent 110 | 111 | if (!selector) { 112 | selector = $this.attr('href') 113 | selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7 114 | } 115 | 116 | $parent = $(selector) 117 | $parent.length || ($parent = $this.parent()) 118 | 119 | return $parent 120 | } 121 | 122 | 123 | /* DROPDOWN PLUGIN DEFINITION 124 | * ========================== */ 125 | 126 | $.fn.dropdown = function (option) { 127 | return this.each(function () { 128 | var $this = $(this) 129 | , data = $this.data('dropdown') 130 | if (!data) $this.data('dropdown', (data = new Dropdown(this))) 131 | if (typeof option == 'string') data[option].call($this) 132 | }) 133 | } 134 | 135 | $.fn.dropdown.Constructor = Dropdown 136 | 137 | 138 | /* APPLY TO STANDARD DROPDOWN ELEMENTS 139 | * =================================== */ 140 | 141 | $(function () { 142 | $('html') 143 | .on('click.dropdown.data-api touchstart.dropdown.data-api', clearMenus) 144 | $('body') 145 | .on('click.dropdown touchstart.dropdown.data-api', '.dropdown', function (e) { e.stopPropagation() }) 146 | .on('click.dropdown.data-api touchstart.dropdown.data-api' , toggle, Dropdown.prototype.toggle) 147 | .on('keydown.dropdown.data-api touchstart.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown) 148 | }) 149 | 150 | }(window.jQuery); -------------------------------------------------------------------------------- /js/tests/unit/bootstrap-popover.js: -------------------------------------------------------------------------------- 1 | $(function () { 2 | 3 | module("bootstrap-popover") 4 | 5 | test("should be defined on jquery object", function () { 6 | var div = $('
      ') 7 | ok(div.popover, 'popover method is defined') 8 | }) 9 | 10 | test("should return element", function () { 11 | var div = $('
      ') 12 | ok(div.popover() == div, 'document.body returned') 13 | }) 14 | 15 | test("should render popover element", function () { 16 | $.support.transition = false 17 | var popover = $('@mdo') 18 | .appendTo('#qunit-fixture') 19 | .popover('show') 20 | 21 | ok($('.popover').length, 'popover was inserted') 22 | popover.popover('hide') 23 | ok(!$(".popover").length, 'popover removed') 24 | }) 25 | 26 | test("should store popover instance in popover data object", function () { 27 | $.support.transition = false 28 | var popover = $('@mdo') 29 | .popover() 30 | 31 | ok(!!popover.data('popover'), 'popover instance exists') 32 | }) 33 | 34 | test("should get title and content from options", function () { 35 | $.support.transition = false 36 | var popover = $('@fat') 37 | .appendTo('#qunit-fixture') 38 | .popover({ 39 | title: function () { 40 | return '@fat' 41 | } 42 | , content: function () { 43 | return 'loves writing tests (╯°□°)╯︵ ┻━┻' 44 | } 45 | }) 46 | 47 | popover.popover('show') 48 | 49 | ok($('.popover').length, 'popover was inserted') 50 | equals($('.popover .popover-title').text(), '@fat', 'title correctly inserted') 51 | equals($('.popover .popover-content').text(), 'loves writing tests (╯°□°)╯︵ ┻━┻', 'content correctly inserted') 52 | 53 | popover.popover('hide') 54 | ok(!$('.popover').length, 'popover was removed') 55 | $('#qunit-fixture').empty() 56 | }) 57 | 58 | test("should get title and content from attributes", function () { 59 | $.support.transition = false 60 | var popover = $('@mdo') 61 | .appendTo('#qunit-fixture') 62 | .popover() 63 | .popover('show') 64 | 65 | ok($('.popover').length, 'popover was inserted') 66 | equals($('.popover .popover-title').text(), '@mdo', 'title correctly inserted') 67 | equals($('.popover .popover-content').text(), "loves data attributes (づ。◕‿‿◕。)づ ︵ ┻━┻", 'content correctly inserted') 68 | 69 | popover.popover('hide') 70 | ok(!$('.popover').length, 'popover was removed') 71 | $('#qunit-fixture').empty() 72 | }) 73 | 74 | test("should respect custom classes", function() { 75 | $.support.transition = false 76 | var popover = $('@fat') 77 | .appendTo('#qunit-fixture') 78 | .popover({ 79 | title: 'Test' 80 | , content: 'Test' 81 | , template: '

      ' 82 | }) 83 | 84 | popover.popover('show') 85 | 86 | ok($('.popover').length, 'popover was inserted') 87 | ok($('.popover').hasClass('foobar'), 'custom class is present') 88 | 89 | popover.popover('hide') 90 | ok(!$('.popover').length, 'popover was removed') 91 | $('#qunit-fixture').empty() 92 | }) 93 | 94 | test("should destroy popover", function () { 95 | var popover = $('
      ').popover({trigger: 'hover'}).on('click.foo', function(){}) 96 | ok(popover.data('popover'), 'popover has data') 97 | ok(popover.data('events').mouseover && popover.data('events').mouseout, 'popover has hover event') 98 | ok(popover.data('events').click[0].namespace == 'foo', 'popover has extra click.foo event') 99 | popover.popover('show') 100 | popover.popover('destroy') 101 | ok(!popover.hasClass('in'), 'popover is hidden') 102 | ok(!popover.data('popover'), 'popover does not have data') 103 | ok(popover.data('events').click[0].namespace == 'foo', 'popover still has click.foo') 104 | ok(!popover.data('events').mouseover && !popover.data('events').mouseout, 'popover does not have any events') 105 | }) 106 | 107 | }) -------------------------------------------------------------------------------- /style/mystyle_login.css: -------------------------------------------------------------------------------- 1 | body{ 2 | margin-top: 0px; 3 | padding-top: 0px;} 4 | #content{ 5 | margin-left: auto; 6 | margin-right: auto; 7 | background: #E8E8E8; 8 | width: 760px; 9 | height: 600px; 10 | } 11 | #header { 12 | width: 760px; 13 | height: 96px; 14 | background: #00CED1; 15 | border-bottom: solid 3px blue; 16 | } 17 | 18 | #header h1{ 19 | margin: 0px; 20 | padding-top: 5px; 21 | margin-left: 50px; 22 | color: #fff; 23 | } 24 | #header img {float:left; height: 90px; width: 150px;} 25 | #left_column { 26 | float: left; 27 | width: 200px; 28 | height: 470px; 29 | background: #00CED1; 30 | border-right:solid 2px blue; 31 | } 32 | #main { 33 | width: 560px; 34 | height: 470px; 35 | background: #E8E8E8; 36 | } 37 | #main img { height: 120px; width: 320px;} 38 | #footer{ 39 | width: 760px; 40 | height: 55px; 41 | background: #00CED1; 42 | clear: all; 43 | border-top: solid 2px blue; 44 | } 45 | 46 | .container { 47 | margin: 50px auto 70px 100px; 48 | width: 640px; 49 | } 50 | 51 | .login { 52 | position: relative; 53 | margin: 0 auto; 54 | padding: 20px 20px 20px; 55 | width: 310px; 56 | background: white; 57 | border-radius: 3px; 58 | @include box-shadow(0 0 200px rgba(white, .5), 0 1px 2px rgba(black, .3)); 59 | 60 | &:before { 61 | content: ''; 62 | position: absolute; 63 | top: -8px; right: -8px; bottom: -8px; left: -8px; 64 | z-index: -1; 65 | background: rgba(black, .08); 66 | border-radius: 4px; 67 | } 68 | h1 { 69 | margin: -20px -20px 21px; 70 | line-height: 40px; 71 | font-size: 15px; 72 | font-weight: bold; 73 | color: #555; 74 | text-align: center; 75 | text-shadow: 0 1px white; 76 | background: #f3f3f3; 77 | border-bottom: 1px solid #cfcfcf; 78 | border-radius: 3px 3px 0 0; 79 | @include linear-gradient(top, whiteffd, #eef2f5); 80 | @include box-shadow(0 1px #f5f5f5); 81 | } 82 | 83 | p { margin: 20px 0 0; } 84 | p:first-child { margin-top: 0; } 85 | 86 | input[type=text], input[type=password], input[type=email] , input[type=select] { width: 278px; } 87 | 88 | p.remember_me { 89 | float: left; 90 | line-height: 31px; 91 | 92 | label { 93 | font-size: 12px; 94 | color: #777; 95 | cursor: pointer; 96 | } 97 | 98 | input { 99 | position: relative; 100 | bottom: 1px; 101 | margin-right: 4px; 102 | vertical-align: middle; 103 | } 104 | } 105 | 106 | p.submit { text-align: right; } 107 | } 108 | 109 | .login-help { 110 | margin: 20px 0; 111 | font-size: 11px; 112 | color: white; 113 | text-align: center; 114 | text-shadow: 0 1px #2a85a1; 115 | 116 | a { 117 | color: #cce7fa; 118 | text-decoration: none; 119 | 120 | &:hover { text-decoration: underline; } 121 | } 122 | } 123 | 124 | :-moz-placeholder { 125 | color: #c9c9c9 !important; 126 | font-size: 13px; 127 | } 128 | 129 | ::-webkit-input-placeholder { 130 | color: #ccc; 131 | font-size: 13px; 132 | } 133 | 134 | input { 135 | font-family: 'Lucida Grande', Tahoma, Verdana, sans-serif; 136 | font-size: 14px; 137 | } 138 | 139 | input[type=text], input[type=password], input[type=email] , input[type=select]{ 140 | margin: 5px; 141 | padding: 0 10px; 142 | width: 200px; 143 | height: 34px; 144 | color: #404040; 145 | background: white; 146 | border: 1px solid; 147 | border-color: #c4c4c4 #d1d1d1 #d4d4d4; 148 | border-radius: 2px; 149 | outline: 5px solid #eff4f7; 150 | -moz-outline-radius: 3px; // Can we get this on WebKit please? 151 | @include box-shadow(inset 0 1px 3px rgba(black, .12)); 152 | 153 | &:focus { 154 | border-color: #7dc9e2; 155 | outline-color: #dceefc; 156 | outline-offset: 0; // WebKit sets this to -1 by default 157 | } 158 | } 159 | 160 | input[type=submit] { 161 | padding: 0 18px; 162 | height: 29px; 163 | font-size: 12px; 164 | font-weight: bold; 165 | color: #527881; 166 | text-shadow: 0 1px #e3f1f1; 167 | background: #cde5ef; 168 | border: 1px solid; 169 | border-color: #b4ccce #b3c0c8 #9eb9c2; 170 | border-radius: 16px; 171 | outline: 0; 172 | @include box-sizing(content-box); // Firefox sets this to border-box by default 173 | @include linear-gradient(top, #edf5f8, #cde5ef); 174 | @include box-shadow(inset 0 1px white, 0 1px 2px rgba(black, .15)); 175 | 176 | &:active { 177 | background: #cde5ef; 178 | border-color: #9eb9c2 #b3c0c8 #b4ccce; 179 | @include box-shadow(inset 0 0 3px rgba(black, .2)); 180 | } 181 | } 182 | 183 | .lt-ie9 { 184 | input[type=text], input[type=password], input[type=email] , input[type=select] { line-height: 34px; } 185 | } 186 | -------------------------------------------------------------------------------- /js/bootstrap-scrollspy.js: -------------------------------------------------------------------------------- 1 | /* ============================================================= 2 | * bootstrap-scrollspy.js v2.1.0 3 | * http://twitter.github.com/bootstrap/javascript.html#scrollspy 4 | * ============================================================= 5 | * Copyright 2012 Twitter, Inc. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ============================================================== */ 19 | 20 | 21 | !function ($) { 22 | 23 | "use strict"; // jshint ;_; 24 | 25 | 26 | /* SCROLLSPY CLASS DEFINITION 27 | * ========================== */ 28 | 29 | function ScrollSpy(element, options) { 30 | var process = $.proxy(this.process, this) 31 | , $element = $(element).is('body') ? $(window) : $(element) 32 | , href 33 | this.options = $.extend({}, $.fn.scrollspy.defaults, options) 34 | this.$scrollElement = $element.on('scroll.scroll-spy.data-api', process) 35 | this.selector = (this.options.target 36 | || ((href = $(element).attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7 37 | || '') + ' .nav li > a' 38 | this.$body = $('body') 39 | this.refresh() 40 | this.process() 41 | } 42 | 43 | ScrollSpy.prototype = { 44 | 45 | constructor: ScrollSpy 46 | 47 | , refresh: function () { 48 | var self = this 49 | , $targets 50 | 51 | this.offsets = $([]) 52 | this.targets = $([]) 53 | 54 | $targets = this.$body 55 | .find(this.selector) 56 | .map(function () { 57 | var $el = $(this) 58 | , href = $el.data('target') || $el.attr('href') 59 | , $href = /^#\w/.test(href) && $(href) 60 | return ( $href 61 | && $href.length 62 | && [[ $href.position().top, href ]] ) || null 63 | }) 64 | .sort(function (a, b) { return a[0] - b[0] }) 65 | .each(function () { 66 | self.offsets.push(this[0]) 67 | self.targets.push(this[1]) 68 | }) 69 | } 70 | 71 | , process: function () { 72 | var scrollTop = this.$scrollElement.scrollTop() + this.options.offset 73 | , scrollHeight = this.$scrollElement[0].scrollHeight || this.$body[0].scrollHeight 74 | , maxScroll = scrollHeight - this.$scrollElement.height() 75 | , offsets = this.offsets 76 | , targets = this.targets 77 | , activeTarget = this.activeTarget 78 | , i 79 | 80 | if (scrollTop >= maxScroll) { 81 | return activeTarget != (i = targets.last()[0]) 82 | && this.activate ( i ) 83 | } 84 | 85 | for (i = offsets.length; i--;) { 86 | activeTarget != targets[i] 87 | && scrollTop >= offsets[i] 88 | && (!offsets[i + 1] || scrollTop <= offsets[i + 1]) 89 | && this.activate( targets[i] ) 90 | } 91 | } 92 | 93 | , activate: function (target) { 94 | var active 95 | , selector 96 | 97 | this.activeTarget = target 98 | 99 | $(this.selector) 100 | .parent('.active') 101 | .removeClass('active') 102 | 103 | selector = this.selector 104 | + '[data-target="' + target + '"],' 105 | + this.selector + '[href="' + target + '"]' 106 | 107 | active = $(selector) 108 | .parent('li') 109 | .addClass('active') 110 | 111 | if (active.parent('.dropdown-menu').length) { 112 | active = active.closest('li.dropdown').addClass('active') 113 | } 114 | 115 | active.trigger('activate') 116 | } 117 | 118 | } 119 | 120 | 121 | /* SCROLLSPY PLUGIN DEFINITION 122 | * =========================== */ 123 | 124 | $.fn.scrollspy = function (option) { 125 | return this.each(function () { 126 | var $this = $(this) 127 | , data = $this.data('scrollspy') 128 | , options = typeof option == 'object' && option 129 | if (!data) $this.data('scrollspy', (data = new ScrollSpy(this, options))) 130 | if (typeof option == 'string') data[option]() 131 | }) 132 | } 133 | 134 | $.fn.scrollspy.Constructor = ScrollSpy 135 | 136 | $.fn.scrollspy.defaults = { 137 | offset: 10 138 | } 139 | 140 | 141 | /* SCROLLSPY DATA-API 142 | * ================== */ 143 | 144 | $(window).on('load', function () { 145 | $('[data-spy="scroll"]').each(function () { 146 | var $spy = $(this) 147 | $spy.scrollspy($spy.data()) 148 | }) 149 | }) 150 | 151 | }(window.jQuery); -------------------------------------------------------------------------------- /js/bootstrap-collapse.js: -------------------------------------------------------------------------------- 1 | /* ============================================================= 2 | * bootstrap-collapse.js v2.1.0 3 | * http://twitter.github.com/bootstrap/javascript.html#collapse 4 | * ============================================================= 5 | * Copyright 2012 Twitter, Inc. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ============================================================ */ 19 | 20 | 21 | !function ($) { 22 | 23 | "use strict"; // jshint ;_; 24 | 25 | 26 | /* COLLAPSE PUBLIC CLASS DEFINITION 27 | * ================================ */ 28 | 29 | var Collapse = function (element, options) { 30 | this.$element = $(element) 31 | this.options = $.extend({}, $.fn.collapse.defaults, options) 32 | 33 | if (this.options.parent) { 34 | this.$parent = $(this.options.parent) 35 | } 36 | 37 | this.options.toggle && this.toggle() 38 | } 39 | 40 | Collapse.prototype = { 41 | 42 | constructor: Collapse 43 | 44 | , dimension: function () { 45 | var hasWidth = this.$element.hasClass('width') 46 | return hasWidth ? 'width' : 'height' 47 | } 48 | 49 | , show: function () { 50 | var dimension 51 | , scroll 52 | , actives 53 | , hasData 54 | 55 | if (this.transitioning) return 56 | 57 | dimension = this.dimension() 58 | scroll = $.camelCase(['scroll', dimension].join('-')) 59 | actives = this.$parent && this.$parent.find('> .accordion-group > .in') 60 | 61 | if (actives && actives.length) { 62 | hasData = actives.data('collapse') 63 | if (hasData && hasData.transitioning) return 64 | actives.collapse('hide') 65 | hasData || actives.data('collapse', null) 66 | } 67 | 68 | this.$element[dimension](0) 69 | this.transition('addClass', $.Event('show'), 'shown') 70 | $.support.transition && this.$element[dimension](this.$element[0][scroll]) 71 | } 72 | 73 | , hide: function () { 74 | var dimension 75 | if (this.transitioning) return 76 | dimension = this.dimension() 77 | this.reset(this.$element[dimension]()) 78 | this.transition('removeClass', $.Event('hide'), 'hidden') 79 | this.$element[dimension](0) 80 | } 81 | 82 | , reset: function (size) { 83 | var dimension = this.dimension() 84 | 85 | this.$element 86 | .removeClass('collapse') 87 | [dimension](size || 'auto') 88 | [0].offsetWidth 89 | 90 | this.$element[size !== null ? 'addClass' : 'removeClass']('collapse') 91 | 92 | return this 93 | } 94 | 95 | , transition: function (method, startEvent, completeEvent) { 96 | var that = this 97 | , complete = function () { 98 | if (startEvent.type == 'show') that.reset() 99 | that.transitioning = 0 100 | that.$element.trigger(completeEvent) 101 | } 102 | 103 | this.$element.trigger(startEvent) 104 | 105 | if (startEvent.isDefaultPrevented()) return 106 | 107 | this.transitioning = 1 108 | 109 | this.$element[method]('in') 110 | 111 | $.support.transition && this.$element.hasClass('collapse') ? 112 | this.$element.one($.support.transition.end, complete) : 113 | complete() 114 | } 115 | 116 | , toggle: function () { 117 | this[this.$element.hasClass('in') ? 'hide' : 'show']() 118 | } 119 | 120 | } 121 | 122 | 123 | /* COLLAPSIBLE PLUGIN DEFINITION 124 | * ============================== */ 125 | 126 | $.fn.collapse = function (option) { 127 | return this.each(function () { 128 | var $this = $(this) 129 | , data = $this.data('collapse') 130 | , options = typeof option == 'object' && option 131 | if (!data) $this.data('collapse', (data = new Collapse(this, options))) 132 | if (typeof option == 'string') data[option]() 133 | }) 134 | } 135 | 136 | $.fn.collapse.defaults = { 137 | toggle: true 138 | } 139 | 140 | $.fn.collapse.Constructor = Collapse 141 | 142 | 143 | /* COLLAPSIBLE DATA-API 144 | * ==================== */ 145 | 146 | $(function () { 147 | $('body').on('click.collapse.data-api', '[data-toggle=collapse]', function (e) { 148 | var $this = $(this), href 149 | , target = $this.attr('data-target') 150 | || e.preventDefault() 151 | || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7 152 | , option = $(target).data('collapse') ? 'toggle' : $this.data() 153 | $this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed') 154 | $(target).collapse(option) 155 | }) 156 | }) 157 | 158 | }(window.jQuery); -------------------------------------------------------------------------------- /payment.php: -------------------------------------------------------------------------------- 1 | 0) {header("location:http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/payment.php"); 22 | }else{ 23 | $message1="Registration Failed, Try again"; 24 | } 25 | } 26 | ?> 27 | 28 | 29 | 30 | <?php echo $user;?> -Pharmacy Management System 31 | 32 | 33 | 34 | 35 | 37 | 38 | 39 |
      40 | 42 |
      43 |
      44 | 50 |
      51 |
      52 |
      53 |
      54 |

      Manage Payments

      55 |
      56 |
      57 | 58 | 63 | 64 |
      65 | 68 | 69 | "; 84 | echo "payment_idinvoice_nocustomer_namepayment_typetotal_ammountDelete"; 85 | 86 | // loop through results of database query, displaying them in the table 87 | while($row = mysql_fetch_array( $result )) { 88 | 89 | // echo out the contents of each row into a table 90 | echo ""; 91 | echo '' . $row['payment_id'] . ''; 92 | echo '' . $row['invoice_no'] . ''; 93 | echo '' . $row['customer_name'] . ''; 94 | echo '' . $row['payment_type'] . ''; 95 | echo '' . $row['total_ammount'] . '';?> 96 | 97 | 98 | 101 | echo ""; 102 | ?> 103 |
      104 |
      105 | 106 | 109 |
      110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 |
      118 |
      119 |
      120 | 121 |
      122 | 123 |
      124 | 125 |
      126 | 127 |
      128 | 129 | 130 | -------------------------------------------------------------------------------- /home_page/js/easing.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery EasIng v1.1.2 - http://gsgd.co.uk/sandbox/jquery.easIng.php 3 | * 4 | * Uses the built In easIng capabilities added In jQuery 1.1 5 | * to offer multiple easIng options 6 | * 7 | * Copyright (c) 2007 George Smith 8 | * Licensed under the MIT License: 9 | * http://www.opensource.org/licenses/mit-license.php 10 | */ 11 | 12 | // t: current time, b: begInnIng value, c: change In value, d: duration 13 | 14 | jQuery.extend( jQuery.easing, 15 | { 16 | easeInQuad: function (x, t, b, c, d) { 17 | return c*(t/=d)*t + b; 18 | }, 19 | easeOutQuad: function (x, t, b, c, d) { 20 | return -c *(t/=d)*(t-2) + b; 21 | }, 22 | easeInOutQuad: function (x, t, b, c, d) { 23 | if ((t/=d/2) < 1) return c/2*t*t + b; 24 | return -c/2 * ((--t)*(t-2) - 1) + b; 25 | }, 26 | easeInCubic: function (x, t, b, c, d) { 27 | return c*(t/=d)*t*t + b; 28 | }, 29 | easeOutCubic: function (x, t, b, c, d) { 30 | return c*((t=t/d-1)*t*t + 1) + b; 31 | }, 32 | easeInOutCubic: function (x, t, b, c, d) { 33 | if ((t/=d/2) < 1) return c/2*t*t*t + b; 34 | return c/2*((t-=2)*t*t + 2) + b; 35 | }, 36 | easeInQuart: function (x, t, b, c, d) { 37 | return c*(t/=d)*t*t*t + b; 38 | }, 39 | easeOutQuart: function (x, t, b, c, d) { 40 | return -c * ((t=t/d-1)*t*t*t - 1) + b; 41 | }, 42 | easeInOutQuart: function (x, t, b, c, d) { 43 | if ((t/=d/2) < 1) return c/2*t*t*t*t + b; 44 | return -c/2 * ((t-=2)*t*t*t - 2) + b; 45 | }, 46 | easeInQuint: function (x, t, b, c, d) { 47 | return c*(t/=d)*t*t*t*t + b; 48 | }, 49 | easeOutQuint: function (x, t, b, c, d) { 50 | return c*((t=t/d-1)*t*t*t*t + 1) + b; 51 | }, 52 | easeInOutQuint: function (x, t, b, c, d) { 53 | if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; 54 | return c/2*((t-=2)*t*t*t*t + 2) + b; 55 | }, 56 | easeInSine: function (x, t, b, c, d) { 57 | return -c * Math.cos(t/d * (Math.PI/2)) + c + b; 58 | }, 59 | easeOutSine: function (x, t, b, c, d) { 60 | return c * Math.sin(t/d * (Math.PI/2)) + b; 61 | }, 62 | easeInOutSine: function (x, t, b, c, d) { 63 | return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; 64 | }, 65 | easeInExpo: function (x, t, b, c, d) { 66 | return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; 67 | }, 68 | easeOutExpo: function (x, t, b, c, d) { 69 | return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; 70 | }, 71 | easeInOutExpo: function (x, t, b, c, d) { 72 | if (t==0) return b; 73 | if (t==d) return b+c; 74 | if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; 75 | return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; 76 | }, 77 | easeInCirc: function (x, t, b, c, d) { 78 | return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; 79 | }, 80 | easeOutCirc: function (x, t, b, c, d) { 81 | return c * Math.sqrt(1 - (t=t/d-1)*t) + b; 82 | }, 83 | easeInOutCirc: function (x, t, b, c, d) { 84 | if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; 85 | return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; 86 | }, 87 | easeInElastic: function (x, t, b, c, d) { 88 | var s=1.70158;var p=0;var a=c; 89 | if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 90 | if (a < Math.abs(c)) { a=c; var s=p/4; } 91 | else var s = p/(2*Math.PI) * Math.asin (c/a); 92 | return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; 93 | }, 94 | easeOutElastic: function (x, t, b, c, d) { 95 | var s=1.70158;var p=0;var a=c; 96 | if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 97 | if (a < Math.abs(c)) { a=c; var s=p/4; } 98 | else var s = p/(2*Math.PI) * Math.asin (c/a); 99 | return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; 100 | }, 101 | easeInOutElastic: function (x, t, b, c, d) { 102 | var s=1.70158;var p=0;var a=c; 103 | if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); 104 | if (a < Math.abs(c)) { a=c; var s=p/4; } 105 | else var s = p/(2*Math.PI) * Math.asin (c/a); 106 | if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; 107 | return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; 108 | }, 109 | easeInBack: function (x, t, b, c, d, s) { 110 | if (s == undefined) s = 1.70158; 111 | return c*(t/=d)*t*((s+1)*t - s) + b; 112 | }, 113 | easeOutBack: function (x, t, b, c, d, s) { 114 | if (s == undefined) s = 1.70158; 115 | return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; 116 | }, 117 | easeInOutBack: function (x, t, b, c, d, s) { 118 | if (s == undefined) s = 1.70158; 119 | if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; 120 | return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; 121 | }, 122 | easeInBounce: function (x, t, b, c, d) { 123 | return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; 124 | }, 125 | easeOutBounce: function (x, t, b, c, d) { 126 | if ((t/=d) < (1/2.75)) { 127 | return c*(7.5625*t*t) + b; 128 | } else if (t < (2/2.75)) { 129 | return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; 130 | } else if (t < (2.5/2.75)) { 131 | return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; 132 | } else { 133 | return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; 134 | } 135 | }, 136 | easeInOutBounce: function (x, t, b, c, d) { 137 | if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; 138 | return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; 139 | } 140 | }); 141 | -------------------------------------------------------------------------------- /prescription.php: -------------------------------------------------------------------------------- 1 | 0) {header("location:http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/prescription.php"); 23 | }else{ 24 | $message1="Registration Failed, Try again"; 25 | } 26 | } 27 | ?> 28 | 29 | 30 | 31 | <?php echo $user;?> - Pharmacy Management System 32 | 33 | 34 | 35 | 36 | 38 | 39 | 40 |
      41 | 43 |
      44 |
      45 | 51 |
      52 |
      53 |
      54 |
      55 |

      Manage Prescription

      56 |
      57 |
      58 | 59 | 64 | 65 |
      66 | 69 | 70 | "; 85 | echo "IDdrug_iddrug_namestrengthdosequantityDelete"; 86 | 87 | // loop through results of database query, displaying them in the table 88 | while($row = mysql_fetch_array( $result )) { 89 | 90 | // echo out the contents of each row into a table 91 | echo ""; 92 | echo '' . $row['prescription_id'] . ''; 93 | echo '' . $row['drug_id'] . ''; 94 | echo '' . $row['drug_name'] . ''; 95 | echo '' . $row['strength'] . ''; 96 | echo '' . $row['dose'] . ''; 97 | echo '' . $row['quantity'] . ''; 98 | ?> 99 | 100 | 103 | echo ""; 104 | ?> 105 |
      106 |
      107 | 108 | 111 |
      112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 |
      123 |
      124 |
      125 | 126 |
      127 | 128 |
      129 | 130 |
      131 | 132 |
      133 | 134 | 135 | -------------------------------------------------------------------------------- /stock.php: -------------------------------------------------------------------------------- 1 | 0) {header("location:http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/stock.php"); 22 | }else{ 23 | $message1="Registration Failed, Try again"; 24 | } 25 | } 26 | ?> 27 | 28 | 29 | 30 | <?php echo $user;?> -Pharmacy Management System 31 | 32 | 33 | 34 | 35 | 37 | 38 | 39 |
      40 | 42 |
      43 |
      44 | 51 |
      52 |
      53 |
      54 |
      55 |

      Manage Stock

      56 |
      57 |
      58 | 59 | 64 | 65 |
      66 | 69 | 70 | "; 85 | echo "IDDrug_nameCategoryDescriptionDateDelete"; 86 | 87 | // loop through results of database query, displaying them in the table 88 | while($row = mysql_fetch_array( $result )) { 89 | 90 | // echo out the contents of each row into a table 91 | echo ""; 92 | echo '' . $row['stock_id'] . ''; 93 | echo '' . $row['drug_name'] . ''; 94 | echo '' . $row['category'] . ''; 95 | echo '' . $row['description'] . ''; 96 | 97 | echo '' . $row['date_supplied'] . '';?> 98 | 99 | 102 | echo ""; 103 | ?> 104 |
      105 |
      106 | 107 | 110 |
      111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 |
      121 |
      122 |
      123 | 124 |
      125 | 126 |
      127 | 128 |
      129 | 130 |
      131 | 132 | 133 | -------------------------------------------------------------------------------- /stock_pharmacist.php: -------------------------------------------------------------------------------- 1 | 0) {header("location:http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/stock_pharmacist.php"); 24 | }else{ 25 | $message1="Registration Failed, Try again"; 26 | } 27 | } 28 | ?> 29 | 30 | 31 | 32 | <?php echo $user;?> - Pharmacy Management System 33 | 34 | 35 | 36 | 37 | 39 | 40 | 41 |
      42 | 44 |
      45 |
      46 | 52 |
      53 |
      54 |
      55 |
      56 |

      Manage Stock

      57 |
      58 |
      59 | 60 | 65 | 66 |
      67 | 70 | 71 | "; 86 | echo "IDNameCategoryDescriptionDate Delete"; 87 | 88 | // loop through results of database query, displaying them in the table 89 | while($row = mysql_fetch_array( $result )) { 90 | 91 | // echo out the contents of each row into a table 92 | echo ""; 93 | echo '' . $row['stock_id'] . ''; 94 | echo '' . $row['drug_name'] . ''; 95 | echo '' . $row['category'] . ''; 96 | echo '' . $row['description'] . ''; 97 | 98 | echo '' . $row['date_supplied'] . '';?> 99 | 100 | 103 | echo ""; 104 | ?> 105 |
      106 |
      107 | 108 | 111 |
      112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 |
      122 |
      123 |
      124 | 125 |
      126 | 127 |
      128 | 129 |
      130 | 131 |
      132 | 133 | 134 | -------------------------------------------------------------------------------- /js/application.js: -------------------------------------------------------------------------------- 1 | // NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT 2 | // IT'S ALL JUST JUNK FOR OUR DOCS! 3 | // ++++++++++++++++++++++++++++++++++++++++++ 4 | 5 | !function ($) { 6 | 7 | $(function(){ 8 | 9 | // Disable certain links in docs 10 | $('section [href^=#]').click(function (e) { 11 | e.preventDefault() 12 | }) 13 | 14 | // make code pretty 15 | window.prettyPrint && prettyPrint() 16 | 17 | // add-ons 18 | $('.add-on :checkbox').on('click', function () { 19 | var $this = $(this) 20 | , method = $this.attr('checked') ? 'addClass' : 'removeClass' 21 | $(this).parents('.add-on')[method]('active') 22 | }) 23 | 24 | // position static twipsies for components page 25 | if ($(".twipsies a").length) { 26 | $(window).on('load resize', function () { 27 | $(".twipsies a").each(function () { 28 | $(this) 29 | .tooltip({ 30 | placement: $(this).attr('title') 31 | , trigger: 'manual' 32 | }) 33 | .tooltip('show') 34 | }) 35 | }) 36 | } 37 | 38 | // add tipsies to grid for scaffolding 39 | if ($('#grid-system').length) { 40 | $('#grid-system').tooltip({ 41 | selector: '.show-grid > div' 42 | , title: function () { return $(this).width() + 'px' } 43 | }) 44 | } 45 | 46 | // fix sub nav on scroll 47 | var $win = $(window) 48 | , $nav = $('.subnav') 49 | , navTop = $('.subnav').length && $('.subnav').offset().top - 40 50 | , isFixed = 0 51 | 52 | processScroll() 53 | 54 | // hack sad times - holdover until rewrite for 2.1 55 | $nav.on('click', function () { 56 | if (!isFixed) setTimeout(function () { $win.scrollTop($win.scrollTop() - 47) }, 10) 57 | }) 58 | 59 | $win.on('scroll', processScroll) 60 | 61 | function processScroll() { 62 | var i, scrollTop = $win.scrollTop() 63 | if (scrollTop >= navTop && !isFixed) { 64 | isFixed = 1 65 | $nav.addClass('subnav-fixed') 66 | } else if (scrollTop <= navTop && isFixed) { 67 | isFixed = 0 68 | $nav.removeClass('subnav-fixed') 69 | } 70 | } 71 | 72 | // tooltip demo 73 | $('.tooltip-demo.well').tooltip({ 74 | selector: "a[rel=tooltip]" 75 | }) 76 | 77 | $('.tooltip-test').tooltip() 78 | $('.popover-test').popover() 79 | 80 | // popover demo 81 | $("a[rel=popover]") 82 | .popover() 83 | .click(function(e) { 84 | e.preventDefault() 85 | }) 86 | 87 | // button state demo 88 | $('#fat-btn') 89 | .click(function () { 90 | var btn = $(this) 91 | btn.button('loading') 92 | setTimeout(function () { 93 | btn.button('reset') 94 | }, 3000) 95 | }) 96 | 97 | // carousel demo 98 | $('#myCarousel').carousel() 99 | 100 | // javascript build logic 101 | var inputsComponent = $("#components.download input") 102 | , inputsPlugin = $("#plugins.download input") 103 | , inputsVariables = $("#variables.download input") 104 | 105 | // toggle all plugin checkboxes 106 | $('#components.download .toggle-all').on('click', function (e) { 107 | e.preventDefault() 108 | inputsComponent.attr('checked', !inputsComponent.is(':checked')) 109 | }) 110 | 111 | $('#plugins.download .toggle-all').on('click', function (e) { 112 | e.preventDefault() 113 | inputsPlugin.attr('checked', !inputsPlugin.is(':checked')) 114 | }) 115 | 116 | $('#variables.download .toggle-all').on('click', function (e) { 117 | e.preventDefault() 118 | inputsVariables.val('') 119 | }) 120 | 121 | // request built javascript 122 | $('.download-btn').on('click', function () { 123 | 124 | var css = $("#components.download input:checked") 125 | .map(function () { return this.value }) 126 | .toArray() 127 | , js = $("#plugins.download input:checked") 128 | .map(function () { return this.value }) 129 | .toArray() 130 | , vars = {} 131 | , img = ['glyphicons-halflings.png', 'glyphicons-halflings-white.png'] 132 | 133 | $("#variables.download input") 134 | .each(function () { 135 | $(this).val() && (vars[ $(this).prev().text() ] = $(this).val()) 136 | }) 137 | 138 | $.ajax({ 139 | type: 'POST' 140 | , url: /\?dev/.test(window.location) ? 'http://localhost:3000' : 'http://bootstrap.herokuapp.com' 141 | , dataType: 'jsonpi' 142 | , params: { 143 | js: js 144 | , css: css 145 | , vars: vars 146 | , img: img 147 | } 148 | }) 149 | }) 150 | }) 151 | 152 | // Modified from the original jsonpi https://github.com/benvinegar/jquery-jsonpi 153 | $.ajaxTransport('jsonpi', function(opts, originalOptions, jqXHR) { 154 | var url = opts.url; 155 | 156 | return { 157 | send: function(_, completeCallback) { 158 | var name = 'jQuery_iframe_' + jQuery.now() 159 | , iframe, form 160 | 161 | iframe = $('