├── destroy.php ├── connection └── connection.php ├── README.md ├── css ├── styleOld.css ├── headerFooter.css ├── storeFetch.css └── style.css ├── LICENSE ├── js ├── buttons.print.min.js ├── parallax.min.js ├── dataTables.select.min.js ├── dataTables.buttons.min.js ├── popper.min.js └── buttons.html5.min.js ├── index.php ├── home.html ├── help.html ├── adminHelp.html ├── addScheme.php ├── db ├── db-without-dummy-data.sql └── db-with-dummy-data.sql ├── addDepartment.php ├── addItem.php ├── addVendor.php ├── stockReceive.php ├── stockIssue.php ├── stockIssueForm.php ├── stockReceiveForm.php └── viewReceived.php /destroy.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /connection/connection.php: -------------------------------------------------------------------------------- 1 | alert("Connection Failure")'; 5 | } 6 | ?> -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Store-Inventory-Management 2 | This is a simple Inventory Management web based software. This project uses php as server side language and html, css, js and some css and js frameworks for front-end. This project is made for organisatins, institutes and colleges to made the inventory management easy and automated from traditional paper to computer. 3 | 4 | # Features 5 | Store-Inventory-Management provides a bunch of features like taking print out of all the entries of inventory. This project is latest and user can use features like managing Bills along with GST(Goods and Services Tax). A user manual is also there for user to understand the project. 6 | 7 | # Upcoming Features 8 | Store-Inventory-Management is supposed to merged with Aysnchronous programming to enhance the user experience. Apart from this, project will be using single page principal of Asynchronous programmin soon. Get in touch and help to get better. 9 | -------------------------------------------------------------------------------- /css/styleOld.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-color:rgba(0,0,0,0.1); 3 | } 4 | .login-one-form { 5 | transform:translate(-50%, -50%); 6 | top:50%; 7 | max-width:350px; 8 | width:350px; 9 | left:50%; 10 | background-color:#fff; 11 | padding:30px; 12 | padding-right: 45px; 13 | border-radius:5px; 14 | position:absolute; 15 | box-shadow:2px 2px 4px rgba(0,0,0,0.2); 16 | } 17 | .login-one-ico { 18 | padding:0px; 19 | font-size:50px; 20 | text-align:center; 21 | } 22 | 23 | .form-group { 24 | text-align:center; 25 | } 26 | 27 | #input { 28 | margin:10px; 29 | 30 | } 31 | #input:focus { 32 | box-shadow: 0px 0px 3px #ee6e73; 33 | border:1px solid transparent; 34 | 35 | } 36 | 37 | #button { 38 | width:100%; 39 | margin:10px; 40 | background-color:#ee6e73; 41 | border: none; 42 | box-shadow: 0px 0px 3px #ee6e73; 43 | } 44 | 45 | #heading { 46 | padding-bottom:10px; 47 | } 48 | 49 | #or{ 50 | font-size: 14px; 51 | font-weight: bolder; 52 | } 53 | #guest{ 54 | background-color: transparent; 55 | border: none; 56 | cursor: pointer; 57 | } 58 | #guest i{ 59 | font-size: 60px; 60 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Amanjot Singh 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /css/headerFooter.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: Segoe UI; 4 | width:100vw; 5 | overflow-x: hidden; 6 | } 7 | .topnav { 8 | overflow: hidden; 9 | background-color: #000; 10 | position: fixed; 11 | top: 0; 12 | width: 100%; 13 | z-index: 9999999; 14 | } 15 | .topnav button{ 16 | margin-top:-6px; 17 | } 18 | .topnav a{ 19 | float: left; 20 | display: block; 21 | color: #f2f2f2; 22 | text-align: center; 23 | padding: 16px 16px; 24 | text-decoration: none !important; 25 | font-size: 17px; 26 | margin-bottom:-8px; 27 | } 28 | 29 | .topnav a:hover:not(:nth-child(2)) { 30 | background-color: #007BFF; 31 | color: black; 32 | } 33 | 34 | .topnav a:not(:first-child) { 35 | position: relative; 36 | float:right; 37 | 38 | } 39 | 40 | 41 | .topnav .icon { 42 | display: none; 43 | } 44 | @media screen and (max-width: 600px) { 45 | .topnav a:not(:first-child) {display: none;} 46 | .topnav a.icon { 47 | float: right; 48 | display: block; 49 | } 50 | } 51 | 52 | @media screen and (max-width: 600px) { 53 | .topnav.responsive {position: fixed;} 54 | .topnav.responsive .icon { 55 | position: absolute; 56 | right: 0; 57 | top: 0; 58 | } 59 | .topnav.responsive a { 60 | float: none; 61 | display: block; 62 | text-align: left; 63 | } 64 | } 65 | 66 | 67 | 68 | .copyft{ 69 | position: relative; 70 | width: 100vw; 71 | height: 40px; 72 | background-color:#333; 73 | bottom: 0px; 74 | } 75 | 76 | .copyft2{ 77 | color: #FFF; 78 | position: relative; 79 | top: 10px; 80 | left:30px; 81 | } 82 | 83 | @media screen and (max-width: 600px){ 84 | .copyft{ 85 | 86 | font-size: 14px; 87 | } 88 | } 89 | @media screen and (max-width: 600px){ 90 | .copyft2{ 91 | left:15px; 92 | } 93 | } -------------------------------------------------------------------------------- /js/buttons.print.min.js: -------------------------------------------------------------------------------- 1 | (function(c){"function"===typeof define&&define.amd?define(["jquery","datatables.net","datatables.net-buttons"],function(f){return c(f,window,document)}):"object"===typeof exports?module.exports=function(f,b){f||(f=window);if(!b||!b.fn.dataTable)b=require("datatables.net")(f,b).$;b.fn.dataTable.Buttons||require("datatables.net-buttons")(f,b);return c(b,f,f.document)}:c(jQuery,window,document)})(function(c,f,b,n){var i=c.fn.dataTable,e=b.createElement("a"),m=function(a){e.href=a;a=e.host;-1===a.indexOf("/")&& 2 | 0!==e.pathname.indexOf("/")&&(a+="/");return e.protocol+"//"+a+e.pathname+e.search};i.ext.buttons.print={className:"buttons-print",text:function(a){return a.i18n("buttons.print","Print")},action:function(a,b,e,h){var a=b.buttons.exportData(c.extend({decodeEntities:!1},h.exportOptions)),e=b.buttons.exportInfo(h),i=c.map(b.settings()[0].aoColumns,function(b){return b.sClass}),k=function(b,a){for(var d="",c=0,e=b.length;c"+(null===b[c]||b[c]===n? 3 | "":b[c])+"";return d+""},d='';h.header&&(d+=""+k(a.header,"th")+"");for(var d=d+"",l=0,o=a.body.length;l";h.footer&&a.footer&&(d+=""+k(a.footer,"th")+"");var d=d+"
",g=f.open("","");g.document.close();var j=""+e.title+"";c("style, link").each(function(){var b=j,a=c(this).clone()[0];"link"===a.nodeName.toLowerCase()&&(a.href=m(a.href));j=b+a.outerHTML}); 4 | try{g.document.head.innerHTML=j}catch(p){c(g.document.head).html(j)}g.document.body.innerHTML="

"+e.title+"

"+(e.messageTop||"")+"
"+d+"
"+(e.messageBottom||"")+"
";c(g.document.body).addClass("dt-print-view");c("img",g.document.body).each(function(b,a){a.setAttribute("src",m(a.getAttribute("src")))});h.customize&&h.customize(g,h,b);g.setTimeout(function(){h.autoPrint&&(g.print(),g.close())},1E3)},title:"*",messageTop:"*",messageBottom:"*",exportOptions:{},header:!0,footer:!1, 5 | autoPrint:!0,customize:null};return i.Buttons}); 6 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | Store Management(STC) 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 35 | 36 |
37 | 38 | 73 | 74 |
75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | -------------------------------------------------------------------------------- /css/storeFetch.css: -------------------------------------------------------------------------------- 1 | .h3{ 2 | font-size:20px !important; 3 | } 4 | a{ 5 | text-decoration: none !important; 6 | 7 | } 8 | input[type="search"]{ 9 | display: block; 10 | width: 100%; 11 | padding: 0.375rem 0.75rem; 12 | font-size: 1rem; 13 | line-height: 1.5; 14 | color: #495057; 15 | background-color: #fff; 16 | background-clip: padding-box; 17 | border: 1px solid #ced4da; 18 | border-radius: 0.25rem; 19 | transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; 20 | } 21 | input[type="search"]:focus { 22 | color: #495057; 23 | background-color: #fff; 24 | border-color: #80bdff; 25 | outline: 0; 26 | box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); 27 | } 28 | .dt-button{ 29 | position: absolute; 30 | display: inline-block; 31 | font-weight: 400; 32 | text-align: center; 33 | border: 1px solid transparent; 34 | padding: 0.375rem 0.75rem; 35 | font-size: 1rem; 36 | line-height: 1.5; 37 | border-radius: 0.25rem; 38 | transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; 39 | color: #fff; 40 | background-color: #007BFF; 41 | } 42 | .buttons-copy{ 43 | left: 0; 44 | } 45 | .buttons-excel{ 46 | left: 63px; 47 | } 48 | .buttons-pdf{ 49 | left: 125px; 50 | } 51 | .buttons-print{ 52 | left: 180px; 53 | } 54 | .dt-button:hover { 55 | color: #fff; 56 | border-color: #545b62; 57 | } 58 | 59 | .dt-button:focus, .dt-button.focus { 60 | box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5); 61 | } 62 | /* */ 63 | 64 | .masterFetch{ 65 | display:grid; 66 | grid-template-rows:auto 1fr auto; 67 | } 68 | .enthead { 69 | display: grid; 70 | grid-row:1/2; 71 | grid-template-columns: repeat(3, 1fr); 72 | grid-template-rows: repeat(2, 70px) 73 | } 74 | .entbuttons { 75 | grid-column: 2/3; 76 | grid-row: 2/3; 77 | margin: auto; 78 | } 79 | .entactive { 80 | font-size: 20px !important; 81 | } 82 | .fetchContAll{ 83 | display: grid; 84 | grid-row:2/3; 85 | grid-template-rows: 1fr auto; 86 | grid-template-columns: 3fr 4fr 4fr 3fr; 87 | padding-top: 20px; 88 | padding-bottom: 20px; 89 | } 90 | .deptcontent2{ 91 | grid-column: 2/3; 92 | } 93 | 94 | .entbtn { 95 | width: 100px; 96 | } 97 | .tableView{ 98 | display: grid; 99 | grid-column: 1/5; 100 | grid-row:3/4; 101 | grid-template-columns: 1fr minmax(auto,auto) 1fr; 102 | height: auto; 103 | } 104 | .tableGridContent{ 105 | grid-column: 2/3; 106 | } 107 | @media screen and (max-width:768px){ 108 | .enthead { 109 | display: grid; 110 | grid-template-columns: 1fr; 111 | width: 100%; 112 | } 113 | .entbuttons { 114 | grid-column: 1/2; 115 | margin: auto; 116 | } 117 | .entactive { 118 | font-size: 20px; 119 | } 120 | } 121 | .fetchContRecieve{ 122 | display: grid; 123 | grid-template-columns: 1fr minmax(auto,auto) 1fr; 124 | padding-bottom: 30px; 125 | padding-top: 30px; 126 | } 127 | .fetchContIssue{ 128 | display: grid; 129 | grid-template-columns: 1fr minmax(auto,auto) 1fr; 130 | padding-bottom: 30px; 131 | padding-top: 30px; 132 | } 133 | .viewRecieved{ 134 | grid-column: 2/3; 135 | } 136 | .viewIssued{ 137 | grid-column: 2/3; 138 | } -------------------------------------------------------------------------------- /home.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Store Management(STC) 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 39 | 40 | 41 | 42 | 43 | 80 | 81 |
82 |
83 |

Welcome Admin!

84 |
85 |
86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /help.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Help 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 33 | 34 | 35 | 36 | 37 | 74 | 75 | 76 |
77 |
78 |

User guide for Store Management

79 |
Stock Entry
80 | Stock Receive 81 |

This option is used to enter any bill entry received from the vendor. This page will show the list of category and schemes then after selecting the options the form for receiving

82 |
83 |
84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /adminHelp.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Help 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 33 | 34 | 35 | 36 | 37 | 74 | 75 | 76 |
77 |
78 |

User guide for Store Management

79 |
Stock Entry
80 | Stock Receive 81 |

This option is used to enter any bill entry received from the vendor. This page will show the list of category and schemes then after selecting the options the form for receiving

82 |
83 |
84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /css/style.css: -------------------------------------------------------------------------------- 1 | body{ 2 | background: #eeeeee !important; 3 | } 4 | .head{ 5 | font-size: 18px !important; 6 | } 7 | .content { 8 | padding: 20px; 9 | min-height: 100%; 10 | margin: 0 auto -50px; 11 | } 12 | .footer{ 13 | height: 50px; 14 | background: dodgerblue; 15 | } 16 | .push { 17 | height: 50px; 18 | } 19 | .navbar-toggler, .navbar-toggler-icon 20 | { 21 | border:0px !important; 22 | outline:0px !important; 23 | } 24 | 25 | /* Form issuing and receiving */ 26 | 27 | 28 | .enthead { 29 | display: grid; 30 | grid-template-columns: repeat(3, 1fr); 31 | grid-template-rows: repeat(2, 70px); 32 | } 33 | .entbuttons { 34 | grid-column: 2/3; 35 | grid-row: 2/3; 36 | margin: auto; 37 | } 38 | .entmainndi { 39 | display: grid; 40 | height: 100vh; 41 | width: 100vw; 42 | grid-template-rows: 1fr minmax(500px, 550px) 1fr; 43 | grid-template-columns: 1fr minmax(500px, 600px) 1fr; 44 | } 45 | #entformarea { 46 | height:550px; 47 | display: grid; 48 | grid-row: 2/3; 49 | grid-column: 2/3; 50 | grid-template-columns: repeat(2, 1fr); 51 | grid-template-rows: repeat(6, 1fr); 52 | } 53 | .entform-group { 54 | width: 250px; 55 | height: 10px; 56 | } 57 | .entform-group:nth-child(even) { 58 | grid-column: 2/3; 59 | } 60 | .entform-group:nth-child(odd) { 61 | grid-column: 1/2; 62 | } 63 | .entform-group:nth-child(9) { 64 | grid-column: 1/3; 65 | grid-row: 5/6; 66 | margin-left: auto; 67 | margin-right: auto; 68 | } 69 | #entformsubb { 70 | grid-row: 6/7; 71 | grid-column: 1/3; 72 | width: 200px; 73 | height: 38px; 74 | margin: auto; 75 | } 76 | .entactive { 77 | font-size: 20px; 78 | } 79 | .entbtn { 80 | width: 100px; 81 | } 82 | .entselect { 83 | width: 250px; 84 | } 85 | .entselect select { 86 | border: 2px solid #0069D9; 87 | color: #0069D9; 88 | } 89 | .entselect select:focus { 90 | border: 2px solid #0069D9; 91 | color: #0069D9; 92 | } 93 | .entselect select option { 94 | background: #fff; 95 | color: #0069D9; 96 | } 97 | legend{ 98 | text-align: center; 99 | grid-column: 2/3; 100 | } 101 | @media screen and (max-width:768px){ 102 | .enthead { 103 | display: grid; 104 | grid-template-columns: 1fr; 105 | width: 100%; 106 | } 107 | .entbuttons { 108 | grid-column: 1/2; 109 | margin: auto; 110 | } 111 | .entmainndi { 112 | display: grid; 113 | height: 100vh; 114 | width: 100vw; 115 | grid-template-rows: 1fr minmax(300px, 650px); 116 | grid-template-columns: 1fr minmax(300px, 500px) 1fr; 117 | } 118 | #entformarea { 119 | display: grid; 120 | grid-row: 2/3; 121 | grid-column: 2/3; 122 | grid-template-columns: 1fr 1fr 1fr; 123 | grid-template-rows: repeat(8, minmax(85px,150px)); 124 | } 125 | .entform-group { 126 | width: 250px; 127 | height: 10px; 128 | } 129 | .entform-group:nth-child(even) { 130 | grid-column: 2/3; 131 | } 132 | .entform-group:nth-child(odd) { 133 | grid-column: 2/3; 134 | } 135 | .entform-group:nth-child(9) { 136 | grid-column: 2/3; 137 | grid-row: 7/8; 138 | margin-left: auto; 139 | margin-right: auto; 140 | } 141 | #entformsubb { 142 | grid-row: 8; 143 | grid-column: 2/3; 144 | width: 200px; 145 | height: 38px; 146 | margin: auto; 147 | } 148 | .entactive { 149 | font-size: 20px; 150 | } 151 | .entbtn { 152 | width: 100px; 153 | } 154 | .entselect { 155 | width: 250px; 156 | grid-row: 6/7; 157 | grid-column: 2/3; 158 | } 159 | .entdept { 160 | grid-row: 7/8; 161 | grid-column: 2/3; 162 | } 163 | .entselect select { 164 | border: 2px solid #0069D9; 165 | color: #0069D9; 166 | } 167 | .entselect select:focus { 168 | border: 2px solid #0069D9; 169 | color: #0069D9; 170 | } 171 | .entselect select option { 172 | background: #fff; 173 | color: #0069D9; 174 | } 175 | legend{ 176 | text-align: center; 177 | grid-column: 2/3; 178 | } 179 | } 180 | #timing{ 181 | width:250px; 182 | margin:0; 183 | } 184 | 185 | /* form issuing and receiveing end */ 186 | 187 | body { 188 | background-color:rgba(0,0,0,0.1); 189 | } 190 | .login-one-form { 191 | transform:translate(-50%, -50%); 192 | top:50%; 193 | max-width:350px; 194 | width:350px; 195 | left:50%; 196 | background-color:#fff; 197 | padding:30px; 198 | padding-right: 45px; 199 | border-radius:5px; 200 | position:absolute; 201 | box-shadow:2px 2px 4px rgba(0,0,0,0.2); 202 | } 203 | .login-one-ico { 204 | padding:0px; 205 | font-size:50px; 206 | text-align:center; 207 | } 208 | 209 | .form-group { 210 | text-align:center; 211 | } 212 | 213 | #input { 214 | margin:10px; 215 | 216 | } 217 | #input:focus { 218 | box-shadow: 0px 1px 4px rgba(0, 123, 255, 0.815); 219 | border:1px solid transparent; 220 | 221 | } 222 | 223 | #button { 224 | width:100%; 225 | margin:10px; 226 | border: none; 227 | } 228 | 229 | #heading { 230 | padding-bottom:10px; 231 | } 232 | 233 | #or{ 234 | font-size: 14px; 235 | font-weight: bolder; 236 | } 237 | #guest{ 238 | background-color: transparent; 239 | border: none; 240 | cursor: pointer; 241 | } 242 | #guest i{ 243 | font-size: 60px; 244 | } -------------------------------------------------------------------------------- /addScheme.php: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | Insert 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 45 | 46 | 47 | 48 | 98 | 99 |
100 |
101 |
102 |
103 |
104 | 105 | 106 |
107 | 108 |
109 |
110 | 111 | 112 | 135 |
136 |
137 |
138 | 139 | 140 |
141 |
142 | 143 | 144 | 145 | 156 | 157 | -------------------------------------------------------------------------------- /db/db-without-dummy-data.sql: -------------------------------------------------------------------------------- 1 | -- phpMyAdmin SQL Dump 2 | -- version 4.7.9 3 | -- https://www.phpmyadmin.net/ 4 | -- 5 | -- Host: 127.0.0.1 6 | -- Generation Time: Jan 07, 2019 at 09:11 AM 7 | -- Server version: 10.1.31-MariaDB 8 | -- PHP Version: 7.2.3 9 | 10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 11 | SET AUTOCOMMIT = 0; 12 | START TRANSACTION; 13 | SET time_zone = "+00:00"; 14 | 15 | 16 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 17 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 18 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 19 | /*!40101 SET NAMES utf8mb4 */; 20 | 21 | -- 22 | -- Database: `store_db` 23 | -- 24 | CREATE DATABASE IF NOT EXISTS `store_db` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; 25 | USE `store_db`; 26 | 27 | -- -------------------------------------------------------- 28 | 29 | -- 30 | -- Table structure for table `department` 31 | -- 32 | 33 | CREATE TABLE `department` ( 34 | `id` int(11) NOT NULL, 35 | `departmentName` varchar(20) NOT NULL 36 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 37 | 38 | -- -------------------------------------------------------- 39 | 40 | -- 41 | -- Table structure for table `issued` 42 | -- 43 | 44 | CREATE TABLE `issued` ( 45 | `id` int(100) NOT NULL, 46 | `timing` date NOT NULL, 47 | `description` varchar(240) NOT NULL, 48 | `category` varchar(14) NOT NULL, 49 | `name` varchar(100) NOT NULL, 50 | `issued` int(10) NOT NULL, 51 | `unit` varchar(100) NOT NULL, 52 | `department` varchar(100) NOT NULL, 53 | `scheme` varchar(100) NOT NULL, 54 | `inventory` varchar(10) NOT NULL 55 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 56 | 57 | -- -------------------------------------------------------- 58 | 59 | -- 60 | -- Table structure for table `items_objects` 61 | -- 62 | 63 | CREATE TABLE `items_objects` ( 64 | `id` int(100) NOT NULL, 65 | `item` varchar(150) NOT NULL, 66 | `unit` varchar(100) NOT NULL, 67 | `inventory` varchar(150) NOT NULL, 68 | `balance` int(11) NOT NULL 69 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 70 | 71 | -- -------------------------------------------------------- 72 | 73 | -- 74 | -- Table structure for table `received` 75 | -- 76 | 77 | CREATE TABLE `received` ( 78 | `id` int(100) NOT NULL, 79 | `timing` date NOT NULL, 80 | `billNumber` int(10) NOT NULL, 81 | `vendor` varchar(240) NOT NULL, 82 | `gstNumber` varchar(35) NOT NULL, 83 | `category` varchar(108) NOT NULL, 84 | `amount` int(10) NOT NULL, 85 | `gst` varchar(10) NOT NULL, 86 | `taxableValue` float NOT NULL, 87 | `received` int(10) NOT NULL, 88 | `unit` varchar(100) NOT NULL, 89 | `scheme` varchar(100) NOT NULL, 90 | `inventory` varchar(10) NOT NULL 91 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 92 | 93 | -- -------------------------------------------------------- 94 | 95 | -- 96 | -- Table structure for table `scheme` 97 | -- 98 | 99 | CREATE TABLE `scheme` ( 100 | `id` int(100) NOT NULL, 101 | `schemeName` varchar(150) NOT NULL 102 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 103 | 104 | -- -------------------------------------------------------- 105 | 106 | -- 107 | -- Table structure for table `users` 108 | -- 109 | 110 | CREATE TABLE `users` ( 111 | `id` int(100) NOT NULL, 112 | `username` varchar(100) NOT NULL, 113 | `password` varchar(100) NOT NULL 114 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 115 | 116 | -- 117 | -- Dumping data for table `users` 118 | -- 119 | 120 | INSERT INTO `users` (`id`, `username`, `password`) VALUES 121 | (1, 'admin', 'admin'); 122 | 123 | -- -------------------------------------------------------- 124 | 125 | -- 126 | -- Table structure for table `vendor` 127 | -- 128 | 129 | CREATE TABLE `vendor` ( 130 | `id` int(11) NOT NULL, 131 | `vendorName` varchar(30) NOT NULL, 132 | `gstNumber` varchar(35) NOT NULL, 133 | `vendorDeal` text NOT NULL, 134 | `vendorAddress` varchar(125) NOT NULL 135 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 136 | 137 | -- 138 | -- Indexes for dumped tables 139 | -- 140 | 141 | -- 142 | -- Indexes for table `department` 143 | -- 144 | ALTER TABLE `department` 145 | ADD PRIMARY KEY (`id`), 146 | ADD UNIQUE KEY `departmentName` (`departmentName`); 147 | 148 | -- 149 | -- Indexes for table `issued` 150 | -- 151 | ALTER TABLE `issued` 152 | ADD PRIMARY KEY (`id`); 153 | 154 | -- 155 | -- Indexes for table `items_objects` 156 | -- 157 | ALTER TABLE `items_objects` 158 | ADD PRIMARY KEY (`id`), 159 | ADD UNIQUE KEY `item` (`item`); 160 | 161 | -- 162 | -- Indexes for table `received` 163 | -- 164 | ALTER TABLE `received` 165 | ADD PRIMARY KEY (`id`); 166 | 167 | -- 168 | -- Indexes for table `scheme` 169 | -- 170 | ALTER TABLE `scheme` 171 | ADD PRIMARY KEY (`id`), 172 | ADD UNIQUE KEY `schemeName` (`schemeName`); 173 | 174 | -- 175 | -- Indexes for table `users` 176 | -- 177 | ALTER TABLE `users` 178 | ADD PRIMARY KEY (`id`); 179 | 180 | -- 181 | -- Indexes for table `vendor` 182 | -- 183 | ALTER TABLE `vendor` 184 | ADD PRIMARY KEY (`id`); 185 | 186 | -- 187 | -- AUTO_INCREMENT for dumped tables 188 | -- 189 | 190 | -- 191 | -- AUTO_INCREMENT for table `department` 192 | -- 193 | ALTER TABLE `department` 194 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; 195 | 196 | -- 197 | -- AUTO_INCREMENT for table `issued` 198 | -- 199 | ALTER TABLE `issued` 200 | MODIFY `id` int(100) NOT NULL AUTO_INCREMENT; 201 | 202 | -- 203 | -- AUTO_INCREMENT for table `items_objects` 204 | -- 205 | ALTER TABLE `items_objects` 206 | MODIFY `id` int(100) NOT NULL AUTO_INCREMENT; 207 | 208 | -- 209 | -- AUTO_INCREMENT for table `received` 210 | -- 211 | ALTER TABLE `received` 212 | MODIFY `id` int(100) NOT NULL AUTO_INCREMENT; 213 | 214 | -- 215 | -- AUTO_INCREMENT for table `scheme` 216 | -- 217 | ALTER TABLE `scheme` 218 | MODIFY `id` int(100) NOT NULL AUTO_INCREMENT; 219 | 220 | -- 221 | -- AUTO_INCREMENT for table `users` 222 | -- 223 | ALTER TABLE `users` 224 | MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; 225 | 226 | -- 227 | -- AUTO_INCREMENT for table `vendor` 228 | -- 229 | ALTER TABLE `vendor` 230 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; 231 | COMMIT; 232 | 233 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 234 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 235 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 236 | -------------------------------------------------------------------------------- /addDepartment.php: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | Insert 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 47 | 48 | 49 | 50 | 100 | 101 |
102 |
103 |
104 |
105 | 106 | 107 |
108 | 109 |
110 |
111 | 112 | alert("Department Added")'; 121 | } 122 | } 123 | ?> 124 |
125 | 126 | 137 |
138 |
139 |
140 | 141 |
142 |
143 |
144 |
145 | 146 | 164 | 165 | -------------------------------------------------------------------------------- /js/parallax.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * parallax.js v1.5.0 (http://pixelcog.github.io/parallax.js/) 3 | * @copyright 2016 PixelCog, Inc. 4 | * @license MIT (https://github.com/pixelcog/parallax.js/blob/master/LICENSE) 5 | */ 6 | !function(t,i,e,s){function o(i,e){var h=this;"object"==typeof e&&(delete e.refresh,delete e.render,t.extend(this,e)),this.$element=t(i),!this.imageSrc&&this.$element.is("img")&&(this.imageSrc=this.$element.attr("src"));var r=(this.position+"").toLowerCase().match(/\S+/g)||[];if(r.length<1&&r.push("center"),1==r.length&&r.push(r[0]),"top"!=r[0]&&"bottom"!=r[0]&&"left"!=r[1]&&"right"!=r[1]||(r=[r[1],r[0]]),this.positionX!==s&&(r[0]=this.positionX.toLowerCase()),this.positionY!==s&&(r[1]=this.positionY.toLowerCase()),h.positionX=r[0],h.positionY=r[1],"left"!=this.positionX&&"right"!=this.positionX&&(isNaN(parseInt(this.positionX))?this.positionX="center":this.positionX=parseInt(this.positionX)),"top"!=this.positionY&&"bottom"!=this.positionY&&(isNaN(parseInt(this.positionY))?this.positionY="center":this.positionY=parseInt(this.positionY)),this.position=this.positionX+(isNaN(this.positionX)?"":"px")+" "+this.positionY+(isNaN(this.positionY)?"":"px"),navigator.userAgent.match(/(iPod|iPhone|iPad)/))return this.imageSrc&&this.iosFix&&!this.$element.is("img")&&this.$element.css({backgroundImage:'url("'+this.imageSrc+'")',backgroundSize:"cover",backgroundPosition:this.position}),this;if(navigator.userAgent.match(/(Android)/))return this.imageSrc&&this.androidFix&&!this.$element.is("img")&&this.$element.css({backgroundImage:'url("'+this.imageSrc+'")',backgroundSize:"cover",backgroundPosition:this.position}),this;this.$mirror=t("
").prependTo(this.mirrorContainer);var a=this.$element.find(">.parallax-slider"),n=!1;0==a.length?this.$slider=t("").prependTo(this.$mirror):(this.$slider=a.prependTo(this.$mirror),n=!0),this.$mirror.addClass("parallax-mirror").css({visibility:"hidden",zIndex:this.zIndex,position:"fixed",top:0,left:0,overflow:"hidden"}),this.$slider.addClass("parallax-slider").one("load",function(){h.naturalHeight&&h.naturalWidth||(h.naturalHeight=this.naturalHeight||this.height||1,h.naturalWidth=this.naturalWidth||this.width||1),h.aspectRatio=h.naturalWidth/h.naturalHeight,o.isSetup||o.setup(),o.sliders.push(h),o.isFresh=!1,o.requestRender()}),n||(this.$slider[0].src=this.imageSrc),(this.naturalHeight&&this.naturalWidth||this.$slider[0].complete||a.length>0)&&this.$slider.trigger("load")}!function(){for(var t=0,e=["ms","moz","webkit","o"],s=0;s=this.boxWidth?(this.imageWidth=r*this.aspectRatio|0,this.imageHeight=r,this.offsetBaseTop=a,t=this.imageWidth-this.boxWidth,"left"==this.positionX?this.offsetLeft=0:"right"==this.positionX?this.offsetLeft=-t:isNaN(this.positionX)?this.offsetLeft=-t/2|0:this.offsetLeft=Math.max(this.positionX,-t)):(this.imageWidth=this.boxWidth,this.imageHeight=this.boxWidth/this.aspectRatio|0,this.offsetLeft=0,t=this.imageHeight-r,"top"==this.positionY?this.offsetBaseTop=a:"bottom"==this.positionY?this.offsetBaseTop=a-t:isNaN(this.positionY)?this.offsetBaseTop=a-t/2|0:this.offsetBaseTop=a+Math.max(this.positionY,-t))},render:function(){var t=o.scrollTop,i=o.scrollLeft,e=this.overScrollFix?o.overScroll:0,s=t+o.winHeight;this.boxOffsetBottom>t&&this.boxOffsetTop<=s?(this.visibility="visible",this.mirrorTop=this.boxOffsetTop-t,this.mirrorLeft=this.boxOffsetLeft-i,this.offsetTop=this.offsetBaseTop-this.mirrorTop*(1-this.speed)):this.visibility="hidden",this.$mirror.css({transform:"translate3d("+this.mirrorLeft+"px, "+(this.mirrorTop-e)+"px, 0px)",visibility:this.visibility,height:this.boxHeight,width:this.boxWidth}),this.$slider.css({transform:"translate3d("+this.offsetLeft+"px, "+this.offsetTop+"px, 0px)",position:"absolute",height:this.imageHeight,width:this.imageWidth,maxWidth:"none"})}}),t.extend(o,{scrollTop:0,scrollLeft:0,winHeight:0,winWidth:0,docHeight:1<<30,docWidth:1<<30,sliders:[],isReady:!1,isFresh:!1,isBusy:!1,setup:function(){function s(){if(p==i.pageYOffset)return i.requestAnimationFrame(s),!1;p=i.pageYOffset,h.render(),i.requestAnimationFrame(s)}if(!this.isReady){var h=this,r=t(e),a=t(i),n=function(){o.winHeight=a.height(),o.winWidth=a.width(),o.docHeight=r.height(),o.docWidth=r.width()},l=function(){var t=a.scrollTop(),i=o.docHeight-o.winHeight,e=o.docWidth-o.winWidth;o.scrollTop=Math.max(0,Math.min(i,t)),o.scrollLeft=Math.max(0,Math.min(e,a.scrollLeft())),o.overScroll=Math.max(t-i,Math.min(t,0))};a.on("resize.px.parallax load.px.parallax",function(){n(),h.refresh(),o.isFresh=!1,o.requestRender()}).on("scroll.px.parallax load.px.parallax",function(){l(),o.requestRender()}),n(),l(),this.isReady=!0;var p=-1;s()}},configure:function(i){"object"==typeof i&&(delete i.refresh,delete i.render,t.extend(this.prototype,i))},refresh:function(){t.each(this.sliders,function(){this.refresh()}),this.isFresh=!0},render:function(){this.isFresh||this.refresh(),t.each(this.sliders,function(){this.render()})},requestRender:function(){var t=this;t.render(),t.isBusy=!1},destroy:function(e){var s,h=t(e).data("px.parallax");for(h.$mirror.remove(),s=0;s 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | Add Items 15 | 16 | 56 | 57 | 58 | 59 | 96 | 97 | 98 |
99 |
100 |
101 |
102 |
103 |
104 | Category Insert 105 |
106 |
107 | 108 | 109 |
110 | 111 | 112 |
113 | 114 | 126 |
127 | 128 |
129 | 130 | 136 | 137 |
138 | 139 | 140 | 141 | 142 | alert('Item Already Exists !');"; 152 | }else{ 153 | echo ""; 154 | } 155 | } 156 | ?> 157 |
158 |
159 | 160 | 161 | 162 |
163 | 164 | 165 | 166 | 167 |
168 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | -------------------------------------------------------------------------------- /addVendor.php: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | Add Vendor 15 | 16 | 70 | 71 | 72 | 73 | 74 | 124 | 125 |
126 |
127 |
128 |
129 |
130 |
131 | 132 |
133 | Vendor Insert 134 |
135 | 136 | 137 |
138 |
139 | 140 | 141 |
142 |
143 | 144 | 145 |
146 |
147 | 148 | 150 |
151 | 152 |
153 | 154 | alert("Vendor is added")'; 164 | // echo ''; 165 | } 166 | else{ 167 | echo ''; 168 | } 169 | } 170 | ?> 171 |
172 |
173 |
174 |
175 |
Available Vendors
176 |
177 | 178 | 187 |
188 | 189 |
190 |
191 |
192 | 193 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | -------------------------------------------------------------------------------- /stockReceive.php: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Store Management(STC) 14 | 15 | 16 | 17 | 18 | 104 | 105 | 106 | 107 | 144 | 145 | 146 |

Stock Receiving Entry

147 |
148 |
149 |
150 | 151 | 152 |
153 | 156 | 159 | 162 | 165 |
166 | 172 |
173 | Select the Inventory below(' . $setInventory . ')'; 191 | echo ' 204 |
205 |
206 |
207 |
208 |
Select Scheme
209 |
210 |
211 |
212 | 221 |
222 |
223 |
224 |
225 | 226 | 227 |
228 |
229 |
230 | 231 | 232 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | -------------------------------------------------------------------------------- /stockIssue.php: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | Store Management(STC) 13 | 14 | 15 | 16 | 17 | 103 | 104 | 105 | 106 | 107 | 157 | 158 | 159 |

Stock Issuing Entry

160 |
161 |
162 |
163 | 164 | 165 |
166 | 169 | 172 | 175 | 178 |
179 | 185 |
186 | Inventory(' . $setInventory . ')'; 204 | echo ' 218 |
219 |
220 | 221 |
222 |
223 | 224 |
Select Scheme
225 |
226 |
227 |
228 | 238 |
239 |
240 |
241 |
242 | 243 | 244 |
245 |
246 |
247 | 248 | 249 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | -------------------------------------------------------------------------------- /db/db-with-dummy-data.sql: -------------------------------------------------------------------------------- 1 | -- phpMyAdmin SQL Dump 2 | -- version 4.7.9 3 | -- https://www.phpmyadmin.net/ 4 | -- 5 | -- Host: 127.0.0.1 6 | -- Generation Time: Sep 27, 2018 at 02:22 AM 7 | -- Server version: 10.1.31-MariaDB 8 | -- PHP Version: 7.2.3 9 | 10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 11 | SET AUTOCOMMIT = 0; 12 | START TRANSACTION; 13 | SET time_zone = "+00:00"; 14 | 15 | 16 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 17 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 18 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 19 | /*!40101 SET NAMES utf8mb4 */; 20 | 21 | -- 22 | -- Database: `store_db` 23 | -- 24 | CREATE DATABASE IF NOT EXISTS `store_db` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; 25 | USE `store_db`; 26 | 27 | -- -------------------------------------------------------- 28 | 29 | -- 30 | -- Table structure for table `department` 31 | -- 32 | 33 | CREATE TABLE `department` ( 34 | `id` int(11) NOT NULL, 35 | `departmentName` varchar(20) NOT NULL 36 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 37 | 38 | -- 39 | -- Dumping data for table `department` 40 | -- 41 | 42 | INSERT INTO `department` (`id`, `departmentName`) VALUES 43 | (26, ''), 44 | (5, 'Civil'), 45 | (1, 'Computer'), 46 | (6, 'Electronics'), 47 | (9, 'RAC'), 48 | (3, 'Welding'); 49 | 50 | -- -------------------------------------------------------- 51 | 52 | -- 53 | -- Table structure for table `issued` 54 | -- 55 | 56 | CREATE TABLE `issued` ( 57 | `id` int(100) NOT NULL, 58 | `timing` date NOT NULL, 59 | `description` varchar(240) NOT NULL, 60 | `category` varchar(14) NOT NULL, 61 | `name` varchar(100) NOT NULL, 62 | `issued` int(10) NOT NULL, 63 | `unit` varchar(100) NOT NULL, 64 | `department` varchar(100) NOT NULL, 65 | `scheme` varchar(100) NOT NULL, 66 | `inventory` varchar(10) NOT NULL 67 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 68 | 69 | -- 70 | -- Dumping data for table `issued` 71 | -- 72 | 73 | INSERT INTO `issued` (`id`, `timing`, `description`, `category`, `name`, `issued`, `unit`, `department`, `scheme`, `inventory`) VALUES 74 | (1, '2018-07-26', 'popo', 'PAINTING BRUSH', 'aman', 20, 'Pcs', 'Computer', 'stc', 'stock'), 75 | (2, '2018-09-05', '', 'PAINTING BRUSH', '', 0, 'Pcs', '', 'PMKVY', 'stock'), 76 | (3, '2018-09-05', '', 'PAINTING BRUSH', '', 0, 'Pcs', '', 'PMKVY', 'stock'), 77 | (4, '2018-09-05', '', 'PAINTING BRUSH', '', 22352, 'Pcs', '', 'PMKVY', 'stock'), 78 | (5, '2018-09-05', '', 'PEN', '', 12, 'Dozen', '', 'PMKVY', 'stationary'); 79 | 80 | -- -------------------------------------------------------- 81 | 82 | -- 83 | -- Table structure for table `items_objects` 84 | -- 85 | 86 | CREATE TABLE `items_objects` ( 87 | `id` int(100) NOT NULL, 88 | `item` varchar(150) NOT NULL, 89 | `unit` varchar(100) NOT NULL, 90 | `inventory` varchar(150) NOT NULL, 91 | `balance` int(11) NOT NULL 92 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 93 | 94 | -- 95 | -- Dumping data for table `items_objects` 96 | -- 97 | 98 | INSERT INTO `items_objects` (`id`, `item`, `unit`, `inventory`, `balance`) VALUES 99 | (1, 'TABLE', 'Pcs', 'assets', 537), 100 | (6, 'PEN', 'Dozen', 'stationary', 0), 101 | (8, 'PAINTING BRUSH', 'Pcs', 'stock', 0); 102 | 103 | -- -------------------------------------------------------- 104 | 105 | -- 106 | -- Table structure for table `received` 107 | -- 108 | 109 | CREATE TABLE `received` ( 110 | `id` int(100) NOT NULL, 111 | `timing` date NOT NULL, 112 | `billNumber` int(10) NOT NULL, 113 | `vendor` varchar(240) NOT NULL, 114 | `category` varchar(108) NOT NULL, 115 | `amount` int(10) NOT NULL, 116 | `gst` varchar(10) NOT NULL, 117 | `taxableValue` float NOT NULL, 118 | `received` int(10) NOT NULL, 119 | `unit` varchar(100) NOT NULL, 120 | `scheme` varchar(100) NOT NULL, 121 | `inventory` varchar(10) NOT NULL 122 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 123 | 124 | -- 125 | -- Dumping data for table `received` 126 | -- 127 | 128 | INSERT INTO `received` (`id`, `timing`, `billNumber`, `vendor`, `category`, `amount`, `gst`, `taxableValue`, `received`, `unit`, `scheme`, `inventory`) VALUES 129 | (5, '2018-07-27', 4744, '7447474', 'PAINTING BRUSH', 47474, '0%', 47474, 4444, 'Pcs', 'PMKVY', 'stock'), 130 | (6, '2018-07-27', 4744, '7447474', 'PAINTING BRUSH', 47474, '0%', 47474, 4444, 'Pcs', 'PMKVY', 'stock'), 131 | (7, '2018-07-27', 4744, '7447474', 'PAINTING BRUSH', 47474, '0%', 47474, 4444, 'Pcs', 'PMKVY', 'stock'), 132 | (11, '2018-07-27', 1223, 'sad', 'TABLE', 123456, '12%', 110229, 120, 'Pcs', 'PMKVY', 'assets'), 133 | (12, '2018-07-27', 1223, 'sad', 'TABLE', 123456, '12%', 110229, 120, 'Pcs', 'PMKVY', 'assets'), 134 | (13, '2018-07-27', 1223, 'sad', 'TABLE', 123456, '12%', 110229, 120, 'Pcs', 'PMKVY', 'assets'), 135 | (14, '2018-08-19', 0, '', 'TABLE', 0, '0%', 0, 0, 'Pcs', 'PMKVY', 'assets'), 136 | (15, '2018-08-19', 0, '', 'TABLE', 0, '0%', 0, 0, 'Pcs', 'PMKVY', 'assets'), 137 | (16, '2018-08-19', 0, '', 'TABLE', 0, '0%', 0, 0, 'Pcs', 'PMKVY', 'assets'), 138 | (17, '2018-08-19', 0, '', 'PAINTING BRUSH', 0, '0%', 0, 0, 'Pcs', 'PMKVY', 'stock'), 139 | (18, '2018-08-22', 0, '', 'PAINTING BRUSH', 123432, '18%', 104603, 12, 'Pcs', 'PMKVY', 'stock'), 140 | (19, '2018-08-26', 454, 'lakd', 'TABLE', 545, '12%', 486.607, 45, 'Pcs', 'PMKVY', 'assets'), 141 | (20, '2018-08-30', 1231, '', 'TABLE', 132, '28%', 103.125, 12, 'Pcs', 'PMKVY', 'assets'), 142 | (21, '2018-08-30', 1235, 'gk mech', 'PEN', 1234, '28%', 964.062, 12, 'Dozen', 'PMKVY', 'stationary'); 143 | 144 | -- -------------------------------------------------------- 145 | 146 | -- 147 | -- Table structure for table `scheme` 148 | -- 149 | 150 | CREATE TABLE `scheme` ( 151 | `id` int(100) NOT NULL, 152 | `schemeName` varchar(150) NOT NULL 153 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 154 | 155 | -- 156 | -- Dumping data for table `scheme` 157 | -- 158 | 159 | INSERT INTO `scheme` (`id`, `schemeName`) VALUES 160 | (1, 'PMKVY'), 161 | (2, 'RTC'); 162 | 163 | -- -------------------------------------------------------- 164 | 165 | -- 166 | -- Table structure for table `users` 167 | -- 168 | 169 | CREATE TABLE `users` ( 170 | `id` int(100) NOT NULL, 171 | `username` varchar(100) NOT NULL, 172 | `password` varchar(100) NOT NULL 173 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 174 | 175 | -- 176 | -- Dumping data for table `users` 177 | -- 178 | 179 | INSERT INTO `users` (`id`, `username`, `password`) VALUES 180 | (1, 'admin', 'admin'); 181 | 182 | -- -------------------------------------------------------- 183 | 184 | -- 185 | -- Table structure for table `vendor` 186 | -- 187 | 188 | CREATE TABLE `vendor` ( 189 | `id` int(11) NOT NULL, 190 | `vendorName` varchar(30) NOT NULL, 191 | `vendorDeal` text NOT NULL, 192 | `vendorAddress` varchar(125) NOT NULL 193 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 194 | 195 | -- 196 | -- Dumping data for table `vendor` 197 | -- 198 | 199 | INSERT INTO `vendor` (`id`, `vendorName`, `vendorDeal`, `vendorAddress`) VALUES 200 | (3, 'gk mech', '', 'daba road, ludhiana'), 201 | (4, '', '', ''), 202 | (5, '', '', ''), 203 | (6, '', '', ''), 204 | (7, '', '', ''), 205 | (8, '', '', ''), 206 | (9, '', '', ''), 207 | (10, '', '', ''), 208 | (11, '', '', ''), 209 | (12, '', '', ''), 210 | (13, '', '', ''), 211 | (14, '', '', ''), 212 | (15, 'ANYTHING', '', 'ANYWHERE\r\n'), 213 | (16, 'ANYTHING', '', 'ANYWHERE\r\n'), 214 | (17, 'ANYTHING', '', 'ANYWHERE\r\n'), 215 | (18, 'ANYTHING', '', 'ANYWHERE\r\n'), 216 | (19, 'ADMIN', 'CELING', 'ANYWHERE '), 217 | (20, 'ADMIN', 'CELING', 'HOUSE NUMBER-1599'), 218 | (21, 'ADMIN', 'CELING', 'HOUSE NUMBER-1599'), 219 | (22, 'ADMIN', 'CELING', 'HOUSE NUMBER-1599'), 220 | (23, 'ADMIN', 'CELING', 'HOUSE NUMBER-1599'), 221 | (24, 'ADMIN', 'CELING', 'HOUSE NUMBER-1599'), 222 | (25, 'ADMIN', 'CELING', 'HOUSE NUMBER-1599'), 223 | (26, 'ADMIN', 'CELING', 'HOUSE NUMBER-1599'), 224 | (27, 'ADMIN', 'CELING', 'HOUSE NUMBER-1599'), 225 | (28, 'ADMIN', 'CELING', 'HOUSE NUMBER-1599'), 226 | (29, 'ADMIN', 'CELING', 'HOUSE NUMBER-1599'), 227 | (30, '', '', ''), 228 | (31, '', '', '\r\n '); 229 | 230 | -- 231 | -- Indexes for dumped tables 232 | -- 233 | 234 | -- 235 | -- Indexes for table `department` 236 | -- 237 | ALTER TABLE `department` 238 | ADD PRIMARY KEY (`id`), 239 | ADD UNIQUE KEY `departmentName` (`departmentName`); 240 | 241 | -- 242 | -- Indexes for table `issued` 243 | -- 244 | ALTER TABLE `issued` 245 | ADD PRIMARY KEY (`id`); 246 | 247 | -- 248 | -- Indexes for table `items_objects` 249 | -- 250 | ALTER TABLE `items_objects` 251 | ADD PRIMARY KEY (`id`), 252 | ADD UNIQUE KEY `item` (`item`); 253 | 254 | -- 255 | -- Indexes for table `received` 256 | -- 257 | ALTER TABLE `received` 258 | ADD PRIMARY KEY (`id`); 259 | 260 | -- 261 | -- Indexes for table `scheme` 262 | -- 263 | ALTER TABLE `scheme` 264 | ADD PRIMARY KEY (`id`), 265 | ADD UNIQUE KEY `schemeName` (`schemeName`); 266 | 267 | -- 268 | -- Indexes for table `users` 269 | -- 270 | ALTER TABLE `users` 271 | ADD PRIMARY KEY (`id`); 272 | 273 | -- 274 | -- Indexes for table `vendor` 275 | -- 276 | ALTER TABLE `vendor` 277 | ADD PRIMARY KEY (`id`); 278 | 279 | -- 280 | -- AUTO_INCREMENT for dumped tables 281 | -- 282 | 283 | -- 284 | -- AUTO_INCREMENT for table `department` 285 | -- 286 | ALTER TABLE `department` 287 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27; 288 | 289 | -- 290 | -- AUTO_INCREMENT for table `issued` 291 | -- 292 | ALTER TABLE `issued` 293 | MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; 294 | 295 | -- 296 | -- AUTO_INCREMENT for table `items_objects` 297 | -- 298 | ALTER TABLE `items_objects` 299 | MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; 300 | 301 | -- 302 | -- AUTO_INCREMENT for table `received` 303 | -- 304 | ALTER TABLE `received` 305 | MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22; 306 | 307 | -- 308 | -- AUTO_INCREMENT for table `scheme` 309 | -- 310 | ALTER TABLE `scheme` 311 | MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; 312 | 313 | -- 314 | -- AUTO_INCREMENT for table `users` 315 | -- 316 | ALTER TABLE `users` 317 | MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; 318 | 319 | -- 320 | -- AUTO_INCREMENT for table `vendor` 321 | -- 322 | ALTER TABLE `vendor` 323 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32; 324 | COMMIT; 325 | 326 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 327 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 328 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 329 | -------------------------------------------------------------------------------- /js/dataTables.select.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | Select for DataTables 1.2.6 3 | 2015-2018 SpryMedia Ltd - datatables.net/license/mit 4 | */ 5 | (function(e){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(i){return e(i,window,document)}):"object"===typeof exports?module.exports=function(i,l){i||(i=window);if(!l||!l.fn.dataTable)l=require("datatables.net")(i,l).$;return e(l,i,i.document)}:e(jQuery,window,document)})(function(e,i,l,h){function u(a,c,b){var d;d=function(b,c){if(b>c)var d=c,c=b,b=d;var f=!1;return a.columns(":visible").indexes().filter(function(a){a===b&&(f=!0);return a===c?(f=!1,!0):f})};var f= 6 | function(b,c){var d=a.rows({search:"applied"}).indexes();if(d.indexOf(b)>d.indexOf(c))var f=c,c=b,b=f;var e=!1;return d.filter(function(a){a===b&&(e=!0);return a===c?(e=!1,!0):e})};!a.cells({selected:!0}).any()&&!b?(d=d(0,c.column),b=f(0,c.row)):(d=d(b.column,c.column),b=f(b.row,c.row));b=a.cells(b,d).flatten();a.cells(c,{selected:!0}).any()?a.cells(b).deselect():a.cells(b).select()}function q(a){var c=a.settings()[0]._select.selector;e(a.table().container()).off("mousedown.dtSelect",c).off("mouseup.dtSelect", 7 | c).off("click.dtSelect",c);e("body").off("click.dtSelect"+a.table().node().id)}function x(a){var c=e(a.table().container()),b=a.settings()[0],d=b._select.selector,f;c.on("mousedown.dtSelect",d,function(b){if(b.shiftKey||b.metaKey||b.ctrlKey)c.css("-moz-user-select","none").one("selectstart.dtSelect",d,function(){return!1});i.getSelection&&(f=i.getSelection())}).on("mouseup.dtSelect",d,function(){c.css("-moz-user-select","")}).on("click.dtSelect",d,function(b){var c=a.select.items();if(i.getSelection){var d= 8 | i.getSelection();if((!d.anchorNode||e(d.anchorNode).closest("table")[0]===a.table().node())&&d!==f)return}var d=a.settings()[0],g=a.settings()[0].oClasses.sWrapper.replace(/ /g,".");if(e(b.target).closest("div."+g)[0]==a.table().container()&&(g=a.cell(e(b.target).closest("td, th")),g.any())){var h=e.Event("user-select.dt");j(a,h,[c,g,b]);h.isDefaultPrevented()||(h=g.index(),"row"===c?(c=h.row,r(b,a,d,"row",c)):"column"===c?(c=g.index().column,r(b,a,d,"column",c)):"cell"===c&&(c=g.index(),r(b,a,d, 9 | "cell",c)),d._select_lastCell=h)}});e("body").on("click.dtSelect"+a.table().node().id,function(c){b._select.blurable&&!e(c.target).parents().filter(a.table().container()).length&&(0!==e(c.target).parents("html").length&&!e(c.target).parents("div.DTE").length)&&o(b,!0)})}function j(a,c,b,d){if(!d||a.flatten().length)"string"===typeof c&&(c+=".dt"),b.unshift(a),e(a.table().node()).trigger(c,b)}function y(a){var c=a.settings()[0];if(c._select.info&&c.aanFeatures.i&&"api"!==a.select.style()){var b=a.rows({selected:!0}).flatten().length, 10 | d=a.columns({selected:!0}).flatten().length,f=a.cells({selected:!0}).flatten().length,k=function(b,c,d){b.append(e('').append(a.i18n("select."+c+"s",{_:"%d "+c+"s selected","0":"",1:"1 "+c+" selected"},d)))};e.each(c.aanFeatures.i,function(c,a){var a=e(a),g=e('');k(g,"row",b);k(g,"column",d);k(g,"cell",f);var h=a.children("span.select-info");h.length&&h.remove();""!==g.text()&&a.append(g)})}}function z(a,c,b,d){var f=a[c+"s"]({search:"applied"}).indexes(), 11 | d=e.inArray(d,f),k=e.inArray(b,f);if(!a[c+"s"]({selected:!0}).any()&&-1===d)f.splice(e.inArray(b,f)+1,f.length);else{if(d>k)var g=k,k=d,d=g;f.splice(k+1,f.length);f.splice(0,d)}a[c](b,{selected:!0}).any()?(f.splice(e.inArray(b,f),1),a[c+"s"](f).deselect()):a[c+"s"](f).select()}function o(a,c){if(c||"single"===a._select.style){var b=new g.Api(a);b.rows({selected:!0}).deselect();b.columns({selected:!0}).deselect();b.cells({selected:!0}).deselect()}}function r(a,c,b,d,f){var e=c.select.style(),g=c[d](f, 12 | {selected:!0}).any();"os"===e?a.ctrlKey||a.metaKey?c[d](f).select(!g):a.shiftKey?"cell"===d?u(c,f,b._select_lastCell||null):z(c,d,f,b._select_lastCell?b._select_lastCell[d]:null):(a=c[d+"s"]({selected:!0}),g&&1===a.flatten().length?c[d](f).deselect():(a.deselect(),c[d](f).select())):"multi+shift"==e?a.shiftKey?"cell"===d?u(c,f,b._select_lastCell||null):z(c,d,f,b._select_lastCell?b._select_lastCell[d]:null):c[d](f).select(!g):c[d](f).select(!g)}function p(a,c){return function(b){return b.i18n("buttons."+ 13 | a,c)}}function s(a){a=a._eventNamespace;return"draw.dt.DT"+a+" select.dt.DT"+a+" deselect.dt.DT"+a}var g=e.fn.dataTable;g.select={};g.select.version="1.2.6";g.select.init=function(a){var c=a.settings()[0],b=c.oInit.select,d=g.defaults.select,b=b===h?d:b,d="row",f="api",k=!1,v=!0,w="td, th",i="selected",j=!1;c._select={};if(!0===b)f="os",j=!0;else if("string"===typeof b)f=b,j=!0;else if(e.isPlainObject(b)&&(b.blurable!==h&&(k=b.blurable),b.info!==h&&(v=b.info),b.items!==h&&(d=b.items),b.style!==h&& 14 | (f=b.style,j=!0),b.selector!==h&&(w=b.selector),b.className!==h))i=b.className;a.select.selector(w);a.select.items(d);a.select.style(f);a.select.blurable(k);a.select.info(v);c._select.className=i;e.fn.dataTable.ext.order["select-checkbox"]=function(b,c){return this.api().column(c,{order:"index"}).nodes().map(function(c){return"row"===b._select.items?e(c).parent().hasClass(b._select.className):"cell"===b._select.items?e(c).hasClass(b._select.className):!1})};!j&&e(a.table().node()).hasClass("selectable")&& 15 | a.select.style("os")};e.each([{type:"row",prop:"aoData"},{type:"column",prop:"aoColumns"}],function(a,c){g.ext.selector[c.type].push(function(b,a,f){var a=a.selected,e,g=[];if(!0!==a&&!1!==a)return f;for(var h=0,i=f.length;h 7 | 8 | 9 | 10 | 11 | 12 | Insert 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 184 | 185 | 186 | 187 | 224 | 225 | 226 | 227 |
228 | alert("Entry is not done try again")'; 252 | } 253 | else{ 254 | echo ''; 255 | echo ' '; 256 | } 257 | } 258 | ?> 259 | 260 |
261 |
262 |
263 | Issue Form 264 |
265 |
266 | 267 | 268 |
269 |
270 | 271 | 272 |
273 |
274 | 275 | 276 |
277 |
278 | 279 | 280 |
281 |
282 | 283 | 284 |
285 |
286 | 287 | 288 |
289 |
290 | 291 | 292 |
293 | 294 |
295 | 296 | 297 | 307 |
308 | 309 | 310 | 311 |
312 |
313 |
314 | 315 | 316 | 317 | 318 | -------------------------------------------------------------------------------- /stockReceiveForm.php: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Store Management(STC) 14 | 15 | 16 | 17 | 18 | 27 | 28 | 191 | 192 | 193 | 194 | 244 | 245 | 246 |
247 | 248 | alert("Entry is not done try again")'; 273 | } 274 | else{ 275 | echo ''; 276 | echo ' '; 277 | } 278 | } 279 | ?> 280 |
281 |
282 | Receive Form 283 |
284 |
285 | 286 | 287 |
288 |
289 | 290 | 291 |
292 |
293 | 294 | 295 |
296 |
297 | 298 | 313 |
314 |
315 | 316 | 317 |
318 |
319 | 320 | 321 |
322 |
323 | 324 | 331 |
332 |
333 | 334 | 335 |
336 |
337 | 338 | 339 |
340 | 341 | 342 |
343 |
344 |
345 | 346 | 347 | 348 | 349 | 387 | 388 | 389 | 390 | 391 | 392 | -------------------------------------------------------------------------------- /viewReceived.php: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | Store Management Data 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 63 | 64 | 65 | 70 | 71 | 72 | 73 | 74 | 75 | 125 | 126 |
127 |
128 |
129 | 130 | 131 | 132 |
133 |
134 | 135 |
136 |
137 |
138 | 139 | 150 |
151 |
152 | 153 | Press View to see data 154 |
155 | 156 | 157 |
158 |
159 | 160 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | EOD; 184 | 185 | // All data fetch included receive and issued. 186 | if(isset($_POST['viewAll'])){ 187 | $cate=$_POST['categorySelect']; 188 | $viewReceive="SELECT * FROM received WHERE category ='$cate'"; 189 | $viewIssue="SELECT * FROM issued WHERE category='$cate'"; 190 | $viewReceiveQry= mysqli_query($conn,$viewReceive); 191 | $viewIssueQry= mysqli_query($conn,$viewIssue); 192 | // php for issue 193 | while($viewIssueFetch=mysqli_fetch_array($viewIssueQry)){ 194 | echo ' 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | '; 212 | } 213 | // php for receive 214 | while($viewReceiveFetch=mysqli_fetch_array($viewReceiveQry)){ 215 | echo ' 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | '; 233 | } 234 | echo ''; 235 | } 236 | ?> 237 |
IdTimingBill NumberVendorGST NumberCategoryAmountGST %Taxable ValueReceivedIssuedUnitDepartmentNameInventoryScheme
'.$viewIssueFetch["id"].''.$viewIssueFetch["timing"].'--'.$viewIssueFetch["description"].'--'.$viewIssueFetch["category"].'--------'.$viewIssueFetch["issued"].''.$viewIssueFetch["unit"].''.$viewIssueFetch["department"].''.$viewIssueFetch["name"].''.$viewIssueFetch["inventory"].''.$viewIssueFetch["scheme"].'
'.$viewReceiveFetch["id"].''.$viewReceiveFetch["timing"].''.$viewReceiveFetch["billNumber"].''.$viewReceiveFetch["vendor"].''.$viewReceiveFetch["gstNumber"].''.$viewReceiveFetch["category"].''.$viewReceiveFetch["amount"].''.$viewReceiveFetch["gst"].''.$viewReceiveFetch["taxableValue"].''.$viewReceiveFetch["received"].'--'.$viewReceiveFetch["unit"].'----'.$viewReceiveFetch["inventory"].''.$viewReceiveFetch["scheme"].'
238 |
239 |
240 | 241 | 242 |
243 | 244 | 245 |
246 |
247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | '; 287 | } 288 | ?> 289 | 290 |
IdTimingBill NumberDescriptionGST NumberCategoryAmountGSTTaxable ValueReceivedUnitSchemeInventoryDelete
'.$receiveData[0].''.$receiveData[1].''.$receiveData[2].''.$receiveData[3].''.$receiveData[4].''.$receiveData[5].''.$receiveData[6].''.$receiveData[7].''.$receiveData[8].''.$receiveData[9].''.$receiveData[10].''.$receiveData[11].''.$receiveData[12].'
291 |
292 |
293 | window.location.href="viewReceived.php";'; 299 | } 300 | ?> 301 |
302 |
303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | '; 337 | } 338 | ?> 339 | 340 |
IdTimingDescriptionCategoryNameIssuedUnitDepartmentSchemeInventoryDelete
'.$IssueData[0].''.$IssueData[1].''.$IssueData[2].''.$IssueData[3].''.$IssueData[4].''.$IssueData[5].''.$IssueData[6].''.$IssueData[7].''.$IssueData[8].''.$IssueData[9].'
341 |
342 |
343 | window.location.href="storefetch.php";'; 349 | } 350 | ?> 351 | 352 | 353 | 354 | 355 | 356 | 357 |
358 | 359 | 360 | 361 | 362 | 363 | 364 | 393 | 394 | 395 | 396 | 397 | -------------------------------------------------------------------------------- /js/dataTables.buttons.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | Buttons for DataTables 1.5.2 3 | ©2016-2018 SpryMedia Ltd - datatables.net/license 4 | */ 5 | (function(d){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(n){return d(n,window,document)}):"object"===typeof exports?module.exports=function(n,o){n||(n=window);if(!o||!o.fn.dataTable)o=require("datatables.net")(n,o).$;return d(o,n,n.document)}:d(jQuery,window,document)})(function(d,n,o,m){var i=d.fn.dataTable,x=0,y=0,k=i.ext.buttons,l=function(a,b){"undefined"===typeof b&&(b={});!0===b&&(b={});d.isArray(b)&&(b={buttons:b});this.c=d.extend(!0,{},l.defaults,b); 6 | b.buttons&&(this.c.buttons=b.buttons);this.s={dt:new i.Api(a),buttons:[],listenKeys:"",namespace:"dtb"+x++};this.dom={container:d("<"+this.c.dom.container.tag+"/>").addClass(this.c.dom.container.className)};this._constructor()};d.extend(l.prototype,{action:function(a,b){var c=this._nodeToButton(a);if(b===m)return c.conf.action;c.conf.action=b;return this},active:function(a,b){var c=this._nodeToButton(a),e=this.c.dom.button.active,c=d(c.node);if(b===m)return c.hasClass(e);c.toggleClass(e,b===m?!0: 7 | b);return this},add:function(a,b){var c=this.s.buttons;if("string"===typeof b){for(var e=b.split("-"),c=this.s,d=0,h=e.length-1;d").addClass(u.className).attr("role","menu");p.conf._collection=p.collection;this._expandButton(p.buttons,p.conf.buttons,!0,e)}j.init&&j.init.call(g.button(p.node),g,d(p.node),j);h++}}}},_buildButton:function(a, 13 | b){var c=this.c.dom.button,e=this.c.dom.buttonLiner,g=this.c.dom.collection,h=this.s.dt,f=function(b){return"function"===typeof b?b(h,j,a):b};b&&g.button&&(c=g.button);b&&g.buttonLiner&&(e=g.buttonLiner);if(a.available&&!a.available(h,a))return!1;var q=function(a,b,c,e){e.action.call(b.button(c),a,b,c,e);d(b.table().node()).triggerHandler("buttons-action.dt",[b.button(c),b,c,e])},g=a.tag||c.tag,j=d("<"+g+"/>").addClass(c.className).attr("tabindex",this.s.dt.settings()[0].iTabIndex).attr("aria-controls", 14 | this.s.dt.table().node().id).on("click.dtb",function(b){b.preventDefault();!j.hasClass(c.disabled)&&a.action&&q(b,h,j,a);j.blur()}).on("keyup.dtb",function(b){b.keyCode===13&&!j.hasClass(c.disabled)&&a.action&&q(b,h,j,a)});"a"===g.toLowerCase()&&j.attr("href","#");"button"===g.toLowerCase()&&j.attr("type","button");e.tag?(g=d("<"+e.tag+"/>").html(f(a.text)).addClass(e.className),"a"===e.tag.toLowerCase()&&g.attr("href","#"),j.append(g)):j.html(f(a.text));!1===a.enabled&&j.addClass(c.disabled);a.className&& 15 | j.addClass(a.className);a.titleAttr&&j.attr("title",f(a.titleAttr));a.attr&&j.attr(a.attr);a.namespace||(a.namespace=".dt-button-"+y++);e=(e=this.c.dom.buttonContainer)&&e.tag?d("<"+e.tag+"/>").addClass(e.className).append(j):j;this._addKey(a);return{conf:a,node:j.get(0),inserter:e,buttons:[],inCollection:b,collection:null}},_nodeToButton:function(a,b){b||(b=this.s.buttons);for(var c=0,e=b.length;c").addClass(b).css("display","none").appendTo("body").fadeIn(c):d("body > div."+b).fadeOut(c,function(){d(this).removeClass(b).remove()})};l.instanceSelector=function(a,b){if(!a)return d.map(b,function(a){return a.inst});var c=[],e=d.map(b,function(a){return a.name}),g=function(a){if(d.isArray(a))for(var f= 20 | 0,q=a.length;fg||e.dropup)&&e._collection.css("top",a.top-e._collection.outerHeight()-5),f=a.left+e._collection.outerWidth(),h=h.offset().left+h.width(),f>h&&e._collection.css("left", 25 | a.left-(f-h)),c=c.offset().left+e._collection.outerWidth(),c>d(n).width()&&e._collection.css("left",a.left-(c-d(n).width()))):(c=e._collection.height()/2,c>d(n).height()/2&&(c=d(n).height()/2),e._collection.css("marginTop",-1*c));e.background&&l.background(!0,e.backgroundClassName,e.fade);var j=function(){e._collection.fadeOut(e.fade,function(){e._collection.detach()});d("div.dt-button-background").off("click.dtb-collection");l.background(false,e.backgroundClassName,e.fade);d("body").off(".dtb-collection"); 26 | b.off("buttons-action.b-internal")};setTimeout(function(){d("div.dt-button-background").on("click.dtb-collection",function(){});d("body").on("click.dtb-collection",function(a){var b=d.fn.addBack?"addBack":"andSelf";d(a.target).parents()[b]().filter(e._collection).length||j()}).on("keyup.dtb-collection",function(a){a.keyCode===27&&j()});if(e.autoClose)b.on("buttons-action.b-internal",function(){j()})},10)},background:!0,collectionLayout:"",backgroundClassName:"dt-button-background",autoClose:!1,fade:400, 27 | attr:{"aria-haspopup":!0}},copy:function(a,b){if(k.copyHtml5)return"copyHtml5";if(k.copyFlash&&k.copyFlash.available(a,b))return"copyFlash"},csv:function(a,b){if(k.csvHtml5&&k.csvHtml5.available(a,b))return"csvHtml5";if(k.csvFlash&&k.csvFlash.available(a,b))return"csvFlash"},excel:function(a,b){if(k.excelHtml5&&k.excelHtml5.available(a,b))return"excelHtml5";if(k.excelFlash&&k.excelFlash.available(a,b))return"excelFlash"},pdf:function(a,b){if(k.pdfHtml5&&k.pdfHtml5.available(a,b))return"pdfHtml5"; 28 | if(k.pdfFlash&&k.pdfFlash.available(a,b))return"pdfFlash"},pageLength:function(a){var a=a.settings()[0].aLengthMenu,b=d.isArray(a[0])?a[0]:a,c=d.isArray(a[0])?a[1]:a,e=function(a){return a.i18n("buttons.pageLength",{"-1":"Show all rows",_:"Show %d rows"},a.page.len())};return{extend:"collection",text:e,className:"buttons-page-length",autoClose:!0,buttons:d.map(b,function(a,b){return{text:c[b],className:"button-page-length",action:function(b,c){c.page.len(a).draw()},init:function(b,c,e){var d=this, 29 | c=function(){d.active(b.page.len()===a)};b.on("length.dt"+e.namespace,c);c()},destroy:function(a,b,c){a.off("length.dt"+c.namespace)}}}),init:function(a,b,c){var d=this;a.on("length.dt"+c.namespace,function(){d.text(e(a))})},destroy:function(a,b,c){a.off("length.dt"+c.namespace)}}}});i.Api.register("buttons()",function(a,b){b===m&&(b=a,a=m);this.selector.buttonGroup=a;var c=this.iterator(!0,"table",function(c){if(c._buttons)return l.buttonSelector(l.instanceSelector(a,c._buttons),b)},!0);c._groupSelector= 30 | a;return c});i.Api.register("button()",function(a,b){var c=this.buttons(a,b);1').html(a?"

"+a+"

":"").append(d("
")["string"===typeof b?"html": 35 | "append"](b)).css("display","none").appendTo("body").fadeIn();c!==m&&0!==c&&(r=setTimeout(function(){e.buttons.info(!1)},c));return this});i.Api.register("buttons.exportData()",function(a){if(this.context.length){var b=new i.Api(this.context[0]),c=d.extend(!0,{},{rows:null,columns:"",modifier:{search:"applied",order:"applied"},orthogonal:"display",stripHtml:!0,stripNewlines:!0,decodeEntities:!0,trim:!0,format:{header:function(a){return e(a)},footer:function(a){return e(a)},body:function(a){return e(a)}}, 36 | customizeData:null},a),e=function(a){if("string"!==typeof a)return a;a=a.replace(/)<[^<]*)*<\/script>/gi,"");a=a.replace(//g,"");c.stripHtml&&(a=a.replace(/<[^>]*>/g,""));c.trim&&(a=a.replace(/^\s+|\s+$/g,""));c.stripNewlines&&(a=a.replace(/\n/g," "));c.decodeEntities&&(v.innerHTML=a,a=v.value);return a},a=b.columns(c.columns).indexes().map(function(a){var d=b.column(a).header();return c.format.header(d.innerHTML,a,d)}).toArray(),g=b.table().footer()?b.columns(c.columns).indexes().map(function(a){var d= 37 | b.column(a).footer();return c.format.footer(d?d.innerHTML:"",a,d)}).toArray():null,h=d.extend({},c.modifier);b.select&&"function"===typeof b.select.info&&h.selected===m&&b.rows(c.rows,d.extend({selected:!0},h)).any()&&d.extend(h,{selected:!0});for(var h=b.rows(c.rows,h).indexes().toArray(),f=b.cells(h,c.columns),h=f.render(c.orthogonal).toArray(),f=f.nodes().toArray(),k=a.length,j=[],l=0,n=0,o=0 title").text()))),b=b.replace(/[^a-zA-Z0-9_\u00A1-\uFFFF\.,\-_ !\(\)]/g,""),(c=t(c.extension))||(c=""),b+=c);c=t(a.title);c=null===c?null:-1!==c.indexOf("*")? 39 | c.replace("*",d("head > title").text()||"Exported data"):c;return{filename:b,title:c,messageTop:w(this,a.message||a.messageTop,"top"),messageBottom:w(this,a.messageBottom,"bottom")}});var t=function(a){return null===a||a===m?null:"function"===typeof a?a():a},w=function(a,b,c){b=t(b);if(null===b)return null;a=d("caption",a.table().container()).eq(0);return"*"===b?a.css("caption-side")!==c?null:a.length?a.text():"":b},v=d("