├── .gitignore ├── DataBase ├── how-to-import-sql-dump-file.md ├── mysql_create_tables.md └── tender.sql ├── Presentation ├── Tender_Management_System.ppsx ├── Tender_Management_System.pptx └── instruction.md ├── README.md └── tendermanagement ├── .classpath ├── .gitignore ├── .project ├── .settings ├── .jsdtscope ├── org.eclipse.jdt.apt.core.prefs ├── org.eclipse.jdt.core.prefs ├── org.eclipse.m2e.core.prefs ├── org.eclipse.wst.common.component ├── org.eclipse.wst.common.project.facet.core.xml ├── org.eclipse.wst.jsdt.ui.superType.container ├── org.eclipse.wst.jsdt.ui.superType.name └── org.eclipse.wst.validation.prefs ├── .vscode └── settings.json ├── WebContent ├── META-INF │ └── MANIFEST.MF ├── WEB-INF │ └── web.xml ├── addNotice.jsp ├── adminHome.jsp ├── adminMenu.jsp ├── adminViewVendor.jsp ├── adminViewVendorDetail.jsp ├── approved.jsp ├── bidHistory.jsp ├── bidTender.jsp ├── bidTenderForm.jsp ├── createTender.jsp ├── css │ ├── SpryTabbedPanels.css │ ├── annimate.css │ ├── bootstrap-dropdownhover.css │ ├── bootstrap-dropdownhover.min.css │ ├── bootstrap-theme.css │ ├── bootstrap-theme.css.map │ ├── bootstrap-theme.min.css │ ├── bootstrap-theme.min.css.map │ ├── bootstrap.css │ ├── bootstrap.css.map │ ├── bootstrap.min.css │ ├── bootstrap.min.css.map │ ├── font-awesome.min.css │ ├── style1.css │ ├── style2.css │ └── styles.css ├── errorpage.jsp ├── fonts │ ├── css │ │ ├── SpryTabbedPanels.css │ │ ├── annimate.css │ │ ├── bootstrap-dropdownhover.css │ │ ├── bootstrap-dropdownhover.min.css │ │ ├── bootstrap-theme.css │ │ ├── bootstrap-theme.css.map │ │ ├── bootstrap-theme.min.css │ │ ├── bootstrap-theme.min.css.map │ │ ├── bootstrap.css │ │ ├── bootstrap.css.map │ │ ├── bootstrap.min.css │ │ ├── bootstrap.min.css.map │ │ ├── font-awesome.min.css │ │ ├── style1.css │ │ ├── style2.css │ │ └── styles.css │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 ├── footer.jsp ├── galary.jsp ├── header.jsp ├── images │ ├── 19_appendices.pdf │ ├── Banner_Hit.png │ ├── Photo.jpg │ ├── Photoscan18.jpg │ ├── ayush.jpg │ ├── banner_hit_DBK_icon.ico │ ├── building.jpg │ ├── building2.jpg │ ├── button_new-animated.gif │ ├── cap.jpg │ ├── deepshikha.png │ ├── hit.jpg │ ├── hit1.jpg │ ├── hit_fevicon.ico │ ├── hit_logo.png │ ├── hitshort.jpg │ ├── home1.jpg │ ├── jcb.jpg │ ├── library1.png │ ├── nun.jpg │ └── onwork.jpg ├── index.jsp ├── js │ ├── ajax-utils.js │ ├── bootstrap-dropdownhover.js │ ├── bootstrap-dropdownhover.min.js │ ├── bootstrap.js │ ├── bootstrap.min.js │ ├── jquery-2.1.4.min.js │ ├── jquery.bootstrap-dropdown-hover.js │ ├── jquery.bootstrap-dropdown-hover.min.js │ ├── npm.js │ └── script.js ├── login.jsp ├── loginFailed.jsp ├── loginHeader.jsp ├── logoutMsg.jsp ├── logoutSuccess.jsp ├── menu.jsp ├── notice.jsp ├── register.jsp ├── removeNotice.jsp ├── searchTender.jsp ├── test.jsp ├── updateNotice.jsp ├── updateNoticeForm.jsp ├── updatePassword.jsp ├── updateProfile.jsp ├── vendorHome.jsp ├── vendorMenu.jsp ├── vendorSearchTender.jsp ├── vendorViewTender.jsp ├── viewAssignedTenders.jsp ├── viewNotice.jsp ├── viewProfile.jsp ├── viewTender.jsp ├── viewTenderBids.jsp └── viewTenderBidsForm.jsp ├── pom.xml └── src ├── com └── hit │ ├── beans │ ├── BidderBean.java │ ├── NoticeBean.java │ ├── TenderBean.java │ ├── TenderStatusBean.java │ └── VendorBean.java │ ├── dao │ ├── BidderDao.java │ ├── BidderDaoImpl.java │ ├── NoticeDao.java │ ├── NoticeDaoImpl.java │ ├── TenderDao.java │ ├── TenderDaoImpl.java │ ├── VendorDao.java │ └── VendorDaoImpl.java │ ├── srv │ ├── AcceptBidSrv.java │ ├── AddNoticeSrv.java │ ├── BidTenderSrv.java │ ├── ChangePasswordSrv.java │ ├── CreateTenderSrv.java │ ├── LoginSrv.java │ ├── LogoutSrv.java │ ├── RegisterSrv.java │ ├── RejectBidSrv.java │ ├── RemoveNoticeSrv.java │ ├── UpdateNoticeSrv.java │ └── UpdateProfileSrv.java │ └── utility │ ├── DBUtil.java │ └── IDUtil.java └── dbdetails.properties /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode/settings.json 2 | -------------------------------------------------------------------------------- /DataBase/how-to-import-sql-dump-file.md: -------------------------------------------------------------------------------- 1 | #### STEPS FOR IMPORTING THE DUMMY DATABASE USING THE DUMP FILE AVAILABLE 2 | 3 | STEP 1: Download the Sql Dump File Available inside DataBase/tender.sql file. Or Click Here to Download the tender.sql file. 4 | 5 | STEP 2: Go to the downloaded file location and unzip the file if zipped 6 | 7 | STEP 3: Open Command prompt (cmd) in that file location 8 | 9 | STEP 4: Enter the following cmd into the command prompt and enter the password for the root user if asked: 10 | 11 | ```mysql -u root -p tender < tender.sql``` 12 | 13 | (If your mysql database admininstrator username is not "root" then replace "root" with your dba admin user-name, 14 | 15 | eg: ```mysql -u -p tender < tender.sql```) 16 | 17 | STEP 5: Done 18 | -------------------------------------------------------------------------------- /DataBase/mysql_create_tables.md: -------------------------------------------------------------------------------- 1 | #### NOTE:- The table that will be created here is empty , i.e no dummy data will be available. 2 | #### Execute the following Queries iff : 3 | - If You want to Create an empty table structure for this project, without any dummy database. 4 | - If you don't want to execute the dummy database given Here inside DataBase/mysql_create_tables 5 | #### STEP 1: Login to administrator user opening MySQL Command Prompt or open cmd and execute the following: 6 | ```mysql -u -p ``` (Enter the password when asked) 7 | 8 | #### STEP 2: Copy Paste and execute the following Queries: 9 | 10 | ```MySQL 11 | create database tender; 12 | 13 | commit; 14 | 15 | use tender; 16 | 17 | create table notice(id int(3) not null auto_increment, title varchar(35),info varchar(300), primary key(id)); 18 | 19 | alter table notice AUTO_INCREMENT = 1; 20 | 21 | 22 | create table vendor(vid varchar(15) primary key,password varchar(20),vname varchar(30),vmob varchar(12), 23 | vemail varchar(40),company varchar(15),address varchar(100)); 24 | 25 | 26 | create table tender(tid varchar(15) primary key,tname varchar(40),ttype varchar(20),tprice int, 27 | tdesc varchar(300),tdeadline date,tloc varchar(70)); 28 | 29 | create table bidder (bid varchar(15) primary key,vid varchar(15) references vendor(vid),tid varchar(15) references tender(tid), 30 | bidamount int,deadline date,status varchar(10)); 31 | 32 | 33 | create table tenderstatus(tid varchar(15) primary key references tender(tid),bid varchar(15) references bidder(bid), 34 | status varchar(15) not null,vid varchar(15) references vendor(vid)); 35 | 36 | INSERT INTO tender VALUES ('T20190725022124','Gandhi Setu Highway','maintainence',50000,'lkjhgfd','2019-07-19','Patna, Bihar'),('T20190725022416','MEGA CITY CONNECTING ROAD CONTRUCTION','construction',100000,'mega city road contruction','2019-09-14','Delhi'),('T20190725022601','KOKATA HALDIA BRIDGE CONTRUCTION','construction',5000000,'bridge contruction from kolkata to haldia','2019-07-28','KOLATA-HALDIA'),('T20190725101239','Game Development','software',150000,'We are going to start a project on game development using GPS specification. Interested condidates are required to bid as soon as possible','2019-07-19','Banglore, India'),('T20190725101322','Game Development','software',150000,'We are going to start a project on game development using GPS specification. Interested condidates are required to bid as soon as possible','2019-07-19','Banglore, India'); 37 | 38 | 39 | INSERT INTO notice VALUES (2,'Gandhi Setu Repairing','Repairing work is going to be started tommorow'),(3,'KOLKATA-HALDIA BRIDGE CONTRUCTION','ASSINGNED ENGINEER NEED TO REPORT AT THE CONSTRUCTION SITE BY TOMMOROW'); 40 | 41 | INSERT INTO vendor VALUES ('V20190725020951','12345','Ayush Vikas','07501 070485','ayush@gmail.com','Infosys','K-3, LANE NO-6 AYODHAYAPURI NEAR AIRTEL TOWER'),('V20190725022813','aaina','Ravi Rishu','12345679','ravi@gmail.com','Infosys','Dhanbad ,Jharkhand'),('V20190725023446','ayush','Ayush Vikas','6789054321','ayushvikasdutta1296@gmail.com','Infosys','siwan near durga mandir, bihar '),('V20190725100730','shashi','Shashi Raj','9234567689','shashi@gmail.com','Wipro','Jain , Colony Belhariya More, Tekari, Gaya, (Bihar) '); 42 | 43 | INSERT INTO bidder VALUES ('B20190725022953','V20190725022813','T20190725022124',51000,'2019-07-19','Pending'),('B20190725023010','V20190725022813','T20190725022124',52000,'2019-07-19','Accepted'),('B20190725023248','V20190725022813','T20190725022416',100001,'2019-09-14','Rejected'),('B20190725023512','V20190725023446','T20190725022416',200000,'2019-09-14','Accepted'),('B20190725024125','V20190725023446','T20190725022601',5000001,'2019-07-28','Rejected'),('B20190725024243','V20190725022813','T20190725022601',6000000,'2019-07-28','Accepted'),('B20190725101444','V20190725100730','T20190725101322',1500000,'2019-07-19','Rejected'),('B20190725101519','V20190725023446','T20190725101239',150005,'2019-07-19','Rejected'),('B20190725101525','V20190725023446','T20190725101239',150050,'2019-07-19','Rejected'),('B20190725101554','V20190725022813','T20190725101322',160000,'2019-07-19','Accepted'); 44 | 45 | INSERT INTO tenderstatus VALUES ('T20190725022124','B20190725023010','Assigned','V20190725022813'),('T20190725022416','B20190725023512','Assigned','V20190725023446'),('T20190725022601','B20190725024243','Assigned','V20190725022813'),('T20190725101322','B20190725101554','Assigned','V20190725022813'); 46 | 47 | commit; 48 | 49 | ``` 50 | -------------------------------------------------------------------------------- /Presentation/Tender_Management_System.ppsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/Presentation/Tender_Management_System.ppsx -------------------------------------------------------------------------------- /Presentation/Tender_Management_System.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/Presentation/Tender_Management_System.pptx -------------------------------------------------------------------------------- /Presentation/instruction.md: -------------------------------------------------------------------------------- 1 | - Download the file attatched in this folder to view the powerpoint presentation of this project. 2 | - To download the Presentation file Click Here. 3 | -------------------------------------------------------------------------------- /tendermanagement/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tendermanagement/.gitignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | /target/ 3 | -------------------------------------------------------------------------------- /tendermanagement/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | tendermanagement 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.wst.jsdt.core.javascriptValidator 10 | 11 | 12 | 13 | 14 | org.eclipse.jdt.core.javabuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.common.project.facet.core.builder 20 | 21 | 22 | 23 | 24 | org.eclipse.wst.validation.validationbuilder 25 | 26 | 27 | 28 | 29 | org.eclipse.m2e.core.maven2Builder 30 | 31 | 32 | 33 | 34 | 35 | org.eclipse.m2e.core.maven2Nature 36 | org.eclipse.jem.workbench.JavaEMFNature 37 | org.eclipse.wst.common.modulecore.ModuleCoreNature 38 | org.eclipse.wst.common.project.facet.core.nature 39 | org.eclipse.jdt.core.javanature 40 | org.eclipse.wst.jsdt.core.jsNature 41 | 42 | 43 | -------------------------------------------------------------------------------- /tendermanagement/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tendermanagement/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=false 3 | -------------------------------------------------------------------------------- /tendermanagement/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 9 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 10 | org.eclipse.jdt.core.compiler.processAnnotations=disabled 11 | org.eclipse.jdt.core.compiler.release=disabled 12 | org.eclipse.jdt.core.compiler.source=1.8 13 | -------------------------------------------------------------------------------- /tendermanagement/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /tendermanagement/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /tendermanagement/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /tendermanagement/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /tendermanagement/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /tendermanagement/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /tendermanagement/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.exclude": { 3 | "**/.classpath": true, 4 | "**/.project": true, 5 | "**/.settings": true, 6 | "**/.factorypath": true 7 | } 8 | } -------------------------------------------------------------------------------- /tendermanagement/WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | tendermanagement 4 | 5 | index.jsp 6 | 7 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/addNotice.jsp: -------------------------------------------------------------------------------- 1 | <%@page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | <%@page import="java.sql.*, com.hit.utility.DBUtil, javax.servlet.annotation.WebServlet" errorPage="errorpage.jsp"%> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Tender Management System 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | <% 28 | String user = (String)session.getAttribute("user"); 29 | String uname = (String)session.getAttribute("username"); 30 | String pword = (String)session.getAttribute("password"); 31 | 32 | if(!user.equalsIgnoreCase("admin") || uname.equals("") || pword.equals("")){ 33 | 34 | response.sendRedirect("loginFailed.jsp"); 35 | 36 | } 37 | 38 | %> 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 49 | 50 |
51 | 52 |
53 |
54 | <% Connection con = DBUtil.provideConnection(); %> 55 | 56 |
57 | 58 | 59 |
60 | 61 |
62 |
63 | 64 | 65 | 66 | <%-- --%> 67 | 68 |
69 | 74 | 75 | 76 | 77 | 78 | 79 |
Enter Notice Details Below
80 | 81 | 82 | 83 |
84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 |
Add Notice
Notice Title :
Descripton :
92 |
93 | 94 | 96 |
97 | 98 | 99 |
100 | 101 | 102 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 146 | 147 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/adminHome.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | <%@page import="java.sql.*, com.hit.utility.DBUtil, javax.servlet.annotation.WebServlet" errorPage="errorpage.jsp"%> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Tender Management System 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | <% 26 | String user = (String)session.getAttribute("user"); 27 | String uname = (String)session.getAttribute("username"); 28 | String pword = (String)session.getAttribute("password"); 29 | 30 | if(!user.equalsIgnoreCase("admin") || uname.equals("") || pword.equals("")){ 31 | 32 | response.sendRedirect("loginFailed.jsp"); 33 | 34 | } 35 | 36 | %> 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 47 | 48 |
49 | 50 |
51 |
52 | <% Connection con = DBUtil.provideConnection(); %> 53 | 54 |
55 | 56 | 57 |
58 | 59 |
60 |
61 | 62 | 63 | 64 | 65 | 66 |
67 |
68 |

69 |   Admin Account

70 |
71 |

Hey Admin! Welcome to Our Tender Management system

72 |

Here You can manage your vendors, add tenders and assign it to vendors according to their high bids

73 |

Go on the about menu section links to explore the site

74 |

You can also add notice,update it and delete the notice board from the database!

75 |
76 |
77 |
78 | 79 | 80 | 81 | 82 |

83 | 84 |
85 | 86 | 87 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/adminMenu.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Admin Home 8 | 9 | 10 | 74 | 75 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/approved.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | <%@ page import="java.sql.*,com.hit.utility.DBUtil"%> 4 | 5 | 6 | 7 | 8 | Insert title here 9 | 10 | 11 |
13 | <% 14 | Connection con = DBUtil.provideConnection(); 15 | %> 16 |

18 |   Recently 19 | Approved Tenders 20 |

21 |
23 | 25 | 26 | 27 | <% 28 | try { 29 | PreparedStatement ps = con.prepareStatement("select * from tenderstatus order by sysdate() asc limit 6"); 30 | ResultSet rs = ps.executeQuery(); 31 | 32 | while (rs.next()) { 33 | String bid = rs.getString("bid"); 34 | String tid = rs.getString("tid"); 35 | %> 36 |
37 |

38 | Application 39 | Id:  40 | <%=bid%>

41 |

42 | Assigned To:   <%=tid%>

43 | 44 | <% 45 | } 46 | } catch (SQLException e) { 47 | e.printStackTrace(); 48 | } 49 | %> 50 | 51 |
52 | 53 |
54 | 55 |
56 | 57 | 58 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/bidHistory.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | <%@page 4 | import="java.sql.*,com.hit.beans.VendorBean,com.hit.beans.BidderBean,java.lang.Integer,java.lang.String, com.hit.beans.TenderBean,com.hit.utility.DBUtil,java.util.List,com.hit.dao.BidderDaoImpl,com.hit.dao.BidderDao, javax.servlet.annotation.WebServlet" 5 | errorPage="errorpage.jsp"%> 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | Tender Management System 16 | 17 | 18 | 19 | 20 | 21 | 23 | 24 | 25 | 53 | 54 | 55 | 56 | <% 57 | String user = (String) session.getAttribute("user"); 58 | String uname = (String) session.getAttribute("username"); 59 | String pword = (String) session.getAttribute("password"); 60 | 61 | if (user == null || !user.equalsIgnoreCase("user") || uname.equals("") || pword.equals("")) { 62 | 63 | response.sendRedirect("loginFailed.jsp"); 64 | 65 | } 66 | %> 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 81 | 82 | 83 |
84 | 85 |
86 |
87 | <% 88 | Connection con = DBUtil.provideConnection(); 89 | %> 90 | 91 |
92 | 93 | 94 |
95 | 96 |
97 | 98 |
99 | 100 | 101 | 102 | 103 | 104 | 105 |
106 | 111 | 112 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | <% 121 | BidderDao dao = new BidderDaoImpl(); 122 | VendorBean vendor = (VendorBean) session.getAttribute("vendordata"); 123 | List bidderList = dao.getAllBidsOfaVendor(vendor.getId()); 124 | 125 | for (BidderBean bidder : bidderList) { 126 | %> 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | <% 140 | } 141 | %> 142 |
Application IdTender IdBid AmountDeadlineStatus
<%=bidder.getBidId()%><%=bidder.getTenderId()%>₹ <%=bidder.getBidAmount()%><%=bidder.getBidDeadline()%><%=bidder.getBidStatus()%>
143 | 146 |
147 | 148 |
149 | 150 | 151 | 152 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/css/bootstrap-dropdownhover.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Dropdownhover v1.0.0 (http://bs-dropdownhover.kybarg.com) 3 | */ 4 | .dropdown .dropdown-menu .caret { 5 | border: 4px solid transparent; 6 | border-left-color: #000; 7 | float: right; 8 | margin-top: 6px; 9 | } 10 | .dropdown-menu { 11 | min-width: 250px; 12 | } 13 | .dropdown-menu > li.open > a { 14 | background-color: #F5F5F5; 15 | color: #262626; 16 | text-decoration: none; 17 | } 18 | .dropdown-menu .dropdown-menu { 19 | left: 100%; 20 | margin: 0; 21 | right: auto; 22 | top: -1px; 23 | } 24 | .dropdown-menu-right .dropdown-menu, 25 | .navbar-right .dropdown-menu .dropdown-menu, 26 | .pull-right .dropdown-menu .dropdown-menu { 27 | left: auto; 28 | right: 100%; 29 | } 30 | .dropdown-menu.animated { 31 | -webkit-animation-duration: 0.3s; 32 | animation-duration: 0.3s; 33 | } 34 | .dropdown-menu.animated:before { 35 | content: " "; 36 | display: block; 37 | height: 100%; 38 | left: 0; 39 | position: absolute; 40 | top: 0; 41 | width: 100%; 42 | z-index: 99; 43 | } 44 | .dropdownhover-top { 45 | margin-bottom: 2px; 46 | margin-top: 0; 47 | } 48 | .navbar-fixed-bottom .dropdown-menu .dropdown-menu, 49 | .dropdownhover-top .dropdown-menu { 50 | bottom: -1px; 51 | top: auto; 52 | } 53 | 54 | .navbar-nav > li > .dropdown-menu { 55 | margin-bottom: 0; 56 | } 57 | 58 | .dropdownhover-bottom { 59 | -webkit-transform-origin: 50% 0; 60 | transform-origin: 50% 0; 61 | } 62 | .dropdownhover-left { 63 | -webkit-transform-origin: 100% 50%; 64 | transform-origin: 100% 50%; 65 | } 66 | .dropdownhover-right { 67 | -webkit-transform-origin: 0 50%; 68 | transform-origin: 0 50%; 69 | } 70 | .dropdownhover-top { 71 | -webkit-transform-origin: 50% 100%; 72 | transform-origin: 50% 100%; 73 | } -------------------------------------------------------------------------------- /tendermanagement/WebContent/css/bootstrap-dropdownhover.min.css: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Dropdownhover v1.0.0 (http://bs-dropdownhover.kybarg.com) 4 | */ 5 | .dropdown .dropdown-menu .caret{border:4px solid transparent;border-left-color:#000;float:right;margin-top:6px}.dropdown-menu{min-width:250px}.dropdown-menu > li.open > a{background-color:#F5F5F5;color:#262626;text-decoration:none}.dropdown-menu .dropdown-menu{left:100%;margin:0;right:auto;top:-1px}.dropdown-menu-right .dropdown-menu,.navbar-right .dropdown-menu .dropdown-menu,.pull-right .dropdown-menu .dropdown-menu{left:auto;right:100%}.dropdown-menu.animated{-webkit-animation-duration:0.3s;animation-duration:0.3s}.dropdown-menu.animated:before{content:" ";display:block;height:100%;left:0;position:absolute;top:0;width:100%;z-index:99}.dropdownhover-top{margin-bottom:2px;margin-top:0}.navbar-fixed-bottom .dropdown-menu .dropdown-menu,.dropdownhover-top .dropdown-menu{bottom:-1px;top:auto}.navbar-nav > li > .dropdown-menu{margin-bottom:0}.dropdownhover-bottom{-webkit-transform-origin:50% 0;transform-origin:50% 0}.dropdownhover-left{-webkit-transform-origin:100% 50%;transform-origin:100% 50%}.dropdownhover-right{-webkit-transform-origin:0 50%;transform-origin:0 50%}.dropdownhover-top{-webkit-transform-origin:50% 100%;transform-origin:50% 100%} 6 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/css/style1.css: -------------------------------------------------------------------------------- 1 | .footer { 2 | /* position: 3 | */ 4 | margin-bottom: 0px; 5 | } 6 | 7 | .navbar-header img { 8 | margin-top: 10px; 9 | margin-bottom: 10px; 10 | margin-right: 10px; 11 | } 12 | 13 | .navbar-brand h1 { 14 | font-size: 2em; 15 | margin-top: 2px; 16 | color: #ffffff; 17 | font-family: 'Black Ops One'; 18 | } 19 | 20 | .secondnav { 21 | margin-top: -19.1px; 22 | } 23 | 24 | .secondcont { 25 | margin-left: 13%; 26 | font-size: 18px; 27 | } 28 | 29 | .menusize { 30 | font-size: 20px; 31 | margin-top: 20px; 32 | } 33 | 34 | #nav-list { 35 | margin-top: 0px; 36 | font-weight: bold; 37 | color: green; 38 | font-size: 15px; 39 | margin-left: 0; 40 | } 41 | 42 | #nav-list a { 43 | color: #951C49; 44 | } 45 | 46 | .dropdown-menu li a { 47 | font-weight: bold; 48 | font-size: 14px; 49 | color: blue; 50 | } 51 | 52 | #nav-list a:hover { 53 | background-color: red; 54 | color: white; 55 | font-weight: bold; 56 | padding: auto; 57 | border-radius: 8px; 58 | margin-top: 0px; 59 | margin-bottom: 0px; 60 | } 61 | 62 | #nav-list a:active { 63 | background-color: green; 64 | color: white; 65 | font-weight: bold; 66 | padding: auto; 67 | border-radius: 8px; 68 | margin-top: 0px; 69 | margin-bottom: 0px; 70 | } 71 | 72 | #na 73 | #nav-list a span { 74 | font-size: 1.0em; 75 | } 76 | 77 | .back { 78 | margin-top: -20px; 79 | max-height: 580px; 80 | width: 1600px; 81 | } 82 | /** Extra smalll devices (portrait phones, less than 576px)**/ 83 | @media ( max-width : 575.99px) { 84 | .navbar-brand h1 { 85 | font-size: 0.9em; 86 | margin-top: -5px; 87 | margin-bottom: -15px; 88 | color: #ffffff; 89 | } 90 | .navbar-header img { 91 | margin-top: 10px; 92 | margin-right: 1px; 93 | margin-left: 2px; 94 | width: 35px; 95 | height: 35px; 96 | } 97 | .navbar-brand { 98 | margin-bottom: -23px; 99 | } 100 | .navbar-header p { 101 | margin-top: 30px; 102 | margin-left: 16%; 103 | font-size: 1.0em; 104 | margin-bottom: -10px; 105 | color: #ccccff; 106 | } 107 | .menusize { 108 | font-size: 14px; 109 | clear: right; 110 | margin-top: -20px; 111 | float: right; 112 | margin-bottom: 0px; 113 | } 114 | .menubar { 115 | margin-bottom: 13px; 116 | } 117 | } 118 | 119 | /** Small devices (landscape phones, 576px and up) **/ 120 | @media ( min-width : 576px) and (max-width: 767.99px) { 121 | .navbar-brand h1 { 122 | font-size: 20px; 123 | margin-top: 2px; 124 | color: #ffffff; 125 | font-family: 'Black Ops One'; 126 | } 127 | .navbar-header img { 128 | margin-top: 10px; 129 | margin-bottom: 10px; 130 | margin-right: 2px; 131 | margin-left: 4px; 132 | width: 60px; 133 | height: 60px; 134 | } 135 | .navbar-header p { 136 | margin-top: 50px; 137 | margin-left: 85px; 138 | font-size: 1.0em; 139 | color: #ccccff; 140 | } 141 | .menusize { 142 | margin-top: -37px; 143 | } 144 | .menubar { 145 | margin-bottom: 13px; 146 | } 147 | } 148 | 149 | /** Medium devices (tablets, 768px and up) **/ 150 | @media ( min-width : 768px) and (max-width: 991.99px) { 151 | .navbar-brand h1 { 152 | font-size: 30px; 153 | margin-top: 2px; 154 | color: #ffffff; 155 | font-family: 'Black Ops One'; 156 | } 157 | .navbar-header img { 158 | margin-top: 10px; 159 | margin-bottom: 10px; 160 | margin-right: 10px; 161 | width: 70px; 162 | height: 70px; 163 | } 164 | .navbar-header p { 165 | margin-top: 54px; 166 | margin-left: 85px; 167 | font-size: 1.2em; 168 | color: #ccccff; 169 | } 170 | .menusize { 171 | margin-top: -40px; 172 | } 173 | .menubar { 174 | min-height: 12px; 175 | } 176 | } 177 | 178 | /** Large devices (desktops, 992px and up) **/ 179 | @media ( min-width : 992px) and (max-width: 1199.99px) { 180 | .navbar-brand h1 { 181 | font-size: 2em; 182 | margin-top: 2px; 183 | color: #ffffff; 184 | font-family: 'Black Ops One'; 185 | } 186 | .navbar-header p { 187 | margin-top: 58px; 188 | margin-left: 85px; 189 | font-size: 1.5em; 190 | color: #ccccff; 191 | } 192 | .navbar-header img { 193 | margin-top: 10px; 194 | margin-bottom: 10px; 195 | margin-right: 10px; 196 | width: 80px; 197 | height: 80px; 198 | } 199 | .menubar { 200 | min-height: 80px; 201 | } 202 | } 203 | 204 | /** Extra large devices (large desktops, 1200px and up) **/ 205 | @media ( min-width : 1200px) { 206 | .navbar-brand h1 { 207 | font-size: 2em; 208 | margin-top: 4px; 209 | color: #ffffff; 210 | font-family: 'Black Ops One'; 211 | } 212 | .navbar-header p { 213 | margin-top: 60px; 214 | margin-left: 95px; 215 | font-size: 1.5em; 216 | color: #ccccff; 217 | } 218 | .navbar-header img { 219 | margin-top: 10px; 220 | margin-bottom: 10px; 221 | margin-right: 10px; 222 | width: 85px; 223 | height: 85px; 224 | } 225 | .menubar { 226 | min-height: 72px; 227 | } 228 | } -------------------------------------------------------------------------------- /tendermanagement/WebContent/css/style2.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-color: #FFE5CC; 3 | } 4 | 5 | .my-container { 6 | background-color: #FFE5CC; 7 | } 8 | 9 | .footer { 10 | /* position: fixed; 11 | */ 12 | margin-bottom: 0px; 13 | } 14 | 15 | .navbar-header img { 16 | margin-top: 10px; 17 | margin-bottom: 10px; 18 | margin-right: 10px; 19 | } 20 | 21 | .navbar-brand h1 { 22 | font-size: 2em; 23 | margin-top: 2px; 24 | color: #ffffff; 25 | font-family: 'Black Ops One'; 26 | } 27 | 28 | .secondnav { 29 | margin-top: -19.1px; 30 | } 31 | 32 | .secondcont { 33 | margin-left: 13%; 34 | font-size: 18px; 35 | } 36 | 37 | .menusize { 38 | font-size: 20px; 39 | margin-top: 20px; 40 | } 41 | 42 | #nav-list { 43 | margin-top: 0px; 44 | font-weight: bold; 45 | color: green; 46 | font-size: 15px; 47 | margin-left: 0; 48 | } 49 | 50 | #nav-list a { 51 | color: #951C49; 52 | } 53 | 54 | .dropdown-menu li a { 55 | font-weight: bold; 56 | font-size: 14px; 57 | color: blue; 58 | } 59 | 60 | #nav-list a:hover { 61 | background-color: red; 62 | color: white; 63 | font-weight: bold; 64 | padding: auto; 65 | border-radius: 8px; 66 | margin-top: 0px; 67 | margin-bottom: 0px; 68 | } 69 | 70 | #nav-list a:active { 71 | background-color: green; 72 | color: white; 73 | font-weight: bold; 74 | padding: auto; 75 | border-radius: 8px; 76 | margin-top: 0px; 77 | margin-bottom: 0px; 78 | } 79 | 80 | #na 81 | #nav-list a span { 82 | font-size: 1.0em; 83 | } 84 | 85 | .back { 86 | margin-top: -20px; 87 | max-height: 580px; 88 | width: 1600px; 89 | } 90 | /** Extra smalll devices (portrait phones, less than 576px)**/ 91 | @media ( max-width : 575.99px) { 92 | .navbar-brand h1 { 93 | font-size: 0.9em; 94 | margin-top: -5px; 95 | margin-bottom: -15px; 96 | color: #ffffff; 97 | } 98 | .navbar-header img { 99 | margin-top: 10px; 100 | margin-right: 1px; 101 | margin-left: 2px; 102 | width: 35px; 103 | height: 35px; 104 | } 105 | .navbar-brand { 106 | margin-bottom: -23px; 107 | } 108 | .navbar-header p { 109 | margin-top: 5px; 110 | margin-left: 16%; 111 | font-size: 1.0em; 112 | margin-bottom: -10px; 113 | color: #ccccff; 114 | } 115 | .menusize { 116 | font-size: 14px; 117 | clear: right; 118 | margin-top: -20px; 119 | float: right; 120 | margin-bottom: 0px; 121 | } 122 | .menubar { 123 | margin-bottom: 13px; 124 | } 125 | } 126 | 127 | /** Small devices (landscape phones, 576px and up) **/ 128 | @media ( min-width : 576px) and (max-width: 767.99px) { 129 | .navbar-brand h1 { 130 | font-size: 20px; 131 | margin-top: 2px; 132 | color: #ffffff; 133 | font-family: 'Black Ops One'; 134 | } 135 | .navbar-header img { 136 | margin-top: 10px; 137 | margin-bottom: 10px; 138 | margin-right: 2px; 139 | margin-left: 4px; 140 | width: 60px; 141 | height: 60px; 142 | } 143 | .navbar-header p { 144 | margin-top: 5px; 145 | margin-left: 85px; 146 | font-size: 1.0em; 147 | color: #ccccff; 148 | } 149 | .menusize { 150 | margin-top: -37px; 151 | } 152 | .menubar { 153 | margin-bottom: 13px; 154 | } 155 | } 156 | 157 | /** Medium devices (tablets, 768px and up) **/ 158 | @media ( min-width : 768px) and (max-width: 991.99px) { 159 | .navbar-brand h1 { 160 | font-size: 30px; 161 | margin-top: 2px; 162 | color: #ffffff; 163 | font-family: 'Black Ops One'; 164 | } 165 | .navbar-header img { 166 | margin-top: 10px; 167 | margin-bottom: 10px; 168 | margin-right: 10px; 169 | width: 70px; 170 | height: 70px; 171 | } 172 | .navbar-header p { 173 | margin-top: 5px; 174 | margin-left: 85px; 175 | font-size: 1.2em; 176 | color: #ccccff; 177 | } 178 | .menusize { 179 | margin-top: -40px; 180 | } 181 | .menubar { 182 | min-height: 12px; 183 | } 184 | } 185 | 186 | /** Large devices (desktops, 992px and up) **/ 187 | @media ( min-width : 992px) and (max-width: 1199.99px) { 188 | .navbar-brand h1 { 189 | font-size: 2em; 190 | margin-top: 2px; 191 | color: #ffffff; 192 | font-family: 'Black Ops One'; 193 | } 194 | .navbar-header p { 195 | margin-top: 5px; 196 | margin-left: 85px; 197 | font-size: 1.5em; 198 | color: #ccccff; 199 | } 200 | .navbar-header img { 201 | margin-top: 10px; 202 | margin-bottom: 10px; 203 | margin-right: 10px; 204 | width: 80px; 205 | height: 80px; 206 | } 207 | .menubar { 208 | min-height: 80px; 209 | } 210 | } 211 | 212 | /** Extra large devices (large desktops, 1200px and up) **/ 213 | @media ( min-width : 1200px) { 214 | .navbar-brand h1 { 215 | font-size: 2em; 216 | margin-top: 4px; 217 | color: #ffffff; 218 | font-family: 'Black Ops One'; 219 | } 220 | .navbar-header p { 221 | margin-top: 5px; 222 | margin-left: 95px; 223 | font-size: 1.5em; 224 | color: #ccccff; 225 | } 226 | .navbar-header img { 227 | margin-top: 10px; 228 | margin-bottom: 10px; 229 | margin-right: 10px; 230 | width: 85px; 231 | height: 85px; 232 | } 233 | .menubar { 234 | min-height: 72px; 235 | } 236 | } -------------------------------------------------------------------------------- /tendermanagement/WebContent/css/styles.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-color: auto; 3 | } 4 | 5 | #header-nav { 6 | background-color: #9999ff; 7 | border-radius: 0px; 8 | border: 0px; 9 | margin-bottom: 0px; 10 | padding-top: 0px; 11 | min-height: 70px; 12 | } 13 | 14 | .navbar-brand a h1:hover { 15 | text-decoration: none; 16 | color: green; 17 | } 18 | 19 | .navbar-brand h1 { 20 | font-family: 'Eater', cursive; 21 | color: white; 22 | font-size: 2em; 23 | position: absolute; 24 | top: -12px; 25 | text-shadow: 1px 1px 1px #222; 26 | margin-bottom: 10px; 27 | } 28 | 29 | #nav-list { 30 | color: white; 31 | font-size: 1.6em; 32 | font-family: cursive; 33 | background-color: green; 34 | margin-bottom: 0px; 35 | } 36 | 37 | #nav-list li { 38 | margin-top: 5px; 39 | } 40 | 41 | #nav-list a span { 42 | margin-bottom: 5px; 43 | } 44 | 45 | #nav-list a { 46 | color: white; 47 | text-align: center; 48 | } 49 | 50 | #nav-list a:hover { 51 | background-color: white; 52 | color: green; 53 | } 54 | 55 | #content1 { 56 | background-color: #66ffb2; 57 | font-weight: bold; 58 | font-style: italic; 59 | font-size: 16px; 60 | width: auto; 61 | padding: 10px; 62 | padding-top: 0px; 63 | } 64 | 65 | #content2 { 66 | background-color: #e5ccff; 67 | font-weight: bold; 68 | font-style: italic; 69 | font-size: 16px; 70 | width: auto; 71 | padding: 10px; 72 | padding-top: 0px; 73 | } 74 | 75 | #content3 { 76 | background-color: #ffcce5; 77 | font-weight: bold; 78 | font-style: italic; 79 | font-size: 16px; 80 | width: auto; 81 | padding: 10px; 82 | padding-top: 0px; 83 | } 84 | 85 | #ad { 86 | font-style: italic; 87 | font-size: 18px; 88 | font-weight: bold; 89 | text-align: center; 90 | } 91 | 92 | #title { 93 | font-style: 'lobster' normal; 94 | font-weight: bold; 95 | font-size: 2.5em; 96 | } 97 | 98 | section h3 { 99 | text-align: center; 100 | background-color: red; 101 | color: white; 102 | font-size: 30px; 103 | font-weight: bold; 104 | clear: both; 105 | margin-left: -10px; 106 | margin-right: -10px; 107 | } -------------------------------------------------------------------------------- /tendermanagement/WebContent/errorpage.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | <%@ page isErrorPage="true" %> 4 | 5 | 6 | 7 | 8 | Insert title here 9 | 10 | 11 |

There is some Server error while processing



12 |

Server Error: <%= exception.getMessage() %>

13 |

Please try again!!



14 |

Go to home page

15 | 16 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/fonts/css/bootstrap-dropdownhover.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Dropdownhover v1.0.0 (http://bs-dropdownhover.kybarg.com) 3 | */ 4 | .dropdown .dropdown-menu .caret { 5 | border: 4px solid transparent; 6 | border-left-color: #000; 7 | float: right; 8 | margin-top: 6px; 9 | } 10 | .dropdown-menu { 11 | min-width: 250px; 12 | } 13 | .dropdown-menu > li.open > a { 14 | background-color: #F5F5F5; 15 | color: #262626; 16 | text-decoration: none; 17 | } 18 | .dropdown-menu .dropdown-menu { 19 | left: 100%; 20 | margin: 0; 21 | right: auto; 22 | top: -1px; 23 | } 24 | .dropdown-menu-right .dropdown-menu, 25 | .navbar-right .dropdown-menu .dropdown-menu, 26 | .pull-right .dropdown-menu .dropdown-menu { 27 | left: auto; 28 | right: 100%; 29 | } 30 | .dropdown-menu.animated { 31 | -webkit-animation-duration: 0.3s; 32 | animation-duration: 0.3s; 33 | } 34 | .dropdown-menu.animated:before { 35 | content: " "; 36 | display: block; 37 | height: 100%; 38 | left: 0; 39 | position: absolute; 40 | top: 0; 41 | width: 100%; 42 | z-index: 99; 43 | } 44 | .dropdownhover-top { 45 | margin-bottom: 2px; 46 | margin-top: 0; 47 | } 48 | .navbar-fixed-bottom .dropdown-menu .dropdown-menu, 49 | .dropdownhover-top .dropdown-menu { 50 | bottom: -1px; 51 | top: auto; 52 | } 53 | 54 | .navbar-nav > li > .dropdown-menu { 55 | margin-bottom: 0; 56 | } 57 | 58 | .dropdownhover-bottom { 59 | -webkit-transform-origin: 50% 0; 60 | transform-origin: 50% 0; 61 | } 62 | .dropdownhover-left { 63 | -webkit-transform-origin: 100% 50%; 64 | transform-origin: 100% 50%; 65 | } 66 | .dropdownhover-right { 67 | -webkit-transform-origin: 0 50%; 68 | transform-origin: 0 50%; 69 | } 70 | .dropdownhover-top { 71 | -webkit-transform-origin: 50% 100%; 72 | transform-origin: 50% 100%; 73 | } -------------------------------------------------------------------------------- /tendermanagement/WebContent/fonts/css/bootstrap-dropdownhover.min.css: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Dropdownhover v1.0.0 (http://bs-dropdownhover.kybarg.com) 4 | */ 5 | .dropdown .dropdown-menu .caret{border:4px solid transparent;border-left-color:#000;float:right;margin-top:6px}.dropdown-menu{min-width:250px}.dropdown-menu > li.open > a{background-color:#F5F5F5;color:#262626;text-decoration:none}.dropdown-menu .dropdown-menu{left:100%;margin:0;right:auto;top:-1px}.dropdown-menu-right .dropdown-menu,.navbar-right .dropdown-menu .dropdown-menu,.pull-right .dropdown-menu .dropdown-menu{left:auto;right:100%}.dropdown-menu.animated{-webkit-animation-duration:0.3s;animation-duration:0.3s}.dropdown-menu.animated:before{content:" ";display:block;height:100%;left:0;position:absolute;top:0;width:100%;z-index:99}.dropdownhover-top{margin-bottom:2px;margin-top:0}.navbar-fixed-bottom .dropdown-menu .dropdown-menu,.dropdownhover-top .dropdown-menu{bottom:-1px;top:auto}.navbar-nav > li > .dropdown-menu{margin-bottom:0}.dropdownhover-bottom{-webkit-transform-origin:50% 0;transform-origin:50% 0}.dropdownhover-left{-webkit-transform-origin:100% 50%;transform-origin:100% 50%}.dropdownhover-right{-webkit-transform-origin:0 50%;transform-origin:0 50%}.dropdownhover-top{-webkit-transform-origin:50% 100%;transform-origin:50% 100%} 6 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/fonts/css/style1.css: -------------------------------------------------------------------------------- 1 | body{ 2 | /*background-color: #FFE5CC;*/ 3 | } 4 | 5 | .footer{ 6 | position: 7 | margin-bottom: 0px; 8 | } 9 | .navbar-header img{ 10 | margin-top: 10px; 11 | margin-bottom: 10px; 12 | margin-right: 10px; 13 | } 14 | .navbar-brand h1{ 15 | font-size: 2em; 16 | margin-top: 2px; 17 | color:#ffffff; 18 | font-family: 'Black Ops One'; 19 | } 20 | 21 | .secondnav{ 22 | margin-top:-19.1px; 23 | } 24 | .secondcont{ 25 | margin-left:13%; 26 | font-size:18px; 27 | } 28 | .menusize{ 29 | font-size:20px; 30 | margin-top: 20px; 31 | } 32 | #nav-list { 33 | margin-top: 0px; 34 | font-weight: bold; 35 | color:green; 36 | font-size: 15px; 37 | margin-left:0; 38 | } 39 | #nav-list a { 40 | color: #951C49; 41 | } 42 | .dropdown-menu li a{ 43 | font-weight: bold; 44 | font-size:14px; 45 | color:blue; 46 | } 47 | 48 | #nav-list a:hover { 49 | background-color:red; 50 | color:white; 51 | font-weight: bold; 52 | padding:auto; 53 | border-radius: 8px; 54 | margin-top:0px; 55 | margin-bottom: 0px; 56 | } 57 | #nav-list a:active { 58 | background-color:green; 59 | color:white; 60 | font-weight: bold; 61 | padding:auto; 62 | border-radius: 8px; 63 | margin-top:0px; 64 | margin-bottom: 0px; 65 | } 66 | #na 67 | #nav-list a span { 68 | font-size: 1.0em; 69 | } 70 | .back{ 71 | margin-top:-20px; 72 | max-height:580px; 73 | width:1600px; 74 | } 75 | /** Extra smalll devices (portrait phones, less than 576px)**/ 76 | @media (max-width: 575.99px) 77 | { 78 | .navbar-brand h1{ 79 | font-size:0.9em; 80 | margin-top: -5px; 81 | margin-bottom: -15px; 82 | color:#ffffff; 83 | } 84 | .navbar-header img{ 85 | margin-top: 10px; 86 | margin-right: 1px; 87 | margin-left:2px; 88 | width:35px; 89 | height: 35px; 90 | } 91 | .navbar-brand{ 92 | margin-bottom:-23px; 93 | } 94 | .navbar-header p{ 95 | margin-top:30px; 96 | margin-left:16%; 97 | font-size:1.0em; 98 | margin-bottom:-10px; 99 | color:#ccccff; 100 | } 101 | .menusize{ 102 | font-size:14px; 103 | clear:right; 104 | margin-top:-20px; 105 | float:right; 106 | margin-bottom: 0px; 107 | } 108 | .menubar{ 109 | margin-bottom: 13px; 110 | 111 | } 112 | } 113 | 114 | /** Small devices (landscape phones, 576px and up) **/ 115 | @media (min-width: 576px) and (max-width: 767.99px) 116 | { 117 | .navbar-brand h1{ 118 | font-size: 20px; 119 | margin-top: 2px; 120 | color:#ffffff; 121 | font-family: 'Black Ops One'; 122 | } 123 | .navbar-header img{ 124 | margin-top: 10px; 125 | margin-bottom: 10px; 126 | margin-right: 2px; 127 | margin-left:4px; 128 | width:60px; 129 | height: 60px; 130 | } 131 | .navbar-header p{ 132 | margin-top:50px; 133 | margin-left:85px; 134 | font-size:1.0em; 135 | color:#ccccff; 136 | } 137 | .menusize{ 138 | margin-top:-37px; 139 | } 140 | .menubar{ 141 | margin-bottom: 13px; 142 | } 143 | 144 | } 145 | 146 | /** Medium devices (tablets, 768px and up) **/ 147 | @media (min-width: 768px) and (max-width: 991.99px) 148 | { 149 | .navbar-brand h1{ 150 | font-size: 30px; 151 | margin-top: 2px; 152 | color:#ffffff; 153 | font-family: 'Black Ops One'; 154 | } 155 | .navbar-header img{ 156 | margin-top: 10px; 157 | margin-bottom: 10px; 158 | margin-right: 10px; 159 | width:70px; 160 | height: 70px; 161 | } 162 | .navbar-header p{ 163 | margin-top:54px; 164 | margin-left:85px; 165 | font-size:1.2em; 166 | color:#ccccff; 167 | } 168 | .menusize{ 169 | margin-top: -40px; 170 | } 171 | .menubar{ 172 | min-height: 12px; 173 | } 174 | } 175 | 176 | /** Large devices (desktops, 992px and up) **/ 177 | @media (min-width: 992px) and (max-width: 1199.99px) 178 | { 179 | .navbar-brand h1{ 180 | font-size: 2em; 181 | margin-top: 2px; 182 | color:#ffffff; 183 | font-family: 'Black Ops One'; 184 | } 185 | .navbar-header p{ 186 | margin-top:58px; 187 | margin-left:85px; 188 | font-size:1.5em; 189 | color:#ccccff; 190 | 191 | } 192 | .navbar-header img{ 193 | margin-top: 10px; 194 | margin-bottom: 10px; 195 | margin-right: 10px; 196 | width:80px; 197 | height: 80px; 198 | } 199 | .menubar{ 200 | min-height: 80px; 201 | } 202 | } 203 | 204 | /** Extra large devices (large desktops, 1200px and up) **/ 205 | @media (min-width: 1200px) 206 | { 207 | .navbar-brand h1{ 208 | font-size: 2em; 209 | margin-top: 4px; 210 | color:#ffffff; 211 | font-family: 'Black Ops One'; 212 | } 213 | .navbar-header p{ 214 | margin-top:60px; 215 | margin-left:95px; 216 | font-size:1.5em; 217 | color:#ccccff; 218 | 219 | } 220 | .navbar-header img{ 221 | margin-top: 10px; 222 | margin-bottom: 10px; 223 | margin-right: 10px; 224 | width:85px; 225 | height: 85px; 226 | } 227 | .menubar{ 228 | min-height: 72px; 229 | } 230 | } 231 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/fonts/css/style2.css: -------------------------------------------------------------------------------- 1 | body{ 2 | background-color: #FFE5CC; 3 | } 4 | .my-container{ 5 | background-color: #FFE5CC; 6 | } 7 | .footer{ 8 | position: 9 | margin-bottom: 0px; 10 | } 11 | .navbar-header img{ 12 | margin-top: 10px; 13 | margin-bottom: 10px; 14 | margin-right: 10px; 15 | } 16 | .navbar-brand h1{ 17 | font-size: 2em; 18 | margin-top: 2px; 19 | color:#ffffff; 20 | font-family: 'Black Ops One'; 21 | } 22 | 23 | .secondnav{ 24 | margin-top:-19.1px; 25 | } 26 | .secondcont{ 27 | margin-left:13%; 28 | font-size:18px; 29 | } 30 | .menusize{ 31 | font-size:20px; 32 | margin-top: 20px; 33 | } 34 | #nav-list { 35 | margin-top: 0px; 36 | font-weight: bold; 37 | color:green; 38 | font-size: 15px; 39 | margin-left:0; 40 | } 41 | #nav-list a { 42 | color: #951C49; 43 | } 44 | .dropdown-menu li a{ 45 | font-weight: bold; 46 | font-size:14px; 47 | color:blue; 48 | } 49 | 50 | #nav-list a:hover { 51 | background-color:red; 52 | color:white; 53 | font-weight: bold; 54 | padding:auto; 55 | border-radius: 8px; 56 | margin-top:0px; 57 | margin-bottom: 0px; 58 | } 59 | #nav-list a:active { 60 | background-color:green; 61 | color:white; 62 | font-weight: bold; 63 | padding:auto; 64 | border-radius: 8px; 65 | margin-top:0px; 66 | margin-bottom: 0px; 67 | } 68 | #na 69 | #nav-list a span { 70 | font-size: 1.0em; 71 | } 72 | .back{ 73 | margin-top:-20px; 74 | max-height:580px; 75 | width:1600px; 76 | } 77 | /** Extra smalll devices (portrait phones, less than 576px)**/ 78 | @media (max-width: 575.99px) 79 | { 80 | .navbar-brand h1{ 81 | font-size:0.9em; 82 | margin-top: -5px; 83 | margin-bottom: -15px; 84 | color:#ffffff; 85 | } 86 | .navbar-header img{ 87 | margin-top: 10px; 88 | margin-right: 1px; 89 | margin-left:2px; 90 | width:35px; 91 | height: 35px; 92 | } 93 | .navbar-brand{ 94 | margin-bottom:-23px; 95 | } 96 | .navbar-header p{ 97 | margin-top:30px; 98 | margin-left:16%; 99 | font-size:1.0em; 100 | margin-bottom:-10px; 101 | color:#ccccff; 102 | } 103 | .menusize{ 104 | font-size:14px; 105 | clear:right; 106 | margin-top:-20px; 107 | float:right; 108 | margin-bottom: 0px; 109 | } 110 | .menubar{ 111 | margin-bottom: 13px; 112 | 113 | } 114 | } 115 | 116 | /** Small devices (landscape phones, 576px and up) **/ 117 | @media (min-width: 576px) and (max-width: 767.99px) 118 | { 119 | .navbar-brand h1{ 120 | font-size: 20px; 121 | margin-top: 2px; 122 | color:#ffffff; 123 | font-family: 'Black Ops One'; 124 | } 125 | .navbar-header img{ 126 | margin-top: 10px; 127 | margin-bottom: 10px; 128 | margin-right: 2px; 129 | margin-left:4px; 130 | width:60px; 131 | height: 60px; 132 | } 133 | .navbar-header p{ 134 | margin-top:50px; 135 | margin-left:85px; 136 | font-size:1.0em; 137 | color:#ccccff; 138 | } 139 | .menusize{ 140 | margin-top:-37px; 141 | } 142 | .menubar{ 143 | margin-bottom: 13px; 144 | } 145 | 146 | } 147 | 148 | /** Medium devices (tablets, 768px and up) **/ 149 | @media (min-width: 768px) and (max-width: 991.99px) 150 | { 151 | .navbar-brand h1{ 152 | font-size: 30px; 153 | margin-top: 2px; 154 | color:#ffffff; 155 | font-family: 'Black Ops One'; 156 | } 157 | .navbar-header img{ 158 | margin-top: 10px; 159 | margin-bottom: 10px; 160 | margin-right: 10px; 161 | width:70px; 162 | height: 70px; 163 | } 164 | .navbar-header p{ 165 | margin-top:54px; 166 | margin-left:85px; 167 | font-size:1.2em; 168 | color:#ccccff; 169 | } 170 | .menusize{ 171 | margin-top: -40px; 172 | } 173 | .menubar{ 174 | min-height: 12px; 175 | } 176 | } 177 | 178 | /** Large devices (desktops, 992px and up) **/ 179 | @media (min-width: 992px) and (max-width: 1199.99px) 180 | { 181 | .navbar-brand h1{ 182 | font-size: 2em; 183 | margin-top: 2px; 184 | color:#ffffff; 185 | font-family: 'Black Ops One'; 186 | } 187 | .navbar-header p{ 188 | margin-top:58px; 189 | margin-left:85px; 190 | font-size:1.5em; 191 | color:#ccccff; 192 | 193 | } 194 | .navbar-header img{ 195 | margin-top: 10px; 196 | margin-bottom: 10px; 197 | margin-right: 10px; 198 | width:80px; 199 | height: 80px; 200 | } 201 | .menubar{ 202 | min-height: 80px; 203 | } 204 | } 205 | 206 | /** Extra large devices (large desktops, 1200px and up) **/ 207 | @media (min-width: 1200px) 208 | { 209 | .navbar-brand h1{ 210 | font-size: 2em; 211 | margin-top: 4px; 212 | color:#ffffff; 213 | font-family: 'Black Ops One'; 214 | } 215 | .navbar-header p{ 216 | margin-top:60px; 217 | margin-left:95px; 218 | font-size:1.5em; 219 | color:#ccccff; 220 | 221 | } 222 | .navbar-header img{ 223 | margin-top: 10px; 224 | margin-bottom: 10px; 225 | margin-right: 10px; 226 | width:85px; 227 | height: 85px; 228 | } 229 | .menubar{ 230 | min-height: 72px; 231 | } 232 | } 233 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/fonts/css/styles.css: -------------------------------------------------------------------------------- 1 | body{ 2 | background-color:auto; 3 | 4 | } 5 | #header-nav{ 6 | background-color:#9999ff; 7 | border-radius: 0px; 8 | border:0px; 9 | margin-bottom:0px; 10 | padding-top:0px; 11 | min-height:70px; 12 | 13 | } 14 | .navbar-brand a h1:hover{ 15 | text-decoration: none; 16 | color:green; 17 | } 18 | .navbar-brand h1{ 19 | font-family: 'Eater', cursive; 20 | color: white; 21 | font-size: 2em; 22 | position:absolute; 23 | top:-12px; 24 | text-shadow: 1px 1px 1px #222; 25 | margin-bottom: 10px; 26 | 27 | } 28 | #header-nav .container{ 29 | 30 | } 31 | #nav-list{ 32 | 33 | color:white; 34 | font-size:1.6em; 35 | font-family: cursive; 36 | background-color: green; 37 | margin-bottom: 0px; 38 | } 39 | #nav-list li{ 40 | margin-top:5px; 41 | } 42 | #nav-list a span{ 43 | margin-bottom:5px; 44 | } 45 | #nav-list a{ 46 | color:white; 47 | text-align: center; 48 | } 49 | #nav-list a:hover{ 50 | background-color:white; 51 | color:green; 52 | } 53 | 54 | #content1{ 55 | background-color: #66ffb2; 56 | font-weight: bold; 57 | font-style: italic; 58 | font-size:16px; 59 | width:auto; 60 | padding:10px; 61 | padding-top:0px; 62 | } 63 | #content2{ 64 | background-color: #e5ccff; 65 | font-weight: bold; 66 | font-style: italic; 67 | font-size:16px; 68 | width:auto; 69 | padding:10px; 70 | padding-top:0px; 71 | } 72 | #content3{ 73 | background-color: #ffcce5; 74 | font-weight: bold; 75 | font-style: italic; 76 | font-size:16px; 77 | width:auto; 78 | padding:10px; 79 | padding-top:0px; 80 | } 81 | #ad{ 82 | font-style: italic; 83 | font-size:18px; 84 | font-weight: bold; 85 | text-align: center; 86 | } 87 | 88 | #title{ 89 | font-style: 'lobster' normal; 90 | font-weight: bold; 91 | font-size:2.5em; 92 | } 93 | section h3{ 94 | text-align:center; 95 | background-color:red; 96 | color:white; 97 | font-size:30px; 98 | font-weight: bold; 99 | clear:both; 100 | margin-left:-10px; 101 | margin-right:-10px; 102 | 103 | } -------------------------------------------------------------------------------- /tendermanagement/WebContent/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /tendermanagement/WebContent/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /tendermanagement/WebContent/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /tendermanagement/WebContent/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /tendermanagement/WebContent/galary.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | <%@ page import="java.sql.*,com.hit.utility.DBUtil" %> 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Tender Management System 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 |
27 |

28 |   Galary

29 |
30 | 31 | 32 | 33 |
34 | 56 |
57 |
58 | 59 | 60 |
61 |

62 |
63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/header.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Tender Management System 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/images/19_appendices.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/images/19_appendices.pdf -------------------------------------------------------------------------------- /tendermanagement/WebContent/images/Banner_Hit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/images/Banner_Hit.png -------------------------------------------------------------------------------- /tendermanagement/WebContent/images/Photo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/images/Photo.jpg -------------------------------------------------------------------------------- /tendermanagement/WebContent/images/Photoscan18.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/images/Photoscan18.jpg -------------------------------------------------------------------------------- /tendermanagement/WebContent/images/ayush.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/images/ayush.jpg -------------------------------------------------------------------------------- /tendermanagement/WebContent/images/banner_hit_DBK_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/images/banner_hit_DBK_icon.ico -------------------------------------------------------------------------------- /tendermanagement/WebContent/images/building.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/images/building.jpg -------------------------------------------------------------------------------- /tendermanagement/WebContent/images/building2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/images/building2.jpg -------------------------------------------------------------------------------- /tendermanagement/WebContent/images/button_new-animated.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/images/button_new-animated.gif -------------------------------------------------------------------------------- /tendermanagement/WebContent/images/cap.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/images/cap.jpg -------------------------------------------------------------------------------- /tendermanagement/WebContent/images/deepshikha.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/images/deepshikha.png -------------------------------------------------------------------------------- /tendermanagement/WebContent/images/hit.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/images/hit.jpg -------------------------------------------------------------------------------- /tendermanagement/WebContent/images/hit1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/images/hit1.jpg -------------------------------------------------------------------------------- /tendermanagement/WebContent/images/hit_fevicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/images/hit_fevicon.ico -------------------------------------------------------------------------------- /tendermanagement/WebContent/images/hit_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/images/hit_logo.png -------------------------------------------------------------------------------- /tendermanagement/WebContent/images/hitshort.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/images/hitshort.jpg -------------------------------------------------------------------------------- /tendermanagement/WebContent/images/home1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/images/home1.jpg -------------------------------------------------------------------------------- /tendermanagement/WebContent/images/jcb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/images/jcb.jpg -------------------------------------------------------------------------------- /tendermanagement/WebContent/images/library1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/images/library1.png -------------------------------------------------------------------------------- /tendermanagement/WebContent/images/nun.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/images/nun.jpg -------------------------------------------------------------------------------- /tendermanagement/WebContent/images/onwork.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/images/onwork.jpg -------------------------------------------------------------------------------- /tendermanagement/WebContent/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | <%@page import="java.sql.*, com.hit.utility.DBUtil, javax.servlet.annotation.WebServlet" errorPage="errorpage.jsp"%> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Tender Management System 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 32 | 33 |
34 | 35 |
36 |
37 | <% Connection con = DBUtil.provideConnection(); %> 38 | 39 |
40 | 41 | 42 |
43 | 44 |
45 |
46 | 47 | 48 | 49 | 50 | 51 |
52 | 53 | 54 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/js/ajax-utils.js: -------------------------------------------------------------------------------- 1 | (function (global) { 2 | 3 | // Set up a namespace for our utility 4 | var ajaxUtils = {}; 5 | 6 | 7 | // Returns an HTTP request object 8 | function getRequestObject() { 9 | if (window.XMLHttpRequest) { 10 | return (new XMLHttpRequest()); 11 | } 12 | else if (window.ActiveXObject) { 13 | // For very old IE browsers (optional) 14 | return (new ActiveXObject("Microsoft.XMLHTTP")); 15 | } 16 | else { 17 | global.alert("Ajax is not supported!"); 18 | return(null); 19 | } 20 | } 21 | 22 | 23 | // Makes an Ajax GET request to 'requestUrl' 24 | ajaxUtils.sendGetRequest = 25 | function(requestUrl, responseHandler, isJsonResponse) { 26 | var request = getRequestObject(); 27 | request.onreadystatechange = 28 | function() { 29 | handleResponse(request, 30 | responseHandler, 31 | isJsonResponse); 32 | }; 33 | request.open("GET", requestUrl, true); 34 | request.send(null); // for POST only 35 | }; 36 | 37 | 38 | // Only calls user provided 'responseHandler' 39 | // function if response is ready 40 | // and not an error 41 | function handleResponse(request, 42 | responseHandler, 43 | isJsonResponse) { 44 | if ((request.readyState == 4) && 45 | (request.status == 200)) { 46 | 47 | // Default to isJsonResponse = true 48 | if (isJsonResponse == undefined) { 49 | isJsonResponse = true; 50 | } 51 | 52 | if (isJsonResponse) { 53 | responseHandler(JSON.parse(request.responseText)); 54 | } 55 | else { 56 | responseHandler(request.responseText); 57 | } 58 | } 59 | } 60 | 61 | 62 | // Expose utility to the global object 63 | global.$ajaxUtils = ajaxUtils; 64 | 65 | 66 | })(window); 67 | 68 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/js/bootstrap-dropdownhover.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Dropdownhover v1.0.0 (http://bs-dropdownhover.kybarg.com) 3 | */ 4 | +function(o){"use strict";function t(t){return this.each(function(){var e=o(this),r=e.data("bs.dropdownhover"),i=e.data();void 0!==e.data("animations")&&null!==e.data("animations")&&(i.animations=o.isArray(i.animations)?i.animations:i.animations.split(" "));var s=o.extend({},n.DEFAULTS,i,"object"==typeof t&&t);r||e.data("bs.dropdownhover",r=new n(this,s))})}var n=function(t,n){this.options=n,this.$element=o(t);var e=this;this.dropdowns=this.$element.hasClass("dropdown-toggle")?this.$element.parent().find(".dropdown-menu").parent(".dropdown"):this.$element.find(".dropdown"),this.dropdowns.each(function(){o(this).on("mouseenter.bs.dropdownhover",function(t){e.show(o(this).children("a, button"))})}),this.dropdowns.each(function(){o(this).on("mouseleave.bs.dropdownhover",function(t){e.hide(o(this).children("a, button"))})})};n.TRANSITION_DURATION=300,n.DELAY=150,n.TIMEOUT,n.DEFAULTS={animations:["fadeInDown","fadeInRight","fadeInUp","fadeInLeft"]},n.prototype.show=function(t){var e=o(t);window.clearTimeout(n.TIMEOUT),o(".dropdown").not(e.parents()).each(function(){o(this).removeClass("open")});var r=this.options.animations[0];if(!e.is(".disabled, :disabled")){var i=e.parent(),s=i.hasClass("open");if(!s){var d=e.next(".dropdown-menu");i.addClass("open");var a=this.position(d);r="top"==a?this.options.animations[2]:"right"==a?this.options.animations[3]:"left"==a?this.options.animations[1]:this.options.animations[0],d.addClass("animated "+r);var h=o.support.transition&&d.hasClass("animated");h?d.one("bsTransitionEnd",function(){d.removeClass("animated "+r)}).emulateTransitionEnd(n.TRANSITION_DURATION):d.removeClass("animated "+r)}return!1}},n.prototype.hide=function(t){var e=o(t),r=e.parent();n.TIMEOUT=window.setTimeout(function(){r.removeClass("open")},n.DELAY)},n.prototype.position=function(t){var n=o(window);t.css({bottom:"",left:"",top:"",right:""}).removeClass("dropdownhover-top");var e={top:n.scrollTop(),left:n.scrollLeft()};e.right=e.left+n.width(),e.bottom=e.top+n.height();var r=t.offset();r.right=r.left+t.outerWidth(),r.bottom=r.top+t.outerHeight();var i=t.position();i.right=r.left+t.outerWidth(),i.bottom=r.top+t.outerHeight();var s="",d=t.parents(".dropdown-menu").length;if(d)i.left<0?(s="left",t.removeClass("dropdownhover-right").addClass("dropdownhover-left")):(s="right",t.addClass("dropdownhover-right").removeClass("dropdownhover-left")),r.lefte.right&&(s="left",t.css({left:"auto",right:"100%"}).removeClass("dropdownhover-right").addClass("dropdownhover-left")),r.bottom>e.bottom?t.css({bottom:"auto",top:-(r.bottom-e.bottom)}):r.tope.right&&t.css({left:-(r.right-e.right),right:"auto"}),r.bottom>e.bottom&&h.top-e.top>e.bottom-h.bottom||t.position().top<0?(s="top",t.css({bottom:"100%",top:"auto"}).addClass("dropdownhover-top").removeClass("dropdownhover-bottom")):(s="bottom",t.addClass("dropdownhover-bottom"))}return s};var e=o.fn.dropdownhover;o.fn.dropdownhover=t,o.fn.dropdownhover.Constructor=n,o.fn.dropdownhover.noConflict=function(){return o.fn.dropdownhover=e,this};var r;o(document).ready(function(){o(window).width()>=768&&o('[data-hover="dropdown"]').each(function(){var n=o(this);t.call(n,n.data())})}),o(window).on("resize",function(){clearTimeout(r),r=setTimeout(function(){o(window).width()>=768?o('[data-hover="dropdown"]').each(function(){var n=o(this);t.call(n,n.data())}):o('[data-hover="dropdown"]').each(function(){o(this).removeData("bs.dropdownhover"),o(this).hasClass("dropdown-toggle")?o(this).parent(".dropdown").find(".dropdown").andSelf().off("mouseenter.bs.dropdownhover mouseleave.bs.dropdownhover"):o(this).find(".dropdown").off("mouseenter.bs.dropdownhover mouseleave.bs.dropdownhover")})},200)})}(jQuery); -------------------------------------------------------------------------------- /tendermanagement/WebContent/js/jquery.bootstrap-dropdown-hover.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Bootstrap Dropdown Hover - v4.2.0 3 | * Open dropdown menus on mouse hover, the proper way. 4 | * http://www.virtuosoft.eu/code/bootstrap-dropdown-hover/ 5 | * 6 | * Made by István Ujj-Mészáros 7 | * Under Apache License v2.0 License 8 | */ 9 | 10 | !function(o){"function"==typeof define&&define.amd?define(["jquery"],o):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),o(t),t}:o(jQuery)}(function(i){var n,r,d="bootstrapDropdownHover",o={clickBehavior:"sticky",hideTimeout:200},s=!1;function a(e,t){this.element=i(e),this.settings=i.extend({},o,t,this.element.data()),this._defaults=o,this._name=d,this.init()}function u(e){var t,o=e.attr("data-target");return o||(o=(o=e.attr("href"))&&/#[A-Za-z]/.test(o)&&o.replace(/.*(?=#[^\s]*$)/,"")),(t=o&&i(o))&&t.length||(t=e.parent()),t}r=function(){var e=" -webkit- -moz- -o- -ms- ".split(" ");if("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)return!0;var t,o=["(",e.join("touch-enabled),("),"heartz",")"].join("");return t=o,window.matchMedia(t).matches}(),a.prototype={init:function(){var t,o;return this.setClickBehavior(this.settings.clickBehavior),this.setHideTimeout(this.settings.hideTimeout),o=u((t=this).element),i(".dropdown-toggle, .dropdown-menu",o).on("mouseenter.dropdownhover",function(){r||(clearTimeout(n),o.is(".open, .show")||(s=!1,t.element.dropdown("toggle")))}),i(".dropdown-toggle, .dropdown-menu",o).on("mouseleave.dropdownhover",function(){r||s||(n=setTimeout(function(){o.is(".open, .show")&&t.element.dropdown("toggle")},t.settings.hideTimeout))}),t.element.on("click.dropdownhover",function(e){if("link"===t.settings.clickBehavior||!r)switch(t.settings.clickBehavior){case"default":return;case"disable":return e.preventDefault(),void e.stopImmediatePropagation();case"link":return void e.stopImmediatePropagation();case"sticky":return void(s?s=!1:(s=!0,o.is(".open, .show")&&(e.stopImmediatePropagation(),e.preventDefault())))}}),this.element},setClickBehavior:function(e){return this.settings.clickBehavior=e,this.element},setHideTimeout:function(e){return this.settings.hideTimeout=e,this.element},destroy:function(){var e,t;return clearTimeout(n),t=u((e=this).element),i(".dropdown-toggle, .dropdown-menu",t).off(".dropdownhover"),i(".dropdown-toggle, .dropdown-menu",t).off(".dropdown"),e.element.off(".dropdownhover"),i("body").off(".dropdownhover"),this.element.data("plugin_"+d,null),this.element}},i.fn[d]=function(o){var t,n=arguments;return void 0===o||"object"==typeof o?(i.contains(document,i(this)[0])||i('[data-toggle="dropdown"]').each(function(e,t){i(t).bootstrapDropdownHover(o)}),this.each(function(){i(this).hasClass("dropdown-toggle")&&"dropdown"===i(this).data("toggle")?i.data(this,"plugin_"+d)||i.data(this,"plugin_"+d,new a(this,o)):i('[data-toggle="dropdown"]',this).each(function(e,t){i(t).bootstrapDropdownHover(o)})})):"string"==typeof o&&"_"!==o[0]&&"init"!==o?(this.each(function(){var e=i.data(this,"plugin_"+d);e instanceof a&&"function"==typeof e[o]&&(t=e[o].apply(e,Array.prototype.slice.call(n,1)))}),void 0!==t?t:this):void 0}}); -------------------------------------------------------------------------------- /tendermanagement/WebContent/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /tendermanagement/WebContent/js/script.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shashirajraja/Tender-Management-System/815592dd53fe97562fa6f6887efc9c0244f083b0/tendermanagement/WebContent/js/script.js -------------------------------------------------------------------------------- /tendermanagement/WebContent/login.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | <%@page import="java.sql.*, com.hit.utility.DBUtil, javax.servlet.annotation.WebServlet" errorPage="errorpage.jsp"%> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Tender Management System 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 48 | 49 |
50 | 51 |
52 |
53 | <% Connection con = DBUtil.provideConnection(); %> 54 | 55 |
56 | 57 | 58 |
59 | 60 |
61 |
62 | 63 | 64 | 65 | <%-- --%> 66 | 67 |
68 |
69 |

70 |   Account Login

71 |
72 | 73 | 74 | 75 | 76 | 77 | 78 |
79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 |
USER LOGIN
87 | 88 | 89 | 90 | 91 | 100 | 101 | 102 |
92 |
93 |
94 | Username:  

95 | Password:  

96 |         97 |

98 |
99 |
103 |
104 |
105 |
106 | 107 | 108 |
109 | 110 | 111 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/loginFailed.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | <%@page import="java.sql.*, com.hit.utility.DBUtil, javax.servlet.annotation.WebServlet" errorPage="errorpage.jsp"%> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Tender Management System 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 49 | 50 |
51 | 52 |
53 |
54 | <% Connection con = DBUtil.provideConnection(); %> 55 | 56 |
57 | 58 | 59 |
60 | 61 |
62 |
63 | 64 | 65 | 66 | <%-- --%> 67 | 68 |
69 |
70 |

71 |   Account Login

72 |
73 | 74 | 75 | 76 | 77 | 78 | 79 |
Please Login First to Proceed!
80 | 81 | 82 | 83 | 88 | 89 | 90 | 91 | 92 | 101 | 102 | 103 |
93 |
94 |
95 | Username:

96 | Password:

97 |         98 |

99 |
100 |
104 |
105 |
106 |
107 | 108 | 109 |
110 | 111 | 112 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/loginHeader.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Tender Management System 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/logoutMsg.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | <%@ page import="java.sql.*,com.hit.utility.DBUtil" %> 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Tender Management System 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 |
27 |

28 |   Logout Successful!

Login Again To Continue

29 |
30 | 31 | 32 | 33 |
34 | 56 |
57 |
58 | 59 | 60 |
61 |

62 |
63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/logoutSuccess.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | <%@page import="java.sql.*, com.hit.utility.DBUtil, javax.servlet.annotation.WebServlet" errorPage="errorpage.jsp"%> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Tender Management System 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 32 | 33 |
34 | 35 |
36 |
37 | <% Connection con = DBUtil.provideConnection(); %> 38 | 39 |
40 | 41 | 42 |
43 | 44 |
45 |
46 | 47 | 48 | 49 | 50 | 51 |
52 | 53 | 54 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/menu.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | 75 | 76 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/notice.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | <%@ page import="java.sql.*,com.hit.utility.DBUtil" %> 4 | 5 | 6 | 7 | 8 | Insert title here 9 | 10 | 11 | 12 |
13 |

14 |   Latest Updates and Notice

15 |
16 | 17 | 18 | 19 | <% 20 | Connection con = DBUtil.provideConnection(); 21 | try{ 22 | PreparedStatement ps = con.prepareStatement("select * from notice order by sysdate() asc"); 23 | ResultSet rs = ps.executeQuery(); 24 | String noticeTitle = null; 25 | String noticeInfo = null; 26 | while(rs.next()){ 27 | noticeTitle = rs.getString("title"); 28 | noticeInfo = rs.getString("info"); 29 | //System.out.println(noticeTitle+" "+noticeInfo); 30 | %> 31 |

32 | <%= noticeTitle %>

<%= noticeInfo %> 33 |
34 |

35 |
36 | <% 37 | } 38 | } 39 | catch(SQLException e){ 40 | e.printStackTrace(); 41 | } 42 | %> 43 |
44 | 45 | 46 | 47 |
48 |
49 | 50 | 51 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/register.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | <%@page import="java.sql.*, com.hit.utility.DBUtil, javax.servlet.annotation.WebServlet" errorPage="errorpage.jsp"%> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Tender Management System 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 49 | 50 |
51 | 52 |
53 |
54 | <% Connection con = DBUtil.provideConnection(); %> 55 | 56 |
57 | 58 | 59 |
60 | 61 |
62 |
63 | 64 | 65 | 66 | <%-- --%> 67 | 68 |
69 |
70 |

71 |   Vendor Registration

72 |
73 | 74 | 75 | 76 | 77 | 78 | 79 |
80 | 81 | 82 | 83 | 84 | 85 | 86 |
Register New Vendor
87 | 88 | 89 | 90 | 91 | 104 | 105 | 106 |
92 |
93 |
94 | Vendor Name:

95 | Email Id       :

96 | Mobile No.    :

97 | Address:        

98 | Company      :

99 | Password:     

100 | 101 | 102 |
103 |
107 | 108 |
109 |
110 |
111 | 112 | 113 |
114 | 115 | 116 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/test.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | <%@ page import="java.sql.*" %> 4 | 5 | 6 | 7 | 8 | Insert title here 9 | 10 | 11 | <%= new java.util.Date() %> 12 | 13 | <% 14 | /* Class.forName("com.mysql.jdbc.Driver"); 15 | Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/tender","root","root"); */ 16 | Connection con = com.hit.utility.DBUtil.provideConnection(); 17 | if(con !=null) 18 | out.print("connected"); 19 | else 20 | out.print("Not connectd"); 21 | 22 | String str = "Hello!, JSP Welcome You"; 23 | %> 24 |

Here is the firs jsp variable: <%= str %>

25 | <% 26 | 27 | PreparedStatement ps = con.prepareStatement("select * from notice"); 28 | ResultSet rs = ps.executeQuery(); 29 | 30 | while(rs.next()){ 31 | String id = rs.getString(1); 32 | String title = rs.getString(2); 33 | String info = rs.getString("info"); 34 | out.print(id+" "+title+" "+info); 35 | %> 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 |
<%=id %><%=title %><%=info %>
44 | 45 | <% 46 | 47 | } 48 | //out.print("Execution Completed!"); 49 | %> 50 | 51 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/vendorHome.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | <%@page import="java.sql.*, com.hit.utility.DBUtil, javax.servlet.annotation.WebServlet" errorPage="errorpage.jsp"%> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Tender Management System 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | <% 26 | String user = (String)session.getAttribute("user"); 27 | String uname = (String)session.getAttribute("username"); 28 | String pword = (String)session.getAttribute("password"); 29 | 30 | if(!user.equalsIgnoreCase("user") || uname.equals("") || pword.equals("")){ 31 | 32 | response.sendRedirect("loginFailed.jsp"); 33 | 34 | } 35 | 36 | %> 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 46 | 47 |
48 | 49 |
50 |
51 | <% Connection con = DBUtil.provideConnection(); %> 52 | 53 |
54 | 55 | 56 |
57 | 58 |
59 |
60 | 61 | 62 | 63 | 64 | 65 |
66 |
67 |

68 |   VENDOR ACCOUNT

69 |
70 |

Hey Dude! Welcome to Our Tender Management system

71 |

Here You can manage your tenders,view tenders and bid for tenders according to their deadline and base price

72 |

Go on the about menu section links to explore the site

73 |

You can also update your profile, change password and can explore many more things!

74 | 75 |
76 |
77 |
78 | 79 | 80 | 81 | 82 |

83 | 84 |
85 | 86 | 87 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/vendorMenu.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | 78 | 79 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/vendorSearchTender.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | <%@page import="java.sql.*,java.lang.Integer,java.lang.String, com.hit.beans.TenderBean,com.hit.utility.DBUtil,java.util.List,com.hit.dao.TenderDaoImpl,com.hit.dao.TenderDao, javax.servlet.annotation.WebServlet" errorPage="errorpage.jsp"%> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Tender Management System 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 50 | 51 | 52 | 53 | <% 54 | String user = (String)session.getAttribute("user"); 55 | String uname = (String)session.getAttribute("username"); 56 | String pword = (String)session.getAttribute("password"); 57 | 58 | if(!user.equalsIgnoreCase("user") || uname.equals("") || pword.equals("")){ 59 | 60 | response.sendRedirect("loginFailed.jsp"); 61 | 62 | } 63 | 64 | %> 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 74 | 75 |
76 | 77 |
78 |
79 | <% Connection con = DBUtil.provideConnection(); %> 80 | 81 |
82 | 83 | 84 |
85 | 86 |
87 |
88 | 89 | 90 | 91 | 92 | 93 |
94 | 99 | 100 | 101 | <% 102 | TenderDao dao = new TenderDaoImpl(); 103 | List tenderList = dao.getTenderDetails(request.getParameter("tid")); 104 | for(TenderBean tender : tenderList){ 105 | String tid = tender.getId(); 106 | String tname = tender.getName(); 107 | String ttype = tender.getType(); 108 | int tprice = tender.getPrice(); 109 | String tloc = tender.getLocation(); 110 | java.util.Date udeadline = tender.getDeadline(); 111 | java.sql.Date tdeadline = new java.sql.Date(udeadline.getTime()); 112 | String tdesc = tender.getDesc(); 113 | 114 | %> 115 | 116 | 117 | 118 | 119 | 120 | 121 | <% } %> 122 |
Tender Id Tender Name Tender Type Tender Price Location Deadline Description
<%=tid %> <%=tname %> <%=ttype %> <%=tprice %> <%=tloc %> <%=tdeadline %> <%=tdesc %>
123 | 124 | 126 |
127 | 128 |
129 | 130 | 131 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/vendorViewTender.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | <%@page 4 | import="java.sql.*,java.lang.Integer,java.lang.String, com.hit.beans.TenderBean,com.hit.utility.DBUtil,java.util.List,com.hit.dao.TenderDaoImpl,com.hit.dao.TenderDao, javax.servlet.annotation.WebServlet" 5 | errorPage="errorpage.jsp"%> 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | Tender Management System 16 | 17 | 18 | 19 | 20 | 21 | 23 | 24 | 25 | 53 | 54 | 55 | 56 | <% 57 | String user = (String) session.getAttribute("user"); 58 | String uname = (String) session.getAttribute("username"); 59 | String pword = (String) session.getAttribute("password"); 60 | 61 | if (user == null || !user.equalsIgnoreCase("user") || uname.equals("") || pword.equals("")) { 62 | 63 | response.sendRedirect("loginFailed.jsp"); 64 | 65 | } 66 | %> 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 81 | 82 | 83 |
84 | 85 |
86 |
87 | <% 88 | Connection con = DBUtil.provideConnection(); 89 | %> 90 | 91 |
92 | 93 | 94 |
95 | 96 |
97 | 98 |
99 | 100 | 101 | 102 | 103 | 104 | 105 |
106 | 111 | 112 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | <% 122 | TenderDao dao = new TenderDaoImpl(); 123 | List tenderList = dao.getAllTenders(); 124 | for (TenderBean tender : tenderList) { 125 | String tid = tender.getId(); 126 | String tname = tender.getName(); 127 | String ttype = tender.getType(); 128 | int tprice = tender.getPrice(); 129 | String tloc = tender.getLocation(); 130 | java.util.Date udeadline = tender.getDeadline(); 131 | java.sql.Date tdeadline = new java.sql.Date(udeadline.getTime()); 132 | String tdesc = tender.getDesc(); 133 | %> 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | <% 148 | } 149 | %> 150 |
Tender NameTypeBudgetLocationDeadlineDescription
<%=tname%><%=ttype%>₹ <%=tprice%><%=tloc%><%=tdeadline%>
151 | 153 |
154 | 155 |
156 | 157 | 158 | 159 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/viewAssignedTenders.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | <%@page import="java.sql.*,java.lang.Integer,java.lang.String, com.hit.beans.TenderStatusBean,com.hit.utility.DBUtil,java.util.List,com.hit.dao.TenderDaoImpl,com.hit.dao.TenderDao, javax.servlet.annotation.WebServlet" errorPage="errorpage.jsp"%> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Tender Management System 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 56 | 57 | 58 | 59 | 60 | <% 61 | String user = (String)session.getAttribute("user"); 62 | String uname = (String)session.getAttribute("username"); 63 | String pword = (String)session.getAttribute("password"); 64 | 65 | if(user==null || !user.equalsIgnoreCase("admin") || uname.equals("") || pword.equals("")){ 66 | 67 | response.sendRedirect("loginFailed.jsp"); 68 | 69 | } 70 | 71 | %> 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 82 | 83 |
84 | 85 |
86 |
--> 87 | <% Connection con = DBUtil.provideConnection(); %> 88 | 89 |
90 | 91 | 92 |
93 | 94 |
95 |
96 | 97 | 98 | 99 | 100 | 101 |
102 | 103 | 104 | 105 | 106 | 107 |
All Assigned Tenders List
108 | 109 | 110 | 111 | 112 | 113 | <% 114 | TenderDao dao = new TenderDaoImpl(); 115 | List statusList = dao.getAllAssignedTenders(); 116 | 117 | for(TenderStatusBean status : statusList){ 118 | 119 | %> 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | <% } %> 129 |
Tender Id Vendor Id Application Id Status
<%=status.getTendorId() %><%=status.getVendorId() %> <%=status.getBidderId() %><%=status.getStatus() %>
130 | 131 | 133 |
134 | 135 |
136 | 137 | 138 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/viewNotice.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | <%@page import="java.sql.*, java.lang.Integer,com.hit.beans.NoticeBean,com.hit.utility.DBUtil,java.util.List,java.util.ArrayList,com.hit.dao.NoticeDaoImpl,com.hit.dao.NoticeDao, javax.servlet.annotation.WebServlet" errorPage="errorpage.jsp"%> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Tender Management System 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 61 | 62 | 63 | 64 | 65 | <% 66 | String user = (String)session.getAttribute("user"); 67 | String uname = (String)session.getAttribute("username"); 68 | String pword = (String)session.getAttribute("password"); 69 | 70 | if(!user.equalsIgnoreCase("admin") || uname.equals("") || pword.equals("")){ 71 | 72 | response.sendRedirect("loginFailed.jsp"); 73 | 74 | } 75 | 76 | %> 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 87 | 88 |
89 | 90 |
91 |
92 | <% Connection con = DBUtil.provideConnection(); %> 93 | 94 |
95 | 96 | 97 |
98 | 99 |
100 |
101 | 102 | 103 | 104 | 105 | 106 |
107 | 112 | 113 | 114 | 115 | <% 116 | NoticeDao dao = new NoticeDaoImpl(); 117 | List noticeList = dao.viewAllNotice(); 118 | 119 | for(NoticeBean notice : noticeList){ 120 | 121 | int noticeId = notice.getNoticeId(); 122 | 123 | String noticeTitle = notice.getNoticeTitle(); 124 | 125 | String noticeDesc = notice.getNoticeInfo(); 126 | 127 | %> 128 | 129 | 130 | 131 | 132 | 133 | 134 | <% } %> 135 |
Notice Id Title Description
<%=noticeId %> <%=noticeTitle %> <%=noticeDesc %>
136 | 137 | 139 |
140 | 141 |
142 | 143 | 144 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | -------------------------------------------------------------------------------- /tendermanagement/WebContent/viewTenderBids.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | <%@page 4 | import="java.sql.*,java.lang.Integer,java.lang.String, com.hit.beans.TenderBean,com.hit.utility.DBUtil,java.util.List,com.hit.dao.TenderDaoImpl,com.hit.dao.TenderDao, javax.servlet.annotation.WebServlet" 5 | errorPage="errorpage.jsp"%> 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | Tender Management System 16 | 17 | 18 | 19 | 20 | 21 | 23 | 24 | 25 | 61 | 62 | 63 | 64 | 65 | <% 66 | String user = (String) session.getAttribute("user"); 67 | String uname = (String) session.getAttribute("username"); 68 | String pword = (String) session.getAttribute("password"); 69 | 70 | if (!user.equalsIgnoreCase("admin") || uname.equals("") || pword.equals("")) { 71 | 72 | response.sendRedirect("loginFailed.jsp"); 73 | 74 | } 75 | %> 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 88 | 89 | 90 |
91 | 92 | 94 | <% 95 | Connection con = DBUtil.provideConnection(); 96 | %> 97 | 98 | <%--
99 | 100 | 101 |
102 | 103 |
104 | --%> 105 | 106 | 107 | 108 | 109 | 110 |
111 | 112 | 113 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | <% 125 | TenderDao dao = new TenderDaoImpl(); 126 | List tenderList = dao.getAllTenders(); 127 | for (TenderBean tender : tenderList) { 128 | String tid = tender.getId(); 129 | String tname = tender.getName(); 130 | String ttype = tender.getType(); 131 | int tprice = tender.getPrice(); 132 | String tloc = tender.getLocation(); 133 | java.util.Date udeadline = tender.getDeadline(); 134 | java.sql.Date tdeadline = new java.sql.Date(udeadline.getTime()); 135 | String tdesc = tender.getDesc(); 136 | %> 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 149 | 150 | 151 | 152 | 153 | <% 154 | } 155 | %> 156 |
Tender IdTender NameTender TypeTender PriceLocationDeadlineDescriptionView Bids
<%=tid%><%=tname%><%=ttype%><%=tprice%><%=tloc%><%=tdeadline%>
157 | 158 | 160 |
161 | 162 | 163 | 164 | 165 | 166 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | -------------------------------------------------------------------------------- /tendermanagement/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | tendermanagement 4 | tendermanagement 5 | 0.0.1-SNAPSHOT 6 | war 7 | Tender Management System 8 | Web Application for Online Tender Management 9 | 10 | src 11 | 12 | 13 | src 14 | 15 | **/*.java 16 | 17 | 18 | 19 | 20 | 21 | maven-compiler-plugin 22 | 3.8.0 23 | 24 | 1.8 25 | 1.8 26 | 27 | 28 | 29 | maven-war-plugin 30 | 3.2.3 31 | 32 | WebContent 33 | 34 | 35 | 36 | 37 | 38 | 39 | javax.servlet 40 | jsp-api 41 | 2.0 42 | provided 43 | 44 | 45 | javax.servlet 46 | javax.servlet-api 47 | 3.0.1 48 | provided 49 | 50 | 51 | mysql 52 | mysql-connector-java 53 | 8.0.28 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /tendermanagement/src/com/hit/beans/BidderBean.java: -------------------------------------------------------------------------------- 1 | package com.hit.beans; 2 | 3 | import java.io.Serializable; 4 | import java.text.ParseException; 5 | import java.text.SimpleDateFormat; 6 | import java.util.Date; 7 | import java.util.Locale; 8 | 9 | public class BidderBean implements Serializable { 10 | /** 11 | * 12 | */ 13 | private static final long serialVersionUID = 1L; 14 | private String bidId; 15 | private String vendorId; 16 | private String tenderId; 17 | private int bidAmount; 18 | private Date bidDeadline; 19 | private String bidStatus ; 20 | public String getBidId() { 21 | return bidId; 22 | } 23 | 24 | public void setBidId(String bidId) { 25 | this.bidId = bidId; 26 | } 27 | public String getVendorId() { 28 | return vendorId; 29 | } 30 | public void setVendorId(String vendorId) { 31 | this.vendorId = vendorId; 32 | } 33 | public String getTenderId() { 34 | return tenderId; 35 | } 36 | public void setTenderId(String tenderId) { 37 | this.tenderId = tenderId; 38 | } 39 | public int getBidAmount() { 40 | return bidAmount; 41 | } 42 | public void setBidAmount(int bidAmount) { 43 | this.bidAmount = bidAmount; 44 | } 45 | public Date getBidDeadline() { 46 | return bidDeadline; 47 | } 48 | public void setBidDeadline(java.sql.Date bidDeadline){ 49 | 50 | this.bidDeadline = new java.util.Date(bidDeadline.getTime()); 51 | } 52 | /*public void setBidDeadline(Date bidDeadline) { 53 | this.bidDeadline = bidDeadline; 54 | }*/ 55 | public String getBidStatus() { 56 | return bidStatus; 57 | } 58 | public void setBidStatus(String bidStatus) { 59 | this.bidStatus = bidStatus; 60 | } 61 | 62 | public BidderBean(String bidId, String vendorId, String tenderId, 63 | String bidAmount, String bidDeadline, String bidStatus) { 64 | //TODO 65 | super(); 66 | this.bidId = bidId; 67 | this.vendorId = vendorId; 68 | this.tenderId = tenderId; 69 | this.bidAmount = Integer.parseInt(bidAmount); 70 | SimpleDateFormat sdf = new SimpleDateFormat("EE MMM dd HH:mm:ss z yyyy", 71 | Locale.ENGLISH); 72 | java.util.Date udate = new java.util.Date(); 73 | 74 | try { 75 | 76 | udate = sdf.parse(bidDeadline); 77 | } catch (ParseException e) { 78 | e.printStackTrace(); 79 | } 80 | this.bidDeadline = udate; 81 | this.bidStatus = bidStatus; 82 | } 83 | 84 | public BidderBean(String bidId, String vendorId, String tenderId, 85 | int bidAmount, Date bidDeadline, String bidStatus) { 86 | super(); 87 | this.bidId = bidId; 88 | this.vendorId = vendorId; 89 | this.tenderId = tenderId; 90 | this.bidAmount = bidAmount; 91 | this.bidDeadline = bidDeadline; 92 | this.bidStatus = bidStatus; 93 | } 94 | public BidderBean() { 95 | super(); 96 | } 97 | 98 | 99 | 100 | } 101 | -------------------------------------------------------------------------------- /tendermanagement/src/com/hit/beans/NoticeBean.java: -------------------------------------------------------------------------------- 1 | package com.hit.beans; 2 | 3 | import java.io.Serializable; 4 | 5 | public class NoticeBean implements Serializable{ 6 | 7 | /** 8 | * 9 | */ 10 | private static final long serialVersionUID = 1L; 11 | 12 | public int noticeId; 13 | 14 | public String noticeTitle; 15 | 16 | public String noticeInfo; 17 | 18 | public int getNoticeId() { 19 | return noticeId; 20 | } 21 | 22 | public void setNoticeId(int noticeId) { 23 | this.noticeId = noticeId; 24 | } 25 | 26 | public String getNoticeTitle() { 27 | return noticeTitle; 28 | } 29 | 30 | public void setNoticeTitle(String noticeTitle) { 31 | this.noticeTitle = noticeTitle; 32 | } 33 | 34 | public String getNoticeInfo() { 35 | return noticeInfo; 36 | } 37 | 38 | public void setNoticeInfo(String noticeInfo) { 39 | this.noticeInfo = noticeInfo; 40 | } 41 | 42 | public NoticeBean(int noticeId, String noticeTitle, String noticeInfo) { 43 | super(); 44 | this.noticeId = noticeId; 45 | this.noticeTitle = noticeTitle; 46 | this.noticeInfo = noticeInfo; 47 | } 48 | 49 | public NoticeBean() { 50 | super(); 51 | } 52 | 53 | 54 | 55 | } 56 | -------------------------------------------------------------------------------- /tendermanagement/src/com/hit/beans/TenderBean.java: -------------------------------------------------------------------------------- 1 | package com.hit.beans; 2 | 3 | import java.io.Serializable; 4 | import java.text.ParseException; 5 | import java.text.SimpleDateFormat; 6 | import java.util.Date; 7 | 8 | public class TenderBean implements Serializable { 9 | /** 10 | * 11 | */ 12 | private static final long serialVersionUID = 1L; 13 | private String id; 14 | private String name; 15 | private String type; 16 | private int price; 17 | private String desc; 18 | private Date deadline; 19 | private String location; 20 | public String getId() { 21 | return id; 22 | } 23 | public void setId(String id) { 24 | this.id = id; 25 | } 26 | public String getName() { 27 | return name; 28 | } 29 | public void setName(String name) { 30 | this.name = name; 31 | } 32 | public String getType() { 33 | return type; 34 | } 35 | public void setType(String type) { 36 | this.type = type; 37 | } 38 | public int getPrice() { 39 | return price; 40 | } 41 | public void setPrice(int price) { 42 | this.price = price; 43 | } 44 | public String getDesc() { 45 | return desc; 46 | } 47 | public void setDesc(String desc) { 48 | this.desc = desc; 49 | } 50 | public Date getDeadline() { 51 | return deadline; 52 | } 53 | public void setDeadline(Date deadline) { 54 | this.deadline = deadline; 55 | } 56 | public String getLocation() { 57 | return location; 58 | } 59 | public void setLocation(String location) { 60 | this.location = location; 61 | } 62 | public TenderBean(String id, String name, String type, int price, 63 | String desc, String stdeadline, String location) { 64 | super(); 65 | this.id = id; 66 | this.name = name; 67 | this.type = type; 68 | this.price = price; 69 | this.desc = desc; 70 | 71 | SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd"); 72 | Date deadline = null; 73 | 74 | try { 75 | deadline=sdf.parse(stdeadline); 76 | } 77 | catch (ParseException e) { 78 | e.printStackTrace(); 79 | } 80 | 81 | this.deadline = deadline; 82 | this.location = location; 83 | } 84 | public TenderBean() { 85 | super(); 86 | } 87 | 88 | 89 | } 90 | -------------------------------------------------------------------------------- /tendermanagement/src/com/hit/beans/TenderStatusBean.java: -------------------------------------------------------------------------------- 1 | package com.hit.beans; 2 | 3 | import java.io.Serializable; 4 | 5 | public class TenderStatusBean implements Serializable{ 6 | 7 | public String tendorId; 8 | public String bidderId; 9 | public String status; 10 | public String vendorId; 11 | 12 | public TenderStatusBean() { 13 | super(); 14 | } 15 | 16 | public String getTendorId() { 17 | return tendorId; 18 | } 19 | 20 | public void setTendorId(String tendorId) { 21 | this.tendorId = tendorId; 22 | } 23 | 24 | public String getBidderId() { 25 | return bidderId; 26 | } 27 | 28 | public void setBidderId(String bidderId) { 29 | this.bidderId = bidderId; 30 | } 31 | 32 | public String getStatus() { 33 | return status; 34 | } 35 | 36 | public void setStatus(String status) { 37 | this.status = status; 38 | } 39 | 40 | public String getVendorId() { 41 | return vendorId; 42 | } 43 | 44 | public void setVendorId(String vendorId) { 45 | this.vendorId = vendorId; 46 | } 47 | 48 | public TenderStatusBean(String tendorId, String bidderId, String status, 49 | String vendorId) { 50 | super(); 51 | this.tendorId = tendorId; 52 | this.bidderId = bidderId; 53 | this.status = status; 54 | this.vendorId = vendorId; 55 | } 56 | 57 | 58 | 59 | 60 | } 61 | -------------------------------------------------------------------------------- /tendermanagement/src/com/hit/beans/VendorBean.java: -------------------------------------------------------------------------------- 1 | package com.hit.beans; 2 | 3 | import java.io.Serializable; 4 | import java.text.SimpleDateFormat; 5 | import java.util.Date; 6 | 7 | public class VendorBean implements Serializable{ 8 | private String id; 9 | private String name; 10 | private String mobile; 11 | private String email; 12 | private String address; 13 | private String company; 14 | private String password; 15 | public VendorBean(){} 16 | public String getId() { 17 | return id; 18 | } 19 | public void setId(String id) { 20 | this.id = id; 21 | } 22 | public String getName() { 23 | return name; 24 | } 25 | public void setName(String name) { 26 | this.name = name; 27 | } 28 | public String getMobile() { 29 | return mobile; 30 | } 31 | public void setMobile(String mobile) { 32 | this.mobile = mobile; 33 | } 34 | public String getEmail() { 35 | return email; 36 | } 37 | public void setEmail(String email) { 38 | this.email = email; 39 | } 40 | public String getAddress() { 41 | return address; 42 | } 43 | public void setAddress(String address) { 44 | this.address = address; 45 | } 46 | public String getCompany() { 47 | return company; 48 | } 49 | public void setCompany(String company) { 50 | this.company = company; 51 | } 52 | public String getPassword() { 53 | return password; 54 | } 55 | public void setPassword(String password) { 56 | this.password = password; 57 | } 58 | public VendorBean(String id,String name, String mobile, String email, String address, 59 | String company, String password) { 60 | super(); 61 | this.id = id; 62 | this.name = name; 63 | this.mobile = mobile; 64 | this.email = email; 65 | this.address = address; 66 | this.company = company; 67 | this.password = password; 68 | //generateId(); 69 | } 70 | 71 | /*public void generateId(){ 72 | String vid = null; 73 | 74 | SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMddhhmmss"); 75 | vid=sdf.format(new Date()); 76 | vid = "V"+vid; 77 | this.id = vid; 78 | }*/ 79 | 80 | } 81 | -------------------------------------------------------------------------------- /tendermanagement/src/com/hit/dao/BidderDao.java: -------------------------------------------------------------------------------- 1 | package com.hit.dao; 2 | 3 | import java.util.List; 4 | 5 | import com.hit.beans.BidderBean; 6 | 7 | public interface BidderDao { 8 | 9 | public String acceptBid(String applicationId,String tenderId,String vendorId); 10 | 11 | public String rejectBid(String applicationId); 12 | 13 | public String bidTender(String tenderId, String vendorId,String bidAmount,String deadline); 14 | 15 | public List getAllBidsOfaTender(String tenderId); 16 | 17 | public List getAllBidsOfaVendor(String vendorId); 18 | 19 | 20 | } 21 | -------------------------------------------------------------------------------- /tendermanagement/src/com/hit/dao/NoticeDao.java: -------------------------------------------------------------------------------- 1 | package com.hit.dao; 2 | 3 | import java.util.List; 4 | 5 | import com.hit.beans.NoticeBean; 6 | 7 | public interface NoticeDao { 8 | 9 | public String removeNotice(int noticeId); 10 | 11 | public String addNotice(String noticeTitle, String noticeDesc ); 12 | 13 | public List viewAllNotice(); 14 | 15 | public String updateNotice(NoticeBean notice); 16 | 17 | public NoticeBean getNoticeById(int noticeId); 18 | } 19 | -------------------------------------------------------------------------------- /tendermanagement/src/com/hit/dao/NoticeDaoImpl.java: -------------------------------------------------------------------------------- 1 | package com.hit.dao; 2 | 3 | import java.sql.Connection; 4 | import java.sql.PreparedStatement; 5 | import java.sql.ResultSet; 6 | import java.sql.SQLException; 7 | import java.util.ArrayList; 8 | import java.util.List; 9 | 10 | import com.hit.beans.NoticeBean; 11 | import com.hit.utility.DBUtil; 12 | 13 | public class NoticeDaoImpl implements NoticeDao{ 14 | 15 | @Override 16 | public String removeNotice(int noticeId) { 17 | String status = "Notice Deletion Failed"; 18 | 19 | Connection con = DBUtil.provideConnection(); 20 | PreparedStatement ps = null; 21 | try { 22 | 23 | ps = con.prepareStatement("delete from notice where id=?"); 24 | 25 | ps.setInt(1, noticeId); 26 | 27 | int x = ps.executeUpdate(); 28 | 29 | if(x>0){ 30 | status = "Notice No: "+noticeId+" has been Removed Successfully!"; 31 | } 32 | 33 | } catch (SQLException e) { 34 | status = "Error: " +e.getMessage(); 35 | 36 | e.printStackTrace(); 37 | } 38 | finally{ 39 | 40 | DBUtil.closeConnection(con); 41 | DBUtil.closeConnection(ps); 42 | 43 | } 44 | 45 | return status; 46 | } 47 | 48 | @Override 49 | public String addNotice(String noticeTitle,String noticeDesc) { 50 | String status = "Notice Addition Failed!"; 51 | 52 | Connection con = DBUtil.provideConnection(); 53 | 54 | PreparedStatement ps = null; 55 | 56 | try { 57 | 58 | ps = con.prepareStatement("insert into notice(title,info) values(?,?)"); 59 | 60 | ps.setString(1, noticeTitle); 61 | 62 | ps.setString(2, noticeDesc); 63 | 64 | int k = ps.executeUpdate(); 65 | 66 | if(k>0){ 67 | 68 | status = "Notice Added Successfully"; 69 | 70 | } 71 | 72 | } catch (SQLException e) { 73 | 74 | status = "Error: " +e.getMessage(); 75 | e.printStackTrace(); 76 | } 77 | 78 | finally{ 79 | 80 | DBUtil.closeConnection(con); 81 | 82 | DBUtil.closeConnection(ps); 83 | } 84 | 85 | return status; 86 | } 87 | 88 | @Override 89 | public List viewAllNotice() { 90 | 91 | List noticeList = new ArrayList(); 92 | 93 | Connection con = DBUtil.provideConnection(); 94 | 95 | PreparedStatement ps = null; 96 | 97 | ResultSet rs = null; 98 | 99 | try { 100 | ps = con.prepareStatement("select * from notice order by sysdate() asc limit 8"); 101 | 102 | rs = ps.executeQuery(); 103 | 104 | while(rs.next()){ 105 | 106 | NoticeBean notice = new NoticeBean(); 107 | 108 | notice.setNoticeId(rs.getInt("id")); 109 | 110 | notice.setNoticeTitle(rs.getString("title")); 111 | 112 | notice.setNoticeInfo(rs.getString("info")); 113 | 114 | noticeList.add(notice); 115 | } 116 | 117 | } catch (SQLException e) { 118 | 119 | e.printStackTrace(); 120 | } 121 | finally{ 122 | 123 | DBUtil.closeConnection(con); 124 | 125 | DBUtil.closeConnection(rs); 126 | 127 | DBUtil.closeConnection(ps); 128 | } 129 | 130 | return noticeList; 131 | } 132 | 133 | @Override 134 | public String updateNotice(NoticeBean notice) { 135 | 136 | String status = "Notice Updation Failed"; 137 | 138 | Connection con = DBUtil.provideConnection(); 139 | 140 | PreparedStatement ps = null; 141 | 142 | try { 143 | 144 | ps = con.prepareStatement("update notice set title=? , info=? where id=?"); 145 | 146 | ps.setString(1, notice.getNoticeTitle()); 147 | 148 | ps.setString(2, notice.getNoticeInfo()); 149 | 150 | ps.setInt(3, notice.getNoticeId()); 151 | 152 | int x = ps.executeUpdate(); 153 | 154 | if(x>0) 155 | status = "Notice Updated Successfully!"; 156 | 157 | } catch (SQLException e) { 158 | 159 | status = "Error: "+e.getMessage(); 160 | 161 | e.printStackTrace(); 162 | } 163 | finally{ 164 | 165 | DBUtil.closeConnection(con); 166 | DBUtil.closeConnection(ps); 167 | 168 | } 169 | return status; 170 | } 171 | 172 | @Override 173 | public NoticeBean getNoticeById(int noticeId) { 174 | NoticeBean notice = null; 175 | 176 | Connection con = DBUtil.provideConnection(); 177 | 178 | PreparedStatement ps = null; 179 | 180 | ResultSet rs = null; 181 | 182 | try { 183 | ps = con.prepareStatement("select * from notice where id=?"); 184 | 185 | ps.setInt(1, noticeId); 186 | 187 | rs = ps.executeQuery(); 188 | 189 | if(rs.next()){ 190 | notice = new NoticeBean(noticeId,rs.getString("title"),rs.getString("info")); 191 | 192 | } 193 | 194 | 195 | } catch (SQLException e) { 196 | // TODO Auto-generated catch block 197 | e.printStackTrace(); 198 | } 199 | 200 | 201 | return notice; 202 | } 203 | 204 | 205 | 206 | } 207 | -------------------------------------------------------------------------------- /tendermanagement/src/com/hit/dao/TenderDao.java: -------------------------------------------------------------------------------- 1 | package com.hit.dao; 2 | 3 | import java.util.List; 4 | 5 | import com.hit.beans.TenderBean; 6 | import com.hit.beans.TenderStatusBean; 7 | 8 | public interface TenderDao { 9 | 10 | public List getTenderDetails(String id); 11 | 12 | public List getAllTenders(); 13 | 14 | public String createTender(TenderBean tender); 15 | 16 | public boolean removeTender(String tid); 17 | 18 | public String updateTender(TenderBean tender); 19 | 20 | public TenderBean getTenderDataById(String tenderId); 21 | 22 | public String getTenderStatus(String tenderId); 23 | 24 | public String assignTender(String tenderId,String vendorId,String bidderId); 25 | 26 | public List getAllAssignedTenders(); 27 | 28 | } 29 | -------------------------------------------------------------------------------- /tendermanagement/src/com/hit/dao/VendorDao.java: -------------------------------------------------------------------------------- 1 | package com.hit.dao; 2 | 3 | import java.util.List; 4 | 5 | import com.hit.beans.VendorBean; 6 | 7 | public interface VendorDao { 8 | 9 | public String registerVendor(VendorBean vendor); 10 | 11 | public List getAllVendors(); 12 | 13 | public boolean validatePassword(String vendorId,String password); 14 | 15 | public String updateProfile(VendorBean vendor); 16 | 17 | public String changePassword(String vendorId,String oldPassword,String newPassword); 18 | 19 | public VendorBean getVendorDataById(String vendorId); 20 | } 21 | -------------------------------------------------------------------------------- /tendermanagement/src/com/hit/srv/AcceptBidSrv.java: -------------------------------------------------------------------------------- 1 | package com.hit.srv; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | 6 | import javax.servlet.RequestDispatcher; 7 | import javax.servlet.ServletException; 8 | import javax.servlet.annotation.WebServlet; 9 | import javax.servlet.http.HttpServlet; 10 | import javax.servlet.http.HttpServletRequest; 11 | import javax.servlet.http.HttpServletResponse; 12 | import javax.servlet.http.HttpSession; 13 | 14 | import com.hit.beans.VendorBean; 15 | import com.hit.dao.BidderDao; 16 | import com.hit.dao.BidderDaoImpl; 17 | 18 | /** 19 | * Servlet implementation class AcceptBidSrv 20 | */ 21 | @WebServlet("/AcceptBidSrv") 22 | public class AcceptBidSrv extends HttpServlet { 23 | private static final long serialVersionUID = 1L; 24 | 25 | /** 26 | * @see HttpServlet#HttpServlet() 27 | */ 28 | public AcceptBidSrv() { 29 | super(); 30 | // TODO Auto-generated constructor stub 31 | } 32 | 33 | /** 34 | * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) 35 | */ 36 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 37 | 38 | HttpSession session = request.getSession(); 39 | String user = (String)session.getAttribute("user"); 40 | String uname = (String)session.getAttribute("username"); 41 | String pword = (String)session.getAttribute("password"); 42 | 43 | if(!user.equalsIgnoreCase("admin") || uname.equals("") || pword.equals("")){ 44 | 45 | response.sendRedirect("loginFailed.jsp"); 46 | 47 | } 48 | 49 | 50 | 51 | 52 | String bidderId = request.getParameter("bid"); 53 | String tenderId = request.getParameter("tid"); 54 | String vendorId = request.getParameter("vid"); 55 | 56 | BidderDao dao = new BidderDaoImpl(); 57 | 58 | String status = dao.acceptBid(bidderId, tenderId, vendorId); 59 | 60 | PrintWriter pw = response.getWriter(); 61 | 62 | RequestDispatcher rd = request.getRequestDispatcher("viewTenderBidsForm.jsp"); 63 | 64 | rd.include(request, response); 65 | 66 | pw.print(""); 67 | 68 | pw.close(); 69 | } 70 | 71 | /** 72 | * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) 73 | */ 74 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 75 | doGet(request,response); 76 | } 77 | 78 | } 79 | -------------------------------------------------------------------------------- /tendermanagement/src/com/hit/srv/AddNoticeSrv.java: -------------------------------------------------------------------------------- 1 | package com.hit.srv; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | 6 | import javax.servlet.RequestDispatcher; 7 | import javax.servlet.ServletException; 8 | import javax.servlet.annotation.WebServlet; 9 | import javax.servlet.http.HttpServlet; 10 | import javax.servlet.http.HttpServletRequest; 11 | import javax.servlet.http.HttpServletResponse; 12 | import javax.servlet.http.HttpSession; 13 | 14 | import com.hit.dao.NoticeDao; 15 | import com.hit.dao.NoticeDaoImpl; 16 | 17 | /** 18 | * Servlet implementation class AddNoticeSrv 19 | */ 20 | @WebServlet("/AddNoticeSrv") 21 | public class AddNoticeSrv extends HttpServlet { 22 | private static final long serialVersionUID = 1L; 23 | 24 | /** 25 | * @see HttpServlet#HttpServlet() 26 | */ 27 | public AddNoticeSrv() { 28 | super(); 29 | // TODO Auto-generated constructor stub 30 | } 31 | 32 | /** 33 | * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) 34 | */ 35 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 36 | 37 | HttpSession session = request.getSession(); 38 | String user = (String)session.getAttribute("user"); 39 | String uname = (String)session.getAttribute("username"); 40 | String pword = (String)session.getAttribute("password"); 41 | 42 | if(!user.equalsIgnoreCase("admin") || uname.equals("") || pword.equals("")){ 43 | 44 | response.sendRedirect("loginFailed.jsp"); 45 | 46 | } 47 | 48 | 49 | 50 | String noticeTitle = request.getParameter("title"); 51 | String noticeDesc = request.getParameter("info"); 52 | 53 | NoticeDao dao = new NoticeDaoImpl(); 54 | 55 | String status = dao.addNotice(noticeTitle, noticeDesc); 56 | 57 | PrintWriter pw = response.getWriter(); 58 | 59 | 60 | 61 | RequestDispatcher rd = request.getRequestDispatcher("addNotice.jsp"); 62 | 63 | 64 | 65 | rd.include(request, response); 66 | 67 | pw.print(""); 68 | } 69 | 70 | /** 71 | * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) 72 | */ 73 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 74 | doGet(request,response); 75 | } 76 | 77 | } 78 | -------------------------------------------------------------------------------- /tendermanagement/src/com/hit/srv/BidTenderSrv.java: -------------------------------------------------------------------------------- 1 | package com.hit.srv; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | 6 | import javax.servlet.RequestDispatcher; 7 | import javax.servlet.ServletException; 8 | import javax.servlet.annotation.WebServlet; 9 | import javax.servlet.http.HttpServlet; 10 | import javax.servlet.http.HttpServletRequest; 11 | import javax.servlet.http.HttpServletResponse; 12 | import javax.servlet.http.HttpSession; 13 | 14 | import com.hit.dao.BidderDao; 15 | import com.hit.dao.BidderDaoImpl; 16 | 17 | /** 18 | * Servlet implementation class BidTenderSrv 19 | */ 20 | @WebServlet("/BidTenderSrv") 21 | public class BidTenderSrv extends HttpServlet { 22 | private static final long serialVersionUID = 1L; 23 | 24 | /** 25 | * @see HttpServlet#HttpServlet() 26 | */ 27 | public BidTenderSrv() { 28 | super(); 29 | // TODO Auto-generated constructor stub 30 | } 31 | 32 | /** 33 | * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) 34 | */ 35 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 36 | doPost(request,response); 37 | } 38 | 39 | /** 40 | * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) 41 | */ 42 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 43 | 44 | HttpSession session = request.getSession(); 45 | String user = (String)session.getAttribute("user"); 46 | String uname = (String)session.getAttribute("username"); 47 | String pword = (String)session.getAttribute("password"); 48 | 49 | if(user==null || !user.equalsIgnoreCase("user") || uname.equals("") || pword.equals("")){ 50 | 51 | response.sendRedirect("loginFailed.jsp"); 52 | 53 | } 54 | 55 | 56 | String bidAmount = request.getParameter("bidamount"); 57 | String bidDeadline = request.getParameter("biddeadline"); 58 | String tenderId = request.getParameter("tid"); 59 | String vendorId = request.getParameter("vid"); 60 | 61 | BidderDao dao = new BidderDaoImpl(); 62 | 63 | String status = dao.bidTender(tenderId, vendorId, bidAmount,bidDeadline); 64 | 65 | PrintWriter pw = response.getWriter(); 66 | 67 | RequestDispatcher rd = request.getRequestDispatcher("bidTenderForm.jsp"); 68 | 69 | rd.include(request, response); 70 | 71 | pw.print(""); 72 | 73 | pw.close(); 74 | 75 | } 76 | 77 | } 78 | -------------------------------------------------------------------------------- /tendermanagement/src/com/hit/srv/ChangePasswordSrv.java: -------------------------------------------------------------------------------- 1 | package com.hit.srv; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | 6 | import javax.servlet.RequestDispatcher; 7 | import javax.servlet.ServletException; 8 | import javax.servlet.annotation.WebServlet; 9 | import javax.servlet.http.HttpServlet; 10 | import javax.servlet.http.HttpServletRequest; 11 | import javax.servlet.http.HttpServletResponse; 12 | import javax.servlet.http.HttpSession; 13 | 14 | import com.hit.beans.VendorBean; 15 | import com.hit.dao.VendorDao; 16 | import com.hit.dao.VendorDaoImpl; 17 | 18 | /** 19 | * Servlet implementation class ChangePasswordSrv 20 | */ 21 | @WebServlet("/ChangePasswordSrv") 22 | public class ChangePasswordSrv extends HttpServlet { 23 | private static final long serialVersionUID = 1L; 24 | 25 | /** 26 | * @see HttpServlet#HttpServlet() 27 | */ 28 | public ChangePasswordSrv() { 29 | super(); 30 | // TODO Auto-generated constructor stub 31 | } 32 | 33 | /** 34 | * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) 35 | */ 36 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 37 | doPost(request,response); 38 | } 39 | 40 | /** 41 | * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) 42 | */ 43 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 44 | 45 | HttpSession session = request.getSession(); 46 | String user = (String)session.getAttribute("user"); 47 | String uname = (String)session.getAttribute("username"); 48 | String pword = (String)session.getAttribute("password"); 49 | 50 | if(user==null || !user.equalsIgnoreCase("user") || uname.equals("") || pword.equals("")){ 51 | 52 | response.sendRedirect("loginFailed.jsp"); 53 | 54 | } 55 | 56 | 57 | String fvid = request.getParameter("vid"); 58 | String foldPass = request.getParameter("oldpassword"); 59 | String newPass = request.getParameter("newpassword"); 60 | String verifyPass = request.getParameter("verifynewpassword"); 61 | 62 | PrintWriter pw = response.getWriter(); 63 | 64 | RequestDispatcher rd = request.getRequestDispatcher("updatePassword.jsp"); 65 | 66 | //HttpSession session = request.getSession(); 67 | 68 | VendorBean vendor = (VendorBean)session.getAttribute("vendordata"); 69 | 70 | String vpass = vendor.getPassword(); 71 | 72 | if(!newPass.equals(verifyPass) ){ 73 | 74 | rd.include(request, response); 75 | 76 | pw.print(""); 77 | 78 | } 79 | 80 | else if(!vpass.equals(foldPass)){ 81 | 82 | rd.include(request, response); 83 | 84 | pw.print(""); 85 | 86 | 87 | } 88 | else{ 89 | 90 | VendorDao dao = new VendorDaoImpl(); 91 | 92 | String status = dao.changePassword(fvid, foldPass, newPass); 93 | 94 | if(status.equalsIgnoreCase("Password Updated Successfully!")){ 95 | vendor.setPassword(newPass); 96 | session.setAttribute("vendordata", vendor); 97 | 98 | } 99 | 100 | rd.include(request, response); 101 | 102 | pw.print(""); 103 | } 104 | pw.close(); 105 | 106 | 107 | } 108 | 109 | } 110 | -------------------------------------------------------------------------------- /tendermanagement/src/com/hit/srv/CreateTenderSrv.java: -------------------------------------------------------------------------------- 1 | package com.hit.srv; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | 6 | import javax.servlet.RequestDispatcher; 7 | import javax.servlet.ServletException; 8 | import javax.servlet.annotation.WebServlet; 9 | import javax.servlet.http.HttpServlet; 10 | import javax.servlet.http.HttpServletRequest; 11 | import javax.servlet.http.HttpServletResponse; 12 | import javax.servlet.http.HttpSession; 13 | 14 | import com.hit.beans.TenderBean; 15 | import com.hit.dao.TenderDao; 16 | import com.hit.dao.TenderDaoImpl; 17 | import com.hit.utility.IDUtil; 18 | 19 | /** 20 | * Servlet implementation class CreateTenderSrv 21 | */ 22 | @WebServlet("/CreateTenderSrv") 23 | public class CreateTenderSrv extends HttpServlet { 24 | private static final long serialVersionUID = 1L; 25 | 26 | /** 27 | * @see HttpServlet#HttpServlet() 28 | */ 29 | public CreateTenderSrv() { 30 | super(); 31 | // TODO Auto-generated constructor stub 32 | } 33 | 34 | /** 35 | * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) 36 | */ 37 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 38 | 39 | HttpSession session = request.getSession(); 40 | String user = (String)session.getAttribute("user"); 41 | String uname = (String)session.getAttribute("username"); 42 | String pword = (String)session.getAttribute("password"); 43 | 44 | if(!user.equalsIgnoreCase("admin") || uname.equals("") || pword.equals("")){ 45 | 46 | response.sendRedirect("loginFailed.jsp"); 47 | 48 | } 49 | 50 | 51 | String tid= IDUtil.generateTenderId(); 52 | String tname= request.getParameter("tname").trim(); 53 | String ttype= request.getParameter("ttype").trim(); 54 | String stprice= request.getParameter("tprice").trim(); 55 | String tdesc= request.getParameter("tdesc").trim(); 56 | String stdeadline= request.getParameter("tdeadline").trim(); 57 | String tloc= request.getParameter("tloc").trim(); 58 | int tprice=Integer.parseInt(stprice); 59 | System.out.print(tid+" "+tname+" "+ttype+" "+tprice+" "+tdesc+" "+stdeadline+" "+tloc+" "+"completed "); 60 | 61 | TenderBean tender = new //TenderBean(id, name, type, price, desc, stdeadline, location) 62 | 63 | TenderBean(tid,tname,ttype,tprice,tdesc,stdeadline,tloc); 64 | 65 | TenderDao dao = new TenderDaoImpl(); 66 | 67 | String status = dao.createTender(tender); 68 | 69 | PrintWriter pw = response.getWriter(); 70 | RequestDispatcher rd = request.getRequestDispatcher("createTender.jsp"); 71 | 72 | rd.include(request, response); 73 | 74 | pw.print(""); 75 | } 76 | 77 | /** 78 | * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) 79 | */ 80 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 81 | doGet(request,response); 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /tendermanagement/src/com/hit/srv/LogoutSrv.java: -------------------------------------------------------------------------------- 1 | package com.hit.srv; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | 6 | import javax.servlet.RequestDispatcher; 7 | import javax.servlet.ServletException; 8 | import javax.servlet.annotation.WebServlet; 9 | import javax.servlet.http.HttpServlet; 10 | import javax.servlet.http.HttpServletRequest; 11 | import javax.servlet.http.HttpServletResponse; 12 | import javax.servlet.http.HttpSession; 13 | 14 | import com.hit.beans.VendorBean; 15 | 16 | /** 17 | * Servlet implementation class LogoutSrv 18 | */ 19 | @WebServlet("/LogoutSrv") 20 | public class LogoutSrv extends HttpServlet { 21 | private static final long serialVersionUID = 1L; 22 | 23 | /** 24 | * @see HttpServlet#HttpServlet() 25 | */ 26 | public LogoutSrv() { 27 | super(); 28 | // TODO Auto-generated constructor stub 29 | } 30 | 31 | /** 32 | * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) 33 | */ 34 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 35 | 36 | HttpSession session = request.getSession(); 37 | session.setAttribute("user", ""); 38 | session.setAttribute("username", ""); 39 | session.setAttribute("password", ""); 40 | session.setAttribute("vendordata", new VendorBean()); 41 | 42 | response.sendRedirect("logoutSuccess.jsp"); 43 | } 44 | 45 | /** 46 | * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) 47 | */ 48 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 49 | doGet(request,response); 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /tendermanagement/src/com/hit/srv/RegisterSrv.java: -------------------------------------------------------------------------------- 1 | package com.hit.srv; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.sql.Connection; 6 | import java.sql.PreparedStatement; 7 | import java.sql.ResultSet; 8 | import java.sql.SQLException; 9 | import java.text.SimpleDateFormat; 10 | import java.util.Date; 11 | 12 | import javax.servlet.RequestDispatcher; 13 | import javax.servlet.ServletException; 14 | import javax.servlet.annotation.WebServlet; 15 | import javax.servlet.http.HttpServlet; 16 | import javax.servlet.http.HttpServletRequest; 17 | import javax.servlet.http.HttpServletResponse; 18 | 19 | import com.hit.beans.VendorBean; 20 | import com.hit.dao.VendorDao; 21 | import com.hit.dao.VendorDaoImpl; 22 | import com.hit.utility.DBUtil; 23 | import com.hit.utility.IDUtil; 24 | 25 | /** 26 | * Servlet implementation class RegisterSrv 27 | */ 28 | @WebServlet("/RegisterSrv") 29 | public class RegisterSrv extends HttpServlet { 30 | private static final long serialVersionUID = 1L; 31 | 32 | /** 33 | * @see HttpServlet#HttpServlet() 34 | */ 35 | public RegisterSrv() { 36 | super(); 37 | // TODO Auto-generated constructor stub 38 | } 39 | 40 | /** 41 | * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) 42 | */ 43 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 44 | 45 | String vname = request.getParameter("vname").trim(); 46 | String vemail = request.getParameter("vemail").trim().toLowerCase(); 47 | String vmob = request.getParameter("vmob").trim(); 48 | //int vmob = Integer.parseInt(mob); 49 | String vaddr = request.getParameter("vaddr").trim(); 50 | String cname = request.getParameter("cname").trim(); 51 | String vpass = request.getParameter("vpass").trim(); 52 | 53 | String vid = IDUtil.generateVendorId(); 54 | 55 | VendorBean vendor = new VendorBean(vid, vname, vmob, vemail, vaddr, cname, vpass); 56 | 57 | VendorDao dao = new VendorDaoImpl(); 58 | 59 | String status = dao.registerVendor(vendor); 60 | 61 | PrintWriter pw = response.getWriter(); 62 | 63 | RequestDispatcher rd = request.getRequestDispatcher("login.jsp"); 64 | 65 | rd.include(request, response); 66 | 67 | pw.print(""); 68 | 69 | } 70 | /** 71 | * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) 72 | */ 73 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 74 | doGet(request,response); 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /tendermanagement/src/com/hit/srv/RejectBidSrv.java: -------------------------------------------------------------------------------- 1 | package com.hit.srv; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | 6 | import javax.servlet.RequestDispatcher; 7 | import javax.servlet.ServletException; 8 | import javax.servlet.annotation.WebServlet; 9 | import javax.servlet.http.HttpServlet; 10 | import javax.servlet.http.HttpServletRequest; 11 | import javax.servlet.http.HttpServletResponse; 12 | import javax.servlet.http.HttpSession; 13 | 14 | import com.hit.beans.VendorBean; 15 | import com.hit.dao.BidderDao; 16 | import com.hit.dao.BidderDaoImpl; 17 | 18 | /** 19 | * Servlet implementation class RejectBidSrv 20 | */ 21 | @WebServlet("/RejectBidSrv") 22 | public class RejectBidSrv extends HttpServlet { 23 | private static final long serialVersionUID = 1L; 24 | 25 | /** 26 | * @see HttpServlet#HttpServlet() 27 | */ 28 | public RejectBidSrv() { 29 | super(); 30 | // TODO Auto-generated constructor stub 31 | } 32 | 33 | /** 34 | * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) 35 | */ 36 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 37 | 38 | HttpSession session = request.getSession(); 39 | String user = (String)session.getAttribute("user"); 40 | String uname = (String)session.getAttribute("username"); 41 | String pword = (String)session.getAttribute("password"); 42 | 43 | if(user==null || !user.equalsIgnoreCase("admin") || uname.equals("") || pword.equals("")){ 44 | 45 | response.sendRedirect("loginFailed.jsp"); 46 | 47 | } 48 | 49 | 50 | String bidderId = request.getParameter("bid"); 51 | 52 | BidderDao dao = new BidderDaoImpl(); 53 | 54 | String status = dao.rejectBid(bidderId); 55 | 56 | PrintWriter pw = response.getWriter(); 57 | 58 | RequestDispatcher rd = request.getRequestDispatcher("viewTenderBidsForm.jsp"); 59 | 60 | rd.include(request, response); 61 | 62 | pw.print(""); 63 | 64 | pw.close(); 65 | } 66 | 67 | /** 68 | * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) 69 | */ 70 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 71 | doGet(request,response); 72 | } 73 | 74 | } 75 | -------------------------------------------------------------------------------- /tendermanagement/src/com/hit/srv/RemoveNoticeSrv.java: -------------------------------------------------------------------------------- 1 | package com.hit.srv; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | 6 | import javax.servlet.RequestDispatcher; 7 | import javax.servlet.ServletException; 8 | import javax.servlet.annotation.WebServlet; 9 | import javax.servlet.http.HttpServlet; 10 | import javax.servlet.http.HttpServletRequest; 11 | import javax.servlet.http.HttpServletResponse; 12 | import javax.servlet.http.HttpSession; 13 | 14 | import com.hit.dao.NoticeDao; 15 | import com.hit.dao.NoticeDaoImpl; 16 | 17 | /** 18 | * Servlet implementation class RemoveNoticeSrv 19 | */ 20 | @WebServlet("/RemoveNoticeSrv") 21 | public class RemoveNoticeSrv extends HttpServlet { 22 | private static final long serialVersionUID = 1L; 23 | 24 | /** 25 | * @see HttpServlet#HttpServlet() 26 | */ 27 | public RemoveNoticeSrv() { 28 | super(); 29 | // TODO Auto-generated constructor stub 30 | } 31 | 32 | /** 33 | * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) 34 | */ 35 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 36 | 37 | HttpSession session = request.getSession(); 38 | String user = (String)session.getAttribute("user"); 39 | String uname = (String)session.getAttribute("username"); 40 | String pword = (String)session.getAttribute("password"); 41 | 42 | if(user==null || !user.equalsIgnoreCase("admin") || uname.equals("") || pword.equals("")){ 43 | 44 | response.sendRedirect("loginFailed.jsp"); 45 | 46 | } 47 | 48 | 49 | 50 | int noticeId = Integer.parseInt(request.getParameter("noticeid")); 51 | 52 | NoticeDao dao = new NoticeDaoImpl(); 53 | 54 | String status = dao.removeNotice(noticeId); 55 | 56 | PrintWriter pw = response.getWriter(); 57 | 58 | RequestDispatcher rd = request.getRequestDispatcher("removeNotice.jsp"); 59 | 60 | rd.include(request, response); 61 | 62 | pw.print(""); 63 | 64 | pw.close(); 65 | 66 | } 67 | 68 | /** 69 | * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) 70 | */ 71 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 72 | doGet(request,response); 73 | } 74 | 75 | } 76 | -------------------------------------------------------------------------------- /tendermanagement/src/com/hit/srv/UpdateNoticeSrv.java: -------------------------------------------------------------------------------- 1 | package com.hit.srv; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | 6 | import javax.servlet.RequestDispatcher; 7 | import javax.servlet.ServletException; 8 | import javax.servlet.annotation.WebServlet; 9 | import javax.servlet.http.HttpServlet; 10 | import javax.servlet.http.HttpServletRequest; 11 | import javax.servlet.http.HttpServletResponse; 12 | import javax.servlet.http.HttpSession; 13 | 14 | import com.hit.beans.NoticeBean; 15 | import com.hit.dao.NoticeDao; 16 | import com.hit.dao.NoticeDaoImpl; 17 | 18 | /** 19 | * Servlet implementation class UpdateNoticeSrv 20 | */ 21 | @WebServlet("/UpdateNoticeSrv") 22 | public class UpdateNoticeSrv extends HttpServlet { 23 | private static final long serialVersionUID = 1L; 24 | 25 | /** 26 | * @see HttpServlet#HttpServlet() 27 | */ 28 | public UpdateNoticeSrv() { 29 | super(); 30 | // TODO Auto-generated constructor stub 31 | } 32 | 33 | /** 34 | * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) 35 | */ 36 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 37 | 38 | HttpSession session = request.getSession(); 39 | String user = (String)session.getAttribute("user"); 40 | String uname = (String)session.getAttribute("username"); 41 | String pword = (String)session.getAttribute("password"); 42 | 43 | if(user==null || !user.equalsIgnoreCase("admin") || uname.equals("") || pword.equals("")){ 44 | 45 | response.sendRedirect("loginFailed.jsp"); 46 | 47 | } 48 | 49 | 50 | 51 | int noticeId = Integer.parseInt(request.getParameter("nid")); 52 | 53 | String noticeTitle = request.getParameter("title"); 54 | 55 | String noticeDesc = request.getParameter("info"); 56 | 57 | NoticeBean notice = new NoticeBean(noticeId, noticeTitle, noticeDesc); 58 | 59 | NoticeDao dao = new NoticeDaoImpl(); 60 | 61 | String status = dao.updateNotice(notice); 62 | 63 | PrintWriter pw = response.getWriter(); 64 | 65 | RequestDispatcher rd = request.getRequestDispatcher("updateNotice.jsp"); 66 | 67 | rd.include(request, response); 68 | 69 | pw.print(""); 70 | 71 | pw.close(); 72 | 73 | 74 | } 75 | 76 | /** 77 | * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) 78 | */ 79 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 80 | doGet(request,response); 81 | } 82 | 83 | } 84 | -------------------------------------------------------------------------------- /tendermanagement/src/com/hit/srv/UpdateProfileSrv.java: -------------------------------------------------------------------------------- 1 | package com.hit.srv; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | 6 | import javax.servlet.RequestDispatcher; 7 | import javax.servlet.ServletException; 8 | import javax.servlet.annotation.WebServlet; 9 | import javax.servlet.http.HttpServlet; 10 | import javax.servlet.http.HttpServletRequest; 11 | import javax.servlet.http.HttpServletResponse; 12 | import javax.servlet.http.HttpSession; 13 | 14 | import com.hit.beans.VendorBean; 15 | import com.hit.dao.VendorDao; 16 | import com.hit.dao.VendorDaoImpl; 17 | 18 | /** 19 | * Servlet implementation class UpdateProfileSrv 20 | */ 21 | @WebServlet("/UpdateProfileSrv") 22 | public class UpdateProfileSrv extends HttpServlet { 23 | private static final long serialVersionUID = 1L; 24 | 25 | /** 26 | * @see HttpServlet#HttpServlet() 27 | */ 28 | public UpdateProfileSrv() { 29 | super(); 30 | // TODO Auto-generated constructor stub 31 | } 32 | 33 | /** 34 | * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) 35 | */ 36 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 37 | doPost(request,response); 38 | } 39 | 40 | /** 41 | * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) 42 | */ 43 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 44 | 45 | HttpSession session = request.getSession(); 46 | String user = (String)session.getAttribute("user"); 47 | String uname = (String)session.getAttribute("username"); 48 | String pword = (String)session.getAttribute("password"); 49 | 50 | if(user==null || !user.equalsIgnoreCase("user") || uname.equals("") || pword.equals("")){ 51 | 52 | response.sendRedirect("loginFailed.jsp"); 53 | 54 | } 55 | 56 | String vid = request.getParameter("vid"); 57 | String vname = request.getParameter("vname"); 58 | String vmob = request.getParameter("vmob"); 59 | String vemail = request.getParameter("vemail"); 60 | String vaddr = request.getParameter("vaddr"); 61 | String vcompany = request.getParameter("vcompany"); 62 | String vpass = request.getParameter("vpass"); 63 | 64 | VendorBean vendor = new VendorBean(vid, vname, vmob, vemail, vaddr, vcompany, vpass); 65 | VendorDao dao = new VendorDaoImpl(); 66 | 67 | String status = dao.updateProfile(vendor); 68 | 69 | // HttpSession session = request.getSession(); 70 | 71 | if(status.equalsIgnoreCase("Account Updated Successfully!") && (VendorBean)session.getAttribute("vendordata")!=null){ 72 | session.setAttribute("vendordata", vendor); 73 | } 74 | 75 | PrintWriter pw = response.getWriter(); 76 | 77 | RequestDispatcher rd = request.getRequestDispatcher("updateProfile.jsp"); 78 | 79 | rd.include(request, response); 80 | 81 | pw.print(""); 82 | 83 | pw.close(); 84 | } 85 | 86 | } 87 | -------------------------------------------------------------------------------- /tendermanagement/src/com/hit/utility/DBUtil.java: -------------------------------------------------------------------------------- 1 | package com.hit.utility; 2 | 3 | import java.sql.Connection; 4 | import java.sql.DriverManager; 5 | import java.sql.PreparedStatement; 6 | import java.sql.ResultSet; 7 | import java.sql.SQLException; 8 | import java.util.ResourceBundle; 9 | 10 | public class DBUtil { 11 | private static Connection conn = null; 12 | 13 | public DBUtil(){ 14 | 15 | } 16 | public static Connection provideConnection(){ 17 | 18 | ResourceBundle rb = ResourceBundle.getBundle("dbdetails"); 19 | 20 | String cs = rb.getString("connectionString"); 21 | String username = rb.getString("username"); 22 | String password = rb.getString("password"); 23 | String dbDriver = rb.getString("driverName"); 24 | try { 25 | if(conn == null || conn.isClosed()){ 26 | 27 | 28 | try { 29 | Class.forName(dbDriver); 30 | 31 | } catch (ClassNotFoundException e) { 32 | // TODO Auto-generated catch block 33 | e.printStackTrace(); 34 | } 35 | 36 | conn = DriverManager.getConnection(cs,username,password); 37 | 38 | } 39 | } 40 | 41 | catch (SQLException e) { 42 | // TODO Auto-generated catch block 43 | e.printStackTrace(); 44 | } 45 | 46 | 47 | return conn; 48 | } 49 | 50 | public static void closeConnection(PreparedStatement ps){ 51 | 52 | try { 53 | if(ps != null) 54 | ps.close(); 55 | } catch (SQLException e) { 56 | 57 | e.printStackTrace(); 58 | } 59 | 60 | } 61 | 62 | public static void closeConnection(ResultSet rs){ 63 | 64 | try { 65 | if(rs != null) 66 | rs.close(); 67 | } catch (SQLException e) { 68 | 69 | e.printStackTrace(); 70 | } 71 | 72 | } 73 | 74 | public static void closeConnection(Connection con){ 75 | 76 | try { 77 | if(con != null) 78 | con.close(); 79 | } catch (SQLException e) { 80 | 81 | e.printStackTrace(); 82 | } 83 | 84 | } 85 | 86 | } 87 | -------------------------------------------------------------------------------- /tendermanagement/src/com/hit/utility/IDUtil.java: -------------------------------------------------------------------------------- 1 | package com.hit.utility; 2 | 3 | import java.text.SimpleDateFormat; 4 | import java.util.Date; 5 | 6 | public class IDUtil { 7 | public static String generateTenderId(){ 8 | String tid = null; 9 | 10 | SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMddhhmmss"); 11 | tid=sdf.format(new Date()); 12 | tid = "T"+tid; 13 | 14 | return tid; 15 | } 16 | 17 | 18 | public static String generateVendorId(){ 19 | String vid = null; 20 | 21 | SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMddhhmmss"); 22 | vid=sdf.format(new Date()); 23 | vid = "V"+vid; 24 | 25 | return vid; 26 | } 27 | 28 | public static String generateApplicationId(){ 29 | return generateBidderId(); 30 | } 31 | 32 | public static String generateBidderId(){ 33 | String bidderId = null; 34 | 35 | SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMddhhmmss"); 36 | bidderId =sdf.format(new Date()); 37 | bidderId = "B"+bidderId; 38 | 39 | return bidderId; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /tendermanagement/src/dbdetails.properties: -------------------------------------------------------------------------------- 1 | driverName = com.mysql.jdbc.Driver 2 | connectionString = jdbc:mysql://localhost:3306/tender 3 | username = root 4 | password = root 5 | --------------------------------------------------------------------------------