-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaths.php
More file actions
132 lines (122 loc) · 6.5 KB
/
maths.php
File metadata and controls
132 lines (122 loc) · 6.5 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
<?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>mathematics</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 MATHEMATICS SECTION!</h3>
</div>
<div class="row ">
<div class="col-md-4 col-sm-6">
<img src="maths1.jpg" class="thumbnail" />
</div>
<div class="col-md-8 col-sm-6">
<h3 class="text-danger">Algebra for JEE MAIN and ADVANCED<br />Price: Rs 200/-<br /> </h3>
<br />
<h3 class="text-danger">Author: Dr. S.K. Goyal</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(7)) { //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=7" 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="maths2.jpeg" width="200px" height="200px" class="thumbnail" />
</div>
<div class="col-md-8 col-sm-6">
<h3 class="text-danger">New Pattern IITJEE Mathematics<br />Price: Rs 300/-<br /> </h3>
<br />
<h3 class="text-danger">Author: Dr. S.K. Goyal</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(8)) { //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=8" 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="maths3.jpeg" class="thumbnail" />
</div>
<div class="col-md-8 col-sm-6">
<h3 class="text-danger">Mathematics for IITJEE <br />Price: Rs 200/-<br /> </h3>
<br />
<h3 class="text-danger">Author: Dr. G S N Murti</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(9)) { //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=9" name="add" value="add" class="btn btn-block btn-primary">Add to cart</a>
<?php
}
}
?>
</div>
</div>
</div>
<?php
include 'footer.php'
?>
</body>
</html>