-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopportunities.html
95 lines (83 loc) · 2.68 KB
/
opportunities.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" media = "(min-width:500px)" href="stylesheet.css">
<title>Opportunity management</title>
</head>
<body>
<?php
if (isset($_POST['submit']))
{
include 'db.php';
$oppname=$_POST['oppname'] ;
$amount=$_POST['amount'] ;
$discovery = $_POST['discovery'];
$negotiations = $_POST['negotiations'];
$insert2 = mysql_query("INSERT INTO opportunity(oppname, amount, discovery, negotiations)
VALUES ('$oppname','$amount', $discovery, $negotiations)");
if($insert) {
header("Location: login.php");
} else {
echo "<br><center><font color= 'red' size='3'>Could not register.</center></font>";
}
}
?>
<div class = "header">
<div class = "navigation">
<a href = "userHome.html">Accounts</a>
<a href = "opportunities.html">Opportunities</a>
<a href="logout.php">Log out</a>
</div>
</div>
<div class = "available">
<center>
<p> available opportunities</p>
<table id="results" width="480" border="1" cellpadding="5">
<thead>
<tr>
<th scope="col" width="120">Opportunity</th>
<th scope="col" width="120">Amount</th>
<th scope="col" width="120">Discovery</th>
<th scope="col" width="120">Negotiations</th>
</tr>
</thead>
</table>
</center>
</div>
<hr/>
<div class = "new">
<form action="" method = "post" name = "opportunity">
<fieldset>
<table id = "form" border="0" width="700" cellpadding="5">
<thead>
<tr>
<th colspan="2">Create new opportunity</th>
</tr>
</thead>
<tbody>
<tr>
<td width="200"><strong>Opportunity name </strong></td>
<td width="500"><input type="text" name="oppname"/> </td>
</tr>
<tr>
<td><strong>Amount </strong></td>
<td><input type="number" name="amount"/> </td>
</tr>
<tr>
<td><strong>Discovery </strong></td>
<td><input type="text" name="discovery"/> </td>
</tr>
<tr>
<td><strong>Negotiations </strong></td>
<td><input type="text" name="negotiations"/> </td>
</tr>
<tbody>
</table>
<p><input type="submit" value="Create" class="form-button" name = "submit">
<input type="reset" value="Reset" class="form-button"></p>
</fieldset>
</form>
</div>
</body>
</html>