-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathActivityProposal-Speakers-Select.php
More file actions
74 lines (73 loc) · 3.41 KB
/
Copy pathActivityProposal-Speakers-Select.php
File metadata and controls
74 lines (73 loc) · 3.41 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
<?php
include('Connection.php');
$sql = "SELECT * FROM ap_guest where ap_id = '".$_POST["id"]."'";
$result = mysqli_query($conn, $sql);
if(mysqli_num_rows($result) > 0 )
{
echo '<table class="table table-responsive">
<thead>
<tr>
<th colspan = "5" class = "text-center"><kbd>Name(s) and Qualification(s)</kbd> of the Speaker(s)/Judge(s)/Facilitator(s) (if applicable)</th>
</tr>
<tr>
<th>Name(s)</th>
<th>Present and Past Position(s)</th>
<th>Educational Attainment-School(s)</th>
<th>Experience/Training(s)</th>
<th>Functions</th>
</tr>
</thead>';
while($row = mysqli_fetch_array($result))
{
echo '
<tbody>
<tr>
<td data-idpass ="'.$row["ID"].'">' .$row["Name"].'</td>
<td data-idpass ="'.$row["ID"].'">' .$row["Position"].'</td>
<td data-idpass ="'.$row["ID"].'">' .$row["Educ_Attainment"].'</td>
<td data-idpass ="'.$row["ID"].'">' .$row["Exp_Train"].'</td>
<td>
<button name = "btn_del-Speakers" id ="btn_del-Speakers" data-idunique = "'.$row["ID"].'" class="btn btn-sm btn-danger">
<span class="glyphicon glyphicon-remove"></span> Remove</button>
</td>
</tr>';
}
echo '<tr>
<td><input required type = "text" placeholder ="Name" id = "speakers-name" name = "speakers-name" size = "20" maxlength = "60" value ="" class="form-control"></td>
<td><input required type = "text" placeholder ="Position" id = "speakers-position" name = "speakers-position" size = "20" maxlength = "60" value ="" class="form-control"></td>
<td><input required type = "text" placeholder ="Education" id = "speakers-educ" name = "speakers-educ" size = "20" maxlength = "60" value ="" class="form-control"></td>
<td><input required type = "text" placeholder ="Experience" id = "speakers-exp" name = "speakers-exp" size = "20" maxlength = "60" value ="" class="form-control"></td>
<td><button type= "button" name = "btn_add-Speakers" id ="btn_add-Speakers" data-id6 = "'.$_POST["id"].'" class="btn btn-sm btn-success">
<span class="glyphicon glyphicon-plus"></span> Add</button></td>
</tr>
</tbody>';
}
else
{
echo '<table class = "table">
<thead>
<tr>
<th colspan = "5" class = "text-center"><kbd>Name(s) and Qualification(s)</kbd> of the Speaker(s)/Judge(s)/Facilitator(s) (if applicable)</th>
</tr>
<tr>
<th>Name(s)</th>
<th>Present and Past Position(s)</th>
<th>Educational Attainment-School(s)</th>
<th>Experience/Training(s)</th>
<th>Functions</th>
</tr>
</thead>';
echo '
<tbody>
<tr>
<td><input required type = "text" placeholder ="Name" id = "speakers-name" name = "speakers-name" size = "20" maxlength = "60" value ="" class="form-control"></td>
<td><input required type = "text" placeholder ="Position" id = "speakers-position" name = "speakers-position" size = "20" maxlength = "60" value ="" class="form-control"></td>
<td><input required type = "text" placeholder ="Education" id = "speakers-educ" name = "speakers-educ" size = "20" maxlength = "60" value ="" class="form-control"></td>
<td><input required type = "text" placeholder ="Experience" id = "speakers-exp" name = "speakers-exp" size = "20" maxlength = "60" value ="" class="form-control"></td>
<td><button type= "button" name = "btn_add-Speakers" id ="btn_add-Speakers" data-id6 = "'.$_POST["id"].'" class="btn btn-sm btn-success">
<span class="glyphicon glyphicon-plus"></span> Add</button></td>
</tr>
</tbody>';
}
echo '</table>';
?>