-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCars.aspx
144 lines (100 loc) · 5.9 KB
/
Cars.aspx
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Cars.aspx.cs" Inherits="ViewCars" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<title>Your Cars</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"/>
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css"/>
<link rel="shortcut icon" href="../favicon.ico"/>
<link rel="stylesheet" type="text/css" href="css1/style.css" />
<link href='http://fonts.googleapis.com/css?family=Dosis:200,400,700' rel='stylesheet' type='text/css'/>
<script type="text/javascript" src="js/modernizr.custom.79639.js"></script>
<noscript><link rel="stylesheet" type="text/css" href="css1/noscript.css" /></noscript>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" />
<asp:UpdatePanel runat="server">
<ContentTemplate>
<div class="modal fade" id="sell_car" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h2 class="modal-title" id="">Really! Want to sell this car? </h2>
<asp:Button runat="server" Text="Yes" class="btn btn-default" OnClick="Unnamed_Click" />
</div>
</div>
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>
<section id="ps-container" class="ps-container">
<div class="ps-header">
<div class="garageBtn"><a href="garage.aspx"><img src="img/shop.png" /> <h2>go back to Garage</h2></a></div>
<a href="garage.aspx"><h1><img src="img/logo.png" width="140" style="padding:20px;" />Choose your Car.</h1></a>
</div><!-- /ps-header -->
<div class="ps-contentwrapper">
<asp:Repeater runat="server" ID="d">
<ItemTemplate>
<div class="ps-content">
<h2>Vehicle : <%#Eval("carname") %></h2>
<span class="ps-price"> ₹ <%#Eval("cost") %></span>
<p>Revenue generated : <strong> ₹ <%#Eval("base_revenue") %>/half hour </strong></p>
<%-- <asp:LinkButton CommandArgument='<%#Eval("carId") %>' OnClick="buy_Click" runat="server" ID="buy">Buy this car</asp:LinkButton>--%>
<br />
<p>
<asp:UpdatePanel runat="server">
<ContentTemplate>
<asp:UpdatePanel runat="server">
<ContentTemplate>
<asp:LinkButton CssClass="btnSell" style="margin-top:10px;" CommandArgument='<%#Eval("carId") %>' Enabled='<%# GetCarStatus(Convert.ToInt32(Eval("carId")),Convert.ToInt32(Session["ttid"])) %>' OnClick="btn_sell_Click" runat="server" ID="btn_sell">
<%# Convert.ToBoolean(Session["value"]) ? "Sell this car" :"Car Already Parked" %>
</asp:LinkButton>
</ContentTemplate>
</asp:UpdatePanel>
</ContentTemplate>
</asp:UpdatePanel>
</p>
<br />
<p>
<asp:LinkButton style="margin-right: -15px;" CommandArgument='<%#Eval("carId") %>' Enabled='<%# Convert.ToBoolean(Session["value"]) %>' OnClick="btn_choose_Click" runat="server" ID="btn_choose">
<%# Convert.ToBoolean(Session["value"]) ? "Choose this car" :"Car Already Parked" %>
</asp:LinkButton>
</p>
</div>
</ItemTemplate>
</asp:Repeater>
<a runat="server" class="messageText" id="lnk_msg" visible="false" href="Shop.aspx">It's lonely here.<h2> Please visit shop to buy a vehicle.</h2></a>
</div><!-- /ps-contentwrapper -->
<div class="ps-slidewrapper">
<div class="ps-slides">
<asp:Repeater runat="server" ID="a">
<ItemTemplate>
<div style="background-image: url(<%# Eval("car_icon") %>); background-size:contain;"></div>
</ItemTemplate>
</asp:Repeater>
</div>
<nav>
<a href="#" class="ps-prev" ></a>
<a href="#" class="ps-next" ></a>
</nav>
</div><!-- /ps-slidewrapper -->
</section><!-- /ps-container -->
<!-- jQuery if needed -->
<script src="js/jquery-1.10.2.js"></script>
<script src="Scripts/jquery-2.1.3.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<%-- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>--%>
<script type="text/javascript" src="js/slider.js"></script>
<script type="text/javascript">
$(function () {
Slider.init();
});
</script>
</form>
</body>
</html>