Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dac293e

Browse files
committedOct 22, 2019
Web
1 parent cc7c44f commit dac293e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+2274
-0
lines changed
 

‎WebContent/Add.jsp

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2+
pageEncoding="ISO-8859-1"%>
3+
<%@ page import="com.digitalbd.Helper,com.digitalbd.User,com.digitalbd.trains,java.util.*" %>
4+
<%
5+
String message = "";
6+
if(request.getParameter("createTrain") != null){
7+
trains trn = new trains();
8+
trn.name = (String) request.getParameter("name");
9+
trn.code = (String) request.getParameter("code");
10+
trn.type = (String) request.getParameter("coach");
11+
String totalSeat = (String) request.getParameter("totalseat");
12+
trn.totalSeat = Integer.parseInt(totalSeat);
13+
trn.Save();
14+
message = "Train Created";
15+
16+
}
17+
%>
18+
<%@ include file="header.jsp" %>
19+
<div class="signpage">
20+
<% if(!message.equals("")){ %>
21+
<div class="alert alert-info"><p><%= message %></p></div>
22+
<% } %>
23+
<form class="register_form" action="<%= Helper.baseUrl %>Add.jsp" method="post">
24+
25+
<div class="row">
26+
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
27+
<div class="rs_form_box">
28+
<h3 class="form_section_title">
29+
Train Informations
30+
</h3>
31+
<div class="input-group">
32+
<label>Name</label>
33+
<input type="text" name="name" class="form-controller">
34+
</div>
35+
<div class="input-group">
36+
<label>Code</label>
37+
<input type="text" name="code" class="form-controller">
38+
</div>
39+
<div class="input-group">
40+
<label>Total Seat</label>
41+
<input type="text" name="totalseat" class="form-controller">
42+
</div>
43+
<div class="input-group">
44+
<div class="form-group">
45+
<label>Class :</label>
46+
<select class="form-control" name="coach" >
47+
<option value="">--select--</option>
48+
<option value="Intercity">Intercity</option>
49+
<option value="Super Fast">Super Fast</option>
50+
<option value="Express">Express</option>
51+
<option value="Passenger">Passenger</option>
52+
</select>
53+
</div>
54+
</div>
55+
</div>
56+
57+
</div>
58+
<div class="col-xs-12 col-sm-12 text-center">
59+
<div class="rs_btn_group">
60+
<button class="btn btn-default pull-left" name="createTrain" value="submit" type="submit">Save</button>
61+
</div>
62+
</div>
63+
</div>
64+
</form>
65+
</div>
66+
<%@ include file="footer.jsp" %>

‎WebContent/Create_station.jsp

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2+
pageEncoding="ISO-8859-1"%>
3+
4+
<%@ include file="header.jsp" %>
5+
<div class="signpage">
6+
7+
<form class="register_form" action="<%= Helper.baseUrl %>Register.jsp" method="post">
8+
9+
<div class="row">
10+
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
11+
<div class="rs_form_box">
12+
<h3 class="form_section_title">
13+
Station Information
14+
</h3>
15+
<div class="input-group">
16+
<label>Station Name</label>
17+
<input type="text" name="code" class="form-controller">
18+
</div>
19+
<div class="input-group">
20+
<label>Address</label>
21+
<input type="text" name="code" class="form-controller">
22+
</div>
23+
<div class="input-group">
24+
<label>Contact</label>
25+
<input type="text" name="code" class="form-controller">
26+
</div>
27+
28+
</div>
29+
30+
</div>
31+
<div class="col-xs-12 col-sm-12 text-center">
32+
<div class="rs_btn_group">
33+
<button class="btn btn-default pull-left" name="submit" type="submit">Save</button>
34+
</div>
35+
</div>
36+
</div>
37+
</form>
38+
</div>
39+
<%@ include file="footer.jsp" %>

0 commit comments

Comments
 (0)