-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphysics.php
More file actions
131 lines (120 loc) · 6.46 KB
/
Copy pathphysics.php
File metadata and controls
131 lines (120 loc) · 6.46 KB
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
<?php
require 'includes/common.php';
?>
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
<html>
<head>
<title>PHYSICS</title>
<link href="style.css" rel="stylesheet" type="text/css"/>
<style>
body{
width: 100%;
height: 100%;
margin: 0;
}
a{
text-decoration: none;
background-color: transparent;
color: #ededed
}
</style>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div>
<?php
include '/includes/header.php';
include 'if_added.php';
?>
</div>
<div class="container">
<div class="jumbotron">
<h3>WELCOME TO PHYSICS SECTION!</h3>
</div>
<div class="row ">
<div class="col-md-4 col-sm-6">
<img src="physics1.jpg" class="thumbnail" />
</div>
<div class="col-md-8 col-sm-6">
<h3 class="text-danger">Understanding Physics for JEE Main and Advanced Part-1<br />Price: Rs 150/-<br /> </h3>
<br />
<h3 class="text-danger">Author: DC Pandey</h3>
<?php if (!isset($_SESSION['email']))
{ ?>
<p><a href="login.php" role="button" class="btn btn-primary btn-block">Buy Now</a></p>
<?php
} else {
//We have created a function to check whether this particular product is added to cart or not.
if (check_if_added_to_cart(1)) { //This is same as if(check_if_added_to_cart != 0)
echo '<a href="#" class="btn btn-block btn-success" disabled>Added to cart</a>';
} else {
?>
<a href="cart-add.php?id=1" name="add" value="add" class="btn btn-block btn-primary">Add to cart</a>
<?php
}
}
?>
</div>
</div>
<hr />
<div class="row">
<div class="col-md-4 col-sm-6">
<img src="physics2.jpg" class="thumbnail" />
</div>
<div class="col-md-8 col-sm-6">
<h3 class="text-danger">Understanding Physics for JEE Main and Advanced Part-2<br />Price: Rs 150/-<br /> </h3>
<br />
<h3 class="text-danger">Author: DC Pandey</h3>
<?php if (!isset($_SESSION['email']))
{ ?>
<p><a href="login.php" role="button" class="btn btn-primary btn-block">Buy Now</a></p>
<?php
} else {
//We have created a function to check whether this particular product is added to cart or not.
if (check_if_added_to_cart(2)) { //This is same as if(check_if_added_to_cart != 0)
echo '<a href="#" class="btn btn-block btn-success" disabled>Added to cart</a>';
} else {
?>
<a href="cart-add.php?id=2" name="add" value="add" class="btn btn-block btn-primary">Add to cart</a>
<?php
}
} ?>
</div>
</div>
<hr />
<div class="row">
<div class="col-md-4 col-sm-6">
<img src="physics3.jpg" class="thumbnail" />
</div>
<div class="col-md-8 col-sm-6">
<h3 class="text-danger">New Pattern Physics for JEE Main and Advanced <br />Price: Rs 150/-<br /> </h3>
<br />
<h3 class="text-danger">Author: DC Pandey</h3>
<?php if (!isset($_SESSION['email']))
{ ?>
<p><a href="login.php" role="button" class="btn btn-primary btn-block">Buy Now</a></p>
<?php
} else {
//We have created a function to check whether this particular product is added to cart or not.
if (check_if_added_to_cart(3)) { //This is same as if(check_if_added_to_cart != 0)
echo '<a href="#" class="btn btn-block btn-success" disabled>Added to cart</a>';
} else {
?>
<a href="cart-add.php?id=3" name="add" value="add" class="btn btn-block btn-primary">Add to cart</a>
<?php
}
} ?>
</div>
</div>
</div>
<?php
include 'footer.php'
?>
</body>
</html>