-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ticket.html
163 lines (138 loc) · 4.23 KB
/
Ticket.html
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<html>
<head>
<script language="JavaScript" type="text/javascript">
var d=new Date();
var monthname=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
var TODAY = monthname[d.getMonth()] + " " + d.getDate() + ", " + d.getFullYear();
function validate(){
var radios = document.getElementsByName('thesis');
var tarea=document.getElementById('ta');
var tarea1=document.getElementById('ta1');
var t_cost = document.getElementById('n1').value;
for (var i = 0, length = radios.length; i < length; i++) {
if (radios[i].checked) {
tarea.innerHTML=radios[i].value+"\n";
tarea1.innerHTML=radios[i].value*t_cost+"\n";
break;
}
}
}
</script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>Agriculture Portal</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/animate.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/lightbox.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link id="css-preset" href="css/presets/preset1.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<script src="js/respond.min.js"></script>
<![endif]===========-->
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700' rel='stylesheet' type='text/css'>
<link rel="shortcut icon" href="images/favicon.ico">
<style type="text/css">
body {
background:none repeat scroll 0 0 #d3d3d3;
background-image:url(contact-bg.jpg);
font-size:100%;
font-family:"Open Sans",Arial,sans-serif;
color:#D59429;
}
.dear {
align="center";
}
.mytext {
width: 300px;
height:40px;
}
.gear{
color:#ffffff;
}
.mytext1{
background-color: #4CAF50; /* Green */
border-radius:6px;
color: white;
padding: 10px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}
.mytext2{
width: 20px;
height:10px;
}
a:hover{
color:#ff7b29;
}
</style>
</head>
<body>
<div class="gear">
<h1 >JUNGLE SAFARI</h1>
</div>
<b><script language="JavaScript" type="text/javascript">
document.write(TODAY);
</script></b>
<?php
if(isset($_POST['submit']))
{
$name=$_POST['name'];
$color=$_POST['color'];
if($name!="" && $color!="")
{
$query=mysql_query("insert into tb values('$name','$color')");
if($query)
{
echo "Updated successfully!";
}
else
{
echo "there is a problem in Databse";
}
}
else
{
echo "Please fill all details";
}
}
else
{
?>
<br />
<br />
<div class="dear">
<form NAME="frmOne" method="post" action="index.php">
<input type="text" name="name" class="mytext" placeholder="Your Name" /><br /><br />
<input type="text" name="phone_no. " class="mytext" placeholder="Phone No." /><br /><br />
<input type="text" name="email_id: " class="mytext" placeholder="Email Address" /><br /><br />
<input type="text" name="no" id="n1" class="mytext" placeholder="Number of Visitors" /><br /><br />
<INPUT TYPE="Radio" Name="thesis" Value="350" class="mytext2" > Ac
<INPUT TYPE="Radio" Name="thesis" Value="250" class="mytext2" > NON AC<br/><br />
<INPUT TYPE="button" VALUE="Price " onClick="validate()" class="mytext1" ><br />
Per Person cost:
<TEXTFIELD id="ta"></textfield><br /><br />
Total Cost: <TEXTFIELD id="ta1"></textfield><br/><br />
<input type="submit" name="submit" class="mytext1">
</form>
</div>
<?php
}
?>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
<script type="text/javascript" src="js/jquery.inview.min.js"></script>
<script type="text/javascript" src="js/wow.min.js"></script>
<script type="text/javascript" src="js/mousescroll.js"></script>
<script type="text/javascript" src="js/smoothscroll.js"></script>
<script type="text/javascript" src="js/jquery.countTo.js"></script>
<script type="text/javascript" src="js/lightbox.min.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>