-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaddparttime.php
70 lines (55 loc) · 2.71 KB
/
addparttime.php
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
<?php
include("include/adminheader.php");
?>
<h1 style="text-align: center">Part Time Players</h1>
<form action="parttime_player_info.php" method="post">
<div class="custom-div" style="height: 420px;">
<div class= "custom-form2" style="float: left">
First Name: <input type="text" placeholder="First Name" name="pfname" required> </br>
Last Name: <input type="text" placeholder="Last Name" name="plname" required> </br>
Date of Birth: </br>
<?php include("include/date_tray.php")?>
Nationality: <input type="text" placeholder="Nationality" name="nationality" required> </br>
Salary: $<input type="number" placeholder="Salary" min="0" name="salary" required></br>
<a href="viewparttimeplayers.php?param=player_id" class="btn btn-inverse">Back</a>
</div>
<div class= "custom-form2" style="float: right">
Loaner Club:
<select name="loaner_id">
<?php
$conn = oci_connect("system", "1234", "xe");
$sql = 'select * from clubs order by club_name';
$result = oci_parse($conn, $sql);
oci_execute($result);
while ($row = oci_fetch_array($result))
{ echo "<option value= " . $row[0] . " >" . $row[1] . "</option> </br>";
}
?>
</select>
Loanee Club:
<select name="loanee_id">
<?php
$conn = oci_connect("system", "1234", "xe");
$sql = 'select * from clubs order by club_name';
$result = oci_parse($conn, $sql);
oci_execute($result);
while ($row = oci_fetch_array($result))
{ echo "<option value= " . $row[0] . " >" . $row[1] . "</option> </br>";
}
?>
</select>
Loaner Club Contract Started on:
<?php include("include/date_tray2.php")?>
Loaner Club Contract Deadline:
<?php include("include/date_tray3.php")?>
Loanee Club Contract Started on:
<?php include("include/ldate_tray.php")?>
Loanee Club Contract Deadline:
<?php include("include/date_tray5.php")?>
<input type="submit" name="submit" class="btn btn-primary"> </br>
</div>
</div>
</form>
<?php
include("include/adminfooter.php");
?>